xref: /freebsd/contrib/openpam/configure (revision 730cecb05aaf016ac52ef7cfc691ccec3a0408cd)
1#! /bin/sh
2# From configure.ac Id: configure.ac 610 2012-05-26 14:03:45Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenPAM 20120526.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65	expr "X$arg" : "X\\(.*\\)$as_nl";
66	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""	$as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1
179
180  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184    PATH=/empty FPATH=/empty; export PATH FPATH
185    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187  if (eval "$as_required") 2>/dev/null; then :
188  as_have_required=yes
189else
190  as_have_required=no
191fi
192  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194else
195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196as_found=false
197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198do
199  IFS=$as_save_IFS
200  test -z "$as_dir" && as_dir=.
201  as_found=:
202  case $as_dir in #(
203	 /*)
204	   for as_base in sh bash ksh sh5; do
205	     # Try only shells that exist, to save several forks.
206	     as_shell=$as_dir/$as_base
207	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  CONFIG_SHELL=$as_shell as_have_required=yes
210		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211  break 2
212fi
213fi
214	   done;;
215       esac
216  as_found=false
217done
218$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220  CONFIG_SHELL=$SHELL as_have_required=yes
221fi; }
222IFS=$as_save_IFS
223
224
225      if test "x$CONFIG_SHELL" != x; then :
226  # We cannot yet assume a decent shell, so we have to provide a
227	# neutralization value for shells without unset; and this also
228	# works around shells that cannot unset nonexistent variables.
229	# Preserve -v and -x to the replacement shell.
230	BASH_ENV=/dev/null
231	ENV=/dev/null
232	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233	export CONFIG_SHELL
234	case $- in # ((((
235	  *v*x* | *x*v* ) as_opts=-vx ;;
236	  *v* ) as_opts=-v ;;
237	  *x* ) as_opts=-x ;;
238	  * ) as_opts= ;;
239	esac
240	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241fi
242
243    if test x$as_have_required = xno; then :
244  $as_echo "$0: This script requires a shell more modern than all"
245  $as_echo "$0: the shells that I found on your system."
246  if test x${ZSH_VERSION+set} = xset ; then
247    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249  else
250    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
251$0: your system, including any error possibly output before
252$0: this message. Then install a modern shell, or manually
253$0: run the script under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='OpenPAM'
572PACKAGE_TARNAME='openpam'
573PACKAGE_VERSION='20120526'
574PACKAGE_STRING='OpenPAM 20120526'
575PACKAGE_BUGREPORT='des@des.no'
576PACKAGE_URL=''
577
578ac_unique_file="lib/pam_start.c"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619CRYPT_LIBS
620DL_LIBS
621WITH_SU_FALSE
622WITH_SU_TRUE
623WITH_PAMTEST_FALSE
624WITH_PAMTEST_TRUE
625WITH_PAM_UNIX_FALSE
626WITH_PAM_UNIX_TRUE
627WITH_DOC_FALSE
628WITH_DOC_TRUE
629OPENPAM_MODULES_DIR
630LIB_MAJ
631OTOOL64
632OTOOL
633LIPO
634NMEDIT
635DSYMUTIL
636MANIFEST_TOOL
637RANLIB
638ac_ct_AR
639AR
640DLLTOOL
641OBJDUMP
642LN_S
643NM
644ac_ct_DUMPBIN
645DUMPBIN
646LD
647FGREP
648SED
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657LIBTOOL
658EGREP
659GREP
660CPP
661am__fastdepCC_FALSE
662am__fastdepCC_TRUE
663CCDEPMODE
664AMDEPBACKSLASH
665AMDEP_FALSE
666AMDEP_TRUE
667am__quote
668am__include
669DEPDIR
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677am__untar
678am__tar
679AMTAR
680am__leading_dot
681SET_MAKE
682AWK
683mkdir_p
684MKDIR_P
685INSTALL_STRIP_PROGRAM
686STRIP
687install_sh
688MAKEINFO
689AUTOHEADER
690AUTOMAKE
691AUTOCONF
692ACLOCAL
693VERSION
694PACKAGE
695CYGPATH_W
696am__isrc
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files=''
739ac_user_opts='
740enable_option_checking
741enable_dependency_tracking
742enable_static
743enable_shared
744with_pic
745enable_fast_install
746with_gnu_ld
747with_sysroot
748enable_libtool_lock
749enable_debug
750enable_unversioned_modules
751with_modules_dir
752with_doc
753with_pam_unix
754with_pamtest
755with_su
756enable_developer_warnings
757enable_debugging_symbols
758enable_werror
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP'
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
774ac_unrecognized_opts=
775ac_unrecognized_sep=
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807includedir='${prefix}/include'
808oldincludedir='/usr/include'
809docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810infodir='${datarootdir}/info'
811htmldir='${docdir}'
812dvidir='${docdir}'
813pdfdir='${docdir}'
814psdir='${docdir}'
815libdir='${exec_prefix}/lib'
816localedir='${datarootdir}/locale'
817mandir='${datarootdir}/man'
818
819ac_prev=
820ac_dashdash=
821for ac_option
822do
823  # If the previous option needs an argument, assign it.
824  if test -n "$ac_prev"; then
825    eval $ac_prev=\$ac_option
826    ac_prev=
827    continue
828  fi
829
830  case $ac_option in
831  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832  *=)   ac_optarg= ;;
833  *)    ac_optarg=yes ;;
834  esac
835
836  # Accept the important Cygnus configure options, so we can diagnose typos.
837
838  case $ac_dashdash$ac_option in
839  --)
840    ac_dashdash=yes ;;
841
842  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843    ac_prev=bindir ;;
844  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845    bindir=$ac_optarg ;;
846
847  -build | --build | --buil | --bui | --bu)
848    ac_prev=build_alias ;;
849  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850    build_alias=$ac_optarg ;;
851
852  -cache-file | --cache-file | --cache-fil | --cache-fi \
853  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854    ac_prev=cache_file ;;
855  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857    cache_file=$ac_optarg ;;
858
859  --config-cache | -C)
860    cache_file=config.cache ;;
861
862  -datadir | --datadir | --datadi | --datad)
863    ac_prev=datadir ;;
864  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865    datadir=$ac_optarg ;;
866
867  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868  | --dataroo | --dataro | --datar)
869    ac_prev=datarootdir ;;
870  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872    datarootdir=$ac_optarg ;;
873
874  -disable-* | --disable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error $? "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=no ;;
889
890  -docdir | --docdir | --docdi | --doc | --do)
891    ac_prev=docdir ;;
892  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893    docdir=$ac_optarg ;;
894
895  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896    ac_prev=dvidir ;;
897  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898    dvidir=$ac_optarg ;;
899
900  -enable-* | --enable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=\$ac_optarg ;;
915
916  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918  | --exec | --exe | --ex)
919    ac_prev=exec_prefix ;;
920  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922  | --exec=* | --exe=* | --ex=*)
923    exec_prefix=$ac_optarg ;;
924
925  -gas | --gas | --ga | --g)
926    # Obsolete; use --with-gas.
927    with_gas=yes ;;
928
929  -help | --help | --hel | --he | -h)
930    ac_init_help=long ;;
931  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932    ac_init_help=recursive ;;
933  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934    ac_init_help=short ;;
935
936  -host | --host | --hos | --ho)
937    ac_prev=host_alias ;;
938  -host=* | --host=* | --hos=* | --ho=*)
939    host_alias=$ac_optarg ;;
940
941  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942    ac_prev=htmldir ;;
943  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944  | --ht=*)
945    htmldir=$ac_optarg ;;
946
947  -includedir | --includedir | --includedi | --included | --include \
948  | --includ | --inclu | --incl | --inc)
949    ac_prev=includedir ;;
950  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951  | --includ=* | --inclu=* | --incl=* | --inc=*)
952    includedir=$ac_optarg ;;
953
954  -infodir | --infodir | --infodi | --infod | --info | --inf)
955    ac_prev=infodir ;;
956  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957    infodir=$ac_optarg ;;
958
959  -libdir | --libdir | --libdi | --libd)
960    ac_prev=libdir ;;
961  -libdir=* | --libdir=* | --libdi=* | --libd=*)
962    libdir=$ac_optarg ;;
963
964  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965  | --libexe | --libex | --libe)
966    ac_prev=libexecdir ;;
967  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968  | --libexe=* | --libex=* | --libe=*)
969    libexecdir=$ac_optarg ;;
970
971  -localedir | --localedir | --localedi | --localed | --locale)
972    ac_prev=localedir ;;
973  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974    localedir=$ac_optarg ;;
975
976  -localstatedir | --localstatedir | --localstatedi | --localstated \
977  | --localstate | --localstat | --localsta | --localst | --locals)
978    ac_prev=localstatedir ;;
979  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981    localstatedir=$ac_optarg ;;
982
983  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984    ac_prev=mandir ;;
985  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986    mandir=$ac_optarg ;;
987
988  -nfp | --nfp | --nf)
989    # Obsolete; use --without-fp.
990    with_fp=no ;;
991
992  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993  | --no-cr | --no-c | -n)
994    no_create=yes ;;
995
996  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998    no_recursion=yes ;;
999
1000  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002  | --oldin | --oldi | --old | --ol | --o)
1003    ac_prev=oldincludedir ;;
1004  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007    oldincludedir=$ac_optarg ;;
1008
1009  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010    ac_prev=prefix ;;
1011  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012    prefix=$ac_optarg ;;
1013
1014  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015  | --program-pre | --program-pr | --program-p)
1016    ac_prev=program_prefix ;;
1017  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019    program_prefix=$ac_optarg ;;
1020
1021  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022  | --program-suf | --program-su | --program-s)
1023    ac_prev=program_suffix ;;
1024  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026    program_suffix=$ac_optarg ;;
1027
1028  -program-transform-name | --program-transform-name \
1029  | --program-transform-nam | --program-transform-na \
1030  | --program-transform-n | --program-transform- \
1031  | --program-transform | --program-transfor \
1032  | --program-transfo | --program-transf \
1033  | --program-trans | --program-tran \
1034  | --progr-tra | --program-tr | --program-t)
1035    ac_prev=program_transform_name ;;
1036  -program-transform-name=* | --program-transform-name=* \
1037  | --program-transform-nam=* | --program-transform-na=* \
1038  | --program-transform-n=* | --program-transform-=* \
1039  | --program-transform=* | --program-transfor=* \
1040  | --program-transfo=* | --program-transf=* \
1041  | --program-trans=* | --program-tran=* \
1042  | --progr-tra=* | --program-tr=* | --program-t=*)
1043    program_transform_name=$ac_optarg ;;
1044
1045  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046    ac_prev=pdfdir ;;
1047  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048    pdfdir=$ac_optarg ;;
1049
1050  -psdir | --psdir | --psdi | --psd | --ps)
1051    ac_prev=psdir ;;
1052  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053    psdir=$ac_optarg ;;
1054
1055  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056  | -silent | --silent | --silen | --sile | --sil)
1057    silent=yes ;;
1058
1059  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060    ac_prev=sbindir ;;
1061  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062  | --sbi=* | --sb=*)
1063    sbindir=$ac_optarg ;;
1064
1065  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067  | --sharedst | --shareds | --shared | --share | --shar \
1068  | --sha | --sh)
1069    ac_prev=sharedstatedir ;;
1070  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073  | --sha=* | --sh=*)
1074    sharedstatedir=$ac_optarg ;;
1075
1076  -site | --site | --sit)
1077    ac_prev=site ;;
1078  -site=* | --site=* | --sit=*)
1079    site=$ac_optarg ;;
1080
1081  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082    ac_prev=srcdir ;;
1083  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084    srcdir=$ac_optarg ;;
1085
1086  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087  | --syscon | --sysco | --sysc | --sys | --sy)
1088    ac_prev=sysconfdir ;;
1089  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091    sysconfdir=$ac_optarg ;;
1092
1093  -target | --target | --targe | --targ | --tar | --ta | --t)
1094    ac_prev=target_alias ;;
1095  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096    target_alias=$ac_optarg ;;
1097
1098  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099    verbose=yes ;;
1100
1101  -version | --version | --versio | --versi | --vers | -V)
1102    ac_init_version=: ;;
1103
1104  -with-* | --with-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=\$ac_optarg ;;
1119
1120  -without-* | --without-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=no ;;
1135
1136  --x)
1137    # Obsolete; use --with-x.
1138    with_x=yes ;;
1139
1140  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141  | --x-incl | --x-inc | --x-in | --x-i)
1142    ac_prev=x_includes ;;
1143  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145    x_includes=$ac_optarg ;;
1146
1147  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149    ac_prev=x_libraries ;;
1150  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152    x_libraries=$ac_optarg ;;
1153
1154  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155Try \`$0 --help' for more information"
1156    ;;
1157
1158  *=*)
1159    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160    # Reject names that are not valid shell variable names.
1161    case $ac_envvar in #(
1162      '' | [0-9]* | *[!_$as_cr_alnum]* )
1163      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164    esac
1165    eval $ac_envvar=\$ac_optarg
1166    export $ac_envvar ;;
1167
1168  *)
1169    # FIXME: should be removed in autoconf 3.0.
1170    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174    ;;
1175
1176  esac
1177done
1178
1179if test -n "$ac_prev"; then
1180  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181  as_fn_error $? "missing argument to $ac_option"
1182fi
1183
1184if test -n "$ac_unrecognized_opts"; then
1185  case $enable_option_checking in
1186    no) ;;
1187    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189  esac
1190fi
1191
1192# Check all directory arguments for consistency.
1193for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194		datadir sysconfdir sharedstatedir localstatedir includedir \
1195		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196		libdir localedir mandir
1197do
1198  eval ac_val=\$$ac_var
1199  # Remove trailing slashes.
1200  case $ac_val in
1201    */ )
1202      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203      eval $ac_var=\$ac_val;;
1204  esac
1205  # Be sure to have absolute directory names.
1206  case $ac_val in
1207    [\\/$]* | ?:[\\/]* )  continue;;
1208    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209  esac
1210  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211done
1212
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222  if test "x$build_alias" = x; then
1223    cross_compiling=maybe
1224    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225    If a cross compiler is detected then cross compile mode will be used" >&2
1226  elif test "x$build_alias" != "x$host_alias"; then
1227    cross_compiling=yes
1228  fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240  as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242  as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247  ac_srcdir_defaulted=yes
1248  # Try the directory containing this script, then the parent directory.
1249  ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251	 X"$as_myself" : 'X\(//\)[^/]' \| \
1252	 X"$as_myself" : 'X\(//\)$' \| \
1253	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)[^/].*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\).*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  s/.*/./; q'`
1272  srcdir=$ac_confdir
1273  if test ! -r "$srcdir/$ac_unique_file"; then
1274    srcdir=..
1275  fi
1276else
1277  ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286	pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289  srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_env_${ac_var}_value=\$${ac_var}
1300  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308  # Omit some internal or obsolete options to make the list less imposing.
1309  # This message is too long to be a string in the A/UX 3.1 sh.
1310  cat <<_ACEOF
1311\`configure' configures OpenPAM 20120526 to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321  -h, --help              display this help and exit
1322      --help=short        display options specific to this package
1323      --help=recursive    display the short help of all the included packages
1324  -V, --version           display version information and exit
1325  -q, --quiet, --silent   do not print \`checking ...' messages
1326      --cache-file=FILE   cache test results in FILE [disabled]
1327  -C, --config-cache      alias for \`--cache-file=config.cache'
1328  -n, --no-create         do not create output files
1329      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332  --prefix=PREFIX         install architecture-independent files in PREFIX
1333                          [$ac_default_prefix]
1334  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                          [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345  --bindir=DIR            user executables [EPREFIX/bin]
1346  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351  --libdir=DIR            object code libraries [EPREFIX/lib]
1352  --includedir=DIR        C header files [PREFIX/include]
1353  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356  --infodir=DIR           info documentation [DATAROOTDIR/info]
1357  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358  --mandir=DIR            man documentation [DATAROOTDIR/man]
1359  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1360  --htmldir=DIR           html documentation [DOCDIR]
1361  --dvidir=DIR            dvi documentation [DOCDIR]
1362  --pdfdir=DIR            pdf documentation [DOCDIR]
1363  --psdir=DIR             ps documentation [DOCDIR]
1364_ACEOF
1365
1366  cat <<\_ACEOF
1367
1368Program names:
1369  --program-prefix=PREFIX            prepend PREFIX to installed program names
1370  --program-suffix=SUFFIX            append SUFFIX to installed program names
1371  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373System types:
1374  --build=BUILD     configure for building on BUILD [guessed]
1375  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380  case $ac_init_help in
1381     short | recursive ) echo "Configuration of OpenPAM 20120526:";;
1382   esac
1383  cat <<\_ACEOF
1384
1385Optional Features:
1386  --disable-option-checking  ignore unrecognized --enable/--with options
1387  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389  --disable-dependency-tracking  speeds up one-time build
1390  --enable-dependency-tracking   do not reject slow dependency extractors
1391  --enable-static[=PKGS]  build static libraries [default=no]
1392  --enable-shared[=PKGS]  build shared libraries [default=yes]
1393  --enable-fast-install[=PKGS]
1394                          optimize for fast installation [default=yes]
1395  --disable-libtool-lock  avoid locking (might break parallel builds)
1396  --enable-debug          turn debugging on by default
1397  --disable-unversioned-modules
1398                          support loading of unversioned modules
1399  --enable-developer-warnings
1400                          enable strict warnings (default is NO)
1401  --enable-debugging-symbols
1402                          enable debugging symbols (default is NO)
1403  --enable-werror         use -Werror (default is NO)
1404
1405Optional Packages:
1406  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1409                          both]
1410  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411  --with-sysroot=DIR Search for dependent libraries within DIR
1412                        (or the compiler's sysroot if not specified).
1413  --with-modules-dir=DIR  OpenPAM modules directory
1414  --without-doc           do not build documentation
1415  --with-pam-unix         compile sample pam_unix(8) implementation
1416  --with-pamtest          compile test application
1417  --with-su               compile sample su(1) implementation
1418
1419Some influential environment variables:
1420  CC          C compiler command
1421  CFLAGS      C compiler flags
1422  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423              nonstandard directory <lib dir>
1424  LIBS        libraries to pass to the linker, e.g. -l<library>
1425  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426              you have headers in a nonstandard directory <include dir>
1427  CPP         C preprocessor
1428
1429Use these variables to override the choices made by `configure' or to help
1430it to find libraries and programs with nonstandard names/locations.
1431
1432Report bugs to <des@des.no>.
1433_ACEOF
1434ac_status=$?
1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438  # If there are subdirs, report their specific --help.
1439  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440    test -d "$ac_dir" ||
1441      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442      continue
1443    ac_builddir=.
1444
1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
1448  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449  # A ".." for each directory in $ac_dir_suffix.
1450  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451  case $ac_top_builddir_sub in
1452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454  esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
1460
1461case $srcdir in
1462  .)  # We are building in place.
1463    ac_srcdir=.
1464    ac_top_srcdir=$ac_top_builddir_sub
1465    ac_abs_top_srcdir=$ac_pwd ;;
1466  [\\/]* | ?:[\\/]* )  # Absolute name.
1467    ac_srcdir=$srcdir$ac_dir_suffix;
1468    ac_top_srcdir=$srcdir
1469    ac_abs_top_srcdir=$srcdir ;;
1470  *) # Relative name.
1471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472    ac_top_srcdir=$ac_top_build_prefix$srcdir
1473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474esac
1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477    cd "$ac_dir" || { ac_status=$?; continue; }
1478    # Check for guested configure.
1479    if test -f "$ac_srcdir/configure.gnu"; then
1480      echo &&
1481      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482    elif test -f "$ac_srcdir/configure"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure" --help=recursive
1485    else
1486      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487    fi || ac_status=$?
1488    cd "$ac_pwd" || { ac_status=$?; break; }
1489  done
1490fi
1491
1492test -n "$ac_init_help" && exit $ac_status
1493if $ac_init_version; then
1494  cat <<\_ACEOF
1495OpenPAM configure 20120526
1496generated by GNU Autoconf 2.68
1497
1498Copyright (C) 2010 Free Software Foundation, Inc.
1499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502  exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515  rm -f conftest.$ac_objext
1516  if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_compile") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } && {
1532	 test -z "$ac_c_werror_flag" ||
1533	 test ! -s conftest.err
1534       } && test -s conftest.$ac_objext; then :
1535  ac_retval=0
1536else
1537  $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540	ac_retval=1
1541fi
1542  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543  as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_cpp LINENO
1548# ----------------------
1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_cpp ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  if { { ac_try="$ac_cpp conftest.$ac_ext"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } > conftest.i && {
1569	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       }; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577    ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_cpp
1583
1584# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585# -------------------------------------------------------
1586# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587# the include files in INCLUDES and setting the cache variable VAR
1588# accordingly.
1589ac_fn_c_check_header_mongrel ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if eval \${$3+:} false; then :
1593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594$as_echo_n "checking for $2... " >&6; }
1595if eval \${$3+:} false; then :
1596  $as_echo_n "(cached) " >&6
1597fi
1598eval ac_res=\$$3
1599	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601else
1602  # Is the header compilable?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604$as_echo_n "checking $2 usability... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611  ac_header_compiler=yes
1612else
1613  ac_header_compiler=no
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617$as_echo "$ac_header_compiler" >&6; }
1618
1619# Is the header present?
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621$as_echo_n "checking $2 presence... " >&6; }
1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_cpp "$LINENO"; then :
1627  ac_header_preproc=yes
1628else
1629  ac_header_preproc=no
1630fi
1631rm -f conftest.err conftest.i conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633$as_echo "$ac_header_preproc" >&6; }
1634
1635# So?  What about this header?
1636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637  yes:no: )
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642    ;;
1643  no:yes:* )
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1647$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1651$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654( $as_echo "## ------------------------- ##
1655## Report this to des@des.no ##
1656## ------------------------- ##"
1657     ) | sed "s/^/$as_me: WARNING:     /" >&2
1658    ;;
1659esac
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  eval "$3=\$ac_header_compiler"
1666fi
1667eval ac_res=\$$3
1668	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673} # ac_fn_c_check_header_mongrel
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693  { { case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_try") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; }; }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: program exited with status $ac_status" >&5
1706       $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709       ac_retval=$ac_status
1710fi
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  eval "$3=yes"
1736else
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 $as_test_x conftest$ac_exeext
1776       }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782	ac_retval=1
1783fi
1784  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786  # interfere with the next link command; also delete a directory that is
1787  # left behind by Apple's compiler.  We do this before executing the actions.
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_link
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860cat >config.log <<_ACEOF
1861This file contains any messages produced by compilers while
1862running configure, to aid debugging if configure makes a mistake.
1863
1864It was created by OpenPAM $as_me 20120526, which was
1865generated by GNU Autoconf 2.68.  Invocation command line was
1866
1867  $ $0 $@
1868
1869_ACEOF
1870exec 5>>config.log
1871{
1872cat <<_ASUNAME
1873## --------- ##
1874## Platform. ##
1875## --------- ##
1876
1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894_ASUNAME
1895
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901    $as_echo "PATH: $as_dir"
1902  done
1903IFS=$as_save_IFS
1904
1905} >&5
1906
1907cat >&5 <<_ACEOF
1908
1909
1910## ----------- ##
1911## Core tests. ##
1912## ----------- ##
1913
1914_ACEOF
1915
1916
1917# Keep a trace of the command line.
1918# Strip out --no-create and --no-recursion so they do not pile up.
1919# Strip out --silent because we don't want to record it for future runs.
1920# Also quote any args containing shell meta-characters.
1921# Make two passes to allow for proper duplicate-argument suppression.
1922ac_configure_args=
1923ac_configure_args0=
1924ac_configure_args1=
1925ac_must_keep_next=false
1926for ac_pass in 1 2
1927do
1928  for ac_arg
1929  do
1930    case $ac_arg in
1931    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933    | -silent | --silent | --silen | --sile | --sil)
1934      continue ;;
1935    *\'*)
1936      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937    esac
1938    case $ac_pass in
1939    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1940    2)
1941      as_fn_append ac_configure_args1 " '$ac_arg'"
1942      if test $ac_must_keep_next = true; then
1943	ac_must_keep_next=false # Got value, back to normal.
1944      else
1945	case $ac_arg in
1946	  *=* | --config-cache | -C | -disable-* | --disable-* \
1947	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949	  | -with-* | --with-* | -without-* | --without-* | --x)
1950	    case "$ac_configure_args0 " in
1951	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952	    esac
1953	    ;;
1954	  -* ) ac_must_keep_next=true ;;
1955	esac
1956      fi
1957      as_fn_append ac_configure_args " '$ac_arg'"
1958      ;;
1959    esac
1960  done
1961done
1962{ ac_configure_args0=; unset ac_configure_args0;}
1963{ ac_configure_args1=; unset ac_configure_args1;}
1964
1965# When interrupted or exit'd, cleanup temporary files, and complete
1966# config.log.  We remove comments because anyway the quotes in there
1967# would cause problems or look ugly.
1968# WARNING: Use '\'' to represent an apostrophe within the trap.
1969# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970trap 'exit_status=$?
1971  # Save into config.log some information that might help in debugging.
1972  {
1973    echo
1974
1975    $as_echo "## ---------------- ##
1976## Cache variables. ##
1977## ---------------- ##"
1978    echo
1979    # The following way of writing the cache mishandles newlines in values,
1980(
1981  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982    eval ac_val=\$$ac_var
1983    case $ac_val in #(
1984    *${as_nl}*)
1985      case $ac_var in #(
1986      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988      esac
1989      case $ac_var in #(
1990      _ | IFS | as_nl) ;; #(
1991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992      *) { eval $ac_var=; unset $ac_var;} ;;
1993      esac ;;
1994    esac
1995  done
1996  (set) 2>&1 |
1997    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998    *${as_nl}ac_space=\ *)
1999      sed -n \
2000	"s/'\''/'\''\\\\'\'''\''/g;
2001	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002      ;; #(
2003    *)
2004      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005      ;;
2006    esac |
2007    sort
2008)
2009    echo
2010
2011    $as_echo "## ----------------- ##
2012## Output variables. ##
2013## ----------------- ##"
2014    echo
2015    for ac_var in $ac_subst_vars
2016    do
2017      eval ac_val=\$$ac_var
2018      case $ac_val in
2019      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020      esac
2021      $as_echo "$ac_var='\''$ac_val'\''"
2022    done | sort
2023    echo
2024
2025    if test -n "$ac_subst_files"; then
2026      $as_echo "## ------------------- ##
2027## File substitutions. ##
2028## ------------------- ##"
2029      echo
2030      for ac_var in $ac_subst_files
2031      do
2032	eval ac_val=\$$ac_var
2033	case $ac_val in
2034	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035	esac
2036	$as_echo "$ac_var='\''$ac_val'\''"
2037      done | sort
2038      echo
2039    fi
2040
2041    if test -s confdefs.h; then
2042      $as_echo "## ----------- ##
2043## confdefs.h. ##
2044## ----------- ##"
2045      echo
2046      cat confdefs.h
2047      echo
2048    fi
2049    test "$ac_signal" != 0 &&
2050      $as_echo "$as_me: caught signal $ac_signal"
2051    $as_echo "$as_me: exit $exit_status"
2052  } >&5
2053  rm -f core *.core core.conftest.* &&
2054    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055    exit $exit_status
2056' 0
2057for ac_signal in 1 2 13 15; do
2058  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059done
2060ac_signal=0
2061
2062# confdefs.h avoids OS command line length limits that DEFS can exceed.
2063rm -f -r conftest* confdefs.h
2064
2065$as_echo "/* confdefs.h */" > confdefs.h
2066
2067# Predefined preprocessor variables.
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_NAME "$PACKAGE_NAME"
2071_ACEOF
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_VERSION "$PACKAGE_VERSION"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_STRING "$PACKAGE_STRING"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087_ACEOF
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_URL "$PACKAGE_URL"
2091_ACEOF
2092
2093
2094# Let the site file select an alternate cache file if it wants to.
2095# Prefer an explicitly selected file to automatically selected ones.
2096ac_site_file1=NONE
2097ac_site_file2=NONE
2098if test -n "$CONFIG_SITE"; then
2099  # We do not want a PATH search for config.site.
2100  case $CONFIG_SITE in #((
2101    -*)  ac_site_file1=./$CONFIG_SITE;;
2102    */*) ac_site_file1=$CONFIG_SITE;;
2103    *)   ac_site_file1=./$CONFIG_SITE;;
2104  esac
2105elif test "x$prefix" != xNONE; then
2106  ac_site_file1=$prefix/share/config.site
2107  ac_site_file2=$prefix/etc/config.site
2108else
2109  ac_site_file1=$ac_default_prefix/share/config.site
2110  ac_site_file2=$ac_default_prefix/etc/config.site
2111fi
2112for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2113do
2114  test "x$ac_site_file" = xNONE && continue
2115  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118    sed 's/^/| /' "$ac_site_file" >&5
2119    . "$ac_site_file" \
2120      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122as_fn_error $? "failed to load site script $ac_site_file
2123See \`config.log' for more details" "$LINENO" 5; }
2124  fi
2125done
2126
2127if test -r "$cache_file"; then
2128  # Some versions of bash will fail to source /dev/null (special files
2129  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2130  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132$as_echo "$as_me: loading cache $cache_file" >&6;}
2133    case $cache_file in
2134      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135      *)                      . "./$cache_file";;
2136    esac
2137  fi
2138else
2139  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140$as_echo "$as_me: creating cache $cache_file" >&6;}
2141  >$cache_file
2142fi
2143
2144# Check that the precious variables saved in the cache have kept the same
2145# value.
2146ac_cache_corrupted=false
2147for ac_var in $ac_precious_vars; do
2148  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149  eval ac_new_set=\$ac_env_${ac_var}_set
2150  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151  eval ac_new_val=\$ac_env_${ac_var}_value
2152  case $ac_old_set,$ac_new_set in
2153    set,)
2154      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156      ac_cache_corrupted=: ;;
2157    ,set)
2158      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160      ac_cache_corrupted=: ;;
2161    ,);;
2162    *)
2163      if test "x$ac_old_val" != "x$ac_new_val"; then
2164	# differences in whitespace do not lead to failure.
2165	ac_old_val_w=`echo x $ac_old_val`
2166	ac_new_val_w=`echo x $ac_new_val`
2167	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170	  ac_cache_corrupted=:
2171	else
2172	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174	  eval $ac_var=\$ac_old_val
2175	fi
2176	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2177$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2178	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2179$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2180      fi;;
2181  esac
2182  # Pass precious variables to config.status.
2183  if test "$ac_new_set" = set; then
2184    case $ac_new_val in
2185    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186    *) ac_arg=$ac_var=$ac_new_val ;;
2187    esac
2188    case " $ac_configure_args " in
2189      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2190      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2191    esac
2192  fi
2193done
2194if $ac_cache_corrupted; then
2195  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2200fi
2201## -------------------- ##
2202## Main body of script. ##
2203## -------------------- ##
2204
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213
2214am__api_version='1.11'
2215
2216ac_aux_dir=
2217for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218  if test -f "$ac_dir/install-sh"; then
2219    ac_aux_dir=$ac_dir
2220    ac_install_sh="$ac_aux_dir/install-sh -c"
2221    break
2222  elif test -f "$ac_dir/install.sh"; then
2223    ac_aux_dir=$ac_dir
2224    ac_install_sh="$ac_aux_dir/install.sh -c"
2225    break
2226  elif test -f "$ac_dir/shtool"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/shtool install -c"
2229    break
2230  fi
2231done
2232if test -z "$ac_aux_dir"; then
2233  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234fi
2235
2236# These three variables are undocumented and unsupported,
2237# and are intended to be withdrawn in a future Autoconf release.
2238# They can cause serious problems if a builder's source tree is in a directory
2239# whose full name contains unusual characters.
2240ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245# Find a good install program.  We prefer a C program (faster),
2246# so one script is as good as another.  But avoid the broken or
2247# incompatible versions:
2248# SysV /etc/install, /usr/sbin/install
2249# SunOS /usr/etc/install
2250# IRIX /sbin/install
2251# AIX /bin/install
2252# AmigaOS /C/install, which installs bootblocks on floppy discs
2253# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256# OS/2's system install, which has a completely different semantic
2257# ./install, which can be erroneously created by make from ./install.sh.
2258# Reject install programs that cannot install multiple files.
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260$as_echo_n "checking for a BSD-compatible install... " >&6; }
2261if test -z "$INSTALL"; then
2262if ${ac_cv_path_install+:} false; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268  IFS=$as_save_IFS
2269  test -z "$as_dir" && as_dir=.
2270    # Account for people who put trailing slashes in PATH elements.
2271case $as_dir/ in #((
2272  ./ | .// | /[cC]/* | \
2273  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275  /usr/ucb/* ) ;;
2276  *)
2277    # OSF1 and SCO ODT 3.0 have their own names for install.
2278    # Don't use installbsd from OSF since it installs stuff as root
2279    # by default.
2280    for ac_prog in ginstall scoinst install; do
2281      for ac_exec_ext in '' $ac_executable_extensions; do
2282	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283	  if test $ac_prog = install &&
2284	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285	    # AIX install.  It has an incompatible calling convention.
2286	    :
2287	  elif test $ac_prog = install &&
2288	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289	    # program-specific install script used by HP pwplus--don't use.
2290	    :
2291	  else
2292	    rm -rf conftest.one conftest.two conftest.dir
2293	    echo one > conftest.one
2294	    echo two > conftest.two
2295	    mkdir conftest.dir
2296	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297	      test -s conftest.one && test -s conftest.two &&
2298	      test -s conftest.dir/conftest.one &&
2299	      test -s conftest.dir/conftest.two
2300	    then
2301	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302	      break 3
2303	    fi
2304	  fi
2305	fi
2306      done
2307    done
2308    ;;
2309esac
2310
2311  done
2312IFS=$as_save_IFS
2313
2314rm -rf conftest.one conftest.two conftest.dir
2315
2316fi
2317  if test "${ac_cv_path_install+set}" = set; then
2318    INSTALL=$ac_cv_path_install
2319  else
2320    # As a last resort, use the slow shell script.  Don't cache a
2321    # value for INSTALL within a source directory, because that will
2322    # break other packages using the cache if that directory is
2323    # removed, or if the value is a relative name.
2324    INSTALL=$ac_install_sh
2325  fi
2326fi
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328$as_echo "$INSTALL" >&6; }
2329
2330# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331# It thinks the first close brace ends the variable substitution.
2332test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339$as_echo_n "checking whether build environment is sane... " >&6; }
2340# Just in case
2341sleep 1
2342echo timestamp > conftest.file
2343# Reject unsafe characters in $srcdir or the absolute working directory
2344# name.  Accept space and tab only in the latter.
2345am_lf='
2346'
2347case `pwd` in
2348  *[\\\"\#\$\&\'\`$am_lf]*)
2349    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2350esac
2351case $srcdir in
2352  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2353    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2354esac
2355
2356# Do `set' in a subshell so we don't clobber the current shell's
2357# arguments.  Must try -L first in case configure is actually a
2358# symlink; some systems play weird games with the mod time of symlinks
2359# (eg FreeBSD returns the mod time of the symlink's containing
2360# directory).
2361if (
2362   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363   if test "$*" = "X"; then
2364      # -L didn't work.
2365      set X `ls -t "$srcdir/configure" conftest.file`
2366   fi
2367   rm -f conftest.file
2368   if test "$*" != "X $srcdir/configure conftest.file" \
2369      && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371      # If neither matched, then we have a broken ls.  This can happen
2372      # if, for instance, CONFIG_SHELL is bash and it inherits a
2373      # broken ls alias from the environment.  This has actually
2374      # happened.  Such a system could not be considered "sane".
2375      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2376alias in your environment" "$LINENO" 5
2377   fi
2378
2379   test "$2" = conftest.file
2380   )
2381then
2382   # Ok.
2383   :
2384else
2385   as_fn_error $? "newly created file is older than distributed files!
2386Check your system clock" "$LINENO" 5
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389$as_echo "yes" >&6; }
2390test "$program_prefix" != NONE &&
2391  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392# Use a double $ so make ignores it.
2393test "$program_suffix" != NONE &&
2394  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395# Double any \ or $.
2396# By default was `s,x,x', remove it if useless.
2397ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399
2400# expand $ac_aux_dir to an absolute path
2401am_aux_dir=`cd $ac_aux_dir && pwd`
2402
2403if test x"${MISSING+set}" != xset; then
2404  case $am_aux_dir in
2405  *\ * | *\	*)
2406    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407  *)
2408    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2409  esac
2410fi
2411# Use eval to expand $SHELL
2412if eval "$MISSING --run true"; then
2413  am_missing_run="$MISSING --run "
2414else
2415  am_missing_run=
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418fi
2419
2420if test x"${install_sh}" != xset; then
2421  case $am_aux_dir in
2422  *\ * | *\	*)
2423    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424  *)
2425    install_sh="\${SHELL} $am_aux_dir/install-sh"
2426  esac
2427fi
2428
2429# Installed binaries are usually stripped using `strip' when the user
2430# run `make install-strip'.  However `strip' might not be the right
2431# tool to use in cross-compilation environments, therefore Automake
2432# will honor the `STRIP' environment variable to overrule this program.
2433if test "$cross_compiling" != no; then
2434  if test -n "$ac_tool_prefix"; then
2435  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}strip; ac_word=$2
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438$as_echo_n "checking for $ac_word... " >&6; }
2439if ${ac_cv_prog_STRIP+:} false; then :
2440  $as_echo_n "(cached) " >&6
2441else
2442  if test -n "$STRIP"; then
2443  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448  IFS=$as_save_IFS
2449  test -z "$as_dir" && as_dir=.
2450    for ac_exec_ext in '' $ac_executable_extensions; do
2451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454    break 2
2455  fi
2456done
2457  done
2458IFS=$as_save_IFS
2459
2460fi
2461fi
2462STRIP=$ac_cv_prog_STRIP
2463if test -n "$STRIP"; then
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465$as_echo "$STRIP" >&6; }
2466else
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468$as_echo "no" >&6; }
2469fi
2470
2471
2472fi
2473if test -z "$ac_cv_prog_STRIP"; then
2474  ac_ct_STRIP=$STRIP
2475  # Extract the first word of "strip", so it can be a program name with args.
2476set dummy strip; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$ac_ct_STRIP"; then
2483  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492    ac_cv_prog_ac_ct_STRIP="strip"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503if test -n "$ac_ct_STRIP"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505$as_echo "$ac_ct_STRIP" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511  if test "x$ac_ct_STRIP" = x; then
2512    STRIP=":"
2513  else
2514    case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518ac_tool_warned=yes ;;
2519esac
2520    STRIP=$ac_ct_STRIP
2521  fi
2522else
2523  STRIP="$ac_cv_prog_STRIP"
2524fi
2525
2526fi
2527INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531if test -z "$MKDIR_P"; then
2532  if ${ac_cv_path_mkdir+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540    for ac_prog in mkdir gmkdir; do
2541	 for ac_exec_ext in '' $ac_executable_extensions; do
2542	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544	     'mkdir (GNU coreutils) '* | \
2545	     'mkdir (coreutils) '* | \
2546	     'mkdir (fileutils) '4.1*)
2547	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548	       break 3;;
2549	   esac
2550	 done
2551       done
2552  done
2553IFS=$as_save_IFS
2554
2555fi
2556
2557  test -d ./--version && rmdir ./--version
2558  if test "${ac_cv_path_mkdir+set}" = set; then
2559    MKDIR_P="$ac_cv_path_mkdir -p"
2560  else
2561    # As a last resort, use the slow shell script.  Don't cache a
2562    # value for MKDIR_P within a source directory, because that will
2563    # break other packages using the cache if that directory is
2564    # removed, or if the value is a relative name.
2565    MKDIR_P="$ac_install_sh -d"
2566  fi
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569$as_echo "$MKDIR_P" >&6; }
2570
2571mkdir_p="$MKDIR_P"
2572case $mkdir_p in
2573  [\\/$]* | ?:[\\/]*) ;;
2574  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2575esac
2576
2577for ac_prog in gawk mawk nawk awk
2578do
2579  # Extract the first word of "$ac_prog", so it can be a program name with args.
2580set dummy $ac_prog; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_AWK+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$AWK"; then
2587  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596    ac_cv_prog_AWK="$ac_prog"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606AWK=$ac_cv_prog_AWK
2607if test -n "$AWK"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609$as_echo "$AWK" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616  test -n "$AWK" && break
2617done
2618
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621set x ${MAKE-make}
2622ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  cat >conftest.make <<\_ACEOF
2627SHELL = /bin/sh
2628all:
2629	@echo '@@@%%%=$(MAKE)=@@@%%%'
2630_ACEOF
2631# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633  *@@@%%%=?*=@@@%%%*)
2634    eval ac_cv_prog_make_${ac_make}_set=yes;;
2635  *)
2636    eval ac_cv_prog_make_${ac_make}_set=no;;
2637esac
2638rm -f conftest.make
2639fi
2640if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642$as_echo "yes" >&6; }
2643  SET_MAKE=
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647  SET_MAKE="MAKE=${MAKE-make}"
2648fi
2649
2650rm -rf .tst 2>/dev/null
2651mkdir .tst 2>/dev/null
2652if test -d .tst; then
2653  am__leading_dot=.
2654else
2655  am__leading_dot=_
2656fi
2657rmdir .tst 2>/dev/null
2658
2659if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661  # is not polluted with repeated "-I."
2662  am__isrc=' -I$(srcdir)'
2663  # test to see if srcdir already configured
2664  if test -f $srcdir/config.status; then
2665    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2666  fi
2667fi
2668
2669# test whether we have cygpath
2670if test -z "$CYGPATH_W"; then
2671  if (cygpath --version) >/dev/null 2>/dev/null; then
2672    CYGPATH_W='cygpath -w'
2673  else
2674    CYGPATH_W=echo
2675  fi
2676fi
2677
2678
2679# Define the identity of the package.
2680 PACKAGE='openpam'
2681 VERSION='20120526'
2682
2683
2684cat >>confdefs.h <<_ACEOF
2685#define PACKAGE "$PACKAGE"
2686_ACEOF
2687
2688
2689cat >>confdefs.h <<_ACEOF
2690#define VERSION "$VERSION"
2691_ACEOF
2692
2693# Some tools Automake needs.
2694
2695ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709# We need awk for the "check" target.  The system "awk" is bad on
2710# some platforms.
2711# Always define AMTAR for backward compatibility.
2712
2713AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
2715am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716
2717
2718
2719
2720
2721ac_config_headers="$ac_config_headers config.h"
2722
2723
2724# C compiler and features
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736if test -n "$ac_tool_prefix"; then
2737  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if ${ac_cv_prog_CC+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test -n "$CC"; then
2745  ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752    for ac_exec_ext in '' $ac_executable_extensions; do
2753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759  done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774fi
2775if test -z "$ac_cv_prog_CC"; then
2776  ac_ct_CC=$CC
2777  # Extract the first word of "gcc", so it can be a program name with args.
2778set dummy gcc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$ac_ct_CC"; then
2785  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_ac_ct_CC="gcc"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805if test -n "$ac_ct_CC"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807$as_echo "$ac_ct_CC" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813  if test "x$ac_ct_CC" = x; then
2814    CC=""
2815  else
2816    case $cross_compiling:$ac_tool_warned in
2817yes:)
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820ac_tool_warned=yes ;;
2821esac
2822    CC=$ac_ct_CC
2823  fi
2824else
2825  CC="$ac_cv_prog_CC"
2826fi
2827
2828if test -z "$CC"; then
2829          if test -n "$ac_tool_prefix"; then
2830    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}cc; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_CC+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_CC="${ac_tool_prefix}cc"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867  fi
2868fi
2869if test -z "$CC"; then
2870  # Extract the first word of "cc", so it can be a program name with args.
2871set dummy cc; ac_word=$2
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if ${ac_cv_prog_CC+:} false; then :
2875  $as_echo_n "(cached) " >&6
2876else
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880  ac_prog_rejected=no
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889       ac_prog_rejected=yes
2890       continue
2891     fi
2892    ac_cv_prog_CC="cc"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900if test $ac_prog_rejected = yes; then
2901  # We found a bogon in the path, so make sure we never use it.
2902  set dummy $ac_cv_prog_CC
2903  shift
2904  if test $# != 0; then
2905    # We chose a different compiler from the bogus one.
2906    # However, it has the same basename, so the bogon will be chosen
2907    # first if we set CC to just the basename; use the full file name.
2908    shift
2909    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910  fi
2911fi
2912fi
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917$as_echo "$CC" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924fi
2925if test -z "$CC"; then
2926  if test -n "$ac_tool_prefix"; then
2927  for ac_prog in cl.exe
2928  do
2929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$CC"; then
2937  ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959$as_echo "$CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966    test -n "$CC" && break
2967  done
2968fi
2969if test -z "$CC"; then
2970  ac_ct_CC=$CC
2971  for ac_prog in cl.exe
2972do
2973  # Extract the first word of "$ac_prog", so it can be a program name with args.
2974set dummy $ac_prog; ac_word=$2
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976$as_echo_n "checking for $ac_word... " >&6; }
2977if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  if test -n "$ac_ct_CC"; then
2981  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  test -z "$as_dir" && as_dir=.
2988    for ac_exec_ext in '' $ac_executable_extensions; do
2989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990    ac_cv_prog_ac_ct_CC="$ac_prog"
2991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992    break 2
2993  fi
2994done
2995  done
2996IFS=$as_save_IFS
2997
2998fi
2999fi
3000ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001if test -n "$ac_ct_CC"; then
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003$as_echo "$ac_ct_CC" >&6; }
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007fi
3008
3009
3010  test -n "$ac_ct_CC" && break
3011done
3012
3013  if test "x$ac_ct_CC" = x; then
3014    CC=""
3015  else
3016    case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022    CC=$ac_ct_CC
3023  fi
3024fi
3025
3026fi
3027
3028
3029test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error $? "no acceptable C compiler found in \$PATH
3032See \`config.log' for more details" "$LINENO" 5; }
3033
3034# Provide some information about the compiler.
3035$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036set X $ac_compile
3037ac_compiler=$2
3038for ac_option in --version -v -V -qversion; do
3039  { { ac_try="$ac_compiler $ac_option >&5"
3040case "(($ac_try" in
3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042  *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047  ac_status=$?
3048  if test -s conftest.err; then
3049    sed '10a\
3050... rest of stderr output deleted ...
3051         10q' conftest.err >conftest.er1
3052    cat conftest.er1 >&5
3053  fi
3054  rm -f conftest.er1 conftest.err
3055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056  test $ac_status = 0; }
3057done
3058
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070ac_clean_files_save=$ac_clean_files
3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072# Try to create an executable without -o first, disregard a.out.
3073# It will help us diagnose broken compilers, and finding out an intuition
3074# of exeext.
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076$as_echo_n "checking whether the C compiler works... " >&6; }
3077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079# The possible output files:
3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082ac_rmfiles=
3083for ac_file in $ac_files
3084do
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088  esac
3089done
3090rm -f $ac_rmfiles
3091
3092if { { ac_try="$ac_link_default"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098$as_echo "$ac_try_echo"; } >&5
3099  (eval "$ac_link_default") 2>&5
3100  ac_status=$?
3101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102  test $ac_status = 0; }; then :
3103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106# so that the user can short-circuit this test for compilers unknown to
3107# Autoconf.
3108for ac_file in $ac_files ''
3109do
3110  test -f "$ac_file" || continue
3111  case $ac_file in
3112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113	;;
3114    [ab].out )
3115	# We found the default executable, but exeext='' is most
3116	# certainly right.
3117	break;;
3118    *.* )
3119	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120	then :; else
3121	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	fi
3123	# We set ac_cv_exeext here because the later test for it is not
3124	# safe: cross compilers may not add the suffix if given an `-o'
3125	# argument, so we may need to know it at that point already.
3126	# Even if this section looks crufty: it has the advantage of
3127	# actually working.
3128	break;;
3129    * )
3130	break;;
3131  esac
3132done
3133test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135else
3136  ac_file=''
3137fi
3138if test -z "$ac_file"; then :
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141$as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error 77 "C compiler cannot create executables
3147See \`config.log' for more details" "$LINENO" 5; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150$as_echo "yes" >&6; }
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153$as_echo_n "checking for C compiler default output file name... " >&6; }
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156ac_exeext=$ac_cv_exeext
3157
3158rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159ac_clean_files=$ac_clean_files_save
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161$as_echo_n "checking for suffix of executables... " >&6; }
3162if { { ac_try="$ac_link"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168$as_echo "$ac_try_echo"; } >&5
3169  (eval "$ac_link") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172  test $ac_status = 0; }; then :
3173  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3175# work properly (i.e., refer to `conftest.exe'), while it won't with
3176# `rm'.
3177for ac_file in conftest.exe conftest conftest.*; do
3178  test -f "$ac_file" || continue
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182	  break;;
3183    * ) break;;
3184  esac
3185done
3186else
3187  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190See \`config.log' for more details" "$LINENO" 5; }
3191fi
3192rm -f conftest conftest$ac_cv_exeext
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194$as_echo "$ac_cv_exeext" >&6; }
3195
3196rm -f conftest.$ac_ext
3197EXEEXT=$ac_cv_exeext
3198ac_exeext=$EXEEXT
3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h.  */
3201#include <stdio.h>
3202int
3203main ()
3204{
3205FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212ac_clean_files="$ac_clean_files conftest.out"
3213# Check that the compiler produces executables we can run.  If not, either
3214# the compiler is broken, or we cross compile.
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216$as_echo_n "checking whether we are cross compiling... " >&6; }
3217if test "$cross_compiling" != yes; then
3218  { { ac_try="$ac_link"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_link") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }
3229  if { ac_try='./conftest$ac_cv_exeext'
3230  { { case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_try") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; }; then
3240    cross_compiling=no
3241  else
3242    if test "$cross_compiling" = maybe; then
3243	cross_compiling=yes
3244    else
3245	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot run C compiled programs.
3248If you meant to cross compile, use \`--host'.
3249See \`config.log' for more details" "$LINENO" 5; }
3250    fi
3251  fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254$as_echo "$cross_compiling" >&6; }
3255
3256rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257ac_clean_files=$ac_clean_files_save
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259$as_echo_n "checking for suffix of object files... " >&6; }
3260if ${ac_cv_objext+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274rm -f conftest.o conftest.obj
3275if { { ac_try="$ac_compile"
3276case "(($ac_try" in
3277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278  *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282  (eval "$ac_compile") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285  test $ac_status = 0; }; then :
3286  for ac_file in conftest.o conftest.obj conftest.*; do
3287  test -f "$ac_file" || continue;
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291       break;;
3292  esac
3293done
3294else
3295  $as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error $? "cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details" "$LINENO" 5; }
3302fi
3303rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306$as_echo "$ac_cv_objext" >&6; }
3307OBJEXT=$ac_cv_objext
3308ac_objext=$OBJEXT
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311if ${ac_cv_c_compiler_gnu+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320#ifndef __GNUC__
3321       choke me
3322#endif
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329  ac_compiler_gnu=yes
3330else
3331  ac_compiler_gnu=no
3332fi
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339if test $ac_compiler_gnu = yes; then
3340  GCC=yes
3341else
3342  GCC=
3343fi
3344ac_test_CFLAGS=${CFLAGS+set}
3345ac_save_CFLAGS=$CFLAGS
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347$as_echo_n "checking whether $CC accepts -g... " >&6; }
3348if ${ac_cv_prog_cc_g+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  ac_save_c_werror_flag=$ac_c_werror_flag
3352   ac_c_werror_flag=yes
3353   ac_cv_prog_cc_g=no
3354   CFLAGS="-g"
3355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367  ac_cv_prog_cc_g=yes
3368else
3369  CFLAGS=""
3370      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382
3383else
3384  ac_c_werror_flag=$ac_save_c_werror_flag
3385	 CFLAGS="-g"
3386	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398  ac_cv_prog_cc_g=yes
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405   ac_c_werror_flag=$ac_save_c_werror_flag
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408$as_echo "$ac_cv_prog_cc_g" >&6; }
3409if test "$ac_test_CFLAGS" = set; then
3410  CFLAGS=$ac_save_CFLAGS
3411elif test $ac_cv_prog_cc_g = yes; then
3412  if test "$GCC" = yes; then
3413    CFLAGS="-g -O2"
3414  else
3415    CFLAGS="-g"
3416  fi
3417else
3418  if test "$GCC" = yes; then
3419    CFLAGS="-O2"
3420  else
3421    CFLAGS=
3422  fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426if ${ac_cv_prog_cc_c89+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  ac_cv_prog_cc_c89=no
3430ac_save_CC=$CC
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <stdarg.h>
3434#include <stdio.h>
3435#include <sys/types.h>
3436#include <sys/stat.h>
3437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3438struct buf { int x; };
3439FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440static char *e (p, i)
3441     char **p;
3442     int i;
3443{
3444  return p[i];
3445}
3446static char *f (char * (*g) (char **, int), char **p, ...)
3447{
3448  char *s;
3449  va_list v;
3450  va_start (v,p);
3451  s = g (p, va_arg (v,int));
3452  va_end (v);
3453  return s;
3454}
3455
3456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3457   function prototypes and stuff, but not '\xHH' hex character constants.
3458   These don't provoke an error unfortunately, instead are silently treated
3459   as 'x'.  The following induces an error, until -std is added to get
3460   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3461   array size at least.  It's necessary to write '\x00'==0 to get something
3462   that's true only with -std.  */
3463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464
3465/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466   inside strings and character constants.  */
3467#define FOO(x) 'x'
3468int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469
3470int test (int i, double x);
3471struct s1 {int (*f) (int a);};
3472struct s2 {int (*f) (double a);};
3473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474int argc;
3475char **argv;
3476int
3477main ()
3478{
3479return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486do
3487  CC="$ac_save_CC $ac_arg"
3488  if ac_fn_c_try_compile "$LINENO"; then :
3489  ac_cv_prog_cc_c89=$ac_arg
3490fi
3491rm -f core conftest.err conftest.$ac_objext
3492  test "x$ac_cv_prog_cc_c89" != "xno" && break
3493done
3494rm -f conftest.$ac_ext
3495CC=$ac_save_CC
3496
3497fi
3498# AC_CACHE_VAL
3499case "x$ac_cv_prog_cc_c89" in
3500  x)
3501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3502$as_echo "none needed" >&6; } ;;
3503  xno)
3504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3505$as_echo "unsupported" >&6; } ;;
3506  *)
3507    CC="$CC $ac_cv_prog_cc_c89"
3508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3509$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3510esac
3511if test "x$ac_cv_prog_cc_c89" != xno; then :
3512
3513fi
3514
3515ac_ext=c
3516ac_cpp='$CPP $CPPFLAGS'
3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520DEPDIR="${am__leading_dot}deps"
3521
3522ac_config_commands="$ac_config_commands depfiles"
3523
3524
3525am_make=${MAKE-make}
3526cat > confinc << 'END'
3527am__doit:
3528	@echo this is the am__doit target
3529.PHONY: am__doit
3530END
3531# If we don't find an include directive, just comment out the code.
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3533$as_echo_n "checking for style of include used by $am_make... " >&6; }
3534am__include="#"
3535am__quote=
3536_am_result=none
3537# First try GNU make style include.
3538echo "include confinc" > confmf
3539# Ignore all kinds of additional output from `make'.
3540case `$am_make -s -f confmf 2> /dev/null` in #(
3541*the\ am__doit\ target*)
3542  am__include=include
3543  am__quote=
3544  _am_result=GNU
3545  ;;
3546esac
3547# Now try BSD make style include.
3548if test "$am__include" = "#"; then
3549   echo '.include "confinc"' > confmf
3550   case `$am_make -s -f confmf 2> /dev/null` in #(
3551   *the\ am__doit\ target*)
3552     am__include=.include
3553     am__quote="\""
3554     _am_result=BSD
3555     ;;
3556   esac
3557fi
3558
3559
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3561$as_echo "$_am_result" >&6; }
3562rm -f confinc confmf
3563
3564# Check whether --enable-dependency-tracking was given.
3565if test "${enable_dependency_tracking+set}" = set; then :
3566  enableval=$enable_dependency_tracking;
3567fi
3568
3569if test "x$enable_dependency_tracking" != xno; then
3570  am_depcomp="$ac_aux_dir/depcomp"
3571  AMDEPBACKSLASH='\'
3572fi
3573 if test "x$enable_dependency_tracking" != xno; then
3574  AMDEP_TRUE=
3575  AMDEP_FALSE='#'
3576else
3577  AMDEP_TRUE='#'
3578  AMDEP_FALSE=
3579fi
3580
3581
3582
3583depcc="$CC"   am_compiler_list=
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586$as_echo_n "checking dependency style of $depcc... " >&6; }
3587if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3591  # We make a subdir and do the tests there.  Otherwise we can end up
3592  # making bogus files that we don't know about and never remove.  For
3593  # instance it was reported that on HP-UX the gcc test will end up
3594  # making a dummy file named `D' -- because `-MD' means `put the output
3595  # in D'.
3596  mkdir conftest.dir
3597  # Copy depcomp to subdir because otherwise we won't find it if we're
3598  # using a relative directory.
3599  cp "$am_depcomp" conftest.dir
3600  cd conftest.dir
3601  # We will build objects and dependencies in a subdirectory because
3602  # it helps to detect inapplicable dependency modes.  For instance
3603  # both Tru64's cc and ICC support -MD to output dependencies as a
3604  # side effect of compilation, but ICC will put the dependencies in
3605  # the current directory while Tru64 will put them in the object
3606  # directory.
3607  mkdir sub
3608
3609  am_cv_CC_dependencies_compiler_type=none
3610  if test "$am_compiler_list" = ""; then
3611     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3612  fi
3613  am__universal=false
3614  case " $depcc " in #(
3615     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3616     esac
3617
3618  for depmode in $am_compiler_list; do
3619    # Setup a source with many dependencies, because some compilers
3620    # like to wrap large dependency lists on column 80 (with \), and
3621    # we should not choose a depcomp mode which is confused by this.
3622    #
3623    # We need to recreate these files for each test, as the compiler may
3624    # overwrite some of them when testing with obscure command lines.
3625    # This happens at least with the AIX C compiler.
3626    : > sub/conftest.c
3627    for i in 1 2 3 4 5 6; do
3628      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630      # Solaris 8's {/usr,}/bin/sh.
3631      touch sub/conftst$i.h
3632    done
3633    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634
3635    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636    # mode.  It turns out that the SunPro C++ compiler does not properly
3637    # handle `-M -o', and we need to detect this.  Also, some Intel
3638    # versions had trouble with output in subdirs
3639    am__obj=sub/conftest.${OBJEXT-o}
3640    am__minus_obj="-o $am__obj"
3641    case $depmode in
3642    gcc)
3643      # This depmode causes a compiler race in universal mode.
3644      test "$am__universal" = false || continue
3645      ;;
3646    nosideeffect)
3647      # after this tag, mechanisms are not by side-effect, so they'll
3648      # only be used when explicitly requested
3649      if test "x$enable_dependency_tracking" = xyes; then
3650	continue
3651      else
3652	break
3653      fi
3654      ;;
3655    msvisualcpp | msvcmsys)
3656      # This compiler won't grok `-c -o', but also, the minuso test has
3657      # not run yet.  These depmodes are late enough in the game, and
3658      # so weak that their functioning should not be impacted.
3659      am__obj=conftest.${OBJEXT-o}
3660      am__minus_obj=
3661      ;;
3662    none) break ;;
3663    esac
3664    if depmode=$depmode \
3665       source=sub/conftest.c object=$am__obj \
3666       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3668         >/dev/null 2>conftest.err &&
3669       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3672       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673      # icc doesn't choke on unknown options, it will just issue warnings
3674      # or remarks (even with -Werror).  So we grep stderr for any message
3675      # that says an option was ignored or not supported.
3676      # When given -MP, icc 7.0 and 7.1 complain thusly:
3677      #   icc: Command line warning: ignoring option '-M'; no argument required
3678      # The diagnosis changed in icc 8.0:
3679      #   icc: Command line remark: option '-MP' not supported
3680      if (grep 'ignoring option' conftest.err ||
3681          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682        am_cv_CC_dependencies_compiler_type=$depmode
3683        break
3684      fi
3685    fi
3686  done
3687
3688  cd ..
3689  rm -rf conftest.dir
3690else
3691  am_cv_CC_dependencies_compiler_type=none
3692fi
3693
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3696$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3698
3699 if
3700  test "x$enable_dependency_tracking" != xno \
3701  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3702  am__fastdepCC_TRUE=
3703  am__fastdepCC_FALSE='#'
3704else
3705  am__fastdepCC_TRUE='#'
3706  am__fastdepCC_FALSE=
3707fi
3708
3709
3710   case $ac_cv_prog_cc_stdc in #(
3711  no) :
3712    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3713  *) :
3714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3715$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716if ${ac_cv_prog_cc_c99+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  ac_cv_prog_cc_c99=no
3720ac_save_CC=$CC
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#include <stdarg.h>
3724#include <stdbool.h>
3725#include <stdlib.h>
3726#include <wchar.h>
3727#include <stdio.h>
3728
3729// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3730#define debug(...) fprintf (stderr, __VA_ARGS__)
3731#define showlist(...) puts (#__VA_ARGS__)
3732#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3733static void
3734test_varargs_macros (void)
3735{
3736  int x = 1234;
3737  int y = 5678;
3738  debug ("Flag");
3739  debug ("X = %d\n", x);
3740  showlist (The first, second, and third items.);
3741  report (x>y, "x is %d but y is %d", x, y);
3742}
3743
3744// Check long long types.
3745#define BIG64 18446744073709551615ull
3746#define BIG32 4294967295ul
3747#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3748#if !BIG_OK
3749  your preprocessor is broken;
3750#endif
3751#if BIG_OK
3752#else
3753  your preprocessor is broken;
3754#endif
3755static long long int bignum = -9223372036854775807LL;
3756static unsigned long long int ubignum = BIG64;
3757
3758struct incomplete_array
3759{
3760  int datasize;
3761  double data[];
3762};
3763
3764struct named_init {
3765  int number;
3766  const wchar_t *name;
3767  double average;
3768};
3769
3770typedef const char *ccp;
3771
3772static inline int
3773test_restrict (ccp restrict text)
3774{
3775  // See if C++-style comments work.
3776  // Iterate through items via the restricted pointer.
3777  // Also check for declarations in for loops.
3778  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3779    continue;
3780  return 0;
3781}
3782
3783// Check varargs and va_copy.
3784static void
3785test_varargs (const char *format, ...)
3786{
3787  va_list args;
3788  va_start (args, format);
3789  va_list args_copy;
3790  va_copy (args_copy, args);
3791
3792  const char *str;
3793  int number;
3794  float fnumber;
3795
3796  while (*format)
3797    {
3798      switch (*format++)
3799	{
3800	case 's': // string
3801	  str = va_arg (args_copy, const char *);
3802	  break;
3803	case 'd': // int
3804	  number = va_arg (args_copy, int);
3805	  break;
3806	case 'f': // float
3807	  fnumber = va_arg (args_copy, double);
3808	  break;
3809	default:
3810	  break;
3811	}
3812    }
3813  va_end (args_copy);
3814  va_end (args);
3815}
3816
3817int
3818main ()
3819{
3820
3821  // Check bool.
3822  _Bool success = false;
3823
3824  // Check restrict.
3825  if (test_restrict ("String literal") == 0)
3826    success = true;
3827  char *restrict newvar = "Another string";
3828
3829  // Check varargs.
3830  test_varargs ("s, d' f .", "string", 65, 34.234);
3831  test_varargs_macros ();
3832
3833  // Check flexible array members.
3834  struct incomplete_array *ia =
3835    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3836  ia->datasize = 10;
3837  for (int i = 0; i < ia->datasize; ++i)
3838    ia->data[i] = i * 1.234;
3839
3840  // Check named initializers.
3841  struct named_init ni = {
3842    .number = 34,
3843    .name = L"Test wide string",
3844    .average = 543.34343,
3845  };
3846
3847  ni.number = 58;
3848
3849  int dynamic_array[ni.number];
3850  dynamic_array[ni.number - 1] = 543;
3851
3852  // work around unused variable warnings
3853  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3854	  || dynamic_array[ni.number - 1] != 543);
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3861do
3862  CC="$ac_save_CC $ac_arg"
3863  if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_cv_prog_cc_c99=$ac_arg
3865fi
3866rm -f core conftest.err conftest.$ac_objext
3867  test "x$ac_cv_prog_cc_c99" != "xno" && break
3868done
3869rm -f conftest.$ac_ext
3870CC=$ac_save_CC
3871
3872fi
3873# AC_CACHE_VAL
3874case "x$ac_cv_prog_cc_c99" in
3875  x)
3876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877$as_echo "none needed" >&6; } ;;
3878  xno)
3879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880$as_echo "unsupported" >&6; } ;;
3881  *)
3882    CC="$CC $ac_cv_prog_cc_c99"
3883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3884$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3885esac
3886if test "x$ac_cv_prog_cc_c99" != xno; then :
3887  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891if ${ac_cv_prog_cc_c89+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  ac_cv_prog_cc_c89=no
3895ac_save_CC=$CC
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898#include <stdarg.h>
3899#include <stdio.h>
3900#include <sys/types.h>
3901#include <sys/stat.h>
3902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903struct buf { int x; };
3904FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905static char *e (p, i)
3906     char **p;
3907     int i;
3908{
3909  return p[i];
3910}
3911static char *f (char * (*g) (char **, int), char **p, ...)
3912{
3913  char *s;
3914  va_list v;
3915  va_start (v,p);
3916  s = g (p, va_arg (v,int));
3917  va_end (v);
3918  return s;
3919}
3920
3921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922   function prototypes and stuff, but not '\xHH' hex character constants.
3923   These don't provoke an error unfortunately, instead are silently treated
3924   as 'x'.  The following induces an error, until -std is added to get
3925   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926   array size at least.  It's necessary to write '\x00'==0 to get something
3927   that's true only with -std.  */
3928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931   inside strings and character constants.  */
3932#define FOO(x) 'x'
3933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935int test (int i, double x);
3936struct s1 {int (*f) (int a);};
3937struct s2 {int (*f) (double a);};
3938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939int argc;
3940char **argv;
3941int
3942main ()
3943{
3944return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951do
3952  CC="$ac_save_CC $ac_arg"
3953  if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_c89=$ac_arg
3955fi
3956rm -f core conftest.err conftest.$ac_objext
3957  test "x$ac_cv_prog_cc_c89" != "xno" && break
3958done
3959rm -f conftest.$ac_ext
3960CC=$ac_save_CC
3961
3962fi
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965  x)
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968  xno)
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
3971  *)
3972    CC="$CC $ac_cv_prog_cc_c89"
3973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975esac
3976if test "x$ac_cv_prog_cc_c89" != xno; then :
3977  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3978else
3979  ac_cv_prog_cc_stdc=no
3980fi
3981
3982fi
3983 ;;
3984esac
3985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3986$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3987  if ${ac_cv_prog_cc_stdc+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989fi
3990
3991  case $ac_cv_prog_cc_stdc in #(
3992  no) :
3993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994$as_echo "unsupported" >&6; } ;; #(
3995  '') :
3996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997$as_echo "none needed" >&6; } ;; #(
3998  *) :
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4000$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4001esac
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009$as_echo_n "checking how to run the C preprocessor... " >&6; }
4010# On Suns, sometimes $CPP names a directory.
4011if test -n "$CPP" && test -d "$CPP"; then
4012  CPP=
4013fi
4014if test -z "$CPP"; then
4015  if ${ac_cv_prog_CPP+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018      # Double quotes because CPP needs to be expanded
4019    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020    do
4021      ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024  # Use a header file that comes with gcc, so configuring glibc
4025  # with a fresh cross-compiler works.
4026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027  # <limits.h> exists even on freestanding compilers.
4028  # On the NeXT, cc -E runs the code through the compiler's parser,
4029  # not just through cpp. "Syntax error" is here to catch this case.
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037		     Syntax error
4038_ACEOF
4039if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041else
4042  # Broken: fails on valid input.
4043continue
4044fi
4045rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047  # OK, works on sane cases.  Now check whether nonexistent headers
4048  # can be detected and how.
4049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h.  */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054  # Broken: success on invalid input.
4055continue
4056else
4057  # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
4061rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065rm -f conftest.i conftest.err conftest.$ac_ext
4066if $ac_preproc_ok; then :
4067  break
4068fi
4069
4070    done
4071    ac_cv_prog_CPP=$CPP
4072
4073fi
4074  CPP=$ac_cv_prog_CPP
4075else
4076  ac_cv_prog_CPP=$CPP
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079$as_echo "$CPP" >&6; }
4080ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083  # Use a header file that comes with gcc, so configuring glibc
4084  # with a fresh cross-compiler works.
4085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086  # <limits.h> exists even on freestanding compilers.
4087  # On the NeXT, cc -E runs the code through the compiler's parser,
4088  # not just through cpp. "Syntax error" is here to catch this case.
4089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096		     Syntax error
4097_ACEOF
4098if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100else
4101  # Broken: fails on valid input.
4102continue
4103fi
4104rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106  # OK, works on sane cases.  Now check whether nonexistent headers
4107  # can be detected and how.
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <ac_nonexistent.h>
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113  # Broken: success on invalid input.
4114continue
4115else
4116  # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
4120rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124rm -f conftest.i conftest.err conftest.$ac_ext
4125if $ac_preproc_ok; then :
4126
4127else
4128  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details" "$LINENO" 5; }
4132fi
4133
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144if ${ac_cv_path_GREP+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  if test -z "$GREP"; then
4148  ac_path_GREP_found=false
4149  # Loop through the user's path and test for each of PROGNAME-LIST
4150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152do
4153  IFS=$as_save_IFS
4154  test -z "$as_dir" && as_dir=.
4155    for ac_prog in grep ggrep; do
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159# Check for GNU ac_path_GREP and select it if it is found.
4160  # Check for GNU $ac_path_GREP
4161case `"$ac_path_GREP" --version 2>&1` in
4162*GNU*)
4163  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164*)
4165  ac_count=0
4166  $as_echo_n 0123456789 >"conftest.in"
4167  while :
4168  do
4169    cat "conftest.in" "conftest.in" >"conftest.tmp"
4170    mv "conftest.tmp" "conftest.in"
4171    cp "conftest.in" "conftest.nl"
4172    $as_echo 'GREP' >> "conftest.nl"
4173    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175    as_fn_arith $ac_count + 1 && ac_count=$as_val
4176    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177      # Best one so far, save it but keep looking for a better one
4178      ac_cv_path_GREP="$ac_path_GREP"
4179      ac_path_GREP_max=$ac_count
4180    fi
4181    # 10*(2^10) chars as input seems more than enough
4182    test $ac_count -gt 10 && break
4183  done
4184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185esac
4186
4187      $ac_path_GREP_found && break 3
4188    done
4189  done
4190  done
4191IFS=$as_save_IFS
4192  if test -z "$ac_cv_path_GREP"; then
4193    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194  fi
4195else
4196  ac_cv_path_GREP=$GREP
4197fi
4198
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201$as_echo "$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4203
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206$as_echo_n "checking for egrep... " >&6; }
4207if ${ac_cv_path_EGREP+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211   then ac_cv_path_EGREP="$GREP -E"
4212   else
4213     if test -z "$EGREP"; then
4214  ac_path_EGREP_found=false
4215  # Loop through the user's path and test for each of PROGNAME-LIST
4216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221    for ac_prog in egrep; do
4222    for ac_exec_ext in '' $ac_executable_extensions; do
4223      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4225# Check for GNU ac_path_EGREP and select it if it is found.
4226  # Check for GNU $ac_path_EGREP
4227case `"$ac_path_EGREP" --version 2>&1` in
4228*GNU*)
4229  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4230*)
4231  ac_count=0
4232  $as_echo_n 0123456789 >"conftest.in"
4233  while :
4234  do
4235    cat "conftest.in" "conftest.in" >"conftest.tmp"
4236    mv "conftest.tmp" "conftest.in"
4237    cp "conftest.in" "conftest.nl"
4238    $as_echo 'EGREP' >> "conftest.nl"
4239    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241    as_fn_arith $ac_count + 1 && ac_count=$as_val
4242    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243      # Best one so far, save it but keep looking for a better one
4244      ac_cv_path_EGREP="$ac_path_EGREP"
4245      ac_path_EGREP_max=$ac_count
4246    fi
4247    # 10*(2^10) chars as input seems more than enough
4248    test $ac_count -gt 10 && break
4249  done
4250  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
4253      $ac_path_EGREP_found && break 3
4254    done
4255  done
4256  done
4257IFS=$as_save_IFS
4258  if test -z "$ac_cv_path_EGREP"; then
4259    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260  fi
4261else
4262  ac_cv_path_EGREP=$EGREP
4263fi
4264
4265   fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268$as_echo "$ac_cv_path_EGREP" >&6; }
4269 EGREP="$ac_cv_path_EGREP"
4270
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273$as_echo_n "checking for ANSI C header files... " >&6; }
4274if ${ac_cv_header_stdc+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <stdlib.h>
4280#include <stdarg.h>
4281#include <string.h>
4282#include <float.h>
4283
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293  ac_cv_header_stdc=yes
4294else
4295  ac_cv_header_stdc=no
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299if test $ac_cv_header_stdc = yes; then
4300  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <string.h>
4304
4305_ACEOF
4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307  $EGREP "memchr" >/dev/null 2>&1; then :
4308
4309else
4310  ac_cv_header_stdc=no
4311fi
4312rm -f conftest*
4313
4314fi
4315
4316if test $ac_cv_header_stdc = yes; then
4317  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320#include <stdlib.h>
4321
4322_ACEOF
4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324  $EGREP "free" >/dev/null 2>&1; then :
4325
4326else
4327  ac_cv_header_stdc=no
4328fi
4329rm -f conftest*
4330
4331fi
4332
4333if test $ac_cv_header_stdc = yes; then
4334  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335  if test "$cross_compiling" = yes; then :
4336  :
4337else
4338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340#include <ctype.h>
4341#include <stdlib.h>
4342#if ((' ' & 0x0FF) == 0x020)
4343# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345#else
4346# define ISLOWER(c) \
4347		   (('a' <= (c) && (c) <= 'i') \
4348		     || ('j' <= (c) && (c) <= 'r') \
4349		     || ('s' <= (c) && (c) <= 'z'))
4350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4351#endif
4352
4353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354int
4355main ()
4356{
4357  int i;
4358  for (i = 0; i < 256; i++)
4359    if (XOR (islower (i), ISLOWER (i))
4360	|| toupper (i) != TOUPPER (i))
4361      return 2;
4362  return 0;
4363}
4364_ACEOF
4365if ac_fn_c_try_run "$LINENO"; then :
4366
4367else
4368  ac_cv_header_stdc=no
4369fi
4370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371  conftest.$ac_objext conftest.beam conftest.$ac_ext
4372fi
4373
4374fi
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377$as_echo "$ac_cv_header_stdc" >&6; }
4378if test $ac_cv_header_stdc = yes; then
4379
4380$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381
4382fi
4383
4384# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386		  inttypes.h stdint.h unistd.h
4387do :
4388  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4390"
4391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4392  cat >>confdefs.h <<_ACEOF
4393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394_ACEOF
4395
4396fi
4397
4398done
4399
4400
4401
4402  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4403if test "x$ac_cv_header_minix_config_h" = xyes; then :
4404  MINIX=yes
4405else
4406  MINIX=
4407fi
4408
4409
4410  if test "$MINIX" = yes; then
4411
4412$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4413
4414
4415$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4416
4417
4418$as_echo "#define _MINIX 1" >>confdefs.h
4419
4420  fi
4421
4422
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4424$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4425if ${ac_cv_safe_to_define___extensions__+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430
4431#	  define __EXTENSIONS__ 1
4432	  $ac_includes_default
4433int
4434main ()
4435{
4436
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442  ac_cv_safe_to_define___extensions__=yes
4443else
4444  ac_cv_safe_to_define___extensions__=no
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4449$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4450  test $ac_cv_safe_to_define___extensions__ = yes &&
4451    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4452
4453  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4454
4455  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4456
4457  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4458
4459  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4460
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4464$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4465if ${ac_cv_c_const+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470
4471int
4472main ()
4473{
4474/* FIXME: Include the comments suggested by Paul. */
4475#ifndef __cplusplus
4476  /* Ultrix mips cc rejects this.  */
4477  typedef int charset[2];
4478  const charset cs;
4479  /* SunOS 4.1.1 cc rejects this.  */
4480  char const *const *pcpcc;
4481  char **ppc;
4482  /* NEC SVR4.0.2 mips cc rejects this.  */
4483  struct point {int x, y;};
4484  static struct point const zero = {0,0};
4485  /* AIX XL C 1.02.0.0 rejects this.
4486     It does not let you subtract one const X* pointer from another in
4487     an arm of an if-expression whose if-part is not a constant
4488     expression */
4489  const char *g = "string";
4490  pcpcc = &g + (g ? g-g : 0);
4491  /* HPUX 7.0 cc rejects these. */
4492  ++pcpcc;
4493  ppc = (char**) pcpcc;
4494  pcpcc = (char const *const *) ppc;
4495  { /* SCO 3.2v4 cc rejects this.  */
4496    char *t;
4497    char const *s = 0 ? (char *) 0 : (char const *) 0;
4498
4499    *t++ = 0;
4500    if (s) return 0;
4501  }
4502  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4503    int x[] = {25, 17};
4504    const int *foo = &x[0];
4505    ++foo;
4506  }
4507  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4508    typedef const int *iptr;
4509    iptr p = 0;
4510    ++p;
4511  }
4512  { /* AIX XL C 1.02.0.0 rejects this saying
4513       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4514    struct s { int j; const int *ap[3]; };
4515    struct s *b; b->j = 5;
4516  }
4517  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4518    const int foo = 10;
4519    if (!foo) return 0;
4520  }
4521  return !cs[0] && !zero.x;
4522#endif
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528if ac_fn_c_try_compile "$LINENO"; then :
4529  ac_cv_c_const=yes
4530else
4531  ac_cv_c_const=no
4532fi
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4536$as_echo "$ac_cv_c_const" >&6; }
4537if test $ac_cv_c_const = no; then
4538
4539$as_echo "#define const /**/" >>confdefs.h
4540
4541fi
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4544$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4545if ${ac_cv_c_restrict+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  ac_cv_c_restrict=no
4549   # The order here caters to the fact that C++ does not require restrict.
4550   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553typedef int * int_ptr;
4554	int foo (int_ptr $ac_kw ip) {
4555	return ip[0];
4556       }
4557int
4558main ()
4559{
4560int s[1];
4561	int * $ac_kw t = s;
4562	t[0] = 0;
4563	return foo(t)
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_compile "$LINENO"; then :
4569  ac_cv_c_restrict=$ac_kw
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572     test "$ac_cv_c_restrict" != no && break
4573   done
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4577$as_echo "$ac_cv_c_restrict" >&6; }
4578
4579 case $ac_cv_c_restrict in
4580   restrict) ;;
4581   no) $as_echo "#define restrict /**/" >>confdefs.h
4582 ;;
4583   *)  cat >>confdefs.h <<_ACEOF
4584#define restrict $ac_cv_c_restrict
4585_ACEOF
4586 ;;
4587 esac
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4590$as_echo_n "checking for working volatile... " >&6; }
4591if ${ac_cv_c_volatile+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596
4597int
4598main ()
4599{
4600
4601volatile int x;
4602int * volatile y = (int *) 0;
4603return !x && !y;
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608if ac_fn_c_try_compile "$LINENO"; then :
4609  ac_cv_c_volatile=yes
4610else
4611  ac_cv_c_volatile=no
4612fi
4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4616$as_echo "$ac_cv_c_volatile" >&6; }
4617if test $ac_cv_c_volatile = no; then
4618
4619$as_echo "#define volatile /**/" >>confdefs.h
4620
4621fi
4622
4623
4624# libtool
4625
4626case `pwd` in
4627  *\ * | *\	*)
4628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4630esac
4631
4632
4633
4634macro_version='2.4.2'
4635macro_revision='1.3337'
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649ltmain="$ac_aux_dir/ltmain.sh"
4650
4651# Make sure we can run config.sub.
4652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4653  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4654
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4656$as_echo_n "checking build system type... " >&6; }
4657if ${ac_cv_build+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  ac_build_alias=$build_alias
4661test "x$ac_build_alias" = x &&
4662  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4663test "x$ac_build_alias" = x &&
4664  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4665ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4666  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4667
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4670$as_echo "$ac_cv_build" >&6; }
4671case $ac_cv_build in
4672*-*-*) ;;
4673*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4674esac
4675build=$ac_cv_build
4676ac_save_IFS=$IFS; IFS='-'
4677set x $ac_cv_build
4678shift
4679build_cpu=$1
4680build_vendor=$2
4681shift; shift
4682# Remember, the first character of IFS is used to create $*,
4683# except with old shells:
4684build_os=$*
4685IFS=$ac_save_IFS
4686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4687
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4690$as_echo_n "checking host system type... " >&6; }
4691if ${ac_cv_host+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test "x$host_alias" = x; then
4695  ac_cv_host=$ac_cv_build
4696else
4697  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4698    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4699fi
4700
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703$as_echo "$ac_cv_host" >&6; }
4704case $ac_cv_host in
4705*-*-*) ;;
4706*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707esac
4708host=$ac_cv_host
4709ac_save_IFS=$IFS; IFS='-'
4710set x $ac_cv_host
4711shift
4712host_cpu=$1
4713host_vendor=$2
4714shift; shift
4715# Remember, the first character of IFS is used to create $*,
4716# except with old shells:
4717host_os=$*
4718IFS=$ac_save_IFS
4719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720
4721
4722# Backslashify metacharacters that are still active within
4723# double-quoted strings.
4724sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4725
4726# Same as above, but do not quote variable references.
4727double_quote_subst='s/\(["`\\]\)/\\\1/g'
4728
4729# Sed substitution to delay expansion of an escaped shell variable in a
4730# double_quote_subst'ed string.
4731delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4732
4733# Sed substitution to delay expansion of an escaped single quote.
4734delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4735
4736# Sed substitution to avoid accidental globbing in evaled expressions
4737no_glob_subst='s/\*/\\\*/g'
4738
4739ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4740ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4741ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4744$as_echo_n "checking how to print strings... " >&6; }
4745# Test print first, because it will be a builtin if present.
4746if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4747   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4748  ECHO='print -r --'
4749elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4750  ECHO='printf %s\n'
4751else
4752  # Use this function as a fallback that always works.
4753  func_fallback_echo ()
4754  {
4755    eval 'cat <<_LTECHO_EOF
4756$1
4757_LTECHO_EOF'
4758  }
4759  ECHO='func_fallback_echo'
4760fi
4761
4762# func_echo_all arg...
4763# Invoke $ECHO with all args, space-separated.
4764func_echo_all ()
4765{
4766    $ECHO ""
4767}
4768
4769case "$ECHO" in
4770  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4771$as_echo "printf" >&6; } ;;
4772  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4773$as_echo "print -r" >&6; } ;;
4774  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4775$as_echo "cat" >&6; } ;;
4776esac
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4792$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4793if ${ac_cv_path_SED+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797     for ac_i in 1 2 3 4 5 6 7; do
4798       ac_script="$ac_script$as_nl$ac_script"
4799     done
4800     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801     { ac_script=; unset ac_script;}
4802     if test -z "$SED"; then
4803  ac_path_SED_found=false
4804  # Loop through the user's path and test for each of PROGNAME-LIST
4805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808  IFS=$as_save_IFS
4809  test -z "$as_dir" && as_dir=.
4810    for ac_prog in sed gsed; do
4811    for ac_exec_ext in '' $ac_executable_extensions; do
4812      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4813      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4814# Check for GNU ac_path_SED and select it if it is found.
4815  # Check for GNU $ac_path_SED
4816case `"$ac_path_SED" --version 2>&1` in
4817*GNU*)
4818  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4819*)
4820  ac_count=0
4821  $as_echo_n 0123456789 >"conftest.in"
4822  while :
4823  do
4824    cat "conftest.in" "conftest.in" >"conftest.tmp"
4825    mv "conftest.tmp" "conftest.in"
4826    cp "conftest.in" "conftest.nl"
4827    $as_echo '' >> "conftest.nl"
4828    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830    as_fn_arith $ac_count + 1 && ac_count=$as_val
4831    if test $ac_count -gt ${ac_path_SED_max-0}; then
4832      # Best one so far, save it but keep looking for a better one
4833      ac_cv_path_SED="$ac_path_SED"
4834      ac_path_SED_max=$ac_count
4835    fi
4836    # 10*(2^10) chars as input seems more than enough
4837    test $ac_count -gt 10 && break
4838  done
4839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840esac
4841
4842      $ac_path_SED_found && break 3
4843    done
4844  done
4845  done
4846IFS=$as_save_IFS
4847  if test -z "$ac_cv_path_SED"; then
4848    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4849  fi
4850else
4851  ac_cv_path_SED=$SED
4852fi
4853
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4856$as_echo "$ac_cv_path_SED" >&6; }
4857 SED="$ac_cv_path_SED"
4858  rm -f conftest.sed
4859
4860test -z "$SED" && SED=sed
4861Xsed="$SED -e 1s/^X//"
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4874$as_echo_n "checking for fgrep... " >&6; }
4875if ${ac_cv_path_FGREP+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4879   then ac_cv_path_FGREP="$GREP -F"
4880   else
4881     if test -z "$FGREP"; then
4882  ac_path_FGREP_found=false
4883  # Loop through the user's path and test for each of PROGNAME-LIST
4884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_prog in fgrep; do
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4892      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4893# Check for GNU ac_path_FGREP and select it if it is found.
4894  # Check for GNU $ac_path_FGREP
4895case `"$ac_path_FGREP" --version 2>&1` in
4896*GNU*)
4897  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4898*)
4899  ac_count=0
4900  $as_echo_n 0123456789 >"conftest.in"
4901  while :
4902  do
4903    cat "conftest.in" "conftest.in" >"conftest.tmp"
4904    mv "conftest.tmp" "conftest.in"
4905    cp "conftest.in" "conftest.nl"
4906    $as_echo 'FGREP' >> "conftest.nl"
4907    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909    as_fn_arith $ac_count + 1 && ac_count=$as_val
4910    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4911      # Best one so far, save it but keep looking for a better one
4912      ac_cv_path_FGREP="$ac_path_FGREP"
4913      ac_path_FGREP_max=$ac_count
4914    fi
4915    # 10*(2^10) chars as input seems more than enough
4916    test $ac_count -gt 10 && break
4917  done
4918  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919esac
4920
4921      $ac_path_FGREP_found && break 3
4922    done
4923  done
4924  done
4925IFS=$as_save_IFS
4926  if test -z "$ac_cv_path_FGREP"; then
4927    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928  fi
4929else
4930  ac_cv_path_FGREP=$FGREP
4931fi
4932
4933   fi
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4936$as_echo "$ac_cv_path_FGREP" >&6; }
4937 FGREP="$ac_cv_path_FGREP"
4938
4939
4940test -z "$GREP" && GREP=grep
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960# Check whether --with-gnu-ld was given.
4961if test "${with_gnu_ld+set}" = set; then :
4962  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4963else
4964  with_gnu_ld=no
4965fi
4966
4967ac_prog=ld
4968if test "$GCC" = yes; then
4969  # Check if gcc -print-prog-name=ld gives a path.
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4971$as_echo_n "checking for ld used by $CC... " >&6; }
4972  case $host in
4973  *-*-mingw*)
4974    # gcc leaves a trailing carriage return which upsets mingw
4975    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4976  *)
4977    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4978  esac
4979  case $ac_prog in
4980    # Accept absolute paths.
4981    [\\/]* | ?:[\\/]*)
4982      re_direlt='/[^/][^/]*/\.\./'
4983      # Canonicalize the pathname of ld
4984      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4985      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4986	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4987      done
4988      test -z "$LD" && LD="$ac_prog"
4989      ;;
4990  "")
4991    # If it fails, then pretend we aren't using GCC.
4992    ac_prog=ld
4993    ;;
4994  *)
4995    # If it is relative, then search for the first ld in PATH.
4996    with_gnu_ld=unknown
4997    ;;
4998  esac
4999elif test "$with_gnu_ld" = yes; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5001$as_echo_n "checking for GNU ld... " >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5004$as_echo_n "checking for non-GNU ld... " >&6; }
5005fi
5006if ${lt_cv_path_LD+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -z "$LD"; then
5010  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5011  for ac_dir in $PATH; do
5012    IFS="$lt_save_ifs"
5013    test -z "$ac_dir" && ac_dir=.
5014    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5015      lt_cv_path_LD="$ac_dir/$ac_prog"
5016      # Check to see if the program is GNU ld.  I'd rather use --version,
5017      # but apparently some variants of GNU ld only accept -v.
5018      # Break only if it was the GNU/non-GNU ld that we prefer.
5019      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5020      *GNU* | *'with BFD'*)
5021	test "$with_gnu_ld" != no && break
5022	;;
5023      *)
5024	test "$with_gnu_ld" != yes && break
5025	;;
5026      esac
5027    fi
5028  done
5029  IFS="$lt_save_ifs"
5030else
5031  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5032fi
5033fi
5034
5035LD="$lt_cv_path_LD"
5036if test -n "$LD"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5038$as_echo "$LD" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5045$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5046if ${lt_cv_prog_gnu_ld+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5050case `$LD -v 2>&1 </dev/null` in
5051*GNU* | *'with BFD'*)
5052  lt_cv_prog_gnu_ld=yes
5053  ;;
5054*)
5055  lt_cv_prog_gnu_ld=no
5056  ;;
5057esac
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5060$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5061with_gnu_ld=$lt_cv_prog_gnu_ld
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5072$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5073if ${lt_cv_path_NM+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  if test -n "$NM"; then
5077  # Let the user override the test.
5078  lt_cv_path_NM="$NM"
5079else
5080  lt_nm_to_check="${ac_tool_prefix}nm"
5081  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5082    lt_nm_to_check="$lt_nm_to_check nm"
5083  fi
5084  for lt_tmp_nm in $lt_nm_to_check; do
5085    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5086    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5087      IFS="$lt_save_ifs"
5088      test -z "$ac_dir" && ac_dir=.
5089      tmp_nm="$ac_dir/$lt_tmp_nm"
5090      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5091	# Check to see if the nm accepts a BSD-compat flag.
5092	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5093	#   nm: unknown option "B" ignored
5094	# Tru64's nm complains that /dev/null is an invalid object file
5095	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5096	*/dev/null* | *'Invalid file or object type'*)
5097	  lt_cv_path_NM="$tmp_nm -B"
5098	  break
5099	  ;;
5100	*)
5101	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5102	  */dev/null*)
5103	    lt_cv_path_NM="$tmp_nm -p"
5104	    break
5105	    ;;
5106	  *)
5107	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5108	    continue # so that we can try to find one that supports BSD flags
5109	    ;;
5110	  esac
5111	  ;;
5112	esac
5113      fi
5114    done
5115    IFS="$lt_save_ifs"
5116  done
5117  : ${lt_cv_path_NM=no}
5118fi
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5121$as_echo "$lt_cv_path_NM" >&6; }
5122if test "$lt_cv_path_NM" != "no"; then
5123  NM="$lt_cv_path_NM"
5124else
5125  # Didn't find any BSD compatible name lister, look for dumpbin.
5126  if test -n "$DUMPBIN"; then :
5127    # Let the user override the test.
5128  else
5129    if test -n "$ac_tool_prefix"; then
5130  for ac_prog in dumpbin "link -dump"
5131  do
5132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if ${ac_cv_prog_DUMPBIN+:} false; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if test -n "$DUMPBIN"; then
5140  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145  IFS=$as_save_IFS
5146  test -z "$as_dir" && as_dir=.
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151    break 2
5152  fi
5153done
5154  done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159DUMPBIN=$ac_cv_prog_DUMPBIN
5160if test -n "$DUMPBIN"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5162$as_echo "$DUMPBIN" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169    test -n "$DUMPBIN" && break
5170  done
5171fi
5172if test -z "$DUMPBIN"; then
5173  ac_ct_DUMPBIN=$DUMPBIN
5174  for ac_prog in dumpbin "link -dump"
5175do
5176  # Extract the first word of "$ac_prog", so it can be a program name with args.
5177set dummy $ac_prog; ac_word=$2
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  if test -n "$ac_ct_DUMPBIN"; then
5184  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198  done
5199IFS=$as_save_IFS
5200
5201fi
5202fi
5203ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5204if test -n "$ac_ct_DUMPBIN"; then
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5206$as_echo "$ac_ct_DUMPBIN" >&6; }
5207else
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213  test -n "$ac_ct_DUMPBIN" && break
5214done
5215
5216  if test "x$ac_ct_DUMPBIN" = x; then
5217    DUMPBIN=":"
5218  else
5219    case $cross_compiling:$ac_tool_warned in
5220yes:)
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223ac_tool_warned=yes ;;
5224esac
5225    DUMPBIN=$ac_ct_DUMPBIN
5226  fi
5227fi
5228
5229    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5230    *COFF*)
5231      DUMPBIN="$DUMPBIN -symbols"
5232      ;;
5233    *)
5234      DUMPBIN=:
5235      ;;
5236    esac
5237  fi
5238
5239  if test "$DUMPBIN" != ":"; then
5240    NM="$DUMPBIN"
5241  fi
5242fi
5243test -z "$NM" && NM=nm
5244
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5251$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5252if ${lt_cv_nm_interface+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  lt_cv_nm_interface="BSD nm"
5256  echo "int some_variable = 0;" > conftest.$ac_ext
5257  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5258  (eval "$ac_compile" 2>conftest.err)
5259  cat conftest.err >&5
5260  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5261  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5262  cat conftest.err >&5
5263  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5264  cat conftest.out >&5
5265  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5266    lt_cv_nm_interface="MS dumpbin"
5267  fi
5268  rm -f conftest*
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5271$as_echo "$lt_cv_nm_interface" >&6; }
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5274$as_echo_n "checking whether ln -s works... " >&6; }
5275LN_S=$as_ln_s
5276if test "$LN_S" = "ln -s"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278$as_echo "yes" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5281$as_echo "no, using $LN_S" >&6; }
5282fi
5283
5284# find the maximum length of command line arguments
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5286$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5287if ${lt_cv_sys_max_cmd_len+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290    i=0
5291  teststring="ABCD"
5292
5293  case $build_os in
5294  msdosdjgpp*)
5295    # On DJGPP, this test can blow up pretty badly due to problems in libc
5296    # (any single argument exceeding 2000 bytes causes a buffer overrun
5297    # during glob expansion).  Even if it were fixed, the result of this
5298    # check would be larger than it should be.
5299    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5300    ;;
5301
5302  gnu*)
5303    # Under GNU Hurd, this test is not required because there is
5304    # no limit to the length of command line arguments.
5305    # Libtool will interpret -1 as no limit whatsoever
5306    lt_cv_sys_max_cmd_len=-1;
5307    ;;
5308
5309  cygwin* | mingw* | cegcc*)
5310    # On Win9x/ME, this test blows up -- it succeeds, but takes
5311    # about 5 minutes as the teststring grows exponentially.
5312    # Worse, since 9x/ME are not pre-emptively multitasking,
5313    # you end up with a "frozen" computer, even though with patience
5314    # the test eventually succeeds (with a max line length of 256k).
5315    # Instead, let's just punt: use the minimum linelength reported by
5316    # all of the supported platforms: 8192 (on NT/2K/XP).
5317    lt_cv_sys_max_cmd_len=8192;
5318    ;;
5319
5320  mint*)
5321    # On MiNT this can take a long time and run out of memory.
5322    lt_cv_sys_max_cmd_len=8192;
5323    ;;
5324
5325  amigaos*)
5326    # On AmigaOS with pdksh, this test takes hours, literally.
5327    # So we just punt and use a minimum line length of 8192.
5328    lt_cv_sys_max_cmd_len=8192;
5329    ;;
5330
5331  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5332    # This has been around since 386BSD, at least.  Likely further.
5333    if test -x /sbin/sysctl; then
5334      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5335    elif test -x /usr/sbin/sysctl; then
5336      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5337    else
5338      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5339    fi
5340    # And add a safety zone
5341    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5342    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5343    ;;
5344
5345  interix*)
5346    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5347    lt_cv_sys_max_cmd_len=196608
5348    ;;
5349
5350  os2*)
5351    # The test takes a long time on OS/2.
5352    lt_cv_sys_max_cmd_len=8192
5353    ;;
5354
5355  osf*)
5356    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5357    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5358    # nice to cause kernel panics so lets avoid the loop below.
5359    # First set a reasonable default.
5360    lt_cv_sys_max_cmd_len=16384
5361    #
5362    if test -x /sbin/sysconfig; then
5363      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5364        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5365      esac
5366    fi
5367    ;;
5368  sco3.2v5*)
5369    lt_cv_sys_max_cmd_len=102400
5370    ;;
5371  sysv5* | sco5v6* | sysv4.2uw2*)
5372    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5373    if test -n "$kargmax"; then
5374      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5375    else
5376      lt_cv_sys_max_cmd_len=32768
5377    fi
5378    ;;
5379  *)
5380    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5381    if test -n "$lt_cv_sys_max_cmd_len"; then
5382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5383      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5384    else
5385      # Make teststring a little bigger before we do anything with it.
5386      # a 1K string should be a reasonable start.
5387      for i in 1 2 3 4 5 6 7 8 ; do
5388        teststring=$teststring$teststring
5389      done
5390      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5391      # If test is not a shell built-in, we'll probably end up computing a
5392      # maximum length that is only half of the actual maximum length, but
5393      # we can't tell.
5394      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5395	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5396	      test $i != 17 # 1/2 MB should be enough
5397      do
5398        i=`expr $i + 1`
5399        teststring=$teststring$teststring
5400      done
5401      # Only check the string length outside the loop.
5402      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5403      teststring=
5404      # Add a significant safety factor because C++ compilers can tack on
5405      # massive amounts of additional arguments before passing them to the
5406      # linker.  It appears as though 1/2 is a usable value.
5407      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5408    fi
5409    ;;
5410  esac
5411
5412fi
5413
5414if test -n $lt_cv_sys_max_cmd_len ; then
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5416$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5417else
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5419$as_echo "none" >&6; }
5420fi
5421max_cmd_len=$lt_cv_sys_max_cmd_len
5422
5423
5424
5425
5426
5427
5428: ${CP="cp -f"}
5429: ${MV="mv -f"}
5430: ${RM="rm -f"}
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5433$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5434# Try some XSI features
5435xsi_shell=no
5436( _lt_dummy="a/b/c"
5437  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5438      = c,a/b,b/c, \
5439    && eval 'test $(( 1 + 1 )) -eq 2 \
5440    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5441  && xsi_shell=yes
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5443$as_echo "$xsi_shell" >&6; }
5444
5445
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5447$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5448lt_shell_append=no
5449( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5450    >/dev/null 2>&1 \
5451  && lt_shell_append=yes
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5453$as_echo "$lt_shell_append" >&6; }
5454
5455
5456if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5457  lt_unset=unset
5458else
5459  lt_unset=false
5460fi
5461
5462
5463
5464
5465
5466# test EBCDIC or ASCII
5467case `echo X|tr X '\101'` in
5468 A) # ASCII based system
5469    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5470  lt_SP2NL='tr \040 \012'
5471  lt_NL2SP='tr \015\012 \040\040'
5472  ;;
5473 *) # EBCDIC based system
5474  lt_SP2NL='tr \100 \n'
5475  lt_NL2SP='tr \r\n \100\100'
5476  ;;
5477esac
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5488$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5489if ${lt_cv_to_host_file_cmd+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  case $host in
5493  *-*-mingw* )
5494    case $build in
5495      *-*-mingw* ) # actually msys
5496        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5497        ;;
5498      *-*-cygwin* )
5499        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5500        ;;
5501      * ) # otherwise, assume *nix
5502        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5503        ;;
5504    esac
5505    ;;
5506  *-*-cygwin* )
5507    case $build in
5508      *-*-mingw* ) # actually msys
5509        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5510        ;;
5511      *-*-cygwin* )
5512        lt_cv_to_host_file_cmd=func_convert_file_noop
5513        ;;
5514      * ) # otherwise, assume *nix
5515        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5516        ;;
5517    esac
5518    ;;
5519  * ) # unhandled hosts (and "normal" native builds)
5520    lt_cv_to_host_file_cmd=func_convert_file_noop
5521    ;;
5522esac
5523
5524fi
5525
5526to_host_file_cmd=$lt_cv_to_host_file_cmd
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5528$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5529
5530
5531
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5535$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5536if ${lt_cv_to_tool_file_cmd+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  #assume ordinary cross tools, or native build.
5540lt_cv_to_tool_file_cmd=func_convert_file_noop
5541case $host in
5542  *-*-mingw* )
5543    case $build in
5544      *-*-mingw* ) # actually msys
5545        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5546        ;;
5547    esac
5548    ;;
5549esac
5550
5551fi
5552
5553to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5555$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5556
5557
5558
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5562$as_echo_n "checking for $LD option to reload object files... " >&6; }
5563if ${lt_cv_ld_reload_flag+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  lt_cv_ld_reload_flag='-r'
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5569$as_echo "$lt_cv_ld_reload_flag" >&6; }
5570reload_flag=$lt_cv_ld_reload_flag
5571case $reload_flag in
5572"" | " "*) ;;
5573*) reload_flag=" $reload_flag" ;;
5574esac
5575reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576case $host_os in
5577  cygwin* | mingw* | pw32* | cegcc*)
5578    if test "$GCC" != yes; then
5579      reload_cmds=false
5580    fi
5581    ;;
5582  darwin*)
5583    if test "$GCC" = yes; then
5584      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5585    else
5586      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587    fi
5588    ;;
5589esac
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599if test -n "$ac_tool_prefix"; then
5600  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5601set dummy ${ac_tool_prefix}objdump; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_OBJDUMP+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -n "$OBJDUMP"; then
5608  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615    for ac_exec_ext in '' $ac_executable_extensions; do
5616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622  done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627OBJDUMP=$ac_cv_prog_OBJDUMP
5628if test -n "$OBJDUMP"; then
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5630$as_echo "$OBJDUMP" >&6; }
5631else
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636
5637fi
5638if test -z "$ac_cv_prog_OBJDUMP"; then
5639  ac_ct_OBJDUMP=$OBJDUMP
5640  # Extract the first word of "objdump", so it can be a program name with args.
5641set dummy objdump; ac_word=$2
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
5644if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  if test -n "$ac_ct_OBJDUMP"; then
5648  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653  IFS=$as_save_IFS
5654  test -z "$as_dir" && as_dir=.
5655    for ac_exec_ext in '' $ac_executable_extensions; do
5656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659    break 2
5660  fi
5661done
5662  done
5663IFS=$as_save_IFS
5664
5665fi
5666fi
5667ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5668if test -n "$ac_ct_OBJDUMP"; then
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5670$as_echo "$ac_ct_OBJDUMP" >&6; }
5671else
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674fi
5675
5676  if test "x$ac_ct_OBJDUMP" = x; then
5677    OBJDUMP="false"
5678  else
5679    case $cross_compiling:$ac_tool_warned in
5680yes:)
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683ac_tool_warned=yes ;;
5684esac
5685    OBJDUMP=$ac_ct_OBJDUMP
5686  fi
5687else
5688  OBJDUMP="$ac_cv_prog_OBJDUMP"
5689fi
5690
5691test -z "$OBJDUMP" && OBJDUMP=objdump
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5702$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5703if ${lt_cv_deplibs_check_method+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  lt_cv_file_magic_cmd='$MAGIC_CMD'
5707lt_cv_file_magic_test_file=
5708lt_cv_deplibs_check_method='unknown'
5709# Need to set the preceding variable on all platforms that support
5710# interlibrary dependencies.
5711# 'none' -- dependencies not supported.
5712# `unknown' -- same as none, but documents that we really don't know.
5713# 'pass_all' -- all dependencies passed with no checks.
5714# 'test_compile' -- check by making test program.
5715# 'file_magic [[regex]]' -- check by looking for files in library path
5716# which responds to the $file_magic_cmd with a given extended regex.
5717# If you have `file' or equivalent on your system and you're not sure
5718# whether `pass_all' will *always* work, you probably want this one.
5719
5720case $host_os in
5721aix[4-9]*)
5722  lt_cv_deplibs_check_method=pass_all
5723  ;;
5724
5725beos*)
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728
5729bsdi[45]*)
5730  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5731  lt_cv_file_magic_cmd='/usr/bin/file -L'
5732  lt_cv_file_magic_test_file=/shlib/libc.so
5733  ;;
5734
5735cygwin*)
5736  # func_win32_libid is a shell function defined in ltmain.sh
5737  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738  lt_cv_file_magic_cmd='func_win32_libid'
5739  ;;
5740
5741mingw* | pw32*)
5742  # Base MSYS/MinGW do not provide the 'file' command needed by
5743  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5744  # unless we find 'file', for example because we are cross-compiling.
5745  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5746  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5747    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5748    lt_cv_file_magic_cmd='func_win32_libid'
5749  else
5750    # Keep this pattern in sync with the one in func_win32_libid.
5751    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5752    lt_cv_file_magic_cmd='$OBJDUMP -f'
5753  fi
5754  ;;
5755
5756cegcc*)
5757  # use the weaker test based on 'objdump'. See mingw*.
5758  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5759  lt_cv_file_magic_cmd='$OBJDUMP -f'
5760  ;;
5761
5762darwin* | rhapsody*)
5763  lt_cv_deplibs_check_method=pass_all
5764  ;;
5765
5766freebsd* | dragonfly*)
5767  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5768    case $host_cpu in
5769    i*86 )
5770      # Not sure whether the presence of OpenBSD here was a mistake.
5771      # Let's accept both of them until this is cleared up.
5772      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5773      lt_cv_file_magic_cmd=/usr/bin/file
5774      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5775      ;;
5776    esac
5777  else
5778    lt_cv_deplibs_check_method=pass_all
5779  fi
5780  ;;
5781
5782gnu*)
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786haiku*)
5787  lt_cv_deplibs_check_method=pass_all
5788  ;;
5789
5790hpux10.20* | hpux11*)
5791  lt_cv_file_magic_cmd=/usr/bin/file
5792  case $host_cpu in
5793  ia64*)
5794    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5795    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5796    ;;
5797  hppa*64*)
5798    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]'
5799    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5800    ;;
5801  *)
5802    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5803    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5804    ;;
5805  esac
5806  ;;
5807
5808interix[3-9]*)
5809  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5810  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5811  ;;
5812
5813irix5* | irix6* | nonstopux*)
5814  case $LD in
5815  *-32|*"-32 ") libmagic=32-bit;;
5816  *-n32|*"-n32 ") libmagic=N32;;
5817  *-64|*"-64 ") libmagic=64-bit;;
5818  *) libmagic=never-match;;
5819  esac
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823# This must be glibc/ELF.
5824linux* | k*bsd*-gnu | kopensolaris*-gnu)
5825  lt_cv_deplibs_check_method=pass_all
5826  ;;
5827
5828netbsd*)
5829  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5830    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5831  else
5832    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5833  fi
5834  ;;
5835
5836newos6*)
5837  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5838  lt_cv_file_magic_cmd=/usr/bin/file
5839  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5840  ;;
5841
5842*nto* | *qnx*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846openbsd*)
5847  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5849  else
5850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5851  fi
5852  ;;
5853
5854osf3* | osf4* | osf5*)
5855  lt_cv_deplibs_check_method=pass_all
5856  ;;
5857
5858rdos*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861
5862solaris*)
5863  lt_cv_deplibs_check_method=pass_all
5864  ;;
5865
5866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5867  lt_cv_deplibs_check_method=pass_all
5868  ;;
5869
5870sysv4 | sysv4.3*)
5871  case $host_vendor in
5872  motorola)
5873    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]'
5874    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5875    ;;
5876  ncr)
5877    lt_cv_deplibs_check_method=pass_all
5878    ;;
5879  sequent)
5880    lt_cv_file_magic_cmd='/bin/file'
5881    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5882    ;;
5883  sni)
5884    lt_cv_file_magic_cmd='/bin/file'
5885    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5886    lt_cv_file_magic_test_file=/lib/libc.so
5887    ;;
5888  siemens)
5889    lt_cv_deplibs_check_method=pass_all
5890    ;;
5891  pc)
5892    lt_cv_deplibs_check_method=pass_all
5893    ;;
5894  esac
5895  ;;
5896
5897tpf*)
5898  lt_cv_deplibs_check_method=pass_all
5899  ;;
5900esac
5901
5902fi
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5904$as_echo "$lt_cv_deplibs_check_method" >&6; }
5905
5906file_magic_glob=
5907want_nocaseglob=no
5908if test "$build" = "$host"; then
5909  case $host_os in
5910  mingw* | pw32*)
5911    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5912      want_nocaseglob=yes
5913    else
5914      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5915    fi
5916    ;;
5917  esac
5918fi
5919
5920file_magic_cmd=$lt_cv_file_magic_cmd
5921deplibs_check_method=$lt_cv_deplibs_check_method
5922test -z "$deplibs_check_method" && deplibs_check_method=unknown
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945if test -n "$ac_tool_prefix"; then
5946  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5947set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949$as_echo_n "checking for $ac_word... " >&6; }
5950if ${ac_cv_prog_DLLTOOL+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  if test -n "$DLLTOOL"; then
5954  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961    for ac_exec_ext in '' $ac_executable_extensions; do
5962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965    break 2
5966  fi
5967done
5968  done
5969IFS=$as_save_IFS
5970
5971fi
5972fi
5973DLLTOOL=$ac_cv_prog_DLLTOOL
5974if test -n "$DLLTOOL"; then
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5976$as_echo "$DLLTOOL" >&6; }
5977else
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979$as_echo "no" >&6; }
5980fi
5981
5982
5983fi
5984if test -z "$ac_cv_prog_DLLTOOL"; then
5985  ac_ct_DLLTOOL=$DLLTOOL
5986  # Extract the first word of "dlltool", so it can be a program name with args.
5987set dummy dlltool; ac_word=$2
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989$as_echo_n "checking for $ac_word... " >&6; }
5990if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  if test -n "$ac_ct_DLLTOOL"; then
5994  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999  IFS=$as_save_IFS
6000  test -z "$as_dir" && as_dir=.
6001    for ac_exec_ext in '' $ac_executable_extensions; do
6002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005    break 2
6006  fi
6007done
6008  done
6009IFS=$as_save_IFS
6010
6011fi
6012fi
6013ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6014if test -n "$ac_ct_DLLTOOL"; then
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6016$as_echo "$ac_ct_DLLTOOL" >&6; }
6017else
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019$as_echo "no" >&6; }
6020fi
6021
6022  if test "x$ac_ct_DLLTOOL" = x; then
6023    DLLTOOL="false"
6024  else
6025    case $cross_compiling:$ac_tool_warned in
6026yes:)
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6029ac_tool_warned=yes ;;
6030esac
6031    DLLTOOL=$ac_ct_DLLTOOL
6032  fi
6033else
6034  DLLTOOL="$ac_cv_prog_DLLTOOL"
6035fi
6036
6037test -z "$DLLTOOL" && DLLTOOL=dlltool
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6049$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6050if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  lt_cv_sharedlib_from_linklib_cmd='unknown'
6054
6055case $host_os in
6056cygwin* | mingw* | pw32* | cegcc*)
6057  # two different shell functions defined in ltmain.sh
6058  # decide which to use based on capabilities of $DLLTOOL
6059  case `$DLLTOOL --help 2>&1` in
6060  *--identify-strict*)
6061    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6062    ;;
6063  *)
6064    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6065    ;;
6066  esac
6067  ;;
6068*)
6069  # fallback: assume linklib IS sharedlib
6070  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6071  ;;
6072esac
6073
6074fi
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6076$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6077sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6078test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6079
6080
6081
6082
6083
6084
6085
6086if test -n "$ac_tool_prefix"; then
6087  for ac_prog in ar
6088  do
6089    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092$as_echo_n "checking for $ac_word... " >&6; }
6093if ${ac_cv_prog_AR+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  if test -n "$AR"; then
6097  ac_cv_prog_AR="$AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104    for ac_exec_ext in '' $ac_executable_extensions; do
6105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111  done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116AR=$ac_cv_prog_AR
6117if test -n "$AR"; then
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6119$as_echo "$AR" >&6; }
6120else
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125
6126    test -n "$AR" && break
6127  done
6128fi
6129if test -z "$AR"; then
6130  ac_ct_AR=$AR
6131  for ac_prog in ar
6132do
6133  # Extract the first word of "$ac_prog", so it can be a program name with args.
6134set dummy $ac_prog; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if ${ac_cv_prog_ac_ct_AR+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  if test -n "$ac_ct_AR"; then
6141  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148    for ac_exec_ext in '' $ac_executable_extensions; do
6149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150    ac_cv_prog_ac_ct_AR="$ac_prog"
6151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155  done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161if test -n "$ac_ct_AR"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6163$as_echo "$ac_ct_AR" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170  test -n "$ac_ct_AR" && break
6171done
6172
6173  if test "x$ac_ct_AR" = x; then
6174    AR="false"
6175  else
6176    case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182    AR=$ac_ct_AR
6183  fi
6184fi
6185
6186: ${AR=ar}
6187: ${AR_FLAGS=cru}
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6200$as_echo_n "checking for archiver @FILE support... " >&6; }
6201if ${lt_cv_ar_at_file+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  lt_cv_ar_at_file=no
6205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h.  */
6207
6208int
6209main ()
6210{
6211
6212  ;
6213  return 0;
6214}
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217  echo conftest.$ac_objext > conftest.lst
6218      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6219      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6220  (eval $lt_ar_try) 2>&5
6221  ac_status=$?
6222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223  test $ac_status = 0; }
6224      if test "$ac_status" -eq 0; then
6225	# Ensure the archiver fails upon bogus file names.
6226	rm -f conftest.$ac_objext libconftest.a
6227	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6228  (eval $lt_ar_try) 2>&5
6229  ac_status=$?
6230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231  test $ac_status = 0; }
6232	if test "$ac_status" -ne 0; then
6233          lt_cv_ar_at_file=@
6234        fi
6235      fi
6236      rm -f conftest.* libconftest.a
6237
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6243$as_echo "$lt_cv_ar_at_file" >&6; }
6244
6245if test "x$lt_cv_ar_at_file" = xno; then
6246  archiver_list_spec=
6247else
6248  archiver_list_spec=$lt_cv_ar_at_file
6249fi
6250
6251
6252
6253
6254
6255
6256
6257if test -n "$ac_tool_prefix"; then
6258  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6259set dummy ${ac_tool_prefix}strip; ac_word=$2
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261$as_echo_n "checking for $ac_word... " >&6; }
6262if ${ac_cv_prog_STRIP+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  if test -n "$STRIP"; then
6266  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6267else
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271  IFS=$as_save_IFS
6272  test -z "$as_dir" && as_dir=.
6273    for ac_exec_ext in '' $ac_executable_extensions; do
6274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277    break 2
6278  fi
6279done
6280  done
6281IFS=$as_save_IFS
6282
6283fi
6284fi
6285STRIP=$ac_cv_prog_STRIP
6286if test -n "$STRIP"; then
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6288$as_echo "$STRIP" >&6; }
6289else
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291$as_echo "no" >&6; }
6292fi
6293
6294
6295fi
6296if test -z "$ac_cv_prog_STRIP"; then
6297  ac_ct_STRIP=$STRIP
6298  # Extract the first word of "strip", so it can be a program name with args.
6299set dummy strip; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  if test -n "$ac_ct_STRIP"; then
6306  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313    for ac_exec_ext in '' $ac_executable_extensions; do
6314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315    ac_cv_prog_ac_ct_STRIP="strip"
6316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320  done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6326if test -n "$ac_ct_STRIP"; then
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6328$as_echo "$ac_ct_STRIP" >&6; }
6329else
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
6333
6334  if test "x$ac_ct_STRIP" = x; then
6335    STRIP=":"
6336  else
6337    case $cross_compiling:$ac_tool_warned in
6338yes:)
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341ac_tool_warned=yes ;;
6342esac
6343    STRIP=$ac_ct_STRIP
6344  fi
6345else
6346  STRIP="$ac_cv_prog_STRIP"
6347fi
6348
6349test -z "$STRIP" && STRIP=:
6350
6351
6352
6353
6354
6355
6356if test -n "$ac_tool_prefix"; then
6357  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360$as_echo_n "checking for $ac_word... " >&6; }
6361if ${ac_cv_prog_RANLIB+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364  if test -n "$RANLIB"; then
6365  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370  IFS=$as_save_IFS
6371  test -z "$as_dir" && as_dir=.
6372    for ac_exec_ext in '' $ac_executable_extensions; do
6373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376    break 2
6377  fi
6378done
6379  done
6380IFS=$as_save_IFS
6381
6382fi
6383fi
6384RANLIB=$ac_cv_prog_RANLIB
6385if test -n "$RANLIB"; then
6386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6387$as_echo "$RANLIB" >&6; }
6388else
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390$as_echo "no" >&6; }
6391fi
6392
6393
6394fi
6395if test -z "$ac_cv_prog_RANLIB"; then
6396  ac_ct_RANLIB=$RANLIB
6397  # Extract the first word of "ranlib", so it can be a program name with args.
6398set dummy ranlib; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
6401if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  if test -n "$ac_ct_RANLIB"; then
6405  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412    for ac_exec_ext in '' $ac_executable_extensions; do
6413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414    ac_cv_prog_ac_ct_RANLIB="ranlib"
6415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416    break 2
6417  fi
6418done
6419  done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6425if test -n "$ac_ct_RANLIB"; then
6426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6427$as_echo "$ac_ct_RANLIB" >&6; }
6428else
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433  if test "x$ac_ct_RANLIB" = x; then
6434    RANLIB=":"
6435  else
6436    case $cross_compiling:$ac_tool_warned in
6437yes:)
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440ac_tool_warned=yes ;;
6441esac
6442    RANLIB=$ac_ct_RANLIB
6443  fi
6444else
6445  RANLIB="$ac_cv_prog_RANLIB"
6446fi
6447
6448test -z "$RANLIB" && RANLIB=:
6449
6450
6451
6452
6453
6454
6455# Determine commands to create old-style static archives.
6456old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6457old_postinstall_cmds='chmod 644 $oldlib'
6458old_postuninstall_cmds=
6459
6460if test -n "$RANLIB"; then
6461  case $host_os in
6462  openbsd*)
6463    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6464    ;;
6465  *)
6466    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6467    ;;
6468  esac
6469  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6470fi
6471
6472case $host_os in
6473  darwin*)
6474    lock_old_archive_extraction=yes ;;
6475  *)
6476    lock_old_archive_extraction=no ;;
6477esac
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517# If no C compiler was specified, use CC.
6518LTCC=${LTCC-"$CC"}
6519
6520# If no C compiler flags were specified, use CFLAGS.
6521LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6522
6523# Allow CC to be a program name with arguments.
6524compiler=$CC
6525
6526
6527# Check for command to grab the raw symbol name followed by C symbol from nm.
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6529$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6530if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533
6534# These are sane defaults that work on at least a few old systems.
6535# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6536
6537# Character class describing NM global symbol codes.
6538symcode='[BCDEGRST]'
6539
6540# Regexp to match symbols that can be accessed directly from C.
6541sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6542
6543# Define system-specific variables.
6544case $host_os in
6545aix*)
6546  symcode='[BCDT]'
6547  ;;
6548cygwin* | mingw* | pw32* | cegcc*)
6549  symcode='[ABCDGISTW]'
6550  ;;
6551hpux*)
6552  if test "$host_cpu" = ia64; then
6553    symcode='[ABCDEGRST]'
6554  fi
6555  ;;
6556irix* | nonstopux*)
6557  symcode='[BCDEGRST]'
6558  ;;
6559osf*)
6560  symcode='[BCDEGQRST]'
6561  ;;
6562solaris*)
6563  symcode='[BDRT]'
6564  ;;
6565sco3.2v5*)
6566  symcode='[DT]'
6567  ;;
6568sysv4.2uw2*)
6569  symcode='[DT]'
6570  ;;
6571sysv5* | sco5v6* | unixware* | OpenUNIX*)
6572  symcode='[ABDT]'
6573  ;;
6574sysv4)
6575  symcode='[DFNSTU]'
6576  ;;
6577esac
6578
6579# If we're using GNU nm, then use its standard symbol codes.
6580case `$NM -V 2>&1` in
6581*GNU* | *'with BFD'*)
6582  symcode='[ABCDGIRSTW]' ;;
6583esac
6584
6585# Transform an extracted symbol line into a proper C declaration.
6586# Some systems (esp. on ia64) link data and code symbols differently,
6587# so use this general approach.
6588lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6589
6590# Transform an extracted symbol line into symbol name and symbol address
6591lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6592lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6593
6594# Handle CRLF in mingw tool chain
6595opt_cr=
6596case $build_os in
6597mingw*)
6598  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6599  ;;
6600esac
6601
6602# Try without a prefix underscore, then with it.
6603for ac_symprfx in "" "_"; do
6604
6605  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606  symxfrm="\\1 $ac_symprfx\\2 \\2"
6607
6608  # Write the raw and C identifiers.
6609  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6610    # Fake it for dumpbin and say T for any non-static function
6611    # and D for any global variable.
6612    # Also find C++ and __fastcall symbols from MSVC++,
6613    # which start with @ or ?.
6614    lt_cv_sys_global_symbol_pipe="$AWK '"\
6615"     {last_section=section; section=\$ 3};"\
6616"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6617"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6618"     \$ 0!~/External *\|/{next};"\
6619"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6620"     {if(hide[section]) next};"\
6621"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6622"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6623"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6624"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6625"     ' prfx=^$ac_symprfx"
6626  else
6627    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6628  fi
6629  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6630
6631  # Check to see that the pipe works correctly.
6632  pipe_works=no
6633
6634  rm -f conftest*
6635  cat > conftest.$ac_ext <<_LT_EOF
6636#ifdef __cplusplus
6637extern "C" {
6638#endif
6639char nm_test_var;
6640void nm_test_func(void);
6641void nm_test_func(void){}
6642#ifdef __cplusplus
6643}
6644#endif
6645int main(){nm_test_var='a';nm_test_func();return(0);}
6646_LT_EOF
6647
6648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649  (eval $ac_compile) 2>&5
6650  ac_status=$?
6651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652  test $ac_status = 0; }; then
6653    # Now try to grab the symbols.
6654    nlist=conftest.nm
6655    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6656  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6657  ac_status=$?
6658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659  test $ac_status = 0; } && test -s "$nlist"; then
6660      # Try sorting and uniquifying the output.
6661      if sort "$nlist" | uniq > "$nlist"T; then
6662	mv -f "$nlist"T "$nlist"
6663      else
6664	rm -f "$nlist"T
6665      fi
6666
6667      # Make sure that we snagged all the symbols we need.
6668      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6669	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6670	  cat <<_LT_EOF > conftest.$ac_ext
6671/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6672#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6673/* DATA imports from DLLs on WIN32 con't be const, because runtime
6674   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6675# define LT_DLSYM_CONST
6676#elif defined(__osf__)
6677/* This system does not cope well with relocations in const data.  */
6678# define LT_DLSYM_CONST
6679#else
6680# define LT_DLSYM_CONST const
6681#endif
6682
6683#ifdef __cplusplus
6684extern "C" {
6685#endif
6686
6687_LT_EOF
6688	  # Now generate the symbol file.
6689	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6690
6691	  cat <<_LT_EOF >> conftest.$ac_ext
6692
6693/* The mapping between symbol names and symbols.  */
6694LT_DLSYM_CONST struct {
6695  const char *name;
6696  void       *address;
6697}
6698lt__PROGRAM__LTX_preloaded_symbols[] =
6699{
6700  { "@PROGRAM@", (void *) 0 },
6701_LT_EOF
6702	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6703	  cat <<\_LT_EOF >> conftest.$ac_ext
6704  {0, (void *) 0}
6705};
6706
6707/* This works around a problem in FreeBSD linker */
6708#ifdef FREEBSD_WORKAROUND
6709static const void *lt_preloaded_setup() {
6710  return lt__PROGRAM__LTX_preloaded_symbols;
6711}
6712#endif
6713
6714#ifdef __cplusplus
6715}
6716#endif
6717_LT_EOF
6718	  # Now try linking the two files.
6719	  mv conftest.$ac_objext conftstm.$ac_objext
6720	  lt_globsym_save_LIBS=$LIBS
6721	  lt_globsym_save_CFLAGS=$CFLAGS
6722	  LIBS="conftstm.$ac_objext"
6723	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6724	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6725  (eval $ac_link) 2>&5
6726  ac_status=$?
6727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6729	    pipe_works=yes
6730	  fi
6731	  LIBS=$lt_globsym_save_LIBS
6732	  CFLAGS=$lt_globsym_save_CFLAGS
6733	else
6734	  echo "cannot find nm_test_func in $nlist" >&5
6735	fi
6736      else
6737	echo "cannot find nm_test_var in $nlist" >&5
6738      fi
6739    else
6740      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6741    fi
6742  else
6743    echo "$progname: failed program was:" >&5
6744    cat conftest.$ac_ext >&5
6745  fi
6746  rm -rf conftest* conftst*
6747
6748  # Do not use the global_symbol_pipe unless it works.
6749  if test "$pipe_works" = yes; then
6750    break
6751  else
6752    lt_cv_sys_global_symbol_pipe=
6753  fi
6754done
6755
6756fi
6757
6758if test -z "$lt_cv_sys_global_symbol_pipe"; then
6759  lt_cv_sys_global_symbol_to_cdecl=
6760fi
6761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6763$as_echo "failed" >&6; }
6764else
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6766$as_echo "ok" >&6; }
6767fi
6768
6769# Response file support.
6770if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6771  nm_file_list_spec='@'
6772elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6773  nm_file_list_spec='@'
6774fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6803$as_echo_n "checking for sysroot... " >&6; }
6804
6805# Check whether --with-sysroot was given.
6806if test "${with_sysroot+set}" = set; then :
6807  withval=$with_sysroot;
6808else
6809  with_sysroot=no
6810fi
6811
6812
6813lt_sysroot=
6814case ${with_sysroot} in #(
6815 yes)
6816   if test "$GCC" = yes; then
6817     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6818   fi
6819   ;; #(
6820 /*)
6821   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6822   ;; #(
6823 no|'')
6824   ;; #(
6825 *)
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6827$as_echo "${with_sysroot}" >&6; }
6828   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6829   ;;
6830esac
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6833$as_echo "${lt_sysroot:-no}" >&6; }
6834
6835
6836
6837
6838
6839# Check whether --enable-libtool-lock was given.
6840if test "${enable_libtool_lock+set}" = set; then :
6841  enableval=$enable_libtool_lock;
6842fi
6843
6844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6845
6846# Some flags need to be propagated to the compiler or linker for good
6847# libtool support.
6848case $host in
6849ia64-*-hpux*)
6850  # Find out which ABI we are using.
6851  echo 'int i;' > conftest.$ac_ext
6852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853  (eval $ac_compile) 2>&5
6854  ac_status=$?
6855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856  test $ac_status = 0; }; then
6857    case `/usr/bin/file conftest.$ac_objext` in
6858      *ELF-32*)
6859	HPUX_IA64_MODE="32"
6860	;;
6861      *ELF-64*)
6862	HPUX_IA64_MODE="64"
6863	;;
6864    esac
6865  fi
6866  rm -rf conftest*
6867  ;;
6868*-*-irix6*)
6869  # Find out which ABI we are using.
6870  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872  (eval $ac_compile) 2>&5
6873  ac_status=$?
6874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875  test $ac_status = 0; }; then
6876    if test "$lt_cv_prog_gnu_ld" = yes; then
6877      case `/usr/bin/file conftest.$ac_objext` in
6878	*32-bit*)
6879	  LD="${LD-ld} -melf32bsmip"
6880	  ;;
6881	*N32*)
6882	  LD="${LD-ld} -melf32bmipn32"
6883	  ;;
6884	*64-bit*)
6885	  LD="${LD-ld} -melf64bmip"
6886	;;
6887      esac
6888    else
6889      case `/usr/bin/file conftest.$ac_objext` in
6890	*32-bit*)
6891	  LD="${LD-ld} -32"
6892	  ;;
6893	*N32*)
6894	  LD="${LD-ld} -n32"
6895	  ;;
6896	*64-bit*)
6897	  LD="${LD-ld} -64"
6898	  ;;
6899      esac
6900    fi
6901  fi
6902  rm -rf conftest*
6903  ;;
6904
6905x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6906s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6907  # Find out which ABI we are using.
6908  echo 'int i;' > conftest.$ac_ext
6909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910  (eval $ac_compile) 2>&5
6911  ac_status=$?
6912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913  test $ac_status = 0; }; then
6914    case `/usr/bin/file conftest.o` in
6915      *32-bit*)
6916	case $host in
6917	  x86_64-*kfreebsd*-gnu)
6918	    LD="${LD-ld} -m elf_i386_fbsd"
6919	    ;;
6920	  x86_64-*linux*)
6921	    LD="${LD-ld} -m elf_i386"
6922	    ;;
6923	  ppc64-*linux*|powerpc64-*linux*)
6924	    LD="${LD-ld} -m elf32ppclinux"
6925	    ;;
6926	  s390x-*linux*)
6927	    LD="${LD-ld} -m elf_s390"
6928	    ;;
6929	  sparc64-*linux*)
6930	    LD="${LD-ld} -m elf32_sparc"
6931	    ;;
6932	esac
6933	;;
6934      *64-bit*)
6935	case $host in
6936	  x86_64-*kfreebsd*-gnu)
6937	    LD="${LD-ld} -m elf_x86_64_fbsd"
6938	    ;;
6939	  x86_64-*linux*)
6940	    LD="${LD-ld} -m elf_x86_64"
6941	    ;;
6942	  ppc*-*linux*|powerpc*-*linux*)
6943	    LD="${LD-ld} -m elf64ppc"
6944	    ;;
6945	  s390*-*linux*|s390*-*tpf*)
6946	    LD="${LD-ld} -m elf64_s390"
6947	    ;;
6948	  sparc*-*linux*)
6949	    LD="${LD-ld} -m elf64_sparc"
6950	    ;;
6951	esac
6952	;;
6953    esac
6954  fi
6955  rm -rf conftest*
6956  ;;
6957
6958*-*-sco3.2v5*)
6959  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960  SAVE_CFLAGS="$CFLAGS"
6961  CFLAGS="$CFLAGS -belf"
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964if ${lt_cv_cc_needs_belf+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  ac_ext=c
6968ac_cpp='$CPP $CPPFLAGS'
6969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
6973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985  lt_cv_cc_needs_belf=yes
6986else
6987  lt_cv_cc_needs_belf=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990    conftest$ac_exeext conftest.$ac_ext
6991     ac_ext=c
6992ac_cpp='$CPP $CPPFLAGS'
6993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999$as_echo "$lt_cv_cc_needs_belf" >&6; }
7000  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7001    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002    CFLAGS="$SAVE_CFLAGS"
7003  fi
7004  ;;
7005*-*solaris*)
7006  # Find out which ABI we are using.
7007  echo 'int i;' > conftest.$ac_ext
7008  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7009  (eval $ac_compile) 2>&5
7010  ac_status=$?
7011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012  test $ac_status = 0; }; then
7013    case `/usr/bin/file conftest.o` in
7014    *64-bit*)
7015      case $lt_cv_prog_gnu_ld in
7016      yes*)
7017        case $host in
7018        i?86-*-solaris*)
7019          LD="${LD-ld} -m elf_x86_64"
7020          ;;
7021        sparc*-*-solaris*)
7022          LD="${LD-ld} -m elf64_sparc"
7023          ;;
7024        esac
7025        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7026        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7027          LD="${LD-ld}_sol2"
7028        fi
7029        ;;
7030      *)
7031	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7032	  LD="${LD-ld} -64"
7033	fi
7034	;;
7035      esac
7036      ;;
7037    esac
7038  fi
7039  rm -rf conftest*
7040  ;;
7041esac
7042
7043need_locks="$enable_libtool_lock"
7044
7045if test -n "$ac_tool_prefix"; then
7046  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7047set dummy ${ac_tool_prefix}mt; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
7050if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  if test -n "$MANIFEST_TOOL"; then
7054  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059  IFS=$as_save_IFS
7060  test -z "$as_dir" && as_dir=.
7061    for ac_exec_ext in '' $ac_executable_extensions; do
7062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065    break 2
7066  fi
7067done
7068  done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7074if test -n "$MANIFEST_TOOL"; then
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7076$as_echo "$MANIFEST_TOOL" >&6; }
7077else
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082
7083fi
7084if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7085  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7086  # Extract the first word of "mt", so it can be a program name with args.
7087set dummy mt; ac_word=$2
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089$as_echo_n "checking for $ac_word... " >&6; }
7090if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  if test -n "$ac_ct_MANIFEST_TOOL"; then
7094  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099  IFS=$as_save_IFS
7100  test -z "$as_dir" && as_dir=.
7101    for ac_exec_ext in '' $ac_executable_extensions; do
7102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105    break 2
7106  fi
7107done
7108  done
7109IFS=$as_save_IFS
7110
7111fi
7112fi
7113ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7114if test -n "$ac_ct_MANIFEST_TOOL"; then
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7116$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7117else
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119$as_echo "no" >&6; }
7120fi
7121
7122  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7123    MANIFEST_TOOL=":"
7124  else
7125    case $cross_compiling:$ac_tool_warned in
7126yes:)
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129ac_tool_warned=yes ;;
7130esac
7131    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7132  fi
7133else
7134  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7135fi
7136
7137test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7139$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7140if ${lt_cv_path_mainfest_tool+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  lt_cv_path_mainfest_tool=no
7144  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7145  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7146  cat conftest.err >&5
7147  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7148    lt_cv_path_mainfest_tool=yes
7149  fi
7150  rm -f conftest*
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7153$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7154if test "x$lt_cv_path_mainfest_tool" != xyes; then
7155  MANIFEST_TOOL=:
7156fi
7157
7158
7159
7160
7161
7162
7163  case $host_os in
7164    rhapsody* | darwin*)
7165    if test -n "$ac_tool_prefix"; then
7166  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if ${ac_cv_prog_DSYMUTIL+:} false; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  if test -n "$DSYMUTIL"; then
7174  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194if test -n "$DSYMUTIL"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7196$as_echo "$DSYMUTIL" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202
7203fi
7204if test -z "$ac_cv_prog_DSYMUTIL"; then
7205  ac_ct_DSYMUTIL=$DSYMUTIL
7206  # Extract the first word of "dsymutil", so it can be a program name with args.
7207set dummy dsymutil; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$ac_ct_DSYMUTIL"; then
7214  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234if test -n "$ac_ct_DSYMUTIL"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7236$as_echo "$ac_ct_DSYMUTIL" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242  if test "x$ac_ct_DSYMUTIL" = x; then
7243    DSYMUTIL=":"
7244  else
7245    case $cross_compiling:$ac_tool_warned in
7246yes:)
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249ac_tool_warned=yes ;;
7250esac
7251    DSYMUTIL=$ac_ct_DSYMUTIL
7252  fi
7253else
7254  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7255fi
7256
7257    if test -n "$ac_tool_prefix"; then
7258  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_prog_NMEDIT+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$NMEDIT"; then
7266  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273    for ac_exec_ext in '' $ac_executable_extensions; do
7274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280  done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285NMEDIT=$ac_cv_prog_NMEDIT
7286if test -n "$NMEDIT"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7288$as_echo "$NMEDIT" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294
7295fi
7296if test -z "$ac_cv_prog_NMEDIT"; then
7297  ac_ct_NMEDIT=$NMEDIT
7298  # Extract the first word of "nmedit", so it can be a program name with args.
7299set dummy nmedit; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$ac_ct_NMEDIT"; then
7306  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313    for ac_exec_ext in '' $ac_executable_extensions; do
7314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320  done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326if test -n "$ac_ct_NMEDIT"; then
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7328$as_echo "$ac_ct_NMEDIT" >&6; }
7329else
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334  if test "x$ac_ct_NMEDIT" = x; then
7335    NMEDIT=":"
7336  else
7337    case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343    NMEDIT=$ac_ct_NMEDIT
7344  fi
7345else
7346  NMEDIT="$ac_cv_prog_NMEDIT"
7347fi
7348
7349    if test -n "$ac_tool_prefix"; then
7350  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}lipo; ac_word=$2
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if ${ac_cv_prog_LIPO+:} false; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  if test -n "$LIPO"; then
7358  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365    for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372  done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377LIPO=$ac_cv_prog_LIPO
7378if test -n "$LIPO"; then
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7380$as_echo "$LIPO" >&6; }
7381else
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386
7387fi
7388if test -z "$ac_cv_prog_LIPO"; then
7389  ac_ct_LIPO=$LIPO
7390  # Extract the first word of "lipo", so it can be a program name with args.
7391set dummy lipo; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$ac_ct_LIPO"; then
7398  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_prog_ac_ct_LIPO="lipo"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7418if test -n "$ac_ct_LIPO"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7420$as_echo "$ac_ct_LIPO" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426  if test "x$ac_ct_LIPO" = x; then
7427    LIPO=":"
7428  else
7429    case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435    LIPO=$ac_ct_LIPO
7436  fi
7437else
7438  LIPO="$ac_cv_prog_LIPO"
7439fi
7440
7441    if test -n "$ac_tool_prefix"; then
7442  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7443set dummy ${ac_tool_prefix}otool; ac_word=$2
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445$as_echo_n "checking for $ac_word... " >&6; }
7446if ${ac_cv_prog_OTOOL+:} false; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  if test -n "$OTOOL"; then
7450  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457    for ac_exec_ext in '' $ac_executable_extensions; do
7458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464  done
7465IFS=$as_save_IFS
7466
7467fi
7468fi
7469OTOOL=$ac_cv_prog_OTOOL
7470if test -n "$OTOOL"; then
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7472$as_echo "$OTOOL" >&6; }
7473else
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476fi
7477
7478
7479fi
7480if test -z "$ac_cv_prog_OTOOL"; then
7481  ac_ct_OTOOL=$OTOOL
7482  # Extract the first word of "otool", so it can be a program name with args.
7483set dummy otool; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  if test -n "$ac_ct_OTOOL"; then
7490  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497    for ac_exec_ext in '' $ac_executable_extensions; do
7498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499    ac_cv_prog_ac_ct_OTOOL="otool"
7500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504  done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7510if test -n "$ac_ct_OTOOL"; then
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7512$as_echo "$ac_ct_OTOOL" >&6; }
7513else
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518  if test "x$ac_ct_OTOOL" = x; then
7519    OTOOL=":"
7520  else
7521    case $cross_compiling:$ac_tool_warned in
7522yes:)
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525ac_tool_warned=yes ;;
7526esac
7527    OTOOL=$ac_ct_OTOOL
7528  fi
7529else
7530  OTOOL="$ac_cv_prog_OTOOL"
7531fi
7532
7533    if test -n "$ac_tool_prefix"; then
7534  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7535set dummy ${ac_tool_prefix}otool64; ac_word=$2
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if ${ac_cv_prog_OTOOL64+:} false; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  if test -n "$OTOOL64"; then
7542  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7543else
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547  IFS=$as_save_IFS
7548  test -z "$as_dir" && as_dir=.
7549    for ac_exec_ext in '' $ac_executable_extensions; do
7550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553    break 2
7554  fi
7555done
7556  done
7557IFS=$as_save_IFS
7558
7559fi
7560fi
7561OTOOL64=$ac_cv_prog_OTOOL64
7562if test -n "$OTOOL64"; then
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7564$as_echo "$OTOOL64" >&6; }
7565else
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570
7571fi
7572if test -z "$ac_cv_prog_OTOOL64"; then
7573  ac_ct_OTOOL64=$OTOOL64
7574  # Extract the first word of "otool64", so it can be a program name with args.
7575set dummy otool64; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  if test -n "$ac_ct_OTOOL64"; then
7582  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589    for ac_exec_ext in '' $ac_executable_extensions; do
7590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591    ac_cv_prog_ac_ct_OTOOL64="otool64"
7592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596  done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7602if test -n "$ac_ct_OTOOL64"; then
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7604$as_echo "$ac_ct_OTOOL64" >&6; }
7605else
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610  if test "x$ac_ct_OTOOL64" = x; then
7611    OTOOL64=":"
7612  else
7613    case $cross_compiling:$ac_tool_warned in
7614yes:)
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617ac_tool_warned=yes ;;
7618esac
7619    OTOOL64=$ac_ct_OTOOL64
7620  fi
7621else
7622  OTOOL64="$ac_cv_prog_OTOOL64"
7623fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7652$as_echo_n "checking for -single_module linker flag... " >&6; }
7653if ${lt_cv_apple_cc_single_mod+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  lt_cv_apple_cc_single_mod=no
7657      if test -z "${LT_MULTI_MODULE}"; then
7658	# By default we will add the -single_module flag. You can override
7659	# by either setting the environment variable LT_MULTI_MODULE
7660	# non-empty at configure time, or by adding -multi_module to the
7661	# link flags.
7662	rm -rf libconftest.dylib*
7663	echo "int foo(void){return 1;}" > conftest.c
7664	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7665-dynamiclib -Wl,-single_module conftest.c" >&5
7666	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7668        _lt_result=$?
7669	# If there is a non-empty error log, and "single_module"
7670	# appears in it, assume the flag caused a linker warning
7671        if test -s conftest.err && $GREP single_module conftest.err; then
7672	  cat conftest.err >&5
7673	# Otherwise, if the output was created with a 0 exit code from
7674	# the compiler, it worked.
7675	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7676	  lt_cv_apple_cc_single_mod=yes
7677	else
7678	  cat conftest.err >&5
7679	fi
7680	rm -rf libconftest.dylib*
7681	rm -f conftest.*
7682      fi
7683fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7685$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7686
7687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7688$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7689if ${lt_cv_ld_exported_symbols_list+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  lt_cv_ld_exported_symbols_list=no
7693      save_LDFLAGS=$LDFLAGS
7694      echo "_main" > conftest.sym
7695      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698
7699int
7700main ()
7701{
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707if ac_fn_c_try_link "$LINENO"; then :
7708  lt_cv_ld_exported_symbols_list=yes
7709else
7710  lt_cv_ld_exported_symbols_list=no
7711fi
7712rm -f core conftest.err conftest.$ac_objext \
7713    conftest$ac_exeext conftest.$ac_ext
7714	LDFLAGS="$save_LDFLAGS"
7715
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7718$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7719
7720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7721$as_echo_n "checking for -force_load linker flag... " >&6; }
7722if ${lt_cv_ld_force_load+:} false; then :
7723  $as_echo_n "(cached) " >&6
7724else
7725  lt_cv_ld_force_load=no
7726      cat > conftest.c << _LT_EOF
7727int forced_loaded() { return 2;}
7728_LT_EOF
7729      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7730      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7731      echo "$AR cru libconftest.a conftest.o" >&5
7732      $AR cru libconftest.a conftest.o 2>&5
7733      echo "$RANLIB libconftest.a" >&5
7734      $RANLIB libconftest.a 2>&5
7735      cat > conftest.c << _LT_EOF
7736int main() { return 0;}
7737_LT_EOF
7738      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7739      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7740      _lt_result=$?
7741      if test -s conftest.err && $GREP force_load conftest.err; then
7742	cat conftest.err >&5
7743      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7744	lt_cv_ld_force_load=yes
7745      else
7746	cat conftest.err >&5
7747      fi
7748        rm -f conftest.err libconftest.a conftest conftest.c
7749        rm -rf conftest.dSYM
7750
7751fi
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7753$as_echo "$lt_cv_ld_force_load" >&6; }
7754    case $host_os in
7755    rhapsody* | darwin1.[012])
7756      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7757    darwin1.*)
7758      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7759    darwin*) # darwin 5.x on
7760      # if running on 10.5 or later, the deployment target defaults
7761      # to the OS version, if on x86, and 10.4, the deployment
7762      # target defaults to 10.4. Don't you love it?
7763      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7764	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7765	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7766	10.[012]*)
7767	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7768	10.*)
7769	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7770      esac
7771    ;;
7772  esac
7773    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7774      _lt_dar_single_mod='$single_module'
7775    fi
7776    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7777      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7778    else
7779      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7780    fi
7781    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7782      _lt_dsymutil='~$DSYMUTIL $lib || :'
7783    else
7784      _lt_dsymutil=
7785    fi
7786    ;;
7787  esac
7788
7789for ac_header in dlfcn.h
7790do :
7791  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7792"
7793if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7794  cat >>confdefs.h <<_ACEOF
7795#define HAVE_DLFCN_H 1
7796_ACEOF
7797
7798fi
7799
7800done
7801
7802
7803
7804
7805
7806# Set options
7807# Check whether --enable-static was given.
7808if test "${enable_static+set}" = set; then :
7809  enableval=$enable_static; p=${PACKAGE-default}
7810    case $enableval in
7811    yes) enable_static=yes ;;
7812    no) enable_static=no ;;
7813    *)
7814     enable_static=no
7815      # Look at the argument we got.  We use all the common list separators.
7816      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817      for pkg in $enableval; do
7818	IFS="$lt_save_ifs"
7819	if test "X$pkg" = "X$p"; then
7820	  enable_static=yes
7821	fi
7822      done
7823      IFS="$lt_save_ifs"
7824      ;;
7825    esac
7826else
7827  enable_static=no
7828fi
7829
7830
7831
7832
7833
7834
7835
7836enable_dlopen=yes
7837
7838
7839
7840
7841  enable_win32_dll=no
7842
7843
7844            # Check whether --enable-shared was given.
7845if test "${enable_shared+set}" = set; then :
7846  enableval=$enable_shared; p=${PACKAGE-default}
7847    case $enableval in
7848    yes) enable_shared=yes ;;
7849    no) enable_shared=no ;;
7850    *)
7851      enable_shared=no
7852      # Look at the argument we got.  We use all the common list separators.
7853      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7854      for pkg in $enableval; do
7855	IFS="$lt_save_ifs"
7856	if test "X$pkg" = "X$p"; then
7857	  enable_shared=yes
7858	fi
7859      done
7860      IFS="$lt_save_ifs"
7861      ;;
7862    esac
7863else
7864  enable_shared=yes
7865fi
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877# Check whether --with-pic was given.
7878if test "${with_pic+set}" = set; then :
7879  withval=$with_pic; lt_p=${PACKAGE-default}
7880    case $withval in
7881    yes|no) pic_mode=$withval ;;
7882    *)
7883      pic_mode=default
7884      # Look at the argument we got.  We use all the common list separators.
7885      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886      for lt_pkg in $withval; do
7887	IFS="$lt_save_ifs"
7888	if test "X$lt_pkg" = "X$lt_p"; then
7889	  pic_mode=yes
7890	fi
7891      done
7892      IFS="$lt_save_ifs"
7893      ;;
7894    esac
7895else
7896  pic_mode=default
7897fi
7898
7899
7900test -z "$pic_mode" && pic_mode=default
7901
7902
7903
7904
7905
7906
7907
7908  # Check whether --enable-fast-install was given.
7909if test "${enable_fast_install+set}" = set; then :
7910  enableval=$enable_fast_install; p=${PACKAGE-default}
7911    case $enableval in
7912    yes) enable_fast_install=yes ;;
7913    no) enable_fast_install=no ;;
7914    *)
7915      enable_fast_install=no
7916      # Look at the argument we got.  We use all the common list separators.
7917      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918      for pkg in $enableval; do
7919	IFS="$lt_save_ifs"
7920	if test "X$pkg" = "X$p"; then
7921	  enable_fast_install=yes
7922	fi
7923      done
7924      IFS="$lt_save_ifs"
7925      ;;
7926    esac
7927else
7928  enable_fast_install=yes
7929fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941# This can be used to rebuild libtool when needed
7942LIBTOOL_DEPS="$ltmain"
7943
7944# Always use our own libtool.
7945LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991if test -n "${ZSH_VERSION+set}" ; then
7992   setopt NO_GLOB_SUBST
7993fi
7994
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996$as_echo_n "checking for objdir... " >&6; }
7997if ${lt_cv_objdir+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  rm -f .libs 2>/dev/null
8001mkdir .libs 2>/dev/null
8002if test -d .libs; then
8003  lt_cv_objdir=.libs
8004else
8005  # MS-DOS does not allow filenames that begin with a dot.
8006  lt_cv_objdir=_libs
8007fi
8008rmdir .libs 2>/dev/null
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011$as_echo "$lt_cv_objdir" >&6; }
8012objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
8018cat >>confdefs.h <<_ACEOF
8019#define LT_OBJDIR "$lt_cv_objdir/"
8020_ACEOF
8021
8022
8023
8024
8025case $host_os in
8026aix3*)
8027  # AIX sometimes has problems with the GCC collect2 program.  For some
8028  # reason, if we set the COLLECT_NAMES environment variable, the problems
8029  # vanish in a puff of smoke.
8030  if test "X${COLLECT_NAMES+set}" != Xset; then
8031    COLLECT_NAMES=
8032    export COLLECT_NAMES
8033  fi
8034  ;;
8035esac
8036
8037# Global variables:
8038ofile=libtool
8039can_build_shared=yes
8040
8041# All known linkers require a `.a' archive for static linking (except MSVC,
8042# which needs '.lib').
8043libext=a
8044
8045with_gnu_ld="$lt_cv_prog_gnu_ld"
8046
8047old_CC="$CC"
8048old_CFLAGS="$CFLAGS"
8049
8050# Set sane defaults for various variables
8051test -z "$CC" && CC=cc
8052test -z "$LTCC" && LTCC=$CC
8053test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054test -z "$LD" && LD=ld
8055test -z "$ac_objext" && ac_objext=o
8056
8057for cc_temp in $compiler""; do
8058  case $cc_temp in
8059    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8060    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8061    \-*) ;;
8062    *) break;;
8063  esac
8064done
8065cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8066
8067
8068# Only perform the check for file, if the check method requires it
8069test -z "$MAGIC_CMD" && MAGIC_CMD=file
8070case $deplibs_check_method in
8071file_magic*)
8072  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8074$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8075if ${lt_cv_path_MAGIC_CMD+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  case $MAGIC_CMD in
8079[\\/*] |  ?:[\\/]*)
8080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8081  ;;
8082*)
8083  lt_save_MAGIC_CMD="$MAGIC_CMD"
8084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8086  for ac_dir in $ac_dummy; do
8087    IFS="$lt_save_ifs"
8088    test -z "$ac_dir" && ac_dir=.
8089    if test -f $ac_dir/${ac_tool_prefix}file; then
8090      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8091      if test -n "$file_magic_test_file"; then
8092	case $deplibs_check_method in
8093	"file_magic "*)
8094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8097	    $EGREP "$file_magic_regex" > /dev/null; then
8098	    :
8099	  else
8100	    cat <<_LT_EOF 1>&2
8101
8102*** Warning: the command libtool uses to detect shared libraries,
8103*** $file_magic_cmd, produces output that libtool cannot recognize.
8104*** The result is that libtool may fail to recognize shared libraries
8105*** as such.  This will affect the creation of libtool libraries that
8106*** depend on shared libraries, but programs linked with such libtool
8107*** libraries will work regardless of this problem.  Nevertheless, you
8108*** may want to report the problem to your system manager and/or to
8109*** bug-libtool@gnu.org
8110
8111_LT_EOF
8112	  fi ;;
8113	esac
8114      fi
8115      break
8116    fi
8117  done
8118  IFS="$lt_save_ifs"
8119  MAGIC_CMD="$lt_save_MAGIC_CMD"
8120  ;;
8121esac
8122fi
8123
8124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125if test -n "$MAGIC_CMD"; then
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8127$as_echo "$MAGIC_CMD" >&6; }
8128else
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134
8135
8136
8137if test -z "$lt_cv_path_MAGIC_CMD"; then
8138  if test -n "$ac_tool_prefix"; then
8139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8140$as_echo_n "checking for file... " >&6; }
8141if ${lt_cv_path_MAGIC_CMD+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  case $MAGIC_CMD in
8145[\\/*] |  ?:[\\/]*)
8146  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8147  ;;
8148*)
8149  lt_save_MAGIC_CMD="$MAGIC_CMD"
8150  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8151  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8152  for ac_dir in $ac_dummy; do
8153    IFS="$lt_save_ifs"
8154    test -z "$ac_dir" && ac_dir=.
8155    if test -f $ac_dir/file; then
8156      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8157      if test -n "$file_magic_test_file"; then
8158	case $deplibs_check_method in
8159	"file_magic "*)
8160	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8161	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8162	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8163	    $EGREP "$file_magic_regex" > /dev/null; then
8164	    :
8165	  else
8166	    cat <<_LT_EOF 1>&2
8167
8168*** Warning: the command libtool uses to detect shared libraries,
8169*** $file_magic_cmd, produces output that libtool cannot recognize.
8170*** The result is that libtool may fail to recognize shared libraries
8171*** as such.  This will affect the creation of libtool libraries that
8172*** depend on shared libraries, but programs linked with such libtool
8173*** libraries will work regardless of this problem.  Nevertheless, you
8174*** may want to report the problem to your system manager and/or to
8175*** bug-libtool@gnu.org
8176
8177_LT_EOF
8178	  fi ;;
8179	esac
8180      fi
8181      break
8182    fi
8183  done
8184  IFS="$lt_save_ifs"
8185  MAGIC_CMD="$lt_save_MAGIC_CMD"
8186  ;;
8187esac
8188fi
8189
8190MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191if test -n "$MAGIC_CMD"; then
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8193$as_echo "$MAGIC_CMD" >&6; }
8194else
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197fi
8198
8199
8200  else
8201    MAGIC_CMD=:
8202  fi
8203fi
8204
8205  fi
8206  ;;
8207esac
8208
8209# Use C for the default configuration in the libtool script
8210
8211lt_save_CC="$CC"
8212ac_ext=c
8213ac_cpp='$CPP $CPPFLAGS'
8214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217
8218
8219# Source file extension for C test sources.
8220ac_ext=c
8221
8222# Object file extension for compiled C test sources.
8223objext=o
8224objext=$objext
8225
8226# Code to be used in simple compile tests
8227lt_simple_compile_test_code="int some_variable = 0;"
8228
8229# Code to be used in simple link tests
8230lt_simple_link_test_code='int main(){return(0);}'
8231
8232
8233
8234
8235
8236
8237
8238# If no C compiler was specified, use CC.
8239LTCC=${LTCC-"$CC"}
8240
8241# If no C compiler flags were specified, use CFLAGS.
8242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8243
8244# Allow CC to be a program name with arguments.
8245compiler=$CC
8246
8247# Save the default compiler, since it gets overwritten when the other
8248# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8249compiler_DEFAULT=$CC
8250
8251# save warnings/boilerplate of simple test code
8252ac_outfile=conftest.$ac_objext
8253echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8254eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8255_lt_compiler_boilerplate=`cat conftest.err`
8256$RM conftest*
8257
8258ac_outfile=conftest.$ac_objext
8259echo "$lt_simple_link_test_code" >conftest.$ac_ext
8260eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8261_lt_linker_boilerplate=`cat conftest.err`
8262$RM -r conftest*
8263
8264
8265if test -n "$compiler"; then
8266
8267lt_prog_compiler_no_builtin_flag=
8268
8269if test "$GCC" = yes; then
8270  case $cc_basename in
8271  nvcc*)
8272    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8273  *)
8274    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8275  esac
8276
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8278$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8279if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  lt_cv_prog_compiler_rtti_exceptions=no
8283   ac_outfile=conftest.$ac_objext
8284   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285   lt_compiler_flag="-fno-rtti -fno-exceptions"
8286   # Insert the option either (1) after the last *FLAGS variable, or
8287   # (2) before a word containing "conftest.", or (3) at the end.
8288   # Note that $ac_compile itself does not contain backslashes and begins
8289   # with a dollar sign (not a hyphen), so the echo should work correctly.
8290   # The option is referenced via a variable to avoid confusing sed.
8291   lt_compile=`echo "$ac_compile" | $SED \
8292   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294   -e 's:$: $lt_compiler_flag:'`
8295   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8296   (eval "$lt_compile" 2>conftest.err)
8297   ac_status=$?
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   if (exit $ac_status) && test -s "$ac_outfile"; then
8301     # The compiler can only warn and ignore the option if not recognized
8302     # So say no if there are warnings other than the usual output.
8303     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8304     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8305     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8306       lt_cv_prog_compiler_rtti_exceptions=yes
8307     fi
8308   fi
8309   $RM conftest*
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8313$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8314
8315if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8316    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8317else
8318    :
8319fi
8320
8321fi
8322
8323
8324
8325
8326
8327
8328  lt_prog_compiler_wl=
8329lt_prog_compiler_pic=
8330lt_prog_compiler_static=
8331
8332
8333  if test "$GCC" = yes; then
8334    lt_prog_compiler_wl='-Wl,'
8335    lt_prog_compiler_static='-static'
8336
8337    case $host_os in
8338      aix*)
8339      # All AIX code is PIC.
8340      if test "$host_cpu" = ia64; then
8341	# AIX 5 now supports IA64 processor
8342	lt_prog_compiler_static='-Bstatic'
8343      fi
8344      ;;
8345
8346    amigaos*)
8347      case $host_cpu in
8348      powerpc)
8349            # see comment about AmigaOS4 .so support
8350            lt_prog_compiler_pic='-fPIC'
8351        ;;
8352      m68k)
8353            # FIXME: we need at least 68020 code to build shared libraries, but
8354            # adding the `-m68020' flag to GCC prevents building anything better,
8355            # like `-m68040'.
8356            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8357        ;;
8358      esac
8359      ;;
8360
8361    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8362      # PIC is the default for these OSes.
8363      ;;
8364
8365    mingw* | cygwin* | pw32* | os2* | cegcc*)
8366      # This hack is so that the source file can tell whether it is being
8367      # built for inclusion in a dll (and should export symbols for example).
8368      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8369      # (--disable-auto-import) libraries
8370      lt_prog_compiler_pic='-DDLL_EXPORT'
8371      ;;
8372
8373    darwin* | rhapsody*)
8374      # PIC is the default on this platform
8375      # Common symbols not allowed in MH_DYLIB files
8376      lt_prog_compiler_pic='-fno-common'
8377      ;;
8378
8379    haiku*)
8380      # PIC is the default for Haiku.
8381      # The "-static" flag exists, but is broken.
8382      lt_prog_compiler_static=
8383      ;;
8384
8385    hpux*)
8386      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8387      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8388      # sets the default TLS model and affects inlining.
8389      case $host_cpu in
8390      hppa*64*)
8391	# +Z the default
8392	;;
8393      *)
8394	lt_prog_compiler_pic='-fPIC'
8395	;;
8396      esac
8397      ;;
8398
8399    interix[3-9]*)
8400      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8401      # Instead, we relocate shared libraries at runtime.
8402      ;;
8403
8404    msdosdjgpp*)
8405      # Just because we use GCC doesn't mean we suddenly get shared libraries
8406      # on systems that don't support them.
8407      lt_prog_compiler_can_build_shared=no
8408      enable_shared=no
8409      ;;
8410
8411    *nto* | *qnx*)
8412      # QNX uses GNU C++, but need to define -shared option too, otherwise
8413      # it will coredump.
8414      lt_prog_compiler_pic='-fPIC -shared'
8415      ;;
8416
8417    sysv4*MP*)
8418      if test -d /usr/nec; then
8419	lt_prog_compiler_pic=-Kconform_pic
8420      fi
8421      ;;
8422
8423    *)
8424      lt_prog_compiler_pic='-fPIC'
8425      ;;
8426    esac
8427
8428    case $cc_basename in
8429    nvcc*) # Cuda Compiler Driver 2.2
8430      lt_prog_compiler_wl='-Xlinker '
8431      if test -n "$lt_prog_compiler_pic"; then
8432        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8433      fi
8434      ;;
8435    esac
8436  else
8437    # PORTME Check for flag to pass linker flags through the system compiler.
8438    case $host_os in
8439    aix*)
8440      lt_prog_compiler_wl='-Wl,'
8441      if test "$host_cpu" = ia64; then
8442	# AIX 5 now supports IA64 processor
8443	lt_prog_compiler_static='-Bstatic'
8444      else
8445	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8446      fi
8447      ;;
8448
8449    mingw* | cygwin* | pw32* | os2* | cegcc*)
8450      # This hack is so that the source file can tell whether it is being
8451      # built for inclusion in a dll (and should export symbols for example).
8452      lt_prog_compiler_pic='-DDLL_EXPORT'
8453      ;;
8454
8455    hpux9* | hpux10* | hpux11*)
8456      lt_prog_compiler_wl='-Wl,'
8457      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8458      # not for PA HP-UX.
8459      case $host_cpu in
8460      hppa*64*|ia64*)
8461	# +Z the default
8462	;;
8463      *)
8464	lt_prog_compiler_pic='+Z'
8465	;;
8466      esac
8467      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8468      lt_prog_compiler_static='${wl}-a ${wl}archive'
8469      ;;
8470
8471    irix5* | irix6* | nonstopux*)
8472      lt_prog_compiler_wl='-Wl,'
8473      # PIC (with -KPIC) is the default.
8474      lt_prog_compiler_static='-non_shared'
8475      ;;
8476
8477    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8478      case $cc_basename in
8479      # old Intel for x86_64 which still supported -KPIC.
8480      ecc*)
8481	lt_prog_compiler_wl='-Wl,'
8482	lt_prog_compiler_pic='-KPIC'
8483	lt_prog_compiler_static='-static'
8484        ;;
8485      # icc used to be incompatible with GCC.
8486      # ICC 10 doesn't accept -KPIC any more.
8487      icc* | ifort*)
8488	lt_prog_compiler_wl='-Wl,'
8489	lt_prog_compiler_pic='-fPIC'
8490	lt_prog_compiler_static='-static'
8491        ;;
8492      # Lahey Fortran 8.1.
8493      lf95*)
8494	lt_prog_compiler_wl='-Wl,'
8495	lt_prog_compiler_pic='--shared'
8496	lt_prog_compiler_static='--static'
8497	;;
8498      nagfor*)
8499	# NAG Fortran compiler
8500	lt_prog_compiler_wl='-Wl,-Wl,,'
8501	lt_prog_compiler_pic='-PIC'
8502	lt_prog_compiler_static='-Bstatic'
8503	;;
8504      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505        # Portland Group compilers (*not* the Pentium gcc compiler,
8506	# which looks to be a dead project)
8507	lt_prog_compiler_wl='-Wl,'
8508	lt_prog_compiler_pic='-fpic'
8509	lt_prog_compiler_static='-Bstatic'
8510        ;;
8511      ccc*)
8512        lt_prog_compiler_wl='-Wl,'
8513        # All Alpha code is PIC.
8514        lt_prog_compiler_static='-non_shared'
8515        ;;
8516      xl* | bgxl* | bgf* | mpixl*)
8517	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518	lt_prog_compiler_wl='-Wl,'
8519	lt_prog_compiler_pic='-qpic'
8520	lt_prog_compiler_static='-qstaticlink'
8521	;;
8522      *)
8523	case `$CC -V 2>&1 | sed 5q` in
8524	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8525	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526	  lt_prog_compiler_pic='-KPIC'
8527	  lt_prog_compiler_static='-Bstatic'
8528	  lt_prog_compiler_wl=''
8529	  ;;
8530	*Sun\ F* | *Sun*Fortran*)
8531	  lt_prog_compiler_pic='-KPIC'
8532	  lt_prog_compiler_static='-Bstatic'
8533	  lt_prog_compiler_wl='-Qoption ld '
8534	  ;;
8535	*Sun\ C*)
8536	  # Sun C 5.9
8537	  lt_prog_compiler_pic='-KPIC'
8538	  lt_prog_compiler_static='-Bstatic'
8539	  lt_prog_compiler_wl='-Wl,'
8540	  ;;
8541        *Intel*\ [CF]*Compiler*)
8542	  lt_prog_compiler_wl='-Wl,'
8543	  lt_prog_compiler_pic='-fPIC'
8544	  lt_prog_compiler_static='-static'
8545	  ;;
8546	*Portland\ Group*)
8547	  lt_prog_compiler_wl='-Wl,'
8548	  lt_prog_compiler_pic='-fpic'
8549	  lt_prog_compiler_static='-Bstatic'
8550	  ;;
8551	esac
8552	;;
8553      esac
8554      ;;
8555
8556    newsos6)
8557      lt_prog_compiler_pic='-KPIC'
8558      lt_prog_compiler_static='-Bstatic'
8559      ;;
8560
8561    *nto* | *qnx*)
8562      # QNX uses GNU C++, but need to define -shared option too, otherwise
8563      # it will coredump.
8564      lt_prog_compiler_pic='-fPIC -shared'
8565      ;;
8566
8567    osf3* | osf4* | osf5*)
8568      lt_prog_compiler_wl='-Wl,'
8569      # All OSF/1 code is PIC.
8570      lt_prog_compiler_static='-non_shared'
8571      ;;
8572
8573    rdos*)
8574      lt_prog_compiler_static='-non_shared'
8575      ;;
8576
8577    solaris*)
8578      lt_prog_compiler_pic='-KPIC'
8579      lt_prog_compiler_static='-Bstatic'
8580      case $cc_basename in
8581      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8582	lt_prog_compiler_wl='-Qoption ld ';;
8583      *)
8584	lt_prog_compiler_wl='-Wl,';;
8585      esac
8586      ;;
8587
8588    sunos4*)
8589      lt_prog_compiler_wl='-Qoption ld '
8590      lt_prog_compiler_pic='-PIC'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    sysv4 | sysv4.2uw2* | sysv4.3*)
8595      lt_prog_compiler_wl='-Wl,'
8596      lt_prog_compiler_pic='-KPIC'
8597      lt_prog_compiler_static='-Bstatic'
8598      ;;
8599
8600    sysv4*MP*)
8601      if test -d /usr/nec ;then
8602	lt_prog_compiler_pic='-Kconform_pic'
8603	lt_prog_compiler_static='-Bstatic'
8604      fi
8605      ;;
8606
8607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8608      lt_prog_compiler_wl='-Wl,'
8609      lt_prog_compiler_pic='-KPIC'
8610      lt_prog_compiler_static='-Bstatic'
8611      ;;
8612
8613    unicos*)
8614      lt_prog_compiler_wl='-Wl,'
8615      lt_prog_compiler_can_build_shared=no
8616      ;;
8617
8618    uts4*)
8619      lt_prog_compiler_pic='-pic'
8620      lt_prog_compiler_static='-Bstatic'
8621      ;;
8622
8623    *)
8624      lt_prog_compiler_can_build_shared=no
8625      ;;
8626    esac
8627  fi
8628
8629case $host_os in
8630  # For platforms which do not support PIC, -DPIC is meaningless:
8631  *djgpp*)
8632    lt_prog_compiler_pic=
8633    ;;
8634  *)
8635    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8636    ;;
8637esac
8638
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8641if ${lt_cv_prog_compiler_pic+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8647$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8648lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8649
8650#
8651# Check to make sure the PIC flag actually works.
8652#
8653if test -n "$lt_prog_compiler_pic"; then
8654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8655$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8656if ${lt_cv_prog_compiler_pic_works+:} false; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  lt_cv_prog_compiler_pic_works=no
8660   ac_outfile=conftest.$ac_objext
8661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8663   # Insert the option either (1) after the last *FLAGS variable, or
8664   # (2) before a word containing "conftest.", or (3) at the end.
8665   # Note that $ac_compile itself does not contain backslashes and begins
8666   # with a dollar sign (not a hyphen), so the echo should work correctly.
8667   # The option is referenced via a variable to avoid confusing sed.
8668   lt_compile=`echo "$ac_compile" | $SED \
8669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671   -e 's:$: $lt_compiler_flag:'`
8672   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673   (eval "$lt_compile" 2>conftest.err)
8674   ac_status=$?
8675   cat conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   if (exit $ac_status) && test -s "$ac_outfile"; then
8678     # The compiler can only warn and ignore the option if not recognized
8679     # So say no if there are warnings other than the usual output.
8680     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683       lt_cv_prog_compiler_pic_works=yes
8684     fi
8685   fi
8686   $RM conftest*
8687
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8690$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8691
8692if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8693    case $lt_prog_compiler_pic in
8694     "" | " "*) ;;
8695     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8696     esac
8697else
8698    lt_prog_compiler_pic=
8699     lt_prog_compiler_can_build_shared=no
8700fi
8701
8702fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714#
8715# Check to make sure the static flag actually works.
8716#
8717wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8719$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8720if ${lt_cv_prog_compiler_static_works+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  lt_cv_prog_compiler_static_works=no
8724   save_LDFLAGS="$LDFLAGS"
8725   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8726   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8727   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8728     # The linker can only warn and ignore the option if not recognized
8729     # So say no if there are warnings
8730     if test -s conftest.err; then
8731       # Append any errors to the config.log.
8732       cat conftest.err 1>&5
8733       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8734       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735       if diff conftest.exp conftest.er2 >/dev/null; then
8736         lt_cv_prog_compiler_static_works=yes
8737       fi
8738     else
8739       lt_cv_prog_compiler_static_works=yes
8740     fi
8741   fi
8742   $RM -r conftest*
8743   LDFLAGS="$save_LDFLAGS"
8744
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8747$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8748
8749if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8750    :
8751else
8752    lt_prog_compiler_static=
8753fi
8754
8755
8756
8757
8758
8759
8760
8761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763if ${lt_cv_prog_compiler_c_o+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766  lt_cv_prog_compiler_c_o=no
8767   $RM -r conftest 2>/dev/null
8768   mkdir conftest
8769   cd conftest
8770   mkdir out
8771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772
8773   lt_compiler_flag="-o out/conftest2.$ac_objext"
8774   # Insert the option either (1) after the last *FLAGS variable, or
8775   # (2) before a word containing "conftest.", or (3) at the end.
8776   # Note that $ac_compile itself does not contain backslashes and begins
8777   # with a dollar sign (not a hyphen), so the echo should work correctly.
8778   lt_compile=`echo "$ac_compile" | $SED \
8779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781   -e 's:$: $lt_compiler_flag:'`
8782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783   (eval "$lt_compile" 2>out/conftest.err)
8784   ac_status=$?
8785   cat out/conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8788   then
8789     # The compiler can only warn and ignore the option if not recognized
8790     # So say no if there are warnings
8791     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794       lt_cv_prog_compiler_c_o=yes
8795     fi
8796   fi
8797   chmod u+w . 2>&5
8798   $RM conftest*
8799   # SGI C++ compiler will create directory out/ii_files/ for
8800   # template instantiation
8801   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802   $RM out/* && rmdir out
8803   cd ..
8804   $RM -r conftest
8805   $RM conftest*
8806
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8810
8811
8812
8813
8814
8815
8816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8818if ${lt_cv_prog_compiler_c_o+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  lt_cv_prog_compiler_c_o=no
8822   $RM -r conftest 2>/dev/null
8823   mkdir conftest
8824   cd conftest
8825   mkdir out
8826   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828   lt_compiler_flag="-o out/conftest2.$ac_objext"
8829   # Insert the option either (1) after the last *FLAGS variable, or
8830   # (2) before a word containing "conftest.", or (3) at the end.
8831   # Note that $ac_compile itself does not contain backslashes and begins
8832   # with a dollar sign (not a hyphen), so the echo should work correctly.
8833   lt_compile=`echo "$ac_compile" | $SED \
8834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836   -e 's:$: $lt_compiler_flag:'`
8837   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838   (eval "$lt_compile" 2>out/conftest.err)
8839   ac_status=$?
8840   cat out/conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8843   then
8844     # The compiler can only warn and ignore the option if not recognized
8845     # So say no if there are warnings
8846     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8847     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8848     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849       lt_cv_prog_compiler_c_o=yes
8850     fi
8851   fi
8852   chmod u+w . 2>&5
8853   $RM conftest*
8854   # SGI C++ compiler will create directory out/ii_files/ for
8855   # template instantiation
8856   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8857   $RM out/* && rmdir out
8858   cd ..
8859   $RM -r conftest
8860   $RM conftest*
8861
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8864$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8865
8866
8867
8868
8869hard_links="nottested"
8870if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8871  # do not overwrite the value of need_locks provided by the user
8872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8873$as_echo_n "checking if we can lock with hard links... " >&6; }
8874  hard_links=yes
8875  $RM conftest*
8876  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8877  touch conftest.a
8878  ln conftest.a conftest.b 2>&5 || hard_links=no
8879  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8881$as_echo "$hard_links" >&6; }
8882  if test "$hard_links" = no; then
8883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8884$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8885    need_locks=warn
8886  fi
8887else
8888  need_locks=no
8889fi
8890
8891
8892
8893
8894
8895
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8897$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8898
8899  runpath_var=
8900  allow_undefined_flag=
8901  always_export_symbols=no
8902  archive_cmds=
8903  archive_expsym_cmds=
8904  compiler_needs_object=no
8905  enable_shared_with_static_runtimes=no
8906  export_dynamic_flag_spec=
8907  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8908  hardcode_automatic=no
8909  hardcode_direct=no
8910  hardcode_direct_absolute=no
8911  hardcode_libdir_flag_spec=
8912  hardcode_libdir_separator=
8913  hardcode_minus_L=no
8914  hardcode_shlibpath_var=unsupported
8915  inherit_rpath=no
8916  link_all_deplibs=unknown
8917  module_cmds=
8918  module_expsym_cmds=
8919  old_archive_from_new_cmds=
8920  old_archive_from_expsyms_cmds=
8921  thread_safe_flag_spec=
8922  whole_archive_flag_spec=
8923  # include_expsyms should be a list of space-separated symbols to be *always*
8924  # included in the symbol list
8925  include_expsyms=
8926  # exclude_expsyms can be an extended regexp of symbols to exclude
8927  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8928  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8929  # as well as any symbol that contains `d'.
8930  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8931  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8932  # platforms (ab)use it in PIC code, but their linkers get confused if
8933  # the symbol is explicitly referenced.  Since portable code cannot
8934  # rely on this symbol name, it's probably fine to never include it in
8935  # preloaded symbol tables.
8936  # Exclude shared library initialization/finalization symbols.
8937  extract_expsyms_cmds=
8938
8939  case $host_os in
8940  cygwin* | mingw* | pw32* | cegcc*)
8941    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942    # When not using gcc, we currently assume that we are using
8943    # Microsoft Visual C++.
8944    if test "$GCC" != yes; then
8945      with_gnu_ld=no
8946    fi
8947    ;;
8948  interix*)
8949    # we just hope/assume this is gcc and not c89 (= MSVC++)
8950    with_gnu_ld=yes
8951    ;;
8952  openbsd*)
8953    with_gnu_ld=no
8954    ;;
8955  esac
8956
8957  ld_shlibs=yes
8958
8959  # On some targets, GNU ld is compatible enough with the native linker
8960  # that we're better off using the native interface for both.
8961  lt_use_gnu_ld_interface=no
8962  if test "$with_gnu_ld" = yes; then
8963    case $host_os in
8964      aix*)
8965	# The AIX port of GNU ld has always aspired to compatibility
8966	# with the native linker.  However, as the warning in the GNU ld
8967	# block says, versions before 2.19.5* couldn't really create working
8968	# shared libraries, regardless of the interface used.
8969	case `$LD -v 2>&1` in
8970	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8971	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8972	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8973	  *)
8974	    lt_use_gnu_ld_interface=yes
8975	    ;;
8976	esac
8977	;;
8978      *)
8979	lt_use_gnu_ld_interface=yes
8980	;;
8981    esac
8982  fi
8983
8984  if test "$lt_use_gnu_ld_interface" = yes; then
8985    # If archive_cmds runs LD, not CC, wlarc should be empty
8986    wlarc='${wl}'
8987
8988    # Set some defaults for GNU ld with shared library support. These
8989    # are reset later if shared libraries are not supported. Putting them
8990    # here allows them to be overridden if necessary.
8991    runpath_var=LD_RUN_PATH
8992    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993    export_dynamic_flag_spec='${wl}--export-dynamic'
8994    # ancient GNU ld didn't support --whole-archive et. al.
8995    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8996      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8997    else
8998      whole_archive_flag_spec=
8999    fi
9000    supports_anon_versioning=no
9001    case `$LD -v 2>&1` in
9002      *GNU\ gold*) supports_anon_versioning=yes ;;
9003      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9004      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9005      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9006      *\ 2.11.*) ;; # other 2.11 versions
9007      *) supports_anon_versioning=yes ;;
9008    esac
9009
9010    # See if GNU ld supports shared libraries.
9011    case $host_os in
9012    aix[3-9]*)
9013      # On AIX/PPC, the GNU linker is very broken
9014      if test "$host_cpu" != ia64; then
9015	ld_shlibs=no
9016	cat <<_LT_EOF 1>&2
9017
9018*** Warning: the GNU linker, at least up to release 2.19, is reported
9019*** to be unable to reliably create shared libraries on AIX.
9020*** Therefore, libtool is disabling shared libraries support.  If you
9021*** really care for shared libraries, you may want to install binutils
9022*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9023*** You will then need to restart the configuration process.
9024
9025_LT_EOF
9026      fi
9027      ;;
9028
9029    amigaos*)
9030      case $host_cpu in
9031      powerpc)
9032            # see comment about AmigaOS4 .so support
9033            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034            archive_expsym_cmds=''
9035        ;;
9036      m68k)
9037            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)'
9038            hardcode_libdir_flag_spec='-L$libdir'
9039            hardcode_minus_L=yes
9040        ;;
9041      esac
9042      ;;
9043
9044    beos*)
9045      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046	allow_undefined_flag=unsupported
9047	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9048	# support --undefined.  This deserves some investigation.  FIXME
9049	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050      else
9051	ld_shlibs=no
9052      fi
9053      ;;
9054
9055    cygwin* | mingw* | pw32* | cegcc*)
9056      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9057      # as there is no search path for DLLs.
9058      hardcode_libdir_flag_spec='-L$libdir'
9059      export_dynamic_flag_spec='${wl}--export-all-symbols'
9060      allow_undefined_flag=unsupported
9061      always_export_symbols=no
9062      enable_shared_with_static_runtimes=yes
9063      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'
9064      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9065
9066      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9067        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9068	# If the export-symbols file already is a .def file (1st line
9069	# is EXPORTS), use it as is; otherwise, prepend...
9070	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9071	  cp $export_symbols $output_objdir/$soname.def;
9072	else
9073	  echo EXPORTS > $output_objdir/$soname.def;
9074	  cat $export_symbols >> $output_objdir/$soname.def;
9075	fi~
9076	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9077      else
9078	ld_shlibs=no
9079      fi
9080      ;;
9081
9082    haiku*)
9083      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084      link_all_deplibs=yes
9085      ;;
9086
9087    interix[3-9]*)
9088      hardcode_direct=no
9089      hardcode_shlibpath_var=no
9090      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9091      export_dynamic_flag_spec='${wl}-E'
9092      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9093      # Instead, shared libraries are loaded at an image base (0x10000000 by
9094      # default) and relocated if they conflict, which is a slow very memory
9095      # consuming and fragmenting process.  To avoid this, we pick a random,
9096      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9097      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9098      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9099      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'
9100      ;;
9101
9102    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9103      tmp_diet=no
9104      if test "$host_os" = linux-dietlibc; then
9105	case $cc_basename in
9106	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9107	esac
9108      fi
9109      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9110	 && test "$tmp_diet" = no
9111      then
9112	tmp_addflag=' $pic_flag'
9113	tmp_sharedflag='-shared'
9114	case $cc_basename,$host_cpu in
9115        pgcc*)				# Portland Group C compiler
9116	  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'
9117	  tmp_addflag=' $pic_flag'
9118	  ;;
9119	pgf77* | pgf90* | pgf95* | pgfortran*)
9120					# Portland Group f77 and f90 compilers
9121	  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'
9122	  tmp_addflag=' $pic_flag -Mnomain' ;;
9123	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9124	  tmp_addflag=' -i_dynamic' ;;
9125	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9126	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9127	ifc* | ifort*)			# Intel Fortran compiler
9128	  tmp_addflag=' -nofor_main' ;;
9129	lf95*)				# Lahey Fortran 8.1
9130	  whole_archive_flag_spec=
9131	  tmp_sharedflag='--shared' ;;
9132	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9133	  tmp_sharedflag='-qmkshrobj'
9134	  tmp_addflag= ;;
9135	nvcc*)	# Cuda Compiler Driver 2.2
9136	  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'
9137	  compiler_needs_object=yes
9138	  ;;
9139	esac
9140	case `$CC -V 2>&1 | sed 5q` in
9141	*Sun\ C*)			# Sun C 5.9
9142	  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'
9143	  compiler_needs_object=yes
9144	  tmp_sharedflag='-G' ;;
9145	*Sun\ F*)			# Sun Fortran 8.3
9146	  tmp_sharedflag='-G' ;;
9147	esac
9148	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149
9150        if test "x$supports_anon_versioning" = xyes; then
9151          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153	    echo "local: *; };" >> $output_objdir/$libname.ver~
9154	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9155        fi
9156
9157	case $cc_basename in
9158	xlf* | bgf* | bgxlf* | mpixlf*)
9159	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9160	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9161	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9163	  if test "x$supports_anon_versioning" = xyes; then
9164	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166	      echo "local: *; };" >> $output_objdir/$libname.ver~
9167	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9168	  fi
9169	  ;;
9170	esac
9171      else
9172        ld_shlibs=no
9173      fi
9174      ;;
9175
9176    netbsd*)
9177      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9179	wlarc=
9180      else
9181	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9183      fi
9184      ;;
9185
9186    solaris*)
9187      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9188	ld_shlibs=no
9189	cat <<_LT_EOF 1>&2
9190
9191*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9192*** create shared libraries on Solaris systems.  Therefore, libtool
9193*** is disabling shared libraries support.  We urge you to upgrade GNU
9194*** binutils to release 2.9.1 or newer.  Another option is to modify
9195*** your PATH or compiler configuration so that the native linker is
9196*** used, and then restart.
9197
9198_LT_EOF
9199      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9202      else
9203	ld_shlibs=no
9204      fi
9205      ;;
9206
9207    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9208      case `$LD -v 2>&1` in
9209        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9210	ld_shlibs=no
9211	cat <<_LT_EOF 1>&2
9212
9213*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9214*** reliably create shared libraries on SCO systems.  Therefore, libtool
9215*** is disabling shared libraries support.  We urge you to upgrade GNU
9216*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9217*** your PATH or compiler configuration so that the native linker is
9218*** used, and then restart.
9219
9220_LT_EOF
9221	;;
9222	*)
9223	  # For security reasons, it is highly recommended that you always
9224	  # use absolute paths for naming shared libraries, and exclude the
9225	  # DT_RUNPATH tag from executables and libraries.  But doing so
9226	  # requires that you compile everything twice, which is a pain.
9227	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9231	  else
9232	    ld_shlibs=no
9233	  fi
9234	;;
9235      esac
9236      ;;
9237
9238    sunos4*)
9239      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240      wlarc=
9241      hardcode_direct=yes
9242      hardcode_shlibpath_var=no
9243      ;;
9244
9245    *)
9246      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9249      else
9250	ld_shlibs=no
9251      fi
9252      ;;
9253    esac
9254
9255    if test "$ld_shlibs" = no; then
9256      runpath_var=
9257      hardcode_libdir_flag_spec=
9258      export_dynamic_flag_spec=
9259      whole_archive_flag_spec=
9260    fi
9261  else
9262    # PORTME fill in a description of your system's linker (not GNU ld)
9263    case $host_os in
9264    aix3*)
9265      allow_undefined_flag=unsupported
9266      always_export_symbols=yes
9267      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'
9268      # Note: this linker hardcodes the directories in LIBPATH if there
9269      # are no directories specified by -L.
9270      hardcode_minus_L=yes
9271      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9272	# Neither direct hardcoding nor static linking is supported with a
9273	# broken collect2.
9274	hardcode_direct=unsupported
9275      fi
9276      ;;
9277
9278    aix[4-9]*)
9279      if test "$host_cpu" = ia64; then
9280	# On IA64, the linker does run time linking by default, so we don't
9281	# have to do anything special.
9282	aix_use_runtimelinking=no
9283	exp_sym_flag='-Bexport'
9284	no_entry_flag=""
9285      else
9286	# If we're using GNU nm, then we don't want the "-C" option.
9287	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9288	# Also, AIX nm treats weak defined symbols like other global
9289	# defined symbols, whereas GNU nm marks them as "W".
9290	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9291	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9292	else
9293	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9294	fi
9295	aix_use_runtimelinking=no
9296
9297	# Test if we are trying to use run time linking or normal
9298	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9299	# need to do runtime linking.
9300	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9301	  for ld_flag in $LDFLAGS; do
9302	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9303	    aix_use_runtimelinking=yes
9304	    break
9305	  fi
9306	  done
9307	  ;;
9308	esac
9309
9310	exp_sym_flag='-bexport'
9311	no_entry_flag='-bnoentry'
9312      fi
9313
9314      # When large executables or shared objects are built, AIX ld can
9315      # have problems creating the table of contents.  If linking a library
9316      # or program results in "error TOC overflow" add -mminimal-toc to
9317      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9318      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9319
9320      archive_cmds=''
9321      hardcode_direct=yes
9322      hardcode_direct_absolute=yes
9323      hardcode_libdir_separator=':'
9324      link_all_deplibs=yes
9325      file_list_spec='${wl}-f,'
9326
9327      if test "$GCC" = yes; then
9328	case $host_os in aix4.[012]|aix4.[012].*)
9329	# We only want to do this on AIX 4.2 and lower, the check
9330	# below for broken collect2 doesn't work under 4.3+
9331	  collect2name=`${CC} -print-prog-name=collect2`
9332	  if test -f "$collect2name" &&
9333	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9334	  then
9335	  # We have reworked collect2
9336	  :
9337	  else
9338	  # We have old collect2
9339	  hardcode_direct=unsupported
9340	  # It fails to find uninstalled libraries when the uninstalled
9341	  # path is not listed in the libpath.  Setting hardcode_minus_L
9342	  # to unsupported forces relinking
9343	  hardcode_minus_L=yes
9344	  hardcode_libdir_flag_spec='-L$libdir'
9345	  hardcode_libdir_separator=
9346	  fi
9347	  ;;
9348	esac
9349	shared_flag='-shared'
9350	if test "$aix_use_runtimelinking" = yes; then
9351	  shared_flag="$shared_flag "'${wl}-G'
9352	fi
9353      else
9354	# not using gcc
9355	if test "$host_cpu" = ia64; then
9356	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9357	# chokes on -Wl,-G. The following line is correct:
9358	  shared_flag='-G'
9359	else
9360	  if test "$aix_use_runtimelinking" = yes; then
9361	    shared_flag='${wl}-G'
9362	  else
9363	    shared_flag='${wl}-bM:SRE'
9364	  fi
9365	fi
9366      fi
9367
9368      export_dynamic_flag_spec='${wl}-bexpall'
9369      # It seems that -bexpall does not export symbols beginning with
9370      # underscore (_), so it is better to generate a list of symbols to export.
9371      always_export_symbols=yes
9372      if test "$aix_use_runtimelinking" = yes; then
9373	# Warning - without using the other runtime loading flags (-brtl),
9374	# -berok will link without error, but may produce a broken library.
9375	allow_undefined_flag='-berok'
9376        # Determine the default libpath from the value encoded in an
9377        # empty executable.
9378        if test "${lt_cv_aix_libpath+set}" = set; then
9379  aix_libpath=$lt_cv_aix_libpath
9380else
9381  if ${lt_cv_aix_libpath_+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386
9387int
9388main ()
9389{
9390
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396
9397  lt_aix_libpath_sed='
9398      /Import File Strings/,/^$/ {
9399	  /^0/ {
9400	      s/^0  *\([^ ]*\) *$/\1/
9401	      p
9402	  }
9403      }'
9404  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405  # Check for a 64-bit object if we didn't find anything.
9406  if test -z "$lt_cv_aix_libpath_"; then
9407    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408  fi
9409fi
9410rm -f core conftest.err conftest.$ac_objext \
9411    conftest$ac_exeext conftest.$ac_ext
9412  if test -z "$lt_cv_aix_libpath_"; then
9413    lt_cv_aix_libpath_="/usr/lib:/lib"
9414  fi
9415
9416fi
9417
9418  aix_libpath=$lt_cv_aix_libpath_
9419fi
9420
9421        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9422        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9423      else
9424	if test "$host_cpu" = ia64; then
9425	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9426	  allow_undefined_flag="-z nodefs"
9427	  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"
9428	else
9429	 # Determine the default libpath from the value encoded in an
9430	 # empty executable.
9431	 if test "${lt_cv_aix_libpath+set}" = set; then
9432  aix_libpath=$lt_cv_aix_libpath
9433else
9434  if ${lt_cv_aix_libpath_+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439
9440int
9441main ()
9442{
9443
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448if ac_fn_c_try_link "$LINENO"; then :
9449
9450  lt_aix_libpath_sed='
9451      /Import File Strings/,/^$/ {
9452	  /^0/ {
9453	      s/^0  *\([^ ]*\) *$/\1/
9454	      p
9455	  }
9456      }'
9457  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458  # Check for a 64-bit object if we didn't find anything.
9459  if test -z "$lt_cv_aix_libpath_"; then
9460    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461  fi
9462fi
9463rm -f core conftest.err conftest.$ac_objext \
9464    conftest$ac_exeext conftest.$ac_ext
9465  if test -z "$lt_cv_aix_libpath_"; then
9466    lt_cv_aix_libpath_="/usr/lib:/lib"
9467  fi
9468
9469fi
9470
9471  aix_libpath=$lt_cv_aix_libpath_
9472fi
9473
9474	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475	  # Warning - without using the other run time loading flags,
9476	  # -berok will link without error, but may produce a broken library.
9477	  no_undefined_flag=' ${wl}-bernotok'
9478	  allow_undefined_flag=' ${wl}-berok'
9479	  if test "$with_gnu_ld" = yes; then
9480	    # We only use this code for GNU lds that support --whole-archive.
9481	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9482	  else
9483	    # Exported symbols can be pulled into shared objects from archives
9484	    whole_archive_flag_spec='$convenience'
9485	  fi
9486	  archive_cmds_need_lc=yes
9487	  # This is similar to how AIX traditionally builds its shared libraries.
9488	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9489	fi
9490      fi
9491      ;;
9492
9493    amigaos*)
9494      case $host_cpu in
9495      powerpc)
9496            # see comment about AmigaOS4 .so support
9497            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498            archive_expsym_cmds=''
9499        ;;
9500      m68k)
9501            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)'
9502            hardcode_libdir_flag_spec='-L$libdir'
9503            hardcode_minus_L=yes
9504        ;;
9505      esac
9506      ;;
9507
9508    bsdi[45]*)
9509      export_dynamic_flag_spec=-rdynamic
9510      ;;
9511
9512    cygwin* | mingw* | pw32* | cegcc*)
9513      # When not using gcc, we currently assume that we are using
9514      # Microsoft Visual C++.
9515      # hardcode_libdir_flag_spec is actually meaningless, as there is
9516      # no search path for DLLs.
9517      case $cc_basename in
9518      cl*)
9519	# Native MSVC
9520	hardcode_libdir_flag_spec=' '
9521	allow_undefined_flag=unsupported
9522	always_export_symbols=yes
9523	file_list_spec='@'
9524	# Tell ltmain to make .lib files, not .a files.
9525	libext=lib
9526	# Tell ltmain to make .dll files, not .so files.
9527	shrext_cmds=".dll"
9528	# FIXME: Setting linknames here is a bad hack.
9529	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9530	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9532	  else
9533	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9534	  fi~
9535	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9536	  linknames='
9537	# The linker will not automatically build a static lib if we build a DLL.
9538	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9539	enable_shared_with_static_runtimes=yes
9540	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9541	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9542	# Don't use ranlib
9543	old_postinstall_cmds='chmod 644 $oldlib'
9544	postlink_cmds='lt_outputfile="@OUTPUT@"~
9545	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9546	  case $lt_outputfile in
9547	    *.exe|*.EXE) ;;
9548	    *)
9549	      lt_outputfile="$lt_outputfile.exe"
9550	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9551	      ;;
9552	  esac~
9553	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9554	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9555	    $RM "$lt_outputfile.manifest";
9556	  fi'
9557	;;
9558      *)
9559	# Assume MSVC wrapper
9560	hardcode_libdir_flag_spec=' '
9561	allow_undefined_flag=unsupported
9562	# Tell ltmain to make .lib files, not .a files.
9563	libext=lib
9564	# Tell ltmain to make .dll files, not .so files.
9565	shrext_cmds=".dll"
9566	# FIXME: Setting linknames here is a bad hack.
9567	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9568	# The linker will automatically build a .lib file if we build a DLL.
9569	old_archive_from_new_cmds='true'
9570	# FIXME: Should let the user specify the lib program.
9571	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9572	enable_shared_with_static_runtimes=yes
9573	;;
9574      esac
9575      ;;
9576
9577    darwin* | rhapsody*)
9578
9579
9580  archive_cmds_need_lc=no
9581  hardcode_direct=no
9582  hardcode_automatic=yes
9583  hardcode_shlibpath_var=unsupported
9584  if test "$lt_cv_ld_force_load" = "yes"; then
9585    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\"`'
9586
9587  else
9588    whole_archive_flag_spec=''
9589  fi
9590  link_all_deplibs=yes
9591  allow_undefined_flag="$_lt_dar_allow_undefined"
9592  case $cc_basename in
9593     ifort*) _lt_dar_can_shared=yes ;;
9594     *) _lt_dar_can_shared=$GCC ;;
9595  esac
9596  if test "$_lt_dar_can_shared" = "yes"; then
9597    output_verbose_link_cmd=func_echo_all
9598    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9599    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9600    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}"
9601    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}"
9602
9603  else
9604  ld_shlibs=no
9605  fi
9606
9607      ;;
9608
9609    dgux*)
9610      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611      hardcode_libdir_flag_spec='-L$libdir'
9612      hardcode_shlibpath_var=no
9613      ;;
9614
9615    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9616    # support.  Future versions do this automatically, but an explicit c++rt0.o
9617    # does not break anything, and helps significantly (at the cost of a little
9618    # extra space).
9619    freebsd2.2*)
9620      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9621      hardcode_libdir_flag_spec='-R$libdir'
9622      hardcode_direct=yes
9623      hardcode_shlibpath_var=no
9624      ;;
9625
9626    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9627    freebsd2.*)
9628      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9629      hardcode_direct=yes
9630      hardcode_minus_L=yes
9631      hardcode_shlibpath_var=no
9632      ;;
9633
9634    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9635    freebsd* | dragonfly*)
9636      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637      hardcode_libdir_flag_spec='-R$libdir'
9638      hardcode_direct=yes
9639      hardcode_shlibpath_var=no
9640      ;;
9641
9642    hpux9*)
9643      if test "$GCC" = yes; then
9644	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9645      else
9646	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9647      fi
9648      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9649      hardcode_libdir_separator=:
9650      hardcode_direct=yes
9651
9652      # hardcode_minus_L: Not really in the search PATH,
9653      # but as the default location of the library.
9654      hardcode_minus_L=yes
9655      export_dynamic_flag_spec='${wl}-E'
9656      ;;
9657
9658    hpux10*)
9659      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9660	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9661      else
9662	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9663      fi
9664      if test "$with_gnu_ld" = no; then
9665	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666	hardcode_libdir_separator=:
9667	hardcode_direct=yes
9668	hardcode_direct_absolute=yes
9669	export_dynamic_flag_spec='${wl}-E'
9670	# hardcode_minus_L: Not really in the search PATH,
9671	# but as the default location of the library.
9672	hardcode_minus_L=yes
9673      fi
9674      ;;
9675
9676    hpux11*)
9677      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9678	case $host_cpu in
9679	hppa*64*)
9680	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681	  ;;
9682	ia64*)
9683	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684	  ;;
9685	*)
9686	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687	  ;;
9688	esac
9689      else
9690	case $host_cpu in
9691	hppa*64*)
9692	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693	  ;;
9694	ia64*)
9695	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696	  ;;
9697	*)
9698
9699	  # Older versions of the 11.00 compiler do not understand -b yet
9700	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9701	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9702$as_echo_n "checking if $CC understands -b... " >&6; }
9703if ${lt_cv_prog_compiler__b+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  lt_cv_prog_compiler__b=no
9707   save_LDFLAGS="$LDFLAGS"
9708   LDFLAGS="$LDFLAGS -b"
9709   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9710   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9711     # The linker can only warn and ignore the option if not recognized
9712     # So say no if there are warnings
9713     if test -s conftest.err; then
9714       # Append any errors to the config.log.
9715       cat conftest.err 1>&5
9716       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9717       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718       if diff conftest.exp conftest.er2 >/dev/null; then
9719         lt_cv_prog_compiler__b=yes
9720       fi
9721     else
9722       lt_cv_prog_compiler__b=yes
9723     fi
9724   fi
9725   $RM -r conftest*
9726   LDFLAGS="$save_LDFLAGS"
9727
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9730$as_echo "$lt_cv_prog_compiler__b" >&6; }
9731
9732if test x"$lt_cv_prog_compiler__b" = xyes; then
9733    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734else
9735    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736fi
9737
9738	  ;;
9739	esac
9740      fi
9741      if test "$with_gnu_ld" = no; then
9742	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743	hardcode_libdir_separator=:
9744
9745	case $host_cpu in
9746	hppa*64*|ia64*)
9747	  hardcode_direct=no
9748	  hardcode_shlibpath_var=no
9749	  ;;
9750	*)
9751	  hardcode_direct=yes
9752	  hardcode_direct_absolute=yes
9753	  export_dynamic_flag_spec='${wl}-E'
9754
9755	  # hardcode_minus_L: Not really in the search PATH,
9756	  # but as the default location of the library.
9757	  hardcode_minus_L=yes
9758	  ;;
9759	esac
9760      fi
9761      ;;
9762
9763    irix5* | irix6* | nonstopux*)
9764      if test "$GCC" = yes; then
9765	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'
9766	# Try to use the -exported_symbol ld option, if it does not
9767	# work, assume that -exports_file does not work either and
9768	# implicitly export all symbols.
9769	# This should be the same for all languages, so no per-tag cache variable.
9770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9771$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9772if ${lt_cv_irix_exported_symbol+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  save_LDFLAGS="$LDFLAGS"
9776	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int foo (void) { return 0; }
9780_ACEOF
9781if ac_fn_c_try_link "$LINENO"; then :
9782  lt_cv_irix_exported_symbol=yes
9783else
9784  lt_cv_irix_exported_symbol=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext \
9787    conftest$ac_exeext conftest.$ac_ext
9788           LDFLAGS="$save_LDFLAGS"
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9791$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9792	if test "$lt_cv_irix_exported_symbol" = yes; then
9793          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'
9794	fi
9795      else
9796	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'
9797	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'
9798      fi
9799      archive_cmds_need_lc='no'
9800      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801      hardcode_libdir_separator=:
9802      inherit_rpath=yes
9803      link_all_deplibs=yes
9804      ;;
9805
9806    netbsd*)
9807      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9809      else
9810	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9811      fi
9812      hardcode_libdir_flag_spec='-R$libdir'
9813      hardcode_direct=yes
9814      hardcode_shlibpath_var=no
9815      ;;
9816
9817    newsos6)
9818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819      hardcode_direct=yes
9820      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821      hardcode_libdir_separator=:
9822      hardcode_shlibpath_var=no
9823      ;;
9824
9825    *nto* | *qnx*)
9826      ;;
9827
9828    openbsd*)
9829      if test -f /usr/libexec/ld.so; then
9830	hardcode_direct=yes
9831	hardcode_shlibpath_var=no
9832	hardcode_direct_absolute=yes
9833	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9834	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9836	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837	  export_dynamic_flag_spec='${wl}-E'
9838	else
9839	  case $host_os in
9840	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9841	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842	     hardcode_libdir_flag_spec='-R$libdir'
9843	     ;;
9844	   *)
9845	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9847	     ;;
9848	  esac
9849	fi
9850      else
9851	ld_shlibs=no
9852      fi
9853      ;;
9854
9855    os2*)
9856      hardcode_libdir_flag_spec='-L$libdir'
9857      hardcode_minus_L=yes
9858      allow_undefined_flag=unsupported
9859      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9860      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9861      ;;
9862
9863    osf3*)
9864      if test "$GCC" = yes; then
9865	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866	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'
9867      else
9868	allow_undefined_flag=' -expect_unresolved \*'
9869	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'
9870      fi
9871      archive_cmds_need_lc='no'
9872      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873      hardcode_libdir_separator=:
9874      ;;
9875
9876    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9877      if test "$GCC" = yes; then
9878	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9879	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'
9880	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881      else
9882	allow_undefined_flag=' -expect_unresolved \*'
9883	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'
9884	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~
9885	$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'
9886
9887	# Both c and cxx compiler support -rpath directly
9888	hardcode_libdir_flag_spec='-rpath $libdir'
9889      fi
9890      archive_cmds_need_lc='no'
9891      hardcode_libdir_separator=:
9892      ;;
9893
9894    solaris*)
9895      no_undefined_flag=' -z defs'
9896      if test "$GCC" = yes; then
9897	wlarc='${wl}'
9898	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900	  $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'
9901      else
9902	case `$CC -V 2>&1` in
9903	*"Compilers 5.0"*)
9904	  wlarc=''
9905	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9908	  ;;
9909	*)
9910	  wlarc='${wl}'
9911	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9914	  ;;
9915	esac
9916      fi
9917      hardcode_libdir_flag_spec='-R$libdir'
9918      hardcode_shlibpath_var=no
9919      case $host_os in
9920      solaris2.[0-5] | solaris2.[0-5].*) ;;
9921      *)
9922	# The compiler driver will combine and reorder linker options,
9923	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9924	# but is careful enough not to reorder.
9925	# Supported since Solaris 2.6 (maybe 2.5.1?)
9926	if test "$GCC" = yes; then
9927	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9928	else
9929	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9930	fi
9931	;;
9932      esac
9933      link_all_deplibs=yes
9934      ;;
9935
9936    sunos4*)
9937      if test "x$host_vendor" = xsequent; then
9938	# Use $CC to link under sequent, because it throws in some extra .o
9939	# files that make .init and .fini sections work.
9940	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941      else
9942	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9943      fi
9944      hardcode_libdir_flag_spec='-L$libdir'
9945      hardcode_direct=yes
9946      hardcode_minus_L=yes
9947      hardcode_shlibpath_var=no
9948      ;;
9949
9950    sysv4)
9951      case $host_vendor in
9952	sni)
9953	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954	  hardcode_direct=yes # is this really true???
9955	;;
9956	siemens)
9957	  ## LD is ld it makes a PLAMLIB
9958	  ## CC just makes a GrossModule.
9959	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9960	  reload_cmds='$CC -r -o $output$reload_objs'
9961	  hardcode_direct=no
9962        ;;
9963	motorola)
9964	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9966	;;
9967      esac
9968      runpath_var='LD_RUN_PATH'
9969      hardcode_shlibpath_var=no
9970      ;;
9971
9972    sysv4.3*)
9973      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974      hardcode_shlibpath_var=no
9975      export_dynamic_flag_spec='-Bexport'
9976      ;;
9977
9978    sysv4*MP*)
9979      if test -d /usr/nec; then
9980	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981	hardcode_shlibpath_var=no
9982	runpath_var=LD_RUN_PATH
9983	hardcode_runpath_var=yes
9984	ld_shlibs=yes
9985      fi
9986      ;;
9987
9988    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9989      no_undefined_flag='${wl}-z,text'
9990      archive_cmds_need_lc=no
9991      hardcode_shlibpath_var=no
9992      runpath_var='LD_RUN_PATH'
9993
9994      if test "$GCC" = yes; then
9995	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997      else
9998	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000      fi
10001      ;;
10002
10003    sysv5* | sco3.2v5* | sco5v6*)
10004      # Note: We can NOT use -z defs as we might desire, because we do not
10005      # link with -lc, and that would cause any symbols used from libc to
10006      # always be unresolved, which means just about no library would
10007      # ever link correctly.  If we're not using GNU ld we use -z text
10008      # though, which does catch some bad symbols but isn't as heavy-handed
10009      # as -z defs.
10010      no_undefined_flag='${wl}-z,text'
10011      allow_undefined_flag='${wl}-z,nodefs'
10012      archive_cmds_need_lc=no
10013      hardcode_shlibpath_var=no
10014      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10015      hardcode_libdir_separator=':'
10016      link_all_deplibs=yes
10017      export_dynamic_flag_spec='${wl}-Bexport'
10018      runpath_var='LD_RUN_PATH'
10019
10020      if test "$GCC" = yes; then
10021	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023      else
10024	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026      fi
10027      ;;
10028
10029    uts4*)
10030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031      hardcode_libdir_flag_spec='-L$libdir'
10032      hardcode_shlibpath_var=no
10033      ;;
10034
10035    *)
10036      ld_shlibs=no
10037      ;;
10038    esac
10039
10040    if test x$host_vendor = xsni; then
10041      case $host in
10042      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10043	export_dynamic_flag_spec='${wl}-Blargedynsym'
10044	;;
10045      esac
10046    fi
10047  fi
10048
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10050$as_echo "$ld_shlibs" >&6; }
10051test "$ld_shlibs" = no && can_build_shared=no
10052
10053with_gnu_ld=$with_gnu_ld
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069#
10070# Do we need to explicitly link libc?
10071#
10072case "x$archive_cmds_need_lc" in
10073x|xyes)
10074  # Assume -lc should be added
10075  archive_cmds_need_lc=yes
10076
10077  if test "$enable_shared" = yes && test "$GCC" = yes; then
10078    case $archive_cmds in
10079    *'~'*)
10080      # FIXME: we may have to deal with multi-command sequences.
10081      ;;
10082    '$CC '*)
10083      # Test whether the compiler implicitly links with -lc since on some
10084      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10085      # to ld, don't add -lc before -lgcc.
10086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10087$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10088if ${lt_cv_archive_cmds_need_lc+:} false; then :
10089  $as_echo_n "(cached) " >&6
10090else
10091  $RM conftest*
10092	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10093
10094	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10095  (eval $ac_compile) 2>&5
10096  ac_status=$?
10097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098  test $ac_status = 0; } 2>conftest.err; then
10099	  soname=conftest
10100	  lib=conftest
10101	  libobjs=conftest.$ac_objext
10102	  deplibs=
10103	  wl=$lt_prog_compiler_wl
10104	  pic_flag=$lt_prog_compiler_pic
10105	  compiler_flags=-v
10106	  linker_flags=-v
10107	  verstring=
10108	  output_objdir=.
10109	  libname=conftest
10110	  lt_save_allow_undefined_flag=$allow_undefined_flag
10111	  allow_undefined_flag=
10112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10113  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10114  ac_status=$?
10115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116  test $ac_status = 0; }
10117	  then
10118	    lt_cv_archive_cmds_need_lc=no
10119	  else
10120	    lt_cv_archive_cmds_need_lc=yes
10121	  fi
10122	  allow_undefined_flag=$lt_save_allow_undefined_flag
10123	else
10124	  cat conftest.err 1>&5
10125	fi
10126	$RM conftest*
10127
10128fi
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10130$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10131      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10132      ;;
10133    esac
10134  fi
10135  ;;
10136esac
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10290$as_echo_n "checking dynamic linker characteristics... " >&6; }
10291
10292if test "$GCC" = yes; then
10293  case $host_os in
10294    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10295    *) lt_awk_arg="/^libraries:/" ;;
10296  esac
10297  case $host_os in
10298    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10299    *) lt_sed_strip_eq="s,=/,/,g" ;;
10300  esac
10301  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10302  case $lt_search_path_spec in
10303  *\;*)
10304    # if the path contains ";" then we assume it to be the separator
10305    # otherwise default to the standard path separator (i.e. ":") - it is
10306    # assumed that no part of a normal pathname contains ";" but that should
10307    # okay in the real world where ";" in dirpaths is itself problematic.
10308    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10309    ;;
10310  *)
10311    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10312    ;;
10313  esac
10314  # Ok, now we have the path, separated by spaces, we can step through it
10315  # and add multilib dir if necessary.
10316  lt_tmp_lt_search_path_spec=
10317  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10318  for lt_sys_path in $lt_search_path_spec; do
10319    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10320      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10321    else
10322      test -d "$lt_sys_path" && \
10323	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10324    fi
10325  done
10326  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10327BEGIN {RS=" "; FS="/|\n";} {
10328  lt_foo="";
10329  lt_count=0;
10330  for (lt_i = NF; lt_i > 0; lt_i--) {
10331    if ($lt_i != "" && $lt_i != ".") {
10332      if ($lt_i == "..") {
10333        lt_count++;
10334      } else {
10335        if (lt_count == 0) {
10336          lt_foo="/" $lt_i lt_foo;
10337        } else {
10338          lt_count--;
10339        }
10340      }
10341    }
10342  }
10343  if (lt_foo != "") { lt_freq[lt_foo]++; }
10344  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10345}'`
10346  # AWK program above erroneously prepends '/' to C:/dos/paths
10347  # for these hosts.
10348  case $host_os in
10349    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10350      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10351  esac
10352  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10353else
10354  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10355fi
10356library_names_spec=
10357libname_spec='lib$name'
10358soname_spec=
10359shrext_cmds=".so"
10360postinstall_cmds=
10361postuninstall_cmds=
10362finish_cmds=
10363finish_eval=
10364shlibpath_var=
10365shlibpath_overrides_runpath=unknown
10366version_type=none
10367dynamic_linker="$host_os ld.so"
10368sys_lib_dlsearch_path_spec="/lib /usr/lib"
10369need_lib_prefix=unknown
10370hardcode_into_libs=no
10371
10372# when you set need_version to no, make sure it does not cause -set_version
10373# flags to be left without arguments
10374need_version=unknown
10375
10376case $host_os in
10377aix3*)
10378  version_type=linux # correct to gnu/linux during the next big refactor
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10380  shlibpath_var=LIBPATH
10381
10382  # AIX 3 has no versioning support, so we append a major version to the name.
10383  soname_spec='${libname}${release}${shared_ext}$major'
10384  ;;
10385
10386aix[4-9]*)
10387  version_type=linux # correct to gnu/linux during the next big refactor
10388  need_lib_prefix=no
10389  need_version=no
10390  hardcode_into_libs=yes
10391  if test "$host_cpu" = ia64; then
10392    # AIX 5 supports IA64
10393    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10394    shlibpath_var=LD_LIBRARY_PATH
10395  else
10396    # With GCC up to 2.95.x, collect2 would create an import file
10397    # for dependence libraries.  The import file would start with
10398    # the line `#! .'.  This would cause the generated library to
10399    # depend on `.', always an invalid library.  This was fixed in
10400    # development snapshots of GCC prior to 3.0.
10401    case $host_os in
10402      aix4 | aix4.[01] | aix4.[01].*)
10403      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10404	   echo ' yes '
10405	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10406	:
10407      else
10408	can_build_shared=no
10409      fi
10410      ;;
10411    esac
10412    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10413    # soname into executable. Probably we can add versioning support to
10414    # collect2, so additional links can be useful in future.
10415    if test "$aix_use_runtimelinking" = yes; then
10416      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10417      # instead of lib<name>.a to let people know that these are not
10418      # typical AIX shared libraries.
10419      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420    else
10421      # We preserve .a as extension for shared libraries through AIX4.2
10422      # and later when we are not doing run time linking.
10423      library_names_spec='${libname}${release}.a $libname.a'
10424      soname_spec='${libname}${release}${shared_ext}$major'
10425    fi
10426    shlibpath_var=LIBPATH
10427  fi
10428  ;;
10429
10430amigaos*)
10431  case $host_cpu in
10432  powerpc)
10433    # Since July 2007 AmigaOS4 officially supports .so libraries.
10434    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436    ;;
10437  m68k)
10438    library_names_spec='$libname.ixlibrary $libname.a'
10439    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10440    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10441    ;;
10442  esac
10443  ;;
10444
10445beos*)
10446  library_names_spec='${libname}${shared_ext}'
10447  dynamic_linker="$host_os ld.so"
10448  shlibpath_var=LIBRARY_PATH
10449  ;;
10450
10451bsdi[45]*)
10452  version_type=linux # correct to gnu/linux during the next big refactor
10453  need_version=no
10454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455  soname_spec='${libname}${release}${shared_ext}$major'
10456  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10457  shlibpath_var=LD_LIBRARY_PATH
10458  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10459  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10460  # the default ld.so.conf also contains /usr/contrib/lib and
10461  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10462  # libtool to hard-code these into programs
10463  ;;
10464
10465cygwin* | mingw* | pw32* | cegcc*)
10466  version_type=windows
10467  shrext_cmds=".dll"
10468  need_version=no
10469  need_lib_prefix=no
10470
10471  case $GCC,$cc_basename in
10472  yes,*)
10473    # gcc
10474    library_names_spec='$libname.dll.a'
10475    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10476    postinstall_cmds='base_file=`basename \${file}`~
10477      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10478      dldir=$destdir/`dirname \$dlpath`~
10479      test -d \$dldir || mkdir -p \$dldir~
10480      $install_prog $dir/$dlname \$dldir/$dlname~
10481      chmod a+x \$dldir/$dlname~
10482      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10483        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10484      fi'
10485    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10486      dlpath=$dir/\$dldll~
10487       $RM \$dlpath'
10488    shlibpath_overrides_runpath=yes
10489
10490    case $host_os in
10491    cygwin*)
10492      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10493      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494
10495      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10496      ;;
10497    mingw* | cegcc*)
10498      # MinGW DLLs use traditional 'lib' prefix
10499      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10500      ;;
10501    pw32*)
10502      # pw32 DLLs use 'pw' prefix rather than 'lib'
10503      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504      ;;
10505    esac
10506    dynamic_linker='Win32 ld.exe'
10507    ;;
10508
10509  *,cl*)
10510    # Native MSVC
10511    libname_spec='$name'
10512    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513    library_names_spec='${libname}.dll.lib'
10514
10515    case $build_os in
10516    mingw*)
10517      sys_lib_search_path_spec=
10518      lt_save_ifs=$IFS
10519      IFS=';'
10520      for lt_path in $LIB
10521      do
10522        IFS=$lt_save_ifs
10523        # Let DOS variable expansion print the short 8.3 style file name.
10524        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10525        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10526      done
10527      IFS=$lt_save_ifs
10528      # Convert to MSYS style.
10529      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10530      ;;
10531    cygwin*)
10532      # Convert to unix form, then to dos form, then back to unix form
10533      # but this time dos style (no spaces!) so that the unix form looks
10534      # like /cygdrive/c/PROGRA~1:/cygdr...
10535      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10536      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10537      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10538      ;;
10539    *)
10540      sys_lib_search_path_spec="$LIB"
10541      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10542        # It is most probably a Windows format PATH.
10543        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10544      else
10545        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10546      fi
10547      # FIXME: find the short name or the path components, as spaces are
10548      # common. (e.g. "Program Files" -> "PROGRA~1")
10549      ;;
10550    esac
10551
10552    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10553    postinstall_cmds='base_file=`basename \${file}`~
10554      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10555      dldir=$destdir/`dirname \$dlpath`~
10556      test -d \$dldir || mkdir -p \$dldir~
10557      $install_prog $dir/$dlname \$dldir/$dlname'
10558    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10559      dlpath=$dir/\$dldll~
10560       $RM \$dlpath'
10561    shlibpath_overrides_runpath=yes
10562    dynamic_linker='Win32 link.exe'
10563    ;;
10564
10565  *)
10566    # Assume MSVC wrapper
10567    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10568    dynamic_linker='Win32 ld.exe'
10569    ;;
10570  esac
10571  # FIXME: first we should search . and the directory the executable is in
10572  shlibpath_var=PATH
10573  ;;
10574
10575darwin* | rhapsody*)
10576  dynamic_linker="$host_os dyld"
10577  version_type=darwin
10578  need_lib_prefix=no
10579  need_version=no
10580  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10581  soname_spec='${libname}${release}${major}$shared_ext'
10582  shlibpath_overrides_runpath=yes
10583  shlibpath_var=DYLD_LIBRARY_PATH
10584  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10585
10586  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10587  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10588  ;;
10589
10590dgux*)
10591  version_type=linux # correct to gnu/linux during the next big refactor
10592  need_lib_prefix=no
10593  need_version=no
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10595  soname_spec='${libname}${release}${shared_ext}$major'
10596  shlibpath_var=LD_LIBRARY_PATH
10597  ;;
10598
10599freebsd* | dragonfly*)
10600  # DragonFly does not have aout.  When/if they implement a new
10601  # versioning mechanism, adjust this.
10602  if test -x /usr/bin/objformat; then
10603    objformat=`/usr/bin/objformat`
10604  else
10605    case $host_os in
10606    freebsd[23].*) objformat=aout ;;
10607    *) objformat=elf ;;
10608    esac
10609  fi
10610  version_type=freebsd-$objformat
10611  case $version_type in
10612    freebsd-elf*)
10613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10614      need_version=no
10615      need_lib_prefix=no
10616      ;;
10617    freebsd-*)
10618      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10619      need_version=yes
10620      ;;
10621  esac
10622  shlibpath_var=LD_LIBRARY_PATH
10623  case $host_os in
10624  freebsd2.*)
10625    shlibpath_overrides_runpath=yes
10626    ;;
10627  freebsd3.[01]* | freebsdelf3.[01]*)
10628    shlibpath_overrides_runpath=yes
10629    hardcode_into_libs=yes
10630    ;;
10631  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10632  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10633    shlibpath_overrides_runpath=no
10634    hardcode_into_libs=yes
10635    ;;
10636  *) # from 4.6 on, and DragonFly
10637    shlibpath_overrides_runpath=yes
10638    hardcode_into_libs=yes
10639    ;;
10640  esac
10641  ;;
10642
10643gnu*)
10644  version_type=linux # correct to gnu/linux during the next big refactor
10645  need_lib_prefix=no
10646  need_version=no
10647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10648  soname_spec='${libname}${release}${shared_ext}$major'
10649  shlibpath_var=LD_LIBRARY_PATH
10650  shlibpath_overrides_runpath=no
10651  hardcode_into_libs=yes
10652  ;;
10653
10654haiku*)
10655  version_type=linux # correct to gnu/linux during the next big refactor
10656  need_lib_prefix=no
10657  need_version=no
10658  dynamic_linker="$host_os runtime_loader"
10659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10660  soname_spec='${libname}${release}${shared_ext}$major'
10661  shlibpath_var=LIBRARY_PATH
10662  shlibpath_overrides_runpath=yes
10663  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10664  hardcode_into_libs=yes
10665  ;;
10666
10667hpux9* | hpux10* | hpux11*)
10668  # Give a soname corresponding to the major version so that dld.sl refuses to
10669  # link against other versions.
10670  version_type=sunos
10671  need_lib_prefix=no
10672  need_version=no
10673  case $host_cpu in
10674  ia64*)
10675    shrext_cmds='.so'
10676    hardcode_into_libs=yes
10677    dynamic_linker="$host_os dld.so"
10678    shlibpath_var=LD_LIBRARY_PATH
10679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681    soname_spec='${libname}${release}${shared_ext}$major'
10682    if test "X$HPUX_IA64_MODE" = X32; then
10683      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10684    else
10685      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10686    fi
10687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10688    ;;
10689  hppa*64*)
10690    shrext_cmds='.sl'
10691    hardcode_into_libs=yes
10692    dynamic_linker="$host_os dld.sl"
10693    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10694    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696    soname_spec='${libname}${release}${shared_ext}$major'
10697    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10698    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10699    ;;
10700  *)
10701    shrext_cmds='.sl'
10702    dynamic_linker="$host_os dld.sl"
10703    shlibpath_var=SHLIB_PATH
10704    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706    soname_spec='${libname}${release}${shared_ext}$major'
10707    ;;
10708  esac
10709  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10710  postinstall_cmds='chmod 555 $lib'
10711  # or fails outright, so override atomically:
10712  install_override_mode=555
10713  ;;
10714
10715interix[3-9]*)
10716  version_type=linux # correct to gnu/linux during the next big refactor
10717  need_lib_prefix=no
10718  need_version=no
10719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10720  soname_spec='${libname}${release}${shared_ext}$major'
10721  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10722  shlibpath_var=LD_LIBRARY_PATH
10723  shlibpath_overrides_runpath=no
10724  hardcode_into_libs=yes
10725  ;;
10726
10727irix5* | irix6* | nonstopux*)
10728  case $host_os in
10729    nonstopux*) version_type=nonstopux ;;
10730    *)
10731	if test "$lt_cv_prog_gnu_ld" = yes; then
10732		version_type=linux # correct to gnu/linux during the next big refactor
10733	else
10734		version_type=irix
10735	fi ;;
10736  esac
10737  need_lib_prefix=no
10738  need_version=no
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10741  case $host_os in
10742  irix5* | nonstopux*)
10743    libsuff= shlibsuff=
10744    ;;
10745  *)
10746    case $LD in # libtool.m4 will add one of these switches to LD
10747    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10748      libsuff= shlibsuff= libmagic=32-bit;;
10749    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10750      libsuff=32 shlibsuff=N32 libmagic=N32;;
10751    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10752      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10753    *) libsuff= shlibsuff= libmagic=never-match;;
10754    esac
10755    ;;
10756  esac
10757  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10758  shlibpath_overrides_runpath=no
10759  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10760  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10761  hardcode_into_libs=yes
10762  ;;
10763
10764# No shared lib support for Linux oldld, aout, or coff.
10765linux*oldld* | linux*aout* | linux*coff*)
10766  dynamic_linker=no
10767  ;;
10768
10769# This must be glibc/ELF.
10770linux* | k*bsd*-gnu | kopensolaris*-gnu)
10771  version_type=linux # correct to gnu/linux during the next big refactor
10772  need_lib_prefix=no
10773  need_version=no
10774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775  soname_spec='${libname}${release}${shared_ext}$major'
10776  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10777  shlibpath_var=LD_LIBRARY_PATH
10778  shlibpath_overrides_runpath=no
10779
10780  # Some binutils ld are patched to set DT_RUNPATH
10781  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  lt_cv_shlibpath_overrides_runpath=no
10785    save_LDFLAGS=$LDFLAGS
10786    save_libdir=$libdir
10787    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10788	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791
10792int
10793main ()
10794{
10795
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800if ac_fn_c_try_link "$LINENO"; then :
10801  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10802  lt_cv_shlibpath_overrides_runpath=yes
10803fi
10804fi
10805rm -f core conftest.err conftest.$ac_objext \
10806    conftest$ac_exeext conftest.$ac_ext
10807    LDFLAGS=$save_LDFLAGS
10808    libdir=$save_libdir
10809
10810fi
10811
10812  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10813
10814  # This implies no fast_install, which is unacceptable.
10815  # Some rework will be needed to allow for fast_install
10816  # before this can be enabled.
10817  hardcode_into_libs=yes
10818
10819  # Append ld.so.conf contents to the search path
10820  if test -f /etc/ld.so.conf; then
10821    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' ' '`
10822    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10823  fi
10824
10825  # We used to test for /lib/ld.so.1 and disable shared libraries on
10826  # powerpc, because MkLinux only supported shared libraries with the
10827  # GNU dynamic linker.  Since this was broken with cross compilers,
10828  # most powerpc-linux boxes support dynamic linking these days and
10829  # people can always --disable-shared, the test was removed, and we
10830  # assume the GNU/Linux dynamic linker is in use.
10831  dynamic_linker='GNU/Linux ld.so'
10832  ;;
10833
10834netbsd*)
10835  version_type=sunos
10836  need_lib_prefix=no
10837  need_version=no
10838  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10841    dynamic_linker='NetBSD (a.out) ld.so'
10842  else
10843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10844    soname_spec='${libname}${release}${shared_ext}$major'
10845    dynamic_linker='NetBSD ld.elf_so'
10846  fi
10847  shlibpath_var=LD_LIBRARY_PATH
10848  shlibpath_overrides_runpath=yes
10849  hardcode_into_libs=yes
10850  ;;
10851
10852newsos6)
10853  version_type=linux # correct to gnu/linux during the next big refactor
10854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855  shlibpath_var=LD_LIBRARY_PATH
10856  shlibpath_overrides_runpath=yes
10857  ;;
10858
10859*nto* | *qnx*)
10860  version_type=qnx
10861  need_lib_prefix=no
10862  need_version=no
10863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864  soname_spec='${libname}${release}${shared_ext}$major'
10865  shlibpath_var=LD_LIBRARY_PATH
10866  shlibpath_overrides_runpath=no
10867  hardcode_into_libs=yes
10868  dynamic_linker='ldqnx.so'
10869  ;;
10870
10871openbsd*)
10872  version_type=sunos
10873  sys_lib_dlsearch_path_spec="/usr/lib"
10874  need_lib_prefix=no
10875  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10876  case $host_os in
10877    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10878    *)				need_version=no  ;;
10879  esac
10880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882  shlibpath_var=LD_LIBRARY_PATH
10883  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10884    case $host_os in
10885      openbsd2.[89] | openbsd2.[89].*)
10886	shlibpath_overrides_runpath=no
10887	;;
10888      *)
10889	shlibpath_overrides_runpath=yes
10890	;;
10891      esac
10892  else
10893    shlibpath_overrides_runpath=yes
10894  fi
10895  ;;
10896
10897os2*)
10898  libname_spec='$name'
10899  shrext_cmds=".dll"
10900  need_lib_prefix=no
10901  library_names_spec='$libname${shared_ext} $libname.a'
10902  dynamic_linker='OS/2 ld.exe'
10903  shlibpath_var=LIBPATH
10904  ;;
10905
10906osf3* | osf4* | osf5*)
10907  version_type=osf
10908  need_lib_prefix=no
10909  need_version=no
10910  soname_spec='${libname}${release}${shared_ext}$major'
10911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912  shlibpath_var=LD_LIBRARY_PATH
10913  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10914  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10915  ;;
10916
10917rdos*)
10918  dynamic_linker=no
10919  ;;
10920
10921solaris*)
10922  version_type=linux # correct to gnu/linux during the next big refactor
10923  need_lib_prefix=no
10924  need_version=no
10925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926  soname_spec='${libname}${release}${shared_ext}$major'
10927  shlibpath_var=LD_LIBRARY_PATH
10928  shlibpath_overrides_runpath=yes
10929  hardcode_into_libs=yes
10930  # ldd complains unless libraries are executable
10931  postinstall_cmds='chmod +x $lib'
10932  ;;
10933
10934sunos4*)
10935  version_type=sunos
10936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10938  shlibpath_var=LD_LIBRARY_PATH
10939  shlibpath_overrides_runpath=yes
10940  if test "$with_gnu_ld" = yes; then
10941    need_lib_prefix=no
10942  fi
10943  need_version=yes
10944  ;;
10945
10946sysv4 | sysv4.3*)
10947  version_type=linux # correct to gnu/linux during the next big refactor
10948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949  soname_spec='${libname}${release}${shared_ext}$major'
10950  shlibpath_var=LD_LIBRARY_PATH
10951  case $host_vendor in
10952    sni)
10953      shlibpath_overrides_runpath=no
10954      need_lib_prefix=no
10955      runpath_var=LD_RUN_PATH
10956      ;;
10957    siemens)
10958      need_lib_prefix=no
10959      ;;
10960    motorola)
10961      need_lib_prefix=no
10962      need_version=no
10963      shlibpath_overrides_runpath=no
10964      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10965      ;;
10966  esac
10967  ;;
10968
10969sysv4*MP*)
10970  if test -d /usr/nec ;then
10971    version_type=linux # correct to gnu/linux during the next big refactor
10972    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10973    soname_spec='$libname${shared_ext}.$major'
10974    shlibpath_var=LD_LIBRARY_PATH
10975  fi
10976  ;;
10977
10978sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10979  version_type=freebsd-elf
10980  need_lib_prefix=no
10981  need_version=no
10982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10983  soname_spec='${libname}${release}${shared_ext}$major'
10984  shlibpath_var=LD_LIBRARY_PATH
10985  shlibpath_overrides_runpath=yes
10986  hardcode_into_libs=yes
10987  if test "$with_gnu_ld" = yes; then
10988    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10989  else
10990    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10991    case $host_os in
10992      sco3.2v5*)
10993        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10994	;;
10995    esac
10996  fi
10997  sys_lib_dlsearch_path_spec='/usr/lib'
10998  ;;
10999
11000tpf*)
11001  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11002  version_type=linux # correct to gnu/linux during the next big refactor
11003  need_lib_prefix=no
11004  need_version=no
11005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006  shlibpath_var=LD_LIBRARY_PATH
11007  shlibpath_overrides_runpath=no
11008  hardcode_into_libs=yes
11009  ;;
11010
11011uts4*)
11012  version_type=linux # correct to gnu/linux during the next big refactor
11013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014  soname_spec='${libname}${release}${shared_ext}$major'
11015  shlibpath_var=LD_LIBRARY_PATH
11016  ;;
11017
11018*)
11019  dynamic_linker=no
11020  ;;
11021esac
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11023$as_echo "$dynamic_linker" >&6; }
11024test "$dynamic_linker" = no && can_build_shared=no
11025
11026variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11027if test "$GCC" = yes; then
11028  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11029fi
11030
11031if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11032  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11033fi
11034if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11035  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11036fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11130$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11131hardcode_action=
11132if test -n "$hardcode_libdir_flag_spec" ||
11133   test -n "$runpath_var" ||
11134   test "X$hardcode_automatic" = "Xyes" ; then
11135
11136  # We can hardcode non-existent directories.
11137  if test "$hardcode_direct" != no &&
11138     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11139     # have to relink, otherwise we might link with an installed library
11140     # when we should be linking with a yet-to-be-installed one
11141     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11142     test "$hardcode_minus_L" != no; then
11143    # Linking always hardcodes the temporary library directory.
11144    hardcode_action=relink
11145  else
11146    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11147    hardcode_action=immediate
11148  fi
11149else
11150  # We cannot hardcode anything, or else we can only hardcode existing
11151  # directories.
11152  hardcode_action=unsupported
11153fi
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11155$as_echo "$hardcode_action" >&6; }
11156
11157if test "$hardcode_action" = relink ||
11158   test "$inherit_rpath" = yes; then
11159  # Fast installation is not supported
11160  enable_fast_install=no
11161elif test "$shlibpath_overrides_runpath" = yes ||
11162     test "$enable_shared" = no; then
11163  # Fast installation is not necessary
11164  enable_fast_install=needless
11165fi
11166
11167
11168
11169
11170
11171
11172  if test "x$enable_dlopen" != xyes; then
11173  enable_dlopen=unknown
11174  enable_dlopen_self=unknown
11175  enable_dlopen_self_static=unknown
11176else
11177  lt_cv_dlopen=no
11178  lt_cv_dlopen_libs=
11179
11180  case $host_os in
11181  beos*)
11182    lt_cv_dlopen="load_add_on"
11183    lt_cv_dlopen_libs=
11184    lt_cv_dlopen_self=yes
11185    ;;
11186
11187  mingw* | pw32* | cegcc*)
11188    lt_cv_dlopen="LoadLibrary"
11189    lt_cv_dlopen_libs=
11190    ;;
11191
11192  cygwin*)
11193    lt_cv_dlopen="dlopen"
11194    lt_cv_dlopen_libs=
11195    ;;
11196
11197  darwin*)
11198  # if libdl is installed we need to link against it
11199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11200$as_echo_n "checking for dlopen in -ldl... " >&6; }
11201if ${ac_cv_lib_dl_dlopen+:} false; then :
11202  $as_echo_n "(cached) " >&6
11203else
11204  ac_check_lib_save_LIBS=$LIBS
11205LIBS="-ldl  $LIBS"
11206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h.  */
11208
11209/* Override any GCC internal prototype to avoid an error.
11210   Use char because int might match the return type of a GCC
11211   builtin and then its argument prototype would still apply.  */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215char dlopen ();
11216int
11217main ()
11218{
11219return dlopen ();
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224if ac_fn_c_try_link "$LINENO"; then :
11225  ac_cv_lib_dl_dlopen=yes
11226else
11227  ac_cv_lib_dl_dlopen=no
11228fi
11229rm -f core conftest.err conftest.$ac_objext \
11230    conftest$ac_exeext conftest.$ac_ext
11231LIBS=$ac_check_lib_save_LIBS
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11234$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11235if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11236  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11237else
11238
11239    lt_cv_dlopen="dyld"
11240    lt_cv_dlopen_libs=
11241    lt_cv_dlopen_self=yes
11242
11243fi
11244
11245    ;;
11246
11247  *)
11248    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11249if test "x$ac_cv_func_shl_load" = xyes; then :
11250  lt_cv_dlopen="shl_load"
11251else
11252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11253$as_echo_n "checking for shl_load in -ldld... " >&6; }
11254if ${ac_cv_lib_dld_shl_load+:} false; then :
11255  $as_echo_n "(cached) " >&6
11256else
11257  ac_check_lib_save_LIBS=$LIBS
11258LIBS="-ldld  $LIBS"
11259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h.  */
11261
11262/* Override any GCC internal prototype to avoid an error.
11263   Use char because int might match the return type of a GCC
11264   builtin and then its argument prototype would still apply.  */
11265#ifdef __cplusplus
11266extern "C"
11267#endif
11268char shl_load ();
11269int
11270main ()
11271{
11272return shl_load ();
11273  ;
11274  return 0;
11275}
11276_ACEOF
11277if ac_fn_c_try_link "$LINENO"; then :
11278  ac_cv_lib_dld_shl_load=yes
11279else
11280  ac_cv_lib_dld_shl_load=no
11281fi
11282rm -f core conftest.err conftest.$ac_objext \
11283    conftest$ac_exeext conftest.$ac_ext
11284LIBS=$ac_check_lib_save_LIBS
11285fi
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11287$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11288if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11289  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11290else
11291  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11292if test "x$ac_cv_func_dlopen" = xyes; then :
11293  lt_cv_dlopen="dlopen"
11294else
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296$as_echo_n "checking for dlopen in -ldl... " >&6; }
11297if ${ac_cv_lib_dl_dlopen+:} false; then :
11298  $as_echo_n "(cached) " >&6
11299else
11300  ac_check_lib_save_LIBS=$LIBS
11301LIBS="-ldl  $LIBS"
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304
11305/* Override any GCC internal prototype to avoid an error.
11306   Use char because int might match the return type of a GCC
11307   builtin and then its argument prototype would still apply.  */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char dlopen ();
11312int
11313main ()
11314{
11315return dlopen ();
11316  ;
11317  return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321  ac_cv_lib_dl_dlopen=yes
11322else
11323  ac_cv_lib_dl_dlopen=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326    conftest$ac_exeext conftest.$ac_ext
11327LIBS=$ac_check_lib_save_LIBS
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333else
11334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11335$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11336if ${ac_cv_lib_svld_dlopen+:} false; then :
11337  $as_echo_n "(cached) " >&6
11338else
11339  ac_check_lib_save_LIBS=$LIBS
11340LIBS="-lsvld  $LIBS"
11341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343
11344/* Override any GCC internal prototype to avoid an error.
11345   Use char because int might match the return type of a GCC
11346   builtin and then its argument prototype would still apply.  */
11347#ifdef __cplusplus
11348extern "C"
11349#endif
11350char dlopen ();
11351int
11352main ()
11353{
11354return dlopen ();
11355  ;
11356  return 0;
11357}
11358_ACEOF
11359if ac_fn_c_try_link "$LINENO"; then :
11360  ac_cv_lib_svld_dlopen=yes
11361else
11362  ac_cv_lib_svld_dlopen=no
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365    conftest$ac_exeext conftest.$ac_ext
11366LIBS=$ac_check_lib_save_LIBS
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11369$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11370if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11371  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11372else
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11374$as_echo_n "checking for dld_link in -ldld... " >&6; }
11375if ${ac_cv_lib_dld_dld_link+:} false; then :
11376  $as_echo_n "(cached) " >&6
11377else
11378  ac_check_lib_save_LIBS=$LIBS
11379LIBS="-ldld  $LIBS"
11380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382
11383/* Override any GCC internal prototype to avoid an error.
11384   Use char because int might match the return type of a GCC
11385   builtin and then its argument prototype would still apply.  */
11386#ifdef __cplusplus
11387extern "C"
11388#endif
11389char dld_link ();
11390int
11391main ()
11392{
11393return dld_link ();
11394  ;
11395  return 0;
11396}
11397_ACEOF
11398if ac_fn_c_try_link "$LINENO"; then :
11399  ac_cv_lib_dld_dld_link=yes
11400else
11401  ac_cv_lib_dld_dld_link=no
11402fi
11403rm -f core conftest.err conftest.$ac_objext \
11404    conftest$ac_exeext conftest.$ac_ext
11405LIBS=$ac_check_lib_save_LIBS
11406fi
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11408$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11409if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11410  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11411fi
11412
11413
11414fi
11415
11416
11417fi
11418
11419
11420fi
11421
11422
11423fi
11424
11425
11426fi
11427
11428    ;;
11429  esac
11430
11431  if test "x$lt_cv_dlopen" != xno; then
11432    enable_dlopen=yes
11433  else
11434    enable_dlopen=no
11435  fi
11436
11437  case $lt_cv_dlopen in
11438  dlopen)
11439    save_CPPFLAGS="$CPPFLAGS"
11440    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11441
11442    save_LDFLAGS="$LDFLAGS"
11443    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11444
11445    save_LIBS="$LIBS"
11446    LIBS="$lt_cv_dlopen_libs $LIBS"
11447
11448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11449$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11450if ${lt_cv_dlopen_self+:} false; then :
11451  $as_echo_n "(cached) " >&6
11452else
11453  	  if test "$cross_compiling" = yes; then :
11454  lt_cv_dlopen_self=cross
11455else
11456  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457  lt_status=$lt_dlunknown
11458  cat > conftest.$ac_ext <<_LT_EOF
11459#line $LINENO "configure"
11460#include "confdefs.h"
11461
11462#if HAVE_DLFCN_H
11463#include <dlfcn.h>
11464#endif
11465
11466#include <stdio.h>
11467
11468#ifdef RTLD_GLOBAL
11469#  define LT_DLGLOBAL		RTLD_GLOBAL
11470#else
11471#  ifdef DL_GLOBAL
11472#    define LT_DLGLOBAL		DL_GLOBAL
11473#  else
11474#    define LT_DLGLOBAL		0
11475#  endif
11476#endif
11477
11478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479   find out it does not work in some platform. */
11480#ifndef LT_DLLAZY_OR_NOW
11481#  ifdef RTLD_LAZY
11482#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11483#  else
11484#    ifdef DL_LAZY
11485#      define LT_DLLAZY_OR_NOW		DL_LAZY
11486#    else
11487#      ifdef RTLD_NOW
11488#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11489#      else
11490#        ifdef DL_NOW
11491#          define LT_DLLAZY_OR_NOW	DL_NOW
11492#        else
11493#          define LT_DLLAZY_OR_NOW	0
11494#        endif
11495#      endif
11496#    endif
11497#  endif
11498#endif
11499
11500/* When -fvisbility=hidden is used, assume the code has been annotated
11501   correspondingly for the symbols needed.  */
11502#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503int fnord () __attribute__((visibility("default")));
11504#endif
11505
11506int fnord () { return 42; }
11507int main ()
11508{
11509  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510  int status = $lt_dlunknown;
11511
11512  if (self)
11513    {
11514      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11515      else
11516        {
11517	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11518          else puts (dlerror ());
11519	}
11520      /* dlclose (self); */
11521    }
11522  else
11523    puts (dlerror ());
11524
11525  return status;
11526}
11527_LT_EOF
11528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529  (eval $ac_link) 2>&5
11530  ac_status=$?
11531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533    (./conftest; exit; ) >&5 2>/dev/null
11534    lt_status=$?
11535    case x$lt_status in
11536      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11537      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11538      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11539    esac
11540  else :
11541    # compilation failed
11542    lt_cv_dlopen_self=no
11543  fi
11544fi
11545rm -fr conftest*
11546
11547
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11550$as_echo "$lt_cv_dlopen_self" >&6; }
11551
11552    if test "x$lt_cv_dlopen_self" = xyes; then
11553      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11554      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11555$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11556if ${lt_cv_dlopen_self_static+:} false; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  	  if test "$cross_compiling" = yes; then :
11560  lt_cv_dlopen_self_static=cross
11561else
11562  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563  lt_status=$lt_dlunknown
11564  cat > conftest.$ac_ext <<_LT_EOF
11565#line $LINENO "configure"
11566#include "confdefs.h"
11567
11568#if HAVE_DLFCN_H
11569#include <dlfcn.h>
11570#endif
11571
11572#include <stdio.h>
11573
11574#ifdef RTLD_GLOBAL
11575#  define LT_DLGLOBAL		RTLD_GLOBAL
11576#else
11577#  ifdef DL_GLOBAL
11578#    define LT_DLGLOBAL		DL_GLOBAL
11579#  else
11580#    define LT_DLGLOBAL		0
11581#  endif
11582#endif
11583
11584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585   find out it does not work in some platform. */
11586#ifndef LT_DLLAZY_OR_NOW
11587#  ifdef RTLD_LAZY
11588#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11589#  else
11590#    ifdef DL_LAZY
11591#      define LT_DLLAZY_OR_NOW		DL_LAZY
11592#    else
11593#      ifdef RTLD_NOW
11594#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11595#      else
11596#        ifdef DL_NOW
11597#          define LT_DLLAZY_OR_NOW	DL_NOW
11598#        else
11599#          define LT_DLLAZY_OR_NOW	0
11600#        endif
11601#      endif
11602#    endif
11603#  endif
11604#endif
11605
11606/* When -fvisbility=hidden is used, assume the code has been annotated
11607   correspondingly for the symbols needed.  */
11608#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11609int fnord () __attribute__((visibility("default")));
11610#endif
11611
11612int fnord () { return 42; }
11613int main ()
11614{
11615  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11616  int status = $lt_dlunknown;
11617
11618  if (self)
11619    {
11620      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11621      else
11622        {
11623	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11624          else puts (dlerror ());
11625	}
11626      /* dlclose (self); */
11627    }
11628  else
11629    puts (dlerror ());
11630
11631  return status;
11632}
11633_LT_EOF
11634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11635  (eval $ac_link) 2>&5
11636  ac_status=$?
11637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11639    (./conftest; exit; ) >&5 2>/dev/null
11640    lt_status=$?
11641    case x$lt_status in
11642      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11643      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11644      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11645    esac
11646  else :
11647    # compilation failed
11648    lt_cv_dlopen_self_static=no
11649  fi
11650fi
11651rm -fr conftest*
11652
11653
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11656$as_echo "$lt_cv_dlopen_self_static" >&6; }
11657    fi
11658
11659    CPPFLAGS="$save_CPPFLAGS"
11660    LDFLAGS="$save_LDFLAGS"
11661    LIBS="$save_LIBS"
11662    ;;
11663  esac
11664
11665  case $lt_cv_dlopen_self in
11666  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11667  *) enable_dlopen_self=unknown ;;
11668  esac
11669
11670  case $lt_cv_dlopen_self_static in
11671  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11672  *) enable_dlopen_self_static=unknown ;;
11673  esac
11674fi
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692striplib=
11693old_striplib=
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11695$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11696if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11697  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11698  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700$as_echo "yes" >&6; }
11701else
11702# FIXME - insert some real tests, host_os isn't really good enough
11703  case $host_os in
11704  darwin*)
11705    if test -n "$STRIP" ; then
11706      striplib="$STRIP -x"
11707      old_striplib="$STRIP -S"
11708      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709$as_echo "yes" >&6; }
11710    else
11711      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
11713    fi
11714    ;;
11715  *)
11716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
11718    ;;
11719  esac
11720fi
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733  # Report which library types will actually be built
11734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11735$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11737$as_echo "$can_build_shared" >&6; }
11738
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11740$as_echo_n "checking whether to build shared libraries... " >&6; }
11741  test "$can_build_shared" = "no" && enable_shared=no
11742
11743  # On AIX, shared libraries and static libraries use the same namespace, and
11744  # are all built from PIC.
11745  case $host_os in
11746  aix3*)
11747    test "$enable_shared" = yes && enable_static=no
11748    if test -n "$RANLIB"; then
11749      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11750      postinstall_cmds='$RANLIB $lib'
11751    fi
11752    ;;
11753
11754  aix[4-9]*)
11755    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11756      test "$enable_shared" = yes && enable_static=no
11757    fi
11758    ;;
11759  esac
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11761$as_echo "$enable_shared" >&6; }
11762
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11764$as_echo_n "checking whether to build static libraries... " >&6; }
11765  # Make sure either enable_shared or enable_static is yes.
11766  test "$enable_shared" = yes || enable_static=yes
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11768$as_echo "$enable_static" >&6; }
11769
11770
11771
11772
11773fi
11774ac_ext=c
11775ac_cpp='$CPP $CPPFLAGS'
11776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779
11780CC="$lt_save_CC"
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796        ac_config_commands="$ac_config_commands libtool"
11797
11798
11799
11800
11801# Only expand once:
11802
11803
11804
11805# other programs
11806
11807
11808LIB_MAJ=2
11809
11810
11811cat >>confdefs.h <<_ACEOF
11812#define LIB_MAJ $LIB_MAJ
11813_ACEOF
11814
11815
11816# Check whether --enable-debug was given.
11817if test "${enable_debug+set}" = set; then :
11818  enableval=$enable_debug;
11819$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
11820
11821fi
11822
11823
11824# Check whether --enable-unversioned-modules was given.
11825if test "${enable_unversioned_modules+set}" = set; then :
11826  enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
11827
11828
11829$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
11830
11831
11832fi
11833fi
11834
11835
11836
11837# Check whether --with-modules-dir was given.
11838if test "${with_modules_dir+set}" = set; then :
11839  withval=$with_modules_dir; if test x"$withval" != x"no"; then :
11840
11841	OPENPAM_MODULES_DIR="$withval"
11842
11843else
11844
11845	OPENPAM_MODULES_DIR="$libdir"
11846
11847fi
11848else
11849  OPENPAM_MODULES_DIR="$libdir"
11850fi
11851
11852
11853cat >>confdefs.h <<_ACEOF
11854#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}/"
11855_ACEOF
11856
11857
11858
11859
11860# Check whether --with-doc was given.
11861if test "${with_doc+set}" = set; then :
11862  withval=$with_doc;
11863else
11864  with_doc=yes
11865fi
11866
11867 if test x"$with_doc" = x"yes"; then
11868  WITH_DOC_TRUE=
11869  WITH_DOC_FALSE='#'
11870else
11871  WITH_DOC_TRUE='#'
11872  WITH_DOC_FALSE=
11873fi
11874
11875
11876
11877# Check whether --with-pam-unix was given.
11878if test "${with_pam_unix+set}" = set; then :
11879  withval=$with_pam_unix;
11880else
11881  with_pam_unix=no
11882fi
11883
11884 if test x"$with_pam_unix" = x"yes"; then
11885  WITH_PAM_UNIX_TRUE=
11886  WITH_PAM_UNIX_FALSE='#'
11887else
11888  WITH_PAM_UNIX_TRUE='#'
11889  WITH_PAM_UNIX_FALSE=
11890fi
11891
11892
11893
11894# Check whether --with-pamtest was given.
11895if test "${with_pamtest+set}" = set; then :
11896  withval=$with_pamtest;
11897else
11898  with_pamtest=no
11899fi
11900
11901 if test x"$with_pamtest" = x"yes"; then
11902  WITH_PAMTEST_TRUE=
11903  WITH_PAMTEST_FALSE='#'
11904else
11905  WITH_PAMTEST_TRUE='#'
11906  WITH_PAMTEST_FALSE=
11907fi
11908
11909
11910
11911# Check whether --with-su was given.
11912if test "${with_su+set}" = set; then :
11913  withval=$with_su;
11914else
11915  with_su=no
11916fi
11917
11918 if test x"$with_su" = x"yes"; then
11919  WITH_SU_TRUE=
11920  WITH_SU_FALSE='#'
11921else
11922  WITH_SU_TRUE='#'
11923  WITH_SU_FALSE=
11924fi
11925
11926
11927for ac_header in crypt.h
11928do :
11929  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
11930if test "x$ac_cv_header_crypt_h" = xyes; then :
11931  cat >>confdefs.h <<_ACEOF
11932#define HAVE_CRYPT_H 1
11933_ACEOF
11934
11935fi
11936
11937done
11938
11939
11940for ac_func in fdlopen fpurge strlcat strlcmp strlcpy
11941do :
11942  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11944if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11945  cat >>confdefs.h <<_ACEOF
11946#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947_ACEOF
11948
11949fi
11950done
11951
11952
11953saved_LIBS="${LIBS}"
11954LIBS=""
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956$as_echo_n "checking for dlopen in -ldl... " >&6; }
11957if ${ac_cv_lib_dl_dlopen+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  ac_check_lib_save_LIBS=$LIBS
11961LIBS="-ldl  $LIBS"
11962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963/* end confdefs.h.  */
11964
11965/* Override any GCC internal prototype to avoid an error.
11966   Use char because int might match the return type of a GCC
11967   builtin and then its argument prototype would still apply.  */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char dlopen ();
11972int
11973main ()
11974{
11975return dlopen ();
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981  ac_cv_lib_dl_dlopen=yes
11982else
11983  ac_cv_lib_dl_dlopen=no
11984fi
11985rm -f core conftest.err conftest.$ac_objext \
11986    conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992  cat >>confdefs.h <<_ACEOF
11993#define HAVE_LIBDL 1
11994_ACEOF
11995
11996  LIBS="-ldl $LIBS"
11997
11998fi
11999
12000DL_LIBS="${LIBS}"
12001LIBS="${saved_LIBS}"
12002
12003
12004saved_LIBS="${LIBS}"
12005LIBS=""
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12007$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12008if ${ac_cv_lib_crypt_crypt+:} false; then :
12009  $as_echo_n "(cached) " >&6
12010else
12011  ac_check_lib_save_LIBS=$LIBS
12012LIBS="-lcrypt  $LIBS"
12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014/* end confdefs.h.  */
12015
12016/* Override any GCC internal prototype to avoid an error.
12017   Use char because int might match the return type of a GCC
12018   builtin and then its argument prototype would still apply.  */
12019#ifdef __cplusplus
12020extern "C"
12021#endif
12022char crypt ();
12023int
12024main ()
12025{
12026return crypt ();
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then :
12032  ac_cv_lib_crypt_crypt=yes
12033else
12034  ac_cv_lib_crypt_crypt=no
12035fi
12036rm -f core conftest.err conftest.$ac_objext \
12037    conftest$ac_exeext conftest.$ac_ext
12038LIBS=$ac_check_lib_save_LIBS
12039fi
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12041$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12042if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12043  cat >>confdefs.h <<_ACEOF
12044#define HAVE_LIBCRYPT 1
12045_ACEOF
12046
12047  LIBS="-lcrypt $LIBS"
12048
12049fi
12050
12051CRYPT_LIBS="${LIBS}"
12052LIBS="${saved_LIBS}"
12053
12054
12055# Check whether --enable-developer-warnings was given.
12056if test "${enable_developer_warnings+set}" = set; then :
12057  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12058fi
12059
12060# Check whether --enable-debugging-symbols was given.
12061if test "${enable_debugging_symbols+set}" = set; then :
12062  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12063fi
12064
12065# Check whether --enable-werror was given.
12066if test "${enable_werror+set}" = set; then :
12067  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12068fi
12069
12070
12071ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12072
12073ac_config_files="$ac_config_files pamgdb"
12074
12075cat >confcache <<\_ACEOF
12076# This file is a shell script that caches the results of configure
12077# tests run on this system so they can be shared between configure
12078# scripts and configure runs, see configure's option --config-cache.
12079# It is not useful on other systems.  If it contains results you don't
12080# want to keep, you may remove or edit it.
12081#
12082# config.status only pays attention to the cache file if you give it
12083# the --recheck option to rerun configure.
12084#
12085# `ac_cv_env_foo' variables (set or unset) will be overridden when
12086# loading this file, other *unset* `ac_cv_foo' will be assigned the
12087# following values.
12088
12089_ACEOF
12090
12091# The following way of writing the cache mishandles newlines in values,
12092# but we know of no workaround that is simple, portable, and efficient.
12093# So, we kill variables containing newlines.
12094# Ultrix sh set writes to stderr and can't be redirected directly,
12095# and sets the high bit in the cache file unless we assign to the vars.
12096(
12097  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12098    eval ac_val=\$$ac_var
12099    case $ac_val in #(
12100    *${as_nl}*)
12101      case $ac_var in #(
12102      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12104      esac
12105      case $ac_var in #(
12106      _ | IFS | as_nl) ;; #(
12107      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12108      *) { eval $ac_var=; unset $ac_var;} ;;
12109      esac ;;
12110    esac
12111  done
12112
12113  (set) 2>&1 |
12114    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12115    *${as_nl}ac_space=\ *)
12116      # `set' does not quote correctly, so add quotes: double-quote
12117      # substitution turns \\\\ into \\, and sed turns \\ into \.
12118      sed -n \
12119	"s/'/'\\\\''/g;
12120	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12121      ;; #(
12122    *)
12123      # `set' quotes correctly as required by POSIX, so do not add quotes.
12124      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12125      ;;
12126    esac |
12127    sort
12128) |
12129  sed '
12130     /^ac_cv_env_/b end
12131     t clear
12132     :clear
12133     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12134     t end
12135     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12136     :end' >>confcache
12137if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12138  if test -w "$cache_file"; then
12139    if test "x$cache_file" != "x/dev/null"; then
12140      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12141$as_echo "$as_me: updating cache $cache_file" >&6;}
12142      if test ! -f "$cache_file" || test -h "$cache_file"; then
12143	cat confcache >"$cache_file"
12144      else
12145        case $cache_file in #(
12146        */* | ?:*)
12147	  mv -f confcache "$cache_file"$$ &&
12148	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12149        *)
12150	  mv -f confcache "$cache_file" ;;
12151	esac
12152      fi
12153    fi
12154  else
12155    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12156$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12157  fi
12158fi
12159rm -f confcache
12160
12161test "x$prefix" = xNONE && prefix=$ac_default_prefix
12162# Let make expand exec_prefix.
12163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12164
12165DEFS=-DHAVE_CONFIG_H
12166
12167ac_libobjs=
12168ac_ltlibobjs=
12169U=
12170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12171  # 1. Remove the extension, and $U if already installed.
12172  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12173  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12174  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12175  #    will be set to the directory where LIBOBJS objects are built.
12176  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12177  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12178done
12179LIBOBJS=$ac_libobjs
12180
12181LTLIBOBJS=$ac_ltlibobjs
12182
12183
12184 if test -n "$EXEEXT"; then
12185  am__EXEEXT_TRUE=
12186  am__EXEEXT_FALSE='#'
12187else
12188  am__EXEEXT_TRUE='#'
12189  am__EXEEXT_FALSE=
12190fi
12191
12192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12193  as_fn_error $? "conditional \"AMDEP\" was never defined.
12194Usually this means the macro was only invoked conditionally." "$LINENO" 5
12195fi
12196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12197  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12198Usually this means the macro was only invoked conditionally." "$LINENO" 5
12199fi
12200if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12201  as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12202Usually this means the macro was only invoked conditionally." "$LINENO" 5
12203fi
12204if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12205  as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12206Usually this means the macro was only invoked conditionally." "$LINENO" 5
12207fi
12208if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12209  as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12210Usually this means the macro was only invoked conditionally." "$LINENO" 5
12211fi
12212if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12213  as_fn_error $? "conditional \"WITH_SU\" was never defined.
12214Usually this means the macro was only invoked conditionally." "$LINENO" 5
12215fi
12216
12217: "${CONFIG_STATUS=./config.status}"
12218ac_write_fail=0
12219ac_clean_files_save=$ac_clean_files
12220ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12222$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12223as_write_fail=0
12224cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12225#! $SHELL
12226# Generated by $as_me.
12227# Run this file to recreate the current configuration.
12228# Compiler output produced by configure, useful for debugging
12229# configure, is in config.log if it exists.
12230
12231debug=false
12232ac_cs_recheck=false
12233ac_cs_silent=false
12234
12235SHELL=\${CONFIG_SHELL-$SHELL}
12236export SHELL
12237_ASEOF
12238cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12239## -------------------- ##
12240## M4sh Initialization. ##
12241## -------------------- ##
12242
12243# Be more Bourne compatible
12244DUALCASE=1; export DUALCASE # for MKS sh
12245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12246  emulate sh
12247  NULLCMD=:
12248  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12249  # is contrary to our usage.  Disable this feature.
12250  alias -g '${1+"$@"}'='"$@"'
12251  setopt NO_GLOB_SUBST
12252else
12253  case `(set -o) 2>/dev/null` in #(
12254  *posix*) :
12255    set -o posix ;; #(
12256  *) :
12257     ;;
12258esac
12259fi
12260
12261
12262as_nl='
12263'
12264export as_nl
12265# Printing a long string crashes Solaris 7 /usr/bin/printf.
12266as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12267as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12269# Prefer a ksh shell builtin over an external printf program on Solaris,
12270# but without wasting forks for bash or zsh.
12271if test -z "$BASH_VERSION$ZSH_VERSION" \
12272    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12273  as_echo='print -r --'
12274  as_echo_n='print -rn --'
12275elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12276  as_echo='printf %s\n'
12277  as_echo_n='printf %s'
12278else
12279  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12280    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12281    as_echo_n='/usr/ucb/echo -n'
12282  else
12283    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12284    as_echo_n_body='eval
12285      arg=$1;
12286      case $arg in #(
12287      *"$as_nl"*)
12288	expr "X$arg" : "X\\(.*\\)$as_nl";
12289	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12290      esac;
12291      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12292    '
12293    export as_echo_n_body
12294    as_echo_n='sh -c $as_echo_n_body as_echo'
12295  fi
12296  export as_echo_body
12297  as_echo='sh -c $as_echo_body as_echo'
12298fi
12299
12300# The user is always right.
12301if test "${PATH_SEPARATOR+set}" != set; then
12302  PATH_SEPARATOR=:
12303  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12304    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12305      PATH_SEPARATOR=';'
12306  }
12307fi
12308
12309
12310# IFS
12311# We need space, tab and new line, in precisely that order.  Quoting is
12312# there to prevent editors from complaining about space-tab.
12313# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12314# splitting by setting IFS to empty value.)
12315IFS=" ""	$as_nl"
12316
12317# Find who we are.  Look in the path if we contain no directory separator.
12318as_myself=
12319case $0 in #((
12320  *[\\/]* ) as_myself=$0 ;;
12321  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324  IFS=$as_save_IFS
12325  test -z "$as_dir" && as_dir=.
12326    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12327  done
12328IFS=$as_save_IFS
12329
12330     ;;
12331esac
12332# We did not find ourselves, most probably we were run as `sh COMMAND'
12333# in which case we are not to be found in the path.
12334if test "x$as_myself" = x; then
12335  as_myself=$0
12336fi
12337if test ! -f "$as_myself"; then
12338  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12339  exit 1
12340fi
12341
12342# Unset variables that we do not need and which cause bugs (e.g. in
12343# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12344# suppresses any "Segmentation fault" message there.  '((' could
12345# trigger a bug in pdksh 5.2.14.
12346for as_var in BASH_ENV ENV MAIL MAILPATH
12347do eval test x\${$as_var+set} = xset \
12348  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12349done
12350PS1='$ '
12351PS2='> '
12352PS4='+ '
12353
12354# NLS nuisances.
12355LC_ALL=C
12356export LC_ALL
12357LANGUAGE=C
12358export LANGUAGE
12359
12360# CDPATH.
12361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12362
12363
12364# as_fn_error STATUS ERROR [LINENO LOG_FD]
12365# ----------------------------------------
12366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12368# script with STATUS, using 1 if that was 0.
12369as_fn_error ()
12370{
12371  as_status=$1; test $as_status -eq 0 && as_status=1
12372  if test "$4"; then
12373    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12374    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12375  fi
12376  $as_echo "$as_me: error: $2" >&2
12377  as_fn_exit $as_status
12378} # as_fn_error
12379
12380
12381# as_fn_set_status STATUS
12382# -----------------------
12383# Set $? to STATUS, without forking.
12384as_fn_set_status ()
12385{
12386  return $1
12387} # as_fn_set_status
12388
12389# as_fn_exit STATUS
12390# -----------------
12391# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12392as_fn_exit ()
12393{
12394  set +e
12395  as_fn_set_status $1
12396  exit $1
12397} # as_fn_exit
12398
12399# as_fn_unset VAR
12400# ---------------
12401# Portably unset VAR.
12402as_fn_unset ()
12403{
12404  { eval $1=; unset $1;}
12405}
12406as_unset=as_fn_unset
12407# as_fn_append VAR VALUE
12408# ----------------------
12409# Append the text in VALUE to the end of the definition contained in VAR. Take
12410# advantage of any shell optimizations that allow amortized linear growth over
12411# repeated appends, instead of the typical quadratic growth present in naive
12412# implementations.
12413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12414  eval 'as_fn_append ()
12415  {
12416    eval $1+=\$2
12417  }'
12418else
12419  as_fn_append ()
12420  {
12421    eval $1=\$$1\$2
12422  }
12423fi # as_fn_append
12424
12425# as_fn_arith ARG...
12426# ------------------
12427# Perform arithmetic evaluation on the ARGs, and store the result in the
12428# global $as_val. Take advantage of shells that can avoid forks. The arguments
12429# must be portable across $(()) and expr.
12430if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12431  eval 'as_fn_arith ()
12432  {
12433    as_val=$(( $* ))
12434  }'
12435else
12436  as_fn_arith ()
12437  {
12438    as_val=`expr "$@" || test $? -eq 1`
12439  }
12440fi # as_fn_arith
12441
12442
12443if expr a : '\(a\)' >/dev/null 2>&1 &&
12444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12445  as_expr=expr
12446else
12447  as_expr=false
12448fi
12449
12450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12451  as_basename=basename
12452else
12453  as_basename=false
12454fi
12455
12456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12457  as_dirname=dirname
12458else
12459  as_dirname=false
12460fi
12461
12462as_me=`$as_basename -- "$0" ||
12463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12464	 X"$0" : 'X\(//\)$' \| \
12465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12466$as_echo X/"$0" |
12467    sed '/^.*\/\([^/][^/]*\)\/*$/{
12468	    s//\1/
12469	    q
12470	  }
12471	  /^X\/\(\/\/\)$/{
12472	    s//\1/
12473	    q
12474	  }
12475	  /^X\/\(\/\).*/{
12476	    s//\1/
12477	    q
12478	  }
12479	  s/.*/./; q'`
12480
12481# Avoid depending upon Character Ranges.
12482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12485as_cr_digits='0123456789'
12486as_cr_alnum=$as_cr_Letters$as_cr_digits
12487
12488ECHO_C= ECHO_N= ECHO_T=
12489case `echo -n x` in #(((((
12490-n*)
12491  case `echo 'xy\c'` in
12492  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12493  xy)  ECHO_C='\c';;
12494  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12495       ECHO_T='	';;
12496  esac;;
12497*)
12498  ECHO_N='-n';;
12499esac
12500
12501rm -f conf$$ conf$$.exe conf$$.file
12502if test -d conf$$.dir; then
12503  rm -f conf$$.dir/conf$$.file
12504else
12505  rm -f conf$$.dir
12506  mkdir conf$$.dir 2>/dev/null
12507fi
12508if (echo >conf$$.file) 2>/dev/null; then
12509  if ln -s conf$$.file conf$$ 2>/dev/null; then
12510    as_ln_s='ln -s'
12511    # ... but there are two gotchas:
12512    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12513    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12514    # In both cases, we have to default to `cp -p'.
12515    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12516      as_ln_s='cp -p'
12517  elif ln conf$$.file conf$$ 2>/dev/null; then
12518    as_ln_s=ln
12519  else
12520    as_ln_s='cp -p'
12521  fi
12522else
12523  as_ln_s='cp -p'
12524fi
12525rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12526rmdir conf$$.dir 2>/dev/null
12527
12528
12529# as_fn_mkdir_p
12530# -------------
12531# Create "$as_dir" as a directory, including parents if necessary.
12532as_fn_mkdir_p ()
12533{
12534
12535  case $as_dir in #(
12536  -*) as_dir=./$as_dir;;
12537  esac
12538  test -d "$as_dir" || eval $as_mkdir_p || {
12539    as_dirs=
12540    while :; do
12541      case $as_dir in #(
12542      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12543      *) as_qdir=$as_dir;;
12544      esac
12545      as_dirs="'$as_qdir' $as_dirs"
12546      as_dir=`$as_dirname -- "$as_dir" ||
12547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548	 X"$as_dir" : 'X\(//\)[^/]' \| \
12549	 X"$as_dir" : 'X\(//\)$' \| \
12550	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12551$as_echo X"$as_dir" |
12552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12553	    s//\1/
12554	    q
12555	  }
12556	  /^X\(\/\/\)[^/].*/{
12557	    s//\1/
12558	    q
12559	  }
12560	  /^X\(\/\/\)$/{
12561	    s//\1/
12562	    q
12563	  }
12564	  /^X\(\/\).*/{
12565	    s//\1/
12566	    q
12567	  }
12568	  s/.*/./; q'`
12569      test -d "$as_dir" && break
12570    done
12571    test -z "$as_dirs" || eval "mkdir $as_dirs"
12572  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12573
12574
12575} # as_fn_mkdir_p
12576if mkdir -p . 2>/dev/null; then
12577  as_mkdir_p='mkdir -p "$as_dir"'
12578else
12579  test -d ./-p && rmdir ./-p
12580  as_mkdir_p=false
12581fi
12582
12583if test -x / >/dev/null 2>&1; then
12584  as_test_x='test -x'
12585else
12586  if ls -dL / >/dev/null 2>&1; then
12587    as_ls_L_option=L
12588  else
12589    as_ls_L_option=
12590  fi
12591  as_test_x='
12592    eval sh -c '\''
12593      if test -d "$1"; then
12594	test -d "$1/.";
12595      else
12596	case $1 in #(
12597	-*)set "./$1";;
12598	esac;
12599	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12600	???[sx]*):;;*)false;;esac;fi
12601    '\'' sh
12602  '
12603fi
12604as_executable_p=$as_test_x
12605
12606# Sed expression to map a string onto a valid CPP name.
12607as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12608
12609# Sed expression to map a string onto a valid variable name.
12610as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12611
12612
12613exec 6>&1
12614## ----------------------------------- ##
12615## Main body of $CONFIG_STATUS script. ##
12616## ----------------------------------- ##
12617_ASEOF
12618test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12619
12620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621# Save the log message, to keep $0 and so on meaningful, and to
12622# report actual input values of CONFIG_FILES etc. instead of their
12623# values after options handling.
12624ac_log="
12625This file was extended by OpenPAM $as_me 20120526, which was
12626generated by GNU Autoconf 2.68.  Invocation command line was
12627
12628  CONFIG_FILES    = $CONFIG_FILES
12629  CONFIG_HEADERS  = $CONFIG_HEADERS
12630  CONFIG_LINKS    = $CONFIG_LINKS
12631  CONFIG_COMMANDS = $CONFIG_COMMANDS
12632  $ $0 $@
12633
12634on `(hostname || uname -n) 2>/dev/null | sed 1q`
12635"
12636
12637_ACEOF
12638
12639case $ac_config_files in *"
12640"*) set x $ac_config_files; shift; ac_config_files=$*;;
12641esac
12642
12643case $ac_config_headers in *"
12644"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12645esac
12646
12647
12648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12649# Files that config.status was made for.
12650config_files="$ac_config_files"
12651config_headers="$ac_config_headers"
12652config_commands="$ac_config_commands"
12653
12654_ACEOF
12655
12656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12657ac_cs_usage="\
12658\`$as_me' instantiates files and other configuration actions
12659from templates according to the current configuration.  Unless the files
12660and actions are specified as TAGs, all are instantiated by default.
12661
12662Usage: $0 [OPTION]... [TAG]...
12663
12664  -h, --help       print this help, then exit
12665  -V, --version    print version number and configuration settings, then exit
12666      --config     print configuration, then exit
12667  -q, --quiet, --silent
12668                   do not print progress messages
12669  -d, --debug      don't remove temporary files
12670      --recheck    update $as_me by reconfiguring in the same conditions
12671      --file=FILE[:TEMPLATE]
12672                   instantiate the configuration file FILE
12673      --header=FILE[:TEMPLATE]
12674                   instantiate the configuration header FILE
12675
12676Configuration files:
12677$config_files
12678
12679Configuration headers:
12680$config_headers
12681
12682Configuration commands:
12683$config_commands
12684
12685Report bugs to <des@des.no>."
12686
12687_ACEOF
12688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12690ac_cs_version="\\
12691OpenPAM config.status 20120526
12692configured by $0, generated by GNU Autoconf 2.68,
12693  with options \\"\$ac_cs_config\\"
12694
12695Copyright (C) 2010 Free Software Foundation, Inc.
12696This config.status script is free software; the Free Software Foundation
12697gives unlimited permission to copy, distribute and modify it."
12698
12699ac_pwd='$ac_pwd'
12700srcdir='$srcdir'
12701INSTALL='$INSTALL'
12702MKDIR_P='$MKDIR_P'
12703AWK='$AWK'
12704test -n "\$AWK" || AWK=awk
12705_ACEOF
12706
12707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12708# The default lists apply if the user does not specify any file.
12709ac_need_defaults=:
12710while test $# != 0
12711do
12712  case $1 in
12713  --*=?*)
12714    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12715    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12716    ac_shift=:
12717    ;;
12718  --*=)
12719    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12720    ac_optarg=
12721    ac_shift=:
12722    ;;
12723  *)
12724    ac_option=$1
12725    ac_optarg=$2
12726    ac_shift=shift
12727    ;;
12728  esac
12729
12730  case $ac_option in
12731  # Handling of the options.
12732  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12733    ac_cs_recheck=: ;;
12734  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12735    $as_echo "$ac_cs_version"; exit ;;
12736  --config | --confi | --conf | --con | --co | --c )
12737    $as_echo "$ac_cs_config"; exit ;;
12738  --debug | --debu | --deb | --de | --d | -d )
12739    debug=: ;;
12740  --file | --fil | --fi | --f )
12741    $ac_shift
12742    case $ac_optarg in
12743    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12744    '') as_fn_error $? "missing file argument" ;;
12745    esac
12746    as_fn_append CONFIG_FILES " '$ac_optarg'"
12747    ac_need_defaults=false;;
12748  --header | --heade | --head | --hea )
12749    $ac_shift
12750    case $ac_optarg in
12751    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12752    esac
12753    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12754    ac_need_defaults=false;;
12755  --he | --h)
12756    # Conflict between --help and --header
12757    as_fn_error $? "ambiguous option: \`$1'
12758Try \`$0 --help' for more information.";;
12759  --help | --hel | -h )
12760    $as_echo "$ac_cs_usage"; exit ;;
12761  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12762  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12763    ac_cs_silent=: ;;
12764
12765  # This is an error.
12766  -*) as_fn_error $? "unrecognized option: \`$1'
12767Try \`$0 --help' for more information." ;;
12768
12769  *) as_fn_append ac_config_targets " $1"
12770     ac_need_defaults=false ;;
12771
12772  esac
12773  shift
12774done
12775
12776ac_configure_extra_args=
12777
12778if $ac_cs_silent; then
12779  exec 6>/dev/null
12780  ac_configure_extra_args="$ac_configure_extra_args --silent"
12781fi
12782
12783_ACEOF
12784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785if \$ac_cs_recheck; then
12786  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12787  shift
12788  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12789  CONFIG_SHELL='$SHELL'
12790  export CONFIG_SHELL
12791  exec "\$@"
12792fi
12793
12794_ACEOF
12795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796exec 5>>config.log
12797{
12798  echo
12799  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12800## Running $as_me. ##
12801_ASBOX
12802  $as_echo "$ac_log"
12803} >&5
12804
12805_ACEOF
12806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12807#
12808# INIT-COMMANDS
12809#
12810AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12811
12812
12813# The HP-UX ksh and POSIX shell print the target directory to stdout
12814# if CDPATH is set.
12815(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12816
12817sed_quote_subst='$sed_quote_subst'
12818double_quote_subst='$double_quote_subst'
12819delay_variable_subst='$delay_variable_subst'
12820macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12821macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12822enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12823enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12824pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12825enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12826SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12827ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12828PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12829host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12830host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12831host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12832build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12833build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12834build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12835SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12836Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12837GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12838EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12839FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12840LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12841NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12842LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12843max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12844ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12845exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12846lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12847lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12848lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12849lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12850lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12851reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12852reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12853OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12854deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12855file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12856file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12857want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12858DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12859sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12860AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12861AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12862archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12863STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12864RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12865old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12866old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12867old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12868lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12869CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12870CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12871compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12872GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12873lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12874lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12875lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12876lt_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"`'
12877nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12878lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12879objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12880MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12881lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12882lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12883lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12884lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12885lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12886need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12887MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12888DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12889NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12890LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12891OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12892OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12893libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12894shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12895extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12896archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12897enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12898export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12899whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12900compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12901old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12902old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12903archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12904archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12905module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12906module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12907with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12908allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12909no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12910hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12911hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12912hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12913hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12914hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12915hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12916hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12917inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12918link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12919always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12920export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12921exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12922include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12923prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12924postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12925file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12926variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12927need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12928need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12929version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12930runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12931shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12932shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12933libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12934library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12935soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12936install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12937postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12938postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12939finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12940finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12941hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12942sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12943sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12944hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12945enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12946enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12947enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12948old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12949striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12950
12951LTCC='$LTCC'
12952LTCFLAGS='$LTCFLAGS'
12953compiler='$compiler_DEFAULT'
12954
12955# A function that is used when there is no print builtin or printf.
12956func_fallback_echo ()
12957{
12958  eval 'cat <<_LTECHO_EOF
12959\$1
12960_LTECHO_EOF'
12961}
12962
12963# Quote evaled strings.
12964for var in SHELL \
12965ECHO \
12966PATH_SEPARATOR \
12967SED \
12968GREP \
12969EGREP \
12970FGREP \
12971LD \
12972NM \
12973LN_S \
12974lt_SP2NL \
12975lt_NL2SP \
12976reload_flag \
12977OBJDUMP \
12978deplibs_check_method \
12979file_magic_cmd \
12980file_magic_glob \
12981want_nocaseglob \
12982DLLTOOL \
12983sharedlib_from_linklib_cmd \
12984AR \
12985AR_FLAGS \
12986archiver_list_spec \
12987STRIP \
12988RANLIB \
12989CC \
12990CFLAGS \
12991compiler \
12992lt_cv_sys_global_symbol_pipe \
12993lt_cv_sys_global_symbol_to_cdecl \
12994lt_cv_sys_global_symbol_to_c_name_address \
12995lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12996nm_file_list_spec \
12997lt_prog_compiler_no_builtin_flag \
12998lt_prog_compiler_pic \
12999lt_prog_compiler_wl \
13000lt_prog_compiler_static \
13001lt_cv_prog_compiler_c_o \
13002need_locks \
13003MANIFEST_TOOL \
13004DSYMUTIL \
13005NMEDIT \
13006LIPO \
13007OTOOL \
13008OTOOL64 \
13009shrext_cmds \
13010export_dynamic_flag_spec \
13011whole_archive_flag_spec \
13012compiler_needs_object \
13013with_gnu_ld \
13014allow_undefined_flag \
13015no_undefined_flag \
13016hardcode_libdir_flag_spec \
13017hardcode_libdir_separator \
13018exclude_expsyms \
13019include_expsyms \
13020file_list_spec \
13021variables_saved_for_relink \
13022libname_spec \
13023library_names_spec \
13024soname_spec \
13025install_override_mode \
13026finish_eval \
13027old_striplib \
13028striplib; do
13029    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13030    *[\\\\\\\`\\"\\\$]*)
13031      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13032      ;;
13033    *)
13034      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13035      ;;
13036    esac
13037done
13038
13039# Double-quote double-evaled strings.
13040for var in reload_cmds \
13041old_postinstall_cmds \
13042old_postuninstall_cmds \
13043old_archive_cmds \
13044extract_expsyms_cmds \
13045old_archive_from_new_cmds \
13046old_archive_from_expsyms_cmds \
13047archive_cmds \
13048archive_expsym_cmds \
13049module_cmds \
13050module_expsym_cmds \
13051export_symbols_cmds \
13052prelink_cmds \
13053postlink_cmds \
13054postinstall_cmds \
13055postuninstall_cmds \
13056finish_cmds \
13057sys_lib_search_path_spec \
13058sys_lib_dlsearch_path_spec; do
13059    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13060    *[\\\\\\\`\\"\\\$]*)
13061      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13062      ;;
13063    *)
13064      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13065      ;;
13066    esac
13067done
13068
13069ac_aux_dir='$ac_aux_dir'
13070xsi_shell='$xsi_shell'
13071lt_shell_append='$lt_shell_append'
13072
13073# See if we are running on zsh, and set the options which allow our
13074# commands through without removal of \ escapes INIT.
13075if test -n "\${ZSH_VERSION+set}" ; then
13076   setopt NO_GLOB_SUBST
13077fi
13078
13079
13080    PACKAGE='$PACKAGE'
13081    VERSION='$VERSION'
13082    TIMESTAMP='$TIMESTAMP'
13083    RM='$RM'
13084    ofile='$ofile'
13085
13086
13087
13088
13089_ACEOF
13090
13091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092
13093# Handling of arguments.
13094for ac_config_target in $ac_config_targets
13095do
13096  case $ac_config_target in
13097    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13098    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13099    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13100    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13101    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13102    "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13103    "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13104    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13105    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13106    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13107    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13108    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13109    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13110    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13111    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13112    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13113    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13114    "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13115    "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13116
13117  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13118  esac
13119done
13120
13121
13122# If the user did not use the arguments to specify the items to instantiate,
13123# then the envvar interface is used.  Set only those that are not.
13124# We use the long form for the default assignment because of an extremely
13125# bizarre bug on SunOS 4.1.3.
13126if $ac_need_defaults; then
13127  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13128  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13129  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13130fi
13131
13132# Have a temporary directory for convenience.  Make it in the build tree
13133# simply because there is no reason against having it here, and in addition,
13134# creating and moving files from /tmp can sometimes cause problems.
13135# Hook for its removal unless debugging.
13136# Note that there is a small window in which the directory will not be cleaned:
13137# after its creation but before its name has been assigned to `$tmp'.
13138$debug ||
13139{
13140  tmp= ac_tmp=
13141  trap 'exit_status=$?
13142  : "${ac_tmp:=$tmp}"
13143  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13144' 0
13145  trap 'as_fn_exit 1' 1 2 13 15
13146}
13147# Create a (secure) tmp directory for tmp files.
13148
13149{
13150  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13151  test -d "$tmp"
13152}  ||
13153{
13154  tmp=./conf$$-$RANDOM
13155  (umask 077 && mkdir "$tmp")
13156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13157ac_tmp=$tmp
13158
13159# Set up the scripts for CONFIG_FILES section.
13160# No need to generate them if there are no CONFIG_FILES.
13161# This happens for instance with `./config.status config.h'.
13162if test -n "$CONFIG_FILES"; then
13163
13164
13165ac_cr=`echo X | tr X '\015'`
13166# On cygwin, bash can eat \r inside `` if the user requested igncr.
13167# But we know of no other shell where ac_cr would be empty at this
13168# point, so we can use a bashism as a fallback.
13169if test "x$ac_cr" = x; then
13170  eval ac_cr=\$\'\\r\'
13171fi
13172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13174  ac_cs_awk_cr='\\r'
13175else
13176  ac_cs_awk_cr=$ac_cr
13177fi
13178
13179echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13180_ACEOF
13181
13182
13183{
13184  echo "cat >conf$$subs.awk <<_ACEOF" &&
13185  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13186  echo "_ACEOF"
13187} >conf$$subs.sh ||
13188  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13190ac_delim='%!_!# '
13191for ac_last_try in false false false false false :; do
13192  . ./conf$$subs.sh ||
13193    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13194
13195  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13196  if test $ac_delim_n = $ac_delim_num; then
13197    break
13198  elif $ac_last_try; then
13199    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13200  else
13201    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13202  fi
13203done
13204rm -f conf$$subs.sh
13205
13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13208_ACEOF
13209sed -n '
13210h
13211s/^/S["/; s/!.*/"]=/
13212p
13213g
13214s/^[^!]*!//
13215:repl
13216t repl
13217s/'"$ac_delim"'$//
13218t delim
13219:nl
13220h
13221s/\(.\{148\}\)..*/\1/
13222t more1
13223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13224p
13225n
13226b repl
13227:more1
13228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13229p
13230g
13231s/.\{148\}//
13232t nl
13233:delim
13234h
13235s/\(.\{148\}\)..*/\1/
13236t more2
13237s/["\\]/\\&/g; s/^/"/; s/$/"/
13238p
13239b
13240:more2
13241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13242p
13243g
13244s/.\{148\}//
13245t delim
13246' <conf$$subs.awk | sed '
13247/^[^""]/{
13248  N
13249  s/\n//
13250}
13251' >>$CONFIG_STATUS || ac_write_fail=1
13252rm -f conf$$subs.awk
13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254_ACAWK
13255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13256  for (key in S) S_is_set[key] = 1
13257  FS = ""
13258
13259}
13260{
13261  line = $ 0
13262  nfields = split(line, field, "@")
13263  substed = 0
13264  len = length(field[1])
13265  for (i = 2; i < nfields; i++) {
13266    key = field[i]
13267    keylen = length(key)
13268    if (S_is_set[key]) {
13269      value = S[key]
13270      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13271      len += length(value) + length(field[++i])
13272      substed = 1
13273    } else
13274      len += 1 + keylen
13275  }
13276
13277  print line
13278}
13279
13280_ACAWK
13281_ACEOF
13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13284  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13285else
13286  cat
13287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13288  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13289_ACEOF
13290
13291# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13293# trailing colons and then remove the whole line if VPATH becomes empty
13294# (actually we leave an empty line to preserve line numbers).
13295if test "x$srcdir" = x.; then
13296  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13297h
13298s///
13299s/^/:/
13300s/[	 ]*$/:/
13301s/:\$(srcdir):/:/g
13302s/:\${srcdir}:/:/g
13303s/:@srcdir@:/:/g
13304s/^:*//
13305s/:*$//
13306x
13307s/\(=[	 ]*\).*/\1/
13308G
13309s/\n//
13310s/^[^=]*=[	 ]*$//
13311}'
13312fi
13313
13314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13315fi # test -n "$CONFIG_FILES"
13316
13317# Set up the scripts for CONFIG_HEADERS section.
13318# No need to generate them if there are no CONFIG_HEADERS.
13319# This happens for instance with `./config.status Makefile'.
13320if test -n "$CONFIG_HEADERS"; then
13321cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13322BEGIN {
13323_ACEOF
13324
13325# Transform confdefs.h into an awk script `defines.awk', embedded as
13326# here-document in config.status, that substitutes the proper values into
13327# config.h.in to produce config.h.
13328
13329# Create a delimiter string that does not exist in confdefs.h, to ease
13330# handling of long lines.
13331ac_delim='%!_!# '
13332for ac_last_try in false false :; do
13333  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13334  if test -z "$ac_tt"; then
13335    break
13336  elif $ac_last_try; then
13337    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13338  else
13339    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13340  fi
13341done
13342
13343# For the awk script, D is an array of macro values keyed by name,
13344# likewise P contains macro parameters if any.  Preserve backslash
13345# newline sequences.
13346
13347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13348sed -n '
13349s/.\{148\}/&'"$ac_delim"'/g
13350t rset
13351:rset
13352s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13353t def
13354d
13355:def
13356s/\\$//
13357t bsnl
13358s/["\\]/\\&/g
13359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13360D["\1"]=" \3"/p
13361s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13362d
13363:bsnl
13364s/["\\]/\\&/g
13365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13366D["\1"]=" \3\\\\\\n"\\/p
13367t cont
13368s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13369t cont
13370d
13371:cont
13372n
13373s/.\{148\}/&'"$ac_delim"'/g
13374t clear
13375:clear
13376s/\\$//
13377t bsnlc
13378s/["\\]/\\&/g; s/^/"/; s/$/"/p
13379d
13380:bsnlc
13381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13382b cont
13383' <confdefs.h | sed '
13384s/'"$ac_delim"'/"\\\
13385"/g' >>$CONFIG_STATUS || ac_write_fail=1
13386
13387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388  for (key in D) D_is_set[key] = 1
13389  FS = ""
13390}
13391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13392  line = \$ 0
13393  split(line, arg, " ")
13394  if (arg[1] == "#") {
13395    defundef = arg[2]
13396    mac1 = arg[3]
13397  } else {
13398    defundef = substr(arg[1], 2)
13399    mac1 = arg[2]
13400  }
13401  split(mac1, mac2, "(") #)
13402  macro = mac2[1]
13403  prefix = substr(line, 1, index(line, defundef) - 1)
13404  if (D_is_set[macro]) {
13405    # Preserve the white space surrounding the "#".
13406    print prefix "define", macro P[macro] D[macro]
13407    next
13408  } else {
13409    # Replace #undef with comments.  This is necessary, for example,
13410    # in the case of _POSIX_SOURCE, which is predefined and required
13411    # on some systems where configure will not decide to define it.
13412    if (defundef == "undef") {
13413      print "/*", prefix defundef, macro, "*/"
13414      next
13415    }
13416  }
13417}
13418{ print }
13419_ACAWK
13420_ACEOF
13421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13422  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13423fi # test -n "$CONFIG_HEADERS"
13424
13425
13426eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13427shift
13428for ac_tag
13429do
13430  case $ac_tag in
13431  :[FHLC]) ac_mode=$ac_tag; continue;;
13432  esac
13433  case $ac_mode$ac_tag in
13434  :[FHL]*:*);;
13435  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13436  :[FH]-) ac_tag=-:-;;
13437  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13438  esac
13439  ac_save_IFS=$IFS
13440  IFS=:
13441  set x $ac_tag
13442  IFS=$ac_save_IFS
13443  shift
13444  ac_file=$1
13445  shift
13446
13447  case $ac_mode in
13448  :L) ac_source=$1;;
13449  :[FH])
13450    ac_file_inputs=
13451    for ac_f
13452    do
13453      case $ac_f in
13454      -) ac_f="$ac_tmp/stdin";;
13455      *) # Look for the file first in the build tree, then in the source tree
13456	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13457	 # because $ac_f cannot contain `:'.
13458	 test -f "$ac_f" ||
13459	   case $ac_f in
13460	   [\\/$]*) false;;
13461	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13462	   esac ||
13463	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13464      esac
13465      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13466      as_fn_append ac_file_inputs " '$ac_f'"
13467    done
13468
13469    # Let's still pretend it is `configure' which instantiates (i.e., don't
13470    # use $as_me), people would be surprised to read:
13471    #    /* config.h.  Generated by config.status.  */
13472    configure_input='Generated from '`
13473	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13474	`' by configure.'
13475    if test x"$ac_file" != x-; then
13476      configure_input="$ac_file.  $configure_input"
13477      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13478$as_echo "$as_me: creating $ac_file" >&6;}
13479    fi
13480    # Neutralize special characters interpreted by sed in replacement strings.
13481    case $configure_input in #(
13482    *\&* | *\|* | *\\* )
13483       ac_sed_conf_input=`$as_echo "$configure_input" |
13484       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13485    *) ac_sed_conf_input=$configure_input;;
13486    esac
13487
13488    case $ac_tag in
13489    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13490      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13491    esac
13492    ;;
13493  esac
13494
13495  ac_dir=`$as_dirname -- "$ac_file" ||
13496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497	 X"$ac_file" : 'X\(//\)[^/]' \| \
13498	 X"$ac_file" : 'X\(//\)$' \| \
13499	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13500$as_echo X"$ac_file" |
13501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13502	    s//\1/
13503	    q
13504	  }
13505	  /^X\(\/\/\)[^/].*/{
13506	    s//\1/
13507	    q
13508	  }
13509	  /^X\(\/\/\)$/{
13510	    s//\1/
13511	    q
13512	  }
13513	  /^X\(\/\).*/{
13514	    s//\1/
13515	    q
13516	  }
13517	  s/.*/./; q'`
13518  as_dir="$ac_dir"; as_fn_mkdir_p
13519  ac_builddir=.
13520
13521case "$ac_dir" in
13522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13523*)
13524  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13525  # A ".." for each directory in $ac_dir_suffix.
13526  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13527  case $ac_top_builddir_sub in
13528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13530  esac ;;
13531esac
13532ac_abs_top_builddir=$ac_pwd
13533ac_abs_builddir=$ac_pwd$ac_dir_suffix
13534# for backward compatibility:
13535ac_top_builddir=$ac_top_build_prefix
13536
13537case $srcdir in
13538  .)  # We are building in place.
13539    ac_srcdir=.
13540    ac_top_srcdir=$ac_top_builddir_sub
13541    ac_abs_top_srcdir=$ac_pwd ;;
13542  [\\/]* | ?:[\\/]* )  # Absolute name.
13543    ac_srcdir=$srcdir$ac_dir_suffix;
13544    ac_top_srcdir=$srcdir
13545    ac_abs_top_srcdir=$srcdir ;;
13546  *) # Relative name.
13547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13548    ac_top_srcdir=$ac_top_build_prefix$srcdir
13549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13550esac
13551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13552
13553
13554  case $ac_mode in
13555  :F)
13556  #
13557  # CONFIG_FILE
13558  #
13559
13560  case $INSTALL in
13561  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13562  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13563  esac
13564  ac_MKDIR_P=$MKDIR_P
13565  case $MKDIR_P in
13566  [\\/$]* | ?:[\\/]* ) ;;
13567  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13568  esac
13569_ACEOF
13570
13571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13572# If the template does not know about datarootdir, expand it.
13573# FIXME: This hack should be removed a few years after 2.60.
13574ac_datarootdir_hack=; ac_datarootdir_seen=
13575ac_sed_dataroot='
13576/datarootdir/ {
13577  p
13578  q
13579}
13580/@datadir@/p
13581/@docdir@/p
13582/@infodir@/p
13583/@localedir@/p
13584/@mandir@/p'
13585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13586*datarootdir*) ac_datarootdir_seen=yes;;
13587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13590_ACEOF
13591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13592  ac_datarootdir_hack='
13593  s&@datadir@&$datadir&g
13594  s&@docdir@&$docdir&g
13595  s&@infodir@&$infodir&g
13596  s&@localedir@&$localedir&g
13597  s&@mandir@&$mandir&g
13598  s&\\\${datarootdir}&$datarootdir&g' ;;
13599esac
13600_ACEOF
13601
13602# Neutralize VPATH when `$srcdir' = `.'.
13603# Shell code in configure.ac might set extrasub.
13604# FIXME: do we really want to maintain this feature?
13605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13606ac_sed_extra="$ac_vpsub
13607$extrasub
13608_ACEOF
13609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610:t
13611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13612s|@configure_input@|$ac_sed_conf_input|;t t
13613s&@top_builddir@&$ac_top_builddir_sub&;t t
13614s&@top_build_prefix@&$ac_top_build_prefix&;t t
13615s&@srcdir@&$ac_srcdir&;t t
13616s&@abs_srcdir@&$ac_abs_srcdir&;t t
13617s&@top_srcdir@&$ac_top_srcdir&;t t
13618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13619s&@builddir@&$ac_builddir&;t t
13620s&@abs_builddir@&$ac_abs_builddir&;t t
13621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13622s&@INSTALL@&$ac_INSTALL&;t t
13623s&@MKDIR_P@&$ac_MKDIR_P&;t t
13624$ac_datarootdir_hack
13625"
13626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13627  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13628
13629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13630  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13631  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13632      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13634which seems to be undefined.  Please make sure it is defined" >&5
13635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13636which seems to be undefined.  Please make sure it is defined" >&2;}
13637
13638  rm -f "$ac_tmp/stdin"
13639  case $ac_file in
13640  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13641  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13642  esac \
13643  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13644 ;;
13645  :H)
13646  #
13647  # CONFIG_HEADER
13648  #
13649  if test x"$ac_file" != x-; then
13650    {
13651      $as_echo "/* $configure_input  */" \
13652      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13653    } >"$ac_tmp/config.h" \
13654      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13655    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13656      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13657$as_echo "$as_me: $ac_file is unchanged" >&6;}
13658    else
13659      rm -f "$ac_file"
13660      mv "$ac_tmp/config.h" "$ac_file" \
13661	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13662    fi
13663  else
13664    $as_echo "/* $configure_input  */" \
13665      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13666      || as_fn_error $? "could not create -" "$LINENO" 5
13667  fi
13668# Compute "$ac_file"'s index in $config_headers.
13669_am_arg="$ac_file"
13670_am_stamp_count=1
13671for _am_header in $config_headers :; do
13672  case $_am_header in
13673    $_am_arg | $_am_arg:* )
13674      break ;;
13675    * )
13676      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13677  esac
13678done
13679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13682	 X"$_am_arg" : 'X\(//\)$' \| \
13683	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13684$as_echo X"$_am_arg" |
13685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13686	    s//\1/
13687	    q
13688	  }
13689	  /^X\(\/\/\)[^/].*/{
13690	    s//\1/
13691	    q
13692	  }
13693	  /^X\(\/\/\)$/{
13694	    s//\1/
13695	    q
13696	  }
13697	  /^X\(\/\).*/{
13698	    s//\1/
13699	    q
13700	  }
13701	  s/.*/./; q'`/stamp-h$_am_stamp_count
13702 ;;
13703
13704  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13705$as_echo "$as_me: executing $ac_file commands" >&6;}
13706 ;;
13707  esac
13708
13709
13710  case $ac_file$ac_mode in
13711    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13712  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13713  # are listed without --file.  Let's play safe and only enable the eval
13714  # if we detect the quoting.
13715  case $CONFIG_FILES in
13716  *\'*) eval set x "$CONFIG_FILES" ;;
13717  *)   set x $CONFIG_FILES ;;
13718  esac
13719  shift
13720  for mf
13721  do
13722    # Strip MF so we end up with the name of the file.
13723    mf=`echo "$mf" | sed -e 's/:.*$//'`
13724    # Check whether this is an Automake generated Makefile or not.
13725    # We used to match only the files named `Makefile.in', but
13726    # some people rename them; so instead we look at the file content.
13727    # Grep'ing the first line is not enough: some people post-process
13728    # each Makefile.in and add a new line on top of each file to say so.
13729    # Grep'ing the whole file is not good either: AIX grep has a line
13730    # limit of 2048, but all sed's we know have understand at least 4000.
13731    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13732      dirpart=`$as_dirname -- "$mf" ||
13733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734	 X"$mf" : 'X\(//\)[^/]' \| \
13735	 X"$mf" : 'X\(//\)$' \| \
13736	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13737$as_echo X"$mf" |
13738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13739	    s//\1/
13740	    q
13741	  }
13742	  /^X\(\/\/\)[^/].*/{
13743	    s//\1/
13744	    q
13745	  }
13746	  /^X\(\/\/\)$/{
13747	    s//\1/
13748	    q
13749	  }
13750	  /^X\(\/\).*/{
13751	    s//\1/
13752	    q
13753	  }
13754	  s/.*/./; q'`
13755    else
13756      continue
13757    fi
13758    # Extract the definition of DEPDIR, am__include, and am__quote
13759    # from the Makefile without running `make'.
13760    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13761    test -z "$DEPDIR" && continue
13762    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13763    test -z "am__include" && continue
13764    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13765    # When using ansi2knr, U may be empty or an underscore; expand it
13766    U=`sed -n 's/^U = //p' < "$mf"`
13767    # Find all dependency output files, they are included files with
13768    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13769    # simplest approach to changing $(DEPDIR) to its actual value in the
13770    # expansion.
13771    for file in `sed -n "
13772      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13773	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13774      # Make sure the directory exists.
13775      test -f "$dirpart/$file" && continue
13776      fdir=`$as_dirname -- "$file" ||
13777$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778	 X"$file" : 'X\(//\)[^/]' \| \
13779	 X"$file" : 'X\(//\)$' \| \
13780	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13781$as_echo X"$file" |
13782    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13783	    s//\1/
13784	    q
13785	  }
13786	  /^X\(\/\/\)[^/].*/{
13787	    s//\1/
13788	    q
13789	  }
13790	  /^X\(\/\/\)$/{
13791	    s//\1/
13792	    q
13793	  }
13794	  /^X\(\/\).*/{
13795	    s//\1/
13796	    q
13797	  }
13798	  s/.*/./; q'`
13799      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13800      # echo "creating $dirpart/$file"
13801      echo '# dummy' > "$dirpart/$file"
13802    done
13803  done
13804}
13805 ;;
13806    "libtool":C)
13807
13808    # See if we are running on zsh, and set the options which allow our
13809    # commands through without removal of \ escapes.
13810    if test -n "${ZSH_VERSION+set}" ; then
13811      setopt NO_GLOB_SUBST
13812    fi
13813
13814    cfgfile="${ofile}T"
13815    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13816    $RM "$cfgfile"
13817
13818    cat <<_LT_EOF >> "$cfgfile"
13819#! $SHELL
13820
13821# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13822# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13824# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13825#
13826#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13827#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13828#                 Foundation, Inc.
13829#   Written by Gordon Matzigkeit, 1996
13830#
13831#   This file is part of GNU Libtool.
13832#
13833# GNU Libtool is free software; you can redistribute it and/or
13834# modify it under the terms of the GNU General Public License as
13835# published by the Free Software Foundation; either version 2 of
13836# the License, or (at your option) any later version.
13837#
13838# As a special exception to the GNU General Public License,
13839# if you distribute this file as part of a program or library that
13840# is built using GNU Libtool, you may include this file under the
13841# same distribution terms that you use for the rest of that program.
13842#
13843# GNU Libtool is distributed in the hope that it will be useful,
13844# but WITHOUT ANY WARRANTY; without even the implied warranty of
13845# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13846# GNU General Public License for more details.
13847#
13848# You should have received a copy of the GNU General Public License
13849# along with GNU Libtool; see the file COPYING.  If not, a copy
13850# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13851# obtained by writing to the Free Software Foundation, Inc.,
13852# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13853
13854
13855# The names of the tagged configurations supported by this script.
13856available_tags=""
13857
13858# ### BEGIN LIBTOOL CONFIG
13859
13860# Which release of libtool.m4 was used?
13861macro_version=$macro_version
13862macro_revision=$macro_revision
13863
13864# Whether or not to build static libraries.
13865build_old_libs=$enable_static
13866
13867# Whether or not to build shared libraries.
13868build_libtool_libs=$enable_shared
13869
13870# What type of objects to build.
13871pic_mode=$pic_mode
13872
13873# Whether or not to optimize for fast installation.
13874fast_install=$enable_fast_install
13875
13876# Shell to use when invoking shell scripts.
13877SHELL=$lt_SHELL
13878
13879# An echo program that protects backslashes.
13880ECHO=$lt_ECHO
13881
13882# The PATH separator for the build system.
13883PATH_SEPARATOR=$lt_PATH_SEPARATOR
13884
13885# The host system.
13886host_alias=$host_alias
13887host=$host
13888host_os=$host_os
13889
13890# The build system.
13891build_alias=$build_alias
13892build=$build
13893build_os=$build_os
13894
13895# A sed program that does not truncate output.
13896SED=$lt_SED
13897
13898# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13899Xsed="\$SED -e 1s/^X//"
13900
13901# A grep program that handles long lines.
13902GREP=$lt_GREP
13903
13904# An ERE matcher.
13905EGREP=$lt_EGREP
13906
13907# A literal string matcher.
13908FGREP=$lt_FGREP
13909
13910# A BSD- or MS-compatible name lister.
13911NM=$lt_NM
13912
13913# Whether we need soft or hard links.
13914LN_S=$lt_LN_S
13915
13916# What is the maximum length of a command?
13917max_cmd_len=$max_cmd_len
13918
13919# Object file suffix (normally "o").
13920objext=$ac_objext
13921
13922# Executable file suffix (normally "").
13923exeext=$exeext
13924
13925# whether the shell understands "unset".
13926lt_unset=$lt_unset
13927
13928# turn spaces into newlines.
13929SP2NL=$lt_lt_SP2NL
13930
13931# turn newlines into spaces.
13932NL2SP=$lt_lt_NL2SP
13933
13934# convert \$build file names to \$host format.
13935to_host_file_cmd=$lt_cv_to_host_file_cmd
13936
13937# convert \$build files to toolchain format.
13938to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13939
13940# An object symbol dumper.
13941OBJDUMP=$lt_OBJDUMP
13942
13943# Method to check whether dependent libraries are shared objects.
13944deplibs_check_method=$lt_deplibs_check_method
13945
13946# Command to use when deplibs_check_method = "file_magic".
13947file_magic_cmd=$lt_file_magic_cmd
13948
13949# How to find potential files when deplibs_check_method = "file_magic".
13950file_magic_glob=$lt_file_magic_glob
13951
13952# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13953want_nocaseglob=$lt_want_nocaseglob
13954
13955# DLL creation program.
13956DLLTOOL=$lt_DLLTOOL
13957
13958# Command to associate shared and link libraries.
13959sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13960
13961# The archiver.
13962AR=$lt_AR
13963
13964# Flags to create an archive.
13965AR_FLAGS=$lt_AR_FLAGS
13966
13967# How to feed a file listing to the archiver.
13968archiver_list_spec=$lt_archiver_list_spec
13969
13970# A symbol stripping program.
13971STRIP=$lt_STRIP
13972
13973# Commands used to install an old-style archive.
13974RANLIB=$lt_RANLIB
13975old_postinstall_cmds=$lt_old_postinstall_cmds
13976old_postuninstall_cmds=$lt_old_postuninstall_cmds
13977
13978# Whether to use a lock for old archive extraction.
13979lock_old_archive_extraction=$lock_old_archive_extraction
13980
13981# A C compiler.
13982LTCC=$lt_CC
13983
13984# LTCC compiler flags.
13985LTCFLAGS=$lt_CFLAGS
13986
13987# Take the output of nm and produce a listing of raw symbols and C names.
13988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13989
13990# Transform the output of nm in a proper C declaration.
13991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13992
13993# Transform the output of nm in a C name address pair.
13994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13995
13996# Transform the output of nm in a C name address pair when lib prefix is needed.
13997global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13998
13999# Specify filename containing input files for \$NM.
14000nm_file_list_spec=$lt_nm_file_list_spec
14001
14002# The root where to search for dependent libraries,and in which our libraries should be installed.
14003lt_sysroot=$lt_sysroot
14004
14005# The name of the directory that contains temporary libtool files.
14006objdir=$objdir
14007
14008# Used to examine libraries when file_magic_cmd begins with "file".
14009MAGIC_CMD=$MAGIC_CMD
14010
14011# Must we lock files when doing compilation?
14012need_locks=$lt_need_locks
14013
14014# Manifest tool.
14015MANIFEST_TOOL=$lt_MANIFEST_TOOL
14016
14017# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14018DSYMUTIL=$lt_DSYMUTIL
14019
14020# Tool to change global to local symbols on Mac OS X.
14021NMEDIT=$lt_NMEDIT
14022
14023# Tool to manipulate fat objects and archives on Mac OS X.
14024LIPO=$lt_LIPO
14025
14026# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14027OTOOL=$lt_OTOOL
14028
14029# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14030OTOOL64=$lt_OTOOL64
14031
14032# Old archive suffix (normally "a").
14033libext=$libext
14034
14035# Shared library suffix (normally ".so").
14036shrext_cmds=$lt_shrext_cmds
14037
14038# The commands to extract the exported symbol list from a shared archive.
14039extract_expsyms_cmds=$lt_extract_expsyms_cmds
14040
14041# Variables whose values should be saved in libtool wrapper scripts and
14042# restored at link time.
14043variables_saved_for_relink=$lt_variables_saved_for_relink
14044
14045# Do we need the "lib" prefix for modules?
14046need_lib_prefix=$need_lib_prefix
14047
14048# Do we need a version for libraries?
14049need_version=$need_version
14050
14051# Library versioning type.
14052version_type=$version_type
14053
14054# Shared library runtime path variable.
14055runpath_var=$runpath_var
14056
14057# Shared library path variable.
14058shlibpath_var=$shlibpath_var
14059
14060# Is shlibpath searched before the hard-coded library search path?
14061shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14062
14063# Format of library name prefix.
14064libname_spec=$lt_libname_spec
14065
14066# List of archive names.  First name is the real one, the rest are links.
14067# The last name is the one that the linker finds with -lNAME
14068library_names_spec=$lt_library_names_spec
14069
14070# The coded name of the library, if different from the real name.
14071soname_spec=$lt_soname_spec
14072
14073# Permission mode override for installation of shared libraries.
14074install_override_mode=$lt_install_override_mode
14075
14076# Command to use after installation of a shared archive.
14077postinstall_cmds=$lt_postinstall_cmds
14078
14079# Command to use after uninstallation of a shared archive.
14080postuninstall_cmds=$lt_postuninstall_cmds
14081
14082# Commands used to finish a libtool library installation in a directory.
14083finish_cmds=$lt_finish_cmds
14084
14085# As "finish_cmds", except a single script fragment to be evaled but
14086# not shown.
14087finish_eval=$lt_finish_eval
14088
14089# Whether we should hardcode library paths into libraries.
14090hardcode_into_libs=$hardcode_into_libs
14091
14092# Compile-time system search path for libraries.
14093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14094
14095# Run-time system search path for libraries.
14096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14097
14098# Whether dlopen is supported.
14099dlopen_support=$enable_dlopen
14100
14101# Whether dlopen of programs is supported.
14102dlopen_self=$enable_dlopen_self
14103
14104# Whether dlopen of statically linked programs is supported.
14105dlopen_self_static=$enable_dlopen_self_static
14106
14107# Commands to strip libraries.
14108old_striplib=$lt_old_striplib
14109striplib=$lt_striplib
14110
14111
14112# The linker used to build libraries.
14113LD=$lt_LD
14114
14115# How to create reloadable object files.
14116reload_flag=$lt_reload_flag
14117reload_cmds=$lt_reload_cmds
14118
14119# Commands used to build an old-style archive.
14120old_archive_cmds=$lt_old_archive_cmds
14121
14122# A language specific compiler.
14123CC=$lt_compiler
14124
14125# Is the compiler the GNU compiler?
14126with_gcc=$GCC
14127
14128# Compiler flag to turn off builtin functions.
14129no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14130
14131# Additional compiler flags for building library objects.
14132pic_flag=$lt_lt_prog_compiler_pic
14133
14134# How to pass a linker flag through the compiler.
14135wl=$lt_lt_prog_compiler_wl
14136
14137# Compiler flag to prevent dynamic linking.
14138link_static_flag=$lt_lt_prog_compiler_static
14139
14140# Does compiler simultaneously support -c and -o options?
14141compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14142
14143# Whether or not to add -lc for building shared libraries.
14144build_libtool_need_lc=$archive_cmds_need_lc
14145
14146# Whether or not to disallow shared libs when runtime libs are static.
14147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14148
14149# Compiler flag to allow reflexive dlopens.
14150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14151
14152# Compiler flag to generate shared objects directly from archives.
14153whole_archive_flag_spec=$lt_whole_archive_flag_spec
14154
14155# Whether the compiler copes with passing no objects directly.
14156compiler_needs_object=$lt_compiler_needs_object
14157
14158# Create an old-style archive from a shared archive.
14159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14160
14161# Create a temporary old-style archive to link instead of a shared archive.
14162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14163
14164# Commands used to build a shared archive.
14165archive_cmds=$lt_archive_cmds
14166archive_expsym_cmds=$lt_archive_expsym_cmds
14167
14168# Commands used to build a loadable module if different from building
14169# a shared archive.
14170module_cmds=$lt_module_cmds
14171module_expsym_cmds=$lt_module_expsym_cmds
14172
14173# Whether we are building with GNU ld or not.
14174with_gnu_ld=$lt_with_gnu_ld
14175
14176# Flag that allows shared libraries with undefined symbols to be built.
14177allow_undefined_flag=$lt_allow_undefined_flag
14178
14179# Flag that enforces no undefined symbols.
14180no_undefined_flag=$lt_no_undefined_flag
14181
14182# Flag to hardcode \$libdir into a binary during linking.
14183# This must work even if \$libdir does not exist
14184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14185
14186# Whether we need a single "-rpath" flag with a separated argument.
14187hardcode_libdir_separator=$lt_hardcode_libdir_separator
14188
14189# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14190# DIR into the resulting binary.
14191hardcode_direct=$hardcode_direct
14192
14193# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14194# DIR into the resulting binary and the resulting library dependency is
14195# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14196# library is relocated.
14197hardcode_direct_absolute=$hardcode_direct_absolute
14198
14199# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14200# into the resulting binary.
14201hardcode_minus_L=$hardcode_minus_L
14202
14203# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14204# into the resulting binary.
14205hardcode_shlibpath_var=$hardcode_shlibpath_var
14206
14207# Set to "yes" if building a shared library automatically hardcodes DIR
14208# into the library and all subsequent libraries and executables linked
14209# against it.
14210hardcode_automatic=$hardcode_automatic
14211
14212# Set to yes if linker adds runtime paths of dependent libraries
14213# to runtime path list.
14214inherit_rpath=$inherit_rpath
14215
14216# Whether libtool must link a program against all its dependency libraries.
14217link_all_deplibs=$link_all_deplibs
14218
14219# Set to "yes" if exported symbols are required.
14220always_export_symbols=$always_export_symbols
14221
14222# The commands to list exported symbols.
14223export_symbols_cmds=$lt_export_symbols_cmds
14224
14225# Symbols that should not be listed in the preloaded symbols.
14226exclude_expsyms=$lt_exclude_expsyms
14227
14228# Symbols that must always be exported.
14229include_expsyms=$lt_include_expsyms
14230
14231# Commands necessary for linking programs (against libraries) with templates.
14232prelink_cmds=$lt_prelink_cmds
14233
14234# Commands necessary for finishing linking programs.
14235postlink_cmds=$lt_postlink_cmds
14236
14237# Specify filename containing input files.
14238file_list_spec=$lt_file_list_spec
14239
14240# How to hardcode a shared library path into an executable.
14241hardcode_action=$hardcode_action
14242
14243# ### END LIBTOOL CONFIG
14244
14245_LT_EOF
14246
14247  case $host_os in
14248  aix3*)
14249    cat <<\_LT_EOF >> "$cfgfile"
14250# AIX sometimes has problems with the GCC collect2 program.  For some
14251# reason, if we set the COLLECT_NAMES environment variable, the problems
14252# vanish in a puff of smoke.
14253if test "X${COLLECT_NAMES+set}" != Xset; then
14254  COLLECT_NAMES=
14255  export COLLECT_NAMES
14256fi
14257_LT_EOF
14258    ;;
14259  esac
14260
14261
14262ltmain="$ac_aux_dir/ltmain.sh"
14263
14264
14265  # We use sed instead of cat because bash on DJGPP gets confused if
14266  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14267  # text mode, it properly converts lines to CR/LF.  This bash problem
14268  # is reportedly fixed, but why not run on old versions too?
14269  sed '$q' "$ltmain" >> "$cfgfile" \
14270     || (rm -f "$cfgfile"; exit 1)
14271
14272  if test x"$xsi_shell" = xyes; then
14273  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14274func_dirname ()\
14275{\
14276\    case ${1} in\
14277\      */*) func_dirname_result="${1%/*}${2}" ;;\
14278\      *  ) func_dirname_result="${3}" ;;\
14279\    esac\
14280} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14281  && mv -f "$cfgfile.tmp" "$cfgfile" \
14282    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14283test 0 -eq $? || _lt_function_replace_fail=:
14284
14285
14286  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14287func_basename ()\
14288{\
14289\    func_basename_result="${1##*/}"\
14290} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14291  && mv -f "$cfgfile.tmp" "$cfgfile" \
14292    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14293test 0 -eq $? || _lt_function_replace_fail=:
14294
14295
14296  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14297func_dirname_and_basename ()\
14298{\
14299\    case ${1} in\
14300\      */*) func_dirname_result="${1%/*}${2}" ;;\
14301\      *  ) func_dirname_result="${3}" ;;\
14302\    esac\
14303\    func_basename_result="${1##*/}"\
14304} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14305  && mv -f "$cfgfile.tmp" "$cfgfile" \
14306    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14307test 0 -eq $? || _lt_function_replace_fail=:
14308
14309
14310  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14311func_stripname ()\
14312{\
14313\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14314\    # positional parameters, so assign one to ordinary parameter first.\
14315\    func_stripname_result=${3}\
14316\    func_stripname_result=${func_stripname_result#"${1}"}\
14317\    func_stripname_result=${func_stripname_result%"${2}"}\
14318} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14319  && mv -f "$cfgfile.tmp" "$cfgfile" \
14320    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14321test 0 -eq $? || _lt_function_replace_fail=:
14322
14323
14324  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14325func_split_long_opt ()\
14326{\
14327\    func_split_long_opt_name=${1%%=*}\
14328\    func_split_long_opt_arg=${1#*=}\
14329} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14330  && mv -f "$cfgfile.tmp" "$cfgfile" \
14331    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14332test 0 -eq $? || _lt_function_replace_fail=:
14333
14334
14335  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14336func_split_short_opt ()\
14337{\
14338\    func_split_short_opt_arg=${1#??}\
14339\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14340} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14341  && mv -f "$cfgfile.tmp" "$cfgfile" \
14342    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343test 0 -eq $? || _lt_function_replace_fail=:
14344
14345
14346  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14347func_lo2o ()\
14348{\
14349\    case ${1} in\
14350\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14351\      *)    func_lo2o_result=${1} ;;\
14352\    esac\
14353} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14354  && mv -f "$cfgfile.tmp" "$cfgfile" \
14355    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14356test 0 -eq $? || _lt_function_replace_fail=:
14357
14358
14359  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14360func_xform ()\
14361{\
14362    func_xform_result=${1%.*}.lo\
14363} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14364  && mv -f "$cfgfile.tmp" "$cfgfile" \
14365    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14366test 0 -eq $? || _lt_function_replace_fail=:
14367
14368
14369  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14370func_arith ()\
14371{\
14372    func_arith_result=$(( $* ))\
14373} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14374  && mv -f "$cfgfile.tmp" "$cfgfile" \
14375    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14376test 0 -eq $? || _lt_function_replace_fail=:
14377
14378
14379  sed -e '/^func_len ()$/,/^} # func_len /c\
14380func_len ()\
14381{\
14382    func_len_result=${#1}\
14383} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14384  && mv -f "$cfgfile.tmp" "$cfgfile" \
14385    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14386test 0 -eq $? || _lt_function_replace_fail=:
14387
14388fi
14389
14390if test x"$lt_shell_append" = xyes; then
14391  sed -e '/^func_append ()$/,/^} # func_append /c\
14392func_append ()\
14393{\
14394    eval "${1}+=\\${2}"\
14395} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14396  && mv -f "$cfgfile.tmp" "$cfgfile" \
14397    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14398test 0 -eq $? || _lt_function_replace_fail=:
14399
14400
14401  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14402func_append_quoted ()\
14403{\
14404\    func_quote_for_eval "${2}"\
14405\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14406} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14407  && mv -f "$cfgfile.tmp" "$cfgfile" \
14408    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409test 0 -eq $? || _lt_function_replace_fail=:
14410
14411
14412  # Save a `func_append' function call where possible by direct use of '+='
14413  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14414    && mv -f "$cfgfile.tmp" "$cfgfile" \
14415      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14416  test 0 -eq $? || _lt_function_replace_fail=:
14417else
14418  # Save a `func_append' function call even when '+=' is not available
14419  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14420    && mv -f "$cfgfile.tmp" "$cfgfile" \
14421      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14422  test 0 -eq $? || _lt_function_replace_fail=:
14423fi
14424
14425if test x"$_lt_function_replace_fail" = x":"; then
14426  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14427$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14428fi
14429
14430
14431   mv -f "$cfgfile" "$ofile" ||
14432    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14433  chmod +x "$ofile"
14434
14435 ;;
14436    "pamgdb":F) chmod +x pamgdb ;;
14437
14438  esac
14439done # for ac_tag
14440
14441
14442as_fn_exit 0
14443_ACEOF
14444ac_clean_files=$ac_clean_files_save
14445
14446test $ac_write_fail = 0 ||
14447  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14448
14449
14450# configure is writing to config.log, and then calls config.status.
14451# config.status does its own redirection, appending to config.log.
14452# Unfortunately, on DOS this fails, as config.log is still kept open
14453# by configure, so config.status won't be able to write to it; its
14454# output is simply discarded.  So we exec the FD to /dev/null,
14455# effectively closing config.log, so it can be properly (re)opened and
14456# appended to by config.status.  When coming back to configure, we
14457# need to make the FD available again.
14458if test "$no_create" != yes; then
14459  ac_cs_success=:
14460  ac_config_status_args=
14461  test "$silent" = yes &&
14462    ac_config_status_args="$ac_config_status_args --quiet"
14463  exec 5>/dev/null
14464  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14465  exec 5>>config.log
14466  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14467  # would make configure fail if this is the last instruction.
14468  $ac_cs_success || as_fn_exit 1
14469fi
14470if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14471  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14472$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14473fi
14474
14475