1#! /bin/sh
2# From configure.ac Id: configure.ac 741 2013-09-07 13:34:02Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenPAM 20130907.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='OpenPAM'
592PACKAGE_TARNAME='openpam'
593PACKAGE_VERSION='20130907'
594PACKAGE_STRING='OpenPAM 20130907'
595PACKAGE_BUGREPORT='des@des.no'
596PACKAGE_URL='http://www.openpam.org/'
597
598ac_unique_file="lib/libpam/pam_start.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CRYPTO_LIBS
640CRYPT_LIBS
641DL_LIBS
642WITH_SU_FALSE
643WITH_SU_TRUE
644WITH_PAMTEST_FALSE
645WITH_PAMTEST_TRUE
646WITH_PAM_UNIX_FALSE
647WITH_PAM_UNIX_TRUE
648WITH_DOC_FALSE
649WITH_DOC_TRUE
650CUSTOM_MODULES_DIR_FALSE
651CUSTOM_MODULES_DIR_TRUE
652OPENPAM_MODULES_DIR
653LIB_MAJ
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671SED
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680LIBTOOL
681EGREP
682GREP
683CPP
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701MAINT
702MAINTAINER_MODE_FALSE
703MAINTAINER_MODE_TRUE
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_silent_rules
773enable_maintainer_mode
774enable_dependency_tracking
775enable_static
776enable_shared
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782enable_debug
783enable_unversioned_modules
784with_modules_dir
785with_doc
786with_pam_unix
787with_pamtest
788with_su
789enable_developer_warnings
790enable_debugging_symbols
791enable_werror
792'
793      ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CPP'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856  # If the previous option needs an argument, assign it.
857  if test -n "$ac_prev"; then
858    eval $ac_prev=\$ac_option
859    ac_prev=
860    continue
861  fi
862
863  case $ac_option in
864  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865  *=)   ac_optarg= ;;
866  *)    ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342\`configure' configures OpenPAM 20130907 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print \`checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for \`--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --libdir=DIR            object code libraries [EPREFIX/lib]
1383  --includedir=DIR        C header files [PREFIX/include]
1384  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1385  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1386  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1387  --infodir=DIR           info documentation [DATAROOTDIR/info]
1388  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1389  --mandir=DIR            man documentation [DATAROOTDIR/man]
1390  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1391  --htmldir=DIR           html documentation [DOCDIR]
1392  --dvidir=DIR            dvi documentation [DOCDIR]
1393  --pdfdir=DIR            pdf documentation [DOCDIR]
1394  --psdir=DIR             ps documentation [DOCDIR]
1395_ACEOF
1396
1397  cat <<\_ACEOF
1398
1399Program names:
1400  --program-prefix=PREFIX            prepend PREFIX to installed program names
1401  --program-suffix=SUFFIX            append SUFFIX to installed program names
1402  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404System types:
1405  --build=BUILD     configure for building on BUILD [guessed]
1406  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411  case $ac_init_help in
1412     short | recursive ) echo "Configuration of OpenPAM 20130907:";;
1413   esac
1414  cat <<\_ACEOF
1415
1416Optional Features:
1417  --disable-option-checking  ignore unrecognized --enable/--with options
1418  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420  --enable-silent-rules   less verbose build output (undo: "make V=1")
1421  --disable-silent-rules  verbose build output (undo: "make V=0")
1422  --enable-maintainer-mode
1423                          enable make rules and dependencies not useful (and
1424                          sometimes confusing) to the casual installer
1425  --enable-dependency-tracking
1426                          do not reject slow dependency extractors
1427  --disable-dependency-tracking
1428                          speeds up one-time build
1429  --enable-static[=PKGS]  build static libraries [default=no]
1430  --enable-shared[=PKGS]  build shared libraries [default=yes]
1431  --enable-fast-install[=PKGS]
1432                          optimize for fast installation [default=yes]
1433  --disable-libtool-lock  avoid locking (might break parallel builds)
1434  --enable-debug          turn debugging macros on
1435  --disable-unversioned-modules
1436                          support loading of unversioned modules
1437  --enable-developer-warnings
1438                          enable strict warnings (default is NO)
1439  --enable-debugging-symbols
1440                          enable debugging symbols (default is NO)
1441  --enable-werror         use -Werror (default is NO)
1442
1443Optional Packages:
1444  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1447                          both]
1448  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1449  --with-sysroot=DIR Search for dependent libraries within DIR
1450                        (or the compiler's sysroot if not specified).
1451  --with-modules-dir=DIR  OpenPAM modules directory
1452  --without-doc           do not build documentation
1453  --with-pam-unix         compile sample pam_unix(8) module
1454  --with-pamtest          compile test application
1455  --with-su               compile sample su(1) implementation
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  LIBS        libraries to pass to the linker, e.g. -l<library>
1463  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  CPP         C preprocessor
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <des@des.no>.
1471OpenPAM home page: <http://www.openpam.org/>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for guested configure.
1518    if test -f "$ac_srcdir/configure.gnu"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521    elif test -f "$ac_srcdir/configure"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure" --help=recursive
1524    else
1525      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526    fi || ac_status=$?
1527    cd "$ac_pwd" || { ac_status=$?; break; }
1528  done
1529fi
1530
1531test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then
1533  cat <<\_ACEOF
1534OpenPAM configure 20130907
1535generated by GNU Autoconf 2.69
1536
1537Copyright (C) 2012 Free Software Foundation, Inc.
1538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
1540_ACEOF
1541  exit
1542fi
1543
1544## ------------------------ ##
1545## Autoconf initialization. ##
1546## ------------------------ ##
1547
1548# ac_fn_c_try_compile LINENO
1549# --------------------------
1550# Try to compile conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_compile ()
1552{
1553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554  rm -f conftest.$ac_objext
1555  if { { ac_try="$ac_compile"
1556case "(($ac_try" in
1557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558  *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562  (eval "$ac_compile") 2>conftest.err
1563  ac_status=$?
1564  if test -s conftest.err; then
1565    grep -v '^ *+' conftest.err >conftest.er1
1566    cat conftest.er1 >&5
1567    mv -f conftest.er1 conftest.err
1568  fi
1569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570  test $ac_status = 0; } && {
1571	 test -z "$ac_c_werror_flag" ||
1572	 test ! -s conftest.err
1573       } && test -s conftest.$ac_objext; then :
1574  ac_retval=0
1575else
1576  $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579	ac_retval=1
1580fi
1581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582  as_fn_set_status $ac_retval
1583
1584} # ac_fn_c_try_compile
1585
1586# ac_fn_c_try_cpp LINENO
1587# ----------------------
1588# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_cpp ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if { { ac_try="$ac_cpp conftest.$ac_ext"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } > conftest.i && {
1608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616    ac_retval=1
1617fi
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_cpp
1622
1623# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624# -------------------------------------------------------
1625# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626# the include files in INCLUDES and setting the cache variable VAR
1627# accordingly.
1628ac_fn_c_check_header_mongrel ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  if eval \${$3+:} false; then :
1632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
1634if eval \${$3+:} false; then :
1635  $as_echo_n "(cached) " >&6
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640else
1641  # Is the header compilable?
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643$as_echo_n "checking $2 usability... " >&6; }
1644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650  ac_header_compiler=yes
1651else
1652  ac_header_compiler=no
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656$as_echo "$ac_header_compiler" >&6; }
1657
1658# Is the header present?
1659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660$as_echo_n "checking $2 presence... " >&6; }
1661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_cpp "$LINENO"; then :
1666  ac_header_preproc=yes
1667else
1668  ac_header_preproc=no
1669fi
1670rm -f conftest.err conftest.i conftest.$ac_ext
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672$as_echo "$ac_header_preproc" >&6; }
1673
1674# So?  What about this header?
1675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676  yes:no: )
1677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681    ;;
1682  no:yes:* )
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1686$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1690$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693( $as_echo "## ------------------------- ##
1694## Report this to des@des.no ##
1695## ------------------------- ##"
1696     ) | sed "s/^/$as_me: WARNING:     /" >&2
1697    ;;
1698esac
1699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
1701if eval \${$3+:} false; then :
1702  $as_echo_n "(cached) " >&6
1703else
1704  eval "$3=\$ac_header_compiler"
1705fi
1706eval ac_res=\$$3
1707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712} # ac_fn_c_check_header_mongrel
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_header_compile
1786
1787# ac_fn_c_try_link LINENO
1788# -----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_link ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  rm -f conftest.$ac_objext conftest$ac_exeext
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && {
1810	 test -z "$ac_c_werror_flag" ||
1811	 test ! -s conftest.err
1812       } && test -s conftest$ac_exeext && {
1813	 test "$cross_compiling" = yes ||
1814	 test -x conftest$ac_exeext
1815       }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821	ac_retval=1
1822fi
1823  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825  # interfere with the next link command; also delete a directory that is
1826  # left behind by Apple's compiler.  We do this before executing the actions.
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_link
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851    which can conflict with char $2 (); below.
1852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853    <limits.h> exists even on freestanding compilers.  */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864   Use char because int might match the return type of a GCC
1865   builtin and then its argument prototype would still apply.  */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871    to always fail with ENOSYS.  Some functions are actually named
1872    something starting with __ and the normal name is an alias.  */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891    conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898} # ac_fn_c_check_func
1899cat >config.log <<_ACEOF
1900This file contains any messages produced by compilers while
1901running configure, to aid debugging if configure makes a mistake.
1902
1903It was created by OpenPAM $as_me 20130907, which was
1904generated by GNU Autoconf 2.69.  Invocation command line was
1905
1906  $ $0 $@
1907
1908_ACEOF
1909exec 5>>config.log
1910{
1911cat <<_ASUNAME
1912## --------- ##
1913## Platform. ##
1914## --------- ##
1915
1916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1924
1925/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1926/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1929/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1930/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1931/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1932
1933_ASUNAME
1934
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
1938  IFS=$as_save_IFS
1939  test -z "$as_dir" && as_dir=.
1940    $as_echo "PATH: $as_dir"
1941  done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967  for ac_arg
1968  do
1969    case $ac_arg in
1970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972    | -silent | --silent | --silen | --sile | --sil)
1973      continue ;;
1974    *\'*)
1975      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976    esac
1977    case $ac_pass in
1978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979    2)
1980      as_fn_append ac_configure_args1 " '$ac_arg'"
1981      if test $ac_must_keep_next = true; then
1982	ac_must_keep_next=false # Got value, back to normal.
1983      else
1984	case $ac_arg in
1985	  *=* | --config-cache | -C | -disable-* | --disable-* \
1986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988	  | -with-* | --with-* | -without-* | --without-* | --x)
1989	    case "$ac_configure_args0 " in
1990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991	    esac
1992	    ;;
1993	  -* ) ac_must_keep_next=true ;;
1994	esac
1995      fi
1996      as_fn_append ac_configure_args " '$ac_arg'"
1997      ;;
1998    esac
1999  done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log.  We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010  # Save into config.log some information that might help in debugging.
2011  {
2012    echo
2013
2014    $as_echo "## ---------------- ##
2015## Cache variables. ##
2016## ---------------- ##"
2017    echo
2018    # The following way of writing the cache mishandles newlines in values,
2019(
2020  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021    eval ac_val=\$$ac_var
2022    case $ac_val in #(
2023    *${as_nl}*)
2024      case $ac_var in #(
2025      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027      esac
2028      case $ac_var in #(
2029      _ | IFS | as_nl) ;; #(
2030      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031      *) { eval $ac_var=; unset $ac_var;} ;;
2032      esac ;;
2033    esac
2034  done
2035  (set) 2>&1 |
2036    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037    *${as_nl}ac_space=\ *)
2038      sed -n \
2039	"s/'\''/'\''\\\\'\'''\''/g;
2040	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041      ;; #(
2042    *)
2043      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044      ;;
2045    esac |
2046    sort
2047)
2048    echo
2049
2050    $as_echo "## ----------------- ##
2051## Output variables. ##
2052## ----------------- ##"
2053    echo
2054    for ac_var in $ac_subst_vars
2055    do
2056      eval ac_val=\$$ac_var
2057      case $ac_val in
2058      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059      esac
2060      $as_echo "$ac_var='\''$ac_val'\''"
2061    done | sort
2062    echo
2063
2064    if test -n "$ac_subst_files"; then
2065      $as_echo "## ------------------- ##
2066## File substitutions. ##
2067## ------------------- ##"
2068      echo
2069      for ac_var in $ac_subst_files
2070      do
2071	eval ac_val=\$$ac_var
2072	case $ac_val in
2073	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074	esac
2075	$as_echo "$ac_var='\''$ac_val'\''"
2076      done | sort
2077      echo
2078    fi
2079
2080    if test -s confdefs.h; then
2081      $as_echo "## ----------- ##
2082## confdefs.h. ##
2083## ----------- ##"
2084      echo
2085      cat confdefs.h
2086      echo
2087    fi
2088    test "$ac_signal" != 0 &&
2089      $as_echo "$as_me: caught signal $ac_signal"
2090    $as_echo "$as_me: exit $exit_status"
2091  } >&5
2092  rm -f core *.core core.conftest.* &&
2093    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094    exit $exit_status
2095' 0
2096for ac_signal in 1 2 13 15; do
2097  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
2102rm -f -r conftest* confdefs.h
2103
2104$as_echo "/* confdefs.h */" > confdefs.h
2105
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
2132
2133# Let the site file select an alternate cache file if it wants to.
2134# Prefer an explicitly selected file to automatically selected ones.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138  # We do not want a PATH search for config.site.
2139  case $CONFIG_SITE in #((
2140    -*)  ac_site_file1=./$CONFIG_SITE;;
2141    */*) ac_site_file1=$CONFIG_SITE;;
2142    *)   ac_site_file1=./$CONFIG_SITE;;
2143  esac
2144elif test "x$prefix" != xNONE; then
2145  ac_site_file1=$prefix/share/config.site
2146  ac_site_file2=$prefix/etc/config.site
2147else
2148  ac_site_file1=$ac_default_prefix/share/config.site
2149  ac_site_file2=$ac_default_prefix/etc/config.site
2150fi
2151for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152do
2153  test "x$ac_site_file" = xNONE && continue
2154  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157    sed 's/^/| /' "$ac_site_file" >&5
2158    . "$ac_site_file" \
2159      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "failed to load site script $ac_site_file
2162See \`config.log' for more details" "$LINENO" 5; }
2163  fi
2164done
2165
2166if test -r "$cache_file"; then
2167  # Some versions of bash will fail to source /dev/null (special files
2168  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2169  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171$as_echo "$as_me: loading cache $cache_file" >&6;}
2172    case $cache_file in
2173      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174      *)                      . "./$cache_file";;
2175    esac
2176  fi
2177else
2178  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179$as_echo "$as_me: creating cache $cache_file" >&6;}
2180  >$cache_file
2181fi
2182
2183# Check that the precious variables saved in the cache have kept the same
2184# value.
2185ac_cache_corrupted=false
2186for ac_var in $ac_precious_vars; do
2187  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188  eval ac_new_set=\$ac_env_${ac_var}_set
2189  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190  eval ac_new_val=\$ac_env_${ac_var}_value
2191  case $ac_old_set,$ac_new_set in
2192    set,)
2193      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195      ac_cache_corrupted=: ;;
2196    ,set)
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199      ac_cache_corrupted=: ;;
2200    ,);;
2201    *)
2202      if test "x$ac_old_val" != "x$ac_new_val"; then
2203	# differences in whitespace do not lead to failure.
2204	ac_old_val_w=`echo x $ac_old_val`
2205	ac_new_val_w=`echo x $ac_new_val`
2206	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209	  ac_cache_corrupted=:
2210	else
2211	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213	  eval $ac_var=\$ac_old_val
2214	fi
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2216$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2217	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2218$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2219      fi;;
2220  esac
2221  # Pass precious variables to config.status.
2222  if test "$ac_new_set" = set; then
2223    case $ac_new_val in
2224    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225    *) ac_arg=$ac_var=$ac_new_val ;;
2226    esac
2227    case " $ac_configure_args " in
2228      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2229      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230    esac
2231  fi
2232done
2233if $ac_cache_corrupted; then
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239fi
2240## -------------------- ##
2241## Main body of script. ##
2242## -------------------- ##
2243
2244ac_ext=c
2245ac_cpp='$CPP $CPPFLAGS'
2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252
2253am__api_version='1.14'
2254
2255ac_aux_dir=
2256for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257  if test -f "$ac_dir/install-sh"; then
2258    ac_aux_dir=$ac_dir
2259    ac_install_sh="$ac_aux_dir/install-sh -c"
2260    break
2261  elif test -f "$ac_dir/install.sh"; then
2262    ac_aux_dir=$ac_dir
2263    ac_install_sh="$ac_aux_dir/install.sh -c"
2264    break
2265  elif test -f "$ac_dir/shtool"; then
2266    ac_aux_dir=$ac_dir
2267    ac_install_sh="$ac_aux_dir/shtool install -c"
2268    break
2269  fi
2270done
2271if test -z "$ac_aux_dir"; then
2272  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2273fi
2274
2275# These three variables are undocumented and unsupported,
2276# and are intended to be withdrawn in a future Autoconf release.
2277# They can cause serious problems if a builder's source tree is in a directory
2278# whose full name contains unusual characters.
2279ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2280ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2281ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2282
2283
2284# Find a good install program.  We prefer a C program (faster),
2285# so one script is as good as another.  But avoid the broken or
2286# incompatible versions:
2287# SysV /etc/install, /usr/sbin/install
2288# SunOS /usr/etc/install
2289# IRIX /sbin/install
2290# AIX /bin/install
2291# AmigaOS /C/install, which installs bootblocks on floppy discs
2292# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2293# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2294# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2295# OS/2's system install, which has a completely different semantic
2296# ./install, which can be erroneously created by make from ./install.sh.
2297# Reject install programs that cannot install multiple files.
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2299$as_echo_n "checking for a BSD-compatible install... " >&6; }
2300if test -z "$INSTALL"; then
2301if ${ac_cv_path_install+:} false; then :
2302  $as_echo_n "(cached) " >&6
2303else
2304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309    # Account for people who put trailing slashes in PATH elements.
2310case $as_dir/ in #((
2311  ./ | .// | /[cC]/* | \
2312  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2313  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2314  /usr/ucb/* ) ;;
2315  *)
2316    # OSF1 and SCO ODT 3.0 have their own names for install.
2317    # Don't use installbsd from OSF since it installs stuff as root
2318    # by default.
2319    for ac_prog in ginstall scoinst install; do
2320      for ac_exec_ext in '' $ac_executable_extensions; do
2321	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2322	  if test $ac_prog = install &&
2323	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324	    # AIX install.  It has an incompatible calling convention.
2325	    :
2326	  elif test $ac_prog = install &&
2327	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2328	    # program-specific install script used by HP pwplus--don't use.
2329	    :
2330	  else
2331	    rm -rf conftest.one conftest.two conftest.dir
2332	    echo one > conftest.one
2333	    echo two > conftest.two
2334	    mkdir conftest.dir
2335	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2336	      test -s conftest.one && test -s conftest.two &&
2337	      test -s conftest.dir/conftest.one &&
2338	      test -s conftest.dir/conftest.two
2339	    then
2340	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341	      break 3
2342	    fi
2343	  fi
2344	fi
2345      done
2346    done
2347    ;;
2348esac
2349
2350  done
2351IFS=$as_save_IFS
2352
2353rm -rf conftest.one conftest.two conftest.dir
2354
2355fi
2356  if test "${ac_cv_path_install+set}" = set; then
2357    INSTALL=$ac_cv_path_install
2358  else
2359    # As a last resort, use the slow shell script.  Don't cache a
2360    # value for INSTALL within a source directory, because that will
2361    # break other packages using the cache if that directory is
2362    # removed, or if the value is a relative name.
2363    INSTALL=$ac_install_sh
2364  fi
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2367$as_echo "$INSTALL" >&6; }
2368
2369# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2370# It thinks the first close brace ends the variable substitution.
2371test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2372
2373test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2374
2375test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2376
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2378$as_echo_n "checking whether build environment is sane... " >&6; }
2379# Reject unsafe characters in $srcdir or the absolute working directory
2380# name.  Accept space and tab only in the latter.
2381am_lf='
2382'
2383case `pwd` in
2384  *[\\\"\#\$\&\'\`$am_lf]*)
2385    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2386esac
2387case $srcdir in
2388  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2389    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2390esac
2391
2392# Do 'set' in a subshell so we don't clobber the current shell's
2393# arguments.  Must try -L first in case configure is actually a
2394# symlink; some systems play weird games with the mod time of symlinks
2395# (eg FreeBSD returns the mod time of the symlink's containing
2396# directory).
2397if (
2398   am_has_slept=no
2399   for am_try in 1 2; do
2400     echo "timestamp, slept: $am_has_slept" > conftest.file
2401     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2402     if test "$*" = "X"; then
2403	# -L didn't work.
2404	set X `ls -t "$srcdir/configure" conftest.file`
2405     fi
2406     if test "$*" != "X $srcdir/configure conftest.file" \
2407	&& test "$*" != "X conftest.file $srcdir/configure"; then
2408
2409	# If neither matched, then we have a broken ls.  This can happen
2410	# if, for instance, CONFIG_SHELL is bash and it inherits a
2411	# broken ls alias from the environment.  This has actually
2412	# happened.  Such a system could not be considered "sane".
2413	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2414  alias in your environment" "$LINENO" 5
2415     fi
2416     if test "$2" = conftest.file || test $am_try -eq 2; then
2417       break
2418     fi
2419     # Just in case.
2420     sleep 1
2421     am_has_slept=yes
2422   done
2423   test "$2" = conftest.file
2424   )
2425then
2426   # Ok.
2427   :
2428else
2429   as_fn_error $? "newly created file is older than distributed files!
2430Check your system clock" "$LINENO" 5
2431fi
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2433$as_echo "yes" >&6; }
2434# If we didn't sleep, we still need to ensure time stamps of config.status and
2435# generated files are strictly newer.
2436am_sleep_pid=
2437if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2438  ( sleep 1 ) &
2439  am_sleep_pid=$!
2440fi
2441
2442rm -f conftest.file
2443
2444test "$program_prefix" != NONE &&
2445  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2446# Use a double $ so make ignores it.
2447test "$program_suffix" != NONE &&
2448  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2449# Double any \ or $.
2450# By default was `s,x,x', remove it if useless.
2451ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2452program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453
2454# expand $ac_aux_dir to an absolute path
2455am_aux_dir=`cd $ac_aux_dir && pwd`
2456
2457if test x"${MISSING+set}" != xset; then
2458  case $am_aux_dir in
2459  *\ * | *\	*)
2460    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2461  *)
2462    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2463  esac
2464fi
2465# Use eval to expand $SHELL
2466if eval "$MISSING --is-lightweight"; then
2467  am_missing_run="$MISSING "
2468else
2469  am_missing_run=
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2471$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2472fi
2473
2474if test x"${install_sh}" != xset; then
2475  case $am_aux_dir in
2476  *\ * | *\	*)
2477    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2478  *)
2479    install_sh="\${SHELL} $am_aux_dir/install-sh"
2480  esac
2481fi
2482
2483# Installed binaries are usually stripped using 'strip' when the user
2484# run "make install-strip".  However 'strip' might not be the right
2485# tool to use in cross-compilation environments, therefore Automake
2486# will honor the 'STRIP' environment variable to overrule this program.
2487if test "$cross_compiling" != no; then
2488  if test -n "$ac_tool_prefix"; then
2489  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490set dummy ${ac_tool_prefix}strip; ac_word=$2
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492$as_echo_n "checking for $ac_word... " >&6; }
2493if ${ac_cv_prog_STRIP+:} false; then :
2494  $as_echo_n "(cached) " >&6
2495else
2496  if test -n "$STRIP"; then
2497  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502  IFS=$as_save_IFS
2503  test -z "$as_dir" && as_dir=.
2504    for ac_exec_ext in '' $ac_executable_extensions; do
2505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508    break 2
2509  fi
2510done
2511  done
2512IFS=$as_save_IFS
2513
2514fi
2515fi
2516STRIP=$ac_cv_prog_STRIP
2517if test -n "$STRIP"; then
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2519$as_echo "$STRIP" >&6; }
2520else
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522$as_echo "no" >&6; }
2523fi
2524
2525
2526fi
2527if test -z "$ac_cv_prog_STRIP"; then
2528  ac_ct_STRIP=$STRIP
2529  # Extract the first word of "strip", so it can be a program name with args.
2530set dummy strip; ac_word=$2
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$ac_ct_STRIP"; then
2537  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546    ac_cv_prog_ac_ct_STRIP="strip"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2557if test -n "$ac_ct_STRIP"; then
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2559$as_echo "$ac_ct_STRIP" >&6; }
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565  if test "x$ac_ct_STRIP" = x; then
2566    STRIP=":"
2567  else
2568    case $cross_compiling:$ac_tool_warned in
2569yes:)
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572ac_tool_warned=yes ;;
2573esac
2574    STRIP=$ac_ct_STRIP
2575  fi
2576else
2577  STRIP="$ac_cv_prog_STRIP"
2578fi
2579
2580fi
2581INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2584$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2585if test -z "$MKDIR_P"; then
2586  if ${ac_cv_path_mkdir+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_prog in mkdir gmkdir; do
2595	 for ac_exec_ext in '' $ac_executable_extensions; do
2596	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2597	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2598	     'mkdir (GNU coreutils) '* | \
2599	     'mkdir (coreutils) '* | \
2600	     'mkdir (fileutils) '4.1*)
2601	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602	       break 3;;
2603	   esac
2604	 done
2605       done
2606  done
2607IFS=$as_save_IFS
2608
2609fi
2610
2611  test -d ./--version && rmdir ./--version
2612  if test "${ac_cv_path_mkdir+set}" = set; then
2613    MKDIR_P="$ac_cv_path_mkdir -p"
2614  else
2615    # As a last resort, use the slow shell script.  Don't cache a
2616    # value for MKDIR_P within a source directory, because that will
2617    # break other packages using the cache if that directory is
2618    # removed, or if the value is a relative name.
2619    MKDIR_P="$ac_install_sh -d"
2620  fi
2621fi
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2623$as_echo "$MKDIR_P" >&6; }
2624
2625for ac_prog in gawk mawk nawk awk
2626do
2627  # Extract the first word of "$ac_prog", so it can be a program name with args.
2628set dummy $ac_prog; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_AWK+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  if test -n "$AWK"; then
2635  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644    ac_cv_prog_AWK="$ac_prog"
2645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646    break 2
2647  fi
2648done
2649  done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654AWK=$ac_cv_prog_AWK
2655if test -n "$AWK"; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2657$as_echo "$AWK" >&6; }
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664  test -n "$AWK" && break
2665done
2666
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2668$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2669set x ${MAKE-make}
2670ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2671if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  cat >conftest.make <<\_ACEOF
2675SHELL = /bin/sh
2676all:
2677	@echo '@@@%%%=$(MAKE)=@@@%%%'
2678_ACEOF
2679# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2680case `${MAKE-make} -f conftest.make 2>/dev/null` in
2681  *@@@%%%=?*=@@@%%%*)
2682    eval ac_cv_prog_make_${ac_make}_set=yes;;
2683  *)
2684    eval ac_cv_prog_make_${ac_make}_set=no;;
2685esac
2686rm -f conftest.make
2687fi
2688if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690$as_echo "yes" >&6; }
2691  SET_MAKE=
2692else
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695  SET_MAKE="MAKE=${MAKE-make}"
2696fi
2697
2698rm -rf .tst 2>/dev/null
2699mkdir .tst 2>/dev/null
2700if test -d .tst; then
2701  am__leading_dot=.
2702else
2703  am__leading_dot=_
2704fi
2705rmdir .tst 2>/dev/null
2706
2707# Check whether --enable-silent-rules was given.
2708if test "${enable_silent_rules+set}" = set; then :
2709  enableval=$enable_silent_rules;
2710fi
2711
2712case $enable_silent_rules in # (((
2713  yes) AM_DEFAULT_VERBOSITY=0;;
2714   no) AM_DEFAULT_VERBOSITY=1;;
2715    *) AM_DEFAULT_VERBOSITY=1;;
2716esac
2717am_make=${MAKE-make}
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2719$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2720if ${am_cv_make_support_nested_variables+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if $as_echo 'TRUE=$(BAR$(V))
2724BAR0=false
2725BAR1=true
2726V=1
2727am__doit:
2728	@$(TRUE)
2729.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2730  am_cv_make_support_nested_variables=yes
2731else
2732  am_cv_make_support_nested_variables=no
2733fi
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2736$as_echo "$am_cv_make_support_nested_variables" >&6; }
2737if test $am_cv_make_support_nested_variables = yes; then
2738    AM_V='$(V)'
2739  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2740else
2741  AM_V=$AM_DEFAULT_VERBOSITY
2742  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2743fi
2744AM_BACKSLASH='\'
2745
2746if test "`cd $srcdir && pwd`" != "`pwd`"; then
2747  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2748  # is not polluted with repeated "-I."
2749  am__isrc=' -I$(srcdir)'
2750  # test to see if srcdir already configured
2751  if test -f $srcdir/config.status; then
2752    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2753  fi
2754fi
2755
2756# test whether we have cygpath
2757if test -z "$CYGPATH_W"; then
2758  if (cygpath --version) >/dev/null 2>/dev/null; then
2759    CYGPATH_W='cygpath -w'
2760  else
2761    CYGPATH_W=echo
2762  fi
2763fi
2764
2765
2766# Define the identity of the package.
2767 PACKAGE='openpam'
2768 VERSION='20130907'
2769
2770
2771cat >>confdefs.h <<_ACEOF
2772#define PACKAGE "$PACKAGE"
2773_ACEOF
2774
2775
2776cat >>confdefs.h <<_ACEOF
2777#define VERSION "$VERSION"
2778_ACEOF
2779
2780# Some tools Automake needs.
2781
2782ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2783
2784
2785AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2786
2787
2788AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2789
2790
2791AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2792
2793
2794MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2795
2796# For better backward compatibility.  To be removed once Automake 1.9.x
2797# dies out for good.  For more background, see:
2798# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2799# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2800mkdir_p='$(MKDIR_P)'
2801
2802# We need awk for the "check" target.  The system "awk" is bad on
2803# some platforms.
2804# Always define AMTAR for backward compatibility.  Yes, it's still used
2805# in the wild :-(  We should find a proper way to deprecate it ...
2806AMTAR='$${TAR-tar}'
2807
2808
2809# We'll loop over all known methods to create a tar archive until one works.
2810_am_tools='gnutar  pax cpio none'
2811
2812am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2813
2814
2815
2816
2817
2818
2819# POSIX will say in a future version that running "rm -f" with no argument
2820# is OK; and we want to be able to make that assumption in our Makefile
2821# recipes.  So use an aggressive probe to check that the usage we want is
2822# actually supported "in the wild" to an acceptable degree.
2823# See automake bug#10828.
2824# To make any issue more visible, cause the running configure to be aborted
2825# by default if the 'rm' program in use doesn't match our expectations; the
2826# user can still override this though.
2827if rm -f && rm -fr && rm -rf; then : OK; else
2828  cat >&2 <<'END'
2829Oops!
2830
2831Your 'rm' program seems unable to run without file operands specified
2832on the command line, even when the '-f' option is present.  This is contrary
2833to the behaviour of most rm programs out there, and not conforming with
2834the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2835
2836Please tell bug-automake@gnu.org about your system, including the value
2837of your $PATH and any error possibly output before this message.  This
2838can help us improve future automake versions.
2839
2840END
2841  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2842    echo 'Configuration will proceed anyway, since you have set the' >&2
2843    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2844    echo >&2
2845  else
2846    cat >&2 <<'END'
2847Aborting the configuration process, to ensure you take notice of the issue.
2848
2849You can download and install GNU coreutils to get an 'rm' implementation
2850that behaves properly: <http://www.gnu.org/software/coreutils/>.
2851
2852If you want to complete the configuration process using your problematic
2853'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2854to "yes", and re-run configure.
2855
2856END
2857    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2858  fi
2859fi
2860ac_config_headers="$ac_config_headers config.h"
2861
2862
2863
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2865$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2866    # Check whether --enable-maintainer-mode was given.
2867if test "${enable_maintainer_mode+set}" = set; then :
2868  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2869else
2870  USE_MAINTAINER_MODE=no
2871fi
2872
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2874$as_echo "$USE_MAINTAINER_MODE" >&6; }
2875   if test $USE_MAINTAINER_MODE = yes; then
2876  MAINTAINER_MODE_TRUE=
2877  MAINTAINER_MODE_FALSE='#'
2878else
2879  MAINTAINER_MODE_TRUE='#'
2880  MAINTAINER_MODE_FALSE=
2881fi
2882
2883  MAINT=$MAINTAINER_MODE_TRUE
2884
2885
2886
2887# C compiler and features
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893
2894ac_ext=c
2895ac_cpp='$CPP $CPPFLAGS'
2896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899if test -n "$ac_tool_prefix"; then
2900  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901set dummy ${ac_tool_prefix}gcc; ac_word=$2
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903$as_echo_n "checking for $ac_word... " >&6; }
2904if ${ac_cv_prog_CC+:} false; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  if test -n "$CC"; then
2908  ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  test -z "$as_dir" && as_dir=.
2915    for ac_exec_ext in '' $ac_executable_extensions; do
2916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922  done
2923IFS=$as_save_IFS
2924
2925fi
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930$as_echo "$CC" >&6; }
2931else
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
2934fi
2935
2936
2937fi
2938if test -z "$ac_cv_prog_CC"; then
2939  ac_ct_CC=$CC
2940  # Extract the first word of "gcc", so it can be a program name with args.
2941set dummy gcc; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if ${ac_cv_prog_ac_ct_CC+:} false; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$ac_ct_CC"; then
2948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_ac_ct_CC="gcc"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968if test -n "$ac_ct_CC"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2970$as_echo "$ac_ct_CC" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976  if test "x$ac_ct_CC" = x; then
2977    CC=""
2978  else
2979    case $cross_compiling:$ac_tool_warned in
2980yes:)
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983ac_tool_warned=yes ;;
2984esac
2985    CC=$ac_ct_CC
2986  fi
2987else
2988  CC="$ac_cv_prog_CC"
2989fi
2990
2991if test -z "$CC"; then
2992          if test -n "$ac_tool_prefix"; then
2993    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2994set dummy ${ac_tool_prefix}cc; ac_word=$2
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if ${ac_cv_prog_CC+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$CC"; then
3001  ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006  IFS=$as_save_IFS
3007  test -z "$as_dir" && as_dir=.
3008    for ac_exec_ext in '' $ac_executable_extensions; do
3009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010    ac_cv_prog_CC="${ac_tool_prefix}cc"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018fi
3019fi
3020CC=$ac_cv_prog_CC
3021if test -n "$CC"; then
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023$as_echo "$CC" >&6; }
3024else
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027fi
3028
3029
3030  fi
3031fi
3032if test -z "$CC"; then
3033  # Extract the first word of "cc", so it can be a program name with args.
3034set dummy cc; ac_word=$2
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
3037if ${ac_cv_prog_CC+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  if test -n "$CC"; then
3041  ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
3043  ac_prog_rejected=no
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3052       ac_prog_rejected=yes
3053       continue
3054     fi
3055    ac_cv_prog_CC="cc"
3056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057    break 2
3058  fi
3059done
3060  done
3061IFS=$as_save_IFS
3062
3063if test $ac_prog_rejected = yes; then
3064  # We found a bogon in the path, so make sure we never use it.
3065  set dummy $ac_cv_prog_CC
3066  shift
3067  if test $# != 0; then
3068    # We chose a different compiler from the bogus one.
3069    # However, it has the same basename, so the bogon will be chosen
3070    # first if we set CC to just the basename; use the full file name.
3071    shift
3072    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3073  fi
3074fi
3075fi
3076fi
3077CC=$ac_cv_prog_CC
3078if test -n "$CC"; then
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080$as_echo "$CC" >&6; }
3081else
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084fi
3085
3086
3087fi
3088if test -z "$CC"; then
3089  if test -n "$ac_tool_prefix"; then
3090  for ac_prog in cl.exe
3091  do
3092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095$as_echo_n "checking for $ac_word... " >&6; }
3096if ${ac_cv_prog_CC+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  if test -n "$CC"; then
3100  ac_cv_prog_CC="$CC" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119CC=$ac_cv_prog_CC
3120if test -n "$CC"; then
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122$as_echo "$CC" >&6; }
3123else
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126fi
3127
3128
3129    test -n "$CC" && break
3130  done
3131fi
3132if test -z "$CC"; then
3133  ac_ct_CC=$CC
3134  for ac_prog in cl.exe
3135do
3136  # Extract the first word of "$ac_prog", so it can be a program name with args.
3137set dummy $ac_prog; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if ${ac_cv_prog_ac_ct_CC+:} false; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  if test -n "$ac_ct_CC"; then
3144  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149  IFS=$as_save_IFS
3150  test -z "$as_dir" && as_dir=.
3151    for ac_exec_ext in '' $ac_executable_extensions; do
3152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153    ac_cv_prog_ac_ct_CC="$ac_prog"
3154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155    break 2
3156  fi
3157done
3158  done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163ac_ct_CC=$ac_cv_prog_ac_ct_CC
3164if test -n "$ac_ct_CC"; then
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3166$as_echo "$ac_ct_CC" >&6; }
3167else
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173  test -n "$ac_ct_CC" && break
3174done
3175
3176  if test "x$ac_ct_CC" = x; then
3177    CC=""
3178  else
3179    case $cross_compiling:$ac_tool_warned in
3180yes:)
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183ac_tool_warned=yes ;;
3184esac
3185    CC=$ac_ct_CC
3186  fi
3187fi
3188
3189fi
3190
3191
3192test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194as_fn_error $? "no acceptable C compiler found in \$PATH
3195See \`config.log' for more details" "$LINENO" 5; }
3196
3197# Provide some information about the compiler.
3198$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3199set X $ac_compile
3200ac_compiler=$2
3201for ac_option in --version -v -V -qversion; do
3202  { { ac_try="$ac_compiler $ac_option >&5"
3203case "(($ac_try" in
3204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205  *) ac_try_echo=$ac_try;;
3206esac
3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3210  ac_status=$?
3211  if test -s conftest.err; then
3212    sed '10a\
3213... rest of stderr output deleted ...
3214         10q' conftest.err >conftest.er1
3215    cat conftest.er1 >&5
3216  fi
3217  rm -f conftest.er1 conftest.err
3218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }
3220done
3221
3222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233ac_clean_files_save=$ac_clean_files
3234ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3235# Try to create an executable without -o first, disregard a.out.
3236# It will help us diagnose broken compilers, and finding out an intuition
3237# of exeext.
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3239$as_echo_n "checking whether the C compiler works... " >&6; }
3240ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3241
3242# The possible output files:
3243ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244
3245ac_rmfiles=
3246for ac_file in $ac_files
3247do
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3250    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3251  esac
3252done
3253rm -f $ac_rmfiles
3254
3255if { { ac_try="$ac_link_default"
3256case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
3262  (eval "$ac_link_default") 2>&5
3263  ac_status=$?
3264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265  test $ac_status = 0; }; then :
3266  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3267# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3268# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3269# so that the user can short-circuit this test for compilers unknown to
3270# Autoconf.
3271for ac_file in $ac_files ''
3272do
3273  test -f "$ac_file" || continue
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3276	;;
3277    [ab].out )
3278	# We found the default executable, but exeext='' is most
3279	# certainly right.
3280	break;;
3281    *.* )
3282	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3283	then :; else
3284	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3285	fi
3286	# We set ac_cv_exeext here because the later test for it is not
3287	# safe: cross compilers may not add the suffix if given an `-o'
3288	# argument, so we may need to know it at that point already.
3289	# Even if this section looks crufty: it has the advantage of
3290	# actually working.
3291	break;;
3292    * )
3293	break;;
3294  esac
3295done
3296test "$ac_cv_exeext" = no && ac_cv_exeext=
3297
3298else
3299  ac_file=''
3300fi
3301if test -z "$ac_file"; then :
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304$as_echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error 77 "C compiler cannot create executables
3310See \`config.log' for more details" "$LINENO" 5; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313$as_echo "yes" >&6; }
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3316$as_echo_n "checking for C compiler default output file name... " >&6; }
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3318$as_echo "$ac_file" >&6; }
3319ac_exeext=$ac_cv_exeext
3320
3321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3322ac_clean_files=$ac_clean_files_save
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3324$as_echo_n "checking for suffix of executables... " >&6; }
3325if { { ac_try="$ac_link"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332  (eval "$ac_link") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }; then :
3336  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3338# work properly (i.e., refer to `conftest.exe'), while it won't with
3339# `rm'.
3340for ac_file in conftest.exe conftest conftest.*; do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3344    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345	  break;;
3346    * ) break;;
3347  esac
3348done
3349else
3350  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3353See \`config.log' for more details" "$LINENO" 5; }
3354fi
3355rm -f conftest conftest$ac_cv_exeext
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3357$as_echo "$ac_cv_exeext" >&6; }
3358
3359rm -f conftest.$ac_ext
3360EXEEXT=$ac_cv_exeext
3361ac_exeext=$EXEEXT
3362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364#include <stdio.h>
3365int
3366main ()
3367{
3368FILE *f = fopen ("conftest.out", "w");
3369 return ferror (f) || fclose (f) != 0;
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375ac_clean_files="$ac_clean_files conftest.out"
3376# Check that the compiler produces executables we can run.  If not, either
3377# the compiler is broken, or we cross compile.
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3379$as_echo_n "checking whether we are cross compiling... " >&6; }
3380if test "$cross_compiling" != yes; then
3381  { { ac_try="$ac_link"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_link") 2>&5
3389  ac_status=$?
3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391  test $ac_status = 0; }
3392  if { ac_try='./conftest$ac_cv_exeext'
3393  { { case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398$as_echo "$ac_try_echo"; } >&5
3399  (eval "$ac_try") 2>&5
3400  ac_status=$?
3401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402  test $ac_status = 0; }; }; then
3403    cross_compiling=no
3404  else
3405    if test "$cross_compiling" = maybe; then
3406	cross_compiling=yes
3407    else
3408	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410as_fn_error $? "cannot run C compiled programs.
3411If you meant to cross compile, use \`--host'.
3412See \`config.log' for more details" "$LINENO" 5; }
3413    fi
3414  fi
3415fi
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417$as_echo "$cross_compiling" >&6; }
3418
3419rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3420ac_clean_files=$ac_clean_files_save
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422$as_echo_n "checking for suffix of object files... " >&6; }
3423if ${ac_cv_objext+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.o conftest.obj
3438if { { ac_try="$ac_compile"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_compile") 2>&5
3446  ac_status=$?
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }; then :
3449  for ac_file in conftest.o conftest.obj conftest.*; do
3450  test -f "$ac_file" || continue;
3451  case $ac_file in
3452    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454       break;;
3455  esac
3456done
3457else
3458  $as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error $? "cannot compute suffix of object files: cannot compile
3464See \`config.log' for more details" "$LINENO" 5; }
3465fi
3466rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469$as_echo "$ac_cv_objext" >&6; }
3470OBJEXT=$ac_cv_objext
3471ac_objext=$OBJEXT
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474if ${ac_cv_c_compiler_gnu+:} false; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483#ifndef __GNUC__
3484       choke me
3485#endif
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491if ac_fn_c_try_compile "$LINENO"; then :
3492  ac_compiler_gnu=yes
3493else
3494  ac_compiler_gnu=no
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502if test $ac_compiler_gnu = yes; then
3503  GCC=yes
3504else
3505  GCC=
3506fi
3507ac_test_CFLAGS=${CFLAGS+set}
3508ac_save_CFLAGS=$CFLAGS
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510$as_echo_n "checking whether $CC accepts -g... " >&6; }
3511if ${ac_cv_prog_cc_g+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  ac_save_c_werror_flag=$ac_c_werror_flag
3515   ac_c_werror_flag=yes
3516   ac_cv_prog_cc_g=no
3517   CFLAGS="-g"
3518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531else
3532  CFLAGS=""
3533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main ()
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_compile "$LINENO"; then :
3545
3546else
3547  ac_c_werror_flag=$ac_save_c_werror_flag
3548	 CFLAGS="-g"
3549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561  ac_cv_prog_cc_g=yes
3562fi
3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564fi
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571$as_echo "$ac_cv_prog_cc_g" >&6; }
3572if test "$ac_test_CFLAGS" = set; then
3573  CFLAGS=$ac_save_CFLAGS
3574elif test $ac_cv_prog_cc_g = yes; then
3575  if test "$GCC" = yes; then
3576    CFLAGS="-g -O2"
3577  else
3578    CFLAGS="-g"
3579  fi
3580else
3581  if test "$GCC" = yes; then
3582    CFLAGS="-O2"
3583  else
3584    CFLAGS=
3585  fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589if ${ac_cv_prog_cc_c89+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  ac_cv_prog_cc_c89=no
3593ac_save_CC=$CC
3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h.  */
3596#include <stdarg.h>
3597#include <stdio.h>
3598struct stat;
3599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3600struct buf { int x; };
3601FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602static char *e (p, i)
3603     char **p;
3604     int i;
3605{
3606  return p[i];
3607}
3608static char *f (char * (*g) (char **, int), char **p, ...)
3609{
3610  char *s;
3611  va_list v;
3612  va_start (v,p);
3613  s = g (p, va_arg (v,int));
3614  va_end (v);
3615  return s;
3616}
3617
3618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3619   function prototypes and stuff, but not '\xHH' hex character constants.
3620   These don't provoke an error unfortunately, instead are silently treated
3621   as 'x'.  The following induces an error, until -std is added to get
3622   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3623   array size at least.  It's necessary to write '\x00'==0 to get something
3624   that's true only with -std.  */
3625int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626
3627/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628   inside strings and character constants.  */
3629#define FOO(x) 'x'
3630int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3631
3632int test (int i, double x);
3633struct s1 {int (*f) (int a);};
3634struct s2 {int (*f) (double a);};
3635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3636int argc;
3637char **argv;
3638int
3639main ()
3640{
3641return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648do
3649  CC="$ac_save_CC $ac_arg"
3650  if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_cv_prog_cc_c89=$ac_arg
3652fi
3653rm -f core conftest.err conftest.$ac_objext
3654  test "x$ac_cv_prog_cc_c89" != "xno" && break
3655done
3656rm -f conftest.$ac_ext
3657CC=$ac_save_CC
3658
3659fi
3660# AC_CACHE_VAL
3661case "x$ac_cv_prog_cc_c89" in
3662  x)
3663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664$as_echo "none needed" >&6; } ;;
3665  xno)
3666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3667$as_echo "unsupported" >&6; } ;;
3668  *)
3669    CC="$CC $ac_cv_prog_cc_c89"
3670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3671$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3672esac
3673if test "x$ac_cv_prog_cc_c89" != xno; then :
3674
3675fi
3676
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3689$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3690if ${am_cv_prog_cc_c_o+:} false; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695
3696int
3697main ()
3698{
3699
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704  # Make sure it works both with $CC and with simple cc.
3705  # Following AC_PROG_CC_C_O, we do the test twice because some
3706  # compilers refuse to overwrite an existing .o file with -o,
3707  # though they will create one.
3708  am_cv_prog_cc_c_o=yes
3709  for am_i in 1 2; do
3710    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3711   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } \
3715         && test -f conftest2.$ac_objext; then
3716      : OK
3717    else
3718      am_cv_prog_cc_c_o=no
3719      break
3720    fi
3721  done
3722  rm -f core conftest*
3723  unset am_i
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3726$as_echo "$am_cv_prog_cc_c_o" >&6; }
3727if test "$am_cv_prog_cc_c_o" != yes; then
3728   # Losing compiler, so override with the script.
3729   # FIXME: It is wrong to rewrite CC.
3730   # But if we don't then we get into trouble of one sort or another.
3731   # A longer-term fix would be to have automake use am__CC in this case,
3732   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3733   CC="$am_aux_dir/compile $CC"
3734fi
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741DEPDIR="${am__leading_dot}deps"
3742
3743ac_config_commands="$ac_config_commands depfiles"
3744
3745
3746am_make=${MAKE-make}
3747cat > confinc << 'END'
3748am__doit:
3749	@echo this is the am__doit target
3750.PHONY: am__doit
3751END
3752# If we don't find an include directive, just comment out the code.
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3754$as_echo_n "checking for style of include used by $am_make... " >&6; }
3755am__include="#"
3756am__quote=
3757_am_result=none
3758# First try GNU make style include.
3759echo "include confinc" > confmf
3760# Ignore all kinds of additional output from 'make'.
3761case `$am_make -s -f confmf 2> /dev/null` in #(
3762*the\ am__doit\ target*)
3763  am__include=include
3764  am__quote=
3765  _am_result=GNU
3766  ;;
3767esac
3768# Now try BSD make style include.
3769if test "$am__include" = "#"; then
3770   echo '.include "confinc"' > confmf
3771   case `$am_make -s -f confmf 2> /dev/null` in #(
3772   *the\ am__doit\ target*)
3773     am__include=.include
3774     am__quote="\""
3775     _am_result=BSD
3776     ;;
3777   esac
3778fi
3779
3780
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3782$as_echo "$_am_result" >&6; }
3783rm -f confinc confmf
3784
3785# Check whether --enable-dependency-tracking was given.
3786if test "${enable_dependency_tracking+set}" = set; then :
3787  enableval=$enable_dependency_tracking;
3788fi
3789
3790if test "x$enable_dependency_tracking" != xno; then
3791  am_depcomp="$ac_aux_dir/depcomp"
3792  AMDEPBACKSLASH='\'
3793  am__nodep='_no'
3794fi
3795 if test "x$enable_dependency_tracking" != xno; then
3796  AMDEP_TRUE=
3797  AMDEP_FALSE='#'
3798else
3799  AMDEP_TRUE='#'
3800  AMDEP_FALSE=
3801fi
3802
3803
3804
3805depcc="$CC"   am_compiler_list=
3806
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3808$as_echo_n "checking dependency style of $depcc... " >&6; }
3809if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3813  # We make a subdir and do the tests there.  Otherwise we can end up
3814  # making bogus files that we don't know about and never remove.  For
3815  # instance it was reported that on HP-UX the gcc test will end up
3816  # making a dummy file named 'D' -- because '-MD' means "put the output
3817  # in D".
3818  rm -rf conftest.dir
3819  mkdir conftest.dir
3820  # Copy depcomp to subdir because otherwise we won't find it if we're
3821  # using a relative directory.
3822  cp "$am_depcomp" conftest.dir
3823  cd conftest.dir
3824  # We will build objects and dependencies in a subdirectory because
3825  # it helps to detect inapplicable dependency modes.  For instance
3826  # both Tru64's cc and ICC support -MD to output dependencies as a
3827  # side effect of compilation, but ICC will put the dependencies in
3828  # the current directory while Tru64 will put them in the object
3829  # directory.
3830  mkdir sub
3831
3832  am_cv_CC_dependencies_compiler_type=none
3833  if test "$am_compiler_list" = ""; then
3834     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835  fi
3836  am__universal=false
3837  case " $depcc " in #(
3838     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3839     esac
3840
3841  for depmode in $am_compiler_list; do
3842    # Setup a source with many dependencies, because some compilers
3843    # like to wrap large dependency lists on column 80 (with \), and
3844    # we should not choose a depcomp mode which is confused by this.
3845    #
3846    # We need to recreate these files for each test, as the compiler may
3847    # overwrite some of them when testing with obscure command lines.
3848    # This happens at least with the AIX C compiler.
3849    : > sub/conftest.c
3850    for i in 1 2 3 4 5 6; do
3851      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3852      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3853      # Solaris 10 /bin/sh.
3854      echo '/* dummy */' > sub/conftst$i.h
3855    done
3856    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857
3858    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3859    # mode.  It turns out that the SunPro C++ compiler does not properly
3860    # handle '-M -o', and we need to detect this.  Also, some Intel
3861    # versions had trouble with output in subdirs.
3862    am__obj=sub/conftest.${OBJEXT-o}
3863    am__minus_obj="-o $am__obj"
3864    case $depmode in
3865    gcc)
3866      # This depmode causes a compiler race in universal mode.
3867      test "$am__universal" = false || continue
3868      ;;
3869    nosideeffect)
3870      # After this tag, mechanisms are not by side-effect, so they'll
3871      # only be used when explicitly requested.
3872      if test "x$enable_dependency_tracking" = xyes; then
3873	continue
3874      else
3875	break
3876      fi
3877      ;;
3878    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3879      # This compiler won't grok '-c -o', but also, the minuso test has
3880      # not run yet.  These depmodes are late enough in the game, and
3881      # so weak that their functioning should not be impacted.
3882      am__obj=conftest.${OBJEXT-o}
3883      am__minus_obj=
3884      ;;
3885    none) break ;;
3886    esac
3887    if depmode=$depmode \
3888       source=sub/conftest.c object=$am__obj \
3889       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3890       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3891         >/dev/null 2>conftest.err &&
3892       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3893       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3894       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3895       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3896      # icc doesn't choke on unknown options, it will just issue warnings
3897      # or remarks (even with -Werror).  So we grep stderr for any message
3898      # that says an option was ignored or not supported.
3899      # When given -MP, icc 7.0 and 7.1 complain thusly:
3900      #   icc: Command line warning: ignoring option '-M'; no argument required
3901      # The diagnosis changed in icc 8.0:
3902      #   icc: Command line remark: option '-MP' not supported
3903      if (grep 'ignoring option' conftest.err ||
3904          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3905        am_cv_CC_dependencies_compiler_type=$depmode
3906        break
3907      fi
3908    fi
3909  done
3910
3911  cd ..
3912  rm -rf conftest.dir
3913else
3914  am_cv_CC_dependencies_compiler_type=none
3915fi
3916
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3919$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3920CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3921
3922 if
3923  test "x$enable_dependency_tracking" != xno \
3924  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925  am__fastdepCC_TRUE=
3926  am__fastdepCC_FALSE='#'
3927else
3928  am__fastdepCC_TRUE='#'
3929  am__fastdepCC_FALSE=
3930fi
3931
3932
3933   case $ac_cv_prog_cc_stdc in #(
3934  no) :
3935    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3936  *) :
3937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3938$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3939if ${ac_cv_prog_cc_c99+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942  ac_cv_prog_cc_c99=no
3943ac_save_CC=$CC
3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h.  */
3946#include <stdarg.h>
3947#include <stdbool.h>
3948#include <stdlib.h>
3949#include <wchar.h>
3950#include <stdio.h>
3951
3952// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3953#define debug(...) fprintf (stderr, __VA_ARGS__)
3954#define showlist(...) puts (#__VA_ARGS__)
3955#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3956static void
3957test_varargs_macros (void)
3958{
3959  int x = 1234;
3960  int y = 5678;
3961  debug ("Flag");
3962  debug ("X = %d\n", x);
3963  showlist (The first, second, and third items.);
3964  report (x>y, "x is %d but y is %d", x, y);
3965}
3966
3967// Check long long types.
3968#define BIG64 18446744073709551615ull
3969#define BIG32 4294967295ul
3970#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3971#if !BIG_OK
3972  your preprocessor is broken;
3973#endif
3974#if BIG_OK
3975#else
3976  your preprocessor is broken;
3977#endif
3978static long long int bignum = -9223372036854775807LL;
3979static unsigned long long int ubignum = BIG64;
3980
3981struct incomplete_array
3982{
3983  int datasize;
3984  double data[];
3985};
3986
3987struct named_init {
3988  int number;
3989  const wchar_t *name;
3990  double average;
3991};
3992
3993typedef const char *ccp;
3994
3995static inline int
3996test_restrict (ccp restrict text)
3997{
3998  // See if C++-style comments work.
3999  // Iterate through items via the restricted pointer.
4000  // Also check for declarations in for loops.
4001  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4002    continue;
4003  return 0;
4004}
4005
4006// Check varargs and va_copy.
4007static void
4008test_varargs (const char *format, ...)
4009{
4010  va_list args;
4011  va_start (args, format);
4012  va_list args_copy;
4013  va_copy (args_copy, args);
4014
4015  const char *str;
4016  int number;
4017  float fnumber;
4018
4019  while (*format)
4020    {
4021      switch (*format++)
4022	{
4023	case 's': // string
4024	  str = va_arg (args_copy, const char *);
4025	  break;
4026	case 'd': // int
4027	  number = va_arg (args_copy, int);
4028	  break;
4029	case 'f': // float
4030	  fnumber = va_arg (args_copy, double);
4031	  break;
4032	default:
4033	  break;
4034	}
4035    }
4036  va_end (args_copy);
4037  va_end (args);
4038}
4039
4040int
4041main ()
4042{
4043
4044  // Check bool.
4045  _Bool success = false;
4046
4047  // Check restrict.
4048  if (test_restrict ("String literal") == 0)
4049    success = true;
4050  char *restrict newvar = "Another string";
4051
4052  // Check varargs.
4053  test_varargs ("s, d' f .", "string", 65, 34.234);
4054  test_varargs_macros ();
4055
4056  // Check flexible array members.
4057  struct incomplete_array *ia =
4058    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4059  ia->datasize = 10;
4060  for (int i = 0; i < ia->datasize; ++i)
4061    ia->data[i] = i * 1.234;
4062
4063  // Check named initializers.
4064  struct named_init ni = {
4065    .number = 34,
4066    .name = L"Test wide string",
4067    .average = 543.34343,
4068  };
4069
4070  ni.number = 58;
4071
4072  int dynamic_array[ni.number];
4073  dynamic_array[ni.number - 1] = 543;
4074
4075  // work around unused variable warnings
4076  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4077	  || dynamic_array[ni.number - 1] != 543);
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4084do
4085  CC="$ac_save_CC $ac_arg"
4086  if ac_fn_c_try_compile "$LINENO"; then :
4087  ac_cv_prog_cc_c99=$ac_arg
4088fi
4089rm -f core conftest.err conftest.$ac_objext
4090  test "x$ac_cv_prog_cc_c99" != "xno" && break
4091done
4092rm -f conftest.$ac_ext
4093CC=$ac_save_CC
4094
4095fi
4096# AC_CACHE_VAL
4097case "x$ac_cv_prog_cc_c99" in
4098  x)
4099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4100$as_echo "none needed" >&6; } ;;
4101  xno)
4102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103$as_echo "unsupported" >&6; } ;;
4104  *)
4105    CC="$CC $ac_cv_prog_cc_c99"
4106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4107$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4108esac
4109if test "x$ac_cv_prog_cc_c99" != xno; then :
4110  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114if ${ac_cv_prog_cc_c89+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  ac_cv_prog_cc_c89=no
4118ac_save_CC=$CC
4119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#include <stdarg.h>
4122#include <stdio.h>
4123struct stat;
4124/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4125struct buf { int x; };
4126FILE * (*rcsopen) (struct buf *, struct stat *, int);
4127static char *e (p, i)
4128     char **p;
4129     int i;
4130{
4131  return p[i];
4132}
4133static char *f (char * (*g) (char **, int), char **p, ...)
4134{
4135  char *s;
4136  va_list v;
4137  va_start (v,p);
4138  s = g (p, va_arg (v,int));
4139  va_end (v);
4140  return s;
4141}
4142
4143/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4144   function prototypes and stuff, but not '\xHH' hex character constants.
4145   These don't provoke an error unfortunately, instead are silently treated
4146   as 'x'.  The following induces an error, until -std is added to get
4147   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4148   array size at least.  It's necessary to write '\x00'==0 to get something
4149   that's true only with -std.  */
4150int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4151
4152/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4153   inside strings and character constants.  */
4154#define FOO(x) 'x'
4155int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4156
4157int test (int i, double x);
4158struct s1 {int (*f) (int a);};
4159struct s2 {int (*f) (double a);};
4160int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161int argc;
4162char **argv;
4163int
4164main ()
4165{
4166return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4172	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4173do
4174  CC="$ac_save_CC $ac_arg"
4175  if ac_fn_c_try_compile "$LINENO"; then :
4176  ac_cv_prog_cc_c89=$ac_arg
4177fi
4178rm -f core conftest.err conftest.$ac_objext
4179  test "x$ac_cv_prog_cc_c89" != "xno" && break
4180done
4181rm -f conftest.$ac_ext
4182CC=$ac_save_CC
4183
4184fi
4185# AC_CACHE_VAL
4186case "x$ac_cv_prog_cc_c89" in
4187  x)
4188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4189$as_echo "none needed" >&6; } ;;
4190  xno)
4191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4192$as_echo "unsupported" >&6; } ;;
4193  *)
4194    CC="$CC $ac_cv_prog_cc_c89"
4195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4196$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4197esac
4198if test "x$ac_cv_prog_cc_c89" != xno; then :
4199  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4200else
4201  ac_cv_prog_cc_stdc=no
4202fi
4203
4204fi
4205 ;;
4206esac
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4208$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4209  if ${ac_cv_prog_cc_stdc+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211fi
4212
4213  case $ac_cv_prog_cc_stdc in #(
4214  no) :
4215    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4216$as_echo "unsupported" >&6; } ;; #(
4217  '') :
4218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219$as_echo "none needed" >&6; } ;; #(
4220  *) :
4221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4222$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4223esac
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4231$as_echo_n "checking how to run the C preprocessor... " >&6; }
4232# On Suns, sometimes $CPP names a directory.
4233if test -n "$CPP" && test -d "$CPP"; then
4234  CPP=
4235fi
4236if test -z "$CPP"; then
4237  if ${ac_cv_prog_CPP+:} false; then :
4238  $as_echo_n "(cached) " >&6
4239else
4240      # Double quotes because CPP needs to be expanded
4241    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4242    do
4243      ac_preproc_ok=false
4244for ac_c_preproc_warn_flag in '' yes
4245do
4246  # Use a header file that comes with gcc, so configuring glibc
4247  # with a fresh cross-compiler works.
4248  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249  # <limits.h> exists even on freestanding compilers.
4250  # On the NeXT, cc -E runs the code through the compiler's parser,
4251  # not just through cpp. "Syntax error" is here to catch this case.
4252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254#ifdef __STDC__
4255# include <limits.h>
4256#else
4257# include <assert.h>
4258#endif
4259		     Syntax error
4260_ACEOF
4261if ac_fn_c_try_cpp "$LINENO"; then :
4262
4263else
4264  # Broken: fails on valid input.
4265continue
4266fi
4267rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269  # OK, works on sane cases.  Now check whether nonexistent headers
4270  # can be detected and how.
4271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273#include <ac_nonexistent.h>
4274_ACEOF
4275if ac_fn_c_try_cpp "$LINENO"; then :
4276  # Broken: success on invalid input.
4277continue
4278else
4279  # Passes both tests.
4280ac_preproc_ok=:
4281break
4282fi
4283rm -f conftest.err conftest.i conftest.$ac_ext
4284
4285done
4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287rm -f conftest.i conftest.err conftest.$ac_ext
4288if $ac_preproc_ok; then :
4289  break
4290fi
4291
4292    done
4293    ac_cv_prog_CPP=$CPP
4294
4295fi
4296  CPP=$ac_cv_prog_CPP
4297else
4298  ac_cv_prog_CPP=$CPP
4299fi
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4301$as_echo "$CPP" >&6; }
4302ac_preproc_ok=false
4303for ac_c_preproc_warn_flag in '' yes
4304do
4305  # Use a header file that comes with gcc, so configuring glibc
4306  # with a fresh cross-compiler works.
4307  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308  # <limits.h> exists even on freestanding compilers.
4309  # On the NeXT, cc -E runs the code through the compiler's parser,
4310  # not just through cpp. "Syntax error" is here to catch this case.
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
4318		     Syntax error
4319_ACEOF
4320if ac_fn_c_try_cpp "$LINENO"; then :
4321
4322else
4323  # Broken: fails on valid input.
4324continue
4325fi
4326rm -f conftest.err conftest.i conftest.$ac_ext
4327
4328  # OK, works on sane cases.  Now check whether nonexistent headers
4329  # can be detected and how.
4330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332#include <ac_nonexistent.h>
4333_ACEOF
4334if ac_fn_c_try_cpp "$LINENO"; then :
4335  # Broken: success on invalid input.
4336continue
4337else
4338  # Passes both tests.
4339ac_preproc_ok=:
4340break
4341fi
4342rm -f conftest.err conftest.i conftest.$ac_ext
4343
4344done
4345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346rm -f conftest.i conftest.err conftest.$ac_ext
4347if $ac_preproc_ok; then :
4348
4349else
4350  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4353See \`config.log' for more details" "$LINENO" 5; }
4354fi
4355
4356ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362
4363
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4365$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4366if ${ac_cv_path_GREP+:} false; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  if test -z "$GREP"; then
4370  ac_path_GREP_found=false
4371  # Loop through the user's path and test for each of PROGNAME-LIST
4372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374do
4375  IFS=$as_save_IFS
4376  test -z "$as_dir" && as_dir=.
4377    for ac_prog in grep ggrep; do
4378    for ac_exec_ext in '' $ac_executable_extensions; do
4379      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4380      as_fn_executable_p "$ac_path_GREP" || continue
4381# Check for GNU ac_path_GREP and select it if it is found.
4382  # Check for GNU $ac_path_GREP
4383case `"$ac_path_GREP" --version 2>&1` in
4384*GNU*)
4385  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4386*)
4387  ac_count=0
4388  $as_echo_n 0123456789 >"conftest.in"
4389  while :
4390  do
4391    cat "conftest.in" "conftest.in" >"conftest.tmp"
4392    mv "conftest.tmp" "conftest.in"
4393    cp "conftest.in" "conftest.nl"
4394    $as_echo 'GREP' >> "conftest.nl"
4395    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397    as_fn_arith $ac_count + 1 && ac_count=$as_val
4398    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4399      # Best one so far, save it but keep looking for a better one
4400      ac_cv_path_GREP="$ac_path_GREP"
4401      ac_path_GREP_max=$ac_count
4402    fi
4403    # 10*(2^10) chars as input seems more than enough
4404    test $ac_count -gt 10 && break
4405  done
4406  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407esac
4408
4409      $ac_path_GREP_found && break 3
4410    done
4411  done
4412  done
4413IFS=$as_save_IFS
4414  if test -z "$ac_cv_path_GREP"; then
4415    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4416  fi
4417else
4418  ac_cv_path_GREP=$GREP
4419fi
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4423$as_echo "$ac_cv_path_GREP" >&6; }
4424 GREP="$ac_cv_path_GREP"
4425
4426
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4428$as_echo_n "checking for egrep... " >&6; }
4429if ${ac_cv_path_EGREP+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4433   then ac_cv_path_EGREP="$GREP -E"
4434   else
4435     if test -z "$EGREP"; then
4436  ac_path_EGREP_found=false
4437  # Loop through the user's path and test for each of PROGNAME-LIST
4438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4440do
4441  IFS=$as_save_IFS
4442  test -z "$as_dir" && as_dir=.
4443    for ac_prog in egrep; do
4444    for ac_exec_ext in '' $ac_executable_extensions; do
4445      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4446      as_fn_executable_p "$ac_path_EGREP" || continue
4447# Check for GNU ac_path_EGREP and select it if it is found.
4448  # Check for GNU $ac_path_EGREP
4449case `"$ac_path_EGREP" --version 2>&1` in
4450*GNU*)
4451  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4452*)
4453  ac_count=0
4454  $as_echo_n 0123456789 >"conftest.in"
4455  while :
4456  do
4457    cat "conftest.in" "conftest.in" >"conftest.tmp"
4458    mv "conftest.tmp" "conftest.in"
4459    cp "conftest.in" "conftest.nl"
4460    $as_echo 'EGREP' >> "conftest.nl"
4461    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463    as_fn_arith $ac_count + 1 && ac_count=$as_val
4464    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4465      # Best one so far, save it but keep looking for a better one
4466      ac_cv_path_EGREP="$ac_path_EGREP"
4467      ac_path_EGREP_max=$ac_count
4468    fi
4469    # 10*(2^10) chars as input seems more than enough
4470    test $ac_count -gt 10 && break
4471  done
4472  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473esac
4474
4475      $ac_path_EGREP_found && break 3
4476    done
4477  done
4478  done
4479IFS=$as_save_IFS
4480  if test -z "$ac_cv_path_EGREP"; then
4481    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4482  fi
4483else
4484  ac_cv_path_EGREP=$EGREP
4485fi
4486
4487   fi
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4490$as_echo "$ac_cv_path_EGREP" >&6; }
4491 EGREP="$ac_cv_path_EGREP"
4492
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4495$as_echo_n "checking for ANSI C header files... " >&6; }
4496if ${ac_cv_header_stdc+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501#include <stdlib.h>
4502#include <stdarg.h>
4503#include <string.h>
4504#include <float.h>
4505
4506int
4507main ()
4508{
4509
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515  ac_cv_header_stdc=yes
4516else
4517  ac_cv_header_stdc=no
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520
4521if test $ac_cv_header_stdc = yes; then
4522  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525#include <string.h>
4526
4527_ACEOF
4528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4529  $EGREP "memchr" >/dev/null 2>&1; then :
4530
4531else
4532  ac_cv_header_stdc=no
4533fi
4534rm -f conftest*
4535
4536fi
4537
4538if test $ac_cv_header_stdc = yes; then
4539  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h.  */
4542#include <stdlib.h>
4543
4544_ACEOF
4545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546  $EGREP "free" >/dev/null 2>&1; then :
4547
4548else
4549  ac_cv_header_stdc=no
4550fi
4551rm -f conftest*
4552
4553fi
4554
4555if test $ac_cv_header_stdc = yes; then
4556  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4557  if test "$cross_compiling" = yes; then :
4558  :
4559else
4560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h.  */
4562#include <ctype.h>
4563#include <stdlib.h>
4564#if ((' ' & 0x0FF) == 0x020)
4565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4567#else
4568# define ISLOWER(c) \
4569		   (('a' <= (c) && (c) <= 'i') \
4570		     || ('j' <= (c) && (c) <= 'r') \
4571		     || ('s' <= (c) && (c) <= 'z'))
4572# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4573#endif
4574
4575#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4576int
4577main ()
4578{
4579  int i;
4580  for (i = 0; i < 256; i++)
4581    if (XOR (islower (i), ISLOWER (i))
4582	|| toupper (i) != TOUPPER (i))
4583      return 2;
4584  return 0;
4585}
4586_ACEOF
4587if ac_fn_c_try_run "$LINENO"; then :
4588
4589else
4590  ac_cv_header_stdc=no
4591fi
4592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4593  conftest.$ac_objext conftest.beam conftest.$ac_ext
4594fi
4595
4596fi
4597fi
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4599$as_echo "$ac_cv_header_stdc" >&6; }
4600if test $ac_cv_header_stdc = yes; then
4601
4602$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4603
4604fi
4605
4606# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4607for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4608		  inttypes.h stdint.h unistd.h
4609do :
4610  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4611ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4612"
4613if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4614  cat >>confdefs.h <<_ACEOF
4615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616_ACEOF
4617
4618fi
4619
4620done
4621
4622
4623
4624  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4625if test "x$ac_cv_header_minix_config_h" = xyes; then :
4626  MINIX=yes
4627else
4628  MINIX=
4629fi
4630
4631
4632  if test "$MINIX" = yes; then
4633
4634$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4635
4636
4637$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4638
4639
4640$as_echo "#define _MINIX 1" >>confdefs.h
4641
4642  fi
4643
4644
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4646$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4647if ${ac_cv_safe_to_define___extensions__+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652
4653#         define __EXTENSIONS__ 1
4654          $ac_includes_default
4655int
4656main ()
4657{
4658
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
4664  ac_cv_safe_to_define___extensions__=yes
4665else
4666  ac_cv_safe_to_define___extensions__=no
4667fi
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4671$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4672  test $ac_cv_safe_to_define___extensions__ = yes &&
4673    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4674
4675  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4676
4677  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4678
4679  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4680
4681  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4682
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4686$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4687if ${ac_cv_c_const+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693int
4694main ()
4695{
4696
4697#ifndef __cplusplus
4698  /* Ultrix mips cc rejects this sort of thing.  */
4699  typedef int charset[2];
4700  const charset cs = { 0, 0 };
4701  /* SunOS 4.1.1 cc rejects this.  */
4702  char const *const *pcpcc;
4703  char **ppc;
4704  /* NEC SVR4.0.2 mips cc rejects this.  */
4705  struct point {int x, y;};
4706  static struct point const zero = {0,0};
4707  /* AIX XL C 1.02.0.0 rejects this.
4708     It does not let you subtract one const X* pointer from another in
4709     an arm of an if-expression whose if-part is not a constant
4710     expression */
4711  const char *g = "string";
4712  pcpcc = &g + (g ? g-g : 0);
4713  /* HPUX 7.0 cc rejects these. */
4714  ++pcpcc;
4715  ppc = (char**) pcpcc;
4716  pcpcc = (char const *const *) ppc;
4717  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4718    char tx;
4719    char *t = &tx;
4720    char const *s = 0 ? (char *) 0 : (char const *) 0;
4721
4722    *t++ = 0;
4723    if (s) return 0;
4724  }
4725  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4726    int x[] = {25, 17};
4727    const int *foo = &x[0];
4728    ++foo;
4729  }
4730  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4731    typedef const int *iptr;
4732    iptr p = 0;
4733    ++p;
4734  }
4735  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4736       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4737    struct s { int j; const int *ap[3]; } bx;
4738    struct s *b = &bx; b->j = 5;
4739  }
4740  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4741    const int foo = 10;
4742    if (!foo) return 0;
4743  }
4744  return !cs[0] && !zero.x;
4745#endif
4746
4747  ;
4748  return 0;
4749}
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752  ac_cv_c_const=yes
4753else
4754  ac_cv_c_const=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4759$as_echo "$ac_cv_c_const" >&6; }
4760if test $ac_cv_c_const = no; then
4761
4762$as_echo "#define const /**/" >>confdefs.h
4763
4764fi
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4767$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4768if ${ac_cv_c_restrict+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  ac_cv_c_restrict=no
4772   # The order here caters to the fact that C++ does not require restrict.
4773   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776typedef int * int_ptr;
4777	int foo (int_ptr $ac_kw ip) {
4778	return ip[0];
4779       }
4780int
4781main ()
4782{
4783int s[1];
4784	int * $ac_kw t = s;
4785	t[0] = 0;
4786	return foo(t)
4787  ;
4788  return 0;
4789}
4790_ACEOF
4791if ac_fn_c_try_compile "$LINENO"; then :
4792  ac_cv_c_restrict=$ac_kw
4793fi
4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795     test "$ac_cv_c_restrict" != no && break
4796   done
4797
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4800$as_echo "$ac_cv_c_restrict" >&6; }
4801
4802 case $ac_cv_c_restrict in
4803   restrict) ;;
4804   no) $as_echo "#define restrict /**/" >>confdefs.h
4805 ;;
4806   *)  cat >>confdefs.h <<_ACEOF
4807#define restrict $ac_cv_c_restrict
4808_ACEOF
4809 ;;
4810 esac
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4813$as_echo_n "checking for working volatile... " >&6; }
4814if ${ac_cv_c_volatile+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823
4824volatile int x;
4825int * volatile y = (int *) 0;
4826return !x && !y;
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"; then :
4832  ac_cv_c_volatile=yes
4833else
4834  ac_cv_c_volatile=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4839$as_echo "$ac_cv_c_volatile" >&6; }
4840if test $ac_cv_c_volatile = no; then
4841
4842$as_echo "#define volatile /**/" >>confdefs.h
4843
4844fi
4845
4846
4847# libtool
4848
4849case `pwd` in
4850  *\ * | *\	*)
4851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4852$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4853esac
4854
4855
4856
4857macro_version='2.4.2'
4858macro_revision='1.3337'
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872ltmain="$ac_aux_dir/ltmain.sh"
4873
4874# Make sure we can run config.sub.
4875$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4876  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4879$as_echo_n "checking build system type... " >&6; }
4880if ${ac_cv_build+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  ac_build_alias=$build_alias
4884test "x$ac_build_alias" = x &&
4885  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4886test "x$ac_build_alias" = x &&
4887  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4888ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4889  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4890
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4893$as_echo "$ac_cv_build" >&6; }
4894case $ac_cv_build in
4895*-*-*) ;;
4896*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4897esac
4898build=$ac_cv_build
4899ac_save_IFS=$IFS; IFS='-'
4900set x $ac_cv_build
4901shift
4902build_cpu=$1
4903build_vendor=$2
4904shift; shift
4905# Remember, the first character of IFS is used to create $*,
4906# except with old shells:
4907build_os=$*
4908IFS=$ac_save_IFS
4909case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4913$as_echo_n "checking host system type... " >&6; }
4914if ${ac_cv_host+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if test "x$host_alias" = x; then
4918  ac_cv_host=$ac_cv_build
4919else
4920  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4921    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4922fi
4923
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4926$as_echo "$ac_cv_host" >&6; }
4927case $ac_cv_host in
4928*-*-*) ;;
4929*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4930esac
4931host=$ac_cv_host
4932ac_save_IFS=$IFS; IFS='-'
4933set x $ac_cv_host
4934shift
4935host_cpu=$1
4936host_vendor=$2
4937shift; shift
4938# Remember, the first character of IFS is used to create $*,
4939# except with old shells:
4940host_os=$*
4941IFS=$ac_save_IFS
4942case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4943
4944
4945# Backslashify metacharacters that are still active within
4946# double-quoted strings.
4947sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4948
4949# Same as above, but do not quote variable references.
4950double_quote_subst='s/\(["`\\]\)/\\\1/g'
4951
4952# Sed substitution to delay expansion of an escaped shell variable in a
4953# double_quote_subst'ed string.
4954delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955
4956# Sed substitution to delay expansion of an escaped single quote.
4957delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4958
4959# Sed substitution to avoid accidental globbing in evaled expressions
4960no_glob_subst='s/\*/\\\*/g'
4961
4962ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4963ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4964ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4965
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4967$as_echo_n "checking how to print strings... " >&6; }
4968# Test print first, because it will be a builtin if present.
4969if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4970   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4971  ECHO='print -r --'
4972elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4973  ECHO='printf %s\n'
4974else
4975  # Use this function as a fallback that always works.
4976  func_fallback_echo ()
4977  {
4978    eval 'cat <<_LTECHO_EOF
4979$1
4980_LTECHO_EOF'
4981  }
4982  ECHO='func_fallback_echo'
4983fi
4984
4985# func_echo_all arg...
4986# Invoke $ECHO with all args, space-separated.
4987func_echo_all ()
4988{
4989    $ECHO ""
4990}
4991
4992case "$ECHO" in
4993  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4994$as_echo "printf" >&6; } ;;
4995  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4996$as_echo "print -r" >&6; } ;;
4997  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4998$as_echo "cat" >&6; } ;;
4999esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5015$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5016if ${ac_cv_path_SED+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5020     for ac_i in 1 2 3 4 5 6 7; do
5021       ac_script="$ac_script$as_nl$ac_script"
5022     done
5023     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5024     { ac_script=; unset ac_script;}
5025     if test -z "$SED"; then
5026  ac_path_SED_found=false
5027  # Loop through the user's path and test for each of PROGNAME-LIST
5028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033    for ac_prog in sed gsed; do
5034    for ac_exec_ext in '' $ac_executable_extensions; do
5035      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5036      as_fn_executable_p "$ac_path_SED" || continue
5037# Check for GNU ac_path_SED and select it if it is found.
5038  # Check for GNU $ac_path_SED
5039case `"$ac_path_SED" --version 2>&1` in
5040*GNU*)
5041  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5042*)
5043  ac_count=0
5044  $as_echo_n 0123456789 >"conftest.in"
5045  while :
5046  do
5047    cat "conftest.in" "conftest.in" >"conftest.tmp"
5048    mv "conftest.tmp" "conftest.in"
5049    cp "conftest.in" "conftest.nl"
5050    $as_echo '' >> "conftest.nl"
5051    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053    as_fn_arith $ac_count + 1 && ac_count=$as_val
5054    if test $ac_count -gt ${ac_path_SED_max-0}; then
5055      # Best one so far, save it but keep looking for a better one
5056      ac_cv_path_SED="$ac_path_SED"
5057      ac_path_SED_max=$ac_count
5058    fi
5059    # 10*(2^10) chars as input seems more than enough
5060    test $ac_count -gt 10 && break
5061  done
5062  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063esac
5064
5065      $ac_path_SED_found && break 3
5066    done
5067  done
5068  done
5069IFS=$as_save_IFS
5070  if test -z "$ac_cv_path_SED"; then
5071    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5072  fi
5073else
5074  ac_cv_path_SED=$SED
5075fi
5076
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5079$as_echo "$ac_cv_path_SED" >&6; }
5080 SED="$ac_cv_path_SED"
5081  rm -f conftest.sed
5082
5083test -z "$SED" && SED=sed
5084Xsed="$SED -e 1s/^X//"
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5097$as_echo_n "checking for fgrep... " >&6; }
5098if ${ac_cv_path_FGREP+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5102   then ac_cv_path_FGREP="$GREP -F"
5103   else
5104     if test -z "$FGREP"; then
5105  ac_path_FGREP_found=false
5106  # Loop through the user's path and test for each of PROGNAME-LIST
5107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_prog in fgrep; do
5113    for ac_exec_ext in '' $ac_executable_extensions; do
5114      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5115      as_fn_executable_p "$ac_path_FGREP" || continue
5116# Check for GNU ac_path_FGREP and select it if it is found.
5117  # Check for GNU $ac_path_FGREP
5118case `"$ac_path_FGREP" --version 2>&1` in
5119*GNU*)
5120  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5121*)
5122  ac_count=0
5123  $as_echo_n 0123456789 >"conftest.in"
5124  while :
5125  do
5126    cat "conftest.in" "conftest.in" >"conftest.tmp"
5127    mv "conftest.tmp" "conftest.in"
5128    cp "conftest.in" "conftest.nl"
5129    $as_echo 'FGREP' >> "conftest.nl"
5130    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132    as_fn_arith $ac_count + 1 && ac_count=$as_val
5133    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5134      # Best one so far, save it but keep looking for a better one
5135      ac_cv_path_FGREP="$ac_path_FGREP"
5136      ac_path_FGREP_max=$ac_count
5137    fi
5138    # 10*(2^10) chars as input seems more than enough
5139    test $ac_count -gt 10 && break
5140  done
5141  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142esac
5143
5144      $ac_path_FGREP_found && break 3
5145    done
5146  done
5147  done
5148IFS=$as_save_IFS
5149  if test -z "$ac_cv_path_FGREP"; then
5150    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151  fi
5152else
5153  ac_cv_path_FGREP=$FGREP
5154fi
5155
5156   fi
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5159$as_echo "$ac_cv_path_FGREP" >&6; }
5160 FGREP="$ac_cv_path_FGREP"
5161
5162
5163test -z "$GREP" && GREP=grep
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183# Check whether --with-gnu-ld was given.
5184if test "${with_gnu_ld+set}" = set; then :
5185  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5186else
5187  with_gnu_ld=no
5188fi
5189
5190ac_prog=ld
5191if test "$GCC" = yes; then
5192  # Check if gcc -print-prog-name=ld gives a path.
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5194$as_echo_n "checking for ld used by $CC... " >&6; }
5195  case $host in
5196  *-*-mingw*)
5197    # gcc leaves a trailing carriage return which upsets mingw
5198    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5199  *)
5200    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5201  esac
5202  case $ac_prog in
5203    # Accept absolute paths.
5204    [\\/]* | ?:[\\/]*)
5205      re_direlt='/[^/][^/]*/\.\./'
5206      # Canonicalize the pathname of ld
5207      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5208      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5209	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5210      done
5211      test -z "$LD" && LD="$ac_prog"
5212      ;;
5213  "")
5214    # If it fails, then pretend we aren't using GCC.
5215    ac_prog=ld
5216    ;;
5217  *)
5218    # If it is relative, then search for the first ld in PATH.
5219    with_gnu_ld=unknown
5220    ;;
5221  esac
5222elif test "$with_gnu_ld" = yes; then
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5224$as_echo_n "checking for GNU ld... " >&6; }
5225else
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5227$as_echo_n "checking for non-GNU ld... " >&6; }
5228fi
5229if ${lt_cv_path_LD+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  if test -z "$LD"; then
5233  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5234  for ac_dir in $PATH; do
5235    IFS="$lt_save_ifs"
5236    test -z "$ac_dir" && ac_dir=.
5237    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5238      lt_cv_path_LD="$ac_dir/$ac_prog"
5239      # Check to see if the program is GNU ld.  I'd rather use --version,
5240      # but apparently some variants of GNU ld only accept -v.
5241      # Break only if it was the GNU/non-GNU ld that we prefer.
5242      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5243      *GNU* | *'with BFD'*)
5244	test "$with_gnu_ld" != no && break
5245	;;
5246      *)
5247	test "$with_gnu_ld" != yes && break
5248	;;
5249      esac
5250    fi
5251  done
5252  IFS="$lt_save_ifs"
5253else
5254  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5255fi
5256fi
5257
5258LD="$lt_cv_path_LD"
5259if test -n "$LD"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5261$as_echo "$LD" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5268$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5269if ${lt_cv_prog_gnu_ld+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5273case `$LD -v 2>&1 </dev/null` in
5274*GNU* | *'with BFD'*)
5275  lt_cv_prog_gnu_ld=yes
5276  ;;
5277*)
5278  lt_cv_prog_gnu_ld=no
5279  ;;
5280esac
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5283$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5284with_gnu_ld=$lt_cv_prog_gnu_ld
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5295$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5296if ${lt_cv_path_NM+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$NM"; then
5300  # Let the user override the test.
5301  lt_cv_path_NM="$NM"
5302else
5303  lt_nm_to_check="${ac_tool_prefix}nm"
5304  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5305    lt_nm_to_check="$lt_nm_to_check nm"
5306  fi
5307  for lt_tmp_nm in $lt_nm_to_check; do
5308    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5309    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5310      IFS="$lt_save_ifs"
5311      test -z "$ac_dir" && ac_dir=.
5312      tmp_nm="$ac_dir/$lt_tmp_nm"
5313      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5314	# Check to see if the nm accepts a BSD-compat flag.
5315	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5316	#   nm: unknown option "B" ignored
5317	# Tru64's nm complains that /dev/null is an invalid object file
5318	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5319	*/dev/null* | *'Invalid file or object type'*)
5320	  lt_cv_path_NM="$tmp_nm -B"
5321	  break
5322	  ;;
5323	*)
5324	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5325	  */dev/null*)
5326	    lt_cv_path_NM="$tmp_nm -p"
5327	    break
5328	    ;;
5329	  *)
5330	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5331	    continue # so that we can try to find one that supports BSD flags
5332	    ;;
5333	  esac
5334	  ;;
5335	esac
5336      fi
5337    done
5338    IFS="$lt_save_ifs"
5339  done
5340  : ${lt_cv_path_NM=no}
5341fi
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5344$as_echo "$lt_cv_path_NM" >&6; }
5345if test "$lt_cv_path_NM" != "no"; then
5346  NM="$lt_cv_path_NM"
5347else
5348  # Didn't find any BSD compatible name lister, look for dumpbin.
5349  if test -n "$DUMPBIN"; then :
5350    # Let the user override the test.
5351  else
5352    if test -n "$ac_tool_prefix"; then
5353  for ac_prog in dumpbin "link -dump"
5354  do
5355    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_DUMPBIN+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$DUMPBIN"; then
5363  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382DUMPBIN=$ac_cv_prog_DUMPBIN
5383if test -n "$DUMPBIN"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5385$as_echo "$DUMPBIN" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392    test -n "$DUMPBIN" && break
5393  done
5394fi
5395if test -z "$DUMPBIN"; then
5396  ac_ct_DUMPBIN=$DUMPBIN
5397  for ac_prog in dumpbin "link -dump"
5398do
5399  # Extract the first word of "$ac_prog", so it can be a program name with args.
5400set dummy $ac_prog; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$ac_ct_DUMPBIN"; then
5407  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5427if test -n "$ac_ct_DUMPBIN"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5429$as_echo "$ac_ct_DUMPBIN" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436  test -n "$ac_ct_DUMPBIN" && break
5437done
5438
5439  if test "x$ac_ct_DUMPBIN" = x; then
5440    DUMPBIN=":"
5441  else
5442    case $cross_compiling:$ac_tool_warned in
5443yes:)
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446ac_tool_warned=yes ;;
5447esac
5448    DUMPBIN=$ac_ct_DUMPBIN
5449  fi
5450fi
5451
5452    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5453    *COFF*)
5454      DUMPBIN="$DUMPBIN -symbols"
5455      ;;
5456    *)
5457      DUMPBIN=:
5458      ;;
5459    esac
5460  fi
5461
5462  if test "$DUMPBIN" != ":"; then
5463    NM="$DUMPBIN"
5464  fi
5465fi
5466test -z "$NM" && NM=nm
5467
5468
5469
5470
5471
5472
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5474$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5475if ${lt_cv_nm_interface+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  lt_cv_nm_interface="BSD nm"
5479  echo "int some_variable = 0;" > conftest.$ac_ext
5480  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5481  (eval "$ac_compile" 2>conftest.err)
5482  cat conftest.err >&5
5483  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5484  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5485  cat conftest.err >&5
5486  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5487  cat conftest.out >&5
5488  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5489    lt_cv_nm_interface="MS dumpbin"
5490  fi
5491  rm -f conftest*
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5494$as_echo "$lt_cv_nm_interface" >&6; }
5495
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5497$as_echo_n "checking whether ln -s works... " >&6; }
5498LN_S=$as_ln_s
5499if test "$LN_S" = "ln -s"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501$as_echo "yes" >&6; }
5502else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5504$as_echo "no, using $LN_S" >&6; }
5505fi
5506
5507# find the maximum length of command line arguments
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5509$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5510if ${lt_cv_sys_max_cmd_len+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513    i=0
5514  teststring="ABCD"
5515
5516  case $build_os in
5517  msdosdjgpp*)
5518    # On DJGPP, this test can blow up pretty badly due to problems in libc
5519    # (any single argument exceeding 2000 bytes causes a buffer overrun
5520    # during glob expansion).  Even if it were fixed, the result of this
5521    # check would be larger than it should be.
5522    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5523    ;;
5524
5525  gnu*)
5526    # Under GNU Hurd, this test is not required because there is
5527    # no limit to the length of command line arguments.
5528    # Libtool will interpret -1 as no limit whatsoever
5529    lt_cv_sys_max_cmd_len=-1;
5530    ;;
5531
5532  cygwin* | mingw* | cegcc*)
5533    # On Win9x/ME, this test blows up -- it succeeds, but takes
5534    # about 5 minutes as the teststring grows exponentially.
5535    # Worse, since 9x/ME are not pre-emptively multitasking,
5536    # you end up with a "frozen" computer, even though with patience
5537    # the test eventually succeeds (with a max line length of 256k).
5538    # Instead, let's just punt: use the minimum linelength reported by
5539    # all of the supported platforms: 8192 (on NT/2K/XP).
5540    lt_cv_sys_max_cmd_len=8192;
5541    ;;
5542
5543  mint*)
5544    # On MiNT this can take a long time and run out of memory.
5545    lt_cv_sys_max_cmd_len=8192;
5546    ;;
5547
5548  amigaos*)
5549    # On AmigaOS with pdksh, this test takes hours, literally.
5550    # So we just punt and use a minimum line length of 8192.
5551    lt_cv_sys_max_cmd_len=8192;
5552    ;;
5553
5554  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5555    # This has been around since 386BSD, at least.  Likely further.
5556    if test -x /sbin/sysctl; then
5557      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5558    elif test -x /usr/sbin/sysctl; then
5559      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5560    else
5561      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5562    fi
5563    # And add a safety zone
5564    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5565    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5566    ;;
5567
5568  interix*)
5569    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5570    lt_cv_sys_max_cmd_len=196608
5571    ;;
5572
5573  os2*)
5574    # The test takes a long time on OS/2.
5575    lt_cv_sys_max_cmd_len=8192
5576    ;;
5577
5578  osf*)
5579    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5580    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5581    # nice to cause kernel panics so lets avoid the loop below.
5582    # First set a reasonable default.
5583    lt_cv_sys_max_cmd_len=16384
5584    #
5585    if test -x /sbin/sysconfig; then
5586      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5587        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5588      esac
5589    fi
5590    ;;
5591  sco3.2v5*)
5592    lt_cv_sys_max_cmd_len=102400
5593    ;;
5594  sysv5* | sco5v6* | sysv4.2uw2*)
5595    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5596    if test -n "$kargmax"; then
5597      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5598    else
5599      lt_cv_sys_max_cmd_len=32768
5600    fi
5601    ;;
5602  *)
5603    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5604    if test -n "$lt_cv_sys_max_cmd_len"; then
5605      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5606      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5607    else
5608      # Make teststring a little bigger before we do anything with it.
5609      # a 1K string should be a reasonable start.
5610      for i in 1 2 3 4 5 6 7 8 ; do
5611        teststring=$teststring$teststring
5612      done
5613      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5614      # If test is not a shell built-in, we'll probably end up computing a
5615      # maximum length that is only half of the actual maximum length, but
5616      # we can't tell.
5617      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5618	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5619	      test $i != 17 # 1/2 MB should be enough
5620      do
5621        i=`expr $i + 1`
5622        teststring=$teststring$teststring
5623      done
5624      # Only check the string length outside the loop.
5625      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5626      teststring=
5627      # Add a significant safety factor because C++ compilers can tack on
5628      # massive amounts of additional arguments before passing them to the
5629      # linker.  It appears as though 1/2 is a usable value.
5630      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5631    fi
5632    ;;
5633  esac
5634
5635fi
5636
5637if test -n $lt_cv_sys_max_cmd_len ; then
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5639$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5640else
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5642$as_echo "none" >&6; }
5643fi
5644max_cmd_len=$lt_cv_sys_max_cmd_len
5645
5646
5647
5648
5649
5650
5651: ${CP="cp -f"}
5652: ${MV="mv -f"}
5653: ${RM="rm -f"}
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5656$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5657# Try some XSI features
5658xsi_shell=no
5659( _lt_dummy="a/b/c"
5660  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5661      = c,a/b,b/c, \
5662    && eval 'test $(( 1 + 1 )) -eq 2 \
5663    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5664  && xsi_shell=yes
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5666$as_echo "$xsi_shell" >&6; }
5667
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5670$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5671lt_shell_append=no
5672( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5673    >/dev/null 2>&1 \
5674  && lt_shell_append=yes
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5676$as_echo "$lt_shell_append" >&6; }
5677
5678
5679if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5680  lt_unset=unset
5681else
5682  lt_unset=false
5683fi
5684
5685
5686
5687
5688
5689# test EBCDIC or ASCII
5690case `echo X|tr X '\101'` in
5691 A) # ASCII based system
5692    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5693  lt_SP2NL='tr \040 \012'
5694  lt_NL2SP='tr \015\012 \040\040'
5695  ;;
5696 *) # EBCDIC based system
5697  lt_SP2NL='tr \100 \n'
5698  lt_NL2SP='tr \r\n \100\100'
5699  ;;
5700esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5711$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5712if ${lt_cv_to_host_file_cmd+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  case $host in
5716  *-*-mingw* )
5717    case $build in
5718      *-*-mingw* ) # actually msys
5719        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5720        ;;
5721      *-*-cygwin* )
5722        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5723        ;;
5724      * ) # otherwise, assume *nix
5725        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5726        ;;
5727    esac
5728    ;;
5729  *-*-cygwin* )
5730    case $build in
5731      *-*-mingw* ) # actually msys
5732        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5733        ;;
5734      *-*-cygwin* )
5735        lt_cv_to_host_file_cmd=func_convert_file_noop
5736        ;;
5737      * ) # otherwise, assume *nix
5738        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5739        ;;
5740    esac
5741    ;;
5742  * ) # unhandled hosts (and "normal" native builds)
5743    lt_cv_to_host_file_cmd=func_convert_file_noop
5744    ;;
5745esac
5746
5747fi
5748
5749to_host_file_cmd=$lt_cv_to_host_file_cmd
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5751$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5752
5753
5754
5755
5756
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5758$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5759if ${lt_cv_to_tool_file_cmd+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  #assume ordinary cross tools, or native build.
5763lt_cv_to_tool_file_cmd=func_convert_file_noop
5764case $host in
5765  *-*-mingw* )
5766    case $build in
5767      *-*-mingw* ) # actually msys
5768        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5769        ;;
5770    esac
5771    ;;
5772esac
5773
5774fi
5775
5776to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5778$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5779
5780
5781
5782
5783
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5785$as_echo_n "checking for $LD option to reload object files... " >&6; }
5786if ${lt_cv_ld_reload_flag+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  lt_cv_ld_reload_flag='-r'
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5792$as_echo "$lt_cv_ld_reload_flag" >&6; }
5793reload_flag=$lt_cv_ld_reload_flag
5794case $reload_flag in
5795"" | " "*) ;;
5796*) reload_flag=" $reload_flag" ;;
5797esac
5798reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799case $host_os in
5800  cygwin* | mingw* | pw32* | cegcc*)
5801    if test "$GCC" != yes; then
5802      reload_cmds=false
5803    fi
5804    ;;
5805  darwin*)
5806    if test "$GCC" = yes; then
5807      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5808    else
5809      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810    fi
5811    ;;
5812esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}objdump; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if ${ac_cv_prog_OBJDUMP+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  if test -n "$OBJDUMP"; then
5831  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  test -z "$as_dir" && as_dir=.
5838    for ac_exec_ext in '' $ac_executable_extensions; do
5839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842    break 2
5843  fi
5844done
5845  done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850OBJDUMP=$ac_cv_prog_OBJDUMP
5851if test -n "$OBJDUMP"; then
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5853$as_echo "$OBJDUMP" >&6; }
5854else
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_OBJDUMP"; then
5862  ac_ct_OBJDUMP=$OBJDUMP
5863  # Extract the first word of "objdump", so it can be a program name with args.
5864set dummy objdump; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  if test -n "$ac_ct_OBJDUMP"; then
5871  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885  done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5891if test -n "$ac_ct_OBJDUMP"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5893$as_echo "$ac_ct_OBJDUMP" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899  if test "x$ac_ct_OBJDUMP" = x; then
5900    OBJDUMP="false"
5901  else
5902    case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908    OBJDUMP=$ac_ct_OBJDUMP
5909  fi
5910else
5911  OBJDUMP="$ac_cv_prog_OBJDUMP"
5912fi
5913
5914test -z "$OBJDUMP" && OBJDUMP=objdump
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5925$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5926if ${lt_cv_deplibs_check_method+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  lt_cv_file_magic_cmd='$MAGIC_CMD'
5930lt_cv_file_magic_test_file=
5931lt_cv_deplibs_check_method='unknown'
5932# Need to set the preceding variable on all platforms that support
5933# interlibrary dependencies.
5934# 'none' -- dependencies not supported.
5935# `unknown' -- same as none, but documents that we really don't know.
5936# 'pass_all' -- all dependencies passed with no checks.
5937# 'test_compile' -- check by making test program.
5938# 'file_magic [[regex]]' -- check by looking for files in library path
5939# which responds to the $file_magic_cmd with a given extended regex.
5940# If you have `file' or equivalent on your system and you're not sure
5941# whether `pass_all' will *always* work, you probably want this one.
5942
5943case $host_os in
5944aix[4-9]*)
5945  lt_cv_deplibs_check_method=pass_all
5946  ;;
5947
5948beos*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952bsdi[45]*)
5953  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5954  lt_cv_file_magic_cmd='/usr/bin/file -L'
5955  lt_cv_file_magic_test_file=/shlib/libc.so
5956  ;;
5957
5958cygwin*)
5959  # func_win32_libid is a shell function defined in ltmain.sh
5960  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961  lt_cv_file_magic_cmd='func_win32_libid'
5962  ;;
5963
5964mingw* | pw32*)
5965  # Base MSYS/MinGW do not provide the 'file' command needed by
5966  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5967  # unless we find 'file', for example because we are cross-compiling.
5968  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5969  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5970    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971    lt_cv_file_magic_cmd='func_win32_libid'
5972  else
5973    # Keep this pattern in sync with the one in func_win32_libid.
5974    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5975    lt_cv_file_magic_cmd='$OBJDUMP -f'
5976  fi
5977  ;;
5978
5979cegcc*)
5980  # use the weaker test based on 'objdump'. See mingw*.
5981  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5982  lt_cv_file_magic_cmd='$OBJDUMP -f'
5983  ;;
5984
5985darwin* | rhapsody*)
5986  lt_cv_deplibs_check_method=pass_all
5987  ;;
5988
5989freebsd* | dragonfly*)
5990  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5991    case $host_cpu in
5992    i*86 )
5993      # Not sure whether the presence of OpenBSD here was a mistake.
5994      # Let's accept both of them until this is cleared up.
5995      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5996      lt_cv_file_magic_cmd=/usr/bin/file
5997      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5998      ;;
5999    esac
6000  else
6001    lt_cv_deplibs_check_method=pass_all
6002  fi
6003  ;;
6004
6005gnu*)
6006  lt_cv_deplibs_check_method=pass_all
6007  ;;
6008
6009haiku*)
6010  lt_cv_deplibs_check_method=pass_all
6011  ;;
6012
6013hpux10.20* | hpux11*)
6014  lt_cv_file_magic_cmd=/usr/bin/file
6015  case $host_cpu in
6016  ia64*)
6017    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6018    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6019    ;;
6020  hppa*64*)
6021    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]'
6022    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6023    ;;
6024  *)
6025    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6026    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6027    ;;
6028  esac
6029  ;;
6030
6031interix[3-9]*)
6032  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6033  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6034  ;;
6035
6036irix5* | irix6* | nonstopux*)
6037  case $LD in
6038  *-32|*"-32 ") libmagic=32-bit;;
6039  *-n32|*"-n32 ") libmagic=N32;;
6040  *-64|*"-64 ") libmagic=64-bit;;
6041  *) libmagic=never-match;;
6042  esac
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045
6046# This must be glibc/ELF.
6047linux* | k*bsd*-gnu | kopensolaris*-gnu)
6048  lt_cv_deplibs_check_method=pass_all
6049  ;;
6050
6051netbsd*)
6052  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6053    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6054  else
6055    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6056  fi
6057  ;;
6058
6059newos6*)
6060  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6061  lt_cv_file_magic_cmd=/usr/bin/file
6062  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6063  ;;
6064
6065*nto* | *qnx*)
6066  lt_cv_deplibs_check_method=pass_all
6067  ;;
6068
6069openbsd*)
6070  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6072  else
6073    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6074  fi
6075  ;;
6076
6077osf3* | osf4* | osf5*)
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080
6081rdos*)
6082  lt_cv_deplibs_check_method=pass_all
6083  ;;
6084
6085solaris*)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088
6089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6090  lt_cv_deplibs_check_method=pass_all
6091  ;;
6092
6093sysv4 | sysv4.3*)
6094  case $host_vendor in
6095  motorola)
6096    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]'
6097    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6098    ;;
6099  ncr)
6100    lt_cv_deplibs_check_method=pass_all
6101    ;;
6102  sequent)
6103    lt_cv_file_magic_cmd='/bin/file'
6104    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6105    ;;
6106  sni)
6107    lt_cv_file_magic_cmd='/bin/file'
6108    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6109    lt_cv_file_magic_test_file=/lib/libc.so
6110    ;;
6111  siemens)
6112    lt_cv_deplibs_check_method=pass_all
6113    ;;
6114  pc)
6115    lt_cv_deplibs_check_method=pass_all
6116    ;;
6117  esac
6118  ;;
6119
6120tpf*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123esac
6124
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6127$as_echo "$lt_cv_deplibs_check_method" >&6; }
6128
6129file_magic_glob=
6130want_nocaseglob=no
6131if test "$build" = "$host"; then
6132  case $host_os in
6133  mingw* | pw32*)
6134    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6135      want_nocaseglob=yes
6136    else
6137      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6138    fi
6139    ;;
6140  esac
6141fi
6142
6143file_magic_cmd=$lt_cv_file_magic_cmd
6144deplibs_check_method=$lt_cv_deplibs_check_method
6145test -z "$deplibs_check_method" && deplibs_check_method=unknown
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168if test -n "$ac_tool_prefix"; then
6169  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if ${ac_cv_prog_DLLTOOL+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  if test -n "$DLLTOOL"; then
6177  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  test -z "$as_dir" && as_dir=.
6184    for ac_exec_ext in '' $ac_executable_extensions; do
6185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196DLLTOOL=$ac_cv_prog_DLLTOOL
6197if test -n "$DLLTOOL"; then
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6199$as_echo "$DLLTOOL" >&6; }
6200else
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203fi
6204
6205
6206fi
6207if test -z "$ac_cv_prog_DLLTOOL"; then
6208  ac_ct_DLLTOOL=$DLLTOOL
6209  # Extract the first word of "dlltool", so it can be a program name with args.
6210set dummy dlltool; ac_word=$2
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6214  $as_echo_n "(cached) " >&6
6215else
6216  if test -n "$ac_ct_DLLTOOL"; then
6217  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222  IFS=$as_save_IFS
6223  test -z "$as_dir" && as_dir=.
6224    for ac_exec_ext in '' $ac_executable_extensions; do
6225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228    break 2
6229  fi
6230done
6231  done
6232IFS=$as_save_IFS
6233
6234fi
6235fi
6236ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6237if test -n "$ac_ct_DLLTOOL"; then
6238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6239$as_echo "$ac_ct_DLLTOOL" >&6; }
6240else
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245  if test "x$ac_ct_DLLTOOL" = x; then
6246    DLLTOOL="false"
6247  else
6248    case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252ac_tool_warned=yes ;;
6253esac
6254    DLLTOOL=$ac_ct_DLLTOOL
6255  fi
6256else
6257  DLLTOOL="$ac_cv_prog_DLLTOOL"
6258fi
6259
6260test -z "$DLLTOOL" && DLLTOOL=dlltool
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6272$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6273if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276  lt_cv_sharedlib_from_linklib_cmd='unknown'
6277
6278case $host_os in
6279cygwin* | mingw* | pw32* | cegcc*)
6280  # two different shell functions defined in ltmain.sh
6281  # decide which to use based on capabilities of $DLLTOOL
6282  case `$DLLTOOL --help 2>&1` in
6283  *--identify-strict*)
6284    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6285    ;;
6286  *)
6287    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6288    ;;
6289  esac
6290  ;;
6291*)
6292  # fallback: assume linklib IS sharedlib
6293  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6294  ;;
6295esac
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6299$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6300sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6301test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6302
6303
6304
6305
6306
6307
6308
6309if test -n "$ac_tool_prefix"; then
6310  for ac_prog in ar
6311  do
6312    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315$as_echo_n "checking for $ac_word... " >&6; }
6316if ${ac_cv_prog_AR+:} false; then :
6317  $as_echo_n "(cached) " >&6
6318else
6319  if test -n "$AR"; then
6320  ac_cv_prog_AR="$AR" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325  IFS=$as_save_IFS
6326  test -z "$as_dir" && as_dir=.
6327    for ac_exec_ext in '' $ac_executable_extensions; do
6328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331    break 2
6332  fi
6333done
6334  done
6335IFS=$as_save_IFS
6336
6337fi
6338fi
6339AR=$ac_cv_prog_AR
6340if test -n "$AR"; then
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6342$as_echo "$AR" >&6; }
6343else
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345$as_echo "no" >&6; }
6346fi
6347
6348
6349    test -n "$AR" && break
6350  done
6351fi
6352if test -z "$AR"; then
6353  ac_ct_AR=$AR
6354  for ac_prog in ar
6355do
6356  # Extract the first word of "$ac_prog", so it can be a program name with args.
6357set dummy $ac_prog; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
6360if ${ac_cv_prog_ac_ct_AR+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -n "$ac_ct_AR"; then
6364  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369  IFS=$as_save_IFS
6370  test -z "$as_dir" && as_dir=.
6371    for ac_exec_ext in '' $ac_executable_extensions; do
6372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373    ac_cv_prog_ac_ct_AR="$ac_prog"
6374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375    break 2
6376  fi
6377done
6378  done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383ac_ct_AR=$ac_cv_prog_ac_ct_AR
6384if test -n "$ac_ct_AR"; then
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6386$as_echo "$ac_ct_AR" >&6; }
6387else
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393  test -n "$ac_ct_AR" && break
6394done
6395
6396  if test "x$ac_ct_AR" = x; then
6397    AR="false"
6398  else
6399    case $cross_compiling:$ac_tool_warned in
6400yes:)
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403ac_tool_warned=yes ;;
6404esac
6405    AR=$ac_ct_AR
6406  fi
6407fi
6408
6409: ${AR=ar}
6410: ${AR_FLAGS=cru}
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6423$as_echo_n "checking for archiver @FILE support... " >&6; }
6424if ${lt_cv_ar_at_file+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  lt_cv_ar_at_file=no
6428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430
6431int
6432main ()
6433{
6434
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"; then :
6440  echo conftest.$ac_objext > conftest.lst
6441      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6442      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6443  (eval $lt_ar_try) 2>&5
6444  ac_status=$?
6445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446  test $ac_status = 0; }
6447      if test "$ac_status" -eq 0; then
6448	# Ensure the archiver fails upon bogus file names.
6449	rm -f conftest.$ac_objext libconftest.a
6450	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6451  (eval $lt_ar_try) 2>&5
6452  ac_status=$?
6453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454  test $ac_status = 0; }
6455	if test "$ac_status" -ne 0; then
6456          lt_cv_ar_at_file=@
6457        fi
6458      fi
6459      rm -f conftest.* libconftest.a
6460
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6466$as_echo "$lt_cv_ar_at_file" >&6; }
6467
6468if test "x$lt_cv_ar_at_file" = xno; then
6469  archiver_list_spec=
6470else
6471  archiver_list_spec=$lt_cv_ar_at_file
6472fi
6473
6474
6475
6476
6477
6478
6479
6480if test -n "$ac_tool_prefix"; then
6481  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6482set dummy ${ac_tool_prefix}strip; ac_word=$2
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484$as_echo_n "checking for $ac_word... " >&6; }
6485if ${ac_cv_prog_STRIP+:} false; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488  if test -n "$STRIP"; then
6489  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494  IFS=$as_save_IFS
6495  test -z "$as_dir" && as_dir=.
6496    for ac_exec_ext in '' $ac_executable_extensions; do
6497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503  done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508STRIP=$ac_cv_prog_STRIP
6509if test -n "$STRIP"; then
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6511$as_echo "$STRIP" >&6; }
6512else
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515fi
6516
6517
6518fi
6519if test -z "$ac_cv_prog_STRIP"; then
6520  ac_ct_STRIP=$STRIP
6521  # Extract the first word of "strip", so it can be a program name with args.
6522set dummy strip; ac_word=$2
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  if test -n "$ac_ct_STRIP"; then
6529  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538    ac_cv_prog_ac_ct_STRIP="strip"
6539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6549if test -n "$ac_ct_STRIP"; then
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6551$as_echo "$ac_ct_STRIP" >&6; }
6552else
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557  if test "x$ac_ct_STRIP" = x; then
6558    STRIP=":"
6559  else
6560    case $cross_compiling:$ac_tool_warned in
6561yes:)
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564ac_tool_warned=yes ;;
6565esac
6566    STRIP=$ac_ct_STRIP
6567  fi
6568else
6569  STRIP="$ac_cv_prog_STRIP"
6570fi
6571
6572test -z "$STRIP" && STRIP=:
6573
6574
6575
6576
6577
6578
6579if test -n "$ac_tool_prefix"; then
6580  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583$as_echo_n "checking for $ac_word... " >&6; }
6584if ${ac_cv_prog_RANLIB+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  if test -n "$RANLIB"; then
6588  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593  IFS=$as_save_IFS
6594  test -z "$as_dir" && as_dir=.
6595    for ac_exec_ext in '' $ac_executable_extensions; do
6596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599    break 2
6600  fi
6601done
6602  done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607RANLIB=$ac_cv_prog_RANLIB
6608if test -n "$RANLIB"; then
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6610$as_echo "$RANLIB" >&6; }
6611else
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$ac_cv_prog_RANLIB"; then
6619  ac_ct_RANLIB=$RANLIB
6620  # Extract the first word of "ranlib", so it can be a program name with args.
6621set dummy ranlib; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  if test -n "$ac_ct_RANLIB"; then
6628  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635    for ac_exec_ext in '' $ac_executable_extensions; do
6636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637    ac_cv_prog_ac_ct_RANLIB="ranlib"
6638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642  done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6648if test -n "$ac_ct_RANLIB"; then
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6650$as_echo "$ac_ct_RANLIB" >&6; }
6651else
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656  if test "x$ac_ct_RANLIB" = x; then
6657    RANLIB=":"
6658  else
6659    case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665    RANLIB=$ac_ct_RANLIB
6666  fi
6667else
6668  RANLIB="$ac_cv_prog_RANLIB"
6669fi
6670
6671test -z "$RANLIB" && RANLIB=:
6672
6673
6674
6675
6676
6677
6678# Determine commands to create old-style static archives.
6679old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6680old_postinstall_cmds='chmod 644 $oldlib'
6681old_postuninstall_cmds=
6682
6683if test -n "$RANLIB"; then
6684  case $host_os in
6685  openbsd*)
6686    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6687    ;;
6688  *)
6689    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6690    ;;
6691  esac
6692  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6693fi
6694
6695case $host_os in
6696  darwin*)
6697    lock_old_archive_extraction=yes ;;
6698  *)
6699    lock_old_archive_extraction=no ;;
6700esac
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740# If no C compiler was specified, use CC.
6741LTCC=${LTCC-"$CC"}
6742
6743# If no C compiler flags were specified, use CFLAGS.
6744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6745
6746# Allow CC to be a program name with arguments.
6747compiler=$CC
6748
6749
6750# Check for command to grab the raw symbol name followed by C symbol from nm.
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6752$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6753if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756
6757# These are sane defaults that work on at least a few old systems.
6758# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6759
6760# Character class describing NM global symbol codes.
6761symcode='[BCDEGRST]'
6762
6763# Regexp to match symbols that can be accessed directly from C.
6764sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6765
6766# Define system-specific variables.
6767case $host_os in
6768aix*)
6769  symcode='[BCDT]'
6770  ;;
6771cygwin* | mingw* | pw32* | cegcc*)
6772  symcode='[ABCDGISTW]'
6773  ;;
6774hpux*)
6775  if test "$host_cpu" = ia64; then
6776    symcode='[ABCDEGRST]'
6777  fi
6778  ;;
6779irix* | nonstopux*)
6780  symcode='[BCDEGRST]'
6781  ;;
6782osf*)
6783  symcode='[BCDEGQRST]'
6784  ;;
6785solaris*)
6786  symcode='[BDRT]'
6787  ;;
6788sco3.2v5*)
6789  symcode='[DT]'
6790  ;;
6791sysv4.2uw2*)
6792  symcode='[DT]'
6793  ;;
6794sysv5* | sco5v6* | unixware* | OpenUNIX*)
6795  symcode='[ABDT]'
6796  ;;
6797sysv4)
6798  symcode='[DFNSTU]'
6799  ;;
6800esac
6801
6802# If we're using GNU nm, then use its standard symbol codes.
6803case `$NM -V 2>&1` in
6804*GNU* | *'with BFD'*)
6805  symcode='[ABCDGIRSTW]' ;;
6806esac
6807
6808# Transform an extracted symbol line into a proper C declaration.
6809# Some systems (esp. on ia64) link data and code symbols differently,
6810# so use this general approach.
6811lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6812
6813# Transform an extracted symbol line into symbol name and symbol address
6814lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6815lt_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'"
6816
6817# Handle CRLF in mingw tool chain
6818opt_cr=
6819case $build_os in
6820mingw*)
6821  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6822  ;;
6823esac
6824
6825# Try without a prefix underscore, then with it.
6826for ac_symprfx in "" "_"; do
6827
6828  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6829  symxfrm="\\1 $ac_symprfx\\2 \\2"
6830
6831  # Write the raw and C identifiers.
6832  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6833    # Fake it for dumpbin and say T for any non-static function
6834    # and D for any global variable.
6835    # Also find C++ and __fastcall symbols from MSVC++,
6836    # which start with @ or ?.
6837    lt_cv_sys_global_symbol_pipe="$AWK '"\
6838"     {last_section=section; section=\$ 3};"\
6839"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6840"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6841"     \$ 0!~/External *\|/{next};"\
6842"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6843"     {if(hide[section]) next};"\
6844"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6845"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6846"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6847"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6848"     ' prfx=^$ac_symprfx"
6849  else
6850    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6851  fi
6852  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6853
6854  # Check to see that the pipe works correctly.
6855  pipe_works=no
6856
6857  rm -f conftest*
6858  cat > conftest.$ac_ext <<_LT_EOF
6859#ifdef __cplusplus
6860extern "C" {
6861#endif
6862char nm_test_var;
6863void nm_test_func(void);
6864void nm_test_func(void){}
6865#ifdef __cplusplus
6866}
6867#endif
6868int main(){nm_test_var='a';nm_test_func();return(0);}
6869_LT_EOF
6870
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    # Now try to grab the symbols.
6877    nlist=conftest.nm
6878    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6879  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6880  ac_status=$?
6881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882  test $ac_status = 0; } && test -s "$nlist"; then
6883      # Try sorting and uniquifying the output.
6884      if sort "$nlist" | uniq > "$nlist"T; then
6885	mv -f "$nlist"T "$nlist"
6886      else
6887	rm -f "$nlist"T
6888      fi
6889
6890      # Make sure that we snagged all the symbols we need.
6891      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6892	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6893	  cat <<_LT_EOF > conftest.$ac_ext
6894/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6895#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6896/* DATA imports from DLLs on WIN32 con't be const, because runtime
6897   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6898# define LT_DLSYM_CONST
6899#elif defined(__osf__)
6900/* This system does not cope well with relocations in const data.  */
6901# define LT_DLSYM_CONST
6902#else
6903# define LT_DLSYM_CONST const
6904#endif
6905
6906#ifdef __cplusplus
6907extern "C" {
6908#endif
6909
6910_LT_EOF
6911	  # Now generate the symbol file.
6912	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6913
6914	  cat <<_LT_EOF >> conftest.$ac_ext
6915
6916/* The mapping between symbol names and symbols.  */
6917LT_DLSYM_CONST struct {
6918  const char *name;
6919  void       *address;
6920}
6921lt__PROGRAM__LTX_preloaded_symbols[] =
6922{
6923  { "@PROGRAM@", (void *) 0 },
6924_LT_EOF
6925	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6926	  cat <<\_LT_EOF >> conftest.$ac_ext
6927  {0, (void *) 0}
6928};
6929
6930/* This works around a problem in FreeBSD linker */
6931#ifdef FREEBSD_WORKAROUND
6932static const void *lt_preloaded_setup() {
6933  return lt__PROGRAM__LTX_preloaded_symbols;
6934}
6935#endif
6936
6937#ifdef __cplusplus
6938}
6939#endif
6940_LT_EOF
6941	  # Now try linking the two files.
6942	  mv conftest.$ac_objext conftstm.$ac_objext
6943	  lt_globsym_save_LIBS=$LIBS
6944	  lt_globsym_save_CFLAGS=$CFLAGS
6945	  LIBS="conftstm.$ac_objext"
6946	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6947	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948  (eval $ac_link) 2>&5
6949  ac_status=$?
6950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6952	    pipe_works=yes
6953	  fi
6954	  LIBS=$lt_globsym_save_LIBS
6955	  CFLAGS=$lt_globsym_save_CFLAGS
6956	else
6957	  echo "cannot find nm_test_func in $nlist" >&5
6958	fi
6959      else
6960	echo "cannot find nm_test_var in $nlist" >&5
6961      fi
6962    else
6963      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964    fi
6965  else
6966    echo "$progname: failed program was:" >&5
6967    cat conftest.$ac_ext >&5
6968  fi
6969  rm -rf conftest* conftst*
6970
6971  # Do not use the global_symbol_pipe unless it works.
6972  if test "$pipe_works" = yes; then
6973    break
6974  else
6975    lt_cv_sys_global_symbol_pipe=
6976  fi
6977done
6978
6979fi
6980
6981if test -z "$lt_cv_sys_global_symbol_pipe"; then
6982  lt_cv_sys_global_symbol_to_cdecl=
6983fi
6984if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6986$as_echo "failed" >&6; }
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6989$as_echo "ok" >&6; }
6990fi
6991
6992# Response file support.
6993if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6994  nm_file_list_spec='@'
6995elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6996  nm_file_list_spec='@'
6997fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7026$as_echo_n "checking for sysroot... " >&6; }
7027
7028# Check whether --with-sysroot was given.
7029if test "${with_sysroot+set}" = set; then :
7030  withval=$with_sysroot;
7031else
7032  with_sysroot=no
7033fi
7034
7035
7036lt_sysroot=
7037case ${with_sysroot} in #(
7038 yes)
7039   if test "$GCC" = yes; then
7040     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7041   fi
7042   ;; #(
7043 /*)
7044   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7045   ;; #(
7046 no|'')
7047   ;; #(
7048 *)
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7050$as_echo "${with_sysroot}" >&6; }
7051   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7052   ;;
7053esac
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7056$as_echo "${lt_sysroot:-no}" >&6; }
7057
7058
7059
7060
7061
7062# Check whether --enable-libtool-lock was given.
7063if test "${enable_libtool_lock+set}" = set; then :
7064  enableval=$enable_libtool_lock;
7065fi
7066
7067test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7068
7069# Some flags need to be propagated to the compiler or linker for good
7070# libtool support.
7071case $host in
7072ia64-*-hpux*)
7073  # Find out which ABI we are using.
7074  echo 'int i;' > conftest.$ac_ext
7075  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7076  (eval $ac_compile) 2>&5
7077  ac_status=$?
7078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079  test $ac_status = 0; }; then
7080    case `/usr/bin/file conftest.$ac_objext` in
7081      *ELF-32*)
7082	HPUX_IA64_MODE="32"
7083	;;
7084      *ELF-64*)
7085	HPUX_IA64_MODE="64"
7086	;;
7087    esac
7088  fi
7089  rm -rf conftest*
7090  ;;
7091*-*-irix6*)
7092  # Find out which ABI we are using.
7093  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095  (eval $ac_compile) 2>&5
7096  ac_status=$?
7097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098  test $ac_status = 0; }; then
7099    if test "$lt_cv_prog_gnu_ld" = yes; then
7100      case `/usr/bin/file conftest.$ac_objext` in
7101	*32-bit*)
7102	  LD="${LD-ld} -melf32bsmip"
7103	  ;;
7104	*N32*)
7105	  LD="${LD-ld} -melf32bmipn32"
7106	  ;;
7107	*64-bit*)
7108	  LD="${LD-ld} -melf64bmip"
7109	;;
7110      esac
7111    else
7112      case `/usr/bin/file conftest.$ac_objext` in
7113	*32-bit*)
7114	  LD="${LD-ld} -32"
7115	  ;;
7116	*N32*)
7117	  LD="${LD-ld} -n32"
7118	  ;;
7119	*64-bit*)
7120	  LD="${LD-ld} -64"
7121	  ;;
7122      esac
7123    fi
7124  fi
7125  rm -rf conftest*
7126  ;;
7127
7128x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7129s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7130  # Find out which ABI we are using.
7131  echo 'int i;' > conftest.$ac_ext
7132  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7133  (eval $ac_compile) 2>&5
7134  ac_status=$?
7135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136  test $ac_status = 0; }; then
7137    case `/usr/bin/file conftest.o` in
7138      *32-bit*)
7139	case $host in
7140	  x86_64-*kfreebsd*-gnu)
7141	    LD="${LD-ld} -m elf_i386_fbsd"
7142	    ;;
7143	  x86_64-*linux*)
7144	    LD="${LD-ld} -m elf_i386"
7145	    ;;
7146	  ppc64-*linux*|powerpc64-*linux*)
7147	    LD="${LD-ld} -m elf32ppclinux"
7148	    ;;
7149	  s390x-*linux*)
7150	    LD="${LD-ld} -m elf_s390"
7151	    ;;
7152	  sparc64-*linux*)
7153	    LD="${LD-ld} -m elf32_sparc"
7154	    ;;
7155	esac
7156	;;
7157      *64-bit*)
7158	case $host in
7159	  x86_64-*kfreebsd*-gnu)
7160	    LD="${LD-ld} -m elf_x86_64_fbsd"
7161	    ;;
7162	  x86_64-*linux*)
7163	    LD="${LD-ld} -m elf_x86_64"
7164	    ;;
7165	  ppc*-*linux*|powerpc*-*linux*)
7166	    LD="${LD-ld} -m elf64ppc"
7167	    ;;
7168	  s390*-*linux*|s390*-*tpf*)
7169	    LD="${LD-ld} -m elf64_s390"
7170	    ;;
7171	  sparc*-*linux*)
7172	    LD="${LD-ld} -m elf64_sparc"
7173	    ;;
7174	esac
7175	;;
7176    esac
7177  fi
7178  rm -rf conftest*
7179  ;;
7180
7181*-*-sco3.2v5*)
7182  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7183  SAVE_CFLAGS="$CFLAGS"
7184  CFLAGS="$CFLAGS -belf"
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7186$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7187if ${lt_cv_cc_needs_belf+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  ac_ext=c
7191ac_cpp='$CPP $CPPFLAGS'
7192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7194ac_compiler_gnu=$ac_cv_c_compiler_gnu
7195
7196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198
7199int
7200main ()
7201{
7202
7203  ;
7204  return 0;
7205}
7206_ACEOF
7207if ac_fn_c_try_link "$LINENO"; then :
7208  lt_cv_cc_needs_belf=yes
7209else
7210  lt_cv_cc_needs_belf=no
7211fi
7212rm -f core conftest.err conftest.$ac_objext \
7213    conftest$ac_exeext conftest.$ac_ext
7214     ac_ext=c
7215ac_cpp='$CPP $CPPFLAGS'
7216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7222$as_echo "$lt_cv_cc_needs_belf" >&6; }
7223  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7224    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7225    CFLAGS="$SAVE_CFLAGS"
7226  fi
7227  ;;
7228*-*solaris*)
7229  # Find out which ABI we are using.
7230  echo 'int i;' > conftest.$ac_ext
7231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232  (eval $ac_compile) 2>&5
7233  ac_status=$?
7234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235  test $ac_status = 0; }; then
7236    case `/usr/bin/file conftest.o` in
7237    *64-bit*)
7238      case $lt_cv_prog_gnu_ld in
7239      yes*)
7240        case $host in
7241        i?86-*-solaris*)
7242          LD="${LD-ld} -m elf_x86_64"
7243          ;;
7244        sparc*-*-solaris*)
7245          LD="${LD-ld} -m elf64_sparc"
7246          ;;
7247        esac
7248        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7249        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7250          LD="${LD-ld}_sol2"
7251        fi
7252        ;;
7253      *)
7254	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7255	  LD="${LD-ld} -64"
7256	fi
7257	;;
7258      esac
7259      ;;
7260    esac
7261  fi
7262  rm -rf conftest*
7263  ;;
7264esac
7265
7266need_locks="$enable_libtool_lock"
7267
7268if test -n "$ac_tool_prefix"; then
7269  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}mt; ac_word=$2
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  if test -n "$MANIFEST_TOOL"; then
7277  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284    for ac_exec_ext in '' $ac_executable_extensions; do
7285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291  done
7292IFS=$as_save_IFS
7293
7294fi
7295fi
7296MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7297if test -n "$MANIFEST_TOOL"; then
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7299$as_echo "$MANIFEST_TOOL" >&6; }
7300else
7301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
7303fi
7304
7305
7306fi
7307if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7308  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7309  # Extract the first word of "mt", so it can be a program name with args.
7310set dummy mt; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  if test -n "$ac_ct_MANIFEST_TOOL"; then
7317  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324    for ac_exec_ext in '' $ac_executable_extensions; do
7325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331  done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7337if test -n "$ac_ct_MANIFEST_TOOL"; then
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7339$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7340else
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7346    MANIFEST_TOOL=":"
7347  else
7348    case $cross_compiling:$ac_tool_warned in
7349yes:)
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352ac_tool_warned=yes ;;
7353esac
7354    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7355  fi
7356else
7357  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7358fi
7359
7360test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7362$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7363if ${lt_cv_path_mainfest_tool+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  lt_cv_path_mainfest_tool=no
7367  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7368  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7369  cat conftest.err >&5
7370  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7371    lt_cv_path_mainfest_tool=yes
7372  fi
7373  rm -f conftest*
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7376$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7377if test "x$lt_cv_path_mainfest_tool" != xyes; then
7378  MANIFEST_TOOL=:
7379fi
7380
7381
7382
7383
7384
7385
7386  case $host_os in
7387    rhapsody* | darwin*)
7388    if test -n "$ac_tool_prefix"; then
7389  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_prog_DSYMUTIL+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  if test -n "$DSYMUTIL"; then
7397  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404    for ac_exec_ext in '' $ac_executable_extensions; do
7405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411  done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416DSYMUTIL=$ac_cv_prog_DSYMUTIL
7417if test -n "$DSYMUTIL"; then
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7419$as_echo "$DSYMUTIL" >&6; }
7420else
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425
7426fi
7427if test -z "$ac_cv_prog_DSYMUTIL"; then
7428  ac_ct_DSYMUTIL=$DSYMUTIL
7429  # Extract the first word of "dsymutil", so it can be a program name with args.
7430set dummy dsymutil; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$ac_ct_DSYMUTIL"; then
7437  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7457if test -n "$ac_ct_DSYMUTIL"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7459$as_echo "$ac_ct_DSYMUTIL" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465  if test "x$ac_ct_DSYMUTIL" = x; then
7466    DSYMUTIL=":"
7467  else
7468    case $cross_compiling:$ac_tool_warned in
7469yes:)
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472ac_tool_warned=yes ;;
7473esac
7474    DSYMUTIL=$ac_ct_DSYMUTIL
7475  fi
7476else
7477  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7478fi
7479
7480    if test -n "$ac_tool_prefix"; then
7481  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if ${ac_cv_prog_NMEDIT+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  if test -n "$NMEDIT"; then
7489  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  test -z "$as_dir" && as_dir=.
7496    for ac_exec_ext in '' $ac_executable_extensions; do
7497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503  done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508NMEDIT=$ac_cv_prog_NMEDIT
7509if test -n "$NMEDIT"; then
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7511$as_echo "$NMEDIT" >&6; }
7512else
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517
7518fi
7519if test -z "$ac_cv_prog_NMEDIT"; then
7520  ac_ct_NMEDIT=$NMEDIT
7521  # Extract the first word of "nmedit", so it can be a program name with args.
7522set dummy nmedit; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$ac_ct_NMEDIT"; then
7529  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7549if test -n "$ac_ct_NMEDIT"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7551$as_echo "$ac_ct_NMEDIT" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557  if test "x$ac_ct_NMEDIT" = x; then
7558    NMEDIT=":"
7559  else
7560    case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566    NMEDIT=$ac_ct_NMEDIT
7567  fi
7568else
7569  NMEDIT="$ac_cv_prog_NMEDIT"
7570fi
7571
7572    if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}lipo; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if ${ac_cv_prog_LIPO+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -n "$LIPO"; then
7581  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588    for ac_exec_ext in '' $ac_executable_extensions; do
7589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595  done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600LIPO=$ac_cv_prog_LIPO
7601if test -n "$LIPO"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7603$as_echo "$LIPO" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610fi
7611if test -z "$ac_cv_prog_LIPO"; then
7612  ac_ct_LIPO=$LIPO
7613  # Extract the first word of "lipo", so it can be a program name with args.
7614set dummy lipo; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$ac_ct_LIPO"; then
7621  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630    ac_cv_prog_ac_ct_LIPO="lipo"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7641if test -n "$ac_ct_LIPO"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7643$as_echo "$ac_ct_LIPO" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649  if test "x$ac_ct_LIPO" = x; then
7650    LIPO=":"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    LIPO=$ac_ct_LIPO
7659  fi
7660else
7661  LIPO="$ac_cv_prog_LIPO"
7662fi
7663
7664    if test -n "$ac_tool_prefix"; then
7665  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}otool; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if ${ac_cv_prog_OTOOL+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  if test -n "$OTOOL"; then
7673  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680    for ac_exec_ext in '' $ac_executable_extensions; do
7681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687  done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692OTOOL=$ac_cv_prog_OTOOL
7693if test -n "$OTOOL"; then
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7695$as_echo "$OTOOL" >&6; }
7696else
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701
7702fi
7703if test -z "$ac_cv_prog_OTOOL"; then
7704  ac_ct_OTOOL=$OTOOL
7705  # Extract the first word of "otool", so it can be a program name with args.
7706set dummy otool; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  if test -n "$ac_ct_OTOOL"; then
7713  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720    for ac_exec_ext in '' $ac_executable_extensions; do
7721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722    ac_cv_prog_ac_ct_OTOOL="otool"
7723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727  done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7733if test -n "$ac_ct_OTOOL"; then
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7735$as_echo "$ac_ct_OTOOL" >&6; }
7736else
7737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741  if test "x$ac_ct_OTOOL" = x; then
7742    OTOOL=":"
7743  else
7744    case $cross_compiling:$ac_tool_warned in
7745yes:)
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748ac_tool_warned=yes ;;
7749esac
7750    OTOOL=$ac_ct_OTOOL
7751  fi
7752else
7753  OTOOL="$ac_cv_prog_OTOOL"
7754fi
7755
7756    if test -n "$ac_tool_prefix"; then
7757  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7758set dummy ${ac_tool_prefix}otool64; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if ${ac_cv_prog_OTOOL64+:} false; then :
7762  $as_echo_n "(cached) " >&6
7763else
7764  if test -n "$OTOOL64"; then
7765  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770  IFS=$as_save_IFS
7771  test -z "$as_dir" && as_dir=.
7772    for ac_exec_ext in '' $ac_executable_extensions; do
7773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776    break 2
7777  fi
7778done
7779  done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784OTOOL64=$ac_cv_prog_OTOOL64
7785if test -n "$OTOOL64"; then
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7787$as_echo "$OTOOL64" >&6; }
7788else
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
7794fi
7795if test -z "$ac_cv_prog_OTOOL64"; then
7796  ac_ct_OTOOL64=$OTOOL64
7797  # Extract the first word of "otool64", so it can be a program name with args.
7798set dummy otool64; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  if test -n "$ac_ct_OTOOL64"; then
7805  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812    for ac_exec_ext in '' $ac_executable_extensions; do
7813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_ac_ct_OTOOL64="otool64"
7815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819  done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7825if test -n "$ac_ct_OTOOL64"; then
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7827$as_echo "$ac_ct_OTOOL64" >&6; }
7828else
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833  if test "x$ac_ct_OTOOL64" = x; then
7834    OTOOL64=":"
7835  else
7836    case $cross_compiling:$ac_tool_warned in
7837yes:)
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840ac_tool_warned=yes ;;
7841esac
7842    OTOOL64=$ac_ct_OTOOL64
7843  fi
7844else
7845  OTOOL64="$ac_cv_prog_OTOOL64"
7846fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7875$as_echo_n "checking for -single_module linker flag... " >&6; }
7876if ${lt_cv_apple_cc_single_mod+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  lt_cv_apple_cc_single_mod=no
7880      if test -z "${LT_MULTI_MODULE}"; then
7881	# By default we will add the -single_module flag. You can override
7882	# by either setting the environment variable LT_MULTI_MODULE
7883	# non-empty at configure time, or by adding -multi_module to the
7884	# link flags.
7885	rm -rf libconftest.dylib*
7886	echo "int foo(void){return 1;}" > conftest.c
7887	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7888-dynamiclib -Wl,-single_module conftest.c" >&5
7889	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7890	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7891        _lt_result=$?
7892	# If there is a non-empty error log, and "single_module"
7893	# appears in it, assume the flag caused a linker warning
7894        if test -s conftest.err && $GREP single_module conftest.err; then
7895	  cat conftest.err >&5
7896	# Otherwise, if the output was created with a 0 exit code from
7897	# the compiler, it worked.
7898	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7899	  lt_cv_apple_cc_single_mod=yes
7900	else
7901	  cat conftest.err >&5
7902	fi
7903	rm -rf libconftest.dylib*
7904	rm -f conftest.*
7905      fi
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7908$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7909
7910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7911$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7912if ${lt_cv_ld_exported_symbols_list+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  lt_cv_ld_exported_symbols_list=no
7916      save_LDFLAGS=$LDFLAGS
7917      echo "_main" > conftest.sym
7918      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7919      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921
7922int
7923main ()
7924{
7925
7926  ;
7927  return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_link "$LINENO"; then :
7931  lt_cv_ld_exported_symbols_list=yes
7932else
7933  lt_cv_ld_exported_symbols_list=no
7934fi
7935rm -f core conftest.err conftest.$ac_objext \
7936    conftest$ac_exeext conftest.$ac_ext
7937	LDFLAGS="$save_LDFLAGS"
7938
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7941$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7942
7943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7944$as_echo_n "checking for -force_load linker flag... " >&6; }
7945if ${lt_cv_ld_force_load+:} false; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  lt_cv_ld_force_load=no
7949      cat > conftest.c << _LT_EOF
7950int forced_loaded() { return 2;}
7951_LT_EOF
7952      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7953      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7954      echo "$AR cru libconftest.a conftest.o" >&5
7955      $AR cru libconftest.a conftest.o 2>&5
7956      echo "$RANLIB libconftest.a" >&5
7957      $RANLIB libconftest.a 2>&5
7958      cat > conftest.c << _LT_EOF
7959int main() { return 0;}
7960_LT_EOF
7961      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7962      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7963      _lt_result=$?
7964      if test -s conftest.err && $GREP force_load conftest.err; then
7965	cat conftest.err >&5
7966      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7967	lt_cv_ld_force_load=yes
7968      else
7969	cat conftest.err >&5
7970      fi
7971        rm -f conftest.err libconftest.a conftest conftest.c
7972        rm -rf conftest.dSYM
7973
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976$as_echo "$lt_cv_ld_force_load" >&6; }
7977    case $host_os in
7978    rhapsody* | darwin1.[012])
7979      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980    darwin1.*)
7981      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982    darwin*) # darwin 5.x on
7983      # if running on 10.5 or later, the deployment target defaults
7984      # to the OS version, if on x86, and 10.4, the deployment
7985      # target defaults to 10.4. Don't you love it?
7986      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989	10.[012]*)
7990	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991	10.*)
7992	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993      esac
7994    ;;
7995  esac
7996    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997      _lt_dar_single_mod='$single_module'
7998    fi
7999    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001    else
8002      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003    fi
8004    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8005      _lt_dsymutil='~$DSYMUTIL $lib || :'
8006    else
8007      _lt_dsymutil=
8008    fi
8009    ;;
8010  esac
8011
8012for ac_header in dlfcn.h
8013do :
8014  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015"
8016if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017  cat >>confdefs.h <<_ACEOF
8018#define HAVE_DLFCN_H 1
8019_ACEOF
8020
8021fi
8022
8023done
8024
8025
8026
8027
8028
8029# Set options
8030# Check whether --enable-static was given.
8031if test "${enable_static+set}" = set; then :
8032  enableval=$enable_static; p=${PACKAGE-default}
8033    case $enableval in
8034    yes) enable_static=yes ;;
8035    no) enable_static=no ;;
8036    *)
8037     enable_static=no
8038      # Look at the argument we got.  We use all the common list separators.
8039      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040      for pkg in $enableval; do
8041	IFS="$lt_save_ifs"
8042	if test "X$pkg" = "X$p"; then
8043	  enable_static=yes
8044	fi
8045      done
8046      IFS="$lt_save_ifs"
8047      ;;
8048    esac
8049else
8050  enable_static=no
8051fi
8052
8053
8054
8055
8056
8057
8058
8059enable_dlopen=yes
8060
8061
8062
8063
8064  enable_win32_dll=no
8065
8066
8067            # Check whether --enable-shared was given.
8068if test "${enable_shared+set}" = set; then :
8069  enableval=$enable_shared; p=${PACKAGE-default}
8070    case $enableval in
8071    yes) enable_shared=yes ;;
8072    no) enable_shared=no ;;
8073    *)
8074      enable_shared=no
8075      # Look at the argument we got.  We use all the common list separators.
8076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077      for pkg in $enableval; do
8078	IFS="$lt_save_ifs"
8079	if test "X$pkg" = "X$p"; then
8080	  enable_shared=yes
8081	fi
8082      done
8083      IFS="$lt_save_ifs"
8084      ;;
8085    esac
8086else
8087  enable_shared=yes
8088fi
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100# Check whether --with-pic was given.
8101if test "${with_pic+set}" = set; then :
8102  withval=$with_pic; lt_p=${PACKAGE-default}
8103    case $withval in
8104    yes|no) pic_mode=$withval ;;
8105    *)
8106      pic_mode=default
8107      # Look at the argument we got.  We use all the common list separators.
8108      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8109      for lt_pkg in $withval; do
8110	IFS="$lt_save_ifs"
8111	if test "X$lt_pkg" = "X$lt_p"; then
8112	  pic_mode=yes
8113	fi
8114      done
8115      IFS="$lt_save_ifs"
8116      ;;
8117    esac
8118else
8119  pic_mode=default
8120fi
8121
8122
8123test -z "$pic_mode" && pic_mode=default
8124
8125
8126
8127
8128
8129
8130
8131  # Check whether --enable-fast-install was given.
8132if test "${enable_fast_install+set}" = set; then :
8133  enableval=$enable_fast_install; p=${PACKAGE-default}
8134    case $enableval in
8135    yes) enable_fast_install=yes ;;
8136    no) enable_fast_install=no ;;
8137    *)
8138      enable_fast_install=no
8139      # Look at the argument we got.  We use all the common list separators.
8140      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8141      for pkg in $enableval; do
8142	IFS="$lt_save_ifs"
8143	if test "X$pkg" = "X$p"; then
8144	  enable_fast_install=yes
8145	fi
8146      done
8147      IFS="$lt_save_ifs"
8148      ;;
8149    esac
8150else
8151  enable_fast_install=yes
8152fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164# This can be used to rebuild libtool when needed
8165LIBTOOL_DEPS="$ltmain"
8166
8167# Always use our own libtool.
8168LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199test -z "$LN_S" && LN_S="ln -s"
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214if test -n "${ZSH_VERSION+set}" ; then
8215   setopt NO_GLOB_SUBST
8216fi
8217
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8219$as_echo_n "checking for objdir... " >&6; }
8220if ${lt_cv_objdir+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  rm -f .libs 2>/dev/null
8224mkdir .libs 2>/dev/null
8225if test -d .libs; then
8226  lt_cv_objdir=.libs
8227else
8228  # MS-DOS does not allow filenames that begin with a dot.
8229  lt_cv_objdir=_libs
8230fi
8231rmdir .libs 2>/dev/null
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8234$as_echo "$lt_cv_objdir" >&6; }
8235objdir=$lt_cv_objdir
8236
8237
8238
8239
8240
8241cat >>confdefs.h <<_ACEOF
8242#define LT_OBJDIR "$lt_cv_objdir/"
8243_ACEOF
8244
8245
8246
8247
8248case $host_os in
8249aix3*)
8250  # AIX sometimes has problems with the GCC collect2 program.  For some
8251  # reason, if we set the COLLECT_NAMES environment variable, the problems
8252  # vanish in a puff of smoke.
8253  if test "X${COLLECT_NAMES+set}" != Xset; then
8254    COLLECT_NAMES=
8255    export COLLECT_NAMES
8256  fi
8257  ;;
8258esac
8259
8260# Global variables:
8261ofile=libtool
8262can_build_shared=yes
8263
8264# All known linkers require a `.a' archive for static linking (except MSVC,
8265# which needs '.lib').
8266libext=a
8267
8268with_gnu_ld="$lt_cv_prog_gnu_ld"
8269
8270old_CC="$CC"
8271old_CFLAGS="$CFLAGS"
8272
8273# Set sane defaults for various variables
8274test -z "$CC" && CC=cc
8275test -z "$LTCC" && LTCC=$CC
8276test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8277test -z "$LD" && LD=ld
8278test -z "$ac_objext" && ac_objext=o
8279
8280for cc_temp in $compiler""; do
8281  case $cc_temp in
8282    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8283    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8284    \-*) ;;
8285    *) break;;
8286  esac
8287done
8288cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8289
8290
8291# Only perform the check for file, if the check method requires it
8292test -z "$MAGIC_CMD" && MAGIC_CMD=file
8293case $deplibs_check_method in
8294file_magic*)
8295  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8297$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8298if ${lt_cv_path_MAGIC_CMD+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  case $MAGIC_CMD in
8302[\\/*] |  ?:[\\/]*)
8303  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8304  ;;
8305*)
8306  lt_save_MAGIC_CMD="$MAGIC_CMD"
8307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8308  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8309  for ac_dir in $ac_dummy; do
8310    IFS="$lt_save_ifs"
8311    test -z "$ac_dir" && ac_dir=.
8312    if test -f $ac_dir/${ac_tool_prefix}file; then
8313      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8314      if test -n "$file_magic_test_file"; then
8315	case $deplibs_check_method in
8316	"file_magic "*)
8317	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8318	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8319	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8320	    $EGREP "$file_magic_regex" > /dev/null; then
8321	    :
8322	  else
8323	    cat <<_LT_EOF 1>&2
8324
8325*** Warning: the command libtool uses to detect shared libraries,
8326*** $file_magic_cmd, produces output that libtool cannot recognize.
8327*** The result is that libtool may fail to recognize shared libraries
8328*** as such.  This will affect the creation of libtool libraries that
8329*** depend on shared libraries, but programs linked with such libtool
8330*** libraries will work regardless of this problem.  Nevertheless, you
8331*** may want to report the problem to your system manager and/or to
8332*** bug-libtool@gnu.org
8333
8334_LT_EOF
8335	  fi ;;
8336	esac
8337      fi
8338      break
8339    fi
8340  done
8341  IFS="$lt_save_ifs"
8342  MAGIC_CMD="$lt_save_MAGIC_CMD"
8343  ;;
8344esac
8345fi
8346
8347MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8348if test -n "$MAGIC_CMD"; then
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8350$as_echo "$MAGIC_CMD" >&6; }
8351else
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
8354fi
8355
8356
8357
8358
8359
8360if test -z "$lt_cv_path_MAGIC_CMD"; then
8361  if test -n "$ac_tool_prefix"; then
8362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8363$as_echo_n "checking for file... " >&6; }
8364if ${lt_cv_path_MAGIC_CMD+:} false; then :
8365  $as_echo_n "(cached) " >&6
8366else
8367  case $MAGIC_CMD in
8368[\\/*] |  ?:[\\/]*)
8369  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8370  ;;
8371*)
8372  lt_save_MAGIC_CMD="$MAGIC_CMD"
8373  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8374  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8375  for ac_dir in $ac_dummy; do
8376    IFS="$lt_save_ifs"
8377    test -z "$ac_dir" && ac_dir=.
8378    if test -f $ac_dir/file; then
8379      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8380      if test -n "$file_magic_test_file"; then
8381	case $deplibs_check_method in
8382	"file_magic "*)
8383	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8384	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8386	    $EGREP "$file_magic_regex" > /dev/null; then
8387	    :
8388	  else
8389	    cat <<_LT_EOF 1>&2
8390
8391*** Warning: the command libtool uses to detect shared libraries,
8392*** $file_magic_cmd, produces output that libtool cannot recognize.
8393*** The result is that libtool may fail to recognize shared libraries
8394*** as such.  This will affect the creation of libtool libraries that
8395*** depend on shared libraries, but programs linked with such libtool
8396*** libraries will work regardless of this problem.  Nevertheless, you
8397*** may want to report the problem to your system manager and/or to
8398*** bug-libtool@gnu.org
8399
8400_LT_EOF
8401	  fi ;;
8402	esac
8403      fi
8404      break
8405    fi
8406  done
8407  IFS="$lt_save_ifs"
8408  MAGIC_CMD="$lt_save_MAGIC_CMD"
8409  ;;
8410esac
8411fi
8412
8413MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8414if test -n "$MAGIC_CMD"; then
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8416$as_echo "$MAGIC_CMD" >&6; }
8417else
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
8420fi
8421
8422
8423  else
8424    MAGIC_CMD=:
8425  fi
8426fi
8427
8428  fi
8429  ;;
8430esac
8431
8432# Use C for the default configuration in the libtool script
8433
8434lt_save_CC="$CC"
8435ac_ext=c
8436ac_cpp='$CPP $CPPFLAGS'
8437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441
8442# Source file extension for C test sources.
8443ac_ext=c
8444
8445# Object file extension for compiled C test sources.
8446objext=o
8447objext=$objext
8448
8449# Code to be used in simple compile tests
8450lt_simple_compile_test_code="int some_variable = 0;"
8451
8452# Code to be used in simple link tests
8453lt_simple_link_test_code='int main(){return(0);}'
8454
8455
8456
8457
8458
8459
8460
8461# If no C compiler was specified, use CC.
8462LTCC=${LTCC-"$CC"}
8463
8464# If no C compiler flags were specified, use CFLAGS.
8465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8466
8467# Allow CC to be a program name with arguments.
8468compiler=$CC
8469
8470# Save the default compiler, since it gets overwritten when the other
8471# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8472compiler_DEFAULT=$CC
8473
8474# save warnings/boilerplate of simple test code
8475ac_outfile=conftest.$ac_objext
8476echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8477eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8478_lt_compiler_boilerplate=`cat conftest.err`
8479$RM conftest*
8480
8481ac_outfile=conftest.$ac_objext
8482echo "$lt_simple_link_test_code" >conftest.$ac_ext
8483eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8484_lt_linker_boilerplate=`cat conftest.err`
8485$RM -r conftest*
8486
8487
8488## CAVEAT EMPTOR:
8489## There is no encapsulation within the following macros, do not change
8490## the running order or otherwise move them around unless you know exactly
8491## what you are doing...
8492if test -n "$compiler"; then
8493
8494lt_prog_compiler_no_builtin_flag=
8495
8496if test "$GCC" = yes; then
8497  case $cc_basename in
8498  nvcc*)
8499    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8500  *)
8501    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8502  esac
8503
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8505$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8506if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  lt_cv_prog_compiler_rtti_exceptions=no
8510   ac_outfile=conftest.$ac_objext
8511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512   lt_compiler_flag="-fno-rtti -fno-exceptions"
8513   # Insert the option either (1) after the last *FLAGS variable, or
8514   # (2) before a word containing "conftest.", or (3) at the end.
8515   # Note that $ac_compile itself does not contain backslashes and begins
8516   # with a dollar sign (not a hyphen), so the echo should work correctly.
8517   # The option is referenced via a variable to avoid confusing sed.
8518   lt_compile=`echo "$ac_compile" | $SED \
8519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521   -e 's:$: $lt_compiler_flag:'`
8522   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8523   (eval "$lt_compile" 2>conftest.err)
8524   ac_status=$?
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   if (exit $ac_status) && test -s "$ac_outfile"; then
8528     # The compiler can only warn and ignore the option if not recognized
8529     # So say no if there are warnings other than the usual output.
8530     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8531     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8532     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8533       lt_cv_prog_compiler_rtti_exceptions=yes
8534     fi
8535   fi
8536   $RM conftest*
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8540$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8541
8542if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8543    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8544else
8545    :
8546fi
8547
8548fi
8549
8550
8551
8552
8553
8554
8555  lt_prog_compiler_wl=
8556lt_prog_compiler_pic=
8557lt_prog_compiler_static=
8558
8559
8560  if test "$GCC" = yes; then
8561    lt_prog_compiler_wl='-Wl,'
8562    lt_prog_compiler_static='-static'
8563
8564    case $host_os in
8565      aix*)
8566      # All AIX code is PIC.
8567      if test "$host_cpu" = ia64; then
8568	# AIX 5 now supports IA64 processor
8569	lt_prog_compiler_static='-Bstatic'
8570      fi
8571      ;;
8572
8573    amigaos*)
8574      case $host_cpu in
8575      powerpc)
8576            # see comment about AmigaOS4 .so support
8577            lt_prog_compiler_pic='-fPIC'
8578        ;;
8579      m68k)
8580            # FIXME: we need at least 68020 code to build shared libraries, but
8581            # adding the `-m68020' flag to GCC prevents building anything better,
8582            # like `-m68040'.
8583            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8584        ;;
8585      esac
8586      ;;
8587
8588    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8589      # PIC is the default for these OSes.
8590      ;;
8591
8592    mingw* | cygwin* | pw32* | os2* | cegcc*)
8593      # This hack is so that the source file can tell whether it is being
8594      # built for inclusion in a dll (and should export symbols for example).
8595      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8596      # (--disable-auto-import) libraries
8597      lt_prog_compiler_pic='-DDLL_EXPORT'
8598      ;;
8599
8600    darwin* | rhapsody*)
8601      # PIC is the default on this platform
8602      # Common symbols not allowed in MH_DYLIB files
8603      lt_prog_compiler_pic='-fno-common'
8604      ;;
8605
8606    haiku*)
8607      # PIC is the default for Haiku.
8608      # The "-static" flag exists, but is broken.
8609      lt_prog_compiler_static=
8610      ;;
8611
8612    hpux*)
8613      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8614      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8615      # sets the default TLS model and affects inlining.
8616      case $host_cpu in
8617      hppa*64*)
8618	# +Z the default
8619	;;
8620      *)
8621	lt_prog_compiler_pic='-fPIC'
8622	;;
8623      esac
8624      ;;
8625
8626    interix[3-9]*)
8627      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8628      # Instead, we relocate shared libraries at runtime.
8629      ;;
8630
8631    msdosdjgpp*)
8632      # Just because we use GCC doesn't mean we suddenly get shared libraries
8633      # on systems that don't support them.
8634      lt_prog_compiler_can_build_shared=no
8635      enable_shared=no
8636      ;;
8637
8638    *nto* | *qnx*)
8639      # QNX uses GNU C++, but need to define -shared option too, otherwise
8640      # it will coredump.
8641      lt_prog_compiler_pic='-fPIC -shared'
8642      ;;
8643
8644    sysv4*MP*)
8645      if test -d /usr/nec; then
8646	lt_prog_compiler_pic=-Kconform_pic
8647      fi
8648      ;;
8649
8650    *)
8651      lt_prog_compiler_pic='-fPIC'
8652      ;;
8653    esac
8654
8655    case $cc_basename in
8656    nvcc*) # Cuda Compiler Driver 2.2
8657      lt_prog_compiler_wl='-Xlinker '
8658      if test -n "$lt_prog_compiler_pic"; then
8659        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8660      fi
8661      ;;
8662    esac
8663  else
8664    # PORTME Check for flag to pass linker flags through the system compiler.
8665    case $host_os in
8666    aix*)
8667      lt_prog_compiler_wl='-Wl,'
8668      if test "$host_cpu" = ia64; then
8669	# AIX 5 now supports IA64 processor
8670	lt_prog_compiler_static='-Bstatic'
8671      else
8672	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8673      fi
8674      ;;
8675
8676    mingw* | cygwin* | pw32* | os2* | cegcc*)
8677      # This hack is so that the source file can tell whether it is being
8678      # built for inclusion in a dll (and should export symbols for example).
8679      lt_prog_compiler_pic='-DDLL_EXPORT'
8680      ;;
8681
8682    hpux9* | hpux10* | hpux11*)
8683      lt_prog_compiler_wl='-Wl,'
8684      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8685      # not for PA HP-UX.
8686      case $host_cpu in
8687      hppa*64*|ia64*)
8688	# +Z the default
8689	;;
8690      *)
8691	lt_prog_compiler_pic='+Z'
8692	;;
8693      esac
8694      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8695      lt_prog_compiler_static='${wl}-a ${wl}archive'
8696      ;;
8697
8698    irix5* | irix6* | nonstopux*)
8699      lt_prog_compiler_wl='-Wl,'
8700      # PIC (with -KPIC) is the default.
8701      lt_prog_compiler_static='-non_shared'
8702      ;;
8703
8704    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8705      case $cc_basename in
8706      # old Intel for x86_64 which still supported -KPIC.
8707      ecc*)
8708	lt_prog_compiler_wl='-Wl,'
8709	lt_prog_compiler_pic='-KPIC'
8710	lt_prog_compiler_static='-static'
8711        ;;
8712      # icc used to be incompatible with GCC.
8713      # ICC 10 doesn't accept -KPIC any more.
8714      icc* | ifort*)
8715	lt_prog_compiler_wl='-Wl,'
8716	lt_prog_compiler_pic='-fPIC'
8717	lt_prog_compiler_static='-static'
8718        ;;
8719      # Lahey Fortran 8.1.
8720      lf95*)
8721	lt_prog_compiler_wl='-Wl,'
8722	lt_prog_compiler_pic='--shared'
8723	lt_prog_compiler_static='--static'
8724	;;
8725      nagfor*)
8726	# NAG Fortran compiler
8727	lt_prog_compiler_wl='-Wl,-Wl,,'
8728	lt_prog_compiler_pic='-PIC'
8729	lt_prog_compiler_static='-Bstatic'
8730	;;
8731      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8732        # Portland Group compilers (*not* the Pentium gcc compiler,
8733	# which looks to be a dead project)
8734	lt_prog_compiler_wl='-Wl,'
8735	lt_prog_compiler_pic='-fpic'
8736	lt_prog_compiler_static='-Bstatic'
8737        ;;
8738      ccc*)
8739        lt_prog_compiler_wl='-Wl,'
8740        # All Alpha code is PIC.
8741        lt_prog_compiler_static='-non_shared'
8742        ;;
8743      xl* | bgxl* | bgf* | mpixl*)
8744	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8745	lt_prog_compiler_wl='-Wl,'
8746	lt_prog_compiler_pic='-qpic'
8747	lt_prog_compiler_static='-qstaticlink'
8748	;;
8749      *)
8750	case `$CC -V 2>&1 | sed 5q` in
8751	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8752	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8753	  lt_prog_compiler_pic='-KPIC'
8754	  lt_prog_compiler_static='-Bstatic'
8755	  lt_prog_compiler_wl=''
8756	  ;;
8757	*Sun\ F* | *Sun*Fortran*)
8758	  lt_prog_compiler_pic='-KPIC'
8759	  lt_prog_compiler_static='-Bstatic'
8760	  lt_prog_compiler_wl='-Qoption ld '
8761	  ;;
8762	*Sun\ C*)
8763	  # Sun C 5.9
8764	  lt_prog_compiler_pic='-KPIC'
8765	  lt_prog_compiler_static='-Bstatic'
8766	  lt_prog_compiler_wl='-Wl,'
8767	  ;;
8768        *Intel*\ [CF]*Compiler*)
8769	  lt_prog_compiler_wl='-Wl,'
8770	  lt_prog_compiler_pic='-fPIC'
8771	  lt_prog_compiler_static='-static'
8772	  ;;
8773	*Portland\ Group*)
8774	  lt_prog_compiler_wl='-Wl,'
8775	  lt_prog_compiler_pic='-fpic'
8776	  lt_prog_compiler_static='-Bstatic'
8777	  ;;
8778	esac
8779	;;
8780      esac
8781      ;;
8782
8783    newsos6)
8784      lt_prog_compiler_pic='-KPIC'
8785      lt_prog_compiler_static='-Bstatic'
8786      ;;
8787
8788    *nto* | *qnx*)
8789      # QNX uses GNU C++, but need to define -shared option too, otherwise
8790      # it will coredump.
8791      lt_prog_compiler_pic='-fPIC -shared'
8792      ;;
8793
8794    osf3* | osf4* | osf5*)
8795      lt_prog_compiler_wl='-Wl,'
8796      # All OSF/1 code is PIC.
8797      lt_prog_compiler_static='-non_shared'
8798      ;;
8799
8800    rdos*)
8801      lt_prog_compiler_static='-non_shared'
8802      ;;
8803
8804    solaris*)
8805      lt_prog_compiler_pic='-KPIC'
8806      lt_prog_compiler_static='-Bstatic'
8807      case $cc_basename in
8808      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8809	lt_prog_compiler_wl='-Qoption ld ';;
8810      *)
8811	lt_prog_compiler_wl='-Wl,';;
8812      esac
8813      ;;
8814
8815    sunos4*)
8816      lt_prog_compiler_wl='-Qoption ld '
8817      lt_prog_compiler_pic='-PIC'
8818      lt_prog_compiler_static='-Bstatic'
8819      ;;
8820
8821    sysv4 | sysv4.2uw2* | sysv4.3*)
8822      lt_prog_compiler_wl='-Wl,'
8823      lt_prog_compiler_pic='-KPIC'
8824      lt_prog_compiler_static='-Bstatic'
8825      ;;
8826
8827    sysv4*MP*)
8828      if test -d /usr/nec ;then
8829	lt_prog_compiler_pic='-Kconform_pic'
8830	lt_prog_compiler_static='-Bstatic'
8831      fi
8832      ;;
8833
8834    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8835      lt_prog_compiler_wl='-Wl,'
8836      lt_prog_compiler_pic='-KPIC'
8837      lt_prog_compiler_static='-Bstatic'
8838      ;;
8839
8840    unicos*)
8841      lt_prog_compiler_wl='-Wl,'
8842      lt_prog_compiler_can_build_shared=no
8843      ;;
8844
8845    uts4*)
8846      lt_prog_compiler_pic='-pic'
8847      lt_prog_compiler_static='-Bstatic'
8848      ;;
8849
8850    *)
8851      lt_prog_compiler_can_build_shared=no
8852      ;;
8853    esac
8854  fi
8855
8856case $host_os in
8857  # For platforms which do not support PIC, -DPIC is meaningless:
8858  *djgpp*)
8859    lt_prog_compiler_pic=
8860    ;;
8861  *)
8862    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8863    ;;
8864esac
8865
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8867$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8868if ${lt_cv_prog_compiler_pic+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8874$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8875lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8876
8877#
8878# Check to make sure the PIC flag actually works.
8879#
8880if test -n "$lt_prog_compiler_pic"; then
8881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8882$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8883if ${lt_cv_prog_compiler_pic_works+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  lt_cv_prog_compiler_pic_works=no
8887   ac_outfile=conftest.$ac_objext
8888   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8890   # Insert the option either (1) after the last *FLAGS variable, or
8891   # (2) before a word containing "conftest.", or (3) at the end.
8892   # Note that $ac_compile itself does not contain backslashes and begins
8893   # with a dollar sign (not a hyphen), so the echo should work correctly.
8894   # The option is referenced via a variable to avoid confusing sed.
8895   lt_compile=`echo "$ac_compile" | $SED \
8896   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898   -e 's:$: $lt_compiler_flag:'`
8899   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900   (eval "$lt_compile" 2>conftest.err)
8901   ac_status=$?
8902   cat conftest.err >&5
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   if (exit $ac_status) && test -s "$ac_outfile"; then
8905     # The compiler can only warn and ignore the option if not recognized
8906     # So say no if there are warnings other than the usual output.
8907     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910       lt_cv_prog_compiler_pic_works=yes
8911     fi
8912   fi
8913   $RM conftest*
8914
8915fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8917$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8918
8919if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8920    case $lt_prog_compiler_pic in
8921     "" | " "*) ;;
8922     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8923     esac
8924else
8925    lt_prog_compiler_pic=
8926     lt_prog_compiler_can_build_shared=no
8927fi
8928
8929fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941#
8942# Check to make sure the static flag actually works.
8943#
8944wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8946$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8947if ${lt_cv_prog_compiler_static_works+:} false; then :
8948  $as_echo_n "(cached) " >&6
8949else
8950  lt_cv_prog_compiler_static_works=no
8951   save_LDFLAGS="$LDFLAGS"
8952   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8953   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8954   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8955     # The linker can only warn and ignore the option if not recognized
8956     # So say no if there are warnings
8957     if test -s conftest.err; then
8958       # Append any errors to the config.log.
8959       cat conftest.err 1>&5
8960       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8961       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8962       if diff conftest.exp conftest.er2 >/dev/null; then
8963         lt_cv_prog_compiler_static_works=yes
8964       fi
8965     else
8966       lt_cv_prog_compiler_static_works=yes
8967     fi
8968   fi
8969   $RM -r conftest*
8970   LDFLAGS="$save_LDFLAGS"
8971
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8974$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8975
8976if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8977    :
8978else
8979    lt_prog_compiler_static=
8980fi
8981
8982
8983
8984
8985
8986
8987
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8989$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8990if ${lt_cv_prog_compiler_c_o+:} false; then :
8991  $as_echo_n "(cached) " >&6
8992else
8993  lt_cv_prog_compiler_c_o=no
8994   $RM -r conftest 2>/dev/null
8995   mkdir conftest
8996   cd conftest
8997   mkdir out
8998   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999
9000   lt_compiler_flag="-o out/conftest2.$ac_objext"
9001   # Insert the option either (1) after the last *FLAGS variable, or
9002   # (2) before a word containing "conftest.", or (3) at the end.
9003   # Note that $ac_compile itself does not contain backslashes and begins
9004   # with a dollar sign (not a hyphen), so the echo should work correctly.
9005   lt_compile=`echo "$ac_compile" | $SED \
9006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008   -e 's:$: $lt_compiler_flag:'`
9009   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010   (eval "$lt_compile" 2>out/conftest.err)
9011   ac_status=$?
9012   cat out/conftest.err >&5
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9015   then
9016     # The compiler can only warn and ignore the option if not recognized
9017     # So say no if there are warnings
9018     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9019     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9020     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9021       lt_cv_prog_compiler_c_o=yes
9022     fi
9023   fi
9024   chmod u+w . 2>&5
9025   $RM conftest*
9026   # SGI C++ compiler will create directory out/ii_files/ for
9027   # template instantiation
9028   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9029   $RM out/* && rmdir out
9030   cd ..
9031   $RM -r conftest
9032   $RM conftest*
9033
9034fi
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9036$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9037
9038
9039
9040
9041
9042
9043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9044$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9045if ${lt_cv_prog_compiler_c_o+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  lt_cv_prog_compiler_c_o=no
9049   $RM -r conftest 2>/dev/null
9050   mkdir conftest
9051   cd conftest
9052   mkdir out
9053   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054
9055   lt_compiler_flag="-o out/conftest2.$ac_objext"
9056   # Insert the option either (1) after the last *FLAGS variable, or
9057   # (2) before a word containing "conftest.", or (3) at the end.
9058   # Note that $ac_compile itself does not contain backslashes and begins
9059   # with a dollar sign (not a hyphen), so the echo should work correctly.
9060   lt_compile=`echo "$ac_compile" | $SED \
9061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063   -e 's:$: $lt_compiler_flag:'`
9064   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065   (eval "$lt_compile" 2>out/conftest.err)
9066   ac_status=$?
9067   cat out/conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9070   then
9071     # The compiler can only warn and ignore the option if not recognized
9072     # So say no if there are warnings
9073     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9074     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9075     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9076       lt_cv_prog_compiler_c_o=yes
9077     fi
9078   fi
9079   chmod u+w . 2>&5
9080   $RM conftest*
9081   # SGI C++ compiler will create directory out/ii_files/ for
9082   # template instantiation
9083   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9084   $RM out/* && rmdir out
9085   cd ..
9086   $RM -r conftest
9087   $RM conftest*
9088
9089fi
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9091$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9092
9093
9094
9095
9096hard_links="nottested"
9097if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9098  # do not overwrite the value of need_locks provided by the user
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9100$as_echo_n "checking if we can lock with hard links... " >&6; }
9101  hard_links=yes
9102  $RM conftest*
9103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9104  touch conftest.a
9105  ln conftest.a conftest.b 2>&5 || hard_links=no
9106  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9108$as_echo "$hard_links" >&6; }
9109  if test "$hard_links" = no; then
9110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9111$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9112    need_locks=warn
9113  fi
9114else
9115  need_locks=no
9116fi
9117
9118
9119
9120
9121
9122
9123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9124$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9125
9126  runpath_var=
9127  allow_undefined_flag=
9128  always_export_symbols=no
9129  archive_cmds=
9130  archive_expsym_cmds=
9131  compiler_needs_object=no
9132  enable_shared_with_static_runtimes=no
9133  export_dynamic_flag_spec=
9134  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9135  hardcode_automatic=no
9136  hardcode_direct=no
9137  hardcode_direct_absolute=no
9138  hardcode_libdir_flag_spec=
9139  hardcode_libdir_separator=
9140  hardcode_minus_L=no
9141  hardcode_shlibpath_var=unsupported
9142  inherit_rpath=no
9143  link_all_deplibs=unknown
9144  module_cmds=
9145  module_expsym_cmds=
9146  old_archive_from_new_cmds=
9147  old_archive_from_expsyms_cmds=
9148  thread_safe_flag_spec=
9149  whole_archive_flag_spec=
9150  # include_expsyms should be a list of space-separated symbols to be *always*
9151  # included in the symbol list
9152  include_expsyms=
9153  # exclude_expsyms can be an extended regexp of symbols to exclude
9154  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9155  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9156  # as well as any symbol that contains `d'.
9157  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9158  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9159  # platforms (ab)use it in PIC code, but their linkers get confused if
9160  # the symbol is explicitly referenced.  Since portable code cannot
9161  # rely on this symbol name, it's probably fine to never include it in
9162  # preloaded symbol tables.
9163  # Exclude shared library initialization/finalization symbols.
9164  extract_expsyms_cmds=
9165
9166  case $host_os in
9167  cygwin* | mingw* | pw32* | cegcc*)
9168    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9169    # When not using gcc, we currently assume that we are using
9170    # Microsoft Visual C++.
9171    if test "$GCC" != yes; then
9172      with_gnu_ld=no
9173    fi
9174    ;;
9175  interix*)
9176    # we just hope/assume this is gcc and not c89 (= MSVC++)
9177    with_gnu_ld=yes
9178    ;;
9179  openbsd*)
9180    with_gnu_ld=no
9181    ;;
9182  esac
9183
9184  ld_shlibs=yes
9185
9186  # On some targets, GNU ld is compatible enough with the native linker
9187  # that we're better off using the native interface for both.
9188  lt_use_gnu_ld_interface=no
9189  if test "$with_gnu_ld" = yes; then
9190    case $host_os in
9191      aix*)
9192	# The AIX port of GNU ld has always aspired to compatibility
9193	# with the native linker.  However, as the warning in the GNU ld
9194	# block says, versions before 2.19.5* couldn't really create working
9195	# shared libraries, regardless of the interface used.
9196	case `$LD -v 2>&1` in
9197	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9198	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9199	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9200	  *)
9201	    lt_use_gnu_ld_interface=yes
9202	    ;;
9203	esac
9204	;;
9205      *)
9206	lt_use_gnu_ld_interface=yes
9207	;;
9208    esac
9209  fi
9210
9211  if test "$lt_use_gnu_ld_interface" = yes; then
9212    # If archive_cmds runs LD, not CC, wlarc should be empty
9213    wlarc='${wl}'
9214
9215    # Set some defaults for GNU ld with shared library support. These
9216    # are reset later if shared libraries are not supported. Putting them
9217    # here allows them to be overridden if necessary.
9218    runpath_var=LD_RUN_PATH
9219    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9220    export_dynamic_flag_spec='${wl}--export-dynamic'
9221    # ancient GNU ld didn't support --whole-archive et. al.
9222    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9223      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9224    else
9225      whole_archive_flag_spec=
9226    fi
9227    supports_anon_versioning=no
9228    case `$LD -v 2>&1` in
9229      *GNU\ gold*) supports_anon_versioning=yes ;;
9230      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9231      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9232      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9233      *\ 2.11.*) ;; # other 2.11 versions
9234      *) supports_anon_versioning=yes ;;
9235    esac
9236
9237    # See if GNU ld supports shared libraries.
9238    case $host_os in
9239    aix[3-9]*)
9240      # On AIX/PPC, the GNU linker is very broken
9241      if test "$host_cpu" != ia64; then
9242	ld_shlibs=no
9243	cat <<_LT_EOF 1>&2
9244
9245*** Warning: the GNU linker, at least up to release 2.19, is reported
9246*** to be unable to reliably create shared libraries on AIX.
9247*** Therefore, libtool is disabling shared libraries support.  If you
9248*** really care for shared libraries, you may want to install binutils
9249*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9250*** You will then need to restart the configuration process.
9251
9252_LT_EOF
9253      fi
9254      ;;
9255
9256    amigaos*)
9257      case $host_cpu in
9258      powerpc)
9259            # see comment about AmigaOS4 .so support
9260            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261            archive_expsym_cmds=''
9262        ;;
9263      m68k)
9264            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)'
9265            hardcode_libdir_flag_spec='-L$libdir'
9266            hardcode_minus_L=yes
9267        ;;
9268      esac
9269      ;;
9270
9271    beos*)
9272      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273	allow_undefined_flag=unsupported
9274	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9275	# support --undefined.  This deserves some investigation.  FIXME
9276	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277      else
9278	ld_shlibs=no
9279      fi
9280      ;;
9281
9282    cygwin* | mingw* | pw32* | cegcc*)
9283      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9284      # as there is no search path for DLLs.
9285      hardcode_libdir_flag_spec='-L$libdir'
9286      export_dynamic_flag_spec='${wl}--export-all-symbols'
9287      allow_undefined_flag=unsupported
9288      always_export_symbols=no
9289      enable_shared_with_static_runtimes=yes
9290      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'
9291      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9292
9293      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9294        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9295	# If the export-symbols file already is a .def file (1st line
9296	# is EXPORTS), use it as is; otherwise, prepend...
9297	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9298	  cp $export_symbols $output_objdir/$soname.def;
9299	else
9300	  echo EXPORTS > $output_objdir/$soname.def;
9301	  cat $export_symbols >> $output_objdir/$soname.def;
9302	fi~
9303	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304      else
9305	ld_shlibs=no
9306      fi
9307      ;;
9308
9309    haiku*)
9310      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311      link_all_deplibs=yes
9312      ;;
9313
9314    interix[3-9]*)
9315      hardcode_direct=no
9316      hardcode_shlibpath_var=no
9317      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9318      export_dynamic_flag_spec='${wl}-E'
9319      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9320      # Instead, shared libraries are loaded at an image base (0x10000000 by
9321      # default) and relocated if they conflict, which is a slow very memory
9322      # consuming and fragmenting process.  To avoid this, we pick a random,
9323      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9324      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9325      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9326      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'
9327      ;;
9328
9329    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9330      tmp_diet=no
9331      if test "$host_os" = linux-dietlibc; then
9332	case $cc_basename in
9333	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9334	esac
9335      fi
9336      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9337	 && test "$tmp_diet" = no
9338      then
9339	tmp_addflag=' $pic_flag'
9340	tmp_sharedflag='-shared'
9341	case $cc_basename,$host_cpu in
9342        pgcc*)				# Portland Group C compiler
9343	  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'
9344	  tmp_addflag=' $pic_flag'
9345	  ;;
9346	pgf77* | pgf90* | pgf95* | pgfortran*)
9347					# Portland Group f77 and f90 compilers
9348	  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'
9349	  tmp_addflag=' $pic_flag -Mnomain' ;;
9350	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9351	  tmp_addflag=' -i_dynamic' ;;
9352	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9353	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9354	ifc* | ifort*)			# Intel Fortran compiler
9355	  tmp_addflag=' -nofor_main' ;;
9356	lf95*)				# Lahey Fortran 8.1
9357	  whole_archive_flag_spec=
9358	  tmp_sharedflag='--shared' ;;
9359	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9360	  tmp_sharedflag='-qmkshrobj'
9361	  tmp_addflag= ;;
9362	nvcc*)	# Cuda Compiler Driver 2.2
9363	  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'
9364	  compiler_needs_object=yes
9365	  ;;
9366	esac
9367	case `$CC -V 2>&1 | sed 5q` in
9368	*Sun\ C*)			# Sun C 5.9
9369	  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'
9370	  compiler_needs_object=yes
9371	  tmp_sharedflag='-G' ;;
9372	*Sun\ F*)			# Sun Fortran 8.3
9373	  tmp_sharedflag='-G' ;;
9374	esac
9375	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376
9377        if test "x$supports_anon_versioning" = xyes; then
9378          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9379	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9380	    echo "local: *; };" >> $output_objdir/$libname.ver~
9381	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9382        fi
9383
9384	case $cc_basename in
9385	xlf* | bgf* | bgxlf* | mpixlf*)
9386	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9387	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9388	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9390	  if test "x$supports_anon_versioning" = xyes; then
9391	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9392	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9393	      echo "local: *; };" >> $output_objdir/$libname.ver~
9394	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9395	  fi
9396	  ;;
9397	esac
9398      else
9399        ld_shlibs=no
9400      fi
9401      ;;
9402
9403    netbsd*)
9404      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9405	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9406	wlarc=
9407      else
9408	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410      fi
9411      ;;
9412
9413    solaris*)
9414      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9415	ld_shlibs=no
9416	cat <<_LT_EOF 1>&2
9417
9418*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9419*** create shared libraries on Solaris systems.  Therefore, libtool
9420*** is disabling shared libraries support.  We urge you to upgrade GNU
9421*** binutils to release 2.9.1 or newer.  Another option is to modify
9422*** your PATH or compiler configuration so that the native linker is
9423*** used, and then restart.
9424
9425_LT_EOF
9426      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9427	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429      else
9430	ld_shlibs=no
9431      fi
9432      ;;
9433
9434    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9435      case `$LD -v 2>&1` in
9436        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9437	ld_shlibs=no
9438	cat <<_LT_EOF 1>&2
9439
9440*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9441*** reliably create shared libraries on SCO systems.  Therefore, libtool
9442*** is disabling shared libraries support.  We urge you to upgrade GNU
9443*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9444*** your PATH or compiler configuration so that the native linker is
9445*** used, and then restart.
9446
9447_LT_EOF
9448	;;
9449	*)
9450	  # For security reasons, it is highly recommended that you always
9451	  # use absolute paths for naming shared libraries, and exclude the
9452	  # DT_RUNPATH tag from executables and libraries.  But doing so
9453	  # requires that you compile everything twice, which is a pain.
9454	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9455	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9458	  else
9459	    ld_shlibs=no
9460	  fi
9461	;;
9462      esac
9463      ;;
9464
9465    sunos4*)
9466      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9467      wlarc=
9468      hardcode_direct=yes
9469      hardcode_shlibpath_var=no
9470      ;;
9471
9472    *)
9473      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9474	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9476      else
9477	ld_shlibs=no
9478      fi
9479      ;;
9480    esac
9481
9482    if test "$ld_shlibs" = no; then
9483      runpath_var=
9484      hardcode_libdir_flag_spec=
9485      export_dynamic_flag_spec=
9486      whole_archive_flag_spec=
9487    fi
9488  else
9489    # PORTME fill in a description of your system's linker (not GNU ld)
9490    case $host_os in
9491    aix3*)
9492      allow_undefined_flag=unsupported
9493      always_export_symbols=yes
9494      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'
9495      # Note: this linker hardcodes the directories in LIBPATH if there
9496      # are no directories specified by -L.
9497      hardcode_minus_L=yes
9498      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9499	# Neither direct hardcoding nor static linking is supported with a
9500	# broken collect2.
9501	hardcode_direct=unsupported
9502      fi
9503      ;;
9504
9505    aix[4-9]*)
9506      if test "$host_cpu" = ia64; then
9507	# On IA64, the linker does run time linking by default, so we don't
9508	# have to do anything special.
9509	aix_use_runtimelinking=no
9510	exp_sym_flag='-Bexport'
9511	no_entry_flag=""
9512      else
9513	# If we're using GNU nm, then we don't want the "-C" option.
9514	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9515	# Also, AIX nm treats weak defined symbols like other global
9516	# defined symbols, whereas GNU nm marks them as "W".
9517	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9518	  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'
9519	else
9520	  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'
9521	fi
9522	aix_use_runtimelinking=no
9523
9524	# Test if we are trying to use run time linking or normal
9525	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9526	# need to do runtime linking.
9527	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9528	  for ld_flag in $LDFLAGS; do
9529	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9530	    aix_use_runtimelinking=yes
9531	    break
9532	  fi
9533	  done
9534	  ;;
9535	esac
9536
9537	exp_sym_flag='-bexport'
9538	no_entry_flag='-bnoentry'
9539      fi
9540
9541      # When large executables or shared objects are built, AIX ld can
9542      # have problems creating the table of contents.  If linking a library
9543      # or program results in "error TOC overflow" add -mminimal-toc to
9544      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9545      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9546
9547      archive_cmds=''
9548      hardcode_direct=yes
9549      hardcode_direct_absolute=yes
9550      hardcode_libdir_separator=':'
9551      link_all_deplibs=yes
9552      file_list_spec='${wl}-f,'
9553
9554      if test "$GCC" = yes; then
9555	case $host_os in aix4.[012]|aix4.[012].*)
9556	# We only want to do this on AIX 4.2 and lower, the check
9557	# below for broken collect2 doesn't work under 4.3+
9558	  collect2name=`${CC} -print-prog-name=collect2`
9559	  if test -f "$collect2name" &&
9560	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9561	  then
9562	  # We have reworked collect2
9563	  :
9564	  else
9565	  # We have old collect2
9566	  hardcode_direct=unsupported
9567	  # It fails to find uninstalled libraries when the uninstalled
9568	  # path is not listed in the libpath.  Setting hardcode_minus_L
9569	  # to unsupported forces relinking
9570	  hardcode_minus_L=yes
9571	  hardcode_libdir_flag_spec='-L$libdir'
9572	  hardcode_libdir_separator=
9573	  fi
9574	  ;;
9575	esac
9576	shared_flag='-shared'
9577	if test "$aix_use_runtimelinking" = yes; then
9578	  shared_flag="$shared_flag "'${wl}-G'
9579	fi
9580      else
9581	# not using gcc
9582	if test "$host_cpu" = ia64; then
9583	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9584	# chokes on -Wl,-G. The following line is correct:
9585	  shared_flag='-G'
9586	else
9587	  if test "$aix_use_runtimelinking" = yes; then
9588	    shared_flag='${wl}-G'
9589	  else
9590	    shared_flag='${wl}-bM:SRE'
9591	  fi
9592	fi
9593      fi
9594
9595      export_dynamic_flag_spec='${wl}-bexpall'
9596      # It seems that -bexpall does not export symbols beginning with
9597      # underscore (_), so it is better to generate a list of symbols to export.
9598      always_export_symbols=yes
9599      if test "$aix_use_runtimelinking" = yes; then
9600	# Warning - without using the other runtime loading flags (-brtl),
9601	# -berok will link without error, but may produce a broken library.
9602	allow_undefined_flag='-berok'
9603        # Determine the default libpath from the value encoded in an
9604        # empty executable.
9605        if test "${lt_cv_aix_libpath+set}" = set; then
9606  aix_libpath=$lt_cv_aix_libpath
9607else
9608  if ${lt_cv_aix_libpath_+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613
9614int
9615main ()
9616{
9617
9618  ;
9619  return 0;
9620}
9621_ACEOF
9622if ac_fn_c_try_link "$LINENO"; then :
9623
9624  lt_aix_libpath_sed='
9625      /Import File Strings/,/^$/ {
9626	  /^0/ {
9627	      s/^0  *\([^ ]*\) *$/\1/
9628	      p
9629	  }
9630      }'
9631  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632  # Check for a 64-bit object if we didn't find anything.
9633  if test -z "$lt_cv_aix_libpath_"; then
9634    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635  fi
9636fi
9637rm -f core conftest.err conftest.$ac_objext \
9638    conftest$ac_exeext conftest.$ac_ext
9639  if test -z "$lt_cv_aix_libpath_"; then
9640    lt_cv_aix_libpath_="/usr/lib:/lib"
9641  fi
9642
9643fi
9644
9645  aix_libpath=$lt_cv_aix_libpath_
9646fi
9647
9648        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649        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"
9650      else
9651	if test "$host_cpu" = ia64; then
9652	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653	  allow_undefined_flag="-z nodefs"
9654	  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"
9655	else
9656	 # Determine the default libpath from the value encoded in an
9657	 # empty executable.
9658	 if test "${lt_cv_aix_libpath+set}" = set; then
9659  aix_libpath=$lt_cv_aix_libpath
9660else
9661  if ${lt_cv_aix_libpath_+:} false; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h.  */
9666
9667int
9668main ()
9669{
9670
9671  ;
9672  return 0;
9673}
9674_ACEOF
9675if ac_fn_c_try_link "$LINENO"; then :
9676
9677  lt_aix_libpath_sed='
9678      /Import File Strings/,/^$/ {
9679	  /^0/ {
9680	      s/^0  *\([^ ]*\) *$/\1/
9681	      p
9682	  }
9683      }'
9684  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9685  # Check for a 64-bit object if we didn't find anything.
9686  if test -z "$lt_cv_aix_libpath_"; then
9687    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688  fi
9689fi
9690rm -f core conftest.err conftest.$ac_objext \
9691    conftest$ac_exeext conftest.$ac_ext
9692  if test -z "$lt_cv_aix_libpath_"; then
9693    lt_cv_aix_libpath_="/usr/lib:/lib"
9694  fi
9695
9696fi
9697
9698  aix_libpath=$lt_cv_aix_libpath_
9699fi
9700
9701	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9702	  # Warning - without using the other run time loading flags,
9703	  # -berok will link without error, but may produce a broken library.
9704	  no_undefined_flag=' ${wl}-bernotok'
9705	  allow_undefined_flag=' ${wl}-berok'
9706	  if test "$with_gnu_ld" = yes; then
9707	    # We only use this code for GNU lds that support --whole-archive.
9708	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9709	  else
9710	    # Exported symbols can be pulled into shared objects from archives
9711	    whole_archive_flag_spec='$convenience'
9712	  fi
9713	  archive_cmds_need_lc=yes
9714	  # This is similar to how AIX traditionally builds its shared libraries.
9715	  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'
9716	fi
9717      fi
9718      ;;
9719
9720    amigaos*)
9721      case $host_cpu in
9722      powerpc)
9723            # see comment about AmigaOS4 .so support
9724            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725            archive_expsym_cmds=''
9726        ;;
9727      m68k)
9728            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)'
9729            hardcode_libdir_flag_spec='-L$libdir'
9730            hardcode_minus_L=yes
9731        ;;
9732      esac
9733      ;;
9734
9735    bsdi[45]*)
9736      export_dynamic_flag_spec=-rdynamic
9737      ;;
9738
9739    cygwin* | mingw* | pw32* | cegcc*)
9740      # When not using gcc, we currently assume that we are using
9741      # Microsoft Visual C++.
9742      # hardcode_libdir_flag_spec is actually meaningless, as there is
9743      # no search path for DLLs.
9744      case $cc_basename in
9745      cl*)
9746	# Native MSVC
9747	hardcode_libdir_flag_spec=' '
9748	allow_undefined_flag=unsupported
9749	always_export_symbols=yes
9750	file_list_spec='@'
9751	# Tell ltmain to make .lib files, not .a files.
9752	libext=lib
9753	# Tell ltmain to make .dll files, not .so files.
9754	shrext_cmds=".dll"
9755	# FIXME: Setting linknames here is a bad hack.
9756	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9757	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9758	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9759	  else
9760	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9761	  fi~
9762	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9763	  linknames='
9764	# The linker will not automatically build a static lib if we build a DLL.
9765	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9766	enable_shared_with_static_runtimes=yes
9767	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9768	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9769	# Don't use ranlib
9770	old_postinstall_cmds='chmod 644 $oldlib'
9771	postlink_cmds='lt_outputfile="@OUTPUT@"~
9772	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9773	  case $lt_outputfile in
9774	    *.exe|*.EXE) ;;
9775	    *)
9776	      lt_outputfile="$lt_outputfile.exe"
9777	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9778	      ;;
9779	  esac~
9780	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9781	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9782	    $RM "$lt_outputfile.manifest";
9783	  fi'
9784	;;
9785      *)
9786	# Assume MSVC wrapper
9787	hardcode_libdir_flag_spec=' '
9788	allow_undefined_flag=unsupported
9789	# Tell ltmain to make .lib files, not .a files.
9790	libext=lib
9791	# Tell ltmain to make .dll files, not .so files.
9792	shrext_cmds=".dll"
9793	# FIXME: Setting linknames here is a bad hack.
9794	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9795	# The linker will automatically build a .lib file if we build a DLL.
9796	old_archive_from_new_cmds='true'
9797	# FIXME: Should let the user specify the lib program.
9798	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9799	enable_shared_with_static_runtimes=yes
9800	;;
9801      esac
9802      ;;
9803
9804    darwin* | rhapsody*)
9805
9806
9807  archive_cmds_need_lc=no
9808  hardcode_direct=no
9809  hardcode_automatic=yes
9810  hardcode_shlibpath_var=unsupported
9811  if test "$lt_cv_ld_force_load" = "yes"; then
9812    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\"`'
9813
9814  else
9815    whole_archive_flag_spec=''
9816  fi
9817  link_all_deplibs=yes
9818  allow_undefined_flag="$_lt_dar_allow_undefined"
9819  case $cc_basename in
9820     ifort*) _lt_dar_can_shared=yes ;;
9821     *) _lt_dar_can_shared=$GCC ;;
9822  esac
9823  if test "$_lt_dar_can_shared" = "yes"; then
9824    output_verbose_link_cmd=func_echo_all
9825    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9826    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9827    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}"
9828    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}"
9829
9830  else
9831  ld_shlibs=no
9832  fi
9833
9834      ;;
9835
9836    dgux*)
9837      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838      hardcode_libdir_flag_spec='-L$libdir'
9839      hardcode_shlibpath_var=no
9840      ;;
9841
9842    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9843    # support.  Future versions do this automatically, but an explicit c++rt0.o
9844    # does not break anything, and helps significantly (at the cost of a little
9845    # extra space).
9846    freebsd2.2*)
9847      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9848      hardcode_libdir_flag_spec='-R$libdir'
9849      hardcode_direct=yes
9850      hardcode_shlibpath_var=no
9851      ;;
9852
9853    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9854    freebsd2.*)
9855      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9856      hardcode_direct=yes
9857      hardcode_minus_L=yes
9858      hardcode_shlibpath_var=no
9859      ;;
9860
9861    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9862    freebsd* | dragonfly*)
9863      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864      hardcode_libdir_flag_spec='-R$libdir'
9865      hardcode_direct=yes
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    hpux9*)
9870      if test "$GCC" = yes; then
9871	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'
9872      else
9873	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'
9874      fi
9875      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9876      hardcode_libdir_separator=:
9877      hardcode_direct=yes
9878
9879      # hardcode_minus_L: Not really in the search PATH,
9880      # but as the default location of the library.
9881      hardcode_minus_L=yes
9882      export_dynamic_flag_spec='${wl}-E'
9883      ;;
9884
9885    hpux10*)
9886      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9887	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888      else
9889	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9890      fi
9891      if test "$with_gnu_ld" = no; then
9892	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9893	hardcode_libdir_separator=:
9894	hardcode_direct=yes
9895	hardcode_direct_absolute=yes
9896	export_dynamic_flag_spec='${wl}-E'
9897	# hardcode_minus_L: Not really in the search PATH,
9898	# but as the default location of the library.
9899	hardcode_minus_L=yes
9900      fi
9901      ;;
9902
9903    hpux11*)
9904      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9905	case $host_cpu in
9906	hppa*64*)
9907	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9908	  ;;
9909	ia64*)
9910	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9911	  ;;
9912	*)
9913	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914	  ;;
9915	esac
9916      else
9917	case $host_cpu in
9918	hppa*64*)
9919	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9920	  ;;
9921	ia64*)
9922	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9923	  ;;
9924	*)
9925
9926	  # Older versions of the 11.00 compiler do not understand -b yet
9927	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9928	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9929$as_echo_n "checking if $CC understands -b... " >&6; }
9930if ${lt_cv_prog_compiler__b+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  lt_cv_prog_compiler__b=no
9934   save_LDFLAGS="$LDFLAGS"
9935   LDFLAGS="$LDFLAGS -b"
9936   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9937   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9938     # The linker can only warn and ignore the option if not recognized
9939     # So say no if there are warnings
9940     if test -s conftest.err; then
9941       # Append any errors to the config.log.
9942       cat conftest.err 1>&5
9943       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9944       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945       if diff conftest.exp conftest.er2 >/dev/null; then
9946         lt_cv_prog_compiler__b=yes
9947       fi
9948     else
9949       lt_cv_prog_compiler__b=yes
9950     fi
9951   fi
9952   $RM -r conftest*
9953   LDFLAGS="$save_LDFLAGS"
9954
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9957$as_echo "$lt_cv_prog_compiler__b" >&6; }
9958
9959if test x"$lt_cv_prog_compiler__b" = xyes; then
9960    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961else
9962    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963fi
9964
9965	  ;;
9966	esac
9967      fi
9968      if test "$with_gnu_ld" = no; then
9969	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9970	hardcode_libdir_separator=:
9971
9972	case $host_cpu in
9973	hppa*64*|ia64*)
9974	  hardcode_direct=no
9975	  hardcode_shlibpath_var=no
9976	  ;;
9977	*)
9978	  hardcode_direct=yes
9979	  hardcode_direct_absolute=yes
9980	  export_dynamic_flag_spec='${wl}-E'
9981
9982	  # hardcode_minus_L: Not really in the search PATH,
9983	  # but as the default location of the library.
9984	  hardcode_minus_L=yes
9985	  ;;
9986	esac
9987      fi
9988      ;;
9989
9990    irix5* | irix6* | nonstopux*)
9991      if test "$GCC" = yes; then
9992	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'
9993	# Try to use the -exported_symbol ld option, if it does not
9994	# work, assume that -exports_file does not work either and
9995	# implicitly export all symbols.
9996	# This should be the same for all languages, so no per-tag cache variable.
9997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9998$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9999if ${lt_cv_irix_exported_symbol+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  save_LDFLAGS="$LDFLAGS"
10003	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10004	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int foo (void) { return 0; }
10007_ACEOF
10008if ac_fn_c_try_link "$LINENO"; then :
10009  lt_cv_irix_exported_symbol=yes
10010else
10011  lt_cv_irix_exported_symbol=no
10012fi
10013rm -f core conftest.err conftest.$ac_objext \
10014    conftest$ac_exeext conftest.$ac_ext
10015           LDFLAGS="$save_LDFLAGS"
10016fi
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10018$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10019	if test "$lt_cv_irix_exported_symbol" = yes; then
10020          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'
10021	fi
10022      else
10023	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'
10024	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'
10025      fi
10026      archive_cmds_need_lc='no'
10027      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10028      hardcode_libdir_separator=:
10029      inherit_rpath=yes
10030      link_all_deplibs=yes
10031      ;;
10032
10033    netbsd*)
10034      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10036      else
10037	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10038      fi
10039      hardcode_libdir_flag_spec='-R$libdir'
10040      hardcode_direct=yes
10041      hardcode_shlibpath_var=no
10042      ;;
10043
10044    newsos6)
10045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046      hardcode_direct=yes
10047      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10048      hardcode_libdir_separator=:
10049      hardcode_shlibpath_var=no
10050      ;;
10051
10052    *nto* | *qnx*)
10053      ;;
10054
10055    openbsd*)
10056      if test -f /usr/libexec/ld.so; then
10057	hardcode_direct=yes
10058	hardcode_shlibpath_var=no
10059	hardcode_direct_absolute=yes
10060	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10061	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10062	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10063	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10064	  export_dynamic_flag_spec='${wl}-E'
10065	else
10066	  case $host_os in
10067	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10068	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10069	     hardcode_libdir_flag_spec='-R$libdir'
10070	     ;;
10071	   *)
10072	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10074	     ;;
10075	  esac
10076	fi
10077      else
10078	ld_shlibs=no
10079      fi
10080      ;;
10081
10082    os2*)
10083      hardcode_libdir_flag_spec='-L$libdir'
10084      hardcode_minus_L=yes
10085      allow_undefined_flag=unsupported
10086      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'
10087      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10088      ;;
10089
10090    osf3*)
10091      if test "$GCC" = yes; then
10092	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10093	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'
10094      else
10095	allow_undefined_flag=' -expect_unresolved \*'
10096	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'
10097      fi
10098      archive_cmds_need_lc='no'
10099      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10100      hardcode_libdir_separator=:
10101      ;;
10102
10103    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10104      if test "$GCC" = yes; then
10105	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10106	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'
10107	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108      else
10109	allow_undefined_flag=' -expect_unresolved \*'
10110	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'
10111	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~
10112	$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'
10113
10114	# Both c and cxx compiler support -rpath directly
10115	hardcode_libdir_flag_spec='-rpath $libdir'
10116      fi
10117      archive_cmds_need_lc='no'
10118      hardcode_libdir_separator=:
10119      ;;
10120
10121    solaris*)
10122      no_undefined_flag=' -z defs'
10123      if test "$GCC" = yes; then
10124	wlarc='${wl}'
10125	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10126	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10127	  $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'
10128      else
10129	case `$CC -V 2>&1` in
10130	*"Compilers 5.0"*)
10131	  wlarc=''
10132	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10135	  ;;
10136	*)
10137	  wlarc='${wl}'
10138	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10139	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10140	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10141	  ;;
10142	esac
10143      fi
10144      hardcode_libdir_flag_spec='-R$libdir'
10145      hardcode_shlibpath_var=no
10146      case $host_os in
10147      solaris2.[0-5] | solaris2.[0-5].*) ;;
10148      *)
10149	# The compiler driver will combine and reorder linker options,
10150	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10151	# but is careful enough not to reorder.
10152	# Supported since Solaris 2.6 (maybe 2.5.1?)
10153	if test "$GCC" = yes; then
10154	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10155	else
10156	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10157	fi
10158	;;
10159      esac
10160      link_all_deplibs=yes
10161      ;;
10162
10163    sunos4*)
10164      if test "x$host_vendor" = xsequent; then
10165	# Use $CC to link under sequent, because it throws in some extra .o
10166	# files that make .init and .fini sections work.
10167	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10168      else
10169	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10170      fi
10171      hardcode_libdir_flag_spec='-L$libdir'
10172      hardcode_direct=yes
10173      hardcode_minus_L=yes
10174      hardcode_shlibpath_var=no
10175      ;;
10176
10177    sysv4)
10178      case $host_vendor in
10179	sni)
10180	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181	  hardcode_direct=yes # is this really true???
10182	;;
10183	siemens)
10184	  ## LD is ld it makes a PLAMLIB
10185	  ## CC just makes a GrossModule.
10186	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10187	  reload_cmds='$CC -r -o $output$reload_objs'
10188	  hardcode_direct=no
10189        ;;
10190	motorola)
10191	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10193	;;
10194      esac
10195      runpath_var='LD_RUN_PATH'
10196      hardcode_shlibpath_var=no
10197      ;;
10198
10199    sysv4.3*)
10200      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201      hardcode_shlibpath_var=no
10202      export_dynamic_flag_spec='-Bexport'
10203      ;;
10204
10205    sysv4*MP*)
10206      if test -d /usr/nec; then
10207	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208	hardcode_shlibpath_var=no
10209	runpath_var=LD_RUN_PATH
10210	hardcode_runpath_var=yes
10211	ld_shlibs=yes
10212      fi
10213      ;;
10214
10215    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10216      no_undefined_flag='${wl}-z,text'
10217      archive_cmds_need_lc=no
10218      hardcode_shlibpath_var=no
10219      runpath_var='LD_RUN_PATH'
10220
10221      if test "$GCC" = yes; then
10222	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224      else
10225	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10227      fi
10228      ;;
10229
10230    sysv5* | sco3.2v5* | sco5v6*)
10231      # Note: We can NOT use -z defs as we might desire, because we do not
10232      # link with -lc, and that would cause any symbols used from libc to
10233      # always be unresolved, which means just about no library would
10234      # ever link correctly.  If we're not using GNU ld we use -z text
10235      # though, which does catch some bad symbols but isn't as heavy-handed
10236      # as -z defs.
10237      no_undefined_flag='${wl}-z,text'
10238      allow_undefined_flag='${wl}-z,nodefs'
10239      archive_cmds_need_lc=no
10240      hardcode_shlibpath_var=no
10241      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10242      hardcode_libdir_separator=':'
10243      link_all_deplibs=yes
10244      export_dynamic_flag_spec='${wl}-Bexport'
10245      runpath_var='LD_RUN_PATH'
10246
10247      if test "$GCC" = yes; then
10248	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250      else
10251	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253      fi
10254      ;;
10255
10256    uts4*)
10257      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258      hardcode_libdir_flag_spec='-L$libdir'
10259      hardcode_shlibpath_var=no
10260      ;;
10261
10262    *)
10263      ld_shlibs=no
10264      ;;
10265    esac
10266
10267    if test x$host_vendor = xsni; then
10268      case $host in
10269      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10270	export_dynamic_flag_spec='${wl}-Blargedynsym'
10271	;;
10272      esac
10273    fi
10274  fi
10275
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10277$as_echo "$ld_shlibs" >&6; }
10278test "$ld_shlibs" = no && can_build_shared=no
10279
10280with_gnu_ld=$with_gnu_ld
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296#
10297# Do we need to explicitly link libc?
10298#
10299case "x$archive_cmds_need_lc" in
10300x|xyes)
10301  # Assume -lc should be added
10302  archive_cmds_need_lc=yes
10303
10304  if test "$enable_shared" = yes && test "$GCC" = yes; then
10305    case $archive_cmds in
10306    *'~'*)
10307      # FIXME: we may have to deal with multi-command sequences.
10308      ;;
10309    '$CC '*)
10310      # Test whether the compiler implicitly links with -lc since on some
10311      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10312      # to ld, don't add -lc before -lgcc.
10313      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10314$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10315if ${lt_cv_archive_cmds_need_lc+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  $RM conftest*
10319	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10320
10321	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10322  (eval $ac_compile) 2>&5
10323  ac_status=$?
10324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325  test $ac_status = 0; } 2>conftest.err; then
10326	  soname=conftest
10327	  lib=conftest
10328	  libobjs=conftest.$ac_objext
10329	  deplibs=
10330	  wl=$lt_prog_compiler_wl
10331	  pic_flag=$lt_prog_compiler_pic
10332	  compiler_flags=-v
10333	  linker_flags=-v
10334	  verstring=
10335	  output_objdir=.
10336	  libname=conftest
10337	  lt_save_allow_undefined_flag=$allow_undefined_flag
10338	  allow_undefined_flag=
10339	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10340  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10341  ac_status=$?
10342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10343  test $ac_status = 0; }
10344	  then
10345	    lt_cv_archive_cmds_need_lc=no
10346	  else
10347	    lt_cv_archive_cmds_need_lc=yes
10348	  fi
10349	  allow_undefined_flag=$lt_save_allow_undefined_flag
10350	else
10351	  cat conftest.err 1>&5
10352	fi
10353	$RM conftest*
10354
10355fi
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10357$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10358      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10359      ;;
10360    esac
10361  fi
10362  ;;
10363esac
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10517$as_echo_n "checking dynamic linker characteristics... " >&6; }
10518
10519if test "$GCC" = yes; then
10520  case $host_os in
10521    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10522    *) lt_awk_arg="/^libraries:/" ;;
10523  esac
10524  case $host_os in
10525    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10526    *) lt_sed_strip_eq="s,=/,/,g" ;;
10527  esac
10528  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10529  case $lt_search_path_spec in
10530  *\;*)
10531    # if the path contains ";" then we assume it to be the separator
10532    # otherwise default to the standard path separator (i.e. ":") - it is
10533    # assumed that no part of a normal pathname contains ";" but that should
10534    # okay in the real world where ";" in dirpaths is itself problematic.
10535    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10536    ;;
10537  *)
10538    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10539    ;;
10540  esac
10541  # Ok, now we have the path, separated by spaces, we can step through it
10542  # and add multilib dir if necessary.
10543  lt_tmp_lt_search_path_spec=
10544  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10545  for lt_sys_path in $lt_search_path_spec; do
10546    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10547      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10548    else
10549      test -d "$lt_sys_path" && \
10550	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10551    fi
10552  done
10553  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10554BEGIN {RS=" "; FS="/|\n";} {
10555  lt_foo="";
10556  lt_count=0;
10557  for (lt_i = NF; lt_i > 0; lt_i--) {
10558    if ($lt_i != "" && $lt_i != ".") {
10559      if ($lt_i == "..") {
10560        lt_count++;
10561      } else {
10562        if (lt_count == 0) {
10563          lt_foo="/" $lt_i lt_foo;
10564        } else {
10565          lt_count--;
10566        }
10567      }
10568    }
10569  }
10570  if (lt_foo != "") { lt_freq[lt_foo]++; }
10571  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572}'`
10573  # AWK program above erroneously prepends '/' to C:/dos/paths
10574  # for these hosts.
10575  case $host_os in
10576    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10577      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10578  esac
10579  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10580else
10581  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10582fi
10583library_names_spec=
10584libname_spec='lib$name'
10585soname_spec=
10586shrext_cmds=".so"
10587postinstall_cmds=
10588postuninstall_cmds=
10589finish_cmds=
10590finish_eval=
10591shlibpath_var=
10592shlibpath_overrides_runpath=unknown
10593version_type=none
10594dynamic_linker="$host_os ld.so"
10595sys_lib_dlsearch_path_spec="/lib /usr/lib"
10596need_lib_prefix=unknown
10597hardcode_into_libs=no
10598
10599# when you set need_version to no, make sure it does not cause -set_version
10600# flags to be left without arguments
10601need_version=unknown
10602
10603case $host_os in
10604aix3*)
10605  version_type=linux # correct to gnu/linux during the next big refactor
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10607  shlibpath_var=LIBPATH
10608
10609  # AIX 3 has no versioning support, so we append a major version to the name.
10610  soname_spec='${libname}${release}${shared_ext}$major'
10611  ;;
10612
10613aix[4-9]*)
10614  version_type=linux # correct to gnu/linux during the next big refactor
10615  need_lib_prefix=no
10616  need_version=no
10617  hardcode_into_libs=yes
10618  if test "$host_cpu" = ia64; then
10619    # AIX 5 supports IA64
10620    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10621    shlibpath_var=LD_LIBRARY_PATH
10622  else
10623    # With GCC up to 2.95.x, collect2 would create an import file
10624    # for dependence libraries.  The import file would start with
10625    # the line `#! .'.  This would cause the generated library to
10626    # depend on `.', always an invalid library.  This was fixed in
10627    # development snapshots of GCC prior to 3.0.
10628    case $host_os in
10629      aix4 | aix4.[01] | aix4.[01].*)
10630      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10631	   echo ' yes '
10632	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10633	:
10634      else
10635	can_build_shared=no
10636      fi
10637      ;;
10638    esac
10639    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10640    # soname into executable. Probably we can add versioning support to
10641    # collect2, so additional links can be useful in future.
10642    if test "$aix_use_runtimelinking" = yes; then
10643      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10644      # instead of lib<name>.a to let people know that these are not
10645      # typical AIX shared libraries.
10646      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647    else
10648      # We preserve .a as extension for shared libraries through AIX4.2
10649      # and later when we are not doing run time linking.
10650      library_names_spec='${libname}${release}.a $libname.a'
10651      soname_spec='${libname}${release}${shared_ext}$major'
10652    fi
10653    shlibpath_var=LIBPATH
10654  fi
10655  ;;
10656
10657amigaos*)
10658  case $host_cpu in
10659  powerpc)
10660    # Since July 2007 AmigaOS4 officially supports .so libraries.
10661    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663    ;;
10664  m68k)
10665    library_names_spec='$libname.ixlibrary $libname.a'
10666    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10667    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'
10668    ;;
10669  esac
10670  ;;
10671
10672beos*)
10673  library_names_spec='${libname}${shared_ext}'
10674  dynamic_linker="$host_os ld.so"
10675  shlibpath_var=LIBRARY_PATH
10676  ;;
10677
10678bsdi[45]*)
10679  version_type=linux # correct to gnu/linux during the next big refactor
10680  need_version=no
10681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682  soname_spec='${libname}${release}${shared_ext}$major'
10683  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10684  shlibpath_var=LD_LIBRARY_PATH
10685  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10686  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10687  # the default ld.so.conf also contains /usr/contrib/lib and
10688  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10689  # libtool to hard-code these into programs
10690  ;;
10691
10692cygwin* | mingw* | pw32* | cegcc*)
10693  version_type=windows
10694  shrext_cmds=".dll"
10695  need_version=no
10696  need_lib_prefix=no
10697
10698  case $GCC,$cc_basename in
10699  yes,*)
10700    # gcc
10701    library_names_spec='$libname.dll.a'
10702    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10703    postinstall_cmds='base_file=`basename \${file}`~
10704      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10705      dldir=$destdir/`dirname \$dlpath`~
10706      test -d \$dldir || mkdir -p \$dldir~
10707      $install_prog $dir/$dlname \$dldir/$dlname~
10708      chmod a+x \$dldir/$dlname~
10709      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10710        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10711      fi'
10712    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10713      dlpath=$dir/\$dldll~
10714       $RM \$dlpath'
10715    shlibpath_overrides_runpath=yes
10716
10717    case $host_os in
10718    cygwin*)
10719      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10720      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10721
10722      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10723      ;;
10724    mingw* | cegcc*)
10725      # MinGW DLLs use traditional 'lib' prefix
10726      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10727      ;;
10728    pw32*)
10729      # pw32 DLLs use 'pw' prefix rather than 'lib'
10730      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731      ;;
10732    esac
10733    dynamic_linker='Win32 ld.exe'
10734    ;;
10735
10736  *,cl*)
10737    # Native MSVC
10738    libname_spec='$name'
10739    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740    library_names_spec='${libname}.dll.lib'
10741
10742    case $build_os in
10743    mingw*)
10744      sys_lib_search_path_spec=
10745      lt_save_ifs=$IFS
10746      IFS=';'
10747      for lt_path in $LIB
10748      do
10749        IFS=$lt_save_ifs
10750        # Let DOS variable expansion print the short 8.3 style file name.
10751        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10752        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10753      done
10754      IFS=$lt_save_ifs
10755      # Convert to MSYS style.
10756      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10757      ;;
10758    cygwin*)
10759      # Convert to unix form, then to dos form, then back to unix form
10760      # but this time dos style (no spaces!) so that the unix form looks
10761      # like /cygdrive/c/PROGRA~1:/cygdr...
10762      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10763      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10764      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10765      ;;
10766    *)
10767      sys_lib_search_path_spec="$LIB"
10768      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10769        # It is most probably a Windows format PATH.
10770        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10771      else
10772        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10773      fi
10774      # FIXME: find the short name or the path components, as spaces are
10775      # common. (e.g. "Program Files" -> "PROGRA~1")
10776      ;;
10777    esac
10778
10779    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10780    postinstall_cmds='base_file=`basename \${file}`~
10781      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10782      dldir=$destdir/`dirname \$dlpath`~
10783      test -d \$dldir || mkdir -p \$dldir~
10784      $install_prog $dir/$dlname \$dldir/$dlname'
10785    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10786      dlpath=$dir/\$dldll~
10787       $RM \$dlpath'
10788    shlibpath_overrides_runpath=yes
10789    dynamic_linker='Win32 link.exe'
10790    ;;
10791
10792  *)
10793    # Assume MSVC wrapper
10794    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10795    dynamic_linker='Win32 ld.exe'
10796    ;;
10797  esac
10798  # FIXME: first we should search . and the directory the executable is in
10799  shlibpath_var=PATH
10800  ;;
10801
10802darwin* | rhapsody*)
10803  dynamic_linker="$host_os dyld"
10804  version_type=darwin
10805  need_lib_prefix=no
10806  need_version=no
10807  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10808  soname_spec='${libname}${release}${major}$shared_ext'
10809  shlibpath_overrides_runpath=yes
10810  shlibpath_var=DYLD_LIBRARY_PATH
10811  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10812
10813  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10814  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10815  ;;
10816
10817dgux*)
10818  version_type=linux # correct to gnu/linux during the next big refactor
10819  need_lib_prefix=no
10820  need_version=no
10821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10822  soname_spec='${libname}${release}${shared_ext}$major'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  ;;
10825
10826freebsd* | dragonfly*)
10827  # DragonFly does not have aout.  When/if they implement a new
10828  # versioning mechanism, adjust this.
10829  if test -x /usr/bin/objformat; then
10830    objformat=`/usr/bin/objformat`
10831  else
10832    case $host_os in
10833    freebsd[23].*) objformat=aout ;;
10834    *) objformat=elf ;;
10835    esac
10836  fi
10837  version_type=freebsd-$objformat
10838  case $version_type in
10839    freebsd-elf*)
10840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10841      need_version=no
10842      need_lib_prefix=no
10843      ;;
10844    freebsd-*)
10845      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10846      need_version=yes
10847      ;;
10848  esac
10849  shlibpath_var=LD_LIBRARY_PATH
10850  case $host_os in
10851  freebsd2.*)
10852    shlibpath_overrides_runpath=yes
10853    ;;
10854  freebsd3.[01]* | freebsdelf3.[01]*)
10855    shlibpath_overrides_runpath=yes
10856    hardcode_into_libs=yes
10857    ;;
10858  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10859  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10860    shlibpath_overrides_runpath=no
10861    hardcode_into_libs=yes
10862    ;;
10863  *) # from 4.6 on, and DragonFly
10864    shlibpath_overrides_runpath=yes
10865    hardcode_into_libs=yes
10866    ;;
10867  esac
10868  ;;
10869
10870gnu*)
10871  version_type=linux # correct to gnu/linux during the next big refactor
10872  need_lib_prefix=no
10873  need_version=no
10874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10875  soname_spec='${libname}${release}${shared_ext}$major'
10876  shlibpath_var=LD_LIBRARY_PATH
10877  shlibpath_overrides_runpath=no
10878  hardcode_into_libs=yes
10879  ;;
10880
10881haiku*)
10882  version_type=linux # correct to gnu/linux during the next big refactor
10883  need_lib_prefix=no
10884  need_version=no
10885  dynamic_linker="$host_os runtime_loader"
10886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10887  soname_spec='${libname}${release}${shared_ext}$major'
10888  shlibpath_var=LIBRARY_PATH
10889  shlibpath_overrides_runpath=yes
10890  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10891  hardcode_into_libs=yes
10892  ;;
10893
10894hpux9* | hpux10* | hpux11*)
10895  # Give a soname corresponding to the major version so that dld.sl refuses to
10896  # link against other versions.
10897  version_type=sunos
10898  need_lib_prefix=no
10899  need_version=no
10900  case $host_cpu in
10901  ia64*)
10902    shrext_cmds='.so'
10903    hardcode_into_libs=yes
10904    dynamic_linker="$host_os dld.so"
10905    shlibpath_var=LD_LIBRARY_PATH
10906    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908    soname_spec='${libname}${release}${shared_ext}$major'
10909    if test "X$HPUX_IA64_MODE" = X32; then
10910      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10911    else
10912      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10913    fi
10914    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10915    ;;
10916  hppa*64*)
10917    shrext_cmds='.sl'
10918    hardcode_into_libs=yes
10919    dynamic_linker="$host_os dld.sl"
10920    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10921    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10922    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923    soname_spec='${libname}${release}${shared_ext}$major'
10924    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10925    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10926    ;;
10927  *)
10928    shrext_cmds='.sl'
10929    dynamic_linker="$host_os dld.sl"
10930    shlibpath_var=SHLIB_PATH
10931    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933    soname_spec='${libname}${release}${shared_ext}$major'
10934    ;;
10935  esac
10936  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10937  postinstall_cmds='chmod 555 $lib'
10938  # or fails outright, so override atomically:
10939  install_override_mode=555
10940  ;;
10941
10942interix[3-9]*)
10943  version_type=linux # correct to gnu/linux during the next big refactor
10944  need_lib_prefix=no
10945  need_version=no
10946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10947  soname_spec='${libname}${release}${shared_ext}$major'
10948  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10949  shlibpath_var=LD_LIBRARY_PATH
10950  shlibpath_overrides_runpath=no
10951  hardcode_into_libs=yes
10952  ;;
10953
10954irix5* | irix6* | nonstopux*)
10955  case $host_os in
10956    nonstopux*) version_type=nonstopux ;;
10957    *)
10958	if test "$lt_cv_prog_gnu_ld" = yes; then
10959		version_type=linux # correct to gnu/linux during the next big refactor
10960	else
10961		version_type=irix
10962	fi ;;
10963  esac
10964  need_lib_prefix=no
10965  need_version=no
10966  soname_spec='${libname}${release}${shared_ext}$major'
10967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10968  case $host_os in
10969  irix5* | nonstopux*)
10970    libsuff= shlibsuff=
10971    ;;
10972  *)
10973    case $LD in # libtool.m4 will add one of these switches to LD
10974    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10975      libsuff= shlibsuff= libmagic=32-bit;;
10976    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10977      libsuff=32 shlibsuff=N32 libmagic=N32;;
10978    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10979      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10980    *) libsuff= shlibsuff= libmagic=never-match;;
10981    esac
10982    ;;
10983  esac
10984  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10985  shlibpath_overrides_runpath=no
10986  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10987  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10988  hardcode_into_libs=yes
10989  ;;
10990
10991# No shared lib support for Linux oldld, aout, or coff.
10992linux*oldld* | linux*aout* | linux*coff*)
10993  dynamic_linker=no
10994  ;;
10995
10996# This must be glibc/ELF.
10997linux* | k*bsd*-gnu | kopensolaris*-gnu)
10998  version_type=linux # correct to gnu/linux during the next big refactor
10999  need_lib_prefix=no
11000  need_version=no
11001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002  soname_spec='${libname}${release}${shared_ext}$major'
11003  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11004  shlibpath_var=LD_LIBRARY_PATH
11005  shlibpath_overrides_runpath=no
11006
11007  # Some binutils ld are patched to set DT_RUNPATH
11008  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  lt_cv_shlibpath_overrides_runpath=no
11012    save_LDFLAGS=$LDFLAGS
11013    save_libdir=$libdir
11014    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11015	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017/* end confdefs.h.  */
11018
11019int
11020main ()
11021{
11022
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027if ac_fn_c_try_link "$LINENO"; then :
11028  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11029  lt_cv_shlibpath_overrides_runpath=yes
11030fi
11031fi
11032rm -f core conftest.err conftest.$ac_objext \
11033    conftest$ac_exeext conftest.$ac_ext
11034    LDFLAGS=$save_LDFLAGS
11035    libdir=$save_libdir
11036
11037fi
11038
11039  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11040
11041  # This implies no fast_install, which is unacceptable.
11042  # Some rework will be needed to allow for fast_install
11043  # before this can be enabled.
11044  hardcode_into_libs=yes
11045
11046  # Append ld.so.conf contents to the search path
11047  if test -f /etc/ld.so.conf; then
11048    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' ' '`
11049    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11050  fi
11051
11052  # We used to test for /lib/ld.so.1 and disable shared libraries on
11053  # powerpc, because MkLinux only supported shared libraries with the
11054  # GNU dynamic linker.  Since this was broken with cross compilers,
11055  # most powerpc-linux boxes support dynamic linking these days and
11056  # people can always --disable-shared, the test was removed, and we
11057  # assume the GNU/Linux dynamic linker is in use.
11058  dynamic_linker='GNU/Linux ld.so'
11059  ;;
11060
11061netbsd*)
11062  version_type=sunos
11063  need_lib_prefix=no
11064  need_version=no
11065  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11066    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068    dynamic_linker='NetBSD (a.out) ld.so'
11069  else
11070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11071    soname_spec='${libname}${release}${shared_ext}$major'
11072    dynamic_linker='NetBSD ld.elf_so'
11073  fi
11074  shlibpath_var=LD_LIBRARY_PATH
11075  shlibpath_overrides_runpath=yes
11076  hardcode_into_libs=yes
11077  ;;
11078
11079newsos6)
11080  version_type=linux # correct to gnu/linux during the next big refactor
11081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082  shlibpath_var=LD_LIBRARY_PATH
11083  shlibpath_overrides_runpath=yes
11084  ;;
11085
11086*nto* | *qnx*)
11087  version_type=qnx
11088  need_lib_prefix=no
11089  need_version=no
11090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091  soname_spec='${libname}${release}${shared_ext}$major'
11092  shlibpath_var=LD_LIBRARY_PATH
11093  shlibpath_overrides_runpath=no
11094  hardcode_into_libs=yes
11095  dynamic_linker='ldqnx.so'
11096  ;;
11097
11098openbsd*)
11099  version_type=sunos
11100  sys_lib_dlsearch_path_spec="/usr/lib"
11101  need_lib_prefix=no
11102  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11103  case $host_os in
11104    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11105    *)				need_version=no  ;;
11106  esac
11107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109  shlibpath_var=LD_LIBRARY_PATH
11110  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11111    case $host_os in
11112      openbsd2.[89] | openbsd2.[89].*)
11113	shlibpath_overrides_runpath=no
11114	;;
11115      *)
11116	shlibpath_overrides_runpath=yes
11117	;;
11118      esac
11119  else
11120    shlibpath_overrides_runpath=yes
11121  fi
11122  ;;
11123
11124os2*)
11125  libname_spec='$name'
11126  shrext_cmds=".dll"
11127  need_lib_prefix=no
11128  library_names_spec='$libname${shared_ext} $libname.a'
11129  dynamic_linker='OS/2 ld.exe'
11130  shlibpath_var=LIBPATH
11131  ;;
11132
11133osf3* | osf4* | osf5*)
11134  version_type=osf
11135  need_lib_prefix=no
11136  need_version=no
11137  soname_spec='${libname}${release}${shared_ext}$major'
11138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11141  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11142  ;;
11143
11144rdos*)
11145  dynamic_linker=no
11146  ;;
11147
11148solaris*)
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153  soname_spec='${libname}${release}${shared_ext}$major'
11154  shlibpath_var=LD_LIBRARY_PATH
11155  shlibpath_overrides_runpath=yes
11156  hardcode_into_libs=yes
11157  # ldd complains unless libraries are executable
11158  postinstall_cmds='chmod +x $lib'
11159  ;;
11160
11161sunos4*)
11162  version_type=sunos
11163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  shlibpath_overrides_runpath=yes
11167  if test "$with_gnu_ld" = yes; then
11168    need_lib_prefix=no
11169  fi
11170  need_version=yes
11171  ;;
11172
11173sysv4 | sysv4.3*)
11174  version_type=linux # correct to gnu/linux during the next big refactor
11175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176  soname_spec='${libname}${release}${shared_ext}$major'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  case $host_vendor in
11179    sni)
11180      shlibpath_overrides_runpath=no
11181      need_lib_prefix=no
11182      runpath_var=LD_RUN_PATH
11183      ;;
11184    siemens)
11185      need_lib_prefix=no
11186      ;;
11187    motorola)
11188      need_lib_prefix=no
11189      need_version=no
11190      shlibpath_overrides_runpath=no
11191      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11192      ;;
11193  esac
11194  ;;
11195
11196sysv4*MP*)
11197  if test -d /usr/nec ;then
11198    version_type=linux # correct to gnu/linux during the next big refactor
11199    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11200    soname_spec='$libname${shared_ext}.$major'
11201    shlibpath_var=LD_LIBRARY_PATH
11202  fi
11203  ;;
11204
11205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11206  version_type=freebsd-elf
11207  need_lib_prefix=no
11208  need_version=no
11209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210  soname_spec='${libname}${release}${shared_ext}$major'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  shlibpath_overrides_runpath=yes
11213  hardcode_into_libs=yes
11214  if test "$with_gnu_ld" = yes; then
11215    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11216  else
11217    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11218    case $host_os in
11219      sco3.2v5*)
11220        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11221	;;
11222    esac
11223  fi
11224  sys_lib_dlsearch_path_spec='/usr/lib'
11225  ;;
11226
11227tpf*)
11228  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11229  version_type=linux # correct to gnu/linux during the next big refactor
11230  need_lib_prefix=no
11231  need_version=no
11232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233  shlibpath_var=LD_LIBRARY_PATH
11234  shlibpath_overrides_runpath=no
11235  hardcode_into_libs=yes
11236  ;;
11237
11238uts4*)
11239  version_type=linux # correct to gnu/linux during the next big refactor
11240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241  soname_spec='${libname}${release}${shared_ext}$major'
11242  shlibpath_var=LD_LIBRARY_PATH
11243  ;;
11244
11245*)
11246  dynamic_linker=no
11247  ;;
11248esac
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11250$as_echo "$dynamic_linker" >&6; }
11251test "$dynamic_linker" = no && can_build_shared=no
11252
11253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254if test "$GCC" = yes; then
11255  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256fi
11257
11258if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11260fi
11261if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11262  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11263fi
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11358hardcode_action=
11359if test -n "$hardcode_libdir_flag_spec" ||
11360   test -n "$runpath_var" ||
11361   test "X$hardcode_automatic" = "Xyes" ; then
11362
11363  # We can hardcode non-existent directories.
11364  if test "$hardcode_direct" != no &&
11365     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11366     # have to relink, otherwise we might link with an installed library
11367     # when we should be linking with a yet-to-be-installed one
11368     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11369     test "$hardcode_minus_L" != no; then
11370    # Linking always hardcodes the temporary library directory.
11371    hardcode_action=relink
11372  else
11373    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11374    hardcode_action=immediate
11375  fi
11376else
11377  # We cannot hardcode anything, or else we can only hardcode existing
11378  # directories.
11379  hardcode_action=unsupported
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11382$as_echo "$hardcode_action" >&6; }
11383
11384if test "$hardcode_action" = relink ||
11385   test "$inherit_rpath" = yes; then
11386  # Fast installation is not supported
11387  enable_fast_install=no
11388elif test "$shlibpath_overrides_runpath" = yes ||
11389     test "$enable_shared" = no; then
11390  # Fast installation is not necessary
11391  enable_fast_install=needless
11392fi
11393
11394
11395
11396
11397
11398
11399  if test "x$enable_dlopen" != xyes; then
11400  enable_dlopen=unknown
11401  enable_dlopen_self=unknown
11402  enable_dlopen_self_static=unknown
11403else
11404  lt_cv_dlopen=no
11405  lt_cv_dlopen_libs=
11406
11407  case $host_os in
11408  beos*)
11409    lt_cv_dlopen="load_add_on"
11410    lt_cv_dlopen_libs=
11411    lt_cv_dlopen_self=yes
11412    ;;
11413
11414  mingw* | pw32* | cegcc*)
11415    lt_cv_dlopen="LoadLibrary"
11416    lt_cv_dlopen_libs=
11417    ;;
11418
11419  cygwin*)
11420    lt_cv_dlopen="dlopen"
11421    lt_cv_dlopen_libs=
11422    ;;
11423
11424  darwin*)
11425  # if libdl is installed we need to link against it
11426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427$as_echo_n "checking for dlopen in -ldl... " >&6; }
11428if ${ac_cv_lib_dl_dlopen+:} false; then :
11429  $as_echo_n "(cached) " >&6
11430else
11431  ac_check_lib_save_LIBS=$LIBS
11432LIBS="-ldl  $LIBS"
11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435
11436/* Override any GCC internal prototype to avoid an error.
11437   Use char because int might match the return type of a GCC
11438   builtin and then its argument prototype would still apply.  */
11439#ifdef __cplusplus
11440extern "C"
11441#endif
11442char dlopen ();
11443int
11444main ()
11445{
11446return dlopen ();
11447  ;
11448  return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452  ac_cv_lib_dl_dlopen=yes
11453else
11454  ac_cv_lib_dl_dlopen=no
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457    conftest$ac_exeext conftest.$ac_ext
11458LIBS=$ac_check_lib_save_LIBS
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11464else
11465
11466    lt_cv_dlopen="dyld"
11467    lt_cv_dlopen_libs=
11468    lt_cv_dlopen_self=yes
11469
11470fi
11471
11472    ;;
11473
11474  *)
11475    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11476if test "x$ac_cv_func_shl_load" = xyes; then :
11477  lt_cv_dlopen="shl_load"
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11480$as_echo_n "checking for shl_load in -ldld... " >&6; }
11481if ${ac_cv_lib_dld_shl_load+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-ldld  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char shl_load ();
11496int
11497main ()
11498{
11499return shl_load ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_dld_shl_load=yes
11506else
11507  ac_cv_lib_dld_shl_load=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11514$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11515if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11516  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11517else
11518  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11519if test "x$ac_cv_func_dlopen" = xyes; then :
11520  lt_cv_dlopen="dlopen"
11521else
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11523$as_echo_n "checking for dlopen in -ldl... " >&6; }
11524if ${ac_cv_lib_dl_dlopen+:} false; then :
11525  $as_echo_n "(cached) " >&6
11526else
11527  ac_check_lib_save_LIBS=$LIBS
11528LIBS="-ldl  $LIBS"
11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h.  */
11531
11532/* Override any GCC internal prototype to avoid an error.
11533   Use char because int might match the return type of a GCC
11534   builtin and then its argument prototype would still apply.  */
11535#ifdef __cplusplus
11536extern "C"
11537#endif
11538char dlopen ();
11539int
11540main ()
11541{
11542return dlopen ();
11543  ;
11544  return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_link "$LINENO"; then :
11548  ac_cv_lib_dl_dlopen=yes
11549else
11550  ac_cv_lib_dl_dlopen=no
11551fi
11552rm -f core conftest.err conftest.$ac_objext \
11553    conftest$ac_exeext conftest.$ac_ext
11554LIBS=$ac_check_lib_save_LIBS
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11557$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11558if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11559  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11560else
11561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11562$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11563if ${ac_cv_lib_svld_dlopen+:} false; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  ac_check_lib_save_LIBS=$LIBS
11567LIBS="-lsvld  $LIBS"
11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570
11571/* Override any GCC internal prototype to avoid an error.
11572   Use char because int might match the return type of a GCC
11573   builtin and then its argument prototype would still apply.  */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char dlopen ();
11578int
11579main ()
11580{
11581return dlopen ();
11582  ;
11583  return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587  ac_cv_lib_svld_dlopen=yes
11588else
11589  ac_cv_lib_svld_dlopen=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592    conftest$ac_exeext conftest.$ac_ext
11593LIBS=$ac_check_lib_save_LIBS
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11596$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11597if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11598  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11599else
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11601$as_echo_n "checking for dld_link in -ldld... " >&6; }
11602if ${ac_cv_lib_dld_dld_link+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  ac_check_lib_save_LIBS=$LIBS
11606LIBS="-ldld  $LIBS"
11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h.  */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611   Use char because int might match the return type of a GCC
11612   builtin and then its argument prototype would still apply.  */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char dld_link ();
11617int
11618main ()
11619{
11620return dld_link ();
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
11626  ac_cv_lib_dld_dld_link=yes
11627else
11628  ac_cv_lib_dld_dld_link=no
11629fi
11630rm -f core conftest.err conftest.$ac_objext \
11631    conftest$ac_exeext conftest.$ac_ext
11632LIBS=$ac_check_lib_save_LIBS
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11635$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11636if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11637  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11638fi
11639
11640
11641fi
11642
11643
11644fi
11645
11646
11647fi
11648
11649
11650fi
11651
11652
11653fi
11654
11655    ;;
11656  esac
11657
11658  if test "x$lt_cv_dlopen" != xno; then
11659    enable_dlopen=yes
11660  else
11661    enable_dlopen=no
11662  fi
11663
11664  case $lt_cv_dlopen in
11665  dlopen)
11666    save_CPPFLAGS="$CPPFLAGS"
11667    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11668
11669    save_LDFLAGS="$LDFLAGS"
11670    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11671
11672    save_LIBS="$LIBS"
11673    LIBS="$lt_cv_dlopen_libs $LIBS"
11674
11675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11676$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11677if ${lt_cv_dlopen_self+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  	  if test "$cross_compiling" = yes; then :
11681  lt_cv_dlopen_self=cross
11682else
11683  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11684  lt_status=$lt_dlunknown
11685  cat > conftest.$ac_ext <<_LT_EOF
11686#line $LINENO "configure"
11687#include "confdefs.h"
11688
11689#if HAVE_DLFCN_H
11690#include <dlfcn.h>
11691#endif
11692
11693#include <stdio.h>
11694
11695#ifdef RTLD_GLOBAL
11696#  define LT_DLGLOBAL		RTLD_GLOBAL
11697#else
11698#  ifdef DL_GLOBAL
11699#    define LT_DLGLOBAL		DL_GLOBAL
11700#  else
11701#    define LT_DLGLOBAL		0
11702#  endif
11703#endif
11704
11705/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11706   find out it does not work in some platform. */
11707#ifndef LT_DLLAZY_OR_NOW
11708#  ifdef RTLD_LAZY
11709#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11710#  else
11711#    ifdef DL_LAZY
11712#      define LT_DLLAZY_OR_NOW		DL_LAZY
11713#    else
11714#      ifdef RTLD_NOW
11715#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11716#      else
11717#        ifdef DL_NOW
11718#          define LT_DLLAZY_OR_NOW	DL_NOW
11719#        else
11720#          define LT_DLLAZY_OR_NOW	0
11721#        endif
11722#      endif
11723#    endif
11724#  endif
11725#endif
11726
11727/* When -fvisbility=hidden is used, assume the code has been annotated
11728   correspondingly for the symbols needed.  */
11729#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11730int fnord () __attribute__((visibility("default")));
11731#endif
11732
11733int fnord () { return 42; }
11734int main ()
11735{
11736  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737  int status = $lt_dlunknown;
11738
11739  if (self)
11740    {
11741      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11742      else
11743        {
11744	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11745          else puts (dlerror ());
11746	}
11747      /* dlclose (self); */
11748    }
11749  else
11750    puts (dlerror ());
11751
11752  return status;
11753}
11754_LT_EOF
11755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11756  (eval $ac_link) 2>&5
11757  ac_status=$?
11758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11760    (./conftest; exit; ) >&5 2>/dev/null
11761    lt_status=$?
11762    case x$lt_status in
11763      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11764      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11765      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11766    esac
11767  else :
11768    # compilation failed
11769    lt_cv_dlopen_self=no
11770  fi
11771fi
11772rm -fr conftest*
11773
11774
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11777$as_echo "$lt_cv_dlopen_self" >&6; }
11778
11779    if test "x$lt_cv_dlopen_self" = xyes; then
11780      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11781      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11782$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11783if ${lt_cv_dlopen_self_static+:} false; then :
11784  $as_echo_n "(cached) " >&6
11785else
11786  	  if test "$cross_compiling" = yes; then :
11787  lt_cv_dlopen_self_static=cross
11788else
11789  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11790  lt_status=$lt_dlunknown
11791  cat > conftest.$ac_ext <<_LT_EOF
11792#line $LINENO "configure"
11793#include "confdefs.h"
11794
11795#if HAVE_DLFCN_H
11796#include <dlfcn.h>
11797#endif
11798
11799#include <stdio.h>
11800
11801#ifdef RTLD_GLOBAL
11802#  define LT_DLGLOBAL		RTLD_GLOBAL
11803#else
11804#  ifdef DL_GLOBAL
11805#    define LT_DLGLOBAL		DL_GLOBAL
11806#  else
11807#    define LT_DLGLOBAL		0
11808#  endif
11809#endif
11810
11811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11812   find out it does not work in some platform. */
11813#ifndef LT_DLLAZY_OR_NOW
11814#  ifdef RTLD_LAZY
11815#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11816#  else
11817#    ifdef DL_LAZY
11818#      define LT_DLLAZY_OR_NOW		DL_LAZY
11819#    else
11820#      ifdef RTLD_NOW
11821#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11822#      else
11823#        ifdef DL_NOW
11824#          define LT_DLLAZY_OR_NOW	DL_NOW
11825#        else
11826#          define LT_DLLAZY_OR_NOW	0
11827#        endif
11828#      endif
11829#    endif
11830#  endif
11831#endif
11832
11833/* When -fvisbility=hidden is used, assume the code has been annotated
11834   correspondingly for the symbols needed.  */
11835#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11836int fnord () __attribute__((visibility("default")));
11837#endif
11838
11839int fnord () { return 42; }
11840int main ()
11841{
11842  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11843  int status = $lt_dlunknown;
11844
11845  if (self)
11846    {
11847      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11848      else
11849        {
11850	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11851          else puts (dlerror ());
11852	}
11853      /* dlclose (self); */
11854    }
11855  else
11856    puts (dlerror ());
11857
11858  return status;
11859}
11860_LT_EOF
11861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11862  (eval $ac_link) 2>&5
11863  ac_status=$?
11864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11865  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11866    (./conftest; exit; ) >&5 2>/dev/null
11867    lt_status=$?
11868    case x$lt_status in
11869      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11870      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11871      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11872    esac
11873  else :
11874    # compilation failed
11875    lt_cv_dlopen_self_static=no
11876  fi
11877fi
11878rm -fr conftest*
11879
11880
11881fi
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11883$as_echo "$lt_cv_dlopen_self_static" >&6; }
11884    fi
11885
11886    CPPFLAGS="$save_CPPFLAGS"
11887    LDFLAGS="$save_LDFLAGS"
11888    LIBS="$save_LIBS"
11889    ;;
11890  esac
11891
11892  case $lt_cv_dlopen_self in
11893  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11894  *) enable_dlopen_self=unknown ;;
11895  esac
11896
11897  case $lt_cv_dlopen_self_static in
11898  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11899  *) enable_dlopen_self_static=unknown ;;
11900  esac
11901fi
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919striplib=
11920old_striplib=
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11922$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11923if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11924  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11925  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927$as_echo "yes" >&6; }
11928else
11929# FIXME - insert some real tests, host_os isn't really good enough
11930  case $host_os in
11931  darwin*)
11932    if test -n "$STRIP" ; then
11933      striplib="$STRIP -x"
11934      old_striplib="$STRIP -S"
11935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936$as_echo "yes" >&6; }
11937    else
11938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940    fi
11941    ;;
11942  *)
11943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945    ;;
11946  esac
11947fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960  # Report which library types will actually be built
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11962$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11964$as_echo "$can_build_shared" >&6; }
11965
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11967$as_echo_n "checking whether to build shared libraries... " >&6; }
11968  test "$can_build_shared" = "no" && enable_shared=no
11969
11970  # On AIX, shared libraries and static libraries use the same namespace, and
11971  # are all built from PIC.
11972  case $host_os in
11973  aix3*)
11974    test "$enable_shared" = yes && enable_static=no
11975    if test -n "$RANLIB"; then
11976      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11977      postinstall_cmds='$RANLIB $lib'
11978    fi
11979    ;;
11980
11981  aix[4-9]*)
11982    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11983      test "$enable_shared" = yes && enable_static=no
11984    fi
11985    ;;
11986  esac
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988$as_echo "$enable_shared" >&6; }
11989
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991$as_echo_n "checking whether to build static libraries... " >&6; }
11992  # Make sure either enable_shared or enable_static is yes.
11993  test "$enable_shared" = yes || enable_static=yes
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995$as_echo "$enable_static" >&6; }
11996
11997
11998
11999
12000fi
12001ac_ext=c
12002ac_cpp='$CPP $CPPFLAGS'
12003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006
12007CC="$lt_save_CC"
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023        ac_config_commands="$ac_config_commands libtool"
12024
12025
12026
12027
12028# Only expand once:
12029
12030
12031
12032# other programs
12033
12034
12035LIB_MAJ=2
12036
12037
12038cat >>confdefs.h <<_ACEOF
12039#define LIB_MAJ $LIB_MAJ
12040_ACEOF
12041
12042
12043# Check whether --enable-debug was given.
12044if test "${enable_debug+set}" = set; then :
12045  enableval=$enable_debug;
12046$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12047
12048fi
12049
12050
12051# Check whether --enable-unversioned-modules was given.
12052if test "${enable_unversioned_modules+set}" = set; then :
12053  enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12054
12055
12056$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12057
12058
12059fi
12060fi
12061
12062
12063
12064# Check whether --with-modules-dir was given.
12065if test "${with_modules_dir+set}" = set; then :
12066  withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12067
12068	OPENPAM_MODULES_DIR="$withval"
12069
12070cat >>confdefs.h <<_ACEOF
12071#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12072_ACEOF
12073
12074
12075fi
12076fi
12077
12078
12079 if test x"$OPENPAM_MODULES_DIR" != x""; then
12080  CUSTOM_MODULES_DIR_TRUE=
12081  CUSTOM_MODULES_DIR_FALSE='#'
12082else
12083  CUSTOM_MODULES_DIR_TRUE='#'
12084  CUSTOM_MODULES_DIR_FALSE=
12085fi
12086
12087
12088
12089# Check whether --with-doc was given.
12090if test "${with_doc+set}" = set; then :
12091  withval=$with_doc;
12092else
12093  with_doc=yes
12094fi
12095
12096 if test x"$with_doc" = x"yes"; then
12097  WITH_DOC_TRUE=
12098  WITH_DOC_FALSE='#'
12099else
12100  WITH_DOC_TRUE='#'
12101  WITH_DOC_FALSE=
12102fi
12103
12104
12105
12106# Check whether --with-pam-unix was given.
12107if test "${with_pam_unix+set}" = set; then :
12108  withval=$with_pam_unix;
12109else
12110  with_pam_unix=no
12111fi
12112
12113 if test x"$with_pam_unix" = x"yes"; then
12114  WITH_PAM_UNIX_TRUE=
12115  WITH_PAM_UNIX_FALSE='#'
12116else
12117  WITH_PAM_UNIX_TRUE='#'
12118  WITH_PAM_UNIX_FALSE=
12119fi
12120
12121
12122
12123# Check whether --with-pamtest was given.
12124if test "${with_pamtest+set}" = set; then :
12125  withval=$with_pamtest;
12126else
12127  with_pamtest=no
12128fi
12129
12130 if test x"$with_pamtest" = x"yes"; then
12131  WITH_PAMTEST_TRUE=
12132  WITH_PAMTEST_FALSE='#'
12133else
12134  WITH_PAMTEST_TRUE='#'
12135  WITH_PAMTEST_FALSE=
12136fi
12137
12138
12139
12140# Check whether --with-su was given.
12141if test "${with_su+set}" = set; then :
12142  withval=$with_su;
12143else
12144  with_su=no
12145fi
12146
12147 if test x"$with_su" = x"yes"; then
12148  WITH_SU_TRUE=
12149  WITH_SU_FALSE='#'
12150else
12151  WITH_SU_TRUE='#'
12152  WITH_SU_FALSE=
12153fi
12154
12155
12156for ac_header in crypt.h
12157do :
12158  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12159if test "x$ac_cv_header_crypt_h" = xyes; then :
12160  cat >>confdefs.h <<_ACEOF
12161#define HAVE_CRYPT_H 1
12162_ACEOF
12163
12164fi
12165
12166done
12167
12168
12169for ac_func in asprintf vasprintf
12170do :
12171  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12174  cat >>confdefs.h <<_ACEOF
12175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176_ACEOF
12177
12178fi
12179done
12180
12181for ac_func in dlfunc fdlopen
12182do :
12183  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12184ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12185if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12186  cat >>confdefs.h <<_ACEOF
12187#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188_ACEOF
12189
12190fi
12191done
12192
12193for ac_func in fpurge
12194do :
12195  ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12196if test "x$ac_cv_func_fpurge" = xyes; then :
12197  cat >>confdefs.h <<_ACEOF
12198#define HAVE_FPURGE 1
12199_ACEOF
12200
12201fi
12202done
12203
12204for ac_func in setlogmask
12205do :
12206  ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12207if test "x$ac_cv_func_setlogmask" = xyes; then :
12208  cat >>confdefs.h <<_ACEOF
12209#define HAVE_SETLOGMASK 1
12210_ACEOF
12211
12212fi
12213done
12214
12215for ac_func in strlcat strlcmp strlcpy
12216do :
12217  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12219if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12220  cat >>confdefs.h <<_ACEOF
12221#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12222_ACEOF
12223
12224fi
12225done
12226
12227
12228saved_LIBS="${LIBS}"
12229LIBS=""
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12231$as_echo_n "checking for dlopen in -ldl... " >&6; }
12232if ${ac_cv_lib_dl_dlopen+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  ac_check_lib_save_LIBS=$LIBS
12236LIBS="-ldl  $LIBS"
12237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238/* end confdefs.h.  */
12239
12240/* Override any GCC internal prototype to avoid an error.
12241   Use char because int might match the return type of a GCC
12242   builtin and then its argument prototype would still apply.  */
12243#ifdef __cplusplus
12244extern "C"
12245#endif
12246char dlopen ();
12247int
12248main ()
12249{
12250return dlopen ();
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256  ac_cv_lib_dl_dlopen=yes
12257else
12258  ac_cv_lib_dl_dlopen=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262LIBS=$ac_check_lib_save_LIBS
12263fi
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12265$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12266if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267  cat >>confdefs.h <<_ACEOF
12268#define HAVE_LIBDL 1
12269_ACEOF
12270
12271  LIBS="-ldl $LIBS"
12272
12273fi
12274
12275DL_LIBS="${LIBS}"
12276LIBS="${saved_LIBS}"
12277
12278
12279saved_LIBS="${LIBS}"
12280LIBS=""
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12282$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12283if ${ac_cv_lib_crypt_crypt+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  ac_check_lib_save_LIBS=$LIBS
12287LIBS="-lcrypt  $LIBS"
12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292   Use char because int might match the return type of a GCC
12293   builtin and then its argument prototype would still apply.  */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297char crypt ();
12298int
12299main ()
12300{
12301return crypt ();
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  ac_cv_lib_crypt_crypt=yes
12308else
12309  ac_cv_lib_crypt_crypt=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312    conftest$ac_exeext conftest.$ac_ext
12313LIBS=$ac_check_lib_save_LIBS
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12316$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12317if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12318  cat >>confdefs.h <<_ACEOF
12319#define HAVE_LIBCRYPT 1
12320_ACEOF
12321
12322  LIBS="-lcrypt $LIBS"
12323
12324fi
12325
12326CRYPT_LIBS="${LIBS}"
12327LIBS="${saved_LIBS}"
12328
12329
12330saved_LIBS="${LIBS}"
12331LIBS=""
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12333$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12334if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337  ac_check_lib_save_LIBS=$LIBS
12338LIBS="-lcrypto  $LIBS"
12339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340/* end confdefs.h.  */
12341
12342/* Override any GCC internal prototype to avoid an error.
12343   Use char because int might match the return type of a GCC
12344   builtin and then its argument prototype would still apply.  */
12345#ifdef __cplusplus
12346extern "C"
12347#endif
12348char HMAC_CTX_init ();
12349int
12350main ()
12351{
12352return HMAC_CTX_init ();
12353  ;
12354  return 0;
12355}
12356_ACEOF
12357if ac_fn_c_try_link "$LINENO"; then :
12358  ac_cv_lib_crypto_HMAC_CTX_init=yes
12359else
12360  ac_cv_lib_crypto_HMAC_CTX_init=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext \
12363    conftest$ac_exeext conftest.$ac_ext
12364LIBS=$ac_check_lib_save_LIBS
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12367$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12368if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12369  cat >>confdefs.h <<_ACEOF
12370#define HAVE_LIBCRYPTO 1
12371_ACEOF
12372
12373  LIBS="-lcrypto $LIBS"
12374
12375fi
12376
12377CRYPTO_LIBS="${LIBS}"
12378LIBS="${saved_LIBS}"
12379
12380
12381# Check whether --enable-developer-warnings was given.
12382if test "${enable_developer_warnings+set}" = set; then :
12383  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12384fi
12385
12386# Check whether --enable-debugging-symbols was given.
12387if test "${enable_debugging_symbols+set}" = set; then :
12388  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12389fi
12390
12391# Check whether --enable-werror was given.
12392if test "${enable_werror+set}" = set; then :
12393  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12394fi
12395
12396
12397ac_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 lib/libpam/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12398
12399ac_config_files="$ac_config_files pamgdb"
12400
12401ac_config_files="$ac_config_files mkpkgng"
12402
12403cat >confcache <<\_ACEOF
12404# This file is a shell script that caches the results of configure
12405# tests run on this system so they can be shared between configure
12406# scripts and configure runs, see configure's option --config-cache.
12407# It is not useful on other systems.  If it contains results you don't
12408# want to keep, you may remove or edit it.
12409#
12410# config.status only pays attention to the cache file if you give it
12411# the --recheck option to rerun configure.
12412#
12413# `ac_cv_env_foo' variables (set or unset) will be overridden when
12414# loading this file, other *unset* `ac_cv_foo' will be assigned the
12415# following values.
12416
12417_ACEOF
12418
12419# The following way of writing the cache mishandles newlines in values,
12420# but we know of no workaround that is simple, portable, and efficient.
12421# So, we kill variables containing newlines.
12422# Ultrix sh set writes to stderr and can't be redirected directly,
12423# and sets the high bit in the cache file unless we assign to the vars.
12424(
12425  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12426    eval ac_val=\$$ac_var
12427    case $ac_val in #(
12428    *${as_nl}*)
12429      case $ac_var in #(
12430      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12432      esac
12433      case $ac_var in #(
12434      _ | IFS | as_nl) ;; #(
12435      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12436      *) { eval $ac_var=; unset $ac_var;} ;;
12437      esac ;;
12438    esac
12439  done
12440
12441  (set) 2>&1 |
12442    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12443    *${as_nl}ac_space=\ *)
12444      # `set' does not quote correctly, so add quotes: double-quote
12445      # substitution turns \\\\ into \\, and sed turns \\ into \.
12446      sed -n \
12447	"s/'/'\\\\''/g;
12448	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12449      ;; #(
12450    *)
12451      # `set' quotes correctly as required by POSIX, so do not add quotes.
12452      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12453      ;;
12454    esac |
12455    sort
12456) |
12457  sed '
12458     /^ac_cv_env_/b end
12459     t clear
12460     :clear
12461     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12462     t end
12463     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12464     :end' >>confcache
12465if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12466  if test -w "$cache_file"; then
12467    if test "x$cache_file" != "x/dev/null"; then
12468      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12469$as_echo "$as_me: updating cache $cache_file" >&6;}
12470      if test ! -f "$cache_file" || test -h "$cache_file"; then
12471	cat confcache >"$cache_file"
12472      else
12473        case $cache_file in #(
12474        */* | ?:*)
12475	  mv -f confcache "$cache_file"$$ &&
12476	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12477        *)
12478	  mv -f confcache "$cache_file" ;;
12479	esac
12480      fi
12481    fi
12482  else
12483    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12484$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12485  fi
12486fi
12487rm -f confcache
12488
12489test "x$prefix" = xNONE && prefix=$ac_default_prefix
12490# Let make expand exec_prefix.
12491test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12492
12493DEFS=-DHAVE_CONFIG_H
12494
12495ac_libobjs=
12496ac_ltlibobjs=
12497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12498  # 1. Remove the extension, and $U if already installed.
12499  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12500  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12501  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12502  #    will be set to the directory where LIBOBJS objects are built.
12503  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12504  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12505done
12506LIBOBJS=$ac_libobjs
12507
12508LTLIBOBJS=$ac_ltlibobjs
12509
12510
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12512$as_echo_n "checking that generated files are newer than configure... " >&6; }
12513   if test -n "$am_sleep_pid"; then
12514     # Hide warnings about reused PIDs.
12515     wait $am_sleep_pid 2>/dev/null
12516   fi
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12518$as_echo "done" >&6; }
12519 if test -n "$EXEEXT"; then
12520  am__EXEEXT_TRUE=
12521  am__EXEEXT_FALSE='#'
12522else
12523  am__EXEEXT_TRUE='#'
12524  am__EXEEXT_FALSE=
12525fi
12526
12527if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12528  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12529Usually this means the macro was only invoked conditionally." "$LINENO" 5
12530fi
12531if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12532  as_fn_error $? "conditional \"AMDEP\" was never defined.
12533Usually this means the macro was only invoked conditionally." "$LINENO" 5
12534fi
12535if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12536  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12537Usually this means the macro was only invoked conditionally." "$LINENO" 5
12538fi
12539if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
12540  as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
12541Usually this means the macro was only invoked conditionally." "$LINENO" 5
12542fi
12543if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12544  as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12545Usually this means the macro was only invoked conditionally." "$LINENO" 5
12546fi
12547if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12548  as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12549Usually this means the macro was only invoked conditionally." "$LINENO" 5
12550fi
12551if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12552  as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12553Usually this means the macro was only invoked conditionally." "$LINENO" 5
12554fi
12555if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12556  as_fn_error $? "conditional \"WITH_SU\" was never defined.
12557Usually this means the macro was only invoked conditionally." "$LINENO" 5
12558fi
12559
12560: "${CONFIG_STATUS=./config.status}"
12561ac_write_fail=0
12562ac_clean_files_save=$ac_clean_files
12563ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12565$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12566as_write_fail=0
12567cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12568#! $SHELL
12569# Generated by $as_me.
12570# Run this file to recreate the current configuration.
12571# Compiler output produced by configure, useful for debugging
12572# configure, is in config.log if it exists.
12573
12574debug=false
12575ac_cs_recheck=false
12576ac_cs_silent=false
12577
12578SHELL=\${CONFIG_SHELL-$SHELL}
12579export SHELL
12580_ASEOF
12581cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12582## -------------------- ##
12583## M4sh Initialization. ##
12584## -------------------- ##
12585
12586# Be more Bourne compatible
12587DUALCASE=1; export DUALCASE # for MKS sh
12588if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12589  emulate sh
12590  NULLCMD=:
12591  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12592  # is contrary to our usage.  Disable this feature.
12593  alias -g '${1+"$@"}'='"$@"'
12594  setopt NO_GLOB_SUBST
12595else
12596  case `(set -o) 2>/dev/null` in #(
12597  *posix*) :
12598    set -o posix ;; #(
12599  *) :
12600     ;;
12601esac
12602fi
12603
12604
12605as_nl='
12606'
12607export as_nl
12608# Printing a long string crashes Solaris 7 /usr/bin/printf.
12609as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12610as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12612# Prefer a ksh shell builtin over an external printf program on Solaris,
12613# but without wasting forks for bash or zsh.
12614if test -z "$BASH_VERSION$ZSH_VERSION" \
12615    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12616  as_echo='print -r --'
12617  as_echo_n='print -rn --'
12618elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12619  as_echo='printf %s\n'
12620  as_echo_n='printf %s'
12621else
12622  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12623    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12624    as_echo_n='/usr/ucb/echo -n'
12625  else
12626    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12627    as_echo_n_body='eval
12628      arg=$1;
12629      case $arg in #(
12630      *"$as_nl"*)
12631	expr "X$arg" : "X\\(.*\\)$as_nl";
12632	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12633      esac;
12634      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12635    '
12636    export as_echo_n_body
12637    as_echo_n='sh -c $as_echo_n_body as_echo'
12638  fi
12639  export as_echo_body
12640  as_echo='sh -c $as_echo_body as_echo'
12641fi
12642
12643# The user is always right.
12644if test "${PATH_SEPARATOR+set}" != set; then
12645  PATH_SEPARATOR=:
12646  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12647    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12648      PATH_SEPARATOR=';'
12649  }
12650fi
12651
12652
12653# IFS
12654# We need space, tab and new line, in precisely that order.  Quoting is
12655# there to prevent editors from complaining about space-tab.
12656# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12657# splitting by setting IFS to empty value.)
12658IFS=" ""	$as_nl"
12659
12660# Find who we are.  Look in the path if we contain no directory separator.
12661as_myself=
12662case $0 in #((
12663  *[\\/]* ) as_myself=$0 ;;
12664  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665for as_dir in $PATH
12666do
12667  IFS=$as_save_IFS
12668  test -z "$as_dir" && as_dir=.
12669    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12670  done
12671IFS=$as_save_IFS
12672
12673     ;;
12674esac
12675# We did not find ourselves, most probably we were run as `sh COMMAND'
12676# in which case we are not to be found in the path.
12677if test "x$as_myself" = x; then
12678  as_myself=$0
12679fi
12680if test ! -f "$as_myself"; then
12681  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12682  exit 1
12683fi
12684
12685# Unset variables that we do not need and which cause bugs (e.g. in
12686# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12687# suppresses any "Segmentation fault" message there.  '((' could
12688# trigger a bug in pdksh 5.2.14.
12689for as_var in BASH_ENV ENV MAIL MAILPATH
12690do eval test x\${$as_var+set} = xset \
12691  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12692done
12693PS1='$ '
12694PS2='> '
12695PS4='+ '
12696
12697# NLS nuisances.
12698LC_ALL=C
12699export LC_ALL
12700LANGUAGE=C
12701export LANGUAGE
12702
12703# CDPATH.
12704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12705
12706
12707# as_fn_error STATUS ERROR [LINENO LOG_FD]
12708# ----------------------------------------
12709# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12710# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12711# script with STATUS, using 1 if that was 0.
12712as_fn_error ()
12713{
12714  as_status=$1; test $as_status -eq 0 && as_status=1
12715  if test "$4"; then
12716    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12717    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12718  fi
12719  $as_echo "$as_me: error: $2" >&2
12720  as_fn_exit $as_status
12721} # as_fn_error
12722
12723
12724# as_fn_set_status STATUS
12725# -----------------------
12726# Set $? to STATUS, without forking.
12727as_fn_set_status ()
12728{
12729  return $1
12730} # as_fn_set_status
12731
12732# as_fn_exit STATUS
12733# -----------------
12734# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12735as_fn_exit ()
12736{
12737  set +e
12738  as_fn_set_status $1
12739  exit $1
12740} # as_fn_exit
12741
12742# as_fn_unset VAR
12743# ---------------
12744# Portably unset VAR.
12745as_fn_unset ()
12746{
12747  { eval $1=; unset $1;}
12748}
12749as_unset=as_fn_unset
12750# as_fn_append VAR VALUE
12751# ----------------------
12752# Append the text in VALUE to the end of the definition contained in VAR. Take
12753# advantage of any shell optimizations that allow amortized linear growth over
12754# repeated appends, instead of the typical quadratic growth present in naive
12755# implementations.
12756if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12757  eval 'as_fn_append ()
12758  {
12759    eval $1+=\$2
12760  }'
12761else
12762  as_fn_append ()
12763  {
12764    eval $1=\$$1\$2
12765  }
12766fi # as_fn_append
12767
12768# as_fn_arith ARG...
12769# ------------------
12770# Perform arithmetic evaluation on the ARGs, and store the result in the
12771# global $as_val. Take advantage of shells that can avoid forks. The arguments
12772# must be portable across $(()) and expr.
12773if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12774  eval 'as_fn_arith ()
12775  {
12776    as_val=$(( $* ))
12777  }'
12778else
12779  as_fn_arith ()
12780  {
12781    as_val=`expr "$@" || test $? -eq 1`
12782  }
12783fi # as_fn_arith
12784
12785
12786if expr a : '\(a\)' >/dev/null 2>&1 &&
12787   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12788  as_expr=expr
12789else
12790  as_expr=false
12791fi
12792
12793if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12794  as_basename=basename
12795else
12796  as_basename=false
12797fi
12798
12799if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12800  as_dirname=dirname
12801else
12802  as_dirname=false
12803fi
12804
12805as_me=`$as_basename -- "$0" ||
12806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12807	 X"$0" : 'X\(//\)$' \| \
12808	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12809$as_echo X/"$0" |
12810    sed '/^.*\/\([^/][^/]*\)\/*$/{
12811	    s//\1/
12812	    q
12813	  }
12814	  /^X\/\(\/\/\)$/{
12815	    s//\1/
12816	    q
12817	  }
12818	  /^X\/\(\/\).*/{
12819	    s//\1/
12820	    q
12821	  }
12822	  s/.*/./; q'`
12823
12824# Avoid depending upon Character Ranges.
12825as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12826as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12827as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12828as_cr_digits='0123456789'
12829as_cr_alnum=$as_cr_Letters$as_cr_digits
12830
12831ECHO_C= ECHO_N= ECHO_T=
12832case `echo -n x` in #(((((
12833-n*)
12834  case `echo 'xy\c'` in
12835  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12836  xy)  ECHO_C='\c';;
12837  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12838       ECHO_T='	';;
12839  esac;;
12840*)
12841  ECHO_N='-n';;
12842esac
12843
12844rm -f conf$$ conf$$.exe conf$$.file
12845if test -d conf$$.dir; then
12846  rm -f conf$$.dir/conf$$.file
12847else
12848  rm -f conf$$.dir
12849  mkdir conf$$.dir 2>/dev/null
12850fi
12851if (echo >conf$$.file) 2>/dev/null; then
12852  if ln -s conf$$.file conf$$ 2>/dev/null; then
12853    as_ln_s='ln -s'
12854    # ... but there are two gotchas:
12855    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12856    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12857    # In both cases, we have to default to `cp -pR'.
12858    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12859      as_ln_s='cp -pR'
12860  elif ln conf$$.file conf$$ 2>/dev/null; then
12861    as_ln_s=ln
12862  else
12863    as_ln_s='cp -pR'
12864  fi
12865else
12866  as_ln_s='cp -pR'
12867fi
12868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12869rmdir conf$$.dir 2>/dev/null
12870
12871
12872# as_fn_mkdir_p
12873# -------------
12874# Create "$as_dir" as a directory, including parents if necessary.
12875as_fn_mkdir_p ()
12876{
12877
12878  case $as_dir in #(
12879  -*) as_dir=./$as_dir;;
12880  esac
12881  test -d "$as_dir" || eval $as_mkdir_p || {
12882    as_dirs=
12883    while :; do
12884      case $as_dir in #(
12885      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12886      *) as_qdir=$as_dir;;
12887      esac
12888      as_dirs="'$as_qdir' $as_dirs"
12889      as_dir=`$as_dirname -- "$as_dir" ||
12890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12891	 X"$as_dir" : 'X\(//\)[^/]' \| \
12892	 X"$as_dir" : 'X\(//\)$' \| \
12893	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12894$as_echo X"$as_dir" |
12895    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12896	    s//\1/
12897	    q
12898	  }
12899	  /^X\(\/\/\)[^/].*/{
12900	    s//\1/
12901	    q
12902	  }
12903	  /^X\(\/\/\)$/{
12904	    s//\1/
12905	    q
12906	  }
12907	  /^X\(\/\).*/{
12908	    s//\1/
12909	    q
12910	  }
12911	  s/.*/./; q'`
12912      test -d "$as_dir" && break
12913    done
12914    test -z "$as_dirs" || eval "mkdir $as_dirs"
12915  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12916
12917
12918} # as_fn_mkdir_p
12919if mkdir -p . 2>/dev/null; then
12920  as_mkdir_p='mkdir -p "$as_dir"'
12921else
12922  test -d ./-p && rmdir ./-p
12923  as_mkdir_p=false
12924fi
12925
12926
12927# as_fn_executable_p FILE
12928# -----------------------
12929# Test if FILE is an executable regular file.
12930as_fn_executable_p ()
12931{
12932  test -f "$1" && test -x "$1"
12933} # as_fn_executable_p
12934as_test_x='test -x'
12935as_executable_p=as_fn_executable_p
12936
12937# Sed expression to map a string onto a valid CPP name.
12938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12939
12940# Sed expression to map a string onto a valid variable name.
12941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12942
12943
12944exec 6>&1
12945## ----------------------------------- ##
12946## Main body of $CONFIG_STATUS script. ##
12947## ----------------------------------- ##
12948_ASEOF
12949test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12950
12951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12952# Save the log message, to keep $0 and so on meaningful, and to
12953# report actual input values of CONFIG_FILES etc. instead of their
12954# values after options handling.
12955ac_log="
12956This file was extended by OpenPAM $as_me 20130907, which was
12957generated by GNU Autoconf 2.69.  Invocation command line was
12958
12959  CONFIG_FILES    = $CONFIG_FILES
12960  CONFIG_HEADERS  = $CONFIG_HEADERS
12961  CONFIG_LINKS    = $CONFIG_LINKS
12962  CONFIG_COMMANDS = $CONFIG_COMMANDS
12963  $ $0 $@
12964
12965on `(hostname || uname -n) 2>/dev/null | sed 1q`
12966"
12967
12968_ACEOF
12969
12970case $ac_config_files in *"
12971"*) set x $ac_config_files; shift; ac_config_files=$*;;
12972esac
12973
12974case $ac_config_headers in *"
12975"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12976esac
12977
12978
12979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12980# Files that config.status was made for.
12981config_files="$ac_config_files"
12982config_headers="$ac_config_headers"
12983config_commands="$ac_config_commands"
12984
12985_ACEOF
12986
12987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12988ac_cs_usage="\
12989\`$as_me' instantiates files and other configuration actions
12990from templates according to the current configuration.  Unless the files
12991and actions are specified as TAGs, all are instantiated by default.
12992
12993Usage: $0 [OPTION]... [TAG]...
12994
12995  -h, --help       print this help, then exit
12996  -V, --version    print version number and configuration settings, then exit
12997      --config     print configuration, then exit
12998  -q, --quiet, --silent
12999                   do not print progress messages
13000  -d, --debug      don't remove temporary files
13001      --recheck    update $as_me by reconfiguring in the same conditions
13002      --file=FILE[:TEMPLATE]
13003                   instantiate the configuration file FILE
13004      --header=FILE[:TEMPLATE]
13005                   instantiate the configuration header FILE
13006
13007Configuration files:
13008$config_files
13009
13010Configuration headers:
13011$config_headers
13012
13013Configuration commands:
13014$config_commands
13015
13016Report bugs to <des@des.no>.
13017OpenPAM home page: <http://www.openpam.org/>."
13018
13019_ACEOF
13020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13022ac_cs_version="\\
13023OpenPAM config.status 20130907
13024configured by $0, generated by GNU Autoconf 2.69,
13025  with options \\"\$ac_cs_config\\"
13026
13027Copyright (C) 2012 Free Software Foundation, Inc.
13028This config.status script is free software; the Free Software Foundation
13029gives unlimited permission to copy, distribute and modify it."
13030
13031ac_pwd='$ac_pwd'
13032srcdir='$srcdir'
13033INSTALL='$INSTALL'
13034MKDIR_P='$MKDIR_P'
13035AWK='$AWK'
13036test -n "\$AWK" || AWK=awk
13037_ACEOF
13038
13039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13040# The default lists apply if the user does not specify any file.
13041ac_need_defaults=:
13042while test $# != 0
13043do
13044  case $1 in
13045  --*=?*)
13046    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13047    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13048    ac_shift=:
13049    ;;
13050  --*=)
13051    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13052    ac_optarg=
13053    ac_shift=:
13054    ;;
13055  *)
13056    ac_option=$1
13057    ac_optarg=$2
13058    ac_shift=shift
13059    ;;
13060  esac
13061
13062  case $ac_option in
13063  # Handling of the options.
13064  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13065    ac_cs_recheck=: ;;
13066  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13067    $as_echo "$ac_cs_version"; exit ;;
13068  --config | --confi | --conf | --con | --co | --c )
13069    $as_echo "$ac_cs_config"; exit ;;
13070  --debug | --debu | --deb | --de | --d | -d )
13071    debug=: ;;
13072  --file | --fil | --fi | --f )
13073    $ac_shift
13074    case $ac_optarg in
13075    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13076    '') as_fn_error $? "missing file argument" ;;
13077    esac
13078    as_fn_append CONFIG_FILES " '$ac_optarg'"
13079    ac_need_defaults=false;;
13080  --header | --heade | --head | --hea )
13081    $ac_shift
13082    case $ac_optarg in
13083    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13084    esac
13085    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13086    ac_need_defaults=false;;
13087  --he | --h)
13088    # Conflict between --help and --header
13089    as_fn_error $? "ambiguous option: \`$1'
13090Try \`$0 --help' for more information.";;
13091  --help | --hel | -h )
13092    $as_echo "$ac_cs_usage"; exit ;;
13093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13094  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13095    ac_cs_silent=: ;;
13096
13097  # This is an error.
13098  -*) as_fn_error $? "unrecognized option: \`$1'
13099Try \`$0 --help' for more information." ;;
13100
13101  *) as_fn_append ac_config_targets " $1"
13102     ac_need_defaults=false ;;
13103
13104  esac
13105  shift
13106done
13107
13108ac_configure_extra_args=
13109
13110if $ac_cs_silent; then
13111  exec 6>/dev/null
13112  ac_configure_extra_args="$ac_configure_extra_args --silent"
13113fi
13114
13115_ACEOF
13116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13117if \$ac_cs_recheck; then
13118  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13119  shift
13120  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13121  CONFIG_SHELL='$SHELL'
13122  export CONFIG_SHELL
13123  exec "\$@"
13124fi
13125
13126_ACEOF
13127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13128exec 5>>config.log
13129{
13130  echo
13131  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13132## Running $as_me. ##
13133_ASBOX
13134  $as_echo "$ac_log"
13135} >&5
13136
13137_ACEOF
13138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13139#
13140# INIT-COMMANDS
13141#
13142AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13143
13144
13145# The HP-UX ksh and POSIX shell print the target directory to stdout
13146# if CDPATH is set.
13147(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13148
13149sed_quote_subst='$sed_quote_subst'
13150double_quote_subst='$double_quote_subst'
13151delay_variable_subst='$delay_variable_subst'
13152macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13153macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13154enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13155enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13156pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13157enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13158SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13159ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13160PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13161host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13162host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13163host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13164build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13165build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13166build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13167SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13168Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13169GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13170EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13171FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13172LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13173NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13174LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13175max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13176ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13177exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13178lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13179lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13180lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13181lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13182lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13183reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13184reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13185OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13186deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13187file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13188file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13189want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13190DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13191sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13192AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13193AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13194archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13195STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13196RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13197old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13198old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13199old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13200lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13201CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13202CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13203compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13204GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13205lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13206lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13207lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13208lt_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"`'
13209nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13210lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13211objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13212MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13213lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13214lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13215lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13216lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13217lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13218need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13219MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13220DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13221NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13222LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13223OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13224OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13225libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13226shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13227extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13228archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13229enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13230export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13231whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13232compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13233old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13234old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13235archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13236archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13237module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13238module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13239with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13240allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13241no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13242hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13243hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13244hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13245hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13246hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13247hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13248hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13249inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13250link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13251always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13252export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13253exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13254include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13255prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13256postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13257file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13258variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13259need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13260need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13261version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13262runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13263shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13264shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13265libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13266library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13267soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13268install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13269postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13270postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13271finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13272finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13273hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13274sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13275sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13276hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13277enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13278enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13279enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13280old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13281striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13282
13283LTCC='$LTCC'
13284LTCFLAGS='$LTCFLAGS'
13285compiler='$compiler_DEFAULT'
13286
13287# A function that is used when there is no print builtin or printf.
13288func_fallback_echo ()
13289{
13290  eval 'cat <<_LTECHO_EOF
13291\$1
13292_LTECHO_EOF'
13293}
13294
13295# Quote evaled strings.
13296for var in SHELL \
13297ECHO \
13298PATH_SEPARATOR \
13299SED \
13300GREP \
13301EGREP \
13302FGREP \
13303LD \
13304NM \
13305LN_S \
13306lt_SP2NL \
13307lt_NL2SP \
13308reload_flag \
13309OBJDUMP \
13310deplibs_check_method \
13311file_magic_cmd \
13312file_magic_glob \
13313want_nocaseglob \
13314DLLTOOL \
13315sharedlib_from_linklib_cmd \
13316AR \
13317AR_FLAGS \
13318archiver_list_spec \
13319STRIP \
13320RANLIB \
13321CC \
13322CFLAGS \
13323compiler \
13324lt_cv_sys_global_symbol_pipe \
13325lt_cv_sys_global_symbol_to_cdecl \
13326lt_cv_sys_global_symbol_to_c_name_address \
13327lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13328nm_file_list_spec \
13329lt_prog_compiler_no_builtin_flag \
13330lt_prog_compiler_pic \
13331lt_prog_compiler_wl \
13332lt_prog_compiler_static \
13333lt_cv_prog_compiler_c_o \
13334need_locks \
13335MANIFEST_TOOL \
13336DSYMUTIL \
13337NMEDIT \
13338LIPO \
13339OTOOL \
13340OTOOL64 \
13341shrext_cmds \
13342export_dynamic_flag_spec \
13343whole_archive_flag_spec \
13344compiler_needs_object \
13345with_gnu_ld \
13346allow_undefined_flag \
13347no_undefined_flag \
13348hardcode_libdir_flag_spec \
13349hardcode_libdir_separator \
13350exclude_expsyms \
13351include_expsyms \
13352file_list_spec \
13353variables_saved_for_relink \
13354libname_spec \
13355library_names_spec \
13356soname_spec \
13357install_override_mode \
13358finish_eval \
13359old_striplib \
13360striplib; do
13361    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13362    *[\\\\\\\`\\"\\\$]*)
13363      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13364      ;;
13365    *)
13366      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13367      ;;
13368    esac
13369done
13370
13371# Double-quote double-evaled strings.
13372for var in reload_cmds \
13373old_postinstall_cmds \
13374old_postuninstall_cmds \
13375old_archive_cmds \
13376extract_expsyms_cmds \
13377old_archive_from_new_cmds \
13378old_archive_from_expsyms_cmds \
13379archive_cmds \
13380archive_expsym_cmds \
13381module_cmds \
13382module_expsym_cmds \
13383export_symbols_cmds \
13384prelink_cmds \
13385postlink_cmds \
13386postinstall_cmds \
13387postuninstall_cmds \
13388finish_cmds \
13389sys_lib_search_path_spec \
13390sys_lib_dlsearch_path_spec; do
13391    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13392    *[\\\\\\\`\\"\\\$]*)
13393      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13394      ;;
13395    *)
13396      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13397      ;;
13398    esac
13399done
13400
13401ac_aux_dir='$ac_aux_dir'
13402xsi_shell='$xsi_shell'
13403lt_shell_append='$lt_shell_append'
13404
13405# See if we are running on zsh, and set the options which allow our
13406# commands through without removal of \ escapes INIT.
13407if test -n "\${ZSH_VERSION+set}" ; then
13408   setopt NO_GLOB_SUBST
13409fi
13410
13411
13412    PACKAGE='$PACKAGE'
13413    VERSION='$VERSION'
13414    TIMESTAMP='$TIMESTAMP'
13415    RM='$RM'
13416    ofile='$ofile'
13417
13418
13419
13420
13421_ACEOF
13422
13423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13424
13425# Handling of arguments.
13426for ac_config_target in $ac_config_targets
13427do
13428  case $ac_config_target in
13429    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13430    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13431    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13432    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13433    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13434    "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13435    "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13436    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13437    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13438    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13439    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13440    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13441    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13442    "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
13443    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13444    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13445    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13446    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13447    "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13448    "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13449    "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
13450
13451  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13452  esac
13453done
13454
13455
13456# If the user did not use the arguments to specify the items to instantiate,
13457# then the envvar interface is used.  Set only those that are not.
13458# We use the long form for the default assignment because of an extremely
13459# bizarre bug on SunOS 4.1.3.
13460if $ac_need_defaults; then
13461  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13462  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13463  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13464fi
13465
13466# Have a temporary directory for convenience.  Make it in the build tree
13467# simply because there is no reason against having it here, and in addition,
13468# creating and moving files from /tmp can sometimes cause problems.
13469# Hook for its removal unless debugging.
13470# Note that there is a small window in which the directory will not be cleaned:
13471# after its creation but before its name has been assigned to `$tmp'.
13472$debug ||
13473{
13474  tmp= ac_tmp=
13475  trap 'exit_status=$?
13476  : "${ac_tmp:=$tmp}"
13477  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13478' 0
13479  trap 'as_fn_exit 1' 1 2 13 15
13480}
13481# Create a (secure) tmp directory for tmp files.
13482
13483{
13484  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13485  test -d "$tmp"
13486}  ||
13487{
13488  tmp=./conf$$-$RANDOM
13489  (umask 077 && mkdir "$tmp")
13490} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13491ac_tmp=$tmp
13492
13493# Set up the scripts for CONFIG_FILES section.
13494# No need to generate them if there are no CONFIG_FILES.
13495# This happens for instance with `./config.status config.h'.
13496if test -n "$CONFIG_FILES"; then
13497
13498
13499ac_cr=`echo X | tr X '\015'`
13500# On cygwin, bash can eat \r inside `` if the user requested igncr.
13501# But we know of no other shell where ac_cr would be empty at this
13502# point, so we can use a bashism as a fallback.
13503if test "x$ac_cr" = x; then
13504  eval ac_cr=\$\'\\r\'
13505fi
13506ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13507if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13508  ac_cs_awk_cr='\\r'
13509else
13510  ac_cs_awk_cr=$ac_cr
13511fi
13512
13513echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13514_ACEOF
13515
13516
13517{
13518  echo "cat >conf$$subs.awk <<_ACEOF" &&
13519  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13520  echo "_ACEOF"
13521} >conf$$subs.sh ||
13522  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13523ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13524ac_delim='%!_!# '
13525for ac_last_try in false false false false false :; do
13526  . ./conf$$subs.sh ||
13527    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13528
13529  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13530  if test $ac_delim_n = $ac_delim_num; then
13531    break
13532  elif $ac_last_try; then
13533    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13534  else
13535    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13536  fi
13537done
13538rm -f conf$$subs.sh
13539
13540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13542_ACEOF
13543sed -n '
13544h
13545s/^/S["/; s/!.*/"]=/
13546p
13547g
13548s/^[^!]*!//
13549:repl
13550t repl
13551s/'"$ac_delim"'$//
13552t delim
13553:nl
13554h
13555s/\(.\{148\}\)..*/\1/
13556t more1
13557s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13558p
13559n
13560b repl
13561:more1
13562s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13563p
13564g
13565s/.\{148\}//
13566t nl
13567:delim
13568h
13569s/\(.\{148\}\)..*/\1/
13570t more2
13571s/["\\]/\\&/g; s/^/"/; s/$/"/
13572p
13573b
13574:more2
13575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13576p
13577g
13578s/.\{148\}//
13579t delim
13580' <conf$$subs.awk | sed '
13581/^[^""]/{
13582  N
13583  s/\n//
13584}
13585' >>$CONFIG_STATUS || ac_write_fail=1
13586rm -f conf$$subs.awk
13587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588_ACAWK
13589cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13590  for (key in S) S_is_set[key] = 1
13591  FS = ""
13592
13593}
13594{
13595  line = $ 0
13596  nfields = split(line, field, "@")
13597  substed = 0
13598  len = length(field[1])
13599  for (i = 2; i < nfields; i++) {
13600    key = field[i]
13601    keylen = length(key)
13602    if (S_is_set[key]) {
13603      value = S[key]
13604      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13605      len += length(value) + length(field[++i])
13606      substed = 1
13607    } else
13608      len += 1 + keylen
13609  }
13610
13611  print line
13612}
13613
13614_ACAWK
13615_ACEOF
13616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13617if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13618  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13619else
13620  cat
13621fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13622  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13623_ACEOF
13624
13625# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13626# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13627# trailing colons and then remove the whole line if VPATH becomes empty
13628# (actually we leave an empty line to preserve line numbers).
13629if test "x$srcdir" = x.; then
13630  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13631h
13632s///
13633s/^/:/
13634s/[	 ]*$/:/
13635s/:\$(srcdir):/:/g
13636s/:\${srcdir}:/:/g
13637s/:@srcdir@:/:/g
13638s/^:*//
13639s/:*$//
13640x
13641s/\(=[	 ]*\).*/\1/
13642G
13643s/\n//
13644s/^[^=]*=[	 ]*$//
13645}'
13646fi
13647
13648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649fi # test -n "$CONFIG_FILES"
13650
13651# Set up the scripts for CONFIG_HEADERS section.
13652# No need to generate them if there are no CONFIG_HEADERS.
13653# This happens for instance with `./config.status Makefile'.
13654if test -n "$CONFIG_HEADERS"; then
13655cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13656BEGIN {
13657_ACEOF
13658
13659# Transform confdefs.h into an awk script `defines.awk', embedded as
13660# here-document in config.status, that substitutes the proper values into
13661# config.h.in to produce config.h.
13662
13663# Create a delimiter string that does not exist in confdefs.h, to ease
13664# handling of long lines.
13665ac_delim='%!_!# '
13666for ac_last_try in false false :; do
13667  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13668  if test -z "$ac_tt"; then
13669    break
13670  elif $ac_last_try; then
13671    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13672  else
13673    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13674  fi
13675done
13676
13677# For the awk script, D is an array of macro values keyed by name,
13678# likewise P contains macro parameters if any.  Preserve backslash
13679# newline sequences.
13680
13681ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13682sed -n '
13683s/.\{148\}/&'"$ac_delim"'/g
13684t rset
13685:rset
13686s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13687t def
13688d
13689:def
13690s/\\$//
13691t bsnl
13692s/["\\]/\\&/g
13693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13694D["\1"]=" \3"/p
13695s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13696d
13697:bsnl
13698s/["\\]/\\&/g
13699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13700D["\1"]=" \3\\\\\\n"\\/p
13701t cont
13702s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13703t cont
13704d
13705:cont
13706n
13707s/.\{148\}/&'"$ac_delim"'/g
13708t clear
13709:clear
13710s/\\$//
13711t bsnlc
13712s/["\\]/\\&/g; s/^/"/; s/$/"/p
13713d
13714:bsnlc
13715s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13716b cont
13717' <confdefs.h | sed '
13718s/'"$ac_delim"'/"\\\
13719"/g' >>$CONFIG_STATUS || ac_write_fail=1
13720
13721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13722  for (key in D) D_is_set[key] = 1
13723  FS = ""
13724}
13725/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13726  line = \$ 0
13727  split(line, arg, " ")
13728  if (arg[1] == "#") {
13729    defundef = arg[2]
13730    mac1 = arg[3]
13731  } else {
13732    defundef = substr(arg[1], 2)
13733    mac1 = arg[2]
13734  }
13735  split(mac1, mac2, "(") #)
13736  macro = mac2[1]
13737  prefix = substr(line, 1, index(line, defundef) - 1)
13738  if (D_is_set[macro]) {
13739    # Preserve the white space surrounding the "#".
13740    print prefix "define", macro P[macro] D[macro]
13741    next
13742  } else {
13743    # Replace #undef with comments.  This is necessary, for example,
13744    # in the case of _POSIX_SOURCE, which is predefined and required
13745    # on some systems where configure will not decide to define it.
13746    if (defundef == "undef") {
13747      print "/*", prefix defundef, macro, "*/"
13748      next
13749    }
13750  }
13751}
13752{ print }
13753_ACAWK
13754_ACEOF
13755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13756  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13757fi # test -n "$CONFIG_HEADERS"
13758
13759
13760eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13761shift
13762for ac_tag
13763do
13764  case $ac_tag in
13765  :[FHLC]) ac_mode=$ac_tag; continue;;
13766  esac
13767  case $ac_mode$ac_tag in
13768  :[FHL]*:*);;
13769  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13770  :[FH]-) ac_tag=-:-;;
13771  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13772  esac
13773  ac_save_IFS=$IFS
13774  IFS=:
13775  set x $ac_tag
13776  IFS=$ac_save_IFS
13777  shift
13778  ac_file=$1
13779  shift
13780
13781  case $ac_mode in
13782  :L) ac_source=$1;;
13783  :[FH])
13784    ac_file_inputs=
13785    for ac_f
13786    do
13787      case $ac_f in
13788      -) ac_f="$ac_tmp/stdin";;
13789      *) # Look for the file first in the build tree, then in the source tree
13790	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13791	 # because $ac_f cannot contain `:'.
13792	 test -f "$ac_f" ||
13793	   case $ac_f in
13794	   [\\/$]*) false;;
13795	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13796	   esac ||
13797	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13798      esac
13799      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13800      as_fn_append ac_file_inputs " '$ac_f'"
13801    done
13802
13803    # Let's still pretend it is `configure' which instantiates (i.e., don't
13804    # use $as_me), people would be surprised to read:
13805    #    /* config.h.  Generated by config.status.  */
13806    configure_input='Generated from '`
13807	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13808	`' by configure.'
13809    if test x"$ac_file" != x-; then
13810      configure_input="$ac_file.  $configure_input"
13811      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13812$as_echo "$as_me: creating $ac_file" >&6;}
13813    fi
13814    # Neutralize special characters interpreted by sed in replacement strings.
13815    case $configure_input in #(
13816    *\&* | *\|* | *\\* )
13817       ac_sed_conf_input=`$as_echo "$configure_input" |
13818       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13819    *) ac_sed_conf_input=$configure_input;;
13820    esac
13821
13822    case $ac_tag in
13823    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13824      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13825    esac
13826    ;;
13827  esac
13828
13829  ac_dir=`$as_dirname -- "$ac_file" ||
13830$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831	 X"$ac_file" : 'X\(//\)[^/]' \| \
13832	 X"$ac_file" : 'X\(//\)$' \| \
13833	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13834$as_echo X"$ac_file" |
13835    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13836	    s//\1/
13837	    q
13838	  }
13839	  /^X\(\/\/\)[^/].*/{
13840	    s//\1/
13841	    q
13842	  }
13843	  /^X\(\/\/\)$/{
13844	    s//\1/
13845	    q
13846	  }
13847	  /^X\(\/\).*/{
13848	    s//\1/
13849	    q
13850	  }
13851	  s/.*/./; q'`
13852  as_dir="$ac_dir"; as_fn_mkdir_p
13853  ac_builddir=.
13854
13855case "$ac_dir" in
13856.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13857*)
13858  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13859  # A ".." for each directory in $ac_dir_suffix.
13860  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13861  case $ac_top_builddir_sub in
13862  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13863  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13864  esac ;;
13865esac
13866ac_abs_top_builddir=$ac_pwd
13867ac_abs_builddir=$ac_pwd$ac_dir_suffix
13868# for backward compatibility:
13869ac_top_builddir=$ac_top_build_prefix
13870
13871case $srcdir in
13872  .)  # We are building in place.
13873    ac_srcdir=.
13874    ac_top_srcdir=$ac_top_builddir_sub
13875    ac_abs_top_srcdir=$ac_pwd ;;
13876  [\\/]* | ?:[\\/]* )  # Absolute name.
13877    ac_srcdir=$srcdir$ac_dir_suffix;
13878    ac_top_srcdir=$srcdir
13879    ac_abs_top_srcdir=$srcdir ;;
13880  *) # Relative name.
13881    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13882    ac_top_srcdir=$ac_top_build_prefix$srcdir
13883    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13884esac
13885ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13886
13887
13888  case $ac_mode in
13889  :F)
13890  #
13891  # CONFIG_FILE
13892  #
13893
13894  case $INSTALL in
13895  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13896  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13897  esac
13898  ac_MKDIR_P=$MKDIR_P
13899  case $MKDIR_P in
13900  [\\/$]* | ?:[\\/]* ) ;;
13901  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13902  esac
13903_ACEOF
13904
13905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906# If the template does not know about datarootdir, expand it.
13907# FIXME: This hack should be removed a few years after 2.60.
13908ac_datarootdir_hack=; ac_datarootdir_seen=
13909ac_sed_dataroot='
13910/datarootdir/ {
13911  p
13912  q
13913}
13914/@datadir@/p
13915/@docdir@/p
13916/@infodir@/p
13917/@localedir@/p
13918/@mandir@/p'
13919case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13920*datarootdir*) ac_datarootdir_seen=yes;;
13921*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13923$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13924_ACEOF
13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13926  ac_datarootdir_hack='
13927  s&@datadir@&$datadir&g
13928  s&@docdir@&$docdir&g
13929  s&@infodir@&$infodir&g
13930  s&@localedir@&$localedir&g
13931  s&@mandir@&$mandir&g
13932  s&\\\${datarootdir}&$datarootdir&g' ;;
13933esac
13934_ACEOF
13935
13936# Neutralize VPATH when `$srcdir' = `.'.
13937# Shell code in configure.ac might set extrasub.
13938# FIXME: do we really want to maintain this feature?
13939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13940ac_sed_extra="$ac_vpsub
13941$extrasub
13942_ACEOF
13943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944:t
13945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13946s|@configure_input@|$ac_sed_conf_input|;t t
13947s&@top_builddir@&$ac_top_builddir_sub&;t t
13948s&@top_build_prefix@&$ac_top_build_prefix&;t t
13949s&@srcdir@&$ac_srcdir&;t t
13950s&@abs_srcdir@&$ac_abs_srcdir&;t t
13951s&@top_srcdir@&$ac_top_srcdir&;t t
13952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13953s&@builddir@&$ac_builddir&;t t
13954s&@abs_builddir@&$ac_abs_builddir&;t t
13955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13956s&@INSTALL@&$ac_INSTALL&;t t
13957s&@MKDIR_P@&$ac_MKDIR_P&;t t
13958$ac_datarootdir_hack
13959"
13960eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13961  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13962
13963test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13964  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13965  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13966      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13968which seems to be undefined.  Please make sure it is defined" >&5
13969$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13970which seems to be undefined.  Please make sure it is defined" >&2;}
13971
13972  rm -f "$ac_tmp/stdin"
13973  case $ac_file in
13974  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13975  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13976  esac \
13977  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13978 ;;
13979  :H)
13980  #
13981  # CONFIG_HEADER
13982  #
13983  if test x"$ac_file" != x-; then
13984    {
13985      $as_echo "/* $configure_input  */" \
13986      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13987    } >"$ac_tmp/config.h" \
13988      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13989    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13990      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13991$as_echo "$as_me: $ac_file is unchanged" >&6;}
13992    else
13993      rm -f "$ac_file"
13994      mv "$ac_tmp/config.h" "$ac_file" \
13995	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13996    fi
13997  else
13998    $as_echo "/* $configure_input  */" \
13999      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14000      || as_fn_error $? "could not create -" "$LINENO" 5
14001  fi
14002# Compute "$ac_file"'s index in $config_headers.
14003_am_arg="$ac_file"
14004_am_stamp_count=1
14005for _am_header in $config_headers :; do
14006  case $_am_header in
14007    $_am_arg | $_am_arg:* )
14008      break ;;
14009    * )
14010      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14011  esac
14012done
14013echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14014$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14015	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14016	 X"$_am_arg" : 'X\(//\)$' \| \
14017	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14018$as_echo X"$_am_arg" |
14019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14020	    s//\1/
14021	    q
14022	  }
14023	  /^X\(\/\/\)[^/].*/{
14024	    s//\1/
14025	    q
14026	  }
14027	  /^X\(\/\/\)$/{
14028	    s//\1/
14029	    q
14030	  }
14031	  /^X\(\/\).*/{
14032	    s//\1/
14033	    q
14034	  }
14035	  s/.*/./; q'`/stamp-h$_am_stamp_count
14036 ;;
14037
14038  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14039$as_echo "$as_me: executing $ac_file commands" >&6;}
14040 ;;
14041  esac
14042
14043
14044  case $ac_file$ac_mode in
14045    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14046  # Older Autoconf quotes --file arguments for eval, but not when files
14047  # are listed without --file.  Let's play safe and only enable the eval
14048  # if we detect the quoting.
14049  case $CONFIG_FILES in
14050  *\'*) eval set x "$CONFIG_FILES" ;;
14051  *)   set x $CONFIG_FILES ;;
14052  esac
14053  shift
14054  for mf
14055  do
14056    # Strip MF so we end up with the name of the file.
14057    mf=`echo "$mf" | sed -e 's/:.*$//'`
14058    # Check whether this is an Automake generated Makefile or not.
14059    # We used to match only the files named 'Makefile.in', but
14060    # some people rename them; so instead we look at the file content.
14061    # Grep'ing the first line is not enough: some people post-process
14062    # each Makefile.in and add a new line on top of each file to say so.
14063    # Grep'ing the whole file is not good either: AIX grep has a line
14064    # limit of 2048, but all sed's we know have understand at least 4000.
14065    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14066      dirpart=`$as_dirname -- "$mf" ||
14067$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14068	 X"$mf" : 'X\(//\)[^/]' \| \
14069	 X"$mf" : 'X\(//\)$' \| \
14070	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14071$as_echo X"$mf" |
14072    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14073	    s//\1/
14074	    q
14075	  }
14076	  /^X\(\/\/\)[^/].*/{
14077	    s//\1/
14078	    q
14079	  }
14080	  /^X\(\/\/\)$/{
14081	    s//\1/
14082	    q
14083	  }
14084	  /^X\(\/\).*/{
14085	    s//\1/
14086	    q
14087	  }
14088	  s/.*/./; q'`
14089    else
14090      continue
14091    fi
14092    # Extract the definition of DEPDIR, am__include, and am__quote
14093    # from the Makefile without running 'make'.
14094    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14095    test -z "$DEPDIR" && continue
14096    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14097    test -z "$am__include" && continue
14098    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14099    # Find all dependency output files, they are included files with
14100    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14101    # simplest approach to changing $(DEPDIR) to its actual value in the
14102    # expansion.
14103    for file in `sed -n "
14104      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14105	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14106      # Make sure the directory exists.
14107      test -f "$dirpart/$file" && continue
14108      fdir=`$as_dirname -- "$file" ||
14109$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14110	 X"$file" : 'X\(//\)[^/]' \| \
14111	 X"$file" : 'X\(//\)$' \| \
14112	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14113$as_echo X"$file" |
14114    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14115	    s//\1/
14116	    q
14117	  }
14118	  /^X\(\/\/\)[^/].*/{
14119	    s//\1/
14120	    q
14121	  }
14122	  /^X\(\/\/\)$/{
14123	    s//\1/
14124	    q
14125	  }
14126	  /^X\(\/\).*/{
14127	    s//\1/
14128	    q
14129	  }
14130	  s/.*/./; q'`
14131      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14132      # echo "creating $dirpart/$file"
14133      echo '# dummy' > "$dirpart/$file"
14134    done
14135  done
14136}
14137 ;;
14138    "libtool":C)
14139
14140    # See if we are running on zsh, and set the options which allow our
14141    # commands through without removal of \ escapes.
14142    if test -n "${ZSH_VERSION+set}" ; then
14143      setopt NO_GLOB_SUBST
14144    fi
14145
14146    cfgfile="${ofile}T"
14147    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14148    $RM "$cfgfile"
14149
14150    cat <<_LT_EOF >> "$cfgfile"
14151#! $SHELL
14152
14153# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14154# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14156# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14157#
14158#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14159#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14160#                 Foundation, Inc.
14161#   Written by Gordon Matzigkeit, 1996
14162#
14163#   This file is part of GNU Libtool.
14164#
14165# GNU Libtool is free software; you can redistribute it and/or
14166# modify it under the terms of the GNU General Public License as
14167# published by the Free Software Foundation; either version 2 of
14168# the License, or (at your option) any later version.
14169#
14170# As a special exception to the GNU General Public License,
14171# if you distribute this file as part of a program or library that
14172# is built using GNU Libtool, you may include this file under the
14173# same distribution terms that you use for the rest of that program.
14174#
14175# GNU Libtool is distributed in the hope that it will be useful,
14176# but WITHOUT ANY WARRANTY; without even the implied warranty of
14177# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14178# GNU General Public License for more details.
14179#
14180# You should have received a copy of the GNU General Public License
14181# along with GNU Libtool; see the file COPYING.  If not, a copy
14182# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14183# obtained by writing to the Free Software Foundation, Inc.,
14184# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14185
14186
14187# The names of the tagged configurations supported by this script.
14188available_tags=""
14189
14190# ### BEGIN LIBTOOL CONFIG
14191
14192# Which release of libtool.m4 was used?
14193macro_version=$macro_version
14194macro_revision=$macro_revision
14195
14196# Whether or not to build static libraries.
14197build_old_libs=$enable_static
14198
14199# Whether or not to build shared libraries.
14200build_libtool_libs=$enable_shared
14201
14202# What type of objects to build.
14203pic_mode=$pic_mode
14204
14205# Whether or not to optimize for fast installation.
14206fast_install=$enable_fast_install
14207
14208# Shell to use when invoking shell scripts.
14209SHELL=$lt_SHELL
14210
14211# An echo program that protects backslashes.
14212ECHO=$lt_ECHO
14213
14214# The PATH separator for the build system.
14215PATH_SEPARATOR=$lt_PATH_SEPARATOR
14216
14217# The host system.
14218host_alias=$host_alias
14219host=$host
14220host_os=$host_os
14221
14222# The build system.
14223build_alias=$build_alias
14224build=$build
14225build_os=$build_os
14226
14227# A sed program that does not truncate output.
14228SED=$lt_SED
14229
14230# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14231Xsed="\$SED -e 1s/^X//"
14232
14233# A grep program that handles long lines.
14234GREP=$lt_GREP
14235
14236# An ERE matcher.
14237EGREP=$lt_EGREP
14238
14239# A literal string matcher.
14240FGREP=$lt_FGREP
14241
14242# A BSD- or MS-compatible name lister.
14243NM=$lt_NM
14244
14245# Whether we need soft or hard links.
14246LN_S=$lt_LN_S
14247
14248# What is the maximum length of a command?
14249max_cmd_len=$max_cmd_len
14250
14251# Object file suffix (normally "o").
14252objext=$ac_objext
14253
14254# Executable file suffix (normally "").
14255exeext=$exeext
14256
14257# whether the shell understands "unset".
14258lt_unset=$lt_unset
14259
14260# turn spaces into newlines.
14261SP2NL=$lt_lt_SP2NL
14262
14263# turn newlines into spaces.
14264NL2SP=$lt_lt_NL2SP
14265
14266# convert \$build file names to \$host format.
14267to_host_file_cmd=$lt_cv_to_host_file_cmd
14268
14269# convert \$build files to toolchain format.
14270to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14271
14272# An object symbol dumper.
14273OBJDUMP=$lt_OBJDUMP
14274
14275# Method to check whether dependent libraries are shared objects.
14276deplibs_check_method=$lt_deplibs_check_method
14277
14278# Command to use when deplibs_check_method = "file_magic".
14279file_magic_cmd=$lt_file_magic_cmd
14280
14281# How to find potential files when deplibs_check_method = "file_magic".
14282file_magic_glob=$lt_file_magic_glob
14283
14284# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14285want_nocaseglob=$lt_want_nocaseglob
14286
14287# DLL creation program.
14288DLLTOOL=$lt_DLLTOOL
14289
14290# Command to associate shared and link libraries.
14291sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14292
14293# The archiver.
14294AR=$lt_AR
14295
14296# Flags to create an archive.
14297AR_FLAGS=$lt_AR_FLAGS
14298
14299# How to feed a file listing to the archiver.
14300archiver_list_spec=$lt_archiver_list_spec
14301
14302# A symbol stripping program.
14303STRIP=$lt_STRIP
14304
14305# Commands used to install an old-style archive.
14306RANLIB=$lt_RANLIB
14307old_postinstall_cmds=$lt_old_postinstall_cmds
14308old_postuninstall_cmds=$lt_old_postuninstall_cmds
14309
14310# Whether to use a lock for old archive extraction.
14311lock_old_archive_extraction=$lock_old_archive_extraction
14312
14313# A C compiler.
14314LTCC=$lt_CC
14315
14316# LTCC compiler flags.
14317LTCFLAGS=$lt_CFLAGS
14318
14319# Take the output of nm and produce a listing of raw symbols and C names.
14320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14321
14322# Transform the output of nm in a proper C declaration.
14323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14324
14325# Transform the output of nm in a C name address pair.
14326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14327
14328# Transform the output of nm in a C name address pair when lib prefix is needed.
14329global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14330
14331# Specify filename containing input files for \$NM.
14332nm_file_list_spec=$lt_nm_file_list_spec
14333
14334# The root where to search for dependent libraries,and in which our libraries should be installed.
14335lt_sysroot=$lt_sysroot
14336
14337# The name of the directory that contains temporary libtool files.
14338objdir=$objdir
14339
14340# Used to examine libraries when file_magic_cmd begins with "file".
14341MAGIC_CMD=$MAGIC_CMD
14342
14343# Must we lock files when doing compilation?
14344need_locks=$lt_need_locks
14345
14346# Manifest tool.
14347MANIFEST_TOOL=$lt_MANIFEST_TOOL
14348
14349# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14350DSYMUTIL=$lt_DSYMUTIL
14351
14352# Tool to change global to local symbols on Mac OS X.
14353NMEDIT=$lt_NMEDIT
14354
14355# Tool to manipulate fat objects and archives on Mac OS X.
14356LIPO=$lt_LIPO
14357
14358# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14359OTOOL=$lt_OTOOL
14360
14361# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14362OTOOL64=$lt_OTOOL64
14363
14364# Old archive suffix (normally "a").
14365libext=$libext
14366
14367# Shared library suffix (normally ".so").
14368shrext_cmds=$lt_shrext_cmds
14369
14370# The commands to extract the exported symbol list from a shared archive.
14371extract_expsyms_cmds=$lt_extract_expsyms_cmds
14372
14373# Variables whose values should be saved in libtool wrapper scripts and
14374# restored at link time.
14375variables_saved_for_relink=$lt_variables_saved_for_relink
14376
14377# Do we need the "lib" prefix for modules?
14378need_lib_prefix=$need_lib_prefix
14379
14380# Do we need a version for libraries?
14381need_version=$need_version
14382
14383# Library versioning type.
14384version_type=$version_type
14385
14386# Shared library runtime path variable.
14387runpath_var=$runpath_var
14388
14389# Shared library path variable.
14390shlibpath_var=$shlibpath_var
14391
14392# Is shlibpath searched before the hard-coded library search path?
14393shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14394
14395# Format of library name prefix.
14396libname_spec=$lt_libname_spec
14397
14398# List of archive names.  First name is the real one, the rest are links.
14399# The last name is the one that the linker finds with -lNAME
14400library_names_spec=$lt_library_names_spec
14401
14402# The coded name of the library, if different from the real name.
14403soname_spec=$lt_soname_spec
14404
14405# Permission mode override for installation of shared libraries.
14406install_override_mode=$lt_install_override_mode
14407
14408# Command to use after installation of a shared archive.
14409postinstall_cmds=$lt_postinstall_cmds
14410
14411# Command to use after uninstallation of a shared archive.
14412postuninstall_cmds=$lt_postuninstall_cmds
14413
14414# Commands used to finish a libtool library installation in a directory.
14415finish_cmds=$lt_finish_cmds
14416
14417# As "finish_cmds", except a single script fragment to be evaled but
14418# not shown.
14419finish_eval=$lt_finish_eval
14420
14421# Whether we should hardcode library paths into libraries.
14422hardcode_into_libs=$hardcode_into_libs
14423
14424# Compile-time system search path for libraries.
14425sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14426
14427# Run-time system search path for libraries.
14428sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14429
14430# Whether dlopen is supported.
14431dlopen_support=$enable_dlopen
14432
14433# Whether dlopen of programs is supported.
14434dlopen_self=$enable_dlopen_self
14435
14436# Whether dlopen of statically linked programs is supported.
14437dlopen_self_static=$enable_dlopen_self_static
14438
14439# Commands to strip libraries.
14440old_striplib=$lt_old_striplib
14441striplib=$lt_striplib
14442
14443
14444# The linker used to build libraries.
14445LD=$lt_LD
14446
14447# How to create reloadable object files.
14448reload_flag=$lt_reload_flag
14449reload_cmds=$lt_reload_cmds
14450
14451# Commands used to build an old-style archive.
14452old_archive_cmds=$lt_old_archive_cmds
14453
14454# A language specific compiler.
14455CC=$lt_compiler
14456
14457# Is the compiler the GNU compiler?
14458with_gcc=$GCC
14459
14460# Compiler flag to turn off builtin functions.
14461no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14462
14463# Additional compiler flags for building library objects.
14464pic_flag=$lt_lt_prog_compiler_pic
14465
14466# How to pass a linker flag through the compiler.
14467wl=$lt_lt_prog_compiler_wl
14468
14469# Compiler flag to prevent dynamic linking.
14470link_static_flag=$lt_lt_prog_compiler_static
14471
14472# Does compiler simultaneously support -c and -o options?
14473compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14474
14475# Whether or not to add -lc for building shared libraries.
14476build_libtool_need_lc=$archive_cmds_need_lc
14477
14478# Whether or not to disallow shared libs when runtime libs are static.
14479allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14480
14481# Compiler flag to allow reflexive dlopens.
14482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14483
14484# Compiler flag to generate shared objects directly from archives.
14485whole_archive_flag_spec=$lt_whole_archive_flag_spec
14486
14487# Whether the compiler copes with passing no objects directly.
14488compiler_needs_object=$lt_compiler_needs_object
14489
14490# Create an old-style archive from a shared archive.
14491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14492
14493# Create a temporary old-style archive to link instead of a shared archive.
14494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14495
14496# Commands used to build a shared archive.
14497archive_cmds=$lt_archive_cmds
14498archive_expsym_cmds=$lt_archive_expsym_cmds
14499
14500# Commands used to build a loadable module if different from building
14501# a shared archive.
14502module_cmds=$lt_module_cmds
14503module_expsym_cmds=$lt_module_expsym_cmds
14504
14505# Whether we are building with GNU ld or not.
14506with_gnu_ld=$lt_with_gnu_ld
14507
14508# Flag that allows shared libraries with undefined symbols to be built.
14509allow_undefined_flag=$lt_allow_undefined_flag
14510
14511# Flag that enforces no undefined symbols.
14512no_undefined_flag=$lt_no_undefined_flag
14513
14514# Flag to hardcode \$libdir into a binary during linking.
14515# This must work even if \$libdir does not exist
14516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14517
14518# Whether we need a single "-rpath" flag with a separated argument.
14519hardcode_libdir_separator=$lt_hardcode_libdir_separator
14520
14521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14522# DIR into the resulting binary.
14523hardcode_direct=$hardcode_direct
14524
14525# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14526# DIR into the resulting binary and the resulting library dependency is
14527# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14528# library is relocated.
14529hardcode_direct_absolute=$hardcode_direct_absolute
14530
14531# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14532# into the resulting binary.
14533hardcode_minus_L=$hardcode_minus_L
14534
14535# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14536# into the resulting binary.
14537hardcode_shlibpath_var=$hardcode_shlibpath_var
14538
14539# Set to "yes" if building a shared library automatically hardcodes DIR
14540# into the library and all subsequent libraries and executables linked
14541# against it.
14542hardcode_automatic=$hardcode_automatic
14543
14544# Set to yes if linker adds runtime paths of dependent libraries
14545# to runtime path list.
14546inherit_rpath=$inherit_rpath
14547
14548# Whether libtool must link a program against all its dependency libraries.
14549link_all_deplibs=$link_all_deplibs
14550
14551# Set to "yes" if exported symbols are required.
14552always_export_symbols=$always_export_symbols
14553
14554# The commands to list exported symbols.
14555export_symbols_cmds=$lt_export_symbols_cmds
14556
14557# Symbols that should not be listed in the preloaded symbols.
14558exclude_expsyms=$lt_exclude_expsyms
14559
14560# Symbols that must always be exported.
14561include_expsyms=$lt_include_expsyms
14562
14563# Commands necessary for linking programs (against libraries) with templates.
14564prelink_cmds=$lt_prelink_cmds
14565
14566# Commands necessary for finishing linking programs.
14567postlink_cmds=$lt_postlink_cmds
14568
14569# Specify filename containing input files.
14570file_list_spec=$lt_file_list_spec
14571
14572# How to hardcode a shared library path into an executable.
14573hardcode_action=$hardcode_action
14574
14575# ### END LIBTOOL CONFIG
14576
14577_LT_EOF
14578
14579  case $host_os in
14580  aix3*)
14581    cat <<\_LT_EOF >> "$cfgfile"
14582# AIX sometimes has problems with the GCC collect2 program.  For some
14583# reason, if we set the COLLECT_NAMES environment variable, the problems
14584# vanish in a puff of smoke.
14585if test "X${COLLECT_NAMES+set}" != Xset; then
14586  COLLECT_NAMES=
14587  export COLLECT_NAMES
14588fi
14589_LT_EOF
14590    ;;
14591  esac
14592
14593
14594ltmain="$ac_aux_dir/ltmain.sh"
14595
14596
14597  # We use sed instead of cat because bash on DJGPP gets confused if
14598  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14599  # text mode, it properly converts lines to CR/LF.  This bash problem
14600  # is reportedly fixed, but why not run on old versions too?
14601  sed '$q' "$ltmain" >> "$cfgfile" \
14602     || (rm -f "$cfgfile"; exit 1)
14603
14604  if test x"$xsi_shell" = xyes; then
14605  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14606func_dirname ()\
14607{\
14608\    case ${1} in\
14609\      */*) func_dirname_result="${1%/*}${2}" ;;\
14610\      *  ) func_dirname_result="${3}" ;;\
14611\    esac\
14612} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14613  && mv -f "$cfgfile.tmp" "$cfgfile" \
14614    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14615test 0 -eq $? || _lt_function_replace_fail=:
14616
14617
14618  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14619func_basename ()\
14620{\
14621\    func_basename_result="${1##*/}"\
14622} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14623  && mv -f "$cfgfile.tmp" "$cfgfile" \
14624    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625test 0 -eq $? || _lt_function_replace_fail=:
14626
14627
14628  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14629func_dirname_and_basename ()\
14630{\
14631\    case ${1} in\
14632\      */*) func_dirname_result="${1%/*}${2}" ;;\
14633\      *  ) func_dirname_result="${3}" ;;\
14634\    esac\
14635\    func_basename_result="${1##*/}"\
14636} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14637  && mv -f "$cfgfile.tmp" "$cfgfile" \
14638    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14639test 0 -eq $? || _lt_function_replace_fail=:
14640
14641
14642  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14643func_stripname ()\
14644{\
14645\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14646\    # positional parameters, so assign one to ordinary parameter first.\
14647\    func_stripname_result=${3}\
14648\    func_stripname_result=${func_stripname_result#"${1}"}\
14649\    func_stripname_result=${func_stripname_result%"${2}"}\
14650} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14651  && mv -f "$cfgfile.tmp" "$cfgfile" \
14652    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653test 0 -eq $? || _lt_function_replace_fail=:
14654
14655
14656  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14657func_split_long_opt ()\
14658{\
14659\    func_split_long_opt_name=${1%%=*}\
14660\    func_split_long_opt_arg=${1#*=}\
14661} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14662  && mv -f "$cfgfile.tmp" "$cfgfile" \
14663    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14664test 0 -eq $? || _lt_function_replace_fail=:
14665
14666
14667  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14668func_split_short_opt ()\
14669{\
14670\    func_split_short_opt_arg=${1#??}\
14671\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14672} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14673  && mv -f "$cfgfile.tmp" "$cfgfile" \
14674    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14675test 0 -eq $? || _lt_function_replace_fail=:
14676
14677
14678  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14679func_lo2o ()\
14680{\
14681\    case ${1} in\
14682\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14683\      *)    func_lo2o_result=${1} ;;\
14684\    esac\
14685} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14686  && mv -f "$cfgfile.tmp" "$cfgfile" \
14687    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14688test 0 -eq $? || _lt_function_replace_fail=:
14689
14690
14691  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14692func_xform ()\
14693{\
14694    func_xform_result=${1%.*}.lo\
14695} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14696  && mv -f "$cfgfile.tmp" "$cfgfile" \
14697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698test 0 -eq $? || _lt_function_replace_fail=:
14699
14700
14701  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14702func_arith ()\
14703{\
14704    func_arith_result=$(( $* ))\
14705} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14706  && mv -f "$cfgfile.tmp" "$cfgfile" \
14707    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14708test 0 -eq $? || _lt_function_replace_fail=:
14709
14710
14711  sed -e '/^func_len ()$/,/^} # func_len /c\
14712func_len ()\
14713{\
14714    func_len_result=${#1}\
14715} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14716  && mv -f "$cfgfile.tmp" "$cfgfile" \
14717    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14718test 0 -eq $? || _lt_function_replace_fail=:
14719
14720fi
14721
14722if test x"$lt_shell_append" = xyes; then
14723  sed -e '/^func_append ()$/,/^} # func_append /c\
14724func_append ()\
14725{\
14726    eval "${1}+=\\${2}"\
14727} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14728  && mv -f "$cfgfile.tmp" "$cfgfile" \
14729    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730test 0 -eq $? || _lt_function_replace_fail=:
14731
14732
14733  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14734func_append_quoted ()\
14735{\
14736\    func_quote_for_eval "${2}"\
14737\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14738} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14739  && mv -f "$cfgfile.tmp" "$cfgfile" \
14740    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14741test 0 -eq $? || _lt_function_replace_fail=:
14742
14743
14744  # Save a `func_append' function call where possible by direct use of '+='
14745  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14746    && mv -f "$cfgfile.tmp" "$cfgfile" \
14747      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14748  test 0 -eq $? || _lt_function_replace_fail=:
14749else
14750  # Save a `func_append' function call even when '+=' is not available
14751  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14752    && mv -f "$cfgfile.tmp" "$cfgfile" \
14753      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14754  test 0 -eq $? || _lt_function_replace_fail=:
14755fi
14756
14757if test x"$_lt_function_replace_fail" = x":"; then
14758  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14759$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14760fi
14761
14762
14763   mv -f "$cfgfile" "$ofile" ||
14764    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14765  chmod +x "$ofile"
14766
14767 ;;
14768    "pamgdb":F) chmod +x pamgdb ;;
14769    "mkpkgng":F) chmod +x mkpkgng ;;
14770
14771  esac
14772done # for ac_tag
14773
14774
14775as_fn_exit 0
14776_ACEOF
14777ac_clean_files=$ac_clean_files_save
14778
14779test $ac_write_fail = 0 ||
14780  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14781
14782
14783# configure is writing to config.log, and then calls config.status.
14784# config.status does its own redirection, appending to config.log.
14785# Unfortunately, on DOS this fails, as config.log is still kept open
14786# by configure, so config.status won't be able to write to it; its
14787# output is simply discarded.  So we exec the FD to /dev/null,
14788# effectively closing config.log, so it can be properly (re)opened and
14789# appended to by config.status.  When coming back to configure, we
14790# need to make the FD available again.
14791if test "$no_create" != yes; then
14792  ac_cs_success=:
14793  ac_config_status_args=
14794  test "$silent" = yes &&
14795    ac_config_status_args="$ac_config_status_args --quiet"
14796  exec 5>/dev/null
14797  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14798  exec 5>>config.log
14799  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14800  # would make configure fail if this is the last instruction.
14801  $ac_cs_success || as_fn_exit 1
14802fi
14803if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14805$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14806fi
14807
14808