1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for OpenBSM 1.2-alpha5.
4#
5# Report bugs to <trustedbsd-audit@TrustedBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: trustedbsd-audit@TrustedBSD.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='OpenBSM'
592PACKAGE_TARNAME='openbsm'
593PACKAGE_VERSION='1.2-alpha5'
594PACKAGE_STRING='OpenBSM 1.2-alpha5'
595PACKAGE_BUGREPORT='trustedbsd-audit@TrustedBSD.org'
596PACKAGE_URL=''
597
598ac_unique_file="bin/auditreduce/auditreduce.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_func_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640USE_MACH_IPC_FALSE
641USE_MACH_IPC_TRUE
642HAVE_AUDIT_SYSCALLS_FALSE
643HAVE_AUDIT_SYSCALLS_TRUE
644LIBOBJS
645AM_BACKSLASH
646AM_DEFAULT_VERBOSITY
647AM_DEFAULT_V
648AM_V
649am__fastdepCC_FALSE
650am__fastdepCC_TRUE
651CCDEPMODE
652am__nodep
653AMDEPBACKSLASH
654AMDEP_FALSE
655AMDEP_TRUE
656am__quote
657am__include
658DEPDIR
659am__untar
660am__tar
661AMTAR
662am__leading_dot
663SET_MAKE
664mkdir_p
665MKDIR_P
666INSTALL_STRIP_PROGRAM
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676am__isrc
677YFLAGS
678YACC
679CPP
680LT_SYS_LIBRARY_PATH
681OTOOL64
682OTOOL
683LIPO
684NMEDIT
685DSYMUTIL
686MANIFEST_TOOL
687AWK
688RANLIB
689STRIP
690ac_ct_AR
691AR
692DLLTOOL
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702SED
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711LIBTOOL
712LEXLIB
713LEX_OUTPUT_ROOT
714LEX
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
725MIG
726USE_NATIVE_INCLUDES_FALSE
727USE_NATIVE_INCLUDES_TRUE
728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_maintainer_mode
773with_native_includes
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_aix_soname
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782enable_dependency_tracking
783enable_silent_rules
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793LT_SYS_LIBRARY_PATH
794CPP
795YACC
796YFLAGS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851  # If the previous option needs an argument, assign it.
852  if test -n "$ac_prev"; then
853    eval $ac_prev=\$ac_option
854    ac_prev=
855    continue
856  fi
857
858  case $ac_option in
859  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860  *=)   ac_optarg= ;;
861  *)    ac_optarg=yes ;;
862  esac
863
864  # Accept the important Cygnus configure options, so we can diagnose typos.
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures OpenBSM 1.2-alpha5 to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/openbsm]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406  case $ac_init_help in
1407     short | recursive ) echo "Configuration of OpenBSM 1.2-alpha5:";;
1408   esac
1409  cat <<\_ACEOF
1410
1411Optional Features:
1412  --disable-option-checking  ignore unrecognized --enable/--with options
1413  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415  --enable-maintainer-mode
1416                          enable make rules and dependencies not useful (and
1417                          sometimes confusing) to the casual installer
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-static[=PKGS]  build static libraries [default=yes]
1420  --enable-fast-install[=PKGS]
1421                          optimize for fast installation [default=yes]
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --enable-dependency-tracking
1424                          do not reject slow dependency extractors
1425  --disable-dependency-tracking
1426                          speeds up one-time build
1427  --enable-silent-rules   less verbose build output (undo: "make V=1")
1428  --disable-silent-rules  verbose build output (undo: "make V=0")
1429
1430Optional Packages:
1431  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433  --with-native-includes  Use the system native include files instead of those
1434                          included with openbsm.
1435  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1436                          both]
1437  --with-aix-soname=aix|svr4|both
1438                          shared library versioning (aka "SONAME") variant to
1439                          provide on AIX, [default=aix].
1440  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1441  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1442                          compiler's sysroot if not specified).
1443
1444Some influential environment variables:
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448              nonstandard directory <lib dir>
1449  LIBS        libraries to pass to the linker, e.g. -l<library>
1450  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451              you have headers in a nonstandard directory <include dir>
1452  LT_SYS_LIBRARY_PATH
1453              User-defined run-time library search path.
1454  CPP         C preprocessor
1455  YACC        The `Yet Another Compiler Compiler' implementation to use.
1456              Defaults to the first program found out of: `bison -y', `byacc',
1457              `yacc'.
1458  YFLAGS      The list of arguments that will be passed by default to $YACC.
1459              This script will default YFLAGS to the empty string to avoid a
1460              default value of `-d' given by some make applications.
1461
1462Use these variables to override the choices made by `configure' or to help
1463it to find libraries and programs with nonstandard names/locations.
1464
1465Report bugs to <trustedbsd-audit@TrustedBSD.org>.
1466_ACEOF
1467ac_status=$?
1468fi
1469
1470if test "$ac_init_help" = "recursive"; then
1471  # If there are subdirs, report their specific --help.
1472  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473    test -d "$ac_dir" ||
1474      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475      continue
1476    ac_builddir=.
1477
1478case "$ac_dir" in
1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480*)
1481  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482  # A ".." for each directory in $ac_dir_suffix.
1483  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484  case $ac_top_builddir_sub in
1485  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487  esac ;;
1488esac
1489ac_abs_top_builddir=$ac_pwd
1490ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491# for backward compatibility:
1492ac_top_builddir=$ac_top_build_prefix
1493
1494case $srcdir in
1495  .)  # We are building in place.
1496    ac_srcdir=.
1497    ac_top_srcdir=$ac_top_builddir_sub
1498    ac_abs_top_srcdir=$ac_pwd ;;
1499  [\\/]* | ?:[\\/]* )  # Absolute name.
1500    ac_srcdir=$srcdir$ac_dir_suffix;
1501    ac_top_srcdir=$srcdir
1502    ac_abs_top_srcdir=$srcdir ;;
1503  *) # Relative name.
1504    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505    ac_top_srcdir=$ac_top_build_prefix$srcdir
1506    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507esac
1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510    cd "$ac_dir" || { ac_status=$?; continue; }
1511    # Check for guested configure.
1512    if test -f "$ac_srcdir/configure.gnu"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515    elif test -f "$ac_srcdir/configure"; then
1516      echo &&
1517      $SHELL "$ac_srcdir/configure" --help=recursive
1518    else
1519      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520    fi || ac_status=$?
1521    cd "$ac_pwd" || { ac_status=$?; break; }
1522  done
1523fi
1524
1525test -n "$ac_init_help" && exit $ac_status
1526if $ac_init_version; then
1527  cat <<\_ACEOF
1528OpenBSM configure 1.2-alpha5
1529generated by GNU Autoconf 2.69
1530
1531Copyright (C) 2012 Free Software Foundation, Inc.
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
1535  exit
1536fi
1537
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
1541
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  rm -f conftest.$ac_objext
1549  if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556  (eval "$ac_compile") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } && {
1565	 test -z "$ac_c_werror_flag" ||
1566	 test ! -s conftest.err
1567       } && test -s conftest.$ac_objext; then :
1568  ac_retval=0
1569else
1570  $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573	ac_retval=1
1574fi
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576  as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_try_link LINENO
1581# -----------------------
1582# Try to link conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_link ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext conftest$ac_exeext
1587  if { { ac_try="$ac_link"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_link") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603	 test -z "$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       } && test -s conftest$ac_exeext && {
1606	 test "$cross_compiling" = yes ||
1607	 test -x conftest$ac_exeext
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614	ac_retval=1
1615fi
1616  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618  # interfere with the next link command; also delete a directory that is
1619  # left behind by Apple's compiler.  We do this before executing the actions.
1620  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_c_try_link
1625
1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627# -------------------------------------------------------
1628# Tests whether HEADER exists and can be compiled using the include files in
1629# INCLUDES, setting the cache variable VAR accordingly.
1630ac_fn_c_check_header_compile ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634$as_echo_n "checking for $2... " >&6; }
1635if eval \${$3+:} false; then :
1636  $as_echo_n "(cached) " >&6
1637else
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644  eval "$3=yes"
1645else
1646  eval "$3=no"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_header_compile
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_func LINENO FUNC VAR
1737# ----------------------------------
1738# Tests whether FUNC exists, setting the cache variable VAR accordingly
1739ac_fn_c_check_func ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754    which can conflict with char $2 (); below.
1755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756    <limits.h> exists even on freestanding compilers.  */
1757
1758#ifdef __STDC__
1759# include <limits.h>
1760#else
1761# include <assert.h>
1762#endif
1763
1764#undef $2
1765
1766/* Override any GCC internal prototype to avoid an error.
1767   Use char because int might match the return type of a GCC
1768   builtin and then its argument prototype would still apply.  */
1769#ifdef __cplusplus
1770extern "C"
1771#endif
1772char $2 ();
1773/* The GNU C library defines this for functions which it implements
1774    to always fail with ENOSYS.  Some functions are actually named
1775    something starting with __ and the normal name is an alias.  */
1776#if defined __stub_$2 || defined __stub___$2
1777choke me
1778#endif
1779
1780int
1781main ()
1782{
1783return $2 ();
1784  ;
1785  return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_link "$LINENO"; then :
1789  eval "$3=yes"
1790else
1791  eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext \
1794    conftest$ac_exeext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_func
1802
1803# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1804# -------------------------------------------------------
1805# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1806# the include files in INCLUDES and setting the cache variable VAR
1807# accordingly.
1808ac_fn_c_check_header_mongrel ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  if eval \${$3+:} false; then :
1812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if eval \${$3+:} false; then :
1815  $as_echo_n "(cached) " >&6
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820else
1821  # Is the header compilable?
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1823$as_echo_n "checking $2 usability... " >&6; }
1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$4
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830  ac_header_compiler=yes
1831else
1832  ac_header_compiler=no
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1836$as_echo "$ac_header_compiler" >&6; }
1837
1838# Is the header present?
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1840$as_echo_n "checking $2 presence... " >&6; }
1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843#include <$2>
1844_ACEOF
1845if ac_fn_c_try_cpp "$LINENO"; then :
1846  ac_header_preproc=yes
1847else
1848  ac_header_preproc=no
1849fi
1850rm -f conftest.err conftest.i conftest.$ac_ext
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1852$as_echo "$ac_header_preproc" >&6; }
1853
1854# So?  What about this header?
1855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856  yes:no: )
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1858$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861    ;;
1862  no:yes:* )
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1864$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1866$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1868$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1870$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873( $as_echo "## ---------------------------------------------- ##
1874## Report this to trustedbsd-audit@TrustedBSD.org ##
1875## ---------------------------------------------- ##"
1876     ) | sed "s/^/$as_me: WARNING:     /" >&2
1877    ;;
1878esac
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  eval "$3=\$ac_header_compiler"
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_header_mongrel
1893
1894# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895# -------------------------------------------
1896# Tests whether TYPE exists after having included INCLUDES, setting cache
1897# variable VAR accordingly.
1898ac_fn_c_check_type ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if eval \${$3+:} false; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  eval "$3=no"
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main ()
1912{
1913if (sizeof ($2))
1914	 return 0;
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926if (sizeof (($2)))
1927	    return 0;
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933
1934else
1935  eval "$3=yes"
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_type
1947
1948# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949# ----------------------------------------------------
1950# Tries to find if the field MEMBER exists in type AGGR, after including
1951# INCLUDES, setting cache variable VAR accordingly.
1952ac_fn_c_check_member ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956$as_echo_n "checking for $2.$3... " >&6; }
1957if eval \${$4+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h.  */
1962$5
1963int
1964main ()
1965{
1966static $2 ac_aggr;
1967if (ac_aggr.$3)
1968return 0;
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  eval "$4=yes"
1975else
1976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$5
1979int
1980main ()
1981{
1982static $2 ac_aggr;
1983if (sizeof ac_aggr.$3)
1984return 0;
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  eval "$4=yes"
1991else
1992  eval "$4=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998eval ac_res=\$$4
1999	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_member
2004cat >config.log <<_ACEOF
2005This file contains any messages produced by compilers while
2006running configure, to aid debugging if configure makes a mistake.
2007
2008It was created by OpenBSM $as_me 1.2-alpha5, which was
2009generated by GNU Autoconf 2.69.  Invocation command line was
2010
2011  $ $0 $@
2012
2013_ACEOF
2014exec 5>>config.log
2015{
2016cat <<_ASUNAME
2017## --------- ##
2018## Platform. ##
2019## --------- ##
2020
2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2029
2030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2037
2038_ASUNAME
2039
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045    $as_echo "PATH: $as_dir"
2046  done
2047IFS=$as_save_IFS
2048
2049} >&5
2050
2051cat >&5 <<_ACEOF
2052
2053
2054## ----------- ##
2055## Core tests. ##
2056## ----------- ##
2057
2058_ACEOF
2059
2060
2061# Keep a trace of the command line.
2062# Strip out --no-create and --no-recursion so they do not pile up.
2063# Strip out --silent because we don't want to record it for future runs.
2064# Also quote any args containing shell meta-characters.
2065# Make two passes to allow for proper duplicate-argument suppression.
2066ac_configure_args=
2067ac_configure_args0=
2068ac_configure_args1=
2069ac_must_keep_next=false
2070for ac_pass in 1 2
2071do
2072  for ac_arg
2073  do
2074    case $ac_arg in
2075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077    | -silent | --silent | --silen | --sile | --sil)
2078      continue ;;
2079    *\'*)
2080      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081    esac
2082    case $ac_pass in
2083    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2084    2)
2085      as_fn_append ac_configure_args1 " '$ac_arg'"
2086      if test $ac_must_keep_next = true; then
2087	ac_must_keep_next=false # Got value, back to normal.
2088      else
2089	case $ac_arg in
2090	  *=* | --config-cache | -C | -disable-* | --disable-* \
2091	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093	  | -with-* | --with-* | -without-* | --without-* | --x)
2094	    case "$ac_configure_args0 " in
2095	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096	    esac
2097	    ;;
2098	  -* ) ac_must_keep_next=true ;;
2099	esac
2100      fi
2101      as_fn_append ac_configure_args " '$ac_arg'"
2102      ;;
2103    esac
2104  done
2105done
2106{ ac_configure_args0=; unset ac_configure_args0;}
2107{ ac_configure_args1=; unset ac_configure_args1;}
2108
2109# When interrupted or exit'd, cleanup temporary files, and complete
2110# config.log.  We remove comments because anyway the quotes in there
2111# would cause problems or look ugly.
2112# WARNING: Use '\'' to represent an apostrophe within the trap.
2113# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114trap 'exit_status=$?
2115  # Save into config.log some information that might help in debugging.
2116  {
2117    echo
2118
2119    $as_echo "## ---------------- ##
2120## Cache variables. ##
2121## ---------------- ##"
2122    echo
2123    # The following way of writing the cache mishandles newlines in values,
2124(
2125  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126    eval ac_val=\$$ac_var
2127    case $ac_val in #(
2128    *${as_nl}*)
2129      case $ac_var in #(
2130      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132      esac
2133      case $ac_var in #(
2134      _ | IFS | as_nl) ;; #(
2135      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136      *) { eval $ac_var=; unset $ac_var;} ;;
2137      esac ;;
2138    esac
2139  done
2140  (set) 2>&1 |
2141    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142    *${as_nl}ac_space=\ *)
2143      sed -n \
2144	"s/'\''/'\''\\\\'\'''\''/g;
2145	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146      ;; #(
2147    *)
2148      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149      ;;
2150    esac |
2151    sort
2152)
2153    echo
2154
2155    $as_echo "## ----------------- ##
2156## Output variables. ##
2157## ----------------- ##"
2158    echo
2159    for ac_var in $ac_subst_vars
2160    do
2161      eval ac_val=\$$ac_var
2162      case $ac_val in
2163      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164      esac
2165      $as_echo "$ac_var='\''$ac_val'\''"
2166    done | sort
2167    echo
2168
2169    if test -n "$ac_subst_files"; then
2170      $as_echo "## ------------------- ##
2171## File substitutions. ##
2172## ------------------- ##"
2173      echo
2174      for ac_var in $ac_subst_files
2175      do
2176	eval ac_val=\$$ac_var
2177	case $ac_val in
2178	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179	esac
2180	$as_echo "$ac_var='\''$ac_val'\''"
2181      done | sort
2182      echo
2183    fi
2184
2185    if test -s confdefs.h; then
2186      $as_echo "## ----------- ##
2187## confdefs.h. ##
2188## ----------- ##"
2189      echo
2190      cat confdefs.h
2191      echo
2192    fi
2193    test "$ac_signal" != 0 &&
2194      $as_echo "$as_me: caught signal $ac_signal"
2195    $as_echo "$as_me: exit $exit_status"
2196  } >&5
2197  rm -f core *.core core.conftest.* &&
2198    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199    exit $exit_status
2200' 0
2201for ac_signal in 1 2 13 15; do
2202  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203done
2204ac_signal=0
2205
2206# confdefs.h avoids OS command line length limits that DEFS can exceed.
2207rm -f -r conftest* confdefs.h
2208
2209$as_echo "/* confdefs.h */" > confdefs.h
2210
2211# Predefined preprocessor variables.
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_NAME "$PACKAGE_NAME"
2215_ACEOF
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219_ACEOF
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_VERSION "$PACKAGE_VERSION"
2223_ACEOF
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_STRING "$PACKAGE_STRING"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_URL "$PACKAGE_URL"
2235_ACEOF
2236
2237
2238# Let the site file select an alternate cache file if it wants to.
2239# Prefer an explicitly selected file to automatically selected ones.
2240ac_site_file1=NONE
2241ac_site_file2=NONE
2242if test -n "$CONFIG_SITE"; then
2243  # We do not want a PATH search for config.site.
2244  case $CONFIG_SITE in #((
2245    -*)  ac_site_file1=./$CONFIG_SITE;;
2246    */*) ac_site_file1=$CONFIG_SITE;;
2247    *)   ac_site_file1=./$CONFIG_SITE;;
2248  esac
2249elif test "x$prefix" != xNONE; then
2250  ac_site_file1=$prefix/share/config.site
2251  ac_site_file2=$prefix/etc/config.site
2252else
2253  ac_site_file1=$ac_default_prefix/share/config.site
2254  ac_site_file2=$ac_default_prefix/etc/config.site
2255fi
2256for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2257do
2258  test "x$ac_site_file" = xNONE && continue
2259  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262    sed 's/^/| /' "$ac_site_file" >&5
2263    . "$ac_site_file" \
2264      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266as_fn_error $? "failed to load site script $ac_site_file
2267See \`config.log' for more details" "$LINENO" 5; }
2268  fi
2269done
2270
2271if test -r "$cache_file"; then
2272  # Some versions of bash will fail to source /dev/null (special files
2273  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2274  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276$as_echo "$as_me: loading cache $cache_file" >&6;}
2277    case $cache_file in
2278      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279      *)                      . "./$cache_file";;
2280    esac
2281  fi
2282else
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284$as_echo "$as_me: creating cache $cache_file" >&6;}
2285  >$cache_file
2286fi
2287
2288as_fn_append ac_header_list " sys/time.h"
2289as_fn_append ac_header_list " unistd.h"
2290as_fn_append ac_func_list " alarm"
2291# Check that the precious variables saved in the cache have kept the same
2292# value.
2293ac_cache_corrupted=false
2294for ac_var in $ac_precious_vars; do
2295  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296  eval ac_new_set=\$ac_env_${ac_var}_set
2297  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298  eval ac_new_val=\$ac_env_${ac_var}_value
2299  case $ac_old_set,$ac_new_set in
2300    set,)
2301      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,set)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,);;
2309    *)
2310      if test "x$ac_old_val" != "x$ac_new_val"; then
2311	# differences in whitespace do not lead to failure.
2312	ac_old_val_w=`echo x $ac_old_val`
2313	ac_new_val_w=`echo x $ac_new_val`
2314	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317	  ac_cache_corrupted=:
2318	else
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321	  eval $ac_var=\$ac_old_val
2322	fi
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2324$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2326$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2327      fi;;
2328  esac
2329  # Pass precious variables to config.status.
2330  if test "$ac_new_set" = set; then
2331    case $ac_new_val in
2332    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    *) ac_arg=$ac_var=$ac_new_val ;;
2334    esac
2335    case " $ac_configure_args " in
2336      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338    esac
2339  fi
2340done
2341if $ac_cache_corrupted; then
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2347fi
2348## -------------------- ##
2349## Main body of script. ##
2350## -------------------- ##
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359
2360
2361ac_aux_dir=
2362for ac_dir in config "$srcdir"/config; do
2363  if test -f "$ac_dir/install-sh"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/install-sh -c"
2366    break
2367  elif test -f "$ac_dir/install.sh"; then
2368    ac_aux_dir=$ac_dir
2369    ac_install_sh="$ac_aux_dir/install.sh -c"
2370    break
2371  elif test -f "$ac_dir/shtool"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/shtool install -c"
2374    break
2375  fi
2376done
2377if test -z "$ac_aux_dir"; then
2378  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2379fi
2380
2381# These three variables are undocumented and unsupported,
2382# and are intended to be withdrawn in a future Autoconf release.
2383# They can cause serious problems if a builder's source tree is in a directory
2384# whose full name contains unusual characters.
2385ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2386ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2387ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2388
2389
2390
2391ac_config_headers="$ac_config_headers config/config.h"
2392
2393
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2395$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2396    # Check whether --enable-maintainer-mode was given.
2397if test "${enable_maintainer_mode+set}" = set; then :
2398  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2399else
2400  USE_MAINTAINER_MODE=no
2401fi
2402
2403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2404$as_echo "$USE_MAINTAINER_MODE" >&6; }
2405   if test $USE_MAINTAINER_MODE = yes; then
2406  MAINTAINER_MODE_TRUE=
2407  MAINTAINER_MODE_FALSE='#'
2408else
2409  MAINTAINER_MODE_TRUE='#'
2410  MAINTAINER_MODE_FALSE=
2411fi
2412
2413  MAINT=$MAINTAINER_MODE_TRUE
2414
2415
2416
2417# --with-native-includes forces the use of the system bsm headers.
2418
2419# Check whether --with-native-includes was given.
2420if test "${with_native_includes+set}" = set; then :
2421  withval=$with_native_includes;
2422
2423$as_echo "#define USE_NATIVE_INCLUDES /**/" >>confdefs.h
2424
2425use_native_includes=true
2426
2427else
2428  use_native_includes=false
2429fi
2430
2431 if $use_native_includes; then
2432  USE_NATIVE_INCLUDES_TRUE=
2433  USE_NATIVE_INCLUDES_FALSE='#'
2434else
2435  USE_NATIVE_INCLUDES_TRUE='#'
2436  USE_NATIVE_INCLUDES_FALSE=
2437fi
2438
2439
2440for ac_prog in mig
2441do
2442  # Extract the first word of "$ac_prog", so it can be a program name with args.
2443set dummy $ac_prog; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if ${ac_cv_path_MIG+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  case $MIG in
2450  [\\/]* | ?:[\\/]*)
2451  ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2452  ;;
2453  *)
2454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459    for ac_exec_ext in '' $ac_executable_extensions; do
2460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461    ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466  done
2467IFS=$as_save_IFS
2468
2469  ;;
2470esac
2471fi
2472MIG=$ac_cv_path_MIG
2473if test -n "$MIG"; then
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
2475$as_echo "$MIG" >&6; }
2476else
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478$as_echo "no" >&6; }
2479fi
2480
2481
2482  test -n "$MIG" && break
2483done
2484
2485
2486# Checks for programs.
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496$as_echo_n "checking for $ac_word... " >&6; }
2497if ${ac_cv_prog_CC+:} false; then :
2498  $as_echo_n "(cached) " >&6
2499else
2500  if test -n "$CC"; then
2501  ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508    for ac_exec_ext in '' $ac_executable_extensions; do
2509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512    break 2
2513  fi
2514done
2515  done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2523$as_echo "$CC" >&6; }
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526$as_echo "no" >&6; }
2527fi
2528
2529
2530fi
2531if test -z "$ac_cv_prog_CC"; then
2532  ac_ct_CC=$CC
2533  # Extract the first word of "gcc", so it can be a program name with args.
2534set dummy gcc; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_ac_ct_CC+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test -n "$ac_ct_CC"; then
2541  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546  IFS=$as_save_IFS
2547  test -z "$as_dir" && as_dir=.
2548    for ac_exec_ext in '' $ac_executable_extensions; do
2549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550    ac_cv_prog_ac_ct_CC="gcc"
2551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552    break 2
2553  fi
2554done
2555  done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2563$as_echo "$ac_ct_CC" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569  if test "x$ac_ct_CC" = x; then
2570    CC=""
2571  else
2572    case $cross_compiling:$ac_tool_warned in
2573yes:)
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2576ac_tool_warned=yes ;;
2577esac
2578    CC=$ac_ct_CC
2579  fi
2580else
2581  CC="$ac_cv_prog_CC"
2582fi
2583
2584if test -z "$CC"; then
2585          if test -n "$ac_tool_prefix"; then
2586    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2587set dummy ${ac_tool_prefix}cc; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_CC+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test -n "$CC"; then
2594  ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599  IFS=$as_save_IFS
2600  test -z "$as_dir" && as_dir=.
2601    for ac_exec_ext in '' $ac_executable_extensions; do
2602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603    ac_cv_prog_CC="${ac_tool_prefix}cc"
2604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605    break 2
2606  fi
2607done
2608  done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613CC=$ac_cv_prog_CC
2614if test -n "$CC"; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2616$as_echo "$CC" >&6; }
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622
2623  fi
2624fi
2625if test -z "$CC"; then
2626  # Extract the first word of "cc", so it can be a program name with args.
2627set dummy cc; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if ${ac_cv_prog_CC+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test -n "$CC"; then
2634  ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636  ac_prog_rejected=no
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2645       ac_prog_rejected=yes
2646       continue
2647     fi
2648    ac_cv_prog_CC="cc"
2649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653  done
2654IFS=$as_save_IFS
2655
2656if test $ac_prog_rejected = yes; then
2657  # We found a bogon in the path, so make sure we never use it.
2658  set dummy $ac_cv_prog_CC
2659  shift
2660  if test $# != 0; then
2661    # We chose a different compiler from the bogus one.
2662    # However, it has the same basename, so the bogon will be chosen
2663    # first if we set CC to just the basename; use the full file name.
2664    shift
2665    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2666  fi
2667fi
2668fi
2669fi
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
2674else
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680fi
2681if test -z "$CC"; then
2682  if test -n "$ac_tool_prefix"; then
2683  for ac_prog in cl.exe
2684  do
2685    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_CC+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$CC"; then
2693  ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722    test -n "$CC" && break
2723  done
2724fi
2725if test -z "$CC"; then
2726  ac_ct_CC=$CC
2727  for ac_prog in cl.exe
2728do
2729  # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_ac_ct_CC+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$ac_ct_CC"; then
2737  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_ac_ct_CC="$ac_prog"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757if test -n "$ac_ct_CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759$as_echo "$ac_ct_CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  test -n "$ac_ct_CC" && break
2767done
2768
2769  if test "x$ac_ct_CC" = x; then
2770    CC=""
2771  else
2772    case $cross_compiling:$ac_tool_warned in
2773yes:)
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776ac_tool_warned=yes ;;
2777esac
2778    CC=$ac_ct_CC
2779  fi
2780fi
2781
2782fi
2783
2784
2785test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787as_fn_error $? "no acceptable C compiler found in \$PATH
2788See \`config.log' for more details" "$LINENO" 5; }
2789
2790# Provide some information about the compiler.
2791$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2792set X $ac_compile
2793ac_compiler=$2
2794for ac_option in --version -v -V -qversion; do
2795  { { ac_try="$ac_compiler $ac_option >&5"
2796case "(($ac_try" in
2797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798  *) ac_try_echo=$ac_try;;
2799esac
2800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801$as_echo "$ac_try_echo"; } >&5
2802  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2803  ac_status=$?
2804  if test -s conftest.err; then
2805    sed '10a\
2806... rest of stderr output deleted ...
2807         10q' conftest.err >conftest.er1
2808    cat conftest.er1 >&5
2809  fi
2810  rm -f conftest.er1 conftest.err
2811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812  test $ac_status = 0; }
2813done
2814
2815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826ac_clean_files_save=$ac_clean_files
2827ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2828# Try to create an executable without -o first, disregard a.out.
2829# It will help us diagnose broken compilers, and finding out an intuition
2830# of exeext.
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832$as_echo_n "checking whether the C compiler works... " >&6; }
2833ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2834
2835# The possible output files:
2836ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2837
2838ac_rmfiles=
2839for ac_file in $ac_files
2840do
2841  case $ac_file in
2842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2844  esac
2845done
2846rm -f $ac_rmfiles
2847
2848if { { ac_try="$ac_link_default"
2849case "(($ac_try" in
2850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851  *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855  (eval "$ac_link_default") 2>&5
2856  ac_status=$?
2857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858  test $ac_status = 0; }; then :
2859  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2862# so that the user can short-circuit this test for compilers unknown to
2863# Autoconf.
2864for ac_file in $ac_files ''
2865do
2866  test -f "$ac_file" || continue
2867  case $ac_file in
2868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2869	;;
2870    [ab].out )
2871	# We found the default executable, but exeext='' is most
2872	# certainly right.
2873	break;;
2874    *.* )
2875	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2876	then :; else
2877	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878	fi
2879	# We set ac_cv_exeext here because the later test for it is not
2880	# safe: cross compilers may not add the suffix if given an `-o'
2881	# argument, so we may need to know it at that point already.
2882	# Even if this section looks crufty: it has the advantage of
2883	# actually working.
2884	break;;
2885    * )
2886	break;;
2887  esac
2888done
2889test "$ac_cv_exeext" = no && ac_cv_exeext=
2890
2891else
2892  ac_file=''
2893fi
2894if test -z "$ac_file"; then :
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897$as_echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902as_fn_error 77 "C compiler cannot create executables
2903See \`config.log' for more details" "$LINENO" 5; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906$as_echo "yes" >&6; }
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909$as_echo_n "checking for C compiler default output file name... " >&6; }
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2911$as_echo "$ac_file" >&6; }
2912ac_exeext=$ac_cv_exeext
2913
2914rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2915ac_clean_files=$ac_clean_files_save
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2917$as_echo_n "checking for suffix of executables... " >&6; }
2918if { { ac_try="$ac_link"
2919case "(($ac_try" in
2920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921  *) ac_try_echo=$ac_try;;
2922esac
2923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924$as_echo "$ac_try_echo"; } >&5
2925  (eval "$ac_link") 2>&5
2926  ac_status=$?
2927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928  test $ac_status = 0; }; then :
2929  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2931# work properly (i.e., refer to `conftest.exe'), while it won't with
2932# `rm'.
2933for ac_file in conftest.exe conftest conftest.*; do
2934  test -f "$ac_file" || continue
2935  case $ac_file in
2936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938	  break;;
2939    * ) break;;
2940  esac
2941done
2942else
2943  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details" "$LINENO" 5; }
2947fi
2948rm -f conftest conftest$ac_cv_exeext
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2950$as_echo "$ac_cv_exeext" >&6; }
2951
2952rm -f conftest.$ac_ext
2953EXEEXT=$ac_cv_exeext
2954ac_exeext=$EXEEXT
2955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h.  */
2957#include <stdio.h>
2958int
2959main ()
2960{
2961FILE *f = fopen ("conftest.out", "w");
2962 return ferror (f) || fclose (f) != 0;
2963
2964  ;
2965  return 0;
2966}
2967_ACEOF
2968ac_clean_files="$ac_clean_files conftest.out"
2969# Check that the compiler produces executables we can run.  If not, either
2970# the compiler is broken, or we cross compile.
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972$as_echo_n "checking whether we are cross compiling... " >&6; }
2973if test "$cross_compiling" != yes; then
2974  { { ac_try="$ac_link"
2975case "(($ac_try" in
2976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977  *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980$as_echo "$ac_try_echo"; } >&5
2981  (eval "$ac_link") 2>&5
2982  ac_status=$?
2983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984  test $ac_status = 0; }
2985  if { ac_try='./conftest$ac_cv_exeext'
2986  { { case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992  (eval "$ac_try") 2>&5
2993  ac_status=$?
2994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995  test $ac_status = 0; }; }; then
2996    cross_compiling=no
2997  else
2998    if test "$cross_compiling" = maybe; then
2999	cross_compiling=yes
3000    else
3001	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error $? "cannot run C compiled programs.
3004If you meant to cross compile, use \`--host'.
3005See \`config.log' for more details" "$LINENO" 5; }
3006    fi
3007  fi
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3010$as_echo "$cross_compiling" >&6; }
3011
3012rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3013ac_clean_files=$ac_clean_files_save
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3015$as_echo_n "checking for suffix of object files... " >&6; }
3016if ${ac_cv_objext+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030rm -f conftest.o conftest.obj
3031if { { ac_try="$ac_compile"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037$as_echo "$ac_try_echo"; } >&5
3038  (eval "$ac_compile") 2>&5
3039  ac_status=$?
3040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041  test $ac_status = 0; }; then :
3042  for ac_file in conftest.o conftest.obj conftest.*; do
3043  test -f "$ac_file" || continue;
3044  case $ac_file in
3045    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3046    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3047       break;;
3048  esac
3049done
3050else
3051  $as_echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "cannot compute suffix of object files: cannot compile
3057See \`config.log' for more details" "$LINENO" 5; }
3058fi
3059rm -f conftest.$ac_cv_objext conftest.$ac_ext
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3062$as_echo "$ac_cv_objext" >&6; }
3063OBJEXT=$ac_cv_objext
3064ac_objext=$OBJEXT
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3066$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3067if ${ac_cv_c_compiler_gnu+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076#ifndef __GNUC__
3077       choke me
3078#endif
3079
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084if ac_fn_c_try_compile "$LINENO"; then :
3085  ac_compiler_gnu=yes
3086else
3087  ac_compiler_gnu=no
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092fi
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3094$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3095if test $ac_compiler_gnu = yes; then
3096  GCC=yes
3097else
3098  GCC=
3099fi
3100ac_test_CFLAGS=${CFLAGS+set}
3101ac_save_CFLAGS=$CFLAGS
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3103$as_echo_n "checking whether $CC accepts -g... " >&6; }
3104if ${ac_cv_prog_cc_g+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  ac_save_c_werror_flag=$ac_c_werror_flag
3108   ac_c_werror_flag=yes
3109   ac_cv_prog_cc_g=no
3110   CFLAGS="-g"
3111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123  ac_cv_prog_cc_g=yes
3124else
3125  CFLAGS=""
3126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137if ac_fn_c_try_compile "$LINENO"; then :
3138
3139else
3140  ac_c_werror_flag=$ac_save_c_werror_flag
3141	 CFLAGS="-g"
3142	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153if ac_fn_c_try_compile "$LINENO"; then :
3154  ac_cv_prog_cc_g=yes
3155fi
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161   ac_c_werror_flag=$ac_save_c_werror_flag
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3164$as_echo "$ac_cv_prog_cc_g" >&6; }
3165if test "$ac_test_CFLAGS" = set; then
3166  CFLAGS=$ac_save_CFLAGS
3167elif test $ac_cv_prog_cc_g = yes; then
3168  if test "$GCC" = yes; then
3169    CFLAGS="-g -O2"
3170  else
3171    CFLAGS="-g"
3172  fi
3173else
3174  if test "$GCC" = yes; then
3175    CFLAGS="-O2"
3176  else
3177    CFLAGS=
3178  fi
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3181$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3182if ${ac_cv_prog_cc_c89+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  ac_cv_prog_cc_c89=no
3186ac_save_CC=$CC
3187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188/* end confdefs.h.  */
3189#include <stdarg.h>
3190#include <stdio.h>
3191struct stat;
3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3193struct buf { int x; };
3194FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195static char *e (p, i)
3196     char **p;
3197     int i;
3198{
3199  return p[i];
3200}
3201static char *f (char * (*g) (char **, int), char **p, ...)
3202{
3203  char *s;
3204  va_list v;
3205  va_start (v,p);
3206  s = g (p, va_arg (v,int));
3207  va_end (v);
3208  return s;
3209}
3210
3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3212   function prototypes and stuff, but not '\xHH' hex character constants.
3213   These don't provoke an error unfortunately, instead are silently treated
3214   as 'x'.  The following induces an error, until -std is added to get
3215   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3216   array size at least.  It's necessary to write '\x00'==0 to get something
3217   that's true only with -std.  */
3218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221   inside strings and character constants.  */
3222#define FOO(x) 'x'
3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225int test (int i, double x);
3226struct s1 {int (*f) (int a);};
3227struct s2 {int (*f) (double a);};
3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229int argc;
3230char **argv;
3231int
3232main ()
3233{
3234return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241do
3242  CC="$ac_save_CC $ac_arg"
3243  if ac_fn_c_try_compile "$LINENO"; then :
3244  ac_cv_prog_cc_c89=$ac_arg
3245fi
3246rm -f core conftest.err conftest.$ac_objext
3247  test "x$ac_cv_prog_cc_c89" != "xno" && break
3248done
3249rm -f conftest.$ac_ext
3250CC=$ac_save_CC
3251
3252fi
3253# AC_CACHE_VAL
3254case "x$ac_cv_prog_cc_c89" in
3255  x)
3256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3257$as_echo "none needed" >&6; } ;;
3258  xno)
3259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3260$as_echo "unsupported" >&6; } ;;
3261  *)
3262    CC="$CC $ac_cv_prog_cc_c89"
3263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3265esac
3266if test "x$ac_cv_prog_cc_c89" != xno; then :
3267
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276# Expand $ac_aux_dir to an absolute path.
3277am_aux_dir=`cd "$ac_aux_dir" && pwd`
3278
3279ac_ext=c
3280ac_cpp='$CPP $CPPFLAGS'
3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3285$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3286if ${am_cv_prog_cc_c_o+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300  # Make sure it works both with $CC and with simple cc.
3301  # Following AC_PROG_CC_C_O, we do the test twice because some
3302  # compilers refuse to overwrite an existing .o file with -o,
3303  # though they will create one.
3304  am_cv_prog_cc_c_o=yes
3305  for am_i in 1 2; do
3306    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3307   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } \
3311         && test -f conftest2.$ac_objext; then
3312      : OK
3313    else
3314      am_cv_prog_cc_c_o=no
3315      break
3316    fi
3317  done
3318  rm -f core conftest*
3319  unset am_i
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3322$as_echo "$am_cv_prog_cc_c_o" >&6; }
3323if test "$am_cv_prog_cc_c_o" != yes; then
3324   # Losing compiler, so override with the script.
3325   # FIXME: It is wrong to rewrite CC.
3326   # But if we don't then we get into trouble of one sort or another.
3327   # A longer-term fix would be to have automake use am__CC in this case,
3328   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3329   CC="$am_aux_dir/compile $CC"
3330fi
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336
3337
3338# Find a good install program.  We prefer a C program (faster),
3339# so one script is as good as another.  But avoid the broken or
3340# incompatible versions:
3341# SysV /etc/install, /usr/sbin/install
3342# SunOS /usr/etc/install
3343# IRIX /sbin/install
3344# AIX /bin/install
3345# AmigaOS /C/install, which installs bootblocks on floppy discs
3346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3347# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3349# OS/2's system install, which has a completely different semantic
3350# ./install, which can be erroneously created by make from ./install.sh.
3351# Reject install programs that cannot install multiple files.
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3353$as_echo_n "checking for a BSD-compatible install... " >&6; }
3354if test -z "$INSTALL"; then
3355if ${ac_cv_path_install+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    # Account for people who put trailing slashes in PATH elements.
3364case $as_dir/ in #((
3365  ./ | .// | /[cC]/* | \
3366  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3367  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3368  /usr/ucb/* ) ;;
3369  *)
3370    # OSF1 and SCO ODT 3.0 have their own names for install.
3371    # Don't use installbsd from OSF since it installs stuff as root
3372    # by default.
3373    for ac_prog in ginstall scoinst install; do
3374      for ac_exec_ext in '' $ac_executable_extensions; do
3375	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3376	  if test $ac_prog = install &&
3377	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3378	    # AIX install.  It has an incompatible calling convention.
3379	    :
3380	  elif test $ac_prog = install &&
3381	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3382	    # program-specific install script used by HP pwplus--don't use.
3383	    :
3384	  else
3385	    rm -rf conftest.one conftest.two conftest.dir
3386	    echo one > conftest.one
3387	    echo two > conftest.two
3388	    mkdir conftest.dir
3389	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3390	      test -s conftest.one && test -s conftest.two &&
3391	      test -s conftest.dir/conftest.one &&
3392	      test -s conftest.dir/conftest.two
3393	    then
3394	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3395	      break 3
3396	    fi
3397	  fi
3398	fi
3399      done
3400    done
3401    ;;
3402esac
3403
3404  done
3405IFS=$as_save_IFS
3406
3407rm -rf conftest.one conftest.two conftest.dir
3408
3409fi
3410  if test "${ac_cv_path_install+set}" = set; then
3411    INSTALL=$ac_cv_path_install
3412  else
3413    # As a last resort, use the slow shell script.  Don't cache a
3414    # value for INSTALL within a source directory, because that will
3415    # break other packages using the cache if that directory is
3416    # removed, or if the value is a relative name.
3417    INSTALL=$ac_install_sh
3418  fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3421$as_echo "$INSTALL" >&6; }
3422
3423# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3424# It thinks the first close brace ends the variable substitution.
3425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3426
3427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3428
3429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3430
3431
3432for ac_prog in flex lex
3433do
3434  # Extract the first word of "$ac_prog", so it can be a program name with args.
3435set dummy $ac_prog; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
3438if ${ac_cv_prog_LEX+:} false; then :
3439  $as_echo_n "(cached) " >&6
3440else
3441  if test -n "$LEX"; then
3442  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451    ac_cv_prog_LEX="$ac_prog"
3452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461LEX=$ac_cv_prog_LEX
3462if test -n "$LEX"; then
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3464$as_echo "$LEX" >&6; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471  test -n "$LEX" && break
3472done
3473test -n "$LEX" || LEX=":"
3474
3475if test "x$LEX" != "x:"; then
3476  cat >conftest.l <<_ACEOF
3477%%
3478a { ECHO; }
3479b { REJECT; }
3480c { yymore (); }
3481d { yyless (1); }
3482e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
3483    yyless ((input () != 0)); }
3484f { unput (yytext[0]); }
3485. { BEGIN INITIAL; }
3486%%
3487#ifdef YYTEXT_POINTER
3488extern char *yytext;
3489#endif
3490int
3491main (void)
3492{
3493  return ! yylex () + ! yywrap ();
3494}
3495_ACEOF
3496{ { ac_try="$LEX conftest.l"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$LEX conftest.l") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3508$as_echo_n "checking lex output file root... " >&6; }
3509if ${ac_cv_prog_lex_root+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512
3513if test -f lex.yy.c; then
3514  ac_cv_prog_lex_root=lex.yy
3515elif test -f lexyy.c; then
3516  ac_cv_prog_lex_root=lexyy
3517else
3518  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3519fi
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3522$as_echo "$ac_cv_prog_lex_root" >&6; }
3523LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3524
3525if test -z "${LEXLIB+set}"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3527$as_echo_n "checking lex library... " >&6; }
3528if ${ac_cv_lib_lex+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531
3532    ac_save_LIBS=$LIBS
3533    ac_cv_lib_lex='none needed'
3534    for ac_lib in '' -lfl -ll; do
3535      LIBS="$ac_lib $ac_save_LIBS"
3536      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538`cat $LEX_OUTPUT_ROOT.c`
3539_ACEOF
3540if ac_fn_c_try_link "$LINENO"; then :
3541  ac_cv_lib_lex=$ac_lib
3542fi
3543rm -f core conftest.err conftest.$ac_objext \
3544    conftest$ac_exeext conftest.$ac_ext
3545      test "$ac_cv_lib_lex" != 'none needed' && break
3546    done
3547    LIBS=$ac_save_LIBS
3548
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3551$as_echo "$ac_cv_lib_lex" >&6; }
3552  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3553fi
3554
3555
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3557$as_echo_n "checking whether yytext is a pointer... " >&6; }
3558if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  # POSIX says lex can declare yytext either as a pointer or an array; the
3562# default is implementation-dependent.  Figure out which it is, since
3563# not all implementations provide the %pointer and %array declarations.
3564ac_cv_prog_lex_yytext_pointer=no
3565ac_save_LIBS=$LIBS
3566LIBS="$LEXLIB $ac_save_LIBS"
3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570  #define YYTEXT_POINTER 1
3571`cat $LEX_OUTPUT_ROOT.c`
3572_ACEOF
3573if ac_fn_c_try_link "$LINENO"; then :
3574  ac_cv_prog_lex_yytext_pointer=yes
3575fi
3576rm -f core conftest.err conftest.$ac_objext \
3577    conftest$ac_exeext conftest.$ac_ext
3578LIBS=$ac_save_LIBS
3579
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3582$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3583if test $ac_cv_prog_lex_yytext_pointer = yes; then
3584
3585$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3586
3587fi
3588rm -f conftest.l $LEX_OUTPUT_ROOT.c
3589
3590fi
3591case `pwd` in
3592  *\ * | *\	*)
3593    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3594$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3595esac
3596
3597
3598
3599macro_version='2.4.6'
3600macro_revision='2.4.6'
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614ltmain=$ac_aux_dir/ltmain.sh
3615
3616# Make sure we can run config.sub.
3617$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3618  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3621$as_echo_n "checking build system type... " >&6; }
3622if ${ac_cv_build+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625  ac_build_alias=$build_alias
3626test "x$ac_build_alias" = x &&
3627  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3628test "x$ac_build_alias" = x &&
3629  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3630ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3631  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3632
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3635$as_echo "$ac_cv_build" >&6; }
3636case $ac_cv_build in
3637*-*-*) ;;
3638*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3639esac
3640build=$ac_cv_build
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_build
3643shift
3644build_cpu=$1
3645build_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649build_os=$*
3650IFS=$ac_save_IFS
3651case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3655$as_echo_n "checking host system type... " >&6; }
3656if ${ac_cv_host+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if test "x$host_alias" = x; then
3660  ac_cv_host=$ac_cv_build
3661else
3662  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3663    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3664fi
3665
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3668$as_echo "$ac_cv_host" >&6; }
3669case $ac_cv_host in
3670*-*-*) ;;
3671*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3672esac
3673host=$ac_cv_host
3674ac_save_IFS=$IFS; IFS='-'
3675set x $ac_cv_host
3676shift
3677host_cpu=$1
3678host_vendor=$2
3679shift; shift
3680# Remember, the first character of IFS is used to create $*,
3681# except with old shells:
3682host_os=$*
3683IFS=$ac_save_IFS
3684case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3685
3686
3687# Backslashify metacharacters that are still active within
3688# double-quoted strings.
3689sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3690
3691# Same as above, but do not quote variable references.
3692double_quote_subst='s/\(["`\\]\)/\\\1/g'
3693
3694# Sed substitution to delay expansion of an escaped shell variable in a
3695# double_quote_subst'ed string.
3696delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3697
3698# Sed substitution to delay expansion of an escaped single quote.
3699delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3700
3701# Sed substitution to avoid accidental globbing in evaled expressions
3702no_glob_subst='s/\*/\\\*/g'
3703
3704ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3705ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3706ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3707
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3709$as_echo_n "checking how to print strings... " >&6; }
3710# Test print first, because it will be a builtin if present.
3711if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3712   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3713  ECHO='print -r --'
3714elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3715  ECHO='printf %s\n'
3716else
3717  # Use this function as a fallback that always works.
3718  func_fallback_echo ()
3719  {
3720    eval 'cat <<_LTECHO_EOF
3721$1
3722_LTECHO_EOF'
3723  }
3724  ECHO='func_fallback_echo'
3725fi
3726
3727# func_echo_all arg...
3728# Invoke $ECHO with all args, space-separated.
3729func_echo_all ()
3730{
3731    $ECHO ""
3732}
3733
3734case $ECHO in
3735  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3736$as_echo "printf" >&6; } ;;
3737  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3738$as_echo "print -r" >&6; } ;;
3739  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3740$as_echo "cat" >&6; } ;;
3741esac
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3757$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758if ${ac_cv_path_SED+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3762     for ac_i in 1 2 3 4 5 6 7; do
3763       ac_script="$ac_script$as_nl$ac_script"
3764     done
3765     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3766     { ac_script=; unset ac_script;}
3767     if test -z "$SED"; then
3768  ac_path_SED_found=false
3769  # Loop through the user's path and test for each of PROGNAME-LIST
3770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_prog in sed gsed; do
3776    for ac_exec_ext in '' $ac_executable_extensions; do
3777      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3778      as_fn_executable_p "$ac_path_SED" || continue
3779# Check for GNU ac_path_SED and select it if it is found.
3780  # Check for GNU $ac_path_SED
3781case `"$ac_path_SED" --version 2>&1` in
3782*GNU*)
3783  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3784*)
3785  ac_count=0
3786  $as_echo_n 0123456789 >"conftest.in"
3787  while :
3788  do
3789    cat "conftest.in" "conftest.in" >"conftest.tmp"
3790    mv "conftest.tmp" "conftest.in"
3791    cp "conftest.in" "conftest.nl"
3792    $as_echo '' >> "conftest.nl"
3793    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795    as_fn_arith $ac_count + 1 && ac_count=$as_val
3796    if test $ac_count -gt ${ac_path_SED_max-0}; then
3797      # Best one so far, save it but keep looking for a better one
3798      ac_cv_path_SED="$ac_path_SED"
3799      ac_path_SED_max=$ac_count
3800    fi
3801    # 10*(2^10) chars as input seems more than enough
3802    test $ac_count -gt 10 && break
3803  done
3804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805esac
3806
3807      $ac_path_SED_found && break 3
3808    done
3809  done
3810  done
3811IFS=$as_save_IFS
3812  if test -z "$ac_cv_path_SED"; then
3813    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3814  fi
3815else
3816  ac_cv_path_SED=$SED
3817fi
3818
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3821$as_echo "$ac_cv_path_SED" >&6; }
3822 SED="$ac_cv_path_SED"
3823  rm -f conftest.sed
3824
3825test -z "$SED" && SED=sed
3826Xsed="$SED -e 1s/^X//"
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3839$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3840if ${ac_cv_path_GREP+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  if test -z "$GREP"; then
3844  ac_path_GREP_found=false
3845  # Loop through the user's path and test for each of PROGNAME-LIST
3846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848do
3849  IFS=$as_save_IFS
3850  test -z "$as_dir" && as_dir=.
3851    for ac_prog in grep ggrep; do
3852    for ac_exec_ext in '' $ac_executable_extensions; do
3853      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3854      as_fn_executable_p "$ac_path_GREP" || continue
3855# Check for GNU ac_path_GREP and select it if it is found.
3856  # Check for GNU $ac_path_GREP
3857case `"$ac_path_GREP" --version 2>&1` in
3858*GNU*)
3859  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3860*)
3861  ac_count=0
3862  $as_echo_n 0123456789 >"conftest.in"
3863  while :
3864  do
3865    cat "conftest.in" "conftest.in" >"conftest.tmp"
3866    mv "conftest.tmp" "conftest.in"
3867    cp "conftest.in" "conftest.nl"
3868    $as_echo 'GREP' >> "conftest.nl"
3869    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871    as_fn_arith $ac_count + 1 && ac_count=$as_val
3872    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3873      # Best one so far, save it but keep looking for a better one
3874      ac_cv_path_GREP="$ac_path_GREP"
3875      ac_path_GREP_max=$ac_count
3876    fi
3877    # 10*(2^10) chars as input seems more than enough
3878    test $ac_count -gt 10 && break
3879  done
3880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881esac
3882
3883      $ac_path_GREP_found && break 3
3884    done
3885  done
3886  done
3887IFS=$as_save_IFS
3888  if test -z "$ac_cv_path_GREP"; then
3889    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3890  fi
3891else
3892  ac_cv_path_GREP=$GREP
3893fi
3894
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3897$as_echo "$ac_cv_path_GREP" >&6; }
3898 GREP="$ac_cv_path_GREP"
3899
3900
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3902$as_echo_n "checking for egrep... " >&6; }
3903if ${ac_cv_path_EGREP+:} false; then :
3904  $as_echo_n "(cached) " >&6
3905else
3906  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3907   then ac_cv_path_EGREP="$GREP -E"
3908   else
3909     if test -z "$EGREP"; then
3910  ac_path_EGREP_found=false
3911  # Loop through the user's path and test for each of PROGNAME-LIST
3912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917    for ac_prog in egrep; do
3918    for ac_exec_ext in '' $ac_executable_extensions; do
3919      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3920      as_fn_executable_p "$ac_path_EGREP" || continue
3921# Check for GNU ac_path_EGREP and select it if it is found.
3922  # Check for GNU $ac_path_EGREP
3923case `"$ac_path_EGREP" --version 2>&1` in
3924*GNU*)
3925  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3926*)
3927  ac_count=0
3928  $as_echo_n 0123456789 >"conftest.in"
3929  while :
3930  do
3931    cat "conftest.in" "conftest.in" >"conftest.tmp"
3932    mv "conftest.tmp" "conftest.in"
3933    cp "conftest.in" "conftest.nl"
3934    $as_echo 'EGREP' >> "conftest.nl"
3935    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937    as_fn_arith $ac_count + 1 && ac_count=$as_val
3938    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3939      # Best one so far, save it but keep looking for a better one
3940      ac_cv_path_EGREP="$ac_path_EGREP"
3941      ac_path_EGREP_max=$ac_count
3942    fi
3943    # 10*(2^10) chars as input seems more than enough
3944    test $ac_count -gt 10 && break
3945  done
3946  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947esac
3948
3949      $ac_path_EGREP_found && break 3
3950    done
3951  done
3952  done
3953IFS=$as_save_IFS
3954  if test -z "$ac_cv_path_EGREP"; then
3955    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3956  fi
3957else
3958  ac_cv_path_EGREP=$EGREP
3959fi
3960
3961   fi
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3964$as_echo "$ac_cv_path_EGREP" >&6; }
3965 EGREP="$ac_cv_path_EGREP"
3966
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3969$as_echo_n "checking for fgrep... " >&6; }
3970if ${ac_cv_path_FGREP+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3974   then ac_cv_path_FGREP="$GREP -F"
3975   else
3976     if test -z "$FGREP"; then
3977  ac_path_FGREP_found=false
3978  # Loop through the user's path and test for each of PROGNAME-LIST
3979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3981do
3982  IFS=$as_save_IFS
3983  test -z "$as_dir" && as_dir=.
3984    for ac_prog in fgrep; do
3985    for ac_exec_ext in '' $ac_executable_extensions; do
3986      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3987      as_fn_executable_p "$ac_path_FGREP" || continue
3988# Check for GNU ac_path_FGREP and select it if it is found.
3989  # Check for GNU $ac_path_FGREP
3990case `"$ac_path_FGREP" --version 2>&1` in
3991*GNU*)
3992  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3993*)
3994  ac_count=0
3995  $as_echo_n 0123456789 >"conftest.in"
3996  while :
3997  do
3998    cat "conftest.in" "conftest.in" >"conftest.tmp"
3999    mv "conftest.tmp" "conftest.in"
4000    cp "conftest.in" "conftest.nl"
4001    $as_echo 'FGREP' >> "conftest.nl"
4002    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004    as_fn_arith $ac_count + 1 && ac_count=$as_val
4005    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4006      # Best one so far, save it but keep looking for a better one
4007      ac_cv_path_FGREP="$ac_path_FGREP"
4008      ac_path_FGREP_max=$ac_count
4009    fi
4010    # 10*(2^10) chars as input seems more than enough
4011    test $ac_count -gt 10 && break
4012  done
4013  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014esac
4015
4016      $ac_path_FGREP_found && break 3
4017    done
4018  done
4019  done
4020IFS=$as_save_IFS
4021  if test -z "$ac_cv_path_FGREP"; then
4022    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4023  fi
4024else
4025  ac_cv_path_FGREP=$FGREP
4026fi
4027
4028   fi
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4031$as_echo "$ac_cv_path_FGREP" >&6; }
4032 FGREP="$ac_cv_path_FGREP"
4033
4034
4035test -z "$GREP" && GREP=grep
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055# Check whether --with-gnu-ld was given.
4056if test "${with_gnu_ld+set}" = set; then :
4057  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4058else
4059  with_gnu_ld=no
4060fi
4061
4062ac_prog=ld
4063if test yes = "$GCC"; then
4064  # Check if gcc -print-prog-name=ld gives a path.
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4066$as_echo_n "checking for ld used by $CC... " >&6; }
4067  case $host in
4068  *-*-mingw*)
4069    # gcc leaves a trailing carriage return, which upsets mingw
4070    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4071  *)
4072    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4073  esac
4074  case $ac_prog in
4075    # Accept absolute paths.
4076    [\\/]* | ?:[\\/]*)
4077      re_direlt='/[^/][^/]*/\.\./'
4078      # Canonicalize the pathname of ld
4079      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4080      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4081	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4082      done
4083      test -z "$LD" && LD=$ac_prog
4084      ;;
4085  "")
4086    # If it fails, then pretend we aren't using GCC.
4087    ac_prog=ld
4088    ;;
4089  *)
4090    # If it is relative, then search for the first ld in PATH.
4091    with_gnu_ld=unknown
4092    ;;
4093  esac
4094elif test yes = "$with_gnu_ld"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4096$as_echo_n "checking for GNU ld... " >&6; }
4097else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4099$as_echo_n "checking for non-GNU ld... " >&6; }
4100fi
4101if ${lt_cv_path_LD+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104  if test -z "$LD"; then
4105  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4106  for ac_dir in $PATH; do
4107    IFS=$lt_save_ifs
4108    test -z "$ac_dir" && ac_dir=.
4109    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4110      lt_cv_path_LD=$ac_dir/$ac_prog
4111      # Check to see if the program is GNU ld.  I'd rather use --version,
4112      # but apparently some variants of GNU ld only accept -v.
4113      # Break only if it was the GNU/non-GNU ld that we prefer.
4114      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4115      *GNU* | *'with BFD'*)
4116	test no != "$with_gnu_ld" && break
4117	;;
4118      *)
4119	test yes != "$with_gnu_ld" && break
4120	;;
4121      esac
4122    fi
4123  done
4124  IFS=$lt_save_ifs
4125else
4126  lt_cv_path_LD=$LD # Let the user override the test with a path.
4127fi
4128fi
4129
4130LD=$lt_cv_path_LD
4131if test -n "$LD"; then
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4133$as_echo "$LD" >&6; }
4134else
4135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
4137fi
4138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4141if ${lt_cv_prog_gnu_ld+:} false; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4145case `$LD -v 2>&1 </dev/null` in
4146*GNU* | *'with BFD'*)
4147  lt_cv_prog_gnu_ld=yes
4148  ;;
4149*)
4150  lt_cv_prog_gnu_ld=no
4151  ;;
4152esac
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4155$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4156with_gnu_ld=$lt_cv_prog_gnu_ld
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4167$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4168if ${lt_cv_path_NM+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -n "$NM"; then
4172  # Let the user override the test.
4173  lt_cv_path_NM=$NM
4174else
4175  lt_nm_to_check=${ac_tool_prefix}nm
4176  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4177    lt_nm_to_check="$lt_nm_to_check nm"
4178  fi
4179  for lt_tmp_nm in $lt_nm_to_check; do
4180    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4181    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4182      IFS=$lt_save_ifs
4183      test -z "$ac_dir" && ac_dir=.
4184      tmp_nm=$ac_dir/$lt_tmp_nm
4185      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4186	# Check to see if the nm accepts a BSD-compat flag.
4187	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4188	#   nm: unknown option "B" ignored
4189	# Tru64's nm complains that /dev/null is an invalid object file
4190	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4191	case $build_os in
4192	mingw*) lt_bad_file=conftest.nm/nofile ;;
4193	*) lt_bad_file=/dev/null ;;
4194	esac
4195	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4196	*$lt_bad_file* | *'Invalid file or object type'*)
4197	  lt_cv_path_NM="$tmp_nm -B"
4198	  break 2
4199	  ;;
4200	*)
4201	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4202	  */dev/null*)
4203	    lt_cv_path_NM="$tmp_nm -p"
4204	    break 2
4205	    ;;
4206	  *)
4207	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208	    continue # so that we can try to find one that supports BSD flags
4209	    ;;
4210	  esac
4211	  ;;
4212	esac
4213      fi
4214    done
4215    IFS=$lt_save_ifs
4216  done
4217  : ${lt_cv_path_NM=no}
4218fi
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4221$as_echo "$lt_cv_path_NM" >&6; }
4222if test no != "$lt_cv_path_NM"; then
4223  NM=$lt_cv_path_NM
4224else
4225  # Didn't find any BSD compatible name lister, look for dumpbin.
4226  if test -n "$DUMPBIN"; then :
4227    # Let the user override the test.
4228  else
4229    if test -n "$ac_tool_prefix"; then
4230  for ac_prog in dumpbin "link -dump"
4231  do
4232    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
4236if ${ac_cv_prog_DUMPBIN+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if test -n "$DUMPBIN"; then
4240  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254  done
4255IFS=$as_save_IFS
4256
4257fi
4258fi
4259DUMPBIN=$ac_cv_prog_DUMPBIN
4260if test -n "$DUMPBIN"; then
4261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4262$as_echo "$DUMPBIN" >&6; }
4263else
4264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
4266fi
4267
4268
4269    test -n "$DUMPBIN" && break
4270  done
4271fi
4272if test -z "$DUMPBIN"; then
4273  ac_ct_DUMPBIN=$DUMPBIN
4274  for ac_prog in dumpbin "link -dump"
4275do
4276  # Extract the first word of "$ac_prog", so it can be a program name with args.
4277set dummy $ac_prog; ac_word=$2
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279$as_echo_n "checking for $ac_word... " >&6; }
4280if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  if test -n "$ac_ct_DUMPBIN"; then
4284  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4285else
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295    break 2
4296  fi
4297done
4298  done
4299IFS=$as_save_IFS
4300
4301fi
4302fi
4303ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4304if test -n "$ac_ct_DUMPBIN"; then
4305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4306$as_echo "$ac_ct_DUMPBIN" >&6; }
4307else
4308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309$as_echo "no" >&6; }
4310fi
4311
4312
4313  test -n "$ac_ct_DUMPBIN" && break
4314done
4315
4316  if test "x$ac_ct_DUMPBIN" = x; then
4317    DUMPBIN=":"
4318  else
4319    case $cross_compiling:$ac_tool_warned in
4320yes:)
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323ac_tool_warned=yes ;;
4324esac
4325    DUMPBIN=$ac_ct_DUMPBIN
4326  fi
4327fi
4328
4329    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4330    *COFF*)
4331      DUMPBIN="$DUMPBIN -symbols -headers"
4332      ;;
4333    *)
4334      DUMPBIN=:
4335      ;;
4336    esac
4337  fi
4338
4339  if test : != "$DUMPBIN"; then
4340    NM=$DUMPBIN
4341  fi
4342fi
4343test -z "$NM" && NM=nm
4344
4345
4346
4347
4348
4349
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4351$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4352if ${lt_cv_nm_interface+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  lt_cv_nm_interface="BSD nm"
4356  echo "int some_variable = 0;" > conftest.$ac_ext
4357  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4358  (eval "$ac_compile" 2>conftest.err)
4359  cat conftest.err >&5
4360  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4361  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4362  cat conftest.err >&5
4363  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4364  cat conftest.out >&5
4365  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4366    lt_cv_nm_interface="MS dumpbin"
4367  fi
4368  rm -f conftest*
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4371$as_echo "$lt_cv_nm_interface" >&6; }
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4374$as_echo_n "checking whether ln -s works... " >&6; }
4375LN_S=$as_ln_s
4376if test "$LN_S" = "ln -s"; then
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378$as_echo "yes" >&6; }
4379else
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4381$as_echo "no, using $LN_S" >&6; }
4382fi
4383
4384# find the maximum length of command line arguments
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4386$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4387if ${lt_cv_sys_max_cmd_len+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390    i=0
4391  teststring=ABCD
4392
4393  case $build_os in
4394  msdosdjgpp*)
4395    # On DJGPP, this test can blow up pretty badly due to problems in libc
4396    # (any single argument exceeding 2000 bytes causes a buffer overrun
4397    # during glob expansion).  Even if it were fixed, the result of this
4398    # check would be larger than it should be.
4399    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4400    ;;
4401
4402  gnu*)
4403    # Under GNU Hurd, this test is not required because there is
4404    # no limit to the length of command line arguments.
4405    # Libtool will interpret -1 as no limit whatsoever
4406    lt_cv_sys_max_cmd_len=-1;
4407    ;;
4408
4409  cygwin* | mingw* | cegcc*)
4410    # On Win9x/ME, this test blows up -- it succeeds, but takes
4411    # about 5 minutes as the teststring grows exponentially.
4412    # Worse, since 9x/ME are not pre-emptively multitasking,
4413    # you end up with a "frozen" computer, even though with patience
4414    # the test eventually succeeds (with a max line length of 256k).
4415    # Instead, let's just punt: use the minimum linelength reported by
4416    # all of the supported platforms: 8192 (on NT/2K/XP).
4417    lt_cv_sys_max_cmd_len=8192;
4418    ;;
4419
4420  mint*)
4421    # On MiNT this can take a long time and run out of memory.
4422    lt_cv_sys_max_cmd_len=8192;
4423    ;;
4424
4425  amigaos*)
4426    # On AmigaOS with pdksh, this test takes hours, literally.
4427    # So we just punt and use a minimum line length of 8192.
4428    lt_cv_sys_max_cmd_len=8192;
4429    ;;
4430
4431  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4432    # This has been around since 386BSD, at least.  Likely further.
4433    if test -x /sbin/sysctl; then
4434      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4435    elif test -x /usr/sbin/sysctl; then
4436      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4437    else
4438      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4439    fi
4440    # And add a safety zone
4441    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4442    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4443    ;;
4444
4445  interix*)
4446    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4447    lt_cv_sys_max_cmd_len=196608
4448    ;;
4449
4450  os2*)
4451    # The test takes a long time on OS/2.
4452    lt_cv_sys_max_cmd_len=8192
4453    ;;
4454
4455  osf*)
4456    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4457    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4458    # nice to cause kernel panics so lets avoid the loop below.
4459    # First set a reasonable default.
4460    lt_cv_sys_max_cmd_len=16384
4461    #
4462    if test -x /sbin/sysconfig; then
4463      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4464        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4465      esac
4466    fi
4467    ;;
4468  sco3.2v5*)
4469    lt_cv_sys_max_cmd_len=102400
4470    ;;
4471  sysv5* | sco5v6* | sysv4.2uw2*)
4472    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4473    if test -n "$kargmax"; then
4474      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4475    else
4476      lt_cv_sys_max_cmd_len=32768
4477    fi
4478    ;;
4479  *)
4480    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4481    if test -n "$lt_cv_sys_max_cmd_len" && \
4482       test undefined != "$lt_cv_sys_max_cmd_len"; then
4483      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4484      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4485    else
4486      # Make teststring a little bigger before we do anything with it.
4487      # a 1K string should be a reasonable start.
4488      for i in 1 2 3 4 5 6 7 8; do
4489        teststring=$teststring$teststring
4490      done
4491      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4492      # If test is not a shell built-in, we'll probably end up computing a
4493      # maximum length that is only half of the actual maximum length, but
4494      # we can't tell.
4495      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4496	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4497	      test 17 != "$i" # 1/2 MB should be enough
4498      do
4499        i=`expr $i + 1`
4500        teststring=$teststring$teststring
4501      done
4502      # Only check the string length outside the loop.
4503      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4504      teststring=
4505      # Add a significant safety factor because C++ compilers can tack on
4506      # massive amounts of additional arguments before passing them to the
4507      # linker.  It appears as though 1/2 is a usable value.
4508      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4509    fi
4510    ;;
4511  esac
4512
4513fi
4514
4515if test -n "$lt_cv_sys_max_cmd_len"; then
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4517$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4518else
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4520$as_echo "none" >&6; }
4521fi
4522max_cmd_len=$lt_cv_sys_max_cmd_len
4523
4524
4525
4526
4527
4528
4529: ${CP="cp -f"}
4530: ${MV="mv -f"}
4531: ${RM="rm -f"}
4532
4533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4534  lt_unset=unset
4535else
4536  lt_unset=false
4537fi
4538
4539
4540
4541
4542
4543# test EBCDIC or ASCII
4544case `echo X|tr X '\101'` in
4545 A) # ASCII based system
4546    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4547  lt_SP2NL='tr \040 \012'
4548  lt_NL2SP='tr \015\012 \040\040'
4549  ;;
4550 *) # EBCDIC based system
4551  lt_SP2NL='tr \100 \n'
4552  lt_NL2SP='tr \r\n \100\100'
4553  ;;
4554esac
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4565$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4566if ${lt_cv_to_host_file_cmd+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  case $host in
4570  *-*-mingw* )
4571    case $build in
4572      *-*-mingw* ) # actually msys
4573        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4574        ;;
4575      *-*-cygwin* )
4576        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4577        ;;
4578      * ) # otherwise, assume *nix
4579        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4580        ;;
4581    esac
4582    ;;
4583  *-*-cygwin* )
4584    case $build in
4585      *-*-mingw* ) # actually msys
4586        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4587        ;;
4588      *-*-cygwin* )
4589        lt_cv_to_host_file_cmd=func_convert_file_noop
4590        ;;
4591      * ) # otherwise, assume *nix
4592        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4593        ;;
4594    esac
4595    ;;
4596  * ) # unhandled hosts (and "normal" native builds)
4597    lt_cv_to_host_file_cmd=func_convert_file_noop
4598    ;;
4599esac
4600
4601fi
4602
4603to_host_file_cmd=$lt_cv_to_host_file_cmd
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4605$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4606
4607
4608
4609
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4612$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4613if ${lt_cv_to_tool_file_cmd+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  #assume ordinary cross tools, or native build.
4617lt_cv_to_tool_file_cmd=func_convert_file_noop
4618case $host in
4619  *-*-mingw* )
4620    case $build in
4621      *-*-mingw* ) # actually msys
4622        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4623        ;;
4624    esac
4625    ;;
4626esac
4627
4628fi
4629
4630to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4632$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4633
4634
4635
4636
4637
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4639$as_echo_n "checking for $LD option to reload object files... " >&6; }
4640if ${lt_cv_ld_reload_flag+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  lt_cv_ld_reload_flag='-r'
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4646$as_echo "$lt_cv_ld_reload_flag" >&6; }
4647reload_flag=$lt_cv_ld_reload_flag
4648case $reload_flag in
4649"" | " "*) ;;
4650*) reload_flag=" $reload_flag" ;;
4651esac
4652reload_cmds='$LD$reload_flag -o $output$reload_objs'
4653case $host_os in
4654  cygwin* | mingw* | pw32* | cegcc*)
4655    if test yes != "$GCC"; then
4656      reload_cmds=false
4657    fi
4658    ;;
4659  darwin*)
4660    if test yes = "$GCC"; then
4661      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4662    else
4663      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4664    fi
4665    ;;
4666esac
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676if test -n "$ac_tool_prefix"; then
4677  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4678set dummy ${ac_tool_prefix}objdump; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_prog_OBJDUMP+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  if test -n "$OBJDUMP"; then
4685  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690  IFS=$as_save_IFS
4691  test -z "$as_dir" && as_dir=.
4692    for ac_exec_ext in '' $ac_executable_extensions; do
4693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696    break 2
4697  fi
4698done
4699  done
4700IFS=$as_save_IFS
4701
4702fi
4703fi
4704OBJDUMP=$ac_cv_prog_OBJDUMP
4705if test -n "$OBJDUMP"; then
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4707$as_echo "$OBJDUMP" >&6; }
4708else
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713
4714fi
4715if test -z "$ac_cv_prog_OBJDUMP"; then
4716  ac_ct_OBJDUMP=$OBJDUMP
4717  # Extract the first word of "objdump", so it can be a program name with args.
4718set dummy objdump; ac_word=$2
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720$as_echo_n "checking for $ac_word... " >&6; }
4721if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4722  $as_echo_n "(cached) " >&6
4723else
4724  if test -n "$ac_ct_OBJDUMP"; then
4725  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730  IFS=$as_save_IFS
4731  test -z "$as_dir" && as_dir=.
4732    for ac_exec_ext in '' $ac_executable_extensions; do
4733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736    break 2
4737  fi
4738done
4739  done
4740IFS=$as_save_IFS
4741
4742fi
4743fi
4744ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4745if test -n "$ac_ct_OBJDUMP"; then
4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4747$as_echo "$ac_ct_OBJDUMP" >&6; }
4748else
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750$as_echo "no" >&6; }
4751fi
4752
4753  if test "x$ac_ct_OBJDUMP" = x; then
4754    OBJDUMP="false"
4755  else
4756    case $cross_compiling:$ac_tool_warned in
4757yes:)
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760ac_tool_warned=yes ;;
4761esac
4762    OBJDUMP=$ac_ct_OBJDUMP
4763  fi
4764else
4765  OBJDUMP="$ac_cv_prog_OBJDUMP"
4766fi
4767
4768test -z "$OBJDUMP" && OBJDUMP=objdump
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4779$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4780if ${lt_cv_deplibs_check_method+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  lt_cv_file_magic_cmd='$MAGIC_CMD'
4784lt_cv_file_magic_test_file=
4785lt_cv_deplibs_check_method='unknown'
4786# Need to set the preceding variable on all platforms that support
4787# interlibrary dependencies.
4788# 'none' -- dependencies not supported.
4789# 'unknown' -- same as none, but documents that we really don't know.
4790# 'pass_all' -- all dependencies passed with no checks.
4791# 'test_compile' -- check by making test program.
4792# 'file_magic [[regex]]' -- check by looking for files in library path
4793# that responds to the $file_magic_cmd with a given extended regex.
4794# If you have 'file' or equivalent on your system and you're not sure
4795# whether 'pass_all' will *always* work, you probably want this one.
4796
4797case $host_os in
4798aix[4-9]*)
4799  lt_cv_deplibs_check_method=pass_all
4800  ;;
4801
4802beos*)
4803  lt_cv_deplibs_check_method=pass_all
4804  ;;
4805
4806bsdi[45]*)
4807  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4808  lt_cv_file_magic_cmd='/usr/bin/file -L'
4809  lt_cv_file_magic_test_file=/shlib/libc.so
4810  ;;
4811
4812cygwin*)
4813  # func_win32_libid is a shell function defined in ltmain.sh
4814  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4815  lt_cv_file_magic_cmd='func_win32_libid'
4816  ;;
4817
4818mingw* | pw32*)
4819  # Base MSYS/MinGW do not provide the 'file' command needed by
4820  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4821  # unless we find 'file', for example because we are cross-compiling.
4822  if ( file / ) >/dev/null 2>&1; then
4823    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4824    lt_cv_file_magic_cmd='func_win32_libid'
4825  else
4826    # Keep this pattern in sync with the one in func_win32_libid.
4827    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4828    lt_cv_file_magic_cmd='$OBJDUMP -f'
4829  fi
4830  ;;
4831
4832cegcc*)
4833  # use the weaker test based on 'objdump'. See mingw*.
4834  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4835  lt_cv_file_magic_cmd='$OBJDUMP -f'
4836  ;;
4837
4838darwin* | rhapsody*)
4839  lt_cv_deplibs_check_method=pass_all
4840  ;;
4841
4842freebsd* | dragonfly*)
4843  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4844    case $host_cpu in
4845    i*86 )
4846      # Not sure whether the presence of OpenBSD here was a mistake.
4847      # Let's accept both of them until this is cleared up.
4848      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849      lt_cv_file_magic_cmd=/usr/bin/file
4850      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4851      ;;
4852    esac
4853  else
4854    lt_cv_deplibs_check_method=pass_all
4855  fi
4856  ;;
4857
4858haiku*)
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862hpux10.20* | hpux11*)
4863  lt_cv_file_magic_cmd=/usr/bin/file
4864  case $host_cpu in
4865  ia64*)
4866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4868    ;;
4869  hppa*64*)
4870    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]'
4871    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4872    ;;
4873  *)
4874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4875    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4876    ;;
4877  esac
4878  ;;
4879
4880interix[3-9]*)
4881  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4883  ;;
4884
4885irix5* | irix6* | nonstopux*)
4886  case $LD in
4887  *-32|*"-32 ") libmagic=32-bit;;
4888  *-n32|*"-n32 ") libmagic=N32;;
4889  *-64|*"-64 ") libmagic=64-bit;;
4890  *) libmagic=never-match;;
4891  esac
4892  lt_cv_deplibs_check_method=pass_all
4893  ;;
4894
4895# This must be glibc/ELF.
4896linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4897  lt_cv_deplibs_check_method=pass_all
4898  ;;
4899
4900netbsd*)
4901  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4903  else
4904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4905  fi
4906  ;;
4907
4908newos6*)
4909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910  lt_cv_file_magic_cmd=/usr/bin/file
4911  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4912  ;;
4913
4914*nto* | *qnx*)
4915  lt_cv_deplibs_check_method=pass_all
4916  ;;
4917
4918openbsd* | bitrig*)
4919  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4921  else
4922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923  fi
4924  ;;
4925
4926osf3* | osf4* | osf5*)
4927  lt_cv_deplibs_check_method=pass_all
4928  ;;
4929
4930rdos*)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934solaris*)
4935  lt_cv_deplibs_check_method=pass_all
4936  ;;
4937
4938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4939  lt_cv_deplibs_check_method=pass_all
4940  ;;
4941
4942sysv4 | sysv4.3*)
4943  case $host_vendor in
4944  motorola)
4945    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]'
4946    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4947    ;;
4948  ncr)
4949    lt_cv_deplibs_check_method=pass_all
4950    ;;
4951  sequent)
4952    lt_cv_file_magic_cmd='/bin/file'
4953    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4954    ;;
4955  sni)
4956    lt_cv_file_magic_cmd='/bin/file'
4957    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4958    lt_cv_file_magic_test_file=/lib/libc.so
4959    ;;
4960  siemens)
4961    lt_cv_deplibs_check_method=pass_all
4962    ;;
4963  pc)
4964    lt_cv_deplibs_check_method=pass_all
4965    ;;
4966  esac
4967  ;;
4968
4969tpf*)
4970  lt_cv_deplibs_check_method=pass_all
4971  ;;
4972os2*)
4973  lt_cv_deplibs_check_method=pass_all
4974  ;;
4975esac
4976
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4979$as_echo "$lt_cv_deplibs_check_method" >&6; }
4980
4981file_magic_glob=
4982want_nocaseglob=no
4983if test "$build" = "$host"; then
4984  case $host_os in
4985  mingw* | pw32*)
4986    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4987      want_nocaseglob=yes
4988    else
4989      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4990    fi
4991    ;;
4992  esac
4993fi
4994
4995file_magic_cmd=$lt_cv_file_magic_cmd
4996deplibs_check_method=$lt_cv_deplibs_check_method
4997test -z "$deplibs_check_method" && deplibs_check_method=unknown
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020if test -n "$ac_tool_prefix"; then
5021  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5022set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if ${ac_cv_prog_DLLTOOL+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  if test -n "$DLLTOOL"; then
5029  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034  IFS=$as_save_IFS
5035  test -z "$as_dir" && as_dir=.
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040    break 2
5041  fi
5042done
5043  done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048DLLTOOL=$ac_cv_prog_DLLTOOL
5049if test -n "$DLLTOOL"; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5051$as_echo "$DLLTOOL" >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058fi
5059if test -z "$ac_cv_prog_DLLTOOL"; then
5060  ac_ct_DLLTOOL=$DLLTOOL
5061  # Extract the first word of "dlltool", so it can be a program name with args.
5062set dummy dlltool; ac_word=$2
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064$as_echo_n "checking for $ac_word... " >&6; }
5065if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  if test -n "$ac_ct_DLLTOOL"; then
5069  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074  IFS=$as_save_IFS
5075  test -z "$as_dir" && as_dir=.
5076    for ac_exec_ext in '' $ac_executable_extensions; do
5077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080    break 2
5081  fi
5082done
5083  done
5084IFS=$as_save_IFS
5085
5086fi
5087fi
5088ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5089if test -n "$ac_ct_DLLTOOL"; then
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5091$as_echo "$ac_ct_DLLTOOL" >&6; }
5092else
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
5095fi
5096
5097  if test "x$ac_ct_DLLTOOL" = x; then
5098    DLLTOOL="false"
5099  else
5100    case $cross_compiling:$ac_tool_warned in
5101yes:)
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104ac_tool_warned=yes ;;
5105esac
5106    DLLTOOL=$ac_ct_DLLTOOL
5107  fi
5108else
5109  DLLTOOL="$ac_cv_prog_DLLTOOL"
5110fi
5111
5112test -z "$DLLTOOL" && DLLTOOL=dlltool
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5124$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5125if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  lt_cv_sharedlib_from_linklib_cmd='unknown'
5129
5130case $host_os in
5131cygwin* | mingw* | pw32* | cegcc*)
5132  # two different shell functions defined in ltmain.sh;
5133  # decide which one to use based on capabilities of $DLLTOOL
5134  case `$DLLTOOL --help 2>&1` in
5135  *--identify-strict*)
5136    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5137    ;;
5138  *)
5139    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5140    ;;
5141  esac
5142  ;;
5143*)
5144  # fallback: assume linklib IS sharedlib
5145  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5146  ;;
5147esac
5148
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5151$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5152sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5153test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5154
5155
5156
5157
5158
5159
5160
5161if test -n "$ac_tool_prefix"; then
5162  for ac_prog in ar
5163  do
5164    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
5168if ${ac_cv_prog_AR+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  if test -n "$AR"; then
5172  ac_cv_prog_AR="$AR" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177  IFS=$as_save_IFS
5178  test -z "$as_dir" && as_dir=.
5179    for ac_exec_ext in '' $ac_executable_extensions; do
5180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183    break 2
5184  fi
5185done
5186  done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191AR=$ac_cv_prog_AR
5192if test -n "$AR"; then
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194$as_echo "$AR" >&6; }
5195else
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200
5201    test -n "$AR" && break
5202  done
5203fi
5204if test -z "$AR"; then
5205  ac_ct_AR=$AR
5206  for ac_prog in ar
5207do
5208  # Extract the first word of "$ac_prog", so it can be a program name with args.
5209set dummy $ac_prog; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  if test -n "$ac_ct_AR"; then
5216  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    ac_cv_prog_ac_ct_AR="$ac_prog"
5226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235ac_ct_AR=$ac_cv_prog_ac_ct_AR
5236if test -n "$ac_ct_AR"; then
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5238$as_echo "$ac_ct_AR" >&6; }
5239else
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244
5245  test -n "$ac_ct_AR" && break
5246done
5247
5248  if test "x$ac_ct_AR" = x; then
5249    AR="false"
5250  else
5251    case $cross_compiling:$ac_tool_warned in
5252yes:)
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255ac_tool_warned=yes ;;
5256esac
5257    AR=$ac_ct_AR
5258  fi
5259fi
5260
5261: ${AR=ar}
5262: ${AR_FLAGS=cru}
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5275$as_echo_n "checking for archiver @FILE support... " >&6; }
5276if ${lt_cv_ar_at_file+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  lt_cv_ar_at_file=no
5280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282
5283int
5284main ()
5285{
5286
5287  ;
5288  return 0;
5289}
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"; then :
5292  echo conftest.$ac_objext > conftest.lst
5293      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5294      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5295  (eval $lt_ar_try) 2>&5
5296  ac_status=$?
5297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298  test $ac_status = 0; }
5299      if test 0 -eq "$ac_status"; then
5300	# Ensure the archiver fails upon bogus file names.
5301	rm -f conftest.$ac_objext libconftest.a
5302	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5303  (eval $lt_ar_try) 2>&5
5304  ac_status=$?
5305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306  test $ac_status = 0; }
5307	if test 0 -ne "$ac_status"; then
5308          lt_cv_ar_at_file=@
5309        fi
5310      fi
5311      rm -f conftest.* libconftest.a
5312
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5318$as_echo "$lt_cv_ar_at_file" >&6; }
5319
5320if test no = "$lt_cv_ar_at_file"; then
5321  archiver_list_spec=
5322else
5323  archiver_list_spec=$lt_cv_ar_at_file
5324fi
5325
5326
5327
5328
5329
5330
5331
5332if test -n "$ac_tool_prefix"; then
5333  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5334set dummy ${ac_tool_prefix}strip; ac_word=$2
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
5337if ${ac_cv_prog_STRIP+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  if test -n "$STRIP"; then
5341  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355  done
5356IFS=$as_save_IFS
5357
5358fi
5359fi
5360STRIP=$ac_cv_prog_STRIP
5361if test -n "$STRIP"; then
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5363$as_echo "$STRIP" >&6; }
5364else
5365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367fi
5368
5369
5370fi
5371if test -z "$ac_cv_prog_STRIP"; then
5372  ac_ct_STRIP=$STRIP
5373  # Extract the first word of "strip", so it can be a program name with args.
5374set dummy strip; ac_word=$2
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376$as_echo_n "checking for $ac_word... " >&6; }
5377if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  if test -n "$ac_ct_STRIP"; then
5381  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388    for ac_exec_ext in '' $ac_executable_extensions; do
5389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390    ac_cv_prog_ac_ct_STRIP="strip"
5391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395  done
5396IFS=$as_save_IFS
5397
5398fi
5399fi
5400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5401if test -n "$ac_ct_STRIP"; then
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5403$as_echo "$ac_ct_STRIP" >&6; }
5404else
5405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406$as_echo "no" >&6; }
5407fi
5408
5409  if test "x$ac_ct_STRIP" = x; then
5410    STRIP=":"
5411  else
5412    case $cross_compiling:$ac_tool_warned in
5413yes:)
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416ac_tool_warned=yes ;;
5417esac
5418    STRIP=$ac_ct_STRIP
5419  fi
5420else
5421  STRIP="$ac_cv_prog_STRIP"
5422fi
5423
5424test -z "$STRIP" && STRIP=:
5425
5426
5427
5428
5429
5430
5431if test -n "$ac_tool_prefix"; then
5432  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if ${ac_cv_prog_RANLIB+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  if test -n "$RANLIB"; then
5440  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445  IFS=$as_save_IFS
5446  test -z "$as_dir" && as_dir=.
5447    for ac_exec_ext in '' $ac_executable_extensions; do
5448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451    break 2
5452  fi
5453done
5454  done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459RANLIB=$ac_cv_prog_RANLIB
5460if test -n "$RANLIB"; then
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462$as_echo "$RANLIB" >&6; }
5463else
5464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468
5469fi
5470if test -z "$ac_cv_prog_RANLIB"; then
5471  ac_ct_RANLIB=$RANLIB
5472  # Extract the first word of "ranlib", so it can be a program name with args.
5473set dummy ranlib; ac_word=$2
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475$as_echo_n "checking for $ac_word... " >&6; }
5476if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  if test -n "$ac_ct_RANLIB"; then
5480  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  test -z "$as_dir" && as_dir=.
5487    for ac_exec_ext in '' $ac_executable_extensions; do
5488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489    ac_cv_prog_ac_ct_RANLIB="ranlib"
5490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491    break 2
5492  fi
5493done
5494  done
5495IFS=$as_save_IFS
5496
5497fi
5498fi
5499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500if test -n "$ac_ct_RANLIB"; then
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502$as_echo "$ac_ct_RANLIB" >&6; }
5503else
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505$as_echo "no" >&6; }
5506fi
5507
5508  if test "x$ac_ct_RANLIB" = x; then
5509    RANLIB=":"
5510  else
5511    case $cross_compiling:$ac_tool_warned in
5512yes:)
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515ac_tool_warned=yes ;;
5516esac
5517    RANLIB=$ac_ct_RANLIB
5518  fi
5519else
5520  RANLIB="$ac_cv_prog_RANLIB"
5521fi
5522
5523test -z "$RANLIB" && RANLIB=:
5524
5525
5526
5527
5528
5529
5530# Determine commands to create old-style static archives.
5531old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5532old_postinstall_cmds='chmod 644 $oldlib'
5533old_postuninstall_cmds=
5534
5535if test -n "$RANLIB"; then
5536  case $host_os in
5537  bitrig* | openbsd*)
5538    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5539    ;;
5540  *)
5541    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5542    ;;
5543  esac
5544  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5545fi
5546
5547case $host_os in
5548  darwin*)
5549    lock_old_archive_extraction=yes ;;
5550  *)
5551    lock_old_archive_extraction=no ;;
5552esac
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574for ac_prog in gawk mawk nawk awk
5575do
5576  # Extract the first word of "$ac_prog", so it can be a program name with args.
5577set dummy $ac_prog; ac_word=$2
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if ${ac_cv_prog_AWK+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  if test -n "$AWK"; then
5584  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589  IFS=$as_save_IFS
5590  test -z "$as_dir" && as_dir=.
5591    for ac_exec_ext in '' $ac_executable_extensions; do
5592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593    ac_cv_prog_AWK="$ac_prog"
5594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595    break 2
5596  fi
5597done
5598  done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603AWK=$ac_cv_prog_AWK
5604if test -n "$AWK"; then
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5606$as_echo "$AWK" >&6; }
5607else
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610fi
5611
5612
5613  test -n "$AWK" && break
5614done
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634# If no C compiler was specified, use CC.
5635LTCC=${LTCC-"$CC"}
5636
5637# If no C compiler flags were specified, use CFLAGS.
5638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5639
5640# Allow CC to be a program name with arguments.
5641compiler=$CC
5642
5643
5644# Check for command to grab the raw symbol name followed by C symbol from nm.
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5646$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5647if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650
5651# These are sane defaults that work on at least a few old systems.
5652# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5653
5654# Character class describing NM global symbol codes.
5655symcode='[BCDEGRST]'
5656
5657# Regexp to match symbols that can be accessed directly from C.
5658sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5659
5660# Define system-specific variables.
5661case $host_os in
5662aix*)
5663  symcode='[BCDT]'
5664  ;;
5665cygwin* | mingw* | pw32* | cegcc*)
5666  symcode='[ABCDGISTW]'
5667  ;;
5668hpux*)
5669  if test ia64 = "$host_cpu"; then
5670    symcode='[ABCDEGRST]'
5671  fi
5672  ;;
5673irix* | nonstopux*)
5674  symcode='[BCDEGRST]'
5675  ;;
5676osf*)
5677  symcode='[BCDEGQRST]'
5678  ;;
5679solaris*)
5680  symcode='[BDRT]'
5681  ;;
5682sco3.2v5*)
5683  symcode='[DT]'
5684  ;;
5685sysv4.2uw2*)
5686  symcode='[DT]'
5687  ;;
5688sysv5* | sco5v6* | unixware* | OpenUNIX*)
5689  symcode='[ABDT]'
5690  ;;
5691sysv4)
5692  symcode='[DFNSTU]'
5693  ;;
5694esac
5695
5696# If we're using GNU nm, then use its standard symbol codes.
5697case `$NM -V 2>&1` in
5698*GNU* | *'with BFD'*)
5699  symcode='[ABCDGIRSTW]' ;;
5700esac
5701
5702if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703  # Gets list of data symbols to import.
5704  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5705  # Adjust the below global symbol transforms to fixup imported variables.
5706  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5707  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5708  lt_c_name_lib_hook="\
5709  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5710  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5711else
5712  # Disable hooks by default.
5713  lt_cv_sys_global_symbol_to_import=
5714  lt_cdecl_hook=
5715  lt_c_name_hook=
5716  lt_c_name_lib_hook=
5717fi
5718
5719# Transform an extracted symbol line into a proper C declaration.
5720# Some systems (esp. on ia64) link data and code symbols differently,
5721# so use this general approach.
5722lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5723$lt_cdecl_hook\
5724" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5725" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5726
5727# Transform an extracted symbol line into symbol name and symbol address
5728lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5729$lt_c_name_hook\
5730" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5731" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5732
5733# Transform an extracted symbol line into symbol name with lib prefix and
5734# symbol address.
5735lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5736$lt_c_name_lib_hook\
5737" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5738" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5739" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5740
5741# Handle CRLF in mingw tool chain
5742opt_cr=
5743case $build_os in
5744mingw*)
5745  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5746  ;;
5747esac
5748
5749# Try without a prefix underscore, then with it.
5750for ac_symprfx in "" "_"; do
5751
5752  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5753  symxfrm="\\1 $ac_symprfx\\2 \\2"
5754
5755  # Write the raw and C identifiers.
5756  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5757    # Fake it for dumpbin and say T for any non-static function,
5758    # D for any global variable and I for any imported variable.
5759    # Also find C++ and __fastcall symbols from MSVC++,
5760    # which start with @ or ?.
5761    lt_cv_sys_global_symbol_pipe="$AWK '"\
5762"     {last_section=section; section=\$ 3};"\
5763"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5764"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5765"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5766"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5767"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5768"     \$ 0!~/External *\|/{next};"\
5769"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5770"     {if(hide[section]) next};"\
5771"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5772"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5773"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5774"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5775"     ' prfx=^$ac_symprfx"
5776  else
5777    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5778  fi
5779  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5780
5781  # Check to see that the pipe works correctly.
5782  pipe_works=no
5783
5784  rm -f conftest*
5785  cat > conftest.$ac_ext <<_LT_EOF
5786#ifdef __cplusplus
5787extern "C" {
5788#endif
5789char nm_test_var;
5790void nm_test_func(void);
5791void nm_test_func(void){}
5792#ifdef __cplusplus
5793}
5794#endif
5795int main(){nm_test_var='a';nm_test_func();return(0);}
5796_LT_EOF
5797
5798  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799  (eval $ac_compile) 2>&5
5800  ac_status=$?
5801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802  test $ac_status = 0; }; then
5803    # Now try to grab the symbols.
5804    nlist=conftest.nm
5805    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5806  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5807  ac_status=$?
5808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809  test $ac_status = 0; } && test -s "$nlist"; then
5810      # Try sorting and uniquifying the output.
5811      if sort "$nlist" | uniq > "$nlist"T; then
5812	mv -f "$nlist"T "$nlist"
5813      else
5814	rm -f "$nlist"T
5815      fi
5816
5817      # Make sure that we snagged all the symbols we need.
5818      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5819	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5820	  cat <<_LT_EOF > conftest.$ac_ext
5821/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5822#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5823/* DATA imports from DLLs on WIN32 can't be const, because runtime
5824   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5825# define LT_DLSYM_CONST
5826#elif defined __osf__
5827/* This system does not cope well with relocations in const data.  */
5828# define LT_DLSYM_CONST
5829#else
5830# define LT_DLSYM_CONST const
5831#endif
5832
5833#ifdef __cplusplus
5834extern "C" {
5835#endif
5836
5837_LT_EOF
5838	  # Now generate the symbol file.
5839	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5840
5841	  cat <<_LT_EOF >> conftest.$ac_ext
5842
5843/* The mapping between symbol names and symbols.  */
5844LT_DLSYM_CONST struct {
5845  const char *name;
5846  void       *address;
5847}
5848lt__PROGRAM__LTX_preloaded_symbols[] =
5849{
5850  { "@PROGRAM@", (void *) 0 },
5851_LT_EOF
5852	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5853	  cat <<\_LT_EOF >> conftest.$ac_ext
5854  {0, (void *) 0}
5855};
5856
5857/* This works around a problem in FreeBSD linker */
5858#ifdef FREEBSD_WORKAROUND
5859static const void *lt_preloaded_setup() {
5860  return lt__PROGRAM__LTX_preloaded_symbols;
5861}
5862#endif
5863
5864#ifdef __cplusplus
5865}
5866#endif
5867_LT_EOF
5868	  # Now try linking the two files.
5869	  mv conftest.$ac_objext conftstm.$ac_objext
5870	  lt_globsym_save_LIBS=$LIBS
5871	  lt_globsym_save_CFLAGS=$CFLAGS
5872	  LIBS=conftstm.$ac_objext
5873	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5874	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5875  (eval $ac_link) 2>&5
5876  ac_status=$?
5877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5879	    pipe_works=yes
5880	  fi
5881	  LIBS=$lt_globsym_save_LIBS
5882	  CFLAGS=$lt_globsym_save_CFLAGS
5883	else
5884	  echo "cannot find nm_test_func in $nlist" >&5
5885	fi
5886      else
5887	echo "cannot find nm_test_var in $nlist" >&5
5888      fi
5889    else
5890      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5891    fi
5892  else
5893    echo "$progname: failed program was:" >&5
5894    cat conftest.$ac_ext >&5
5895  fi
5896  rm -rf conftest* conftst*
5897
5898  # Do not use the global_symbol_pipe unless it works.
5899  if test yes = "$pipe_works"; then
5900    break
5901  else
5902    lt_cv_sys_global_symbol_pipe=
5903  fi
5904done
5905
5906fi
5907
5908if test -z "$lt_cv_sys_global_symbol_pipe"; then
5909  lt_cv_sys_global_symbol_to_cdecl=
5910fi
5911if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5913$as_echo "failed" >&6; }
5914else
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916$as_echo "ok" >&6; }
5917fi
5918
5919# Response file support.
5920if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5921  nm_file_list_spec='@'
5922elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5923  nm_file_list_spec='@'
5924fi
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5963$as_echo_n "checking for sysroot... " >&6; }
5964
5965# Check whether --with-sysroot was given.
5966if test "${with_sysroot+set}" = set; then :
5967  withval=$with_sysroot;
5968else
5969  with_sysroot=no
5970fi
5971
5972
5973lt_sysroot=
5974case $with_sysroot in #(
5975 yes)
5976   if test yes = "$GCC"; then
5977     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5978   fi
5979   ;; #(
5980 /*)
5981   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5982   ;; #(
5983 no|'')
5984   ;; #(
5985 *)
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5987$as_echo "$with_sysroot" >&6; }
5988   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5989   ;;
5990esac
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5993$as_echo "${lt_sysroot:-no}" >&6; }
5994
5995
5996
5997
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6000$as_echo_n "checking for a working dd... " >&6; }
6001if ${ac_cv_path_lt_DD+:} false; then :
6002  $as_echo_n "(cached) " >&6
6003else
6004  printf 0123456789abcdef0123456789abcdef >conftest.i
6005cat conftest.i conftest.i >conftest2.i
6006: ${lt_DD:=$DD}
6007if test -z "$lt_DD"; then
6008  ac_path_lt_DD_found=false
6009  # Loop through the user's path and test for each of PROGNAME-LIST
6010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  test -z "$as_dir" && as_dir=.
6015    for ac_prog in dd; do
6016    for ac_exec_ext in '' $ac_executable_extensions; do
6017      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6018      as_fn_executable_p "$ac_path_lt_DD" || continue
6019if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6020  cmp -s conftest.i conftest.out \
6021  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6022fi
6023      $ac_path_lt_DD_found && break 3
6024    done
6025  done
6026  done
6027IFS=$as_save_IFS
6028  if test -z "$ac_cv_path_lt_DD"; then
6029    :
6030  fi
6031else
6032  ac_cv_path_lt_DD=$lt_DD
6033fi
6034
6035rm -f conftest.i conftest2.i conftest.out
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6038$as_echo "$ac_cv_path_lt_DD" >&6; }
6039
6040
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6042$as_echo_n "checking how to truncate binary pipes... " >&6; }
6043if ${lt_cv_truncate_bin+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  printf 0123456789abcdef0123456789abcdef >conftest.i
6047cat conftest.i conftest.i >conftest2.i
6048lt_cv_truncate_bin=
6049if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6050  cmp -s conftest.i conftest.out \
6051  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6052fi
6053rm -f conftest.i conftest2.i conftest.out
6054test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6057$as_echo "$lt_cv_truncate_bin" >&6; }
6058
6059
6060
6061
6062
6063
6064
6065# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6066func_cc_basename ()
6067{
6068    for cc_temp in $*""; do
6069      case $cc_temp in
6070        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6071        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6072        \-*) ;;
6073        *) break;;
6074      esac
6075    done
6076    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6077}
6078
6079# Check whether --enable-libtool-lock was given.
6080if test "${enable_libtool_lock+set}" = set; then :
6081  enableval=$enable_libtool_lock;
6082fi
6083
6084test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6085
6086# Some flags need to be propagated to the compiler or linker for good
6087# libtool support.
6088case $host in
6089ia64-*-hpux*)
6090  # Find out what ABI is being produced by ac_compile, and set mode
6091  # options accordingly.
6092  echo 'int i;' > conftest.$ac_ext
6093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094  (eval $ac_compile) 2>&5
6095  ac_status=$?
6096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097  test $ac_status = 0; }; then
6098    case `/usr/bin/file conftest.$ac_objext` in
6099      *ELF-32*)
6100	HPUX_IA64_MODE=32
6101	;;
6102      *ELF-64*)
6103	HPUX_IA64_MODE=64
6104	;;
6105    esac
6106  fi
6107  rm -rf conftest*
6108  ;;
6109*-*-irix6*)
6110  # Find out what ABI is being produced by ac_compile, and set linker
6111  # options accordingly.
6112  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114  (eval $ac_compile) 2>&5
6115  ac_status=$?
6116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117  test $ac_status = 0; }; then
6118    if test yes = "$lt_cv_prog_gnu_ld"; then
6119      case `/usr/bin/file conftest.$ac_objext` in
6120	*32-bit*)
6121	  LD="${LD-ld} -melf32bsmip"
6122	  ;;
6123	*N32*)
6124	  LD="${LD-ld} -melf32bmipn32"
6125	  ;;
6126	*64-bit*)
6127	  LD="${LD-ld} -melf64bmip"
6128	;;
6129      esac
6130    else
6131      case `/usr/bin/file conftest.$ac_objext` in
6132	*32-bit*)
6133	  LD="${LD-ld} -32"
6134	  ;;
6135	*N32*)
6136	  LD="${LD-ld} -n32"
6137	  ;;
6138	*64-bit*)
6139	  LD="${LD-ld} -64"
6140	  ;;
6141      esac
6142    fi
6143  fi
6144  rm -rf conftest*
6145  ;;
6146
6147mips64*-*linux*)
6148  # Find out what ABI is being produced by ac_compile, and set linker
6149  # options accordingly.
6150  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6151  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6152  (eval $ac_compile) 2>&5
6153  ac_status=$?
6154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155  test $ac_status = 0; }; then
6156    emul=elf
6157    case `/usr/bin/file conftest.$ac_objext` in
6158      *32-bit*)
6159	emul="${emul}32"
6160	;;
6161      *64-bit*)
6162	emul="${emul}64"
6163	;;
6164    esac
6165    case `/usr/bin/file conftest.$ac_objext` in
6166      *MSB*)
6167	emul="${emul}btsmip"
6168	;;
6169      *LSB*)
6170	emul="${emul}ltsmip"
6171	;;
6172    esac
6173    case `/usr/bin/file conftest.$ac_objext` in
6174      *N32*)
6175	emul="${emul}n32"
6176	;;
6177    esac
6178    LD="${LD-ld} -m $emul"
6179  fi
6180  rm -rf conftest*
6181  ;;
6182
6183x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6184s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6185  # Find out what ABI is being produced by ac_compile, and set linker
6186  # options accordingly.  Note that the listed cases only cover the
6187  # situations where additional linker options are needed (such as when
6188  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6189  # vice versa); the common cases where no linker options are needed do
6190  # not appear in the list.
6191  echo 'int i;' > conftest.$ac_ext
6192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6193  (eval $ac_compile) 2>&5
6194  ac_status=$?
6195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196  test $ac_status = 0; }; then
6197    case `/usr/bin/file conftest.o` in
6198      *32-bit*)
6199	case $host in
6200	  x86_64-*kfreebsd*-gnu)
6201	    LD="${LD-ld} -m elf_i386_fbsd"
6202	    ;;
6203	  x86_64-*linux*)
6204	    case `/usr/bin/file conftest.o` in
6205	      *x86-64*)
6206		LD="${LD-ld} -m elf32_x86_64"
6207		;;
6208	      *)
6209		LD="${LD-ld} -m elf_i386"
6210		;;
6211	    esac
6212	    ;;
6213	  powerpc64le-*linux*)
6214	    LD="${LD-ld} -m elf32lppclinux"
6215	    ;;
6216	  powerpc64-*linux*)
6217	    LD="${LD-ld} -m elf32ppclinux"
6218	    ;;
6219	  s390x-*linux*)
6220	    LD="${LD-ld} -m elf_s390"
6221	    ;;
6222	  sparc64-*linux*)
6223	    LD="${LD-ld} -m elf32_sparc"
6224	    ;;
6225	esac
6226	;;
6227      *64-bit*)
6228	case $host in
6229	  x86_64-*kfreebsd*-gnu)
6230	    LD="${LD-ld} -m elf_x86_64_fbsd"
6231	    ;;
6232	  x86_64-*linux*)
6233	    LD="${LD-ld} -m elf_x86_64"
6234	    ;;
6235	  powerpcle-*linux*)
6236	    LD="${LD-ld} -m elf64lppc"
6237	    ;;
6238	  powerpc-*linux*)
6239	    LD="${LD-ld} -m elf64ppc"
6240	    ;;
6241	  s390*-*linux*|s390*-*tpf*)
6242	    LD="${LD-ld} -m elf64_s390"
6243	    ;;
6244	  sparc*-*linux*)
6245	    LD="${LD-ld} -m elf64_sparc"
6246	    ;;
6247	esac
6248	;;
6249    esac
6250  fi
6251  rm -rf conftest*
6252  ;;
6253
6254*-*-sco3.2v5*)
6255  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6256  SAVE_CFLAGS=$CFLAGS
6257  CFLAGS="$CFLAGS -belf"
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6259$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6260if ${lt_cv_cc_needs_belf+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  ac_ext=c
6264ac_cpp='$CPP $CPPFLAGS'
6265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268
6269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271
6272int
6273main ()
6274{
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280if ac_fn_c_try_link "$LINENO"; then :
6281  lt_cv_cc_needs_belf=yes
6282else
6283  lt_cv_cc_needs_belf=no
6284fi
6285rm -f core conftest.err conftest.$ac_objext \
6286    conftest$ac_exeext conftest.$ac_ext
6287     ac_ext=c
6288ac_cpp='$CPP $CPPFLAGS'
6289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6295$as_echo "$lt_cv_cc_needs_belf" >&6; }
6296  if test yes != "$lt_cv_cc_needs_belf"; then
6297    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6298    CFLAGS=$SAVE_CFLAGS
6299  fi
6300  ;;
6301*-*solaris*)
6302  # Find out what ABI is being produced by ac_compile, and set linker
6303  # options accordingly.
6304  echo 'int i;' > conftest.$ac_ext
6305  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306  (eval $ac_compile) 2>&5
6307  ac_status=$?
6308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309  test $ac_status = 0; }; then
6310    case `/usr/bin/file conftest.o` in
6311    *64-bit*)
6312      case $lt_cv_prog_gnu_ld in
6313      yes*)
6314        case $host in
6315        i?86-*-solaris*|x86_64-*-solaris*)
6316          LD="${LD-ld} -m elf_x86_64"
6317          ;;
6318        sparc*-*-solaris*)
6319          LD="${LD-ld} -m elf64_sparc"
6320          ;;
6321        esac
6322        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6323        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6324          LD=${LD-ld}_sol2
6325        fi
6326        ;;
6327      *)
6328	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6329	  LD="${LD-ld} -64"
6330	fi
6331	;;
6332      esac
6333      ;;
6334    esac
6335  fi
6336  rm -rf conftest*
6337  ;;
6338esac
6339
6340need_locks=$enable_libtool_lock
6341
6342if test -n "$ac_tool_prefix"; then
6343  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6344set dummy ${ac_tool_prefix}mt; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  if test -n "$MANIFEST_TOOL"; then
6351  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6371if test -n "$MANIFEST_TOOL"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6373$as_echo "$MANIFEST_TOOL" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379
6380fi
6381if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6382  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6383  # Extract the first word of "mt", so it can be a program name with args.
6384set dummy mt; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  if test -n "$ac_ct_MANIFEST_TOOL"; then
6391  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398    for ac_exec_ext in '' $ac_executable_extensions; do
6399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405  done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6411if test -n "$ac_ct_MANIFEST_TOOL"; then
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6413$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6414else
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6420    MANIFEST_TOOL=":"
6421  else
6422    case $cross_compiling:$ac_tool_warned in
6423yes:)
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426ac_tool_warned=yes ;;
6427esac
6428    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6429  fi
6430else
6431  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6432fi
6433
6434test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6436$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6437if ${lt_cv_path_mainfest_tool+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  lt_cv_path_mainfest_tool=no
6441  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6442  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6443  cat conftest.err >&5
6444  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6445    lt_cv_path_mainfest_tool=yes
6446  fi
6447  rm -f conftest*
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6450$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6451if test yes != "$lt_cv_path_mainfest_tool"; then
6452  MANIFEST_TOOL=:
6453fi
6454
6455
6456
6457
6458
6459
6460  case $host_os in
6461    rhapsody* | darwin*)
6462    if test -n "$ac_tool_prefix"; then
6463  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6464set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_DSYMUTIL+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$DSYMUTIL"; then
6471  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490DSYMUTIL=$ac_cv_prog_DSYMUTIL
6491if test -n "$DSYMUTIL"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6493$as_echo "$DSYMUTIL" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499
6500fi
6501if test -z "$ac_cv_prog_DSYMUTIL"; then
6502  ac_ct_DSYMUTIL=$DSYMUTIL
6503  # Extract the first word of "dsymutil", so it can be a program name with args.
6504set dummy dsymutil; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510  if test -n "$ac_ct_DSYMUTIL"; then
6511  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  test -z "$as_dir" && as_dir=.
6518    for ac_exec_ext in '' $ac_executable_extensions; do
6519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525  done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6531if test -n "$ac_ct_DSYMUTIL"; then
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6533$as_echo "$ac_ct_DSYMUTIL" >&6; }
6534else
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539  if test "x$ac_ct_DSYMUTIL" = x; then
6540    DSYMUTIL=":"
6541  else
6542    case $cross_compiling:$ac_tool_warned in
6543yes:)
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546ac_tool_warned=yes ;;
6547esac
6548    DSYMUTIL=$ac_ct_DSYMUTIL
6549  fi
6550else
6551  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6552fi
6553
6554    if test -n "$ac_tool_prefix"; then
6555  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if ${ac_cv_prog_NMEDIT+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$NMEDIT"; then
6563  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570    for ac_exec_ext in '' $ac_executable_extensions; do
6571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577  done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582NMEDIT=$ac_cv_prog_NMEDIT
6583if test -n "$NMEDIT"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6585$as_echo "$NMEDIT" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591
6592fi
6593if test -z "$ac_cv_prog_NMEDIT"; then
6594  ac_ct_NMEDIT=$NMEDIT
6595  # Extract the first word of "nmedit", so it can be a program name with args.
6596set dummy nmedit; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
6599if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  if test -n "$ac_ct_NMEDIT"; then
6603  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608  IFS=$as_save_IFS
6609  test -z "$as_dir" && as_dir=.
6610    for ac_exec_ext in '' $ac_executable_extensions; do
6611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614    break 2
6615  fi
6616done
6617  done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6623if test -n "$ac_ct_NMEDIT"; then
6624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6625$as_echo "$ac_ct_NMEDIT" >&6; }
6626else
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631  if test "x$ac_ct_NMEDIT" = x; then
6632    NMEDIT=":"
6633  else
6634    case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638ac_tool_warned=yes ;;
6639esac
6640    NMEDIT=$ac_ct_NMEDIT
6641  fi
6642else
6643  NMEDIT="$ac_cv_prog_NMEDIT"
6644fi
6645
6646    if test -n "$ac_tool_prefix"; then
6647  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}lipo; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_LIPO+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  if test -n "$LIPO"; then
6655  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674LIPO=$ac_cv_prog_LIPO
6675if test -n "$LIPO"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6677$as_echo "$LIPO" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_LIPO"; then
6686  ac_ct_LIPO=$LIPO
6687  # Extract the first word of "lipo", so it can be a program name with args.
6688set dummy lipo; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  if test -n "$ac_ct_LIPO"; then
6695  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700  IFS=$as_save_IFS
6701  test -z "$as_dir" && as_dir=.
6702    for ac_exec_ext in '' $ac_executable_extensions; do
6703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704    ac_cv_prog_ac_ct_LIPO="lipo"
6705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706    break 2
6707  fi
6708done
6709  done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6715if test -n "$ac_ct_LIPO"; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6717$as_echo "$ac_ct_LIPO" >&6; }
6718else
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723  if test "x$ac_ct_LIPO" = x; then
6724    LIPO=":"
6725  else
6726    case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732    LIPO=$ac_ct_LIPO
6733  fi
6734else
6735  LIPO="$ac_cv_prog_LIPO"
6736fi
6737
6738    if test -n "$ac_tool_prefix"; then
6739  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6740set dummy ${ac_tool_prefix}otool; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
6743if ${ac_cv_prog_OTOOL+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  if test -n "$OTOOL"; then
6747  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752  IFS=$as_save_IFS
6753  test -z "$as_dir" && as_dir=.
6754    for ac_exec_ext in '' $ac_executable_extensions; do
6755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758    break 2
6759  fi
6760done
6761  done
6762IFS=$as_save_IFS
6763
6764fi
6765fi
6766OTOOL=$ac_cv_prog_OTOOL
6767if test -n "$OTOOL"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6769$as_echo "$OTOOL" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776fi
6777if test -z "$ac_cv_prog_OTOOL"; then
6778  ac_ct_OTOOL=$OTOOL
6779  # Extract the first word of "otool", so it can be a program name with args.
6780set dummy otool; ac_word=$2
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
6783if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786  if test -n "$ac_ct_OTOOL"; then
6787  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792  IFS=$as_save_IFS
6793  test -z "$as_dir" && as_dir=.
6794    for ac_exec_ext in '' $ac_executable_extensions; do
6795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796    ac_cv_prog_ac_ct_OTOOL="otool"
6797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798    break 2
6799  fi
6800done
6801  done
6802IFS=$as_save_IFS
6803
6804fi
6805fi
6806ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6807if test -n "$ac_ct_OTOOL"; then
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6809$as_echo "$ac_ct_OTOOL" >&6; }
6810else
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815  if test "x$ac_ct_OTOOL" = x; then
6816    OTOOL=":"
6817  else
6818    case $cross_compiling:$ac_tool_warned in
6819yes:)
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822ac_tool_warned=yes ;;
6823esac
6824    OTOOL=$ac_ct_OTOOL
6825  fi
6826else
6827  OTOOL="$ac_cv_prog_OTOOL"
6828fi
6829
6830    if test -n "$ac_tool_prefix"; then
6831  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6832set dummy ${ac_tool_prefix}otool64; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_prog_OTOOL64+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$OTOOL64"; then
6839  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_exec_ext in '' $ac_executable_extensions; do
6847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853  done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858OTOOL64=$ac_cv_prog_OTOOL64
6859if test -n "$OTOOL64"; then
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6861$as_echo "$OTOOL64" >&6; }
6862else
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867
6868fi
6869if test -z "$ac_cv_prog_OTOOL64"; then
6870  ac_ct_OTOOL64=$OTOOL64
6871  # Extract the first word of "otool64", so it can be a program name with args.
6872set dummy otool64; ac_word=$2
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874$as_echo_n "checking for $ac_word... " >&6; }
6875if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  if test -n "$ac_ct_OTOOL64"; then
6879  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884  IFS=$as_save_IFS
6885  test -z "$as_dir" && as_dir=.
6886    for ac_exec_ext in '' $ac_executable_extensions; do
6887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888    ac_cv_prog_ac_ct_OTOOL64="otool64"
6889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890    break 2
6891  fi
6892done
6893  done
6894IFS=$as_save_IFS
6895
6896fi
6897fi
6898ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6899if test -n "$ac_ct_OTOOL64"; then
6900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6901$as_echo "$ac_ct_OTOOL64" >&6; }
6902else
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904$as_echo "no" >&6; }
6905fi
6906
6907  if test "x$ac_ct_OTOOL64" = x; then
6908    OTOOL64=":"
6909  else
6910    case $cross_compiling:$ac_tool_warned in
6911yes:)
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914ac_tool_warned=yes ;;
6915esac
6916    OTOOL64=$ac_ct_OTOOL64
6917  fi
6918else
6919  OTOOL64="$ac_cv_prog_OTOOL64"
6920fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6949$as_echo_n "checking for -single_module linker flag... " >&6; }
6950if ${lt_cv_apple_cc_single_mod+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  lt_cv_apple_cc_single_mod=no
6954      if test -z "$LT_MULTI_MODULE"; then
6955	# By default we will add the -single_module flag. You can override
6956	# by either setting the environment variable LT_MULTI_MODULE
6957	# non-empty at configure time, or by adding -multi_module to the
6958	# link flags.
6959	rm -rf libconftest.dylib*
6960	echo "int foo(void){return 1;}" > conftest.c
6961	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6962-dynamiclib -Wl,-single_module conftest.c" >&5
6963	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6964	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6965        _lt_result=$?
6966	# If there is a non-empty error log, and "single_module"
6967	# appears in it, assume the flag caused a linker warning
6968        if test -s conftest.err && $GREP single_module conftest.err; then
6969	  cat conftest.err >&5
6970	# Otherwise, if the output was created with a 0 exit code from
6971	# the compiler, it worked.
6972	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6973	  lt_cv_apple_cc_single_mod=yes
6974	else
6975	  cat conftest.err >&5
6976	fi
6977	rm -rf libconftest.dylib*
6978	rm -f conftest.*
6979      fi
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6982$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6983
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6985$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6986if ${lt_cv_ld_exported_symbols_list+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  lt_cv_ld_exported_symbols_list=no
6990      save_LDFLAGS=$LDFLAGS
6991      echo "_main" > conftest.sym
6992      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995
6996int
6997main ()
6998{
6999
7000  ;
7001  return 0;
7002}
7003_ACEOF
7004if ac_fn_c_try_link "$LINENO"; then :
7005  lt_cv_ld_exported_symbols_list=yes
7006else
7007  lt_cv_ld_exported_symbols_list=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext \
7010    conftest$ac_exeext conftest.$ac_ext
7011	LDFLAGS=$save_LDFLAGS
7012
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7015$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7016
7017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7018$as_echo_n "checking for -force_load linker flag... " >&6; }
7019if ${lt_cv_ld_force_load+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  lt_cv_ld_force_load=no
7023      cat > conftest.c << _LT_EOF
7024int forced_loaded() { return 2;}
7025_LT_EOF
7026      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7027      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7028      echo "$AR cru libconftest.a conftest.o" >&5
7029      $AR cru libconftest.a conftest.o 2>&5
7030      echo "$RANLIB libconftest.a" >&5
7031      $RANLIB libconftest.a 2>&5
7032      cat > conftest.c << _LT_EOF
7033int main() { return 0;}
7034_LT_EOF
7035      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7036      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7037      _lt_result=$?
7038      if test -s conftest.err && $GREP force_load conftest.err; then
7039	cat conftest.err >&5
7040      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7041	lt_cv_ld_force_load=yes
7042      else
7043	cat conftest.err >&5
7044      fi
7045        rm -f conftest.err libconftest.a conftest conftest.c
7046        rm -rf conftest.dSYM
7047
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7050$as_echo "$lt_cv_ld_force_load" >&6; }
7051    case $host_os in
7052    rhapsody* | darwin1.[012])
7053      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7054    darwin1.*)
7055      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7056    darwin*) # darwin 5.x on
7057      # if running on 10.5 or later, the deployment target defaults
7058      # to the OS version, if on x86, and 10.4, the deployment
7059      # target defaults to 10.4. Don't you love it?
7060      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7061	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7062	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7063	10.[012][,.]*)
7064	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7065	10.*)
7066	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7067      esac
7068    ;;
7069  esac
7070    if test yes = "$lt_cv_apple_cc_single_mod"; then
7071      _lt_dar_single_mod='$single_module'
7072    fi
7073    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7074      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7075    else
7076      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7077    fi
7078    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7079      _lt_dsymutil='~$DSYMUTIL $lib || :'
7080    else
7081      _lt_dsymutil=
7082    fi
7083    ;;
7084  esac
7085
7086# func_munge_path_list VARIABLE PATH
7087# -----------------------------------
7088# VARIABLE is name of variable containing _space_ separated list of
7089# directories to be munged by the contents of PATH, which is string
7090# having a format:
7091# "DIR[:DIR]:"
7092#       string "DIR[ DIR]" will be prepended to VARIABLE
7093# ":DIR[:DIR]"
7094#       string "DIR[ DIR]" will be appended to VARIABLE
7095# "DIRP[:DIRP]::[DIRA:]DIRA"
7096#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7097#       "DIRA[ DIRA]" will be appended to VARIABLE
7098# "DIR[:DIR]"
7099#       VARIABLE will be replaced by "DIR[ DIR]"
7100func_munge_path_list ()
7101{
7102    case x$2 in
7103    x)
7104        ;;
7105    *:)
7106        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7107        ;;
7108    x:*)
7109        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7110        ;;
7111    *::*)
7112        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7113        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7114        ;;
7115    *)
7116        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7117        ;;
7118    esac
7119}
7120
7121ac_ext=c
7122ac_cpp='$CPP $CPPFLAGS'
7123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7127$as_echo_n "checking how to run the C preprocessor... " >&6; }
7128# On Suns, sometimes $CPP names a directory.
7129if test -n "$CPP" && test -d "$CPP"; then
7130  CPP=
7131fi
7132if test -z "$CPP"; then
7133  if ${ac_cv_prog_CPP+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136      # Double quotes because CPP needs to be expanded
7137    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7138    do
7139      ac_preproc_ok=false
7140for ac_c_preproc_warn_flag in '' yes
7141do
7142  # Use a header file that comes with gcc, so configuring glibc
7143  # with a fresh cross-compiler works.
7144  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7145  # <limits.h> exists even on freestanding compilers.
7146  # On the NeXT, cc -E runs the code through the compiler's parser,
7147  # not just through cpp. "Syntax error" is here to catch this case.
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150#ifdef __STDC__
7151# include <limits.h>
7152#else
7153# include <assert.h>
7154#endif
7155		     Syntax error
7156_ACEOF
7157if ac_fn_c_try_cpp "$LINENO"; then :
7158
7159else
7160  # Broken: fails on valid input.
7161continue
7162fi
7163rm -f conftest.err conftest.i conftest.$ac_ext
7164
7165  # OK, works on sane cases.  Now check whether nonexistent headers
7166  # can be detected and how.
7167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169#include <ac_nonexistent.h>
7170_ACEOF
7171if ac_fn_c_try_cpp "$LINENO"; then :
7172  # Broken: success on invalid input.
7173continue
7174else
7175  # Passes both tests.
7176ac_preproc_ok=:
7177break
7178fi
7179rm -f conftest.err conftest.i conftest.$ac_ext
7180
7181done
7182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7183rm -f conftest.i conftest.err conftest.$ac_ext
7184if $ac_preproc_ok; then :
7185  break
7186fi
7187
7188    done
7189    ac_cv_prog_CPP=$CPP
7190
7191fi
7192  CPP=$ac_cv_prog_CPP
7193else
7194  ac_cv_prog_CPP=$CPP
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7197$as_echo "$CPP" >&6; }
7198ac_preproc_ok=false
7199for ac_c_preproc_warn_flag in '' yes
7200do
7201  # Use a header file that comes with gcc, so configuring glibc
7202  # with a fresh cross-compiler works.
7203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204  # <limits.h> exists even on freestanding compilers.
7205  # On the NeXT, cc -E runs the code through the compiler's parser,
7206  # not just through cpp. "Syntax error" is here to catch this case.
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209#ifdef __STDC__
7210# include <limits.h>
7211#else
7212# include <assert.h>
7213#endif
7214		     Syntax error
7215_ACEOF
7216if ac_fn_c_try_cpp "$LINENO"; then :
7217
7218else
7219  # Broken: fails on valid input.
7220continue
7221fi
7222rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224  # OK, works on sane cases.  Now check whether nonexistent headers
7225  # can be detected and how.
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228#include <ac_nonexistent.h>
7229_ACEOF
7230if ac_fn_c_try_cpp "$LINENO"; then :
7231  # Broken: success on invalid input.
7232continue
7233else
7234  # Passes both tests.
7235ac_preproc_ok=:
7236break
7237fi
7238rm -f conftest.err conftest.i conftest.$ac_ext
7239
7240done
7241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242rm -f conftest.i conftest.err conftest.$ac_ext
7243if $ac_preproc_ok; then :
7244
7245else
7246  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7248as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7249See \`config.log' for more details" "$LINENO" 5; }
7250fi
7251
7252ac_ext=c
7253ac_cpp='$CPP $CPPFLAGS'
7254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7260$as_echo_n "checking for ANSI C header files... " >&6; }
7261if ${ac_cv_header_stdc+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266#include <stdlib.h>
7267#include <stdarg.h>
7268#include <string.h>
7269#include <float.h>
7270
7271int
7272main ()
7273{
7274
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_compile "$LINENO"; then :
7280  ac_cv_header_stdc=yes
7281else
7282  ac_cv_header_stdc=no
7283fi
7284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285
7286if test $ac_cv_header_stdc = yes; then
7287  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290#include <string.h>
7291
7292_ACEOF
7293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294  $EGREP "memchr" >/dev/null 2>&1; then :
7295
7296else
7297  ac_cv_header_stdc=no
7298fi
7299rm -f conftest*
7300
7301fi
7302
7303if test $ac_cv_header_stdc = yes; then
7304  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307#include <stdlib.h>
7308
7309_ACEOF
7310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311  $EGREP "free" >/dev/null 2>&1; then :
7312
7313else
7314  ac_cv_header_stdc=no
7315fi
7316rm -f conftest*
7317
7318fi
7319
7320if test $ac_cv_header_stdc = yes; then
7321  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7322  if test "$cross_compiling" = yes; then :
7323  :
7324else
7325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327#include <ctype.h>
7328#include <stdlib.h>
7329#if ((' ' & 0x0FF) == 0x020)
7330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7332#else
7333# define ISLOWER(c) \
7334		   (('a' <= (c) && (c) <= 'i') \
7335		     || ('j' <= (c) && (c) <= 'r') \
7336		     || ('s' <= (c) && (c) <= 'z'))
7337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338#endif
7339
7340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7341int
7342main ()
7343{
7344  int i;
7345  for (i = 0; i < 256; i++)
7346    if (XOR (islower (i), ISLOWER (i))
7347	|| toupper (i) != TOUPPER (i))
7348      return 2;
7349  return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_run "$LINENO"; then :
7353
7354else
7355  ac_cv_header_stdc=no
7356fi
7357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7358  conftest.$ac_objext conftest.beam conftest.$ac_ext
7359fi
7360
7361fi
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7364$as_echo "$ac_cv_header_stdc" >&6; }
7365if test $ac_cv_header_stdc = yes; then
7366
7367$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7368
7369fi
7370
7371# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7373		  inttypes.h stdint.h unistd.h
7374do :
7375  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7377"
7378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7379  cat >>confdefs.h <<_ACEOF
7380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381_ACEOF
7382
7383fi
7384
7385done
7386
7387
7388for ac_header in dlfcn.h
7389do :
7390  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7391"
7392if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7393  cat >>confdefs.h <<_ACEOF
7394#define HAVE_DLFCN_H 1
7395_ACEOF
7396
7397fi
7398
7399done
7400
7401
7402
7403
7404
7405# Set options
7406
7407
7408
7409        enable_dlopen=no
7410
7411
7412  enable_win32_dll=no
7413
7414
7415            # Check whether --enable-shared was given.
7416if test "${enable_shared+set}" = set; then :
7417  enableval=$enable_shared; p=${PACKAGE-default}
7418    case $enableval in
7419    yes) enable_shared=yes ;;
7420    no) enable_shared=no ;;
7421    *)
7422      enable_shared=no
7423      # Look at the argument we got.  We use all the common list separators.
7424      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7425      for pkg in $enableval; do
7426	IFS=$lt_save_ifs
7427	if test "X$pkg" = "X$p"; then
7428	  enable_shared=yes
7429	fi
7430      done
7431      IFS=$lt_save_ifs
7432      ;;
7433    esac
7434else
7435  enable_shared=yes
7436fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446  # Check whether --enable-static was given.
7447if test "${enable_static+set}" = set; then :
7448  enableval=$enable_static; p=${PACKAGE-default}
7449    case $enableval in
7450    yes) enable_static=yes ;;
7451    no) enable_static=no ;;
7452    *)
7453     enable_static=no
7454      # Look at the argument we got.  We use all the common list separators.
7455      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7456      for pkg in $enableval; do
7457	IFS=$lt_save_ifs
7458	if test "X$pkg" = "X$p"; then
7459	  enable_static=yes
7460	fi
7461      done
7462      IFS=$lt_save_ifs
7463      ;;
7464    esac
7465else
7466  enable_static=yes
7467fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478# Check whether --with-pic was given.
7479if test "${with_pic+set}" = set; then :
7480  withval=$with_pic; lt_p=${PACKAGE-default}
7481    case $withval in
7482    yes|no) pic_mode=$withval ;;
7483    *)
7484      pic_mode=default
7485      # Look at the argument we got.  We use all the common list separators.
7486      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7487      for lt_pkg in $withval; do
7488	IFS=$lt_save_ifs
7489	if test "X$lt_pkg" = "X$lt_p"; then
7490	  pic_mode=yes
7491	fi
7492      done
7493      IFS=$lt_save_ifs
7494      ;;
7495    esac
7496else
7497  pic_mode=default
7498fi
7499
7500
7501
7502
7503
7504
7505
7506
7507  # Check whether --enable-fast-install was given.
7508if test "${enable_fast_install+set}" = set; then :
7509  enableval=$enable_fast_install; p=${PACKAGE-default}
7510    case $enableval in
7511    yes) enable_fast_install=yes ;;
7512    no) enable_fast_install=no ;;
7513    *)
7514      enable_fast_install=no
7515      # Look at the argument we got.  We use all the common list separators.
7516      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7517      for pkg in $enableval; do
7518	IFS=$lt_save_ifs
7519	if test "X$pkg" = "X$p"; then
7520	  enable_fast_install=yes
7521	fi
7522      done
7523      IFS=$lt_save_ifs
7524      ;;
7525    esac
7526else
7527  enable_fast_install=yes
7528fi
7529
7530
7531
7532
7533
7534
7535
7536
7537  shared_archive_member_spec=
7538case $host,$enable_shared in
7539power*-*-aix[5-9]*,yes)
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7541$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7542
7543# Check whether --with-aix-soname was given.
7544if test "${with_aix_soname+set}" = set; then :
7545  withval=$with_aix_soname; case $withval in
7546    aix|svr4|both)
7547      ;;
7548    *)
7549      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7550      ;;
7551    esac
7552    lt_cv_with_aix_soname=$with_aix_soname
7553else
7554  if ${lt_cv_with_aix_soname+:} false; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557  lt_cv_with_aix_soname=aix
7558fi
7559
7560    with_aix_soname=$lt_cv_with_aix_soname
7561fi
7562
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7564$as_echo "$with_aix_soname" >&6; }
7565  if test aix != "$with_aix_soname"; then
7566    # For the AIX way of multilib, we name the shared archive member
7567    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7568    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7569    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7570    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7571    if test 64 = "${OBJECT_MODE-32}"; then
7572      shared_archive_member_spec=shr_64
7573    else
7574      shared_archive_member_spec=shr
7575    fi
7576  fi
7577  ;;
7578*)
7579  with_aix_soname=aix
7580  ;;
7581esac
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592# This can be used to rebuild libtool when needed
7593LIBTOOL_DEPS=$ltmain
7594
7595# Always use our own libtool.
7596LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627test -z "$LN_S" && LN_S="ln -s"
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642if test -n "${ZSH_VERSION+set}"; then
7643   setopt NO_GLOB_SUBST
7644fi
7645
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7647$as_echo_n "checking for objdir... " >&6; }
7648if ${lt_cv_objdir+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  rm -f .libs 2>/dev/null
7652mkdir .libs 2>/dev/null
7653if test -d .libs; then
7654  lt_cv_objdir=.libs
7655else
7656  # MS-DOS does not allow filenames that begin with a dot.
7657  lt_cv_objdir=_libs
7658fi
7659rmdir .libs 2>/dev/null
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7662$as_echo "$lt_cv_objdir" >&6; }
7663objdir=$lt_cv_objdir
7664
7665
7666
7667
7668
7669cat >>confdefs.h <<_ACEOF
7670#define LT_OBJDIR "$lt_cv_objdir/"
7671_ACEOF
7672
7673
7674
7675
7676case $host_os in
7677aix3*)
7678  # AIX sometimes has problems with the GCC collect2 program.  For some
7679  # reason, if we set the COLLECT_NAMES environment variable, the problems
7680  # vanish in a puff of smoke.
7681  if test set != "${COLLECT_NAMES+set}"; then
7682    COLLECT_NAMES=
7683    export COLLECT_NAMES
7684  fi
7685  ;;
7686esac
7687
7688# Global variables:
7689ofile=libtool
7690can_build_shared=yes
7691
7692# All known linkers require a '.a' archive for static linking (except MSVC,
7693# which needs '.lib').
7694libext=a
7695
7696with_gnu_ld=$lt_cv_prog_gnu_ld
7697
7698old_CC=$CC
7699old_CFLAGS=$CFLAGS
7700
7701# Set sane defaults for various variables
7702test -z "$CC" && CC=cc
7703test -z "$LTCC" && LTCC=$CC
7704test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7705test -z "$LD" && LD=ld
7706test -z "$ac_objext" && ac_objext=o
7707
7708func_cc_basename $compiler
7709cc_basename=$func_cc_basename_result
7710
7711
7712# Only perform the check for file, if the check method requires it
7713test -z "$MAGIC_CMD" && MAGIC_CMD=file
7714case $deplibs_check_method in
7715file_magic*)
7716  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7718$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7719if ${lt_cv_path_MAGIC_CMD+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  case $MAGIC_CMD in
7723[\\/*] |  ?:[\\/]*)
7724  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7725  ;;
7726*)
7727  lt_save_MAGIC_CMD=$MAGIC_CMD
7728  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7729  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7730  for ac_dir in $ac_dummy; do
7731    IFS=$lt_save_ifs
7732    test -z "$ac_dir" && ac_dir=.
7733    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7734      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7735      if test -n "$file_magic_test_file"; then
7736	case $deplibs_check_method in
7737	"file_magic "*)
7738	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7739	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7740	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7741	    $EGREP "$file_magic_regex" > /dev/null; then
7742	    :
7743	  else
7744	    cat <<_LT_EOF 1>&2
7745
7746*** Warning: the command libtool uses to detect shared libraries,
7747*** $file_magic_cmd, produces output that libtool cannot recognize.
7748*** The result is that libtool may fail to recognize shared libraries
7749*** as such.  This will affect the creation of libtool libraries that
7750*** depend on shared libraries, but programs linked with such libtool
7751*** libraries will work regardless of this problem.  Nevertheless, you
7752*** may want to report the problem to your system manager and/or to
7753*** bug-libtool@gnu.org
7754
7755_LT_EOF
7756	  fi ;;
7757	esac
7758      fi
7759      break
7760    fi
7761  done
7762  IFS=$lt_save_ifs
7763  MAGIC_CMD=$lt_save_MAGIC_CMD
7764  ;;
7765esac
7766fi
7767
7768MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7769if test -n "$MAGIC_CMD"; then
7770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7771$as_echo "$MAGIC_CMD" >&6; }
7772else
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775fi
7776
7777
7778
7779
7780
7781if test -z "$lt_cv_path_MAGIC_CMD"; then
7782  if test -n "$ac_tool_prefix"; then
7783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7784$as_echo_n "checking for file... " >&6; }
7785if ${lt_cv_path_MAGIC_CMD+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  case $MAGIC_CMD in
7789[\\/*] |  ?:[\\/]*)
7790  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7791  ;;
7792*)
7793  lt_save_MAGIC_CMD=$MAGIC_CMD
7794  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7795  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7796  for ac_dir in $ac_dummy; do
7797    IFS=$lt_save_ifs
7798    test -z "$ac_dir" && ac_dir=.
7799    if test -f "$ac_dir/file"; then
7800      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7801      if test -n "$file_magic_test_file"; then
7802	case $deplibs_check_method in
7803	"file_magic "*)
7804	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7805	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7806	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7807	    $EGREP "$file_magic_regex" > /dev/null; then
7808	    :
7809	  else
7810	    cat <<_LT_EOF 1>&2
7811
7812*** Warning: the command libtool uses to detect shared libraries,
7813*** $file_magic_cmd, produces output that libtool cannot recognize.
7814*** The result is that libtool may fail to recognize shared libraries
7815*** as such.  This will affect the creation of libtool libraries that
7816*** depend on shared libraries, but programs linked with such libtool
7817*** libraries will work regardless of this problem.  Nevertheless, you
7818*** may want to report the problem to your system manager and/or to
7819*** bug-libtool@gnu.org
7820
7821_LT_EOF
7822	  fi ;;
7823	esac
7824      fi
7825      break
7826    fi
7827  done
7828  IFS=$lt_save_ifs
7829  MAGIC_CMD=$lt_save_MAGIC_CMD
7830  ;;
7831esac
7832fi
7833
7834MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7835if test -n "$MAGIC_CMD"; then
7836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7837$as_echo "$MAGIC_CMD" >&6; }
7838else
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841fi
7842
7843
7844  else
7845    MAGIC_CMD=:
7846  fi
7847fi
7848
7849  fi
7850  ;;
7851esac
7852
7853# Use C for the default configuration in the libtool script
7854
7855lt_save_CC=$CC
7856ac_ext=c
7857ac_cpp='$CPP $CPPFLAGS'
7858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863# Source file extension for C test sources.
7864ac_ext=c
7865
7866# Object file extension for compiled C test sources.
7867objext=o
7868objext=$objext
7869
7870# Code to be used in simple compile tests
7871lt_simple_compile_test_code="int some_variable = 0;"
7872
7873# Code to be used in simple link tests
7874lt_simple_link_test_code='int main(){return(0);}'
7875
7876
7877
7878
7879
7880
7881
7882# If no C compiler was specified, use CC.
7883LTCC=${LTCC-"$CC"}
7884
7885# If no C compiler flags were specified, use CFLAGS.
7886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7887
7888# Allow CC to be a program name with arguments.
7889compiler=$CC
7890
7891# Save the default compiler, since it gets overwritten when the other
7892# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7893compiler_DEFAULT=$CC
7894
7895# save warnings/boilerplate of simple test code
7896ac_outfile=conftest.$ac_objext
7897echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7898eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7899_lt_compiler_boilerplate=`cat conftest.err`
7900$RM conftest*
7901
7902ac_outfile=conftest.$ac_objext
7903echo "$lt_simple_link_test_code" >conftest.$ac_ext
7904eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7905_lt_linker_boilerplate=`cat conftest.err`
7906$RM -r conftest*
7907
7908
7909## CAVEAT EMPTOR:
7910## There is no encapsulation within the following macros, do not change
7911## the running order or otherwise move them around unless you know exactly
7912## what you are doing...
7913if test -n "$compiler"; then
7914
7915lt_prog_compiler_no_builtin_flag=
7916
7917if test yes = "$GCC"; then
7918  case $cc_basename in
7919  nvcc*)
7920    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7921  *)
7922    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7923  esac
7924
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7926$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7927if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  lt_cv_prog_compiler_rtti_exceptions=no
7931   ac_outfile=conftest.$ac_objext
7932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7933   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7934   # Insert the option either (1) after the last *FLAGS variable, or
7935   # (2) before a word containing "conftest.", or (3) at the end.
7936   # Note that $ac_compile itself does not contain backslashes and begins
7937   # with a dollar sign (not a hyphen), so the echo should work correctly.
7938   # The option is referenced via a variable to avoid confusing sed.
7939   lt_compile=`echo "$ac_compile" | $SED \
7940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7942   -e 's:$: $lt_compiler_flag:'`
7943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7944   (eval "$lt_compile" 2>conftest.err)
7945   ac_status=$?
7946   cat conftest.err >&5
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   if (exit $ac_status) && test -s "$ac_outfile"; then
7949     # The compiler can only warn and ignore the option if not recognized
7950     # So say no if there are warnings other than the usual output.
7951     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7952     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7953     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7954       lt_cv_prog_compiler_rtti_exceptions=yes
7955     fi
7956   fi
7957   $RM conftest*
7958
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7961$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7962
7963if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7964    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7965else
7966    :
7967fi
7968
7969fi
7970
7971
7972
7973
7974
7975
7976  lt_prog_compiler_wl=
7977lt_prog_compiler_pic=
7978lt_prog_compiler_static=
7979
7980
7981  if test yes = "$GCC"; then
7982    lt_prog_compiler_wl='-Wl,'
7983    lt_prog_compiler_static='-static'
7984
7985    case $host_os in
7986      aix*)
7987      # All AIX code is PIC.
7988      if test ia64 = "$host_cpu"; then
7989	# AIX 5 now supports IA64 processor
7990	lt_prog_compiler_static='-Bstatic'
7991      fi
7992      lt_prog_compiler_pic='-fPIC'
7993      ;;
7994
7995    amigaos*)
7996      case $host_cpu in
7997      powerpc)
7998            # see comment about AmigaOS4 .so support
7999            lt_prog_compiler_pic='-fPIC'
8000        ;;
8001      m68k)
8002            # FIXME: we need at least 68020 code to build shared libraries, but
8003            # adding the '-m68020' flag to GCC prevents building anything better,
8004            # like '-m68040'.
8005            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8006        ;;
8007      esac
8008      ;;
8009
8010    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8011      # PIC is the default for these OSes.
8012      ;;
8013
8014    mingw* | cygwin* | pw32* | os2* | cegcc*)
8015      # This hack is so that the source file can tell whether it is being
8016      # built for inclusion in a dll (and should export symbols for example).
8017      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8018      # (--disable-auto-import) libraries
8019      lt_prog_compiler_pic='-DDLL_EXPORT'
8020      case $host_os in
8021      os2*)
8022	lt_prog_compiler_static='$wl-static'
8023	;;
8024      esac
8025      ;;
8026
8027    darwin* | rhapsody*)
8028      # PIC is the default on this platform
8029      # Common symbols not allowed in MH_DYLIB files
8030      lt_prog_compiler_pic='-fno-common'
8031      ;;
8032
8033    haiku*)
8034      # PIC is the default for Haiku.
8035      # The "-static" flag exists, but is broken.
8036      lt_prog_compiler_static=
8037      ;;
8038
8039    hpux*)
8040      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8041      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8042      # sets the default TLS model and affects inlining.
8043      case $host_cpu in
8044      hppa*64*)
8045	# +Z the default
8046	;;
8047      *)
8048	lt_prog_compiler_pic='-fPIC'
8049	;;
8050      esac
8051      ;;
8052
8053    interix[3-9]*)
8054      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8055      # Instead, we relocate shared libraries at runtime.
8056      ;;
8057
8058    msdosdjgpp*)
8059      # Just because we use GCC doesn't mean we suddenly get shared libraries
8060      # on systems that don't support them.
8061      lt_prog_compiler_can_build_shared=no
8062      enable_shared=no
8063      ;;
8064
8065    *nto* | *qnx*)
8066      # QNX uses GNU C++, but need to define -shared option too, otherwise
8067      # it will coredump.
8068      lt_prog_compiler_pic='-fPIC -shared'
8069      ;;
8070
8071    sysv4*MP*)
8072      if test -d /usr/nec; then
8073	lt_prog_compiler_pic=-Kconform_pic
8074      fi
8075      ;;
8076
8077    *)
8078      lt_prog_compiler_pic='-fPIC'
8079      ;;
8080    esac
8081
8082    case $cc_basename in
8083    nvcc*) # Cuda Compiler Driver 2.2
8084      lt_prog_compiler_wl='-Xlinker '
8085      if test -n "$lt_prog_compiler_pic"; then
8086        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8087      fi
8088      ;;
8089    esac
8090  else
8091    # PORTME Check for flag to pass linker flags through the system compiler.
8092    case $host_os in
8093    aix*)
8094      lt_prog_compiler_wl='-Wl,'
8095      if test ia64 = "$host_cpu"; then
8096	# AIX 5 now supports IA64 processor
8097	lt_prog_compiler_static='-Bstatic'
8098      else
8099	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8100      fi
8101      ;;
8102
8103    darwin* | rhapsody*)
8104      # PIC is the default on this platform
8105      # Common symbols not allowed in MH_DYLIB files
8106      lt_prog_compiler_pic='-fno-common'
8107      case $cc_basename in
8108      nagfor*)
8109        # NAG Fortran compiler
8110        lt_prog_compiler_wl='-Wl,-Wl,,'
8111        lt_prog_compiler_pic='-PIC'
8112        lt_prog_compiler_static='-Bstatic'
8113        ;;
8114      esac
8115      ;;
8116
8117    mingw* | cygwin* | pw32* | os2* | cegcc*)
8118      # This hack is so that the source file can tell whether it is being
8119      # built for inclusion in a dll (and should export symbols for example).
8120      lt_prog_compiler_pic='-DDLL_EXPORT'
8121      case $host_os in
8122      os2*)
8123	lt_prog_compiler_static='$wl-static'
8124	;;
8125      esac
8126      ;;
8127
8128    hpux9* | hpux10* | hpux11*)
8129      lt_prog_compiler_wl='-Wl,'
8130      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8131      # not for PA HP-UX.
8132      case $host_cpu in
8133      hppa*64*|ia64*)
8134	# +Z the default
8135	;;
8136      *)
8137	lt_prog_compiler_pic='+Z'
8138	;;
8139      esac
8140      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8141      lt_prog_compiler_static='$wl-a ${wl}archive'
8142      ;;
8143
8144    irix5* | irix6* | nonstopux*)
8145      lt_prog_compiler_wl='-Wl,'
8146      # PIC (with -KPIC) is the default.
8147      lt_prog_compiler_static='-non_shared'
8148      ;;
8149
8150    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8151      case $cc_basename in
8152      # old Intel for x86_64, which still supported -KPIC.
8153      ecc*)
8154	lt_prog_compiler_wl='-Wl,'
8155	lt_prog_compiler_pic='-KPIC'
8156	lt_prog_compiler_static='-static'
8157        ;;
8158      # icc used to be incompatible with GCC.
8159      # ICC 10 doesn't accept -KPIC any more.
8160      icc* | ifort*)
8161	lt_prog_compiler_wl='-Wl,'
8162	lt_prog_compiler_pic='-fPIC'
8163	lt_prog_compiler_static='-static'
8164        ;;
8165      # Lahey Fortran 8.1.
8166      lf95*)
8167	lt_prog_compiler_wl='-Wl,'
8168	lt_prog_compiler_pic='--shared'
8169	lt_prog_compiler_static='--static'
8170	;;
8171      nagfor*)
8172	# NAG Fortran compiler
8173	lt_prog_compiler_wl='-Wl,-Wl,,'
8174	lt_prog_compiler_pic='-PIC'
8175	lt_prog_compiler_static='-Bstatic'
8176	;;
8177      tcc*)
8178	# Fabrice Bellard et al's Tiny C Compiler
8179	lt_prog_compiler_wl='-Wl,'
8180	lt_prog_compiler_pic='-fPIC'
8181	lt_prog_compiler_static='-static'
8182	;;
8183      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8184        # Portland Group compilers (*not* the Pentium gcc compiler,
8185	# which looks to be a dead project)
8186	lt_prog_compiler_wl='-Wl,'
8187	lt_prog_compiler_pic='-fpic'
8188	lt_prog_compiler_static='-Bstatic'
8189        ;;
8190      ccc*)
8191        lt_prog_compiler_wl='-Wl,'
8192        # All Alpha code is PIC.
8193        lt_prog_compiler_static='-non_shared'
8194        ;;
8195      xl* | bgxl* | bgf* | mpixl*)
8196	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8197	lt_prog_compiler_wl='-Wl,'
8198	lt_prog_compiler_pic='-qpic'
8199	lt_prog_compiler_static='-qstaticlink'
8200	;;
8201      *)
8202	case `$CC -V 2>&1 | sed 5q` in
8203	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8204	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8205	  lt_prog_compiler_pic='-KPIC'
8206	  lt_prog_compiler_static='-Bstatic'
8207	  lt_prog_compiler_wl=''
8208	  ;;
8209	*Sun\ F* | *Sun*Fortran*)
8210	  lt_prog_compiler_pic='-KPIC'
8211	  lt_prog_compiler_static='-Bstatic'
8212	  lt_prog_compiler_wl='-Qoption ld '
8213	  ;;
8214	*Sun\ C*)
8215	  # Sun C 5.9
8216	  lt_prog_compiler_pic='-KPIC'
8217	  lt_prog_compiler_static='-Bstatic'
8218	  lt_prog_compiler_wl='-Wl,'
8219	  ;;
8220        *Intel*\ [CF]*Compiler*)
8221	  lt_prog_compiler_wl='-Wl,'
8222	  lt_prog_compiler_pic='-fPIC'
8223	  lt_prog_compiler_static='-static'
8224	  ;;
8225	*Portland\ Group*)
8226	  lt_prog_compiler_wl='-Wl,'
8227	  lt_prog_compiler_pic='-fpic'
8228	  lt_prog_compiler_static='-Bstatic'
8229	  ;;
8230	esac
8231	;;
8232      esac
8233      ;;
8234
8235    newsos6)
8236      lt_prog_compiler_pic='-KPIC'
8237      lt_prog_compiler_static='-Bstatic'
8238      ;;
8239
8240    *nto* | *qnx*)
8241      # QNX uses GNU C++, but need to define -shared option too, otherwise
8242      # it will coredump.
8243      lt_prog_compiler_pic='-fPIC -shared'
8244      ;;
8245
8246    osf3* | osf4* | osf5*)
8247      lt_prog_compiler_wl='-Wl,'
8248      # All OSF/1 code is PIC.
8249      lt_prog_compiler_static='-non_shared'
8250      ;;
8251
8252    rdos*)
8253      lt_prog_compiler_static='-non_shared'
8254      ;;
8255
8256    solaris*)
8257      lt_prog_compiler_pic='-KPIC'
8258      lt_prog_compiler_static='-Bstatic'
8259      case $cc_basename in
8260      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8261	lt_prog_compiler_wl='-Qoption ld ';;
8262      *)
8263	lt_prog_compiler_wl='-Wl,';;
8264      esac
8265      ;;
8266
8267    sunos4*)
8268      lt_prog_compiler_wl='-Qoption ld '
8269      lt_prog_compiler_pic='-PIC'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    sysv4 | sysv4.2uw2* | sysv4.3*)
8274      lt_prog_compiler_wl='-Wl,'
8275      lt_prog_compiler_pic='-KPIC'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    sysv4*MP*)
8280      if test -d /usr/nec; then
8281	lt_prog_compiler_pic='-Kconform_pic'
8282	lt_prog_compiler_static='-Bstatic'
8283      fi
8284      ;;
8285
8286    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8287      lt_prog_compiler_wl='-Wl,'
8288      lt_prog_compiler_pic='-KPIC'
8289      lt_prog_compiler_static='-Bstatic'
8290      ;;
8291
8292    unicos*)
8293      lt_prog_compiler_wl='-Wl,'
8294      lt_prog_compiler_can_build_shared=no
8295      ;;
8296
8297    uts4*)
8298      lt_prog_compiler_pic='-pic'
8299      lt_prog_compiler_static='-Bstatic'
8300      ;;
8301
8302    *)
8303      lt_prog_compiler_can_build_shared=no
8304      ;;
8305    esac
8306  fi
8307
8308case $host_os in
8309  # For platforms that do not support PIC, -DPIC is meaningless:
8310  *djgpp*)
8311    lt_prog_compiler_pic=
8312    ;;
8313  *)
8314    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8315    ;;
8316esac
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8319$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8320if ${lt_cv_prog_compiler_pic+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8326$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8327lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8328
8329#
8330# Check to make sure the PIC flag actually works.
8331#
8332if test -n "$lt_prog_compiler_pic"; then
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8334$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8335if ${lt_cv_prog_compiler_pic_works+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  lt_cv_prog_compiler_pic_works=no
8339   ac_outfile=conftest.$ac_objext
8340   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8342   # Insert the option either (1) after the last *FLAGS variable, or
8343   # (2) before a word containing "conftest.", or (3) at the end.
8344   # Note that $ac_compile itself does not contain backslashes and begins
8345   # with a dollar sign (not a hyphen), so the echo should work correctly.
8346   # The option is referenced via a variable to avoid confusing sed.
8347   lt_compile=`echo "$ac_compile" | $SED \
8348   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350   -e 's:$: $lt_compiler_flag:'`
8351   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8352   (eval "$lt_compile" 2>conftest.err)
8353   ac_status=$?
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   if (exit $ac_status) && test -s "$ac_outfile"; then
8357     # The compiler can only warn and ignore the option if not recognized
8358     # So say no if there are warnings other than the usual output.
8359     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8360     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8361     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8362       lt_cv_prog_compiler_pic_works=yes
8363     fi
8364   fi
8365   $RM conftest*
8366
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8369$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8370
8371if test yes = "$lt_cv_prog_compiler_pic_works"; then
8372    case $lt_prog_compiler_pic in
8373     "" | " "*) ;;
8374     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8375     esac
8376else
8377    lt_prog_compiler_pic=
8378     lt_prog_compiler_can_build_shared=no
8379fi
8380
8381fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393#
8394# Check to make sure the static flag actually works.
8395#
8396wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8398$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8399if ${lt_cv_prog_compiler_static_works+:} false; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  lt_cv_prog_compiler_static_works=no
8403   save_LDFLAGS=$LDFLAGS
8404   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8405   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8406   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8407     # The linker can only warn and ignore the option if not recognized
8408     # So say no if there are warnings
8409     if test -s conftest.err; then
8410       # Append any errors to the config.log.
8411       cat conftest.err 1>&5
8412       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8413       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8414       if diff conftest.exp conftest.er2 >/dev/null; then
8415         lt_cv_prog_compiler_static_works=yes
8416       fi
8417     else
8418       lt_cv_prog_compiler_static_works=yes
8419     fi
8420   fi
8421   $RM -r conftest*
8422   LDFLAGS=$save_LDFLAGS
8423
8424fi
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8426$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8427
8428if test yes = "$lt_cv_prog_compiler_static_works"; then
8429    :
8430else
8431    lt_prog_compiler_static=
8432fi
8433
8434
8435
8436
8437
8438
8439
8440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8442if ${lt_cv_prog_compiler_c_o+:} false; then :
8443  $as_echo_n "(cached) " >&6
8444else
8445  lt_cv_prog_compiler_c_o=no
8446   $RM -r conftest 2>/dev/null
8447   mkdir conftest
8448   cd conftest
8449   mkdir out
8450   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451
8452   lt_compiler_flag="-o out/conftest2.$ac_objext"
8453   # Insert the option either (1) after the last *FLAGS variable, or
8454   # (2) before a word containing "conftest.", or (3) at the end.
8455   # Note that $ac_compile itself does not contain backslashes and begins
8456   # with a dollar sign (not a hyphen), so the echo should work correctly.
8457   lt_compile=`echo "$ac_compile" | $SED \
8458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460   -e 's:$: $lt_compiler_flag:'`
8461   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462   (eval "$lt_compile" 2>out/conftest.err)
8463   ac_status=$?
8464   cat out/conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8467   then
8468     # The compiler can only warn and ignore the option if not recognized
8469     # So say no if there are warnings
8470     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8471     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8472     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8473       lt_cv_prog_compiler_c_o=yes
8474     fi
8475   fi
8476   chmod u+w . 2>&5
8477   $RM conftest*
8478   # SGI C++ compiler will create directory out/ii_files/ for
8479   # template instantiation
8480   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8481   $RM out/* && rmdir out
8482   cd ..
8483   $RM -r conftest
8484   $RM conftest*
8485
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8488$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8489
8490
8491
8492
8493
8494
8495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8497if ${lt_cv_prog_compiler_c_o+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  lt_cv_prog_compiler_c_o=no
8501   $RM -r conftest 2>/dev/null
8502   mkdir conftest
8503   cd conftest
8504   mkdir out
8505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8506
8507   lt_compiler_flag="-o out/conftest2.$ac_objext"
8508   # Insert the option either (1) after the last *FLAGS variable, or
8509   # (2) before a word containing "conftest.", or (3) at the end.
8510   # Note that $ac_compile itself does not contain backslashes and begins
8511   # with a dollar sign (not a hyphen), so the echo should work correctly.
8512   lt_compile=`echo "$ac_compile" | $SED \
8513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8515   -e 's:$: $lt_compiler_flag:'`
8516   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8517   (eval "$lt_compile" 2>out/conftest.err)
8518   ac_status=$?
8519   cat out/conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8522   then
8523     # The compiler can only warn and ignore the option if not recognized
8524     # So say no if there are warnings
8525     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8526     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8527     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8528       lt_cv_prog_compiler_c_o=yes
8529     fi
8530   fi
8531   chmod u+w . 2>&5
8532   $RM conftest*
8533   # SGI C++ compiler will create directory out/ii_files/ for
8534   # template instantiation
8535   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8536   $RM out/* && rmdir out
8537   cd ..
8538   $RM -r conftest
8539   $RM conftest*
8540
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8543$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8544
8545
8546
8547
8548hard_links=nottested
8549if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8550  # do not overwrite the value of need_locks provided by the user
8551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8552$as_echo_n "checking if we can lock with hard links... " >&6; }
8553  hard_links=yes
8554  $RM conftest*
8555  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8556  touch conftest.a
8557  ln conftest.a conftest.b 2>&5 || hard_links=no
8558  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8560$as_echo "$hard_links" >&6; }
8561  if test no = "$hard_links"; then
8562    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8563$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8564    need_locks=warn
8565  fi
8566else
8567  need_locks=no
8568fi
8569
8570
8571
8572
8573
8574
8575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8576$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8577
8578  runpath_var=
8579  allow_undefined_flag=
8580  always_export_symbols=no
8581  archive_cmds=
8582  archive_expsym_cmds=
8583  compiler_needs_object=no
8584  enable_shared_with_static_runtimes=no
8585  export_dynamic_flag_spec=
8586  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8587  hardcode_automatic=no
8588  hardcode_direct=no
8589  hardcode_direct_absolute=no
8590  hardcode_libdir_flag_spec=
8591  hardcode_libdir_separator=
8592  hardcode_minus_L=no
8593  hardcode_shlibpath_var=unsupported
8594  inherit_rpath=no
8595  link_all_deplibs=unknown
8596  module_cmds=
8597  module_expsym_cmds=
8598  old_archive_from_new_cmds=
8599  old_archive_from_expsyms_cmds=
8600  thread_safe_flag_spec=
8601  whole_archive_flag_spec=
8602  # include_expsyms should be a list of space-separated symbols to be *always*
8603  # included in the symbol list
8604  include_expsyms=
8605  # exclude_expsyms can be an extended regexp of symbols to exclude
8606  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8607  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8608  # as well as any symbol that contains 'd'.
8609  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8610  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8611  # platforms (ab)use it in PIC code, but their linkers get confused if
8612  # the symbol is explicitly referenced.  Since portable code cannot
8613  # rely on this symbol name, it's probably fine to never include it in
8614  # preloaded symbol tables.
8615  # Exclude shared library initialization/finalization symbols.
8616  extract_expsyms_cmds=
8617
8618  case $host_os in
8619  cygwin* | mingw* | pw32* | cegcc*)
8620    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8621    # When not using gcc, we currently assume that we are using
8622    # Microsoft Visual C++.
8623    if test yes != "$GCC"; then
8624      with_gnu_ld=no
8625    fi
8626    ;;
8627  interix*)
8628    # we just hope/assume this is gcc and not c89 (= MSVC++)
8629    with_gnu_ld=yes
8630    ;;
8631  openbsd* | bitrig*)
8632    with_gnu_ld=no
8633    ;;
8634  esac
8635
8636  ld_shlibs=yes
8637
8638  # On some targets, GNU ld is compatible enough with the native linker
8639  # that we're better off using the native interface for both.
8640  lt_use_gnu_ld_interface=no
8641  if test yes = "$with_gnu_ld"; then
8642    case $host_os in
8643      aix*)
8644	# The AIX port of GNU ld has always aspired to compatibility
8645	# with the native linker.  However, as the warning in the GNU ld
8646	# block says, versions before 2.19.5* couldn't really create working
8647	# shared libraries, regardless of the interface used.
8648	case `$LD -v 2>&1` in
8649	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8650	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8651	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8652	  *)
8653	    lt_use_gnu_ld_interface=yes
8654	    ;;
8655	esac
8656	;;
8657      *)
8658	lt_use_gnu_ld_interface=yes
8659	;;
8660    esac
8661  fi
8662
8663  if test yes = "$lt_use_gnu_ld_interface"; then
8664    # If archive_cmds runs LD, not CC, wlarc should be empty
8665    wlarc='$wl'
8666
8667    # Set some defaults for GNU ld with shared library support. These
8668    # are reset later if shared libraries are not supported. Putting them
8669    # here allows them to be overridden if necessary.
8670    runpath_var=LD_RUN_PATH
8671    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8672    export_dynamic_flag_spec='$wl--export-dynamic'
8673    # ancient GNU ld didn't support --whole-archive et. al.
8674    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8675      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8676    else
8677      whole_archive_flag_spec=
8678    fi
8679    supports_anon_versioning=no
8680    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8681      *GNU\ gold*) supports_anon_versioning=yes ;;
8682      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8683      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8684      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8685      *\ 2.11.*) ;; # other 2.11 versions
8686      *) supports_anon_versioning=yes ;;
8687    esac
8688
8689    # See if GNU ld supports shared libraries.
8690    case $host_os in
8691    aix[3-9]*)
8692      # On AIX/PPC, the GNU linker is very broken
8693      if test ia64 != "$host_cpu"; then
8694	ld_shlibs=no
8695	cat <<_LT_EOF 1>&2
8696
8697*** Warning: the GNU linker, at least up to release 2.19, is reported
8698*** to be unable to reliably create shared libraries on AIX.
8699*** Therefore, libtool is disabling shared libraries support.  If you
8700*** really care for shared libraries, you may want to install binutils
8701*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8702*** You will then need to restart the configuration process.
8703
8704_LT_EOF
8705      fi
8706      ;;
8707
8708    amigaos*)
8709      case $host_cpu in
8710      powerpc)
8711            # see comment about AmigaOS4 .so support
8712            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8713            archive_expsym_cmds=''
8714        ;;
8715      m68k)
8716            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)'
8717            hardcode_libdir_flag_spec='-L$libdir'
8718            hardcode_minus_L=yes
8719        ;;
8720      esac
8721      ;;
8722
8723    beos*)
8724      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725	allow_undefined_flag=unsupported
8726	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8727	# support --undefined.  This deserves some investigation.  FIXME
8728	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8729      else
8730	ld_shlibs=no
8731      fi
8732      ;;
8733
8734    cygwin* | mingw* | pw32* | cegcc*)
8735      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8736      # as there is no search path for DLLs.
8737      hardcode_libdir_flag_spec='-L$libdir'
8738      export_dynamic_flag_spec='$wl--export-all-symbols'
8739      allow_undefined_flag=unsupported
8740      always_export_symbols=no
8741      enable_shared_with_static_runtimes=yes
8742      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'
8743      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8744
8745      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8746        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8747	# If the export-symbols file already is a .def file, use it as
8748	# is; otherwise, prepend EXPORTS...
8749	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8750          cp $export_symbols $output_objdir/$soname.def;
8751        else
8752          echo EXPORTS > $output_objdir/$soname.def;
8753          cat $export_symbols >> $output_objdir/$soname.def;
8754        fi~
8755        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8756      else
8757	ld_shlibs=no
8758      fi
8759      ;;
8760
8761    haiku*)
8762      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8763      link_all_deplibs=yes
8764      ;;
8765
8766    os2*)
8767      hardcode_libdir_flag_spec='-L$libdir'
8768      hardcode_minus_L=yes
8769      allow_undefined_flag=unsupported
8770      shrext_cmds=.dll
8771      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8772	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8773	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8774	$ECHO EXPORTS >> $output_objdir/$libname.def~
8775	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8776	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8777	emximp -o $lib $output_objdir/$libname.def'
8778      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8779	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8780	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8781	$ECHO EXPORTS >> $output_objdir/$libname.def~
8782	prefix_cmds="$SED"~
8783	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8784	  prefix_cmds="$prefix_cmds -e 1d";
8785	fi~
8786	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8787	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8788	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8789	emximp -o $lib $output_objdir/$libname.def'
8790      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8791      enable_shared_with_static_runtimes=yes
8792      ;;
8793
8794    interix[3-9]*)
8795      hardcode_direct=no
8796      hardcode_shlibpath_var=no
8797      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8798      export_dynamic_flag_spec='$wl-E'
8799      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8800      # Instead, shared libraries are loaded at an image base (0x10000000 by
8801      # default) and relocated if they conflict, which is a slow very memory
8802      # consuming and fragmenting process.  To avoid this, we pick a random,
8803      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8804      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8805      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8806      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'
8807      ;;
8808
8809    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8810      tmp_diet=no
8811      if test linux-dietlibc = "$host_os"; then
8812	case $cc_basename in
8813	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8814	esac
8815      fi
8816      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8817	 && test no = "$tmp_diet"
8818      then
8819	tmp_addflag=' $pic_flag'
8820	tmp_sharedflag='-shared'
8821	case $cc_basename,$host_cpu in
8822        pgcc*)				# Portland Group C compiler
8823	  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'
8824	  tmp_addflag=' $pic_flag'
8825	  ;;
8826	pgf77* | pgf90* | pgf95* | pgfortran*)
8827					# Portland Group f77 and f90 compilers
8828	  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'
8829	  tmp_addflag=' $pic_flag -Mnomain' ;;
8830	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8831	  tmp_addflag=' -i_dynamic' ;;
8832	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8833	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8834	ifc* | ifort*)			# Intel Fortran compiler
8835	  tmp_addflag=' -nofor_main' ;;
8836	lf95*)				# Lahey Fortran 8.1
8837	  whole_archive_flag_spec=
8838	  tmp_sharedflag='--shared' ;;
8839        nagfor*)                        # NAGFOR 5.3
8840          tmp_sharedflag='-Wl,-shared' ;;
8841	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8842	  tmp_sharedflag='-qmkshrobj'
8843	  tmp_addflag= ;;
8844	nvcc*)	# Cuda Compiler Driver 2.2
8845	  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'
8846	  compiler_needs_object=yes
8847	  ;;
8848	esac
8849	case `$CC -V 2>&1 | sed 5q` in
8850	*Sun\ C*)			# Sun C 5.9
8851	  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'
8852	  compiler_needs_object=yes
8853	  tmp_sharedflag='-G' ;;
8854	*Sun\ F*)			# Sun Fortran 8.3
8855	  tmp_sharedflag='-G' ;;
8856	esac
8857	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8858
8859        if test yes = "$supports_anon_versioning"; then
8860          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8861            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8862            echo "local: *; };" >> $output_objdir/$libname.ver~
8863            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8864        fi
8865
8866	case $cc_basename in
8867	tcc*)
8868	  export_dynamic_flag_spec='-rdynamic'
8869	  ;;
8870	xlf* | bgf* | bgxlf* | mpixlf*)
8871	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8872	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8873	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8874	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8875	  if test yes = "$supports_anon_versioning"; then
8876	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8877              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8878              echo "local: *; };" >> $output_objdir/$libname.ver~
8879              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8880	  fi
8881	  ;;
8882	esac
8883      else
8884        ld_shlibs=no
8885      fi
8886      ;;
8887
8888    netbsd*)
8889      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8890	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8891	wlarc=
8892      else
8893	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8894	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8895      fi
8896      ;;
8897
8898    solaris*)
8899      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8900	ld_shlibs=no
8901	cat <<_LT_EOF 1>&2
8902
8903*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8904*** create shared libraries on Solaris systems.  Therefore, libtool
8905*** is disabling shared libraries support.  We urge you to upgrade GNU
8906*** binutils to release 2.9.1 or newer.  Another option is to modify
8907*** your PATH or compiler configuration so that the native linker is
8908*** used, and then restart.
8909
8910_LT_EOF
8911      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8912	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8913	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8914      else
8915	ld_shlibs=no
8916      fi
8917      ;;
8918
8919    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8920      case `$LD -v 2>&1` in
8921        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8922	ld_shlibs=no
8923	cat <<_LT_EOF 1>&2
8924
8925*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8926*** reliably create shared libraries on SCO systems.  Therefore, libtool
8927*** is disabling shared libraries support.  We urge you to upgrade GNU
8928*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8929*** your PATH or compiler configuration so that the native linker is
8930*** used, and then restart.
8931
8932_LT_EOF
8933	;;
8934	*)
8935	  # For security reasons, it is highly recommended that you always
8936	  # use absolute paths for naming shared libraries, and exclude the
8937	  # DT_RUNPATH tag from executables and libraries.  But doing so
8938	  # requires that you compile everything twice, which is a pain.
8939	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8941	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8942	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8943	  else
8944	    ld_shlibs=no
8945	  fi
8946	;;
8947      esac
8948      ;;
8949
8950    sunos4*)
8951      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8952      wlarc=
8953      hardcode_direct=yes
8954      hardcode_shlibpath_var=no
8955      ;;
8956
8957    *)
8958      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8959	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8960	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8961      else
8962	ld_shlibs=no
8963      fi
8964      ;;
8965    esac
8966
8967    if test no = "$ld_shlibs"; then
8968      runpath_var=
8969      hardcode_libdir_flag_spec=
8970      export_dynamic_flag_spec=
8971      whole_archive_flag_spec=
8972    fi
8973  else
8974    # PORTME fill in a description of your system's linker (not GNU ld)
8975    case $host_os in
8976    aix3*)
8977      allow_undefined_flag=unsupported
8978      always_export_symbols=yes
8979      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'
8980      # Note: this linker hardcodes the directories in LIBPATH if there
8981      # are no directories specified by -L.
8982      hardcode_minus_L=yes
8983      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8984	# Neither direct hardcoding nor static linking is supported with a
8985	# broken collect2.
8986	hardcode_direct=unsupported
8987      fi
8988      ;;
8989
8990    aix[4-9]*)
8991      if test ia64 = "$host_cpu"; then
8992	# On IA64, the linker does run time linking by default, so we don't
8993	# have to do anything special.
8994	aix_use_runtimelinking=no
8995	exp_sym_flag='-Bexport'
8996	no_entry_flag=
8997      else
8998	# If we're using GNU nm, then we don't want the "-C" option.
8999	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9000	# Without the "-l" option, or with the "-B" option, AIX nm treats
9001	# weak defined symbols like other global defined symbols, whereas
9002	# GNU nm marks them as "W".
9003	# While the 'weak' keyword is ignored in the Export File, we need
9004	# it in the Import File for the 'aix-soname' feature, so we have
9005	# to replace the "-B" option with "-P" for AIX nm.
9006	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9007	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9008	else
9009	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9010	fi
9011	aix_use_runtimelinking=no
9012
9013	# Test if we are trying to use run time linking or normal
9014	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9015	# have runtime linking enabled, and use it for executables.
9016	# For shared libraries, we enable/disable runtime linking
9017	# depending on the kind of the shared library created -
9018	# when "with_aix_soname,aix_use_runtimelinking" is:
9019	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9020	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9021	#            lib.a           static archive
9022	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9023	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9024	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9025	#            lib.a(lib.so.V) shared, rtl:no
9026	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9027	#            lib.a           static archive
9028	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9029	  for ld_flag in $LDFLAGS; do
9030	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9031	    aix_use_runtimelinking=yes
9032	    break
9033	  fi
9034	  done
9035	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9036	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9037	    # so we don't have lib.a shared libs to link our executables.
9038	    # We have to force runtime linking in this case.
9039	    aix_use_runtimelinking=yes
9040	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9041	  fi
9042	  ;;
9043	esac
9044
9045	exp_sym_flag='-bexport'
9046	no_entry_flag='-bnoentry'
9047      fi
9048
9049      # When large executables or shared objects are built, AIX ld can
9050      # have problems creating the table of contents.  If linking a library
9051      # or program results in "error TOC overflow" add -mminimal-toc to
9052      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9053      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9054
9055      archive_cmds=''
9056      hardcode_direct=yes
9057      hardcode_direct_absolute=yes
9058      hardcode_libdir_separator=':'
9059      link_all_deplibs=yes
9060      file_list_spec='$wl-f,'
9061      case $with_aix_soname,$aix_use_runtimelinking in
9062      aix,*) ;; # traditional, no import file
9063      svr4,* | *,yes) # use import file
9064	# The Import File defines what to hardcode.
9065	hardcode_direct=no
9066	hardcode_direct_absolute=no
9067	;;
9068      esac
9069
9070      if test yes = "$GCC"; then
9071	case $host_os in aix4.[012]|aix4.[012].*)
9072	# We only want to do this on AIX 4.2 and lower, the check
9073	# below for broken collect2 doesn't work under 4.3+
9074	  collect2name=`$CC -print-prog-name=collect2`
9075	  if test -f "$collect2name" &&
9076	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9077	  then
9078	  # We have reworked collect2
9079	  :
9080	  else
9081	  # We have old collect2
9082	  hardcode_direct=unsupported
9083	  # It fails to find uninstalled libraries when the uninstalled
9084	  # path is not listed in the libpath.  Setting hardcode_minus_L
9085	  # to unsupported forces relinking
9086	  hardcode_minus_L=yes
9087	  hardcode_libdir_flag_spec='-L$libdir'
9088	  hardcode_libdir_separator=
9089	  fi
9090	  ;;
9091	esac
9092	shared_flag='-shared'
9093	if test yes = "$aix_use_runtimelinking"; then
9094	  shared_flag="$shared_flag "'$wl-G'
9095	fi
9096	# Need to ensure runtime linking is disabled for the traditional
9097	# shared library, or the linker may eventually find shared libraries
9098	# /with/ Import File - we do not want to mix them.
9099	shared_flag_aix='-shared'
9100	shared_flag_svr4='-shared $wl-G'
9101      else
9102	# not using gcc
9103	if test ia64 = "$host_cpu"; then
9104	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9105	# chokes on -Wl,-G. The following line is correct:
9106	  shared_flag='-G'
9107	else
9108	  if test yes = "$aix_use_runtimelinking"; then
9109	    shared_flag='$wl-G'
9110	  else
9111	    shared_flag='$wl-bM:SRE'
9112	  fi
9113	  shared_flag_aix='$wl-bM:SRE'
9114	  shared_flag_svr4='$wl-G'
9115	fi
9116      fi
9117
9118      export_dynamic_flag_spec='$wl-bexpall'
9119      # It seems that -bexpall does not export symbols beginning with
9120      # underscore (_), so it is better to generate a list of symbols to export.
9121      always_export_symbols=yes
9122      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9123	# Warning - without using the other runtime loading flags (-brtl),
9124	# -berok will link without error, but may produce a broken library.
9125	allow_undefined_flag='-berok'
9126        # Determine the default libpath from the value encoded in an
9127        # empty executable.
9128        if test set = "${lt_cv_aix_libpath+set}"; then
9129  aix_libpath=$lt_cv_aix_libpath
9130else
9131  if ${lt_cv_aix_libpath_+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135/* end confdefs.h.  */
9136
9137int
9138main ()
9139{
9140
9141  ;
9142  return 0;
9143}
9144_ACEOF
9145if ac_fn_c_try_link "$LINENO"; then :
9146
9147  lt_aix_libpath_sed='
9148      /Import File Strings/,/^$/ {
9149	  /^0/ {
9150	      s/^0  *\([^ ]*\) *$/\1/
9151	      p
9152	  }
9153      }'
9154  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155  # Check for a 64-bit object if we didn't find anything.
9156  if test -z "$lt_cv_aix_libpath_"; then
9157    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9158  fi
9159fi
9160rm -f core conftest.err conftest.$ac_objext \
9161    conftest$ac_exeext conftest.$ac_ext
9162  if test -z "$lt_cv_aix_libpath_"; then
9163    lt_cv_aix_libpath_=/usr/lib:/lib
9164  fi
9165
9166fi
9167
9168  aix_libpath=$lt_cv_aix_libpath_
9169fi
9170
9171        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9172        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9173      else
9174	if test ia64 = "$host_cpu"; then
9175	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9176	  allow_undefined_flag="-z nodefs"
9177	  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"
9178	else
9179	 # Determine the default libpath from the value encoded in an
9180	 # empty executable.
9181	 if test set = "${lt_cv_aix_libpath+set}"; then
9182  aix_libpath=$lt_cv_aix_libpath
9183else
9184  if ${lt_cv_aix_libpath_+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"; then :
9199
9200  lt_aix_libpath_sed='
9201      /Import File Strings/,/^$/ {
9202	  /^0/ {
9203	      s/^0  *\([^ ]*\) *$/\1/
9204	      p
9205	  }
9206      }'
9207  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208  # Check for a 64-bit object if we didn't find anything.
9209  if test -z "$lt_cv_aix_libpath_"; then
9210    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211  fi
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214    conftest$ac_exeext conftest.$ac_ext
9215  if test -z "$lt_cv_aix_libpath_"; then
9216    lt_cv_aix_libpath_=/usr/lib:/lib
9217  fi
9218
9219fi
9220
9221  aix_libpath=$lt_cv_aix_libpath_
9222fi
9223
9224	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir