xref: /freebsd/contrib/openbsm/configure (revision 2f02600abfddfc4e9f20dd384a2e729b451e16bd)
1#! /bin/sh
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#65 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenBSM 1.2-alpha3.
5#
6# Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
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
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || 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
279$0: trustedbsd-audit@TrustesdBSD.org about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='OpenBSM'
593PACKAGE_TARNAME='openbsm'
594PACKAGE_VERSION='1.2-alpha3'
595PACKAGE_STRING='OpenBSM 1.2-alpha3'
596PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
597PACKAGE_URL=''
598
599ac_unique_file="bin/auditreduce/auditreduce.c"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_header_list=
637ac_func_list=
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
641USE_MACH_IPC_FALSE
642USE_MACH_IPC_TRUE
643HAVE_AUDIT_SYSCALLS_FALSE
644HAVE_AUDIT_SYSCALLS_TRUE
645LIBOBJS
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649am__nodep
650AMDEPBACKSLASH
651AMDEP_FALSE
652AMDEP_TRUE
653am__quote
654am__include
655DEPDIR
656am__untar
657am__tar
658AMTAR
659am__leading_dot
660SET_MAKE
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674YFLAGS
675YACC
676CPP
677OTOOL64
678OTOOL
679LIPO
680NMEDIT
681DSYMUTIL
682MANIFEST_TOOL
683AWK
684RANLIB
685STRIP
686ac_ct_AR
687AR
688DLLTOOL
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698SED
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707LIBTOOL
708LEXLIB
709LEX_OUTPUT_ROOT
710LEX
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721MIG
722USE_NATIVE_INCLUDES_FALSE
723USE_NATIVE_INCLUDES_TRUE
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL'
765ac_subst_files=''
766ac_user_opts='
767enable_option_checking
768enable_maintainer_mode
769with_native_includes
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_gnu_ld
775with_sysroot
776enable_libtool_lock
777enable_dependency_tracking
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787CPP
788YACC
789YFLAGS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266  ac_srcdir_defaulted=yes
1267  # Try the directory containing this script, then the parent directory.
1268  ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270	 X"$as_myself" : 'X\(//\)[^/]' \| \
1271	 X"$as_myself" : 'X\(//\)$' \| \
1272	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)[^/].*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\).*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  s/.*/./; q'`
1291  srcdir=$ac_confdir
1292  if test ! -r "$srcdir/$ac_unique_file"; then
1293    srcdir=..
1294  fi
1295else
1296  ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305	pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308  srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_env_${ac_var}_value=\$${ac_var}
1319  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327  # Omit some internal or obsolete options to make the list less imposing.
1328  # This message is too long to be a string in the A/UX 3.1 sh.
1329  cat <<_ACEOF
1330\`configure' configures OpenBSM 1.2-alpha3 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340  -h, --help              display this help and exit
1341      --help=short        display options specific to this package
1342      --help=recursive    display the short help of all the included packages
1343  -V, --version           display version information and exit
1344  -q, --quiet, --silent   do not print \`checking ...' messages
1345      --cache-file=FILE   cache test results in FILE [disabled]
1346  -C, --config-cache      alias for \`--cache-file=config.cache'
1347  -n, --no-create         do not create output files
1348      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351  --prefix=PREFIX         install architecture-independent files in PREFIX
1352                          [$ac_default_prefix]
1353  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                          [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364  --bindir=DIR            user executables [EPREFIX/bin]
1365  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366  --libexecdir=DIR        program executables [EPREFIX/libexec]
1367  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370  --libdir=DIR            object code libraries [EPREFIX/lib]
1371  --includedir=DIR        C header files [PREFIX/include]
1372  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375  --infodir=DIR           info documentation [DATAROOTDIR/info]
1376  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377  --mandir=DIR            man documentation [DATAROOTDIR/man]
1378  --docdir=DIR            documentation root [DATAROOTDIR/doc/openbsm]
1379  --htmldir=DIR           html documentation [DOCDIR]
1380  --dvidir=DIR            dvi documentation [DOCDIR]
1381  --pdfdir=DIR            pdf documentation [DOCDIR]
1382  --psdir=DIR             ps documentation [DOCDIR]
1383_ACEOF
1384
1385  cat <<\_ACEOF
1386
1387Program names:
1388  --program-prefix=PREFIX            prepend PREFIX to installed program names
1389  --program-suffix=SUFFIX            append SUFFIX to installed program names
1390  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392System types:
1393  --build=BUILD     configure for building on BUILD [guessed]
1394  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of OpenBSM 1.2-alpha3:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-option-checking  ignore unrecognized --enable/--with options
1406  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408  --enable-maintainer-mode
1409                          enable make rules and dependencies not useful (and
1410                          sometimes confusing) to the casual installer
1411  --enable-shared[=PKGS]  build shared libraries [default=yes]
1412  --enable-static[=PKGS]  build static libraries [default=yes]
1413  --enable-fast-install[=PKGS]
1414                          optimize for fast installation [default=yes]
1415  --disable-libtool-lock  avoid locking (might break parallel builds)
1416  --enable-dependency-tracking
1417                          do not reject slow dependency extractors
1418  --disable-dependency-tracking
1419                          speeds up one-time build
1420
1421Optional Packages:
1422  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424  --with-native-includes  Use the system native include files instead of those
1425                          included with openbsm.
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429  --with-sysroot=DIR Search for dependent libraries within DIR
1430                        (or the compiler's sysroot if not specified).
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441  YACC        The `Yet Another Compiler Compiler' implementation to use.
1442              Defaults to the first program found out of: `bison -y', `byacc',
1443              `yacc'.
1444  YFLAGS      The list of arguments that will be passed by default to $YACC.
1445              This script will default YFLAGS to the empty string to avoid a
1446              default value of `-d' given by some make applications.
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
1451Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1452_ACEOF
1453ac_status=$?
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457  # If there are subdirs, report their specific --help.
1458  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459    test -d "$ac_dir" ||
1460      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461      continue
1462    ac_builddir=.
1463
1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468  # A ".." for each directory in $ac_dir_suffix.
1469  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470  case $ac_top_builddir_sub in
1471  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473  esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
1479
1480case $srcdir in
1481  .)  # We are building in place.
1482    ac_srcdir=.
1483    ac_top_srcdir=$ac_top_builddir_sub
1484    ac_abs_top_srcdir=$ac_pwd ;;
1485  [\\/]* | ?:[\\/]* )  # Absolute name.
1486    ac_srcdir=$srcdir$ac_dir_suffix;
1487    ac_top_srcdir=$srcdir
1488    ac_abs_top_srcdir=$srcdir ;;
1489  *) # Relative name.
1490    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491    ac_top_srcdir=$ac_top_build_prefix$srcdir
1492    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493esac
1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496    cd "$ac_dir" || { ac_status=$?; continue; }
1497    # Check for guested configure.
1498    if test -f "$ac_srcdir/configure.gnu"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501    elif test -f "$ac_srcdir/configure"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure" --help=recursive
1504    else
1505      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506    fi || ac_status=$?
1507    cd "$ac_pwd" || { ac_status=$?; break; }
1508  done
1509fi
1510
1511test -n "$ac_init_help" && exit $ac_status
1512if $ac_init_version; then
1513  cat <<\_ACEOF
1514OpenBSM configure 1.2-alpha3
1515generated by GNU Autoconf 2.69
1516
1517Copyright (C) 2012 Free Software Foundation, Inc.
1518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
1521  exit
1522fi
1523
1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
1527
1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
1532{
1533  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534  rm -f conftest.$ac_objext
1535  if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538  *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542  (eval "$ac_compile") 2>conftest.err
1543  ac_status=$?
1544  if test -s conftest.err; then
1545    grep -v '^ *+' conftest.err >conftest.er1
1546    cat conftest.er1 >&5
1547    mv -f conftest.er1 conftest.err
1548  fi
1549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550  test $ac_status = 0; } && {
1551	 test -z "$ac_c_werror_flag" ||
1552	 test ! -s conftest.err
1553       } && test -s conftest.$ac_objext; then :
1554  ac_retval=0
1555else
1556  $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
1558
1559	ac_retval=1
1560fi
1561  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562  as_fn_set_status $ac_retval
1563
1564} # ac_fn_c_try_compile
1565
1566# ac_fn_c_try_link LINENO
1567# -----------------------
1568# Try to link conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_link ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  rm -f conftest.$ac_objext conftest$ac_exeext
1573  if { { ac_try="$ac_link"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_link") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } && {
1589	 test -z "$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       } && test -s conftest$ac_exeext && {
1592	 test "$cross_compiling" = yes ||
1593	 test -x conftest$ac_exeext
1594       }; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604  # interfere with the next link command; also delete a directory that is
1605  # left behind by Apple's compiler.  We do this before executing the actions.
1606  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_link
1611
1612# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists and can be compiled using the include files in
1615# INCLUDES, setting the cache variable VAR accordingly.
1616ac_fn_c_check_header_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
1621if eval \${$3+:} false; then :
1622  $as_echo_n "(cached) " >&6
1623else
1624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h.  */
1626$4
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630  eval "$3=yes"
1631else
1632  eval "$3=no"
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635fi
1636eval ac_res=\$$3
1637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_c_check_header_compile
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } > conftest.i && {
1665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       }; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673    ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_link") 2>&5
1695  ac_status=$?
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698  { { case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_try") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; }; }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: program exited with status $ac_status" >&5
1711       $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714       ac_retval=$ac_status
1715fi
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_run
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
1730if eval \${$3+:} false; then :
1731  $as_echo_n "(cached) " >&6
1732else
1733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1737#define $2 innocuous_$2
1738
1739/* System header to define __stub macros and hopefully few prototypes,
1740    which can conflict with char $2 (); below.
1741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742    <limits.h> exists even on freestanding compilers.  */
1743
1744#ifdef __STDC__
1745# include <limits.h>
1746#else
1747# include <assert.h>
1748#endif
1749
1750#undef $2
1751
1752/* Override any GCC internal prototype to avoid an error.
1753   Use char because int might match the return type of a GCC
1754   builtin and then its argument prototype would still apply.  */
1755#ifdef __cplusplus
1756extern "C"
1757#endif
1758char $2 ();
1759/* The GNU C library defines this for functions which it implements
1760    to always fail with ENOSYS.  Some functions are actually named
1761    something starting with __ and the normal name is an alias.  */
1762#if defined __stub_$2 || defined __stub___$2
1763choke me
1764#endif
1765
1766int
1767main ()
1768{
1769return $2 ();
1770  ;
1771  return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_link "$LINENO"; then :
1775  eval "$3=yes"
1776else
1777  eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext \
1780    conftest$ac_exeext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787} # ac_fn_c_check_func
1788
1789# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790# -------------------------------------------------------
1791# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792# the include files in INCLUDES and setting the cache variable VAR
1793# accordingly.
1794ac_fn_c_check_header_mongrel ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  if eval \${$3+:} false; then :
1798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if eval \${$3+:} false; then :
1801  $as_echo_n "(cached) " >&6
1802fi
1803eval ac_res=\$$3
1804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806else
1807  # Is the header compilable?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809$as_echo_n "checking $2 usability... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816  ac_header_compiler=yes
1817else
1818  ac_header_compiler=no
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822$as_echo "$ac_header_compiler" >&6; }
1823
1824# Is the header present?
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826$as_echo_n "checking $2 presence... " >&6; }
1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829#include <$2>
1830_ACEOF
1831if ac_fn_c_try_cpp "$LINENO"; then :
1832  ac_header_preproc=yes
1833else
1834  ac_header_preproc=no
1835fi
1836rm -f conftest.err conftest.i conftest.$ac_ext
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838$as_echo "$ac_header_preproc" >&6; }
1839
1840# So?  What about this header?
1841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842  yes:no: )
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847    ;;
1848  no:yes:* )
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1852$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1856$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859( $as_echo "## ----------------------------------------------- ##
1860## Report this to trustedbsd-audit@TrustesdBSD.org ##
1861## ----------------------------------------------- ##"
1862     ) | sed "s/^/$as_me: WARNING:     /" >&2
1863    ;;
1864esac
1865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868  $as_echo_n "(cached) " >&6
1869else
1870  eval "$3=\$ac_header_compiler"
1871fi
1872eval ac_res=\$$3
1873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875fi
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_header_mongrel
1879
1880# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1881# -------------------------------------------
1882# Tests whether TYPE exists after having included INCLUDES, setting cache
1883# variable VAR accordingly.
1884ac_fn_c_check_type ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  eval "$3=no"
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$4
1896int
1897main ()
1898{
1899if (sizeof ($2))
1900	 return 0;
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909int
1910main ()
1911{
1912if (sizeof (($2)))
1913	    return 0;
1914  ;
1915  return 0;
1916}
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"; then :
1919
1920else
1921  eval "$3=yes"
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932} # ac_fn_c_check_type
1933
1934# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1935# ----------------------------------------------------
1936# Tries to find if the field MEMBER exists in type AGGR, after including
1937# INCLUDES, setting cache variable VAR accordingly.
1938ac_fn_c_check_member ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1942$as_echo_n "checking for $2.$3... " >&6; }
1943if eval \${$4+:} false; then :
1944  $as_echo_n "(cached) " >&6
1945else
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$5
1949int
1950main ()
1951{
1952static $2 ac_aggr;
1953if (ac_aggr.$3)
1954return 0;
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960  eval "$4=yes"
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$5
1965int
1966main ()
1967{
1968static $2 ac_aggr;
1969if (sizeof ac_aggr.$3)
1970return 0;
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  eval "$4=yes"
1977else
1978  eval "$4=no"
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984eval ac_res=\$$4
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_member
1990cat >config.log <<_ACEOF
1991This file contains any messages produced by compilers while
1992running configure, to aid debugging if configure makes a mistake.
1993
1994It was created by OpenBSM $as_me 1.2-alpha3, which was
1995generated by GNU Autoconf 2.69.  Invocation command line was
1996
1997  $ $0 $@
1998
1999_ACEOF
2000exec 5>>config.log
2001{
2002cat <<_ASUNAME
2003## --------- ##
2004## Platform. ##
2005## --------- ##
2006
2007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011uname -v = `(uname -v) 2>/dev/null || echo unknown`
2012
2013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2015
2016/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2017/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2020/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2021/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2022/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2023
2024_ASUNAME
2025
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029  IFS=$as_save_IFS
2030  test -z "$as_dir" && as_dir=.
2031    $as_echo "PATH: $as_dir"
2032  done
2033IFS=$as_save_IFS
2034
2035} >&5
2036
2037cat >&5 <<_ACEOF
2038
2039
2040## ----------- ##
2041## Core tests. ##
2042## ----------- ##
2043
2044_ACEOF
2045
2046
2047# Keep a trace of the command line.
2048# Strip out --no-create and --no-recursion so they do not pile up.
2049# Strip out --silent because we don't want to record it for future runs.
2050# Also quote any args containing shell meta-characters.
2051# Make two passes to allow for proper duplicate-argument suppression.
2052ac_configure_args=
2053ac_configure_args0=
2054ac_configure_args1=
2055ac_must_keep_next=false
2056for ac_pass in 1 2
2057do
2058  for ac_arg
2059  do
2060    case $ac_arg in
2061    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063    | -silent | --silent | --silen | --sile | --sil)
2064      continue ;;
2065    *\'*)
2066      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2067    esac
2068    case $ac_pass in
2069    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2070    2)
2071      as_fn_append ac_configure_args1 " '$ac_arg'"
2072      if test $ac_must_keep_next = true; then
2073	ac_must_keep_next=false # Got value, back to normal.
2074      else
2075	case $ac_arg in
2076	  *=* | --config-cache | -C | -disable-* | --disable-* \
2077	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079	  | -with-* | --with-* | -without-* | --without-* | --x)
2080	    case "$ac_configure_args0 " in
2081	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2082	    esac
2083	    ;;
2084	  -* ) ac_must_keep_next=true ;;
2085	esac
2086      fi
2087      as_fn_append ac_configure_args " '$ac_arg'"
2088      ;;
2089    esac
2090  done
2091done
2092{ ac_configure_args0=; unset ac_configure_args0;}
2093{ ac_configure_args1=; unset ac_configure_args1;}
2094
2095# When interrupted or exit'd, cleanup temporary files, and complete
2096# config.log.  We remove comments because anyway the quotes in there
2097# would cause problems or look ugly.
2098# WARNING: Use '\'' to represent an apostrophe within the trap.
2099# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100trap 'exit_status=$?
2101  # Save into config.log some information that might help in debugging.
2102  {
2103    echo
2104
2105    $as_echo "## ---------------- ##
2106## Cache variables. ##
2107## ---------------- ##"
2108    echo
2109    # The following way of writing the cache mishandles newlines in values,
2110(
2111  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112    eval ac_val=\$$ac_var
2113    case $ac_val in #(
2114    *${as_nl}*)
2115      case $ac_var in #(
2116      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2118      esac
2119      case $ac_var in #(
2120      _ | IFS | as_nl) ;; #(
2121      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122      *) { eval $ac_var=; unset $ac_var;} ;;
2123      esac ;;
2124    esac
2125  done
2126  (set) 2>&1 |
2127    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128    *${as_nl}ac_space=\ *)
2129      sed -n \
2130	"s/'\''/'\''\\\\'\'''\''/g;
2131	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2132      ;; #(
2133    *)
2134      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135      ;;
2136    esac |
2137    sort
2138)
2139    echo
2140
2141    $as_echo "## ----------------- ##
2142## Output variables. ##
2143## ----------------- ##"
2144    echo
2145    for ac_var in $ac_subst_vars
2146    do
2147      eval ac_val=\$$ac_var
2148      case $ac_val in
2149      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150      esac
2151      $as_echo "$ac_var='\''$ac_val'\''"
2152    done | sort
2153    echo
2154
2155    if test -n "$ac_subst_files"; then
2156      $as_echo "## ------------------- ##
2157## File substitutions. ##
2158## ------------------- ##"
2159      echo
2160      for ac_var in $ac_subst_files
2161      do
2162	eval ac_val=\$$ac_var
2163	case $ac_val in
2164	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165	esac
2166	$as_echo "$ac_var='\''$ac_val'\''"
2167      done | sort
2168      echo
2169    fi
2170
2171    if test -s confdefs.h; then
2172      $as_echo "## ----------- ##
2173## confdefs.h. ##
2174## ----------- ##"
2175      echo
2176      cat confdefs.h
2177      echo
2178    fi
2179    test "$ac_signal" != 0 &&
2180      $as_echo "$as_me: caught signal $ac_signal"
2181    $as_echo "$as_me: exit $exit_status"
2182  } >&5
2183  rm -f core *.core core.conftest.* &&
2184    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2185    exit $exit_status
2186' 0
2187for ac_signal in 1 2 13 15; do
2188  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2189done
2190ac_signal=0
2191
2192# confdefs.h avoids OS command line length limits that DEFS can exceed.
2193rm -f -r conftest* confdefs.h
2194
2195$as_echo "/* confdefs.h */" > confdefs.h
2196
2197# Predefined preprocessor variables.
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_NAME "$PACKAGE_NAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_VERSION "$PACKAGE_VERSION"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_STRING "$PACKAGE_STRING"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_URL "$PACKAGE_URL"
2221_ACEOF
2222
2223
2224# Let the site file select an alternate cache file if it wants to.
2225# Prefer an explicitly selected file to automatically selected ones.
2226ac_site_file1=NONE
2227ac_site_file2=NONE
2228if test -n "$CONFIG_SITE"; then
2229  # We do not want a PATH search for config.site.
2230  case $CONFIG_SITE in #((
2231    -*)  ac_site_file1=./$CONFIG_SITE;;
2232    */*) ac_site_file1=$CONFIG_SITE;;
2233    *)   ac_site_file1=./$CONFIG_SITE;;
2234  esac
2235elif test "x$prefix" != xNONE; then
2236  ac_site_file1=$prefix/share/config.site
2237  ac_site_file2=$prefix/etc/config.site
2238else
2239  ac_site_file1=$ac_default_prefix/share/config.site
2240  ac_site_file2=$ac_default_prefix/etc/config.site
2241fi
2242for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2243do
2244  test "x$ac_site_file" = xNONE && continue
2245  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248    sed 's/^/| /' "$ac_site_file" >&5
2249    . "$ac_site_file" \
2250      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252as_fn_error $? "failed to load site script $ac_site_file
2253See \`config.log' for more details" "$LINENO" 5; }
2254  fi
2255done
2256
2257if test -r "$cache_file"; then
2258  # Some versions of bash will fail to source /dev/null (special files
2259  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2260  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262$as_echo "$as_me: loading cache $cache_file" >&6;}
2263    case $cache_file in
2264      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265      *)                      . "./$cache_file";;
2266    esac
2267  fi
2268else
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270$as_echo "$as_me: creating cache $cache_file" >&6;}
2271  >$cache_file
2272fi
2273
2274as_fn_append ac_header_list " sys/time.h"
2275as_fn_append ac_header_list " unistd.h"
2276as_fn_append ac_func_list " alarm"
2277# Check that the precious variables saved in the cache have kept the same
2278# value.
2279ac_cache_corrupted=false
2280for ac_var in $ac_precious_vars; do
2281  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282  eval ac_new_set=\$ac_env_${ac_var}_set
2283  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284  eval ac_new_val=\$ac_env_${ac_var}_value
2285  case $ac_old_set,$ac_new_set in
2286    set,)
2287      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289      ac_cache_corrupted=: ;;
2290    ,set)
2291      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2293      ac_cache_corrupted=: ;;
2294    ,);;
2295    *)
2296      if test "x$ac_old_val" != "x$ac_new_val"; then
2297	# differences in whitespace do not lead to failure.
2298	ac_old_val_w=`echo x $ac_old_val`
2299	ac_new_val_w=`echo x $ac_new_val`
2300	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303	  ac_cache_corrupted=:
2304	else
2305	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307	  eval $ac_var=\$ac_old_val
2308	fi
2309	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2310$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2311	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2312$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2313      fi;;
2314  esac
2315  # Pass precious variables to config.status.
2316  if test "$ac_new_set" = set; then
2317    case $ac_new_val in
2318    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2319    *) ac_arg=$ac_var=$ac_new_val ;;
2320    esac
2321    case " $ac_configure_args " in
2322      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2323      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2324    esac
2325  fi
2326done
2327if $ac_cache_corrupted; then
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2333fi
2334## -------------------- ##
2335## Main body of script. ##
2336## -------------------- ##
2337
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344
2345
2346
2347
2348ac_aux_dir=
2349for ac_dir in config "$srcdir"/config; do
2350  if test -f "$ac_dir/install-sh"; then
2351    ac_aux_dir=$ac_dir
2352    ac_install_sh="$ac_aux_dir/install-sh -c"
2353    break
2354  elif test -f "$ac_dir/install.sh"; then
2355    ac_aux_dir=$ac_dir
2356    ac_install_sh="$ac_aux_dir/install.sh -c"
2357    break
2358  elif test -f "$ac_dir/shtool"; then
2359    ac_aux_dir=$ac_dir
2360    ac_install_sh="$ac_aux_dir/shtool install -c"
2361    break
2362  fi
2363done
2364if test -z "$ac_aux_dir"; then
2365  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2366fi
2367
2368# These three variables are undocumented and unsupported,
2369# and are intended to be withdrawn in a future Autoconf release.
2370# They can cause serious problems if a builder's source tree is in a directory
2371# whose full name contains unusual characters.
2372ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2373ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2374ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2375
2376
2377
2378ac_config_headers="$ac_config_headers config/config.h"
2379
2380
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2382$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2383    # Check whether --enable-maintainer-mode was given.
2384if test "${enable_maintainer_mode+set}" = set; then :
2385  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2386else
2387  USE_MAINTAINER_MODE=no
2388fi
2389
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2391$as_echo "$USE_MAINTAINER_MODE" >&6; }
2392   if test $USE_MAINTAINER_MODE = yes; then
2393  MAINTAINER_MODE_TRUE=
2394  MAINTAINER_MODE_FALSE='#'
2395else
2396  MAINTAINER_MODE_TRUE='#'
2397  MAINTAINER_MODE_FALSE=
2398fi
2399
2400  MAINT=$MAINTAINER_MODE_TRUE
2401
2402
2403
2404# --with-native-includes forces the use of the system bsm headers.
2405
2406# Check whether --with-native-includes was given.
2407if test "${with_native_includes+set}" = set; then :
2408  withval=$with_native_includes;
2409
2410$as_echo "#define USE_NATIVE_INCLUDES /**/" >>confdefs.h
2411
2412use_native_includes=true
2413
2414else
2415  use_native_includes=false
2416fi
2417
2418 if $use_native_includes; then
2419  USE_NATIVE_INCLUDES_TRUE=
2420  USE_NATIVE_INCLUDES_FALSE='#'
2421else
2422  USE_NATIVE_INCLUDES_TRUE='#'
2423  USE_NATIVE_INCLUDES_FALSE=
2424fi
2425
2426
2427for ac_prog in mig
2428do
2429  # Extract the first word of "$ac_prog", so it can be a program name with args.
2430set dummy $ac_prog; ac_word=$2
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if ${ac_cv_path_MIG+:} false; then :
2434  $as_echo_n "(cached) " >&6
2435else
2436  case $MIG in
2437  [\\/]* | ?:[\\/]*)
2438  ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2439  ;;
2440  *)
2441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444  IFS=$as_save_IFS
2445  test -z "$as_dir" && as_dir=.
2446    for ac_exec_ext in '' $ac_executable_extensions; do
2447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448    ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450    break 2
2451  fi
2452done
2453  done
2454IFS=$as_save_IFS
2455
2456  ;;
2457esac
2458fi
2459MIG=$ac_cv_path_MIG
2460if test -n "$MIG"; then
2461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
2462$as_echo "$MIG" >&6; }
2463else
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465$as_echo "no" >&6; }
2466fi
2467
2468
2469  test -n "$MIG" && break
2470done
2471
2472
2473# Checks for programs.
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479if test -n "$ac_tool_prefix"; then
2480  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if ${ac_cv_prog_CC+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test -n "$CC"; then
2488  ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495    for ac_exec_ext in '' $ac_executable_extensions; do
2496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502  done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510$as_echo "$CC" >&6; }
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516
2517fi
2518if test -z "$ac_cv_prog_CC"; then
2519  ac_ct_CC=$CC
2520  # Extract the first word of "gcc", so it can be a program name with args.
2521set dummy gcc; ac_word=$2
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523$as_echo_n "checking for $ac_word... " >&6; }
2524if ${ac_cv_prog_ac_ct_CC+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  if test -n "$ac_ct_CC"; then
2528  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535    for ac_exec_ext in '' $ac_executable_extensions; do
2536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537    ac_cv_prog_ac_ct_CC="gcc"
2538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539    break 2
2540  fi
2541done
2542  done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548if test -n "$ac_ct_CC"; then
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2550$as_echo "$ac_ct_CC" >&6; }
2551else
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553$as_echo "no" >&6; }
2554fi
2555
2556  if test "x$ac_ct_CC" = x; then
2557    CC=""
2558  else
2559    case $cross_compiling:$ac_tool_warned in
2560yes:)
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563ac_tool_warned=yes ;;
2564esac
2565    CC=$ac_ct_CC
2566  fi
2567else
2568  CC="$ac_cv_prog_CC"
2569fi
2570
2571if test -z "$CC"; then
2572          if test -n "$ac_tool_prefix"; then
2573    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2574set dummy ${ac_tool_prefix}cc; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_CC+:} false; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test -n "$CC"; then
2581  ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_exec_ext in '' $ac_executable_extensions; do
2589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590    ac_cv_prog_CC="${ac_tool_prefix}cc"
2591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592    break 2
2593  fi
2594done
2595  done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603$as_echo "$CC" >&6; }
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609
2610  fi
2611fi
2612if test -z "$CC"; then
2613  # Extract the first word of "cc", so it can be a program name with args.
2614set dummy cc; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if ${ac_cv_prog_CC+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  if test -n "$CC"; then
2621  ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623  ac_prog_rejected=no
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629    for ac_exec_ext in '' $ac_executable_extensions; do
2630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2632       ac_prog_rejected=yes
2633       continue
2634     fi
2635    ac_cv_prog_CC="cc"
2636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643if test $ac_prog_rejected = yes; then
2644  # We found a bogon in the path, so make sure we never use it.
2645  set dummy $ac_cv_prog_CC
2646  shift
2647  if test $# != 0; then
2648    # We chose a different compiler from the bogus one.
2649    # However, it has the same basename, so the bogon will be chosen
2650    # first if we set CC to just the basename; use the full file name.
2651    shift
2652    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2653  fi
2654fi
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660$as_echo "$CC" >&6; }
2661else
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664fi
2665
2666
2667fi
2668if test -z "$CC"; then
2669  if test -n "$ac_tool_prefix"; then
2670  for ac_prog in cl.exe
2671  do
2672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if ${ac_cv_prog_CC+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test -n "$CC"; then
2680  ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_exec_ext in '' $ac_executable_extensions; do
2688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702$as_echo "$CC" >&6; }
2703else
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705$as_echo "no" >&6; }
2706fi
2707
2708
2709    test -n "$CC" && break
2710  done
2711fi
2712if test -z "$CC"; then
2713  ac_ct_CC=$CC
2714  for ac_prog in cl.exe
2715do
2716  # Extract the first word of "$ac_prog", so it can be a program name with args.
2717set dummy $ac_prog; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$ac_ct_CC"; then
2724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    ac_cv_prog_ac_ct_CC="$ac_prog"
2734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746$as_echo "$ac_ct_CC" >&6; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
2753  test -n "$ac_ct_CC" && break
2754done
2755
2756  if test "x$ac_ct_CC" = x; then
2757    CC=""
2758  else
2759    case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765    CC=$ac_ct_CC
2766  fi
2767fi
2768
2769fi
2770
2771
2772test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774as_fn_error $? "no acceptable C compiler found in \$PATH
2775See \`config.log' for more details" "$LINENO" 5; }
2776
2777# Provide some information about the compiler.
2778$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2779set X $ac_compile
2780ac_compiler=$2
2781for ac_option in --version -v -V -qversion; do
2782  { { ac_try="$ac_compiler $ac_option >&5"
2783case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788$as_echo "$ac_try_echo"; } >&5
2789  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2790  ac_status=$?
2791  if test -s conftest.err; then
2792    sed '10a\
2793... rest of stderr output deleted ...
2794         10q' conftest.err >conftest.er1
2795    cat conftest.er1 >&5
2796  fi
2797  rm -f conftest.er1 conftest.err
2798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799  test $ac_status = 0; }
2800done
2801
2802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813ac_clean_files_save=$ac_clean_files
2814ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2815# Try to create an executable without -o first, disregard a.out.
2816# It will help us diagnose broken compilers, and finding out an intuition
2817# of exeext.
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2819$as_echo_n "checking whether the C compiler works... " >&6; }
2820ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821
2822# The possible output files:
2823ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2824
2825ac_rmfiles=
2826for ac_file in $ac_files
2827do
2828  case $ac_file in
2829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2831  esac
2832done
2833rm -f $ac_rmfiles
2834
2835if { { ac_try="$ac_link_default"
2836case "(($ac_try" in
2837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838  *) ac_try_echo=$ac_try;;
2839esac
2840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841$as_echo "$ac_try_echo"; } >&5
2842  (eval "$ac_link_default") 2>&5
2843  ac_status=$?
2844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845  test $ac_status = 0; }; then :
2846  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2849# so that the user can short-circuit this test for compilers unknown to
2850# Autoconf.
2851for ac_file in $ac_files ''
2852do
2853  test -f "$ac_file" || continue
2854  case $ac_file in
2855    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2856	;;
2857    [ab].out )
2858	# We found the default executable, but exeext='' is most
2859	# certainly right.
2860	break;;
2861    *.* )
2862	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2863	then :; else
2864	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865	fi
2866	# We set ac_cv_exeext here because the later test for it is not
2867	# safe: cross compilers may not add the suffix if given an `-o'
2868	# argument, so we may need to know it at that point already.
2869	# Even if this section looks crufty: it has the advantage of
2870	# actually working.
2871	break;;
2872    * )
2873	break;;
2874  esac
2875done
2876test "$ac_cv_exeext" = no && ac_cv_exeext=
2877
2878else
2879  ac_file=''
2880fi
2881if test -z "$ac_file"; then :
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884$as_echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889as_fn_error 77 "C compiler cannot create executables
2890See \`config.log' for more details" "$LINENO" 5; }
2891else
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893$as_echo "yes" >&6; }
2894fi
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2896$as_echo_n "checking for C compiler default output file name... " >&6; }
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2898$as_echo "$ac_file" >&6; }
2899ac_exeext=$ac_cv_exeext
2900
2901rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2902ac_clean_files=$ac_clean_files_save
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2904$as_echo_n "checking for suffix of executables... " >&6; }
2905if { { ac_try="$ac_link"
2906case "(($ac_try" in
2907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908  *) ac_try_echo=$ac_try;;
2909esac
2910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911$as_echo "$ac_try_echo"; } >&5
2912  (eval "$ac_link") 2>&5
2913  ac_status=$?
2914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915  test $ac_status = 0; }; then :
2916  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2917# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2918# work properly (i.e., refer to `conftest.exe'), while it won't with
2919# `rm'.
2920for ac_file in conftest.exe conftest conftest.*; do
2921  test -f "$ac_file" || continue
2922  case $ac_file in
2923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925	  break;;
2926    * ) break;;
2927  esac
2928done
2929else
2930  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2933See \`config.log' for more details" "$LINENO" 5; }
2934fi
2935rm -f conftest conftest$ac_cv_exeext
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2937$as_echo "$ac_cv_exeext" >&6; }
2938
2939rm -f conftest.$ac_ext
2940EXEEXT=$ac_cv_exeext
2941ac_exeext=$EXEEXT
2942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h.  */
2944#include <stdio.h>
2945int
2946main ()
2947{
2948FILE *f = fopen ("conftest.out", "w");
2949 return ferror (f) || fclose (f) != 0;
2950
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955ac_clean_files="$ac_clean_files conftest.out"
2956# Check that the compiler produces executables we can run.  If not, either
2957# the compiler is broken, or we cross compile.
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2959$as_echo_n "checking whether we are cross compiling... " >&6; }
2960if test "$cross_compiling" != yes; then
2961  { { ac_try="$ac_link"
2962case "(($ac_try" in
2963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964  *) ac_try_echo=$ac_try;;
2965esac
2966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967$as_echo "$ac_try_echo"; } >&5
2968  (eval "$ac_link") 2>&5
2969  ac_status=$?
2970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971  test $ac_status = 0; }
2972  if { ac_try='./conftest$ac_cv_exeext'
2973  { { case "(($ac_try" in
2974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975  *) ac_try_echo=$ac_try;;
2976esac
2977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978$as_echo "$ac_try_echo"; } >&5
2979  (eval "$ac_try") 2>&5
2980  ac_status=$?
2981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982  test $ac_status = 0; }; }; then
2983    cross_compiling=no
2984  else
2985    if test "$cross_compiling" = maybe; then
2986	cross_compiling=yes
2987    else
2988	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990as_fn_error $? "cannot run C compiled programs.
2991If you meant to cross compile, use \`--host'.
2992See \`config.log' for more details" "$LINENO" 5; }
2993    fi
2994  fi
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2997$as_echo "$cross_compiling" >&6; }
2998
2999rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3000ac_clean_files=$ac_clean_files_save
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3002$as_echo_n "checking for suffix of object files... " >&6; }
3003if ${ac_cv_objext+:} false; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h.  */
3008
3009int
3010main ()
3011{
3012
3013  ;
3014  return 0;
3015}
3016_ACEOF
3017rm -f conftest.o conftest.obj
3018if { { ac_try="$ac_compile"
3019case "(($ac_try" in
3020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021  *) ac_try_echo=$ac_try;;
3022esac
3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
3025  (eval "$ac_compile") 2>&5
3026  ac_status=$?
3027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028  test $ac_status = 0; }; then :
3029  for ac_file in conftest.o conftest.obj conftest.*; do
3030  test -f "$ac_file" || continue;
3031  case $ac_file in
3032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034       break;;
3035  esac
3036done
3037else
3038  $as_echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043as_fn_error $? "cannot compute suffix of object files: cannot compile
3044See \`config.log' for more details" "$LINENO" 5; }
3045fi
3046rm -f conftest.$ac_cv_objext conftest.$ac_ext
3047fi
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049$as_echo "$ac_cv_objext" >&6; }
3050OBJEXT=$ac_cv_objext
3051ac_objext=$OBJEXT
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3053$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3054if ${ac_cv_c_compiler_gnu+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063#ifndef __GNUC__
3064       choke me
3065#endif
3066
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071if ac_fn_c_try_compile "$LINENO"; then :
3072  ac_compiler_gnu=yes
3073else
3074  ac_compiler_gnu=no
3075fi
3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3081$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3082if test $ac_compiler_gnu = yes; then
3083  GCC=yes
3084else
3085  GCC=
3086fi
3087ac_test_CFLAGS=${CFLAGS+set}
3088ac_save_CFLAGS=$CFLAGS
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3090$as_echo_n "checking whether $CC accepts -g... " >&6; }
3091if ${ac_cv_prog_cc_g+:} false; then :
3092  $as_echo_n "(cached) " >&6
3093else
3094  ac_save_c_werror_flag=$ac_c_werror_flag
3095   ac_c_werror_flag=yes
3096   ac_cv_prog_cc_g=no
3097   CFLAGS="-g"
3098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h.  */
3100
3101int
3102main ()
3103{
3104
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109if ac_fn_c_try_compile "$LINENO"; then :
3110  ac_cv_prog_cc_g=yes
3111else
3112  CFLAGS=""
3113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124if ac_fn_c_try_compile "$LINENO"; then :
3125
3126else
3127  ac_c_werror_flag=$ac_save_c_werror_flag
3128	 CFLAGS="-g"
3129	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140if ac_fn_c_try_compile "$LINENO"; then :
3141  ac_cv_prog_cc_g=yes
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144fi
3145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146fi
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148   ac_c_werror_flag=$ac_save_c_werror_flag
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151$as_echo "$ac_cv_prog_cc_g" >&6; }
3152if test "$ac_test_CFLAGS" = set; then
3153  CFLAGS=$ac_save_CFLAGS
3154elif test $ac_cv_prog_cc_g = yes; then
3155  if test "$GCC" = yes; then
3156    CFLAGS="-g -O2"
3157  else
3158    CFLAGS="-g"
3159  fi
3160else
3161  if test "$GCC" = yes; then
3162    CFLAGS="-O2"
3163  else
3164    CFLAGS=
3165  fi
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3168$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3169if ${ac_cv_prog_cc_c89+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  ac_cv_prog_cc_c89=no
3173ac_save_CC=$CC
3174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175/* end confdefs.h.  */
3176#include <stdarg.h>
3177#include <stdio.h>
3178struct stat;
3179/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3180struct buf { int x; };
3181FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182static char *e (p, i)
3183     char **p;
3184     int i;
3185{
3186  return p[i];
3187}
3188static char *f (char * (*g) (char **, int), char **p, ...)
3189{
3190  char *s;
3191  va_list v;
3192  va_start (v,p);
3193  s = g (p, va_arg (v,int));
3194  va_end (v);
3195  return s;
3196}
3197
3198/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3199   function prototypes and stuff, but not '\xHH' hex character constants.
3200   These don't provoke an error unfortunately, instead are silently treated
3201   as 'x'.  The following induces an error, until -std is added to get
3202   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3203   array size at least.  It's necessary to write '\x00'==0 to get something
3204   that's true only with -std.  */
3205int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
3207/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208   inside strings and character constants.  */
3209#define FOO(x) 'x'
3210int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
3212int test (int i, double x);
3213struct s1 {int (*f) (int a);};
3214struct s2 {int (*f) (double a);};
3215int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216int argc;
3217char **argv;
3218int
3219main ()
3220{
3221return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228do
3229  CC="$ac_save_CC $ac_arg"
3230  if ac_fn_c_try_compile "$LINENO"; then :
3231  ac_cv_prog_cc_c89=$ac_arg
3232fi
3233rm -f core conftest.err conftest.$ac_objext
3234  test "x$ac_cv_prog_cc_c89" != "xno" && break
3235done
3236rm -f conftest.$ac_ext
3237CC=$ac_save_CC
3238
3239fi
3240# AC_CACHE_VAL
3241case "x$ac_cv_prog_cc_c89" in
3242  x)
3243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244$as_echo "none needed" >&6; } ;;
3245  xno)
3246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247$as_echo "unsupported" >&6; } ;;
3248  *)
3249    CC="$CC $ac_cv_prog_cc_c89"
3250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3252esac
3253if test "x$ac_cv_prog_cc_c89" != xno; then :
3254
3255fi
3256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263# Find a good install program.  We prefer a C program (faster),
3264# so one script is as good as another.  But avoid the broken or
3265# incompatible versions:
3266# SysV /etc/install, /usr/sbin/install
3267# SunOS /usr/etc/install
3268# IRIX /sbin/install
3269# AIX /bin/install
3270# AmigaOS /C/install, which installs bootblocks on floppy discs
3271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274# OS/2's system install, which has a completely different semantic
3275# ./install, which can be erroneously created by make from ./install.sh.
3276# Reject install programs that cannot install multiple files.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3278$as_echo_n "checking for a BSD-compatible install... " >&6; }
3279if test -z "$INSTALL"; then
3280if ${ac_cv_path_install+:} false; then :
3281  $as_echo_n "(cached) " >&6
3282else
3283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    # Account for people who put trailing slashes in PATH elements.
3289case $as_dir/ in #((
3290  ./ | .// | /[cC]/* | \
3291  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3293  /usr/ucb/* ) ;;
3294  *)
3295    # OSF1 and SCO ODT 3.0 have their own names for install.
3296    # Don't use installbsd from OSF since it installs stuff as root
3297    # by default.
3298    for ac_prog in ginstall scoinst install; do
3299      for ac_exec_ext in '' $ac_executable_extensions; do
3300	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301	  if test $ac_prog = install &&
3302	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303	    # AIX install.  It has an incompatible calling convention.
3304	    :
3305	  elif test $ac_prog = install &&
3306	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307	    # program-specific install script used by HP pwplus--don't use.
3308	    :
3309	  else
3310	    rm -rf conftest.one conftest.two conftest.dir
3311	    echo one > conftest.one
3312	    echo two > conftest.two
3313	    mkdir conftest.dir
3314	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3315	      test -s conftest.one && test -s conftest.two &&
3316	      test -s conftest.dir/conftest.one &&
3317	      test -s conftest.dir/conftest.two
3318	    then
3319	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320	      break 3
3321	    fi
3322	  fi
3323	fi
3324      done
3325    done
3326    ;;
3327esac
3328
3329  done
3330IFS=$as_save_IFS
3331
3332rm -rf conftest.one conftest.two conftest.dir
3333
3334fi
3335  if test "${ac_cv_path_install+set}" = set; then
3336    INSTALL=$ac_cv_path_install
3337  else
3338    # As a last resort, use the slow shell script.  Don't cache a
3339    # value for INSTALL within a source directory, because that will
3340    # break other packages using the cache if that directory is
3341    # removed, or if the value is a relative name.
3342    INSTALL=$ac_install_sh
3343  fi
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3346$as_echo "$INSTALL" >&6; }
3347
3348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3349# It thinks the first close brace ends the variable substitution.
3350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3351
3352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3353
3354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3355
3356
3357for ac_prog in flex lex
3358do
3359  # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if ${ac_cv_prog_LEX+:} false; then :
3364  $as_echo_n "(cached) " >&6
3365else
3366  if test -n "$LEX"; then
3367  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_LEX="$ac_prog"
3377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381  done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386LEX=$ac_cv_prog_LEX
3387if test -n "$LEX"; then
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3389$as_echo "$LEX" >&6; }
3390else
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395
3396  test -n "$LEX" && break
3397done
3398test -n "$LEX" || LEX=":"
3399
3400if test "x$LEX" != "x:"; then
3401  cat >conftest.l <<_ACEOF
3402%%
3403a { ECHO; }
3404b { REJECT; }
3405c { yymore (); }
3406d { yyless (1); }
3407e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
3408    yyless ((input () != 0)); }
3409f { unput (yytext[0]); }
3410. { BEGIN INITIAL; }
3411%%
3412#ifdef YYTEXT_POINTER
3413extern char *yytext;
3414#endif
3415int
3416main (void)
3417{
3418  return ! yylex () + ! yywrap ();
3419}
3420_ACEOF
3421{ { ac_try="$LEX conftest.l"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$LEX conftest.l") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3433$as_echo_n "checking lex output file root... " >&6; }
3434if ${ac_cv_prog_lex_root+:} false; then :
3435  $as_echo_n "(cached) " >&6
3436else
3437
3438if test -f lex.yy.c; then
3439  ac_cv_prog_lex_root=lex.yy
3440elif test -f lexyy.c; then
3441  ac_cv_prog_lex_root=lexyy
3442else
3443  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3444fi
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3447$as_echo "$ac_cv_prog_lex_root" >&6; }
3448LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3449
3450if test -z "${LEXLIB+set}"; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3452$as_echo_n "checking lex library... " >&6; }
3453if ${ac_cv_lib_lex+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456
3457    ac_save_LIBS=$LIBS
3458    ac_cv_lib_lex='none needed'
3459    for ac_lib in '' -lfl -ll; do
3460      LIBS="$ac_lib $ac_save_LIBS"
3461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463`cat $LEX_OUTPUT_ROOT.c`
3464_ACEOF
3465if ac_fn_c_try_link "$LINENO"; then :
3466  ac_cv_lib_lex=$ac_lib
3467fi
3468rm -f core conftest.err conftest.$ac_objext \
3469    conftest$ac_exeext conftest.$ac_ext
3470      test "$ac_cv_lib_lex" != 'none needed' && break
3471    done
3472    LIBS=$ac_save_LIBS
3473
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3476$as_echo "$ac_cv_lib_lex" >&6; }
3477  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3478fi
3479
3480
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3482$as_echo_n "checking whether yytext is a pointer... " >&6; }
3483if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  # POSIX says lex can declare yytext either as a pointer or an array; the
3487# default is implementation-dependent.  Figure out which it is, since
3488# not all implementations provide the %pointer and %array declarations.
3489ac_cv_prog_lex_yytext_pointer=no
3490ac_save_LIBS=$LIBS
3491LIBS="$LEXLIB $ac_save_LIBS"
3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494
3495  #define YYTEXT_POINTER 1
3496`cat $LEX_OUTPUT_ROOT.c`
3497_ACEOF
3498if ac_fn_c_try_link "$LINENO"; then :
3499  ac_cv_prog_lex_yytext_pointer=yes
3500fi
3501rm -f core conftest.err conftest.$ac_objext \
3502    conftest$ac_exeext conftest.$ac_ext
3503LIBS=$ac_save_LIBS
3504
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3507$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3508if test $ac_cv_prog_lex_yytext_pointer = yes; then
3509
3510$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3511
3512fi
3513rm -f conftest.l $LEX_OUTPUT_ROOT.c
3514
3515fi
3516case `pwd` in
3517  *\ * | *\	*)
3518    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3519$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3520esac
3521
3522
3523
3524macro_version='2.4.2'
3525macro_revision='1.3337'
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539ltmain="$ac_aux_dir/ltmain.sh"
3540
3541# Make sure we can run config.sub.
3542$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3543  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3544
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3546$as_echo_n "checking build system type... " >&6; }
3547if ${ac_cv_build+:} false; then :
3548  $as_echo_n "(cached) " >&6
3549else
3550  ac_build_alias=$build_alias
3551test "x$ac_build_alias" = x &&
3552  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3553test "x$ac_build_alias" = x &&
3554  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3557
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3560$as_echo "$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
3563*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3580$as_echo_n "checking host system type... " >&6; }
3581if ${ac_cv_host+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  if test "x$host_alias" = x; then
3585  ac_cv_host=$ac_cv_build
3586else
3587  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3589fi
3590
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3593$as_echo "$ac_cv_host" >&6; }
3594case $ac_cv_host in
3595*-*-*) ;;
3596*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3597esac
3598host=$ac_cv_host
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_host
3601shift
3602host_cpu=$1
3603host_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607host_os=$*
3608IFS=$ac_save_IFS
3609case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3610
3611
3612# Backslashify metacharacters that are still active within
3613# double-quoted strings.
3614sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3615
3616# Same as above, but do not quote variable references.
3617double_quote_subst='s/\(["`\\]\)/\\\1/g'
3618
3619# Sed substitution to delay expansion of an escaped shell variable in a
3620# double_quote_subst'ed string.
3621delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3622
3623# Sed substitution to delay expansion of an escaped single quote.
3624delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3625
3626# Sed substitution to avoid accidental globbing in evaled expressions
3627no_glob_subst='s/\*/\\\*/g'
3628
3629ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3630ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3631ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3632
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3634$as_echo_n "checking how to print strings... " >&6; }
3635# Test print first, because it will be a builtin if present.
3636if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3637   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3638  ECHO='print -r --'
3639elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3640  ECHO='printf %s\n'
3641else
3642  # Use this function as a fallback that always works.
3643  func_fallback_echo ()
3644  {
3645    eval 'cat <<_LTECHO_EOF
3646$1
3647_LTECHO_EOF'
3648  }
3649  ECHO='func_fallback_echo'
3650fi
3651
3652# func_echo_all arg...
3653# Invoke $ECHO with all args, space-separated.
3654func_echo_all ()
3655{
3656    $ECHO ""
3657}
3658
3659case "$ECHO" in
3660  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3661$as_echo "printf" >&6; } ;;
3662  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3663$as_echo "print -r" >&6; } ;;
3664  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3665$as_echo "cat" >&6; } ;;
3666esac
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3682$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3683if ${ac_cv_path_SED+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3687     for ac_i in 1 2 3 4 5 6 7; do
3688       ac_script="$ac_script$as_nl$ac_script"
3689     done
3690     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3691     { ac_script=; unset ac_script;}
3692     if test -z "$SED"; then
3693  ac_path_SED_found=false
3694  # Loop through the user's path and test for each of PROGNAME-LIST
3695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH
3697do
3698  IFS=$as_save_IFS
3699  test -z "$as_dir" && as_dir=.
3700    for ac_prog in sed gsed; do
3701    for ac_exec_ext in '' $ac_executable_extensions; do
3702      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3703      as_fn_executable_p "$ac_path_SED" || continue
3704# Check for GNU ac_path_SED and select it if it is found.
3705  # Check for GNU $ac_path_SED
3706case `"$ac_path_SED" --version 2>&1` in
3707*GNU*)
3708  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3709*)
3710  ac_count=0
3711  $as_echo_n 0123456789 >"conftest.in"
3712  while :
3713  do
3714    cat "conftest.in" "conftest.in" >"conftest.tmp"
3715    mv "conftest.tmp" "conftest.in"
3716    cp "conftest.in" "conftest.nl"
3717    $as_echo '' >> "conftest.nl"
3718    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720    as_fn_arith $ac_count + 1 && ac_count=$as_val
3721    if test $ac_count -gt ${ac_path_SED_max-0}; then
3722      # Best one so far, save it but keep looking for a better one
3723      ac_cv_path_SED="$ac_path_SED"
3724      ac_path_SED_max=$ac_count
3725    fi
3726    # 10*(2^10) chars as input seems more than enough
3727    test $ac_count -gt 10 && break
3728  done
3729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730esac
3731
3732      $ac_path_SED_found && break 3
3733    done
3734  done
3735  done
3736IFS=$as_save_IFS
3737  if test -z "$ac_cv_path_SED"; then
3738    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3739  fi
3740else
3741  ac_cv_path_SED=$SED
3742fi
3743
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3746$as_echo "$ac_cv_path_SED" >&6; }
3747 SED="$ac_cv_path_SED"
3748  rm -f conftest.sed
3749
3750test -z "$SED" && SED=sed
3751Xsed="$SED -e 1s/^X//"
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3765if ${ac_cv_path_GREP+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  if test -z "$GREP"; then
3769  ac_path_GREP_found=false
3770  # Loop through the user's path and test for each of PROGNAME-LIST
3771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774  IFS=$as_save_IFS
3775  test -z "$as_dir" && as_dir=.
3776    for ac_prog in grep ggrep; do
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779      as_fn_executable_p "$ac_path_GREP" || continue
3780# Check for GNU ac_path_GREP and select it if it is found.
3781  # Check for GNU $ac_path_GREP
3782case `"$ac_path_GREP" --version 2>&1` in
3783*GNU*)
3784  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785*)
3786  ac_count=0
3787  $as_echo_n 0123456789 >"conftest.in"
3788  while :
3789  do
3790    cat "conftest.in" "conftest.in" >"conftest.tmp"
3791    mv "conftest.tmp" "conftest.in"
3792    cp "conftest.in" "conftest.nl"
3793    $as_echo 'GREP' >> "conftest.nl"
3794    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796    as_fn_arith $ac_count + 1 && ac_count=$as_val
3797    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798      # Best one so far, save it but keep looking for a better one
3799      ac_cv_path_GREP="$ac_path_GREP"
3800      ac_path_GREP_max=$ac_count
3801    fi
3802    # 10*(2^10) chars as input seems more than enough
3803    test $ac_count -gt 10 && break
3804  done
3805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808      $ac_path_GREP_found && break 3
3809    done
3810  done
3811  done
3812IFS=$as_save_IFS
3813  if test -z "$ac_cv_path_GREP"; then
3814    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3815  fi
3816else
3817  ac_cv_path_GREP=$GREP
3818fi
3819
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822$as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
3824
3825
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827$as_echo_n "checking for egrep... " >&6; }
3828if ${ac_cv_path_EGREP+:} false; then :
3829  $as_echo_n "(cached) " >&6
3830else
3831  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832   then ac_cv_path_EGREP="$GREP -E"
3833   else
3834     if test -z "$EGREP"; then
3835  ac_path_EGREP_found=false
3836  # Loop through the user's path and test for each of PROGNAME-LIST
3837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842    for ac_prog in egrep; do
3843    for ac_exec_ext in '' $ac_executable_extensions; do
3844      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845      as_fn_executable_p "$ac_path_EGREP" || continue
3846# Check for GNU ac_path_EGREP and select it if it is found.
3847  # Check for GNU $ac_path_EGREP
3848case `"$ac_path_EGREP" --version 2>&1` in
3849*GNU*)
3850  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851*)
3852  ac_count=0
3853  $as_echo_n 0123456789 >"conftest.in"
3854  while :
3855  do
3856    cat "conftest.in" "conftest.in" >"conftest.tmp"
3857    mv "conftest.tmp" "conftest.in"
3858    cp "conftest.in" "conftest.nl"
3859    $as_echo 'EGREP' >> "conftest.nl"
3860    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862    as_fn_arith $ac_count + 1 && ac_count=$as_val
3863    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864      # Best one so far, save it but keep looking for a better one
3865      ac_cv_path_EGREP="$ac_path_EGREP"
3866      ac_path_EGREP_max=$ac_count
3867    fi
3868    # 10*(2^10) chars as input seems more than enough
3869    test $ac_count -gt 10 && break
3870  done
3871  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872esac
3873
3874      $ac_path_EGREP_found && break 3
3875    done
3876  done
3877  done
3878IFS=$as_save_IFS
3879  if test -z "$ac_cv_path_EGREP"; then
3880    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3881  fi
3882else
3883  ac_cv_path_EGREP=$EGREP
3884fi
3885
3886   fi
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889$as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
3891
3892
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3894$as_echo_n "checking for fgrep... " >&6; }
3895if ${ac_cv_path_FGREP+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3899   then ac_cv_path_FGREP="$GREP -F"
3900   else
3901     if test -z "$FGREP"; then
3902  ac_path_FGREP_found=false
3903  # Loop through the user's path and test for each of PROGNAME-LIST
3904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909    for ac_prog in fgrep; do
3910    for ac_exec_ext in '' $ac_executable_extensions; do
3911      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3912      as_fn_executable_p "$ac_path_FGREP" || continue
3913# Check for GNU ac_path_FGREP and select it if it is found.
3914  # Check for GNU $ac_path_FGREP
3915case `"$ac_path_FGREP" --version 2>&1` in
3916*GNU*)
3917  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3918*)
3919  ac_count=0
3920  $as_echo_n 0123456789 >"conftest.in"
3921  while :
3922  do
3923    cat "conftest.in" "conftest.in" >"conftest.tmp"
3924    mv "conftest.tmp" "conftest.in"
3925    cp "conftest.in" "conftest.nl"
3926    $as_echo 'FGREP' >> "conftest.nl"
3927    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929    as_fn_arith $ac_count + 1 && ac_count=$as_val
3930    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3931      # Best one so far, save it but keep looking for a better one
3932      ac_cv_path_FGREP="$ac_path_FGREP"
3933      ac_path_FGREP_max=$ac_count
3934    fi
3935    # 10*(2^10) chars as input seems more than enough
3936    test $ac_count -gt 10 && break
3937  done
3938  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941      $ac_path_FGREP_found && break 3
3942    done
3943  done
3944  done
3945IFS=$as_save_IFS
3946  if test -z "$ac_cv_path_FGREP"; then
3947    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948  fi
3949else
3950  ac_cv_path_FGREP=$FGREP
3951fi
3952
3953   fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3956$as_echo "$ac_cv_path_FGREP" >&6; }
3957 FGREP="$ac_cv_path_FGREP"
3958
3959
3960test -z "$GREP" && GREP=grep
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980# Check whether --with-gnu-ld was given.
3981if test "${with_gnu_ld+set}" = set; then :
3982  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3983else
3984  with_gnu_ld=no
3985fi
3986
3987ac_prog=ld
3988if test "$GCC" = yes; then
3989  # Check if gcc -print-prog-name=ld gives a path.
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3991$as_echo_n "checking for ld used by $CC... " >&6; }
3992  case $host in
3993  *-*-mingw*)
3994    # gcc leaves a trailing carriage return which upsets mingw
3995    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3996  *)
3997    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3998  esac
3999  case $ac_prog in
4000    # Accept absolute paths.
4001    [\\/]* | ?:[\\/]*)
4002      re_direlt='/[^/][^/]*/\.\./'
4003      # Canonicalize the pathname of ld
4004      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4007      done
4008      test -z "$LD" && LD="$ac_prog"
4009      ;;
4010  "")
4011    # If it fails, then pretend we aren't using GCC.
4012    ac_prog=ld
4013    ;;
4014  *)
4015    # If it is relative, then search for the first ld in PATH.
4016    with_gnu_ld=unknown
4017    ;;
4018  esac
4019elif test "$with_gnu_ld" = yes; then
4020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4021$as_echo_n "checking for GNU ld... " >&6; }
4022else
4023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4024$as_echo_n "checking for non-GNU ld... " >&6; }
4025fi
4026if ${lt_cv_path_LD+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  if test -z "$LD"; then
4030  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031  for ac_dir in $PATH; do
4032    IFS="$lt_save_ifs"
4033    test -z "$ac_dir" && ac_dir=.
4034    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035      lt_cv_path_LD="$ac_dir/$ac_prog"
4036      # Check to see if the program is GNU ld.  I'd rather use --version,
4037      # but apparently some variants of GNU ld only accept -v.
4038      # Break only if it was the GNU/non-GNU ld that we prefer.
4039      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040      *GNU* | *'with BFD'*)
4041	test "$with_gnu_ld" != no && break
4042	;;
4043      *)
4044	test "$with_gnu_ld" != yes && break
4045	;;
4046      esac
4047    fi
4048  done
4049  IFS="$lt_save_ifs"
4050else
4051  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4052fi
4053fi
4054
4055LD="$lt_cv_path_LD"
4056if test -n "$LD"; then
4057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4058$as_echo "$LD" >&6; }
4059else
4060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
4062fi
4063test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4065$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4066if ${lt_cv_prog_gnu_ld+:} false; then :
4067  $as_echo_n "(cached) " >&6
4068else
4069  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4070case `$LD -v 2>&1 </dev/null` in
4071*GNU* | *'with BFD'*)
4072  lt_cv_prog_gnu_ld=yes
4073  ;;
4074*)
4075  lt_cv_prog_gnu_ld=no
4076  ;;
4077esac
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4080$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4081with_gnu_ld=$lt_cv_prog_gnu_ld
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4092$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4093if ${lt_cv_path_NM+:} false; then :
4094  $as_echo_n "(cached) " >&6
4095else
4096  if test -n "$NM"; then
4097  # Let the user override the test.
4098  lt_cv_path_NM="$NM"
4099else
4100  lt_nm_to_check="${ac_tool_prefix}nm"
4101  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4102    lt_nm_to_check="$lt_nm_to_check nm"
4103  fi
4104  for lt_tmp_nm in $lt_nm_to_check; do
4105    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4106    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4107      IFS="$lt_save_ifs"
4108      test -z "$ac_dir" && ac_dir=.
4109      tmp_nm="$ac_dir/$lt_tmp_nm"
4110      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4111	# Check to see if the nm accepts a BSD-compat flag.
4112	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4113	#   nm: unknown option "B" ignored
4114	# Tru64's nm complains that /dev/null is an invalid object file
4115	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4116	*/dev/null* | *'Invalid file or object type'*)
4117	  lt_cv_path_NM="$tmp_nm -B"
4118	  break
4119	  ;;
4120	*)
4121	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4122	  */dev/null*)
4123	    lt_cv_path_NM="$tmp_nm -p"
4124	    break
4125	    ;;
4126	  *)
4127	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4128	    continue # so that we can try to find one that supports BSD flags
4129	    ;;
4130	  esac
4131	  ;;
4132	esac
4133      fi
4134    done
4135    IFS="$lt_save_ifs"
4136  done
4137  : ${lt_cv_path_NM=no}
4138fi
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4141$as_echo "$lt_cv_path_NM" >&6; }
4142if test "$lt_cv_path_NM" != "no"; then
4143  NM="$lt_cv_path_NM"
4144else
4145  # Didn't find any BSD compatible name lister, look for dumpbin.
4146  if test -n "$DUMPBIN"; then :
4147    # Let the user override the test.
4148  else
4149    if test -n "$ac_tool_prefix"; then
4150  for ac_prog in dumpbin "link -dump"
4151  do
4152    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
4156if ${ac_cv_prog_DUMPBIN+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  if test -n "$DUMPBIN"; then
4160  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167    for ac_exec_ext in '' $ac_executable_extensions; do
4168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174  done
4175IFS=$as_save_IFS
4176
4177fi
4178fi
4179DUMPBIN=$ac_cv_prog_DUMPBIN
4180if test -n "$DUMPBIN"; then
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4182$as_echo "$DUMPBIN" >&6; }
4183else
4184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186fi
4187
4188
4189    test -n "$DUMPBIN" && break
4190  done
4191fi
4192if test -z "$DUMPBIN"; then
4193  ac_ct_DUMPBIN=$DUMPBIN
4194  for ac_prog in dumpbin "link -dump"
4195do
4196  # Extract the first word of "$ac_prog", so it can be a program name with args.
4197set dummy $ac_prog; ac_word=$2
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -n "$ac_ct_DUMPBIN"; then
4204  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_exec_ext in '' $ac_executable_extensions; do
4212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218  done
4219IFS=$as_save_IFS
4220
4221fi
4222fi
4223ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4224if test -n "$ac_ct_DUMPBIN"; then
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4226$as_echo "$ac_ct_DUMPBIN" >&6; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
4231
4232
4233  test -n "$ac_ct_DUMPBIN" && break
4234done
4235
4236  if test "x$ac_ct_DUMPBIN" = x; then
4237    DUMPBIN=":"
4238  else
4239    case $cross_compiling:$ac_tool_warned in
4240yes:)
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243ac_tool_warned=yes ;;
4244esac
4245    DUMPBIN=$ac_ct_DUMPBIN
4246  fi
4247fi
4248
4249    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4250    *COFF*)
4251      DUMPBIN="$DUMPBIN -symbols"
4252      ;;
4253    *)
4254      DUMPBIN=:
4255      ;;
4256    esac
4257  fi
4258
4259  if test "$DUMPBIN" != ":"; then
4260    NM="$DUMPBIN"
4261  fi
4262fi
4263test -z "$NM" && NM=nm
4264
4265
4266
4267
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4271$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4272if ${lt_cv_nm_interface+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  lt_cv_nm_interface="BSD nm"
4276  echo "int some_variable = 0;" > conftest.$ac_ext
4277  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4278  (eval "$ac_compile" 2>conftest.err)
4279  cat conftest.err >&5
4280  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4281  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4282  cat conftest.err >&5
4283  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4284  cat conftest.out >&5
4285  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4286    lt_cv_nm_interface="MS dumpbin"
4287  fi
4288  rm -f conftest*
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4291$as_echo "$lt_cv_nm_interface" >&6; }
4292
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4294$as_echo_n "checking whether ln -s works... " >&6; }
4295LN_S=$as_ln_s
4296if test "$LN_S" = "ln -s"; then
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298$as_echo "yes" >&6; }
4299else
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4301$as_echo "no, using $LN_S" >&6; }
4302fi
4303
4304# find the maximum length of command line arguments
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4306$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4307if ${lt_cv_sys_max_cmd_len+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310    i=0
4311  teststring="ABCD"
4312
4313  case $build_os in
4314  msdosdjgpp*)
4315    # On DJGPP, this test can blow up pretty badly due to problems in libc
4316    # (any single argument exceeding 2000 bytes causes a buffer overrun
4317    # during glob expansion).  Even if it were fixed, the result of this
4318    # check would be larger than it should be.
4319    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4320    ;;
4321
4322  gnu*)
4323    # Under GNU Hurd, this test is not required because there is
4324    # no limit to the length of command line arguments.
4325    # Libtool will interpret -1 as no limit whatsoever
4326    lt_cv_sys_max_cmd_len=-1;
4327    ;;
4328
4329  cygwin* | mingw* | cegcc*)
4330    # On Win9x/ME, this test blows up -- it succeeds, but takes
4331    # about 5 minutes as the teststring grows exponentially.
4332    # Worse, since 9x/ME are not pre-emptively multitasking,
4333    # you end up with a "frozen" computer, even though with patience
4334    # the test eventually succeeds (with a max line length of 256k).
4335    # Instead, let's just punt: use the minimum linelength reported by
4336    # all of the supported platforms: 8192 (on NT/2K/XP).
4337    lt_cv_sys_max_cmd_len=8192;
4338    ;;
4339
4340  mint*)
4341    # On MiNT this can take a long time and run out of memory.
4342    lt_cv_sys_max_cmd_len=8192;
4343    ;;
4344
4345  amigaos*)
4346    # On AmigaOS with pdksh, this test takes hours, literally.
4347    # So we just punt and use a minimum line length of 8192.
4348    lt_cv_sys_max_cmd_len=8192;
4349    ;;
4350
4351  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4352    # This has been around since 386BSD, at least.  Likely further.
4353    if test -x /sbin/sysctl; then
4354      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4355    elif test -x /usr/sbin/sysctl; then
4356      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4357    else
4358      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4359    fi
4360    # And add a safety zone
4361    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4362    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4363    ;;
4364
4365  interix*)
4366    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4367    lt_cv_sys_max_cmd_len=196608
4368    ;;
4369
4370  os2*)
4371    # The test takes a long time on OS/2.
4372    lt_cv_sys_max_cmd_len=8192
4373    ;;
4374
4375  osf*)
4376    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4377    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4378    # nice to cause kernel panics so lets avoid the loop below.
4379    # First set a reasonable default.
4380    lt_cv_sys_max_cmd_len=16384
4381    #
4382    if test -x /sbin/sysconfig; then
4383      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4384        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4385      esac
4386    fi
4387    ;;
4388  sco3.2v5*)
4389    lt_cv_sys_max_cmd_len=102400
4390    ;;
4391  sysv5* | sco5v6* | sysv4.2uw2*)
4392    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4393    if test -n "$kargmax"; then
4394      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4395    else
4396      lt_cv_sys_max_cmd_len=32768
4397    fi
4398    ;;
4399  *)
4400    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4401    if test -n "$lt_cv_sys_max_cmd_len"; then
4402      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4403      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4404    else
4405      # Make teststring a little bigger before we do anything with it.
4406      # a 1K string should be a reasonable start.
4407      for i in 1 2 3 4 5 6 7 8 ; do
4408        teststring=$teststring$teststring
4409      done
4410      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4411      # If test is not a shell built-in, we'll probably end up computing a
4412      # maximum length that is only half of the actual maximum length, but
4413      # we can't tell.
4414      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4415	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4416	      test $i != 17 # 1/2 MB should be enough
4417      do
4418        i=`expr $i + 1`
4419        teststring=$teststring$teststring
4420      done
4421      # Only check the string length outside the loop.
4422      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4423      teststring=
4424      # Add a significant safety factor because C++ compilers can tack on
4425      # massive amounts of additional arguments before passing them to the
4426      # linker.  It appears as though 1/2 is a usable value.
4427      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4428    fi
4429    ;;
4430  esac
4431
4432fi
4433
4434if test -n $lt_cv_sys_max_cmd_len ; then
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4436$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4437else
4438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4439$as_echo "none" >&6; }
4440fi
4441max_cmd_len=$lt_cv_sys_max_cmd_len
4442
4443
4444
4445
4446
4447
4448: ${CP="cp -f"}
4449: ${MV="mv -f"}
4450: ${RM="rm -f"}
4451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4453$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4454# Try some XSI features
4455xsi_shell=no
4456( _lt_dummy="a/b/c"
4457  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4458      = c,a/b,b/c, \
4459    && eval 'test $(( 1 + 1 )) -eq 2 \
4460    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4461  && xsi_shell=yes
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4463$as_echo "$xsi_shell" >&6; }
4464
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4467$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4468lt_shell_append=no
4469( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4470    >/dev/null 2>&1 \
4471  && lt_shell_append=yes
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4473$as_echo "$lt_shell_append" >&6; }
4474
4475
4476if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4477  lt_unset=unset
4478else
4479  lt_unset=false
4480fi
4481
4482
4483
4484
4485
4486# test EBCDIC or ASCII
4487case `echo X|tr X '\101'` in
4488 A) # ASCII based system
4489    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4490  lt_SP2NL='tr \040 \012'
4491  lt_NL2SP='tr \015\012 \040\040'
4492  ;;
4493 *) # EBCDIC based system
4494  lt_SP2NL='tr \100 \n'
4495  lt_NL2SP='tr \r\n \100\100'
4496  ;;
4497esac
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4508$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4509if ${lt_cv_to_host_file_cmd+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  case $host in
4513  *-*-mingw* )
4514    case $build in
4515      *-*-mingw* ) # actually msys
4516        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4517        ;;
4518      *-*-cygwin* )
4519        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4520        ;;
4521      * ) # otherwise, assume *nix
4522        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4523        ;;
4524    esac
4525    ;;
4526  *-*-cygwin* )
4527    case $build in
4528      *-*-mingw* ) # actually msys
4529        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4530        ;;
4531      *-*-cygwin* )
4532        lt_cv_to_host_file_cmd=func_convert_file_noop
4533        ;;
4534      * ) # otherwise, assume *nix
4535        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4536        ;;
4537    esac
4538    ;;
4539  * ) # unhandled hosts (and "normal" native builds)
4540    lt_cv_to_host_file_cmd=func_convert_file_noop
4541    ;;
4542esac
4543
4544fi
4545
4546to_host_file_cmd=$lt_cv_to_host_file_cmd
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4548$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4549
4550
4551
4552
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4555$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4556if ${lt_cv_to_tool_file_cmd+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  #assume ordinary cross tools, or native build.
4560lt_cv_to_tool_file_cmd=func_convert_file_noop
4561case $host in
4562  *-*-mingw* )
4563    case $build in
4564      *-*-mingw* ) # actually msys
4565        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4566        ;;
4567    esac
4568    ;;
4569esac
4570
4571fi
4572
4573to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4575$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4576
4577
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4582$as_echo_n "checking for $LD option to reload object files... " >&6; }
4583if ${lt_cv_ld_reload_flag+:} false; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  lt_cv_ld_reload_flag='-r'
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4589$as_echo "$lt_cv_ld_reload_flag" >&6; }
4590reload_flag=$lt_cv_ld_reload_flag
4591case $reload_flag in
4592"" | " "*) ;;
4593*) reload_flag=" $reload_flag" ;;
4594esac
4595reload_cmds='$LD$reload_flag -o $output$reload_objs'
4596case $host_os in
4597  cygwin* | mingw* | pw32* | cegcc*)
4598    if test "$GCC" != yes; then
4599      reload_cmds=false
4600    fi
4601    ;;
4602  darwin*)
4603    if test "$GCC" = yes; then
4604      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4605    else
4606      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4607    fi
4608    ;;
4609esac
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619if test -n "$ac_tool_prefix"; then
4620  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4621set dummy ${ac_tool_prefix}objdump; ac_word=$2
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if ${ac_cv_prog_OBJDUMP+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  if test -n "$OBJDUMP"; then
4628  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633  IFS=$as_save_IFS
4634  test -z "$as_dir" && as_dir=.
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639    break 2
4640  fi
4641done
4642  done
4643IFS=$as_save_IFS
4644
4645fi
4646fi
4647OBJDUMP=$ac_cv_prog_OBJDUMP
4648if test -n "$OBJDUMP"; then
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4650$as_echo "$OBJDUMP" >&6; }
4651else
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653$as_echo "no" >&6; }
4654fi
4655
4656
4657fi
4658if test -z "$ac_cv_prog_OBJDUMP"; then
4659  ac_ct_OBJDUMP=$OBJDUMP
4660  # Extract the first word of "objdump", so it can be a program name with args.
4661set dummy objdump; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  if test -n "$ac_ct_OBJDUMP"; then
4668  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675    for ac_exec_ext in '' $ac_executable_extensions; do
4676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679    break 2
4680  fi
4681done
4682  done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4688if test -n "$ac_ct_OBJDUMP"; then
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4690$as_echo "$ac_ct_OBJDUMP" >&6; }
4691else
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696  if test "x$ac_ct_OBJDUMP" = x; then
4697    OBJDUMP="false"
4698  else
4699    case $cross_compiling:$ac_tool_warned in
4700yes:)
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703ac_tool_warned=yes ;;
4704esac
4705    OBJDUMP=$ac_ct_OBJDUMP
4706  fi
4707else
4708  OBJDUMP="$ac_cv_prog_OBJDUMP"
4709fi
4710
4711test -z "$OBJDUMP" && OBJDUMP=objdump
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4722$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4723if ${lt_cv_deplibs_check_method+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  lt_cv_file_magic_cmd='$MAGIC_CMD'
4727lt_cv_file_magic_test_file=
4728lt_cv_deplibs_check_method='unknown'
4729# Need to set the preceding variable on all platforms that support
4730# interlibrary dependencies.
4731# 'none' -- dependencies not supported.
4732# `unknown' -- same as none, but documents that we really don't know.
4733# 'pass_all' -- all dependencies passed with no checks.
4734# 'test_compile' -- check by making test program.
4735# 'file_magic [[regex]]' -- check by looking for files in library path
4736# which responds to the $file_magic_cmd with a given extended regex.
4737# If you have `file' or equivalent on your system and you're not sure
4738# whether `pass_all' will *always* work, you probably want this one.
4739
4740case $host_os in
4741aix[4-9]*)
4742  lt_cv_deplibs_check_method=pass_all
4743  ;;
4744
4745beos*)
4746  lt_cv_deplibs_check_method=pass_all
4747  ;;
4748
4749bsdi[45]*)
4750  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4751  lt_cv_file_magic_cmd='/usr/bin/file -L'
4752  lt_cv_file_magic_test_file=/shlib/libc.so
4753  ;;
4754
4755cygwin*)
4756  # func_win32_libid is a shell function defined in ltmain.sh
4757  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4758  lt_cv_file_magic_cmd='func_win32_libid'
4759  ;;
4760
4761mingw* | pw32*)
4762  # Base MSYS/MinGW do not provide the 'file' command needed by
4763  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4764  # unless we find 'file', for example because we are cross-compiling.
4765  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4766  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4767    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4768    lt_cv_file_magic_cmd='func_win32_libid'
4769  else
4770    # Keep this pattern in sync with the one in func_win32_libid.
4771    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4772    lt_cv_file_magic_cmd='$OBJDUMP -f'
4773  fi
4774  ;;
4775
4776cegcc*)
4777  # use the weaker test based on 'objdump'. See mingw*.
4778  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4779  lt_cv_file_magic_cmd='$OBJDUMP -f'
4780  ;;
4781
4782darwin* | rhapsody*)
4783  lt_cv_deplibs_check_method=pass_all
4784  ;;
4785
4786freebsd* | dragonfly*)
4787  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4788    case $host_cpu in
4789    i*86 )
4790      # Not sure whether the presence of OpenBSD here was a mistake.
4791      # Let's accept both of them until this is cleared up.
4792      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4793      lt_cv_file_magic_cmd=/usr/bin/file
4794      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4795      ;;
4796    esac
4797  else
4798    lt_cv_deplibs_check_method=pass_all
4799  fi
4800  ;;
4801
4802gnu*)
4803  lt_cv_deplibs_check_method=pass_all
4804  ;;
4805
4806haiku*)
4807  lt_cv_deplibs_check_method=pass_all
4808  ;;
4809
4810hpux10.20* | hpux11*)
4811  lt_cv_file_magic_cmd=/usr/bin/file
4812  case $host_cpu in
4813  ia64*)
4814    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4815    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4816    ;;
4817  hppa*64*)
4818    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]'
4819    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4820    ;;
4821  *)
4822    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4823    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4824    ;;
4825  esac
4826  ;;
4827
4828interix[3-9]*)
4829  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4830  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4831  ;;
4832
4833irix5* | irix6* | nonstopux*)
4834  case $LD in
4835  *-32|*"-32 ") libmagic=32-bit;;
4836  *-n32|*"-n32 ") libmagic=N32;;
4837  *-64|*"-64 ") libmagic=64-bit;;
4838  *) libmagic=never-match;;
4839  esac
4840  lt_cv_deplibs_check_method=pass_all
4841  ;;
4842
4843# This must be glibc/ELF.
4844linux* | k*bsd*-gnu | kopensolaris*-gnu)
4845  lt_cv_deplibs_check_method=pass_all
4846  ;;
4847
4848netbsd*)
4849  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4851  else
4852    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4853  fi
4854  ;;
4855
4856newos6*)
4857  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4858  lt_cv_file_magic_cmd=/usr/bin/file
4859  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4860  ;;
4861
4862*nto* | *qnx*)
4863  lt_cv_deplibs_check_method=pass_all
4864  ;;
4865
4866openbsd*)
4867  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4869  else
4870    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4871  fi
4872  ;;
4873
4874osf3* | osf4* | osf5*)
4875  lt_cv_deplibs_check_method=pass_all
4876  ;;
4877
4878rdos*)
4879  lt_cv_deplibs_check_method=pass_all
4880  ;;
4881
4882solaris*)
4883  lt_cv_deplibs_check_method=pass_all
4884  ;;
4885
4886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890sysv4 | sysv4.3*)
4891  case $host_vendor in
4892  motorola)
4893    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]'
4894    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4895    ;;
4896  ncr)
4897    lt_cv_deplibs_check_method=pass_all
4898    ;;
4899  sequent)
4900    lt_cv_file_magic_cmd='/bin/file'
4901    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4902    ;;
4903  sni)
4904    lt_cv_file_magic_cmd='/bin/file'
4905    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4906    lt_cv_file_magic_test_file=/lib/libc.so
4907    ;;
4908  siemens)
4909    lt_cv_deplibs_check_method=pass_all
4910    ;;
4911  pc)
4912    lt_cv_deplibs_check_method=pass_all
4913    ;;
4914  esac
4915  ;;
4916
4917tpf*)
4918  lt_cv_deplibs_check_method=pass_all
4919  ;;
4920esac
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4924$as_echo "$lt_cv_deplibs_check_method" >&6; }
4925
4926file_magic_glob=
4927want_nocaseglob=no
4928if test "$build" = "$host"; then
4929  case $host_os in
4930  mingw* | pw32*)
4931    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4932      want_nocaseglob=yes
4933    else
4934      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4935    fi
4936    ;;
4937  esac
4938fi
4939
4940file_magic_cmd=$lt_cv_file_magic_cmd
4941deplibs_check_method=$lt_cv_deplibs_check_method
4942test -z "$deplibs_check_method" && deplibs_check_method=unknown
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965if test -n "$ac_tool_prefix"; then
4966  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if ${ac_cv_prog_DLLTOOL+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if test -n "$DLLTOOL"; then
4974  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993DLLTOOL=$ac_cv_prog_DLLTOOL
4994if test -n "$DLLTOOL"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4996$as_echo "$DLLTOOL" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003fi
5004if test -z "$ac_cv_prog_DLLTOOL"; then
5005  ac_ct_DLLTOOL=$DLLTOOL
5006  # Extract the first word of "dlltool", so it can be a program name with args.
5007set dummy dlltool; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$ac_ct_DLLTOOL"; then
5014  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021    for ac_exec_ext in '' $ac_executable_extensions; do
5022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028  done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5034if test -n "$ac_ct_DLLTOOL"; then
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5036$as_echo "$ac_ct_DLLTOOL" >&6; }
5037else
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042  if test "x$ac_ct_DLLTOOL" = x; then
5043    DLLTOOL="false"
5044  else
5045    case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051    DLLTOOL=$ac_ct_DLLTOOL
5052  fi
5053else
5054  DLLTOOL="$ac_cv_prog_DLLTOOL"
5055fi
5056
5057test -z "$DLLTOOL" && DLLTOOL=dlltool
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5069$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5070if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  lt_cv_sharedlib_from_linklib_cmd='unknown'
5074
5075case $host_os in
5076cygwin* | mingw* | pw32* | cegcc*)
5077  # two different shell functions defined in ltmain.sh
5078  # decide which to use based on capabilities of $DLLTOOL
5079  case `$DLLTOOL --help 2>&1` in
5080  *--identify-strict*)
5081    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5082    ;;
5083  *)
5084    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5085    ;;
5086  esac
5087  ;;
5088*)
5089  # fallback: assume linklib IS sharedlib
5090  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5091  ;;
5092esac
5093
5094fi
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5096$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5097sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5098test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5099
5100
5101
5102
5103
5104
5105
5106if test -n "$ac_tool_prefix"; then
5107  for ac_prog in ar
5108  do
5109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_AR+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$AR"; then
5117  ac_cv_prog_AR="$AR" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136AR=$ac_cv_prog_AR
5137if test -n "$AR"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139$as_echo "$AR" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146    test -n "$AR" && break
5147  done
5148fi
5149if test -z "$AR"; then
5150  ac_ct_AR=$AR
5151  for ac_prog in ar
5152do
5153  # Extract the first word of "$ac_prog", so it can be a program name with args.
5154set dummy $ac_prog; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_ac_ct_AR+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$ac_ct_AR"; then
5161  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_ac_ct_AR="$ac_prog"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180ac_ct_AR=$ac_cv_prog_ac_ct_AR
5181if test -n "$ac_ct_AR"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5183$as_echo "$ac_ct_AR" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190  test -n "$ac_ct_AR" && break
5191done
5192
5193  if test "x$ac_ct_AR" = x; then
5194    AR="false"
5195  else
5196    case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202    AR=$ac_ct_AR
5203  fi
5204fi
5205
5206: ${AR=ar}
5207: ${AR_FLAGS=cru}
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5220$as_echo_n "checking for archiver @FILE support... " >&6; }
5221if ${lt_cv_ar_at_file+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  lt_cv_ar_at_file=no
5225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227
5228int
5229main ()
5230{
5231
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237  echo conftest.$ac_objext > conftest.lst
5238      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5239      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5240  (eval $lt_ar_try) 2>&5
5241  ac_status=$?
5242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243  test $ac_status = 0; }
5244      if test "$ac_status" -eq 0; then
5245	# Ensure the archiver fails upon bogus file names.
5246	rm -f conftest.$ac_objext libconftest.a
5247	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5248  (eval $lt_ar_try) 2>&5
5249  ac_status=$?
5250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251  test $ac_status = 0; }
5252	if test "$ac_status" -ne 0; then
5253          lt_cv_ar_at_file=@
5254        fi
5255      fi
5256      rm -f conftest.* libconftest.a
5257
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5263$as_echo "$lt_cv_ar_at_file" >&6; }
5264
5265if test "x$lt_cv_ar_at_file" = xno; then
5266  archiver_list_spec=
5267else
5268  archiver_list_spec=$lt_cv_ar_at_file
5269fi
5270
5271
5272
5273
5274
5275
5276
5277if test -n "$ac_tool_prefix"; then
5278  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5279set dummy ${ac_tool_prefix}strip; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if ${ac_cv_prog_STRIP+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  if test -n "$STRIP"; then
5286  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291  IFS=$as_save_IFS
5292  test -z "$as_dir" && as_dir=.
5293    for ac_exec_ext in '' $ac_executable_extensions; do
5294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297    break 2
5298  fi
5299done
5300  done
5301IFS=$as_save_IFS
5302
5303fi
5304fi
5305STRIP=$ac_cv_prog_STRIP
5306if test -n "$STRIP"; then
5307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5308$as_echo "$STRIP" >&6; }
5309else
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311$as_echo "no" >&6; }
5312fi
5313
5314
5315fi
5316if test -z "$ac_cv_prog_STRIP"; then
5317  ac_ct_STRIP=$STRIP
5318  # Extract the first word of "strip", so it can be a program name with args.
5319set dummy strip; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  if test -n "$ac_ct_STRIP"; then
5326  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333    for ac_exec_ext in '' $ac_executable_extensions; do
5334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335    ac_cv_prog_ac_ct_STRIP="strip"
5336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340  done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5346if test -n "$ac_ct_STRIP"; then
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5348$as_echo "$ac_ct_STRIP" >&6; }
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354  if test "x$ac_ct_STRIP" = x; then
5355    STRIP=":"
5356  else
5357    case $cross_compiling:$ac_tool_warned in
5358yes:)
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361ac_tool_warned=yes ;;
5362esac
5363    STRIP=$ac_ct_STRIP
5364  fi
5365else
5366  STRIP="$ac_cv_prog_STRIP"
5367fi
5368
5369test -z "$STRIP" && STRIP=:
5370
5371
5372
5373
5374
5375
5376if test -n "$ac_tool_prefix"; then
5377  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_RANLIB+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  if test -n "$RANLIB"; then
5385  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399  done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404RANLIB=$ac_cv_prog_RANLIB
5405if test -n "$RANLIB"; then
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5407$as_echo "$RANLIB" >&6; }
5408else
5409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411fi
5412
5413
5414fi
5415if test -z "$ac_cv_prog_RANLIB"; then
5416  ac_ct_RANLIB=$RANLIB
5417  # Extract the first word of "ranlib", so it can be a program name with args.
5418set dummy ranlib; ac_word=$2
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
5421if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  if test -n "$ac_ct_RANLIB"; then
5425  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432    for ac_exec_ext in '' $ac_executable_extensions; do
5433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434    ac_cv_prog_ac_ct_RANLIB="ranlib"
5435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439  done
5440IFS=$as_save_IFS
5441
5442fi
5443fi
5444ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5445if test -n "$ac_ct_RANLIB"; then
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5447$as_echo "$ac_ct_RANLIB" >&6; }
5448else
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452
5453  if test "x$ac_ct_RANLIB" = x; then
5454    RANLIB=":"
5455  else
5456    case $cross_compiling:$ac_tool_warned in
5457yes:)
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460ac_tool_warned=yes ;;
5461esac
5462    RANLIB=$ac_ct_RANLIB
5463  fi
5464else
5465  RANLIB="$ac_cv_prog_RANLIB"
5466fi
5467
5468test -z "$RANLIB" && RANLIB=:
5469
5470
5471
5472
5473
5474
5475# Determine commands to create old-style static archives.
5476old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5477old_postinstall_cmds='chmod 644 $oldlib'
5478old_postuninstall_cmds=
5479
5480if test -n "$RANLIB"; then
5481  case $host_os in
5482  openbsd*)
5483    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5484    ;;
5485  *)
5486    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5487    ;;
5488  esac
5489  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5490fi
5491
5492case $host_os in
5493  darwin*)
5494    lock_old_archive_extraction=yes ;;
5495  *)
5496    lock_old_archive_extraction=no ;;
5497esac
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519for ac_prog in gawk mawk nawk awk
5520do
5521  # Extract the first word of "$ac_prog", so it can be a program name with args.
5522set dummy $ac_prog; ac_word=$2
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524$as_echo_n "checking for $ac_word... " >&6; }
5525if ${ac_cv_prog_AWK+:} false; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  if test -n "$AWK"; then
5529  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534  IFS=$as_save_IFS
5535  test -z "$as_dir" && as_dir=.
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538    ac_cv_prog_AWK="$ac_prog"
5539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540    break 2
5541  fi
5542done
5543  done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548AWK=$ac_cv_prog_AWK
5549if test -n "$AWK"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5551$as_echo "$AWK" >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557
5558  test -n "$AWK" && break
5559done
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579# If no C compiler was specified, use CC.
5580LTCC=${LTCC-"$CC"}
5581
5582# If no C compiler flags were specified, use CFLAGS.
5583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5584
5585# Allow CC to be a program name with arguments.
5586compiler=$CC
5587
5588
5589# Check for command to grab the raw symbol name followed by C symbol from nm.
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5591$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5592if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595
5596# These are sane defaults that work on at least a few old systems.
5597# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5598
5599# Character class describing NM global symbol codes.
5600symcode='[BCDEGRST]'
5601
5602# Regexp to match symbols that can be accessed directly from C.
5603sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5604
5605# Define system-specific variables.
5606case $host_os in
5607aix*)
5608  symcode='[BCDT]'
5609  ;;
5610cygwin* | mingw* | pw32* | cegcc*)
5611  symcode='[ABCDGISTW]'
5612  ;;
5613hpux*)
5614  if test "$host_cpu" = ia64; then
5615    symcode='[ABCDEGRST]'
5616  fi
5617  ;;
5618irix* | nonstopux*)
5619  symcode='[BCDEGRST]'
5620  ;;
5621osf*)
5622  symcode='[BCDEGQRST]'
5623  ;;
5624solaris*)
5625  symcode='[BDRT]'
5626  ;;
5627sco3.2v5*)
5628  symcode='[DT]'
5629  ;;
5630sysv4.2uw2*)
5631  symcode='[DT]'
5632  ;;
5633sysv5* | sco5v6* | unixware* | OpenUNIX*)
5634  symcode='[ABDT]'
5635  ;;
5636sysv4)
5637  symcode='[DFNSTU]'
5638  ;;
5639esac
5640
5641# If we're using GNU nm, then use its standard symbol codes.
5642case `$NM -V 2>&1` in
5643*GNU* | *'with BFD'*)
5644  symcode='[ABCDGIRSTW]' ;;
5645esac
5646
5647# Transform an extracted symbol line into a proper C declaration.
5648# Some systems (esp. on ia64) link data and code symbols differently,
5649# so use this general approach.
5650lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5651
5652# Transform an extracted symbol line into symbol name and symbol address
5653lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5654lt_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'"
5655
5656# Handle CRLF in mingw tool chain
5657opt_cr=
5658case $build_os in
5659mingw*)
5660  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5661  ;;
5662esac
5663
5664# Try without a prefix underscore, then with it.
5665for ac_symprfx in "" "_"; do
5666
5667  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5668  symxfrm="\\1 $ac_symprfx\\2 \\2"
5669
5670  # Write the raw and C identifiers.
5671  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5672    # Fake it for dumpbin and say T for any non-static function
5673    # and D for any global variable.
5674    # Also find C++ and __fastcall symbols from MSVC++,
5675    # which start with @ or ?.
5676    lt_cv_sys_global_symbol_pipe="$AWK '"\
5677"     {last_section=section; section=\$ 3};"\
5678"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5679"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5680"     \$ 0!~/External *\|/{next};"\
5681"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5682"     {if(hide[section]) next};"\
5683"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5684"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5685"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5686"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5687"     ' prfx=^$ac_symprfx"
5688  else
5689    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5690  fi
5691  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5692
5693  # Check to see that the pipe works correctly.
5694  pipe_works=no
5695
5696  rm -f conftest*
5697  cat > conftest.$ac_ext <<_LT_EOF
5698#ifdef __cplusplus
5699extern "C" {
5700#endif
5701char nm_test_var;
5702void nm_test_func(void);
5703void nm_test_func(void){}
5704#ifdef __cplusplus
5705}
5706#endif
5707int main(){nm_test_var='a';nm_test_func();return(0);}
5708_LT_EOF
5709
5710  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5711  (eval $ac_compile) 2>&5
5712  ac_status=$?
5713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714  test $ac_status = 0; }; then
5715    # Now try to grab the symbols.
5716    nlist=conftest.nm
5717    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5718  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5719  ac_status=$?
5720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721  test $ac_status = 0; } && test -s "$nlist"; then
5722      # Try sorting and uniquifying the output.
5723      if sort "$nlist" | uniq > "$nlist"T; then
5724	mv -f "$nlist"T "$nlist"
5725      else
5726	rm -f "$nlist"T
5727      fi
5728
5729      # Make sure that we snagged all the symbols we need.
5730      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5731	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5732	  cat <<_LT_EOF > conftest.$ac_ext
5733/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5734#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5735/* DATA imports from DLLs on WIN32 con't be const, because runtime
5736   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5737# define LT_DLSYM_CONST
5738#elif defined(__osf__)
5739/* This system does not cope well with relocations in const data.  */
5740# define LT_DLSYM_CONST
5741#else
5742# define LT_DLSYM_CONST const
5743#endif
5744
5745#ifdef __cplusplus
5746extern "C" {
5747#endif
5748
5749_LT_EOF
5750	  # Now generate the symbol file.
5751	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5752
5753	  cat <<_LT_EOF >> conftest.$ac_ext
5754
5755/* The mapping between symbol names and symbols.  */
5756LT_DLSYM_CONST struct {
5757  const char *name;
5758  void       *address;
5759}
5760lt__PROGRAM__LTX_preloaded_symbols[] =
5761{
5762  { "@PROGRAM@", (void *) 0 },
5763_LT_EOF
5764	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5765	  cat <<\_LT_EOF >> conftest.$ac_ext
5766  {0, (void *) 0}
5767};
5768
5769/* This works around a problem in FreeBSD linker */
5770#ifdef FREEBSD_WORKAROUND
5771static const void *lt_preloaded_setup() {
5772  return lt__PROGRAM__LTX_preloaded_symbols;
5773}
5774#endif
5775
5776#ifdef __cplusplus
5777}
5778#endif
5779_LT_EOF
5780	  # Now try linking the two files.
5781	  mv conftest.$ac_objext conftstm.$ac_objext
5782	  lt_globsym_save_LIBS=$LIBS
5783	  lt_globsym_save_CFLAGS=$CFLAGS
5784	  LIBS="conftstm.$ac_objext"
5785	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5786	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5787  (eval $ac_link) 2>&5
5788  ac_status=$?
5789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5791	    pipe_works=yes
5792	  fi
5793	  LIBS=$lt_globsym_save_LIBS
5794	  CFLAGS=$lt_globsym_save_CFLAGS
5795	else
5796	  echo "cannot find nm_test_func in $nlist" >&5
5797	fi
5798      else
5799	echo "cannot find nm_test_var in $nlist" >&5
5800      fi
5801    else
5802      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5803    fi
5804  else
5805    echo "$progname: failed program was:" >&5
5806    cat conftest.$ac_ext >&5
5807  fi
5808  rm -rf conftest* conftst*
5809
5810  # Do not use the global_symbol_pipe unless it works.
5811  if test "$pipe_works" = yes; then
5812    break
5813  else
5814    lt_cv_sys_global_symbol_pipe=
5815  fi
5816done
5817
5818fi
5819
5820if test -z "$lt_cv_sys_global_symbol_pipe"; then
5821  lt_cv_sys_global_symbol_to_cdecl=
5822fi
5823if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5825$as_echo "failed" >&6; }
5826else
5827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5828$as_echo "ok" >&6; }
5829fi
5830
5831# Response file support.
5832if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5833  nm_file_list_spec='@'
5834elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5835  nm_file_list_spec='@'
5836fi
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5865$as_echo_n "checking for sysroot... " >&6; }
5866
5867# Check whether --with-sysroot was given.
5868if test "${with_sysroot+set}" = set; then :
5869  withval=$with_sysroot;
5870else
5871  with_sysroot=no
5872fi
5873
5874
5875lt_sysroot=
5876case ${with_sysroot} in #(
5877 yes)
5878   if test "$GCC" = yes; then
5879     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5880   fi
5881   ;; #(
5882 /*)
5883   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5884   ;; #(
5885 no|'')
5886   ;; #(
5887 *)
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5889$as_echo "${with_sysroot}" >&6; }
5890   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5891   ;;
5892esac
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5895$as_echo "${lt_sysroot:-no}" >&6; }
5896
5897
5898
5899
5900
5901# Check whether --enable-libtool-lock was given.
5902if test "${enable_libtool_lock+set}" = set; then :
5903  enableval=$enable_libtool_lock;
5904fi
5905
5906test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5907
5908# Some flags need to be propagated to the compiler or linker for good
5909# libtool support.
5910case $host in
5911ia64-*-hpux*)
5912  # Find out which ABI we are using.
5913  echo 'int i;' > conftest.$ac_ext
5914  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5915  (eval $ac_compile) 2>&5
5916  ac_status=$?
5917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918  test $ac_status = 0; }; then
5919    case `/usr/bin/file conftest.$ac_objext` in
5920      *ELF-32*)
5921	HPUX_IA64_MODE="32"
5922	;;
5923      *ELF-64*)
5924	HPUX_IA64_MODE="64"
5925	;;
5926    esac
5927  fi
5928  rm -rf conftest*
5929  ;;
5930*-*-irix6*)
5931  # Find out which ABI we are using.
5932  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5933  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934  (eval $ac_compile) 2>&5
5935  ac_status=$?
5936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937  test $ac_status = 0; }; then
5938    if test "$lt_cv_prog_gnu_ld" = yes; then
5939      case `/usr/bin/file conftest.$ac_objext` in
5940	*32-bit*)
5941	  LD="${LD-ld} -melf32bsmip"
5942	  ;;
5943	*N32*)
5944	  LD="${LD-ld} -melf32bmipn32"
5945	  ;;
5946	*64-bit*)
5947	  LD="${LD-ld} -melf64bmip"
5948	;;
5949      esac
5950    else
5951      case `/usr/bin/file conftest.$ac_objext` in
5952	*32-bit*)
5953	  LD="${LD-ld} -32"
5954	  ;;
5955	*N32*)
5956	  LD="${LD-ld} -n32"
5957	  ;;
5958	*64-bit*)
5959	  LD="${LD-ld} -64"
5960	  ;;
5961      esac
5962    fi
5963  fi
5964  rm -rf conftest*
5965  ;;
5966
5967x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5968s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5969  # Find out which ABI we are using.
5970  echo 'int i;' > conftest.$ac_ext
5971  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5972  (eval $ac_compile) 2>&5
5973  ac_status=$?
5974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975  test $ac_status = 0; }; then
5976    case `/usr/bin/file conftest.o` in
5977      *32-bit*)
5978	case $host in
5979	  x86_64-*kfreebsd*-gnu)
5980	    LD="${LD-ld} -m elf_i386_fbsd"
5981	    ;;
5982	  x86_64-*linux*)
5983	    LD="${LD-ld} -m elf_i386"
5984	    ;;
5985	  ppc64-*linux*|powerpc64-*linux*)
5986	    LD="${LD-ld} -m elf32ppclinux"
5987	    ;;
5988	  s390x-*linux*)
5989	    LD="${LD-ld} -m elf_s390"
5990	    ;;
5991	  sparc64-*linux*)
5992	    LD="${LD-ld} -m elf32_sparc"
5993	    ;;
5994	esac
5995	;;
5996      *64-bit*)
5997	case $host in
5998	  x86_64-*kfreebsd*-gnu)
5999	    LD="${LD-ld} -m elf_x86_64_fbsd"
6000	    ;;
6001	  x86_64-*linux*)
6002	    LD="${LD-ld} -m elf_x86_64"
6003	    ;;
6004	  ppc*-*linux*|powerpc*-*linux*)
6005	    LD="${LD-ld} -m elf64ppc"
6006	    ;;
6007	  s390*-*linux*|s390*-*tpf*)
6008	    LD="${LD-ld} -m elf64_s390"
6009	    ;;
6010	  sparc*-*linux*)
6011	    LD="${LD-ld} -m elf64_sparc"
6012	    ;;
6013	esac
6014	;;
6015    esac
6016  fi
6017  rm -rf conftest*
6018  ;;
6019
6020*-*-sco3.2v5*)
6021  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6022  SAVE_CFLAGS="$CFLAGS"
6023  CFLAGS="$CFLAGS -belf"
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6025$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6026if ${lt_cv_cc_needs_belf+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029  ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037
6038int
6039main ()
6040{
6041
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  lt_cv_cc_needs_belf=yes
6048else
6049  lt_cv_cc_needs_belf=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052    conftest$ac_exeext conftest.$ac_ext
6053     ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6061$as_echo "$lt_cv_cc_needs_belf" >&6; }
6062  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6063    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6064    CFLAGS="$SAVE_CFLAGS"
6065  fi
6066  ;;
6067*-*solaris*)
6068  # Find out which ABI we are using.
6069  echo 'int i;' > conftest.$ac_ext
6070  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071  (eval $ac_compile) 2>&5
6072  ac_status=$?
6073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074  test $ac_status = 0; }; then
6075    case `/usr/bin/file conftest.o` in
6076    *64-bit*)
6077      case $lt_cv_prog_gnu_ld in
6078      yes*)
6079        case $host in
6080        i?86-*-solaris*)
6081          LD="${LD-ld} -m elf_x86_64"
6082          ;;
6083        sparc*-*-solaris*)
6084          LD="${LD-ld} -m elf64_sparc"
6085          ;;
6086        esac
6087        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6088        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6089          LD="${LD-ld}_sol2"
6090        fi
6091        ;;
6092      *)
6093	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6094	  LD="${LD-ld} -64"
6095	fi
6096	;;
6097      esac
6098      ;;
6099    esac
6100  fi
6101  rm -rf conftest*
6102  ;;
6103esac
6104
6105need_locks="$enable_libtool_lock"
6106
6107if test -n "$ac_tool_prefix"; then
6108  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6109set dummy ${ac_tool_prefix}mt; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  if test -n "$MANIFEST_TOOL"; then
6116  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6136if test -n "$MANIFEST_TOOL"; then
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6138$as_echo "$MANIFEST_TOOL" >&6; }
6139else
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145fi
6146if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6147  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6148  # Extract the first word of "mt", so it can be a program name with args.
6149set dummy mt; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$ac_ct_MANIFEST_TOOL"; then
6156  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6176if test -n "$ac_ct_MANIFEST_TOOL"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6178$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6185    MANIFEST_TOOL=":"
6186  else
6187    case $cross_compiling:$ac_tool_warned in
6188yes:)
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191ac_tool_warned=yes ;;
6192esac
6193    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6194  fi
6195else
6196  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6197fi
6198
6199test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6201$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6202if ${lt_cv_path_mainfest_tool+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  lt_cv_path_mainfest_tool=no
6206  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6207  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6208  cat conftest.err >&5
6209  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6210    lt_cv_path_mainfest_tool=yes
6211  fi
6212  rm -f conftest*
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6215$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6216if test "x$lt_cv_path_mainfest_tool" != xyes; then
6217  MANIFEST_TOOL=:
6218fi
6219
6220
6221
6222
6223
6224
6225  case $host_os in
6226    rhapsody* | darwin*)
6227    if test -n "$ac_tool_prefix"; then
6228  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6229set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_DSYMUTIL+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$DSYMUTIL"; then
6236  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255DSYMUTIL=$ac_cv_prog_DSYMUTIL
6256if test -n "$DSYMUTIL"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6258$as_echo "$DSYMUTIL" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264
6265fi
6266if test -z "$ac_cv_prog_DSYMUTIL"; then
6267  ac_ct_DSYMUTIL=$DSYMUTIL
6268  # Extract the first word of "dsymutil", so it can be a program name with args.
6269set dummy dsymutil; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$ac_ct_DSYMUTIL"; then
6276  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6296if test -n "$ac_ct_DSYMUTIL"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6298$as_echo "$ac_ct_DSYMUTIL" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304  if test "x$ac_ct_DSYMUTIL" = x; then
6305    DSYMUTIL=":"
6306  else
6307    case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311ac_tool_warned=yes ;;
6312esac
6313    DSYMUTIL=$ac_ct_DSYMUTIL
6314  fi
6315else
6316  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6317fi
6318
6319    if test -n "$ac_tool_prefix"; then
6320  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_NMEDIT+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$NMEDIT"; then
6328  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347NMEDIT=$ac_cv_prog_NMEDIT
6348if test -n "$NMEDIT"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6350$as_echo "$NMEDIT" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356
6357fi
6358if test -z "$ac_cv_prog_NMEDIT"; then
6359  ac_ct_NMEDIT=$NMEDIT
6360  # Extract the first word of "nmedit", so it can be a program name with args.
6361set dummy nmedit; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  if test -n "$ac_ct_NMEDIT"; then
6368  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375    for ac_exec_ext in '' $ac_executable_extensions; do
6376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379    break 2
6380  fi
6381done
6382  done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6388if test -n "$ac_ct_NMEDIT"; then
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6390$as_echo "$ac_ct_NMEDIT" >&6; }
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396  if test "x$ac_ct_NMEDIT" = x; then
6397    NMEDIT=":"
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    NMEDIT=$ac_ct_NMEDIT
6406  fi
6407else
6408  NMEDIT="$ac_cv_prog_NMEDIT"
6409fi
6410
6411    if test -n "$ac_tool_prefix"; then
6412  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6413set dummy ${ac_tool_prefix}lipo; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if ${ac_cv_prog_LIPO+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$LIPO"; then
6420  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434  done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439LIPO=$ac_cv_prog_LIPO
6440if test -n "$LIPO"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6442$as_echo "$LIPO" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448
6449fi
6450if test -z "$ac_cv_prog_LIPO"; then
6451  ac_ct_LIPO=$LIPO
6452  # Extract the first word of "lipo", so it can be a program name with args.
6453set dummy lipo; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$ac_ct_LIPO"; then
6460  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469    ac_cv_prog_ac_ct_LIPO="lipo"
6470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474  done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6480if test -n "$ac_ct_LIPO"; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6482$as_echo "$ac_ct_LIPO" >&6; }
6483else
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488  if test "x$ac_ct_LIPO" = x; then
6489    LIPO=":"
6490  else
6491    case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495ac_tool_warned=yes ;;
6496esac
6497    LIPO=$ac_ct_LIPO
6498  fi
6499else
6500  LIPO="$ac_cv_prog_LIPO"
6501fi
6502
6503    if test -n "$ac_tool_prefix"; then
6504  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6505set dummy ${ac_tool_prefix}otool; ac_word=$2
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if ${ac_cv_prog_OTOOL+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  if test -n "$OTOOL"; then
6512  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517  IFS=$as_save_IFS
6518  test -z "$as_dir" && as_dir=.
6519    for ac_exec_ext in '' $ac_executable_extensions; do
6520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526  done
6527IFS=$as_save_IFS
6528
6529fi
6530fi
6531OTOOL=$ac_cv_prog_OTOOL
6532if test -n "$OTOOL"; then
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6534$as_echo "$OTOOL" >&6; }
6535else
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538fi
6539
6540
6541fi
6542if test -z "$ac_cv_prog_OTOOL"; then
6543  ac_ct_OTOOL=$OTOOL
6544  # Extract the first word of "otool", so it can be a program name with args.
6545set dummy otool; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  if test -n "$ac_ct_OTOOL"; then
6552  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559    for ac_exec_ext in '' $ac_executable_extensions; do
6560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561    ac_cv_prog_ac_ct_OTOOL="otool"
6562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566  done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6572if test -n "$ac_ct_OTOOL"; then
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6574$as_echo "$ac_ct_OTOOL" >&6; }
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580  if test "x$ac_ct_OTOOL" = x; then
6581    OTOOL=":"
6582  else
6583    case $cross_compiling:$ac_tool_warned in
6584yes:)
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587ac_tool_warned=yes ;;
6588esac
6589    OTOOL=$ac_ct_OTOOL
6590  fi
6591else
6592  OTOOL="$ac_cv_prog_OTOOL"
6593fi
6594
6595    if test -n "$ac_tool_prefix"; then
6596  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}otool64; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_prog_OTOOL64+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  if test -n "$OTOOL64"; then
6604  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623OTOOL64=$ac_cv_prog_OTOOL64
6624if test -n "$OTOOL64"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6626$as_echo "$OTOOL64" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_OTOOL64"; then
6635  ac_ct_OTOOL64=$OTOOL64
6636  # Extract the first word of "otool64", so it can be a program name with args.
6637set dummy otool64; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$ac_ct_OTOOL64"; then
6644  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653    ac_cv_prog_ac_ct_OTOOL64="otool64"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6664if test -n "$ac_ct_OTOOL64"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6666$as_echo "$ac_ct_OTOOL64" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672  if test "x$ac_ct_OTOOL64" = x; then
6673    OTOOL64=":"
6674  else
6675    case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
6681    OTOOL64=$ac_ct_OTOOL64
6682  fi
6683else
6684  OTOOL64="$ac_cv_prog_OTOOL64"
6685fi
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6714$as_echo_n "checking for -single_module linker flag... " >&6; }
6715if ${lt_cv_apple_cc_single_mod+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  lt_cv_apple_cc_single_mod=no
6719      if test -z "${LT_MULTI_MODULE}"; then
6720	# By default we will add the -single_module flag. You can override
6721	# by either setting the environment variable LT_MULTI_MODULE
6722	# non-empty at configure time, or by adding -multi_module to the
6723	# link flags.
6724	rm -rf libconftest.dylib*
6725	echo "int foo(void){return 1;}" > conftest.c
6726	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6727-dynamiclib -Wl,-single_module conftest.c" >&5
6728	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6729	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6730        _lt_result=$?
6731	# If there is a non-empty error log, and "single_module"
6732	# appears in it, assume the flag caused a linker warning
6733        if test -s conftest.err && $GREP single_module conftest.err; then
6734	  cat conftest.err >&5
6735	# Otherwise, if the output was created with a 0 exit code from
6736	# the compiler, it worked.
6737	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6738	  lt_cv_apple_cc_single_mod=yes
6739	else
6740	  cat conftest.err >&5
6741	fi
6742	rm -rf libconftest.dylib*
6743	rm -f conftest.*
6744      fi
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6747$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6748
6749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6750$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6751if ${lt_cv_ld_exported_symbols_list+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  lt_cv_ld_exported_symbols_list=no
6755      save_LDFLAGS=$LDFLAGS
6756      echo "_main" > conftest.sym
6757      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760
6761int
6762main ()
6763{
6764
6765  ;
6766  return 0;
6767}
6768_ACEOF
6769if ac_fn_c_try_link "$LINENO"; then :
6770  lt_cv_ld_exported_symbols_list=yes
6771else
6772  lt_cv_ld_exported_symbols_list=no
6773fi
6774rm -f core conftest.err conftest.$ac_objext \
6775    conftest$ac_exeext conftest.$ac_ext
6776	LDFLAGS="$save_LDFLAGS"
6777
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6780$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6781
6782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6783$as_echo_n "checking for -force_load linker flag... " >&6; }
6784if ${lt_cv_ld_force_load+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  lt_cv_ld_force_load=no
6788      cat > conftest.c << _LT_EOF
6789int forced_loaded() { return 2;}
6790_LT_EOF
6791      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6792      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6793      echo "$AR cru libconftest.a conftest.o" >&5
6794      $AR cru libconftest.a conftest.o 2>&5
6795      echo "$RANLIB libconftest.a" >&5
6796      $RANLIB libconftest.a 2>&5
6797      cat > conftest.c << _LT_EOF
6798int main() { return 0;}
6799_LT_EOF
6800      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6801      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6802      _lt_result=$?
6803      if test -s conftest.err && $GREP force_load conftest.err; then
6804	cat conftest.err >&5
6805      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6806	lt_cv_ld_force_load=yes
6807      else
6808	cat conftest.err >&5
6809      fi
6810        rm -f conftest.err libconftest.a conftest conftest.c
6811        rm -rf conftest.dSYM
6812
6813fi
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6815$as_echo "$lt_cv_ld_force_load" >&6; }
6816    case $host_os in
6817    rhapsody* | darwin1.[012])
6818      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6819    darwin1.*)
6820      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6821    darwin*) # darwin 5.x on
6822      # if running on 10.5 or later, the deployment target defaults
6823      # to the OS version, if on x86, and 10.4, the deployment
6824      # target defaults to 10.4. Don't you love it?
6825      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6826	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6827	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6828	10.[012]*)
6829	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6830	10.*)
6831	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6832      esac
6833    ;;
6834  esac
6835    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6836      _lt_dar_single_mod='$single_module'
6837    fi
6838    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6839      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6840    else
6841      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6842    fi
6843    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6844      _lt_dsymutil='~$DSYMUTIL $lib || :'
6845    else
6846      _lt_dsymutil=
6847    fi
6848    ;;
6849  esac
6850
6851ac_ext=c
6852ac_cpp='$CPP $CPPFLAGS'
6853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6857$as_echo_n "checking how to run the C preprocessor... " >&6; }
6858# On Suns, sometimes $CPP names a directory.
6859if test -n "$CPP" && test -d "$CPP"; then
6860  CPP=
6861fi
6862if test -z "$CPP"; then
6863  if ${ac_cv_prog_CPP+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866      # Double quotes because CPP needs to be expanded
6867    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6868    do
6869      ac_preproc_ok=false
6870for ac_c_preproc_warn_flag in '' yes
6871do
6872  # Use a header file that comes with gcc, so configuring glibc
6873  # with a fresh cross-compiler works.
6874  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875  # <limits.h> exists even on freestanding compilers.
6876  # On the NeXT, cc -E runs the code through the compiler's parser,
6877  # not just through cpp. "Syntax error" is here to catch this case.
6878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880#ifdef __STDC__
6881# include <limits.h>
6882#else
6883# include <assert.h>
6884#endif
6885		     Syntax error
6886_ACEOF
6887if ac_fn_c_try_cpp "$LINENO"; then :
6888
6889else
6890  # Broken: fails on valid input.
6891continue
6892fi
6893rm -f conftest.err conftest.i conftest.$ac_ext
6894
6895  # OK, works on sane cases.  Now check whether nonexistent headers
6896  # can be detected and how.
6897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h.  */
6899#include <ac_nonexistent.h>
6900_ACEOF
6901if ac_fn_c_try_cpp "$LINENO"; then :
6902  # Broken: success on invalid input.
6903continue
6904else
6905  # Passes both tests.
6906ac_preproc_ok=:
6907break
6908fi
6909rm -f conftest.err conftest.i conftest.$ac_ext
6910
6911done
6912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913rm -f conftest.i conftest.err conftest.$ac_ext
6914if $ac_preproc_ok; then :
6915  break
6916fi
6917
6918    done
6919    ac_cv_prog_CPP=$CPP
6920
6921fi
6922  CPP=$ac_cv_prog_CPP
6923else
6924  ac_cv_prog_CPP=$CPP
6925fi
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6927$as_echo "$CPP" >&6; }
6928ac_preproc_ok=false
6929for ac_c_preproc_warn_flag in '' yes
6930do
6931  # Use a header file that comes with gcc, so configuring glibc
6932  # with a fresh cross-compiler works.
6933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934  # <limits.h> exists even on freestanding compilers.
6935  # On the NeXT, cc -E runs the code through the compiler's parser,
6936  # not just through cpp. "Syntax error" is here to catch this case.
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939#ifdef __STDC__
6940# include <limits.h>
6941#else
6942# include <assert.h>
6943#endif
6944		     Syntax error
6945_ACEOF
6946if ac_fn_c_try_cpp "$LINENO"; then :
6947
6948else
6949  # Broken: fails on valid input.
6950continue
6951fi
6952rm -f conftest.err conftest.i conftest.$ac_ext
6953
6954  # OK, works on sane cases.  Now check whether nonexistent headers
6955  # can be detected and how.
6956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958#include <ac_nonexistent.h>
6959_ACEOF
6960if ac_fn_c_try_cpp "$LINENO"; then :
6961  # Broken: success on invalid input.
6962continue
6963else
6964  # Passes both tests.
6965ac_preproc_ok=:
6966break
6967fi
6968rm -f conftest.err conftest.i conftest.$ac_ext
6969
6970done
6971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6972rm -f conftest.i conftest.err conftest.$ac_ext
6973if $ac_preproc_ok; then :
6974
6975else
6976  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6979See \`config.log' for more details" "$LINENO" 5; }
6980fi
6981
6982ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6990$as_echo_n "checking for ANSI C header files... " >&6; }
6991if ${ac_cv_header_stdc+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996#include <stdlib.h>
6997#include <stdarg.h>
6998#include <string.h>
6999#include <float.h>
7000
7001int
7002main ()
7003{
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  ac_cv_header_stdc=yes
7011else
7012  ac_cv_header_stdc=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015
7016if test $ac_cv_header_stdc = yes; then
7017  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h.  */
7020#include <string.h>
7021
7022_ACEOF
7023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024  $EGREP "memchr" >/dev/null 2>&1; then :
7025
7026else
7027  ac_cv_header_stdc=no
7028fi
7029rm -f conftest*
7030
7031fi
7032
7033if test $ac_cv_header_stdc = yes; then
7034  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h.  */
7037#include <stdlib.h>
7038
7039_ACEOF
7040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041  $EGREP "free" >/dev/null 2>&1; then :
7042
7043else
7044  ac_cv_header_stdc=no
7045fi
7046rm -f conftest*
7047
7048fi
7049
7050if test $ac_cv_header_stdc = yes; then
7051  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052  if test "$cross_compiling" = yes; then :
7053  :
7054else
7055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h.  */
7057#include <ctype.h>
7058#include <stdlib.h>
7059#if ((' ' & 0x0FF) == 0x020)
7060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7062#else
7063# define ISLOWER(c) \
7064		   (('a' <= (c) && (c) <= 'i') \
7065		     || ('j' <= (c) && (c) <= 'r') \
7066		     || ('s' <= (c) && (c) <= 'z'))
7067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7068#endif
7069
7070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7071int
7072main ()
7073{
7074  int i;
7075  for (i = 0; i < 256; i++)
7076    if (XOR (islower (i), ISLOWER (i))
7077	|| toupper (i) != TOUPPER (i))
7078      return 2;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_c_try_run "$LINENO"; then :
7083
7084else
7085  ac_cv_header_stdc=no
7086fi
7087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7088  conftest.$ac_objext conftest.beam conftest.$ac_ext
7089fi
7090
7091fi
7092fi
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7094$as_echo "$ac_cv_header_stdc" >&6; }
7095if test $ac_cv_header_stdc = yes; then
7096
7097$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7098
7099fi
7100
7101# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7102for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7103		  inttypes.h stdint.h unistd.h
7104do :
7105  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7107"
7108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7109  cat >>confdefs.h <<_ACEOF
7110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111_ACEOF
7112
7113fi
7114
7115done
7116
7117
7118for ac_header in dlfcn.h
7119do :
7120  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7121"
7122if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7123  cat >>confdefs.h <<_ACEOF
7124#define HAVE_DLFCN_H 1
7125_ACEOF
7126
7127fi
7128
7129done
7130
7131
7132
7133
7134
7135# Set options
7136
7137
7138
7139        enable_dlopen=no
7140
7141
7142  enable_win32_dll=no
7143
7144
7145            # Check whether --enable-shared was given.
7146if test "${enable_shared+set}" = set; then :
7147  enableval=$enable_shared; p=${PACKAGE-default}
7148    case $enableval in
7149    yes) enable_shared=yes ;;
7150    no) enable_shared=no ;;
7151    *)
7152      enable_shared=no
7153      # Look at the argument we got.  We use all the common list separators.
7154      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7155      for pkg in $enableval; do
7156	IFS="$lt_save_ifs"
7157	if test "X$pkg" = "X$p"; then
7158	  enable_shared=yes
7159	fi
7160      done
7161      IFS="$lt_save_ifs"
7162      ;;
7163    esac
7164else
7165  enable_shared=yes
7166fi
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176  # Check whether --enable-static was given.
7177if test "${enable_static+set}" = set; then :
7178  enableval=$enable_static; p=${PACKAGE-default}
7179    case $enableval in
7180    yes) enable_static=yes ;;
7181    no) enable_static=no ;;
7182    *)
7183     enable_static=no
7184      # Look at the argument we got.  We use all the common list separators.
7185      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186      for pkg in $enableval; do
7187	IFS="$lt_save_ifs"
7188	if test "X$pkg" = "X$p"; then
7189	  enable_static=yes
7190	fi
7191      done
7192      IFS="$lt_save_ifs"
7193      ;;
7194    esac
7195else
7196  enable_static=yes
7197fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208# Check whether --with-pic was given.
7209if test "${with_pic+set}" = set; then :
7210  withval=$with_pic; lt_p=${PACKAGE-default}
7211    case $withval in
7212    yes|no) pic_mode=$withval ;;
7213    *)
7214      pic_mode=default
7215      # Look at the argument we got.  We use all the common list separators.
7216      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7217      for lt_pkg in $withval; do
7218	IFS="$lt_save_ifs"
7219	if test "X$lt_pkg" = "X$lt_p"; then
7220	  pic_mode=yes
7221	fi
7222      done
7223      IFS="$lt_save_ifs"
7224      ;;
7225    esac
7226else
7227  pic_mode=default
7228fi
7229
7230
7231test -z "$pic_mode" && pic_mode=default
7232
7233
7234
7235
7236
7237
7238
7239  # Check whether --enable-fast-install was given.
7240if test "${enable_fast_install+set}" = set; then :
7241  enableval=$enable_fast_install; p=${PACKAGE-default}
7242    case $enableval in
7243    yes) enable_fast_install=yes ;;
7244    no) enable_fast_install=no ;;
7245    *)
7246      enable_fast_install=no
7247      # Look at the argument we got.  We use all the common list separators.
7248      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7249      for pkg in $enableval; do
7250	IFS="$lt_save_ifs"
7251	if test "X$pkg" = "X$p"; then
7252	  enable_fast_install=yes
7253	fi
7254      done
7255      IFS="$lt_save_ifs"
7256      ;;
7257    esac
7258else
7259  enable_fast_install=yes
7260fi
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272# This can be used to rebuild libtool when needed
7273LIBTOOL_DEPS="$ltmain"
7274
7275# Always use our own libtool.
7276LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307test -z "$LN_S" && LN_S="ln -s"
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322if test -n "${ZSH_VERSION+set}" ; then
7323   setopt NO_GLOB_SUBST
7324fi
7325
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7327$as_echo_n "checking for objdir... " >&6; }
7328if ${lt_cv_objdir+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  rm -f .libs 2>/dev/null
7332mkdir .libs 2>/dev/null
7333if test -d .libs; then
7334  lt_cv_objdir=.libs
7335else
7336  # MS-DOS does not allow filenames that begin with a dot.
7337  lt_cv_objdir=_libs
7338fi
7339rmdir .libs 2>/dev/null
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7342$as_echo "$lt_cv_objdir" >&6; }
7343objdir=$lt_cv_objdir
7344
7345
7346
7347
7348
7349cat >>confdefs.h <<_ACEOF
7350#define LT_OBJDIR "$lt_cv_objdir/"
7351_ACEOF
7352
7353
7354
7355
7356case $host_os in
7357aix3*)
7358  # AIX sometimes has problems with the GCC collect2 program.  For some
7359  # reason, if we set the COLLECT_NAMES environment variable, the problems
7360  # vanish in a puff of smoke.
7361  if test "X${COLLECT_NAMES+set}" != Xset; then
7362    COLLECT_NAMES=
7363    export COLLECT_NAMES
7364  fi
7365  ;;
7366esac
7367
7368# Global variables:
7369ofile=libtool
7370can_build_shared=yes
7371
7372# All known linkers require a `.a' archive for static linking (except MSVC,
7373# which needs '.lib').
7374libext=a
7375
7376with_gnu_ld="$lt_cv_prog_gnu_ld"
7377
7378old_CC="$CC"
7379old_CFLAGS="$CFLAGS"
7380
7381# Set sane defaults for various variables
7382test -z "$CC" && CC=cc
7383test -z "$LTCC" && LTCC=$CC
7384test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7385test -z "$LD" && LD=ld
7386test -z "$ac_objext" && ac_objext=o
7387
7388for cc_temp in $compiler""; do
7389  case $cc_temp in
7390    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7391    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7392    \-*) ;;
7393    *) break;;
7394  esac
7395done
7396cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7397
7398
7399# Only perform the check for file, if the check method requires it
7400test -z "$MAGIC_CMD" && MAGIC_CMD=file
7401case $deplibs_check_method in
7402file_magic*)
7403  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7405$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7406if ${lt_cv_path_MAGIC_CMD+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  case $MAGIC_CMD in
7410[\\/*] |  ?:[\\/]*)
7411  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7412  ;;
7413*)
7414  lt_save_MAGIC_CMD="$MAGIC_CMD"
7415  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7417  for ac_dir in $ac_dummy; do
7418    IFS="$lt_save_ifs"
7419    test -z "$ac_dir" && ac_dir=.
7420    if test -f $ac_dir/${ac_tool_prefix}file; then
7421      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7422      if test -n "$file_magic_test_file"; then
7423	case $deplibs_check_method in
7424	"file_magic "*)
7425	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7426	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7428	    $EGREP "$file_magic_regex" > /dev/null; then
7429	    :
7430	  else
7431	    cat <<_LT_EOF 1>&2
7432
7433*** Warning: the command libtool uses to detect shared libraries,
7434*** $file_magic_cmd, produces output that libtool cannot recognize.
7435*** The result is that libtool may fail to recognize shared libraries
7436*** as such.  This will affect the creation of libtool libraries that
7437*** depend on shared libraries, but programs linked with such libtool
7438*** libraries will work regardless of this problem.  Nevertheless, you
7439*** may want to report the problem to your system manager and/or to
7440*** bug-libtool@gnu.org
7441
7442_LT_EOF
7443	  fi ;;
7444	esac
7445      fi
7446      break
7447    fi
7448  done
7449  IFS="$lt_save_ifs"
7450  MAGIC_CMD="$lt_save_MAGIC_CMD"
7451  ;;
7452esac
7453fi
7454
7455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7456if test -n "$MAGIC_CMD"; then
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7458$as_echo "$MAGIC_CMD" >&6; }
7459else
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464
7465
7466
7467
7468if test -z "$lt_cv_path_MAGIC_CMD"; then
7469  if test -n "$ac_tool_prefix"; then
7470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7471$as_echo_n "checking for file... " >&6; }
7472if ${lt_cv_path_MAGIC_CMD+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  case $MAGIC_CMD in
7476[\\/*] |  ?:[\\/]*)
7477  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7478  ;;
7479*)
7480  lt_save_MAGIC_CMD="$MAGIC_CMD"
7481  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7482  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7483  for ac_dir in $ac_dummy; do
7484    IFS="$lt_save_ifs"
7485    test -z "$ac_dir" && ac_dir=.
7486    if test -f $ac_dir/file; then
7487      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7488      if test -n "$file_magic_test_file"; then
7489	case $deplibs_check_method in
7490	"file_magic "*)
7491	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7492	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7494	    $EGREP "$file_magic_regex" > /dev/null; then
7495	    :
7496	  else
7497	    cat <<_LT_EOF 1>&2
7498
7499*** Warning: the command libtool uses to detect shared libraries,
7500*** $file_magic_cmd, produces output that libtool cannot recognize.
7501*** The result is that libtool may fail to recognize shared libraries
7502*** as such.  This will affect the creation of libtool libraries that
7503*** depend on shared libraries, but programs linked with such libtool
7504*** libraries will work regardless of this problem.  Nevertheless, you
7505*** may want to report the problem to your system manager and/or to
7506*** bug-libtool@gnu.org
7507
7508_LT_EOF
7509	  fi ;;
7510	esac
7511      fi
7512      break
7513    fi
7514  done
7515  IFS="$lt_save_ifs"
7516  MAGIC_CMD="$lt_save_MAGIC_CMD"
7517  ;;
7518esac
7519fi
7520
7521MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522if test -n "$MAGIC_CMD"; then
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7524$as_echo "$MAGIC_CMD" >&6; }
7525else
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530
7531  else
7532    MAGIC_CMD=:
7533  fi
7534fi
7535
7536  fi
7537  ;;
7538esac
7539
7540# Use C for the default configuration in the libtool script
7541
7542lt_save_CC="$CC"
7543ac_ext=c
7544ac_cpp='$CPP $CPPFLAGS'
7545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
7549
7550# Source file extension for C test sources.
7551ac_ext=c
7552
7553# Object file extension for compiled C test sources.
7554objext=o
7555objext=$objext
7556
7557# Code to be used in simple compile tests
7558lt_simple_compile_test_code="int some_variable = 0;"
7559
7560# Code to be used in simple link tests
7561lt_simple_link_test_code='int main(){return(0);}'
7562
7563
7564
7565
7566
7567
7568
7569# If no C compiler was specified, use CC.
7570LTCC=${LTCC-"$CC"}
7571
7572# If no C compiler flags were specified, use CFLAGS.
7573LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7574
7575# Allow CC to be a program name with arguments.
7576compiler=$CC
7577
7578# Save the default compiler, since it gets overwritten when the other
7579# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7580compiler_DEFAULT=$CC
7581
7582# save warnings/boilerplate of simple test code
7583ac_outfile=conftest.$ac_objext
7584echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7585eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7586_lt_compiler_boilerplate=`cat conftest.err`
7587$RM conftest*
7588
7589ac_outfile=conftest.$ac_objext
7590echo "$lt_simple_link_test_code" >conftest.$ac_ext
7591eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7592_lt_linker_boilerplate=`cat conftest.err`
7593$RM -r conftest*
7594
7595
7596if test -n "$compiler"; then
7597
7598lt_prog_compiler_no_builtin_flag=
7599
7600if test "$GCC" = yes; then
7601  case $cc_basename in
7602  nvcc*)
7603    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7604  *)
7605    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7606  esac
7607
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7609$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7610if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  lt_cv_prog_compiler_rtti_exceptions=no
7614   ac_outfile=conftest.$ac_objext
7615   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7616   lt_compiler_flag="-fno-rtti -fno-exceptions"
7617   # Insert the option either (1) after the last *FLAGS variable, or
7618   # (2) before a word containing "conftest.", or (3) at the end.
7619   # Note that $ac_compile itself does not contain backslashes and begins
7620   # with a dollar sign (not a hyphen), so the echo should work correctly.
7621   # The option is referenced via a variable to avoid confusing sed.
7622   lt_compile=`echo "$ac_compile" | $SED \
7623   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7624   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7625   -e 's:$: $lt_compiler_flag:'`
7626   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7627   (eval "$lt_compile" 2>conftest.err)
7628   ac_status=$?
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   if (exit $ac_status) && test -s "$ac_outfile"; then
7632     # The compiler can only warn and ignore the option if not recognized
7633     # So say no if there are warnings other than the usual output.
7634     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7635     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7636     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7637       lt_cv_prog_compiler_rtti_exceptions=yes
7638     fi
7639   fi
7640   $RM conftest*
7641
7642fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7644$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7645
7646if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7647    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7648else
7649    :
7650fi
7651
7652fi
7653
7654
7655
7656
7657
7658
7659  lt_prog_compiler_wl=
7660lt_prog_compiler_pic=
7661lt_prog_compiler_static=
7662
7663
7664  if test "$GCC" = yes; then
7665    lt_prog_compiler_wl='-Wl,'
7666    lt_prog_compiler_static='-static'
7667
7668    case $host_os in
7669      aix*)
7670      # All AIX code is PIC.
7671      if test "$host_cpu" = ia64; then
7672	# AIX 5 now supports IA64 processor
7673	lt_prog_compiler_static='-Bstatic'
7674      fi
7675      ;;
7676
7677    amigaos*)
7678      case $host_cpu in
7679      powerpc)
7680            # see comment about AmigaOS4 .so support
7681            lt_prog_compiler_pic='-fPIC'
7682        ;;
7683      m68k)
7684            # FIXME: we need at least 68020 code to build shared libraries, but
7685            # adding the `-m68020' flag to GCC prevents building anything better,
7686            # like `-m68040'.
7687            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7688        ;;
7689      esac
7690      ;;
7691
7692    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7693      # PIC is the default for these OSes.
7694      ;;
7695
7696    mingw* | cygwin* | pw32* | os2* | cegcc*)
7697      # This hack is so that the source file can tell whether it is being
7698      # built for inclusion in a dll (and should export symbols for example).
7699      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7700      # (--disable-auto-import) libraries
7701      lt_prog_compiler_pic='-DDLL_EXPORT'
7702      ;;
7703
7704    darwin* | rhapsody*)
7705      # PIC is the default on this platform
7706      # Common symbols not allowed in MH_DYLIB files
7707      lt_prog_compiler_pic='-fno-common'
7708      ;;
7709
7710    haiku*)
7711      # PIC is the default for Haiku.
7712      # The "-static" flag exists, but is broken.
7713      lt_prog_compiler_static=
7714      ;;
7715
7716    hpux*)
7717      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7718      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7719      # sets the default TLS model and affects inlining.
7720      case $host_cpu in
7721      hppa*64*)
7722	# +Z the default
7723	;;
7724      *)
7725	lt_prog_compiler_pic='-fPIC'
7726	;;
7727      esac
7728      ;;
7729
7730    interix[3-9]*)
7731      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7732      # Instead, we relocate shared libraries at runtime.
7733      ;;
7734
7735    msdosdjgpp*)
7736      # Just because we use GCC doesn't mean we suddenly get shared libraries
7737      # on systems that don't support them.
7738      lt_prog_compiler_can_build_shared=no
7739      enable_shared=no
7740      ;;
7741
7742    *nto* | *qnx*)
7743      # QNX uses GNU C++, but need to define -shared option too, otherwise
7744      # it will coredump.
7745      lt_prog_compiler_pic='-fPIC -shared'
7746      ;;
7747
7748    sysv4*MP*)
7749      if test -d /usr/nec; then
7750	lt_prog_compiler_pic=-Kconform_pic
7751      fi
7752      ;;
7753
7754    *)
7755      lt_prog_compiler_pic='-fPIC'
7756      ;;
7757    esac
7758
7759    case $cc_basename in
7760    nvcc*) # Cuda Compiler Driver 2.2
7761      lt_prog_compiler_wl='-Xlinker '
7762      if test -n "$lt_prog_compiler_pic"; then
7763        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7764      fi
7765      ;;
7766    esac
7767  else
7768    # PORTME Check for flag to pass linker flags through the system compiler.
7769    case $host_os in
7770    aix*)
7771      lt_prog_compiler_wl='-Wl,'
7772      if test "$host_cpu" = ia64; then
7773	# AIX 5 now supports IA64 processor
7774	lt_prog_compiler_static='-Bstatic'
7775      else
7776	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7777      fi
7778      ;;
7779
7780    mingw* | cygwin* | pw32* | os2* | cegcc*)
7781      # This hack is so that the source file can tell whether it is being
7782      # built for inclusion in a dll (and should export symbols for example).
7783      lt_prog_compiler_pic='-DDLL_EXPORT'
7784      ;;
7785
7786    hpux9* | hpux10* | hpux11*)
7787      lt_prog_compiler_wl='-Wl,'
7788      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789      # not for PA HP-UX.
7790      case $host_cpu in
7791      hppa*64*|ia64*)
7792	# +Z the default
7793	;;
7794      *)
7795	lt_prog_compiler_pic='+Z'
7796	;;
7797      esac
7798      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7799      lt_prog_compiler_static='${wl}-a ${wl}archive'
7800      ;;
7801
7802    irix5* | irix6* | nonstopux*)
7803      lt_prog_compiler_wl='-Wl,'
7804      # PIC (with -KPIC) is the default.
7805      lt_prog_compiler_static='-non_shared'
7806      ;;
7807
7808    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7809      case $cc_basename in
7810      # old Intel for x86_64 which still supported -KPIC.
7811      ecc*)
7812	lt_prog_compiler_wl='-Wl,'
7813	lt_prog_compiler_pic='-KPIC'
7814	lt_prog_compiler_static='-static'
7815        ;;
7816      # icc used to be incompatible with GCC.
7817      # ICC 10 doesn't accept -KPIC any more.
7818      icc* | ifort*)
7819	lt_prog_compiler_wl='-Wl,'
7820	lt_prog_compiler_pic='-fPIC'
7821	lt_prog_compiler_static='-static'
7822        ;;
7823      # Lahey Fortran 8.1.
7824      lf95*)
7825	lt_prog_compiler_wl='-Wl,'
7826	lt_prog_compiler_pic='--shared'
7827	lt_prog_compiler_static='--static'
7828	;;
7829      nagfor*)
7830	# NAG Fortran compiler
7831	lt_prog_compiler_wl='-Wl,-Wl,,'
7832	lt_prog_compiler_pic='-PIC'
7833	lt_prog_compiler_static='-Bstatic'
7834	;;
7835      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7836        # Portland Group compilers (*not* the Pentium gcc compiler,
7837	# which looks to be a dead project)
7838	lt_prog_compiler_wl='-Wl,'
7839	lt_prog_compiler_pic='-fpic'
7840	lt_prog_compiler_static='-Bstatic'
7841        ;;
7842      ccc*)
7843        lt_prog_compiler_wl='-Wl,'
7844        # All Alpha code is PIC.
7845        lt_prog_compiler_static='-non_shared'
7846        ;;
7847      xl* | bgxl* | bgf* | mpixl*)
7848	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7849	lt_prog_compiler_wl='-Wl,'
7850	lt_prog_compiler_pic='-qpic'
7851	lt_prog_compiler_static='-qstaticlink'
7852	;;
7853      *)
7854	case `$CC -V 2>&1 | sed 5q` in
7855	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7856	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7857	  lt_prog_compiler_pic='-KPIC'
7858	  lt_prog_compiler_static='-Bstatic'
7859	  lt_prog_compiler_wl=''
7860	  ;;
7861	*Sun\ F* | *Sun*Fortran*)
7862	  lt_prog_compiler_pic='-KPIC'
7863	  lt_prog_compiler_static='-Bstatic'
7864	  lt_prog_compiler_wl='-Qoption ld '
7865	  ;;
7866	*Sun\ C*)
7867	  # Sun C 5.9
7868	  lt_prog_compiler_pic='-KPIC'
7869	  lt_prog_compiler_static='-Bstatic'
7870	  lt_prog_compiler_wl='-Wl,'
7871	  ;;
7872        *Intel*\ [CF]*Compiler*)
7873	  lt_prog_compiler_wl='-Wl,'
7874	  lt_prog_compiler_pic='-fPIC'
7875	  lt_prog_compiler_static='-static'
7876	  ;;
7877	*Portland\ Group*)
7878	  lt_prog_compiler_wl='-Wl,'
7879	  lt_prog_compiler_pic='-fpic'
7880	  lt_prog_compiler_static='-Bstatic'
7881	  ;;
7882	esac
7883	;;
7884      esac
7885      ;;
7886
7887    newsos6)
7888      lt_prog_compiler_pic='-KPIC'
7889      lt_prog_compiler_static='-Bstatic'
7890      ;;
7891
7892    *nto* | *qnx*)
7893      # QNX uses GNU C++, but need to define -shared option too, otherwise
7894      # it will coredump.
7895      lt_prog_compiler_pic='-fPIC -shared'
7896      ;;
7897
7898    osf3* | osf4* | osf5*)
7899      lt_prog_compiler_wl='-Wl,'
7900      # All OSF/1 code is PIC.
7901      lt_prog_compiler_static='-non_shared'
7902      ;;
7903
7904    rdos*)
7905      lt_prog_compiler_static='-non_shared'
7906      ;;
7907
7908    solaris*)
7909      lt_prog_compiler_pic='-KPIC'
7910      lt_prog_compiler_static='-Bstatic'
7911      case $cc_basename in
7912      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7913	lt_prog_compiler_wl='-Qoption ld ';;
7914      *)
7915	lt_prog_compiler_wl='-Wl,';;
7916      esac
7917      ;;
7918
7919    sunos4*)
7920      lt_prog_compiler_wl='-Qoption ld '
7921      lt_prog_compiler_pic='-PIC'
7922      lt_prog_compiler_static='-Bstatic'
7923      ;;
7924
7925    sysv4 | sysv4.2uw2* | sysv4.3*)
7926      lt_prog_compiler_wl='-Wl,'
7927      lt_prog_compiler_pic='-KPIC'
7928      lt_prog_compiler_static='-Bstatic'
7929      ;;
7930
7931    sysv4*MP*)
7932      if test -d /usr/nec ;then
7933	lt_prog_compiler_pic='-Kconform_pic'
7934	lt_prog_compiler_static='-Bstatic'
7935      fi
7936      ;;
7937
7938    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7939      lt_prog_compiler_wl='-Wl,'
7940      lt_prog_compiler_pic='-KPIC'
7941      lt_prog_compiler_static='-Bstatic'
7942      ;;
7943
7944    unicos*)
7945      lt_prog_compiler_wl='-Wl,'
7946      lt_prog_compiler_can_build_shared=no
7947      ;;
7948
7949    uts4*)
7950      lt_prog_compiler_pic='-pic'
7951      lt_prog_compiler_static='-Bstatic'
7952      ;;
7953
7954    *)
7955      lt_prog_compiler_can_build_shared=no
7956      ;;
7957    esac
7958  fi
7959
7960case $host_os in
7961  # For platforms which do not support PIC, -DPIC is meaningless:
7962  *djgpp*)
7963    lt_prog_compiler_pic=
7964    ;;
7965  *)
7966    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7967    ;;
7968esac
7969
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7971$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7972if ${lt_cv_prog_compiler_pic+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7978$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7979lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7980
7981#
7982# Check to make sure the PIC flag actually works.
7983#
7984if test -n "$lt_prog_compiler_pic"; then
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7986$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7987if ${lt_cv_prog_compiler_pic_works+:} false; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  lt_cv_prog_compiler_pic_works=no
7991   ac_outfile=conftest.$ac_objext
7992   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7994   # Insert the option either (1) after the last *FLAGS variable, or
7995   # (2) before a word containing "conftest.", or (3) at the end.
7996   # Note that $ac_compile itself does not contain backslashes and begins
7997   # with a dollar sign (not a hyphen), so the echo should work correctly.
7998   # The option is referenced via a variable to avoid confusing sed.
7999   lt_compile=`echo "$ac_compile" | $SED \
8000   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8002   -e 's:$: $lt_compiler_flag:'`
8003   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8004   (eval "$lt_compile" 2>conftest.err)
8005   ac_status=$?
8006   cat conftest.err >&5
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   if (exit $ac_status) && test -s "$ac_outfile"; then
8009     # The compiler can only warn and ignore the option if not recognized
8010     # So say no if there are warnings other than the usual output.
8011     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8012     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8013     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8014       lt_cv_prog_compiler_pic_works=yes
8015     fi
8016   fi
8017   $RM conftest*
8018
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8021$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8022
8023if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8024    case $lt_prog_compiler_pic in
8025     "" | " "*) ;;
8026     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8027     esac
8028else
8029    lt_prog_compiler_pic=
8030     lt_prog_compiler_can_build_shared=no
8031fi
8032
8033fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045#
8046# Check to make sure the static flag actually works.
8047#
8048wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8050$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8051if ${lt_cv_prog_compiler_static_works+:} false; then :
8052  $as_echo_n "(cached) " >&6
8053else
8054  lt_cv_prog_compiler_static_works=no
8055   save_LDFLAGS="$LDFLAGS"
8056   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8057   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8058   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8059     # The linker can only warn and ignore the option if not recognized
8060     # So say no if there are warnings
8061     if test -s conftest.err; then
8062       # Append any errors to the config.log.
8063       cat conftest.err 1>&5
8064       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8065       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8066       if diff conftest.exp conftest.er2 >/dev/null; then
8067         lt_cv_prog_compiler_static_works=yes
8068       fi
8069     else
8070       lt_cv_prog_compiler_static_works=yes
8071     fi
8072   fi
8073   $RM -r conftest*
8074   LDFLAGS="$save_LDFLAGS"
8075
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8078$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8079
8080if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8081    :
8082else
8083    lt_prog_compiler_static=
8084fi
8085
8086
8087
8088
8089
8090
8091
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8094if ${lt_cv_prog_compiler_c_o+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  lt_cv_prog_compiler_c_o=no
8098   $RM -r conftest 2>/dev/null
8099   mkdir conftest
8100   cd conftest
8101   mkdir out
8102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103
8104   lt_compiler_flag="-o out/conftest2.$ac_objext"
8105   # Insert the option either (1) after the last *FLAGS variable, or
8106   # (2) before a word containing "conftest.", or (3) at the end.
8107   # Note that $ac_compile itself does not contain backslashes and begins
8108   # with a dollar sign (not a hyphen), so the echo should work correctly.
8109   lt_compile=`echo "$ac_compile" | $SED \
8110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112   -e 's:$: $lt_compiler_flag:'`
8113   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8114   (eval "$lt_compile" 2>out/conftest.err)
8115   ac_status=$?
8116   cat out/conftest.err >&5
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8119   then
8120     # The compiler can only warn and ignore the option if not recognized
8121     # So say no if there are warnings
8122     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8123     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8124     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8125       lt_cv_prog_compiler_c_o=yes
8126     fi
8127   fi
8128   chmod u+w . 2>&5
8129   $RM conftest*
8130   # SGI C++ compiler will create directory out/ii_files/ for
8131   # template instantiation
8132   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8133   $RM out/* && rmdir out
8134   cd ..
8135   $RM -r conftest
8136   $RM conftest*
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8140$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8141
8142
8143
8144
8145
8146
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8149if ${lt_cv_prog_compiler_c_o+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  lt_cv_prog_compiler_c_o=no
8153   $RM -r conftest 2>/dev/null
8154   mkdir conftest
8155   cd conftest
8156   mkdir out
8157   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8158
8159   lt_compiler_flag="-o out/conftest2.$ac_objext"
8160   # Insert the option either (1) after the last *FLAGS variable, or
8161   # (2) before a word containing "conftest.", or (3) at the end.
8162   # Note that $ac_compile itself does not contain backslashes and begins
8163   # with a dollar sign (not a hyphen), so the echo should work correctly.
8164   lt_compile=`echo "$ac_compile" | $SED \
8165   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167   -e 's:$: $lt_compiler_flag:'`
8168   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8169   (eval "$lt_compile" 2>out/conftest.err)
8170   ac_status=$?
8171   cat out/conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8174   then
8175     # The compiler can only warn and ignore the option if not recognized
8176     # So say no if there are warnings
8177     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8178     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8179     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8180       lt_cv_prog_compiler_c_o=yes
8181     fi
8182   fi
8183   chmod u+w . 2>&5
8184   $RM conftest*
8185   # SGI C++ compiler will create directory out/ii_files/ for
8186   # template instantiation
8187   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8188   $RM out/* && rmdir out
8189   cd ..
8190   $RM -r conftest
8191   $RM conftest*
8192
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8195$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8196
8197
8198
8199
8200hard_links="nottested"
8201if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8202  # do not overwrite the value of need_locks provided by the user
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8204$as_echo_n "checking if we can lock with hard links... " >&6; }
8205  hard_links=yes
8206  $RM conftest*
8207  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8208  touch conftest.a
8209  ln conftest.a conftest.b 2>&5 || hard_links=no
8210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8212$as_echo "$hard_links" >&6; }
8213  if test "$hard_links" = no; then
8214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8215$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8216    need_locks=warn
8217  fi
8218else
8219  need_locks=no
8220fi
8221
8222
8223
8224
8225
8226
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8228$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8229
8230  runpath_var=
8231  allow_undefined_flag=
8232  always_export_symbols=no
8233  archive_cmds=
8234  archive_expsym_cmds=
8235  compiler_needs_object=no
8236  enable_shared_with_static_runtimes=no
8237  export_dynamic_flag_spec=
8238  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8239  hardcode_automatic=no
8240  hardcode_direct=no
8241  hardcode_direct_absolute=no
8242  hardcode_libdir_flag_spec=
8243  hardcode_libdir_separator=
8244  hardcode_minus_L=no
8245  hardcode_shlibpath_var=unsupported
8246  inherit_rpath=no
8247  link_all_deplibs=unknown
8248  module_cmds=
8249  module_expsym_cmds=
8250  old_archive_from_new_cmds=
8251  old_archive_from_expsyms_cmds=
8252  thread_safe_flag_spec=
8253  whole_archive_flag_spec=
8254  # include_expsyms should be a list of space-separated symbols to be *always*
8255  # included in the symbol list
8256  include_expsyms=
8257  # exclude_expsyms can be an extended regexp of symbols to exclude
8258  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8259  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8260  # as well as any symbol that contains `d'.
8261  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8263  # platforms (ab)use it in PIC code, but their linkers get confused if
8264  # the symbol is explicitly referenced.  Since portable code cannot
8265  # rely on this symbol name, it's probably fine to never include it in
8266  # preloaded symbol tables.
8267  # Exclude shared library initialization/finalization symbols.
8268  extract_expsyms_cmds=
8269
8270  case $host_os in
8271  cygwin* | mingw* | pw32* | cegcc*)
8272    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8273    # When not using gcc, we currently assume that we are using
8274    # Microsoft Visual C++.
8275    if test "$GCC" != yes; then
8276      with_gnu_ld=no
8277    fi
8278    ;;
8279  interix*)
8280    # we just hope/assume this is gcc and not c89 (= MSVC++)
8281    with_gnu_ld=yes
8282    ;;
8283  openbsd*)
8284    with_gnu_ld=no
8285    ;;
8286  esac
8287
8288  ld_shlibs=yes
8289
8290  # On some targets, GNU ld is compatible enough with the native linker
8291  # that we're better off using the native interface for both.
8292  lt_use_gnu_ld_interface=no
8293  if test "$with_gnu_ld" = yes; then
8294    case $host_os in
8295      aix*)
8296	# The AIX port of GNU ld has always aspired to compatibility
8297	# with the native linker.  However, as the warning in the GNU ld
8298	# block says, versions before 2.19.5* couldn't really create working
8299	# shared libraries, regardless of the interface used.
8300	case `$LD -v 2>&1` in
8301	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8302	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8303	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8304	  *)
8305	    lt_use_gnu_ld_interface=yes
8306	    ;;
8307	esac
8308	;;
8309      *)
8310	lt_use_gnu_ld_interface=yes
8311	;;
8312    esac
8313  fi
8314
8315  if test "$lt_use_gnu_ld_interface" = yes; then
8316    # If archive_cmds runs LD, not CC, wlarc should be empty
8317    wlarc='${wl}'
8318
8319    # Set some defaults for GNU ld with shared library support. These
8320    # are reset later if shared libraries are not supported. Putting them
8321    # here allows them to be overridden if necessary.
8322    runpath_var=LD_RUN_PATH
8323    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324    export_dynamic_flag_spec='${wl}--export-dynamic'
8325    # ancient GNU ld didn't support --whole-archive et. al.
8326    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8327      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8328    else
8329      whole_archive_flag_spec=
8330    fi
8331    supports_anon_versioning=no
8332    case `$LD -v 2>&1` in
8333      *GNU\ gold*) supports_anon_versioning=yes ;;
8334      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8335      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8336      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8337      *\ 2.11.*) ;; # other 2.11 versions
8338      *) supports_anon_versioning=yes ;;
8339    esac
8340
8341    # See if GNU ld supports shared libraries.
8342    case $host_os in
8343    aix[3-9]*)
8344      # On AIX/PPC, the GNU linker is very broken
8345      if test "$host_cpu" != ia64; then
8346	ld_shlibs=no
8347	cat <<_LT_EOF 1>&2
8348
8349*** Warning: the GNU linker, at least up to release 2.19, is reported
8350*** to be unable to reliably create shared libraries on AIX.
8351*** Therefore, libtool is disabling shared libraries support.  If you
8352*** really care for shared libraries, you may want to install binutils
8353*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8354*** You will then need to restart the configuration process.
8355
8356_LT_EOF
8357      fi
8358      ;;
8359
8360    amigaos*)
8361      case $host_cpu in
8362      powerpc)
8363            # see comment about AmigaOS4 .so support
8364            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365            archive_expsym_cmds=''
8366        ;;
8367      m68k)
8368            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)'
8369            hardcode_libdir_flag_spec='-L$libdir'
8370            hardcode_minus_L=yes
8371        ;;
8372      esac
8373      ;;
8374
8375    beos*)
8376      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377	allow_undefined_flag=unsupported
8378	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8379	# support --undefined.  This deserves some investigation.  FIXME
8380	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381      else
8382	ld_shlibs=no
8383      fi
8384      ;;
8385
8386    cygwin* | mingw* | pw32* | cegcc*)
8387      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8388      # as there is no search path for DLLs.
8389      hardcode_libdir_flag_spec='-L$libdir'
8390      export_dynamic_flag_spec='${wl}--export-all-symbols'
8391      allow_undefined_flag=unsupported
8392      always_export_symbols=no
8393      enable_shared_with_static_runtimes=yes
8394      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'
8395      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8396
8397      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8398        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399	# If the export-symbols file already is a .def file (1st line
8400	# is EXPORTS), use it as is; otherwise, prepend...
8401	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8402	  cp $export_symbols $output_objdir/$soname.def;
8403	else
8404	  echo EXPORTS > $output_objdir/$soname.def;
8405	  cat $export_symbols >> $output_objdir/$soname.def;
8406	fi~
8407	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8408      else
8409	ld_shlibs=no
8410      fi
8411      ;;
8412
8413    haiku*)
8414      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415      link_all_deplibs=yes
8416      ;;
8417
8418    interix[3-9]*)
8419      hardcode_direct=no
8420      hardcode_shlibpath_var=no
8421      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422      export_dynamic_flag_spec='${wl}-E'
8423      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8424      # Instead, shared libraries are loaded at an image base (0x10000000 by
8425      # default) and relocated if they conflict, which is a slow very memory
8426      # consuming and fragmenting process.  To avoid this, we pick a random,
8427      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8428      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8429      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8430      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'
8431      ;;
8432
8433    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8434      tmp_diet=no
8435      if test "$host_os" = linux-dietlibc; then
8436	case $cc_basename in
8437	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8438	esac
8439      fi
8440      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8441	 && test "$tmp_diet" = no
8442      then
8443	tmp_addflag=' $pic_flag'
8444	tmp_sharedflag='-shared'
8445	case $cc_basename,$host_cpu in
8446        pgcc*)				# Portland Group C compiler
8447	  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'
8448	  tmp_addflag=' $pic_flag'
8449	  ;;
8450	pgf77* | pgf90* | pgf95* | pgfortran*)
8451					# Portland Group f77 and f90 compilers
8452	  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'
8453	  tmp_addflag=' $pic_flag -Mnomain' ;;
8454	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8455	  tmp_addflag=' -i_dynamic' ;;
8456	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8457	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8458	ifc* | ifort*)			# Intel Fortran compiler
8459	  tmp_addflag=' -nofor_main' ;;
8460	lf95*)				# Lahey Fortran 8.1
8461	  whole_archive_flag_spec=
8462	  tmp_sharedflag='--shared' ;;
8463	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8464	  tmp_sharedflag='-qmkshrobj'
8465	  tmp_addflag= ;;
8466	nvcc*)	# Cuda Compiler Driver 2.2
8467	  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'
8468	  compiler_needs_object=yes
8469	  ;;
8470	esac
8471	case `$CC -V 2>&1 | sed 5q` in
8472	*Sun\ C*)			# Sun C 5.9
8473	  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'
8474	  compiler_needs_object=yes
8475	  tmp_sharedflag='-G' ;;
8476	*Sun\ F*)			# Sun Fortran 8.3
8477	  tmp_sharedflag='-G' ;;
8478	esac
8479	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480
8481        if test "x$supports_anon_versioning" = xyes; then
8482          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484	    echo "local: *; };" >> $output_objdir/$libname.ver~
8485	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8486        fi
8487
8488	case $cc_basename in
8489	xlf* | bgf* | bgxlf* | mpixlf*)
8490	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8491	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8492	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8493	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8494	  if test "x$supports_anon_versioning" = xyes; then
8495	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497	      echo "local: *; };" >> $output_objdir/$libname.ver~
8498	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8499	  fi
8500	  ;;
8501	esac
8502      else
8503        ld_shlibs=no
8504      fi
8505      ;;
8506
8507    netbsd*)
8508      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8510	wlarc=
8511      else
8512	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8514      fi
8515      ;;
8516
8517    solaris*)
8518      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8519	ld_shlibs=no
8520	cat <<_LT_EOF 1>&2
8521
8522*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523*** create shared libraries on Solaris systems.  Therefore, libtool
8524*** is disabling shared libraries support.  We urge you to upgrade GNU
8525*** binutils to release 2.9.1 or newer.  Another option is to modify
8526*** your PATH or compiler configuration so that the native linker is
8527*** used, and then restart.
8528
8529_LT_EOF
8530      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533      else
8534	ld_shlibs=no
8535      fi
8536      ;;
8537
8538    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539      case `$LD -v 2>&1` in
8540        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8541	ld_shlibs=no
8542	cat <<_LT_EOF 1>&2
8543
8544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545*** reliably create shared libraries on SCO systems.  Therefore, libtool
8546*** is disabling shared libraries support.  We urge you to upgrade GNU
8547*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8548*** your PATH or compiler configuration so that the native linker is
8549*** used, and then restart.
8550
8551_LT_EOF
8552	;;
8553	*)
8554	  # For security reasons, it is highly recommended that you always
8555	  # use absolute paths for naming shared libraries, and exclude the
8556	  # DT_RUNPATH tag from executables and libraries.  But doing so
8557	  # requires that you compile everything twice, which is a pain.
8558	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8562	  else
8563	    ld_shlibs=no
8564	  fi
8565	;;
8566      esac
8567      ;;
8568
8569    sunos4*)
8570      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571      wlarc=
8572      hardcode_direct=yes
8573      hardcode_shlibpath_var=no
8574      ;;
8575
8576    *)
8577      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8580      else
8581	ld_shlibs=no
8582      fi
8583      ;;
8584    esac
8585
8586    if test "$ld_shlibs" = no; then
8587      runpath_var=
8588      hardcode_libdir_flag_spec=
8589      export_dynamic_flag_spec=
8590      whole_archive_flag_spec=
8591    fi
8592  else
8593    # PORTME fill in a description of your system's linker (not GNU ld)
8594    case $host_os in
8595    aix3*)
8596      allow_undefined_flag=unsupported
8597      always_export_symbols=yes
8598      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'
8599      # Note: this linker hardcodes the directories in LIBPATH if there
8600      # are no directories specified by -L.
8601      hardcode_minus_L=yes
8602      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603	# Neither direct hardcoding nor static linking is supported with a
8604	# broken collect2.
8605	hardcode_direct=unsupported
8606      fi
8607      ;;
8608
8609    aix[4-9]*)
8610      if test "$host_cpu" = ia64; then
8611	# On IA64, the linker does run time linking by default, so we don't
8612	# have to do anything special.
8613	aix_use_runtimelinking=no
8614	exp_sym_flag='-Bexport'
8615	no_entry_flag=""
8616      else
8617	# If we're using GNU nm, then we don't want the "-C" option.
8618	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8619	# Also, AIX nm treats weak defined symbols like other global
8620	# defined symbols, whereas GNU nm marks them as "W".
8621	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8622	  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'
8623	else
8624	  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'
8625	fi
8626	aix_use_runtimelinking=no
8627
8628	# Test if we are trying to use run time linking or normal
8629	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8630	# need to do runtime linking.
8631	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8632	  for ld_flag in $LDFLAGS; do
8633	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8634	    aix_use_runtimelinking=yes
8635	    break
8636	  fi
8637	  done
8638	  ;;
8639	esac
8640
8641	exp_sym_flag='-bexport'
8642	no_entry_flag='-bnoentry'
8643      fi
8644
8645      # When large executables or shared objects are built, AIX ld can
8646      # have problems creating the table of contents.  If linking a library
8647      # or program results in "error TOC overflow" add -mminimal-toc to
8648      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8649      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8650
8651      archive_cmds=''
8652      hardcode_direct=yes
8653      hardcode_direct_absolute=yes
8654      hardcode_libdir_separator=':'
8655      link_all_deplibs=yes
8656      file_list_spec='${wl}-f,'
8657
8658      if test "$GCC" = yes; then
8659	case $host_os in aix4.[012]|aix4.[012].*)
8660	# We only want to do this on AIX 4.2 and lower, the check
8661	# below for broken collect2 doesn't work under 4.3+
8662	  collect2name=`${CC} -print-prog-name=collect2`
8663	  if test -f "$collect2name" &&
8664	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8665	  then
8666	  # We have reworked collect2
8667	  :
8668	  else
8669	  # We have old collect2
8670	  hardcode_direct=unsupported
8671	  # It fails to find uninstalled libraries when the uninstalled
8672	  # path is not listed in the libpath.  Setting hardcode_minus_L
8673	  # to unsupported forces relinking
8674	  hardcode_minus_L=yes
8675	  hardcode_libdir_flag_spec='-L$libdir'
8676	  hardcode_libdir_separator=
8677	  fi
8678	  ;;
8679	esac
8680	shared_flag='-shared'
8681	if test "$aix_use_runtimelinking" = yes; then
8682	  shared_flag="$shared_flag "'${wl}-G'
8683	fi
8684      else
8685	# not using gcc
8686	if test "$host_cpu" = ia64; then
8687	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8688	# chokes on -Wl,-G. The following line is correct:
8689	  shared_flag='-G'
8690	else
8691	  if test "$aix_use_runtimelinking" = yes; then
8692	    shared_flag='${wl}-G'
8693	  else
8694	    shared_flag='${wl}-bM:SRE'
8695	  fi
8696	fi
8697      fi
8698
8699      export_dynamic_flag_spec='${wl}-bexpall'
8700      # It seems that -bexpall does not export symbols beginning with
8701      # underscore (_), so it is better to generate a list of symbols to export.
8702      always_export_symbols=yes
8703      if test "$aix_use_runtimelinking" = yes; then
8704	# Warning - without using the other runtime loading flags (-brtl),
8705	# -berok will link without error, but may produce a broken library.
8706	allow_undefined_flag='-berok'
8707        # Determine the default libpath from the value encoded in an
8708        # empty executable.
8709        if test "${lt_cv_aix_libpath+set}" = set; then
8710  aix_libpath=$lt_cv_aix_libpath
8711else
8712  if ${lt_cv_aix_libpath_+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717
8718int
8719main ()
8720{
8721
8722  ;
8723  return 0;
8724}
8725_ACEOF
8726if ac_fn_c_try_link "$LINENO"; then :
8727
8728  lt_aix_libpath_sed='
8729      /Import File Strings/,/^$/ {
8730	  /^0/ {
8731	      s/^0  *\([^ ]*\) *$/\1/
8732	      p
8733	  }
8734      }'
8735  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8736  # Check for a 64-bit object if we didn't find anything.
8737  if test -z "$lt_cv_aix_libpath_"; then
8738    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8739  fi
8740fi
8741rm -f core conftest.err conftest.$ac_objext \
8742    conftest$ac_exeext conftest.$ac_ext
8743  if test -z "$lt_cv_aix_libpath_"; then
8744    lt_cv_aix_libpath_="/usr/lib:/lib"
8745  fi
8746
8747fi
8748
8749  aix_libpath=$lt_cv_aix_libpath_
8750fi
8751
8752        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8753        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"
8754      else
8755	if test "$host_cpu" = ia64; then
8756	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8757	  allow_undefined_flag="-z nodefs"
8758	  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"
8759	else
8760	 # Determine the default libpath from the value encoded in an
8761	 # empty executable.
8762	 if test "${lt_cv_aix_libpath+set}" = set; then
8763  aix_libpath=$lt_cv_aix_libpath
8764else
8765  if ${lt_cv_aix_libpath_+:} false; then :
8766  $as_echo_n "(cached) " >&6
8767else
8768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770
8771int
8772main ()
8773{
8774
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780
8781  lt_aix_libpath_sed='
8782      /Import File Strings/,/^$/ {
8783	  /^0/ {
8784	      s/^0  *\([^ ]*\) *$/\1/
8785	      p
8786	  }
8787      }'
8788  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8789  # Check for a 64-bit object if we didn't find anything.
8790  if test -z "$lt_cv_aix_libpath_"; then
8791    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8792  fi
8793fi
8794rm -f core conftest.err conftest.$ac_objext \
8795    conftest$ac_exeext conftest.$ac_ext
8796  if test -z "$lt_cv_aix_libpath_"; then
8797    lt_cv_aix_libpath_="/usr/lib:/lib"
8798  fi
8799
8800fi
8801
8802  aix_libpath=$lt_cv_aix_libpath_
8803fi
8804
8805	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8806	  # Warning - without using the other run time loading flags,
8807	  # -berok will link without error, but may produce a broken library.
8808	  no_undefined_flag=' ${wl}-bernotok'
8809	  allow_undefined_flag=' ${wl}-berok'
8810	  if test "$with_gnu_ld" = yes; then
8811	    # We only use this code for GNU lds that support --whole-archive.
8812	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8813	  else
8814	    # Exported symbols can be pulled into shared objects from archives
8815	    whole_archive_flag_spec='$convenience'
8816	  fi
8817	  archive_cmds_need_lc=yes
8818	  # This is similar to how AIX traditionally builds its shared libraries.
8819	  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'
8820	fi
8821      fi
8822      ;;
8823
8824    amigaos*)
8825      case $host_cpu in
8826      powerpc)
8827            # see comment about AmigaOS4 .so support
8828            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829            archive_expsym_cmds=''
8830        ;;
8831      m68k)
8832            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)'
8833            hardcode_libdir_flag_spec='-L$libdir'
8834            hardcode_minus_L=yes
8835        ;;
8836      esac
8837      ;;
8838
8839    bsdi[45]*)
8840      export_dynamic_flag_spec=-rdynamic
8841      ;;
8842
8843    cygwin* | mingw* | pw32* | cegcc*)
8844      # When not using gcc, we currently assume that we are using
8845      # Microsoft Visual C++.
8846      # hardcode_libdir_flag_spec is actually meaningless, as there is
8847      # no search path for DLLs.
8848      case $cc_basename in
8849      cl*)
8850	# Native MSVC
8851	hardcode_libdir_flag_spec=' '
8852	allow_undefined_flag=unsupported
8853	always_export_symbols=yes
8854	file_list_spec='@'
8855	# Tell ltmain to make .lib files, not .a files.
8856	libext=lib
8857	# Tell ltmain to make .dll files, not .so files.
8858	shrext_cmds=".dll"
8859	# FIXME: Setting linknames here is a bad hack.
8860	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8861	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8862	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8863	  else
8864	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8865	  fi~
8866	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8867	  linknames='
8868	# The linker will not automatically build a static lib if we build a DLL.
8869	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8870	enable_shared_with_static_runtimes=yes
8871	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8872	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873	# Don't use ranlib
8874	old_postinstall_cmds='chmod 644 $oldlib'
8875	postlink_cmds='lt_outputfile="@OUTPUT@"~
8876	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8877	  case $lt_outputfile in
8878	    *.exe|*.EXE) ;;
8879	    *)
8880	      lt_outputfile="$lt_outputfile.exe"
8881	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8882	      ;;
8883	  esac~
8884	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8885	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8886	    $RM "$lt_outputfile.manifest";
8887	  fi'
8888	;;
8889      *)
8890	# Assume MSVC wrapper
8891	hardcode_libdir_flag_spec=' '
8892	allow_undefined_flag=unsupported
8893	# Tell ltmain to make .lib files, not .a files.
8894	libext=lib
8895	# Tell ltmain to make .dll files, not .so files.
8896	shrext_cmds=".dll"
8897	# FIXME: Setting linknames here is a bad hack.
8898	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8899	# The linker will automatically build a .lib file if we build a DLL.
8900	old_archive_from_new_cmds='true'
8901	# FIXME: Should let the user specify the lib program.
8902	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8903	enable_shared_with_static_runtimes=yes
8904	;;
8905      esac
8906      ;;
8907
8908    darwin* | rhapsody*)
8909
8910
8911  archive_cmds_need_lc=no
8912  hardcode_direct=no
8913  hardcode_automatic=yes
8914  hardcode_shlibpath_var=unsupported
8915  if test "$lt_cv_ld_force_load" = "yes"; then
8916    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\"`'
8917
8918  else
8919    whole_archive_flag_spec=''
8920  fi
8921  link_all_deplibs=yes
8922  allow_undefined_flag="$_lt_dar_allow_undefined"
8923  case $cc_basename in
8924     ifort*) _lt_dar_can_shared=yes ;;
8925     *) _lt_dar_can_shared=$GCC ;;
8926  esac
8927  if test "$_lt_dar_can_shared" = "yes"; then
8928    output_verbose_link_cmd=func_echo_all
8929    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8930    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8931    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}"
8932    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}"
8933
8934  else
8935  ld_shlibs=no
8936  fi
8937
8938      ;;
8939
8940    dgux*)
8941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942      hardcode_libdir_flag_spec='-L$libdir'
8943      hardcode_shlibpath_var=no
8944      ;;
8945
8946    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8947    # support.  Future versions do this automatically, but an explicit c++rt0.o
8948    # does not break anything, and helps significantly (at the cost of a little
8949    # extra space).
8950    freebsd2.2*)
8951      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8952      hardcode_libdir_flag_spec='-R$libdir'
8953      hardcode_direct=yes
8954      hardcode_shlibpath_var=no
8955      ;;
8956
8957    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8958    freebsd2.*)
8959      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960      hardcode_direct=yes
8961      hardcode_minus_L=yes
8962      hardcode_shlibpath_var=no
8963      ;;
8964
8965    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8966    freebsd* | dragonfly*)
8967      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8968      hardcode_libdir_flag_spec='-R$libdir'
8969      hardcode_direct=yes
8970      hardcode_shlibpath_var=no
8971      ;;
8972
8973    hpux9*)
8974      if test "$GCC" = yes; then
8975	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'
8976      else
8977	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'
8978      fi
8979      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8980      hardcode_libdir_separator=:
8981      hardcode_direct=yes
8982
8983      # hardcode_minus_L: Not really in the search PATH,
8984      # but as the default location of the library.
8985      hardcode_minus_L=yes
8986      export_dynamic_flag_spec='${wl}-E'
8987      ;;
8988
8989    hpux10*)
8990      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8991	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992      else
8993	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8994      fi
8995      if test "$with_gnu_ld" = no; then
8996	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8997	hardcode_libdir_separator=:
8998	hardcode_direct=yes
8999	hardcode_direct_absolute=yes
9000	export_dynamic_flag_spec='${wl}-E'
9001	# hardcode_minus_L: Not really in the search PATH,
9002	# but as the default location of the library.
9003	hardcode_minus_L=yes
9004      fi
9005      ;;
9006
9007    hpux11*)
9008      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9009	case $host_cpu in
9010	hppa*64*)
9011	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	  ;;
9013	ia64*)
9014	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015	  ;;
9016	*)
9017	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018	  ;;
9019	esac
9020      else
9021	case $host_cpu in
9022	hppa*64*)
9023	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024	  ;;
9025	ia64*)
9026	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9027	  ;;
9028	*)
9029
9030	  # Older versions of the 11.00 compiler do not understand -b yet
9031	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9032	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9033$as_echo_n "checking if $CC understands -b... " >&6; }
9034if ${lt_cv_prog_compiler__b+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  lt_cv_prog_compiler__b=no
9038   save_LDFLAGS="$LDFLAGS"
9039   LDFLAGS="$LDFLAGS -b"
9040   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9041   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9042     # The linker can only warn and ignore the option if not recognized
9043     # So say no if there are warnings
9044     if test -s conftest.err; then
9045       # Append any errors to the config.log.
9046       cat conftest.err 1>&5
9047       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9048       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9049       if diff conftest.exp conftest.er2 >/dev/null; then
9050         lt_cv_prog_compiler__b=yes
9051       fi
9052     else
9053       lt_cv_prog_compiler__b=yes
9054     fi
9055   fi
9056   $RM -r conftest*
9057   LDFLAGS="$save_LDFLAGS"
9058
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9061$as_echo "$lt_cv_prog_compiler__b" >&6; }
9062
9063if test x"$lt_cv_prog_compiler__b" = xyes; then
9064    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9065else
9066    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9067fi
9068
9069	  ;;
9070	esac
9071      fi
9072      if test "$with_gnu_ld" = no; then
9073	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9074	hardcode_libdir_separator=:
9075
9076	case $host_cpu in
9077	hppa*64*|ia64*)
9078	  hardcode_direct=no
9079	  hardcode_shlibpath_var=no
9080	  ;;
9081	*)
9082	  hardcode_direct=yes
9083	  hardcode_direct_absolute=yes
9084	  export_dynamic_flag_spec='${wl}-E'
9085
9086	  # hardcode_minus_L: Not really in the search PATH,
9087	  # but as the default location of the library.
9088	  hardcode_minus_L=yes
9089	  ;;
9090	esac
9091      fi
9092      ;;
9093
9094    irix5* | irix6* | nonstopux*)
9095      if test "$GCC" = yes; then
9096	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'
9097	# Try to use the -exported_symbol ld option, if it does not
9098	# work, assume that -exports_file does not work either and
9099	# implicitly export all symbols.
9100	# This should be the same for all languages, so no per-tag cache variable.
9101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9102$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9103if ${lt_cv_irix_exported_symbol+:} false; then :
9104  $as_echo_n "(cached) " >&6
9105else
9106  save_LDFLAGS="$LDFLAGS"
9107	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9108	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110int foo (void) { return 0; }
9111_ACEOF
9112if ac_fn_c_try_link "$LINENO"; then :
9113  lt_cv_irix_exported_symbol=yes
9114else
9115  lt_cv_irix_exported_symbol=no
9116fi
9117rm -f core conftest.err conftest.$ac_objext \
9118    conftest$ac_exeext conftest.$ac_ext
9119           LDFLAGS="$save_LDFLAGS"
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9122$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9123	if test "$lt_cv_irix_exported_symbol" = yes; then
9124          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'
9125	fi
9126      else
9127	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'
9128	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'
9129      fi
9130      archive_cmds_need_lc='no'
9131      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132      hardcode_libdir_separator=:
9133      inherit_rpath=yes
9134      link_all_deplibs=yes
9135      ;;
9136
9137    netbsd*)
9138      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9139	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9140      else
9141	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9142      fi
9143      hardcode_libdir_flag_spec='-R$libdir'
9144      hardcode_direct=yes
9145      hardcode_shlibpath_var=no
9146      ;;
9147
9148    newsos6)
9149      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150      hardcode_direct=yes
9151      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152      hardcode_libdir_separator=:
9153      hardcode_shlibpath_var=no
9154      ;;
9155
9156    *nto* | *qnx*)
9157      ;;
9158
9159    openbsd*)
9160      if test -f /usr/libexec/ld.so; then
9161	hardcode_direct=yes
9162	hardcode_shlibpath_var=no
9163	hardcode_direct_absolute=yes
9164	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9165	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9167	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168	  export_dynamic_flag_spec='${wl}-E'
9169	else
9170	  case $host_os in
9171	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9172	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9173	     hardcode_libdir_flag_spec='-R$libdir'
9174	     ;;
9175	   *)
9176	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9177	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9178	     ;;
9179	  esac
9180	fi
9181      else
9182	ld_shlibs=no
9183      fi
9184      ;;
9185
9186    os2*)
9187      hardcode_libdir_flag_spec='-L$libdir'
9188      hardcode_minus_L=yes
9189      allow_undefined_flag=unsupported
9190      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'
9191      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9192      ;;
9193
9194    osf3*)
9195      if test "$GCC" = yes; then
9196	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9197	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'
9198      else
9199	allow_undefined_flag=' -expect_unresolved \*'
9200	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'
9201      fi
9202      archive_cmds_need_lc='no'
9203      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204      hardcode_libdir_separator=:
9205      ;;
9206
9207    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9208      if test "$GCC" = yes; then
9209	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9210	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'
9211	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212      else
9213	allow_undefined_flag=' -expect_unresolved \*'
9214	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'
9215	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~
9216	$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'
9217
9218	# Both c and cxx compiler support -rpath directly
9219	hardcode_libdir_flag_spec='-rpath $libdir'
9220      fi
9221      archive_cmds_need_lc='no'
9222      hardcode_libdir_separator=:
9223      ;;
9224
9225    solaris*)
9226      no_undefined_flag=' -z defs'
9227      if test "$GCC" = yes; then
9228	wlarc='${wl}'
9229	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9231	  $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'
9232      else
9233	case `$CC -V 2>&1` in
9234	*"Compilers 5.0"*)
9235	  wlarc=''
9236	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9238	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9239	  ;;
9240	*)
9241	  wlarc='${wl}'
9242	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9243	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9244	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9245	  ;;
9246	esac
9247      fi
9248      hardcode_libdir_flag_spec='-R$libdir'
9249      hardcode_shlibpath_var=no
9250      case $host_os in
9251      solaris2.[0-5] | solaris2.[0-5].*) ;;
9252      *)
9253	# The compiler driver will combine and reorder linker options,
9254	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9255	# but is careful enough not to reorder.
9256	# Supported since Solaris 2.6 (maybe 2.5.1?)
9257	if test "$GCC" = yes; then
9258	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9259	else
9260	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9261	fi
9262	;;
9263      esac
9264      link_all_deplibs=yes
9265      ;;
9266
9267    sunos4*)
9268      if test "x$host_vendor" = xsequent; then
9269	# Use $CC to link under sequent, because it throws in some extra .o
9270	# files that make .init and .fini sections work.
9271	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9272      else
9273	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9274      fi
9275      hardcode_libdir_flag_spec='-L$libdir'
9276      hardcode_direct=yes
9277      hardcode_minus_L=yes
9278      hardcode_shlibpath_var=no
9279      ;;
9280
9281    sysv4)
9282      case $host_vendor in
9283	sni)
9284	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285	  hardcode_direct=yes # is this really true???
9286	;;
9287	siemens)
9288	  ## LD is ld it makes a PLAMLIB
9289	  ## CC just makes a GrossModule.
9290	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9291	  reload_cmds='$CC -r -o $output$reload_objs'
9292	  hardcode_direct=no
9293        ;;
9294	motorola)
9295	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9297	;;
9298      esac
9299      runpath_var='LD_RUN_PATH'
9300      hardcode_shlibpath_var=no
9301      ;;
9302
9303    sysv4.3*)
9304      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305      hardcode_shlibpath_var=no
9306      export_dynamic_flag_spec='-Bexport'
9307      ;;
9308
9309    sysv4*MP*)
9310      if test -d /usr/nec; then
9311	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312	hardcode_shlibpath_var=no
9313	runpath_var=LD_RUN_PATH
9314	hardcode_runpath_var=yes
9315	ld_shlibs=yes
9316      fi
9317      ;;
9318
9319    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9320      no_undefined_flag='${wl}-z,text'
9321      archive_cmds_need_lc=no
9322      hardcode_shlibpath_var=no
9323      runpath_var='LD_RUN_PATH'
9324
9325      if test "$GCC" = yes; then
9326	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328      else
9329	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331      fi
9332      ;;
9333
9334    sysv5* | sco3.2v5* | sco5v6*)
9335      # Note: We can NOT use -z defs as we might desire, because we do not
9336      # link with -lc, and that would cause any symbols used from libc to
9337      # always be unresolved, which means just about no library would
9338      # ever link correctly.  If we're not using GNU ld we use -z text
9339      # though, which does catch some bad symbols but isn't as heavy-handed
9340      # as -z defs.
9341      no_undefined_flag='${wl}-z,text'
9342      allow_undefined_flag='${wl}-z,nodefs'
9343      archive_cmds_need_lc=no
9344      hardcode_shlibpath_var=no
9345      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9346      hardcode_libdir_separator=':'
9347      link_all_deplibs=yes
9348      export_dynamic_flag_spec='${wl}-Bexport'
9349      runpath_var='LD_RUN_PATH'
9350
9351      if test "$GCC" = yes; then
9352	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354      else
9355	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357      fi
9358      ;;
9359
9360    uts4*)
9361      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362      hardcode_libdir_flag_spec='-L$libdir'
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    *)
9367      ld_shlibs=no
9368      ;;
9369    esac
9370
9371    if test x$host_vendor = xsni; then
9372      case $host in
9373      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9374	export_dynamic_flag_spec='${wl}-Blargedynsym'
9375	;;
9376      esac
9377    fi
9378  fi
9379
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9381$as_echo "$ld_shlibs" >&6; }
9382test "$ld_shlibs" = no && can_build_shared=no
9383
9384with_gnu_ld=$with_gnu_ld
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400#
9401# Do we need to explicitly link libc?
9402#
9403case "x$archive_cmds_need_lc" in
9404x|xyes)
9405  # Assume -lc should be added
9406  archive_cmds_need_lc=yes
9407
9408  if test "$enable_shared" = yes && test "$GCC" = yes; then
9409    case $archive_cmds in
9410    *'~'*)
9411      # FIXME: we may have to deal with multi-command sequences.
9412      ;;
9413    '$CC '*)
9414      # Test whether the compiler implicitly links with -lc since on some
9415      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9416      # to ld, don't add -lc before -lgcc.
9417      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9418$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9419if ${lt_cv_archive_cmds_need_lc+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  $RM conftest*
9423	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
9425	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9426  (eval $ac_compile) 2>&5
9427  ac_status=$?
9428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9429  test $ac_status = 0; } 2>conftest.err; then
9430	  soname=conftest
9431	  lib=conftest
9432	  libobjs=conftest.$ac_objext
9433	  deplibs=
9434	  wl=$lt_prog_compiler_wl
9435	  pic_flag=$lt_prog_compiler_pic
9436	  compiler_flags=-v
9437	  linker_flags=-v
9438	  verstring=
9439	  output_objdir=.
9440	  libname=conftest
9441	  lt_save_allow_undefined_flag=$allow_undefined_flag
9442	  allow_undefined_flag=
9443	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9444  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9445  ac_status=$?
9446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9447  test $ac_status = 0; }
9448	  then
9449	    lt_cv_archive_cmds_need_lc=no
9450	  else
9451	    lt_cv_archive_cmds_need_lc=yes
9452	  fi
9453	  allow_undefined_flag=$lt_save_allow_undefined_flag
9454	else
9455	  cat conftest.err 1>&5
9456	fi
9457	$RM conftest*
9458
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9461$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9462      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9463      ;;
9464    esac
9465  fi
9466  ;;
9467esac
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9621$as_echo_n "checking dynamic linker characteristics... " >&6; }
9622
9623if test "$GCC" = yes; then
9624  case $host_os in
9625    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9626    *) lt_awk_arg="/^libraries:/" ;;
9627  esac
9628  case $host_os in
9629    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9630    *) lt_sed_strip_eq="s,=/,/,g" ;;
9631  esac
9632  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9633  case $lt_search_path_spec in
9634  *\;*)
9635    # if the path contains ";" then we assume it to be the separator
9636    # otherwise default to the standard path separator (i.e. ":") - it is
9637    # assumed that no part of a normal pathname contains ";" but that should
9638    # okay in the real world where ";" in dirpaths is itself problematic.
9639    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9640    ;;
9641  *)
9642    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9643    ;;
9644  esac
9645  # Ok, now we have the path, separated by spaces, we can step through it
9646  # and add multilib dir if necessary.
9647  lt_tmp_lt_search_path_spec=
9648  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9649  for lt_sys_path in $lt_search_path_spec; do
9650    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9651      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9652    else
9653      test -d "$lt_sys_path" && \
9654	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9655    fi
9656  done
9657  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9658BEGIN {RS=" "; FS="/|\n";} {
9659  lt_foo="";
9660  lt_count=0;
9661  for (lt_i = NF; lt_i > 0; lt_i--) {
9662    if ($lt_i != "" && $lt_i != ".") {
9663      if ($lt_i == "..") {
9664        lt_count++;
9665      } else {
9666        if (lt_count == 0) {
9667          lt_foo="/" $lt_i lt_foo;
9668        } else {
9669          lt_count--;
9670        }
9671      }
9672    }
9673  }
9674  if (lt_foo != "") { lt_freq[lt_foo]++; }
9675  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9676}'`
9677  # AWK program above erroneously prepends '/' to C:/dos/paths
9678  # for these hosts.
9679  case $host_os in
9680    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9681      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9682  esac
9683  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9684else
9685  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9686fi
9687library_names_spec=
9688libname_spec='lib$name'
9689soname_spec=
9690shrext_cmds=".so"
9691postinstall_cmds=
9692postuninstall_cmds=
9693finish_cmds=
9694finish_eval=
9695shlibpath_var=
9696shlibpath_overrides_runpath=unknown
9697version_type=none
9698dynamic_linker="$host_os ld.so"
9699sys_lib_dlsearch_path_spec="/lib /usr/lib"
9700need_lib_prefix=unknown
9701hardcode_into_libs=no
9702
9703# when you set need_version to no, make sure it does not cause -set_version
9704# flags to be left without arguments
9705need_version=unknown
9706
9707case $host_os in
9708aix3*)
9709  version_type=linux # correct to gnu/linux during the next big refactor
9710  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9711  shlibpath_var=LIBPATH
9712
9713  # AIX 3 has no versioning support, so we append a major version to the name.
9714  soname_spec='${libname}${release}${shared_ext}$major'
9715  ;;
9716
9717aix[4-9]*)
9718  version_type=linux # correct to gnu/linux during the next big refactor
9719  need_lib_prefix=no
9720  need_version=no
9721  hardcode_into_libs=yes
9722  if test "$host_cpu" = ia64; then
9723    # AIX 5 supports IA64
9724    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9725    shlibpath_var=LD_LIBRARY_PATH
9726  else
9727    # With GCC up to 2.95.x, collect2 would create an import file
9728    # for dependence libraries.  The import file would start with
9729    # the line `#! .'.  This would cause the generated library to
9730    # depend on `.', always an invalid library.  This was fixed in
9731    # development snapshots of GCC prior to 3.0.
9732    case $host_os in
9733      aix4 | aix4.[01] | aix4.[01].*)
9734      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9735	   echo ' yes '
9736	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9737	:
9738      else
9739	can_build_shared=no
9740      fi
9741      ;;
9742    esac
9743    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9744    # soname into executable. Probably we can add versioning support to
9745    # collect2, so additional links can be useful in future.
9746    if test "$aix_use_runtimelinking" = yes; then
9747      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9748      # instead of lib<name>.a to let people know that these are not
9749      # typical AIX shared libraries.
9750      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751    else
9752      # We preserve .a as extension for shared libraries through AIX4.2
9753      # and later when we are not doing run time linking.
9754      library_names_spec='${libname}${release}.a $libname.a'
9755      soname_spec='${libname}${release}${shared_ext}$major'
9756    fi
9757    shlibpath_var=LIBPATH
9758  fi
9759  ;;
9760
9761amigaos*)
9762  case $host_cpu in
9763  powerpc)
9764    # Since July 2007 AmigaOS4 officially supports .so libraries.
9765    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767    ;;
9768  m68k)
9769    library_names_spec='$libname.ixlibrary $libname.a'
9770    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9771    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'
9772    ;;
9773  esac
9774  ;;
9775
9776beos*)
9777  library_names_spec='${libname}${shared_ext}'
9778  dynamic_linker="$host_os ld.so"
9779  shlibpath_var=LIBRARY_PATH
9780  ;;
9781
9782bsdi[45]*)
9783  version_type=linux # correct to gnu/linux during the next big refactor
9784  need_version=no
9785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786  soname_spec='${libname}${release}${shared_ext}$major'
9787  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9790  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9791  # the default ld.so.conf also contains /usr/contrib/lib and
9792  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9793  # libtool to hard-code these into programs
9794  ;;
9795
9796cygwin* | mingw* | pw32* | cegcc*)
9797  version_type=windows
9798  shrext_cmds=".dll"
9799  need_version=no
9800  need_lib_prefix=no
9801
9802  case $GCC,$cc_basename in
9803  yes,*)
9804    # gcc
9805    library_names_spec='$libname.dll.a'
9806    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9807    postinstall_cmds='base_file=`basename \${file}`~
9808      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9809      dldir=$destdir/`dirname \$dlpath`~
9810      test -d \$dldir || mkdir -p \$dldir~
9811      $install_prog $dir/$dlname \$dldir/$dlname~
9812      chmod a+x \$dldir/$dlname~
9813      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9814        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9815      fi'
9816    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9817      dlpath=$dir/\$dldll~
9818       $RM \$dlpath'
9819    shlibpath_overrides_runpath=yes
9820
9821    case $host_os in
9822    cygwin*)
9823      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9824      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9825
9826      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9827      ;;
9828    mingw* | cegcc*)
9829      # MinGW DLLs use traditional 'lib' prefix
9830      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9831      ;;
9832    pw32*)
9833      # pw32 DLLs use 'pw' prefix rather than 'lib'
9834      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835      ;;
9836    esac
9837    dynamic_linker='Win32 ld.exe'
9838    ;;
9839
9840  *,cl*)
9841    # Native MSVC
9842    libname_spec='$name'
9843    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844    library_names_spec='${libname}.dll.lib'
9845
9846    case $build_os in
9847    mingw*)
9848      sys_lib_search_path_spec=
9849      lt_save_ifs=$IFS
9850      IFS=';'
9851      for lt_path in $LIB
9852      do
9853        IFS=$lt_save_ifs
9854        # Let DOS variable expansion print the short 8.3 style file name.
9855        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9856        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9857      done
9858      IFS=$lt_save_ifs
9859      # Convert to MSYS style.
9860      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9861      ;;
9862    cygwin*)
9863      # Convert to unix form, then to dos form, then back to unix form
9864      # but this time dos style (no spaces!) so that the unix form looks
9865      # like /cygdrive/c/PROGRA~1:/cygdr...
9866      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9867      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9868      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9869      ;;
9870    *)
9871      sys_lib_search_path_spec="$LIB"
9872      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9873        # It is most probably a Windows format PATH.
9874        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9875      else
9876        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9877      fi
9878      # FIXME: find the short name or the path components, as spaces are
9879      # common. (e.g. "Program Files" -> "PROGRA~1")
9880      ;;
9881    esac
9882
9883    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9884    postinstall_cmds='base_file=`basename \${file}`~
9885      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9886      dldir=$destdir/`dirname \$dlpath`~
9887      test -d \$dldir || mkdir -p \$dldir~
9888      $install_prog $dir/$dlname \$dldir/$dlname'
9889    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9890      dlpath=$dir/\$dldll~
9891       $RM \$dlpath'
9892    shlibpath_overrides_runpath=yes
9893    dynamic_linker='Win32 link.exe'
9894    ;;
9895
9896  *)
9897    # Assume MSVC wrapper
9898    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9899    dynamic_linker='Win32 ld.exe'
9900    ;;
9901  esac
9902  # FIXME: first we should search . and the directory the executable is in
9903  shlibpath_var=PATH
9904  ;;
9905
9906darwin* | rhapsody*)
9907  dynamic_linker="$host_os dyld"
9908  version_type=darwin
9909  need_lib_prefix=no
9910  need_version=no
9911  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9912  soname_spec='${libname}${release}${major}$shared_ext'
9913  shlibpath_overrides_runpath=yes
9914  shlibpath_var=DYLD_LIBRARY_PATH
9915  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9916
9917  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9918  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9919  ;;
9920
9921dgux*)
9922  version_type=linux # correct to gnu/linux during the next big refactor
9923  need_lib_prefix=no
9924  need_version=no
9925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9926  soname_spec='${libname}${release}${shared_ext}$major'
9927  shlibpath_var=LD_LIBRARY_PATH
9928  ;;
9929
9930freebsd* | dragonfly*)
9931  # DragonFly does not have aout.  When/if they implement a new
9932  # versioning mechanism, adjust this.
9933  if test -x /usr/bin/objformat; then
9934    objformat=`/usr/bin/objformat`
9935  else
9936    case $host_os in
9937    freebsd[23].*) objformat=aout ;;
9938    *) objformat=elf ;;
9939    esac
9940  fi
9941  version_type=freebsd-$objformat
9942  case $version_type in
9943    freebsd-elf*)
9944      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9945      need_version=no
9946      need_lib_prefix=no
9947      ;;
9948    freebsd-*)
9949      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9950      need_version=yes
9951      ;;
9952  esac
9953  shlibpath_var=LD_LIBRARY_PATH
9954  case $host_os in
9955  freebsd2.*)
9956    shlibpath_overrides_runpath=yes
9957    ;;
9958  freebsd3.[01]* | freebsdelf3.[01]*)
9959    shlibpath_overrides_runpath=yes
9960    hardcode_into_libs=yes
9961    ;;
9962  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9963  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9964    shlibpath_overrides_runpath=no
9965    hardcode_into_libs=yes
9966    ;;
9967  *) # from 4.6 on, and DragonFly
9968    shlibpath_overrides_runpath=yes
9969    hardcode_into_libs=yes
9970    ;;
9971  esac
9972  ;;
9973
9974gnu*)
9975  version_type=linux # correct to gnu/linux during the next big refactor
9976  need_lib_prefix=no
9977  need_version=no
9978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9979  soname_spec='${libname}${release}${shared_ext}$major'
9980  shlibpath_var=LD_LIBRARY_PATH
9981  shlibpath_overrides_runpath=no
9982  hardcode_into_libs=yes
9983  ;;
9984
9985haiku*)
9986  version_type=linux # correct to gnu/linux during the next big refactor
9987  need_lib_prefix=no
9988  need_version=no
9989  dynamic_linker="$host_os runtime_loader"
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9991  soname_spec='${libname}${release}${shared_ext}$major'
9992  shlibpath_var=LIBRARY_PATH
9993  shlibpath_overrides_runpath=yes
9994  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9995  hardcode_into_libs=yes
9996  ;;
9997
9998hpux9* | hpux10* | hpux11*)
9999  # Give a soname corresponding to the major version so that dld.sl refuses to
10000  # link against other versions.
10001  version_type=sunos
10002  need_lib_prefix=no
10003  need_version=no
10004  case $host_cpu in
10005  ia64*)
10006    shrext_cmds='.so'
10007    hardcode_into_libs=yes
10008    dynamic_linker="$host_os dld.so"
10009    shlibpath_var=LD_LIBRARY_PATH
10010    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10011    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012    soname_spec='${libname}${release}${shared_ext}$major'
10013    if test "X$HPUX_IA64_MODE" = X32; then
10014      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10015    else
10016      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10017    fi
10018    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10019    ;;
10020  hppa*64*)
10021    shrext_cmds='.sl'
10022    hardcode_into_libs=yes
10023    dynamic_linker="$host_os dld.sl"
10024    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10025    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10026    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027    soname_spec='${libname}${release}${shared_ext}$major'
10028    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10029    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10030    ;;
10031  *)
10032    shrext_cmds='.sl'
10033    dynamic_linker="$host_os dld.sl"
10034    shlibpath_var=SHLIB_PATH
10035    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037    soname_spec='${libname}${release}${shared_ext}$major'
10038    ;;
10039  esac
10040  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10041  postinstall_cmds='chmod 555 $lib'
10042  # or fails outright, so override atomically:
10043  install_override_mode=555
10044  ;;
10045
10046interix[3-9]*)
10047  version_type=linux # correct to gnu/linux during the next big refactor
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  shlibpath_overrides_runpath=no
10055  hardcode_into_libs=yes
10056  ;;
10057
10058irix5* | irix6* | nonstopux*)
10059  case $host_os in
10060    nonstopux*) version_type=nonstopux ;;
10061    *)
10062	if test "$lt_cv_prog_gnu_ld" = yes; then
10063		version_type=linux # correct to gnu/linux during the next big refactor
10064	else
10065		version_type=irix
10066	fi ;;
10067  esac
10068  need_lib_prefix=no
10069  need_version=no
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10072  case $host_os in
10073  irix5* | nonstopux*)
10074    libsuff= shlibsuff=
10075    ;;
10076  *)
10077    case $LD in # libtool.m4 will add one of these switches to LD
10078    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10079      libsuff= shlibsuff= libmagic=32-bit;;
10080    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10081      libsuff=32 shlibsuff=N32 libmagic=N32;;
10082    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10083      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10084    *) libsuff= shlibsuff= libmagic=never-match;;
10085    esac
10086    ;;
10087  esac
10088  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10089  shlibpath_overrides_runpath=no
10090  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10091  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10092  hardcode_into_libs=yes
10093  ;;
10094
10095# No shared lib support for Linux oldld, aout, or coff.
10096linux*oldld* | linux*aout* | linux*coff*)
10097  dynamic_linker=no
10098  ;;
10099
10100# This must be glibc/ELF.
10101linux* | k*bsd*-gnu | kopensolaris*-gnu)
10102  version_type=linux # correct to gnu/linux during the next big refactor
10103  need_lib_prefix=no
10104  need_version=no
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10108  shlibpath_var=LD_LIBRARY_PATH
10109  shlibpath_overrides_runpath=no
10110
10111  # Some binutils ld are patched to set DT_RUNPATH
10112  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10113  $as_echo_n "(cached) " >&6
10114else
10115  lt_cv_shlibpath_overrides_runpath=no
10116    save_LDFLAGS=$LDFLAGS
10117    save_libdir=$libdir
10118    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122
10123int
10124main ()
10125{
10126
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10133  lt_cv_shlibpath_overrides_runpath=yes
10134fi
10135fi
10136rm -f core conftest.err conftest.$ac_objext \
10137    conftest$ac_exeext conftest.$ac_ext
10138    LDFLAGS=$save_LDFLAGS
10139    libdir=$save_libdir
10140
10141fi
10142
10143  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10144
10145  # This implies no fast_install, which is unacceptable.
10146  # Some rework will be needed to allow for fast_install
10147  # before this can be enabled.
10148  hardcode_into_libs=yes
10149
10150  # Append ld.so.conf contents to the search path
10151  if test -f /etc/ld.so.conf; then
10152    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' ' '`
10153    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10154  fi
10155
10156  # We used to test for /lib/ld.so.1 and disable shared libraries on
10157  # powerpc, because MkLinux only supported shared libraries with the
10158  # GNU dynamic linker.  Since this was broken with cross compilers,
10159  # most powerpc-linux boxes support dynamic linking these days and
10160  # people can always --disable-shared, the test was removed, and we
10161  # assume the GNU/Linux dynamic linker is in use.
10162  dynamic_linker='GNU/Linux ld.so'
10163  ;;
10164
10165netbsd*)
10166  version_type=sunos
10167  need_lib_prefix=no
10168  need_version=no
10169  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10171    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10172    dynamic_linker='NetBSD (a.out) ld.so'
10173  else
10174    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175    soname_spec='${libname}${release}${shared_ext}$major'
10176    dynamic_linker='NetBSD ld.elf_so'
10177  fi
10178  shlibpath_var=LD_LIBRARY_PATH
10179  shlibpath_overrides_runpath=yes
10180  hardcode_into_libs=yes
10181  ;;
10182
10183newsos6)
10184  version_type=linux # correct to gnu/linux during the next big refactor
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  shlibpath_var=LD_LIBRARY_PATH
10187  shlibpath_overrides_runpath=yes
10188  ;;
10189
10190*nto* | *qnx*)
10191  version_type=qnx
10192  need_lib_prefix=no
10193  need_version=no
10194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195  soname_spec='${libname}${release}${shared_ext}$major'
10196  shlibpath_var=LD_LIBRARY_PATH
10197  shlibpath_overrides_runpath=no
10198  hardcode_into_libs=yes
10199  dynamic_linker='ldqnx.so'
10200  ;;
10201
10202openbsd*)
10203  version_type=sunos
10204  sys_lib_dlsearch_path_spec="/usr/lib"
10205  need_lib_prefix=no
10206  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10207  case $host_os in
10208    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10209    *)				need_version=no  ;;
10210  esac
10211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10215    case $host_os in
10216      openbsd2.[89] | openbsd2.[89].*)
10217	shlibpath_overrides_runpath=no
10218	;;
10219      *)
10220	shlibpath_overrides_runpath=yes
10221	;;
10222      esac
10223  else
10224    shlibpath_overrides_runpath=yes
10225  fi
10226  ;;
10227
10228os2*)
10229  libname_spec='$name'
10230  shrext_cmds=".dll"
10231  need_lib_prefix=no
10232  library_names_spec='$libname${shared_ext} $libname.a'
10233  dynamic_linker='OS/2 ld.exe'
10234  shlibpath_var=LIBPATH
10235  ;;
10236
10237osf3* | osf4* | osf5*)
10238  version_type=osf
10239  need_lib_prefix=no
10240  need_version=no
10241  soname_spec='${libname}${release}${shared_ext}$major'
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10245  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10246  ;;
10247
10248rdos*)
10249  dynamic_linker=no
10250  ;;
10251
10252solaris*)
10253  version_type=linux # correct to gnu/linux during the next big refactor
10254  need_lib_prefix=no
10255  need_version=no
10256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257  soname_spec='${libname}${release}${shared_ext}$major'
10258  shlibpath_var=LD_LIBRARY_PATH
10259  shlibpath_overrides_runpath=yes
10260  hardcode_into_libs=yes
10261  # ldd complains unless libraries are executable
10262  postinstall_cmds='chmod +x $lib'
10263  ;;
10264
10265sunos4*)
10266  version_type=sunos
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10269  shlibpath_var=LD_LIBRARY_PATH
10270  shlibpath_overrides_runpath=yes
10271  if test "$with_gnu_ld" = yes; then
10272    need_lib_prefix=no
10273  fi
10274  need_version=yes
10275  ;;
10276
10277sysv4 | sysv4.3*)
10278  version_type=linux # correct to gnu/linux during the next big refactor
10279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280  soname_spec='${libname}${release}${shared_ext}$major'
10281  shlibpath_var=LD_LIBRARY_PATH
10282  case $host_vendor in
10283    sni)
10284      shlibpath_overrides_runpath=no
10285      need_lib_prefix=no
10286      runpath_var=LD_RUN_PATH
10287      ;;
10288    siemens)
10289      need_lib_prefix=no
10290      ;;
10291    motorola)
10292      need_lib_prefix=no
10293      need_version=no
10294      shlibpath_overrides_runpath=no
10295      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10296      ;;
10297  esac
10298  ;;
10299
10300sysv4*MP*)
10301  if test -d /usr/nec ;then
10302    version_type=linux # correct to gnu/linux during the next big refactor
10303    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10304    soname_spec='$libname${shared_ext}.$major'
10305    shlibpath_var=LD_LIBRARY_PATH
10306  fi
10307  ;;
10308
10309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10310  version_type=freebsd-elf
10311  need_lib_prefix=no
10312  need_version=no
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314  soname_spec='${libname}${release}${shared_ext}$major'
10315  shlibpath_var=LD_LIBRARY_PATH
10316  shlibpath_overrides_runpath=yes
10317  hardcode_into_libs=yes
10318  if test "$with_gnu_ld" = yes; then
10319    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10320  else
10321    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10322    case $host_os in
10323      sco3.2v5*)
10324        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10325	;;
10326    esac
10327  fi
10328  sys_lib_dlsearch_path_spec='/usr/lib'
10329  ;;
10330
10331tpf*)
10332  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10333  version_type=linux # correct to gnu/linux during the next big refactor
10334  need_lib_prefix=no
10335  need_version=no
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337  shlibpath_var=LD_LIBRARY_PATH
10338  shlibpath_overrides_runpath=no
10339  hardcode_into_libs=yes
10340  ;;
10341
10342uts4*)
10343  version_type=linux # correct to gnu/linux during the next big refactor
10344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345  soname_spec='${libname}${release}${shared_ext}$major'
10346  shlibpath_var=LD_LIBRARY_PATH
10347  ;;
10348
10349*)
10350  dynamic_linker=no
10351  ;;
10352esac
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10354$as_echo "$dynamic_linker" >&6; }
10355test "$dynamic_linker" = no && can_build_shared=no
10356
10357variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358if test "$GCC" = yes; then
10359  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10360fi
10361
10362if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10363  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10364fi
10365if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10366  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10367fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10461$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10462hardcode_action=
10463if test -n "$hardcode_libdir_flag_spec" ||
10464   test -n "$runpath_var" ||
10465   test "X$hardcode_automatic" = "Xyes" ; then
10466
10467  # We can hardcode non-existent directories.
10468  if test "$hardcode_direct" != no &&
10469     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470     # have to relink, otherwise we might link with an installed library
10471     # when we should be linking with a yet-to-be-installed one
10472     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10473     test "$hardcode_minus_L" != no; then
10474    # Linking always hardcodes the temporary library directory.
10475    hardcode_action=relink
10476  else
10477    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478    hardcode_action=immediate
10479  fi
10480else
10481  # We cannot hardcode anything, or else we can only hardcode existing
10482  # directories.
10483  hardcode_action=unsupported
10484fi
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10486$as_echo "$hardcode_action" >&6; }
10487
10488if test "$hardcode_action" = relink ||
10489   test "$inherit_rpath" = yes; then
10490  # Fast installation is not supported
10491  enable_fast_install=no
10492elif test "$shlibpath_overrides_runpath" = yes ||
10493     test "$enable_shared" = no; then
10494  # Fast installation is not necessary
10495  enable_fast_install=needless
10496fi
10497
10498
10499
10500
10501
10502
10503  if test "x$enable_dlopen" != xyes; then
10504  enable_dlopen=unknown
10505  enable_dlopen_self=unknown
10506  enable_dlopen_self_static=unknown
10507else
10508  lt_cv_dlopen=no
10509  lt_cv_dlopen_libs=
10510
10511  case $host_os in
10512  beos*)
10513    lt_cv_dlopen="load_add_on"
10514    lt_cv_dlopen_libs=
10515    lt_cv_dlopen_self=yes
10516    ;;
10517
10518  mingw* | pw32* | cegcc*)
10519    lt_cv_dlopen="LoadLibrary"
10520    lt_cv_dlopen_libs=
10521    ;;
10522
10523  cygwin*)
10524    lt_cv_dlopen="dlopen"
10525    lt_cv_dlopen_libs=
10526    ;;
10527
10528  darwin*)
10529  # if libdl is installed we need to link against it
10530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10531$as_echo_n "checking for dlopen in -ldl... " >&6; }
10532if ${ac_cv_lib_dl_dlopen+:} false; then :
10533  $as_echo_n "(cached) " >&6
10534else
10535  ac_check_lib_save_LIBS=$LIBS
10536LIBS="-ldl  $LIBS"
10537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h.  */
10539
10540/* Override any GCC internal prototype to avoid an error.
10541   Use char because int might match the return type of a GCC
10542   builtin and then its argument prototype would still apply.  */
10543#ifdef __cplusplus
10544extern "C"
10545#endif
10546char dlopen ();
10547int
10548main ()
10549{
10550return dlopen ();
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555if ac_fn_c_try_link "$LINENO"; then :
10556  ac_cv_lib_dl_dlopen=yes
10557else
10558  ac_cv_lib_dl_dlopen=no
10559fi
10560rm -f core conftest.err conftest.$ac_objext \
10561    conftest$ac_exeext conftest.$ac_ext
10562LIBS=$ac_check_lib_save_LIBS
10563fi
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10565$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10567  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568else
10569
10570    lt_cv_dlopen="dyld"
10571    lt_cv_dlopen_libs=
10572    lt_cv_dlopen_self=yes
10573
10574fi
10575
10576    ;;
10577
10578  *)
10579    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10580if test "x$ac_cv_func_shl_load" = xyes; then :
10581  lt_cv_dlopen="shl_load"
10582else
10583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10584$as_echo_n "checking for shl_load in -ldld... " >&6; }
10585if ${ac_cv_lib_dld_shl_load+:} false; then :
10586  $as_echo_n "(cached) " >&6
10587else
10588  ac_check_lib_save_LIBS=$LIBS
10589LIBS="-ldld  $LIBS"
10590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h.  */
10592
10593/* Override any GCC internal prototype to avoid an error.
10594   Use char because int might match the return type of a GCC
10595   builtin and then its argument prototype would still apply.  */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599char shl_load ();
10600int
10601main ()
10602{
10603return shl_load ();
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608if ac_fn_c_try_link "$LINENO"; then :
10609  ac_cv_lib_dld_shl_load=yes
10610else
10611  ac_cv_lib_dld_shl_load=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614    conftest$ac_exeext conftest.$ac_ext
10615LIBS=$ac_check_lib_save_LIBS
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10618$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10619if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10620  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10621else
10622  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10623if test "x$ac_cv_func_dlopen" = xyes; then :
10624  lt_cv_dlopen="dlopen"
10625else
10626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10627$as_echo_n "checking for dlopen in -ldl... " >&6; }
10628if ${ac_cv_lib_dl_dlopen+:} false; then :
10629  $as_echo_n "(cached) " >&6
10630else
10631  ac_check_lib_save_LIBS=$LIBS
10632LIBS="-ldl  $LIBS"
10633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h.  */
10635
10636/* Override any GCC internal prototype to avoid an error.
10637   Use char because int might match the return type of a GCC
10638   builtin and then its argument prototype would still apply.  */
10639#ifdef __cplusplus
10640extern "C"
10641#endif
10642char dlopen ();
10643int
10644main ()
10645{
10646return dlopen ();
10647  ;
10648  return 0;
10649}
10650_ACEOF
10651if ac_fn_c_try_link "$LINENO"; then :
10652  ac_cv_lib_dl_dlopen=yes
10653else
10654  ac_cv_lib_dl_dlopen=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext \
10657    conftest$ac_exeext conftest.$ac_ext
10658LIBS=$ac_check_lib_save_LIBS
10659fi
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10661$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10662if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10664else
10665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10666$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10667if ${ac_cv_lib_svld_dlopen+:} false; then :
10668  $as_echo_n "(cached) " >&6
10669else
10670  ac_check_lib_save_LIBS=$LIBS
10671LIBS="-lsvld  $LIBS"
10672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h.  */
10674
10675/* Override any GCC internal prototype to avoid an error.
10676   Use char because int might match the return type of a GCC
10677   builtin and then its argument prototype would still apply.  */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681char dlopen ();
10682int
10683main ()
10684{
10685return dlopen ();
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"; then :
10691  ac_cv_lib_svld_dlopen=yes
10692else
10693  ac_cv_lib_svld_dlopen=no
10694fi
10695rm -f core conftest.err conftest.$ac_objext \
10696    conftest$ac_exeext conftest.$ac_ext
10697LIBS=$ac_check_lib_save_LIBS
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10700$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10701if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10702  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10703else
10704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10705$as_echo_n "checking for dld_link in -ldld... " >&6; }
10706if ${ac_cv_lib_dld_dld_link+:} false; then :
10707  $as_echo_n "(cached) " >&6
10708else
10709  ac_check_lib_save_LIBS=$LIBS
10710LIBS="-ldld  $LIBS"
10711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h.  */
10713
10714/* Override any GCC internal prototype to avoid an error.
10715   Use char because int might match the return type of a GCC
10716   builtin and then its argument prototype would still apply.  */
10717#ifdef __cplusplus
10718extern "C"
10719#endif
10720char dld_link ();
10721int
10722main ()
10723{
10724return dld_link ();
10725  ;
10726  return 0;
10727}
10728_ACEOF
10729if ac_fn_c_try_link "$LINENO"; then :
10730  ac_cv_lib_dld_dld_link=yes
10731else
10732  ac_cv_lib_dld_dld_link=no
10733fi
10734rm -f core conftest.err conftest.$ac_objext \
10735    conftest$ac_exeext conftest.$ac_ext
10736LIBS=$ac_check_lib_save_LIBS
10737fi
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10739$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10740if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10741  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10742fi
10743
10744
10745fi
10746
10747
10748fi
10749
10750
10751fi
10752
10753
10754fi
10755
10756
10757fi
10758
10759    ;;
10760  esac
10761
10762  if test "x$lt_cv_dlopen" != xno; then
10763    enable_dlopen=yes
10764  else
10765    enable_dlopen=no
10766  fi
10767
10768  case $lt_cv_dlopen in
10769  dlopen)
10770    save_CPPFLAGS="$CPPFLAGS"
10771    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10772
10773    save_LDFLAGS="$LDFLAGS"
10774    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10775
10776    save_LIBS="$LIBS"
10777    LIBS="$lt_cv_dlopen_libs $LIBS"
10778
10779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10780$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10781if ${lt_cv_dlopen_self+:} false; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  	  if test "$cross_compiling" = yes; then :
10785  lt_cv_dlopen_self=cross
10786else
10787  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788  lt_status=$lt_dlunknown
10789  cat > conftest.$ac_ext <<_LT_EOF
10790#line $LINENO "configure"
10791#include "confdefs.h"
10792
10793#if HAVE_DLFCN_H
10794#include <dlfcn.h>
10795#endif
10796
10797#include <stdio.h>
10798
10799#ifdef RTLD_GLOBAL
10800#  define LT_DLGLOBAL		RTLD_GLOBAL
10801#else
10802#  ifdef DL_GLOBAL
10803#    define LT_DLGLOBAL		DL_GLOBAL
10804#  else
10805#    define LT_DLGLOBAL		0
10806#  endif
10807#endif
10808
10809/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810   find out it does not work in some platform. */
10811#ifndef LT_DLLAZY_OR_NOW
10812#  ifdef RTLD_LAZY
10813#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10814#  else
10815#    ifdef DL_LAZY
10816#      define LT_DLLAZY_OR_NOW		DL_LAZY
10817#    else
10818#      ifdef RTLD_NOW
10819#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10820#      else
10821#        ifdef DL_NOW
10822#          define LT_DLLAZY_OR_NOW	DL_NOW
10823#        else
10824#          define LT_DLLAZY_OR_NOW	0
10825#        endif
10826#      endif
10827#    endif
10828#  endif
10829#endif
10830
10831/* When -fvisbility=hidden is used, assume the code has been annotated
10832   correspondingly for the symbols needed.  */
10833#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10834int fnord () __attribute__((visibility("default")));
10835#endif
10836
10837int fnord () { return 42; }
10838int main ()
10839{
10840  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10841  int status = $lt_dlunknown;
10842
10843  if (self)
10844    {
10845      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10846      else
10847        {
10848	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10849          else puts (dlerror ());
10850	}
10851      /* dlclose (self); */
10852    }
10853  else
10854    puts (dlerror ());
10855
10856  return status;
10857}
10858_LT_EOF
10859  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10860  (eval $ac_link) 2>&5
10861  ac_status=$?
10862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10864    (./conftest; exit; ) >&5 2>/dev/null
10865    lt_status=$?
10866    case x$lt_status in
10867      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10868      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10869      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10870    esac
10871  else :
10872    # compilation failed
10873    lt_cv_dlopen_self=no
10874  fi
10875fi
10876rm -fr conftest*
10877
10878
10879fi
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10881$as_echo "$lt_cv_dlopen_self" >&6; }
10882
10883    if test "x$lt_cv_dlopen_self" = xyes; then
10884      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10885      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10886$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10887if ${lt_cv_dlopen_self_static+:} false; then :
10888  $as_echo_n "(cached) " >&6
10889else
10890  	  if test "$cross_compiling" = yes; then :
10891  lt_cv_dlopen_self_static=cross
10892else
10893  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894  lt_status=$lt_dlunknown
10895  cat > conftest.$ac_ext <<_LT_EOF
10896#line $LINENO "configure"
10897#include "confdefs.h"
10898
10899#if HAVE_DLFCN_H
10900#include <dlfcn.h>
10901#endif
10902
10903#include <stdio.h>
10904
10905#ifdef RTLD_GLOBAL
10906#  define LT_DLGLOBAL		RTLD_GLOBAL
10907#else
10908#  ifdef DL_GLOBAL
10909#    define LT_DLGLOBAL		DL_GLOBAL
10910#  else
10911#    define LT_DLGLOBAL		0
10912#  endif
10913#endif
10914
10915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916   find out it does not work in some platform. */
10917#ifndef LT_DLLAZY_OR_NOW
10918#  ifdef RTLD_LAZY
10919#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10920#  else
10921#    ifdef DL_LAZY
10922#      define LT_DLLAZY_OR_NOW		DL_LAZY
10923#    else
10924#      ifdef RTLD_NOW
10925#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10926#      else
10927#        ifdef DL_NOW
10928#          define LT_DLLAZY_OR_NOW	DL_NOW
10929#        else
10930#          define LT_DLLAZY_OR_NOW	0
10931#        endif
10932#      endif
10933#    endif
10934#  endif
10935#endif
10936
10937/* When -fvisbility=hidden is used, assume the code has been annotated
10938   correspondingly for the symbols needed.  */
10939#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940int fnord () __attribute__((visibility("default")));
10941#endif
10942
10943int fnord () { return 42; }
10944int main ()
10945{
10946  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947  int status = $lt_dlunknown;
10948
10949  if (self)
10950    {
10951      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10952      else
10953        {
10954	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10955          else puts (dlerror ());
10956	}
10957      /* dlclose (self); */
10958    }
10959  else
10960    puts (dlerror ());
10961
10962  return status;
10963}
10964_LT_EOF
10965  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966  (eval $ac_link) 2>&5
10967  ac_status=$?
10968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10970    (./conftest; exit; ) >&5 2>/dev/null
10971    lt_status=$?
10972    case x$lt_status in
10973      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10974      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10975      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10976    esac
10977  else :
10978    # compilation failed
10979    lt_cv_dlopen_self_static=no
10980  fi
10981fi
10982rm -fr conftest*
10983
10984
10985fi
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10987$as_echo "$lt_cv_dlopen_self_static" >&6; }
10988    fi
10989
10990    CPPFLAGS="$save_CPPFLAGS"
10991    LDFLAGS="$save_LDFLAGS"
10992    LIBS="$save_LIBS"
10993    ;;
10994  esac
10995
10996  case $lt_cv_dlopen_self in
10997  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10998  *) enable_dlopen_self=unknown ;;
10999  esac
11000
11001  case $lt_cv_dlopen_self_static in
11002  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11003  *) enable_dlopen_self_static=unknown ;;
11004  esac
11005fi
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023striplib=
11024old_striplib=
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11026$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11027if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11028  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11029  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031$as_echo "yes" >&6; }
11032else
11033# FIXME - insert some real tests, host_os isn't really good enough
11034  case $host_os in
11035  darwin*)
11036    if test -n "$STRIP" ; then
11037      striplib="$STRIP -x"
11038      old_striplib="$STRIP -S"
11039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040$as_echo "yes" >&6; }
11041    else
11042      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
11044    fi
11045    ;;
11046  *)
11047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048$as_echo "no" >&6; }
11049    ;;
11050  esac
11051fi
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064  # Report which library types will actually be built
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11066$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11068$as_echo "$can_build_shared" >&6; }
11069
11070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11071$as_echo_n "checking whether to build shared libraries... " >&6; }
11072  test "$can_build_shared" = "no" && enable_shared=no
11073
11074  # On AIX, shared libraries and static libraries use the same namespace, and
11075  # are all built from PIC.
11076  case $host_os in
11077  aix3*)
11078    test "$enable_shared" = yes && enable_static=no
11079    if test -n "$RANLIB"; then
11080      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11081      postinstall_cmds='$RANLIB $lib'
11082    fi
11083    ;;
11084
11085  aix[4-9]*)
11086    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11087      test "$enable_shared" = yes && enable_static=no
11088    fi
11089    ;;
11090  esac
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11092$as_echo "$enable_shared" >&6; }
11093
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11095$as_echo_n "checking whether to build static libraries... " >&6; }
11096  # Make sure either enable_shared or enable_static is yes.
11097  test "$enable_shared" = yes || enable_static=yes
11098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11099$as_echo "$enable_static" >&6; }
11100
11101
11102
11103
11104fi
11105ac_ext=c
11106ac_cpp='$CPP $CPPFLAGS'
11107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109ac_compiler_gnu=$ac_cv_c_compiler_gnu
11110
11111CC="$lt_save_CC"
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127        ac_config_commands="$ac_config_commands libtool"
11128
11129
11130
11131
11132# Only expand once:
11133
11134
11135for ac_prog in 'bison -y' byacc
11136do
11137  # Extract the first word of "$ac_prog", so it can be a program name with args.
11138set dummy $ac_prog; ac_word=$2
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140$as_echo_n "checking for $ac_word... " >&6; }
11141if ${ac_cv_prog_YACC+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144  if test -n "$YACC"; then
11145  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11146else
11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150  IFS=$as_save_IFS
11151  test -z "$as_dir" && as_dir=.
11152    for ac_exec_ext in '' $ac_executable_extensions; do
11153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154    ac_cv_prog_YACC="$ac_prog"
11155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156    break 2
11157  fi
11158done
11159  done
11160IFS=$as_save_IFS
11161
11162fi
11163fi
11164YACC=$ac_cv_prog_YACC
11165if test -n "$YACC"; then
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11167$as_echo "$YACC" >&6; }
11168else
11169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170$as_echo "no" >&6; }
11171fi
11172
11173
11174  test -n "$YACC" && break
11175done
11176test -n "$YACC" || YACC="yacc"
11177
11178
11179am__api_version='1.12'
11180
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11182$as_echo_n "checking whether build environment is sane... " >&6; }
11183# Reject unsafe characters in $srcdir or the absolute working directory
11184# name.  Accept space and tab only in the latter.
11185am_lf='
11186'
11187case `pwd` in
11188  *[\\\"\#\$\&\'\`$am_lf]*)
11189    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11190esac
11191case $srcdir in
11192  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11193    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11194esac
11195
11196# Do 'set' in a subshell so we don't clobber the current shell's
11197# arguments.  Must try -L first in case configure is actually a
11198# symlink; some systems play weird games with the mod time of symlinks
11199# (eg FreeBSD returns the mod time of the symlink's containing
11200# directory).
11201if (
11202   am_has_slept=no
11203   for am_try in 1 2; do
11204     echo "timestamp, slept: $am_has_slept" > conftest.file
11205     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11206     if test "$*" = "X"; then
11207	# -L didn't work.
11208	set X `ls -t "$srcdir/configure" conftest.file`
11209     fi
11210     if test "$*" != "X $srcdir/configure conftest.file" \
11211	&& test "$*" != "X conftest.file $srcdir/configure"; then
11212
11213	# If neither matched, then we have a broken ls.  This can happen
11214	# if, for instance, CONFIG_SHELL is bash and it inherits a
11215	# broken ls alias from the environment.  This has actually
11216	# happened.  Such a system could not be considered "sane".
11217	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11218  alias in your environment" "$LINENO" 5
11219     fi
11220     if test "$2" = conftest.file || test $am_try -eq 2; then
11221       break
11222     fi
11223     # Just in case.
11224     sleep 1
11225     am_has_slept=yes
11226   done
11227   test "$2" = conftest.file
11228   )
11229then
11230   # Ok.
11231   :
11232else
11233   as_fn_error $? "newly created file is older than distributed files!
11234Check your system clock" "$LINENO" 5
11235fi
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237$as_echo "yes" >&6; }
11238# If we didn't sleep, we still need to ensure time stamps of config.status and
11239# generated files are strictly newer.
11240am_sleep_pid=
11241if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11242  ( sleep 1 ) &
11243  am_sleep_pid=$!
11244fi
11245
11246rm -f conftest.file
11247
11248test "$program_prefix" != NONE &&
11249  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11250# Use a double $ so make ignores it.
11251test "$program_suffix" != NONE &&
11252  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11253# Double any \ or $.
11254# By default was `s,x,x', remove it if useless.
11255ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11256program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11257
11258# expand $ac_aux_dir to an absolute path
11259am_aux_dir=`cd $ac_aux_dir && pwd`
11260
11261if test x"${MISSING+set}" != xset; then
11262  case $am_aux_dir in
11263  *\ * | *\	*)
11264    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11265  *)
11266    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11267  esac
11268fi
11269# Use eval to expand $SHELL
11270if eval "$MISSING --run true"; then
11271  am_missing_run="$MISSING --run "
11272else
11273  am_missing_run=
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11275$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11276fi
11277
11278if test x"${install_sh}" != xset; then
11279  case $am_aux_dir in
11280  *\ * | *\	*)
11281    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11282  *)
11283    install_sh="\${SHELL} $am_aux_dir/install-sh"
11284  esac
11285fi
11286
11287# Installed binaries are usually stripped using 'strip' when the user
11288# run "make install-strip".  However 'strip' might not be the right
11289# tool to use in cross-compilation environments, therefore Automake
11290# will honor the 'STRIP' environment variable to overrule this program.
11291if test "$cross_compiling" != no; then
11292  if test -n "$ac_tool_prefix"; then
11293  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11294set dummy ${ac_tool_prefix}strip; ac_word=$2
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296$as_echo_n "checking for $ac_word... " >&6; }
11297if ${ac_cv_prog_STRIP+:} false; then :
11298  $as_echo_n "(cached) " >&6
11299else
11300  if test -n "$STRIP"; then
11301  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11302else
11303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306  IFS=$as_save_IFS
11307  test -z "$as_dir" && as_dir=.
11308    for ac_exec_ext in '' $ac_executable_extensions; do
11309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312    break 2
11313  fi
11314done
11315  done
11316IFS=$as_save_IFS
11317
11318fi
11319fi
11320STRIP=$ac_cv_prog_STRIP
11321if test -n "$STRIP"; then
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11323$as_echo "$STRIP" >&6; }
11324else
11325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326$as_echo "no" >&6; }
11327fi
11328
11329
11330fi
11331if test -z "$ac_cv_prog_STRIP"; then
11332  ac_ct_STRIP=$STRIP
11333  # Extract the first word of "strip", so it can be a program name with args.
11334set dummy strip; ac_word=$2
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
11337if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11338  $as_echo_n "(cached) " >&6
11339else
11340  if test -n "$ac_ct_STRIP"; then
11341  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346  IFS=$as_save_IFS
11347  test -z "$as_dir" && as_dir=.
11348    for ac_exec_ext in '' $ac_executable_extensions; do
11349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350    ac_cv_prog_ac_ct_STRIP="strip"
11351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352    break 2
11353  fi
11354done
11355  done
11356IFS=$as_save_IFS
11357
11358fi
11359fi
11360ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11361if test -n "$ac_ct_STRIP"; then
11362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11363$as_echo "$ac_ct_STRIP" >&6; }
11364else
11365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367fi
11368
11369  if test "x$ac_ct_STRIP" = x; then
11370    STRIP=":"
11371  else
11372    case $cross_compiling:$ac_tool_warned in
11373yes:)
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11376ac_tool_warned=yes ;;
11377esac
11378    STRIP=$ac_ct_STRIP
11379  fi
11380else
11381  STRIP="$ac_cv_prog_STRIP"
11382fi
11383
11384fi
11385INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11386
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11388$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11389if test -z "$MKDIR_P"; then
11390  if ${ac_cv_path_mkdir+:} false; then :
11391  $as_echo_n "(cached) " >&6
11392else
11393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11395do
11396  IFS=$as_save_IFS
11397  test -z "$as_dir" && as_dir=.
11398    for ac_prog in mkdir gmkdir; do
11399	 for ac_exec_ext in '' $ac_executable_extensions; do
11400	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11401	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11402	     'mkdir (GNU coreutils) '* | \
11403	     'mkdir (coreutils) '* | \
11404	     'mkdir (fileutils) '4.1*)
11405	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11406	       break 3;;
11407	   esac
11408	 done
11409       done
11410  done
11411IFS=$as_save_IFS
11412
11413fi
11414
11415  test -d ./--version && rmdir ./--version
11416  if test "${ac_cv_path_mkdir+set}" = set; then
11417    MKDIR_P="$ac_cv_path_mkdir -p"
11418  else
11419    # As a last resort, use the slow shell script.  Don't cache a
11420    # value for MKDIR_P within a source directory, because that will
11421    # break other packages using the cache if that directory is
11422    # removed, or if the value is a relative name.
11423    MKDIR_P="$ac_install_sh -d"
11424  fi
11425fi
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11427$as_echo "$MKDIR_P" >&6; }
11428
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11430$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11431set x ${MAKE-make}
11432ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11433if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  cat >conftest.make <<\_ACEOF
11437SHELL = /bin/sh
11438all:
11439	@echo '@@@%%%=$(MAKE)=@@@%%%'
11440_ACEOF
11441# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11442case `${MAKE-make} -f conftest.make 2>/dev/null` in
11443  *@@@%%%=?*=@@@%%%*)
11444    eval ac_cv_prog_make_${ac_make}_set=yes;;
11445  *)
11446    eval ac_cv_prog_make_${ac_make}_set=no;;
11447esac
11448rm -f conftest.make
11449fi
11450if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452$as_echo "yes" >&6; }
11453  SET_MAKE=
11454else
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457  SET_MAKE="MAKE=${MAKE-make}"
11458fi
11459
11460rm -rf .tst 2>/dev/null
11461mkdir .tst 2>/dev/null
11462if test -d .tst; then
11463  am__leading_dot=.
11464else
11465  am__leading_dot=_
11466fi
11467rmdir .tst 2>/dev/null
11468
11469DEPDIR="${am__leading_dot}deps"
11470
11471ac_config_commands="$ac_config_commands depfiles"
11472
11473
11474am_make=${MAKE-make}
11475cat > confinc << 'END'
11476am__doit:
11477	@echo this is the am__doit target
11478.PHONY: am__doit
11479END
11480# If we don't find an include directive, just comment out the code.
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11482$as_echo_n "checking for style of include used by $am_make... " >&6; }
11483am__include="#"
11484am__quote=
11485_am_result=none
11486# First try GNU make style include.
11487echo "include confinc" > confmf
11488# Ignore all kinds of additional output from 'make'.
11489case `$am_make -s -f confmf 2> /dev/null` in #(
11490*the\ am__doit\ target*)
11491  am__include=include
11492  am__quote=
11493  _am_result=GNU
11494  ;;
11495esac
11496# Now try BSD make style include.
11497if test "$am__include" = "#"; then
11498   echo '.include "confinc"' > confmf
11499   case `$am_make -s -f confmf 2> /dev/null` in #(
11500   *the\ am__doit\ target*)
11501     am__include=.include
11502     am__quote="\""
11503     _am_result=BSD
11504     ;;
11505   esac
11506fi
11507
11508
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11510$as_echo "$_am_result" >&6; }
11511rm -f confinc confmf
11512
11513# Check whether --enable-dependency-tracking was given.
11514if test "${enable_dependency_tracking+set}" = set; then :
11515  enableval=$enable_dependency_tracking;
11516fi
11517
11518if test "x$enable_dependency_tracking" != xno; then
11519  am_depcomp="$ac_aux_dir/depcomp"
11520  AMDEPBACKSLASH='\'
11521  am__nodep='_no'
11522fi
11523 if test "x$enable_dependency_tracking" != xno; then
11524  AMDEP_TRUE=
11525  AMDEP_FALSE='#'
11526else
11527  AMDEP_TRUE='#'
11528  AMDEP_FALSE=
11529fi
11530
11531
11532if test "`cd $srcdir && pwd`" != "`pwd`"; then
11533  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11534  # is not polluted with repeated "-I."
11535  am__isrc=' -I$(srcdir)'
11536  # test to see if srcdir already configured
11537  if test -f $srcdir/config.status; then
11538    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11539  fi
11540fi
11541
11542# test whether we have cygpath
11543if test -z "$CYGPATH_W"; then
11544  if (cygpath --version) >/dev/null 2>/dev/null; then
11545    CYGPATH_W='cygpath -w'
11546  else
11547    CYGPATH_W=echo
11548  fi
11549fi
11550
11551
11552# Define the identity of the package.
11553
11554 PACKAGE=OpenBSM
11555 VERSION=1.2-alpha3
11556
11557
11558cat >>confdefs.h <<_ACEOF
11559#define PACKAGE "$PACKAGE"
11560_ACEOF
11561
11562
11563cat >>confdefs.h <<_ACEOF
11564#define VERSION "$VERSION"
11565_ACEOF
11566
11567# Some tools Automake needs.
11568
11569ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11570
11571
11572AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11573
11574
11575AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11576
11577
11578AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11579
11580
11581MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11582
11583# For better backward compatibility.  To be removed once Automake 1.9.x
11584# dies out for good.  For more background, see:
11585# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11586# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11587mkdir_p='$(MKDIR_P)'
11588
11589# We need awk for the "check" target.  The system "awk" is bad on
11590# some platforms.
11591# Always define AMTAR for backward compatibility.  Yes, it's still used
11592# in the wild :-(  We should find a proper way to deprecate it ...
11593AMTAR='$${TAR-tar}'
11594
11595am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11596
11597
11598
11599
11600depcc="$CC"   am_compiler_list=
11601
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11603$as_echo_n "checking dependency style of $depcc... " >&6; }
11604if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11608  # We make a subdir and do the tests there.  Otherwise we can end up
11609  # making bogus files that we don't know about and never remove.  For
11610  # instance it was reported that on HP-UX the gcc test will end up
11611  # making a dummy file named 'D' -- because '-MD' means "put the output
11612  # in D".
11613  rm -rf conftest.dir
11614  mkdir conftest.dir
11615  # Copy depcomp to subdir because otherwise we won't find it if we're
11616  # using a relative directory.
11617  cp "$am_depcomp" conftest.dir
11618  cd conftest.dir
11619  # We will build objects and dependencies in a subdirectory because
11620  # it helps to detect inapplicable dependency modes.  For instance
11621  # both Tru64's cc and ICC support -MD to output dependencies as a
11622  # side effect of compilation, but ICC will put the dependencies in
11623  # the current directory while Tru64 will put them in the object
11624  # directory.
11625  mkdir sub
11626
11627  am_cv_CC_dependencies_compiler_type=none
11628  if test "$am_compiler_list" = ""; then
11629     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11630  fi
11631  am__universal=false
11632  case " $depcc " in #(
11633     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11634     esac
11635
11636  for depmode in $am_compiler_list; do
11637    # Setup a source with many dependencies, because some compilers
11638    # like to wrap large dependency lists on column 80 (with \), and
11639    # we should not choose a depcomp mode which is confused by this.
11640    #
11641    # We need to recreate these files for each test, as the compiler may
11642    # overwrite some of them when testing with obscure command lines.
11643    # This happens at least with the AIX C compiler.
11644    : > sub/conftest.c
11645    for i in 1 2 3 4 5 6; do
11646      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11647      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11648      # Solaris 10 /bin/sh.
11649      echo '/* dummy */' > sub/conftst$i.h
11650    done
11651    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11652
11653    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11654    # mode.  It turns out that the SunPro C++ compiler does not properly
11655    # handle '-M -o', and we need to detect this.  Also, some Intel
11656    # versions had trouble with output in subdirs.
11657    am__obj=sub/conftest.${OBJEXT-o}
11658    am__minus_obj="-o $am__obj"
11659    case $depmode in
11660    gcc)
11661      # This depmode causes a compiler race in universal mode.
11662      test "$am__universal" = false || continue
11663      ;;
11664    nosideeffect)
11665      # After this tag, mechanisms are not by side-effect, so they'll
11666      # only be used when explicitly requested.
11667      if test "x$enable_dependency_tracking" = xyes; then
11668	continue
11669      else
11670	break
11671      fi
11672      ;;
11673    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11674      # This compiler won't grok '-c -o', but also, the minuso test has
11675      # not run yet.  These depmodes are late enough in the game, and
11676      # so weak that their functioning should not be impacted.
11677      am__obj=conftest.${OBJEXT-o}
11678      am__minus_obj=
11679      ;;
11680    none) break ;;
11681    esac
11682    if depmode=$depmode \
11683       source=sub/conftest.c object=$am__obj \
11684       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11685       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11686         >/dev/null 2>conftest.err &&
11687       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11688       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11689       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11690       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11691      # icc doesn't choke on unknown options, it will just issue warnings
11692      # or remarks (even with -Werror).  So we grep stderr for any message
11693      # that says an option was ignored or not supported.
11694      # When given -MP, icc 7.0 and 7.1 complain thusly:
11695      #   icc: Command line warning: ignoring option '-M'; no argument required
11696      # The diagnosis changed in icc 8.0:
11697      #   icc: Command line remark: option '-MP' not supported
11698      if (grep 'ignoring option' conftest.err ||
11699          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11700        am_cv_CC_dependencies_compiler_type=$depmode
11701        break
11702      fi
11703    fi
11704  done
11705
11706  cd ..
11707  rm -rf conftest.dir
11708else
11709  am_cv_CC_dependencies_compiler_type=none
11710fi
11711
11712fi
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11716
11717 if
11718  test "x$enable_dependency_tracking" != xno \
11719  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11720  am__fastdepCC_TRUE=
11721  am__fastdepCC_FALSE='#'
11722else
11723  am__fastdepCC_TRUE='#'
11724  am__fastdepCC_FALSE=
11725fi
11726
11727
11728
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11731$as_echo_n "checking for library containing dlsym... " >&6; }
11732if ${ac_cv_search_dlsym+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  ac_func_search_save_LIBS=$LIBS
11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739/* Override any GCC internal prototype to avoid an error.
11740   Use char because int might match the return type of a GCC
11741   builtin and then its argument prototype would still apply.  */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char dlsym ();
11746int
11747main ()
11748{
11749return dlsym ();
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754for ac_lib in '' dl; do
11755  if test -z "$ac_lib"; then
11756    ac_res="none required"
11757  else
11758    ac_res=-l$ac_lib
11759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11760  fi
11761  if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_search_dlsym=$ac_res
11763fi
11764rm -f core conftest.err conftest.$ac_objext \
11765    conftest$ac_exeext
11766  if ${ac_cv_search_dlsym+:} false; then :
11767  break
11768fi
11769done
11770if ${ac_cv_search_dlsym+:} false; then :
11771
11772else
11773  ac_cv_search_dlsym=no
11774fi
11775rm conftest.$ac_ext
11776LIBS=$ac_func_search_save_LIBS
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11779$as_echo "$ac_cv_search_dlsym" >&6; }
11780ac_res=$ac_cv_search_dlsym
11781if test "$ac_res" != no; then :
11782  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11783
11784fi
11785
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11787$as_echo_n "checking for library containing pthread_create... " >&6; }
11788if ${ac_cv_search_pthread_create+:} false; then :
11789  $as_echo_n "(cached) " >&6
11790else
11791  ac_func_search_save_LIBS=$LIBS
11792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h.  */
11794
11795/* Override any GCC internal prototype to avoid an error.
11796   Use char because int might match the return type of a GCC
11797   builtin and then its argument prototype would still apply.  */
11798#ifdef __cplusplus
11799extern "C"
11800#endif
11801char pthread_create ();
11802int
11803main ()
11804{
11805return pthread_create ();
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810for ac_lib in '' pthread; do
11811  if test -z "$ac_lib"; then
11812    ac_res="none required"
11813  else
11814    ac_res=-l$ac_lib
11815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11816  fi
11817  if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_search_pthread_create=$ac_res
11819fi
11820rm -f core conftest.err conftest.$ac_objext \
11821    conftest$ac_exeext
11822  if ${ac_cv_search_pthread_create+:} false; then :
11823  break
11824fi
11825done
11826if ${ac_cv_search_pthread_create+:} false; then :
11827
11828else
11829  ac_cv_search_pthread_create=no
11830fi
11831rm conftest.$ac_ext
11832LIBS=$ac_func_search_save_LIBS
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11835$as_echo "$ac_cv_search_pthread_create" >&6; }
11836ac_res=$ac_cv_search_pthread_create
11837if test "$ac_res" != no; then :
11838  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11839
11840fi
11841
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11843$as_echo_n "checking for library containing clock_gettime... " >&6; }
11844if ${ac_cv_search_clock_gettime+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  ac_func_search_save_LIBS=$LIBS
11848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849/* end confdefs.h.  */
11850
11851/* Override any GCC internal prototype to avoid an error.
11852   Use char because int might match the return type of a GCC
11853   builtin and then its argument prototype would still apply.  */
11854#ifdef __cplusplus
11855extern "C"
11856#endif
11857char clock_gettime ();
11858int
11859main ()
11860{
11861return clock_gettime ();
11862  ;
11863  return 0;
11864}
11865_ACEOF
11866for ac_lib in '' rt; do
11867  if test -z "$ac_lib"; then
11868    ac_res="none required"
11869  else
11870    ac_res=-l$ac_lib
11871    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11872  fi
11873  if ac_fn_c_try_link "$LINENO"; then :
11874  ac_cv_search_clock_gettime=$ac_res
11875fi
11876rm -f core conftest.err conftest.$ac_objext \
11877    conftest$ac_exeext
11878  if ${ac_cv_search_clock_gettime+:} false; then :
11879  break
11880fi
11881done
11882if ${ac_cv_search_clock_gettime+:} false; then :
11883
11884else
11885  ac_cv_search_clock_gettime=no
11886fi
11887rm conftest.$ac_ext
11888LIBS=$ac_func_search_save_LIBS
11889fi
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11891$as_echo "$ac_cv_search_clock_gettime" >&6; }
11892ac_res=$ac_cv_search_clock_gettime
11893if test "$ac_res" != no; then :
11894  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11895
11896fi
11897
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_connect" >&5
11899$as_echo_n "checking for library containing SSL_connect... " >&6; }
11900if ${ac_cv_search_SSL_connect+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  ac_func_search_save_LIBS=$LIBS
11904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905/* end confdefs.h.  */
11906
11907/* Override any GCC internal prototype to avoid an error.
11908   Use char because int might match the return type of a GCC
11909   builtin and then its argument prototype would still apply.  */
11910#ifdef __cplusplus
11911extern "C"
11912#endif
11913char SSL_connect ();
11914int
11915main ()
11916{
11917return SSL_connect ();
11918  ;
11919  return 0;
11920}
11921_ACEOF
11922for ac_lib in '' ssl; do
11923  if test -z "$ac_lib"; then
11924    ac_res="none required"
11925  else
11926    ac_res=-l$ac_lib
11927    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11928  fi
11929  if ac_fn_c_try_link "$LINENO"; then :
11930  ac_cv_search_SSL_connect=$ac_res
11931fi
11932rm -f core conftest.err conftest.$ac_objext \
11933    conftest$ac_exeext
11934  if ${ac_cv_search_SSL_connect+:} false; then :
11935  break
11936fi
11937done
11938if ${ac_cv_search_SSL_connect+:} false; then :
11939
11940else
11941  ac_cv_search_SSL_connect=no
11942fi
11943rm conftest.$ac_ext
11944LIBS=$ac_func_search_save_LIBS
11945fi
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_connect" >&5
11947$as_echo "$ac_cv_search_SSL_connect" >&6; }
11948ac_res=$ac_cv_search_SSL_connect
11949if test "$ac_res" != no; then :
11950  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11951
11952fi
11953
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing humanize_number" >&5
11955$as_echo_n "checking for library containing humanize_number... " >&6; }
11956if ${ac_cv_search_humanize_number+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_func_search_save_LIBS=$LIBS
11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962
11963/* Override any GCC internal prototype to avoid an error.
11964   Use char because int might match the return type of a GCC
11965   builtin and then its argument prototype would still apply.  */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char humanize_number ();
11970int
11971main ()
11972{
11973return humanize_number ();
11974  ;
11975  return 0;
11976}
11977_ACEOF
11978for ac_lib in '' util; do
11979  if test -z "$ac_lib"; then
11980    ac_res="none required"
11981  else
11982    ac_res=-l$ac_lib
11983    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11984  fi
11985  if ac_fn_c_try_link "$LINENO"; then :
11986  ac_cv_search_humanize_number=$ac_res
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989    conftest$ac_exeext
11990  if ${ac_cv_search_humanize_number+:} false; then :
11991  break
11992fi
11993done
11994if ${ac_cv_search_humanize_number+:} false; then :
11995
11996else
11997  ac_cv_search_humanize_number=no
11998fi
11999rm conftest.$ac_ext
12000LIBS=$ac_func_search_save_LIBS
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_humanize_number" >&5
12003$as_echo "$ac_cv_search_humanize_number" >&6; }
12004ac_res=$ac_cv_search_humanize_number
12005if test "$ac_res" != no; then :
12006  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12007
12008fi
12009
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pidfile_open" >&5
12011$as_echo_n "checking for library containing pidfile_open... " >&6; }
12012if ${ac_cv_search_pidfile_open+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  ac_func_search_save_LIBS=$LIBS
12016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018
12019/* Override any GCC internal prototype to avoid an error.
12020   Use char because int might match the return type of a GCC
12021   builtin and then its argument prototype would still apply.  */
12022#ifdef __cplusplus
12023extern "C"
12024#endif
12025char pidfile_open ();
12026int
12027main ()
12028{
12029return pidfile_open ();
12030  ;
12031  return 0;
12032}
12033_ACEOF
12034for ac_lib in '' util; do
12035  if test -z "$ac_lib"; then
12036    ac_res="none required"
12037  else
12038    ac_res=-l$ac_lib
12039    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12040  fi
12041  if ac_fn_c_try_link "$LINENO"; then :
12042  ac_cv_search_pidfile_open=$ac_res
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045    conftest$ac_exeext
12046  if ${ac_cv_search_pidfile_open+:} false; then :
12047  break
12048fi
12049done
12050if ${ac_cv_search_pidfile_open+:} false; then :
12051
12052else
12053  ac_cv_search_pidfile_open=no
12054fi
12055rm conftest.$ac_ext
12056LIBS=$ac_func_search_save_LIBS
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pidfile_open" >&5
12059$as_echo "$ac_cv_search_pidfile_open" >&6; }
12060ac_res=$ac_cv_search_pidfile_open
12061if test "$ac_res" != no; then :
12062  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12063
12064fi
12065
12066
12067# Checks for header files.
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12069$as_echo_n "checking for ANSI C header files... " >&6; }
12070if ${ac_cv_header_stdc+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h.  */
12075#include <stdlib.h>
12076#include <stdarg.h>
12077#include <string.h>
12078#include <float.h>
12079
12080int
12081main ()
12082{
12083
12084  ;
12085  return 0;
12086}
12087_ACEOF
12088if ac_fn_c_try_compile "$LINENO"; then :
12089  ac_cv_header_stdc=yes
12090else
12091  ac_cv_header_stdc=no
12092fi
12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094
12095if test $ac_cv_header_stdc = yes; then
12096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099#include <string.h>
12100
12101_ACEOF
12102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12103  $EGREP "memchr" >/dev/null 2>&1; then :
12104
12105else
12106  ac_cv_header_stdc=no
12107fi
12108rm -f conftest*
12109
12110fi
12111
12112if test $ac_cv_header_stdc = yes; then
12113  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116#include <stdlib.h>
12117
12118_ACEOF
12119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12120  $EGREP "free" >/dev/null 2>&1; then :
12121
12122else
12123  ac_cv_header_stdc=no
12124fi
12125rm -f conftest*
12126
12127fi
12128
12129if test $ac_cv_header_stdc = yes; then
12130  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12131  if test "$cross_compiling" = yes; then :
12132  :
12133else
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136#include <ctype.h>
12137#include <stdlib.h>
12138#if ((' ' & 0x0FF) == 0x020)
12139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12141#else
12142# define ISLOWER(c) \
12143		   (('a' <= (c) && (c) <= 'i') \
12144		     || ('j' <= (c) && (c) <= 'r') \
12145		     || ('s' <= (c) && (c) <= 'z'))
12146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12147#endif
12148
12149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12150int
12151main ()
12152{
12153  int i;
12154  for (i = 0; i < 256; i++)
12155    if (XOR (islower (i), ISLOWER (i))
12156	|| toupper (i) != TOUPPER (i))
12157      return 2;
12158  return 0;
12159}
12160_ACEOF
12161if ac_fn_c_try_run "$LINENO"; then :
12162
12163else
12164  ac_cv_header_stdc=no
12165fi
12166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12167  conftest.$ac_objext conftest.beam conftest.$ac_ext
12168fi
12169
12170fi
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12173$as_echo "$ac_cv_header_stdc" >&6; }
12174if test $ac_cv_header_stdc = yes; then
12175
12176$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12177
12178fi
12179
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12181$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12182if ${ac_cv_header_sys_wait_h+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187#include <sys/types.h>
12188#include <sys/wait.h>
12189#ifndef WEXITSTATUS
12190# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12191#endif
12192#ifndef WIFEXITED
12193# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12194#endif
12195
12196int
12197main ()
12198{
12199  int s;
12200  wait (&s);
12201  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12202  ;
12203  return 0;
12204}
12205_ACEOF
12206if ac_fn_c_try_compile "$LINENO"; then :
12207  ac_cv_header_sys_wait_h=yes
12208else
12209  ac_cv_header_sys_wait_h=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12214$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12215if test $ac_cv_header_sys_wait_h = yes; then
12216
12217$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12218
12219fi
12220
12221for ac_header in mach/mach.h stdint.h pthread_np.h printf.h
12222do :
12223  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12224ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12225if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12226  cat >>confdefs.h <<_ACEOF
12227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228_ACEOF
12229
12230fi
12231
12232done
12233
12234
12235
12236$as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
12237
12238
12239# Checks for typedefs, structures, and compiler characteristics.
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12241$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12242if ${ac_cv_c_const+:} false; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246/* end confdefs.h.  */
12247
12248int
12249main ()
12250{
12251
12252#ifndef __cplusplus
12253  /* Ultrix mips cc rejects this sort of thing.  */
12254  typedef int charset[2];
12255  const charset cs = { 0, 0 };
12256  /* SunOS 4.1.1 cc rejects this.  */
12257  char const *const *pcpcc;
12258  char **ppc;
12259  /* NEC SVR4.0.2 mips cc rejects this.  */
12260  struct point {int x, y;};
12261  static struct point const zero = {0,0};
12262  /* AIX XL C 1.02.0.0 rejects this.
12263     It does not let you subtract one const X* pointer from another in
12264     an arm of an if-expression whose if-part is not a constant
12265     expression */
12266  const char *g = "string";
12267  pcpcc = &g + (g ? g-g : 0);
12268  /* HPUX 7.0 cc rejects these. */
12269  ++pcpcc;
12270  ppc = (char**) pcpcc;
12271  pcpcc = (char const *const *) ppc;
12272  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12273    char tx;
12274    char *t = &tx;
12275    char const *s = 0 ? (char *) 0 : (char const *) 0;
12276
12277    *t++ = 0;
12278    if (s) return 0;
12279  }
12280  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12281    int x[] = {25, 17};
12282    const int *foo = &x[0];
12283    ++foo;
12284  }
12285  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12286    typedef const int *iptr;
12287    iptr p = 0;
12288    ++p;
12289  }
12290  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12291       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12292    struct s { int j; const int *ap[3]; } bx;
12293    struct s *b = &bx; b->j = 5;
12294  }
12295  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12296    const int foo = 10;
12297    if (!foo) return 0;
12298  }
12299  return !cs[0] && !zero.x;
12300#endif
12301
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_compile "$LINENO"; then :
12307  ac_cv_c_const=yes
12308else
12309  ac_cv_c_const=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312fi
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12314$as_echo "$ac_cv_c_const" >&6; }
12315if test $ac_cv_c_const = no; then
12316
12317$as_echo "#define const /**/" >>confdefs.h
12318
12319fi
12320
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12322$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12323if ${ac_cv_type_uid_t+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328#include <sys/types.h>
12329
12330_ACEOF
12331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12332  $EGREP "uid_t" >/dev/null 2>&1; then :
12333  ac_cv_type_uid_t=yes
12334else
12335  ac_cv_type_uid_t=no
12336fi
12337rm -f conftest*
12338
12339fi
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12341$as_echo "$ac_cv_type_uid_t" >&6; }
12342if test $ac_cv_type_uid_t = no; then
12343
12344$as_echo "#define uid_t int" >>confdefs.h
12345
12346
12347$as_echo "#define gid_t int" >>confdefs.h
12348
12349fi
12350
12351ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12352if test "x$ac_cv_type_pid_t" = xyes; then :
12353
12354else
12355
12356cat >>confdefs.h <<_ACEOF
12357#define pid_t int
12358_ACEOF
12359
12360fi
12361
12362ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12363if test "x$ac_cv_type_size_t" = xyes; then :
12364
12365else
12366
12367cat >>confdefs.h <<_ACEOF
12368#define size_t unsigned int
12369_ACEOF
12370
12371fi
12372
12373ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12374if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12375
12376cat >>confdefs.h <<_ACEOF
12377#define HAVE_STRUCT_STAT_ST_RDEV 1
12378_ACEOF
12379
12380
12381fi
12382
12383
12384ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__key" "ac_cv_member_struct_ipc_perm___key" "
12385#include <sys/types.h>
12386#include <sys/ipc.h>
12387
12388"
12389if test "x$ac_cv_member_struct_ipc_perm___key" = xyes; then :
12390
12391$as_echo "#define HAVE_IPC_PERM___KEY /**/" >>confdefs.h
12392
12393fi
12394
12395
12396ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_key" "ac_cv_member_struct_ipc_perm__key" "
12397#include <sys/types.h>
12398#include <sys/ipc.h>
12399
12400"
12401if test "x$ac_cv_member_struct_ipc_perm__key" = xyes; then :
12402
12403$as_echo "#define HAVE_IPC_PERM__KEY /**/" >>confdefs.h
12404
12405fi
12406
12407
12408ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__seq" "ac_cv_member_struct_ipc_perm___seq" "
12409#include <sys/types.h>
12410#include <sys/ipc.h>
12411
12412"
12413if test "x$ac_cv_member_struct_ipc_perm___seq" = xyes; then :
12414
12415$as_echo "#define HAVE_IPC_PERM___SEQ /**/" >>confdefs.h
12416
12417fi
12418
12419
12420ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_seq" "ac_cv_member_struct_ipc_perm__seq" "
12421#include <sys/types.h>
12422#include <sys/ipc.h>
12423
12424"
12425if test "x$ac_cv_member_struct_ipc_perm__seq" = xyes; then :
12426
12427$as_echo "#define HAVE_IPC_PERM__SEQ /**/" >>confdefs.h
12428
12429fi
12430
12431
12432ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "
12433#include <sys/types.h>
12434#include <sys/socket.h>
12435
12436"
12437if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
12438
12439$as_echo "#define HAVE_SOCKADDR_STORAGE_SS_LEN /**/" >>confdefs.h
12440
12441fi
12442
12443
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12445$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12446if ${ac_cv_header_time+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450/* end confdefs.h.  */
12451#include <sys/types.h>
12452#include <sys/time.h>
12453#include <time.h>
12454
12455int
12456main ()
12457{
12458if ((struct tm *) 0)
12459return 0;
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_compile "$LINENO"; then :
12465  ac_cv_header_time=yes
12466else
12467  ac_cv_header_time=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12472$as_echo "$ac_cv_header_time" >&6; }
12473if test $ac_cv_header_time = yes; then
12474
12475$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12476
12477fi
12478
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12480$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12481if ${ac_cv_struct_tm+:} false; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486#include <sys/types.h>
12487#include <time.h>
12488
12489int
12490main ()
12491{
12492struct tm tm;
12493				     int *p = &tm.tm_sec;
12494				     return !p;
12495  ;
12496  return 0;
12497}
12498_ACEOF
12499if ac_fn_c_try_compile "$LINENO"; then :
12500  ac_cv_struct_tm=time.h
12501else
12502  ac_cv_struct_tm=sys/time.h
12503fi
12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12507$as_echo "$ac_cv_struct_tm" >&6; }
12508if test $ac_cv_struct_tm = sys/time.h; then
12509
12510$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12511
12512fi
12513
12514
12515# Checks for library functions.
12516for ac_header in unistd.h
12517do :
12518  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12519if test "x$ac_cv_header_unistd_h" = xyes; then :
12520  cat >>confdefs.h <<_ACEOF
12521#define HAVE_UNISTD_H 1
12522_ACEOF
12523
12524fi
12525
12526done
12527
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
12529$as_echo_n "checking for working chown... " >&6; }
12530if ${ac_cv_func_chown_works+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533  if test "$cross_compiling" = yes; then :
12534  ac_cv_func_chown_works=no
12535else
12536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537/* end confdefs.h.  */
12538$ac_includes_default
12539#include <fcntl.h>
12540
12541int
12542main ()
12543{
12544  char *f = "conftest.chown";
12545  struct stat before, after;
12546
12547  if (creat (f, 0600) < 0)
12548    return 1;
12549  if (stat (f, &before) < 0)
12550    return 1;
12551  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12552    return 1;
12553  if (stat (f, &after) < 0)
12554    return 1;
12555  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12556
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561if ac_fn_c_try_run "$LINENO"; then :
12562  ac_cv_func_chown_works=yes
12563else
12564  ac_cv_func_chown_works=no
12565fi
12566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12567  conftest.$ac_objext conftest.beam conftest.$ac_ext
12568fi
12569
12570rm -f conftest.chown
12571
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
12574$as_echo "$ac_cv_func_chown_works" >&6; }
12575if test $ac_cv_func_chown_works = yes; then
12576
12577$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
12578
12579fi
12580
12581for ac_header in vfork.h
12582do :
12583  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12584if test "x$ac_cv_header_vfork_h" = xyes; then :
12585  cat >>confdefs.h <<_ACEOF
12586#define HAVE_VFORK_H 1
12587_ACEOF
12588
12589fi
12590
12591done
12592
12593for ac_func in fork vfork
12594do :
12595  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12598  cat >>confdefs.h <<_ACEOF
12599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12600_ACEOF
12601
12602fi
12603done
12604
12605if test "x$ac_cv_func_fork" = xyes; then
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12607$as_echo_n "checking for working fork... " >&6; }
12608if ${ac_cv_func_fork_works+:} false; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  if test "$cross_compiling" = yes; then :
12612  ac_cv_func_fork_works=cross
12613else
12614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615/* end confdefs.h.  */
12616$ac_includes_default
12617int
12618main ()
12619{
12620
12621	  /* By Ruediger Kuhlmann. */
12622	  return fork () < 0;
12623
12624  ;
12625  return 0;
12626}
12627_ACEOF
12628if ac_fn_c_try_run "$LINENO"; then :
12629  ac_cv_func_fork_works=yes
12630else
12631  ac_cv_func_fork_works=no
12632fi
12633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12634  conftest.$ac_objext conftest.beam conftest.$ac_ext
12635fi
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12639$as_echo "$ac_cv_func_fork_works" >&6; }
12640
12641else
12642  ac_cv_func_fork_works=$ac_cv_func_fork
12643fi
12644if test "x$ac_cv_func_fork_works" = xcross; then
12645  case $host in
12646    *-*-amigaos* | *-*-msdosdjgpp*)
12647      # Override, as these systems have only a dummy fork() stub
12648      ac_cv_func_fork_works=no
12649      ;;
12650    *)
12651      ac_cv_func_fork_works=yes
12652      ;;
12653  esac
12654  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12655$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12656fi
12657ac_cv_func_vfork_works=$ac_cv_func_vfork
12658if test "x$ac_cv_func_vfork" = xyes; then
12659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12660$as_echo_n "checking for working vfork... " >&6; }
12661if ${ac_cv_func_vfork_works+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  if test "$cross_compiling" = yes; then :
12665  ac_cv_func_vfork_works=cross
12666else
12667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669/* Thanks to Paul Eggert for this test.  */
12670$ac_includes_default
12671#include <sys/wait.h>
12672#ifdef HAVE_VFORK_H
12673# include <vfork.h>
12674#endif
12675/* On some sparc systems, changes by the child to local and incoming
12676   argument registers are propagated back to the parent.  The compiler
12677   is told about this with #include <vfork.h>, but some compilers
12678   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12679   static variable whose address is put into a register that is
12680   clobbered by the vfork.  */
12681static void
12682#ifdef __cplusplus
12683sparc_address_test (int arg)
12684# else
12685sparc_address_test (arg) int arg;
12686#endif
12687{
12688  static pid_t child;
12689  if (!child) {
12690    child = vfork ();
12691    if (child < 0) {
12692      perror ("vfork");
12693      _exit(2);
12694    }
12695    if (!child) {
12696      arg = getpid();
12697      write(-1, "", 0);
12698      _exit (arg);
12699    }
12700  }
12701}
12702
12703int
12704main ()
12705{
12706  pid_t parent = getpid ();
12707  pid_t child;
12708
12709  sparc_address_test (0);
12710
12711  child = vfork ();
12712
12713  if (child == 0) {
12714    /* Here is another test for sparc vfork register problems.  This
12715       test uses lots of local variables, at least as many local
12716       variables as main has allocated so far including compiler
12717       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12718       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12719       reuse the register of parent for one of the local variables,
12720       since it will think that parent can't possibly be used any more
12721       in this routine.  Assigning to the local variable will thus
12722       munge parent in the parent process.  */
12723    pid_t
12724      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12725      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12726    /* Convince the compiler that p..p7 are live; otherwise, it might
12727       use the same hardware register for all 8 local variables.  */
12728    if (p != p1 || p != p2 || p != p3 || p != p4
12729	|| p != p5 || p != p6 || p != p7)
12730      _exit(1);
12731
12732    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12733       from child file descriptors.  If the child closes a descriptor
12734       before it execs or exits, this munges the parent's descriptor
12735       as well.  Test for this by closing stdout in the child.  */
12736    _exit(close(fileno(stdout)) != 0);
12737  } else {
12738    int status;
12739    struct stat st;
12740
12741    while (wait(&status) != child)
12742      ;
12743    return (
12744	 /* Was there some problem with vforking?  */
12745	 child < 0
12746
12747	 /* Did the child fail?  (This shouldn't happen.)  */
12748	 || status
12749
12750	 /* Did the vfork/compiler bug occur?  */
12751	 || parent != getpid()
12752
12753	 /* Did the file descriptor bug occur?  */
12754	 || fstat(fileno(stdout), &st) != 0
12755	 );
12756  }
12757}
12758_ACEOF
12759if ac_fn_c_try_run "$LINENO"; then :
12760  ac_cv_func_vfork_works=yes
12761else
12762  ac_cv_func_vfork_works=no
12763fi
12764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12765  conftest.$ac_objext conftest.beam conftest.$ac_ext
12766fi
12767
12768fi
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12770$as_echo "$ac_cv_func_vfork_works" >&6; }
12771
12772fi;
12773if test "x$ac_cv_func_fork_works" = xcross; then
12774  ac_cv_func_vfork_works=$ac_cv_func_vfork
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12776$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12777fi
12778
12779if test "x$ac_cv_func_vfork_works" = xyes; then
12780
12781$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12782
12783else
12784
12785$as_echo "#define vfork fork" >>confdefs.h
12786
12787fi
12788if test "x$ac_cv_func_fork_works" = xyes; then
12789
12790$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12791
12792fi
12793
12794for ac_header in stdlib.h
12795do :
12796  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12797if test "x$ac_cv_header_stdlib_h" = xyes; then :
12798  cat >>confdefs.h <<_ACEOF
12799#define HAVE_STDLIB_H 1
12800_ACEOF
12801
12802fi
12803
12804done
12805
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12807$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12808if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  if test "$cross_compiling" = yes; then :
12812  ac_cv_func_malloc_0_nonnull=no
12813else
12814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12817# include <stdlib.h>
12818#else
12819char *malloc ();
12820#endif
12821
12822int
12823main ()
12824{
12825return ! malloc (0);
12826  ;
12827  return 0;
12828}
12829_ACEOF
12830if ac_fn_c_try_run "$LINENO"; then :
12831  ac_cv_func_malloc_0_nonnull=yes
12832else
12833  ac_cv_func_malloc_0_nonnull=no
12834fi
12835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12836  conftest.$ac_objext conftest.beam conftest.$ac_ext
12837fi
12838
12839fi
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12841$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12842if test $ac_cv_func_malloc_0_nonnull = yes; then :
12843
12844$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12845
12846else
12847  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12848
12849   case " $LIBOBJS " in
12850  *" malloc.$ac_objext "* ) ;;
12851  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12852 ;;
12853esac
12854
12855
12856$as_echo "#define malloc rpl_malloc" >>confdefs.h
12857
12858fi
12859
12860
12861
12862
12863
12864  for ac_header in $ac_header_list
12865do :
12866  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12868"
12869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12870  cat >>confdefs.h <<_ACEOF
12871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12872_ACEOF
12873
12874fi
12875
12876done
12877
12878
12879
12880
12881
12882
12883
12884
12885  for ac_func in $ac_func_list
12886do :
12887  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12889if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12890  cat >>confdefs.h <<_ACEOF
12891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12892_ACEOF
12893
12894fi
12895done
12896
12897
12898
12899
12900
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12902$as_echo_n "checking for working mktime... " >&6; }
12903if ${ac_cv_func_working_mktime+:} false; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  if test "$cross_compiling" = yes; then :
12907  ac_cv_func_working_mktime=no
12908else
12909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h.  */
12911/* Test program from Paul Eggert and Tony Leneis.  */
12912#ifdef TIME_WITH_SYS_TIME
12913# include <sys/time.h>
12914# include <time.h>
12915#else
12916# ifdef HAVE_SYS_TIME_H
12917#  include <sys/time.h>
12918# else
12919#  include <time.h>
12920# endif
12921#endif
12922
12923#include <limits.h>
12924#include <stdlib.h>
12925
12926#ifdef HAVE_UNISTD_H
12927# include <unistd.h>
12928#endif
12929
12930#ifndef HAVE_ALARM
12931# define alarm(X) /* empty */
12932#endif
12933
12934/* Work around redefinition to rpl_putenv by other config tests.  */
12935#undef putenv
12936
12937static time_t time_t_max;
12938static time_t time_t_min;
12939
12940/* Values we'll use to set the TZ environment variable.  */
12941static const char *tz_strings[] = {
12942  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12943  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12944};
12945#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12946
12947/* Return 0 if mktime fails to convert a date in the spring-forward gap.
12948   Based on a problem report from Andreas Jaeger.  */
12949static int
12950spring_forward_gap ()
12951{
12952  /* glibc (up to about 1998-10-07) failed this test. */
12953  struct tm tm;
12954
12955  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12956     instead of "TZ=America/Vancouver" in order to detect the bug even
12957     on systems that don't support the Olson extension, or don't have the
12958     full zoneinfo tables installed.  */
12959  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12960
12961  tm.tm_year = 98;
12962  tm.tm_mon = 3;
12963  tm.tm_mday = 5;
12964  tm.tm_hour = 2;
12965  tm.tm_min = 0;
12966  tm.tm_sec = 0;
12967  tm.tm_isdst = -1;
12968  return mktime (&tm) != (time_t) -1;
12969}
12970
12971static int
12972mktime_test1 (time_t now)
12973{
12974  struct tm *lt;
12975  return ! (lt = localtime (&now)) || mktime (lt) == now;
12976}
12977
12978static int
12979mktime_test (time_t now)
12980{
12981  return (mktime_test1 (now)
12982	  && mktime_test1 ((time_t) (time_t_max - now))
12983	  && mktime_test1 ((time_t) (time_t_min + now)));
12984}
12985
12986static int
12987irix_6_4_bug ()
12988{
12989  /* Based on code from Ariel Faigon.  */
12990  struct tm tm;
12991  tm.tm_year = 96;
12992  tm.tm_mon = 3;
12993  tm.tm_mday = 0;
12994  tm.tm_hour = 0;
12995  tm.tm_min = 0;
12996  tm.tm_sec = 0;
12997  tm.tm_isdst = -1;
12998  mktime (&tm);
12999  return tm.tm_mon == 2 && tm.tm_mday == 31;
13000}
13001
13002static int
13003bigtime_test (int j)
13004{
13005  struct tm tm;
13006  time_t now;
13007  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13008  now = mktime (&tm);
13009  if (now != (time_t) -1)
13010    {
13011      struct tm *lt = localtime (&now);
13012      if (! (lt
13013	     && lt->tm_year == tm.tm_year
13014	     && lt->tm_mon == tm.tm_mon
13015	     && lt->tm_mday == tm.tm_mday
13016	     && lt->tm_hour == tm.tm_hour
13017	     && lt->tm_min == tm.tm_min
13018	     && lt->tm_sec == tm.tm_sec
13019	     && lt->tm_yday == tm.tm_yday
13020	     && lt->tm_wday == tm.tm_wday
13021	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13022		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13023	return 0;
13024    }
13025  return 1;
13026}
13027
13028static int
13029year_2050_test ()
13030{
13031  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13032     ignoring leap seconds.  */
13033  unsigned long int answer = 2527315200UL;
13034
13035  struct tm tm;
13036  time_t t;
13037  tm.tm_year = 2050 - 1900;
13038  tm.tm_mon = 2 - 1;
13039  tm.tm_mday = 1;
13040  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13041  tm.tm_isdst = -1;
13042
13043  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13044     instead of "TZ=America/Vancouver" in order to detect the bug even
13045     on systems that don't support the Olson extension, or don't have the
13046     full zoneinfo tables installed.  */
13047  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13048
13049  t = mktime (&tm);
13050
13051  /* Check that the result is either a failure, or close enough
13052     to the correct answer that we can assume the discrepancy is
13053     due to leap seconds.  */
13054  return (t == (time_t) -1
13055	  || (0 < t && answer - 120 <= t && t <= answer + 120));
13056}
13057
13058int
13059main ()
13060{
13061  time_t t, delta;
13062  int i, j;
13063
13064  /* This test makes some buggy mktime implementations loop.
13065     Give up after 60 seconds; a mktime slower than that
13066     isn't worth using anyway.  */
13067  alarm (60);
13068
13069  for (;;)
13070    {
13071      t = (time_t_max << 1) + 1;
13072      if (t <= time_t_max)
13073	break;
13074      time_t_max = t;
13075    }
13076  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13077
13078  delta = time_t_max / 997; /* a suitable prime number */
13079  for (i = 0; i < N_STRINGS; i++)
13080    {
13081      if (tz_strings[i])
13082	putenv ((char*) tz_strings[i]);
13083
13084      for (t = 0; t <= time_t_max - delta; t += delta)
13085	if (! mktime_test (t))
13086	  return 1;
13087      if (! (mktime_test ((time_t) 1)
13088	     && mktime_test ((time_t) (60 * 60))
13089	     && mktime_test ((time_t) (60 * 60 * 24))))
13090	return 1;
13091
13092      for (j = 1; ; j <<= 1)
13093	if (! bigtime_test (j))
13094	  return 1;
13095	else if (INT_MAX / 2 < j)
13096	  break;
13097      if (! bigtime_test (INT_MAX))
13098	return 1;
13099    }
13100  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13101}
13102_ACEOF
13103if ac_fn_c_try_run "$LINENO"; then :
13104  ac_cv_func_working_mktime=yes
13105else
13106  ac_cv_func_working_mktime=no
13107fi
13108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13109  conftest.$ac_objext conftest.beam conftest.$ac_ext
13110fi
13111
13112fi
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13114$as_echo "$ac_cv_func_working_mktime" >&6; }
13115if test $ac_cv_func_working_mktime = no; then
13116  case " $LIBOBJS " in
13117  *" mktime.$ac_objext "* ) ;;
13118  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13119 ;;
13120esac
13121
13122fi
13123
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13125$as_echo_n "checking return type of signal handlers... " >&6; }
13126if ${ac_cv_type_signal+:} false; then :
13127  $as_echo_n "(cached) " >&6
13128else
13129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130/* end confdefs.h.  */
13131#include <sys/types.h>
13132#include <signal.h>
13133
13134int
13135main ()
13136{
13137return *(signal (0, 0)) (0) == 1;
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142if ac_fn_c_try_compile "$LINENO"; then :
13143  ac_cv_type_signal=int
13144else
13145  ac_cv_type_signal=void
13146fi
13147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148fi
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13150$as_echo "$ac_cv_type_signal" >&6; }
13151
13152cat >>confdefs.h <<_ACEOF
13153#define RETSIGTYPE $ac_cv_type_signal
13154_ACEOF
13155
13156
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13158$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13159if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13160  $as_echo_n "(cached) " >&6
13161else
13162  rm -f conftest.sym conftest.file
13163echo >conftest.file
13164if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13165  if test "$cross_compiling" = yes; then :
13166  ac_cv_func_lstat_dereferences_slashed_symlink=no
13167else
13168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h.  */
13170$ac_includes_default
13171int
13172main ()
13173{
13174struct stat sbuf;
13175     /* Linux will dereference the symlink and fail, as required by POSIX.
13176	That is better in the sense that it means we will not
13177	have to compile and use the lstat wrapper.  */
13178     return lstat ("conftest.sym/", &sbuf) == 0;
13179  ;
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_run "$LINENO"; then :
13184  ac_cv_func_lstat_dereferences_slashed_symlink=yes
13185else
13186  ac_cv_func_lstat_dereferences_slashed_symlink=no
13187fi
13188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13189  conftest.$ac_objext conftest.beam conftest.$ac_ext
13190fi
13191
13192else
13193  # If the `ln -s' command failed, then we probably don't even
13194  # have an lstat function.
13195  ac_cv_func_lstat_dereferences_slashed_symlink=no
13196fi
13197rm -f conftest.sym conftest.file
13198
13199fi
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13201$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13202
13203test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13204
13205cat >>confdefs.h <<_ACEOF
13206#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13207_ACEOF
13208
13209
13210if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13211  case " $LIBOBJS " in
13212  *" lstat.$ac_objext "* ) ;;
13213  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13214 ;;
13215esac
13216
13217fi
13218
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13220$as_echo_n "checking whether stat accepts an empty string... " >&6; }
13221if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13222  $as_echo_n "(cached) " >&6
13223else
13224  if test "$cross_compiling" = yes; then :
13225  ac_cv_func_stat_empty_string_bug=yes
13226else
13227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228/* end confdefs.h.  */
13229$ac_includes_default
13230int
13231main ()
13232{
13233struct stat sbuf;
13234  return stat ("", &sbuf) == 0;
13235  ;
13236  return 0;
13237}
13238_ACEOF
13239if ac_fn_c_try_run "$LINENO"; then :
13240  ac_cv_func_stat_empty_string_bug=no
13241else
13242  ac_cv_func_stat_empty_string_bug=yes
13243fi
13244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13245  conftest.$ac_objext conftest.beam conftest.$ac_ext
13246fi
13247
13248fi
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13250$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13251if test $ac_cv_func_stat_empty_string_bug = yes; then
13252  case " $LIBOBJS " in
13253  *" stat.$ac_objext "* ) ;;
13254  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13255 ;;
13256esac
13257
13258
13259cat >>confdefs.h <<_ACEOF
13260#define HAVE_STAT_EMPTY_STRING_BUG 1
13261_ACEOF
13262
13263fi
13264
13265for ac_func in strftime
13266do :
13267  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13268if test "x$ac_cv_func_strftime" = xyes; then :
13269  cat >>confdefs.h <<_ACEOF
13270#define HAVE_STRFTIME 1
13271_ACEOF
13272
13273else
13274  # strftime is in -lintl on SCO UNIX.
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13276$as_echo_n "checking for strftime in -lintl... " >&6; }
13277if ${ac_cv_lib_intl_strftime+:} false; then :
13278  $as_echo_n "(cached) " >&6
13279else
13280  ac_check_lib_save_LIBS=$LIBS
13281LIBS="-lintl  $LIBS"
13282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h.  */
13284
13285/* Override any GCC internal prototype to avoid an error.
13286   Use char because int might match the return type of a GCC
13287   builtin and then its argument prototype would still apply.  */
13288#ifdef __cplusplus
13289extern "C"
13290#endif
13291char strftime ();
13292int
13293main ()
13294{
13295return strftime ();
13296  ;
13297  return 0;
13298}
13299_ACEOF
13300if ac_fn_c_try_link "$LINENO"; then :
13301  ac_cv_lib_intl_strftime=yes
13302else
13303  ac_cv_lib_intl_strftime=no
13304fi
13305rm -f core conftest.err conftest.$ac_objext \
13306    conftest$ac_exeext conftest.$ac_ext
13307LIBS=$ac_check_lib_save_LIBS
13308fi
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13310$as_echo "$ac_cv_lib_intl_strftime" >&6; }
13311if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13312  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13313
13314LIBS="-lintl $LIBS"
13315fi
13316
13317fi
13318done
13319
13320for ac_func in arc4random arc4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_mutex_lock renameat setproctitle sigtimedwait strchr strerror strlcat strlcpy strndup strrchr strstr strtol strtoul unlinkat vis
13321do :
13322  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13324if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13325  cat >>confdefs.h <<_ACEOF
13326#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13327_ACEOF
13328
13329fi
13330done
13331
13332
13333# sys/queue.h exists on most systems, but its capabilities vary a great deal.
13334# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
13335# all of them, and are necessary for OpenBSM.
13336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338
13339	#include <sys/queue.h>
13340
13341int
13342main ()
13343{
13344
13345
13346	#ifndef LIST_FIRST
13347	#error LIST_FIRST missing
13348	#endif
13349	#ifndef TAILQ_FOREACH_SAFE
13350	#error TAILQ_FOREACH_SAFE
13351	#endif
13352
13353  ;
13354  return 0;
13355}
13356_ACEOF
13357if ac_fn_c_try_link "$LINENO"; then :
13358
13359
13360$as_echo "#define HAVE_FULL_QUEUE_H /**/" >>confdefs.h
13361
13362
13363fi
13364rm -f core conftest.err conftest.$ac_objext \
13365    conftest$ac_exeext conftest.$ac_ext
13366
13367# Systems may not define key audit system calls, in which case libbsm cannot
13368# depend on them or it will generate link-time or run-time errors.  Test for
13369# just one.
13370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372
13373	#include <stddef.h>
13374
13375	extern int auditon(int, void *, int);
13376
13377int
13378main ()
13379{
13380
13381	int err;
13382
13383	err = auditon(0, NULL, 0);
13384
13385  ;
13386  return 0;
13387}
13388_ACEOF
13389if ac_fn_c_try_link "$LINENO"; then :
13390
13391
13392$as_echo "#define HAVE_AUDIT_SYSCALLS /**/" >>confdefs.h
13393
13394have_audit_syscalls=true
13395
13396else
13397
13398have_audit_syscalls=false
13399
13400fi
13401rm -f core conftest.err conftest.$ac_objext \
13402    conftest$ac_exeext conftest.$ac_ext
13403 if $have_audit_syscalls; then
13404  HAVE_AUDIT_SYSCALLS_TRUE=
13405  HAVE_AUDIT_SYSCALLS_FALSE='#'
13406else
13407  HAVE_AUDIT_SYSCALLS_TRUE='#'
13408  HAVE_AUDIT_SYSCALLS_FALSE=
13409fi
13410
13411
13412#
13413# We rely on the BSD be32toh() and be32enc()-style endian macros to perform
13414# byte order conversions.  Availability of these varies considerably -- in
13415# general, a system might have neither, be32toh(), or be32toh() and be32enc().
13416# There is also variation in which headers are even present, and whether they
13417# are macros or functions.  Try to organise the world into some simpler cases.
13418# The following macros may be set at the end:
13419#
13420# USE_ENDIAN_H
13421# USE_SYS_ENDIAN_H
13422# USE_MACHINE_ENDIAN_H
13423# USE_COMPAT_ENDIAN_H
13424# USE_COMPAT_ENDIAN_ENC_H
13425#
13426# First, decide which system endian.h to use.
13427#
13428for ac_header in endian.h
13429do :
13430  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13431if test "x$ac_cv_header_endian_h" = xyes; then :
13432  cat >>confdefs.h <<_ACEOF
13433#define HAVE_ENDIAN_H 1
13434_ACEOF
13435
13436	have_endian_h=yes
13437
13438else
13439
13440	have_endian_h=no
13441
13442fi
13443
13444done
13445
13446
13447for ac_header in sys/endian.h
13448do :
13449  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13450if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13451  cat >>confdefs.h <<_ACEOF
13452#define HAVE_SYS_ENDIAN_H 1
13453_ACEOF
13454
13455	have_sys_endian_h=yes
13456
13457else
13458
13459	have_sys_endian_h=no
13460
13461fi
13462
13463done
13464
13465
13466for ac_header in machine/endian.h
13467do :
13468  ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
13469if test "x$ac_cv_header_machine_endian_h" = xyes; then :
13470  cat >>confdefs.h <<_ACEOF
13471#define HAVE_MACHINE_ENDIAN_H 1
13472_ACEOF
13473
13474	have_machine_endian_h=yes
13475
13476else
13477
13478	have_machine_endian_h=no
13479
13480fi
13481
13482done
13483
13484
13485if test $have_endian_h = yes; then
13486
13487$as_echo "#define USE_ENDIAN_H /**/" >>confdefs.h
13488
13489elif test $have_sys_endian_h = yes; then
13490
13491$as_echo "#define USE_SYS_ENDIAN_H /**/" >>confdefs.h
13492
13493elif test $have_machine_endian_h = yes; then
13494
13495$as_echo "#define USE_MACHINE_ENDIAN_H /**/" >>confdefs.h
13496
13497else
13498	as_fn_error $? "no endian.h" "$LINENO" 5
13499fi
13500
13501#
13502# Next, decide if we need to supplement with compat headers.
13503#
13504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h.  */
13506
13507	#ifdef USE_ENDIAN_H
13508	#include <endian.h>
13509	#endif
13510	#ifdef USE_SYS_ENDIAN_H
13511	#include <sys/endian.h>
13512	#endif
13513	#ifdef USE_MACHINE_ENDIAN_H
13514	#include <machine/endian.h>
13515	#endif
13516
13517int
13518main ()
13519{
13520
13521	(void)be32toh(0);
13522
13523  ;
13524  return 0;
13525}
13526_ACEOF
13527if ac_fn_c_try_link "$LINENO"; then :
13528
13529else
13530
13531
13532$as_echo "#define USE_COMPAT_ENDIAN_H /**/" >>confdefs.h
13533
13534	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian.h" >&5
13535$as_echo "using compat/endian.h" >&6; }
13536
13537fi
13538rm -f core conftest.err conftest.$ac_objext \
13539    conftest$ac_exeext conftest.$ac_ext
13540
13541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542/* end confdefs.h.  */
13543
13544	#ifdef USE_ENDIAN_H
13545	#include <endian.h>
13546	#endif
13547	#ifdef USE_SYS_ENDIAN_H
13548	#include <sys/endian.h>
13549	#endif
13550	#ifdef USE_MACHINE_ENDIAN_H
13551	#include <machine/endian.h>
13552	#endif
13553	#ifdef USE_COMPAT_ENDIAN_H
13554	#include "compat/endian.h"
13555	#endif
13556	#include <stdlib.h>
13557
13558int
13559main ()
13560{
13561
13562	int i;
13563
13564	i = bswap16(0);
13565	i = bswap32(0);
13566	i = bswap64(0);
13567	be32enc(NULL, 0);
13568	i = htole64(0);
13569	i = le64toh(0);
13570
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575if ac_fn_c_try_link "$LINENO"; then :
13576
13577else
13578
13579
13580$as_echo "#define USE_COMPAT_ENDIAN_ENC_H /**/" >>confdefs.h
13581
13582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian_enc.h" >&5
13583$as_echo "using compat/endian_enc.h" >&6; }
13584
13585fi
13586rm -f core conftest.err conftest.$ac_objext \
13587    conftest$ac_exeext conftest.$ac_ext
13588
13589# Check to see if Mach IPC is used for trigger messages.  If so, use Mach IPC
13590# instead of the default for sending trigger messages to the audit components.
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/mach/audit_triggers.defs" >&5
13592$as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
13593if ${ac_cv_file__usr_include_mach_audit_triggers_defs+:} false; then :
13594  $as_echo_n "(cached) " >&6
13595else
13596  test "$cross_compiling" = yes &&
13597  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13598if test -r "/usr/include/mach/audit_triggers.defs"; then
13599  ac_cv_file__usr_include_mach_audit_triggers_defs=yes
13600else
13601  ac_cv_file__usr_include_mach_audit_triggers_defs=no
13602fi
13603fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
13605$as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
13606if test "x$ac_cv_file__usr_include_mach_audit_triggers_defs" = xyes; then :
13607
13608
13609$as_echo "#define USE_MACH_IPC /**/" >>confdefs.h
13610
13611use_mach_ipc=true
13612
13613else
13614
13615use_mach_ipc=false
13616
13617fi
13618
13619 if $use_mach_ipc; then
13620  USE_MACH_IPC_TRUE=
13621  USE_MACH_IPC_FALSE='#'
13622else
13623  USE_MACH_IPC_TRUE='#'
13624  USE_MACH_IPC_FALSE=
13625fi
13626
13627
13628ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditdistd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
13629
13630
13631cat >confcache <<\_ACEOF
13632# This file is a shell script that caches the results of configure
13633# tests run on this system so they can be shared between configure
13634# scripts and configure runs, see configure's option --config-cache.
13635# It is not useful on other systems.  If it contains results you don't
13636# want to keep, you may remove or edit it.
13637#
13638# config.status only pays attention to the cache file if you give it
13639# the --recheck option to rerun configure.
13640#
13641# `ac_cv_env_foo' variables (set or unset) will be overridden when
13642# loading this file, other *unset* `ac_cv_foo' will be assigned the
13643# following values.
13644
13645_ACEOF
13646
13647# The following way of writing the cache mishandles newlines in values,
13648# but we know of no workaround that is simple, portable, and efficient.
13649# So, we kill variables containing newlines.
13650# Ultrix sh set writes to stderr and can't be redirected directly,
13651# and sets the high bit in the cache file unless we assign to the vars.
13652(
13653  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13654    eval ac_val=\$$ac_var
13655    case $ac_val in #(
13656    *${as_nl}*)
13657      case $ac_var in #(
13658      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13659$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13660      esac
13661      case $ac_var in #(
13662      _ | IFS | as_nl) ;; #(
13663      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13664      *) { eval $ac_var=; unset $ac_var;} ;;
13665      esac ;;
13666    esac
13667  done
13668
13669  (set) 2>&1 |
13670    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13671    *${as_nl}ac_space=\ *)
13672      # `set' does not quote correctly, so add quotes: double-quote
13673      # substitution turns \\\\ into \\, and sed turns \\ into \.
13674      sed -n \
13675	"s/'/'\\\\''/g;
13676	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13677      ;; #(
13678    *)
13679      # `set' quotes correctly as required by POSIX, so do not add quotes.
13680      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13681      ;;
13682    esac |
13683    sort
13684) |
13685  sed '
13686     /^ac_cv_env_/b end
13687     t clear
13688     :clear
13689     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13690     t end
13691     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13692     :end' >>confcache
13693if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13694  if test -w "$cache_file"; then
13695    if test "x$cache_file" != "x/dev/null"; then
13696      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13697$as_echo "$as_me: updating cache $cache_file" >&6;}
13698      if test ! -f "$cache_file" || test -h "$cache_file"; then
13699	cat confcache >"$cache_file"
13700      else
13701        case $cache_file in #(
13702        */* | ?:*)
13703	  mv -f confcache "$cache_file"$$ &&
13704	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13705        *)
13706	  mv -f confcache "$cache_file" ;;
13707	esac
13708      fi
13709    fi
13710  else
13711    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13712$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13713  fi
13714fi
13715rm -f confcache
13716
13717test "x$prefix" = xNONE && prefix=$ac_default_prefix
13718# Let make expand exec_prefix.
13719test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13720
13721DEFS=-DHAVE_CONFIG_H
13722
13723ac_libobjs=
13724ac_ltlibobjs=
13725U=
13726for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13727  # 1. Remove the extension, and $U if already installed.
13728  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13729  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13730  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13731  #    will be set to the directory where LIBOBJS objects are built.
13732  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13733  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13734done
13735LIBOBJS=$ac_libobjs
13736
13737LTLIBOBJS=$ac_ltlibobjs
13738
13739
13740if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13741  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13742Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743fi
13744if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
13745  as_fn_error $? "conditional \"USE_NATIVE_INCLUDES\" was never defined.
13746Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747fi
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13749$as_echo_n "checking that generated files are newer than configure... " >&6; }
13750   if test -n "$am_sleep_pid"; then
13751     # Hide warnings about reused PIDs.
13752     wait $am_sleep_pid 2>/dev/null
13753   fi
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13755$as_echo "done" >&6; }
13756if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13757  as_fn_error $? "conditional \"AMDEP\" was never defined.
13758Usually this means the macro was only invoked conditionally." "$LINENO" 5
13759fi
13760if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13761  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13762Usually this means the macro was only invoked conditionally." "$LINENO" 5
13763fi
13764 if test -n "$EXEEXT"; then
13765  am__EXEEXT_TRUE=
13766  am__EXEEXT_FALSE='#'
13767else
13768  am__EXEEXT_TRUE='#'
13769  am__EXEEXT_FALSE=
13770fi
13771
13772if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
13773  as_fn_error $? "conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
13774Usually this means the macro was only invoked conditionally." "$LINENO" 5
13775fi
13776if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
13777  as_fn_error $? "conditional \"USE_MACH_IPC\" was never defined.
13778Usually this means the macro was only invoked conditionally." "$LINENO" 5
13779fi
13780
13781: "${CONFIG_STATUS=./config.status}"
13782ac_write_fail=0
13783ac_clean_files_save=$ac_clean_files
13784ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13787as_write_fail=0
13788cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13789#! $SHELL
13790# Generated by $as_me.
13791# Run this file to recreate the current configuration.
13792# Compiler output produced by configure, useful for debugging
13793# configure, is in config.log if it exists.
13794
13795debug=false
13796ac_cs_recheck=false
13797ac_cs_silent=false
13798
13799SHELL=\${CONFIG_SHELL-$SHELL}
13800export SHELL
13801_ASEOF
13802cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13803## -------------------- ##
13804## M4sh Initialization. ##
13805## -------------------- ##
13806
13807# Be more Bourne compatible
13808DUALCASE=1; export DUALCASE # for MKS sh
13809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13810  emulate sh
13811  NULLCMD=:
13812  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13813  # is contrary to our usage.  Disable this feature.
13814  alias -g '${1+"$@"}'='"$@"'
13815  setopt NO_GLOB_SUBST
13816else
13817  case `(set -o) 2>/dev/null` in #(
13818  *posix*) :
13819    set -o posix ;; #(
13820  *) :
13821     ;;
13822esac
13823fi
13824
13825
13826as_nl='
13827'
13828export as_nl
13829# Printing a long string crashes Solaris 7 /usr/bin/printf.
13830as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13833# Prefer a ksh shell builtin over an external printf program on Solaris,
13834# but without wasting forks for bash or zsh.
13835if test -z "$BASH_VERSION$ZSH_VERSION" \
13836    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13837  as_echo='print -r --'
13838  as_echo_n='print -rn --'
13839elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13840  as_echo='printf %s\n'
13841  as_echo_n='printf %s'
13842else
13843  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13844    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13845    as_echo_n='/usr/ucb/echo -n'
13846  else
13847    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13848    as_echo_n_body='eval
13849      arg=$1;
13850      case $arg in #(
13851      *"$as_nl"*)
13852	expr "X$arg" : "X\\(.*\\)$as_nl";
13853	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13854      esac;
13855      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13856    '
13857    export as_echo_n_body
13858    as_echo_n='sh -c $as_echo_n_body as_echo'
13859  fi
13860  export as_echo_body
13861  as_echo='sh -c $as_echo_body as_echo'
13862fi
13863
13864# The user is always right.
13865if test "${PATH_SEPARATOR+set}" != set; then
13866  PATH_SEPARATOR=:
13867  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13868    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13869      PATH_SEPARATOR=';'
13870  }
13871fi
13872
13873
13874# IFS
13875# We need space, tab and new line, in precisely that order.  Quoting is
13876# there to prevent editors from complaining about space-tab.
13877# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13878# splitting by setting IFS to empty value.)
13879IFS=" ""	$as_nl"
13880
13881# Find who we are.  Look in the path if we contain no directory separator.
13882as_myself=
13883case $0 in #((
13884  *[\\/]* ) as_myself=$0 ;;
13885  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888  IFS=$as_save_IFS
13889  test -z "$as_dir" && as_dir=.
13890    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13891  done
13892IFS=$as_save_IFS
13893
13894     ;;
13895esac
13896# We did not find ourselves, most probably we were run as `sh COMMAND'
13897# in which case we are not to be found in the path.
13898if test "x$as_myself" = x; then
13899  as_myself=$0
13900fi
13901if test ! -f "$as_myself"; then
13902  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13903  exit 1
13904fi
13905
13906# Unset variables that we do not need and which cause bugs (e.g. in
13907# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13908# suppresses any "Segmentation fault" message there.  '((' could
13909# trigger a bug in pdksh 5.2.14.
13910for as_var in BASH_ENV ENV MAIL MAILPATH
13911do eval test x\${$as_var+set} = xset \
13912  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13913done
13914PS1='$ '
13915PS2='> '
13916PS4='+ '
13917
13918# NLS nuisances.
13919LC_ALL=C
13920export LC_ALL
13921LANGUAGE=C
13922export LANGUAGE
13923
13924# CDPATH.
13925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13926
13927
13928# as_fn_error STATUS ERROR [LINENO LOG_FD]
13929# ----------------------------------------
13930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13932# script with STATUS, using 1 if that was 0.
13933as_fn_error ()
13934{
13935  as_status=$1; test $as_status -eq 0 && as_status=1
13936  if test "$4"; then
13937    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13938    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13939  fi
13940  $as_echo "$as_me: error: $2" >&2
13941  as_fn_exit $as_status
13942} # as_fn_error
13943
13944
13945# as_fn_set_status STATUS
13946# -----------------------
13947# Set $? to STATUS, without forking.
13948as_fn_set_status ()
13949{
13950  return $1
13951} # as_fn_set_status
13952
13953# as_fn_exit STATUS
13954# -----------------
13955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13956as_fn_exit ()
13957{
13958  set +e
13959  as_fn_set_status $1
13960  exit $1
13961} # as_fn_exit
13962
13963# as_fn_unset VAR
13964# ---------------
13965# Portably unset VAR.
13966as_fn_unset ()
13967{
13968  { eval $1=; unset $1;}
13969}
13970as_unset=as_fn_unset
13971# as_fn_append VAR VALUE
13972# ----------------------
13973# Append the text in VALUE to the end of the definition contained in VAR. Take
13974# advantage of any shell optimizations that allow amortized linear growth over
13975# repeated appends, instead of the typical quadratic growth present in naive
13976# implementations.
13977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13978  eval 'as_fn_append ()
13979  {
13980    eval $1+=\$2
13981  }'
13982else
13983  as_fn_append ()
13984  {
13985    eval $1=\$$1\$2
13986  }
13987fi # as_fn_append
13988
13989# as_fn_arith ARG...
13990# ------------------
13991# Perform arithmetic evaluation on the ARGs, and store the result in the
13992# global $as_val. Take advantage of shells that can avoid forks. The arguments
13993# must be portable across $(()) and expr.
13994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13995  eval 'as_fn_arith ()
13996  {
13997    as_val=$(( $* ))
13998  }'
13999else
14000  as_fn_arith ()
14001  {
14002    as_val=`expr "$@" || test $? -eq 1`
14003  }
14004fi # as_fn_arith
14005
14006
14007if expr a : '\(a\)' >/dev/null 2>&1 &&
14008   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14009  as_expr=expr
14010else
14011  as_expr=false
14012fi
14013
14014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14015  as_basename=basename
14016else
14017  as_basename=false
14018fi
14019
14020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14021  as_dirname=dirname
14022else
14023  as_dirname=false
14024fi
14025
14026as_me=`$as_basename -- "$0" ||
14027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14028	 X"$0" : 'X\(//\)$' \| \
14029	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14030$as_echo X/"$0" |
14031    sed '/^.*\/\([^/][^/]*\)\/*$/{
14032	    s//\1/
14033	    q
14034	  }
14035	  /^X\/\(\/\/\)$/{
14036	    s//\1/
14037	    q
14038	  }
14039	  /^X\/\(\/\).*/{
14040	    s//\1/
14041	    q
14042	  }
14043	  s/.*/./; q'`
14044
14045# Avoid depending upon Character Ranges.
14046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14049as_cr_digits='0123456789'
14050as_cr_alnum=$as_cr_Letters$as_cr_digits
14051
14052ECHO_C= ECHO_N= ECHO_T=
14053case `echo -n x` in #(((((
14054-n*)
14055  case `echo 'xy\c'` in
14056  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14057  xy)  ECHO_C='\c';;
14058  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14059       ECHO_T='	';;
14060  esac;;
14061*)
14062  ECHO_N='-n';;
14063esac
14064
14065rm -f conf$$ conf$$.exe conf$$.file
14066if test -d conf$$.dir; then
14067  rm -f conf$$.dir/conf$$.file
14068else
14069  rm -f conf$$.dir
14070  mkdir conf$$.dir 2>/dev/null
14071fi
14072if (echo >conf$$.file) 2>/dev/null; then
14073  if ln -s conf$$.file conf$$ 2>/dev/null; then
14074    as_ln_s='ln -s'
14075    # ... but there are two gotchas:
14076    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14077    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14078    # In both cases, we have to default to `cp -pR'.
14079    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14080      as_ln_s='cp -pR'
14081  elif ln conf$$.file conf$$ 2>/dev/null; then
14082    as_ln_s=ln
14083  else
14084    as_ln_s='cp -pR'
14085  fi
14086else
14087  as_ln_s='cp -pR'
14088fi
14089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14090rmdir conf$$.dir 2>/dev/null
14091
14092
14093# as_fn_mkdir_p
14094# -------------
14095# Create "$as_dir" as a directory, including parents if necessary.
14096as_fn_mkdir_p ()
14097{
14098
14099  case $as_dir in #(
14100  -*) as_dir=./$as_dir;;
14101  esac
14102  test -d "$as_dir" || eval $as_mkdir_p || {
14103    as_dirs=
14104    while :; do
14105      case $as_dir in #(
14106      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14107      *) as_qdir=$as_dir;;
14108      esac
14109      as_dirs="'$as_qdir' $as_dirs"
14110      as_dir=`$as_dirname -- "$as_dir" ||
14111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112	 X"$as_dir" : 'X\(//\)[^/]' \| \
14113	 X"$as_dir" : 'X\(//\)$' \| \
14114	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14115$as_echo X"$as_dir" |
14116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14117	    s//\1/
14118	    q
14119	  }
14120	  /^X\(\/\/\)[^/].*/{
14121	    s//\1/
14122	    q
14123	  }
14124	  /^X\(\/\/\)$/{
14125	    s//\1/
14126	    q
14127	  }
14128	  /^X\(\/\).*/{
14129	    s//\1/
14130	    q
14131	  }
14132	  s/.*/./; q'`
14133      test -d "$as_dir" && break
14134    done
14135    test -z "$as_dirs" || eval "mkdir $as_dirs"
14136  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14137
14138
14139} # as_fn_mkdir_p
14140if mkdir -p . 2>/dev/null; then
14141  as_mkdir_p='mkdir -p "$as_dir"'
14142else
14143  test -d ./-p && rmdir ./-p
14144  as_mkdir_p=false
14145fi
14146
14147
14148# as_fn_executable_p FILE
14149# -----------------------
14150# Test if FILE is an executable regular file.
14151as_fn_executable_p ()
14152{
14153  test -f "$1" && test -x "$1"
14154} # as_fn_executable_p
14155as_test_x='test -x'
14156as_executable_p=as_fn_executable_p
14157
14158# Sed expression to map a string onto a valid CPP name.
14159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14160
14161# Sed expression to map a string onto a valid variable name.
14162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14163
14164
14165exec 6>&1
14166## ----------------------------------- ##
14167## Main body of $CONFIG_STATUS script. ##
14168## ----------------------------------- ##
14169_ASEOF
14170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14171
14172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173# Save the log message, to keep $0 and so on meaningful, and to
14174# report actual input values of CONFIG_FILES etc. instead of their
14175# values after options handling.
14176ac_log="
14177This file was extended by OpenBSM $as_me 1.2-alpha3, which was
14178generated by GNU Autoconf 2.69.  Invocation command line was
14179
14180  CONFIG_FILES    = $CONFIG_FILES
14181  CONFIG_HEADERS  = $CONFIG_HEADERS
14182  CONFIG_LINKS    = $CONFIG_LINKS
14183  CONFIG_COMMANDS = $CONFIG_COMMANDS
14184  $ $0 $@
14185
14186on `(hostname || uname -n) 2>/dev/null | sed 1q`
14187"
14188
14189_ACEOF
14190
14191case $ac_config_files in *"
14192"*) set x $ac_config_files; shift; ac_config_files=$*;;
14193esac
14194
14195case $ac_config_headers in *"
14196"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14197esac
14198
14199
14200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201# Files that config.status was made for.
14202config_files="$ac_config_files"
14203config_headers="$ac_config_headers"
14204config_commands="$ac_config_commands"
14205
14206_ACEOF
14207
14208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14209ac_cs_usage="\
14210\`$as_me' instantiates files and other configuration actions
14211from templates according to the current configuration.  Unless the files
14212and actions are specified as TAGs, all are instantiated by default.
14213
14214Usage: $0 [OPTION]... [TAG]...
14215
14216  -h, --help       print this help, then exit
14217  -V, --version    print version number and configuration settings, then exit
14218      --config     print configuration, then exit
14219  -q, --quiet, --silent
14220                   do not print progress messages
14221  -d, --debug      don't remove temporary files
14222      --recheck    update $as_me by reconfiguring in the same conditions
14223      --file=FILE[:TEMPLATE]
14224                   instantiate the configuration file FILE
14225      --header=FILE[:TEMPLATE]
14226                   instantiate the configuration header FILE
14227
14228Configuration files:
14229$config_files
14230
14231Configuration headers:
14232$config_headers
14233
14234Configuration commands:
14235$config_commands
14236
14237Report bugs to <trustedbsd-audit@TrustesdBSD.org>."
14238
14239_ACEOF
14240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14242ac_cs_version="\\
14243OpenBSM config.status 1.2-alpha3
14244configured by $0, generated by GNU Autoconf 2.69,
14245  with options \\"\$ac_cs_config\\"
14246
14247Copyright (C) 2012 Free Software Foundation, Inc.
14248This config.status script is free software; the Free Software Foundation
14249gives unlimited permission to copy, distribute and modify it."
14250
14251ac_pwd='$ac_pwd'
14252srcdir='$srcdir'
14253INSTALL='$INSTALL'
14254MKDIR_P='$MKDIR_P'
14255AWK='$AWK'
14256test -n "\$AWK" || AWK=awk
14257_ACEOF
14258
14259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14260# The default lists apply if the user does not specify any file.
14261ac_need_defaults=:
14262while test $# != 0
14263do
14264  case $1 in
14265  --*=?*)
14266    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14267    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14268    ac_shift=:
14269    ;;
14270  --*=)
14271    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14272    ac_optarg=
14273    ac_shift=:
14274    ;;
14275  *)
14276    ac_option=$1
14277    ac_optarg=$2
14278    ac_shift=shift
14279    ;;
14280  esac
14281
14282  case $ac_option in
14283  # Handling of the options.
14284  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14285    ac_cs_recheck=: ;;
14286  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14287    $as_echo "$ac_cs_version"; exit ;;
14288  --config | --confi | --conf | --con | --co | --c )
14289    $as_echo "$ac_cs_config"; exit ;;
14290  --debug | --debu | --deb | --de | --d | -d )
14291    debug=: ;;
14292  --file | --fil | --fi | --f )
14293    $ac_shift
14294    case $ac_optarg in
14295    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14296    '') as_fn_error $? "missing file argument" ;;
14297    esac
14298    as_fn_append CONFIG_FILES " '$ac_optarg'"
14299    ac_need_defaults=false;;
14300  --header | --heade | --head | --hea )
14301    $ac_shift
14302    case $ac_optarg in
14303    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14304    esac
14305    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14306    ac_need_defaults=false;;
14307  --he | --h)
14308    # Conflict between --help and --header
14309    as_fn_error $? "ambiguous option: \`$1'
14310Try \`$0 --help' for more information.";;
14311  --help | --hel | -h )
14312    $as_echo "$ac_cs_usage"; exit ;;
14313  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14314  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14315    ac_cs_silent=: ;;
14316
14317  # This is an error.
14318  -*) as_fn_error $? "unrecognized option: \`$1'
14319Try \`$0 --help' for more information." ;;
14320
14321  *) as_fn_append ac_config_targets " $1"
14322     ac_need_defaults=false ;;
14323
14324  esac
14325  shift
14326done
14327
14328ac_configure_extra_args=
14329
14330if $ac_cs_silent; then
14331  exec 6>/dev/null
14332  ac_configure_extra_args="$ac_configure_extra_args --silent"
14333fi
14334
14335_ACEOF
14336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14337if \$ac_cs_recheck; then
14338  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14339  shift
14340  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14341  CONFIG_SHELL='$SHELL'
14342  export CONFIG_SHELL
14343  exec "\$@"
14344fi
14345
14346_ACEOF
14347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14348exec 5>>config.log
14349{
14350  echo
14351  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14352## Running $as_me. ##
14353_ASBOX
14354  $as_echo "$ac_log"
14355} >&5
14356
14357_ACEOF
14358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359#
14360# INIT-COMMANDS
14361#
14362
14363
14364# The HP-UX ksh and POSIX shell print the target directory to stdout
14365# if CDPATH is set.
14366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14367
14368sed_quote_subst='$sed_quote_subst'
14369double_quote_subst='$double_quote_subst'
14370delay_variable_subst='$delay_variable_subst'
14371macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14376enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14377SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14378ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14379PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14380host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14381host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14382host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14383build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14384build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14385build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14386SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14387Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14388GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14389EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14390FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14391LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14392NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14393LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14394max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14395ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14396exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14397lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14398lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14399lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14400lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14401lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14402reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14403reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14404OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14405deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14406file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14407file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14408want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14409DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14410sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14411AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14412AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14413archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14414STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14415RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14416old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14417old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14418old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14419lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14420CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14421CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14422compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14423GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14424lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14425lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14426lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14427lt_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"`'
14428nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14429lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14430objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14431MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14432lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14433lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14434lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14435lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14436lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14437need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14438MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14439DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14440NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14441LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14442OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14443OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14444libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14445shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14446extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14447archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14448enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14449export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14450whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14451compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14452old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14453old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14454archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14455archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14456module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14457module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14458with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14459allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14460no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14461hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14462hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14463hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14464hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14465hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14466hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14467hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14468inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14469link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14470always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14471export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14472exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14473include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14474prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14475postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14476file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14477variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14478need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14479need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14480version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14481runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14482shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14483shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14484libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14485library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14486soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14487install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14488postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14489postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14490finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14491finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14492hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14493sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14494sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14495hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14496enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14497enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14498enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14499old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14500striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14501
14502LTCC='$LTCC'
14503LTCFLAGS='$LTCFLAGS'
14504compiler='$compiler_DEFAULT'
14505
14506# A function that is used when there is no print builtin or printf.
14507func_fallback_echo ()
14508{
14509  eval 'cat <<_LTECHO_EOF
14510\$1
14511_LTECHO_EOF'
14512}
14513
14514# Quote evaled strings.
14515for var in SHELL \
14516ECHO \
14517PATH_SEPARATOR \
14518SED \
14519GREP \
14520EGREP \
14521FGREP \
14522LD \
14523NM \
14524LN_S \
14525lt_SP2NL \
14526lt_NL2SP \
14527reload_flag \
14528OBJDUMP \
14529deplibs_check_method \
14530file_magic_cmd \
14531file_magic_glob \
14532want_nocaseglob \
14533DLLTOOL \
14534sharedlib_from_linklib_cmd \
14535AR \
14536AR_FLAGS \
14537archiver_list_spec \
14538STRIP \
14539RANLIB \
14540CC \
14541CFLAGS \
14542compiler \
14543lt_cv_sys_global_symbol_pipe \
14544lt_cv_sys_global_symbol_to_cdecl \
14545lt_cv_sys_global_symbol_to_c_name_address \
14546lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14547nm_file_list_spec \
14548lt_prog_compiler_no_builtin_flag \
14549lt_prog_compiler_pic \
14550lt_prog_compiler_wl \
14551lt_prog_compiler_static \
14552lt_cv_prog_compiler_c_o \
14553need_locks \
14554MANIFEST_TOOL \
14555DSYMUTIL \
14556NMEDIT \
14557LIPO \
14558OTOOL \
14559OTOOL64 \
14560shrext_cmds \
14561export_dynamic_flag_spec \
14562whole_archive_flag_spec \
14563compiler_needs_object \
14564with_gnu_ld \
14565allow_undefined_flag \
14566no_undefined_flag \
14567hardcode_libdir_flag_spec \
14568hardcode_libdir_separator \
14569exclude_expsyms \
14570include_expsyms \
14571file_list_spec \
14572variables_saved_for_relink \
14573libname_spec \
14574library_names_spec \
14575soname_spec \
14576install_override_mode \
14577finish_eval \
14578old_striplib \
14579striplib; do
14580    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14581    *[\\\\\\\`\\"\\\$]*)
14582      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14583      ;;
14584    *)
14585      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14586      ;;
14587    esac
14588done
14589
14590# Double-quote double-evaled strings.
14591for var in reload_cmds \
14592old_postinstall_cmds \
14593old_postuninstall_cmds \
14594old_archive_cmds \
14595extract_expsyms_cmds \
14596old_archive_from_new_cmds \
14597old_archive_from_expsyms_cmds \
14598archive_cmds \
14599archive_expsym_cmds \
14600module_cmds \
14601module_expsym_cmds \
14602export_symbols_cmds \
14603prelink_cmds \
14604postlink_cmds \
14605postinstall_cmds \
14606postuninstall_cmds \
14607finish_cmds \
14608sys_lib_search_path_spec \
14609sys_lib_dlsearch_path_spec; do
14610    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14611    *[\\\\\\\`\\"\\\$]*)
14612      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14613      ;;
14614    *)
14615      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14616      ;;
14617    esac
14618done
14619
14620ac_aux_dir='$ac_aux_dir'
14621xsi_shell='$xsi_shell'
14622lt_shell_append='$lt_shell_append'
14623
14624# See if we are running on zsh, and set the options which allow our
14625# commands through without removal of \ escapes INIT.
14626if test -n "\${ZSH_VERSION+set}" ; then
14627   setopt NO_GLOB_SUBST
14628fi
14629
14630
14631    PACKAGE='$PACKAGE'
14632    VERSION='$VERSION'
14633    TIMESTAMP='$TIMESTAMP'
14634    RM='$RM'
14635    ofile='$ofile'
14636
14637
14638
14639AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14640
14641_ACEOF
14642
14643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14644
14645# Handling of arguments.
14646for ac_config_target in $ac_config_targets
14647do
14648  case $ac_config_target in
14649    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
14650    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14651    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14652    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14653    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14654    "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
14655    "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
14656    "bin/auditdistd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditdistd/Makefile" ;;
14657    "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
14658    "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
14659    "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
14660    "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
14661    "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
14662    "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
14663    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14664    "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
14665    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14666    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
14667    "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
14668    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14669    "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
14670    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14671
14672  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14673  esac
14674done
14675
14676
14677# If the user did not use the arguments to specify the items to instantiate,
14678# then the envvar interface is used.  Set only those that are not.
14679# We use the long form for the default assignment because of an extremely
14680# bizarre bug on SunOS 4.1.3.
14681if $ac_need_defaults; then
14682  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14683  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14684  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14685fi
14686
14687# Have a temporary directory for convenience.  Make it in the build tree
14688# simply because there is no reason against having it here, and in addition,
14689# creating and moving files from /tmp can sometimes cause problems.
14690# Hook for its removal unless debugging.
14691# Note that there is a small window in which the directory will not be cleaned:
14692# after its creation but before its name has been assigned to `$tmp'.
14693$debug ||
14694{
14695  tmp= ac_tmp=
14696  trap 'exit_status=$?
14697  : "${ac_tmp:=$tmp}"
14698  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14699' 0
14700  trap 'as_fn_exit 1' 1 2 13 15
14701}
14702# Create a (secure) tmp directory for tmp files.
14703
14704{
14705  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14706  test -d "$tmp"
14707}  ||
14708{
14709  tmp=./conf$$-$RANDOM
14710  (umask 077 && mkdir "$tmp")
14711} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14712ac_tmp=$tmp
14713
14714# Set up the scripts for CONFIG_FILES section.
14715# No need to generate them if there are no CONFIG_FILES.
14716# This happens for instance with `./config.status config.h'.
14717if test -n "$CONFIG_FILES"; then
14718
14719
14720ac_cr=`echo X | tr X '\015'`
14721# On cygwin, bash can eat \r inside `` if the user requested igncr.
14722# But we know of no other shell where ac_cr would be empty at this
14723# point, so we can use a bashism as a fallback.
14724if test "x$ac_cr" = x; then
14725  eval ac_cr=\$\'\\r\'
14726fi
14727ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14728if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14729  ac_cs_awk_cr='\\r'
14730else
14731  ac_cs_awk_cr=$ac_cr
14732fi
14733
14734echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14735_ACEOF
14736
14737
14738{
14739  echo "cat >conf$$subs.awk <<_ACEOF" &&
14740  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14741  echo "_ACEOF"
14742} >conf$$subs.sh ||
14743  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14744ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14745ac_delim='%!_!# '
14746for ac_last_try in false false false false false :; do
14747  . ./conf$$subs.sh ||
14748    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14749
14750  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14751  if test $ac_delim_n = $ac_delim_num; then
14752    break
14753  elif $ac_last_try; then
14754    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14755  else
14756    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14757  fi
14758done
14759rm -f conf$$subs.sh
14760
14761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14763_ACEOF
14764sed -n '
14765h
14766s/^/S["/; s/!.*/"]=/
14767p
14768g
14769s/^[^!]*!//
14770:repl
14771t repl
14772s/'"$ac_delim"'$//
14773t delim
14774:nl
14775h
14776s/\(.\{148\}\)..*/\1/
14777t more1
14778s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14779p
14780n
14781b repl
14782:more1
14783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14784p
14785g
14786s/.\{148\}//
14787t nl
14788:delim
14789h
14790s/\(.\{148\}\)..*/\1/
14791t more2
14792s/["\\]/\\&/g; s/^/"/; s/$/"/
14793p
14794b
14795:more2
14796s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14797p
14798g
14799s/.\{148\}//
14800t delim
14801' <conf$$subs.awk | sed '
14802/^[^""]/{
14803  N
14804  s/\n//
14805}
14806' >>$CONFIG_STATUS || ac_write_fail=1
14807rm -f conf$$subs.awk
14808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14809_ACAWK
14810cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14811  for (key in S) S_is_set[key] = 1
14812  FS = ""
14813
14814}
14815{
14816  line = $ 0
14817  nfields = split(line, field, "@")
14818  substed = 0
14819  len = length(field[1])
14820  for (i = 2; i < nfields; i++) {
14821    key = field[i]
14822    keylen = length(key)
14823    if (S_is_set[key]) {
14824      value = S[key]
14825      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14826      len += length(value) + length(field[++i])
14827      substed = 1
14828    } else
14829      len += 1 + keylen
14830  }
14831
14832  print line
14833}
14834
14835_ACAWK
14836_ACEOF
14837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14838if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14839  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14840else
14841  cat
14842fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14843  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14844_ACEOF
14845
14846# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14847# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14848# trailing colons and then remove the whole line if VPATH becomes empty
14849# (actually we leave an empty line to preserve line numbers).
14850if test "x$srcdir" = x.; then
14851  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14852h
14853s///
14854s/^/:/
14855s/[	 ]*$/:/
14856s/:\$(srcdir):/:/g
14857s/:\${srcdir}:/:/g
14858s/:@srcdir@:/:/g
14859s/^:*//
14860s/:*$//
14861x
14862s/\(=[	 ]*\).*/\1/
14863G
14864s/\n//
14865s/^[^=]*=[	 ]*$//
14866}'
14867fi
14868
14869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14870fi # test -n "$CONFIG_FILES"
14871
14872# Set up the scripts for CONFIG_HEADERS section.
14873# No need to generate them if there are no CONFIG_HEADERS.
14874# This happens for instance with `./config.status Makefile'.
14875if test -n "$CONFIG_HEADERS"; then
14876cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14877BEGIN {
14878_ACEOF
14879
14880# Transform confdefs.h into an awk script `defines.awk', embedded as
14881# here-document in config.status, that substitutes the proper values into
14882# config.h.in to produce config.h.
14883
14884# Create a delimiter string that does not exist in confdefs.h, to ease
14885# handling of long lines.
14886ac_delim='%!_!# '
14887for ac_last_try in false false :; do
14888  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14889  if test -z "$ac_tt"; then
14890    break
14891  elif $ac_last_try; then
14892    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14893  else
14894    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14895  fi
14896done
14897
14898# For the awk script, D is an array of macro values keyed by name,
14899# likewise P contains macro parameters if any.  Preserve backslash
14900# newline sequences.
14901
14902ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14903sed -n '
14904s/.\{148\}/&'"$ac_delim"'/g
14905t rset
14906:rset
14907s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14908t def
14909d
14910:def
14911s/\\$//
14912t bsnl
14913s/["\\]/\\&/g
14914s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14915D["\1"]=" \3"/p
14916s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14917d
14918:bsnl
14919s/["\\]/\\&/g
14920s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14921D["\1"]=" \3\\\\\\n"\\/p
14922t cont
14923s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14924t cont
14925d
14926:cont
14927n
14928s/.\{148\}/&'"$ac_delim"'/g
14929t clear
14930:clear
14931s/\\$//
14932t bsnlc
14933s/["\\]/\\&/g; s/^/"/; s/$/"/p
14934d
14935:bsnlc
14936s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14937b cont
14938' <confdefs.h | sed '
14939s/'"$ac_delim"'/"\\\
14940"/g' >>$CONFIG_STATUS || ac_write_fail=1
14941
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943  for (key in D) D_is_set[key] = 1
14944  FS = ""
14945}
14946/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14947  line = \$ 0
14948  split(line, arg, " ")
14949  if (arg[1] == "#") {
14950    defundef = arg[2]
14951    mac1 = arg[3]
14952  } else {
14953    defundef = substr(arg[1], 2)
14954    mac1 = arg[2]
14955  }
14956  split(mac1, mac2, "(") #)
14957  macro = mac2[1]
14958  prefix = substr(line, 1, index(line, defundef) - 1)
14959  if (D_is_set[macro]) {
14960    # Preserve the white space surrounding the "#".
14961    print prefix "define", macro P[macro] D[macro]
14962    next
14963  } else {
14964    # Replace #undef with comments.  This is necessary, for example,
14965    # in the case of _POSIX_SOURCE, which is predefined and required
14966    # on some systems where configure will not decide to define it.
14967    if (defundef == "undef") {
14968      print "/*", prefix defundef, macro, "*/"
14969      next
14970    }
14971  }
14972}
14973{ print }
14974_ACAWK
14975_ACEOF
14976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14978fi # test -n "$CONFIG_HEADERS"
14979
14980
14981eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14982shift
14983for ac_tag
14984do
14985  case $ac_tag in
14986  :[FHLC]) ac_mode=$ac_tag; continue;;
14987  esac
14988  case $ac_mode$ac_tag in
14989  :[FHL]*:*);;
14990  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14991  :[FH]-) ac_tag=-:-;;
14992  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14993  esac
14994  ac_save_IFS=$IFS
14995  IFS=:
14996  set x $ac_tag
14997  IFS=$ac_save_IFS
14998  shift
14999  ac_file=$1
15000  shift
15001
15002  case $ac_mode in
15003  :L) ac_source=$1;;
15004  :[FH])
15005    ac_file_inputs=
15006    for ac_f
15007    do
15008      case $ac_f in
15009      -) ac_f="$ac_tmp/stdin";;
15010      *) # Look for the file first in the build tree, then in the source tree
15011	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15012	 # because $ac_f cannot contain `:'.
15013	 test -f "$ac_f" ||
15014	   case $ac_f in
15015	   [\\/$]*) false;;
15016	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15017	   esac ||
15018	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15019      esac
15020      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15021      as_fn_append ac_file_inputs " '$ac_f'"
15022    done
15023
15024    # Let's still pretend it is `configure' which instantiates (i.e., don't
15025    # use $as_me), people would be surprised to read:
15026    #    /* config.h.  Generated by config.status.  */
15027    configure_input='Generated from '`
15028	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15029	`' by configure.'
15030    if test x"$ac_file" != x-; then
15031      configure_input="$ac_file.  $configure_input"
15032      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15033$as_echo "$as_me: creating $ac_file" >&6;}
15034    fi
15035    # Neutralize special characters interpreted by sed in replacement strings.
15036    case $configure_input in #(
15037    *\&* | *\|* | *\\* )
15038       ac_sed_conf_input=`$as_echo "$configure_input" |
15039       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15040    *) ac_sed_conf_input=$configure_input;;
15041    esac
15042
15043    case $ac_tag in
15044    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15045      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15046    esac
15047    ;;
15048  esac
15049
15050  ac_dir=`$as_dirname -- "$ac_file" ||
15051$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052	 X"$ac_file" : 'X\(//\)[^/]' \| \
15053	 X"$ac_file" : 'X\(//\)$' \| \
15054	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15055$as_echo X"$ac_file" |
15056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057	    s//\1/
15058	    q
15059	  }
15060	  /^X\(\/\/\)[^/].*/{
15061	    s//\1/
15062	    q
15063	  }
15064	  /^X\(\/\/\)$/{
15065	    s//\1/
15066	    q
15067	  }
15068	  /^X\(\/\).*/{
15069	    s//\1/
15070	    q
15071	  }
15072	  s/.*/./; q'`
15073  as_dir="$ac_dir"; as_fn_mkdir_p
15074  ac_builddir=.
15075
15076case "$ac_dir" in
15077.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15078*)
15079  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15080  # A ".." for each directory in $ac_dir_suffix.
15081  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15082  case $ac_top_builddir_sub in
15083  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15084  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15085  esac ;;
15086esac
15087ac_abs_top_builddir=$ac_pwd
15088ac_abs_builddir=$ac_pwd$ac_dir_suffix
15089# for backward compatibility:
15090ac_top_builddir=$ac_top_build_prefix
15091
15092case $srcdir in
15093  .)  # We are building in place.
15094    ac_srcdir=.
15095    ac_top_srcdir=$ac_top_builddir_sub
15096    ac_abs_top_srcdir=$ac_pwd ;;
15097  [\\/]* | ?:[\\/]* )  # Absolute name.
15098    ac_srcdir=$srcdir$ac_dir_suffix;
15099    ac_top_srcdir=$srcdir
15100    ac_abs_top_srcdir=$srcdir ;;
15101  *) # Relative name.
15102    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15103    ac_top_srcdir=$ac_top_build_prefix$srcdir
15104    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15105esac
15106ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15107
15108
15109  case $ac_mode in
15110  :F)
15111  #
15112  # CONFIG_FILE
15113  #
15114
15115  case $INSTALL in
15116  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15117  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15118  esac
15119  ac_MKDIR_P=$MKDIR_P
15120  case $MKDIR_P in
15121  [\\/$]* | ?:[\\/]* ) ;;
15122  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15123  esac
15124_ACEOF
15125
15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127# If the template does not know about datarootdir, expand it.
15128# FIXME: This hack should be removed a few years after 2.60.
15129ac_datarootdir_hack=; ac_datarootdir_seen=
15130ac_sed_dataroot='
15131/datarootdir/ {
15132  p
15133  q
15134}
15135/@datadir@/p
15136/@docdir@/p
15137/@infodir@/p
15138/@localedir@/p
15139/@mandir@/p'
15140case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141*datarootdir*) ac_datarootdir_seen=yes;;
15142*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15145_ACEOF
15146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147  ac_datarootdir_hack='
15148  s&@datadir@&$datadir&g
15149  s&@docdir@&$docdir&g
15150  s&@infodir@&$infodir&g
15151  s&@localedir@&$localedir&g
15152  s&@mandir@&$mandir&g
15153  s&\\\${datarootdir}&$datarootdir&g' ;;
15154esac
15155_ACEOF
15156
15157# Neutralize VPATH when `$srcdir' = `.'.
15158# Shell code in configure.ac might set extrasub.
15159# FIXME: do we really want to maintain this feature?
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161ac_sed_extra="$ac_vpsub
15162$extrasub
15163_ACEOF
15164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165:t
15166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167s|@configure_input@|$ac_sed_conf_input|;t t
15168s&@top_builddir@&$ac_top_builddir_sub&;t t
15169s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170s&@srcdir@&$ac_srcdir&;t t
15171s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172s&@top_srcdir@&$ac_top_srcdir&;t t
15173s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174s&@builddir@&$ac_builddir&;t t
15175s&@abs_builddir@&$ac_abs_builddir&;t t
15176s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177s&@INSTALL@&$ac_INSTALL&;t t
15178s&@MKDIR_P@&$ac_MKDIR_P&;t t
15179$ac_datarootdir_hack
15180"
15181eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15182  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15183
15184test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15185  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15186  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15187      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15188  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189which seems to be undefined.  Please make sure it is defined" >&5
15190$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191which seems to be undefined.  Please make sure it is defined" >&2;}
15192
15193  rm -f "$ac_tmp/stdin"
15194  case $ac_file in
15195  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15196  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15197  esac \
15198  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15199 ;;
15200  :H)
15201  #
15202  # CONFIG_HEADER
15203  #
15204  if test x"$ac_file" != x-; then
15205    {
15206      $as_echo "/* $configure_input  */" \
15207      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15208    } >"$ac_tmp/config.h" \
15209      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15211      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15212$as_echo "$as_me: $ac_file is unchanged" >&6;}
15213    else
15214      rm -f "$ac_file"
15215      mv "$ac_tmp/config.h" "$ac_file" \
15216	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15217    fi
15218  else
15219    $as_echo "/* $configure_input  */" \
15220      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15221      || as_fn_error $? "could not create -" "$LINENO" 5
15222  fi
15223# Compute "$ac_file"'s index in $config_headers.
15224_am_arg="$ac_file"
15225_am_stamp_count=1
15226for _am_header in $config_headers :; do
15227  case $_am_header in
15228    $_am_arg | $_am_arg:* )
15229      break ;;
15230    * )
15231      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15232  esac
15233done
15234echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15235$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15236	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15237	 X"$_am_arg" : 'X\(//\)$' \| \
15238	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15239$as_echo X"$_am_arg" |
15240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15241	    s//\1/
15242	    q
15243	  }
15244	  /^X\(\/\/\)[^/].*/{
15245	    s//\1/
15246	    q
15247	  }
15248	  /^X\(\/\/\)$/{
15249	    s//\1/
15250	    q
15251	  }
15252	  /^X\(\/\).*/{
15253	    s//\1/
15254	    q
15255	  }
15256	  s/.*/./; q'`/stamp-h$_am_stamp_count
15257 ;;
15258
15259  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15260$as_echo "$as_me: executing $ac_file commands" >&6;}
15261 ;;
15262  esac
15263
15264
15265  case $ac_file$ac_mode in
15266    "libtool":C)
15267
15268    # See if we are running on zsh, and set the options which allow our
15269    # commands through without removal of \ escapes.
15270    if test -n "${ZSH_VERSION+set}" ; then
15271      setopt NO_GLOB_SUBST
15272    fi
15273
15274    cfgfile="${ofile}T"
15275    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15276    $RM "$cfgfile"
15277
15278    cat <<_LT_EOF >> "$cfgfile"
15279#! $SHELL
15280
15281# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15282# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15283# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15284# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15285#
15286#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15287#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15288#                 Foundation, Inc.
15289#   Written by Gordon Matzigkeit, 1996
15290#
15291#   This file is part of GNU Libtool.
15292#
15293# GNU Libtool is free software; you can redistribute it and/or
15294# modify it under the terms of the GNU General Public License as
15295# published by the Free Software Foundation; either version 2 of
15296# the License, or (at your option) any later version.
15297#
15298# As a special exception to the GNU General Public License,
15299# if you distribute this file as part of a program or library that
15300# is built using GNU Libtool, you may include this file under the
15301# same distribution terms that you use for the rest of that program.
15302#
15303# GNU Libtool is distributed in the hope that it will be useful,
15304# but WITHOUT ANY WARRANTY; without even the implied warranty of
15305# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15306# GNU General Public License for more details.
15307#
15308# You should have received a copy of the GNU General Public License
15309# along with GNU Libtool; see the file COPYING.  If not, a copy
15310# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15311# obtained by writing to the Free Software Foundation, Inc.,
15312# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15313
15314
15315# The names of the tagged configurations supported by this script.
15316available_tags=""
15317
15318# ### BEGIN LIBTOOL CONFIG
15319
15320# Which release of libtool.m4 was used?
15321macro_version=$macro_version
15322macro_revision=$macro_revision
15323
15324# Whether or not to build shared libraries.
15325build_libtool_libs=$enable_shared
15326
15327# Whether or not to build static libraries.
15328build_old_libs=$enable_static
15329
15330# What type of objects to build.
15331pic_mode=$pic_mode
15332
15333# Whether or not to optimize for fast installation.
15334fast_install=$enable_fast_install
15335
15336# Shell to use when invoking shell scripts.
15337SHELL=$lt_SHELL
15338
15339# An echo program that protects backslashes.
15340ECHO=$lt_ECHO
15341
15342# The PATH separator for the build system.
15343PATH_SEPARATOR=$lt_PATH_SEPARATOR
15344
15345# The host system.
15346host_alias=$host_alias
15347host=$host
15348host_os=$host_os
15349
15350# The build system.
15351build_alias=$build_alias
15352build=$build
15353build_os=$build_os
15354
15355# A sed program that does not truncate output.
15356SED=$lt_SED
15357
15358# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15359Xsed="\$SED -e 1s/^X//"
15360
15361# A grep program that handles long lines.
15362GREP=$lt_GREP
15363
15364# An ERE matcher.
15365EGREP=$lt_EGREP
15366
15367# A literal string matcher.
15368FGREP=$lt_FGREP
15369
15370# A BSD- or MS-compatible name lister.
15371NM=$lt_NM
15372
15373# Whether we need soft or hard links.
15374LN_S=$lt_LN_S
15375
15376# What is the maximum length of a command?
15377max_cmd_len=$max_cmd_len
15378
15379# Object file suffix (normally "o").
15380objext=$ac_objext
15381
15382# Executable file suffix (normally "").
15383exeext=$exeext
15384
15385# whether the shell understands "unset".
15386lt_unset=$lt_unset
15387
15388# turn spaces into newlines.
15389SP2NL=$lt_lt_SP2NL
15390
15391# turn newlines into spaces.
15392NL2SP=$lt_lt_NL2SP
15393
15394# convert \$build file names to \$host format.
15395to_host_file_cmd=$lt_cv_to_host_file_cmd
15396
15397# convert \$build files to toolchain format.
15398to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15399
15400# An object symbol dumper.
15401OBJDUMP=$lt_OBJDUMP
15402
15403# Method to check whether dependent libraries are shared objects.
15404deplibs_check_method=$lt_deplibs_check_method
15405
15406# Command to use when deplibs_check_method = "file_magic".
15407file_magic_cmd=$lt_file_magic_cmd
15408
15409# How to find potential files when deplibs_check_method = "file_magic".
15410file_magic_glob=$lt_file_magic_glob
15411
15412# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15413want_nocaseglob=$lt_want_nocaseglob
15414
15415# DLL creation program.
15416DLLTOOL=$lt_DLLTOOL
15417
15418# Command to associate shared and link libraries.
15419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15420
15421# The archiver.
15422AR=$lt_AR
15423
15424# Flags to create an archive.
15425AR_FLAGS=$lt_AR_FLAGS
15426
15427# How to feed a file listing to the archiver.
15428archiver_list_spec=$lt_archiver_list_spec
15429
15430# A symbol stripping program.
15431STRIP=$lt_STRIP
15432
15433# Commands used to install an old-style archive.
15434RANLIB=$lt_RANLIB
15435old_postinstall_cmds=$lt_old_postinstall_cmds
15436old_postuninstall_cmds=$lt_old_postuninstall_cmds
15437
15438# Whether to use a lock for old archive extraction.
15439lock_old_archive_extraction=$lock_old_archive_extraction
15440
15441# A C compiler.
15442LTCC=$lt_CC
15443
15444# LTCC compiler flags.
15445LTCFLAGS=$lt_CFLAGS
15446
15447# Take the output of nm and produce a listing of raw symbols and C names.
15448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15449
15450# Transform the output of nm in a proper C declaration.
15451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15452
15453# Transform the output of nm in a C name address pair.
15454global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15455
15456# Transform the output of nm in a C name address pair when lib prefix is needed.
15457global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15458
15459# Specify filename containing input files for \$NM.
15460nm_file_list_spec=$lt_nm_file_list_spec
15461
15462# The root where to search for dependent libraries,and in which our libraries should be installed.
15463lt_sysroot=$lt_sysroot
15464
15465# The name of the directory that contains temporary libtool files.
15466objdir=$objdir
15467
15468# Used to examine libraries when file_magic_cmd begins with "file".
15469MAGIC_CMD=$MAGIC_CMD
15470
15471# Must we lock files when doing compilation?
15472need_locks=$lt_need_locks
15473
15474# Manifest tool.
15475MANIFEST_TOOL=$lt_MANIFEST_TOOL
15476
15477# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15478DSYMUTIL=$lt_DSYMUTIL
15479
15480# Tool to change global to local symbols on Mac OS X.
15481NMEDIT=$lt_NMEDIT
15482
15483# Tool to manipulate fat objects and archives on Mac OS X.
15484LIPO=$lt_LIPO
15485
15486# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15487OTOOL=$lt_OTOOL
15488
15489# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15490OTOOL64=$lt_OTOOL64
15491
15492# Old archive suffix (normally "a").
15493libext=$libext
15494
15495# Shared library suffix (normally ".so").
15496shrext_cmds=$lt_shrext_cmds
15497
15498# The commands to extract the exported symbol list from a shared archive.
15499extract_expsyms_cmds=$lt_extract_expsyms_cmds
15500
15501# Variables whose values should be saved in libtool wrapper scripts and
15502# restored at link time.
15503variables_saved_for_relink=$lt_variables_saved_for_relink
15504
15505# Do we need the "lib" prefix for modules?
15506need_lib_prefix=$need_lib_prefix
15507
15508# Do we need a version for libraries?
15509need_version=$need_version
15510
15511# Library versioning type.
15512version_type=$version_type
15513
15514# Shared library runtime path variable.
15515runpath_var=$runpath_var
15516
15517# Shared library path variable.
15518shlibpath_var=$shlibpath_var
15519
15520# Is shlibpath searched before the hard-coded library search path?
15521shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15522
15523# Format of library name prefix.
15524libname_spec=$lt_libname_spec
15525
15526# List of archive names.  First name is the real one, the rest are links.
15527# The last name is the one that the linker finds with -lNAME
15528library_names_spec=$lt_library_names_spec
15529
15530# The coded name of the library, if different from the real name.
15531soname_spec=$lt_soname_spec
15532
15533# Permission mode override for installation of shared libraries.
15534install_override_mode=$lt_install_override_mode
15535
15536# Command to use after installation of a shared archive.
15537postinstall_cmds=$lt_postinstall_cmds
15538
15539# Command to use after uninstallation of a shared archive.
15540postuninstall_cmds=$lt_postuninstall_cmds
15541
15542# Commands used to finish a libtool library installation in a directory.
15543finish_cmds=$lt_finish_cmds
15544
15545# As "finish_cmds", except a single script fragment to be evaled but
15546# not shown.
15547finish_eval=$lt_finish_eval
15548
15549# Whether we should hardcode library paths into libraries.
15550hardcode_into_libs=$hardcode_into_libs
15551
15552# Compile-time system search path for libraries.
15553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15554
15555# Run-time system search path for libraries.
15556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15557
15558# Whether dlopen is supported.
15559dlopen_support=$enable_dlopen
15560
15561# Whether dlopen of programs is supported.
15562dlopen_self=$enable_dlopen_self
15563
15564# Whether dlopen of statically linked programs is supported.
15565dlopen_self_static=$enable_dlopen_self_static
15566
15567# Commands to strip libraries.
15568old_striplib=$lt_old_striplib
15569striplib=$lt_striplib
15570
15571
15572# The linker used to build libraries.
15573LD=$lt_LD
15574
15575# How to create reloadable object files.
15576reload_flag=$lt_reload_flag
15577reload_cmds=$lt_reload_cmds
15578
15579# Commands used to build an old-style archive.
15580old_archive_cmds=$lt_old_archive_cmds
15581
15582# A language specific compiler.
15583CC=$lt_compiler
15584
15585# Is the compiler the GNU compiler?
15586with_gcc=$GCC
15587
15588# Compiler flag to turn off builtin functions.
15589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15590
15591# Additional compiler flags for building library objects.
15592pic_flag=$lt_lt_prog_compiler_pic
15593
15594# How to pass a linker flag through the compiler.
15595wl=$lt_lt_prog_compiler_wl
15596
15597# Compiler flag to prevent dynamic linking.
15598link_static_flag=$lt_lt_prog_compiler_static
15599
15600# Does compiler simultaneously support -c and -o options?
15601compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15602
15603# Whether or not to add -lc for building shared libraries.
15604build_libtool_need_lc=$archive_cmds_need_lc
15605
15606# Whether or not to disallow shared libs when runtime libs are static.
15607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15608
15609# Compiler flag to allow reflexive dlopens.
15610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15611
15612# Compiler flag to generate shared objects directly from archives.
15613whole_archive_flag_spec=$lt_whole_archive_flag_spec
15614
15615# Whether the compiler copes with passing no objects directly.
15616compiler_needs_object=$lt_compiler_needs_object
15617
15618# Create an old-style archive from a shared archive.
15619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15620
15621# Create a temporary old-style archive to link instead of a shared archive.
15622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15623
15624# Commands used to build a shared archive.
15625archive_cmds=$lt_archive_cmds
15626archive_expsym_cmds=$lt_archive_expsym_cmds
15627
15628# Commands used to build a loadable module if different from building
15629# a shared archive.
15630module_cmds=$lt_module_cmds
15631module_expsym_cmds=$lt_module_expsym_cmds
15632
15633# Whether we are building with GNU ld or not.
15634with_gnu_ld=$lt_with_gnu_ld
15635
15636# Flag that allows shared libraries with undefined symbols to be built.
15637allow_undefined_flag=$lt_allow_undefined_flag
15638
15639# Flag that enforces no undefined symbols.
15640no_undefined_flag=$lt_no_undefined_flag
15641
15642# Flag to hardcode \$libdir into a binary during linking.
15643# This must work even if \$libdir does not exist
15644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15645
15646# Whether we need a single "-rpath" flag with a separated argument.
15647hardcode_libdir_separator=$lt_hardcode_libdir_separator
15648
15649# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15650# DIR into the resulting binary.
15651hardcode_direct=$hardcode_direct
15652
15653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15654# DIR into the resulting binary and the resulting library dependency is
15655# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15656# library is relocated.
15657hardcode_direct_absolute=$hardcode_direct_absolute
15658
15659# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15660# into the resulting binary.
15661hardcode_minus_L=$hardcode_minus_L
15662
15663# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15664# into the resulting binary.
15665hardcode_shlibpath_var=$hardcode_shlibpath_var
15666
15667# Set to "yes" if building a shared library automatically hardcodes DIR
15668# into the library and all subsequent libraries and executables linked
15669# against it.
15670hardcode_automatic=$hardcode_automatic
15671
15672# Set to yes if linker adds runtime paths of dependent libraries
15673# to runtime path list.
15674inherit_rpath=$inherit_rpath
15675
15676# Whether libtool must link a program against all its dependency libraries.
15677link_all_deplibs=$link_all_deplibs
15678
15679# Set to "yes" if exported symbols are required.
15680always_export_symbols=$always_export_symbols
15681
15682# The commands to list exported symbols.
15683export_symbols_cmds=$lt_export_symbols_cmds
15684
15685# Symbols that should not be listed in the preloaded symbols.
15686exclude_expsyms=$lt_exclude_expsyms
15687
15688# Symbols that must always be exported.
15689include_expsyms=$lt_include_expsyms
15690
15691# Commands necessary for linking programs (against libraries) with templates.
15692prelink_cmds=$lt_prelink_cmds
15693
15694# Commands necessary for finishing linking programs.
15695postlink_cmds=$lt_postlink_cmds
15696
15697# Specify filename containing input files.
15698file_list_spec=$lt_file_list_spec
15699
15700# How to hardcode a shared library path into an executable.
15701hardcode_action=$hardcode_action
15702
15703# ### END LIBTOOL CONFIG
15704
15705_LT_EOF
15706
15707  case $host_os in
15708  aix3*)
15709    cat <<\_LT_EOF >> "$cfgfile"
15710# AIX sometimes has problems with the GCC collect2 program.  For some
15711# reason, if we set the COLLECT_NAMES environment variable, the problems
15712# vanish in a puff of smoke.
15713if test "X${COLLECT_NAMES+set}" != Xset; then
15714  COLLECT_NAMES=
15715  export COLLECT_NAMES
15716fi
15717_LT_EOF
15718    ;;
15719  esac
15720
15721
15722ltmain="$ac_aux_dir/ltmain.sh"
15723
15724
15725  # We use sed instead of cat because bash on DJGPP gets confused if
15726  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15727  # text mode, it properly converts lines to CR/LF.  This bash problem
15728  # is reportedly fixed, but why not run on old versions too?
15729  sed '$q' "$ltmain" >> "$cfgfile" \
15730     || (rm -f "$cfgfile"; exit 1)
15731
15732  if test x"$xsi_shell" = xyes; then
15733  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15734func_dirname ()\
15735{\
15736\    case ${1} in\
15737\      */*) func_dirname_result="${1%/*}${2}" ;;\
15738\      *  ) func_dirname_result="${3}" ;;\
15739\    esac\
15740} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15741  && mv -f "$cfgfile.tmp" "$cfgfile" \
15742    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15743test 0 -eq $? || _lt_function_replace_fail=:
15744
15745
15746  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15747func_basename ()\
15748{\
15749\    func_basename_result="${1##*/}"\
15750} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15751  && mv -f "$cfgfile.tmp" "$cfgfile" \
15752    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15753test 0 -eq $? || _lt_function_replace_fail=:
15754
15755
15756  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15757func_dirname_and_basename ()\
15758{\
15759\    case ${1} in\
15760\      */*) func_dirname_result="${1%/*}${2}" ;;\
15761\      *  ) func_dirname_result="${3}" ;;\
15762\    esac\
15763\    func_basename_result="${1##*/}"\
15764} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15765  && mv -f "$cfgfile.tmp" "$cfgfile" \
15766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767test 0 -eq $? || _lt_function_replace_fail=:
15768
15769
15770  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15771func_stripname ()\
15772{\
15773\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15774\    # positional parameters, so assign one to ordinary parameter first.\
15775\    func_stripname_result=${3}\
15776\    func_stripname_result=${func_stripname_result#"${1}"}\
15777\    func_stripname_result=${func_stripname_result%"${2}"}\
15778} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15779  && mv -f "$cfgfile.tmp" "$cfgfile" \
15780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781test 0 -eq $? || _lt_function_replace_fail=:
15782
15783
15784  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15785func_split_long_opt ()\
15786{\
15787\    func_split_long_opt_name=${1%%=*}\
15788\    func_split_long_opt_arg=${1#*=}\
15789} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15790  && mv -f "$cfgfile.tmp" "$cfgfile" \
15791    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15792test 0 -eq $? || _lt_function_replace_fail=:
15793
15794
15795  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15796func_split_short_opt ()\
15797{\
15798\    func_split_short_opt_arg=${1#??}\
15799\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15800} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15801  && mv -f "$cfgfile.tmp" "$cfgfile" \
15802    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803test 0 -eq $? || _lt_function_replace_fail=:
15804
15805
15806  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15807func_lo2o ()\
15808{\
15809\    case ${1} in\
15810\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15811\      *)    func_lo2o_result=${1} ;;\
15812\    esac\
15813} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15814  && mv -f "$cfgfile.tmp" "$cfgfile" \
15815    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15816test 0 -eq $? || _lt_function_replace_fail=:
15817
15818
15819  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15820func_xform ()\
15821{\
15822    func_xform_result=${1%.*}.lo\
15823} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15824  && mv -f "$cfgfile.tmp" "$cfgfile" \
15825    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15826test 0 -eq $? || _lt_function_replace_fail=:
15827
15828
15829  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15830func_arith ()\
15831{\
15832    func_arith_result=$(( $* ))\
15833} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15834  && mv -f "$cfgfile.tmp" "$cfgfile" \
15835    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836test 0 -eq $? || _lt_function_replace_fail=:
15837
15838
15839  sed -e '/^func_len ()$/,/^} # func_len /c\
15840func_len ()\
15841{\
15842    func_len_result=${#1}\
15843} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15844  && mv -f "$cfgfile.tmp" "$cfgfile" \
15845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15846test 0 -eq $? || _lt_function_replace_fail=:
15847
15848fi
15849
15850if test x"$lt_shell_append" = xyes; then
15851  sed -e '/^func_append ()$/,/^} # func_append /c\
15852func_append ()\
15853{\
15854    eval "${1}+=\\${2}"\
15855} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15856  && mv -f "$cfgfile.tmp" "$cfgfile" \
15857    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15858test 0 -eq $? || _lt_function_replace_fail=:
15859
15860
15861  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15862func_append_quoted ()\
15863{\
15864\    func_quote_for_eval "${2}"\
15865\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15866} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15867  && mv -f "$cfgfile.tmp" "$cfgfile" \
15868    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869test 0 -eq $? || _lt_function_replace_fail=:
15870
15871
15872  # Save a `func_append' function call where possible by direct use of '+='
15873  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15874    && mv -f "$cfgfile.tmp" "$cfgfile" \
15875      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15876  test 0 -eq $? || _lt_function_replace_fail=:
15877else
15878  # Save a `func_append' function call even when '+=' is not available
15879  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15880    && mv -f "$cfgfile.tmp" "$cfgfile" \
15881      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15882  test 0 -eq $? || _lt_function_replace_fail=:
15883fi
15884
15885if test x"$_lt_function_replace_fail" = x":"; then
15886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15887$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15888fi
15889
15890
15891   mv -f "$cfgfile" "$ofile" ||
15892    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15893  chmod +x "$ofile"
15894
15895 ;;
15896    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15897  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15898  # are listed without --file.  Let's play safe and only enable the eval
15899  # if we detect the quoting.
15900  case $CONFIG_FILES in
15901  *\'*) eval set x "$CONFIG_FILES" ;;
15902  *)   set x $CONFIG_FILES ;;
15903  esac
15904  shift
15905  for mf
15906  do
15907    # Strip MF so we end up with the name of the file.
15908    mf=`echo "$mf" | sed -e 's/:.*$//'`
15909    # Check whether this is an Automake generated Makefile or not.
15910    # We used to match only the files named 'Makefile.in', but
15911    # some people rename them; so instead we look at the file content.
15912    # Grep'ing the first line is not enough: some people post-process
15913    # each Makefile.in and add a new line on top of each file to say so.
15914    # Grep'ing the whole file is not good either: AIX grep has a line
15915    # limit of 2048, but all sed's we know have understand at least 4000.
15916    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15917      dirpart=`$as_dirname -- "$mf" ||
15918$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15919	 X"$mf" : 'X\(//\)[^/]' \| \
15920	 X"$mf" : 'X\(//\)$' \| \
15921	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15922$as_echo X"$mf" |
15923    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15924	    s//\1/
15925	    q
15926	  }
15927	  /^X\(\/\/\)[^/].*/{
15928	    s//\1/
15929	    q
15930	  }
15931	  /^X\(\/\/\)$/{
15932	    s//\1/
15933	    q
15934	  }
15935	  /^X\(\/\).*/{
15936	    s//\1/
15937	    q
15938	  }
15939	  s/.*/./; q'`
15940    else
15941      continue
15942    fi
15943    # Extract the definition of DEPDIR, am__include, and am__quote
15944    # from the Makefile without running 'make'.
15945    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15946    test -z "$DEPDIR" && continue
15947    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15948    test -z "am__include" && continue
15949    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15950    # Find all dependency output files, they are included files with
15951    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15952    # simplest approach to changing $(DEPDIR) to its actual value in the
15953    # expansion.
15954    for file in `sed -n "
15955      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15956	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15957      # Make sure the directory exists.
15958      test -f "$dirpart/$file" && continue
15959      fdir=`$as_dirname -- "$file" ||
15960$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961	 X"$file" : 'X\(//\)[^/]' \| \
15962	 X"$file" : 'X\(//\)$' \| \
15963	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15964$as_echo X"$file" |
15965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15966	    s//\1/
15967	    q
15968	  }
15969	  /^X\(\/\/\)[^/].*/{
15970	    s//\1/
15971	    q
15972	  }
15973	  /^X\(\/\/\)$/{
15974	    s//\1/
15975	    q
15976	  }
15977	  /^X\(\/\).*/{
15978	    s//\1/
15979	    q
15980	  }
15981	  s/.*/./; q'`
15982      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15983      # echo "creating $dirpart/$file"
15984      echo '# dummy' > "$dirpart/$file"
15985    done
15986  done
15987}
15988 ;;
15989
15990  esac
15991done # for ac_tag
15992
15993
15994as_fn_exit 0
15995_ACEOF
15996ac_clean_files=$ac_clean_files_save
15997
15998test $ac_write_fail = 0 ||
15999  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16000
16001
16002# configure is writing to config.log, and then calls config.status.
16003# config.status does its own redirection, appending to config.log.
16004# Unfortunately, on DOS this fails, as config.log is still kept open
16005# by configure, so config.status won't be able to write to it; its
16006# output is simply discarded.  So we exec the FD to /dev/null,
16007# effectively closing config.log, so it can be properly (re)opened and
16008# appended to by config.status.  When coming back to configure, we
16009# need to make the FD available again.
16010if test "$no_create" != yes; then
16011  ac_cs_success=:
16012  ac_config_status_args=
16013  test "$silent" = yes &&
16014    ac_config_status_args="$ac_config_status_args --quiet"
16015  exec 5>/dev/null
16016  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16017  exec 5>>config.log
16018  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16019  # would make configure fail if this is the last instruction.
16020  $ac_cs_success || as_fn_exit 1
16021fi
16022if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16024$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16025fi
16026
16027