configure revision 11a29bac
141b2f0bdSmrg#! /bin/sh
241b2f0bdSmrg# Guess values for system-dependent variables and create Makefiles.
311a29bacSmrg# Generated by GNU Autoconf 2.68 for libXxf86misc 1.0.3.
441b2f0bdSmrg#
541b2f0bdSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
641b2f0bdSmrg#
711a29bacSmrg#
811245024Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
911a29bacSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1011a29bacSmrg# Foundation, Inc.
1111a29bacSmrg#
1211a29bacSmrg#
1341b2f0bdSmrg# This configure script is free software; the Free Software Foundation
1441b2f0bdSmrg# gives unlimited permission to copy, distribute and modify it.
1511a29bacSmrg## -------------------- ##
1611a29bacSmrg## M4sh Initialization. ##
1711a29bacSmrg## -------------------- ##
1841b2f0bdSmrg
1911245024Smrg# Be more Bourne compatible
2011245024SmrgDUALCASE=1; export DUALCASE # for MKS sh
2111a29bacSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2241b2f0bdSmrg  emulate sh
2341b2f0bdSmrg  NULLCMD=:
2411245024Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2541b2f0bdSmrg  # is contrary to our usage.  Disable this feature.
2641b2f0bdSmrg  alias -g '${1+"$@"}'='"$@"'
2711245024Smrg  setopt NO_GLOB_SUBST
2811245024Smrgelse
2911a29bacSmrg  case `(set -o) 2>/dev/null` in #(
3011a29bacSmrg  *posix*) :
3111a29bacSmrg    set -o posix ;; #(
3211a29bacSmrg  *) :
3311a29bacSmrg     ;;
3411245024Smrgesac
3511245024Smrgfi
3611245024Smrg
3711245024Smrg
3811245024Smrgas_nl='
3911245024Smrg'
4011245024Smrgexport as_nl
4111245024Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4211245024Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4311245024Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4411245024Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4511a29bacSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4611a29bacSmrg# but without wasting forks for bash or zsh.
4711a29bacSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4811a29bacSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4911a29bacSmrg  as_echo='print -r --'
5011a29bacSmrg  as_echo_n='print -rn --'
5111a29bacSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5211245024Smrg  as_echo='printf %s\n'
5311245024Smrg  as_echo_n='printf %s'
5411245024Smrgelse
5511245024Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5611245024Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5711245024Smrg    as_echo_n='/usr/ucb/echo -n'
5811245024Smrg  else
5911245024Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6011245024Smrg    as_echo_n_body='eval
6111245024Smrg      arg=$1;
6211a29bacSmrg      case $arg in #(
6311245024Smrg      *"$as_nl"*)
6411245024Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6511245024Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6611245024Smrg      esac;
6711245024Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6811245024Smrg    '
6911245024Smrg    export as_echo_n_body
7011245024Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7111245024Smrg  fi
7211245024Smrg  export as_echo_body
7311245024Smrg  as_echo='sh -c $as_echo_body as_echo'
7411245024Smrgfi
7511245024Smrg
7611245024Smrg# The user is always right.
7711245024Smrgif test "${PATH_SEPARATOR+set}" != set; then
7811245024Smrg  PATH_SEPARATOR=:
7911245024Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8011245024Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8111245024Smrg      PATH_SEPARATOR=';'
8211245024Smrg  }
8341b2f0bdSmrgfi
8441b2f0bdSmrg
8541b2f0bdSmrg
8611245024Smrg# IFS
8711245024Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8811245024Smrg# there to prevent editors from complaining about space-tab.
8911245024Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9011245024Smrg# splitting by setting IFS to empty value.)
9111245024SmrgIFS=" ""	$as_nl"
9211245024Smrg
9311245024Smrg# Find who we are.  Look in the path if we contain no directory separator.
9411a29bacSmrgas_myself=
9511a29bacSmrgcase $0 in #((
9611245024Smrg  *[\\/]* ) as_myself=$0 ;;
9711245024Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811245024Smrgfor as_dir in $PATH
9911245024Smrgdo
10011245024Smrg  IFS=$as_save_IFS
10111245024Smrg  test -z "$as_dir" && as_dir=.
10211a29bacSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10311a29bacSmrg  done
10411245024SmrgIFS=$as_save_IFS
10511245024Smrg
10611245024Smrg     ;;
10711245024Smrgesac
10811245024Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10911245024Smrg# in which case we are not to be found in the path.
11011245024Smrgif test "x$as_myself" = x; then
11111245024Smrg  as_myself=$0
11211245024Smrgfi
11311245024Smrgif test ! -f "$as_myself"; then
11411245024Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11511a29bacSmrg  exit 1
11611245024Smrgfi
11711245024Smrg
11811a29bacSmrg# Unset variables that we do not need and which cause bugs (e.g. in
11911a29bacSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12011a29bacSmrg# suppresses any "Segmentation fault" message there.  '((' could
12111a29bacSmrg# trigger a bug in pdksh 5.2.14.
12211a29bacSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12311a29bacSmrgdo eval test x\${$as_var+set} = xset \
12411a29bacSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12511245024Smrgdone
12641b2f0bdSmrgPS1='$ '
12741b2f0bdSmrgPS2='> '
12841b2f0bdSmrgPS4='+ '
12941b2f0bdSmrg
13041b2f0bdSmrg# NLS nuisances.
13111245024SmrgLC_ALL=C
13211245024Smrgexport LC_ALL
13311245024SmrgLANGUAGE=C
13411245024Smrgexport LANGUAGE
13541b2f0bdSmrg
13611a29bacSmrg# CDPATH.
13711a29bacSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13811a29bacSmrg
13911a29bacSmrgif test "x$CONFIG_SHELL" = x; then
14011a29bacSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14111a29bacSmrg  emulate sh
14211a29bacSmrg  NULLCMD=:
14311a29bacSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14411a29bacSmrg  # is contrary to our usage.  Disable this feature.
14511a29bacSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14611a29bacSmrg  setopt NO_GLOB_SUBST
14711a29bacSmrgelse
14811a29bacSmrg  case \`(set -o) 2>/dev/null\` in #(
14911a29bacSmrg  *posix*) :
15011a29bacSmrg    set -o posix ;; #(
15111a29bacSmrg  *) :
15211a29bacSmrg     ;;
15311a29bacSmrgesac
15411a29bacSmrgfi
15511a29bacSmrg"
15611a29bacSmrg  as_required="as_fn_return () { (exit \$1); }
15711a29bacSmrgas_fn_success () { as_fn_return 0; }
15811a29bacSmrgas_fn_failure () { as_fn_return 1; }
15911a29bacSmrgas_fn_ret_success () { return 0; }
16011a29bacSmrgas_fn_ret_failure () { return 1; }
16111a29bacSmrg
16211a29bacSmrgexitcode=0
16311a29bacSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16411a29bacSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16511a29bacSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16611a29bacSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16711a29bacSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16811a29bacSmrg
16911a29bacSmrgelse
17011a29bacSmrg  exitcode=1; echo positional parameters were not saved.
17111a29bacSmrgfi
17211a29bacSmrgtest x\$exitcode = x0 || exit 1"
17311a29bacSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17411a29bacSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17511a29bacSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17611a29bacSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17711a29bacSmrgtest \$(( 1 + 1 )) = 2 || exit 1
17811a29bacSmrg
17911a29bacSmrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
18011a29bacSmrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18111a29bacSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18211a29bacSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18311a29bacSmrg    PATH=/empty FPATH=/empty; export PATH FPATH
18411a29bacSmrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
18511a29bacSmrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
18611a29bacSmrg  if (eval "$as_required") 2>/dev/null; then :
18711a29bacSmrg  as_have_required=yes
18811a29bacSmrgelse
18911a29bacSmrg  as_have_required=no
19011a29bacSmrgfi
19111a29bacSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
19211a29bacSmrg
19311a29bacSmrgelse
19411a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511a29bacSmrgas_found=false
19611a29bacSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19711a29bacSmrgdo
19811a29bacSmrg  IFS=$as_save_IFS
19911a29bacSmrg  test -z "$as_dir" && as_dir=.
20011a29bacSmrg  as_found=:
20111a29bacSmrg  case $as_dir in #(
20211a29bacSmrg	 /*)
20311a29bacSmrg	   for as_base in sh bash ksh sh5; do
20411a29bacSmrg	     # Try only shells that exist, to save several forks.
20511a29bacSmrg	     as_shell=$as_dir/$as_base
20611a29bacSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
20711a29bacSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20811a29bacSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
20911a29bacSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
21011a29bacSmrg  break 2
21111a29bacSmrgfi
21211a29bacSmrgfi
21311a29bacSmrg	   done;;
21411a29bacSmrg       esac
21511a29bacSmrg  as_found=false
21611a29bacSmrgdone
21711a29bacSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21811a29bacSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21911a29bacSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
22011a29bacSmrgfi; }
22111a29bacSmrgIFS=$as_save_IFS
22211a29bacSmrg
22311a29bacSmrg
22411a29bacSmrg      if test "x$CONFIG_SHELL" != x; then :
22511a29bacSmrg  # We cannot yet assume a decent shell, so we have to provide a
22611a29bacSmrg	# neutralization value for shells without unset; and this also
22711a29bacSmrg	# works around shells that cannot unset nonexistent variables.
22811a29bacSmrg	# Preserve -v and -x to the replacement shell.
22911a29bacSmrg	BASH_ENV=/dev/null
23011a29bacSmrg	ENV=/dev/null
23111a29bacSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
23211a29bacSmrg	export CONFIG_SHELL
23311a29bacSmrg	case $- in # ((((
23411a29bacSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
23511a29bacSmrg	  *v* ) as_opts=-v ;;
23611a29bacSmrg	  *x* ) as_opts=-x ;;
23711a29bacSmrg	  * ) as_opts= ;;
23811a29bacSmrg	esac
23911a29bacSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
24011a29bacSmrgfi
24111a29bacSmrg
24211a29bacSmrg    if test x$as_have_required = xno; then :
24311a29bacSmrg  $as_echo "$0: This script requires a shell more modern than all"
24411a29bacSmrg  $as_echo "$0: the shells that I found on your system."
24511a29bacSmrg  if test x${ZSH_VERSION+set} = xset ; then
24611a29bacSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
24711a29bacSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24811a29bacSmrg  else
24911a29bacSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
25011a29bacSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
25111a29bacSmrg$0: about your system, including any error possibly output
25211a29bacSmrg$0: before this message. Then install a modern shell, or
25311a29bacSmrg$0: manually run the script under such a shell if you do
25411a29bacSmrg$0: have one."
25511a29bacSmrg  fi
25611a29bacSmrg  exit 1
25711a29bacSmrgfi
25811a29bacSmrgfi
25911a29bacSmrgfi
26011a29bacSmrgSHELL=${CONFIG_SHELL-/bin/sh}
26111a29bacSmrgexport SHELL
26211a29bacSmrg# Unset more variables known to interfere with behavior of common tools.
26311a29bacSmrgCLICOLOR_FORCE= GREP_OPTIONS=
26411a29bacSmrgunset CLICOLOR_FORCE GREP_OPTIONS
26511a29bacSmrg
26611a29bacSmrg## --------------------- ##
26711a29bacSmrg## M4sh Shell Functions. ##
26811a29bacSmrg## --------------------- ##
26911a29bacSmrg# as_fn_unset VAR
27011a29bacSmrg# ---------------
27111a29bacSmrg# Portably unset VAR.
27211a29bacSmrgas_fn_unset ()
27311a29bacSmrg{
27411a29bacSmrg  { eval $1=; unset $1;}
27511a29bacSmrg}
27611a29bacSmrgas_unset=as_fn_unset
27711a29bacSmrg
27811a29bacSmrg# as_fn_set_status STATUS
27911a29bacSmrg# -----------------------
28011a29bacSmrg# Set $? to STATUS, without forking.
28111a29bacSmrgas_fn_set_status ()
28211a29bacSmrg{
28311a29bacSmrg  return $1
28411a29bacSmrg} # as_fn_set_status
28511a29bacSmrg
28611a29bacSmrg# as_fn_exit STATUS
28711a29bacSmrg# -----------------
28811a29bacSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28911a29bacSmrgas_fn_exit ()
29011a29bacSmrg{
29111a29bacSmrg  set +e
29211a29bacSmrg  as_fn_set_status $1
29311a29bacSmrg  exit $1
29411a29bacSmrg} # as_fn_exit
29511a29bacSmrg
29611a29bacSmrg# as_fn_mkdir_p
29711a29bacSmrg# -------------
29811a29bacSmrg# Create "$as_dir" as a directory, including parents if necessary.
29911a29bacSmrgas_fn_mkdir_p ()
30011a29bacSmrg{
30111a29bacSmrg
30211a29bacSmrg  case $as_dir in #(
30311a29bacSmrg  -*) as_dir=./$as_dir;;
30411a29bacSmrg  esac
30511a29bacSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
30611a29bacSmrg    as_dirs=
30711a29bacSmrg    while :; do
30811a29bacSmrg      case $as_dir in #(
30911a29bacSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31011a29bacSmrg      *) as_qdir=$as_dir;;
31111a29bacSmrg      esac
31211a29bacSmrg      as_dirs="'$as_qdir' $as_dirs"
31311a29bacSmrg      as_dir=`$as_dirname -- "$as_dir" ||
31411a29bacSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31511a29bacSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
31611a29bacSmrg	 X"$as_dir" : 'X\(//\)$' \| \
31711a29bacSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31811a29bacSmrg$as_echo X"$as_dir" |
31911a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32011a29bacSmrg	    s//\1/
32111a29bacSmrg	    q
32211a29bacSmrg	  }
32311a29bacSmrg	  /^X\(\/\/\)[^/].*/{
32411a29bacSmrg	    s//\1/
32511a29bacSmrg	    q
32611a29bacSmrg	  }
32711a29bacSmrg	  /^X\(\/\/\)$/{
32811a29bacSmrg	    s//\1/
32911a29bacSmrg	    q
33011a29bacSmrg	  }
33111a29bacSmrg	  /^X\(\/\).*/{
33211a29bacSmrg	    s//\1/
33311a29bacSmrg	    q
33411a29bacSmrg	  }
33511a29bacSmrg	  s/.*/./; q'`
33611a29bacSmrg      test -d "$as_dir" && break
33711a29bacSmrg    done
33811a29bacSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33911a29bacSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34011a29bacSmrg
34111a29bacSmrg
34211a29bacSmrg} # as_fn_mkdir_p
34311a29bacSmrg# as_fn_append VAR VALUE
34411a29bacSmrg# ----------------------
34511a29bacSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
34611a29bacSmrg# advantage of any shell optimizations that allow amortized linear growth over
34711a29bacSmrg# repeated appends, instead of the typical quadratic growth present in naive
34811a29bacSmrg# implementations.
34911a29bacSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35011a29bacSmrg  eval 'as_fn_append ()
35111a29bacSmrg  {
35211a29bacSmrg    eval $1+=\$2
35311a29bacSmrg  }'
35411a29bacSmrgelse
35511a29bacSmrg  as_fn_append ()
35611a29bacSmrg  {
35711a29bacSmrg    eval $1=\$$1\$2
35811a29bacSmrg  }
35911a29bacSmrgfi # as_fn_append
36011a29bacSmrg
36111a29bacSmrg# as_fn_arith ARG...
36211a29bacSmrg# ------------------
36311a29bacSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
36411a29bacSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
36511a29bacSmrg# must be portable across $(()) and expr.
36611a29bacSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36711a29bacSmrg  eval 'as_fn_arith ()
36811a29bacSmrg  {
36911a29bacSmrg    as_val=$(( $* ))
37011a29bacSmrg  }'
37111a29bacSmrgelse
37211a29bacSmrg  as_fn_arith ()
37311a29bacSmrg  {
37411a29bacSmrg    as_val=`expr "$@" || test $? -eq 1`
37511a29bacSmrg  }
37611a29bacSmrgfi # as_fn_arith
37711a29bacSmrg
37811a29bacSmrg
37911a29bacSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
38011a29bacSmrg# ----------------------------------------
38111a29bacSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38211a29bacSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38311a29bacSmrg# script with STATUS, using 1 if that was 0.
38411a29bacSmrgas_fn_error ()
38511a29bacSmrg{
38611a29bacSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
38711a29bacSmrg  if test "$4"; then
38811a29bacSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38911a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39011a29bacSmrg  fi
39111a29bacSmrg  $as_echo "$as_me: error: $2" >&2
39211a29bacSmrg  as_fn_exit $as_status
39311a29bacSmrg} # as_fn_error
39411a29bacSmrg
39511245024Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
39611245024Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39741b2f0bdSmrg  as_expr=expr
39841b2f0bdSmrgelse
39941b2f0bdSmrg  as_expr=false
40041b2f0bdSmrgfi
40141b2f0bdSmrg
40211245024Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40341b2f0bdSmrg  as_basename=basename
40441b2f0bdSmrgelse
40541b2f0bdSmrg  as_basename=false
40641b2f0bdSmrgfi
40741b2f0bdSmrg
40811a29bacSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40911a29bacSmrg  as_dirname=dirname
41011a29bacSmrgelse
41111a29bacSmrg  as_dirname=false
41211a29bacSmrgfi
41341b2f0bdSmrg
41411245024Smrgas_me=`$as_basename -- "$0" ||
41541b2f0bdSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41641b2f0bdSmrg	 X"$0" : 'X\(//\)$' \| \
41711245024Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41811245024Smrg$as_echo X/"$0" |
41911245024Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
42011245024Smrg	    s//\1/
42111245024Smrg	    q
42211245024Smrg	  }
42311245024Smrg	  /^X\/\(\/\/\)$/{
42411245024Smrg	    s//\1/
42511245024Smrg	    q
42611245024Smrg	  }
42711245024Smrg	  /^X\/\(\/\).*/{
42811245024Smrg	    s//\1/
42911245024Smrg	    q
43011245024Smrg	  }
43111245024Smrg	  s/.*/./; q'`
43241b2f0bdSmrg
43311a29bacSmrg# Avoid depending upon Character Ranges.
43411a29bacSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
43511a29bacSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43611a29bacSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
43711a29bacSmrgas_cr_digits='0123456789'
43811a29bacSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43941b2f0bdSmrg
44041b2f0bdSmrg
44111a29bacSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
44211a29bacSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
44311a29bacSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
44411a29bacSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
44511a29bacSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
44611a29bacSmrg  sed -n '
44711a29bacSmrg    p
44811a29bacSmrg    /[$]LINENO/=
44911a29bacSmrg  ' <$as_myself |
45011a29bacSmrg    sed '
45111a29bacSmrg      s/[$]LINENO.*/&-/
45211a29bacSmrg      t lineno
45311a29bacSmrg      b
45411a29bacSmrg      :lineno
45511a29bacSmrg      N
45611a29bacSmrg      :loop
45711a29bacSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45811a29bacSmrg      t loop
45911a29bacSmrg      s/-\n.*//
46011a29bacSmrg    ' >$as_me.lineno &&
46111a29bacSmrg  chmod +x "$as_me.lineno" ||
46211a29bacSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
46341b2f0bdSmrg
46411a29bacSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
46511a29bacSmrg  # (the dirname of $[0] is not the place where we might find the
46611a29bacSmrg  # original and so on.  Autoconf is especially sensitive to this).
46711a29bacSmrg  . "./$as_me.lineno"
46811a29bacSmrg  # Exit status is that of the last command.
46911a29bacSmrg  exit
47011245024Smrg}
47141b2f0bdSmrg
47211a29bacSmrgECHO_C= ECHO_N= ECHO_T=
47311a29bacSmrgcase `echo -n x` in #(((((
47411a29bacSmrg-n*)
47511a29bacSmrg  case `echo 'xy\c'` in
47611a29bacSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
47711a29bacSmrg  xy)  ECHO_C='\c';;
47811a29bacSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47911a29bacSmrg       ECHO_T='	';;
48011a29bacSmrg  esac;;
48111a29bacSmrg*)
48211a29bacSmrg  ECHO_N='-n';;
48311a29bacSmrgesac
48441b2f0bdSmrg
48511a29bacSmrgrm -f conf$$ conf$$.exe conf$$.file
48611a29bacSmrgif test -d conf$$.dir; then
48711a29bacSmrg  rm -f conf$$.dir/conf$$.file
48811a29bacSmrgelse
48911a29bacSmrg  rm -f conf$$.dir
49011a29bacSmrg  mkdir conf$$.dir 2>/dev/null
49111245024Smrgfi
49211a29bacSmrgif (echo >conf$$.file) 2>/dev/null; then
49311a29bacSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
49411a29bacSmrg    as_ln_s='ln -s'
49511a29bacSmrg    # ... but there are two gotchas:
49611a29bacSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49711a29bacSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49811a29bacSmrg    # In both cases, we have to default to `cp -p'.
49911a29bacSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50011a29bacSmrg      as_ln_s='cp -p'
50111a29bacSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
50211a29bacSmrg    as_ln_s=ln
50311a29bacSmrg  else
50411a29bacSmrg    as_ln_s='cp -p'
50511a29bacSmrg  fi
50611245024Smrgelse
50711a29bacSmrg  as_ln_s='cp -p'
50811245024Smrgfi
50911a29bacSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51011a29bacSmrgrmdir conf$$.dir 2>/dev/null
51111245024Smrg
51211a29bacSmrgif mkdir -p . 2>/dev/null; then
51311a29bacSmrg  as_mkdir_p='mkdir -p "$as_dir"'
51411a29bacSmrgelse
51511a29bacSmrg  test -d ./-p && rmdir ./-p
51611a29bacSmrg  as_mkdir_p=false
51711245024Smrgfi
51811245024Smrg
51911a29bacSmrgif test -x / >/dev/null 2>&1; then
52011a29bacSmrg  as_test_x='test -x'
52111245024Smrgelse
52211a29bacSmrg  if ls -dL / >/dev/null 2>&1; then
52311a29bacSmrg    as_ls_L_option=L
52411a29bacSmrg  else
52511a29bacSmrg    as_ls_L_option=
52611a29bacSmrg  fi
52711a29bacSmrg  as_test_x='
52811a29bacSmrg    eval sh -c '\''
52911a29bacSmrg      if test -d "$1"; then
53011a29bacSmrg	test -d "$1/.";
53111a29bacSmrg      else
53211a29bacSmrg	case $1 in #(
53311a29bacSmrg	-*)set "./$1";;
53411a29bacSmrg	esac;
53511a29bacSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53611a29bacSmrg	???[sx]*):;;*)false;;esac;fi
53711a29bacSmrg    '\'' sh
53811a29bacSmrg  '
53911245024Smrgfi
54011a29bacSmrgas_executable_p=$as_test_x
54111245024Smrg
54211a29bacSmrg# Sed expression to map a string onto a valid CPP name.
54311a29bacSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54411245024Smrg
54511a29bacSmrg# Sed expression to map a string onto a valid variable name.
54611a29bacSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54711245024Smrg
54811a29bacSmrgSHELL=${CONFIG_SHELL-/bin/sh}
54911245024Smrg
55011245024Smrg
55111a29bacSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
55211a29bacSmrgexec 6>&1
55311245024Smrg
55411a29bacSmrg# Name of the host.
55511a29bacSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
55611a29bacSmrg# so uname gets run too.
55711a29bacSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
55811245024Smrg
55911a29bacSmrg#
56011a29bacSmrg# Initializations.
56111a29bacSmrg#
56211a29bacSmrgac_default_prefix=/usr/local
56311a29bacSmrgac_clean_files=
56411a29bacSmrgac_config_libobj_dir=.
56511a29bacSmrgLIBOBJS=
56611a29bacSmrgcross_compiling=no
56711a29bacSmrgsubdirs=
56811a29bacSmrgMFLAGS=
56911a29bacSmrgMAKEFLAGS=
57011245024Smrg
57111a29bacSmrg# Identity of this package.
57211a29bacSmrgPACKAGE_NAME='libXxf86misc'
57311a29bacSmrgPACKAGE_TARNAME='libXxf86misc'
57411a29bacSmrgPACKAGE_VERSION='1.0.3'
57511a29bacSmrgPACKAGE_STRING='libXxf86misc 1.0.3'
57611a29bacSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
57711a29bacSmrgPACKAGE_URL=''
57811245024Smrg
57911a29bacSmrgac_unique_file="Makefile.am"
58011a29bacSmrg# Factoring default headers for most tests.
58111a29bacSmrgac_includes_default="\
58211a29bacSmrg#include <stdio.h>
58311a29bacSmrg#ifdef HAVE_SYS_TYPES_H
58411a29bacSmrg# include <sys/types.h>
58511a29bacSmrg#endif
58611a29bacSmrg#ifdef HAVE_SYS_STAT_H
58711a29bacSmrg# include <sys/stat.h>
58811a29bacSmrg#endif
58911a29bacSmrg#ifdef STDC_HEADERS
59011a29bacSmrg# include <stdlib.h>
59111a29bacSmrg# include <stddef.h>
59211a29bacSmrg#else
59311a29bacSmrg# ifdef HAVE_STDLIB_H
59411a29bacSmrg#  include <stdlib.h>
59511a29bacSmrg# endif
59611a29bacSmrg#endif
59711a29bacSmrg#ifdef HAVE_STRING_H
59811a29bacSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
59911a29bacSmrg#  include <memory.h>
60011a29bacSmrg# endif
60111a29bacSmrg# include <string.h>
60211a29bacSmrg#endif
60311a29bacSmrg#ifdef HAVE_STRINGS_H
60411a29bacSmrg# include <strings.h>
60511a29bacSmrg#endif
60611a29bacSmrg#ifdef HAVE_INTTYPES_H
60711a29bacSmrg# include <inttypes.h>
60811a29bacSmrg#endif
60911a29bacSmrg#ifdef HAVE_STDINT_H
61011a29bacSmrg# include <stdint.h>
61111a29bacSmrg#endif
61211a29bacSmrg#ifdef HAVE_UNISTD_H
61311a29bacSmrg# include <unistd.h>
61411a29bacSmrg#endif"
61511245024Smrg
61611a29bacSmrgac_subst_vars='am__EXEEXT_FALSE
61711a29bacSmrgam__EXEEXT_TRUE
61811a29bacSmrgLTLIBOBJS
61911a29bacSmrgLIBOBJS
62011a29bacSmrgXTMALLOC_ZERO_CFLAGS
62111a29bacSmrgXMALLOC_ZERO_CFLAGS
62211a29bacSmrgMALLOC_ZERO_CFLAGS
62311a29bacSmrgXXF86MISC_LIBS
62411a29bacSmrgXXF86MISC_CFLAGS
62511a29bacSmrgOTOOL64
62611a29bacSmrgOTOOL
62711a29bacSmrgLIPO
62811a29bacSmrgNMEDIT
62911a29bacSmrgDSYMUTIL
63011a29bacSmrgRANLIB
63111a29bacSmrgAR
63211a29bacSmrgOBJDUMP
63311a29bacSmrgLN_S
63411a29bacSmrgNM
63511a29bacSmrgac_ct_DUMPBIN
63611a29bacSmrgDUMPBIN
63711a29bacSmrgLD
63811a29bacSmrgFGREP
63911a29bacSmrgLIBTOOL
64011a29bacSmrgAM_BACKSLASH
64111a29bacSmrgAM_DEFAULT_VERBOSITY
64211a29bacSmrgMAN_SUBSTS
64311a29bacSmrgXORG_MAN_PAGE
64411a29bacSmrgADMIN_MAN_DIR
64511a29bacSmrgDRIVER_MAN_DIR
64611a29bacSmrgMISC_MAN_DIR
64711a29bacSmrgFILE_MAN_DIR
64811a29bacSmrgLIB_MAN_DIR
64911a29bacSmrgAPP_MAN_DIR
65011a29bacSmrgADMIN_MAN_SUFFIX
65111a29bacSmrgDRIVER_MAN_SUFFIX
65211a29bacSmrgMISC_MAN_SUFFIX
65311a29bacSmrgFILE_MAN_SUFFIX
65411a29bacSmrgLIB_MAN_SUFFIX
65511a29bacSmrgAPP_MAN_SUFFIX
65611a29bacSmrgSED
65711a29bacSmrghost_os
65811a29bacSmrghost_vendor
65911a29bacSmrghost_cpu
66011a29bacSmrghost
66111a29bacSmrgbuild_os
66211a29bacSmrgbuild_vendor
66311a29bacSmrgbuild_cpu
66411a29bacSmrgbuild
66511a29bacSmrgINSTALL_CMD
66611a29bacSmrgPKG_CONFIG
66711a29bacSmrgCHANGELOG_CMD
66811a29bacSmrgCWARNFLAGS
66911a29bacSmrgEGREP
67011a29bacSmrgGREP
67111a29bacSmrgCPP
67211a29bacSmrgam__fastdepCC_FALSE
67311a29bacSmrgam__fastdepCC_TRUE
67411a29bacSmrgCCDEPMODE
67511a29bacSmrgAMDEPBACKSLASH
67611a29bacSmrgAMDEP_FALSE
67711a29bacSmrgAMDEP_TRUE
67811a29bacSmrgam__quote
67911a29bacSmrgam__include
68011a29bacSmrgDEPDIR
68111a29bacSmrgOBJEXT
68211a29bacSmrgEXEEXT
68311a29bacSmrgac_ct_CC
68411a29bacSmrgCPPFLAGS
68511a29bacSmrgLDFLAGS
68611a29bacSmrgCFLAGS
68711a29bacSmrgCC
68811a29bacSmrgMAINT
68911a29bacSmrgMAINTAINER_MODE_FALSE
69011a29bacSmrgMAINTAINER_MODE_TRUE
69111a29bacSmrgam__untar
69211a29bacSmrgam__tar
69311a29bacSmrgAMTAR
69411a29bacSmrgam__leading_dot
69511a29bacSmrgSET_MAKE
69611a29bacSmrgAWK
69711a29bacSmrgmkdir_p
69811a29bacSmrgMKDIR_P
69911a29bacSmrgINSTALL_STRIP_PROGRAM
70011a29bacSmrgSTRIP
70111a29bacSmrginstall_sh
70211a29bacSmrgMAKEINFO
70311a29bacSmrgAUTOHEADER
70411a29bacSmrgAUTOMAKE
70511a29bacSmrgAUTOCONF
70611a29bacSmrgACLOCAL
70711a29bacSmrgVERSION
70811a29bacSmrgPACKAGE
70911a29bacSmrgCYGPATH_W
71011a29bacSmrgam__isrc
71111a29bacSmrgINSTALL_DATA
71211a29bacSmrgINSTALL_SCRIPT
71311a29bacSmrgINSTALL_PROGRAM
71411a29bacSmrgtarget_alias
71511a29bacSmrghost_alias
71611a29bacSmrgbuild_alias
71711a29bacSmrgLIBS
71811a29bacSmrgECHO_T
71911a29bacSmrgECHO_N
72011a29bacSmrgECHO_C
72111a29bacSmrgDEFS
72211a29bacSmrgmandir
72311a29bacSmrglocaledir
72411a29bacSmrglibdir
72511a29bacSmrgpsdir
72611a29bacSmrgpdfdir
72711a29bacSmrgdvidir
72811a29bacSmrghtmldir
72911a29bacSmrginfodir
73011a29bacSmrgdocdir
73111a29bacSmrgoldincludedir
73211a29bacSmrgincludedir
73311a29bacSmrglocalstatedir
73411a29bacSmrgsharedstatedir
73511a29bacSmrgsysconfdir
73611a29bacSmrgdatadir
73711a29bacSmrgdatarootdir
73811a29bacSmrglibexecdir
73911a29bacSmrgsbindir
74011a29bacSmrgbindir
74111a29bacSmrgprogram_transform_name
74211a29bacSmrgprefix
74311a29bacSmrgexec_prefix
74411a29bacSmrgPACKAGE_URL
74511a29bacSmrgPACKAGE_BUGREPORT
74611a29bacSmrgPACKAGE_STRING
74711a29bacSmrgPACKAGE_VERSION
74811a29bacSmrgPACKAGE_TARNAME
74911a29bacSmrgPACKAGE_NAME
75011a29bacSmrgPATH_SEPARATOR
75111a29bacSmrgSHELL'
75211a29bacSmrgac_subst_files=''
75311a29bacSmrgac_user_opts='
75411a29bacSmrgenable_option_checking
75511a29bacSmrgenable_maintainer_mode
75611a29bacSmrgenable_dependency_tracking
75711a29bacSmrgenable_strict_compilation
75811a29bacSmrgenable_silent_rules
75911a29bacSmrgenable_shared
76011a29bacSmrgenable_static
76111a29bacSmrgwith_pic
76211a29bacSmrgenable_fast_install
76311a29bacSmrgwith_gnu_ld
76411a29bacSmrgenable_libtool_lock
76511a29bacSmrgenable_malloc0returnsnull
76611a29bacSmrg'
76711a29bacSmrg      ac_precious_vars='build_alias
76811a29bacSmrghost_alias
76911a29bacSmrgtarget_alias
77011a29bacSmrgCC
77111a29bacSmrgCFLAGS
77211a29bacSmrgLDFLAGS
77311a29bacSmrgLIBS
77411a29bacSmrgCPPFLAGS
77511a29bacSmrgCPP
77611a29bacSmrgPKG_CONFIG
77711a29bacSmrgXXF86MISC_CFLAGS
77811a29bacSmrgXXF86MISC_LIBS'
77911245024Smrg
78011245024Smrg
78111a29bacSmrg# Initialize some variables set by options.
78211a29bacSmrgac_init_help=
78311a29bacSmrgac_init_version=false
78411a29bacSmrgac_unrecognized_opts=
78511a29bacSmrgac_unrecognized_sep=
78611a29bacSmrg# The variables have the same names as the options, with
78711a29bacSmrg# dashes changed to underlines.
78811a29bacSmrgcache_file=/dev/null
78911a29bacSmrgexec_prefix=NONE
79011a29bacSmrgno_create=
79111a29bacSmrgno_recursion=
79211a29bacSmrgprefix=NONE
79311a29bacSmrgprogram_prefix=NONE
79411a29bacSmrgprogram_suffix=NONE
79511a29bacSmrgprogram_transform_name=s,x,x,
79611a29bacSmrgsilent=
79711a29bacSmrgsite=
79811a29bacSmrgsrcdir=
79911a29bacSmrgverbose=
80011a29bacSmrgx_includes=NONE
80111a29bacSmrgx_libraries=NONE
80241b2f0bdSmrg
80311a29bacSmrg# Installation directory options.
80411a29bacSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
80511a29bacSmrg# and all the variables that are supposed to be based on exec_prefix
80611a29bacSmrg# by default will actually change.
80711a29bacSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
80811a29bacSmrg# (The list follows the same order as the GNU Coding Standards.)
80911a29bacSmrgbindir='${exec_prefix}/bin'
81011a29bacSmrgsbindir='${exec_prefix}/sbin'
81111a29bacSmrglibexecdir='${exec_prefix}/libexec'
81211a29bacSmrgdatarootdir='${prefix}/share'
81311a29bacSmrgdatadir='${datarootdir}'
81411a29bacSmrgsysconfdir='${prefix}/etc'
81511a29bacSmrgsharedstatedir='${prefix}/com'
81611a29bacSmrglocalstatedir='${prefix}/var'
81711a29bacSmrgincludedir='${prefix}/include'
81811a29bacSmrgoldincludedir='/usr/include'
81911a29bacSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
82011a29bacSmrginfodir='${datarootdir}/info'
82111a29bacSmrghtmldir='${docdir}'
82211a29bacSmrgdvidir='${docdir}'
82311a29bacSmrgpdfdir='${docdir}'
82411a29bacSmrgpsdir='${docdir}'
82511a29bacSmrglibdir='${exec_prefix}/lib'
82611a29bacSmrglocaledir='${datarootdir}/locale'
82711a29bacSmrgmandir='${datarootdir}/man'
82841b2f0bdSmrg
82911a29bacSmrgac_prev=
83011a29bacSmrgac_dashdash=
83111a29bacSmrgfor ac_option
83211a29bacSmrgdo
83311a29bacSmrg  # If the previous option needs an argument, assign it.
83411a29bacSmrg  if test -n "$ac_prev"; then
83511a29bacSmrg    eval $ac_prev=\$ac_option
83611a29bacSmrg    ac_prev=
83711a29bacSmrg    continue
83811a29bacSmrg  fi
83941b2f0bdSmrg
84011a29bacSmrg  case $ac_option in
84111a29bacSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
84211a29bacSmrg  *=)   ac_optarg= ;;
84311a29bacSmrg  *)    ac_optarg=yes ;;
84411a29bacSmrg  esac
84541b2f0bdSmrg
84611a29bacSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
84741b2f0bdSmrg
84811a29bacSmrg  case $ac_dashdash$ac_option in
84911a29bacSmrg  --)
85011a29bacSmrg    ac_dashdash=yes ;;
85141b2f0bdSmrg
85211a29bacSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85311a29bacSmrg    ac_prev=bindir ;;
85411a29bacSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85511a29bacSmrg    bindir=$ac_optarg ;;
85641b2f0bdSmrg
85711a29bacSmrg  -build | --build | --buil | --bui | --bu)
85811a29bacSmrg    ac_prev=build_alias ;;
85911a29bacSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86011a29bacSmrg    build_alias=$ac_optarg ;;
86141b2f0bdSmrg
86211a29bacSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
86311a29bacSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
86411a29bacSmrg    ac_prev=cache_file ;;
86511a29bacSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
86611a29bacSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
86711a29bacSmrg    cache_file=$ac_optarg ;;
86841b2f0bdSmrg
86911a29bacSmrg  --config-cache | -C)
87011a29bacSmrg    cache_file=config.cache ;;
87141b2f0bdSmrg
87211a29bacSmrg  -datadir | --datadir | --datadi | --datad)
87311a29bacSmrg    ac_prev=datadir ;;
87411a29bacSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
87511a29bacSmrg    datadir=$ac_optarg ;;
87641b2f0bdSmrg
87711a29bacSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
87811a29bacSmrg  | --dataroo | --dataro | --datar)
87911a29bacSmrg    ac_prev=datarootdir ;;
88011a29bacSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
88111a29bacSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
88211a29bacSmrg    datarootdir=$ac_optarg ;;
88341b2f0bdSmrg
88411a29bacSmrg  -disable-* | --disable-*)
88511a29bacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88611a29bacSmrg    # Reject names that are not valid shell variable names.
88711a29bacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88811a29bacSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
88911a29bacSmrg    ac_useropt_orig=$ac_useropt
89011a29bacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
89111a29bacSmrg    case $ac_user_opts in
89211a29bacSmrg      *"
89311a29bacSmrg"enable_$ac_useropt"
89411a29bacSmrg"*) ;;
89511a29bacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
89611a29bacSmrg	 ac_unrecognized_sep=', ';;
89711a29bacSmrg    esac
89811a29bacSmrg    eval enable_$ac_useropt=no ;;
89941b2f0bdSmrg
90011a29bacSmrg  -docdir | --docdir | --docdi | --doc | --do)
90111a29bacSmrg    ac_prev=docdir ;;
90211a29bacSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
90311a29bacSmrg    docdir=$ac_optarg ;;
90441b2f0bdSmrg
90511a29bacSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
90611a29bacSmrg    ac_prev=dvidir ;;
90711a29bacSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
90811a29bacSmrg    dvidir=$ac_optarg ;;
90941b2f0bdSmrg
91011a29bacSmrg  -enable-* | --enable-*)
91111a29bacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
91211a29bacSmrg    # Reject names that are not valid shell variable names.
91311a29bacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91411a29bacSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
91511a29bacSmrg    ac_useropt_orig=$ac_useropt
91611a29bacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
91711a29bacSmrg    case $ac_user_opts in
91811a29bacSmrg      *"
91911a29bacSmrg"enable_$ac_useropt"
92011a29bacSmrg"*) ;;
92111a29bacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
92211a29bacSmrg	 ac_unrecognized_sep=', ';;
92311a29bacSmrg    esac
92411a29bacSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
92541b2f0bdSmrg
92611a29bacSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
92711a29bacSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
92811a29bacSmrg  | --exec | --exe | --ex)
92911a29bacSmrg    ac_prev=exec_prefix ;;
93011a29bacSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
93111a29bacSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
93211a29bacSmrg  | --exec=* | --exe=* | --ex=*)
93311a29bacSmrg    exec_prefix=$ac_optarg ;;
93441b2f0bdSmrg
93511a29bacSmrg  -gas | --gas | --ga | --g)
93611a29bacSmrg    # Obsolete; use --with-gas.
93711a29bacSmrg    with_gas=yes ;;
93841b2f0bdSmrg
93911a29bacSmrg  -help | --help | --hel | --he | -h)
94011a29bacSmrg    ac_init_help=long ;;
94111a29bacSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
94211a29bacSmrg    ac_init_help=recursive ;;
94311a29bacSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
94411a29bacSmrg    ac_init_help=short ;;
94541b2f0bdSmrg
94611a29bacSmrg  -host | --host | --hos | --ho)
94711a29bacSmrg    ac_prev=host_alias ;;
94811a29bacSmrg  -host=* | --host=* | --hos=* | --ho=*)
94911a29bacSmrg    host_alias=$ac_optarg ;;
95041b2f0bdSmrg
95111a29bacSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
95211a29bacSmrg    ac_prev=htmldir ;;
95311a29bacSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
95411a29bacSmrg  | --ht=*)
95511a29bacSmrg    htmldir=$ac_optarg ;;
95641b2f0bdSmrg
95711a29bacSmrg  -includedir | --includedir | --includedi | --included | --include \
95811a29bacSmrg  | --includ | --inclu | --incl | --inc)
95911a29bacSmrg    ac_prev=includedir ;;
96011a29bacSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
96111a29bacSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
96211a29bacSmrg    includedir=$ac_optarg ;;
96341b2f0bdSmrg
96411a29bacSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
96511a29bacSmrg    ac_prev=infodir ;;
96611a29bacSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
96711a29bacSmrg    infodir=$ac_optarg ;;
96841b2f0bdSmrg
96911a29bacSmrg  -libdir | --libdir | --libdi | --libd)
97011a29bacSmrg    ac_prev=libdir ;;
97111a29bacSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
97211a29bacSmrg    libdir=$ac_optarg ;;
97341b2f0bdSmrg
97411a29bacSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
97511a29bacSmrg  | --libexe | --libex | --libe)
97611a29bacSmrg    ac_prev=libexecdir ;;
97711a29bacSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
97811a29bacSmrg  | --libexe=* | --libex=* | --libe=*)
97911a29bacSmrg    libexecdir=$ac_optarg ;;
98041b2f0bdSmrg
98111a29bacSmrg  -localedir | --localedir | --localedi | --localed | --locale)
98211a29bacSmrg    ac_prev=localedir ;;
98311a29bacSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
98411a29bacSmrg    localedir=$ac_optarg ;;
98541b2f0bdSmrg
98611a29bacSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
98711a29bacSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
98811a29bacSmrg    ac_prev=localstatedir ;;
98911a29bacSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
99011a29bacSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
99111a29bacSmrg    localstatedir=$ac_optarg ;;
99241b2f0bdSmrg
99311a29bacSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
99411a29bacSmrg    ac_prev=mandir ;;
99511a29bacSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99611a29bacSmrg    mandir=$ac_optarg ;;
99741b2f0bdSmrg
99811a29bacSmrg  -nfp | --nfp | --nf)
99911a29bacSmrg    # Obsolete; use --without-fp.
100011a29bacSmrg    with_fp=no ;;
100141b2f0bdSmrg
100211a29bacSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
100311a29bacSmrg  | --no-cr | --no-c | -n)
100411a29bacSmrg    no_create=yes ;;
100511245024Smrg
100611a29bacSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
100711a29bacSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
100811a29bacSmrg    no_recursion=yes ;;
100911a29bacSmrg
101011a29bacSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
101111a29bacSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
101211a29bacSmrg  | --oldin | --oldi | --old | --ol | --o)
101311a29bacSmrg    ac_prev=oldincludedir ;;
101411a29bacSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
101511a29bacSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
101611a29bacSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
101711a29bacSmrg    oldincludedir=$ac_optarg ;;
101841b2f0bdSmrg
101911a29bacSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
102011a29bacSmrg    ac_prev=prefix ;;
102111a29bacSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
102211a29bacSmrg    prefix=$ac_optarg ;;
102341b2f0bdSmrg
102411a29bacSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
102511a29bacSmrg  | --program-pre | --program-pr | --program-p)
102611a29bacSmrg    ac_prev=program_prefix ;;
102711a29bacSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
102811a29bacSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
102911a29bacSmrg    program_prefix=$ac_optarg ;;
103041b2f0bdSmrg
103111a29bacSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
103211a29bacSmrg  | --program-suf | --program-su | --program-s)
103311a29bacSmrg    ac_prev=program_suffix ;;
103411a29bacSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
103511a29bacSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
103611a29bacSmrg    program_suffix=$ac_optarg ;;
103741b2f0bdSmrg
103811a29bacSmrg  -program-transform-name | --program-transform-name \
103911a29bacSmrg  | --program-transform-nam | --program-transform-na \
104011a29bacSmrg  | --program-transform-n | --program-transform- \
104111a29bacSmrg  | --program-transform | --program-transfor \
104211a29bacSmrg  | --program-transfo | --program-transf \
104311a29bacSmrg  | --program-trans | --program-tran \
104411a29bacSmrg  | --progr-tra | --program-tr | --program-t)
104511a29bacSmrg    ac_prev=program_transform_name ;;
104611a29bacSmrg  -program-transform-name=* | --program-transform-name=* \
104711a29bacSmrg  | --program-transform-nam=* | --program-transform-na=* \
104811a29bacSmrg  | --program-transform-n=* | --program-transform-=* \
104911a29bacSmrg  | --program-transform=* | --program-transfor=* \
105011a29bacSmrg  | --program-transfo=* | --program-transf=* \
105111a29bacSmrg  | --program-trans=* | --program-tran=* \
105211a29bacSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
105311a29bacSmrg    program_transform_name=$ac_optarg ;;
105441b2f0bdSmrg
105511a29bacSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
105611a29bacSmrg    ac_prev=pdfdir ;;
105711a29bacSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
105811a29bacSmrg    pdfdir=$ac_optarg ;;
105941b2f0bdSmrg
106011a29bacSmrg  -psdir | --psdir | --psdi | --psd | --ps)
106111a29bacSmrg    ac_prev=psdir ;;
106211a29bacSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
106311a29bacSmrg    psdir=$ac_optarg ;;
106441b2f0bdSmrg
106511a29bacSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
106611a29bacSmrg  | -silent | --silent | --silen | --sile | --sil)
106711a29bacSmrg    silent=yes ;;
106841b2f0bdSmrg
106911a29bacSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
107011a29bacSmrg    ac_prev=sbindir ;;
107111a29bacSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
107211a29bacSmrg  | --sbi=* | --sb=*)
107311a29bacSmrg    sbindir=$ac_optarg ;;
107441b2f0bdSmrg
107511a29bacSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
107611a29bacSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
107711a29bacSmrg  | --sharedst | --shareds | --shared | --share | --shar \
107811a29bacSmrg  | --sha | --sh)
107911a29bacSmrg    ac_prev=sharedstatedir ;;
108011a29bacSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
108111a29bacSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
108211a29bacSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
108311a29bacSmrg  | --sha=* | --sh=*)
108411a29bacSmrg    sharedstatedir=$ac_optarg ;;
108541b2f0bdSmrg
108611a29bacSmrg  -site | --site | --sit)
108711a29bacSmrg    ac_prev=site ;;
108811a29bacSmrg  -site=* | --site=* | --sit=*)
108911a29bacSmrg    site=$ac_optarg ;;
109041b2f0bdSmrg
109111a29bacSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
109211a29bacSmrg    ac_prev=srcdir ;;
109311a29bacSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
109411a29bacSmrg    srcdir=$ac_optarg ;;
109541b2f0bdSmrg
109611a29bacSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
109711a29bacSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
109811a29bacSmrg    ac_prev=sysconfdir ;;
109911a29bacSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
110011a29bacSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
110111a29bacSmrg    sysconfdir=$ac_optarg ;;
110211245024Smrg
110311a29bacSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
110411a29bacSmrg    ac_prev=target_alias ;;
110511a29bacSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
110611a29bacSmrg    target_alias=$ac_optarg ;;
110741b2f0bdSmrg
110811a29bacSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
110911a29bacSmrg    verbose=yes ;;
111011a29bacSmrg
111111a29bacSmrg  -version | --version | --versio | --versi | --vers | -V)
111211a29bacSmrg    ac_init_version=: ;;
111311a29bacSmrg
111411a29bacSmrg  -with-* | --with-*)
111511a29bacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
111611a29bacSmrg    # Reject names that are not valid shell variable names.
111711a29bacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
111811a29bacSmrg      as_fn_error $? "invalid package name: $ac_useropt"
111911a29bacSmrg    ac_useropt_orig=$ac_useropt
112011a29bacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112111a29bacSmrg    case $ac_user_opts in
112211a29bacSmrg      *"
112311a29bacSmrg"with_$ac_useropt"
112411a29bacSmrg"*) ;;
112511a29bacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
112611a29bacSmrg	 ac_unrecognized_sep=', ';;
112711a29bacSmrg    esac
112811a29bacSmrg    eval with_$ac_useropt=\$ac_optarg ;;
112911a29bacSmrg
113011a29bacSmrg  -without-* | --without-*)
113111a29bacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
113211a29bacSmrg    # Reject names that are not valid shell variable names.
113311a29bacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
113411a29bacSmrg      as_fn_error $? "invalid package name: $ac_useropt"
113511a29bacSmrg    ac_useropt_orig=$ac_useropt
113611a29bacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
113711a29bacSmrg    case $ac_user_opts in
113811a29bacSmrg      *"
113911a29bacSmrg"with_$ac_useropt"
114011a29bacSmrg"*) ;;
114111a29bacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
114211a29bacSmrg	 ac_unrecognized_sep=', ';;
114311a29bacSmrg    esac
114411a29bacSmrg    eval with_$ac_useropt=no ;;
114511a29bacSmrg
114611a29bacSmrg  --x)
114711a29bacSmrg    # Obsolete; use --with-x.
114811a29bacSmrg    with_x=yes ;;
114911a29bacSmrg
115011a29bacSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
115111a29bacSmrg  | --x-incl | --x-inc | --x-in | --x-i)
115211a29bacSmrg    ac_prev=x_includes ;;
115311a29bacSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
115411a29bacSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
115511a29bacSmrg    x_includes=$ac_optarg ;;
115641b2f0bdSmrg
115711a29bacSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
115811a29bacSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
115911a29bacSmrg    ac_prev=x_libraries ;;
116011a29bacSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
116111a29bacSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
116211a29bacSmrg    x_libraries=$ac_optarg ;;
116341b2f0bdSmrg
116411a29bacSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
116511a29bacSmrgTry \`$0 --help' for more information"
116641b2f0bdSmrg    ;;
116741b2f0bdSmrg
116811a29bacSmrg  *=*)
116911a29bacSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
117011a29bacSmrg    # Reject names that are not valid shell variable names.
117111a29bacSmrg    case $ac_envvar in #(
117211a29bacSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
117311a29bacSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
117411a29bacSmrg    esac
117511a29bacSmrg    eval $ac_envvar=\$ac_optarg
117611a29bacSmrg    export $ac_envvar ;;
117741b2f0bdSmrg
117811a29bacSmrg  *)
117911a29bacSmrg    # FIXME: should be removed in autoconf 3.0.
118011a29bacSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
118111a29bacSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
118211a29bacSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
118311a29bacSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
118441b2f0bdSmrg    ;;
118511a29bacSmrg
118641b2f0bdSmrg  esac
118711a29bacSmrgdone
118841b2f0bdSmrg
118911a29bacSmrgif test -n "$ac_prev"; then
119011a29bacSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
119111a29bacSmrg  as_fn_error $? "missing argument to $ac_option"
119211a29bacSmrgfi
119341b2f0bdSmrg
119411a29bacSmrgif test -n "$ac_unrecognized_opts"; then
119511a29bacSmrg  case $enable_option_checking in
119611a29bacSmrg    no) ;;
119711a29bacSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
119811a29bacSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
119941b2f0bdSmrg  esac
120011a29bacSmrgfi
120111a29bacSmrg
120211a29bacSmrg# Check all directory arguments for consistency.
120311a29bacSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
120411a29bacSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
120511a29bacSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
120611a29bacSmrg		libdir localedir mandir
120711a29bacSmrgdo
120811a29bacSmrg  eval ac_val=\$$ac_var
120911a29bacSmrg  # Remove trailing slashes.
121011a29bacSmrg  case $ac_val in
121111a29bacSmrg    */ )
121211a29bacSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
121311a29bacSmrg      eval $ac_var=\$ac_val;;
121441b2f0bdSmrg  esac
121511a29bacSmrg  # Be sure to have absolute directory names.
121611a29bacSmrg  case $ac_val in
121711a29bacSmrg    [\\/$]* | ?:[\\/]* )  continue;;
121811a29bacSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
121911a29bacSmrg  esac
122011a29bacSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
122111a29bacSmrgdone
122211a29bacSmrg
122311a29bacSmrg# There might be people who depend on the old broken behavior: `$host'
122411a29bacSmrg# used to hold the argument of --host etc.
122511a29bacSmrg# FIXME: To remove some day.
122611a29bacSmrgbuild=$build_alias
122711a29bacSmrghost=$host_alias
122811a29bacSmrgtarget=$target_alias
122911a29bacSmrg
123011a29bacSmrg# FIXME: To remove some day.
123111a29bacSmrgif test "x$host_alias" != x; then
123211a29bacSmrg  if test "x$build_alias" = x; then
123311a29bacSmrg    cross_compiling=maybe
123411a29bacSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
123511a29bacSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
123611a29bacSmrg  elif test "x$build_alias" != "x$host_alias"; then
123711a29bacSmrg    cross_compiling=yes
123811a29bacSmrg  fi
123911a29bacSmrgfi
124011a29bacSmrg
124111a29bacSmrgac_tool_prefix=
124211a29bacSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
124311a29bacSmrg
124411a29bacSmrgtest "$silent" = yes && exec 6>/dev/null
124511a29bacSmrg
124611a29bacSmrg
124711a29bacSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
124811a29bacSmrgac_ls_di=`ls -di .` &&
124911a29bacSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
125011a29bacSmrg  as_fn_error $? "working directory cannot be determined"
125111a29bacSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
125211a29bacSmrg  as_fn_error $? "pwd does not report name of working directory"
125311a29bacSmrg
125411a29bacSmrg
125511a29bacSmrg# Find the source files, if location was not specified.
125611a29bacSmrgif test -z "$srcdir"; then
125711a29bacSmrg  ac_srcdir_defaulted=yes
125811a29bacSmrg  # Try the directory containing this script, then the parent directory.
125911a29bacSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
126011a29bacSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126111a29bacSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
126211a29bacSmrg	 X"$as_myself" : 'X\(//\)$' \| \
126311a29bacSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
126411a29bacSmrg$as_echo X"$as_myself" |
126511a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126611a29bacSmrg	    s//\1/
126711a29bacSmrg	    q
126811a29bacSmrg	  }
126911a29bacSmrg	  /^X\(\/\/\)[^/].*/{
127011a29bacSmrg	    s//\1/
127111a29bacSmrg	    q
127211a29bacSmrg	  }
127311a29bacSmrg	  /^X\(\/\/\)$/{
127411a29bacSmrg	    s//\1/
127511a29bacSmrg	    q
127611a29bacSmrg	  }
127711a29bacSmrg	  /^X\(\/\).*/{
127811a29bacSmrg	    s//\1/
127911a29bacSmrg	    q
128011a29bacSmrg	  }
128111a29bacSmrg	  s/.*/./; q'`
128211a29bacSmrg  srcdir=$ac_confdir
128311a29bacSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
128411a29bacSmrg    srcdir=..
128511a29bacSmrg  fi
128611a29bacSmrgelse
128711a29bacSmrg  ac_srcdir_defaulted=no
128811a29bacSmrgfi
128911a29bacSmrgif test ! -r "$srcdir/$ac_unique_file"; then
129011a29bacSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
129111a29bacSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
129211a29bacSmrgfi
129311a29bacSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
129411a29bacSmrgac_abs_confdir=`(
129511a29bacSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
129611a29bacSmrg	pwd)`
129711a29bacSmrg# When building in place, set srcdir=.
129811a29bacSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
129911a29bacSmrg  srcdir=.
130011a29bacSmrgfi
130111a29bacSmrg# Remove unnecessary trailing slashes from srcdir.
130211a29bacSmrg# Double slashes in file names in object file debugging info
130311a29bacSmrg# mess up M-x gdb in Emacs.
130411a29bacSmrgcase $srcdir in
130511a29bacSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
130611a29bacSmrgesac
130711a29bacSmrgfor ac_var in $ac_precious_vars; do
130811a29bacSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
130911a29bacSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
131011a29bacSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
131111a29bacSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
131211a29bacSmrgdone
131341b2f0bdSmrg
131411a29bacSmrg#
131511a29bacSmrg# Report the --help message.
131611a29bacSmrg#
131711a29bacSmrgif test "$ac_init_help" = "long"; then
131811a29bacSmrg  # Omit some internal or obsolete options to make the list less imposing.
131911a29bacSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
132011a29bacSmrg  cat <<_ACEOF
132111a29bacSmrg\`configure' configures libXxf86misc 1.0.3 to adapt to many kinds of systems.
132241b2f0bdSmrg
132311a29bacSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
132441b2f0bdSmrg
132511a29bacSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
132611a29bacSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
132741b2f0bdSmrg
132811a29bacSmrgDefaults for the options are specified in brackets.
132941b2f0bdSmrg
133011a29bacSmrgConfiguration:
133111a29bacSmrg  -h, --help              display this help and exit
133211a29bacSmrg      --help=short        display options specific to this package
133311a29bacSmrg      --help=recursive    display the short help of all the included packages
133411a29bacSmrg  -V, --version           display version information and exit
133511a29bacSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
133611a29bacSmrg      --cache-file=FILE   cache test results in FILE [disabled]
133711a29bacSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
133811a29bacSmrg  -n, --no-create         do not create output files
133911a29bacSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
134041b2f0bdSmrg
134111a29bacSmrgInstallation directories:
134211a29bacSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
134311a29bacSmrg                          [$ac_default_prefix]
134411a29bacSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
134511a29bacSmrg                          [PREFIX]
134641b2f0bdSmrg
134711a29bacSmrgBy default, \`make install' will install all the files in
134811a29bacSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
134911a29bacSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
135011a29bacSmrgfor instance \`--prefix=\$HOME'.
135141b2f0bdSmrg
135211a29bacSmrgFor better control, use the options below.
135341b2f0bdSmrg
135411a29bacSmrgFine tuning of the installation directories:
135511a29bacSmrg  --bindir=DIR            user executables [EPREFIX/bin]
135611a29bacSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
135711a29bacSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
135811a29bacSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
135911a29bacSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
136011a29bacSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
136111a29bacSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
136211a29bacSmrg  --includedir=DIR        C header files [PREFIX/include]
136311a29bacSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
136411a29bacSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
136511a29bacSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
136611a29bacSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
136711a29bacSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
136811a29bacSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
136911a29bacSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXxf86misc]
137011a29bacSmrg  --htmldir=DIR           html documentation [DOCDIR]
137111a29bacSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
137211a29bacSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
137311a29bacSmrg  --psdir=DIR             ps documentation [DOCDIR]
137411a29bacSmrg_ACEOF
137541b2f0bdSmrg
137611a29bacSmrg  cat <<\_ACEOF
137741b2f0bdSmrg
137811a29bacSmrgProgram names:
137911a29bacSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
138011a29bacSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
138111a29bacSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
138211245024Smrg
138311a29bacSmrgSystem types:
138411a29bacSmrg  --build=BUILD     configure for building on BUILD [guessed]
138511a29bacSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
138611a29bacSmrg_ACEOF
138711a29bacSmrgfi
138841b2f0bdSmrg
138911a29bacSmrgif test -n "$ac_init_help"; then
139011a29bacSmrg  case $ac_init_help in
139111a29bacSmrg     short | recursive ) echo "Configuration of libXxf86misc 1.0.3:";;
139211a29bacSmrg   esac
139311a29bacSmrg  cat <<\_ACEOF
139441b2f0bdSmrg
139511a29bacSmrgOptional Features:
139611a29bacSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
139711a29bacSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
139811a29bacSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
139911a29bacSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
140011a29bacSmrg			  (and sometimes confusing) to the casual installer
140111a29bacSmrg  --disable-dependency-tracking  speeds up one-time build
140211a29bacSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
140311a29bacSmrg  --enable-strict-compilation
140411a29bacSmrg                          Enable all warnings from compiler and make them
140511a29bacSmrg                          errors (default: disabled)
140611a29bacSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
140711a29bacSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
140811a29bacSmrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
140911a29bacSmrg  --enable-static[=PKGS]  build static libraries [default=yes]
141011a29bacSmrg  --enable-fast-install[=PKGS]
141111a29bacSmrg                          optimize for fast installation [default=yes]
141211a29bacSmrg  --disable-libtool-lock  avoid locking (might break parallel builds)
141311a29bacSmrg  --enable-malloc0returnsnull
141411a29bacSmrg                          malloc(0) returns NULL (default: auto)
141511a29bacSmrg
141611a29bacSmrgOptional Packages:
141711a29bacSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
141811a29bacSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
141911a29bacSmrg  --with-pic              try to use only PIC/non-PIC objects [default=use
142011a29bacSmrg                          both]
142111a29bacSmrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
142211a29bacSmrg
142311a29bacSmrgSome influential environment variables:
142411a29bacSmrg  CC          C compiler command
142511a29bacSmrg  CFLAGS      C compiler flags
142611a29bacSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
142711a29bacSmrg              nonstandard directory <lib dir>
142811a29bacSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
142911a29bacSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
143011a29bacSmrg              you have headers in a nonstandard directory <include dir>
143111a29bacSmrg  CPP         C preprocessor
143211a29bacSmrg  PKG_CONFIG  path to pkg-config utility
143311a29bacSmrg  XXF86MISC_CFLAGS
143411a29bacSmrg              C compiler flags for XXF86MISC, overriding pkg-config
143511a29bacSmrg  XXF86MISC_LIBS
143611a29bacSmrg              linker flags for XXF86MISC, overriding pkg-config
143741b2f0bdSmrg
143811a29bacSmrgUse these variables to override the choices made by `configure' or to help
143911a29bacSmrgit to find libraries and programs with nonstandard names/locations.
144041b2f0bdSmrg
144111a29bacSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
144211a29bacSmrg_ACEOF
144311a29bacSmrgac_status=$?
144411a29bacSmrgfi
144541b2f0bdSmrg
144611a29bacSmrgif test "$ac_init_help" = "recursive"; then
144711a29bacSmrg  # If there are subdirs, report their specific --help.
144811a29bacSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
144911a29bacSmrg    test -d "$ac_dir" ||
145011a29bacSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
145111a29bacSmrg      continue
145211a29bacSmrg    ac_builddir=.
145341b2f0bdSmrg
145411a29bacSmrgcase "$ac_dir" in
145511a29bacSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
145641b2f0bdSmrg*)
145711a29bacSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
145811a29bacSmrg  # A ".." for each directory in $ac_dir_suffix.
145911a29bacSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
146011a29bacSmrg  case $ac_top_builddir_sub in
146111a29bacSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
146211a29bacSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
146311a29bacSmrg  esac ;;
146441b2f0bdSmrgesac
146511a29bacSmrgac_abs_top_builddir=$ac_pwd
146611a29bacSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
146711a29bacSmrg# for backward compatibility:
146811a29bacSmrgac_top_builddir=$ac_top_build_prefix
146941b2f0bdSmrg
147011a29bacSmrgcase $srcdir in
147111a29bacSmrg  .)  # We are building in place.
147211a29bacSmrg    ac_srcdir=.
147311a29bacSmrg    ac_top_srcdir=$ac_top_builddir_sub
147411a29bacSmrg    ac_abs_top_srcdir=$ac_pwd ;;
147511a29bacSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
147611a29bacSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
147711a29bacSmrg    ac_top_srcdir=$srcdir
147811a29bacSmrg    ac_abs_top_srcdir=$srcdir ;;
147911a29bacSmrg  *) # Relative name.
148011a29bacSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
148111a29bacSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
148211a29bacSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
148311a29bacSmrgesac
148411a29bacSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
148511245024Smrg
148611a29bacSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
148711a29bacSmrg    # Check for guested configure.
148811a29bacSmrg    if test -f "$ac_srcdir/configure.gnu"; then
148911a29bacSmrg      echo &&
149011a29bacSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
149111a29bacSmrg    elif test -f "$ac_srcdir/configure"; then
149211a29bacSmrg      echo &&
149311a29bacSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
149411a29bacSmrg    else
149511a29bacSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
149611a29bacSmrg    fi || ac_status=$?
149711a29bacSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
149811a29bacSmrg  done
149911245024Smrgfi
150011245024Smrg
150111a29bacSmrgtest -n "$ac_init_help" && exit $ac_status
150211a29bacSmrgif $ac_init_version; then
150311a29bacSmrg  cat <<\_ACEOF
150411a29bacSmrglibXxf86misc configure 1.0.3
150511a29bacSmrggenerated by GNU Autoconf 2.68
150611245024Smrg
150711a29bacSmrgCopyright (C) 2010 Free Software Foundation, Inc.
150811a29bacSmrgThis configure script is free software; the Free Software Foundation
150911a29bacSmrggives unlimited permission to copy, distribute and modify it.
151011a29bacSmrg_ACEOF
151111a29bacSmrg  exit
151241b2f0bdSmrgfi
151341b2f0bdSmrg
151411a29bacSmrg## ------------------------ ##
151511a29bacSmrg## Autoconf initialization. ##
151611a29bacSmrg## ------------------------ ##
151741b2f0bdSmrg
151811a29bacSmrg# ac_fn_c_try_compile LINENO
151911a29bacSmrg# --------------------------
152011a29bacSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
152111a29bacSmrgac_fn_c_try_compile ()
152211a29bacSmrg{
152311a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
152411a29bacSmrg  rm -f conftest.$ac_objext
152511a29bacSmrg  if { { ac_try="$ac_compile"
152611a29bacSmrgcase "(($ac_try" in
152711a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
152811a29bacSmrg  *) ac_try_echo=$ac_try;;
152911a29bacSmrgesac
153011a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
153111a29bacSmrg$as_echo "$ac_try_echo"; } >&5
153211a29bacSmrg  (eval "$ac_compile") 2>conftest.err
153311a29bacSmrg  ac_status=$?
153411a29bacSmrg  if test -s conftest.err; then
153511a29bacSmrg    grep -v '^ *+' conftest.err >conftest.er1
153611a29bacSmrg    cat conftest.er1 >&5
153711a29bacSmrg    mv -f conftest.er1 conftest.err
153841b2f0bdSmrg  fi
153911a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
154011a29bacSmrg  test $ac_status = 0; } && {
154111a29bacSmrg	 test -z "$ac_c_werror_flag" ||
154211a29bacSmrg	 test ! -s conftest.err
154311a29bacSmrg       } && test -s conftest.$ac_objext; then :
154411a29bacSmrg  ac_retval=0
154541b2f0bdSmrgelse
154611a29bacSmrg  $as_echo "$as_me: failed program was:" >&5
154711a29bacSmrgsed 's/^/| /' conftest.$ac_ext >&5
154841b2f0bdSmrg
154911a29bacSmrg	ac_retval=1
155041b2f0bdSmrgfi
155111a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
155211a29bacSmrg  as_fn_set_status $ac_retval
155341b2f0bdSmrg
155411a29bacSmrg} # ac_fn_c_try_compile
155511a29bacSmrg
155611a29bacSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
155711a29bacSmrg# ---------------------------------------------
155811a29bacSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
155911a29bacSmrg# accordingly.
156011a29bacSmrgac_fn_c_check_decl ()
156111a29bacSmrg{
156211a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
156311a29bacSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
156411a29bacSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
156511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
156611a29bacSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
156711a29bacSmrgif eval \${$3+:} false; then :
156811a29bacSmrg  $as_echo_n "(cached) " >&6
156941b2f0bdSmrgelse
157011a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157111a29bacSmrg/* end confdefs.h.  */
157211a29bacSmrg$4
157311a29bacSmrgint
157411a29bacSmrgmain ()
157511a29bacSmrg{
157611a29bacSmrg#ifndef $as_decl_name
157711a29bacSmrg#ifdef __cplusplus
157811a29bacSmrg  (void) $as_decl_use;
157911a29bacSmrg#else
158011a29bacSmrg  (void) $as_decl_name;
158111a29bacSmrg#endif
158211a29bacSmrg#endif
158311a29bacSmrg
158411a29bacSmrg  ;
158511a29bacSmrg  return 0;
158611a29bacSmrg}
158711a29bacSmrg_ACEOF
158811a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
158911a29bacSmrg  eval "$3=yes"
159011a29bacSmrgelse
159111a29bacSmrg  eval "$3=no"
159241b2f0bdSmrgfi
159311a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
159441b2f0bdSmrgfi
159511a29bacSmrgeval ac_res=\$$3
159611a29bacSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
159711a29bacSmrg$as_echo "$ac_res" >&6; }
159811a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
159941b2f0bdSmrg
160011a29bacSmrg} # ac_fn_c_check_decl
160111a29bacSmrg
160211a29bacSmrg# ac_fn_c_try_cpp LINENO
160311a29bacSmrg# ----------------------
160411a29bacSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
160511a29bacSmrgac_fn_c_try_cpp ()
160611a29bacSmrg{
160711a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
160811a29bacSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
160911a29bacSmrgcase "(($ac_try" in
161011a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
161111a29bacSmrg  *) ac_try_echo=$ac_try;;
161211a29bacSmrgesac
161311a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
161411a29bacSmrg$as_echo "$ac_try_echo"; } >&5
161511a29bacSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
161611a29bacSmrg  ac_status=$?
161711a29bacSmrg  if test -s conftest.err; then
161811a29bacSmrg    grep -v '^ *+' conftest.err >conftest.er1
161911a29bacSmrg    cat conftest.er1 >&5
162011a29bacSmrg    mv -f conftest.er1 conftest.err
162111a29bacSmrg  fi
162211a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
162311a29bacSmrg  test $ac_status = 0; } > conftest.i && {
162411a29bacSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
162511a29bacSmrg	 test ! -s conftest.err
162611a29bacSmrg       }; then :
162711a29bacSmrg  ac_retval=0
162841b2f0bdSmrgelse
162911a29bacSmrg  $as_echo "$as_me: failed program was:" >&5
163011a29bacSmrgsed 's/^/| /' conftest.$ac_ext >&5
163141b2f0bdSmrg
163211a29bacSmrg    ac_retval=1
163311a29bacSmrgfi
163411a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
163511a29bacSmrg  as_fn_set_status $ac_retval
163641b2f0bdSmrg
163711a29bacSmrg} # ac_fn_c_try_cpp
163841b2f0bdSmrg
163911a29bacSmrg# ac_fn_c_try_run LINENO
164011a29bacSmrg# ----------------------
164111a29bacSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
164211a29bacSmrg# that executables *can* be run.
164311a29bacSmrgac_fn_c_try_run ()
164411a29bacSmrg{
164511a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
164611a29bacSmrg  if { { ac_try="$ac_link"
164711a29bacSmrgcase "(($ac_try" in
164811a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
164911a29bacSmrg  *) ac_try_echo=$ac_try;;
165011a29bacSmrgesac
165111a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
165211a29bacSmrg$as_echo "$ac_try_echo"; } >&5
165311a29bacSmrg  (eval "$ac_link") 2>&5
165411a29bacSmrg  ac_status=$?
165511a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
165611a29bacSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
165711a29bacSmrg  { { case "(($ac_try" in
165811a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
165911a29bacSmrg  *) ac_try_echo=$ac_try;;
166011a29bacSmrgesac
166111a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
166211a29bacSmrg$as_echo "$ac_try_echo"; } >&5
166311a29bacSmrg  (eval "$ac_try") 2>&5
166411a29bacSmrg  ac_status=$?
166511a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
166611a29bacSmrg  test $ac_status = 0; }; }; then :
166711a29bacSmrg  ac_retval=0
166811a29bacSmrgelse
166911a29bacSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
167011a29bacSmrg       $as_echo "$as_me: failed program was:" >&5
167111a29bacSmrgsed 's/^/| /' conftest.$ac_ext >&5
167241b2f0bdSmrg
167311a29bacSmrg       ac_retval=$ac_status
167411a29bacSmrgfi
167511a29bacSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
167611a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
167711a29bacSmrg  as_fn_set_status $ac_retval
167811a29bacSmrg
167911a29bacSmrg} # ac_fn_c_try_run
168011a29bacSmrg
168111a29bacSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
168211a29bacSmrg# -------------------------------------------------------
168311a29bacSmrg# Tests whether HEADER exists and can be compiled using the include files in
168411a29bacSmrg# INCLUDES, setting the cache variable VAR accordingly.
168511a29bacSmrgac_fn_c_check_header_compile ()
168611a29bacSmrg{
168711a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
168811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
168911a29bacSmrg$as_echo_n "checking for $2... " >&6; }
169011a29bacSmrgif eval \${$3+:} false; then :
169111245024Smrg  $as_echo_n "(cached) " >&6
169241b2f0bdSmrgelse
169311a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
169441b2f0bdSmrg/* end confdefs.h.  */
169511a29bacSmrg$4
169611a29bacSmrg#include <$2>
169741b2f0bdSmrg_ACEOF
169811a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
169911a29bacSmrg  eval "$3=yes"
170011a29bacSmrgelse
170111a29bacSmrg  eval "$3=no"
170211a29bacSmrgfi
170311a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
170411a29bacSmrgfi
170511a29bacSmrgeval ac_res=\$$3
170611a29bacSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
170711a29bacSmrg$as_echo "$ac_res" >&6; }
170811a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
170911a29bacSmrg
171011a29bacSmrg} # ac_fn_c_check_header_compile
171111a29bacSmrg
171211a29bacSmrg# ac_fn_c_try_link LINENO
171311a29bacSmrg# -----------------------
171411a29bacSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
171511a29bacSmrgac_fn_c_try_link ()
171611a29bacSmrg{
171711a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
171811a29bacSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
171911a29bacSmrg  if { { ac_try="$ac_link"
172011245024Smrgcase "(($ac_try" in
172111245024Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
172211245024Smrg  *) ac_try_echo=$ac_try;;
172311245024Smrgesac
172411a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
172511a29bacSmrg$as_echo "$ac_try_echo"; } >&5
172611a29bacSmrg  (eval "$ac_link") 2>conftest.err
172741b2f0bdSmrg  ac_status=$?
172811a29bacSmrg  if test -s conftest.err; then
172911a29bacSmrg    grep -v '^ *+' conftest.err >conftest.er1
173011a29bacSmrg    cat conftest.er1 >&5
173111a29bacSmrg    mv -f conftest.er1 conftest.err
173211a29bacSmrg  fi
173311a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
173411a29bacSmrg  test $ac_status = 0; } && {
173511245024Smrg	 test -z "$ac_c_werror_flag" ||
173611245024Smrg	 test ! -s conftest.err
173711245024Smrg       } && test -s conftest$ac_exeext && {
173811245024Smrg	 test "$cross_compiling" = yes ||
173911245024Smrg	 $as_test_x conftest$ac_exeext
174011a29bacSmrg       }; then :
174111a29bacSmrg  ac_retval=0
174241b2f0bdSmrgelse
174311245024Smrg  $as_echo "$as_me: failed program was:" >&5
174441b2f0bdSmrgsed 's/^/| /' conftest.$ac_ext >&5
174541b2f0bdSmrg
174611a29bacSmrg	ac_retval=1
174741b2f0bdSmrgfi
174811a29bacSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
174911a29bacSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
175011a29bacSmrg  # interfere with the next link command; also delete a directory that is
175111a29bacSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
175211a29bacSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
175311a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
175411a29bacSmrg  as_fn_set_status $ac_retval
175541b2f0bdSmrg
175611a29bacSmrg} # ac_fn_c_try_link
175741b2f0bdSmrg
175811a29bacSmrg# ac_fn_c_check_func LINENO FUNC VAR
175911a29bacSmrg# ----------------------------------
176011a29bacSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
176111a29bacSmrgac_fn_c_check_func ()
176211a29bacSmrg{
176311a29bacSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
176411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
176511a29bacSmrg$as_echo_n "checking for $2... " >&6; }
176611a29bacSmrgif eval \${$3+:} false; then :
176711245024Smrg  $as_echo_n "(cached) " >&6
176841b2f0bdSmrgelse
176911a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
177041b2f0bdSmrg/* end confdefs.h.  */
177111a29bacSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
177241b2f0bdSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
177311a29bacSmrg#define $2 innocuous_$2
177441b2f0bdSmrg
177541b2f0bdSmrg/* System header to define __stub macros and hopefully few prototypes,
177611a29bacSmrg    which can conflict with char $2 (); below.
177741b2f0bdSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
177841b2f0bdSmrg    <limits.h> exists even on freestanding compilers.  */
177941b2f0bdSmrg
178041b2f0bdSmrg#ifdef __STDC__
178141b2f0bdSmrg# include <limits.h>
178241b2f0bdSmrg#else
178341b2f0bdSmrg# include <assert.h>
178441b2f0bdSmrg#endif
178541b2f0bdSmrg
178611a29bacSmrg#undef $2
178741b2f0bdSmrg
178811245024Smrg/* Override any GCC internal prototype to avoid an error.
178911245024Smrg   Use char because int might match the return type of a GCC
179011245024Smrg   builtin and then its argument prototype would still apply.  */
179141b2f0bdSmrg#ifdef __cplusplus
179241b2f0bdSmrgextern "C"
179341b2f0bdSmrg#endif
179411a29bacSmrgchar $2 ();
179541b2f0bdSmrg/* The GNU C library defines this for functions which it implements
179641b2f0bdSmrg    to always fail with ENOSYS.  Some functions are actually named
179741b2f0bdSmrg    something starting with __ and the normal name is an alias.  */
179811a29bacSmrg#if defined __stub_$2 || defined __stub___$2
179941b2f0bdSmrgchoke me
180041b2f0bdSmrg#endif
180141b2f0bdSmrg
180241b2f0bdSmrgint
180341b2f0bdSmrgmain ()
180441b2f0bdSmrg{
180511a29bacSmrgreturn $2 ();
180641b2f0bdSmrg  ;
180741b2f0bdSmrg  return 0;
180841b2f0bdSmrg}
180941b2f0bdSmrg_ACEOF
181011a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
181111a29bacSmrg  eval "$3=yes"
181241b2f0bdSmrgelse
181311a29bacSmrg  eval "$3=no"
181441b2f0bdSmrgfi
181511a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
181611a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
181741b2f0bdSmrgfi
181811a29bacSmrgeval ac_res=\$$3
181911a29bacSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
182011a29bacSmrg$as_echo "$ac_res" >&6; }
182111a29bacSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
182211a29bacSmrg
182311a29bacSmrg} # ac_fn_c_check_func
182411a29bacSmrgcat >config.log <<_ACEOF
182511a29bacSmrgThis file contains any messages produced by compilers while
182611a29bacSmrgrunning configure, to aid debugging if configure makes a mistake.
182711a29bacSmrg
182811a29bacSmrgIt was created by libXxf86misc $as_me 1.0.3, which was
182911a29bacSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
183011a29bacSmrg
183111a29bacSmrg  $ $0 $@
183241b2f0bdSmrg
183341b2f0bdSmrg_ACEOF
183411a29bacSmrgexec 5>>config.log
183511a29bacSmrg{
183611a29bacSmrgcat <<_ASUNAME
183711a29bacSmrg## --------- ##
183811a29bacSmrg## Platform. ##
183911a29bacSmrg## --------- ##
184041b2f0bdSmrg
184111a29bacSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
184211a29bacSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
184311a29bacSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
184411a29bacSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
184511a29bacSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
184611a29bacSmrg
184711a29bacSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
184811a29bacSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
184911a29bacSmrg
185011a29bacSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
185111a29bacSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
185211a29bacSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
185311a29bacSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
185411a29bacSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
185511a29bacSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
185611a29bacSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
185711a29bacSmrg
185811a29bacSmrg_ASUNAME
185911a29bacSmrg
186011a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186111a29bacSmrgfor as_dir in $PATH
186211a29bacSmrgdo
186311a29bacSmrg  IFS=$as_save_IFS
186411a29bacSmrg  test -z "$as_dir" && as_dir=.
186511a29bacSmrg    $as_echo "PATH: $as_dir"
186611a29bacSmrg  done
186711a29bacSmrgIFS=$as_save_IFS
186811a29bacSmrg
186911a29bacSmrg} >&5
187011a29bacSmrg
187111a29bacSmrgcat >&5 <<_ACEOF
187211a29bacSmrg
187311a29bacSmrg
187411a29bacSmrg## ----------- ##
187511a29bacSmrg## Core tests. ##
187611a29bacSmrg## ----------- ##
187711245024Smrg
187841b2f0bdSmrg_ACEOF
187941b2f0bdSmrg
188041b2f0bdSmrg
188111a29bacSmrg# Keep a trace of the command line.
188211a29bacSmrg# Strip out --no-create and --no-recursion so they do not pile up.
188311a29bacSmrg# Strip out --silent because we don't want to record it for future runs.
188411a29bacSmrg# Also quote any args containing shell meta-characters.
188511a29bacSmrg# Make two passes to allow for proper duplicate-argument suppression.
188611a29bacSmrgac_configure_args=
188711a29bacSmrgac_configure_args0=
188811a29bacSmrgac_configure_args1=
188911a29bacSmrgac_must_keep_next=false
189011a29bacSmrgfor ac_pass in 1 2
189111a29bacSmrgdo
189211a29bacSmrg  for ac_arg
189311a29bacSmrg  do
189411a29bacSmrg    case $ac_arg in
189511a29bacSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
189611a29bacSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
189711a29bacSmrg    | -silent | --silent | --silen | --sile | --sil)
189811a29bacSmrg      continue ;;
189911a29bacSmrg    *\'*)
190011a29bacSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
190111a29bacSmrg    esac
190211a29bacSmrg    case $ac_pass in
190311a29bacSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
190411a29bacSmrg    2)
190511a29bacSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
190611a29bacSmrg      if test $ac_must_keep_next = true; then
190711a29bacSmrg	ac_must_keep_next=false # Got value, back to normal.
190811a29bacSmrg      else
190911a29bacSmrg	case $ac_arg in
191011a29bacSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
191111a29bacSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
191211a29bacSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
191311a29bacSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
191411a29bacSmrg	    case "$ac_configure_args0 " in
191511a29bacSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
191611a29bacSmrg	    esac
191711a29bacSmrg	    ;;
191811a29bacSmrg	  -* ) ac_must_keep_next=true ;;
191911a29bacSmrg	esac
192011a29bacSmrg      fi
192111a29bacSmrg      as_fn_append ac_configure_args " '$ac_arg'"
192211a29bacSmrg      ;;
192311a29bacSmrg    esac
192411a29bacSmrg  done
192511a29bacSmrgdone
192611a29bacSmrg{ ac_configure_args0=; unset ac_configure_args0;}
192711a29bacSmrg{ ac_configure_args1=; unset ac_configure_args1;}
192811a29bacSmrg
192911a29bacSmrg# When interrupted or exit'd, cleanup temporary files, and complete
193011a29bacSmrg# config.log.  We remove comments because anyway the quotes in there
193111a29bacSmrg# would cause problems or look ugly.
193211a29bacSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
193311a29bacSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
193411a29bacSmrgtrap 'exit_status=$?
193511a29bacSmrg  # Save into config.log some information that might help in debugging.
193611a29bacSmrg  {
193711a29bacSmrg    echo
193811a29bacSmrg
193911a29bacSmrg    $as_echo "## ---------------- ##
194011a29bacSmrg## Cache variables. ##
194111a29bacSmrg## ---------------- ##"
194211a29bacSmrg    echo
194311a29bacSmrg    # The following way of writing the cache mishandles newlines in values,
194411a29bacSmrg(
194511a29bacSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
194611a29bacSmrg    eval ac_val=\$$ac_var
194711a29bacSmrg    case $ac_val in #(
194811a29bacSmrg    *${as_nl}*)
194911a29bacSmrg      case $ac_var in #(
195011a29bacSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
195111a29bacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
195211a29bacSmrg      esac
195311a29bacSmrg      case $ac_var in #(
195411a29bacSmrg      _ | IFS | as_nl) ;; #(
195511a29bacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
195611a29bacSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
195711a29bacSmrg      esac ;;
195811a29bacSmrg    esac
195911a29bacSmrg  done
196011a29bacSmrg  (set) 2>&1 |
196111a29bacSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
196211a29bacSmrg    *${as_nl}ac_space=\ *)
196311a29bacSmrg      sed -n \
196411a29bacSmrg	"s/'\''/'\''\\\\'\'''\''/g;
196511a29bacSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
196611a29bacSmrg      ;; #(
196711a29bacSmrg    *)
196811a29bacSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
196911a29bacSmrg      ;;
197011a29bacSmrg    esac |
197111a29bacSmrg    sort
197211a29bacSmrg)
197311a29bacSmrg    echo
197411a29bacSmrg
197511a29bacSmrg    $as_echo "## ----------------- ##
197611a29bacSmrg## Output variables. ##
197711a29bacSmrg## ----------------- ##"
197811a29bacSmrg    echo
197911a29bacSmrg    for ac_var in $ac_subst_vars
198011a29bacSmrg    do
198111a29bacSmrg      eval ac_val=\$$ac_var
198211a29bacSmrg      case $ac_val in
198311a29bacSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
198411a29bacSmrg      esac
198511a29bacSmrg      $as_echo "$ac_var='\''$ac_val'\''"
198611a29bacSmrg    done | sort
198711a29bacSmrg    echo
198811a29bacSmrg
198911a29bacSmrg    if test -n "$ac_subst_files"; then
199011a29bacSmrg      $as_echo "## ------------------- ##
199111a29bacSmrg## File substitutions. ##
199211a29bacSmrg## ------------------- ##"
199311a29bacSmrg      echo
199411a29bacSmrg      for ac_var in $ac_subst_files
199511a29bacSmrg      do
199611a29bacSmrg	eval ac_val=\$$ac_var
199711a29bacSmrg	case $ac_val in
199811a29bacSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
199911a29bacSmrg	esac
200011a29bacSmrg	$as_echo "$ac_var='\''$ac_val'\''"
200111a29bacSmrg      done | sort
200211a29bacSmrg      echo
200311a29bacSmrg    fi
200411a29bacSmrg
200511a29bacSmrg    if test -s confdefs.h; then
200611a29bacSmrg      $as_echo "## ----------- ##
200711a29bacSmrg## confdefs.h. ##
200811a29bacSmrg## ----------- ##"
200911a29bacSmrg      echo
201011a29bacSmrg      cat confdefs.h
201111a29bacSmrg      echo
201211a29bacSmrg    fi
201311a29bacSmrg    test "$ac_signal" != 0 &&
201411a29bacSmrg      $as_echo "$as_me: caught signal $ac_signal"
201511a29bacSmrg    $as_echo "$as_me: exit $exit_status"
201611a29bacSmrg  } >&5
201711a29bacSmrg  rm -f core *.core core.conftest.* &&
201811a29bacSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
201911a29bacSmrg    exit $exit_status
202011a29bacSmrg' 0
202111a29bacSmrgfor ac_signal in 1 2 13 15; do
202211a29bacSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
202311a29bacSmrgdone
202411a29bacSmrgac_signal=0
202511a29bacSmrg
202611a29bacSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
202711a29bacSmrgrm -f -r conftest* confdefs.h
202841b2f0bdSmrg
202911a29bacSmrg$as_echo "/* confdefs.h */" > confdefs.h
203041b2f0bdSmrg
203111a29bacSmrg# Predefined preprocessor variables.
203241b2f0bdSmrg
203311a29bacSmrgcat >>confdefs.h <<_ACEOF
203411a29bacSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
203541b2f0bdSmrg_ACEOF
203641b2f0bdSmrg
203711a29bacSmrgcat >>confdefs.h <<_ACEOF
203811a29bacSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
203941b2f0bdSmrg_ACEOF
204041b2f0bdSmrg
204111a29bacSmrgcat >>confdefs.h <<_ACEOF
204211a29bacSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
204341b2f0bdSmrg_ACEOF
204441b2f0bdSmrg
204511a29bacSmrgcat >>confdefs.h <<_ACEOF
204611a29bacSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
204711a29bacSmrg_ACEOF
204811245024Smrg
204911a29bacSmrgcat >>confdefs.h <<_ACEOF
205011a29bacSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
205141b2f0bdSmrg_ACEOF
205241b2f0bdSmrg
205311a29bacSmrgcat >>confdefs.h <<_ACEOF
205411a29bacSmrg#define PACKAGE_URL "$PACKAGE_URL"
205541b2f0bdSmrg_ACEOF
205641b2f0bdSmrg
205711245024Smrg
205811a29bacSmrg# Let the site file select an alternate cache file if it wants to.
205911a29bacSmrg# Prefer an explicitly selected file to automatically selected ones.
206011a29bacSmrgac_site_file1=NONE
206111a29bacSmrgac_site_file2=NONE
206211a29bacSmrgif test -n "$CONFIG_SITE"; then
206311a29bacSmrg  # We do not want a PATH search for config.site.
206411a29bacSmrg  case $CONFIG_SITE in #((
206511a29bacSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
206611a29bacSmrg    */*) ac_site_file1=$CONFIG_SITE;;
206711a29bacSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
206811a29bacSmrg  esac
206911a29bacSmrgelif test "x$prefix" != xNONE; then
207011a29bacSmrg  ac_site_file1=$prefix/share/config.site
207111a29bacSmrg  ac_site_file2=$prefix/etc/config.site
207241b2f0bdSmrgelse
207311a29bacSmrg  ac_site_file1=$ac_default_prefix/share/config.site
207411a29bacSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
207511a29bacSmrgfi
207611a29bacSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
207711a29bacSmrgdo
207811a29bacSmrg  test "x$ac_site_file" = xNONE && continue
207911a29bacSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
208011a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
208111a29bacSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
208211a29bacSmrg    sed 's/^/| /' "$ac_site_file" >&5
208311a29bacSmrg    . "$ac_site_file" \
208411a29bacSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
208511a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
208611a29bacSmrgas_fn_error $? "failed to load site script $ac_site_file
208711a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
208811a29bacSmrg  fi
208911a29bacSmrgdone
209041b2f0bdSmrg
209111a29bacSmrgif test -r "$cache_file"; then
209211a29bacSmrg  # Some versions of bash will fail to source /dev/null (special files
209311a29bacSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
209411a29bacSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
209511a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
209611a29bacSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
209711a29bacSmrg    case $cache_file in
209811a29bacSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
209911a29bacSmrg      *)                      . "./$cache_file";;
210011a29bacSmrg    esac
210111a29bacSmrg  fi
210241b2f0bdSmrgelse
210311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
210411a29bacSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
210511a29bacSmrg  >$cache_file
210611a29bacSmrgfi
210741b2f0bdSmrg
210811a29bacSmrg# Check that the precious variables saved in the cache have kept the same
210911a29bacSmrg# value.
211011a29bacSmrgac_cache_corrupted=false
211111a29bacSmrgfor ac_var in $ac_precious_vars; do
211211a29bacSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
211311a29bacSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
211411a29bacSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
211511a29bacSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
211611a29bacSmrg  case $ac_old_set,$ac_new_set in
211711a29bacSmrg    set,)
211811a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
211911a29bacSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
212011a29bacSmrg      ac_cache_corrupted=: ;;
212111a29bacSmrg    ,set)
212211a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
212311a29bacSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
212411a29bacSmrg      ac_cache_corrupted=: ;;
212511a29bacSmrg    ,);;
212611a29bacSmrg    *)
212711a29bacSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
212811a29bacSmrg	# differences in whitespace do not lead to failure.
212911a29bacSmrg	ac_old_val_w=`echo x $ac_old_val`
213011a29bacSmrg	ac_new_val_w=`echo x $ac_new_val`
213111a29bacSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
213211a29bacSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
213311a29bacSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
213411a29bacSmrg	  ac_cache_corrupted=:
213511a29bacSmrg	else
213611a29bacSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
213711a29bacSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
213811a29bacSmrg	  eval $ac_var=\$ac_old_val
213911a29bacSmrg	fi
214011a29bacSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
214111a29bacSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
214211a29bacSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
214311a29bacSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
214411a29bacSmrg      fi;;
214511a29bacSmrg  esac
214611a29bacSmrg  # Pass precious variables to config.status.
214711a29bacSmrg  if test "$ac_new_set" = set; then
214811a29bacSmrg    case $ac_new_val in
214911a29bacSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
215011a29bacSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
215111a29bacSmrg    esac
215211a29bacSmrg    case " $ac_configure_args " in
215311a29bacSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
215411a29bacSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
215511a29bacSmrg    esac
215611a29bacSmrg  fi
215711a29bacSmrgdone
215811a29bacSmrgif $ac_cache_corrupted; then
215911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
216011a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
216111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
216211a29bacSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
216311a29bacSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
216441b2f0bdSmrgfi
216511a29bacSmrg## -------------------- ##
216611a29bacSmrg## Main body of script. ##
216711a29bacSmrg## -------------------- ##
216811245024Smrg
216911a29bacSmrgac_ext=c
217011a29bacSmrgac_cpp='$CPP $CPPFLAGS'
217111a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
217211a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
217311a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
217441b2f0bdSmrg
217541b2f0bdSmrg
217641b2f0bdSmrg
217711a29bacSmrgac_config_headers="$ac_config_headers src/config.h"
217841b2f0bdSmrg
217941b2f0bdSmrg
218011a29bacSmrg# Initialize Automake
218111a29bacSmrgam__api_version='1.11'
218241b2f0bdSmrg
218311a29bacSmrgac_aux_dir=
218411a29bacSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
218511a29bacSmrg  if test -f "$ac_dir/install-sh"; then
218611a29bacSmrg    ac_aux_dir=$ac_dir
218711a29bacSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
218811a29bacSmrg    break
218911a29bacSmrg  elif test -f "$ac_dir/install.sh"; then
219011a29bacSmrg    ac_aux_dir=$ac_dir
219111a29bacSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
219211a29bacSmrg    break
219311a29bacSmrg  elif test -f "$ac_dir/shtool"; then
219411a29bacSmrg    ac_aux_dir=$ac_dir
219511a29bacSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
219611a29bacSmrg    break
219711a29bacSmrg  fi
219811a29bacSmrgdone
219911a29bacSmrgif test -z "$ac_aux_dir"; then
220011a29bacSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
220141b2f0bdSmrgfi
220241b2f0bdSmrg
220311a29bacSmrg# These three variables are undocumented and unsupported,
220411a29bacSmrg# and are intended to be withdrawn in a future Autoconf release.
220511a29bacSmrg# They can cause serious problems if a builder's source tree is in a directory
220611a29bacSmrg# whose full name contains unusual characters.
220711a29bacSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
220811a29bacSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
220911a29bacSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
221041b2f0bdSmrg
221141b2f0bdSmrg
221211a29bacSmrg# Find a good install program.  We prefer a C program (faster),
221311a29bacSmrg# so one script is as good as another.  But avoid the broken or
221411a29bacSmrg# incompatible versions:
221511a29bacSmrg# SysV /etc/install, /usr/sbin/install
221611a29bacSmrg# SunOS /usr/etc/install
221711a29bacSmrg# IRIX /sbin/install
221811a29bacSmrg# AIX /bin/install
221911a29bacSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
222011a29bacSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
222111a29bacSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
222211a29bacSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
222311a29bacSmrg# OS/2's system install, which has a completely different semantic
222411a29bacSmrg# ./install, which can be erroneously created by make from ./install.sh.
222511a29bacSmrg# Reject install programs that cannot install multiple files.
222611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
222711a29bacSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
222811a29bacSmrgif test -z "$INSTALL"; then
222911a29bacSmrgif ${ac_cv_path_install+:} false; then :
223011a29bacSmrg  $as_echo_n "(cached) " >&6
223111a29bacSmrgelse
223211a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223311a29bacSmrgfor as_dir in $PATH
223411a29bacSmrgdo
223511a29bacSmrg  IFS=$as_save_IFS
223611a29bacSmrg  test -z "$as_dir" && as_dir=.
223711a29bacSmrg    # Account for people who put trailing slashes in PATH elements.
223811a29bacSmrgcase $as_dir/ in #((
223911a29bacSmrg  ./ | .// | /[cC]/* | \
224011a29bacSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
224111a29bacSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
224211a29bacSmrg  /usr/ucb/* ) ;;
224311a29bacSmrg  *)
224411a29bacSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
224511a29bacSmrg    # Don't use installbsd from OSF since it installs stuff as root
224611a29bacSmrg    # by default.
224711a29bacSmrg    for ac_prog in ginstall scoinst install; do
224811a29bacSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
224911a29bacSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
225011a29bacSmrg	  if test $ac_prog = install &&
225111a29bacSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
225211a29bacSmrg	    # AIX install.  It has an incompatible calling convention.
225311a29bacSmrg	    :
225411a29bacSmrg	  elif test $ac_prog = install &&
225511a29bacSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
225611a29bacSmrg	    # program-specific install script used by HP pwplus--don't use.
225711a29bacSmrg	    :
225811a29bacSmrg	  else
225911a29bacSmrg	    rm -rf conftest.one conftest.two conftest.dir
226011a29bacSmrg	    echo one > conftest.one
226111a29bacSmrg	    echo two > conftest.two
226211a29bacSmrg	    mkdir conftest.dir
226311a29bacSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
226411a29bacSmrg	      test -s conftest.one && test -s conftest.two &&
226511a29bacSmrg	      test -s conftest.dir/conftest.one &&
226611a29bacSmrg	      test -s conftest.dir/conftest.two
226711a29bacSmrg	    then
226811a29bacSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
226911a29bacSmrg	      break 3
227011a29bacSmrg	    fi
227111a29bacSmrg	  fi
227211a29bacSmrg	fi
227311a29bacSmrg      done
227411a29bacSmrg    done
227511a29bacSmrg    ;;
227611a29bacSmrgesac
227741b2f0bdSmrg
227811a29bacSmrg  done
227911a29bacSmrgIFS=$as_save_IFS
228041b2f0bdSmrg
228111a29bacSmrgrm -rf conftest.one conftest.two conftest.dir
228241b2f0bdSmrg
228311a29bacSmrgfi
228411a29bacSmrg  if test "${ac_cv_path_install+set}" = set; then
228511a29bacSmrg    INSTALL=$ac_cv_path_install
228641b2f0bdSmrg  else
228711a29bacSmrg    # As a last resort, use the slow shell script.  Don't cache a
228811a29bacSmrg    # value for INSTALL within a source directory, because that will
228911a29bacSmrg    # break other packages using the cache if that directory is
229011a29bacSmrg    # removed, or if the value is a relative name.
229111a29bacSmrg    INSTALL=$ac_install_sh
229241b2f0bdSmrg  fi
229311a29bacSmrgfi
229411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
229511a29bacSmrg$as_echo "$INSTALL" >&6; }
229641b2f0bdSmrg
229711a29bacSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
229811a29bacSmrg# It thinks the first close brace ends the variable substitution.
229911a29bacSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
230041b2f0bdSmrg
230111a29bacSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
230241b2f0bdSmrg
230311a29bacSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
230441b2f0bdSmrg
230511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
230611a29bacSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
230711a29bacSmrg# Just in case
230811a29bacSmrgsleep 1
230911a29bacSmrgecho timestamp > conftest.file
231011a29bacSmrg# Reject unsafe characters in $srcdir or the absolute working directory
231111a29bacSmrg# name.  Accept space and tab only in the latter.
231211a29bacSmrgam_lf='
231311a29bacSmrg'
231411a29bacSmrgcase `pwd` in
231511a29bacSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
231611a29bacSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
231711a29bacSmrgesac
231811a29bacSmrgcase $srcdir in
231911a29bacSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
232011a29bacSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
232111a29bacSmrgesac
232241b2f0bdSmrg
232311a29bacSmrg# Do `set' in a subshell so we don't clobber the current shell's
232411a29bacSmrg# arguments.  Must try -L first in case configure is actually a
232511a29bacSmrg# symlink; some systems play weird games with the mod time of symlinks
232611a29bacSmrg# (eg FreeBSD returns the mod time of the symlink's containing
232711a29bacSmrg# directory).
232811a29bacSmrgif (
232911a29bacSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
233011a29bacSmrg   if test "$*" = "X"; then
233111a29bacSmrg      # -L didn't work.
233211a29bacSmrg      set X `ls -t "$srcdir/configure" conftest.file`
233311a29bacSmrg   fi
233411a29bacSmrg   rm -f conftest.file
233511a29bacSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
233611a29bacSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
233741b2f0bdSmrg
233811a29bacSmrg      # If neither matched, then we have a broken ls.  This can happen
233911a29bacSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
234011a29bacSmrg      # broken ls alias from the environment.  This has actually
234111a29bacSmrg      # happened.  Such a system could not be considered "sane".
234211a29bacSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
234311a29bacSmrgalias in your environment" "$LINENO" 5
234411a29bacSmrg   fi
234541b2f0bdSmrg
234611a29bacSmrg   test "$2" = conftest.file
234711a29bacSmrg   )
234811a29bacSmrgthen
234911a29bacSmrg   # Ok.
235011a29bacSmrg   :
235111a29bacSmrgelse
235211a29bacSmrg   as_fn_error $? "newly created file is older than distributed files!
235311a29bacSmrgCheck your system clock" "$LINENO" 5
235441b2f0bdSmrgfi
235511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
235611a29bacSmrg$as_echo "yes" >&6; }
235711a29bacSmrgtest "$program_prefix" != NONE &&
235811a29bacSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
235911a29bacSmrg# Use a double $ so make ignores it.
236011a29bacSmrgtest "$program_suffix" != NONE &&
236111a29bacSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
236211a29bacSmrg# Double any \ or $.
236311a29bacSmrg# By default was `s,x,x', remove it if useless.
236411a29bacSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
236511a29bacSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
236641b2f0bdSmrg
236711a29bacSmrg# expand $ac_aux_dir to an absolute path
236811a29bacSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
236941b2f0bdSmrg
237011a29bacSmrgif test x"${MISSING+set}" != xset; then
237111a29bacSmrg  case $am_aux_dir in
237211a29bacSmrg  *\ * | *\	*)
237311a29bacSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
237411a29bacSmrg  *)
237511a29bacSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
237611a29bacSmrg  esac
237711a29bacSmrgfi
237811a29bacSmrg# Use eval to expand $SHELL
237911a29bacSmrgif eval "$MISSING --run true"; then
238011a29bacSmrg  am_missing_run="$MISSING --run "
238111a29bacSmrgelse
238211a29bacSmrg  am_missing_run=
238311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
238411a29bacSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
238541b2f0bdSmrgfi
238641b2f0bdSmrg
238711a29bacSmrgif test x"${install_sh}" != xset; then
238811a29bacSmrg  case $am_aux_dir in
238911a29bacSmrg  *\ * | *\	*)
239011a29bacSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
239111a29bacSmrg  *)
239211a29bacSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
239311a29bacSmrg  esac
239411a29bacSmrgfi
239511a29bacSmrg
239611a29bacSmrg# Installed binaries are usually stripped using `strip' when the user
239711a29bacSmrg# run `make install-strip'.  However `strip' might not be the right
239811a29bacSmrg# tool to use in cross-compilation environments, therefore Automake
239911a29bacSmrg# will honor the `STRIP' environment variable to overrule this program.
240011a29bacSmrgif test "$cross_compiling" != no; then
240111a29bacSmrg  if test -n "$ac_tool_prefix"; then
240211a29bacSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
240311a29bacSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
240411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
240511a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
240611a29bacSmrgif ${ac_cv_prog_STRIP+:} false; then :
240711245024Smrg  $as_echo_n "(cached) " >&6
240841b2f0bdSmrgelse
240911a29bacSmrg  if test -n "$STRIP"; then
241011a29bacSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
241141b2f0bdSmrgelse
241211a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241311a29bacSmrgfor as_dir in $PATH
241411a29bacSmrgdo
241511a29bacSmrg  IFS=$as_save_IFS
241611a29bacSmrg  test -z "$as_dir" && as_dir=.
241711a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
241811a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
241911a29bacSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
242011a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
242111a29bacSmrg    break 2
242211a29bacSmrg  fi
242311a29bacSmrgdone
242411a29bacSmrg  done
242511a29bacSmrgIFS=$as_save_IFS
242641b2f0bdSmrg
242711a29bacSmrgfi
242811a29bacSmrgfi
242911a29bacSmrgSTRIP=$ac_cv_prog_STRIP
243011a29bacSmrgif test -n "$STRIP"; then
243111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
243211a29bacSmrg$as_echo "$STRIP" >&6; }
243311a29bacSmrgelse
243411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
243511a29bacSmrg$as_echo "no" >&6; }
243611a29bacSmrgfi
243741b2f0bdSmrg
243841b2f0bdSmrg
243911a29bacSmrgfi
244011a29bacSmrgif test -z "$ac_cv_prog_STRIP"; then
244111a29bacSmrg  ac_ct_STRIP=$STRIP
244211a29bacSmrg  # Extract the first word of "strip", so it can be a program name with args.
244311a29bacSmrgset dummy strip; ac_word=$2
244411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
244511a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
244611a29bacSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
244711a29bacSmrg  $as_echo_n "(cached) " >&6
244811a29bacSmrgelse
244911a29bacSmrg  if test -n "$ac_ct_STRIP"; then
245011a29bacSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
245111a29bacSmrgelse
245211a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245311a29bacSmrgfor as_dir in $PATH
245411a29bacSmrgdo
245511a29bacSmrg  IFS=$as_save_IFS
245611a29bacSmrg  test -z "$as_dir" && as_dir=.
245711a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
245811a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
245911a29bacSmrg    ac_cv_prog_ac_ct_STRIP="strip"
246011a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
246111a29bacSmrg    break 2
246211a29bacSmrg  fi
246311a29bacSmrgdone
246411a29bacSmrg  done
246511a29bacSmrgIFS=$as_save_IFS
246641b2f0bdSmrg
246711a29bacSmrgfi
246811a29bacSmrgfi
246911a29bacSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
247011a29bacSmrgif test -n "$ac_ct_STRIP"; then
247111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
247211a29bacSmrg$as_echo "$ac_ct_STRIP" >&6; }
247311a29bacSmrgelse
247411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
247511a29bacSmrg$as_echo "no" >&6; }
247611a29bacSmrgfi
247741b2f0bdSmrg
247811a29bacSmrg  if test "x$ac_ct_STRIP" = x; then
247911a29bacSmrg    STRIP=":"
248041b2f0bdSmrg  else
248111a29bacSmrg    case $cross_compiling:$ac_tool_warned in
248211a29bacSmrgyes:)
248311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
248411a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
248511a29bacSmrgac_tool_warned=yes ;;
248611a29bacSmrgesac
248711a29bacSmrg    STRIP=$ac_ct_STRIP
248841b2f0bdSmrg  fi
248911a29bacSmrgelse
249011a29bacSmrg  STRIP="$ac_cv_prog_STRIP"
249141b2f0bdSmrgfi
249241b2f0bdSmrg
249311a29bacSmrgfi
249411a29bacSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
249511a29bacSmrg
249611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
249711a29bacSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
249811a29bacSmrgif test -z "$MKDIR_P"; then
249911a29bacSmrg  if ${ac_cv_path_mkdir+:} false; then :
250011a29bacSmrg  $as_echo_n "(cached) " >&6
250111a29bacSmrgelse
250211a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250311a29bacSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
250411a29bacSmrgdo
250511a29bacSmrg  IFS=$as_save_IFS
250611a29bacSmrg  test -z "$as_dir" && as_dir=.
250711a29bacSmrg    for ac_prog in mkdir gmkdir; do
250811a29bacSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
250911a29bacSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
251011a29bacSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
251111a29bacSmrg	     'mkdir (GNU coreutils) '* | \
251211a29bacSmrg	     'mkdir (coreutils) '* | \
251311a29bacSmrg	     'mkdir (fileutils) '4.1*)
251411a29bacSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
251511a29bacSmrg	       break 3;;
251611a29bacSmrg	   esac
251711a29bacSmrg	 done
251811a29bacSmrg       done
251911a29bacSmrg  done
252011a29bacSmrgIFS=$as_save_IFS
252111a29bacSmrg
252211a29bacSmrgfi
252341b2f0bdSmrg
252411a29bacSmrg  test -d ./--version && rmdir ./--version
252511a29bacSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
252611a29bacSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
252711a29bacSmrg  else
252811a29bacSmrg    # As a last resort, use the slow shell script.  Don't cache a
252911a29bacSmrg    # value for MKDIR_P within a source directory, because that will
253011a29bacSmrg    # break other packages using the cache if that directory is
253111a29bacSmrg    # removed, or if the value is a relative name.
253211a29bacSmrg    MKDIR_P="$ac_install_sh -d"
253311a29bacSmrg  fi
253441b2f0bdSmrgfi
253511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
253611a29bacSmrg$as_echo "$MKDIR_P" >&6; }
253741b2f0bdSmrg
253811a29bacSmrgmkdir_p="$MKDIR_P"
253911a29bacSmrgcase $mkdir_p in
254011a29bacSmrg  [\\/$]* | ?:[\\/]*) ;;
254111a29bacSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
254211a29bacSmrgesac
254341b2f0bdSmrg
254411a29bacSmrgfor ac_prog in gawk mawk nawk awk
254511a29bacSmrgdo
254611a29bacSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
254711a29bacSmrgset dummy $ac_prog; ac_word=$2
254811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
254911a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
255011a29bacSmrgif ${ac_cv_prog_AWK+:} false; then :
255111a29bacSmrg  $as_echo_n "(cached) " >&6
255211a29bacSmrgelse
255311a29bacSmrg  if test -n "$AWK"; then
255411a29bacSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
255511a29bacSmrgelse
255611a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
255711a29bacSmrgfor as_dir in $PATH
255811a29bacSmrgdo
255911a29bacSmrg  IFS=$as_save_IFS
256011a29bacSmrg  test -z "$as_dir" && as_dir=.
256111a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
256211a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
256311a29bacSmrg    ac_cv_prog_AWK="$ac_prog"
256411a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
256511a29bacSmrg    break 2
256611a29bacSmrg  fi
256711a29bacSmrgdone
256811a29bacSmrg  done
256911a29bacSmrgIFS=$as_save_IFS
257041b2f0bdSmrg
257111a29bacSmrgfi
257211a29bacSmrgfi
257311a29bacSmrgAWK=$ac_cv_prog_AWK
257411a29bacSmrgif test -n "$AWK"; then
257511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
257611a29bacSmrg$as_echo "$AWK" >&6; }
257711a29bacSmrgelse
257811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
257911a29bacSmrg$as_echo "no" >&6; }
258041b2f0bdSmrgfi
258141b2f0bdSmrg
258241b2f0bdSmrg
258311a29bacSmrg  test -n "$AWK" && break
258411a29bacSmrgdone
258541b2f0bdSmrg
258611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
258711a29bacSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
258811a29bacSmrgset x ${MAKE-make}
258911a29bacSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
259011a29bacSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
259111a29bacSmrg  $as_echo_n "(cached) " >&6
259211a29bacSmrgelse
259311a29bacSmrg  cat >conftest.make <<\_ACEOF
259411a29bacSmrgSHELL = /bin/sh
259511a29bacSmrgall:
259611a29bacSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
259711a29bacSmrg_ACEOF
259811a29bacSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
259911a29bacSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
260011a29bacSmrg  *@@@%%%=?*=@@@%%%*)
260111a29bacSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
260211a29bacSmrg  *)
260311a29bacSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
260411a29bacSmrgesac
260511a29bacSmrgrm -f conftest.make
260611a29bacSmrgfi
260711a29bacSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
260811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
260911a29bacSmrg$as_echo "yes" >&6; }
261011a29bacSmrg  SET_MAKE=
261111a29bacSmrgelse
261211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
261311a29bacSmrg$as_echo "no" >&6; }
261411a29bacSmrg  SET_MAKE="MAKE=${MAKE-make}"
261511a29bacSmrgfi
261641b2f0bdSmrg
261711a29bacSmrgrm -rf .tst 2>/dev/null
261811a29bacSmrgmkdir .tst 2>/dev/null
261911a29bacSmrgif test -d .tst; then
262011a29bacSmrg  am__leading_dot=.
262111a29bacSmrgelse
262211a29bacSmrg  am__leading_dot=_
262311a29bacSmrgfi
262411a29bacSmrgrmdir .tst 2>/dev/null
262511a29bacSmrg
262611a29bacSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
262711a29bacSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
262811a29bacSmrg  # is not polluted with repeated "-I."
262911a29bacSmrg  am__isrc=' -I$(srcdir)'
263011a29bacSmrg  # test to see if srcdir already configured
263111a29bacSmrg  if test -f $srcdir/config.status; then
263211a29bacSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
263341b2f0bdSmrg  fi
263411a29bacSmrgfi
263541b2f0bdSmrg
263611a29bacSmrg# test whether we have cygpath
263711a29bacSmrgif test -z "$CYGPATH_W"; then
263811a29bacSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
263911a29bacSmrg    CYGPATH_W='cygpath -w'
264011a29bacSmrg  else
264111a29bacSmrg    CYGPATH_W=echo
264241b2f0bdSmrg  fi
264311a29bacSmrgfi
264441b2f0bdSmrg
264541b2f0bdSmrg
264611a29bacSmrg# Define the identity of the package.
264711a29bacSmrg PACKAGE='libXxf86misc'
264811a29bacSmrg VERSION='1.0.3'
264941b2f0bdSmrg
265041b2f0bdSmrg
265111a29bacSmrgcat >>confdefs.h <<_ACEOF
265211a29bacSmrg#define PACKAGE "$PACKAGE"
265311a29bacSmrg_ACEOF
265441b2f0bdSmrg
265541b2f0bdSmrg
265611a29bacSmrgcat >>confdefs.h <<_ACEOF
265711a29bacSmrg#define VERSION "$VERSION"
265811a29bacSmrg_ACEOF
265941b2f0bdSmrg
266011a29bacSmrg# Some tools Automake needs.
266141b2f0bdSmrg
266211a29bacSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
266341b2f0bdSmrg
266441b2f0bdSmrg
266511a29bacSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
266641b2f0bdSmrg
266741b2f0bdSmrg
266811a29bacSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
266941b2f0bdSmrg
267041b2f0bdSmrg
267111a29bacSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
267241b2f0bdSmrg
267341b2f0bdSmrg
267411a29bacSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
267541b2f0bdSmrg
267611a29bacSmrg# We need awk for the "check" target.  The system "awk" is bad on
267711a29bacSmrg# some platforms.
267811a29bacSmrg# Always define AMTAR for backward compatibility.
267941b2f0bdSmrg
268011a29bacSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
268141b2f0bdSmrg
268211a29bacSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
268341b2f0bdSmrg
268441b2f0bdSmrg
268541b2f0bdSmrg
268641b2f0bdSmrg
268741b2f0bdSmrg
268841b2f0bdSmrg
268911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
269011a29bacSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
269111a29bacSmrg    # Check whether --enable-maintainer-mode was given.
269211a29bacSmrgif test "${enable_maintainer_mode+set}" = set; then :
269311a29bacSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
269411a29bacSmrgelse
269511a29bacSmrg  USE_MAINTAINER_MODE=no
269611a29bacSmrgfi
269741b2f0bdSmrg
269811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
269911a29bacSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
270011a29bacSmrg   if test $USE_MAINTAINER_MODE = yes; then
270111a29bacSmrg  MAINTAINER_MODE_TRUE=
270211a29bacSmrg  MAINTAINER_MODE_FALSE='#'
270311a29bacSmrgelse
270411a29bacSmrg  MAINTAINER_MODE_TRUE='#'
270511a29bacSmrg  MAINTAINER_MODE_FALSE=
270611a29bacSmrgfi
270741b2f0bdSmrg
270811a29bacSmrg  MAINT=$MAINTAINER_MODE_TRUE
270941b2f0bdSmrg
271041b2f0bdSmrg
271141b2f0bdSmrg
271211a29bacSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
271341b2f0bdSmrg
271441b2f0bdSmrg
271541b2f0bdSmrg
271641b2f0bdSmrg
271741b2f0bdSmrg
271841b2f0bdSmrg
271941b2f0bdSmrg
272041b2f0bdSmrg
272141b2f0bdSmrg
272241b2f0bdSmrg
272341b2f0bdSmrg
272411a29bacSmrgDEPDIR="${am__leading_dot}deps"
272541b2f0bdSmrg
272611a29bacSmrgac_config_commands="$ac_config_commands depfiles"
272741b2f0bdSmrg
272841b2f0bdSmrg
272911a29bacSmrgam_make=${MAKE-make}
273011a29bacSmrgcat > confinc << 'END'
273111a29bacSmrgam__doit:
273211a29bacSmrg	@echo this is the am__doit target
273311a29bacSmrg.PHONY: am__doit
273411a29bacSmrgEND
273511a29bacSmrg# If we don't find an include directive, just comment out the code.
273611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
273711a29bacSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
273811a29bacSmrgam__include="#"
273911a29bacSmrgam__quote=
274011a29bacSmrg_am_result=none
274111a29bacSmrg# First try GNU make style include.
274211a29bacSmrgecho "include confinc" > confmf
274311a29bacSmrg# Ignore all kinds of additional output from `make'.
274411a29bacSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
274511a29bacSmrg*the\ am__doit\ target*)
274611a29bacSmrg  am__include=include
274711a29bacSmrg  am__quote=
274811a29bacSmrg  _am_result=GNU
274911a29bacSmrg  ;;
275011a29bacSmrgesac
275111a29bacSmrg# Now try BSD make style include.
275211a29bacSmrgif test "$am__include" = "#"; then
275311a29bacSmrg   echo '.include "confinc"' > confmf
275411a29bacSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
275511a29bacSmrg   *the\ am__doit\ target*)
275611a29bacSmrg     am__include=.include
275711a29bacSmrg     am__quote="\""
275811a29bacSmrg     _am_result=BSD
275911a29bacSmrg     ;;
276011a29bacSmrg   esac
276111a29bacSmrgfi
276241b2f0bdSmrg
276341b2f0bdSmrg
276411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
276511a29bacSmrg$as_echo "$_am_result" >&6; }
276611a29bacSmrgrm -f confinc confmf
276741b2f0bdSmrg
276811a29bacSmrg# Check whether --enable-dependency-tracking was given.
276911a29bacSmrgif test "${enable_dependency_tracking+set}" = set; then :
277011a29bacSmrg  enableval=$enable_dependency_tracking;
277111a29bacSmrgfi
277241b2f0bdSmrg
277311a29bacSmrgif test "x$enable_dependency_tracking" != xno; then
277411a29bacSmrg  am_depcomp="$ac_aux_dir/depcomp"
277511a29bacSmrg  AMDEPBACKSLASH='\'
277611a29bacSmrgfi
277711a29bacSmrg if test "x$enable_dependency_tracking" != xno; then
277811a29bacSmrg  AMDEP_TRUE=
277911a29bacSmrg  AMDEP_FALSE='#'
278011a29bacSmrgelse
278111a29bacSmrg  AMDEP_TRUE='#'
278211a29bacSmrg  AMDEP_FALSE=
278311a29bacSmrgfi
278411a29bacSmrg
278511a29bacSmrg
278611a29bacSmrgac_ext=c
278711a29bacSmrgac_cpp='$CPP $CPPFLAGS'
278811a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
278911a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
279011a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
279111a29bacSmrgif test -n "$ac_tool_prefix"; then
279211a29bacSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
279311a29bacSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
279411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
279511a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
279611a29bacSmrgif ${ac_cv_prog_CC+:} false; then :
279711a29bacSmrg  $as_echo_n "(cached) " >&6
279811a29bacSmrgelse
279911a29bacSmrg  if test -n "$CC"; then
280011a29bacSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
280111a29bacSmrgelse
280211a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
280311a29bacSmrgfor as_dir in $PATH
280411a29bacSmrgdo
280511a29bacSmrg  IFS=$as_save_IFS
280611a29bacSmrg  test -z "$as_dir" && as_dir=.
280711a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
280811a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
280911a29bacSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
281011a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
281111a29bacSmrg    break 2
281211a29bacSmrg  fi
281311a29bacSmrgdone
281411a29bacSmrg  done
281511a29bacSmrgIFS=$as_save_IFS
281641b2f0bdSmrg
281711a29bacSmrgfi
281811a29bacSmrgfi
281911a29bacSmrgCC=$ac_cv_prog_CC
282011a29bacSmrgif test -n "$CC"; then
282111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
282211a29bacSmrg$as_echo "$CC" >&6; }
282311a29bacSmrgelse
282411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
282511a29bacSmrg$as_echo "no" >&6; }
282611a29bacSmrgfi
282741b2f0bdSmrg
282841b2f0bdSmrg
282911a29bacSmrgfi
283011a29bacSmrgif test -z "$ac_cv_prog_CC"; then
283111a29bacSmrg  ac_ct_CC=$CC
283211a29bacSmrg  # Extract the first word of "gcc", so it can be a program name with args.
283311a29bacSmrgset dummy gcc; ac_word=$2
283411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
283511a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
283611a29bacSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
283711a29bacSmrg  $as_echo_n "(cached) " >&6
283811a29bacSmrgelse
283911a29bacSmrg  if test -n "$ac_ct_CC"; then
284011a29bacSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
284111a29bacSmrgelse
284211a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284311a29bacSmrgfor as_dir in $PATH
284411a29bacSmrgdo
284511a29bacSmrg  IFS=$as_save_IFS
284611a29bacSmrg  test -z "$as_dir" && as_dir=.
284711a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
284811a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
284911a29bacSmrg    ac_cv_prog_ac_ct_CC="gcc"
285011a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
285111a29bacSmrg    break 2
285211a29bacSmrg  fi
285311a29bacSmrgdone
285411a29bacSmrg  done
285511a29bacSmrgIFS=$as_save_IFS
285641b2f0bdSmrg
285711a29bacSmrgfi
285811a29bacSmrgfi
285911a29bacSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
286011a29bacSmrgif test -n "$ac_ct_CC"; then
286111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
286211a29bacSmrg$as_echo "$ac_ct_CC" >&6; }
286311a29bacSmrgelse
286411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
286511a29bacSmrg$as_echo "no" >&6; }
286611a29bacSmrgfi
286741b2f0bdSmrg
286811a29bacSmrg  if test "x$ac_ct_CC" = x; then
286911a29bacSmrg    CC=""
287011a29bacSmrg  else
287111a29bacSmrg    case $cross_compiling:$ac_tool_warned in
287211a29bacSmrgyes:)
287311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
287411a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
287511a29bacSmrgac_tool_warned=yes ;;
287611a29bacSmrgesac
287711a29bacSmrg    CC=$ac_ct_CC
287811a29bacSmrg  fi
287911a29bacSmrgelse
288011a29bacSmrg  CC="$ac_cv_prog_CC"
288111a29bacSmrgfi
288241b2f0bdSmrg
288311a29bacSmrgif test -z "$CC"; then
288411a29bacSmrg          if test -n "$ac_tool_prefix"; then
288511a29bacSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
288611a29bacSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
288711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
288811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
288911a29bacSmrgif ${ac_cv_prog_CC+:} false; then :
289011a29bacSmrg  $as_echo_n "(cached) " >&6
289111a29bacSmrgelse
289211a29bacSmrg  if test -n "$CC"; then
289311a29bacSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
289411a29bacSmrgelse
289511a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289611a29bacSmrgfor as_dir in $PATH
289711a29bacSmrgdo
289811a29bacSmrg  IFS=$as_save_IFS
289911a29bacSmrg  test -z "$as_dir" && as_dir=.
290011a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
290111a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
290211a29bacSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
290311a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
290411a29bacSmrg    break 2
290511a29bacSmrg  fi
290611a29bacSmrgdone
290711a29bacSmrg  done
290811a29bacSmrgIFS=$as_save_IFS
290941b2f0bdSmrg
291011a29bacSmrgfi
291111a29bacSmrgfi
291211a29bacSmrgCC=$ac_cv_prog_CC
291311a29bacSmrgif test -n "$CC"; then
291411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
291511a29bacSmrg$as_echo "$CC" >&6; }
291611a29bacSmrgelse
291711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
291811a29bacSmrg$as_echo "no" >&6; }
291911a29bacSmrgfi
292041b2f0bdSmrg
292141b2f0bdSmrg
292211a29bacSmrg  fi
292311a29bacSmrgfi
292411a29bacSmrgif test -z "$CC"; then
292511a29bacSmrg  # Extract the first word of "cc", so it can be a program name with args.
292611a29bacSmrgset dummy cc; ac_word=$2
292711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
292811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
292911a29bacSmrgif ${ac_cv_prog_CC+:} false; then :
293011a29bacSmrg  $as_echo_n "(cached) " >&6
293111a29bacSmrgelse
293211a29bacSmrg  if test -n "$CC"; then
293311a29bacSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
293411a29bacSmrgelse
293511a29bacSmrg  ac_prog_rejected=no
293611a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
293711a29bacSmrgfor as_dir in $PATH
293811a29bacSmrgdo
293911a29bacSmrg  IFS=$as_save_IFS
294011a29bacSmrg  test -z "$as_dir" && as_dir=.
294111a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
294211a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
294311a29bacSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
294411a29bacSmrg       ac_prog_rejected=yes
294511a29bacSmrg       continue
294611a29bacSmrg     fi
294711a29bacSmrg    ac_cv_prog_CC="cc"
294811a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
294911a29bacSmrg    break 2
295011a29bacSmrg  fi
295111a29bacSmrgdone
295211a29bacSmrg  done
295311a29bacSmrgIFS=$as_save_IFS
295441b2f0bdSmrg
295511a29bacSmrgif test $ac_prog_rejected = yes; then
295611a29bacSmrg  # We found a bogon in the path, so make sure we never use it.
295711a29bacSmrg  set dummy $ac_cv_prog_CC
295811a29bacSmrg  shift
295911a29bacSmrg  if test $# != 0; then
296011a29bacSmrg    # We chose a different compiler from the bogus one.
296111a29bacSmrg    # However, it has the same basename, so the bogon will be chosen
296211a29bacSmrg    # first if we set CC to just the basename; use the full file name.
296311a29bacSmrg    shift
296411a29bacSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
296511a29bacSmrg  fi
296611a29bacSmrgfi
296711a29bacSmrgfi
296811a29bacSmrgfi
296911a29bacSmrgCC=$ac_cv_prog_CC
297011a29bacSmrgif test -n "$CC"; then
297111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
297211a29bacSmrg$as_echo "$CC" >&6; }
297311a29bacSmrgelse
297411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
297511a29bacSmrg$as_echo "no" >&6; }
297611a29bacSmrgfi
297741b2f0bdSmrg
297841b2f0bdSmrg
297911a29bacSmrgfi
298011a29bacSmrgif test -z "$CC"; then
298111a29bacSmrg  if test -n "$ac_tool_prefix"; then
298211a29bacSmrg  for ac_prog in cl.exe
298311a29bacSmrg  do
298411a29bacSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
298511a29bacSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
298611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
298711a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
298811a29bacSmrgif ${ac_cv_prog_CC+:} false; then :
298911a29bacSmrg  $as_echo_n "(cached) " >&6
299011a29bacSmrgelse
299111a29bacSmrg  if test -n "$CC"; then
299211a29bacSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
299311a29bacSmrgelse
299411a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
299511a29bacSmrgfor as_dir in $PATH
299611a29bacSmrgdo
299711a29bacSmrg  IFS=$as_save_IFS
299811a29bacSmrg  test -z "$as_dir" && as_dir=.
299911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
300011a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
300111a29bacSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
300211a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
300311a29bacSmrg    break 2
300411a29bacSmrg  fi
300511a29bacSmrgdone
300611a29bacSmrg  done
300711a29bacSmrgIFS=$as_save_IFS
300841b2f0bdSmrg
300911a29bacSmrgfi
301011a29bacSmrgfi
301111a29bacSmrgCC=$ac_cv_prog_CC
301211a29bacSmrgif test -n "$CC"; then
301311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
301411a29bacSmrg$as_echo "$CC" >&6; }
301511a29bacSmrgelse
301611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
301711a29bacSmrg$as_echo "no" >&6; }
301811a29bacSmrgfi
301941b2f0bdSmrg
302041b2f0bdSmrg
302111a29bacSmrg    test -n "$CC" && break
302211a29bacSmrg  done
302311a29bacSmrgfi
302411a29bacSmrgif test -z "$CC"; then
302511a29bacSmrg  ac_ct_CC=$CC
302611a29bacSmrg  for ac_prog in cl.exe
302711a29bacSmrgdo
302811a29bacSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
302911a29bacSmrgset dummy $ac_prog; ac_word=$2
303011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
303111a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
303211a29bacSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
303311a29bacSmrg  $as_echo_n "(cached) " >&6
303411a29bacSmrgelse
303511a29bacSmrg  if test -n "$ac_ct_CC"; then
303611a29bacSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
303711a29bacSmrgelse
303811a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
303911a29bacSmrgfor as_dir in $PATH
304011a29bacSmrgdo
304111a29bacSmrg  IFS=$as_save_IFS
304211a29bacSmrg  test -z "$as_dir" && as_dir=.
304311a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
304411a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304511a29bacSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
304611a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304711a29bacSmrg    break 2
304811a29bacSmrg  fi
304911a29bacSmrgdone
305011a29bacSmrg  done
305111a29bacSmrgIFS=$as_save_IFS
305241b2f0bdSmrg
305311a29bacSmrgfi
305411a29bacSmrgfi
305511a29bacSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
305611a29bacSmrgif test -n "$ac_ct_CC"; then
305711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
305811a29bacSmrg$as_echo "$ac_ct_CC" >&6; }
305911a29bacSmrgelse
306011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
306111a29bacSmrg$as_echo "no" >&6; }
306211a29bacSmrgfi
306341b2f0bdSmrg
306441b2f0bdSmrg
306511a29bacSmrg  test -n "$ac_ct_CC" && break
306611a29bacSmrgdone
306741b2f0bdSmrg
306811a29bacSmrg  if test "x$ac_ct_CC" = x; then
306911a29bacSmrg    CC=""
307011a29bacSmrg  else
307111a29bacSmrg    case $cross_compiling:$ac_tool_warned in
307211a29bacSmrgyes:)
307311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
307411a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
307511a29bacSmrgac_tool_warned=yes ;;
307611a29bacSmrgesac
307711a29bacSmrg    CC=$ac_ct_CC
307811a29bacSmrg  fi
307911a29bacSmrgfi
308041b2f0bdSmrg
308111a29bacSmrgfi
308241b2f0bdSmrg
308341b2f0bdSmrg
308411a29bacSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
308511a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
308611a29bacSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
308711a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
308841b2f0bdSmrg
308911a29bacSmrg# Provide some information about the compiler.
309011a29bacSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
309111a29bacSmrgset X $ac_compile
309211a29bacSmrgac_compiler=$2
309311a29bacSmrgfor ac_option in --version -v -V -qversion; do
309411a29bacSmrg  { { ac_try="$ac_compiler $ac_option >&5"
309511a29bacSmrgcase "(($ac_try" in
309611a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
309711a29bacSmrg  *) ac_try_echo=$ac_try;;
309811a29bacSmrgesac
309911a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
310011a29bacSmrg$as_echo "$ac_try_echo"; } >&5
310111a29bacSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
310211a29bacSmrg  ac_status=$?
310311a29bacSmrg  if test -s conftest.err; then
310411a29bacSmrg    sed '10a\
310511a29bacSmrg... rest of stderr output deleted ...
310611a29bacSmrg         10q' conftest.err >conftest.er1
310711a29bacSmrg    cat conftest.er1 >&5
310811a29bacSmrg  fi
310911a29bacSmrg  rm -f conftest.er1 conftest.err
311011a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
311111a29bacSmrg  test $ac_status = 0; }
311211a29bacSmrgdone
311311245024Smrg
311411a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
311511a29bacSmrg/* end confdefs.h.  */
311641b2f0bdSmrg
311711a29bacSmrgint
311811a29bacSmrgmain ()
311911a29bacSmrg{
312041b2f0bdSmrg
312111a29bacSmrg  ;
312211a29bacSmrg  return 0;
312311a29bacSmrg}
312411a29bacSmrg_ACEOF
312511a29bacSmrgac_clean_files_save=$ac_clean_files
312611a29bacSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
312711a29bacSmrg# Try to create an executable without -o first, disregard a.out.
312811a29bacSmrg# It will help us diagnose broken compilers, and finding out an intuition
312911a29bacSmrg# of exeext.
313011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
313111a29bacSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
313211a29bacSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
313341b2f0bdSmrg
313411a29bacSmrg# The possible output files:
313511a29bacSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
313641b2f0bdSmrg
313711a29bacSmrgac_rmfiles=
313811a29bacSmrgfor ac_file in $ac_files
313911a29bacSmrgdo
314011a29bacSmrg  case $ac_file in
314111a29bacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
314211a29bacSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
314311a29bacSmrg  esac
314411a29bacSmrgdone
314511a29bacSmrgrm -f $ac_rmfiles
314641b2f0bdSmrg
314711a29bacSmrgif { { ac_try="$ac_link_default"
314811a29bacSmrgcase "(($ac_try" in
314911a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
315011a29bacSmrg  *) ac_try_echo=$ac_try;;
315111a29bacSmrgesac
315211a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
315311a29bacSmrg$as_echo "$ac_try_echo"; } >&5
315411a29bacSmrg  (eval "$ac_link_default") 2>&5
315511a29bacSmrg  ac_status=$?
315611a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
315711a29bacSmrg  test $ac_status = 0; }; then :
315811a29bacSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
315911a29bacSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
316011a29bacSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
316111a29bacSmrg# so that the user can short-circuit this test for compilers unknown to
316211a29bacSmrg# Autoconf.
316311a29bacSmrgfor ac_file in $ac_files ''
316411a29bacSmrgdo
316511a29bacSmrg  test -f "$ac_file" || continue
316611a29bacSmrg  case $ac_file in
316711a29bacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
316811a29bacSmrg	;;
316911a29bacSmrg    [ab].out )
317011a29bacSmrg	# We found the default executable, but exeext='' is most
317111a29bacSmrg	# certainly right.
317211a29bacSmrg	break;;
317311a29bacSmrg    *.* )
317411a29bacSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
317511a29bacSmrg	then :; else
317611a29bacSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
317711a29bacSmrg	fi
317811a29bacSmrg	# We set ac_cv_exeext here because the later test for it is not
317911a29bacSmrg	# safe: cross compilers may not add the suffix if given an `-o'
318011a29bacSmrg	# argument, so we may need to know it at that point already.
318111a29bacSmrg	# Even if this section looks crufty: it has the advantage of
318211a29bacSmrg	# actually working.
318311a29bacSmrg	break;;
318411a29bacSmrg    * )
318511a29bacSmrg	break;;
318611a29bacSmrg  esac
318711a29bacSmrgdone
318811a29bacSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
318941b2f0bdSmrg
319011a29bacSmrgelse
319111a29bacSmrg  ac_file=''
319211a29bacSmrgfi
319311a29bacSmrgif test -z "$ac_file"; then :
319411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
319511a29bacSmrg$as_echo "no" >&6; }
319611a29bacSmrg$as_echo "$as_me: failed program was:" >&5
319711a29bacSmrgsed 's/^/| /' conftest.$ac_ext >&5
319841b2f0bdSmrg
319911a29bacSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
320011a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
320111a29bacSmrgas_fn_error 77 "C compiler cannot create executables
320211a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
320311a29bacSmrgelse
320411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
320511a29bacSmrg$as_echo "yes" >&6; }
320611a29bacSmrgfi
320711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
320811a29bacSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
320911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
321011a29bacSmrg$as_echo "$ac_file" >&6; }
321111a29bacSmrgac_exeext=$ac_cv_exeext
321241b2f0bdSmrg
321311a29bacSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
321411a29bacSmrgac_clean_files=$ac_clean_files_save
321511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
321611a29bacSmrg$as_echo_n "checking for suffix of executables... " >&6; }
321711a29bacSmrgif { { ac_try="$ac_link"
321811a29bacSmrgcase "(($ac_try" in
321911a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
322011a29bacSmrg  *) ac_try_echo=$ac_try;;
322111a29bacSmrgesac
322211a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
322311a29bacSmrg$as_echo "$ac_try_echo"; } >&5
322411a29bacSmrg  (eval "$ac_link") 2>&5
322511a29bacSmrg  ac_status=$?
322611a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
322711a29bacSmrg  test $ac_status = 0; }; then :
322811a29bacSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
322911a29bacSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
323011a29bacSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
323111a29bacSmrg# `rm'.
323211a29bacSmrgfor ac_file in conftest.exe conftest conftest.*; do
323311a29bacSmrg  test -f "$ac_file" || continue
323411a29bacSmrg  case $ac_file in
323511a29bacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
323611a29bacSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
323711a29bacSmrg	  break;;
323811a29bacSmrg    * ) break;;
323911a29bacSmrg  esac
324011a29bacSmrgdone
324111a29bacSmrgelse
324211a29bacSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
324311a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
324411a29bacSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
324511a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
324611a29bacSmrgfi
324711a29bacSmrgrm -f conftest conftest$ac_cv_exeext
324811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
324911a29bacSmrg$as_echo "$ac_cv_exeext" >&6; }
325041b2f0bdSmrg
325111a29bacSmrgrm -f conftest.$ac_ext
325211a29bacSmrgEXEEXT=$ac_cv_exeext
325311a29bacSmrgac_exeext=$EXEEXT
325411a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
325511a29bacSmrg/* end confdefs.h.  */
325611a29bacSmrg#include <stdio.h>
325711a29bacSmrgint
325811a29bacSmrgmain ()
325911a29bacSmrg{
326011a29bacSmrgFILE *f = fopen ("conftest.out", "w");
326111a29bacSmrg return ferror (f) || fclose (f) != 0;
326241b2f0bdSmrg
326311a29bacSmrg  ;
326411a29bacSmrg  return 0;
326511a29bacSmrg}
326611a29bacSmrg_ACEOF
326711a29bacSmrgac_clean_files="$ac_clean_files conftest.out"
326811a29bacSmrg# Check that the compiler produces executables we can run.  If not, either
326911a29bacSmrg# the compiler is broken, or we cross compile.
327011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
327111a29bacSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
327211a29bacSmrgif test "$cross_compiling" != yes; then
327311a29bacSmrg  { { ac_try="$ac_link"
327411a29bacSmrgcase "(($ac_try" in
327511a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
327611a29bacSmrg  *) ac_try_echo=$ac_try;;
327711a29bacSmrgesac
327811a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
327911a29bacSmrg$as_echo "$ac_try_echo"; } >&5
328011a29bacSmrg  (eval "$ac_link") 2>&5
328111a29bacSmrg  ac_status=$?
328211a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
328311a29bacSmrg  test $ac_status = 0; }
328411a29bacSmrg  if { ac_try='./conftest$ac_cv_exeext'
328511a29bacSmrg  { { case "(($ac_try" in
328611a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
328711a29bacSmrg  *) ac_try_echo=$ac_try;;
328811a29bacSmrgesac
328911a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
329011a29bacSmrg$as_echo "$ac_try_echo"; } >&5
329111a29bacSmrg  (eval "$ac_try") 2>&5
329211a29bacSmrg  ac_status=$?
329311a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
329411a29bacSmrg  test $ac_status = 0; }; }; then
329511a29bacSmrg    cross_compiling=no
329611a29bacSmrg  else
329711a29bacSmrg    if test "$cross_compiling" = maybe; then
329811a29bacSmrg	cross_compiling=yes
329911a29bacSmrg    else
330011a29bacSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
330111a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
330211a29bacSmrgas_fn_error $? "cannot run C compiled programs.
330311a29bacSmrgIf you meant to cross compile, use \`--host'.
330411a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
330511a29bacSmrg    fi
330611a29bacSmrg  fi
330711a29bacSmrgfi
330811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
330911a29bacSmrg$as_echo "$cross_compiling" >&6; }
331041b2f0bdSmrg
331111a29bacSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
331211a29bacSmrgac_clean_files=$ac_clean_files_save
331311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
331411a29bacSmrg$as_echo_n "checking for suffix of object files... " >&6; }
331511a29bacSmrgif ${ac_cv_objext+:} false; then :
331611a29bacSmrg  $as_echo_n "(cached) " >&6
331711a29bacSmrgelse
331811a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
331911a29bacSmrg/* end confdefs.h.  */
332041b2f0bdSmrg
332111a29bacSmrgint
332211a29bacSmrgmain ()
332311a29bacSmrg{
332441b2f0bdSmrg
332511a29bacSmrg  ;
332611a29bacSmrg  return 0;
332711a29bacSmrg}
332811a29bacSmrg_ACEOF
332911a29bacSmrgrm -f conftest.o conftest.obj
333011a29bacSmrgif { { ac_try="$ac_compile"
333111a29bacSmrgcase "(($ac_try" in
333211a29bacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
333311a29bacSmrg  *) ac_try_echo=$ac_try;;
333411a29bacSmrgesac
333511a29bacSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
333611a29bacSmrg$as_echo "$ac_try_echo"; } >&5
333711a29bacSmrg  (eval "$ac_compile") 2>&5
333811a29bacSmrg  ac_status=$?
333911a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
334011a29bacSmrg  test $ac_status = 0; }; then :
334111a29bacSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
334211a29bacSmrg  test -f "$ac_file" || continue;
334311a29bacSmrg  case $ac_file in
334411a29bacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
334511a29bacSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
334611a29bacSmrg       break;;
334711a29bacSmrg  esac
334811a29bacSmrgdone
334911a29bacSmrgelse
335011a29bacSmrg  $as_echo "$as_me: failed program was:" >&5
335111a29bacSmrgsed 's/^/| /' conftest.$ac_ext >&5
335241b2f0bdSmrg
335311a29bacSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
335411a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
335511a29bacSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
335611a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
335711a29bacSmrgfi
335811a29bacSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
335911a29bacSmrgfi
336011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
336111a29bacSmrg$as_echo "$ac_cv_objext" >&6; }
336211a29bacSmrgOBJEXT=$ac_cv_objext
336311a29bacSmrgac_objext=$OBJEXT
336411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
336511a29bacSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
336611a29bacSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
336711a29bacSmrg  $as_echo_n "(cached) " >&6
336811a29bacSmrgelse
336911a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
337011a29bacSmrg/* end confdefs.h.  */
337141b2f0bdSmrg
337211a29bacSmrgint
337311a29bacSmrgmain ()
337411a29bacSmrg{
337511a29bacSmrg#ifndef __GNUC__
337611a29bacSmrg       choke me
337711a29bacSmrg#endif
337841b2f0bdSmrg
337911a29bacSmrg  ;
338011a29bacSmrg  return 0;
338111a29bacSmrg}
338211a29bacSmrg_ACEOF
338311a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
338411a29bacSmrg  ac_compiler_gnu=yes
338511a29bacSmrgelse
338611a29bacSmrg  ac_compiler_gnu=no
338711a29bacSmrgfi
338811a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
338911a29bacSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
339041b2f0bdSmrg
339111a29bacSmrgfi
339211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
339311a29bacSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
339411a29bacSmrgif test $ac_compiler_gnu = yes; then
339511a29bacSmrg  GCC=yes
339611a29bacSmrgelse
339711a29bacSmrg  GCC=
339811a29bacSmrgfi
339911a29bacSmrgac_test_CFLAGS=${CFLAGS+set}
340011a29bacSmrgac_save_CFLAGS=$CFLAGS
340111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
340211a29bacSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
340311a29bacSmrgif ${ac_cv_prog_cc_g+:} false; then :
340411a29bacSmrg  $as_echo_n "(cached) " >&6
340511a29bacSmrgelse
340611a29bacSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
340711a29bacSmrg   ac_c_werror_flag=yes
340811a29bacSmrg   ac_cv_prog_cc_g=no
340911a29bacSmrg   CFLAGS="-g"
341011a29bacSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
341111a29bacSmrg/* end confdefs.h.  */
341241b2f0bdSmrg
341311a29bacSmrgint
341411a29bacSmrgmain ()
341511a29bacSmrg{
341641b2f0bdSmrg
341711a29bacSmrg  ;
341811a29bacSmrg  return 0;
341911a29bacSmrg}
342011a29bacSmrg_ACEOF
342111a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
342211a29bacSmrg  ac_cv_prog_cc_g=yes
342311a29bacSmrgelse
342411a29bacSmrg  CFLAGS=""
342511a29bacSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
342611a29bacSmrg/* end confdefs.h.  */
342741b2f0bdSmrg
342811a29bacSmrgint
342911a29bacSmrgmain ()
343011a29bacSmrg{
343141b2f0bdSmrg
343211a29bacSmrg  ;
343311a29bacSmrg  return 0;
343411a29bacSmrg}
343511a29bacSmrg_ACEOF
343611a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
343741b2f0bdSmrg
343811a29bacSmrgelse
343911a29bacSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
344011a29bacSmrg	 CFLAGS="-g"
344111a29bacSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
344211a29bacSmrg/* end confdefs.h.  */
344341b2f0bdSmrg
344411a29bacSmrgint
344511a29bacSmrgmain ()
344611a29bacSmrg{
344741b2f0bdSmrg
344811a29bacSmrg  ;
344911a29bacSmrg  return 0;
345011a29bacSmrg}
345111a29bacSmrg_ACEOF
345211a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
345311a29bacSmrg  ac_cv_prog_cc_g=yes
345411a29bacSmrgfi
345511a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
345611a29bacSmrgfi
345711a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
345811a29bacSmrgfi
345911a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
346011a29bacSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
346111a29bacSmrgfi
346211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
346311a29bacSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
346411a29bacSmrgif test "$ac_test_CFLAGS" = set; then
346511a29bacSmrg  CFLAGS=$ac_save_CFLAGS
346611a29bacSmrgelif test $ac_cv_prog_cc_g = yes; then
346711a29bacSmrg  if test "$GCC" = yes; then
346811a29bacSmrg    CFLAGS="-g -O2"
346911a29bacSmrg  else
347011a29bacSmrg    CFLAGS="-g"
347111a29bacSmrg  fi
347211a29bacSmrgelse
347311a29bacSmrg  if test "$GCC" = yes; then
347411a29bacSmrg    CFLAGS="-O2"
347511a29bacSmrg  else
347611a29bacSmrg    CFLAGS=
347711a29bacSmrg  fi
347811a29bacSmrgfi
347911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
348011a29bacSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
348111a29bacSmrgif ${ac_cv_prog_cc_c89+:} false; then :
348211a29bacSmrg  $as_echo_n "(cached) " >&6
348311a29bacSmrgelse
348411a29bacSmrg  ac_cv_prog_cc_c89=no
348511a29bacSmrgac_save_CC=$CC
348611a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
348711a29bacSmrg/* end confdefs.h.  */
348811a29bacSmrg#include <stdarg.h>
348911a29bacSmrg#include <stdio.h>
349011a29bacSmrg#include <sys/types.h>
349111a29bacSmrg#include <sys/stat.h>
349211a29bacSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
349311a29bacSmrgstruct buf { int x; };
349411a29bacSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
349511a29bacSmrgstatic char *e (p, i)
349611a29bacSmrg     char **p;
349711a29bacSmrg     int i;
349811a29bacSmrg{
349911a29bacSmrg  return p[i];
350011a29bacSmrg}
350111a29bacSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
350211a29bacSmrg{
350311a29bacSmrg  char *s;
350411a29bacSmrg  va_list v;
350511a29bacSmrg  va_start (v,p);
350611a29bacSmrg  s = g (p, va_arg (v,int));
350711a29bacSmrg  va_end (v);
350811a29bacSmrg  return s;
350911a29bacSmrg}
351041b2f0bdSmrg
351111a29bacSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
351211a29bacSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
351311a29bacSmrg   These don't provoke an error unfortunately, instead are silently treated
351411a29bacSmrg   as 'x'.  The following induces an error, until -std is added to get
351511a29bacSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
351611a29bacSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
351711a29bacSmrg   that's true only with -std.  */
351811a29bacSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
351941b2f0bdSmrg
352011a29bacSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
352111a29bacSmrg   inside strings and character constants.  */
352211a29bacSmrg#define FOO(x) 'x'
352311a29bacSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
352441b2f0bdSmrg
352511a29bacSmrgint test (int i, double x);
352611a29bacSmrgstruct s1 {int (*f) (int a);};
352711a29bacSmrgstruct s2 {int (*f) (double a);};
352811a29bacSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
352911a29bacSmrgint argc;
353011a29bacSmrgchar **argv;
353111a29bacSmrgint
353211a29bacSmrgmain ()
353311a29bacSmrg{
353411a29bacSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
353511a29bacSmrg  ;
353611a29bacSmrg  return 0;
353711a29bacSmrg}
353811a29bacSmrg_ACEOF
353911a29bacSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
354011a29bacSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
354111a29bacSmrgdo
354211a29bacSmrg  CC="$ac_save_CC $ac_arg"
354311a29bacSmrg  if ac_fn_c_try_compile "$LINENO"; then :
354411a29bacSmrg  ac_cv_prog_cc_c89=$ac_arg
354511a29bacSmrgfi
354611a29bacSmrgrm -f core conftest.err conftest.$ac_objext
354711a29bacSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
354811a29bacSmrgdone
354911a29bacSmrgrm -f conftest.$ac_ext
355011a29bacSmrgCC=$ac_save_CC
355141b2f0bdSmrg
355211a29bacSmrgfi
355311a29bacSmrg# AC_CACHE_VAL
355411a29bacSmrgcase "x$ac_cv_prog_cc_c89" in
355511a29bacSmrg  x)
355611a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
355711a29bacSmrg$as_echo "none needed" >&6; } ;;
355811a29bacSmrg  xno)
355911a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
356011a29bacSmrg$as_echo "unsupported" >&6; } ;;
356111a29bacSmrg  *)
356211a29bacSmrg    CC="$CC $ac_cv_prog_cc_c89"
356311a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
356411a29bacSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
356511a29bacSmrgesac
356611a29bacSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
356741b2f0bdSmrg
356811a29bacSmrgfi
356941b2f0bdSmrg
357011a29bacSmrgac_ext=c
357111a29bacSmrgac_cpp='$CPP $CPPFLAGS'
357211a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
357311a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
357411a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
357541b2f0bdSmrg
357611a29bacSmrgdepcc="$CC"   am_compiler_list=
357741b2f0bdSmrg
357811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
357911a29bacSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
358011a29bacSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
358111a29bacSmrg  $as_echo_n "(cached) " >&6
358211a29bacSmrgelse
358311a29bacSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
358411a29bacSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
358511a29bacSmrg  # making bogus files that we don't know about and never remove.  For
358611a29bacSmrg  # instance it was reported that on HP-UX the gcc test will end up
358711a29bacSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
358811a29bacSmrg  # in D'.
358911a29bacSmrg  mkdir conftest.dir
359011a29bacSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
359111a29bacSmrg  # using a relative directory.
359211a29bacSmrg  cp "$am_depcomp" conftest.dir
359311a29bacSmrg  cd conftest.dir
359411a29bacSmrg  # We will build objects and dependencies in a subdirectory because
359511a29bacSmrg  # it helps to detect inapplicable dependency modes.  For instance
359611a29bacSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
359711a29bacSmrg  # side effect of compilation, but ICC will put the dependencies in
359811a29bacSmrg  # the current directory while Tru64 will put them in the object
359911a29bacSmrg  # directory.
360011a29bacSmrg  mkdir sub
360141b2f0bdSmrg
360211a29bacSmrg  am_cv_CC_dependencies_compiler_type=none
360311a29bacSmrg  if test "$am_compiler_list" = ""; then
360411a29bacSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
360511a29bacSmrg  fi
360611a29bacSmrg  am__universal=false
360711a29bacSmrg  case " $depcc " in #(
360811a29bacSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
360911a29bacSmrg     esac
361041b2f0bdSmrg
361111a29bacSmrg  for depmode in $am_compiler_list; do
361211a29bacSmrg    # Setup a source with many dependencies, because some compilers
361311a29bacSmrg    # like to wrap large dependency lists on column 80 (with \), and
361411a29bacSmrg    # we should not choose a depcomp mode which is confused by this.
361511a29bacSmrg    #
361611a29bacSmrg    # We need to recreate these files for each test, as the compiler may
361711a29bacSmrg    # overwrite some of them when testing with obscure command lines.
361811a29bacSmrg    # This happens at least with the AIX C compiler.
361911a29bacSmrg    : > sub/conftest.c
362011a29bacSmrg    for i in 1 2 3 4 5 6; do
362111a29bacSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
362211a29bacSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
362311a29bacSmrg      # Solaris 8's {/usr,}/bin/sh.
362411a29bacSmrg      touch sub/conftst$i.h
362511a29bacSmrg    done
362611a29bacSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
362741b2f0bdSmrg
362811a29bacSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
362911a29bacSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
363011a29bacSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
363111a29bacSmrg    # versions had trouble with output in subdirs
363211a29bacSmrg    am__obj=sub/conftest.${OBJEXT-o}
363311a29bacSmrg    am__minus_obj="-o $am__obj"
363411a29bacSmrg    case $depmode in
363511a29bacSmrg    gcc)
363611a29bacSmrg      # This depmode causes a compiler race in universal mode.
363711a29bacSmrg      test "$am__universal" = false || continue
363811a29bacSmrg      ;;
363911a29bacSmrg    nosideeffect)
364011a29bacSmrg      # after this tag, mechanisms are not by side-effect, so they'll
364111a29bacSmrg      # only be used when explicitly requested
364211a29bacSmrg      if test "x$enable_dependency_tracking" = xyes; then
364311a29bacSmrg	continue
364411a29bacSmrg      else
364511a29bacSmrg	break
364611a29bacSmrg      fi
364711a29bacSmrg      ;;
364811a29bacSmrg    msvisualcpp | msvcmsys)
364911a29bacSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
365011a29bacSmrg      # not run yet.  These depmodes are late enough in the game, and
365111a29bacSmrg      # so weak that their functioning should not be impacted.
365211a29bacSmrg      am__obj=conftest.${OBJEXT-o}
365311a29bacSmrg      am__minus_obj=
365411a29bacSmrg      ;;
365511a29bacSmrg    none) break ;;
365611a29bacSmrg    esac
365711a29bacSmrg    if depmode=$depmode \
365811a29bacSmrg       source=sub/conftest.c object=$am__obj \
365911a29bacSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
366011a29bacSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
366111a29bacSmrg         >/dev/null 2>conftest.err &&
366211a29bacSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
366311a29bacSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
366411a29bacSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
366511a29bacSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
366611a29bacSmrg      # icc doesn't choke on unknown options, it will just issue warnings
366711a29bacSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
366811a29bacSmrg      # that says an option was ignored or not supported.
366911a29bacSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
367011a29bacSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
367111a29bacSmrg      # The diagnosis changed in icc 8.0:
367211a29bacSmrg      #   icc: Command line remark: option '-MP' not supported
367311a29bacSmrg      if (grep 'ignoring option' conftest.err ||
367411a29bacSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
367511a29bacSmrg        am_cv_CC_dependencies_compiler_type=$depmode
367611a29bacSmrg        break
367711a29bacSmrg      fi
367811a29bacSmrg    fi
367911a29bacSmrg  done
368041b2f0bdSmrg
368111a29bacSmrg  cd ..
368211a29bacSmrg  rm -rf conftest.dir
368311a29bacSmrgelse
368411a29bacSmrg  am_cv_CC_dependencies_compiler_type=none
368541b2f0bdSmrgfi
368641b2f0bdSmrg
368711a29bacSmrgfi
368811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
368911a29bacSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
369011a29bacSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
369141b2f0bdSmrg
369211a29bacSmrg if
369311a29bacSmrg  test "x$enable_dependency_tracking" != xno \
369411a29bacSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
369511a29bacSmrg  am__fastdepCC_TRUE=
369611a29bacSmrg  am__fastdepCC_FALSE='#'
369741b2f0bdSmrgelse
369811a29bacSmrg  am__fastdepCC_TRUE='#'
369911a29bacSmrg  am__fastdepCC_FALSE=
370041b2f0bdSmrgfi
370141b2f0bdSmrg
370241b2f0bdSmrg
370311a29bacSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
370411a29bacSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
370511a29bacSmrgif ${ac_cv_prog_cc_c99+:} false; then :
370611a29bacSmrg  $as_echo_n "(cached) " >&6
370711a29bacSmrgelse
370811a29bacSmrg  ac_cv_prog_cc_c99=no
370911a29bacSmrgac_save_CC=$CC
371011a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
371111a29bacSmrg/* end confdefs.h.  */
371211a29bacSmrg#include <stdarg.h>
371311a29bacSmrg#include <stdbool.h>
371411a29bacSmrg#include <stdlib.h>
371511a29bacSmrg#include <wchar.h>
371611a29bacSmrg#include <stdio.h>
371741b2f0bdSmrg
371811a29bacSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
371911a29bacSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
372011a29bacSmrg#define showlist(...) puts (#__VA_ARGS__)
372111a29bacSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
372211a29bacSmrgstatic void
372311a29bacSmrgtest_varargs_macros (void)
372411a29bacSmrg{
372511a29bacSmrg  int x = 1234;
372611a29bacSmrg  int y = 5678;
372711a29bacSmrg  debug ("Flag");
372811a29bacSmrg  debug ("X = %d\n", x);
372911a29bacSmrg  showlist (The first, second, and third items.);
373011a29bacSmrg  report (x>y, "x is %d but y is %d", x, y);
373111a29bacSmrg}
373241b2f0bdSmrg
373311a29bacSmrg// Check long long types.
373411a29bacSmrg#define BIG64 18446744073709551615ull
373511a29bacSmrg#define BIG32 4294967295ul
373611a29bacSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
373711a29bacSmrg#if !BIG_OK
373811a29bacSmrg  your preprocessor is broken;
373911a29bacSmrg#endif
374011a29bacSmrg#if BIG_OK
374111a29bacSmrg#else
374211a29bacSmrg  your preprocessor is broken;
374311a29bacSmrg#endif
374411a29bacSmrgstatic long long int bignum = -9223372036854775807LL;
374511a29bacSmrgstatic unsigned long long int ubignum = BIG64;
374611245024Smrg
374711a29bacSmrgstruct incomplete_array
374811a29bacSmrg{
374911a29bacSmrg  int datasize;
375011a29bacSmrg  double data[];
375111a29bacSmrg};
375241b2f0bdSmrg
375311a29bacSmrgstruct named_init {
375411a29bacSmrg  int number;
375511a29bacSmrg  const wchar_t *name;
375611a29bacSmrg  double average;
375711a29bacSmrg};
375841b2f0bdSmrg
375911a29bacSmrgtypedef const char *ccp;
376041b2f0bdSmrg
376111a29bacSmrgstatic inline int
376211a29bacSmrgtest_restrict (ccp restrict text)
376311a29bacSmrg{
376411a29bacSmrg  // See if C++-style comments work.
376511a29bacSmrg  // Iterate through items via the restricted pointer.
376611a29bacSmrg  // Also check for declarations in for loops.
376711a29bacSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
376811a29bacSmrg    continue;
376911a29bacSmrg  return 0;
377011a29bacSmrg}
377141b2f0bdSmrg
377211a29bacSmrg// Check varargs and va_copy.
377311a29bacSmrgstatic void
377411a29bacSmrgtest_varargs (const char *format, ...)
377511a29bacSmrg{
377611a29bacSmrg  va_list args;
377711a29bacSmrg  va_start (args, format);
377811a29bacSmrg  va_list args_copy;
377911a29bacSmrg  va_copy (args_copy, args);
378041b2f0bdSmrg
378111a29bacSmrg  const char *str;
378211a29bacSmrg  int number;
378311a29bacSmrg  float fnumber;
378441b2f0bdSmrg
378511a29bacSmrg  while (*format)
378611a29bacSmrg    {
378711a29bacSmrg      switch (*format++)
378811a29bacSmrg	{
378911a29bacSmrg	case 's': // string
379011a29bacSmrg	  str = va_arg (args_copy, const char *);
379111a29bacSmrg	  break;
379211a29bacSmrg	case 'd': // int
379311a29bacSmrg	  number = va_arg (args_copy, int);
379411a29bacSmrg	  break;
379511a29bacSmrg	case 'f': // float
379611a29bacSmrg	  fnumber = va_arg (args_copy, double);
379711a29bacSmrg	  break;
379811a29bacSmrg	default:
379911a29bacSmrg	  break;
380011a29bacSmrg	}
380111a29bacSmrg    }
380211a29bacSmrg  va_end (args_copy);
380311a29bacSmrg  va_end (args);
380411a29bacSmrg}
380541b2f0bdSmrg
380611a29bacSmrgint
380711a29bacSmrgmain ()
380811a29bacSmrg{
380941b2f0bdSmrg
381011a29bacSmrg  // Check bool.
381111a29bacSmrg  _Bool success = false;
381241b2f0bdSmrg
381311a29bacSmrg  // Check restrict.
381411a29bacSmrg  if (test_restrict ("String literal") == 0)
381511a29bacSmrg    success = true;
381611a29bacSmrg  char *restrict newvar = "Another string";
381741b2f0bdSmrg
381811a29bacSmrg  // Check varargs.
381911a29bacSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
382011a29bacSmrg  test_varargs_macros ();
382141b2f0bdSmrg
382211a29bacSmrg  // Check flexible array members.
382311a29bacSmrg  struct incomplete_array *ia =
382411a29bacSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
382511a29bacSmrg  ia->datasize = 10;
382611a29bacSmrg  for (int i = 0; i < ia->datasize; ++i)
382711a29bacSmrg    ia->data[i] = i * 1.234;
382841b2f0bdSmrg
382911a29bacSmrg  // Check named initializers.
383011a29bacSmrg  struct named_init ni = {
383111a29bacSmrg    .number = 34,
383211a29bacSmrg    .name = L"Test wide string",
383311a29bacSmrg    .average = 543.34343,
383411a29bacSmrg  };
383541b2f0bdSmrg
383611a29bacSmrg  ni.number = 58;
383741b2f0bdSmrg
383811a29bacSmrg  int dynamic_array[ni.number];
383911a29bacSmrg  dynamic_array[ni.number - 1] = 543;
384041b2f0bdSmrg
384111a29bacSmrg  // work around unused variable warnings
384211a29bacSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
384311a29bacSmrg	  || dynamic_array[ni.number - 1] != 543);
384441b2f0bdSmrg
384511a29bacSmrg  ;
384611a29bacSmrg  return 0;
384711a29bacSmrg}
384811a29bacSmrg_ACEOF
384911a29bacSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
385011a29bacSmrgdo
385111a29bacSmrg  CC="$ac_save_CC $ac_arg"
385211a29bacSmrg  if ac_fn_c_try_compile "$LINENO"; then :
385311a29bacSmrg  ac_cv_prog_cc_c99=$ac_arg
385411a29bacSmrgfi
385511a29bacSmrgrm -f core conftest.err conftest.$ac_objext
385611a29bacSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
385711a29bacSmrgdone
385811a29bacSmrgrm -f conftest.$ac_ext
385911a29bacSmrgCC=$ac_save_CC
386041b2f0bdSmrg
386141b2f0bdSmrgfi
386211a29bacSmrg# AC_CACHE_VAL
386311a29bacSmrgcase "x$ac_cv_prog_cc_c99" in
386411a29bacSmrg  x)
386511a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
386611a29bacSmrg$as_echo "none needed" >&6; } ;;
386711a29bacSmrg  xno)
386811a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
386911a29bacSmrg$as_echo "unsupported" >&6; } ;;
387011a29bacSmrg  *)
387111a29bacSmrg    CC="$CC $ac_cv_prog_cc_c99"
387211a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
387311a29bacSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
387411a29bacSmrgesac
387511a29bacSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
387611a29bacSmrg
387741b2f0bdSmrgfi
387841b2f0bdSmrg
387941b2f0bdSmrg
388011a29bacSmrg
388111a29bacSmrgac_ext=c
388211a29bacSmrgac_cpp='$CPP $CPPFLAGS'
388311a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
388411a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
388511a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
388611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
388711a29bacSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
388811a29bacSmrg# On Suns, sometimes $CPP names a directory.
388911a29bacSmrgif test -n "$CPP" && test -d "$CPP"; then
389011a29bacSmrg  CPP=
389111a29bacSmrgfi
389211a29bacSmrgif test -z "$CPP"; then
389311a29bacSmrg  if ${ac_cv_prog_CPP+:} false; then :
389411a29bacSmrg  $as_echo_n "(cached) " >&6
389511a29bacSmrgelse
389611a29bacSmrg      # Double quotes because CPP needs to be expanded
389711a29bacSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
389811a29bacSmrg    do
389911a29bacSmrg      ac_preproc_ok=false
390011a29bacSmrgfor ac_c_preproc_warn_flag in '' yes
390111a29bacSmrgdo
390211a29bacSmrg  # Use a header file that comes with gcc, so configuring glibc
390311a29bacSmrg  # with a fresh cross-compiler works.
390411a29bacSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
390511a29bacSmrg  # <limits.h> exists even on freestanding compilers.
390611a29bacSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
390711a29bacSmrg  # not just through cpp. "Syntax error" is here to catch this case.
390811a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
390911a29bacSmrg/* end confdefs.h.  */
391011a29bacSmrg#ifdef __STDC__
391111a29bacSmrg# include <limits.h>
391211a29bacSmrg#else
391311a29bacSmrg# include <assert.h>
391411a29bacSmrg#endif
391511a29bacSmrg		     Syntax error
391611a29bacSmrg_ACEOF
391711a29bacSmrgif ac_fn_c_try_cpp "$LINENO"; then :
391811a29bacSmrg
391941b2f0bdSmrgelse
392011a29bacSmrg  # Broken: fails on valid input.
392111a29bacSmrgcontinue
392241b2f0bdSmrgfi
392311a29bacSmrgrm -f conftest.err conftest.i conftest.$ac_ext
392441b2f0bdSmrg
392511a29bacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
392611a29bacSmrg  # can be detected and how.
392711a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
392811a29bacSmrg/* end confdefs.h.  */
392911a29bacSmrg#include <ac_nonexistent.h>
393011a29bacSmrg_ACEOF
393111a29bacSmrgif ac_fn_c_try_cpp "$LINENO"; then :
393211a29bacSmrg  # Broken: success on invalid input.
393311a29bacSmrgcontinue
393441b2f0bdSmrgelse
393511a29bacSmrg  # Passes both tests.
393611a29bacSmrgac_preproc_ok=:
393711a29bacSmrgbreak
393811245024Smrgfi
393911a29bacSmrgrm -f conftest.err conftest.i conftest.$ac_ext
394011245024Smrg
394111a29bacSmrgdone
394211a29bacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
394311a29bacSmrgrm -f conftest.i conftest.err conftest.$ac_ext
394411a29bacSmrgif $ac_preproc_ok; then :
394511a29bacSmrg  break
394641b2f0bdSmrgfi
394711a29bacSmrg
394811a29bacSmrg    done
394911a29bacSmrg    ac_cv_prog_CPP=$CPP
395011a29bacSmrg
395141b2f0bdSmrgfi
395211a29bacSmrg  CPP=$ac_cv_prog_CPP
395311a29bacSmrgelse
395411a29bacSmrg  ac_cv_prog_CPP=$CPP
395541b2f0bdSmrgfi
395611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
395711a29bacSmrg$as_echo "$CPP" >&6; }
395811a29bacSmrgac_preproc_ok=false
395911a29bacSmrgfor ac_c_preproc_warn_flag in '' yes
396011a29bacSmrgdo
396111a29bacSmrg  # Use a header file that comes with gcc, so configuring glibc
396211a29bacSmrg  # with a fresh cross-compiler works.
396311a29bacSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
396411a29bacSmrg  # <limits.h> exists even on freestanding compilers.
396511a29bacSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
396611a29bacSmrg  # not just through cpp. "Syntax error" is here to catch this case.
396711a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
396811a29bacSmrg/* end confdefs.h.  */
396911a29bacSmrg#ifdef __STDC__
397011a29bacSmrg# include <limits.h>
397111a29bacSmrg#else
397211a29bacSmrg# include <assert.h>
397311a29bacSmrg#endif
397411a29bacSmrg		     Syntax error
397511a29bacSmrg_ACEOF
397611a29bacSmrgif ac_fn_c_try_cpp "$LINENO"; then :
397741b2f0bdSmrg
397841b2f0bdSmrgelse
397911a29bacSmrg  # Broken: fails on valid input.
398011a29bacSmrgcontinue
398141b2f0bdSmrgfi
398211a29bacSmrgrm -f conftest.err conftest.i conftest.$ac_ext
398311a29bacSmrg
398411a29bacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
398511a29bacSmrg  # can be detected and how.
398611a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
398711a29bacSmrg/* end confdefs.h.  */
398811a29bacSmrg#include <ac_nonexistent.h>
398911a29bacSmrg_ACEOF
399011a29bacSmrgif ac_fn_c_try_cpp "$LINENO"; then :
399111a29bacSmrg  # Broken: success on invalid input.
399211a29bacSmrgcontinue
399341b2f0bdSmrgelse
399411a29bacSmrg  # Passes both tests.
399511a29bacSmrgac_preproc_ok=:
399611a29bacSmrgbreak
399741b2f0bdSmrgfi
399811a29bacSmrgrm -f conftest.err conftest.i conftest.$ac_ext
399941b2f0bdSmrg
400011a29bacSmrgdone
400111a29bacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
400211a29bacSmrgrm -f conftest.i conftest.err conftest.$ac_ext
400311a29bacSmrgif $ac_preproc_ok; then :
400441b2f0bdSmrg
400541b2f0bdSmrgelse
400611a29bacSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
400711a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
400811a29bacSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
400911a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
401041b2f0bdSmrgfi
401141b2f0bdSmrg
401211a29bacSmrgac_ext=c
401311a29bacSmrgac_cpp='$CPP $CPPFLAGS'
401411a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
401511a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
401611a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
401741b2f0bdSmrg
401841b2f0bdSmrg
401911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
402011a29bacSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
402111a29bacSmrgif ${ac_cv_path_GREP+:} false; then :
402211a29bacSmrg  $as_echo_n "(cached) " >&6
402311a29bacSmrgelse
402411a29bacSmrg  if test -z "$GREP"; then
402511a29bacSmrg  ac_path_GREP_found=false
402611a29bacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
402711a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
402811a29bacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
402911a29bacSmrgdo
403011a29bacSmrg  IFS=$as_save_IFS
403111a29bacSmrg  test -z "$as_dir" && as_dir=.
403211a29bacSmrg    for ac_prog in grep ggrep; do
403311a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
403411a29bacSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
403511a29bacSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
403611a29bacSmrg# Check for GNU ac_path_GREP and select it if it is found.
403711a29bacSmrg  # Check for GNU $ac_path_GREP
403811a29bacSmrgcase `"$ac_path_GREP" --version 2>&1` in
403911a29bacSmrg*GNU*)
404011a29bacSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
404111a29bacSmrg*)
404211a29bacSmrg  ac_count=0
404311a29bacSmrg  $as_echo_n 0123456789 >"conftest.in"
404411a29bacSmrg  while :
404511a29bacSmrg  do
404611a29bacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
404711a29bacSmrg    mv "conftest.tmp" "conftest.in"
404811a29bacSmrg    cp "conftest.in" "conftest.nl"
404911a29bacSmrg    $as_echo 'GREP' >> "conftest.nl"
405011a29bacSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
405111a29bacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
405211a29bacSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
405311a29bacSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
405411a29bacSmrg      # Best one so far, save it but keep looking for a better one
405511a29bacSmrg      ac_cv_path_GREP="$ac_path_GREP"
405611a29bacSmrg      ac_path_GREP_max=$ac_count
405741b2f0bdSmrg    fi
405811a29bacSmrg    # 10*(2^10) chars as input seems more than enough
405911a29bacSmrg    test $ac_count -gt 10 && break
406011a29bacSmrg  done
406111a29bacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
406211245024Smrgesac
406311245024Smrg
406411a29bacSmrg      $ac_path_GREP_found && break 3
406511a29bacSmrg    done
406611a29bacSmrg  done
406711a29bacSmrg  done
406811a29bacSmrgIFS=$as_save_IFS
406911a29bacSmrg  if test -z "$ac_cv_path_GREP"; then
407011a29bacSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
407111a29bacSmrg  fi
407211a29bacSmrgelse
407311a29bacSmrg  ac_cv_path_GREP=$GREP
407411a29bacSmrgfi
407511a29bacSmrg
407611245024Smrgfi
407711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
407811a29bacSmrg$as_echo "$ac_cv_path_GREP" >&6; }
407911a29bacSmrg GREP="$ac_cv_path_GREP"
408011a29bacSmrg
408141b2f0bdSmrg
408211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
408311a29bacSmrg$as_echo_n "checking for egrep... " >&6; }
408411a29bacSmrgif ${ac_cv_path_EGREP+:} false; then :
408511a29bacSmrg  $as_echo_n "(cached) " >&6
408611a29bacSmrgelse
408711a29bacSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
408811a29bacSmrg   then ac_cv_path_EGREP="$GREP -E"
408911a29bacSmrg   else
409011a29bacSmrg     if test -z "$EGREP"; then
409111a29bacSmrg  ac_path_EGREP_found=false
409211a29bacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
409311a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
409411a29bacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
409511a29bacSmrgdo
409611a29bacSmrg  IFS=$as_save_IFS
409711a29bacSmrg  test -z "$as_dir" && as_dir=.
409811a29bacSmrg    for ac_prog in egrep; do
409911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
410011a29bacSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
410111a29bacSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
410211a29bacSmrg# Check for GNU ac_path_EGREP and select it if it is found.
410311a29bacSmrg  # Check for GNU $ac_path_EGREP
410411a29bacSmrgcase `"$ac_path_EGREP" --version 2>&1` in
410511a29bacSmrg*GNU*)
410611a29bacSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
410711a29bacSmrg*)
410811a29bacSmrg  ac_count=0
410911a29bacSmrg  $as_echo_n 0123456789 >"conftest.in"
411011a29bacSmrg  while :
411111a29bacSmrg  do
411211a29bacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
411311a29bacSmrg    mv "conftest.tmp" "conftest.in"
411411a29bacSmrg    cp "conftest.in" "conftest.nl"
411511a29bacSmrg    $as_echo 'EGREP' >> "conftest.nl"
411611a29bacSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
411711a29bacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
411811a29bacSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
411911a29bacSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
412011a29bacSmrg      # Best one so far, save it but keep looking for a better one
412111a29bacSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
412211a29bacSmrg      ac_path_EGREP_max=$ac_count
412311a29bacSmrg    fi
412411a29bacSmrg    # 10*(2^10) chars as input seems more than enough
412511a29bacSmrg    test $ac_count -gt 10 && break
412611a29bacSmrg  done
412711a29bacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
412811a29bacSmrgesac
412911245024Smrg
413011a29bacSmrg      $ac_path_EGREP_found && break 3
413111a29bacSmrg    done
413211a29bacSmrg  done
413311a29bacSmrg  done
413411a29bacSmrgIFS=$as_save_IFS
413511a29bacSmrg  if test -z "$ac_cv_path_EGREP"; then
413611a29bacSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
413711a29bacSmrg  fi
413811a29bacSmrgelse
413911a29bacSmrg  ac_cv_path_EGREP=$EGREP
414041b2f0bdSmrgfi
414111245024Smrg
414211a29bacSmrg   fi
414311a29bacSmrgfi
414411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
414511a29bacSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
414611a29bacSmrg EGREP="$ac_cv_path_EGREP"
414741b2f0bdSmrg
414841b2f0bdSmrg
414911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
415011a29bacSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
415111a29bacSmrgif ${ac_cv_header_stdc+:} false; then :
415211a29bacSmrg  $as_echo_n "(cached) " >&6
415311a29bacSmrgelse
415411a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
415541b2f0bdSmrg/* end confdefs.h.  */
415611a29bacSmrg#include <stdlib.h>
415711a29bacSmrg#include <stdarg.h>
415811a29bacSmrg#include <string.h>
415911a29bacSmrg#include <float.h>
416041b2f0bdSmrg
416141b2f0bdSmrgint
416241b2f0bdSmrgmain ()
416341b2f0bdSmrg{
416441b2f0bdSmrg
416541b2f0bdSmrg  ;
416641b2f0bdSmrg  return 0;
416741b2f0bdSmrg}
416841b2f0bdSmrg_ACEOF
416911a29bacSmrgif ac_fn_c_try_compile "$LINENO"; then :
417011a29bacSmrg  ac_cv_header_stdc=yes
417141b2f0bdSmrgelse
417211a29bacSmrg  ac_cv_header_stdc=no
417341b2f0bdSmrgfi
417411a29bacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
417511245024Smrg
417611a29bacSmrgif test $ac_cv_header_stdc = yes; then
417711a29bacSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
417811a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
417911a29bacSmrg/* end confdefs.h.  */
418011a29bacSmrg#include <string.h>
418141b2f0bdSmrg
418211a29bacSmrg_ACEOF
418311a29bacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
418411a29bacSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
418541b2f0bdSmrg
418611a29bacSmrgelse
418711a29bacSmrg  ac_cv_header_stdc=no
418811a29bacSmrgfi
418911a29bacSmrgrm -f conftest*
419041b2f0bdSmrg
419111a29bacSmrgfi
419241b2f0bdSmrg
419311a29bacSmrgif test $ac_cv_header_stdc = yes; then
419411a29bacSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
419511a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
419611a29bacSmrg/* end confdefs.h.  */
419711a29bacSmrg#include <stdlib.h>
419841b2f0bdSmrg
419911a29bacSmrg_ACEOF
420011a29bacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420111a29bacSmrg  $EGREP "free" >/dev/null 2>&1; then :
420241b2f0bdSmrg
420311a29bacSmrgelse
420411a29bacSmrg  ac_cv_header_stdc=no
420511a29bacSmrgfi
420611a29bacSmrgrm -f conftest*
420741b2f0bdSmrg
420811a29bacSmrgfi
420941b2f0bdSmrg
421011a29bacSmrgif test $ac_cv_header_stdc = yes; then
421111a29bacSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
421211a29bacSmrg  if test "$cross_compiling" = yes; then :
421311a29bacSmrg  :
421411a29bacSmrgelse
421511a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
421611a29bacSmrg/* end confdefs.h.  */
421711a29bacSmrg#include <ctype.h>
421811a29bacSmrg#include <stdlib.h>
421911a29bacSmrg#if ((' ' & 0x0FF) == 0x020)
422011a29bacSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
422111a29bacSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
422211a29bacSmrg#else
422311a29bacSmrg# define ISLOWER(c) \
422411a29bacSmrg		   (('a' <= (c) && (c) <= 'i') \
422511a29bacSmrg		     || ('j' <= (c) && (c) <= 'r') \
422611a29bacSmrg		     || ('s' <= (c) && (c) <= 'z'))
422711a29bacSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
422811a29bacSmrg#endif
422941b2f0bdSmrg
423011a29bacSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
423111a29bacSmrgint
423211a29bacSmrgmain ()
423311a29bacSmrg{
423411a29bacSmrg  int i;
423511a29bacSmrg  for (i = 0; i < 256; i++)
423611a29bacSmrg    if (XOR (islower (i), ISLOWER (i))
423711a29bacSmrg	|| toupper (i) != TOUPPER (i))
423811a29bacSmrg      return 2;
423911a29bacSmrg  return 0;
424011a29bacSmrg}
424111a29bacSmrg_ACEOF
424211a29bacSmrgif ac_fn_c_try_run "$LINENO"; then :
424341b2f0bdSmrg
424411a29bacSmrgelse
424511a29bacSmrg  ac_cv_header_stdc=no
424611a29bacSmrgfi
424711a29bacSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
424811a29bacSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
424911a29bacSmrgfi
425041b2f0bdSmrg
425111a29bacSmrgfi
425211a29bacSmrgfi
425311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
425411a29bacSmrg$as_echo "$ac_cv_header_stdc" >&6; }
425511a29bacSmrgif test $ac_cv_header_stdc = yes; then
425641b2f0bdSmrg
425711a29bacSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
425841b2f0bdSmrg
425911a29bacSmrgfi
426041b2f0bdSmrg
426111a29bacSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
426211a29bacSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
426311a29bacSmrg		  inttypes.h stdint.h unistd.h
426411a29bacSmrgdo :
426511a29bacSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
426611a29bacSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
426711a29bacSmrg"
426811a29bacSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
426911a29bacSmrg  cat >>confdefs.h <<_ACEOF
427011a29bacSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
427111a29bacSmrg_ACEOF
427241b2f0bdSmrg
427311a29bacSmrgfi
427441b2f0bdSmrg
427511a29bacSmrgdone
427641b2f0bdSmrg
427741b2f0bdSmrg
427841b2f0bdSmrg
427911a29bacSmrg
428011a29bacSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
428111a29bacSmrg	if test -n "$ac_tool_prefix"; then
428211a29bacSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
428311a29bacSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
428411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
428511a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
428611a29bacSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
428711a29bacSmrg  $as_echo_n "(cached) " >&6
428811a29bacSmrgelse
428911a29bacSmrg  case $PKG_CONFIG in
429011a29bacSmrg  [\\/]* | ?:[\\/]*)
429111a29bacSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
429211a29bacSmrg  ;;
429341b2f0bdSmrg  *)
429411a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
429511a29bacSmrgfor as_dir in $PATH
429611a29bacSmrgdo
429711a29bacSmrg  IFS=$as_save_IFS
429811a29bacSmrg  test -z "$as_dir" && as_dir=.
429911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
430011a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
430111a29bacSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
430211a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
430311a29bacSmrg    break 2
430411a29bacSmrg  fi
430511a29bacSmrgdone
430611a29bacSmrg  done
430711a29bacSmrgIFS=$as_save_IFS
430811a29bacSmrg
430911a29bacSmrg  ;;
431041b2f0bdSmrgesac
431111a29bacSmrgfi
431211a29bacSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
431311a29bacSmrgif test -n "$PKG_CONFIG"; then
431411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
431511a29bacSmrg$as_echo "$PKG_CONFIG" >&6; }
431611a29bacSmrgelse
431711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
431811a29bacSmrg$as_echo "no" >&6; }
431911a29bacSmrgfi
432041b2f0bdSmrg
432141b2f0bdSmrg
432211a29bacSmrgfi
432311a29bacSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
432411a29bacSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
432511a29bacSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
432611a29bacSmrgset dummy pkg-config; ac_word=$2
432711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
432811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
432911a29bacSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
433011a29bacSmrg  $as_echo_n "(cached) " >&6
433111a29bacSmrgelse
433211a29bacSmrg  case $ac_pt_PKG_CONFIG in
433311a29bacSmrg  [\\/]* | ?:[\\/]*)
433411a29bacSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
433511a29bacSmrg  ;;
433611a29bacSmrg  *)
433711a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
433811a29bacSmrgfor as_dir in $PATH
433911a29bacSmrgdo
434011a29bacSmrg  IFS=$as_save_IFS
434111a29bacSmrg  test -z "$as_dir" && as_dir=.
434211a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
434311a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
434411a29bacSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
434511a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
434611a29bacSmrg    break 2
434711a29bacSmrg  fi
434811a29bacSmrgdone
434911a29bacSmrg  done
435011a29bacSmrgIFS=$as_save_IFS
435141b2f0bdSmrg
435211a29bacSmrg  ;;
435311a29bacSmrgesac
435411a29bacSmrgfi
435511a29bacSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
435611a29bacSmrgif test -n "$ac_pt_PKG_CONFIG"; then
435711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
435811a29bacSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
435911a29bacSmrgelse
436011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
436111a29bacSmrg$as_echo "no" >&6; }
436211a29bacSmrgfi
436341b2f0bdSmrg
436411a29bacSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
436511a29bacSmrg    PKG_CONFIG=""
436611a29bacSmrg  else
436711a29bacSmrg    case $cross_compiling:$ac_tool_warned in
436811a29bacSmrgyes:)
436911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
437011a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
437111a29bacSmrgac_tool_warned=yes ;;
437211a29bacSmrgesac
437311a29bacSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
437411a29bacSmrg  fi
437511a29bacSmrgelse
437611a29bacSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
437711a29bacSmrgfi
437841b2f0bdSmrg
437911a29bacSmrgfi
438011a29bacSmrgif test -n "$PKG_CONFIG"; then
438111a29bacSmrg	_pkg_min_version=0.9.0
438211a29bacSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
438311a29bacSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
438411a29bacSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
438511a29bacSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
438611a29bacSmrg$as_echo "yes" >&6; }
438711a29bacSmrg	else
438811a29bacSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
438911a29bacSmrg$as_echo "no" >&6; }
439011a29bacSmrg		PKG_CONFIG=""
439111a29bacSmrg	fi
439211a29bacSmrg
439311a29bacSmrgfi
439411a29bacSmrg# Make sure we can run config.sub.
439511a29bacSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
439611a29bacSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
439711a29bacSmrg
439811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
439911a29bacSmrg$as_echo_n "checking build system type... " >&6; }
440011a29bacSmrgif ${ac_cv_build+:} false; then :
440111a29bacSmrg  $as_echo_n "(cached) " >&6
440211a29bacSmrgelse
440311a29bacSmrg  ac_build_alias=$build_alias
440411a29bacSmrgtest "x$ac_build_alias" = x &&
440511a29bacSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
440611a29bacSmrgtest "x$ac_build_alias" = x &&
440711a29bacSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
440811a29bacSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
440911a29bacSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
441041b2f0bdSmrg
441111a29bacSmrgfi
441211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
441311a29bacSmrg$as_echo "$ac_cv_build" >&6; }
441411a29bacSmrgcase $ac_cv_build in
441511a29bacSmrg*-*-*) ;;
441611a29bacSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
441711a29bacSmrgesac
441811a29bacSmrgbuild=$ac_cv_build
441911a29bacSmrgac_save_IFS=$IFS; IFS='-'
442011a29bacSmrgset x $ac_cv_build
442111a29bacSmrgshift
442211a29bacSmrgbuild_cpu=$1
442311a29bacSmrgbuild_vendor=$2
442411a29bacSmrgshift; shift
442511a29bacSmrg# Remember, the first character of IFS is used to create $*,
442611a29bacSmrg# except with old shells:
442711a29bacSmrgbuild_os=$*
442811a29bacSmrgIFS=$ac_save_IFS
442911a29bacSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
443041b2f0bdSmrg
443141b2f0bdSmrg
443211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
443311a29bacSmrg$as_echo_n "checking host system type... " >&6; }
443411a29bacSmrgif ${ac_cv_host+:} false; then :
443511a29bacSmrg  $as_echo_n "(cached) " >&6
443611a29bacSmrgelse
443711a29bacSmrg  if test "x$host_alias" = x; then
443811a29bacSmrg  ac_cv_host=$ac_cv_build
443941b2f0bdSmrgelse
444011a29bacSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
444111a29bacSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
444241b2f0bdSmrgfi
444341b2f0bdSmrg
444411245024Smrgfi
444511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
444611a29bacSmrg$as_echo "$ac_cv_host" >&6; }
444711a29bacSmrgcase $ac_cv_host in
444811a29bacSmrg*-*-*) ;;
444911a29bacSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
445011a29bacSmrgesac
445111a29bacSmrghost=$ac_cv_host
445211a29bacSmrgac_save_IFS=$IFS; IFS='-'
445311a29bacSmrgset x $ac_cv_host
445411a29bacSmrgshift
445511a29bacSmrghost_cpu=$1
445611a29bacSmrghost_vendor=$2
445711a29bacSmrgshift; shift
445811a29bacSmrg# Remember, the first character of IFS is used to create $*,
445911a29bacSmrg# except with old shells:
446011a29bacSmrghost_os=$*
446111a29bacSmrgIFS=$ac_save_IFS
446211a29bacSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
446311245024Smrg
446441b2f0bdSmrg
446511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
446611a29bacSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
446711a29bacSmrgif ${ac_cv_path_SED+:} false; then :
446811a29bacSmrg  $as_echo_n "(cached) " >&6
446911a29bacSmrgelse
447011a29bacSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
447111a29bacSmrg     for ac_i in 1 2 3 4 5 6 7; do
447211a29bacSmrg       ac_script="$ac_script$as_nl$ac_script"
447311a29bacSmrg     done
447411a29bacSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
447511a29bacSmrg     { ac_script=; unset ac_script;}
447611a29bacSmrg     if test -z "$SED"; then
447711a29bacSmrg  ac_path_SED_found=false
447811a29bacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
447911a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
448011a29bacSmrgfor as_dir in $PATH
448111a29bacSmrgdo
448211a29bacSmrg  IFS=$as_save_IFS
448311a29bacSmrg  test -z "$as_dir" && as_dir=.
448411a29bacSmrg    for ac_prog in sed gsed; do
448511a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
448611a29bacSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
448711a29bacSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
448811a29bacSmrg# Check for GNU ac_path_SED and select it if it is found.
448911a29bacSmrg  # Check for GNU $ac_path_SED
449011a29bacSmrgcase `"$ac_path_SED" --version 2>&1` in
449111a29bacSmrg*GNU*)
449211a29bacSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
449311a29bacSmrg*)
449411a29bacSmrg  ac_count=0
449511a29bacSmrg  $as_echo_n 0123456789 >"conftest.in"
449611a29bacSmrg  while :
449711a29bacSmrg  do
449811a29bacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
449911a29bacSmrg    mv "conftest.tmp" "conftest.in"
450011a29bacSmrg    cp "conftest.in" "conftest.nl"
450111a29bacSmrg    $as_echo '' >> "conftest.nl"
450211a29bacSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
450311a29bacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
450411a29bacSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
450511a29bacSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
450611a29bacSmrg      # Best one so far, save it but keep looking for a better one
450711a29bacSmrg      ac_cv_path_SED="$ac_path_SED"
450811a29bacSmrg      ac_path_SED_max=$ac_count
450911245024Smrg    fi
451011a29bacSmrg    # 10*(2^10) chars as input seems more than enough
451111a29bacSmrg    test $ac_count -gt 10 && break
451211a29bacSmrg  done
451311a29bacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
451411a29bacSmrgesac
451511245024Smrg
451611a29bacSmrg      $ac_path_SED_found && break 3
451711a29bacSmrg    done
451811a29bacSmrg  done
451911a29bacSmrg  done
452011a29bacSmrgIFS=$as_save_IFS
452111a29bacSmrg  if test -z "$ac_cv_path_SED"; then
452211a29bacSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
452311a29bacSmrg  fi
452411a29bacSmrgelse
452511a29bacSmrg  ac_cv_path_SED=$SED
452611a29bacSmrgfi
452711245024Smrg
452811a29bacSmrgfi
452911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
453011a29bacSmrg$as_echo "$ac_cv_path_SED" >&6; }
453111a29bacSmrg SED="$ac_cv_path_SED"
453211a29bacSmrg  rm -f conftest.sed
453341b2f0bdSmrg
453441b2f0bdSmrg
453541b2f0bdSmrg
453641b2f0bdSmrg
453741b2f0bdSmrg
453811a29bacSmrgif  test "x$GCC" = xyes ; then
453911a29bacSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
454011a29bacSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
454111a29bacSmrg-Wbad-function-cast -Wformat=2"
454211a29bacSmrg    case `$CC -dumpversion` in
454311a29bacSmrg    3.4.* | 4.*)
454411a29bacSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
454541b2f0bdSmrg	;;
454641b2f0bdSmrg    esac
454711a29bacSmrgelse
454811a29bacSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
454911a29bacSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
455011a29bacSmrg  SUNCC="yes"
455111a29bacSmrgelse
455211a29bacSmrg  SUNCC="no"
455311a29bacSmrgfi
455441b2f0bdSmrg
455511a29bacSmrg    if test "x$SUNCC" = "xyes"; then
455611a29bacSmrg	CWARNFLAGS="-v"
455711a29bacSmrg    fi
455811a29bacSmrgfi
455941b2f0bdSmrg
456041b2f0bdSmrg
456141b2f0bdSmrg
456211a29bacSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
456311a29bacSmrg
456411a29bacSmrg
456541b2f0bdSmrg
456611a29bacSmrg# Check whether --enable-strict-compilation was given.
456711a29bacSmrgif test "${enable_strict_compilation+set}" = set; then :
456811a29bacSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
456941b2f0bdSmrgelse
457011a29bacSmrg  STRICT_COMPILE=no
457141b2f0bdSmrgfi
457241b2f0bdSmrg
457311a29bacSmrgif test "x$STRICT_COMPILE" = "xyes"; then
457411a29bacSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
457511a29bacSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
457611a29bacSmrg  SUNCC="yes"
457711a29bacSmrgelse
457811a29bacSmrg  SUNCC="no"
457941b2f0bdSmrgfi
458041b2f0bdSmrg
458111a29bacSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
458211a29bacSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
458311a29bacSmrg  INTELCC="yes"
458441b2f0bdSmrgelse
458511a29bacSmrg  INTELCC="no"
458641b2f0bdSmrgfi
458741b2f0bdSmrg
458811a29bacSmrg	if test "x$GCC" = xyes ; then
458911a29bacSmrg		STRICT_CFLAGS="-pedantic -Werror"
459011a29bacSmrg	elif test "x$SUNCC" = "xyes"; then
459111a29bacSmrg		STRICT_CFLAGS="-errwarn"
459211a29bacSmrg    elif test "x$INTELCC" = "xyes"; then
459311a29bacSmrg		STRICT_CFLAGS="-Werror"
459411a29bacSmrg	fi
459541b2f0bdSmrgfi
459611a29bacSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
459741b2f0bdSmrg
459841b2f0bdSmrg
459941b2f0bdSmrg
460041b2f0bdSmrg
460111a29bacSmrgcat >>confdefs.h <<_ACEOF
460211a29bacSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
460311a29bacSmrg_ACEOF
460441b2f0bdSmrg
460511a29bacSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
460611a29bacSmrg	if test "x$PVM" = "x"; then
460711a29bacSmrg		PVM="0"
460811a29bacSmrg	fi
460941b2f0bdSmrg
461011a29bacSmrgcat >>confdefs.h <<_ACEOF
461111a29bacSmrg#define PACKAGE_VERSION_MINOR $PVM
461211a29bacSmrg_ACEOF
461341b2f0bdSmrg
461411a29bacSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
461511a29bacSmrg	if test "x$PVP" = "x"; then
461611a29bacSmrg		PVP="0"
461711a29bacSmrg	fi
461841b2f0bdSmrg
461911a29bacSmrgcat >>confdefs.h <<_ACEOF
462011a29bacSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
462111a29bacSmrg_ACEOF
462241b2f0bdSmrg
462341b2f0bdSmrg
462441b2f0bdSmrg
462511a29bacSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
462611a29bacSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
462711a29bacSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
462811a29bacSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
462941b2f0bdSmrg
463041b2f0bdSmrg
463111245024Smrg
463241b2f0bdSmrg
463311a29bacSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
463411a29bacSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
463511a29bacSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
463611a29bacSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
463711a29bacSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
463841b2f0bdSmrg
463941b2f0bdSmrg
464041b2f0bdSmrg
464111a29bacSmrg
464211a29bacSmrg
464311a29bacSmrg
464411a29bacSmrgif test x$APP_MAN_SUFFIX = x    ; then
464511a29bacSmrg    APP_MAN_SUFFIX=1
464611a29bacSmrgfi
464711a29bacSmrgif test x$APP_MAN_DIR = x    ; then
464811a29bacSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
464911a29bacSmrgfi
465011a29bacSmrg
465111a29bacSmrgif test x$LIB_MAN_SUFFIX = x    ; then
465211a29bacSmrg    LIB_MAN_SUFFIX=3
465311a29bacSmrgfi
465411a29bacSmrgif test x$LIB_MAN_DIR = x    ; then
465511a29bacSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
465611a29bacSmrgfi
465711a29bacSmrg
465811a29bacSmrgif test x$FILE_MAN_SUFFIX = x    ; then
465941b2f0bdSmrg    case $host_os in
466011a29bacSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
466111a29bacSmrg	*)		FILE_MAN_SUFFIX=5  ;;
466241b2f0bdSmrg    esac
466311a29bacSmrgfi
466411a29bacSmrgif test x$FILE_MAN_DIR = x    ; then
466511a29bacSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
466611a29bacSmrgfi
466711a29bacSmrg
466811a29bacSmrgif test x$MISC_MAN_SUFFIX = x    ; then
466911a29bacSmrg    case $host_os in
467011a29bacSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
467111a29bacSmrg	*)		MISC_MAN_SUFFIX=7  ;;
467211a29bacSmrg    esac
467311a29bacSmrgfi
467411a29bacSmrgif test x$MISC_MAN_DIR = x    ; then
467511a29bacSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
467611a29bacSmrgfi
467711a29bacSmrg
467811a29bacSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
467911a29bacSmrg    case $host_os in
468011a29bacSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
468111a29bacSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
468211a29bacSmrg    esac
468311a29bacSmrgfi
468411a29bacSmrgif test x$DRIVER_MAN_DIR = x    ; then
468511a29bacSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
468611a29bacSmrgfi
468741b2f0bdSmrg
468811a29bacSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
468911a29bacSmrg    case $host_os in
469011a29bacSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
469111a29bacSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
469211a29bacSmrg    esac
469311a29bacSmrgfi
469411a29bacSmrgif test x$ADMIN_MAN_DIR = x    ; then
469511a29bacSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
469611a29bacSmrgfi
469741b2f0bdSmrg
469841b2f0bdSmrg
469941b2f0bdSmrg
470041b2f0bdSmrg
470141b2f0bdSmrg
470241b2f0bdSmrg
470341b2f0bdSmrg
470411245024Smrg
470541b2f0bdSmrg
470641b2f0bdSmrg
470741b2f0bdSmrg
470841b2f0bdSmrg
470941b2f0bdSmrg
471041b2f0bdSmrg
471141b2f0bdSmrg
471211a29bacSmrgXORG_MAN_PAGE="X Version 11"
471311a29bacSmrg
471411a29bacSmrgMAN_SUBSTS="\
471511a29bacSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
471611a29bacSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
471711a29bacSmrg	-e 's|__xservername__|Xorg|g' \
471811a29bacSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
471911a29bacSmrg	-e 's|__projectroot__|\$(prefix)|g' \
472011a29bacSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
472111a29bacSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
472211a29bacSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
472311a29bacSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
472411a29bacSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
472511a29bacSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
472611a29bacSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
472711a29bacSmrg
472811a29bacSmrg
472911a29bacSmrg
473011a29bacSmrg# Check whether --enable-silent-rules was given.
473111a29bacSmrgif test "${enable_silent_rules+set}" = set; then :
473211a29bacSmrg  enableval=$enable_silent_rules;
473311a29bacSmrgfi
473411a29bacSmrg
473511a29bacSmrgcase $enable_silent_rules in
473611a29bacSmrgyes) AM_DEFAULT_VERBOSITY=0;;
473711a29bacSmrgno)  AM_DEFAULT_VERBOSITY=1;;
473811a29bacSmrg*)   AM_DEFAULT_VERBOSITY=0;;
473911a29bacSmrgesac
474011a29bacSmrgAM_BACKSLASH='\'
474111a29bacSmrg
474211a29bacSmrg
474311a29bacSmrg
474411a29bacSmrg# Check for progs
474511a29bacSmrgcase `pwd` in
474611a29bacSmrg  *\ * | *\	*)
474711a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
474811a29bacSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
474911a29bacSmrgesac
475011a29bacSmrg
475111a29bacSmrg
475211a29bacSmrg
475311a29bacSmrgmacro_version='2.2.10'
475411a29bacSmrgmacro_revision='1.3175'
475511a29bacSmrg
475611a29bacSmrg
475741b2f0bdSmrg
475841b2f0bdSmrg
475941b2f0bdSmrg
476041b2f0bdSmrg
476141b2f0bdSmrg
476241b2f0bdSmrg
476341b2f0bdSmrg
476441b2f0bdSmrg
476541b2f0bdSmrg
476641b2f0bdSmrg
476741b2f0bdSmrg
476811a29bacSmrgltmain="$ac_aux_dir/ltmain.sh"
476911245024Smrg
477011a29bacSmrg# Backslashify metacharacters that are still active within
477111a29bacSmrg# double-quoted strings.
477211a29bacSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
477341b2f0bdSmrg
477411a29bacSmrg# Same as above, but do not quote variable references.
477511a29bacSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
477641b2f0bdSmrg
477711a29bacSmrg# Sed substitution to delay expansion of an escaped shell variable in a
477811a29bacSmrg# double_quote_subst'ed string.
477911a29bacSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
478041b2f0bdSmrg
478111a29bacSmrg# Sed substitution to delay expansion of an escaped single quote.
478211a29bacSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
478341b2f0bdSmrg
478411a29bacSmrg# Sed substitution to avoid accidental globbing in evaled expressions
478511a29bacSmrgno_glob_subst='s/\*/\\\*/g'
478611a29bacSmrg
478711a29bacSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
478811a29bacSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
478911a29bacSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
479011a29bacSmrg
479111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
479211a29bacSmrg$as_echo_n "checking how to print strings... " >&6; }
479311a29bacSmrg# Test print first, because it will be a builtin if present.
479411a29bacSmrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \
479511a29bacSmrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
479611a29bacSmrg  ECHO='print -r --'
479711a29bacSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
479811a29bacSmrg  ECHO='printf %s\n'
479911a29bacSmrgelse
480011a29bacSmrg  # Use this function as a fallback that always works.
480111a29bacSmrg  func_fallback_echo ()
480211a29bacSmrg  {
480311a29bacSmrg    eval 'cat <<_LTECHO_EOF
480411a29bacSmrg$1
480511a29bacSmrg_LTECHO_EOF'
480611a29bacSmrg  }
480711a29bacSmrg  ECHO='func_fallback_echo'
480811a29bacSmrgfi
480911a29bacSmrg
481011a29bacSmrg# func_echo_all arg...
481111a29bacSmrg# Invoke $ECHO with all args, space-separated.
481211a29bacSmrgfunc_echo_all ()
481311a29bacSmrg{
481411a29bacSmrg    $ECHO ""
481511a29bacSmrg}
481611a29bacSmrg
481711a29bacSmrgcase "$ECHO" in
481811a29bacSmrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
481911a29bacSmrg$as_echo "printf" >&6; } ;;
482011a29bacSmrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
482111a29bacSmrg$as_echo "print -r" >&6; } ;;
482211a29bacSmrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
482311a29bacSmrg$as_echo "cat" >&6; } ;;
482411a29bacSmrgesac
482511a29bacSmrg
482611a29bacSmrg
482711a29bacSmrg
482811a29bacSmrg
482911a29bacSmrg
483011a29bacSmrg
483111a29bacSmrg
483211a29bacSmrg
483311a29bacSmrg
483411a29bacSmrg
483511a29bacSmrg
483611a29bacSmrg
483711a29bacSmrg
483811a29bacSmrg
483911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
484011a29bacSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
484111a29bacSmrgif ${ac_cv_path_SED+:} false; then :
484211a29bacSmrg  $as_echo_n "(cached) " >&6
484311a29bacSmrgelse
484411a29bacSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
484511a29bacSmrg     for ac_i in 1 2 3 4 5 6 7; do
484611a29bacSmrg       ac_script="$ac_script$as_nl$ac_script"
484711a29bacSmrg     done
484811a29bacSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
484911a29bacSmrg     { ac_script=; unset ac_script;}
485011a29bacSmrg     if test -z "$SED"; then
485111a29bacSmrg  ac_path_SED_found=false
485211a29bacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
485311a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
485411a29bacSmrgfor as_dir in $PATH
485511a29bacSmrgdo
485611a29bacSmrg  IFS=$as_save_IFS
485711a29bacSmrg  test -z "$as_dir" && as_dir=.
485811a29bacSmrg    for ac_prog in sed gsed; do
485911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
486011a29bacSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
486111a29bacSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
486211a29bacSmrg# Check for GNU ac_path_SED and select it if it is found.
486311a29bacSmrg  # Check for GNU $ac_path_SED
486411a29bacSmrgcase `"$ac_path_SED" --version 2>&1` in
486511a29bacSmrg*GNU*)
486611a29bacSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
486711a29bacSmrg*)
486811a29bacSmrg  ac_count=0
486911a29bacSmrg  $as_echo_n 0123456789 >"conftest.in"
487011a29bacSmrg  while :
487111a29bacSmrg  do
487211a29bacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
487311a29bacSmrg    mv "conftest.tmp" "conftest.in"
487411a29bacSmrg    cp "conftest.in" "conftest.nl"
487511a29bacSmrg    $as_echo '' >> "conftest.nl"
487611a29bacSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
487711a29bacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
487811a29bacSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
487911a29bacSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
488011a29bacSmrg      # Best one so far, save it but keep looking for a better one
488111a29bacSmrg      ac_cv_path_SED="$ac_path_SED"
488211a29bacSmrg      ac_path_SED_max=$ac_count
488311a29bacSmrg    fi
488411a29bacSmrg    # 10*(2^10) chars as input seems more than enough
488511a29bacSmrg    test $ac_count -gt 10 && break
488611a29bacSmrg  done
488711a29bacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
488811a29bacSmrgesac
488911a29bacSmrg
489011a29bacSmrg      $ac_path_SED_found && break 3
489111a29bacSmrg    done
489211a29bacSmrg  done
489311a29bacSmrg  done
489411a29bacSmrgIFS=$as_save_IFS
489511a29bacSmrg  if test -z "$ac_cv_path_SED"; then
489611a29bacSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
489741b2f0bdSmrg  fi
489811a29bacSmrgelse
489911a29bacSmrg  ac_cv_path_SED=$SED
490011a29bacSmrgfi
490111a29bacSmrg
490211a29bacSmrgfi
490311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
490411a29bacSmrg$as_echo "$ac_cv_path_SED" >&6; }
490511a29bacSmrg SED="$ac_cv_path_SED"
490611a29bacSmrg  rm -f conftest.sed
490711a29bacSmrg
490811a29bacSmrgtest -z "$SED" && SED=sed
490911a29bacSmrgXsed="$SED -e 1s/^X//"
491011a29bacSmrg
491111a29bacSmrg
491211a29bacSmrg
491311a29bacSmrg
491411a29bacSmrg
491541b2f0bdSmrg
491641b2f0bdSmrg
491711a29bacSmrg
491811a29bacSmrg
491911a29bacSmrg
492011a29bacSmrg
492111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
492211a29bacSmrg$as_echo_n "checking for fgrep... " >&6; }
492311a29bacSmrgif ${ac_cv_path_FGREP+:} false; then :
492411a29bacSmrg  $as_echo_n "(cached) " >&6
492511a29bacSmrgelse
492611a29bacSmrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
492711a29bacSmrg   then ac_cv_path_FGREP="$GREP -F"
492811a29bacSmrg   else
492911a29bacSmrg     if test -z "$FGREP"; then
493011a29bacSmrg  ac_path_FGREP_found=false
493111a29bacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
493211a29bacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
493311a29bacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
493411a29bacSmrgdo
493511a29bacSmrg  IFS=$as_save_IFS
493611a29bacSmrg  test -z "$as_dir" && as_dir=.
493711a29bacSmrg    for ac_prog in fgrep; do
493811a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
493911a29bacSmrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
494011a29bacSmrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
494111a29bacSmrg# Check for GNU ac_path_FGREP and select it if it is found.
494211a29bacSmrg  # Check for GNU $ac_path_FGREP
494311a29bacSmrgcase `"$ac_path_FGREP" --version 2>&1` in
494411a29bacSmrg*GNU*)
494511a29bacSmrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
494641b2f0bdSmrg*)
494711a29bacSmrg  ac_count=0
494811a29bacSmrg  $as_echo_n 0123456789 >"conftest.in"
494911a29bacSmrg  while :
495011a29bacSmrg  do
495111a29bacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
495211a29bacSmrg    mv "conftest.tmp" "conftest.in"
495311a29bacSmrg    cp "conftest.in" "conftest.nl"
495411a29bacSmrg    $as_echo 'FGREP' >> "conftest.nl"
495511a29bacSmrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
495611a29bacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
495711a29bacSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
495811a29bacSmrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
495911a29bacSmrg      # Best one so far, save it but keep looking for a better one
496011a29bacSmrg      ac_cv_path_FGREP="$ac_path_FGREP"
496111a29bacSmrg      ac_path_FGREP_max=$ac_count
496211a29bacSmrg    fi
496311a29bacSmrg    # 10*(2^10) chars as input seems more than enough
496411a29bacSmrg    test $ac_count -gt 10 && break
496511a29bacSmrg  done
496611a29bacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
496741b2f0bdSmrgesac
496841b2f0bdSmrg
496911a29bacSmrg      $ac_path_FGREP_found && break 3
497011a29bacSmrg    done
497111a29bacSmrg  done
497211a29bacSmrg  done
497311a29bacSmrgIFS=$as_save_IFS
497411a29bacSmrg  if test -z "$ac_cv_path_FGREP"; then
497511a29bacSmrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
497611a29bacSmrg  fi
497711245024Smrgelse
497811a29bacSmrg  ac_cv_path_FGREP=$FGREP
497911245024Smrgfi
498011245024Smrg
498111a29bacSmrg   fi
498211245024Smrgfi
498311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
498411a29bacSmrg$as_echo "$ac_cv_path_FGREP" >&6; }
498511a29bacSmrg FGREP="$ac_cv_path_FGREP"
498611245024Smrg
498711245024Smrg
498811a29bacSmrgtest -z "$GREP" && GREP=grep
498941b2f0bdSmrg
499041b2f0bdSmrg
499141b2f0bdSmrg
499241b2f0bdSmrg
499341b2f0bdSmrg
499441b2f0bdSmrg
499541b2f0bdSmrg
499641b2f0bdSmrg
499741b2f0bdSmrg
499841b2f0bdSmrg
499941b2f0bdSmrg
500041b2f0bdSmrg
500141b2f0bdSmrg
500241b2f0bdSmrg
500341b2f0bdSmrg
500441b2f0bdSmrg
500541b2f0bdSmrg
500641b2f0bdSmrg
500741b2f0bdSmrg
500811a29bacSmrg# Check whether --with-gnu-ld was given.
500911a29bacSmrgif test "${with_gnu_ld+set}" = set; then :
501011a29bacSmrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
501111a29bacSmrgelse
501211a29bacSmrg  with_gnu_ld=no
501311a29bacSmrgfi
501441b2f0bdSmrg
501511a29bacSmrgac_prog=ld
501611a29bacSmrgif test "$GCC" = yes; then
501711a29bacSmrg  # Check if gcc -print-prog-name=ld gives a path.
501811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
501911a29bacSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
502011a29bacSmrg  case $host in
502111a29bacSmrg  *-*-mingw*)
502211a29bacSmrg    # gcc leaves a trailing carriage return which upsets mingw
502311a29bacSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
502411a29bacSmrg  *)
502511a29bacSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
502611a29bacSmrg  esac
502711a29bacSmrg  case $ac_prog in
502811a29bacSmrg    # Accept absolute paths.
502911a29bacSmrg    [\\/]* | ?:[\\/]*)
503011a29bacSmrg      re_direlt='/[^/][^/]*/\.\./'
503111a29bacSmrg      # Canonicalize the pathname of ld
503211a29bacSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
503311a29bacSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
503411a29bacSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
503511a29bacSmrg      done
503611a29bacSmrg      test -z "$LD" && LD="$ac_prog"
503711a29bacSmrg      ;;
503811a29bacSmrg  "")
503911a29bacSmrg    # If it fails, then pretend we aren't using GCC.
504011a29bacSmrg    ac_prog=ld
504111a29bacSmrg    ;;
504211a29bacSmrg  *)
504311a29bacSmrg    # If it is relative, then search for the first ld in PATH.
504411a29bacSmrg    with_gnu_ld=unknown
504511a29bacSmrg    ;;
504611a29bacSmrg  esac
504711a29bacSmrgelif test "$with_gnu_ld" = yes; then
504811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
504911a29bacSmrg$as_echo_n "checking for GNU ld... " >&6; }
505011a29bacSmrgelse
505111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
505211a29bacSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
505311a29bacSmrgfi
505411a29bacSmrgif ${lt_cv_path_LD+:} false; then :
505511a29bacSmrg  $as_echo_n "(cached) " >&6
505611a29bacSmrgelse
505711a29bacSmrg  if test -z "$LD"; then
505811a29bacSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
505911a29bacSmrg  for ac_dir in $PATH; do
506011a29bacSmrg    IFS="$lt_save_ifs"
506111a29bacSmrg    test -z "$ac_dir" && ac_dir=.
506211a29bacSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
506311a29bacSmrg      lt_cv_path_LD="$ac_dir/$ac_prog"
506411a29bacSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
506511a29bacSmrg      # but apparently some variants of GNU ld only accept -v.
506611a29bacSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
506711a29bacSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
506811a29bacSmrg      *GNU* | *'with BFD'*)
506911a29bacSmrg	test "$with_gnu_ld" != no && break
507011a29bacSmrg	;;
507111a29bacSmrg      *)
507211a29bacSmrg	test "$with_gnu_ld" != yes && break
507311a29bacSmrg	;;
507411a29bacSmrg      esac
507511a29bacSmrg    fi
507611a29bacSmrg  done
507711a29bacSmrg  IFS="$lt_save_ifs"
507811a29bacSmrgelse
507911a29bacSmrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
508011a29bacSmrgfi
508111a29bacSmrgfi
508211a29bacSmrg
508311a29bacSmrgLD="$lt_cv_path_LD"
508411a29bacSmrgif test -n "$LD"; then
508511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
508611a29bacSmrg$as_echo "$LD" >&6; }
508711a29bacSmrgelse
508811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
508911a29bacSmrg$as_echo "no" >&6; }
509011a29bacSmrgfi
509111a29bacSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
509211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
509311a29bacSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
509411a29bacSmrgif ${lt_cv_prog_gnu_ld+:} false; then :
509511a29bacSmrg  $as_echo_n "(cached) " >&6
509611a29bacSmrgelse
509711a29bacSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
509811a29bacSmrgcase `$LD -v 2>&1 </dev/null` in
509911a29bacSmrg*GNU* | *'with BFD'*)
510011a29bacSmrg  lt_cv_prog_gnu_ld=yes
510111a29bacSmrg  ;;
510211a29bacSmrg*)
510311a29bacSmrg  lt_cv_prog_gnu_ld=no
510411a29bacSmrg  ;;
510511a29bacSmrgesac
510611a29bacSmrgfi
510711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
510811a29bacSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
510911a29bacSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
511011a29bacSmrg
511111a29bacSmrg
511211a29bacSmrg
511311a29bacSmrg
511411a29bacSmrg
511511a29bacSmrg
511611a29bacSmrg
511711a29bacSmrg
511811a29bacSmrg
511911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
512011a29bacSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
512111a29bacSmrgif ${lt_cv_path_NM+:} false; then :
512211a29bacSmrg  $as_echo_n "(cached) " >&6
512311a29bacSmrgelse
512411a29bacSmrg  if test -n "$NM"; then
512511a29bacSmrg  # Let the user override the test.
512611a29bacSmrg  lt_cv_path_NM="$NM"
512711a29bacSmrgelse
512811a29bacSmrg  lt_nm_to_check="${ac_tool_prefix}nm"
512911a29bacSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
513011a29bacSmrg    lt_nm_to_check="$lt_nm_to_check nm"
513111a29bacSmrg  fi
513211a29bacSmrg  for lt_tmp_nm in $lt_nm_to_check; do
513311a29bacSmrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
513411a29bacSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
513511a29bacSmrg      IFS="$lt_save_ifs"
513611a29bacSmrg      test -z "$ac_dir" && ac_dir=.
513711a29bacSmrg      tmp_nm="$ac_dir/$lt_tmp_nm"
513811a29bacSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
513911a29bacSmrg	# Check to see if the nm accepts a BSD-compat flag.
514011a29bacSmrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
514111a29bacSmrg	#   nm: unknown option "B" ignored
514211a29bacSmrg	# Tru64's nm complains that /dev/null is an invalid object file
514311a29bacSmrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
514411a29bacSmrg	*/dev/null* | *'Invalid file or object type'*)
514511a29bacSmrg	  lt_cv_path_NM="$tmp_nm -B"
514611a29bacSmrg	  break
514711a29bacSmrg	  ;;
514811a29bacSmrg	*)
514911a29bacSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
515011a29bacSmrg	  */dev/null*)
515111a29bacSmrg	    lt_cv_path_NM="$tmp_nm -p"
515211a29bacSmrg	    break
515311a29bacSmrg	    ;;
515411a29bacSmrg	  *)
515511a29bacSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
515611a29bacSmrg	    continue # so that we can try to find one that supports BSD flags
515711a29bacSmrg	    ;;
515811a29bacSmrg	  esac
515911a29bacSmrg	  ;;
516011a29bacSmrg	esac
516111a29bacSmrg      fi
516211a29bacSmrg    done
516311a29bacSmrg    IFS="$lt_save_ifs"
516411a29bacSmrg  done
516511a29bacSmrg  : ${lt_cv_path_NM=no}
516611a29bacSmrgfi
516711a29bacSmrgfi
516811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
516911a29bacSmrg$as_echo "$lt_cv_path_NM" >&6; }
517011a29bacSmrgif test "$lt_cv_path_NM" != "no"; then
517111a29bacSmrg  NM="$lt_cv_path_NM"
517211a29bacSmrgelse
517311a29bacSmrg  # Didn't find any BSD compatible name lister, look for dumpbin.
517411a29bacSmrg  if test -n "$DUMPBIN"; then :
517511a29bacSmrg    # Let the user override the test.
517611a29bacSmrg  else
517711a29bacSmrg    if test -n "$ac_tool_prefix"; then
517811a29bacSmrg  for ac_prog in dumpbin "link -dump"
517911a29bacSmrg  do
518011a29bacSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
518111a29bacSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
518211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
518311a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
518411a29bacSmrgif ${ac_cv_prog_DUMPBIN+:} false; then :
518511a29bacSmrg  $as_echo_n "(cached) " >&6
518611a29bacSmrgelse
518711a29bacSmrg  if test -n "$DUMPBIN"; then
518811a29bacSmrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
518911a29bacSmrgelse
519011a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
519111a29bacSmrgfor as_dir in $PATH
519211a29bacSmrgdo
519311a29bacSmrg  IFS=$as_save_IFS
519411a29bacSmrg  test -z "$as_dir" && as_dir=.
519511a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
519611a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
519711a29bacSmrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
519811a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
519911a29bacSmrg    break 2
520011a29bacSmrg  fi
520111a29bacSmrgdone
520211a29bacSmrg  done
520311a29bacSmrgIFS=$as_save_IFS
520441b2f0bdSmrg
520511a29bacSmrgfi
520611a29bacSmrgfi
520711a29bacSmrgDUMPBIN=$ac_cv_prog_DUMPBIN
520811a29bacSmrgif test -n "$DUMPBIN"; then
520911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
521011a29bacSmrg$as_echo "$DUMPBIN" >&6; }
521111a29bacSmrgelse
521211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
521311a29bacSmrg$as_echo "no" >&6; }
521411a29bacSmrgfi
521541b2f0bdSmrg
521641b2f0bdSmrg
521711a29bacSmrg    test -n "$DUMPBIN" && break
521811a29bacSmrg  done
521911a29bacSmrgfi
522011a29bacSmrgif test -z "$DUMPBIN"; then
522111a29bacSmrg  ac_ct_DUMPBIN=$DUMPBIN
522211a29bacSmrg  for ac_prog in dumpbin "link -dump"
522311a29bacSmrgdo
522411a29bacSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
522511a29bacSmrgset dummy $ac_prog; ac_word=$2
522611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
522711a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
522811a29bacSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
522911a29bacSmrg  $as_echo_n "(cached) " >&6
523011a29bacSmrgelse
523111a29bacSmrg  if test -n "$ac_ct_DUMPBIN"; then
523211a29bacSmrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
523311a29bacSmrgelse
523411a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
523511a29bacSmrgfor as_dir in $PATH
523611a29bacSmrgdo
523711a29bacSmrg  IFS=$as_save_IFS
523811a29bacSmrg  test -z "$as_dir" && as_dir=.
523911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
524011a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
524111a29bacSmrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
524211a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
524311a29bacSmrg    break 2
524411a29bacSmrg  fi
524511a29bacSmrgdone
524611a29bacSmrg  done
524711a29bacSmrgIFS=$as_save_IFS
524841b2f0bdSmrg
524911a29bacSmrgfi
525011a29bacSmrgfi
525111a29bacSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
525211a29bacSmrgif test -n "$ac_ct_DUMPBIN"; then
525311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
525411a29bacSmrg$as_echo "$ac_ct_DUMPBIN" >&6; }
525511a29bacSmrgelse
525611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
525711a29bacSmrg$as_echo "no" >&6; }
525811a29bacSmrgfi
525941b2f0bdSmrg
526041b2f0bdSmrg
526111a29bacSmrg  test -n "$ac_ct_DUMPBIN" && break
526211a29bacSmrgdone
526341b2f0bdSmrg
526411a29bacSmrg  if test "x$ac_ct_DUMPBIN" = x; then
526511a29bacSmrg    DUMPBIN=":"
526611a29bacSmrg  else
526711a29bacSmrg    case $cross_compiling:$ac_tool_warned in
526811a29bacSmrgyes:)
526911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
527011a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
527111a29bacSmrgac_tool_warned=yes ;;
527211a29bacSmrgesac
527311a29bacSmrg    DUMPBIN=$ac_ct_DUMPBIN
527411a29bacSmrg  fi
527511a29bacSmrgfi
527641b2f0bdSmrg
527711a29bacSmrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
527811a29bacSmrg    *COFF*)
527911a29bacSmrg      DUMPBIN="$DUMPBIN -symbols"
528011a29bacSmrg      ;;
528111a29bacSmrg    *)
528211a29bacSmrg      DUMPBIN=:
528311a29bacSmrg      ;;
528411a29bacSmrg    esac
528511a29bacSmrg  fi
528641b2f0bdSmrg
528711a29bacSmrg  if test "$DUMPBIN" != ":"; then
528811a29bacSmrg    NM="$DUMPBIN"
528911a29bacSmrg  fi
529011a29bacSmrgfi
529111a29bacSmrgtest -z "$NM" && NM=nm
529241b2f0bdSmrg
529341b2f0bdSmrg
529441b2f0bdSmrg
529541b2f0bdSmrg
529641b2f0bdSmrg
529741b2f0bdSmrg
529811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
529911a29bacSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
530011a29bacSmrgif ${lt_cv_nm_interface+:} false; then :
530111a29bacSmrg  $as_echo_n "(cached) " >&6
530211a29bacSmrgelse
530311a29bacSmrg  lt_cv_nm_interface="BSD nm"
530411a29bacSmrg  echo "int some_variable = 0;" > conftest.$ac_ext
530511a29bacSmrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
530611a29bacSmrg  (eval "$ac_compile" 2>conftest.err)
530711a29bacSmrg  cat conftest.err >&5
530811a29bacSmrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
530911a29bacSmrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
531011a29bacSmrg  cat conftest.err >&5
531111a29bacSmrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
531211a29bacSmrg  cat conftest.out >&5
531311a29bacSmrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
531411a29bacSmrg    lt_cv_nm_interface="MS dumpbin"
531511a29bacSmrg  fi
531611a29bacSmrg  rm -f conftest*
531711a29bacSmrgfi
531811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
531911a29bacSmrg$as_echo "$lt_cv_nm_interface" >&6; }
532041b2f0bdSmrg
532111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
532211a29bacSmrg$as_echo_n "checking whether ln -s works... " >&6; }
532311a29bacSmrgLN_S=$as_ln_s
532411a29bacSmrgif test "$LN_S" = "ln -s"; then
532511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
532611a29bacSmrg$as_echo "yes" >&6; }
532711a29bacSmrgelse
532811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
532911a29bacSmrg$as_echo "no, using $LN_S" >&6; }
533011a29bacSmrgfi
533141b2f0bdSmrg
533211a29bacSmrg# find the maximum length of command line arguments
533311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
533411a29bacSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
533511a29bacSmrgif ${lt_cv_sys_max_cmd_len+:} false; then :
533611a29bacSmrg  $as_echo_n "(cached) " >&6
533711a29bacSmrgelse
533811a29bacSmrg    i=0
533911a29bacSmrg  teststring="ABCD"
534041b2f0bdSmrg
534111a29bacSmrg  case $build_os in
534211a29bacSmrg  msdosdjgpp*)
534311a29bacSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
534411a29bacSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
534511a29bacSmrg    # during glob expansion).  Even if it were fixed, the result of this
534611a29bacSmrg    # check would be larger than it should be.
534711a29bacSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
534811a29bacSmrg    ;;
534941b2f0bdSmrg
535011a29bacSmrg  gnu*)
535111a29bacSmrg    # Under GNU Hurd, this test is not required because there is
535211a29bacSmrg    # no limit to the length of command line arguments.
535311a29bacSmrg    # Libtool will interpret -1 as no limit whatsoever
535411a29bacSmrg    lt_cv_sys_max_cmd_len=-1;
535511a29bacSmrg    ;;
535641b2f0bdSmrg
535711a29bacSmrg  cygwin* | mingw* | cegcc*)
535811a29bacSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
535911a29bacSmrg    # about 5 minutes as the teststring grows exponentially.
536011a29bacSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
536111a29bacSmrg    # you end up with a "frozen" computer, even though with patience
536211a29bacSmrg    # the test eventually succeeds (with a max line length of 256k).
536311a29bacSmrg    # Instead, let's just punt: use the minimum linelength reported by
536411a29bacSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
536511a29bacSmrg    lt_cv_sys_max_cmd_len=8192;
536611a29bacSmrg    ;;
536741b2f0bdSmrg
536811a29bacSmrg  mint*)
536911a29bacSmrg    # On MiNT this can take a long time and run out of memory.
537011a29bacSmrg    lt_cv_sys_max_cmd_len=8192;
537111a29bacSmrg    ;;
537241b2f0bdSmrg
537311a29bacSmrg  amigaos*)
537411a29bacSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
537511a29bacSmrg    # So we just punt and use a minimum line length of 8192.
537611a29bacSmrg    lt_cv_sys_max_cmd_len=8192;
537711a29bacSmrg    ;;
537841b2f0bdSmrg
537911a29bacSmrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
538011a29bacSmrg    # This has been around since 386BSD, at least.  Likely further.
538111a29bacSmrg    if test -x /sbin/sysctl; then
538211a29bacSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
538311a29bacSmrg    elif test -x /usr/sbin/sysctl; then
538411a29bacSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
538511a29bacSmrg    else
538611a29bacSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
538711a29bacSmrg    fi
538811a29bacSmrg    # And add a safety zone
538911a29bacSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
539011a29bacSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
539111a29bacSmrg    ;;
539241b2f0bdSmrg
539311a29bacSmrg  interix*)
539411a29bacSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
539511a29bacSmrg    lt_cv_sys_max_cmd_len=196608
539611a29bacSmrg    ;;
539741b2f0bdSmrg
539811a29bacSmrg  osf*)
539911a29bacSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
540011a29bacSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
540111a29bacSmrg    # nice to cause kernel panics so lets avoid the loop below.
540211a29bacSmrg    # First set a reasonable default.
540311a29bacSmrg    lt_cv_sys_max_cmd_len=16384
540411a29bacSmrg    #
540511a29bacSmrg    if test -x /sbin/sysconfig; then
540611a29bacSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
540711a29bacSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
540811a29bacSmrg      esac
540911a29bacSmrg    fi
541011a29bacSmrg    ;;
541111a29bacSmrg  sco3.2v5*)
541211a29bacSmrg    lt_cv_sys_max_cmd_len=102400
541311a29bacSmrg    ;;
541411a29bacSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
541511a29bacSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
541611a29bacSmrg    if test -n "$kargmax"; then
541711a29bacSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
541811a29bacSmrg    else
541911a29bacSmrg      lt_cv_sys_max_cmd_len=32768
542011a29bacSmrg    fi
542111a29bacSmrg    ;;
542211a29bacSmrg  *)
542311a29bacSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
542411a29bacSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
542511a29bacSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
542611a29bacSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
542711a29bacSmrg    else
542811a29bacSmrg      # Make teststring a little bigger before we do anything with it.
542911a29bacSmrg      # a 1K string should be a reasonable start.
543011a29bacSmrg      for i in 1 2 3 4 5 6 7 8 ; do
543111a29bacSmrg        teststring=$teststring$teststring
543211a29bacSmrg      done
543311a29bacSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
543411a29bacSmrg      # If test is not a shell built-in, we'll probably end up computing a
543511a29bacSmrg      # maximum length that is only half of the actual maximum length, but
543611a29bacSmrg      # we can't tell.
543711a29bacSmrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
543811a29bacSmrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
543911a29bacSmrg	      test $i != 17 # 1/2 MB should be enough
544011a29bacSmrg      do
544111a29bacSmrg        i=`expr $i + 1`
544211a29bacSmrg        teststring=$teststring$teststring
544311a29bacSmrg      done
544411a29bacSmrg      # Only check the string length outside the loop.
544511a29bacSmrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
544611a29bacSmrg      teststring=
544711a29bacSmrg      # Add a significant safety factor because C++ compilers can tack on
544811a29bacSmrg      # massive amounts of additional arguments before passing them to the
544911a29bacSmrg      # linker.  It appears as though 1/2 is a usable value.
545011a29bacSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
545111a29bacSmrg    fi
545211a29bacSmrg    ;;
545311a29bacSmrg  esac
545441b2f0bdSmrg
545511a29bacSmrgfi
545641b2f0bdSmrg
545711a29bacSmrgif test -n $lt_cv_sys_max_cmd_len ; then
545811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
545911a29bacSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
546011a29bacSmrgelse
546111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
546211a29bacSmrg$as_echo "none" >&6; }
546311a29bacSmrgfi
546411a29bacSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len
546541b2f0bdSmrg
546641b2f0bdSmrg
546741b2f0bdSmrg
546841b2f0bdSmrg
546941b2f0bdSmrg
547041b2f0bdSmrg
547111a29bacSmrg: ${CP="cp -f"}
547211a29bacSmrg: ${MV="mv -f"}
547311a29bacSmrg: ${RM="rm -f"}
547441b2f0bdSmrg
547511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
547611a29bacSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
547711a29bacSmrg# Try some XSI features
547811a29bacSmrgxsi_shell=no
547911a29bacSmrg( _lt_dummy="a/b/c"
548011a29bacSmrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
548111a29bacSmrg      = c,a/b,, \
548211a29bacSmrg    && eval 'test $(( 1 + 1 )) -eq 2 \
548311a29bacSmrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
548411a29bacSmrg  && xsi_shell=yes
548511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
548611a29bacSmrg$as_echo "$xsi_shell" >&6; }
548741b2f0bdSmrg
548841b2f0bdSmrg
548911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
549011a29bacSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
549111a29bacSmrglt_shell_append=no
549211a29bacSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
549311a29bacSmrg    >/dev/null 2>&1 \
549411a29bacSmrg  && lt_shell_append=yes
549511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
549611a29bacSmrg$as_echo "$lt_shell_append" >&6; }
549741b2f0bdSmrg
549841b2f0bdSmrg
549911a29bacSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
550011a29bacSmrg  lt_unset=unset
550111a29bacSmrgelse
550211a29bacSmrg  lt_unset=false
550311a29bacSmrgfi
550441b2f0bdSmrg
550541b2f0bdSmrg
550641b2f0bdSmrg
550741b2f0bdSmrg
550841b2f0bdSmrg
550911a29bacSmrg# test EBCDIC or ASCII
551011a29bacSmrgcase `echo X|tr X '\101'` in
551111a29bacSmrg A) # ASCII based system
551211a29bacSmrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
551311a29bacSmrg  lt_SP2NL='tr \040 \012'
551411a29bacSmrg  lt_NL2SP='tr \015\012 \040\040'
551511a29bacSmrg  ;;
551611a29bacSmrg *) # EBCDIC based system
551711a29bacSmrg  lt_SP2NL='tr \100 \n'
551811a29bacSmrg  lt_NL2SP='tr \r\n \100\100'
551911a29bacSmrg  ;;
552011a29bacSmrgesac
552141b2f0bdSmrg
552241b2f0bdSmrg
552341b2f0bdSmrg
552441b2f0bdSmrg
552541b2f0bdSmrg
552611245024Smrg
552741b2f0bdSmrg
552841b2f0bdSmrg
552941b2f0bdSmrg
553011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
553111a29bacSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
553211a29bacSmrgif ${lt_cv_ld_reload_flag+:} false; then :
553311a29bacSmrg  $as_echo_n "(cached) " >&6
553411a29bacSmrgelse
553511a29bacSmrg  lt_cv_ld_reload_flag='-r'
553611a29bacSmrgfi
553711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
553811a29bacSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
553911a29bacSmrgreload_flag=$lt_cv_ld_reload_flag
554011a29bacSmrgcase $reload_flag in
554111a29bacSmrg"" | " "*) ;;
554211a29bacSmrg*) reload_flag=" $reload_flag" ;;
554311a29bacSmrgesac
554411a29bacSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
554511a29bacSmrgcase $host_os in
554611a29bacSmrg  darwin*)
554711a29bacSmrg    if test "$GCC" = yes; then
554811a29bacSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
554911a29bacSmrg    else
555011a29bacSmrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
555111a29bacSmrg    fi
555211a29bacSmrg    ;;
555311a29bacSmrgesac
555441b2f0bdSmrg
555541b2f0bdSmrg
555641b2f0bdSmrg
555741b2f0bdSmrg
555841b2f0bdSmrg
555941b2f0bdSmrg
556041b2f0bdSmrg
556141b2f0bdSmrg
556241b2f0bdSmrg
556311a29bacSmrgif test -n "$ac_tool_prefix"; then
556411a29bacSmrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
556511a29bacSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
556611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
556711a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
556811a29bacSmrgif ${ac_cv_prog_OBJDUMP+:} false; then :
556911a29bacSmrg  $as_echo_n "(cached) " >&6
557011a29bacSmrgelse
557111a29bacSmrg  if test -n "$OBJDUMP"; then
557211a29bacSmrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
557311a29bacSmrgelse
557411a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
557511a29bacSmrgfor as_dir in $PATH
557611a29bacSmrgdo
557711a29bacSmrg  IFS=$as_save_IFS
557811a29bacSmrg  test -z "$as_dir" && as_dir=.
557911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
558011a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
558111a29bacSmrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
558211a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
558311a29bacSmrg    break 2
558411a29bacSmrg  fi
558511a29bacSmrgdone
558611a29bacSmrg  done
558711a29bacSmrgIFS=$as_save_IFS
558841b2f0bdSmrg
558911a29bacSmrgfi
559011a29bacSmrgfi
559111a29bacSmrgOBJDUMP=$ac_cv_prog_OBJDUMP
559211a29bacSmrgif test -n "$OBJDUMP"; then
559311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
559411a29bacSmrg$as_echo "$OBJDUMP" >&6; }
559511a29bacSmrgelse
559611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
559711a29bacSmrg$as_echo "no" >&6; }
559811a29bacSmrgfi
559941b2f0bdSmrg
560041b2f0bdSmrg
560111a29bacSmrgfi
560211a29bacSmrgif test -z "$ac_cv_prog_OBJDUMP"; then
560311a29bacSmrg  ac_ct_OBJDUMP=$OBJDUMP
560411a29bacSmrg  # Extract the first word of "objdump", so it can be a program name with args.
560511a29bacSmrgset dummy objdump; ac_word=$2
560611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
560711a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
560811a29bacSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
560911a29bacSmrg  $as_echo_n "(cached) " >&6
561011a29bacSmrgelse
561111a29bacSmrg  if test -n "$ac_ct_OBJDUMP"; then
561211a29bacSmrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
561311a29bacSmrgelse
561411a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
561511a29bacSmrgfor as_dir in $PATH
561611a29bacSmrgdo
561711a29bacSmrg  IFS=$as_save_IFS
561811a29bacSmrg  test -z "$as_dir" && as_dir=.
561911a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
562011a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
562111a29bacSmrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
562211a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
562311a29bacSmrg    break 2
562411a29bacSmrg  fi
562511a29bacSmrgdone
562611a29bacSmrg  done
562711a29bacSmrgIFS=$as_save_IFS
562841b2f0bdSmrg
562911a29bacSmrgfi
563011a29bacSmrgfi
563111a29bacSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
563211a29bacSmrgif test -n "$ac_ct_OBJDUMP"; then
563311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
563411a29bacSmrg$as_echo "$ac_ct_OBJDUMP" >&6; }
563511a29bacSmrgelse
563611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
563711a29bacSmrg$as_echo "no" >&6; }
563811a29bacSmrgfi
563941b2f0bdSmrg
564011a29bacSmrg  if test "x$ac_ct_OBJDUMP" = x; then
564111a29bacSmrg    OBJDUMP="false"
564211a29bacSmrg  else
564311a29bacSmrg    case $cross_compiling:$ac_tool_warned in
564411a29bacSmrgyes:)
564511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
564611a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
564711a29bacSmrgac_tool_warned=yes ;;
564811a29bacSmrgesac
564911a29bacSmrg    OBJDUMP=$ac_ct_OBJDUMP
565011a29bacSmrg  fi
565111a29bacSmrgelse
565211a29bacSmrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
565311a29bacSmrgfi
565441b2f0bdSmrg
565511a29bacSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump
565641b2f0bdSmrg
565741b2f0bdSmrg
565841b2f0bdSmrg
565941b2f0bdSmrg
566041b2f0bdSmrg
566141b2f0bdSmrg
566241b2f0bdSmrg
566341b2f0bdSmrg
566441b2f0bdSmrg
566511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
566611a29bacSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
566711a29bacSmrgif ${lt_cv_deplibs_check_method+:} false; then :
566811a29bacSmrg  $as_echo_n "(cached) " >&6
566911a29bacSmrgelse
567011a29bacSmrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
567111a29bacSmrglt_cv_file_magic_test_file=
567211a29bacSmrglt_cv_deplibs_check_method='unknown'
567311a29bacSmrg# Need to set the preceding variable on all platforms that support
567411a29bacSmrg# interlibrary dependencies.
567511a29bacSmrg# 'none' -- dependencies not supported.
567611a29bacSmrg# `unknown' -- same as none, but documents that we really don't know.
567711a29bacSmrg# 'pass_all' -- all dependencies passed with no checks.
567811a29bacSmrg# 'test_compile' -- check by making test program.
567911a29bacSmrg# 'file_magic [[regex]]' -- check by looking for files in library path
568011a29bacSmrg# which responds to the $file_magic_cmd with a given extended regex.
568111a29bacSmrg# If you have `file' or equivalent on your system and you're not sure
568211a29bacSmrg# whether `pass_all' will *always* work, you probably want this one.
568341b2f0bdSmrg
568411a29bacSmrgcase $host_os in
568511a29bacSmrgaix[4-9]*)
568611a29bacSmrg  lt_cv_deplibs_check_method=pass_all
568711a29bacSmrg  ;;
568841b2f0bdSmrg
568911a29bacSmrgbeos*)
569011a29bacSmrg  lt_cv_deplibs_check_method=pass_all
569111a29bacSmrg  ;;
569241b2f0bdSmrg
569311a29bacSmrgbsdi[45]*)
569411a29bacSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
569511a29bacSmrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
569611a29bacSmrg  lt_cv_file_magic_test_file=/shlib/libc.so
569711a29bacSmrg  ;;
569841b2f0bdSmrg
569911a29bacSmrgcygwin*)
570011a29bacSmrg  # func_win32_libid is a shell function defined in ltmain.sh
570111a29bacSmrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
570211a29bacSmrg  lt_cv_file_magic_cmd='func_win32_libid'
570311a29bacSmrg  ;;
570441b2f0bdSmrg
570511a29bacSmrgmingw* | pw32*)
570611a29bacSmrg  # Base MSYS/MinGW do not provide the 'file' command needed by
570711a29bacSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
570811a29bacSmrg  # unless we find 'file', for example because we are cross-compiling.
570911a29bacSmrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
571011a29bacSmrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
571111a29bacSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
571211a29bacSmrg    lt_cv_file_magic_cmd='func_win32_libid'
571311a29bacSmrg  else
571411a29bacSmrg    # Keep this pattern in sync with the one in func_win32_libid.
571511a29bacSmrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
571611a29bacSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
571711a29bacSmrg  fi
571811a29bacSmrg  ;;
571941b2f0bdSmrg
572011a29bacSmrgcegcc*)
572111a29bacSmrg  # use the weaker test based on 'objdump'. See mingw*.
572211a29bacSmrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
572311a29bacSmrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
572411a29bacSmrg  ;;
572541b2f0bdSmrg
572611a29bacSmrgdarwin* | rhapsody*)
572711a29bacSmrg  lt_cv_deplibs_check_method=pass_all
572811a29bacSmrg  ;;
572941b2f0bdSmrg
573011a29bacSmrgfreebsd* | dragonfly*)
573111a29bacSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
573211a29bacSmrg    case $host_cpu in
573311a29bacSmrg    i*86 )
573411a29bacSmrg      # Not sure whether the presence of OpenBSD here was a mistake.
573511a29bacSmrg      # Let's accept both of them until this is cleared up.
573611a29bacSmrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
573711a29bacSmrg      lt_cv_file_magic_cmd=/usr/bin/file
573811a29bacSmrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
573911a29bacSmrg      ;;
574011a29bacSmrg    esac
574111a29bacSmrg  else
574211a29bacSmrg    lt_cv_deplibs_check_method=pass_all
574341b2f0bdSmrg  fi
574411a29bacSmrg  ;;
574541b2f0bdSmrg
574611a29bacSmrggnu*)
574711a29bacSmrg  lt_cv_deplibs_check_method=pass_all
574811a29bacSmrg  ;;
574941b2f0bdSmrg
575011a29bacSmrghaiku*)
575111a29bacSmrg  lt_cv_deplibs_check_method=pass_all
575211a29bacSmrg  ;;
575341b2f0bdSmrg
575411a29bacSmrghpux10.20* | hpux11*)
575511a29bacSmrg  lt_cv_file_magic_cmd=/usr/bin/file
575611a29bacSmrg  case $host_cpu in
575711a29bacSmrg  ia64*)
575811a29bacSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
575911a29bacSmrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
576011a29bacSmrg    ;;
576111a29bacSmrg  hppa*64*)
576211a29bacSmrg    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]'
576311a29bacSmrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
576411a29bacSmrg    ;;
576511a29bacSmrg  *)
576611a29bacSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
576711a29bacSmrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
576811a29bacSmrg    ;;
576911a29bacSmrg  esac
577011a29bacSmrg  ;;
577141b2f0bdSmrg
577211a29bacSmrginterix[3-9]*)
577311a29bacSmrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
577411a29bacSmrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
577511a29bacSmrg  ;;
577641b2f0bdSmrg
577711a29bacSmrgirix5* | irix6* | nonstopux*)
577811a29bacSmrg  case $LD in
577911a29bacSmrg  *-32|*"-32 ") libmagic=32-bit;;
578011a29bacSmrg  *-n32|*"-n32 ") libmagic=N32;;
578111a29bacSmrg  *-64|*"-64 ") libmagic=64-bit;;
578211a29bacSmrg  *) libmagic=never-match;;
578311a29bacSmrg  esac
578411a29bacSmrg  lt_cv_deplibs_check_method=pass_all
578511a29bacSmrg  ;;
578641b2f0bdSmrg
578711a29bacSmrg# This must be Linux ELF.
578811a29bacSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
578911a29bacSmrg  lt_cv_deplibs_check_method=pass_all
579011a29bacSmrg  ;;
579141b2f0bdSmrg
579211a29bacSmrgnetbsd*)
579311a29bacSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
579411a29bacSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
579511a29bacSmrg  else
579611a29bacSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
579711a29bacSmrg  fi
579811a29bacSmrg  ;;
579941b2f0bdSmrg
580011a29bacSmrgnewos6*)
580111a29bacSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
580211a29bacSmrg  lt_cv_file_magic_cmd=/usr/bin/file
580311a29bacSmrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
580411a29bacSmrg  ;;
580541b2f0bdSmrg
580611a29bacSmrg*nto* | *qnx*)
580711a29bacSmrg  lt_cv_deplibs_check_method=pass_all
580811a29bacSmrg  ;;
580941b2f0bdSmrg
581011a29bacSmrgopenbsd*)
581111a29bacSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
581211a29bacSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
581311a29bacSmrg  else
581411a29bacSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
581511a29bacSmrg  fi
581611a29bacSmrg  ;;
581741b2f0bdSmrg
581811a29bacSmrgosf3* | osf4* | osf5*)
581911a29bacSmrg  lt_cv_deplibs_check_method=pass_all
582011a29bacSmrg  ;;
582141b2f0bdSmrg
582211a29bacSmrgrdos*)
582311a29bacSmrg  lt_cv_deplibs_check_method=pass_all
582411a29bacSmrg  ;;
582541b2f0bdSmrg
582611a29bacSmrgsolaris*)
582711a29bacSmrg  lt_cv_deplibs_check_method=pass_all
582811a29bacSmrg  ;;
582941b2f0bdSmrg
583011a29bacSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
583111a29bacSmrg  lt_cv_deplibs_check_method=pass_all
583211a29bacSmrg  ;;
583341b2f0bdSmrg
583411a29bacSmrgsysv4 | sysv4.3*)
583511a29bacSmrg  case $host_vendor in
583611a29bacSmrg  motorola)
583711a29bacSmrg    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]'
583811a29bacSmrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
583911a29bacSmrg    ;;
584011a29bacSmrg  ncr)
584111a29bacSmrg    lt_cv_deplibs_check_method=pass_all
584211a29bacSmrg    ;;
584311a29bacSmrg  sequent)
584411a29bacSmrg    lt_cv_file_magic_cmd='/bin/file'
584511a29bacSmrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
584611a29bacSmrg    ;;
584711a29bacSmrg  sni)
584811a29bacSmrg    lt_cv_file_magic_cmd='/bin/file'
584911a29bacSmrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
585011a29bacSmrg    lt_cv_file_magic_test_file=/lib/libc.so
585111a29bacSmrg    ;;
585211a29bacSmrg  siemens)
585311a29bacSmrg    lt_cv_deplibs_check_method=pass_all
585411a29bacSmrg    ;;
585511a29bacSmrg  pc)
585611a29bacSmrg    lt_cv_deplibs_check_method=pass_all
585711a29bacSmrg    ;;
585841b2f0bdSmrg  esac
585941b2f0bdSmrg  ;;
586011a29bacSmrg
586111a29bacSmrgtpf*)
586211a29bacSmrg  lt_cv_deplibs_check_method=pass_all
586341b2f0bdSmrg  ;;
586441b2f0bdSmrgesac
586541b2f0bdSmrg
586611a29bacSmrgfi
586711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
586811a29bacSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
586911a29bacSmrgfile_magic_cmd=$lt_cv_file_magic_cmd
587011a29bacSmrgdeplibs_check_method=$lt_cv_deplibs_check_method
587111a29bacSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
587241b2f0bdSmrg
587341b2f0bdSmrg
587441b2f0bdSmrg
587541b2f0bdSmrg
587641b2f0bdSmrg
587741b2f0bdSmrg
587841b2f0bdSmrg
587941b2f0bdSmrg
588041b2f0bdSmrg
588141b2f0bdSmrg
588241b2f0bdSmrg
588341b2f0bdSmrg
588411a29bacSmrgif test -n "$ac_tool_prefix"; then
588511a29bacSmrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
588611a29bacSmrgset dummy ${ac_tool_prefix}ar; ac_word=$2
588711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
588811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
588911a29bacSmrgif ${ac_cv_prog_AR+:} false; then :
589011a29bacSmrg  $as_echo_n "(cached) " >&6
589111a29bacSmrgelse
589211a29bacSmrg  if test -n "$AR"; then
589311a29bacSmrg  ac_cv_prog_AR="$AR" # Let the user override the test.
589411a29bacSmrgelse
589511a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
589611a29bacSmrgfor as_dir in $PATH
589711a29bacSmrgdo
589811a29bacSmrg  IFS=$as_save_IFS
589911a29bacSmrg  test -z "$as_dir" && as_dir=.
590011a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
590111a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
590211a29bacSmrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
590311a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
590411a29bacSmrg    break 2
590511a29bacSmrg  fi
590611a29bacSmrgdone
590711a29bacSmrg  done
590811a29bacSmrgIFS=$as_save_IFS
590941b2f0bdSmrg
591011a29bacSmrgfi
591111a29bacSmrgfi
591211a29bacSmrgAR=$ac_cv_prog_AR
591311a29bacSmrgif test -n "$AR"; then
591411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
591511a29bacSmrg$as_echo "$AR" >&6; }
591611a29bacSmrgelse
591711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
591811a29bacSmrg$as_echo "no" >&6; }
591911a29bacSmrgfi
592041b2f0bdSmrg
592141b2f0bdSmrg
592211a29bacSmrgfi
592311a29bacSmrgif test -z "$ac_cv_prog_AR"; then
592411a29bacSmrg  ac_ct_AR=$AR
592511a29bacSmrg  # Extract the first word of "ar", so it can be a program name with args.
592611a29bacSmrgset dummy ar; ac_word=$2
592711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
592811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
592911a29bacSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
593011a29bacSmrg  $as_echo_n "(cached) " >&6
593111a29bacSmrgelse
593211a29bacSmrg  if test -n "$ac_ct_AR"; then
593311a29bacSmrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
593411a29bacSmrgelse
593511a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
593611a29bacSmrgfor as_dir in $PATH
593711a29bacSmrgdo
593811a29bacSmrg  IFS=$as_save_IFS
593911a29bacSmrg  test -z "$as_dir" && as_dir=.
594011a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
594111a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
594211a29bacSmrg    ac_cv_prog_ac_ct_AR="ar"
594311a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
594411a29bacSmrg    break 2
594511a29bacSmrg  fi
594611a29bacSmrgdone
594711a29bacSmrg  done
594811a29bacSmrgIFS=$as_save_IFS
594941b2f0bdSmrg
595011a29bacSmrgfi
595111a29bacSmrgfi
595211a29bacSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR
595311a29bacSmrgif test -n "$ac_ct_AR"; then
595411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
595511a29bacSmrg$as_echo "$ac_ct_AR" >&6; }
595611a29bacSmrgelse
595711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
595811a29bacSmrg$as_echo "no" >&6; }
595911a29bacSmrgfi
596041b2f0bdSmrg
596111a29bacSmrg  if test "x$ac_ct_AR" = x; then
596211a29bacSmrg    AR="false"
596311a29bacSmrg  else
596411a29bacSmrg    case $cross_compiling:$ac_tool_warned in
596511a29bacSmrgyes:)
596611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
596711a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
596811a29bacSmrgac_tool_warned=yes ;;
596911a29bacSmrgesac
597011a29bacSmrg    AR=$ac_ct_AR
597111a29bacSmrg  fi
597211a29bacSmrgelse
597311a29bacSmrg  AR="$ac_cv_prog_AR"
597411a29bacSmrgfi
597541b2f0bdSmrg
597611a29bacSmrgtest -z "$AR" && AR=ar
597711a29bacSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
597841b2f0bdSmrg
597941b2f0bdSmrg
598041b2f0bdSmrg
598111245024Smrg
598241b2f0bdSmrg
598341b2f0bdSmrg
598441b2f0bdSmrg
598541b2f0bdSmrg
598641b2f0bdSmrg
598741b2f0bdSmrg
598841b2f0bdSmrg
598911a29bacSmrgif test -n "$ac_tool_prefix"; then
599011a29bacSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
599111a29bacSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
599211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
599311a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
599411a29bacSmrgif ${ac_cv_prog_STRIP+:} false; then :
599511a29bacSmrg  $as_echo_n "(cached) " >&6
599611a29bacSmrgelse
599711a29bacSmrg  if test -n "$STRIP"; then
599811a29bacSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
599911a29bacSmrgelse
600011a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
600111a29bacSmrgfor as_dir in $PATH
600211a29bacSmrgdo
600311a29bacSmrg  IFS=$as_save_IFS
600411a29bacSmrg  test -z "$as_dir" && as_dir=.
600511a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
600611a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
600711a29bacSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
600811a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
600911a29bacSmrg    break 2
601041b2f0bdSmrg  fi
601111a29bacSmrgdone
601211a29bacSmrg  done
601311a29bacSmrgIFS=$as_save_IFS
601441b2f0bdSmrg
601511a29bacSmrgfi
601611a29bacSmrgfi
601711a29bacSmrgSTRIP=$ac_cv_prog_STRIP
601811a29bacSmrgif test -n "$STRIP"; then
601911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
602011a29bacSmrg$as_echo "$STRIP" >&6; }
602111a29bacSmrgelse
602211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
602311a29bacSmrg$as_echo "no" >&6; }
602411a29bacSmrgfi
602541b2f0bdSmrg
602641b2f0bdSmrg
602711a29bacSmrgfi
602811a29bacSmrgif test -z "$ac_cv_prog_STRIP"; then
602911a29bacSmrg  ac_ct_STRIP=$STRIP
603011a29bacSmrg  # Extract the first word of "strip", so it can be a program name with args.
603111a29bacSmrgset dummy strip; ac_word=$2
603211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
603311a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
603411a29bacSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
603511245024Smrg  $as_echo_n "(cached) " >&6
603641b2f0bdSmrgelse
603711a29bacSmrg  if test -n "$ac_ct_STRIP"; then
603811a29bacSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
603911a29bacSmrgelse
604011a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
604111a29bacSmrgfor as_dir in $PATH
604211a29bacSmrgdo
604311a29bacSmrg  IFS=$as_save_IFS
604411a29bacSmrg  test -z "$as_dir" && as_dir=.
604511a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
604611a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
604711a29bacSmrg    ac_cv_prog_ac_ct_STRIP="strip"
604811a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
604911a29bacSmrg    break 2
605011a29bacSmrg  fi
605111a29bacSmrgdone
605211a29bacSmrg  done
605311a29bacSmrgIFS=$as_save_IFS
605441b2f0bdSmrg
605541b2f0bdSmrgfi
605611a29bacSmrgfi
605711a29bacSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
605811a29bacSmrgif test -n "$ac_ct_STRIP"; then
605911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
606011a29bacSmrg$as_echo "$ac_ct_STRIP" >&6; }
606141b2f0bdSmrgelse
606211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
606311a29bacSmrg$as_echo "no" >&6; }
606441b2f0bdSmrgfi
606541b2f0bdSmrg
606611a29bacSmrg  if test "x$ac_ct_STRIP" = x; then
606711a29bacSmrg    STRIP=":"
606811a29bacSmrg  else
606911a29bacSmrg    case $cross_compiling:$ac_tool_warned in
607011a29bacSmrgyes:)
607111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
607211a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
607311a29bacSmrgac_tool_warned=yes ;;
607441b2f0bdSmrgesac
607511a29bacSmrg    STRIP=$ac_ct_STRIP
607611a29bacSmrg  fi
607711a29bacSmrgelse
607811a29bacSmrg  STRIP="$ac_cv_prog_STRIP"
607911a29bacSmrgfi
608041b2f0bdSmrg
608111a29bacSmrgtest -z "$STRIP" && STRIP=:
608211a29bacSmrg
608311a29bacSmrg
608411a29bacSmrg
608511a29bacSmrg
608611a29bacSmrg
608711a29bacSmrg
608811a29bacSmrgif test -n "$ac_tool_prefix"; then
608911a29bacSmrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
609011a29bacSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
609111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
609211a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
609311a29bacSmrgif ${ac_cv_prog_RANLIB+:} false; then :
609411245024Smrg  $as_echo_n "(cached) " >&6
609541b2f0bdSmrgelse
609611a29bacSmrg  if test -n "$RANLIB"; then
609711a29bacSmrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
609811a29bacSmrgelse
609911a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
610011a29bacSmrgfor as_dir in $PATH
610111a29bacSmrgdo
610211a29bacSmrg  IFS=$as_save_IFS
610311a29bacSmrg  test -z "$as_dir" && as_dir=.
610411a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
610511a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
610611a29bacSmrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
610711a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
610811a29bacSmrg    break 2
610911a29bacSmrg  fi
611011a29bacSmrgdone
611111a29bacSmrg  done
611211a29bacSmrgIFS=$as_save_IFS
611341b2f0bdSmrg
611441b2f0bdSmrgfi
611511a29bacSmrgfi
611611a29bacSmrgRANLIB=$ac_cv_prog_RANLIB
611711a29bacSmrgif test -n "$RANLIB"; then
611811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
611911a29bacSmrg$as_echo "$RANLIB" >&6; }
612041b2f0bdSmrgelse
612111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
612211a29bacSmrg$as_echo "no" >&6; }
612341b2f0bdSmrgfi
612441b2f0bdSmrg
612541b2f0bdSmrg
612611a29bacSmrgfi
612711a29bacSmrgif test -z "$ac_cv_prog_RANLIB"; then
612811a29bacSmrg  ac_ct_RANLIB=$RANLIB
612911a29bacSmrg  # Extract the first word of "ranlib", so it can be a program name with args.
613011a29bacSmrgset dummy ranlib; ac_word=$2
613111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
613211a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
613311a29bacSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
613411245024Smrg  $as_echo_n "(cached) " >&6
613541b2f0bdSmrgelse
613611a29bacSmrg  if test -n "$ac_ct_RANLIB"; then
613711a29bacSmrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
613811a29bacSmrgelse
613911a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614011a29bacSmrgfor as_dir in $PATH
614111a29bacSmrgdo
614211a29bacSmrg  IFS=$as_save_IFS
614311a29bacSmrg  test -z "$as_dir" && as_dir=.
614411a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
614511a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
614611a29bacSmrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
614711a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
614811a29bacSmrg    break 2
614911a29bacSmrg  fi
615011a29bacSmrgdone
615111a29bacSmrg  done
615211a29bacSmrgIFS=$as_save_IFS
615341b2f0bdSmrg
615441b2f0bdSmrgfi
615511a29bacSmrgfi
615611a29bacSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
615711a29bacSmrgif test -n "$ac_ct_RANLIB"; then
615811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
615911a29bacSmrg$as_echo "$ac_ct_RANLIB" >&6; }
616011a29bacSmrgelse
616111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
616211a29bacSmrg$as_echo "no" >&6; }
616311a29bacSmrgfi
616441b2f0bdSmrg
616511a29bacSmrg  if test "x$ac_ct_RANLIB" = x; then
616611a29bacSmrg    RANLIB=":"
616711a29bacSmrg  else
616811a29bacSmrg    case $cross_compiling:$ac_tool_warned in
616911a29bacSmrgyes:)
617011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
617111a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
617211a29bacSmrgac_tool_warned=yes ;;
617311a29bacSmrgesac
617411a29bacSmrg    RANLIB=$ac_ct_RANLIB
617541b2f0bdSmrg  fi
617641b2f0bdSmrgelse
617711a29bacSmrg  RANLIB="$ac_cv_prog_RANLIB"
617841b2f0bdSmrgfi
617941b2f0bdSmrg
618011a29bacSmrgtest -z "$RANLIB" && RANLIB=:
618141b2f0bdSmrg
618241b2f0bdSmrg
618311a29bacSmrg
618411a29bacSmrg
618511a29bacSmrg
618611a29bacSmrg
618711a29bacSmrg# Determine commands to create old-style static archives.
618811a29bacSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
618911a29bacSmrgold_postinstall_cmds='chmod 644 $oldlib'
619011a29bacSmrgold_postuninstall_cmds=
619111a29bacSmrg
619211a29bacSmrgif test -n "$RANLIB"; then
619341b2f0bdSmrg  case $host_os in
619441b2f0bdSmrg  openbsd*)
619511a29bacSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
619611a29bacSmrg    ;;
619711a29bacSmrg  *)
619811a29bacSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
619941b2f0bdSmrg    ;;
620041b2f0bdSmrg  esac
620111a29bacSmrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
620211a29bacSmrgfi
620341b2f0bdSmrg
620411a29bacSmrgcase $host_os in
620511a29bacSmrg  darwin*)
620611a29bacSmrg    lock_old_archive_extraction=yes ;;
620711a29bacSmrg  *)
620811a29bacSmrg    lock_old_archive_extraction=no ;;
620911a29bacSmrgesac
621041b2f0bdSmrg
621141b2f0bdSmrg
621241b2f0bdSmrg
621341b2f0bdSmrg
621441b2f0bdSmrg
621541b2f0bdSmrg
621641b2f0bdSmrg
621741b2f0bdSmrg
621841b2f0bdSmrg
621941b2f0bdSmrg
622041b2f0bdSmrg
622141b2f0bdSmrg
622241b2f0bdSmrg
622341b2f0bdSmrg
622441b2f0bdSmrg
622541b2f0bdSmrg
622641b2f0bdSmrg
622741b2f0bdSmrg
622841b2f0bdSmrg
622941b2f0bdSmrg
623041b2f0bdSmrg
623141b2f0bdSmrg
623241b2f0bdSmrg
623341b2f0bdSmrg
623441b2f0bdSmrg
623541b2f0bdSmrg
623641b2f0bdSmrg
623741b2f0bdSmrg
623811245024Smrg
623911a29bacSmrg
624011a29bacSmrg
624111a29bacSmrg
624211a29bacSmrg
624311a29bacSmrg
624411a29bacSmrg
624511a29bacSmrg
624611a29bacSmrg
624711a29bacSmrg
624811a29bacSmrg
624911a29bacSmrg# If no C compiler was specified, use CC.
625011a29bacSmrgLTCC=${LTCC-"$CC"}
625111a29bacSmrg
625211a29bacSmrg# If no C compiler flags were specified, use CFLAGS.
625311a29bacSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
625411a29bacSmrg
625511a29bacSmrg# Allow CC to be a program name with arguments.
625611a29bacSmrgcompiler=$CC
625711a29bacSmrg
625811a29bacSmrg
625911a29bacSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
626011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
626111a29bacSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
626211a29bacSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
626311a29bacSmrg  $as_echo_n "(cached) " >&6
626441b2f0bdSmrgelse
626541b2f0bdSmrg
626611a29bacSmrg# These are sane defaults that work on at least a few old systems.
626711a29bacSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
626811245024Smrg
626911a29bacSmrg# Character class describing NM global symbol codes.
627011a29bacSmrgsymcode='[BCDEGRST]'
627111245024Smrg
627211a29bacSmrg# Regexp to match symbols that can be accessed directly from C.
627311a29bacSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
627441b2f0bdSmrg
627511a29bacSmrg# Define system-specific variables.
627611a29bacSmrgcase $host_os in
627711a29bacSmrgaix*)
627811a29bacSmrg  symcode='[BCDT]'
627911a29bacSmrg  ;;
628011a29bacSmrgcygwin* | mingw* | pw32* | cegcc*)
628111a29bacSmrg  symcode='[ABCDGISTW]'
628211a29bacSmrg  ;;
628311a29bacSmrghpux*)
628411a29bacSmrg  if test "$host_cpu" = ia64; then
628511a29bacSmrg    symcode='[ABCDEGRST]'
628611a29bacSmrg  fi
628711a29bacSmrg  ;;
628811a29bacSmrgirix* | nonstopux*)
628911a29bacSmrg  symcode='[BCDEGRST]'
629011a29bacSmrg  ;;
629111a29bacSmrgosf*)
629211a29bacSmrg  symcode='[BCDEGQRST]'
629311a29bacSmrg  ;;
629411a29bacSmrgsolaris*)
629511a29bacSmrg  symcode='[BDRT]'
629611a29bacSmrg  ;;
629711a29bacSmrgsco3.2v5*)
629811a29bacSmrg  symcode='[DT]'
629911a29bacSmrg  ;;
630011a29bacSmrgsysv4.2uw2*)
630111a29bacSmrg  symcode='[DT]'
630211a29bacSmrg  ;;
630311a29bacSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
630411a29bacSmrg  symcode='[ABDT]'
630511a29bacSmrg  ;;
630611a29bacSmrgsysv4)
630711a29bacSmrg  symcode='[DFNSTU]'
630811a29bacSmrg  ;;
630911a29bacSmrgesac
631041b2f0bdSmrg
631111a29bacSmrg# If we're using GNU nm, then use its standard symbol codes.
631211a29bacSmrgcase `$NM -V 2>&1` in
631311a29bacSmrg*GNU* | *'with BFD'*)
631411a29bacSmrg  symcode='[ABCDGIRSTW]' ;;
631511245024Smrgesac
631611245024Smrg
631711a29bacSmrg# Transform an extracted symbol line into a proper C declaration.
631811a29bacSmrg# Some systems (esp. on ia64) link data and code symbols differently,
631911a29bacSmrg# so use this general approach.
632011a29bacSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
632141b2f0bdSmrg
632211a29bacSmrg# Transform an extracted symbol line into symbol name and symbol address
632311a29bacSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
632411a29bacSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
632511245024Smrg
632611a29bacSmrg# Handle CRLF in mingw tool chain
632711a29bacSmrgopt_cr=
632811a29bacSmrgcase $build_os in
632911a29bacSmrgmingw*)
633011a29bacSmrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
633111a29bacSmrg  ;;
633211a29bacSmrgesac
633311245024Smrg
633411a29bacSmrg# Try without a prefix underscore, then with it.
633511a29bacSmrgfor ac_symprfx in "" "_"; do
633641b2f0bdSmrg
633711a29bacSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
633811a29bacSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
633941b2f0bdSmrg
634011a29bacSmrg  # Write the raw and C identifiers.
634111a29bacSmrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
634211a29bacSmrg    # Fake it for dumpbin and say T for any non-static function
634311a29bacSmrg    # and D for any global variable.
634411a29bacSmrg    # Also find C++ and __fastcall symbols from MSVC++,
634511a29bacSmrg    # which start with @ or ?.
634611a29bacSmrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
634711a29bacSmrg"     {last_section=section; section=\$ 3};"\
634811a29bacSmrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
634911a29bacSmrg"     \$ 0!~/External *\|/{next};"\
635011a29bacSmrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
635111a29bacSmrg"     {if(hide[section]) next};"\
635211a29bacSmrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
635311a29bacSmrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
635411a29bacSmrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
635511a29bacSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
635611a29bacSmrg"     ' prfx=^$ac_symprfx"
635711a29bacSmrg  else
635811a29bacSmrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
635911a29bacSmrg  fi
636041b2f0bdSmrg
636111a29bacSmrg  # Check to see that the pipe works correctly.
636211a29bacSmrg  pipe_works=no
636341b2f0bdSmrg
636411a29bacSmrg  rm -f conftest*
636511a29bacSmrg  cat > conftest.$ac_ext <<_LT_EOF
636611a29bacSmrg#ifdef __cplusplus
636711a29bacSmrgextern "C" {
636811a29bacSmrg#endif
636911a29bacSmrgchar nm_test_var;
637011a29bacSmrgvoid nm_test_func(void);
637111a29bacSmrgvoid nm_test_func(void){}
637211a29bacSmrg#ifdef __cplusplus
637311a29bacSmrg}
637411a29bacSmrg#endif
637511a29bacSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
637611a29bacSmrg_LT_EOF
637741b2f0bdSmrg
637811a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
637911a29bacSmrg  (eval $ac_compile) 2>&5
638011a29bacSmrg  ac_status=$?
638111a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
638211a29bacSmrg  test $ac_status = 0; }; then
638311a29bacSmrg    # Now try to grab the symbols.
638411a29bacSmrg    nlist=conftest.nm
638511a29bacSmrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
638611a29bacSmrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
638711a29bacSmrg  ac_status=$?
638811a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
638911a29bacSmrg  test $ac_status = 0; } && test -s "$nlist"; then
639011a29bacSmrg      # Try sorting and uniquifying the output.
639111a29bacSmrg      if sort "$nlist" | uniq > "$nlist"T; then
639211a29bacSmrg	mv -f "$nlist"T "$nlist"
639311a29bacSmrg      else
639411a29bacSmrg	rm -f "$nlist"T
639511a29bacSmrg      fi
639641b2f0bdSmrg
639711a29bacSmrg      # Make sure that we snagged all the symbols we need.
639811a29bacSmrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
639911a29bacSmrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
640011a29bacSmrg	  cat <<_LT_EOF > conftest.$ac_ext
640111a29bacSmrg#ifdef __cplusplus
640211a29bacSmrgextern "C" {
640311a29bacSmrg#endif
640441b2f0bdSmrg
640511a29bacSmrg_LT_EOF
640611a29bacSmrg	  # Now generate the symbol file.
640711a29bacSmrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
640841b2f0bdSmrg
640911a29bacSmrg	  cat <<_LT_EOF >> conftest.$ac_ext
641041b2f0bdSmrg
641111a29bacSmrg/* The mapping between symbol names and symbols.  */
641211a29bacSmrgconst struct {
641311a29bacSmrg  const char *name;
641411a29bacSmrg  void       *address;
641511a29bacSmrg}
641611a29bacSmrglt__PROGRAM__LTX_preloaded_symbols[] =
641711a29bacSmrg{
641811a29bacSmrg  { "@PROGRAM@", (void *) 0 },
641911a29bacSmrg_LT_EOF
642011a29bacSmrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
642111a29bacSmrg	  cat <<\_LT_EOF >> conftest.$ac_ext
642211a29bacSmrg  {0, (void *) 0}
642311a29bacSmrg};
642441b2f0bdSmrg
642511a29bacSmrg/* This works around a problem in FreeBSD linker */
642611a29bacSmrg#ifdef FREEBSD_WORKAROUND
642711a29bacSmrgstatic const void *lt_preloaded_setup() {
642811a29bacSmrg  return lt__PROGRAM__LTX_preloaded_symbols;
642911a29bacSmrg}
643011a29bacSmrg#endif
643141b2f0bdSmrg
643211a29bacSmrg#ifdef __cplusplus
643311a29bacSmrg}
643411a29bacSmrg#endif
643511a29bacSmrg_LT_EOF
643611a29bacSmrg	  # Now try linking the two files.
643711a29bacSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
643811a29bacSmrg	  lt_save_LIBS="$LIBS"
643911a29bacSmrg	  lt_save_CFLAGS="$CFLAGS"
644011a29bacSmrg	  LIBS="conftstm.$ac_objext"
644111a29bacSmrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
644211a29bacSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
644311a29bacSmrg  (eval $ac_link) 2>&5
644411a29bacSmrg  ac_status=$?
644511a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
644611a29bacSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
644711a29bacSmrg	    pipe_works=yes
644811a29bacSmrg	  fi
644911a29bacSmrg	  LIBS="$lt_save_LIBS"
645011a29bacSmrg	  CFLAGS="$lt_save_CFLAGS"
645111a29bacSmrg	else
645211a29bacSmrg	  echo "cannot find nm_test_func in $nlist" >&5
645311a29bacSmrg	fi
645441b2f0bdSmrg      else
645511a29bacSmrg	echo "cannot find nm_test_var in $nlist" >&5
645641b2f0bdSmrg      fi
645711a29bacSmrg    else
645811a29bacSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
645911a29bacSmrg    fi
646011a29bacSmrg  else
646111a29bacSmrg    echo "$progname: failed program was:" >&5
646211a29bacSmrg    cat conftest.$ac_ext >&5
646311a29bacSmrg  fi
646411a29bacSmrg  rm -rf conftest* conftst*
646541b2f0bdSmrg
646611a29bacSmrg  # Do not use the global_symbol_pipe unless it works.
646711a29bacSmrg  if test "$pipe_works" = yes; then
646811a29bacSmrg    break
646911a29bacSmrg  else
647011a29bacSmrg    lt_cv_sys_global_symbol_pipe=
647111a29bacSmrg  fi
647211a29bacSmrgdone
647341b2f0bdSmrg
647411a29bacSmrgfi
647541b2f0bdSmrg
647611a29bacSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
647711a29bacSmrg  lt_cv_sys_global_symbol_to_cdecl=
647811a29bacSmrgfi
647911a29bacSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
648011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
648111a29bacSmrg$as_echo "failed" >&6; }
648211a29bacSmrgelse
648311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
648411a29bacSmrg$as_echo "ok" >&6; }
648511a29bacSmrgfi
648641b2f0bdSmrg
648741b2f0bdSmrg
648841b2f0bdSmrg
648941b2f0bdSmrg
649041b2f0bdSmrg
649141b2f0bdSmrg
649241b2f0bdSmrg
649341b2f0bdSmrg
649441b2f0bdSmrg
649541b2f0bdSmrg
649641b2f0bdSmrg
649741b2f0bdSmrg
649841b2f0bdSmrg
649941b2f0bdSmrg
650041b2f0bdSmrg
650141b2f0bdSmrg
650241b2f0bdSmrg
650341b2f0bdSmrg
650441b2f0bdSmrg
650541b2f0bdSmrg
650641b2f0bdSmrg
650741b2f0bdSmrg
650811a29bacSmrg# Check whether --enable-libtool-lock was given.
650911a29bacSmrgif test "${enable_libtool_lock+set}" = set; then :
651011a29bacSmrg  enableval=$enable_libtool_lock;
651111a29bacSmrgfi
651241b2f0bdSmrg
651311a29bacSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
651411a29bacSmrg
651511a29bacSmrg# Some flags need to be propagated to the compiler or linker for good
651611a29bacSmrg# libtool support.
651711a29bacSmrgcase $host in
651811a29bacSmrgia64-*-hpux*)
651911a29bacSmrg  # Find out which ABI we are using.
652011a29bacSmrg  echo 'int i;' > conftest.$ac_ext
652111a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
652211a29bacSmrg  (eval $ac_compile) 2>&5
652311a29bacSmrg  ac_status=$?
652411a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
652511a29bacSmrg  test $ac_status = 0; }; then
652611a29bacSmrg    case `/usr/bin/file conftest.$ac_objext` in
652711a29bacSmrg      *ELF-32*)
652811a29bacSmrg	HPUX_IA64_MODE="32"
652911a29bacSmrg	;;
653011a29bacSmrg      *ELF-64*)
653111a29bacSmrg	HPUX_IA64_MODE="64"
653211a29bacSmrg	;;
653311a29bacSmrg    esac
653411a29bacSmrg  fi
653511a29bacSmrg  rm -rf conftest*
653611a29bacSmrg  ;;
653711a29bacSmrg*-*-irix6*)
653811a29bacSmrg  # Find out which ABI we are using.
653911a29bacSmrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
654011a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
654111a29bacSmrg  (eval $ac_compile) 2>&5
654211a29bacSmrg  ac_status=$?
654311a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
654411a29bacSmrg  test $ac_status = 0; }; then
654511a29bacSmrg    if test "$lt_cv_prog_gnu_ld" = yes; then
654611a29bacSmrg      case `/usr/bin/file conftest.$ac_objext` in
654711a29bacSmrg	*32-bit*)
654811a29bacSmrg	  LD="${LD-ld} -melf32bsmip"
654911a29bacSmrg	  ;;
655011a29bacSmrg	*N32*)
655111a29bacSmrg	  LD="${LD-ld} -melf32bmipn32"
655211a29bacSmrg	  ;;
655311a29bacSmrg	*64-bit*)
655411a29bacSmrg	  LD="${LD-ld} -melf64bmip"
655511a29bacSmrg	;;
655611a29bacSmrg      esac
655711a29bacSmrg    else
655811a29bacSmrg      case `/usr/bin/file conftest.$ac_objext` in
655911a29bacSmrg	*32-bit*)
656011a29bacSmrg	  LD="${LD-ld} -32"
656111a29bacSmrg	  ;;
656211a29bacSmrg	*N32*)
656311a29bacSmrg	  LD="${LD-ld} -n32"
656411a29bacSmrg	  ;;
656511a29bacSmrg	*64-bit*)
656611a29bacSmrg	  LD="${LD-ld} -64"
656711a29bacSmrg	  ;;
656811a29bacSmrg      esac
656911a29bacSmrg    fi
657011a29bacSmrg  fi
657111a29bacSmrg  rm -rf conftest*
657211a29bacSmrg  ;;
657311a29bacSmrg
657411a29bacSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
657511a29bacSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
657611a29bacSmrg  # Find out which ABI we are using.
657711a29bacSmrg  echo 'int i;' > conftest.$ac_ext
657811a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
657911a29bacSmrg  (eval $ac_compile) 2>&5
658011a29bacSmrg  ac_status=$?
658111a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
658211a29bacSmrg  test $ac_status = 0; }; then
658311a29bacSmrg    case `/usr/bin/file conftest.o` in
658411a29bacSmrg      *32-bit*)
658511a29bacSmrg	case $host in
658611a29bacSmrg	  x86_64-*kfreebsd*-gnu)
658711a29bacSmrg	    LD="${LD-ld} -m elf_i386_fbsd"
658811a29bacSmrg	    ;;
658911a29bacSmrg	  x86_64-*linux*)
659011a29bacSmrg	    LD="${LD-ld} -m elf_i386"
659111a29bacSmrg	    ;;
659211a29bacSmrg	  ppc64-*linux*|powerpc64-*linux*)
659311a29bacSmrg	    LD="${LD-ld} -m elf32ppclinux"
659411a29bacSmrg	    ;;
659511a29bacSmrg	  s390x-*linux*)
659611a29bacSmrg	    LD="${LD-ld} -m elf_s390"
659711a29bacSmrg	    ;;
659811a29bacSmrg	  sparc64-*linux*)
659911a29bacSmrg	    LD="${LD-ld} -m elf32_sparc"
660011a29bacSmrg	    ;;
660111a29bacSmrg	esac
660211a29bacSmrg	;;
660311a29bacSmrg      *64-bit*)
660411a29bacSmrg	case $host in
660511a29bacSmrg	  x86_64-*kfreebsd*-gnu)
660611a29bacSmrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
660711a29bacSmrg	    ;;
660811a29bacSmrg	  x86_64-*linux*)
660911a29bacSmrg	    LD="${LD-ld} -m elf_x86_64"
661011a29bacSmrg	    ;;
661111a29bacSmrg	  ppc*-*linux*|powerpc*-*linux*)
661211a29bacSmrg	    LD="${LD-ld} -m elf64ppc"
661311a29bacSmrg	    ;;
661411a29bacSmrg	  s390*-*linux*|s390*-*tpf*)
661511a29bacSmrg	    LD="${LD-ld} -m elf64_s390"
661611a29bacSmrg	    ;;
661711a29bacSmrg	  sparc*-*linux*)
661811a29bacSmrg	    LD="${LD-ld} -m elf64_sparc"
661911a29bacSmrg	    ;;
662011a29bacSmrg	esac
662111a29bacSmrg	;;
662241b2f0bdSmrg    esac
662341b2f0bdSmrg  fi
662411a29bacSmrg  rm -rf conftest*
662511a29bacSmrg  ;;
662641b2f0bdSmrg
662711a29bacSmrg*-*-sco3.2v5*)
662811a29bacSmrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
662911a29bacSmrg  SAVE_CFLAGS="$CFLAGS"
663011a29bacSmrg  CFLAGS="$CFLAGS -belf"
663111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
663211a29bacSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
663311a29bacSmrgif ${lt_cv_cc_needs_belf+:} false; then :
663411a29bacSmrg  $as_echo_n "(cached) " >&6
663511a29bacSmrgelse
663611a29bacSmrg  ac_ext=c
663711a29bacSmrgac_cpp='$CPP $CPPFLAGS'
663811a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
663911a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
664011a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
664141b2f0bdSmrg
664211a29bacSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
664311a29bacSmrg/* end confdefs.h.  */
664441b2f0bdSmrg
664511a29bacSmrgint
664611a29bacSmrgmain ()
664711a29bacSmrg{
664811a29bacSmrg
664911a29bacSmrg  ;
665011a29bacSmrg  return 0;
665111a29bacSmrg}
665211a29bacSmrg_ACEOF
665311a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
665411a29bacSmrg  lt_cv_cc_needs_belf=yes
665511a29bacSmrgelse
665611a29bacSmrg  lt_cv_cc_needs_belf=no
665711a29bacSmrgfi
665811a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
665911a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
666011a29bacSmrg     ac_ext=c
666111a29bacSmrgac_cpp='$CPP $CPPFLAGS'
666211a29bacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
666311a29bacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
666411a29bacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
666541b2f0bdSmrg
666611a29bacSmrgfi
666711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
666811a29bacSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
666911a29bacSmrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
667011a29bacSmrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
667111a29bacSmrg    CFLAGS="$SAVE_CFLAGS"
667211a29bacSmrg  fi
667311a29bacSmrg  ;;
667411a29bacSmrgsparc*-*solaris*)
667511a29bacSmrg  # Find out which ABI we are using.
667611a29bacSmrg  echo 'int i;' > conftest.$ac_ext
667711a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
667841b2f0bdSmrg  (eval $ac_compile) 2>&5
667941b2f0bdSmrg  ac_status=$?
668011a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
668111a29bacSmrg  test $ac_status = 0; }; then
668211a29bacSmrg    case `/usr/bin/file conftest.o` in
668311a29bacSmrg    *64-bit*)
668411a29bacSmrg      case $lt_cv_prog_gnu_ld in
668511a29bacSmrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
668611a29bacSmrg      *)
668711a29bacSmrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
668811a29bacSmrg	  LD="${LD-ld} -64"
668911a29bacSmrg	fi
669011a29bacSmrg	;;
669111a29bacSmrg      esac
669241b2f0bdSmrg      ;;
669341b2f0bdSmrg    esac
669441b2f0bdSmrg  fi
669511a29bacSmrg  rm -rf conftest*
669611a29bacSmrg  ;;
669711a29bacSmrgesac
669811a29bacSmrg
669911a29bacSmrgneed_locks="$enable_libtool_lock"
670011a29bacSmrg
670111a29bacSmrg
670211a29bacSmrg  case $host_os in
670311a29bacSmrg    rhapsody* | darwin*)
670411a29bacSmrg    if test -n "$ac_tool_prefix"; then
670511a29bacSmrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
670611a29bacSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
670711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
670811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
670911a29bacSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
671011a29bacSmrg  $as_echo_n "(cached) " >&6
671111a29bacSmrgelse
671211a29bacSmrg  if test -n "$DSYMUTIL"; then
671311a29bacSmrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
671411a29bacSmrgelse
671511a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
671611a29bacSmrgfor as_dir in $PATH
671711a29bacSmrgdo
671811a29bacSmrg  IFS=$as_save_IFS
671911a29bacSmrg  test -z "$as_dir" && as_dir=.
672011a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
672111a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
672211a29bacSmrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
672311a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
672411a29bacSmrg    break 2
672511a29bacSmrg  fi
672611a29bacSmrgdone
672711a29bacSmrg  done
672811a29bacSmrgIFS=$as_save_IFS
672911245024Smrg
673011a29bacSmrgfi
673111a29bacSmrgfi
673211a29bacSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
673311a29bacSmrgif test -n "$DSYMUTIL"; then
673411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
673511a29bacSmrg$as_echo "$DSYMUTIL" >&6; }
673611a29bacSmrgelse
673711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
673811a29bacSmrg$as_echo "no" >&6; }
673911a29bacSmrgfi
674041b2f0bdSmrg
674141b2f0bdSmrg
674211a29bacSmrgfi
674311a29bacSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then
674411a29bacSmrg  ac_ct_DSYMUTIL=$DSYMUTIL
674511a29bacSmrg  # Extract the first word of "dsymutil", so it can be a program name with args.
674611a29bacSmrgset dummy dsymutil; ac_word=$2
674711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
674811a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
674911a29bacSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
675011a29bacSmrg  $as_echo_n "(cached) " >&6
675111a29bacSmrgelse
675211a29bacSmrg  if test -n "$ac_ct_DSYMUTIL"; then
675311a29bacSmrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
675411a29bacSmrgelse
675511a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
675611a29bacSmrgfor as_dir in $PATH
675711a29bacSmrgdo
675811a29bacSmrg  IFS=$as_save_IFS
675911a29bacSmrg  test -z "$as_dir" && as_dir=.
676011a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
676111a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
676211a29bacSmrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
676311a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
676411a29bacSmrg    break 2
676511a29bacSmrg  fi
676611a29bacSmrgdone
676711a29bacSmrg  done
676811a29bacSmrgIFS=$as_save_IFS
676941b2f0bdSmrg
677011a29bacSmrgfi
677111a29bacSmrgfi
677211a29bacSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
677311a29bacSmrgif test -n "$ac_ct_DSYMUTIL"; then
677411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
677511a29bacSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
677611a29bacSmrgelse
677711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
677811a29bacSmrg$as_echo "no" >&6; }
677911a29bacSmrgfi
678041b2f0bdSmrg
678111a29bacSmrg  if test "x$ac_ct_DSYMUTIL" = x; then
678211a29bacSmrg    DSYMUTIL=":"
678341b2f0bdSmrg  else
678411a29bacSmrg    case $cross_compiling:$ac_tool_warned in
678511a29bacSmrgyes:)
678611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
678711a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
678811a29bacSmrgac_tool_warned=yes ;;
678911a29bacSmrgesac
679011a29bacSmrg    DSYMUTIL=$ac_ct_DSYMUTIL
679141b2f0bdSmrg  fi
679211a29bacSmrgelse
679311a29bacSmrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
679411a29bacSmrgfi
679541b2f0bdSmrg
679611a29bacSmrg    if test -n "$ac_tool_prefix"; then
679711a29bacSmrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
679811a29bacSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
679911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
680011a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
680111a29bacSmrgif ${ac_cv_prog_NMEDIT+:} false; then :
680211a29bacSmrg  $as_echo_n "(cached) " >&6
680311a29bacSmrgelse
680411a29bacSmrg  if test -n "$NMEDIT"; then
680511a29bacSmrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
680611a29bacSmrgelse
680711a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
680811a29bacSmrgfor as_dir in $PATH
680911a29bacSmrgdo
681011a29bacSmrg  IFS=$as_save_IFS
681111a29bacSmrg  test -z "$as_dir" && as_dir=.
681211a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
681311a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
681411a29bacSmrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
681511a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
681611a29bacSmrg    break 2
681711a29bacSmrg  fi
681811a29bacSmrgdone
681911a29bacSmrg  done
682011a29bacSmrgIFS=$as_save_IFS
682141b2f0bdSmrg
682211a29bacSmrgfi
682311a29bacSmrgfi
682411a29bacSmrgNMEDIT=$ac_cv_prog_NMEDIT
682511a29bacSmrgif test -n "$NMEDIT"; then
682611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
682711a29bacSmrg$as_echo "$NMEDIT" >&6; }
682811a29bacSmrgelse
682911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
683011a29bacSmrg$as_echo "no" >&6; }
683111a29bacSmrgfi
683241b2f0bdSmrg
683341b2f0bdSmrg
683411a29bacSmrgfi
683511a29bacSmrgif test -z "$ac_cv_prog_NMEDIT"; then
683611a29bacSmrg  ac_ct_NMEDIT=$NMEDIT
683711a29bacSmrg  # Extract the first word of "nmedit", so it can be a program name with args.
683811a29bacSmrgset dummy nmedit; ac_word=$2
683911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
684011a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
684111a29bacSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
684211a29bacSmrg  $as_echo_n "(cached) " >&6
684311a29bacSmrgelse
684411a29bacSmrg  if test -n "$ac_ct_NMEDIT"; then
684511a29bacSmrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
684611a29bacSmrgelse
684711a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
684811a29bacSmrgfor as_dir in $PATH
684911a29bacSmrgdo
685011a29bacSmrg  IFS=$as_save_IFS
685111a29bacSmrg  test -z "$as_dir" && as_dir=.
685211a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
685311a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
685411a29bacSmrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
685511a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
685611a29bacSmrg    break 2
685711a29bacSmrg  fi
685811a29bacSmrgdone
685911a29bacSmrg  done
686011a29bacSmrgIFS=$as_save_IFS
686141b2f0bdSmrg
686211a29bacSmrgfi
686311a29bacSmrgfi
686411a29bacSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
686511a29bacSmrgif test -n "$ac_ct_NMEDIT"; then
686611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
686711a29bacSmrg$as_echo "$ac_ct_NMEDIT" >&6; }
686811a29bacSmrgelse
686911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
687011a29bacSmrg$as_echo "no" >&6; }
687111a29bacSmrgfi
687241b2f0bdSmrg
687311a29bacSmrg  if test "x$ac_ct_NMEDIT" = x; then
687411a29bacSmrg    NMEDIT=":"
687511a29bacSmrg  else
687611a29bacSmrg    case $cross_compiling:$ac_tool_warned in
687711a29bacSmrgyes:)
687811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
687911a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
688011a29bacSmrgac_tool_warned=yes ;;
688111a29bacSmrgesac
688211a29bacSmrg    NMEDIT=$ac_ct_NMEDIT
688311a29bacSmrg  fi
688411a29bacSmrgelse
688511a29bacSmrg  NMEDIT="$ac_cv_prog_NMEDIT"
688611a29bacSmrgfi
688741b2f0bdSmrg
688811a29bacSmrg    if test -n "$ac_tool_prefix"; then
688911a29bacSmrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
689011a29bacSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
689111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
689211a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
689311a29bacSmrgif ${ac_cv_prog_LIPO+:} false; then :
689411a29bacSmrg  $as_echo_n "(cached) " >&6
689511a29bacSmrgelse
689611a29bacSmrg  if test -n "$LIPO"; then
689711a29bacSmrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
689811a29bacSmrgelse
689911a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
690011a29bacSmrgfor as_dir in $PATH
690111a29bacSmrgdo
690211a29bacSmrg  IFS=$as_save_IFS
690311a29bacSmrg  test -z "$as_dir" && as_dir=.
690411a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
690511a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
690611a29bacSmrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
690711a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
690811a29bacSmrg    break 2
690911a29bacSmrg  fi
691011a29bacSmrgdone
691111a29bacSmrg  done
691211a29bacSmrgIFS=$as_save_IFS
691341b2f0bdSmrg
691411a29bacSmrgfi
691511a29bacSmrgfi
691611a29bacSmrgLIPO=$ac_cv_prog_LIPO
691711a29bacSmrgif test -n "$LIPO"; then
691811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
691911a29bacSmrg$as_echo "$LIPO" >&6; }
692011a29bacSmrgelse
692111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
692211a29bacSmrg$as_echo "no" >&6; }
692311a29bacSmrgfi
692411245024Smrg
692541b2f0bdSmrg
692611a29bacSmrgfi
692711a29bacSmrgif test -z "$ac_cv_prog_LIPO"; then
692811a29bacSmrg  ac_ct_LIPO=$LIPO
692911a29bacSmrg  # Extract the first word of "lipo", so it can be a program name with args.
693011a29bacSmrgset dummy lipo; ac_word=$2
693111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
693211a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
693311a29bacSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
693411a29bacSmrg  $as_echo_n "(cached) " >&6
693511a29bacSmrgelse
693611a29bacSmrg  if test -n "$ac_ct_LIPO"; then
693711a29bacSmrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
693811a29bacSmrgelse
693911a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
694011a29bacSmrgfor as_dir in $PATH
694111a29bacSmrgdo
694211a29bacSmrg  IFS=$as_save_IFS
694311a29bacSmrg  test -z "$as_dir" && as_dir=.
694411a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
694511a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
694611a29bacSmrg    ac_cv_prog_ac_ct_LIPO="lipo"
694711a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
694811a29bacSmrg    break 2
694911a29bacSmrg  fi
695011a29bacSmrgdone
695111a29bacSmrg  done
695211a29bacSmrgIFS=$as_save_IFS
695341b2f0bdSmrg
695411a29bacSmrgfi
695511a29bacSmrgfi
695611a29bacSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
695711a29bacSmrgif test -n "$ac_ct_LIPO"; then
695811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
695911a29bacSmrg$as_echo "$ac_ct_LIPO" >&6; }
696011a29bacSmrgelse
696111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
696211a29bacSmrg$as_echo "no" >&6; }
696311a29bacSmrgfi
696441b2f0bdSmrg
696511a29bacSmrg  if test "x$ac_ct_LIPO" = x; then
696611a29bacSmrg    LIPO=":"
696741b2f0bdSmrg  else
696811a29bacSmrg    case $cross_compiling:$ac_tool_warned in
696911a29bacSmrgyes:)
697011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
697111a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
697211a29bacSmrgac_tool_warned=yes ;;
697311a29bacSmrgesac
697411a29bacSmrg    LIPO=$ac_ct_LIPO
697541b2f0bdSmrg  fi
697611a29bacSmrgelse
697711a29bacSmrg  LIPO="$ac_cv_prog_LIPO"
697811a29bacSmrgfi
697941b2f0bdSmrg
698011a29bacSmrg    if test -n "$ac_tool_prefix"; then
698111a29bacSmrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
698211a29bacSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2
698311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
698411a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
698511a29bacSmrgif ${ac_cv_prog_OTOOL+:} false; then :
698611a29bacSmrg  $as_echo_n "(cached) " >&6
698711a29bacSmrgelse
698811a29bacSmrg  if test -n "$OTOOL"; then
698911a29bacSmrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
699011a29bacSmrgelse
699111a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
699211a29bacSmrgfor as_dir in $PATH
699311a29bacSmrgdo
699411a29bacSmrg  IFS=$as_save_IFS
699511a29bacSmrg  test -z "$as_dir" && as_dir=.
699611a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
699711a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
699811a29bacSmrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
699911a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
700011a29bacSmrg    break 2
700111a29bacSmrg  fi
700211a29bacSmrgdone
700311a29bacSmrg  done
700411a29bacSmrgIFS=$as_save_IFS
700541b2f0bdSmrg
700611a29bacSmrgfi
700711a29bacSmrgfi
700811a29bacSmrgOTOOL=$ac_cv_prog_OTOOL
700911a29bacSmrgif test -n "$OTOOL"; then
701011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
701111a29bacSmrg$as_echo "$OTOOL" >&6; }
701211a29bacSmrgelse
701311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
701411a29bacSmrg$as_echo "no" >&6; }
701511a29bacSmrgfi
701641b2f0bdSmrg
701741b2f0bdSmrg
701811a29bacSmrgfi
701911a29bacSmrgif test -z "$ac_cv_prog_OTOOL"; then
702011a29bacSmrg  ac_ct_OTOOL=$OTOOL
702111a29bacSmrg  # Extract the first word of "otool", so it can be a program name with args.
702211a29bacSmrgset dummy otool; ac_word=$2
702311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
702411a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
702511a29bacSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
702611a29bacSmrg  $as_echo_n "(cached) " >&6
702711a29bacSmrgelse
702811a29bacSmrg  if test -n "$ac_ct_OTOOL"; then
702911a29bacSmrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
703011a29bacSmrgelse
703111a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
703211a29bacSmrgfor as_dir in $PATH
703311a29bacSmrgdo
703411a29bacSmrg  IFS=$as_save_IFS
703511a29bacSmrg  test -z "$as_dir" && as_dir=.
703611a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
703711a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
703811a29bacSmrg    ac_cv_prog_ac_ct_OTOOL="otool"
703911a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
704011a29bacSmrg    break 2
704141b2f0bdSmrg  fi
704211a29bacSmrgdone
704311a29bacSmrg  done
704411a29bacSmrgIFS=$as_save_IFS
704541b2f0bdSmrg
704611a29bacSmrgfi
704711a29bacSmrgfi
704811a29bacSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
704911a29bacSmrgif test -n "$ac_ct_OTOOL"; then
705011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
705111a29bacSmrg$as_echo "$ac_ct_OTOOL" >&6; }
705211a29bacSmrgelse
705311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
705411a29bacSmrg$as_echo "no" >&6; }
705511a29bacSmrgfi
705641b2f0bdSmrg
705711a29bacSmrg  if test "x$ac_ct_OTOOL" = x; then
705811a29bacSmrg    OTOOL=":"
705941b2f0bdSmrg  else
706011a29bacSmrg    case $cross_compiling:$ac_tool_warned in
706111a29bacSmrgyes:)
706211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
706311a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
706411a29bacSmrgac_tool_warned=yes ;;
706511a29bacSmrgesac
706611a29bacSmrg    OTOOL=$ac_ct_OTOOL
706741b2f0bdSmrg  fi
706811a29bacSmrgelse
706911a29bacSmrg  OTOOL="$ac_cv_prog_OTOOL"
707011a29bacSmrgfi
707141b2f0bdSmrg
707211a29bacSmrg    if test -n "$ac_tool_prefix"; then
707311a29bacSmrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
707411a29bacSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
707511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
707611a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
707711a29bacSmrgif ${ac_cv_prog_OTOOL64+:} false; then :
707811a29bacSmrg  $as_echo_n "(cached) " >&6
707911a29bacSmrgelse
708011a29bacSmrg  if test -n "$OTOOL64"; then
708111a29bacSmrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
708211a29bacSmrgelse
708311a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
708411a29bacSmrgfor as_dir in $PATH
708511a29bacSmrgdo
708611a29bacSmrg  IFS=$as_save_IFS
708711a29bacSmrg  test -z "$as_dir" && as_dir=.
708811a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
708911a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
709011a29bacSmrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
709111a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
709211a29bacSmrg    break 2
709311a29bacSmrg  fi
709411a29bacSmrgdone
709511a29bacSmrg  done
709611a29bacSmrgIFS=$as_save_IFS
709741b2f0bdSmrg
709811a29bacSmrgfi
709911a29bacSmrgfi
710011a29bacSmrgOTOOL64=$ac_cv_prog_OTOOL64
710111a29bacSmrgif test -n "$OTOOL64"; then
710211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
710311a29bacSmrg$as_echo "$OTOOL64" >&6; }
710411a29bacSmrgelse
710511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
710611a29bacSmrg$as_echo "no" >&6; }
710711a29bacSmrgfi
710841b2f0bdSmrg
710911a29bacSmrg
711011a29bacSmrgfi
711111a29bacSmrgif test -z "$ac_cv_prog_OTOOL64"; then
711211a29bacSmrg  ac_ct_OTOOL64=$OTOOL64
711311a29bacSmrg  # Extract the first word of "otool64", so it can be a program name with args.
711411a29bacSmrgset dummy otool64; ac_word=$2
711511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
711611a29bacSmrg$as_echo_n "checking for $ac_word... " >&6; }
711711a29bacSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
711811a29bacSmrg  $as_echo_n "(cached) " >&6
711911a29bacSmrgelse
712011a29bacSmrg  if test -n "$ac_ct_OTOOL64"; then
712111a29bacSmrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
712211a29bacSmrgelse
712311a29bacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
712411a29bacSmrgfor as_dir in $PATH
712511a29bacSmrgdo
712611a29bacSmrg  IFS=$as_save_IFS
712711a29bacSmrg  test -z "$as_dir" && as_dir=.
712811a29bacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
712911a29bacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
713011a29bacSmrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
713111a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
713211a29bacSmrg    break 2
713311a29bacSmrg  fi
713411a29bacSmrgdone
713511a29bacSmrg  done
713611a29bacSmrgIFS=$as_save_IFS
713711a29bacSmrg
713811a29bacSmrgfi
713911a29bacSmrgfi
714011a29bacSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
714111a29bacSmrgif test -n "$ac_ct_OTOOL64"; then
714211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
714311a29bacSmrg$as_echo "$ac_ct_OTOOL64" >&6; }
714411a29bacSmrgelse
714511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
714611a29bacSmrg$as_echo "no" >&6; }
714711a29bacSmrgfi
714811a29bacSmrg
714911a29bacSmrg  if test "x$ac_ct_OTOOL64" = x; then
715011a29bacSmrg    OTOOL64=":"
715141b2f0bdSmrg  else
715211a29bacSmrg    case $cross_compiling:$ac_tool_warned in
715311a29bacSmrgyes:)
715411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
715511a29bacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
715611a29bacSmrgac_tool_warned=yes ;;
715711a29bacSmrgesac
715811a29bacSmrg    OTOOL64=$ac_ct_OTOOL64
715941b2f0bdSmrg  fi
716011a29bacSmrgelse
716111a29bacSmrg  OTOOL64="$ac_cv_prog_OTOOL64"
716211a29bacSmrgfi
716311a29bacSmrg
716411a29bacSmrg
716511a29bacSmrg
716611a29bacSmrg
716711a29bacSmrg
716811a29bacSmrg
716911a29bacSmrg
717011a29bacSmrg
717111a29bacSmrg
717211a29bacSmrg
717311a29bacSmrg
717411a29bacSmrg
717511a29bacSmrg
717641b2f0bdSmrg
717741b2f0bdSmrg
717841b2f0bdSmrg
717911245024Smrg
718041b2f0bdSmrg
718141b2f0bdSmrg
718241b2f0bdSmrg
718341b2f0bdSmrg
718441b2f0bdSmrg
718541b2f0bdSmrg
718641b2f0bdSmrg
718711a29bacSmrg
718811a29bacSmrg
718911a29bacSmrg
719011a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
719111a29bacSmrg$as_echo_n "checking for -single_module linker flag... " >&6; }
719211a29bacSmrgif ${lt_cv_apple_cc_single_mod+:} false; then :
719311245024Smrg  $as_echo_n "(cached) " >&6
719411245024Smrgelse
719511a29bacSmrg  lt_cv_apple_cc_single_mod=no
719611a29bacSmrg      if test -z "${LT_MULTI_MODULE}"; then
719711a29bacSmrg	# By default we will add the -single_module flag. You can override
719811a29bacSmrg	# by either setting the environment variable LT_MULTI_MODULE
719911a29bacSmrg	# non-empty at configure time, or by adding -multi_module to the
720011a29bacSmrg	# link flags.
720111a29bacSmrg	rm -rf libconftest.dylib*
720211a29bacSmrg	echo "int foo(void){return 1;}" > conftest.c
720311a29bacSmrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
720411a29bacSmrg-dynamiclib -Wl,-single_module conftest.c" >&5
720511a29bacSmrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
720611a29bacSmrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
720711a29bacSmrg        _lt_result=$?
720811a29bacSmrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
720911a29bacSmrg	  lt_cv_apple_cc_single_mod=yes
721011a29bacSmrg	else
721111a29bacSmrg	  cat conftest.err >&5
721211a29bacSmrg	fi
721311a29bacSmrg	rm -rf libconftest.dylib*
721411a29bacSmrg	rm -f conftest.*
721511a29bacSmrg      fi
721611245024Smrgfi
721711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
721811a29bacSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
721911a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
722011a29bacSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
722111a29bacSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
722211a29bacSmrg  $as_echo_n "(cached) " >&6
722311a29bacSmrgelse
722411a29bacSmrg  lt_cv_ld_exported_symbols_list=no
722511a29bacSmrg      save_LDFLAGS=$LDFLAGS
722611a29bacSmrg      echo "_main" > conftest.sym
722711a29bacSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
722811a29bacSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
722911a29bacSmrg/* end confdefs.h.  */
723011245024Smrg
723111a29bacSmrgint
723211a29bacSmrgmain ()
723311a29bacSmrg{
723411a29bacSmrg
723511a29bacSmrg  ;
723611a29bacSmrg  return 0;
723711a29bacSmrg}
723811a29bacSmrg_ACEOF
723911a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
724011a29bacSmrg  lt_cv_ld_exported_symbols_list=yes
724111a29bacSmrgelse
724211a29bacSmrg  lt_cv_ld_exported_symbols_list=no
724311a29bacSmrgfi
724411a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
724511a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
724611a29bacSmrg	LDFLAGS="$save_LDFLAGS"
724711a29bacSmrg
724811a29bacSmrgfi
724911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
725011a29bacSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
725111a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
725211a29bacSmrg$as_echo_n "checking for -force_load linker flag... " >&6; }
725311a29bacSmrgif ${lt_cv_ld_force_load+:} false; then :
725411245024Smrg  $as_echo_n "(cached) " >&6
725511245024Smrgelse
725611a29bacSmrg  lt_cv_ld_force_load=no
725711a29bacSmrg      cat > conftest.c << _LT_EOF
725811a29bacSmrgint forced_loaded() { return 2;}
725911a29bacSmrg_LT_EOF
726011a29bacSmrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
726111a29bacSmrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
726211a29bacSmrg      echo "$AR cru libconftest.a conftest.o" >&5
726311a29bacSmrg      $AR cru libconftest.a conftest.o 2>&5
726411a29bacSmrg      echo "$RANLIB libconftest.a" >&5
726511a29bacSmrg      $RANLIB libconftest.a 2>&5
726611a29bacSmrg      cat > conftest.c << _LT_EOF
726711a29bacSmrgint main() { return 0;}
726811a29bacSmrg_LT_EOF
726911a29bacSmrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
727011a29bacSmrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
727111a29bacSmrg      _lt_result=$?
727211a29bacSmrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
727311a29bacSmrg	lt_cv_ld_force_load=yes
727411a29bacSmrg      else
727511a29bacSmrg	cat conftest.err >&5
727611a29bacSmrg      fi
727711a29bacSmrg        rm -f conftest.err libconftest.a conftest conftest.c
727811a29bacSmrg        rm -rf conftest.dSYM
727911a29bacSmrg
728011245024Smrgfi
728111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
728211a29bacSmrg$as_echo "$lt_cv_ld_force_load" >&6; }
728311a29bacSmrg    case $host_os in
728411a29bacSmrg    rhapsody* | darwin1.[012])
728511a29bacSmrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
728611a29bacSmrg    darwin1.*)
728711a29bacSmrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
728811a29bacSmrg    darwin*) # darwin 5.x on
728911a29bacSmrg      # if running on 10.5 or later, the deployment target defaults
729011a29bacSmrg      # to the OS version, if on x86, and 10.4, the deployment
729111a29bacSmrg      # target defaults to 10.4. Don't you love it?
729211a29bacSmrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
729311a29bacSmrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
729411a29bacSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
729511a29bacSmrg	10.[012]*)
729611a29bacSmrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
729711a29bacSmrg	10.*)
729811a29bacSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
729911a29bacSmrg      esac
730011a29bacSmrg    ;;
730111a29bacSmrg  esac
730211a29bacSmrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
730311a29bacSmrg      _lt_dar_single_mod='$single_module'
730411a29bacSmrg    fi
730511a29bacSmrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
730611a29bacSmrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
730711a29bacSmrg    else
730811a29bacSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
730911a29bacSmrg    fi
731011a29bacSmrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
731111a29bacSmrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
731211a29bacSmrg    else
731311a29bacSmrg      _lt_dsymutil=
731411a29bacSmrg    fi
731511a29bacSmrg    ;;
731611a29bacSmrg  esac
731711245024Smrg
731811a29bacSmrgfor ac_header in dlfcn.h
731911a29bacSmrgdo :
732011a29bacSmrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
732111a29bacSmrg"
732211a29bacSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
732311a29bacSmrg  cat >>confdefs.h <<_ACEOF
732411a29bacSmrg#define HAVE_DLFCN_H 1
732511a29bacSmrg_ACEOF
732611245024Smrg
732741b2f0bdSmrgfi
732841b2f0bdSmrg
732911a29bacSmrgdone
733041b2f0bdSmrg
733111a29bacSmrg
733211a29bacSmrg
733311a29bacSmrg
733411a29bacSmrg
733511a29bacSmrg# Set options
733611a29bacSmrg
733711a29bacSmrg
733811a29bacSmrg
733911a29bacSmrg        enable_dlopen=no
734011a29bacSmrg
734111a29bacSmrg
734211a29bacSmrg  enable_win32_dll=no
734311a29bacSmrg
734411a29bacSmrg
734511a29bacSmrg            # Check whether --enable-shared was given.
734611a29bacSmrgif test "${enable_shared+set}" = set; then :
734711a29bacSmrg  enableval=$enable_shared; p=${PACKAGE-default}
734811a29bacSmrg    case $enableval in
734911a29bacSmrg    yes) enable_shared=yes ;;
735011a29bacSmrg    no) enable_shared=no ;;
735111a29bacSmrg    *)
735211a29bacSmrg      enable_shared=no
735311a29bacSmrg      # Look at the argument we got.  We use all the common list separators.
735411a29bacSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
735511a29bacSmrg      for pkg in $enableval; do
735611a29bacSmrg	IFS="$lt_save_ifs"
735711a29bacSmrg	if test "X$pkg" = "X$p"; then
735811a29bacSmrg	  enable_shared=yes
735911a29bacSmrg	fi
736011a29bacSmrg      done
736111a29bacSmrg      IFS="$lt_save_ifs"
736211a29bacSmrg      ;;
736311a29bacSmrg    esac
736441b2f0bdSmrgelse
736511a29bacSmrg  enable_shared=yes
736641b2f0bdSmrgfi
736741b2f0bdSmrg
736841b2f0bdSmrg
736941b2f0bdSmrg
737011a29bacSmrg
737111a29bacSmrg
737211a29bacSmrg
737311a29bacSmrg
737411a29bacSmrg
737511a29bacSmrg
737611a29bacSmrg  # Check whether --enable-static was given.
737711a29bacSmrgif test "${enable_static+set}" = set; then :
737811a29bacSmrg  enableval=$enable_static; p=${PACKAGE-default}
737911a29bacSmrg    case $enableval in
738011a29bacSmrg    yes) enable_static=yes ;;
738111a29bacSmrg    no) enable_static=no ;;
738241b2f0bdSmrg    *)
738311a29bacSmrg     enable_static=no
738411a29bacSmrg      # Look at the argument we got.  We use all the common list separators.
738511a29bacSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
738611a29bacSmrg      for pkg in $enableval; do
738711a29bacSmrg	IFS="$lt_save_ifs"
738811a29bacSmrg	if test "X$pkg" = "X$p"; then
738911a29bacSmrg	  enable_static=yes
739011a29bacSmrg	fi
739111a29bacSmrg      done
739211a29bacSmrg      IFS="$lt_save_ifs"
739341b2f0bdSmrg      ;;
739441b2f0bdSmrg    esac
739511a29bacSmrgelse
739611a29bacSmrg  enable_static=yes
739711a29bacSmrgfi
739841b2f0bdSmrg
739941b2f0bdSmrg
740041b2f0bdSmrg
740141b2f0bdSmrg
740241b2f0bdSmrg
740341b2f0bdSmrg
740441b2f0bdSmrg
740541b2f0bdSmrg
740641b2f0bdSmrg
740741b2f0bdSmrg
740811a29bacSmrg# Check whether --with-pic was given.
740911a29bacSmrgif test "${with_pic+set}" = set; then :
741011a29bacSmrg  withval=$with_pic; pic_mode="$withval"
741111a29bacSmrgelse
741211a29bacSmrg  pic_mode=default
741311a29bacSmrgfi
741441b2f0bdSmrg
741541b2f0bdSmrg
741611a29bacSmrgtest -z "$pic_mode" && pic_mode=default
741741b2f0bdSmrg
741841b2f0bdSmrg
741941b2f0bdSmrg
742041b2f0bdSmrg
742141b2f0bdSmrg
742241b2f0bdSmrg
742341b2f0bdSmrg
742411a29bacSmrg  # Check whether --enable-fast-install was given.
742511a29bacSmrgif test "${enable_fast_install+set}" = set; then :
742611a29bacSmrg  enableval=$enable_fast_install; p=${PACKAGE-default}
742711a29bacSmrg    case $enableval in
742811a29bacSmrg    yes) enable_fast_install=yes ;;
742911a29bacSmrg    no) enable_fast_install=no ;;
743011a29bacSmrg    *)
743111a29bacSmrg      enable_fast_install=no
743211a29bacSmrg      # Look at the argument we got.  We use all the common list separators.
743311a29bacSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
743411a29bacSmrg      for pkg in $enableval; do
743511a29bacSmrg	IFS="$lt_save_ifs"
743611a29bacSmrg	if test "X$pkg" = "X$p"; then
743711a29bacSmrg	  enable_fast_install=yes
743811a29bacSmrg	fi
743911a29bacSmrg      done
744011a29bacSmrg      IFS="$lt_save_ifs"
744111a29bacSmrg      ;;
744211a29bacSmrg    esac
744311a29bacSmrgelse
744411a29bacSmrg  enable_fast_install=yes
744511a29bacSmrgfi
744641b2f0bdSmrg
744741b2f0bdSmrg
744841b2f0bdSmrg
744941b2f0bdSmrg
745041b2f0bdSmrg
745141b2f0bdSmrg
745241b2f0bdSmrg
745341b2f0bdSmrg
745441b2f0bdSmrg
745541b2f0bdSmrg
745641b2f0bdSmrg
745711a29bacSmrg# This can be used to rebuild libtool when needed
745811a29bacSmrgLIBTOOL_DEPS="$ltmain"
745941b2f0bdSmrg
746011a29bacSmrg# Always use our own libtool.
746111a29bacSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
746241b2f0bdSmrg
746341b2f0bdSmrg
746441b2f0bdSmrg
746541b2f0bdSmrg
746641b2f0bdSmrg
746741b2f0bdSmrg
746841b2f0bdSmrg
746941b2f0bdSmrg
747041b2f0bdSmrg
747141b2f0bdSmrg
747241b2f0bdSmrg
747341b2f0bdSmrg
747441b2f0bdSmrg
747541b2f0bdSmrg
747641b2f0bdSmrg
747741b2f0bdSmrg
747841b2f0bdSmrg
747941b2f0bdSmrg
748041b2f0bdSmrg
748141b2f0bdSmrg
748241b2f0bdSmrg
748341b2f0bdSmrg
748441b2f0bdSmrg
748541b2f0bdSmrg
748641b2f0bdSmrg
748741b2f0bdSmrg
748811a29bacSmrgtest -z "$LN_S" && LN_S="ln -s"
748911a29bacSmrg
749041b2f0bdSmrg
749141b2f0bdSmrg
749241b2f0bdSmrg
749341b2f0bdSmrg
749441b2f0bdSmrg
749541b2f0bdSmrg
749611245024Smrg
749741b2f0bdSmrg
749841b2f0bdSmrg
749941b2f0bdSmrg
750041b2f0bdSmrg
750141b2f0bdSmrg
750241b2f0bdSmrg
750311a29bacSmrgif test -n "${ZSH_VERSION+set}" ; then
750411a29bacSmrg   setopt NO_GLOB_SUBST
750511a29bacSmrgfi
750641b2f0bdSmrg
750711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
750811a29bacSmrg$as_echo_n "checking for objdir... " >&6; }
750911a29bacSmrgif ${lt_cv_objdir+:} false; then :
751011a29bacSmrg  $as_echo_n "(cached) " >&6
751111a29bacSmrgelse
751211a29bacSmrg  rm -f .libs 2>/dev/null
751311a29bacSmrgmkdir .libs 2>/dev/null
751411a29bacSmrgif test -d .libs; then
751511a29bacSmrg  lt_cv_objdir=.libs
751611a29bacSmrgelse
751711a29bacSmrg  # MS-DOS does not allow filenames that begin with a dot.
751811a29bacSmrg  lt_cv_objdir=_libs
751911a29bacSmrgfi
752011a29bacSmrgrmdir .libs 2>/dev/null
752111a29bacSmrgfi
752211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
752311a29bacSmrg$as_echo "$lt_cv_objdir" >&6; }
752411a29bacSmrgobjdir=$lt_cv_objdir
752541b2f0bdSmrg
752641b2f0bdSmrg
752741b2f0bdSmrg
752841b2f0bdSmrg
752941b2f0bdSmrg
753011a29bacSmrgcat >>confdefs.h <<_ACEOF
753111a29bacSmrg#define LT_OBJDIR "$lt_cv_objdir/"
753211a29bacSmrg_ACEOF
753341b2f0bdSmrg
753441b2f0bdSmrg
753541b2f0bdSmrg
753641b2f0bdSmrg
753711a29bacSmrgcase $host_os in
753811a29bacSmrgaix3*)
753911a29bacSmrg  # AIX sometimes has problems with the GCC collect2 program.  For some
754011a29bacSmrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
754111a29bacSmrg  # vanish in a puff of smoke.
754211a29bacSmrg  if test "X${COLLECT_NAMES+set}" != Xset; then
754311a29bacSmrg    COLLECT_NAMES=
754411a29bacSmrg    export COLLECT_NAMES
754511a29bacSmrg  fi
754611a29bacSmrg  ;;
754711a29bacSmrgesac
754841b2f0bdSmrg
754911a29bacSmrg# Global variables:
755011a29bacSmrgofile=libtool
755111a29bacSmrgcan_build_shared=yes
755241b2f0bdSmrg
755311a29bacSmrg# All known linkers require a `.a' archive for static linking (except MSVC,
755411a29bacSmrg# which needs '.lib').
755511a29bacSmrglibext=a
755641b2f0bdSmrg
755711a29bacSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
755841b2f0bdSmrg
755911a29bacSmrgold_CC="$CC"
756011a29bacSmrgold_CFLAGS="$CFLAGS"
756141b2f0bdSmrg
756211a29bacSmrg# Set sane defaults for various variables
756311a29bacSmrgtest -z "$CC" && CC=cc
756411a29bacSmrgtest -z "$LTCC" && LTCC=$CC
756511a29bacSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
756611a29bacSmrgtest -z "$LD" && LD=ld
756711a29bacSmrgtest -z "$ac_objext" && ac_objext=o
756841b2f0bdSmrg
756911a29bacSmrgfor cc_temp in $compiler""; do
757011a29bacSmrg  case $cc_temp in
757111a29bacSmrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
757211a29bacSmrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
757311a29bacSmrg    \-*) ;;
757411a29bacSmrg    *) break;;
757511a29bacSmrg  esac
757611a29bacSmrgdone
757711a29bacSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
757841b2f0bdSmrg
757941b2f0bdSmrg
758011a29bacSmrg# Only perform the check for file, if the check method requires it
758111a29bacSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
758211a29bacSmrgcase $deplibs_check_method in
758311a29bacSmrgfile_magic*)
758411a29bacSmrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
758511a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
758611a29bacSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
758711a29bacSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
758811a29bacSmrg  $as_echo_n "(cached) " >&6
758911a29bacSmrgelse
759011a29bacSmrg  case $MAGIC_CMD in
759111a29bacSmrg[\\/*] |  ?:[\\/]*)
759211a29bacSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
759311a29bacSmrg  ;;
759411a29bacSmrg*)
759511a29bacSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
759611a29bacSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
759711a29bacSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
759811a29bacSmrg  for ac_dir in $ac_dummy; do
759911a29bacSmrg    IFS="$lt_save_ifs"
760011a29bacSmrg    test -z "$ac_dir" && ac_dir=.
760111a29bacSmrg    if test -f $ac_dir/${ac_tool_prefix}file; then
760211a29bacSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
760311a29bacSmrg      if test -n "$file_magic_test_file"; then
760411a29bacSmrg	case $deplibs_check_method in
760511a29bacSmrg	"file_magic "*)
760611a29bacSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
760711a29bacSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
760811a29bacSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
760911a29bacSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
761011a29bacSmrg	    :
761111a29bacSmrg	  else
761211a29bacSmrg	    cat <<_LT_EOF 1>&2
761341b2f0bdSmrg
761411a29bacSmrg*** Warning: the command libtool uses to detect shared libraries,
761511a29bacSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
761611a29bacSmrg*** The result is that libtool may fail to recognize shared libraries
761711a29bacSmrg*** as such.  This will affect the creation of libtool libraries that
761811a29bacSmrg*** depend on shared libraries, but programs linked with such libtool
761911a29bacSmrg*** libraries will work regardless of this problem.  Nevertheless, you
762011a29bacSmrg*** may want to report the problem to your system manager and/or to
762111a29bacSmrg*** bug-libtool@gnu.org
762241b2f0bdSmrg
762311a29bacSmrg_LT_EOF
762411a29bacSmrg	  fi ;;
762511a29bacSmrg	esac
762611a29bacSmrg      fi
762711a29bacSmrg      break
762811a29bacSmrg    fi
762911a29bacSmrg  done
763011a29bacSmrg  IFS="$lt_save_ifs"
763111a29bacSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
763211a29bacSmrg  ;;
763311a29bacSmrgesac
763411a29bacSmrgfi
763541b2f0bdSmrg
763611a29bacSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
763711a29bacSmrgif test -n "$MAGIC_CMD"; then
763811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
763911a29bacSmrg$as_echo "$MAGIC_CMD" >&6; }
764011a29bacSmrgelse
764111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
764211a29bacSmrg$as_echo "no" >&6; }
764311a29bacSmrgfi
764441b2f0bdSmrg
764541b2f0bdSmrg
764641b2f0bdSmrg
764741b2f0bdSmrg
764841b2f0bdSmrg
764911a29bacSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
765011a29bacSmrg  if test -n "$ac_tool_prefix"; then
765111a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
765211a29bacSmrg$as_echo_n "checking for file... " >&6; }
765311a29bacSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
765411a29bacSmrg  $as_echo_n "(cached) " >&6
765511a29bacSmrgelse
765611a29bacSmrg  case $MAGIC_CMD in
765711a29bacSmrg[\\/*] |  ?:[\\/]*)
765811a29bacSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
765911a29bacSmrg  ;;
766011a29bacSmrg*)
766111a29bacSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
766211a29bacSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
766311a29bacSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
766411a29bacSmrg  for ac_dir in $ac_dummy; do
766511a29bacSmrg    IFS="$lt_save_ifs"
766611a29bacSmrg    test -z "$ac_dir" && ac_dir=.
766711a29bacSmrg    if test -f $ac_dir/file; then
766811a29bacSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
766911a29bacSmrg      if test -n "$file_magic_test_file"; then
767011a29bacSmrg	case $deplibs_check_method in
767111a29bacSmrg	"file_magic "*)
767211a29bacSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
767311a29bacSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
767411a29bacSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
767511a29bacSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
767611a29bacSmrg	    :
767711a29bacSmrg	  else
767811a29bacSmrg	    cat <<_LT_EOF 1>&2
767941b2f0bdSmrg
768011a29bacSmrg*** Warning: the command libtool uses to detect shared libraries,
768111a29bacSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
768211a29bacSmrg*** The result is that libtool may fail to recognize shared libraries
768311a29bacSmrg*** as such.  This will affect the creation of libtool libraries that
768411a29bacSmrg*** depend on shared libraries, but programs linked with such libtool
768511a29bacSmrg*** libraries will work regardless of this problem.  Nevertheless, you
768611a29bacSmrg*** may want to report the problem to your system manager and/or to
768711a29bacSmrg*** bug-libtool@gnu.org
768841b2f0bdSmrg
768911a29bacSmrg_LT_EOF
769011a29bacSmrg	  fi ;;
769111a29bacSmrg	esac
769211a29bacSmrg      fi
769311a29bacSmrg      break
769411a29bacSmrg    fi
769511a29bacSmrg  done
769611a29bacSmrg  IFS="$lt_save_ifs"
769711a29bacSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
769811a29bacSmrg  ;;
769911a29bacSmrgesac
770011a29bacSmrgfi
770141b2f0bdSmrg
770211a29bacSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
770311a29bacSmrgif test -n "$MAGIC_CMD"; then
770411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
770511a29bacSmrg$as_echo "$MAGIC_CMD" >&6; }
770641b2f0bdSmrgelse
770711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
770811a29bacSmrg$as_echo "no" >&6; }
770911a29bacSmrgfi
771011a29bacSmrg
771111a29bacSmrg
771211a29bacSmrg  else
771311a29bacSmrg    MAGIC_CMD=:
771441b2f0bdSmrg  fi
771541b2f0bdSmrgfi
771641b2f0bdSmrg
771711a29bacSmrg  fi
771811a29bacSmrg  ;;
771911a29bacSmrgesac
772011a29bacSmrg
772111a29bacSmrg# Use C for the default configuration in the libtool script
772241b2f0bdSmrg
772311a29bacSmrglt_save_CC="$CC"
772441b2f0bdSmrgac_ext=c
772541b2f0bdSmrgac_cpp='$CPP $CPPFLAGS'
772641b2f0bdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
772741b2f0bdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
772841b2f0bdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
772941b2f0bdSmrg
773041b2f0bdSmrg
773111a29bacSmrg# Source file extension for C test sources.
773211a29bacSmrgac_ext=c
773341b2f0bdSmrg
773411a29bacSmrg# Object file extension for compiled C test sources.
773541b2f0bdSmrgobjext=o
773611a29bacSmrgobjext=$objext
773741b2f0bdSmrg
773841b2f0bdSmrg# Code to be used in simple compile tests
773911a29bacSmrglt_simple_compile_test_code="int some_variable = 0;"
774041b2f0bdSmrg
774141b2f0bdSmrg# Code to be used in simple link tests
774211a29bacSmrglt_simple_link_test_code='int main(){return(0);}'
774311a29bacSmrg
774411a29bacSmrg
774511a29bacSmrg
774611a29bacSmrg
774711a29bacSmrg
774841b2f0bdSmrg
774941b2f0bdSmrg
775041b2f0bdSmrg# If no C compiler was specified, use CC.
775141b2f0bdSmrgLTCC=${LTCC-"$CC"}
775241b2f0bdSmrg
775341b2f0bdSmrg# If no C compiler flags were specified, use CFLAGS.
775441b2f0bdSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
775541b2f0bdSmrg
775641b2f0bdSmrg# Allow CC to be a program name with arguments.
775741b2f0bdSmrgcompiler=$CC
775841b2f0bdSmrg
775911a29bacSmrg# Save the default compiler, since it gets overwritten when the other
776011a29bacSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
776111a29bacSmrgcompiler_DEFAULT=$CC
776241b2f0bdSmrg
776341b2f0bdSmrg# save warnings/boilerplate of simple test code
776441b2f0bdSmrgac_outfile=conftest.$ac_objext
776511245024Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
776641b2f0bdSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
776741b2f0bdSmrg_lt_compiler_boilerplate=`cat conftest.err`
776811a29bacSmrg$RM conftest*
776941b2f0bdSmrg
777041b2f0bdSmrgac_outfile=conftest.$ac_objext
777111245024Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
777241b2f0bdSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
777341b2f0bdSmrg_lt_linker_boilerplate=`cat conftest.err`
777411a29bacSmrg$RM -r conftest*
777541b2f0bdSmrg
777641b2f0bdSmrg
777711a29bacSmrgif test -n "$compiler"; then
777841b2f0bdSmrg
777911a29bacSmrglt_prog_compiler_no_builtin_flag=
778041b2f0bdSmrg
778141b2f0bdSmrgif test "$GCC" = yes; then
778211a29bacSmrg  case $cc_basename in
778311a29bacSmrg  nvcc*)
778411a29bacSmrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
778511a29bacSmrg  *)
778611a29bacSmrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
778711a29bacSmrg  esac
778841b2f0bdSmrg
778911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
779011245024Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
779111a29bacSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
779211245024Smrg  $as_echo_n "(cached) " >&6
779341b2f0bdSmrgelse
779441b2f0bdSmrg  lt_cv_prog_compiler_rtti_exceptions=no
779511a29bacSmrg   ac_outfile=conftest.$ac_objext
779611245024Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
779741b2f0bdSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
779841b2f0bdSmrg   # Insert the option either (1) after the last *FLAGS variable, or
779941b2f0bdSmrg   # (2) before a word containing "conftest.", or (3) at the end.
780041b2f0bdSmrg   # Note that $ac_compile itself does not contain backslashes and begins
780141b2f0bdSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
780241b2f0bdSmrg   # The option is referenced via a variable to avoid confusing sed.
780341b2f0bdSmrg   lt_compile=`echo "$ac_compile" | $SED \
780441b2f0bdSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
780541b2f0bdSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
780641b2f0bdSmrg   -e 's:$: $lt_compiler_flag:'`
780711a29bacSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
780841b2f0bdSmrg   (eval "$lt_compile" 2>conftest.err)
780941b2f0bdSmrg   ac_status=$?
781041b2f0bdSmrg   cat conftest.err >&5
781111a29bacSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
781241b2f0bdSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
781341b2f0bdSmrg     # The compiler can only warn and ignore the option if not recognized
781441b2f0bdSmrg     # So say no if there are warnings other than the usual output.
781511a29bacSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
781641b2f0bdSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
781741b2f0bdSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
781841b2f0bdSmrg       lt_cv_prog_compiler_rtti_exceptions=yes
781941b2f0bdSmrg     fi
782041b2f0bdSmrg   fi
782111a29bacSmrg   $RM conftest*
782241b2f0bdSmrg
782341b2f0bdSmrgfi
782411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
782511245024Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
782641b2f0bdSmrg
782741b2f0bdSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
782811a29bacSmrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
782941b2f0bdSmrgelse
783041b2f0bdSmrg    :
783141b2f0bdSmrgfi
783241b2f0bdSmrg
783341b2f0bdSmrgfi
783441b2f0bdSmrg
783541b2f0bdSmrg
783611a29bacSmrg
783711a29bacSmrg
783811a29bacSmrg
783911a29bacSmrg
784011a29bacSmrg  lt_prog_compiler_wl=
784111a29bacSmrglt_prog_compiler_pic=
784211a29bacSmrglt_prog_compiler_static=
784311a29bacSmrg
784411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
784511245024Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
784641b2f0bdSmrg
784741b2f0bdSmrg  if test "$GCC" = yes; then
784811a29bacSmrg    lt_prog_compiler_wl='-Wl,'
784911a29bacSmrg    lt_prog_compiler_static='-static'
785041b2f0bdSmrg
785141b2f0bdSmrg    case $host_os in
785241b2f0bdSmrg      aix*)
785341b2f0bdSmrg      # All AIX code is PIC.
785441b2f0bdSmrg      if test "$host_cpu" = ia64; then
785541b2f0bdSmrg	# AIX 5 now supports IA64 processor
785611a29bacSmrg	lt_prog_compiler_static='-Bstatic'
785741b2f0bdSmrg      fi
785841b2f0bdSmrg      ;;
785941b2f0bdSmrg
786041b2f0bdSmrg    amigaos*)
786111a29bacSmrg      case $host_cpu in
786211a29bacSmrg      powerpc)
786311a29bacSmrg            # see comment about AmigaOS4 .so support
786411a29bacSmrg            lt_prog_compiler_pic='-fPIC'
786511a29bacSmrg        ;;
786611a29bacSmrg      m68k)
786711a29bacSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
786811a29bacSmrg            # adding the `-m68020' flag to GCC prevents building anything better,
786911a29bacSmrg            # like `-m68040'.
787011a29bacSmrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
787111a29bacSmrg        ;;
787211a29bacSmrg      esac
787341b2f0bdSmrg      ;;
787441b2f0bdSmrg
787511245024Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
787641b2f0bdSmrg      # PIC is the default for these OSes.
787741b2f0bdSmrg      ;;
787841b2f0bdSmrg
787911a29bacSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
788041b2f0bdSmrg      # This hack is so that the source file can tell whether it is being
788141b2f0bdSmrg      # built for inclusion in a dll (and should export symbols for example).
788211245024Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
788311245024Smrg      # (--disable-auto-import) libraries
788411a29bacSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
788541b2f0bdSmrg      ;;
788641b2f0bdSmrg
788741b2f0bdSmrg    darwin* | rhapsody*)
788841b2f0bdSmrg      # PIC is the default on this platform
788941b2f0bdSmrg      # Common symbols not allowed in MH_DYLIB files
789011a29bacSmrg      lt_prog_compiler_pic='-fno-common'
789111a29bacSmrg      ;;
789211a29bacSmrg
789311a29bacSmrg    haiku*)
789411a29bacSmrg      # PIC is the default for Haiku.
789511a29bacSmrg      # The "-static" flag exists, but is broken.
789611a29bacSmrg      lt_prog_compiler_static=
789711a29bacSmrg      ;;
789811a29bacSmrg
789911a29bacSmrg    hpux*)
790011a29bacSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
790111a29bacSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
790211a29bacSmrg      # sets the default TLS model and affects inlining.
790311a29bacSmrg      case $host_cpu in
790411a29bacSmrg      hppa*64*)
790511a29bacSmrg	# +Z the default
790611a29bacSmrg	;;
790711a29bacSmrg      *)
790811a29bacSmrg	lt_prog_compiler_pic='-fPIC'
790911a29bacSmrg	;;
791011a29bacSmrg      esac
791141b2f0bdSmrg      ;;
791241b2f0bdSmrg
791311245024Smrg    interix[3-9]*)
791441b2f0bdSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
791541b2f0bdSmrg      # Instead, we relocate shared libraries at runtime.
791641b2f0bdSmrg      ;;
791741b2f0bdSmrg
791841b2f0bdSmrg    msdosdjgpp*)
791941b2f0bdSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
792041b2f0bdSmrg      # on systems that don't support them.
792111a29bacSmrg      lt_prog_compiler_can_build_shared=no
792241b2f0bdSmrg      enable_shared=no
792341b2f0bdSmrg      ;;
792441b2f0bdSmrg
792511a29bacSmrg    *nto* | *qnx*)
792611a29bacSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
792711a29bacSmrg      # it will coredump.
792811a29bacSmrg      lt_prog_compiler_pic='-fPIC -shared'
792911a29bacSmrg      ;;
793011a29bacSmrg
793141b2f0bdSmrg    sysv4*MP*)
793241b2f0bdSmrg      if test -d /usr/nec; then
793311a29bacSmrg	lt_prog_compiler_pic=-Kconform_pic
793441b2f0bdSmrg      fi
793541b2f0bdSmrg      ;;
793641b2f0bdSmrg
793711a29bacSmrg    *)
793811a29bacSmrg      lt_prog_compiler_pic='-fPIC'
793941b2f0bdSmrg      ;;
794011a29bacSmrg    esac
794141b2f0bdSmrg
794211a29bacSmrg    case $cc_basename in
794311a29bacSmrg    nvcc*) # Cuda Compiler Driver 2.2
794411a29bacSmrg      lt_prog_compiler_wl='-Xlinker '
794511a29bacSmrg      lt_prog_compiler_pic='-Xcompiler -fPIC'
794641b2f0bdSmrg      ;;
794741b2f0bdSmrg    esac
794841b2f0bdSmrg  else
794941b2f0bdSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
795041b2f0bdSmrg    case $host_os in
795141b2f0bdSmrg    aix*)
795211a29bacSmrg      lt_prog_compiler_wl='-Wl,'
795341b2f0bdSmrg      if test "$host_cpu" = ia64; then
795441b2f0bdSmrg	# AIX 5 now supports IA64 processor
795511a29bacSmrg	lt_prog_compiler_static='-Bstatic'
795641b2f0bdSmrg      else
795711a29bacSmrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
795841b2f0bdSmrg      fi
795941b2f0bdSmrg      ;;
796041b2f0bdSmrg
796111a29bacSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
796241b2f0bdSmrg      # This hack is so that the source file can tell whether it is being
796341b2f0bdSmrg      # built for inclusion in a dll (and should export symbols for example).
796411a29bacSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
796541b2f0bdSmrg      ;;
796641b2f0bdSmrg
796741b2f0bdSmrg    hpux9* | hpux10* | hpux11*)
796811a29bacSmrg      lt_prog_compiler_wl='-Wl,'
796941b2f0bdSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
797041b2f0bdSmrg      # not for PA HP-UX.
797141b2f0bdSmrg      case $host_cpu in
797241b2f0bdSmrg      hppa*64*|ia64*)
797341b2f0bdSmrg	# +Z the default
797441b2f0bdSmrg	;;
797541b2f0bdSmrg      *)
797611a29bacSmrg	lt_prog_compiler_pic='+Z'
797741b2f0bdSmrg	;;
797841b2f0bdSmrg      esac
797941b2f0bdSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
798011a29bacSmrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
798141b2f0bdSmrg      ;;
798241b2f0bdSmrg
798341b2f0bdSmrg    irix5* | irix6* | nonstopux*)
798411a29bacSmrg      lt_prog_compiler_wl='-Wl,'
798541b2f0bdSmrg      # PIC (with -KPIC) is the default.
798611a29bacSmrg      lt_prog_compiler_static='-non_shared'
798741b2f0bdSmrg      ;;
798841b2f0bdSmrg
798911a29bacSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
799041b2f0bdSmrg      case $cc_basename in
799111a29bacSmrg      # old Intel for x86_64 which still supported -KPIC.
799211a29bacSmrg      ecc*)
799311a29bacSmrg	lt_prog_compiler_wl='-Wl,'
799411a29bacSmrg	lt_prog_compiler_pic='-KPIC'
799511a29bacSmrg	lt_prog_compiler_static='-static'
799611a29bacSmrg        ;;
799711a29bacSmrg      # icc used to be incompatible with GCC.
799811a29bacSmrg      # ICC 10 doesn't accept -KPIC any more.
799911a29bacSmrg      icc* | ifort*)
800011a29bacSmrg	lt_prog_compiler_wl='-Wl,'
800111a29bacSmrg	lt_prog_compiler_pic='-fPIC'
800211a29bacSmrg	lt_prog_compiler_static='-static'
800341b2f0bdSmrg        ;;
800411a29bacSmrg      # Lahey Fortran 8.1.
800511a29bacSmrg      lf95*)
800611a29bacSmrg	lt_prog_compiler_wl='-Wl,'
800711a29bacSmrg	lt_prog_compiler_pic='--shared'
800811a29bacSmrg	lt_prog_compiler_static='--static'
800911a29bacSmrg	;;
801011a29bacSmrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
801141b2f0bdSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
801241b2f0bdSmrg	# which looks to be a dead project)
801311a29bacSmrg	lt_prog_compiler_wl='-Wl,'
801411a29bacSmrg	lt_prog_compiler_pic='-fpic'
801511a29bacSmrg	lt_prog_compiler_static='-Bstatic'
801641b2f0bdSmrg        ;;
801741b2f0bdSmrg      ccc*)
801811a29bacSmrg        lt_prog_compiler_wl='-Wl,'
801941b2f0bdSmrg        # All Alpha code is PIC.
802011a29bacSmrg        lt_prog_compiler_static='-non_shared'
802141b2f0bdSmrg        ;;
802211a29bacSmrg      xl* | bgxl* | bgf* | mpixl*)
802311a29bacSmrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
802411a29bacSmrg	lt_prog_compiler_wl='-Wl,'
802511a29bacSmrg	lt_prog_compiler_pic='-qpic'
802611a29bacSmrg	lt_prog_compiler_static='-qstaticlink'
802711a29bacSmrg	;;
802811245024Smrg      *)
802911a29bacSmrg	case `$CC -V 2>&1 | sed 5q` in
803011a29bacSmrg	*Sun\ F* | *Sun*Fortran*)
803111a29bacSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
803211a29bacSmrg	  lt_prog_compiler_pic='-KPIC'
803311a29bacSmrg	  lt_prog_compiler_static='-Bstatic'
803411a29bacSmrg	  lt_prog_compiler_wl=''
803511a29bacSmrg	  ;;
803611245024Smrg	*Sun\ C*)
803711245024Smrg	  # Sun C 5.9
803811a29bacSmrg	  lt_prog_compiler_pic='-KPIC'
803911a29bacSmrg	  lt_prog_compiler_static='-Bstatic'
804011a29bacSmrg	  lt_prog_compiler_wl='-Wl,'
804111245024Smrg	  ;;
804211245024Smrg	esac
804311245024Smrg	;;
804441b2f0bdSmrg      esac
804541b2f0bdSmrg      ;;
804641b2f0bdSmrg
804711a29bacSmrg    newsos6)
804811a29bacSmrg      lt_prog_compiler_pic='-KPIC'
804911a29bacSmrg      lt_prog_compiler_static='-Bstatic'
805011a29bacSmrg      ;;
805111a29bacSmrg
805211a29bacSmrg    *nto* | *qnx*)
805311a29bacSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
805411a29bacSmrg      # it will coredump.
805511a29bacSmrg      lt_prog_compiler_pic='-fPIC -shared'
805611a29bacSmrg      ;;
805711a29bacSmrg
805841b2f0bdSmrg    osf3* | osf4* | osf5*)
805911a29bacSmrg      lt_prog_compiler_wl='-Wl,'
806041b2f0bdSmrg      # All OSF/1 code is PIC.
806111a29bacSmrg      lt_prog_compiler_static='-non_shared'
806241b2f0bdSmrg      ;;
806341b2f0bdSmrg
806411245024Smrg    rdos*)
806511a29bacSmrg      lt_prog_compiler_static='-non_shared'
806611245024Smrg      ;;
806711245024Smrg
806841b2f0bdSmrg    solaris*)
806911a29bacSmrg      lt_prog_compiler_pic='-KPIC'
807011a29bacSmrg      lt_prog_compiler_static='-Bstatic'
807141b2f0bdSmrg      case $cc_basename in
807211a29bacSmrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
807311a29bacSmrg	lt_prog_compiler_wl='-Qoption ld ';;
807441b2f0bdSmrg      *)
807511a29bacSmrg	lt_prog_compiler_wl='-Wl,';;
807641b2f0bdSmrg      esac
807741b2f0bdSmrg      ;;
807841b2f0bdSmrg
807941b2f0bdSmrg    sunos4*)
808011a29bacSmrg      lt_prog_compiler_wl='-Qoption ld '
808111a29bacSmrg      lt_prog_compiler_pic='-PIC'
808211a29bacSmrg      lt_prog_compiler_static='-Bstatic'
808341b2f0bdSmrg      ;;
808441b2f0bdSmrg
808541b2f0bdSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
808611a29bacSmrg      lt_prog_compiler_wl='-Wl,'
808711a29bacSmrg      lt_prog_compiler_pic='-KPIC'
808811a29bacSmrg      lt_prog_compiler_static='-Bstatic'
808941b2f0bdSmrg      ;;
809041b2f0bdSmrg
809141b2f0bdSmrg    sysv4*MP*)
809241b2f0bdSmrg      if test -d /usr/nec ;then
809311a29bacSmrg	lt_prog_compiler_pic='-Kconform_pic'
809411a29bacSmrg	lt_prog_compiler_static='-Bstatic'
809541b2f0bdSmrg      fi
809641b2f0bdSmrg      ;;
809741b2f0bdSmrg
809841b2f0bdSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
809911a29bacSmrg      lt_prog_compiler_wl='-Wl,'
810011a29bacSmrg      lt_prog_compiler_pic='-KPIC'
810111a29bacSmrg      lt_prog_compiler_static='-Bstatic'
810241b2f0bdSmrg      ;;
810341b2f0bdSmrg
810441b2f0bdSmrg    unicos*)
810511a29bacSmrg      lt_prog_compiler_wl='-Wl,'
810611a29bacSmrg      lt_prog_compiler_can_build_shared=no
810741b2f0bdSmrg      ;;
810841b2f0bdSmrg
810941b2f0bdSmrg    uts4*)
811011a29bacSmrg      lt_prog_compiler_pic='-pic'
811111a29bacSmrg      lt_prog_compiler_static='-Bstatic'
811241b2f0bdSmrg      ;;
811341b2f0bdSmrg
811441b2f0bdSmrg    *)
811511a29bacSmrg      lt_prog_compiler_can_build_shared=no
811641b2f0bdSmrg      ;;
811741b2f0bdSmrg    esac
811841b2f0bdSmrg  fi
811941b2f0bdSmrg
812011a29bacSmrgcase $host_os in
812111a29bacSmrg  # For platforms which do not support PIC, -DPIC is meaningless:
812211a29bacSmrg  *djgpp*)
812311a29bacSmrg    lt_prog_compiler_pic=
812411a29bacSmrg    ;;
812511a29bacSmrg  *)
812611a29bacSmrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
812711a29bacSmrg    ;;
812811a29bacSmrgesac
812911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
813011a29bacSmrg$as_echo "$lt_prog_compiler_pic" >&6; }
813111a29bacSmrg
813211a29bacSmrg
813311a29bacSmrg
813411a29bacSmrg
813511a29bacSmrg
813641b2f0bdSmrg
813741b2f0bdSmrg#
813841b2f0bdSmrg# Check to make sure the PIC flag actually works.
813941b2f0bdSmrg#
814011a29bacSmrgif test -n "$lt_prog_compiler_pic"; then
814111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
814211a29bacSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
814311a29bacSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
814411245024Smrg  $as_echo_n "(cached) " >&6
814541b2f0bdSmrgelse
814611a29bacSmrg  lt_cv_prog_compiler_pic_works=no
814711a29bacSmrg   ac_outfile=conftest.$ac_objext
814811245024Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
814911a29bacSmrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
815041b2f0bdSmrg   # Insert the option either (1) after the last *FLAGS variable, or
815141b2f0bdSmrg   # (2) before a word containing "conftest.", or (3) at the end.
815241b2f0bdSmrg   # Note that $ac_compile itself does not contain backslashes and begins
815341b2f0bdSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
815441b2f0bdSmrg   # The option is referenced via a variable to avoid confusing sed.
815541b2f0bdSmrg   lt_compile=`echo "$ac_compile" | $SED \
815641b2f0bdSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
815741b2f0bdSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
815841b2f0bdSmrg   -e 's:$: $lt_compiler_flag:'`
815911a29bacSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
816041b2f0bdSmrg   (eval "$lt_compile" 2>conftest.err)
816141b2f0bdSmrg   ac_status=$?
816241b2f0bdSmrg   cat conftest.err >&5
816311a29bacSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
816441b2f0bdSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
816541b2f0bdSmrg     # The compiler can only warn and ignore the option if not recognized
816641b2f0bdSmrg     # So say no if there are warnings other than the usual output.
816711a29bacSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
816841b2f0bdSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
816941b2f0bdSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
817011a29bacSmrg       lt_cv_prog_compiler_pic_works=yes
817141b2f0bdSmrg     fi
817241b2f0bdSmrg   fi
817311a29bacSmrg   $RM conftest*
817441b2f0bdSmrg
817541b2f0bdSmrgfi
817611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
817711a29bacSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
817841b2f0bdSmrg
817911a29bacSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
818011a29bacSmrg    case $lt_prog_compiler_pic in
818141b2f0bdSmrg     "" | " "*) ;;
818211a29bacSmrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
818341b2f0bdSmrg     esac
818441b2f0bdSmrgelse
818511a29bacSmrg    lt_prog_compiler_pic=
818611a29bacSmrg     lt_prog_compiler_can_build_shared=no
818741b2f0bdSmrgfi
818841b2f0bdSmrg
818941b2f0bdSmrgfi
819011a29bacSmrg
819111a29bacSmrg
819211a29bacSmrg
819311a29bacSmrg
819411a29bacSmrg
819541b2f0bdSmrg
819641b2f0bdSmrg#
819741b2f0bdSmrg# Check to make sure the static flag actually works.
819841b2f0bdSmrg#
819911a29bacSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
820011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
820111245024Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
820211a29bacSmrgif ${lt_cv_prog_compiler_static_works+:} false; then :
820311245024Smrg  $as_echo_n "(cached) " >&6
820441b2f0bdSmrgelse
820511a29bacSmrg  lt_cv_prog_compiler_static_works=no
820641b2f0bdSmrg   save_LDFLAGS="$LDFLAGS"
820741b2f0bdSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
820811245024Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
820941b2f0bdSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
821041b2f0bdSmrg     # The linker can only warn and ignore the option if not recognized
821141b2f0bdSmrg     # So say no if there are warnings
821241b2f0bdSmrg     if test -s conftest.err; then
821341b2f0bdSmrg       # Append any errors to the config.log.
821441b2f0bdSmrg       cat conftest.err 1>&5
821511a29bacSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
821641b2f0bdSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
821741b2f0bdSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
821811a29bacSmrg         lt_cv_prog_compiler_static_works=yes
821941b2f0bdSmrg       fi
822041b2f0bdSmrg     else
822111a29bacSmrg       lt_cv_prog_compiler_static_works=yes
822241b2f0bdSmrg     fi
822341b2f0bdSmrg   fi
822411a29bacSmrg   $RM -r conftest*
822541b2f0bdSmrg   LDFLAGS="$save_LDFLAGS"
822641b2f0bdSmrg
822741b2f0bdSmrgfi
822811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
822911a29bacSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
823041b2f0bdSmrg
823111a29bacSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
823241b2f0bdSmrg    :
823341b2f0bdSmrgelse
823411a29bacSmrg    lt_prog_compiler_static=
823511a29bacSmrgfi
823611a29bacSmrg
823711a29bacSmrg
823811a29bacSmrg
823911a29bacSmrg
824011a29bacSmrg
824111a29bacSmrg
824211a29bacSmrg
824311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
824411a29bacSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
824511a29bacSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
824611a29bacSmrg  $as_echo_n "(cached) " >&6
824711a29bacSmrgelse
824811a29bacSmrg  lt_cv_prog_compiler_c_o=no
824911a29bacSmrg   $RM -r conftest 2>/dev/null
825011a29bacSmrg   mkdir conftest
825111a29bacSmrg   cd conftest
825211a29bacSmrg   mkdir out
825311a29bacSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
825411a29bacSmrg
825511a29bacSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
825611a29bacSmrg   # Insert the option either (1) after the last *FLAGS variable, or
825711a29bacSmrg   # (2) before a word containing "conftest.", or (3) at the end.
825811a29bacSmrg   # Note that $ac_compile itself does not contain backslashes and begins
825911a29bacSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
826011a29bacSmrg   lt_compile=`echo "$ac_compile" | $SED \
826111a29bacSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
826211a29bacSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
826311a29bacSmrg   -e 's:$: $lt_compiler_flag:'`
826411a29bacSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
826511a29bacSmrg   (eval "$lt_compile" 2>out/conftest.err)
826611a29bacSmrg   ac_status=$?
826711a29bacSmrg   cat out/conftest.err >&5
826811a29bacSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
826911a29bacSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
827011a29bacSmrg   then
827111a29bacSmrg     # The compiler can only warn and ignore the option if not recognized
827211a29bacSmrg     # So say no if there are warnings
827311a29bacSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
827411a29bacSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
827511a29bacSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
827611a29bacSmrg       lt_cv_prog_compiler_c_o=yes
827711a29bacSmrg     fi
827811a29bacSmrg   fi
827911a29bacSmrg   chmod u+w . 2>&5
828011a29bacSmrg   $RM conftest*
828111a29bacSmrg   # SGI C++ compiler will create directory out/ii_files/ for
828211a29bacSmrg   # template instantiation
828311a29bacSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
828411a29bacSmrg   $RM out/* && rmdir out
828511a29bacSmrg   cd ..
828611a29bacSmrg   $RM -r conftest
828711a29bacSmrg   $RM conftest*
828811a29bacSmrg
828941b2f0bdSmrgfi
829011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
829111a29bacSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
829211a29bacSmrg
829311a29bacSmrg
829441b2f0bdSmrg
829541b2f0bdSmrg
829611a29bacSmrg
829711a29bacSmrg
829811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
829911245024Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
830011a29bacSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
830111245024Smrg  $as_echo_n "(cached) " >&6
830241b2f0bdSmrgelse
830311a29bacSmrg  lt_cv_prog_compiler_c_o=no
830411a29bacSmrg   $RM -r conftest 2>/dev/null
830541b2f0bdSmrg   mkdir conftest
830641b2f0bdSmrg   cd conftest
830741b2f0bdSmrg   mkdir out
830811245024Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
830941b2f0bdSmrg
831041b2f0bdSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
831141b2f0bdSmrg   # Insert the option either (1) after the last *FLAGS variable, or
831241b2f0bdSmrg   # (2) before a word containing "conftest.", or (3) at the end.
831341b2f0bdSmrg   # Note that $ac_compile itself does not contain backslashes and begins
831441b2f0bdSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
831541b2f0bdSmrg   lt_compile=`echo "$ac_compile" | $SED \
831641b2f0bdSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
831741b2f0bdSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
831841b2f0bdSmrg   -e 's:$: $lt_compiler_flag:'`
831911a29bacSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
832041b2f0bdSmrg   (eval "$lt_compile" 2>out/conftest.err)
832141b2f0bdSmrg   ac_status=$?
832241b2f0bdSmrg   cat out/conftest.err >&5
832311a29bacSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
832441b2f0bdSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
832541b2f0bdSmrg   then
832641b2f0bdSmrg     # The compiler can only warn and ignore the option if not recognized
832741b2f0bdSmrg     # So say no if there are warnings
832811a29bacSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
832941b2f0bdSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
833041b2f0bdSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
833111a29bacSmrg       lt_cv_prog_compiler_c_o=yes
833241b2f0bdSmrg     fi
833341b2f0bdSmrg   fi
833441b2f0bdSmrg   chmod u+w . 2>&5
833511a29bacSmrg   $RM conftest*
833641b2f0bdSmrg   # SGI C++ compiler will create directory out/ii_files/ for
833741b2f0bdSmrg   # template instantiation
833811a29bacSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
833911a29bacSmrg   $RM out/* && rmdir out
834041b2f0bdSmrg   cd ..
834111a29bacSmrg   $RM -r conftest
834211a29bacSmrg   $RM conftest*
834341b2f0bdSmrg
834441b2f0bdSmrgfi
834511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
834611a29bacSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
834711a29bacSmrg
834811a29bacSmrg
834941b2f0bdSmrg
835041b2f0bdSmrg
835141b2f0bdSmrghard_links="nottested"
835211a29bacSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
835341b2f0bdSmrg  # do not overwrite the value of need_locks provided by the user
835411a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
835511245024Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
835641b2f0bdSmrg  hard_links=yes
835711a29bacSmrg  $RM conftest*
835841b2f0bdSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
835941b2f0bdSmrg  touch conftest.a
836041b2f0bdSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
836141b2f0bdSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
836211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
836311245024Smrg$as_echo "$hard_links" >&6; }
836441b2f0bdSmrg  if test "$hard_links" = no; then
836511a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
836611245024Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
836741b2f0bdSmrg    need_locks=warn
836841b2f0bdSmrg  fi
836941b2f0bdSmrgelse
837041b2f0bdSmrg  need_locks=no
837141b2f0bdSmrgfi
837241b2f0bdSmrg
837311a29bacSmrg
837411a29bacSmrg
837511a29bacSmrg
837611a29bacSmrg
837711a29bacSmrg
837811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
837911245024Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
838041b2f0bdSmrg
838141b2f0bdSmrg  runpath_var=
838211a29bacSmrg  allow_undefined_flag=
838311a29bacSmrg  always_export_symbols=no
838411a29bacSmrg  archive_cmds=
838511a29bacSmrg  archive_expsym_cmds=
838611a29bacSmrg  compiler_needs_object=no
838711a29bacSmrg  enable_shared_with_static_runtimes=no
838811a29bacSmrg  export_dynamic_flag_spec=
838911a29bacSmrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
839011a29bacSmrg  hardcode_automatic=no
839111a29bacSmrg  hardcode_direct=no
839211a29bacSmrg  hardcode_direct_absolute=no
839311a29bacSmrg  hardcode_libdir_flag_spec=
839411a29bacSmrg  hardcode_libdir_flag_spec_ld=
839511a29bacSmrg  hardcode_libdir_separator=
839611a29bacSmrg  hardcode_minus_L=no
839711a29bacSmrg  hardcode_shlibpath_var=unsupported
839811a29bacSmrg  inherit_rpath=no
839911a29bacSmrg  link_all_deplibs=unknown
840011a29bacSmrg  module_cmds=
840111a29bacSmrg  module_expsym_cmds=
840211a29bacSmrg  old_archive_from_new_cmds=
840311a29bacSmrg  old_archive_from_expsyms_cmds=
840411a29bacSmrg  thread_safe_flag_spec=
840511a29bacSmrg  whole_archive_flag_spec=
840641b2f0bdSmrg  # include_expsyms should be a list of space-separated symbols to be *always*
840741b2f0bdSmrg  # included in the symbol list
840811a29bacSmrg  include_expsyms=
840941b2f0bdSmrg  # exclude_expsyms can be an extended regexp of symbols to exclude
841041b2f0bdSmrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
841141b2f0bdSmrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
841241b2f0bdSmrg  # as well as any symbol that contains `d'.
841311a29bacSmrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
841441b2f0bdSmrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
841541b2f0bdSmrg  # platforms (ab)use it in PIC code, but their linkers get confused if
841641b2f0bdSmrg  # the symbol is explicitly referenced.  Since portable code cannot
841741b2f0bdSmrg  # rely on this symbol name, it's probably fine to never include it in
841841b2f0bdSmrg  # preloaded symbol tables.
841911245024Smrg  # Exclude shared library initialization/finalization symbols.
842041b2f0bdSmrg  extract_expsyms_cmds=
842141b2f0bdSmrg
842241b2f0bdSmrg  case $host_os in
842311a29bacSmrg  cygwin* | mingw* | pw32* | cegcc*)
842441b2f0bdSmrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
842541b2f0bdSmrg    # When not using gcc, we currently assume that we are using
842641b2f0bdSmrg    # Microsoft Visual C++.
842741b2f0bdSmrg    if test "$GCC" != yes; then
842841b2f0bdSmrg      with_gnu_ld=no
842941b2f0bdSmrg    fi
843041b2f0bdSmrg    ;;
843141b2f0bdSmrg  interix*)
843241b2f0bdSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
843341b2f0bdSmrg    with_gnu_ld=yes
843441b2f0bdSmrg    ;;
843541b2f0bdSmrg  openbsd*)
843641b2f0bdSmrg    with_gnu_ld=no
843741b2f0bdSmrg    ;;
843841b2f0bdSmrg  esac
843941b2f0bdSmrg
844011a29bacSmrg  ld_shlibs=yes
844111a29bacSmrg
844211a29bacSmrg  # On some targets, GNU ld is compatible enough with the native linker
844311a29bacSmrg  # that we're better off using the native interface for both.
844411a29bacSmrg  lt_use_gnu_ld_interface=no
844541b2f0bdSmrg  if test "$with_gnu_ld" = yes; then
844611a29bacSmrg    case $host_os in
844711a29bacSmrg      aix*)
844811a29bacSmrg	# The AIX port of GNU ld has always aspired to compatibility
844911a29bacSmrg	# with the native linker.  However, as the warning in the GNU ld
845011a29bacSmrg	# block says, versions before 2.19.5* couldn't really create working
845111a29bacSmrg	# shared libraries, regardless of the interface used.
845211a29bacSmrg	case `$LD -v 2>&1` in
845311a29bacSmrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
845411a29bacSmrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
845511a29bacSmrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
845611a29bacSmrg	  *)
845711a29bacSmrg	    lt_use_gnu_ld_interface=yes
845811a29bacSmrg	    ;;
845911a29bacSmrg	esac
846011a29bacSmrg	;;
846111a29bacSmrg      *)
846211a29bacSmrg	lt_use_gnu_ld_interface=yes
846311a29bacSmrg	;;
846411a29bacSmrg    esac
846511a29bacSmrg  fi
846611a29bacSmrg
846711a29bacSmrg  if test "$lt_use_gnu_ld_interface" = yes; then
846841b2f0bdSmrg    # If archive_cmds runs LD, not CC, wlarc should be empty
846941b2f0bdSmrg    wlarc='${wl}'
847041b2f0bdSmrg
847141b2f0bdSmrg    # Set some defaults for GNU ld with shared library support. These
847241b2f0bdSmrg    # are reset later if shared libraries are not supported. Putting them
847341b2f0bdSmrg    # here allows them to be overridden if necessary.
847441b2f0bdSmrg    runpath_var=LD_RUN_PATH
847511a29bacSmrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
847611a29bacSmrg    export_dynamic_flag_spec='${wl}--export-dynamic'
847741b2f0bdSmrg    # ancient GNU ld didn't support --whole-archive et. al.
847811a29bacSmrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
847911a29bacSmrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
848011a29bacSmrg    else
848111a29bacSmrg      whole_archive_flag_spec=
848241b2f0bdSmrg    fi
848341b2f0bdSmrg    supports_anon_versioning=no
848411a29bacSmrg    case `$LD -v 2>&1` in
848511a29bacSmrg      *GNU\ gold*) supports_anon_versioning=yes ;;
848641b2f0bdSmrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
848741b2f0bdSmrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
848841b2f0bdSmrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
848941b2f0bdSmrg      *\ 2.11.*) ;; # other 2.11 versions
849041b2f0bdSmrg      *) supports_anon_versioning=yes ;;
849141b2f0bdSmrg    esac
849241b2f0bdSmrg
849341b2f0bdSmrg    # See if GNU ld supports shared libraries.
849441b2f0bdSmrg    case $host_os in
849511245024Smrg    aix[3-9]*)
849641b2f0bdSmrg      # On AIX/PPC, the GNU linker is very broken
849741b2f0bdSmrg      if test "$host_cpu" != ia64; then
849811a29bacSmrg	ld_shlibs=no
849911a29bacSmrg	cat <<_LT_EOF 1>&2
850041b2f0bdSmrg
850111a29bacSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported
850241b2f0bdSmrg*** to be unable to reliably create shared libraries on AIX.
850341b2f0bdSmrg*** Therefore, libtool is disabling shared libraries support.  If you
850411a29bacSmrg*** really care for shared libraries, you may want to install binutils
850511a29bacSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
850611a29bacSmrg*** You will then need to restart the configuration process.
850741b2f0bdSmrg
850811a29bacSmrg_LT_EOF
850941b2f0bdSmrg      fi
851041b2f0bdSmrg      ;;
851141b2f0bdSmrg
851241b2f0bdSmrg    amigaos*)
851311a29bacSmrg      case $host_cpu in
851411a29bacSmrg      powerpc)
851511a29bacSmrg            # see comment about AmigaOS4 .so support
851611a29bacSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
851711a29bacSmrg            archive_expsym_cmds=''
851811a29bacSmrg        ;;
851911a29bacSmrg      m68k)
852011a29bacSmrg            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)'
852111a29bacSmrg            hardcode_libdir_flag_spec='-L$libdir'
852211a29bacSmrg            hardcode_minus_L=yes
852311a29bacSmrg        ;;
852411a29bacSmrg      esac
852541b2f0bdSmrg      ;;
852641b2f0bdSmrg
852741b2f0bdSmrg    beos*)
852811a29bacSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
852911a29bacSmrg	allow_undefined_flag=unsupported
853041b2f0bdSmrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
853141b2f0bdSmrg	# support --undefined.  This deserves some investigation.  FIXME
853211a29bacSmrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
853341b2f0bdSmrg      else
853411a29bacSmrg	ld_shlibs=no
853541b2f0bdSmrg      fi
853641b2f0bdSmrg      ;;
853741b2f0bdSmrg
853811a29bacSmrg    cygwin* | mingw* | pw32* | cegcc*)
853911a29bacSmrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
854041b2f0bdSmrg      # as there is no search path for DLLs.
854111a29bacSmrg      hardcode_libdir_flag_spec='-L$libdir'
854211a29bacSmrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
854311a29bacSmrg      allow_undefined_flag=unsupported
854411a29bacSmrg      always_export_symbols=no
854511a29bacSmrg      enable_shared_with_static_runtimes=yes
854611a29bacSmrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
854711a29bacSmrg
854811a29bacSmrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
854911a29bacSmrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
855041b2f0bdSmrg	# If the export-symbols file already is a .def file (1st line
855141b2f0bdSmrg	# is EXPORTS), use it as is; otherwise, prepend...
855211a29bacSmrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
855341b2f0bdSmrg	  cp $export_symbols $output_objdir/$soname.def;
855441b2f0bdSmrg	else
855541b2f0bdSmrg	  echo EXPORTS > $output_objdir/$soname.def;
855641b2f0bdSmrg	  cat $export_symbols >> $output_objdir/$soname.def;
855741b2f0bdSmrg	fi~
855841b2f0bdSmrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
855941b2f0bdSmrg      else
856011a29bacSmrg	ld_shlibs=no
856141b2f0bdSmrg      fi
856241b2f0bdSmrg      ;;
856341b2f0bdSmrg
856411a29bacSmrg    haiku*)
856511a29bacSmrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
856611a29bacSmrg      link_all_deplibs=yes
856711a29bacSmrg      ;;
856811a29bacSmrg
856911245024Smrg    interix[3-9]*)
857011a29bacSmrg      hardcode_direct=no
857111a29bacSmrg      hardcode_shlibpath_var=no
857211a29bacSmrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
857311a29bacSmrg      export_dynamic_flag_spec='${wl}-E'
857441b2f0bdSmrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
857541b2f0bdSmrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
857641b2f0bdSmrg      # default) and relocated if they conflict, which is a slow very memory
857741b2f0bdSmrg      # consuming and fragmenting process.  To avoid this, we pick a random,
857841b2f0bdSmrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
857941b2f0bdSmrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
858011a29bacSmrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
858111a29bacSmrg      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'
858241b2f0bdSmrg      ;;
858341b2f0bdSmrg
858411a29bacSmrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
858511a29bacSmrg      tmp_diet=no
858611a29bacSmrg      if test "$host_os" = linux-dietlibc; then
858711a29bacSmrg	case $cc_basename in
858811a29bacSmrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
858911a29bacSmrg	esac
859011a29bacSmrg      fi
859111a29bacSmrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
859211a29bacSmrg	 && test "$tmp_diet" = no
859311a29bacSmrg      then
859441b2f0bdSmrg	tmp_addflag=
859511a29bacSmrg	tmp_sharedflag='-shared'
859641b2f0bdSmrg	case $cc_basename,$host_cpu in
859711a29bacSmrg        pgcc*)				# Portland Group C compiler
859811a29bacSmrg	  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'
859941b2f0bdSmrg	  tmp_addflag=' $pic_flag'
860041b2f0bdSmrg	  ;;
860111a29bacSmrg	pgf77* | pgf90* | pgf95* | pgfortran*)
860211a29bacSmrg					# Portland Group f77 and f90 compilers
860311a29bacSmrg	  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'
860441b2f0bdSmrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
860511a29bacSmrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
860641b2f0bdSmrg	  tmp_addflag=' -i_dynamic' ;;
860741b2f0bdSmrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
860841b2f0bdSmrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
860941b2f0bdSmrg	ifc* | ifort*)			# Intel Fortran compiler
861041b2f0bdSmrg	  tmp_addflag=' -nofor_main' ;;
861111a29bacSmrg	lf95*)				# Lahey Fortran 8.1
861211a29bacSmrg	  whole_archive_flag_spec=
861311a29bacSmrg	  tmp_sharedflag='--shared' ;;
861411a29bacSmrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
861511a29bacSmrg	  tmp_sharedflag='-qmkshrobj'
861611a29bacSmrg	  tmp_addflag= ;;
861711a29bacSmrg	nvcc*)	# Cuda Compiler Driver 2.2
861811a29bacSmrg	  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'
861911a29bacSmrg	  compiler_needs_object=yes
862011a29bacSmrg	  ;;
862141b2f0bdSmrg	esac
862211245024Smrg	case `$CC -V 2>&1 | sed 5q` in
862311245024Smrg	*Sun\ C*)			# Sun C 5.9
862411a29bacSmrg	  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'
862511a29bacSmrg	  compiler_needs_object=yes
862611245024Smrg	  tmp_sharedflag='-G' ;;
862711245024Smrg	*Sun\ F*)			# Sun Fortran 8.3
862811245024Smrg	  tmp_sharedflag='-G' ;;
862911245024Smrg	esac
863011a29bacSmrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
863141b2f0bdSmrg
863211a29bacSmrg        if test "x$supports_anon_versioning" = xyes; then
863311a29bacSmrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
863411a29bacSmrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
863511a29bacSmrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
863611a29bacSmrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
863711a29bacSmrg        fi
863811a29bacSmrg
863911a29bacSmrg	case $cc_basename in
864011a29bacSmrg	xlf* | bgf* | bgxlf* | mpixlf*)
864111a29bacSmrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
864211a29bacSmrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
864311a29bacSmrg	  hardcode_libdir_flag_spec=
864411a29bacSmrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
864511a29bacSmrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
864611a29bacSmrg	  if test "x$supports_anon_versioning" = xyes; then
864711a29bacSmrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
864811a29bacSmrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
864911a29bacSmrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
865011a29bacSmrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
865111a29bacSmrg	  fi
865211a29bacSmrg	  ;;
865311a29bacSmrg	esac
865441b2f0bdSmrg      else
865511a29bacSmrg        ld_shlibs=no
865641b2f0bdSmrg      fi
865741b2f0bdSmrg      ;;
865841b2f0bdSmrg
865941b2f0bdSmrg    netbsd*)
866011a29bacSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
866111a29bacSmrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
866241b2f0bdSmrg	wlarc=
866341b2f0bdSmrg      else
866411a29bacSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
866511a29bacSmrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
866641b2f0bdSmrg      fi
866741b2f0bdSmrg      ;;
866841b2f0bdSmrg
866941b2f0bdSmrg    solaris*)
867011a29bacSmrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
867111a29bacSmrg	ld_shlibs=no
867211a29bacSmrg	cat <<_LT_EOF 1>&2
867341b2f0bdSmrg
867441b2f0bdSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
867541b2f0bdSmrg*** create shared libraries on Solaris systems.  Therefore, libtool
867641b2f0bdSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
867741b2f0bdSmrg*** binutils to release 2.9.1 or newer.  Another option is to modify
867841b2f0bdSmrg*** your PATH or compiler configuration so that the native linker is
867941b2f0bdSmrg*** used, and then restart.
868041b2f0bdSmrg
868111a29bacSmrg_LT_EOF
868211a29bacSmrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868311a29bacSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
868411a29bacSmrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
868541b2f0bdSmrg      else
868611a29bacSmrg	ld_shlibs=no
868741b2f0bdSmrg      fi
868841b2f0bdSmrg      ;;
868941b2f0bdSmrg
869041b2f0bdSmrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
869141b2f0bdSmrg      case `$LD -v 2>&1` in
869241b2f0bdSmrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
869311a29bacSmrg	ld_shlibs=no
869441b2f0bdSmrg	cat <<_LT_EOF 1>&2
869541b2f0bdSmrg
869641b2f0bdSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
869741b2f0bdSmrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
869841b2f0bdSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
869941b2f0bdSmrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
870041b2f0bdSmrg*** your PATH or compiler configuration so that the native linker is
870141b2f0bdSmrg*** used, and then restart.
870241b2f0bdSmrg
870341b2f0bdSmrg_LT_EOF
870441b2f0bdSmrg	;;
870541b2f0bdSmrg	*)
870611a29bacSmrg	  # For security reasons, it is highly recommended that you always
870711a29bacSmrg	  # use absolute paths for naming shared libraries, and exclude the
870811a29bacSmrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
870911a29bacSmrg	  # requires that you compile everything twice, which is a pain.
871011a29bacSmrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
871111a29bacSmrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
871211a29bacSmrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
871311a29bacSmrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
871441b2f0bdSmrg	  else
871511a29bacSmrg	    ld_shlibs=no
871641b2f0bdSmrg	  fi
871741b2f0bdSmrg	;;
871841b2f0bdSmrg      esac
871941b2f0bdSmrg      ;;
872041b2f0bdSmrg
872141b2f0bdSmrg    sunos4*)
872211a29bacSmrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
872341b2f0bdSmrg      wlarc=
872411a29bacSmrg      hardcode_direct=yes
872511a29bacSmrg      hardcode_shlibpath_var=no
872641b2f0bdSmrg      ;;
872741b2f0bdSmrg
872841b2f0bdSmrg    *)
872911a29bacSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
873011a29bacSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
873111a29bacSmrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
873241b2f0bdSmrg      else
873311a29bacSmrg	ld_shlibs=no
873441b2f0bdSmrg      fi
873541b2f0bdSmrg      ;;
873641b2f0bdSmrg    esac
873741b2f0bdSmrg
873811a29bacSmrg    if test "$ld_shlibs" = no; then
873941b2f0bdSmrg      runpath_var=
874011a29bacSmrg      hardcode_libdir_flag_spec=
874111a29bacSmrg      export_dynamic_flag_spec=
874211a29bacSmrg      whole_archive_flag_spec=
874341b2f0bdSmrg    fi
874441b2f0bdSmrg  else
874541b2f0bdSmrg    # PORTME fill in a description of your system's linker (not GNU ld)
874641b2f0bdSmrg    case $host_os in
874741b2f0bdSmrg    aix3*)
874811a29bacSmrg      allow_undefined_flag=unsupported
874911a29bacSmrg      always_export_symbols=yes
875011a29bacSmrg      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'
875141b2f0bdSmrg      # Note: this linker hardcodes the directories in LIBPATH if there
875241b2f0bdSmrg      # are no directories specified by -L.
875311a29bacSmrg      hardcode_minus_L=yes
875441b2f0bdSmrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
875541b2f0bdSmrg	# Neither direct hardcoding nor static linking is supported with a
875641b2f0bdSmrg	# broken collect2.
875711a29bacSmrg	hardcode_direct=unsupported
875841b2f0bdSmrg      fi
875941b2f0bdSmrg      ;;
876041b2f0bdSmrg
876111245024Smrg    aix[4-9]*)
876241b2f0bdSmrg      if test "$host_cpu" = ia64; then
876341b2f0bdSmrg	# On IA64, the linker does run time linking by default, so we don't
876441b2f0bdSmrg	# have to do anything special.
876541b2f0bdSmrg	aix_use_runtimelinking=no
876641b2f0bdSmrg	exp_sym_flag='-Bexport'
876741b2f0bdSmrg	no_entry_flag=""
876841b2f0bdSmrg      else
876941b2f0bdSmrg	# If we're using GNU nm, then we don't want the "-C" option.
877041b2f0bdSmrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
877111a29bacSmrg	# Also, AIX nm treats weak defined symbols like other global
877211a29bacSmrg	# defined symbols, whereas GNU nm marks them as "W".
877311a29bacSmrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
877411a29bacSmrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
877541b2f0bdSmrg	else
877611a29bacSmrg	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
877741b2f0bdSmrg	fi
877841b2f0bdSmrg	aix_use_runtimelinking=no
877941b2f0bdSmrg
878041b2f0bdSmrg	# Test if we are trying to use run time linking or normal
878141b2f0bdSmrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
878241b2f0bdSmrg	# need to do runtime linking.
878311245024Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
878441b2f0bdSmrg	  for ld_flag in $LDFLAGS; do
878511a29bacSmrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
878611a29bacSmrg	    aix_use_runtimelinking=yes
878711a29bacSmrg	    break
878811a29bacSmrg	  fi
878941b2f0bdSmrg	  done
879041b2f0bdSmrg	  ;;
879141b2f0bdSmrg	esac
879241b2f0bdSmrg
879341b2f0bdSmrg	exp_sym_flag='-bexport'
879441b2f0bdSmrg	no_entry_flag='-bnoentry'
879541b2f0bdSmrg      fi
879641b2f0bdSmrg
879741b2f0bdSmrg      # When large executables or shared objects are built, AIX ld can
879841b2f0bdSmrg      # have problems creating the table of contents.  If linking a library
879941b2f0bdSmrg      # or program results in "error TOC overflow" add -mminimal-toc to
880041b2f0bdSmrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
880141b2f0bdSmrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
880241b2f0bdSmrg
880311a29bacSmrg      archive_cmds=''
880411a29bacSmrg      hardcode_direct=yes
880511a29bacSmrg      hardcode_direct_absolute=yes
880611a29bacSmrg      hardcode_libdir_separator=':'
880711a29bacSmrg      link_all_deplibs=yes
880811a29bacSmrg      file_list_spec='${wl}-f,'
880941b2f0bdSmrg
881041b2f0bdSmrg      if test "$GCC" = yes; then
881141b2f0bdSmrg	case $host_os in aix4.[012]|aix4.[012].*)
881241b2f0bdSmrg	# We only want to do this on AIX 4.2 and lower, the check
881341b2f0bdSmrg	# below for broken collect2 doesn't work under 4.3+
881441b2f0bdSmrg	  collect2name=`${CC} -print-prog-name=collect2`
881511a29bacSmrg	  if test -f "$collect2name" &&
881611a29bacSmrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
881741b2f0bdSmrg	  then
881811a29bacSmrg	  # We have reworked collect2
881911a29bacSmrg	  :
882041b2f0bdSmrg	  else
882111a29bacSmrg	  # We have old collect2
882211a29bacSmrg	  hardcode_direct=unsupported
882311a29bacSmrg	  # It fails to find uninstalled libraries when the uninstalled
882411a29bacSmrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
882511a29bacSmrg	  # to unsupported forces relinking
882611a29bacSmrg	  hardcode_minus_L=yes
882711a29bacSmrg	  hardcode_libdir_flag_spec='-L$libdir'
882811a29bacSmrg	  hardcode_libdir_separator=
882941b2f0bdSmrg	  fi
883041b2f0bdSmrg	  ;;
883141b2f0bdSmrg	esac
883241b2f0bdSmrg	shared_flag='-shared'
883341b2f0bdSmrg	if test "$aix_use_runtimelinking" = yes; then
883441b2f0bdSmrg	  shared_flag="$shared_flag "'${wl}-G'
883541b2f0bdSmrg	fi
883641b2f0bdSmrg      else
883741b2f0bdSmrg	# not using gcc
883841b2f0bdSmrg	if test "$host_cpu" = ia64; then
883911a29bacSmrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
884011a29bacSmrg	# chokes on -Wl,-G. The following line is correct:
884141b2f0bdSmrg	  shared_flag='-G'
884241b2f0bdSmrg	else
884341b2f0bdSmrg	  if test "$aix_use_runtimelinking" = yes; then
884441b2f0bdSmrg	    shared_flag='${wl}-G'
884541b2f0bdSmrg	  else
884641b2f0bdSmrg	    shared_flag='${wl}-bM:SRE'
884741b2f0bdSmrg	  fi
884841b2f0bdSmrg	fi
884941b2f0bdSmrg      fi
885041b2f0bdSmrg
885111a29bacSmrg      export_dynamic_flag_spec='${wl}-bexpall'
885241b2f0bdSmrg      # It seems that -bexpall does not export symbols beginning with
885341b2f0bdSmrg      # underscore (_), so it is better to generate a list of symbols to export.
885411a29bacSmrg      always_export_symbols=yes
885541b2f0bdSmrg      if test "$aix_use_runtimelinking" = yes; then
885641b2f0bdSmrg	# Warning - without using the other runtime loading flags (-brtl),
885741b2f0bdSmrg	# -berok will link without error, but may produce a broken library.
885811a29bacSmrg	allow_undefined_flag='-berok'
885911a29bacSmrg        # Determine the default libpath from the value encoded in an
886011a29bacSmrg        # empty executable.
886111a29bacSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
886241b2f0bdSmrg/* end confdefs.h.  */
886341b2f0bdSmrg
886441b2f0bdSmrgint
886541b2f0bdSmrgmain ()
886641b2f0bdSmrg{
886741b2f0bdSmrg
886841b2f0bdSmrg  ;
886941b2f0bdSmrg  return 0;
887041b2f0bdSmrg}
887141b2f0bdSmrg_ACEOF
887211a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
887311245024Smrg
887411245024Smrglt_aix_libpath_sed='
887511245024Smrg    /Import File Strings/,/^$/ {
887611245024Smrg	/^0/ {
887711245024Smrg	    s/^0  *\(.*\)$/\1/
887811245024Smrg	    p
887911245024Smrg	}
888011245024Smrg    }'
888111245024Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
888241b2f0bdSmrg# Check for a 64-bit object if we didn't find anything.
888311245024Smrgif test -z "$aix_libpath"; then
888411245024Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
888511245024Smrgfi
888641b2f0bdSmrgfi
888711a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
888811a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
888941b2f0bdSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
889041b2f0bdSmrg
889111a29bacSmrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
889211a29bacSmrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
889311a29bacSmrg      else
889441b2f0bdSmrg	if test "$host_cpu" = ia64; then
889511a29bacSmrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
889611a29bacSmrg	  allow_undefined_flag="-z nodefs"
889711a29bacSmrg	  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"
889841b2f0bdSmrg	else
889911a29bacSmrg	 # Determine the default libpath from the value encoded in an
890011a29bacSmrg	 # empty executable.
890111a29bacSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
890241b2f0bdSmrg/* end confdefs.h.  */
890341b2f0bdSmrg
890441b2f0bdSmrgint
890541b2f0bdSmrgmain ()
890641b2f0bdSmrg{
890741b2f0bdSmrg
890841b2f0bdSmrg  ;
890941b2f0bdSmrg  return 0;
891041b2f0bdSmrg}
891141b2f0bdSmrg_ACEOF
891211a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
891311245024Smrg
891411245024Smrglt_aix_libpath_sed='
891511245024Smrg    /Import File Strings/,/^$/ {
891611245024Smrg	/^0/ {
891711245024Smrg	    s/^0  *\(.*\)$/\1/
891811245024Smrg	    p
891911245024Smrg	}
892011245024Smrg    }'
892111245024Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
892241b2f0bdSmrg# Check for a 64-bit object if we didn't find anything.
892311245024Smrgif test -z "$aix_libpath"; then
892411245024Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
892511245024Smrgfi
892641b2f0bdSmrgfi
892711a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
892811a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
892941b2f0bdSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
893041b2f0bdSmrg
893111a29bacSmrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
893241b2f0bdSmrg	  # Warning - without using the other run time loading flags,
893341b2f0bdSmrg	  # -berok will link without error, but may produce a broken library.
893411a29bacSmrg	  no_undefined_flag=' ${wl}-bernotok'
893511a29bacSmrg	  allow_undefined_flag=' ${wl}-berok'
893611a29bacSmrg	  if test "$with_gnu_ld" = yes; then
893711a29bacSmrg	    # We only use this code for GNU lds that support --whole-archive.
893811a29bacSmrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
893911a29bacSmrg	  else
894011a29bacSmrg	    # Exported symbols can be pulled into shared objects from archives
894111a29bacSmrg	    whole_archive_flag_spec='$convenience'
894211a29bacSmrg	  fi
894311a29bacSmrg	  archive_cmds_need_lc=yes
894441b2f0bdSmrg	  # This is similar to how AIX traditionally builds its shared libraries.
894511a29bacSmrg	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
894641b2f0bdSmrg	fi
894741b2f0bdSmrg      fi
894841b2f0bdSmrg      ;;
894941b2f0bdSmrg
895041b2f0bdSmrg    amigaos*)
895111a29bacSmrg      case $host_cpu in
895211a29bacSmrg      powerpc)
895311a29bacSmrg            # see comment about AmigaOS4 .so support
895411a29bacSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
895511a29bacSmrg            archive_expsym_cmds=''
895611a29bacSmrg        ;;
895711a29bacSmrg      m68k)
895811a29bacSmrg            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)'
895911a29bacSmrg            hardcode_libdir_flag_spec='-L$libdir'
896011a29bacSmrg            hardcode_minus_L=yes
896111a29bacSmrg        ;;
896211a29bacSmrg      esac
896341b2f0bdSmrg      ;;
896441b2f0bdSmrg
896541b2f0bdSmrg    bsdi[45]*)
896611a29bacSmrg      export_dynamic_flag_spec=-rdynamic
896741b2f0bdSmrg      ;;
896841b2f0bdSmrg
896911a29bacSmrg    cygwin* | mingw* | pw32* | cegcc*)
897041b2f0bdSmrg      # When not using gcc, we currently assume that we are using
897141b2f0bdSmrg      # Microsoft Visual C++.
897241b2f0bdSmrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
897341b2f0bdSmrg      # no search path for DLLs.
897411a29bacSmrg      hardcode_libdir_flag_spec=' '
897511a29bacSmrg      allow_undefined_flag=unsupported
897641b2f0bdSmrg      # Tell ltmain to make .lib files, not .a files.
897741b2f0bdSmrg      libext=lib
897841b2f0bdSmrg      # Tell ltmain to make .dll files, not .so files.
897941b2f0bdSmrg      shrext_cmds=".dll"
898041b2f0bdSmrg      # FIXME: Setting linknames here is a bad hack.
898111a29bacSmrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
898241b2f0bdSmrg      # The linker will automatically build a .lib file if we build a DLL.
898311a29bacSmrg      old_archive_from_new_cmds='true'
898441b2f0bdSmrg      # FIXME: Should let the user specify the lib program.
898511a29bacSmrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
898611a29bacSmrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
898711a29bacSmrg      enable_shared_with_static_runtimes=yes
898841b2f0bdSmrg      ;;
898941b2f0bdSmrg
899041b2f0bdSmrg    darwin* | rhapsody*)
899111a29bacSmrg
899211a29bacSmrg
899311a29bacSmrg  archive_cmds_need_lc=no
899411a29bacSmrg  hardcode_direct=no
899511a29bacSmrg  hardcode_automatic=yes
899611a29bacSmrg  hardcode_shlibpath_var=unsupported
899711a29bacSmrg  if test "$lt_cv_ld_force_load" = "yes"; then
899811a29bacSmrg    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
899911a29bacSmrg  else
900011a29bacSmrg    whole_archive_flag_spec=''
900111a29bacSmrg  fi
900211a29bacSmrg  link_all_deplibs=yes
900311a29bacSmrg  allow_undefined_flag="$_lt_dar_allow_undefined"
900411a29bacSmrg  case $cc_basename in
900511a29bacSmrg     ifort*) _lt_dar_can_shared=yes ;;
900611a29bacSmrg     *) _lt_dar_can_shared=$GCC ;;
900711a29bacSmrg  esac
900811a29bacSmrg  if test "$_lt_dar_can_shared" = "yes"; then
900911a29bacSmrg    output_verbose_link_cmd=func_echo_all
901011a29bacSmrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
901111a29bacSmrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
901211a29bacSmrg    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
901311a29bacSmrg    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
901411a29bacSmrg
901511a29bacSmrg  else
901611a29bacSmrg  ld_shlibs=no
901711a29bacSmrg  fi
901811a29bacSmrg
901941b2f0bdSmrg      ;;
902041b2f0bdSmrg
902141b2f0bdSmrg    dgux*)
902211a29bacSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
902311a29bacSmrg      hardcode_libdir_flag_spec='-L$libdir'
902411a29bacSmrg      hardcode_shlibpath_var=no
902541b2f0bdSmrg      ;;
902641b2f0bdSmrg
902741b2f0bdSmrg    freebsd1*)
902811a29bacSmrg      ld_shlibs=no
902941b2f0bdSmrg      ;;
903041b2f0bdSmrg
903141b2f0bdSmrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
903241b2f0bdSmrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
903341b2f0bdSmrg    # does not break anything, and helps significantly (at the cost of a little
903441b2f0bdSmrg    # extra space).
903541b2f0bdSmrg    freebsd2.2*)
903611a29bacSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
903711a29bacSmrg      hardcode_libdir_flag_spec='-R$libdir'
903811a29bacSmrg      hardcode_direct=yes
903911a29bacSmrg      hardcode_shlibpath_var=no
904041b2f0bdSmrg      ;;
904141b2f0bdSmrg
904241b2f0bdSmrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
904341b2f0bdSmrg    freebsd2*)
904411a29bacSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
904511a29bacSmrg      hardcode_direct=yes
904611a29bacSmrg      hardcode_minus_L=yes
904711a29bacSmrg      hardcode_shlibpath_var=no
904841b2f0bdSmrg      ;;
904941b2f0bdSmrg
905041b2f0bdSmrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
905111245024Smrg    freebsd* | dragonfly*)
905211a29bacSmrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
905311a29bacSmrg      hardcode_libdir_flag_spec='-R$libdir'
905411a29bacSmrg      hardcode_direct=yes
905511a29bacSmrg      hardcode_shlibpath_var=no
905641b2f0bdSmrg      ;;
905741b2f0bdSmrg
905841b2f0bdSmrg    hpux9*)
905941b2f0bdSmrg      if test "$GCC" = yes; then
906011a29bacSmrg	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
906141b2f0bdSmrg      else
906211a29bacSmrg	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
906341b2f0bdSmrg      fi
906411a29bacSmrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
906511a29bacSmrg      hardcode_libdir_separator=:
906611a29bacSmrg      hardcode_direct=yes
906741b2f0bdSmrg
906841b2f0bdSmrg      # hardcode_minus_L: Not really in the search PATH,
906941b2f0bdSmrg      # but as the default location of the library.
907011a29bacSmrg      hardcode_minus_L=yes
907111a29bacSmrg      export_dynamic_flag_spec='${wl}-E'
907241b2f0bdSmrg      ;;
907341b2f0bdSmrg
907441b2f0bdSmrg    hpux10*)
907511a29bacSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
907611a29bacSmrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
907741b2f0bdSmrg      else
907811a29bacSmrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
907941b2f0bdSmrg      fi
908041b2f0bdSmrg      if test "$with_gnu_ld" = no; then
908111a29bacSmrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
908211a29bacSmrg	hardcode_libdir_flag_spec_ld='+b $libdir'
908311a29bacSmrg	hardcode_libdir_separator=:
908411a29bacSmrg	hardcode_direct=yes
908511a29bacSmrg	hardcode_direct_absolute=yes
908611a29bacSmrg	export_dynamic_flag_spec='${wl}-E'
908741b2f0bdSmrg	# hardcode_minus_L: Not really in the search PATH,
908841b2f0bdSmrg	# but as the default location of the library.
908911a29bacSmrg	hardcode_minus_L=yes
909041b2f0bdSmrg      fi
909141b2f0bdSmrg      ;;
909241b2f0bdSmrg
909341b2f0bdSmrg    hpux11*)
909411a29bacSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
909541b2f0bdSmrg	case $host_cpu in
909641b2f0bdSmrg	hppa*64*)
909711a29bacSmrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
909841b2f0bdSmrg	  ;;
909941b2f0bdSmrg	ia64*)
910011a29bacSmrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
910141b2f0bdSmrg	  ;;
910241b2f0bdSmrg	*)
910311a29bacSmrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
910441b2f0bdSmrg	  ;;
910541b2f0bdSmrg	esac
910641b2f0bdSmrg      else
910741b2f0bdSmrg	case $host_cpu in
910841b2f0bdSmrg	hppa*64*)
910911a29bacSmrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
911041b2f0bdSmrg	  ;;
911141b2f0bdSmrg	ia64*)
911211a29bacSmrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
911341b2f0bdSmrg	  ;;
911441b2f0bdSmrg	*)
911511a29bacSmrg
911611a29bacSmrg	  # Older versions of the 11.00 compiler do not understand -b yet
911711a29bacSmrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
911811a29bacSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
911911a29bacSmrg$as_echo_n "checking if $CC understands -b... " >&6; }
912011a29bacSmrgif ${lt_cv_prog_compiler__b+:} false; then :
912111a29bacSmrg  $as_echo_n "(cached) " >&6
912211a29bacSmrgelse
912311a29bacSmrg  lt_cv_prog_compiler__b=no
912411a29bacSmrg   save_LDFLAGS="$LDFLAGS"
912511a29bacSmrg   LDFLAGS="$LDFLAGS -b"
912611a29bacSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
912711a29bacSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
912811a29bacSmrg     # The linker can only warn and ignore the option if not recognized
912911a29bacSmrg     # So say no if there are warnings
913011a29bacSmrg     if test -s conftest.err; then
913111a29bacSmrg       # Append any errors to the config.log.
913211a29bacSmrg       cat conftest.err 1>&5
913311a29bacSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
913411a29bacSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
913511a29bacSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
913611a29bacSmrg         lt_cv_prog_compiler__b=yes
913711a29bacSmrg       fi
913811a29bacSmrg     else
913911a29bacSmrg       lt_cv_prog_compiler__b=yes
914011a29bacSmrg     fi
914111a29bacSmrg   fi
914211a29bacSmrg   $RM -r conftest*
914311a29bacSmrg   LDFLAGS="$save_LDFLAGS"
914411a29bacSmrg
914511a29bacSmrgfi
914611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
914711a29bacSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
914811a29bacSmrg
914911a29bacSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then
915011a29bacSmrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
915111a29bacSmrgelse
915211a29bacSmrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
915311a29bacSmrgfi
915411a29bacSmrg
915541b2f0bdSmrg	  ;;
915641b2f0bdSmrg	esac
915741b2f0bdSmrg      fi
915841b2f0bdSmrg      if test "$with_gnu_ld" = no; then
915911a29bacSmrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
916011a29bacSmrg	hardcode_libdir_separator=:
916141b2f0bdSmrg
916241b2f0bdSmrg	case $host_cpu in
916341b2f0bdSmrg	hppa*64*|ia64*)
916411a29bacSmrg	  hardcode_direct=no
916511a29bacSmrg	  hardcode_shlibpath_var=no
916641b2f0bdSmrg	  ;;
916741b2f0bdSmrg	*)
916811a29bacSmrg	  hardcode_direct=yes
916911a29bacSmrg	  hardcode_direct_absolute=yes
917011a29bacSmrg	  export_dynamic_flag_spec='${wl}-E'
917141b2f0bdSmrg
917241b2f0bdSmrg	  # hardcode_minus_L: Not really in the search PATH,
917341b2f0bdSmrg	  # but as the default location of the library.
917411a29bacSmrg	  hardcode_minus_L=yes
917541b2f0bdSmrg	  ;;
917641b2f0bdSmrg	esac
917741b2f0bdSmrg      fi
917841b2f0bdSmrg      ;;
917941b2f0bdSmrg
918041b2f0bdSmrg    irix5* | irix6* | nonstopux*)
918141b2f0bdSmrg      if test "$GCC" = yes; then
918211a29bacSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
918311a29bacSmrg	# Try to use the -exported_symbol ld option, if it does not
918411a29bacSmrg	# work, assume that -exports_file does not work either and
918511a29bacSmrg	# implicitly export all symbols.
918611a29bacSmrg        save_LDFLAGS="$LDFLAGS"
918711a29bacSmrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
918811a29bacSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918911a29bacSmrg/* end confdefs.h.  */
919011a29bacSmrgint foo(void) {}
919111a29bacSmrg_ACEOF
919211a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
919311a29bacSmrg  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
919411a29bacSmrg
919511a29bacSmrgfi
919611a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
919711a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
919811a29bacSmrg        LDFLAGS="$save_LDFLAGS"
919941b2f0bdSmrg      else
920011a29bacSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
920111a29bacSmrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
920241b2f0bdSmrg      fi
920311a29bacSmrg      archive_cmds_need_lc='no'
920411a29bacSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
920511a29bacSmrg      hardcode_libdir_separator=:
920611a29bacSmrg      inherit_rpath=yes
920711a29bacSmrg      link_all_deplibs=yes
920841b2f0bdSmrg      ;;
920941b2f0bdSmrg
921041b2f0bdSmrg    netbsd*)
921111a29bacSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
921211a29bacSmrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
921341b2f0bdSmrg      else
921411a29bacSmrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
921541b2f0bdSmrg      fi
921611a29bacSmrg      hardcode_libdir_flag_spec='-R$libdir'
921711a29bacSmrg      hardcode_direct=yes
921811a29bacSmrg      hardcode_shlibpath_var=no
921941b2f0bdSmrg      ;;
922041b2f0bdSmrg
922141b2f0bdSmrg    newsos6)
922211a29bacSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
922311a29bacSmrg      hardcode_direct=yes
922411a29bacSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
922511a29bacSmrg      hardcode_libdir_separator=:
922611a29bacSmrg      hardcode_shlibpath_var=no
922711a29bacSmrg      ;;
922811a29bacSmrg
922911a29bacSmrg    *nto* | *qnx*)
923041b2f0bdSmrg      ;;
923141b2f0bdSmrg
923241b2f0bdSmrg    openbsd*)
923311245024Smrg      if test -f /usr/libexec/ld.so; then
923411a29bacSmrg	hardcode_direct=yes
923511a29bacSmrg	hardcode_shlibpath_var=no
923611a29bacSmrg	hardcode_direct_absolute=yes
923711a29bacSmrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
923811a29bacSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
923911a29bacSmrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
924011a29bacSmrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
924111a29bacSmrg	  export_dynamic_flag_spec='${wl}-E'
924211245024Smrg	else
924311245024Smrg	  case $host_os in
924411245024Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
924511a29bacSmrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
924611a29bacSmrg	     hardcode_libdir_flag_spec='-R$libdir'
924711245024Smrg	     ;;
924811245024Smrg	   *)
924911a29bacSmrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
925011a29bacSmrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
925111245024Smrg	     ;;
925211245024Smrg	  esac
925311a29bacSmrg	fi
925441b2f0bdSmrg      else
925511a29bacSmrg	ld_shlibs=no
925641b2f0bdSmrg      fi
925741b2f0bdSmrg      ;;
925841b2f0bdSmrg
925941b2f0bdSmrg    os2*)
926011a29bacSmrg      hardcode_libdir_flag_spec='-L$libdir'
926111a29bacSmrg      hardcode_minus_L=yes
926211a29bacSmrg      allow_undefined_flag=unsupported
926311a29bacSmrg      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
926411a29bacSmrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
926541b2f0bdSmrg      ;;
926641b2f0bdSmrg
926741b2f0bdSmrg    osf3*)
926841b2f0bdSmrg      if test "$GCC" = yes; then
926911a29bacSmrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
927011a29bacSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
927141b2f0bdSmrg      else
927211a29bacSmrg	allow_undefined_flag=' -expect_unresolved \*'
927311a29bacSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
927441b2f0bdSmrg      fi
927511a29bacSmrg      archive_cmds_need_lc='no'
927611a29bacSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
927711a29bacSmrg      hardcode_libdir_separator=:
927841b2f0bdSmrg      ;;
927941b2f0bdSmrg
928041b2f0bdSmrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
928141b2f0bdSmrg      if test "$GCC" = yes; then
928211a29bacSmrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
928311a29bacSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
928411a29bacSmrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
928541b2f0bdSmrg      else
928611a29bacSmrg	allow_undefined_flag=' -expect_unresolved \*'
928711a29bacSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
928811a29bacSmrg	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
928911a29bacSmrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
929041b2f0bdSmrg
929141b2f0bdSmrg	# Both c and cxx compiler support -rpath directly
929211a29bacSmrg	hardcode_libdir_flag_spec='-rpath $libdir'
929341b2f0bdSmrg      fi
929411a29bacSmrg      archive_cmds_need_lc='no'
929511a29bacSmrg      hardcode_libdir_separator=:
929641b2f0bdSmrg      ;;
929741b2f0bdSmrg
929841b2f0bdSmrg    solaris*)
929911a29bacSmrg      no_undefined_flag=' -z defs'
930041b2f0bdSmrg      if test "$GCC" = yes; then
930141b2f0bdSmrg	wlarc='${wl}'
930211a29bacSmrg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
930311a29bacSmrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
930411a29bacSmrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
930541b2f0bdSmrg      else
930611a29bacSmrg	case `$CC -V 2>&1` in
930711a29bacSmrg	*"Compilers 5.0"*)
930811a29bacSmrg	  wlarc=''
930911a29bacSmrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
931011a29bacSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
931111a29bacSmrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
931211a29bacSmrg	  ;;
931311a29bacSmrg	*)
931411a29bacSmrg	  wlarc='${wl}'
931511a29bacSmrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
931611a29bacSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
931711a29bacSmrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
931811a29bacSmrg	  ;;
931911a29bacSmrg	esac
932041b2f0bdSmrg      fi
932111a29bacSmrg      hardcode_libdir_flag_spec='-R$libdir'
932211a29bacSmrg      hardcode_shlibpath_var=no
932341b2f0bdSmrg      case $host_os in
932441b2f0bdSmrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
932541b2f0bdSmrg      *)
932611245024Smrg	# The compiler driver will combine and reorder linker options,
932711245024Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
932811245024Smrg	# but is careful enough not to reorder.
932911a29bacSmrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
933011245024Smrg	if test "$GCC" = yes; then
933111a29bacSmrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
933211245024Smrg	else
933311a29bacSmrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
933411245024Smrg	fi
933511245024Smrg	;;
933641b2f0bdSmrg      esac
933711a29bacSmrg      link_all_deplibs=yes
933841b2f0bdSmrg      ;;
933941b2f0bdSmrg
934041b2f0bdSmrg    sunos4*)
934141b2f0bdSmrg      if test "x$host_vendor" = xsequent; then
934241b2f0bdSmrg	# Use $CC to link under sequent, because it throws in some extra .o
934341b2f0bdSmrg	# files that make .init and .fini sections work.
934411a29bacSmrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
934541b2f0bdSmrg      else
934611a29bacSmrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
934741b2f0bdSmrg      fi
934811a29bacSmrg      hardcode_libdir_flag_spec='-L$libdir'
934911a29bacSmrg      hardcode_direct=yes
935011a29bacSmrg      hardcode_minus_L=yes
935111a29bacSmrg      hardcode_shlibpath_var=no
935241b2f0bdSmrg      ;;
935341b2f0bdSmrg
935441b2f0bdSmrg    sysv4)
935541b2f0bdSmrg      case $host_vendor in
935641b2f0bdSmrg	sni)
935711a29bacSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
935811a29bacSmrg	  hardcode_direct=yes # is this really true???
935941b2f0bdSmrg	;;
936041b2f0bdSmrg	siemens)
936141b2f0bdSmrg	  ## LD is ld it makes a PLAMLIB
936241b2f0bdSmrg	  ## CC just makes a GrossModule.
936311a29bacSmrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
936411a29bacSmrg	  reload_cmds='$CC -r -o $output$reload_objs'
936511a29bacSmrg	  hardcode_direct=no
936641b2f0bdSmrg        ;;
936741b2f0bdSmrg	motorola)
936811a29bacSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
936911a29bacSmrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
937041b2f0bdSmrg	;;
937141b2f0bdSmrg      esac
937241b2f0bdSmrg      runpath_var='LD_RUN_PATH'
937311a29bacSmrg      hardcode_shlibpath_var=no
937441b2f0bdSmrg      ;;
937541b2f0bdSmrg
937641b2f0bdSmrg    sysv4.3*)
937711a29bacSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
937811a29bacSmrg      hardcode_shlibpath_var=no
937911a29bacSmrg      export_dynamic_flag_spec='-Bexport'
938041b2f0bdSmrg      ;;
938141b2f0bdSmrg
938241b2f0bdSmrg    sysv4*MP*)
938341b2f0bdSmrg      if test -d /usr/nec; then
938411a29bacSmrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
938511a29bacSmrg	hardcode_shlibpath_var=no
938641b2f0bdSmrg	runpath_var=LD_RUN_PATH
938741b2f0bdSmrg	hardcode_runpath_var=yes
938811a29bacSmrg	ld_shlibs=yes
938941b2f0bdSmrg      fi
939041b2f0bdSmrg      ;;
939141b2f0bdSmrg
939211245024Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
939311a29bacSmrg      no_undefined_flag='${wl}-z,text'
939411a29bacSmrg      archive_cmds_need_lc=no
939511a29bacSmrg      hardcode_shlibpath_var=no
939641b2f0bdSmrg      runpath_var='LD_RUN_PATH'
939741b2f0bdSmrg
939841b2f0bdSmrg      if test "$GCC" = yes; then
939911a29bacSmrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940011a29bacSmrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940141b2f0bdSmrg      else
940211a29bacSmrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940311a29bacSmrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940441b2f0bdSmrg      fi
940541b2f0bdSmrg      ;;
940641b2f0bdSmrg
940741b2f0bdSmrg    sysv5* | sco3.2v5* | sco5v6*)
940841b2f0bdSmrg      # Note: We can NOT use -z defs as we might desire, because we do not
940941b2f0bdSmrg      # link with -lc, and that would cause any symbols used from libc to
941041b2f0bdSmrg      # always be unresolved, which means just about no library would
941141b2f0bdSmrg      # ever link correctly.  If we're not using GNU ld we use -z text
941241b2f0bdSmrg      # though, which does catch some bad symbols but isn't as heavy-handed
941341b2f0bdSmrg      # as -z defs.
941411a29bacSmrg      no_undefined_flag='${wl}-z,text'
941511a29bacSmrg      allow_undefined_flag='${wl}-z,nodefs'
941611a29bacSmrg      archive_cmds_need_lc=no
941711a29bacSmrg      hardcode_shlibpath_var=no
941811a29bacSmrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
941911a29bacSmrg      hardcode_libdir_separator=':'
942011a29bacSmrg      link_all_deplibs=yes
942111a29bacSmrg      export_dynamic_flag_spec='${wl}-Bexport'
942241b2f0bdSmrg      runpath_var='LD_RUN_PATH'
942341b2f0bdSmrg
942441b2f0bdSmrg      if test "$GCC" = yes; then
942511a29bacSmrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
942611a29bacSmrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
942741b2f0bdSmrg      else
942811a29bacSmrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
942911a29bacSmrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
943041b2f0bdSmrg      fi
943141b2f0bdSmrg      ;;
943241b2f0bdSmrg
943341b2f0bdSmrg    uts4*)
943411a29bacSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
943511a29bacSmrg      hardcode_libdir_flag_spec='-L$libdir'
943611a29bacSmrg      hardcode_shlibpath_var=no
943741b2f0bdSmrg      ;;
943841b2f0bdSmrg
943941b2f0bdSmrg    *)
944011a29bacSmrg      ld_shlibs=no
944141b2f0bdSmrg      ;;
944241b2f0bdSmrg    esac
944311a29bacSmrg
944411a29bacSmrg    if test x$host_vendor = xsni; then
944511a29bacSmrg      case $host in
944611a29bacSmrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
944711a29bacSmrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
944811a29bacSmrg	;;
944911a29bacSmrg      esac
945011a29bacSmrg    fi
945141b2f0bdSmrg  fi
945241b2f0bdSmrg
945311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
945411a29bacSmrg$as_echo "$ld_shlibs" >&6; }
945511a29bacSmrgtest "$ld_shlibs" = no && can_build_shared=no
945611a29bacSmrg
945711a29bacSmrgwith_gnu_ld=$with_gnu_ld
945811a29bacSmrg
945911a29bacSmrg
946011a29bacSmrg
946111a29bacSmrg
946211a29bacSmrg
946311a29bacSmrg
946411a29bacSmrg
946511a29bacSmrg
946611a29bacSmrg
946711a29bacSmrg
946811a29bacSmrg
946911a29bacSmrg
947011a29bacSmrg
947111a29bacSmrg
947241b2f0bdSmrg
947341b2f0bdSmrg#
947441b2f0bdSmrg# Do we need to explicitly link libc?
947541b2f0bdSmrg#
947611a29bacSmrgcase "x$archive_cmds_need_lc" in
947741b2f0bdSmrgx|xyes)
947841b2f0bdSmrg  # Assume -lc should be added
947911a29bacSmrg  archive_cmds_need_lc=yes
948041b2f0bdSmrg
948141b2f0bdSmrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
948211a29bacSmrg    case $archive_cmds in
948341b2f0bdSmrg    *'~'*)
948441b2f0bdSmrg      # FIXME: we may have to deal with multi-command sequences.
948541b2f0bdSmrg      ;;
948641b2f0bdSmrg    '$CC '*)
948741b2f0bdSmrg      # Test whether the compiler implicitly links with -lc since on some
948841b2f0bdSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
948941b2f0bdSmrg      # to ld, don't add -lc before -lgcc.
949011a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
949111245024Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
949211a29bacSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
949311a29bacSmrg  $as_echo_n "(cached) " >&6
949411a29bacSmrgelse
949511a29bacSmrg  $RM conftest*
949611a29bacSmrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
949711a29bacSmrg
949811a29bacSmrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
949911a29bacSmrg  (eval $ac_compile) 2>&5
950011a29bacSmrg  ac_status=$?
950111a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
950211a29bacSmrg  test $ac_status = 0; } 2>conftest.err; then
950311a29bacSmrg	  soname=conftest
950411a29bacSmrg	  lib=conftest
950511a29bacSmrg	  libobjs=conftest.$ac_objext
950611a29bacSmrg	  deplibs=
950711a29bacSmrg	  wl=$lt_prog_compiler_wl
950811a29bacSmrg	  pic_flag=$lt_prog_compiler_pic
950911a29bacSmrg	  compiler_flags=-v
951011a29bacSmrg	  linker_flags=-v
951111a29bacSmrg	  verstring=
951211a29bacSmrg	  output_objdir=.
951311a29bacSmrg	  libname=conftest
951411a29bacSmrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
951511a29bacSmrg	  allow_undefined_flag=
951611a29bacSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
951711a29bacSmrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
951811a29bacSmrg  ac_status=$?
951911a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
952011a29bacSmrg  test $ac_status = 0; }
952111a29bacSmrg	  then
952211a29bacSmrg	    lt_cv_archive_cmds_need_lc=no
952311a29bacSmrg	  else
952411a29bacSmrg	    lt_cv_archive_cmds_need_lc=yes
952511a29bacSmrg	  fi
952611a29bacSmrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
952711a29bacSmrg	else
952811a29bacSmrg	  cat conftest.err 1>&5
952911a29bacSmrg	fi
953011a29bacSmrg	$RM conftest*
953111a29bacSmrg
953211a29bacSmrgfi
953311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
953411a29bacSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
953511a29bacSmrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
953611a29bacSmrg      ;;
953711a29bacSmrg    esac
953811a29bacSmrg  fi
953911a29bacSmrg  ;;
954011a29bacSmrgesac
954111a29bacSmrg
954211a29bacSmrg
954311a29bacSmrg
954411a29bacSmrg
954511a29bacSmrg
954611a29bacSmrg
954711a29bacSmrg
954811a29bacSmrg
954911a29bacSmrg
955011a29bacSmrg
955111a29bacSmrg
955211a29bacSmrg
955311a29bacSmrg
955411a29bacSmrg
955511a29bacSmrg
955611a29bacSmrg
955711a29bacSmrg
955811a29bacSmrg
955911a29bacSmrg
956011a29bacSmrg
956111a29bacSmrg
956211a29bacSmrg
956311a29bacSmrg
956411a29bacSmrg
956511a29bacSmrg
956611a29bacSmrg
956711a29bacSmrg
956811a29bacSmrg
956911a29bacSmrg
957011a29bacSmrg
957111a29bacSmrg
957211a29bacSmrg
957311a29bacSmrg
957411a29bacSmrg
957511a29bacSmrg
957611a29bacSmrg
957711a29bacSmrg
957811a29bacSmrg
957911a29bacSmrg
958011a29bacSmrg
958111a29bacSmrg
958211a29bacSmrg
958311a29bacSmrg
958411a29bacSmrg
958511a29bacSmrg
958611a29bacSmrg
958711a29bacSmrg
958811a29bacSmrg
958911a29bacSmrg
959011a29bacSmrg
959111a29bacSmrg
959211a29bacSmrg
959311a29bacSmrg
959411a29bacSmrg
959511a29bacSmrg
959611a29bacSmrg
959711a29bacSmrg
959811a29bacSmrg
959911a29bacSmrg
960011a29bacSmrg
960111a29bacSmrg
960211a29bacSmrg
960311a29bacSmrg
960411a29bacSmrg
960511a29bacSmrg
960611a29bacSmrg
960711a29bacSmrg
960811a29bacSmrg
960911a29bacSmrg
961011a29bacSmrg
961111a29bacSmrg
961211a29bacSmrg
961311a29bacSmrg
961411a29bacSmrg
961511a29bacSmrg
961611a29bacSmrg
961711a29bacSmrg
961811a29bacSmrg
961911a29bacSmrg
962011a29bacSmrg
962111a29bacSmrg
962211a29bacSmrg
962311a29bacSmrg
962411a29bacSmrg
962511a29bacSmrg
962611a29bacSmrg
962711a29bacSmrg
962811a29bacSmrg
962911a29bacSmrg
963011a29bacSmrg
963111a29bacSmrg
963211a29bacSmrg
963311a29bacSmrg
963411a29bacSmrg
963511a29bacSmrg
963611a29bacSmrg
963711a29bacSmrg
963811a29bacSmrg
963911a29bacSmrg
964011a29bacSmrg
964111a29bacSmrg
964211a29bacSmrg
964311a29bacSmrg
964411a29bacSmrg
964511a29bacSmrg
964611a29bacSmrg
964711a29bacSmrg
964811a29bacSmrg
964911a29bacSmrg
965011a29bacSmrg
965111a29bacSmrg
965211a29bacSmrg
965311a29bacSmrg
965411a29bacSmrg
965511a29bacSmrg
965611a29bacSmrg
965711a29bacSmrg
965811a29bacSmrg
965911a29bacSmrg
966011a29bacSmrg
966111a29bacSmrg
966211a29bacSmrg
966311a29bacSmrg
966411a29bacSmrg
966511a29bacSmrg
966611a29bacSmrg
966711a29bacSmrg
966811a29bacSmrg
966911a29bacSmrg
967011a29bacSmrg
967111a29bacSmrg
967211a29bacSmrg
967311a29bacSmrg
967411a29bacSmrg
967511a29bacSmrg
967611a29bacSmrg
967711a29bacSmrg
967811a29bacSmrg
967911a29bacSmrg
968011a29bacSmrg
968111a29bacSmrg
968211a29bacSmrg
968311a29bacSmrg
968411a29bacSmrg
968511a29bacSmrg
968611a29bacSmrg
968711a29bacSmrg
968811a29bacSmrg
968911a29bacSmrg
969011a29bacSmrg
969111a29bacSmrg
969211a29bacSmrg
969311a29bacSmrg
969411a29bacSmrg
969541b2f0bdSmrg
969641b2f0bdSmrg
969711a29bacSmrg
969811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
969911245024Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
970011a29bacSmrg
970111a29bacSmrgif test "$GCC" = yes; then
970211a29bacSmrg  case $host_os in
970311a29bacSmrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
970411a29bacSmrg    *) lt_awk_arg="/^libraries:/" ;;
970511a29bacSmrg  esac
970611a29bacSmrg  case $host_os in
970711a29bacSmrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
970811a29bacSmrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
970911a29bacSmrg  esac
971011a29bacSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
971111a29bacSmrg  case $lt_search_path_spec in
971211a29bacSmrg  *\;*)
971311a29bacSmrg    # if the path contains ";" then we assume it to be the separator
971411a29bacSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
971511a29bacSmrg    # assumed that no part of a normal pathname contains ";" but that should
971611a29bacSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
971711a29bacSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
971811a29bacSmrg    ;;
971911a29bacSmrg  *)
972011a29bacSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
972111a29bacSmrg    ;;
972211a29bacSmrg  esac
972311a29bacSmrg  # Ok, now we have the path, separated by spaces, we can step through it
972411a29bacSmrg  # and add multilib dir if necessary.
972511a29bacSmrg  lt_tmp_lt_search_path_spec=
972611a29bacSmrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
972711a29bacSmrg  for lt_sys_path in $lt_search_path_spec; do
972811a29bacSmrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
972911a29bacSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
973011a29bacSmrg    else
973111a29bacSmrg      test -d "$lt_sys_path" && \
973211a29bacSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
973311a29bacSmrg    fi
973411a29bacSmrg  done
973511a29bacSmrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
973611a29bacSmrgBEGIN {RS=" "; FS="/|\n";} {
973711a29bacSmrg  lt_foo="";
973811a29bacSmrg  lt_count=0;
973911a29bacSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
974011a29bacSmrg    if ($lt_i != "" && $lt_i != ".") {
974111a29bacSmrg      if ($lt_i == "..") {
974211a29bacSmrg        lt_count++;
974311a29bacSmrg      } else {
974411a29bacSmrg        if (lt_count == 0) {
974511a29bacSmrg          lt_foo="/" $lt_i lt_foo;
974611a29bacSmrg        } else {
974711a29bacSmrg          lt_count--;
974811a29bacSmrg        }
974911a29bacSmrg      }
975011a29bacSmrg    }
975111a29bacSmrg  }
975211a29bacSmrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
975311a29bacSmrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
975411a29bacSmrg}'`
975511a29bacSmrg  # AWK program above erroneously prepends '/' to C:/dos/paths
975611a29bacSmrg  # for these hosts.
975711a29bacSmrg  case $host_os in
975811a29bacSmrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
975911a29bacSmrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
976011a29bacSmrg  esac
976111a29bacSmrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
976211a29bacSmrgelse
976311a29bacSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
976411a29bacSmrgfi
976541b2f0bdSmrglibrary_names_spec=
976641b2f0bdSmrglibname_spec='lib$name'
976741b2f0bdSmrgsoname_spec=
976841b2f0bdSmrgshrext_cmds=".so"
976941b2f0bdSmrgpostinstall_cmds=
977041b2f0bdSmrgpostuninstall_cmds=
977141b2f0bdSmrgfinish_cmds=
977241b2f0bdSmrgfinish_eval=
977341b2f0bdSmrgshlibpath_var=
977441b2f0bdSmrgshlibpath_overrides_runpath=unknown
977541b2f0bdSmrgversion_type=none
977641b2f0bdSmrgdynamic_linker="$host_os ld.so"
977741b2f0bdSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
977841b2f0bdSmrgneed_lib_prefix=unknown
977941b2f0bdSmrghardcode_into_libs=no
978041b2f0bdSmrg
978141b2f0bdSmrg# when you set need_version to no, make sure it does not cause -set_version
978241b2f0bdSmrg# flags to be left without arguments
978341b2f0bdSmrgneed_version=unknown
978441b2f0bdSmrg
978541b2f0bdSmrgcase $host_os in
978641b2f0bdSmrgaix3*)
978741b2f0bdSmrg  version_type=linux
978841b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
978941b2f0bdSmrg  shlibpath_var=LIBPATH
979041b2f0bdSmrg
979141b2f0bdSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
979241b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
979341b2f0bdSmrg  ;;
979441b2f0bdSmrg
979511245024Smrgaix[4-9]*)
979641b2f0bdSmrg  version_type=linux
979741b2f0bdSmrg  need_lib_prefix=no
979841b2f0bdSmrg  need_version=no
979941b2f0bdSmrg  hardcode_into_libs=yes
980041b2f0bdSmrg  if test "$host_cpu" = ia64; then
980141b2f0bdSmrg    # AIX 5 supports IA64
980241b2f0bdSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
980341b2f0bdSmrg    shlibpath_var=LD_LIBRARY_PATH
980441b2f0bdSmrg  else
980541b2f0bdSmrg    # With GCC up to 2.95.x, collect2 would create an import file
980641b2f0bdSmrg    # for dependence libraries.  The import file would start with
980741b2f0bdSmrg    # the line `#! .'.  This would cause the generated library to
980841b2f0bdSmrg    # depend on `.', always an invalid library.  This was fixed in
980941b2f0bdSmrg    # development snapshots of GCC prior to 3.0.
981041b2f0bdSmrg    case $host_os in
981141b2f0bdSmrg      aix4 | aix4.[01] | aix4.[01].*)
981241b2f0bdSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
981341b2f0bdSmrg	   echo ' yes '
981411a29bacSmrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
981541b2f0bdSmrg	:
981641b2f0bdSmrg      else
981741b2f0bdSmrg	can_build_shared=no
981841b2f0bdSmrg      fi
981941b2f0bdSmrg      ;;
982041b2f0bdSmrg    esac
982141b2f0bdSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
982241b2f0bdSmrg    # soname into executable. Probably we can add versioning support to
982341b2f0bdSmrg    # collect2, so additional links can be useful in future.
982441b2f0bdSmrg    if test "$aix_use_runtimelinking" = yes; then
982541b2f0bdSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
982641b2f0bdSmrg      # instead of lib<name>.a to let people know that these are not
982741b2f0bdSmrg      # typical AIX shared libraries.
982841b2f0bdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
982941b2f0bdSmrg    else
983041b2f0bdSmrg      # We preserve .a as extension for shared libraries through AIX4.2
983141b2f0bdSmrg      # and later when we are not doing run time linking.
983241b2f0bdSmrg      library_names_spec='${libname}${release}.a $libname.a'
983341b2f0bdSmrg      soname_spec='${libname}${release}${shared_ext}$major'
983441b2f0bdSmrg    fi
983541b2f0bdSmrg    shlibpath_var=LIBPATH
983641b2f0bdSmrg  fi
983741b2f0bdSmrg  ;;
983841b2f0bdSmrg
983941b2f0bdSmrgamigaos*)
984011a29bacSmrg  case $host_cpu in
984111a29bacSmrg  powerpc)
984211a29bacSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
984311a29bacSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
984411a29bacSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
984511a29bacSmrg    ;;
984611a29bacSmrg  m68k)
984711a29bacSmrg    library_names_spec='$libname.ixlibrary $libname.a'
984811a29bacSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
984911a29bacSmrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
985011a29bacSmrg    ;;
985111a29bacSmrg  esac
985241b2f0bdSmrg  ;;
985341b2f0bdSmrg
985441b2f0bdSmrgbeos*)
985541b2f0bdSmrg  library_names_spec='${libname}${shared_ext}'
985641b2f0bdSmrg  dynamic_linker="$host_os ld.so"
985741b2f0bdSmrg  shlibpath_var=LIBRARY_PATH
985841b2f0bdSmrg  ;;
985941b2f0bdSmrg
986041b2f0bdSmrgbsdi[45]*)
986141b2f0bdSmrg  version_type=linux
986241b2f0bdSmrg  need_version=no
986341b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
986441b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
986541b2f0bdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
986641b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
986741b2f0bdSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
986841b2f0bdSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
986941b2f0bdSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
987041b2f0bdSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
987141b2f0bdSmrg  # libtool to hard-code these into programs
987241b2f0bdSmrg  ;;
987341b2f0bdSmrg
987411a29bacSmrgcygwin* | mingw* | pw32* | cegcc*)
987541b2f0bdSmrg  version_type=windows
987641b2f0bdSmrg  shrext_cmds=".dll"
987741b2f0bdSmrg  need_version=no
987841b2f0bdSmrg  need_lib_prefix=no
987941b2f0bdSmrg
988041b2f0bdSmrg  case $GCC,$host_os in
988111a29bacSmrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
988241b2f0bdSmrg    library_names_spec='$libname.dll.a'
988341b2f0bdSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
988441b2f0bdSmrg    postinstall_cmds='base_file=`basename \${file}`~
988511a29bacSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
988641b2f0bdSmrg      dldir=$destdir/`dirname \$dlpath`~
988741b2f0bdSmrg      test -d \$dldir || mkdir -p \$dldir~
988841b2f0bdSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
988911a29bacSmrg      chmod a+x \$dldir/$dlname~
989011a29bacSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
989111a29bacSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
989211a29bacSmrg      fi'
989341b2f0bdSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
989441b2f0bdSmrg      dlpath=$dir/\$dldll~
989511a29bacSmrg       $RM \$dlpath'
989641b2f0bdSmrg    shlibpath_overrides_runpath=yes
989741b2f0bdSmrg
989841b2f0bdSmrg    case $host_os in
989941b2f0bdSmrg    cygwin*)
990041b2f0bdSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
990141b2f0bdSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
990211a29bacSmrg
990311a29bacSmrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
990441b2f0bdSmrg      ;;
990511a29bacSmrg    mingw* | cegcc*)
990641b2f0bdSmrg      # MinGW DLLs use traditional 'lib' prefix
990741b2f0bdSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
990841b2f0bdSmrg      ;;
990941b2f0bdSmrg    pw32*)
991041b2f0bdSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
991141b2f0bdSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
991241b2f0bdSmrg      ;;
991341b2f0bdSmrg    esac
991441b2f0bdSmrg    ;;
991541b2f0bdSmrg
991641b2f0bdSmrg  *)
991741b2f0bdSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
991841b2f0bdSmrg    ;;
991941b2f0bdSmrg  esac
992041b2f0bdSmrg  dynamic_linker='Win32 ld.exe'
992141b2f0bdSmrg  # FIXME: first we should search . and the directory the executable is in
992241b2f0bdSmrg  shlibpath_var=PATH
992341b2f0bdSmrg  ;;
992441b2f0bdSmrg
992541b2f0bdSmrgdarwin* | rhapsody*)
992641b2f0bdSmrg  dynamic_linker="$host_os dyld"
992741b2f0bdSmrg  version_type=darwin
992841b2f0bdSmrg  need_lib_prefix=no
992941b2f0bdSmrg  need_version=no
993011a29bacSmrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
993141b2f0bdSmrg  soname_spec='${libname}${release}${major}$shared_ext'
993241b2f0bdSmrg  shlibpath_overrides_runpath=yes
993341b2f0bdSmrg  shlibpath_var=DYLD_LIBRARY_PATH
993441b2f0bdSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
993511245024Smrg
993611a29bacSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
993741b2f0bdSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
993841b2f0bdSmrg  ;;
993941b2f0bdSmrg
994041b2f0bdSmrgdgux*)
994141b2f0bdSmrg  version_type=linux
994241b2f0bdSmrg  need_lib_prefix=no
994341b2f0bdSmrg  need_version=no
994441b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
994541b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
994641b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
994741b2f0bdSmrg  ;;
994841b2f0bdSmrg
994941b2f0bdSmrgfreebsd1*)
995041b2f0bdSmrg  dynamic_linker=no
995141b2f0bdSmrg  ;;
995241b2f0bdSmrg
995341b2f0bdSmrgfreebsd* | dragonfly*)
995441b2f0bdSmrg  # DragonFly does not have aout.  When/if they implement a new
995541b2f0bdSmrg  # versioning mechanism, adjust this.
995641b2f0bdSmrg  if test -x /usr/bin/objformat; then
995741b2f0bdSmrg    objformat=`/usr/bin/objformat`
995841b2f0bdSmrg  else
995941b2f0bdSmrg    case $host_os in
996041b2f0bdSmrg    freebsd[123]*) objformat=aout ;;
996141b2f0bdSmrg    *) objformat=elf ;;
996241b2f0bdSmrg    esac
996341b2f0bdSmrg  fi
996441b2f0bdSmrg  version_type=freebsd-$objformat
996541b2f0bdSmrg  case $version_type in
996641b2f0bdSmrg    freebsd-elf*)
996741b2f0bdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
996841b2f0bdSmrg      need_version=no
996941b2f0bdSmrg      need_lib_prefix=no
997041b2f0bdSmrg      ;;
997141b2f0bdSmrg    freebsd-*)
997241b2f0bdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
997341b2f0bdSmrg      need_version=yes
997441b2f0bdSmrg      ;;
997541b2f0bdSmrg  esac
997641b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
997741b2f0bdSmrg  case $host_os in
997841b2f0bdSmrg  freebsd2*)
997941b2f0bdSmrg    shlibpath_overrides_runpath=yes
998041b2f0bdSmrg    ;;
998141b2f0bdSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
998241b2f0bdSmrg    shlibpath_overrides_runpath=yes
998341b2f0bdSmrg    hardcode_into_libs=yes
998441b2f0bdSmrg    ;;
998541b2f0bdSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
998641b2f0bdSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
998741b2f0bdSmrg    shlibpath_overrides_runpath=no
998841b2f0bdSmrg    hardcode_into_libs=yes
998941b2f0bdSmrg    ;;
999011245024Smrg  *) # from 4.6 on, and DragonFly
999141b2f0bdSmrg    shlibpath_overrides_runpath=yes
999241b2f0bdSmrg    hardcode_into_libs=yes
999341b2f0bdSmrg    ;;
999441b2f0bdSmrg  esac
999541b2f0bdSmrg  ;;
999641b2f0bdSmrg
999741b2f0bdSmrggnu*)
999841b2f0bdSmrg  version_type=linux
999941b2f0bdSmrg  need_lib_prefix=no
1000041b2f0bdSmrg  need_version=no
1000141b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1000241b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1000341b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1000441b2f0bdSmrg  hardcode_into_libs=yes
1000541b2f0bdSmrg  ;;
1000641b2f0bdSmrg
1000711a29bacSmrghaiku*)
1000811a29bacSmrg  version_type=linux
1000911a29bacSmrg  need_lib_prefix=no
1001011a29bacSmrg  need_version=no
1001111a29bacSmrg  dynamic_linker="$host_os runtime_loader"
1001211a29bacSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1001311a29bacSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1001411a29bacSmrg  shlibpath_var=LIBRARY_PATH
1001511a29bacSmrg  shlibpath_overrides_runpath=yes
1001611a29bacSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1001711a29bacSmrg  hardcode_into_libs=yes
1001811a29bacSmrg  ;;
1001911a29bacSmrg
1002041b2f0bdSmrghpux9* | hpux10* | hpux11*)
1002141b2f0bdSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1002241b2f0bdSmrg  # link against other versions.
1002341b2f0bdSmrg  version_type=sunos
1002441b2f0bdSmrg  need_lib_prefix=no
1002541b2f0bdSmrg  need_version=no
1002641b2f0bdSmrg  case $host_cpu in
1002741b2f0bdSmrg  ia64*)
1002841b2f0bdSmrg    shrext_cmds='.so'
1002941b2f0bdSmrg    hardcode_into_libs=yes
1003041b2f0bdSmrg    dynamic_linker="$host_os dld.so"
1003141b2f0bdSmrg    shlibpath_var=LD_LIBRARY_PATH
1003241b2f0bdSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1003341b2f0bdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1003441b2f0bdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
1003541b2f0bdSmrg    if test "X$HPUX_IA64_MODE" = X32; then
1003641b2f0bdSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1003741b2f0bdSmrg    else
1003841b2f0bdSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1003941b2f0bdSmrg    fi
1004041b2f0bdSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1004141b2f0bdSmrg    ;;
1004211a29bacSmrg  hppa*64*)
1004311a29bacSmrg    shrext_cmds='.sl'
1004411a29bacSmrg    hardcode_into_libs=yes
1004511a29bacSmrg    dynamic_linker="$host_os dld.sl"
1004611a29bacSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1004711a29bacSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1004811a29bacSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1004911a29bacSmrg    soname_spec='${libname}${release}${shared_ext}$major'
1005011a29bacSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1005111a29bacSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1005211a29bacSmrg    ;;
1005311a29bacSmrg  *)
1005441b2f0bdSmrg    shrext_cmds='.sl'
1005541b2f0bdSmrg    dynamic_linker="$host_os dld.sl"
1005641b2f0bdSmrg    shlibpath_var=SHLIB_PATH
1005741b2f0bdSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1005841b2f0bdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1005941b2f0bdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
1006041b2f0bdSmrg    ;;
1006141b2f0bdSmrg  esac
1006211a29bacSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1006341b2f0bdSmrg  postinstall_cmds='chmod 555 $lib'
1006411a29bacSmrg  # or fails outright, so override atomically:
1006511a29bacSmrg  install_override_mode=555
1006641b2f0bdSmrg  ;;
1006741b2f0bdSmrg
1006811245024Smrginterix[3-9]*)
1006941b2f0bdSmrg  version_type=linux
1007041b2f0bdSmrg  need_lib_prefix=no
1007141b2f0bdSmrg  need_version=no
1007241b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1007341b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1007441b2f0bdSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1007541b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1007641b2f0bdSmrg  shlibpath_overrides_runpath=no
1007741b2f0bdSmrg  hardcode_into_libs=yes
1007841b2f0bdSmrg  ;;
1007941b2f0bdSmrg
1008041b2f0bdSmrgirix5* | irix6* | nonstopux*)
1008141b2f0bdSmrg  case $host_os in
1008241b2f0bdSmrg    nonstopux*) version_type=nonstopux ;;
1008341b2f0bdSmrg    *)
1008441b2f0bdSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1008541b2f0bdSmrg		version_type=linux
1008641b2f0bdSmrg	else
1008741b2f0bdSmrg		version_type=irix
1008841b2f0bdSmrg	fi ;;
1008941b2f0bdSmrg  esac
1009041b2f0bdSmrg  need_lib_prefix=no
1009141b2f0bdSmrg  need_version=no
1009241b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1009341b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1009441b2f0bdSmrg  case $host_os in
1009541b2f0bdSmrg  irix5* | nonstopux*)
1009641b2f0bdSmrg    libsuff= shlibsuff=
1009741b2f0bdSmrg    ;;
1009841b2f0bdSmrg  *)
1009941b2f0bdSmrg    case $LD in # libtool.m4 will add one of these switches to LD
1010041b2f0bdSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1010141b2f0bdSmrg      libsuff= shlibsuff= libmagic=32-bit;;
1010241b2f0bdSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1010341b2f0bdSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1010441b2f0bdSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1010541b2f0bdSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1010641b2f0bdSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
1010741b2f0bdSmrg    esac
1010841b2f0bdSmrg    ;;
1010941b2f0bdSmrg  esac
1011041b2f0bdSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1011141b2f0bdSmrg  shlibpath_overrides_runpath=no
1011241b2f0bdSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1011341b2f0bdSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1011441b2f0bdSmrg  hardcode_into_libs=yes
1011541b2f0bdSmrg  ;;
1011641b2f0bdSmrg
1011741b2f0bdSmrg# No shared lib support for Linux oldld, aout, or coff.
1011841b2f0bdSmrglinux*oldld* | linux*aout* | linux*coff*)
1011941b2f0bdSmrg  dynamic_linker=no
1012041b2f0bdSmrg  ;;
1012141b2f0bdSmrg
1012241b2f0bdSmrg# This must be Linux ELF.
1012311a29bacSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
1012441b2f0bdSmrg  version_type=linux
1012541b2f0bdSmrg  need_lib_prefix=no
1012641b2f0bdSmrg  need_version=no
1012741b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1012841b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1012941b2f0bdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1013041b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1013141b2f0bdSmrg  shlibpath_overrides_runpath=no
1013211a29bacSmrg
1013311a29bacSmrg  # Some binutils ld are patched to set DT_RUNPATH
1013411a29bacSmrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1013511a29bacSmrg  $as_echo_n "(cached) " >&6
1013611a29bacSmrgelse
1013711a29bacSmrg  lt_cv_shlibpath_overrides_runpath=no
1013811a29bacSmrg    save_LDFLAGS=$LDFLAGS
1013911a29bacSmrg    save_libdir=$libdir
1014011a29bacSmrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
1014111a29bacSmrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1014211a29bacSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1014311a29bacSmrg/* end confdefs.h.  */
1014411a29bacSmrg
1014511a29bacSmrgint
1014611a29bacSmrgmain ()
1014711a29bacSmrg{
1014811a29bacSmrg
1014911a29bacSmrg  ;
1015011a29bacSmrg  return 0;
1015111a29bacSmrg}
1015211a29bacSmrg_ACEOF
1015311a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1015411a29bacSmrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1015511a29bacSmrg  lt_cv_shlibpath_overrides_runpath=yes
1015611a29bacSmrgfi
1015711a29bacSmrgfi
1015811a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1015911a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1016011a29bacSmrg    LDFLAGS=$save_LDFLAGS
1016111a29bacSmrg    libdir=$save_libdir
1016211a29bacSmrg
1016311a29bacSmrgfi
1016411a29bacSmrg
1016511a29bacSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1016611a29bacSmrg
1016741b2f0bdSmrg  # This implies no fast_install, which is unacceptable.
1016841b2f0bdSmrg  # Some rework will be needed to allow for fast_install
1016941b2f0bdSmrg  # before this can be enabled.
1017041b2f0bdSmrg  hardcode_into_libs=yes
1017141b2f0bdSmrg
1017241b2f0bdSmrg  # Append ld.so.conf contents to the search path
1017341b2f0bdSmrg  if test -f /etc/ld.so.conf; then
1017411a29bacSmrg    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1017511245024Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1017641b2f0bdSmrg  fi
1017741b2f0bdSmrg
1017841b2f0bdSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1017941b2f0bdSmrg  # powerpc, because MkLinux only supported shared libraries with the
1018041b2f0bdSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1018141b2f0bdSmrg  # most powerpc-linux boxes support dynamic linking these days and
1018241b2f0bdSmrg  # people can always --disable-shared, the test was removed, and we
1018341b2f0bdSmrg  # assume the GNU/Linux dynamic linker is in use.
1018441b2f0bdSmrg  dynamic_linker='GNU/Linux ld.so'
1018541b2f0bdSmrg  ;;
1018641b2f0bdSmrg
1018741b2f0bdSmrgnetbsd*)
1018841b2f0bdSmrg  version_type=sunos
1018941b2f0bdSmrg  need_lib_prefix=no
1019041b2f0bdSmrg  need_version=no
1019111a29bacSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1019241b2f0bdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1019341b2f0bdSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1019441b2f0bdSmrg    dynamic_linker='NetBSD (a.out) ld.so'
1019541b2f0bdSmrg  else
1019641b2f0bdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1019741b2f0bdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
1019841b2f0bdSmrg    dynamic_linker='NetBSD ld.elf_so'
1019941b2f0bdSmrg  fi
1020041b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1020141b2f0bdSmrg  shlibpath_overrides_runpath=yes
1020241b2f0bdSmrg  hardcode_into_libs=yes
1020341b2f0bdSmrg  ;;
1020441b2f0bdSmrg
1020541b2f0bdSmrgnewsos6)
1020641b2f0bdSmrg  version_type=linux
1020741b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1020841b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1020941b2f0bdSmrg  shlibpath_overrides_runpath=yes
1021041b2f0bdSmrg  ;;
1021141b2f0bdSmrg
1021211a29bacSmrg*nto* | *qnx*)
1021311a29bacSmrg  version_type=qnx
1021441b2f0bdSmrg  need_lib_prefix=no
1021541b2f0bdSmrg  need_version=no
1021641b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1021741b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1021841b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1021911a29bacSmrg  shlibpath_overrides_runpath=no
1022011a29bacSmrg  hardcode_into_libs=yes
1022111a29bacSmrg  dynamic_linker='ldqnx.so'
1022241b2f0bdSmrg  ;;
1022341b2f0bdSmrg
1022441b2f0bdSmrgopenbsd*)
1022541b2f0bdSmrg  version_type=sunos
1022641b2f0bdSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
1022741b2f0bdSmrg  need_lib_prefix=no
1022841b2f0bdSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1022941b2f0bdSmrg  case $host_os in
1023011a29bacSmrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
1023111a29bacSmrg    *)				need_version=no  ;;
1023241b2f0bdSmrg  esac
1023341b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1023441b2f0bdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1023541b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1023611a29bacSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1023741b2f0bdSmrg    case $host_os in
1023841b2f0bdSmrg      openbsd2.[89] | openbsd2.[89].*)
1023941b2f0bdSmrg	shlibpath_overrides_runpath=no
1024041b2f0bdSmrg	;;
1024141b2f0bdSmrg      *)
1024241b2f0bdSmrg	shlibpath_overrides_runpath=yes
1024341b2f0bdSmrg	;;
1024441b2f0bdSmrg      esac
1024541b2f0bdSmrg  else
1024641b2f0bdSmrg    shlibpath_overrides_runpath=yes
1024741b2f0bdSmrg  fi
1024841b2f0bdSmrg  ;;
1024941b2f0bdSmrg
1025041b2f0bdSmrgos2*)
1025141b2f0bdSmrg  libname_spec='$name'
1025241b2f0bdSmrg  shrext_cmds=".dll"
1025341b2f0bdSmrg  need_lib_prefix=no
1025441b2f0bdSmrg  library_names_spec='$libname${shared_ext} $libname.a'
1025541b2f0bdSmrg  dynamic_linker='OS/2 ld.exe'
1025641b2f0bdSmrg  shlibpath_var=LIBPATH
1025741b2f0bdSmrg  ;;
1025841b2f0bdSmrg
1025941b2f0bdSmrgosf3* | osf4* | osf5*)
1026041b2f0bdSmrg  version_type=osf
1026141b2f0bdSmrg  need_lib_prefix=no
1026241b2f0bdSmrg  need_version=no
1026341b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1026441b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1026541b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1026641b2f0bdSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1026741b2f0bdSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1026841b2f0bdSmrg  ;;
1026941b2f0bdSmrg
1027011245024Smrgrdos*)
1027111245024Smrg  dynamic_linker=no
1027211245024Smrg  ;;
1027311245024Smrg
1027441b2f0bdSmrgsolaris*)
1027541b2f0bdSmrg  version_type=linux
1027641b2f0bdSmrg  need_lib_prefix=no
1027741b2f0bdSmrg  need_version=no
1027841b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1027941b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1028041b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1028141b2f0bdSmrg  shlibpath_overrides_runpath=yes
1028241b2f0bdSmrg  hardcode_into_libs=yes
1028341b2f0bdSmrg  # ldd complains unless libraries are executable
1028441b2f0bdSmrg  postinstall_cmds='chmod +x $lib'
1028541b2f0bdSmrg  ;;
1028641b2f0bdSmrg
1028741b2f0bdSmrgsunos4*)
1028841b2f0bdSmrg  version_type=sunos
1028941b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1029041b2f0bdSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1029141b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1029241b2f0bdSmrg  shlibpath_overrides_runpath=yes
1029341b2f0bdSmrg  if test "$with_gnu_ld" = yes; then
1029441b2f0bdSmrg    need_lib_prefix=no
1029541b2f0bdSmrg  fi
1029641b2f0bdSmrg  need_version=yes
1029741b2f0bdSmrg  ;;
1029841b2f0bdSmrg
1029941b2f0bdSmrgsysv4 | sysv4.3*)
1030041b2f0bdSmrg  version_type=linux
1030141b2f0bdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1030241b2f0bdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1030341b2f0bdSmrg  shlibpath_var=LD_LIBRARY_PATH
1030441b2f0bdSmrg  case $host_vendor in
1030541b2f0bdSmrg    sni)
1030641b2f0bdSmrg      shlibpath_overrides_runpath=no
1030741b2f0bdSmrg      need_lib_prefix=no
1030841b2f0bdSmrg      runpath_var=LD_RUN_PATH
1030941b2f0bdSmrg      ;;
1031041b2f0bdSmrg    siemens)
1031141b2f0bdSmrg      need_lib_prefix=no
1031241b2f0bdSmrg      ;;
1031341b2f0bdSmrg    motorola)
1031441b2f0bdSmrg      need_lib_prefix=no
1031541b2f0bdSmrg      need_version=no
1031641b2f0bdSmrg      shlibpath_overrides_runpath=no
1031741b2f0bdSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1031841b2f0bdSmrg      ;;
1031941b2f0bdSmrg  esac
1032041b2f0bdSmrg  ;;
1032141b2f0bdSmrg
1032241b2f0bdSmrgsysv4*MP*)
1032341b2f0bdSmrg  if test -d /usr/nec ;then
1032441b2f0bdSmrg    version_type=linux
1032541b2f0bdSmrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1032611a29bacSmrg    soname_spec='$libname${shared_ext}.$major'
1032711a29bacSmrg    shlibpath_var=LD_LIBRARY_PATH
1032811a29bacSmrg  fi
1032911a29bacSmrg  ;;
1033041b2f0bdSmrg
1033111a29bacSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1033211a29bacSmrg  version_type=freebsd-elf
1033311a29bacSmrg  need_lib_prefix=no
1033411a29bacSmrg  need_version=no
1033511a29bacSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1033611a29bacSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1033711a29bacSmrg  shlibpath_var=LD_LIBRARY_PATH
1033811a29bacSmrg  shlibpath_overrides_runpath=yes
1033911a29bacSmrg  hardcode_into_libs=yes
1034011a29bacSmrg  if test "$with_gnu_ld" = yes; then
1034111a29bacSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1034211a29bacSmrg  else
1034311a29bacSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1034411a29bacSmrg    case $host_os in
1034511a29bacSmrg      sco3.2v5*)
1034611a29bacSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1034711a29bacSmrg	;;
1034811a29bacSmrg    esac
1034911a29bacSmrg  fi
1035011a29bacSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
1035111a29bacSmrg  ;;
1035241b2f0bdSmrg
1035311a29bacSmrgtpf*)
1035411a29bacSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1035511a29bacSmrg  version_type=linux
1035611a29bacSmrg  need_lib_prefix=no
1035711a29bacSmrg  need_version=no
1035811a29bacSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1035911a29bacSmrg  shlibpath_var=LD_LIBRARY_PATH
1036011a29bacSmrg  shlibpath_overrides_runpath=no
1036111a29bacSmrg  hardcode_into_libs=yes
1036211a29bacSmrg  ;;
1036341b2f0bdSmrg
1036411a29bacSmrguts4*)
1036511a29bacSmrg  version_type=linux
1036611a29bacSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1036711a29bacSmrg  soname_spec='${libname}${release}${shared_ext}$major'
1036811a29bacSmrg  shlibpath_var=LD_LIBRARY_PATH
1036911a29bacSmrg  ;;
1037041b2f0bdSmrg
1037111a29bacSmrg*)
1037211a29bacSmrg  dynamic_linker=no
1037311a29bacSmrg  ;;
1037411a29bacSmrgesac
1037511a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1037611a29bacSmrg$as_echo "$dynamic_linker" >&6; }
1037711a29bacSmrgtest "$dynamic_linker" = no && can_build_shared=no
1037841b2f0bdSmrg
1037911a29bacSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1038011a29bacSmrgif test "$GCC" = yes; then
1038111a29bacSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1038211a29bacSmrgfi
1038341b2f0bdSmrg
1038411a29bacSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1038511a29bacSmrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1038611a29bacSmrgfi
1038711a29bacSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1038811a29bacSmrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1038911a29bacSmrgfi
1039041b2f0bdSmrg
1039141b2f0bdSmrg
1039241b2f0bdSmrg
1039341b2f0bdSmrg
1039441b2f0bdSmrg
1039541b2f0bdSmrg
1039641b2f0bdSmrg
1039741b2f0bdSmrg
1039841b2f0bdSmrg
1039941b2f0bdSmrg
1040041b2f0bdSmrg
1040141b2f0bdSmrg
1040241b2f0bdSmrg
1040341b2f0bdSmrg
1040441b2f0bdSmrg
1040541b2f0bdSmrg
1040641b2f0bdSmrg
1040741b2f0bdSmrg
1040841b2f0bdSmrg
1040941b2f0bdSmrg
1041041b2f0bdSmrg
1041141b2f0bdSmrg
1041241b2f0bdSmrg
1041341b2f0bdSmrg
1041441b2f0bdSmrg
1041541b2f0bdSmrg
1041641b2f0bdSmrg
1041741b2f0bdSmrg
1041841b2f0bdSmrg
1041941b2f0bdSmrg
1042041b2f0bdSmrg
1042141b2f0bdSmrg
1042241b2f0bdSmrg
1042341b2f0bdSmrg
1042441b2f0bdSmrg
1042541b2f0bdSmrg
1042641b2f0bdSmrg
1042741b2f0bdSmrg
1042811245024Smrg
1042941b2f0bdSmrg
1043041b2f0bdSmrg
1043141b2f0bdSmrg
1043241b2f0bdSmrg
1043341b2f0bdSmrg
1043441b2f0bdSmrg
1043541b2f0bdSmrg
1043641b2f0bdSmrg
1043741b2f0bdSmrg
1043841b2f0bdSmrg
1043941b2f0bdSmrg
1044041b2f0bdSmrg
1044141b2f0bdSmrg
1044241b2f0bdSmrg
1044341b2f0bdSmrg
1044441b2f0bdSmrg
1044541b2f0bdSmrg
1044641b2f0bdSmrg
1044741b2f0bdSmrg
1044841b2f0bdSmrg
1044941b2f0bdSmrg
1045041b2f0bdSmrg
1045141b2f0bdSmrg
1045241b2f0bdSmrg
1045341b2f0bdSmrg
1045441b2f0bdSmrg
1045541b2f0bdSmrg
1045641b2f0bdSmrg
1045741b2f0bdSmrg
1045841b2f0bdSmrg
1045941b2f0bdSmrg
1046041b2f0bdSmrg
1046141b2f0bdSmrg
1046241b2f0bdSmrg
1046341b2f0bdSmrg
1046441b2f0bdSmrg
1046541b2f0bdSmrg
1046641b2f0bdSmrg
1046741b2f0bdSmrg
1046841b2f0bdSmrg
1046941b2f0bdSmrg
1047041b2f0bdSmrg
1047141b2f0bdSmrg
1047241b2f0bdSmrg
1047341b2f0bdSmrg
1047441b2f0bdSmrg
1047541b2f0bdSmrg
1047641b2f0bdSmrg
1047741b2f0bdSmrg
1047841b2f0bdSmrg
1047941b2f0bdSmrg
1048041b2f0bdSmrg
1048141b2f0bdSmrg
1048211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1048311a29bacSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1048411a29bacSmrghardcode_action=
1048511a29bacSmrgif test -n "$hardcode_libdir_flag_spec" ||
1048611a29bacSmrg   test -n "$runpath_var" ||
1048711a29bacSmrg   test "X$hardcode_automatic" = "Xyes" ; then
1048841b2f0bdSmrg
1048911a29bacSmrg  # We can hardcode non-existent directories.
1049011a29bacSmrg  if test "$hardcode_direct" != no &&
1049111a29bacSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1049211a29bacSmrg     # have to relink, otherwise we might link with an installed library
1049311a29bacSmrg     # when we should be linking with a yet-to-be-installed one
1049411a29bacSmrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1049511a29bacSmrg     test "$hardcode_minus_L" != no; then
1049611a29bacSmrg    # Linking always hardcodes the temporary library directory.
1049711a29bacSmrg    hardcode_action=relink
1049811a29bacSmrg  else
1049911a29bacSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1050011a29bacSmrg    hardcode_action=immediate
1050141b2f0bdSmrg  fi
1050211a29bacSmrgelse
1050311a29bacSmrg  # We cannot hardcode anything, or else we can only hardcode existing
1050411a29bacSmrg  # directories.
1050511a29bacSmrg  hardcode_action=unsupported
1050611a29bacSmrgfi
1050711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1050811a29bacSmrg$as_echo "$hardcode_action" >&6; }
1050941b2f0bdSmrg
1051011a29bacSmrgif test "$hardcode_action" = relink ||
1051111a29bacSmrg   test "$inherit_rpath" = yes; then
1051211a29bacSmrg  # Fast installation is not supported
1051311a29bacSmrg  enable_fast_install=no
1051411a29bacSmrgelif test "$shlibpath_overrides_runpath" = yes ||
1051511a29bacSmrg     test "$enable_shared" = no; then
1051611a29bacSmrg  # Fast installation is not necessary
1051711a29bacSmrg  enable_fast_install=needless
1051811a29bacSmrgfi
1051941b2f0bdSmrg
1052041b2f0bdSmrg
1052141b2f0bdSmrg
1052241b2f0bdSmrg
1052341b2f0bdSmrg
1052441b2f0bdSmrg
1052511a29bacSmrg  if test "x$enable_dlopen" != xyes; then
1052611a29bacSmrg  enable_dlopen=unknown
1052711a29bacSmrg  enable_dlopen_self=unknown
1052811a29bacSmrg  enable_dlopen_self_static=unknown
1052911a29bacSmrgelse
1053011a29bacSmrg  lt_cv_dlopen=no
1053111a29bacSmrg  lt_cv_dlopen_libs=
1053241b2f0bdSmrg
1053311a29bacSmrg  case $host_os in
1053411a29bacSmrg  beos*)
1053511a29bacSmrg    lt_cv_dlopen="load_add_on"
1053611a29bacSmrg    lt_cv_dlopen_libs=
1053711a29bacSmrg    lt_cv_dlopen_self=yes
1053811a29bacSmrg    ;;
1053941b2f0bdSmrg
1054011a29bacSmrg  mingw* | pw32* | cegcc*)
1054111a29bacSmrg    lt_cv_dlopen="LoadLibrary"
1054211a29bacSmrg    lt_cv_dlopen_libs=
1054311a29bacSmrg    ;;
1054441b2f0bdSmrg
1054511a29bacSmrg  cygwin*)
1054611a29bacSmrg    lt_cv_dlopen="dlopen"
1054711a29bacSmrg    lt_cv_dlopen_libs=
1054811a29bacSmrg    ;;
1054941b2f0bdSmrg
1055011a29bacSmrg  darwin*)
1055111a29bacSmrg  # if libdl is installed we need to link against it
1055211a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1055311a29bacSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1055411a29bacSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1055511a29bacSmrg  $as_echo_n "(cached) " >&6
1055611a29bacSmrgelse
1055711a29bacSmrg  ac_check_lib_save_LIBS=$LIBS
1055811a29bacSmrgLIBS="-ldl  $LIBS"
1055911a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1056011a29bacSmrg/* end confdefs.h.  */
1056141b2f0bdSmrg
1056211a29bacSmrg/* Override any GCC internal prototype to avoid an error.
1056311a29bacSmrg   Use char because int might match the return type of a GCC
1056411a29bacSmrg   builtin and then its argument prototype would still apply.  */
1056511a29bacSmrg#ifdef __cplusplus
1056611a29bacSmrgextern "C"
1056711a29bacSmrg#endif
1056811a29bacSmrgchar dlopen ();
1056911a29bacSmrgint
1057011a29bacSmrgmain ()
1057111a29bacSmrg{
1057211a29bacSmrgreturn dlopen ();
1057311a29bacSmrg  ;
1057411a29bacSmrg  return 0;
1057511a29bacSmrg}
1057611a29bacSmrg_ACEOF
1057711a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1057811a29bacSmrg  ac_cv_lib_dl_dlopen=yes
1057911a29bacSmrgelse
1058011a29bacSmrg  ac_cv_lib_dl_dlopen=no
1058111a29bacSmrgfi
1058211a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1058311a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1058411a29bacSmrgLIBS=$ac_check_lib_save_LIBS
1058511a29bacSmrgfi
1058611a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1058711a29bacSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1058811a29bacSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1058911a29bacSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1059011a29bacSmrgelse
1059141b2f0bdSmrg
1059211a29bacSmrg    lt_cv_dlopen="dyld"
1059311a29bacSmrg    lt_cv_dlopen_libs=
1059411a29bacSmrg    lt_cv_dlopen_self=yes
1059541b2f0bdSmrg
1059611a29bacSmrgfi
1059741b2f0bdSmrg
1059811a29bacSmrg    ;;
1059941b2f0bdSmrg
1060011a29bacSmrg  *)
1060111a29bacSmrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1060211a29bacSmrgif test "x$ac_cv_func_shl_load" = xyes; then :
1060311a29bacSmrg  lt_cv_dlopen="shl_load"
1060411a29bacSmrgelse
1060511a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1060611a29bacSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
1060711a29bacSmrgif ${ac_cv_lib_dld_shl_load+:} false; then :
1060811a29bacSmrg  $as_echo_n "(cached) " >&6
1060911a29bacSmrgelse
1061011a29bacSmrg  ac_check_lib_save_LIBS=$LIBS
1061111a29bacSmrgLIBS="-ldld  $LIBS"
1061211a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1061311a29bacSmrg/* end confdefs.h.  */
1061441b2f0bdSmrg
1061511a29bacSmrg/* Override any GCC internal prototype to avoid an error.
1061611a29bacSmrg   Use char because int might match the return type of a GCC
1061711a29bacSmrg   builtin and then its argument prototype would still apply.  */
1061811a29bacSmrg#ifdef __cplusplus
1061911a29bacSmrgextern "C"
1062011a29bacSmrg#endif
1062111a29bacSmrgchar shl_load ();
1062211a29bacSmrgint
1062311a29bacSmrgmain ()
1062411a29bacSmrg{
1062511a29bacSmrgreturn shl_load ();
1062611a29bacSmrg  ;
1062711a29bacSmrg  return 0;
1062811a29bacSmrg}
1062911a29bacSmrg_ACEOF
1063011a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1063111a29bacSmrg  ac_cv_lib_dld_shl_load=yes
1063211a29bacSmrgelse
1063311a29bacSmrg  ac_cv_lib_dld_shl_load=no
1063411a29bacSmrgfi
1063511a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1063611a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1063711a29bacSmrgLIBS=$ac_check_lib_save_LIBS
1063811a29bacSmrgfi
1063911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1064011a29bacSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1064111a29bacSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1064211a29bacSmrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1064311a29bacSmrgelse
1064411a29bacSmrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1064511a29bacSmrgif test "x$ac_cv_func_dlopen" = xyes; then :
1064611a29bacSmrg  lt_cv_dlopen="dlopen"
1064711a29bacSmrgelse
1064811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1064911a29bacSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1065011a29bacSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1065111a29bacSmrg  $as_echo_n "(cached) " >&6
1065211a29bacSmrgelse
1065311a29bacSmrg  ac_check_lib_save_LIBS=$LIBS
1065411a29bacSmrgLIBS="-ldl  $LIBS"
1065511a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1065611a29bacSmrg/* end confdefs.h.  */
1065741b2f0bdSmrg
1065811a29bacSmrg/* Override any GCC internal prototype to avoid an error.
1065911a29bacSmrg   Use char because int might match the return type of a GCC
1066011a29bacSmrg   builtin and then its argument prototype would still apply.  */
1066111a29bacSmrg#ifdef __cplusplus
1066211a29bacSmrgextern "C"
1066311a29bacSmrg#endif
1066411a29bacSmrgchar dlopen ();
1066511a29bacSmrgint
1066611a29bacSmrgmain ()
1066711a29bacSmrg{
1066811a29bacSmrgreturn dlopen ();
1066911a29bacSmrg  ;
1067011a29bacSmrg  return 0;
1067111a29bacSmrg}
1067211a29bacSmrg_ACEOF
1067311a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1067411a29bacSmrg  ac_cv_lib_dl_dlopen=yes
1067511a29bacSmrgelse
1067611a29bacSmrg  ac_cv_lib_dl_dlopen=no
1067711a29bacSmrgfi
1067811a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1067911a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1068011a29bacSmrgLIBS=$ac_check_lib_save_LIBS
1068111a29bacSmrgfi
1068211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1068311a29bacSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1068411a29bacSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1068511a29bacSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1068611a29bacSmrgelse
1068711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1068811a29bacSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1068911a29bacSmrgif ${ac_cv_lib_svld_dlopen+:} false; then :
1069011a29bacSmrg  $as_echo_n "(cached) " >&6
1069111a29bacSmrgelse
1069211a29bacSmrg  ac_check_lib_save_LIBS=$LIBS
1069311a29bacSmrgLIBS="-lsvld  $LIBS"
1069411a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1069511a29bacSmrg/* end confdefs.h.  */
1069641b2f0bdSmrg
1069711a29bacSmrg/* Override any GCC internal prototype to avoid an error.
1069811a29bacSmrg   Use char because int might match the return type of a GCC
1069911a29bacSmrg   builtin and then its argument prototype would still apply.  */
1070011a29bacSmrg#ifdef __cplusplus
1070111a29bacSmrgextern "C"
1070211a29bacSmrg#endif
1070311a29bacSmrgchar dlopen ();
1070411a29bacSmrgint
1070511a29bacSmrgmain ()
1070611a29bacSmrg{
1070711a29bacSmrgreturn dlopen ();
1070811a29bacSmrg  ;
1070911a29bacSmrg  return 0;
1071011a29bacSmrg}
1071111a29bacSmrg_ACEOF
1071211a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1071311a29bacSmrg  ac_cv_lib_svld_dlopen=yes
1071411a29bacSmrgelse
1071511a29bacSmrg  ac_cv_lib_svld_dlopen=no
1071611a29bacSmrgfi
1071711a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1071811a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1071911a29bacSmrgLIBS=$ac_check_lib_save_LIBS
1072011a29bacSmrgfi
1072111a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1072211a29bacSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1072311a29bacSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1072411a29bacSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1072511a29bacSmrgelse
1072611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1072711a29bacSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
1072811a29bacSmrgif ${ac_cv_lib_dld_dld_link+:} false; then :
1072911a29bacSmrg  $as_echo_n "(cached) " >&6
1073011a29bacSmrgelse
1073111a29bacSmrg  ac_check_lib_save_LIBS=$LIBS
1073211a29bacSmrgLIBS="-ldld  $LIBS"
1073311a29bacSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1073411a29bacSmrg/* end confdefs.h.  */
1073541b2f0bdSmrg
1073611a29bacSmrg/* Override any GCC internal prototype to avoid an error.
1073711a29bacSmrg   Use char because int might match the return type of a GCC
1073811a29bacSmrg   builtin and then its argument prototype would still apply.  */
1073911a29bacSmrg#ifdef __cplusplus
1074011a29bacSmrgextern "C"
1074111a29bacSmrg#endif
1074211a29bacSmrgchar dld_link ();
1074311a29bacSmrgint
1074411a29bacSmrgmain ()
1074511a29bacSmrg{
1074611a29bacSmrgreturn dld_link ();
1074711a29bacSmrg  ;
1074811a29bacSmrg  return 0;
1074911a29bacSmrg}
1075011a29bacSmrg_ACEOF
1075111a29bacSmrgif ac_fn_c_try_link "$LINENO"; then :
1075211a29bacSmrg  ac_cv_lib_dld_dld_link=yes
1075311a29bacSmrgelse
1075411a29bacSmrg  ac_cv_lib_dld_dld_link=no
1075511a29bacSmrgfi
1075611a29bacSmrgrm -f core conftest.err conftest.$ac_objext \
1075711a29bacSmrg    conftest$ac_exeext conftest.$ac_ext
1075811a29bacSmrgLIBS=$ac_check_lib_save_LIBS
1075911a29bacSmrgfi
1076011a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1076111a29bacSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1076211a29bacSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1076311a29bacSmrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1076411a29bacSmrgfi
1076541b2f0bdSmrg
1076641b2f0bdSmrg
1076711a29bacSmrgfi
1076841b2f0bdSmrg
1076941b2f0bdSmrg
1077011a29bacSmrgfi
1077141b2f0bdSmrg
1077241b2f0bdSmrg
1077311a29bacSmrgfi
1077441b2f0bdSmrg
1077541b2f0bdSmrg
1077611a29bacSmrgfi
1077741b2f0bdSmrg
1077841b2f0bdSmrg
1077911a29bacSmrgfi
1078041b2f0bdSmrg
1078111a29bacSmrg    ;;
1078211a29bacSmrg  esac
1078341b2f0bdSmrg
1078411a29bacSmrg  if test "x$lt_cv_dlopen" != xno; then
1078511a29bacSmrg    enable_dlopen=yes
1078611a29bacSmrg  else
1078711a29bacSmrg    enable_dlopen=no
1078811a29bacSmrg  fi
1078941b2f0bdSmrg
1079011a29bacSmrg  case $lt_cv_dlopen in
1079111a29bacSmrg  dlopen)
1079211a29bacSmrg    save_CPPFLAGS="$CPPFLAGS"
1079311a29bacSmrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1079441b2f0bdSmrg
1079511a29bacSmrg    save_LDFLAGS="$LDFLAGS"
1079611a29bacSmrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1079741b2f0bdSmrg
1079811a29bacSmrg    save_LIBS="$LIBS"
1079911a29bacSmrg    LIBS="$lt_cv_dlopen_libs $LIBS"
1080041b2f0bdSmrg
1080111a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1080211a29bacSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1080311a29bacSmrgif ${lt_cv_dlopen_self+:} false; then :
1080411a29bacSmrg  $as_echo_n "(cached) " >&6
1080511a29bacSmrgelse
1080611a29bacSmrg  	  if test "$cross_compiling" = yes; then :
1080711a29bacSmrg  lt_cv_dlopen_self=cross
1080811a29bacSmrgelse
1080911a29bacSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1081011a29bacSmrg  lt_status=$lt_dlunknown
1081111a29bacSmrg  cat > conftest.$ac_ext <<_LT_EOF
1081211a29bacSmrg#line $LINENO "configure"
1081311a29bacSmrg#include "confdefs.h"
1081441b2f0bdSmrg
1081511a29bacSmrg#if HAVE_DLFCN_H
1081611a29bacSmrg#include <dlfcn.h>
1081711a29bacSmrg#endif
1081841b2f0bdSmrg
1081911a29bacSmrg#include <stdio.h>
1082041b2f0bdSmrg
1082111a29bacSmrg#ifdef RTLD_GLOBAL
1082211a29bacSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1082311a29bacSmrg#else
1082411a29bacSmrg#  ifdef DL_GLOBAL
1082511a29bacSmrg#    define LT_DLGLOBAL		DL_GLOBAL
1082611a29bacSmrg#  else
1082711a29bacSmrg#    define LT_DLGLOBAL		0
1082811a29bacSmrg#  endif
1082911a29bacSmrg#endif
1083041b2f0bdSmrg
1083111a29bacSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1083211a29bacSmrg   find out it does not work in some platform. */
1083311a29bacSmrg#ifndef LT_DLLAZY_OR_NOW
1083411a29bacSmrg#  ifdef RTLD_LAZY
1083511a29bacSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1083611a29bacSmrg#  else
1083711a29bacSmrg#    ifdef DL_LAZY
1083811a29bacSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1083911a29bacSmrg#    else
1084011a29bacSmrg#      ifdef RTLD_NOW
1084111a29bacSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1084211a29bacSmrg#      else
1084311a29bacSmrg#        ifdef DL_NOW
1084411a29bacSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1084511a29bacSmrg#        else
1084611a29bacSmrg#          define LT_DLLAZY_OR_NOW	0
1084711a29bacSmrg#        endif
1084811a29bacSmrg#      endif
1084911a29bacSmrg#    endif
1085011a29bacSmrg#  endif
1085111a29bacSmrg#endif
1085241b2f0bdSmrg
1085311a29bacSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
1085411a29bacSmrg   correspondingly for the symbols needed.  */
1085511a29bacSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1085611a29bacSmrgvoid fnord () __attribute__((visibility("default")));
1085711a29bacSmrg#endif
1085841b2f0bdSmrg
1085911a29bacSmrgvoid fnord () { int i=42; }
1086011a29bacSmrgint main ()
1086111a29bacSmrg{
1086211a29bacSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1086311a29bacSmrg  int status = $lt_dlunknown;
1086441b2f0bdSmrg
1086511a29bacSmrg  if (self)
1086611a29bacSmrg    {
1086711a29bacSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1086811a29bacSmrg      else
1086911a29bacSmrg        {
1087011a29bacSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1087111a29bacSmrg          else puts (dlerror ());
1087211a29bacSmrg	}
1087311a29bacSmrg      /* dlclose (self); */
1087411a29bacSmrg    }
1087511a29bacSmrg  else
1087611a29bacSmrg    puts (dlerror ());
1087741b2f0bdSmrg
1087811a29bacSmrg  return status;
1087911a29bacSmrg}
1088011a29bacSmrg_LT_EOF
1088111a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1088211a29bacSmrg  (eval $ac_link) 2>&5
1088311a29bacSmrg  ac_status=$?
1088411a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1088511a29bacSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1088611a29bacSmrg    (./conftest; exit; ) >&5 2>/dev/null
1088711a29bacSmrg    lt_status=$?
1088811a29bacSmrg    case x$lt_status in
1088911a29bacSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1089011a29bacSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1089111a29bacSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1089211a29bacSmrg    esac
1089311a29bacSmrg  else :
1089411a29bacSmrg    # compilation failed
1089511a29bacSmrg    lt_cv_dlopen_self=no
1089611a29bacSmrg  fi
1089711a29bacSmrgfi
1089811a29bacSmrgrm -fr conftest*
1089941b2f0bdSmrg
1090041b2f0bdSmrg
1090111a29bacSmrgfi
1090211a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1090311a29bacSmrg$as_echo "$lt_cv_dlopen_self" >&6; }
1090441b2f0bdSmrg
1090511a29bacSmrg    if test "x$lt_cv_dlopen_self" = xyes; then
1090611a29bacSmrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1090711a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1090811a29bacSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1090911a29bacSmrgif ${lt_cv_dlopen_self_static+:} false; then :
1091011a29bacSmrg  $as_echo_n "(cached) " >&6
1091111a29bacSmrgelse
1091211a29bacSmrg  	  if test "$cross_compiling" = yes; then :
1091311a29bacSmrg  lt_cv_dlopen_self_static=cross
1091411a29bacSmrgelse
1091511a29bacSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1091611a29bacSmrg  lt_status=$lt_dlunknown
1091711a29bacSmrg  cat > conftest.$ac_ext <<_LT_EOF
1091811a29bacSmrg#line $LINENO "configure"
1091911a29bacSmrg#include "confdefs.h"
1092041b2f0bdSmrg
1092111a29bacSmrg#if HAVE_DLFCN_H
1092211a29bacSmrg#include <dlfcn.h>
1092311a29bacSmrg#endif
1092441b2f0bdSmrg
1092511a29bacSmrg#include <stdio.h>
1092641b2f0bdSmrg
1092711a29bacSmrg#ifdef RTLD_GLOBAL
1092811a29bacSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1092911a29bacSmrg#else
1093011a29bacSmrg#  ifdef DL_GLOBAL
1093111a29bacSmrg#    define LT_DLGLOBAL		DL_GLOBAL
1093211a29bacSmrg#  else
1093311a29bacSmrg#    define LT_DLGLOBAL		0
1093411a29bacSmrg#  endif
1093511a29bacSmrg#endif
1093641b2f0bdSmrg
1093711a29bacSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1093811a29bacSmrg   find out it does not work in some platform. */
1093911a29bacSmrg#ifndef LT_DLLAZY_OR_NOW
1094011a29bacSmrg#  ifdef RTLD_LAZY
1094111a29bacSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1094211a29bacSmrg#  else
1094311a29bacSmrg#    ifdef DL_LAZY
1094411a29bacSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1094511a29bacSmrg#    else
1094611a29bacSmrg#      ifdef RTLD_NOW
1094711a29bacSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1094811a29bacSmrg#      else
1094911a29bacSmrg#        ifdef DL_NOW
1095011a29bacSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1095111a29bacSmrg#        else
1095211a29bacSmrg#          define LT_DLLAZY_OR_NOW	0
1095311a29bacSmrg#        endif
1095411a29bacSmrg#      endif
1095511a29bacSmrg#    endif
1095611a29bacSmrg#  endif
1095711a29bacSmrg#endif
1095841b2f0bdSmrg
1095911a29bacSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
1096011a29bacSmrg   correspondingly for the symbols needed.  */
1096111a29bacSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1096211a29bacSmrgvoid fnord () __attribute__((visibility("default")));
1096311a29bacSmrg#endif
1096441b2f0bdSmrg
1096511a29bacSmrgvoid fnord () { int i=42; }
1096611a29bacSmrgint main ()
1096711a29bacSmrg{
1096811a29bacSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1096911a29bacSmrg  int status = $lt_dlunknown;
1097041b2f0bdSmrg
1097111a29bacSmrg  if (self)
1097211a29bacSmrg    {
1097311a29bacSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1097411a29bacSmrg      else
1097511a29bacSmrg        {
1097611a29bacSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1097711a29bacSmrg          else puts (dlerror ());
1097811a29bacSmrg	}
1097911a29bacSmrg      /* dlclose (self); */
1098011a29bacSmrg    }
1098111a29bacSmrg  else
1098211a29bacSmrg    puts (dlerror ());
1098341b2f0bdSmrg
1098411a29bacSmrg  return status;
1098511a29bacSmrg}
1098611a29bacSmrg_LT_EOF
1098711a29bacSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1098811a29bacSmrg  (eval $ac_link) 2>&5
1098911a29bacSmrg  ac_status=$?
1099011a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1099111a29bacSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1099211a29bacSmrg    (./conftest; exit; ) >&5 2>/dev/null
1099311a29bacSmrg    lt_status=$?
1099411a29bacSmrg    case x$lt_status in
1099511a29bacSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1099611a29bacSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1099711a29bacSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1099811a29bacSmrg    esac
1099911a29bacSmrg  else :
1100011a29bacSmrg    # compilation failed
1100111a29bacSmrg    lt_cv_dlopen_self_static=no
1100211a29bacSmrg  fi
1100311a29bacSmrgfi
1100411a29bacSmrgrm -fr conftest*
1100541b2f0bdSmrg
1100641b2f0bdSmrg
1100711a29bacSmrgfi
1100811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1100911a29bacSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
1101011a29bacSmrg    fi
1101141b2f0bdSmrg
1101211a29bacSmrg    CPPFLAGS="$save_CPPFLAGS"
1101311a29bacSmrg    LDFLAGS="$save_LDFLAGS"
1101411a29bacSmrg    LIBS="$save_LIBS"
1101511a29bacSmrg    ;;
1101611a29bacSmrg  esac
1101741b2f0bdSmrg
1101811a29bacSmrg  case $lt_cv_dlopen_self in
1101911a29bacSmrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1102011a29bacSmrg  *) enable_dlopen_self=unknown ;;
1102111a29bacSmrg  esac
1102241b2f0bdSmrg
1102311a29bacSmrg  case $lt_cv_dlopen_self_static in
1102411a29bacSmrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1102511a29bacSmrg  *) enable_dlopen_self_static=unknown ;;
1102611a29bacSmrg  esac
1102711a29bacSmrgfi
1102841b2f0bdSmrg
1102911245024Smrg
1103041b2f0bdSmrg
1103141b2f0bdSmrg
1103241b2f0bdSmrg
1103341b2f0bdSmrg
1103441b2f0bdSmrg
1103541b2f0bdSmrg
1103641b2f0bdSmrg
1103741b2f0bdSmrg
1103841b2f0bdSmrg
1103941b2f0bdSmrg
1104041b2f0bdSmrg
1104141b2f0bdSmrg
1104241b2f0bdSmrg
1104341b2f0bdSmrg
1104441b2f0bdSmrg
1104511a29bacSmrgstriplib=
1104611a29bacSmrgold_striplib=
1104711a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1104811a29bacSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1104911a29bacSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1105011a29bacSmrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1105111a29bacSmrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1105211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1105311a29bacSmrg$as_echo "yes" >&6; }
1105411a29bacSmrgelse
1105511a29bacSmrg# FIXME - insert some real tests, host_os isn't really good enough
1105611a29bacSmrg  case $host_os in
1105711a29bacSmrg  darwin*)
1105811a29bacSmrg    if test -n "$STRIP" ; then
1105911a29bacSmrg      striplib="$STRIP -x"
1106011a29bacSmrg      old_striplib="$STRIP -S"
1106111a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1106211a29bacSmrg$as_echo "yes" >&6; }
1106311a29bacSmrg    else
1106411a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1106511a29bacSmrg$as_echo "no" >&6; }
1106611a29bacSmrg    fi
1106711a29bacSmrg    ;;
1106811a29bacSmrg  *)
1106911a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1107011a29bacSmrg$as_echo "no" >&6; }
1107111a29bacSmrg    ;;
1107211a29bacSmrg  esac
1107311a29bacSmrgfi
1107441b2f0bdSmrg
1107541b2f0bdSmrg
1107641b2f0bdSmrg
1107741b2f0bdSmrg
1107841b2f0bdSmrg
1107941b2f0bdSmrg
1108041b2f0bdSmrg
1108141b2f0bdSmrg
1108241b2f0bdSmrg
1108341b2f0bdSmrg
1108441b2f0bdSmrg
1108541b2f0bdSmrg
1108611a29bacSmrg  # Report which library types will actually be built
1108711a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1108811a29bacSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
1108911a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1109011a29bacSmrg$as_echo "$can_build_shared" >&6; }
1109141b2f0bdSmrg
1109211a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1109311a29bacSmrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1109411a29bacSmrg  test "$can_build_shared" = "no" && enable_shared=no
1109541b2f0bdSmrg
1109611a29bacSmrg  # On AIX, shared libraries and static libraries use the same namespace, and
1109711a29bacSmrg  # are all built from PIC.
1109811a29bacSmrg  case $host_os in
1109911a29bacSmrg  aix3*)
1110011a29bacSmrg    test "$enable_shared" = yes && enable_static=no
1110111a29bacSmrg    if test -n "$RANLIB"; then
1110211a29bacSmrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
1110311a29bacSmrg      postinstall_cmds='$RANLIB $lib'
1110411a29bacSmrg    fi
1110511a29bacSmrg    ;;
1110641b2f0bdSmrg
1110711a29bacSmrg  aix[4-9]*)
1110811a29bacSmrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1110911a29bacSmrg      test "$enable_shared" = yes && enable_static=no
1111011a29bacSmrg    fi
1111111a29bacSmrg    ;;
1111211a29bacSmrg  esac
1111311a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1111411a29bacSmrg$as_echo "$enable_shared" >&6; }
1111541b2f0bdSmrg
1111611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1111711a29bacSmrg$as_echo_n "checking whether to build static libraries... " >&6; }
1111811a29bacSmrg  # Make sure either enable_shared or enable_static is yes.
1111911a29bacSmrg  test "$enable_shared" = yes || enable_static=yes
1112011a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1112111a29bacSmrg$as_echo "$enable_static" >&6; }
1112241b2f0bdSmrg
1112341b2f0bdSmrg
1112441b2f0bdSmrg
1112541b2f0bdSmrg
1112641b2f0bdSmrgfi
1112741b2f0bdSmrgac_ext=c
1112841b2f0bdSmrgac_cpp='$CPP $CPPFLAGS'
1112941b2f0bdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1113041b2f0bdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113141b2f0bdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1113241b2f0bdSmrg
1113341b2f0bdSmrgCC="$lt_save_CC"
1113441b2f0bdSmrg
1113541b2f0bdSmrg
1113641b2f0bdSmrg
1113741b2f0bdSmrg
1113841b2f0bdSmrg
1113941b2f0bdSmrg
1114041b2f0bdSmrg
1114141b2f0bdSmrg
1114241b2f0bdSmrg
1114341b2f0bdSmrg
1114441b2f0bdSmrg
1114541b2f0bdSmrg
1114641b2f0bdSmrg
1114711a29bacSmrg        ac_config_commands="$ac_config_commands libtool"
1114811a29bacSmrg
1114911a29bacSmrg
1115011a29bacSmrg
1115111a29bacSmrg
1115211a29bacSmrg# Only expand once:
1115311a29bacSmrg
1115411a29bacSmrg
1115541b2f0bdSmrg
1115611a29bacSmrg# Checks for pkg-config packages
1115741b2f0bdSmrg
1115811a29bacSmrgpkg_failed=no
1115911a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86MISC" >&5
1116011a29bacSmrg$as_echo_n "checking for XXF86MISC... " >&6; }
1116141b2f0bdSmrg
1116211a29bacSmrgif test -n "$XXF86MISC_CFLAGS"; then
1116311a29bacSmrg    pkg_cv_XXF86MISC_CFLAGS="$XXF86MISC_CFLAGS"
1116411a29bacSmrg elif test -n "$PKG_CONFIG"; then
1116511a29bacSmrg    if test -n "$PKG_CONFIG" && \
1116611a29bacSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
1116711a29bacSmrg  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
1116811a29bacSmrg  ac_status=$?
1116911a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1117011a29bacSmrg  test $ac_status = 0; }; then
1117111a29bacSmrg  pkg_cv_XXF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
1117211a29bacSmrgelse
1117311a29bacSmrg  pkg_failed=yes
1117411a29bacSmrgfi
1117511a29bacSmrg else
1117611a29bacSmrg    pkg_failed=untried
1117711a29bacSmrgfi
1117811a29bacSmrgif test -n "$XXF86MISC_LIBS"; then
1117911a29bacSmrg    pkg_cv_XXF86MISC_LIBS="$XXF86MISC_LIBS"
1118011a29bacSmrg elif test -n "$PKG_CONFIG"; then
1118111a29bacSmrg    if test -n "$PKG_CONFIG" && \
1118211a29bacSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
1118311a29bacSmrg  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
1118411a29bacSmrg  ac_status=$?
1118511a29bacSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1118611a29bacSmrg  test $ac_status = 0; }; then
1118711a29bacSmrg  pkg_cv_XXF86MISC_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
1118811a29bacSmrgelse
1118911a29bacSmrg  pkg_failed=yes
1119011a29bacSmrgfi
1119111a29bacSmrg else
1119211a29bacSmrg    pkg_failed=untried
1119311a29bacSmrgfi
1119441b2f0bdSmrg
1119541b2f0bdSmrg
1119641b2f0bdSmrg
1119711a29bacSmrgif test $pkg_failed = yes; then
1119841b2f0bdSmrg
1119911a29bacSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1120011a29bacSmrg        _pkg_short_errors_supported=yes
1120111a29bacSmrgelse
1120211a29bacSmrg        _pkg_short_errors_supported=no
1120311a29bacSmrgfi
1120411a29bacSmrg        if test $_pkg_short_errors_supported = yes; then
1120511a29bacSmrg	        XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
1120611a29bacSmrg        else
1120711a29bacSmrg	        XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
1120811a29bacSmrg        fi
1120911a29bacSmrg	# Put the nasty error message in config.log where it belongs
1121011a29bacSmrg	echo "$XXF86MISC_PKG_ERRORS" >&5
1121141b2f0bdSmrg
1121211a29bacSmrg	as_fn_error $? "Package requirements (xproto x11 xextproto xext xf86miscproto) were not met:
1121341b2f0bdSmrg
1121411a29bacSmrg$XXF86MISC_PKG_ERRORS
1121541b2f0bdSmrg
1121611a29bacSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1121711a29bacSmrginstalled software in a non-standard prefix.
1121841b2f0bdSmrg
1121911a29bacSmrgAlternatively, you may set the environment variables XXF86MISC_CFLAGS
1122011a29bacSmrgand XXF86MISC_LIBS to avoid the need to call pkg-config.
1122111a29bacSmrgSee the pkg-config man page for more details.
1122211a29bacSmrg" "$LINENO" 5
1122311a29bacSmrgelif test $pkg_failed = untried; then
1122411a29bacSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1122511a29bacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1122611a29bacSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1122711a29bacSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
1122811a29bacSmrgpath to pkg-config.
1122941b2f0bdSmrg
1123011a29bacSmrgAlternatively, you may set the environment variables XXF86MISC_CFLAGS
1123111a29bacSmrgand XXF86MISC_LIBS to avoid the need to call pkg-config.
1123211a29bacSmrgSee the pkg-config man page for more details.
1123341b2f0bdSmrg
1123411a29bacSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1123511a29bacSmrgSee \`config.log' for more details" "$LINENO" 5; }
1123611a29bacSmrgelse
1123711a29bacSmrg	XXF86MISC_CFLAGS=$pkg_cv_XXF86MISC_CFLAGS
1123811a29bacSmrg	XXF86MISC_LIBS=$pkg_cv_XXF86MISC_LIBS
1123911a29bacSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1124011a29bacSmrg$as_echo "yes" >&6; }
1124111a29bacSmrg	:
1124211a29bacSmrgfi
1124341b2f0bdSmrg
1124441b2f0bdSmrg
1124511a29bacSmrg# Check whether --enable-malloc0returnsnull was given.
1124611a29bacSmrgif test "${enable_malloc0returnsnull+set}" = set; then :
1124711a29bacSmrg  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
1124811a29bacSmrgelse
1124911a29bacSmrg  MALLOC_ZERO_RETURNS_NULL=auto
1125011a29bacSmrgfi
1125141b2f0bdSmrg
1125241b2f0bdSmrg
1125311a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
1125411a29bacSmrg$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
1125511a29bacSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1125611a29bacSmrg	if test "$cross_compiling" = yes; then :
1125711a29bacSmrg  MALLOC_ZERO_RETURNS_NULL=yes
1125841b2f0bdSmrgelse
1125911a29bacSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1126011245024Smrg/* end confdefs.h.  */
1126111245024Smrg
1126211a29bacSmrgchar *malloc();
1126311a29bacSmrgchar *realloc();
1126411a29bacSmrgchar *calloc();
1126511a29bacSmrgmain() {
1126611a29bacSmrg    char *m0, *r0, *c0, *p;
1126711a29bacSmrg    m0 = malloc(0);
1126811a29bacSmrg    p = malloc(10);
1126911a29bacSmrg    r0 = realloc(p,0);
1127011a29bacSmrg    c0 = calloc(0);
1127111a29bacSmrg    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
1127211245024Smrg}
1127311a29bacSmrg_ACEOF
1127411a29bacSmrgif ac_fn_c_try_run "$LINENO"; then :
1127511a29bacSmrg  MALLOC_ZERO_RETURNS_NULL=yes
1127611a29bacSmrgelse
1127711a29bacSmrg  MALLOC_ZERO_RETURNS_NULL=no
1127811a29bacSmrgfi
1127911a29bacSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1128011a29bacSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
1128111a29bacSmrgfi
1128211245024Smrg
1128311a29bacSmrgfi
1128411a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
1128511a29bacSmrg$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
1128611245024Smrg
1128711a29bacSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
1128811a29bacSmrg	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
1128911a29bacSmrg	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
1129011a29bacSmrg	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
1129111a29bacSmrgelse
1129211a29bacSmrg	MALLOC_ZERO_CFLAGS=""
1129311a29bacSmrg	XMALLOC_ZERO_CFLAGS=""
1129411a29bacSmrg	XTMALLOC_ZERO_CFLAGS=""
1129511a29bacSmrgfi
1129611245024Smrg
1129711245024Smrg
1129811245024Smrg
1129911245024Smrg
1130011245024Smrg
1130111245024Smrg
1130211a29bacSmrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86misc.pc"
1130311245024Smrg
1130411a29bacSmrgcat >confcache <<\_ACEOF
1130511a29bacSmrg# This file is a shell script that caches the results of configure
1130611a29bacSmrg# tests run on this system so they can be shared between configure
1130711a29bacSmrg# scripts and configure runs, see configure's option --config-cache.
1130811a29bacSmrg# It is not useful on other systems.  If it contains results you don't
1130911a29bacSmrg# want to keep, you may remove or edit it.
1131011a29bacSmrg#
1131111a29bacSmrg# config.status only pays attention to the cache file if you give it
1131211a29bacSmrg# the --recheck option to rerun configure.
1131311a29bacSmrg#
1131411a29bacSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1131511a29bacSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1131611a29bacSmrg# following values.
1131711245024Smrg
1131811245024Smrg_ACEOF
1131911245024Smrg
1132011a29bacSmrg# The following way of writing the cache mishandles newlines in values,
1132111a29bacSmrg# but we know of no workaround that is simple, portable, and efficient.
1132211a29bacSmrg# So, we kill variables containing newlines.
1132311a29bacSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
1132411a29bacSmrg# and sets the high bit in the cache file unless we assign to the vars.
1132511a29bacSmrg(
1132611a29bacSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1132711a29bacSmrg    eval ac_val=\$$ac_var
1132811a29bacSmrg    case $ac_val in #(
1132911a29bacSmrg    *${as_nl}*)
1133011a29bacSmrg      case $ac_var in #(
1133111a29bacSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1133211a29bacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1133311a29bacSmrg      esac
1133411a29bacSmrg      case $ac_var in #(
1133511a29bacSmrg      _ | IFS | as_nl) ;; #(
1133611a29bacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1133711a29bacSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1133811a29bacSmrg      esac ;;
1133911a29bacSmrg    esac
1134011a29bacSmrg  done
1134111245024Smrg
1134211a29bacSmrg  (set) 2>&1 |
1134311a29bacSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1134411a29bacSmrg    *${as_nl}ac_space=\ *)
1134511a29bacSmrg      # `set' does not quote correctly, so add quotes: double-quote
1134611a29bacSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1134711a29bacSmrg      sed -n \
1134811a29bacSmrg	"s/'/'\\\\''/g;
1134911a29bacSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1135011a29bacSmrg      ;; #(
1135111a29bacSmrg    *)
1135211a29bacSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1135311a29bacSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1135411a29bacSmrg      ;;
1135511a29bacSmrg    esac |
1135611a29bacSmrg    sort
1135711a29bacSmrg) |
1135811a29bacSmrg  sed '
1135911a29bacSmrg     /^ac_cv_env_/b end
1136011a29bacSmrg     t clear
1136111a29bacSmrg     :clear
1136211a29bacSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1136311a29bacSmrg     t end
1136411a29bacSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1136511a29bacSmrg     :end' >>confcache
1136611a29bacSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1136711a29bacSmrg  if test -w "$cache_file"; then
1136811a29bacSmrg    if test "x$cache_file" != "x/dev/null"; then
1136911a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1137011a29bacSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1137111a29bacSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1137211a29bacSmrg	cat confcache >"$cache_file"
1137311a29bacSmrg      else
1137411a29bacSmrg        case $cache_file in #(
1137511a29bacSmrg        */* | ?:*)
1137611a29bacSmrg	  mv -f confcache "$cache_file"$$ &&
1137711a29bacSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1137811a29bacSmrg        *)
1137911a29bacSmrg	  mv -f confcache "$cache_file" ;;
1138011a29bacSmrg	esac
1138111a29bacSmrg      fi
1138211a29bacSmrg    fi
1138311a29bacSmrg  else
1138411a29bacSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1138511a29bacSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1138611a29bacSmrg  fi
1138711245024Smrgfi
1138811a29bacSmrgrm -f confcache
1138911245024Smrg
1139011a29bacSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1139111a29bacSmrg# Let make expand exec_prefix.
1139211a29bacSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1139311245024Smrg
1139411a29bacSmrgDEFS=-DHAVE_CONFIG_H
1139511245024Smrg
1139611a29bacSmrgac_libobjs=
1139711a29bacSmrgac_ltlibobjs=
1139811a29bacSmrgU=
1139911a29bacSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1140011a29bacSmrg  # 1. Remove the extension, and $U if already installed.
1140111a29bacSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1140211a29bacSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1140311a29bacSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1140411a29bacSmrg  #    will be set to the directory where LIBOBJS objects are built.
1140511a29bacSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1140611a29bacSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1140711a29bacSmrgdone
1140811a29bacSmrgLIBOBJS=$ac_libobjs
1140911245024Smrg
1141011a29bacSmrgLTLIBOBJS=$ac_ltlibobjs
1141111245024Smrg
1141211245024Smrg
1141311a29bacSmrg if test -n "$EXEEXT"; then
1141411a29bacSmrg  am__EXEEXT_TRUE=
1141511a29bacSmrg  am__EXEEXT_FALSE='#'
1141611245024Smrgelse
1141711a29bacSmrg  am__EXEEXT_TRUE='#'
1141811a29bacSmrg  am__EXEEXT_FALSE=
1141911245024Smrgfi
1142011245024Smrg
1142111a29bacSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1142211a29bacSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1142311a29bacSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1142411245024Smrgfi
1142511a29bacSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1142611a29bacSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1142711a29bacSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1142811245024Smrgfi
1142911a29bacSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1143011a29bacSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1143111a29bacSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1143211245024Smrgfi
1143311245024Smrg
1143411a29bacSmrg: "${CONFIG_STATUS=./config.status}"
1143511a29bacSmrgac_write_fail=0
1143611a29bacSmrgac_clean_files_save=$ac_clean_files
1143711a29bacSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1143811a29bacSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1143911a29bacSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1144011a29bacSmrgas_write_fail=0
1144111a29bacSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1144211a29bacSmrg#! $SHELL
1144311a29bacSmrg# Generated by $as_me.
1144411a29bacSmrg# Run this file to recreate the current configuration.
1144511a29bacSmrg# Compiler output produced by configure, useful for debugging
1144611a29bacSmrg# configure, is in config.log if it exists.
1144711245024Smrg
1144811a29bacSmrgdebug=false
1144911a29bacSmrgac_cs_recheck=false
1145011a29bacSmrgac_cs_silent=false
1145111245024Smrg
1145211a29bacSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1145311a29bacSmrgexport SHELL
1145411a29bacSmrg_ASEOF
1145511a29bacSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1145611a29bacSmrg## -------------------- ##
1145711a29bacSmrg## M4sh Initialization. ##
1145811a29bacSmrg## -------------------- ##
1145911245024Smrg
1146011a29bacSmrg# Be more Bourne compatible
1146111a29bacSmrgDUALCASE=1; export DUALCASE # for MKS sh
1146211a29bacSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1146311a29bacSmrg  emulate sh
1146411a29bacSmrg  NULLCMD=:
1146511a29bacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1146611a29bacSmrg  # is contrary to our usage.  Disable this feature.
1146711a29bacSmrg  alias -g '${1+"$@"}'='"$@"'
1146811a29bacSmrg  setopt NO_GLOB_SUBST
1146911245024Smrgelse
1147011a29bacSmrg  case `(set -o) 2>/dev/null` in #(
1147111a29bacSmrg  *posix*) :
1147211a29bacSmrg    set -o posix ;; #(
1147311a29bacSmrg  *) :
1147411a29bacSmrg     ;;
1147511a29bacSmrgesac
1147611245024Smrgfi
1147711245024Smrg
1147811245024Smrg
1147911a29bacSmrgas_nl='
1148011a29bacSmrg'
1148111a29bacSmrgexport as_nl
1148211a29bacSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
1148311a29bacSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1148411a29bacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1148511a29bacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1148611a29bacSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1148711a29bacSmrg# but without wasting forks for bash or zsh.
1148811a29bacSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1148911a29bacSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1149011a29bacSmrg  as_echo='print -r --'
1149111a29bacSmrg  as_echo_n='print -rn --'
1149211a29bacSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1149311a29bacSmrg  as_echo='printf %s\n'
1149411a29bacSmrg  as_echo_n='printf %s'
1149511245024Smrgelse
1149611a29bacSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1149711a29bacSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1149811a29bacSmrg    as_echo_n='/usr/ucb/echo -n'
1149911a29bacSmrg  else
1150011a29bacSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1150111a29bacSmrg    as_echo_n_body='eval
1150211a29bacSmrg      arg=$1;
1150311a29bacSmrg      case $arg in #(
1150411a29bacSmrg      *"$as_nl"*)
1150511a29bacSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
1150611a29bacSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1150711a29bacSmrg      esac;
1150811a29bacSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1150911a29bacSmrg    '
1151011a29bacSmrg    export as_echo_n_body
1151111a29bacSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1151211a29bacSmrg  fi
1151311a29bacSmrg  export as_echo_body
1151411a29bacSmrg  as_echo='sh -c $as_echo_body as_echo'
1151511245024Smrgfi
1151611245024Smrg
1151711a29bacSmrg# The user is always right.
1151811a29bacSmrgif test "${PATH_SEPARATOR+set}" != set; then
1151911a29bacSmrg  PATH_SEPARATOR=:
1152011a29bacSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1152111a29bacSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1152211a29bacSmrg      PATH_SEPARATOR=';'
1152311a29bacSmrg  }
1152411245024Smrgfi
1152511245024Smrg
1152611245024Smrg
1152711a29bacSmrg# IFS
1152811a29bacSmrg# We need space, tab and new line, in precisely that order.  Quoting is
1152911a29bacSmrg# there to prevent editors from complaining about space-tab.
1153011a29bacSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1153111a29bacSmrg# splitting by setting IFS to empty value.)
1153211a29bacSmrgIFS=" ""	$as_nl"
1153311245024Smrg
1153411a29bacSmrg# Find who we are.  Look in the path if we contain no directory separator.
1153511a29bacSmrgas_myself=
1153611a29bacSmrgcase $0 in #((
1153711a29bacSmrg  *[\\/]* ) as_myself=$0 ;;
1153811a29bacSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1153911a29bacSmrgfor as_dir in $PATH
1154011a29bacSmrgdo
1154111a29bacSmrg  IFS=$as_save_IFS
1154211a29bacSmrg  test -z "$as_dir" && as_dir=.
1154311a29bacSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1154411a29bacSmrg  done
1154511a29bacSmrgIFS=$as_save_IFS
1154611245024Smrg
1154711a29bacSmrg     ;;
1154811a29bacSmrgesac
1154911a29bacSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1155011a29bacSmrg# in which case we are not to be found in the path.
1155111a29bacSmrgif test "x$as_myself" = x; then
1155211a29bacSmrg  as_myself=$0
1155311245024Smrgfi
1155411a29bacSmrgif test ! -f "$as_myself"; then
1155511a29bacSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1155611a29bacSmrg  exit 1
1155711245024Smrgfi
1155811245024Smrg
1155911a29bacSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1156011a29bacSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1156111a29bacSmrg# suppresses any "Segmentation fault" message there.  '((' could
1156211a29bacSmrg# trigger a bug in pdksh 5.2.14.
1156311a29bacSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1156411a29bacSmrgdo eval test x\${$as_var+set} = xset \
1156511a29bacSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1156611a29bacSmrgdone
1156711a29bacSmrgPS1='$ '
1156811a29bacSmrgPS2='> '
1156911a29bacSmrgPS4='+ '
1157011245024Smrg
1157111a29bacSmrg# NLS nuisances.
1157211a29bacSmrgLC_ALL=C
1157311a29bacSmrgexport LC_ALL
1157411a29bacSmrgLANGUAGE=C
1157511a29bacSmrgexport LANGUAGE
1157611245024Smrg
1157711a29bacSmrg# CDPATH.
1157811a29bacSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1157911245024Smrg
1158011245024Smrg
1158111a29bacSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1158211a29bacSmrg# ----------------------------------------
1158311a29bacSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1158411a29bacSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1158511a29bacSmrg# script with STATUS, using 1 if that was 0.
1158611a29bacSmrgas_fn_error ()
1158711a29bacSmrg{
1158811a29bacSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1158911a29bacSmrg  if test "$4"; then
1159011a29bacSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1159111a29bacSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1159211a29bacSmrg  fi
1159311a29bacSmrg  $as_echo "$as_me: error: $2" >&2
1159411a29bacSmrg  as_fn_exit $as_status
1159511a29bacSmrg} # as_fn_error
1159611245024Smrg
1159711245024Smrg
1159811a29bacSmrg# as_fn_set_status STATUS
1159911a29bacSmrg# -----------------------
1160011a29bacSmrg# Set $? to STATUS, without forking.
1160111a29bacSmrgas_fn_set_status ()
1160211a29bacSmrg{
1160311a29bacSmrg  return $1
1160411a29bacSmrg} # as_fn_set_status
1160511245024Smrg
1160611a29bacSmrg# as_fn_exit STATUS
1160711a29bacSmrg# -----------------
1160811a29bacSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1160911a29bacSmrgas_fn_exit ()
1161011a29bacSmrg{
1161111a29bacSmrg  set +e
1161211a29bacSmrg  as_fn_set_status $1
1161311a29bacSmrg  exit $1
1161411a29bacSmrg} # as_fn_exit
1161511a29bacSmrg
1161611a29bacSmrg# as_fn_unset VAR
1161711a29bacSmrg# ---------------
1161811a29bacSmrg# Portably unset VAR.
1161911a29bacSmrgas_fn_unset ()
1162011a29bacSmrg{
1162111a29bacSmrg  { eval $1=; unset $1;}
1162211a29bacSmrg}
1162311a29bacSmrgas_unset=as_fn_unset
1162411a29bacSmrg# as_fn_append VAR VALUE
1162511a29bacSmrg# ----------------------
1162611a29bacSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1162711a29bacSmrg# advantage of any shell optimizations that allow amortized linear growth over
1162811a29bacSmrg# repeated appends, instead of the typical quadratic growth present in naive
1162911a29bacSmrg# implementations.
1163011a29bacSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1163111a29bacSmrg  eval 'as_fn_append ()
1163211a29bacSmrg  {
1163311a29bacSmrg    eval $1+=\$2
1163411a29bacSmrg  }'
1163511a29bacSmrgelse
1163611a29bacSmrg  as_fn_append ()
1163711a29bacSmrg  {
1163811a29bacSmrg    eval $1=\$$1\$2
1163911a29bacSmrg  }
1164011a29bacSmrgfi # as_fn_append
1164111a29bacSmrg
1164211a29bacSmrg# as_fn_arith ARG...
1164311a29bacSmrg# ------------------
1164411a29bacSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1164511a29bacSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1164611a29bacSmrg# must be portable across $(()) and expr.
1164711a29bacSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1164811a29bacSmrg  eval 'as_fn_arith ()
1164911a29bacSmrg  {
1165011a29bacSmrg    as_val=$(( $* ))
1165111a29bacSmrg  }'
1165211a29bacSmrgelse
1165311a29bacSmrg  as_fn_arith ()
1165411a29bacSmrg  {
1165511a29bacSmrg    as_val=`expr "$@" || test $? -eq 1`
1165611a29bacSmrg  }
1165711a29bacSmrgfi # as_fn_arith
1165811245024Smrg
1165911245024Smrg
1166011a29bacSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1166111a29bacSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1166211a29bacSmrg  as_expr=expr
1166311a29bacSmrgelse
1166411a29bacSmrg  as_expr=false
1166511a29bacSmrgfi
1166611245024Smrg
1166711a29bacSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1166811a29bacSmrg  as_basename=basename
1166911a29bacSmrgelse
1167011a29bacSmrg  as_basename=false
1167111a29bacSmrgfi
1167211a29bacSmrg
1167311a29bacSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1167411a29bacSmrg  as_dirname=dirname
1167511a29bacSmrgelse
1167611a29bacSmrg  as_dirname=false
1167711a29bacSmrgfi
1167811245024Smrg
1167911a29bacSmrgas_me=`$as_basename -- "$0" ||
1168011a29bacSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1168111a29bacSmrg	 X"$0" : 'X\(//\)$' \| \
1168211a29bacSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168311a29bacSmrg$as_echo X/"$0" |
1168411a29bacSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1168511a29bacSmrg	    s//\1/
1168611a29bacSmrg	    q
1168711a29bacSmrg	  }
1168811a29bacSmrg	  /^X\/\(\/\/\)$/{
1168911a29bacSmrg	    s//\1/
1169011a29bacSmrg	    q
1169111a29bacSmrg	  }
1169211a29bacSmrg	  /^X\/\(\/\).*/{
1169311a29bacSmrg	    s//\1/
1169411a29bacSmrg	    q
1169511a29bacSmrg	  }
1169611a29bacSmrg	  s/.*/./; q'`
1169711245024Smrg
1169811a29bacSmrg# Avoid depending upon Character Ranges.
1169911a29bacSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1170011a29bacSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1170111a29bacSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1170211a29bacSmrgas_cr_digits='0123456789'
1170311a29bacSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1170411245024Smrg
1170511a29bacSmrgECHO_C= ECHO_N= ECHO_T=
1170611a29bacSmrgcase `echo -n x` in #(((((
1170711a29bacSmrg-n*)
1170811a29bacSmrg  case `echo 'xy\c'` in
1170911a29bacSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1171011a29bacSmrg  xy)  ECHO_C='\c';;
1171111a29bacSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1171211a29bacSmrg       ECHO_T='	';;
1171311a29bacSmrg  esac;;
1171411a29bacSmrg*)
1171511a29bacSmrg  ECHO_N='-n';;
1171611a29bacSmrgesac
1171711245024Smrg
1171811a29bacSmrgrm -f conf$$ conf$$.exe conf$$.file
1171911a29bacSmrgif test -d conf$$.dir; then
1172011a29bacSmrg  rm -f conf$$.dir/conf$$.file
1172111a29bacSmrgelse
1172211a29bacSmrg  rm -f conf$$.dir
1172311a29bacSmrg  mkdir conf$$.dir 2>/dev/null
1172411a29bacSmrgfi
1172511a29bacSmrgif (echo >conf$$.file) 2>/dev/null; then
1172611a29bacSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1172711a29bacSmrg    as_ln_s='ln -s'
1172811a29bacSmrg    # ... but there are two gotchas:
1172911a29bacSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1173011a29bacSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1173111a29bacSmrg    # In both cases, we have to default to `cp -p'.
1173211a29bacSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1173311a29bacSmrg      as_ln_s='cp -p'
1173411a29bacSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1173511a29bacSmrg    as_ln_s=ln
1173611a29bacSmrg  else
1173711a29bacSmrg    as_ln_s='cp -p'
1173811a29bacSmrg  fi
1173911a29bacSmrgelse
1174011a29bacSmrg  as_ln_s='cp -p'
1174111a29bacSmrgfi
1174211a29bacSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1174311a29bacSmrgrmdir conf$$.dir 2>/dev/null
1174411245024Smrg
1174511245024Smrg
1174611a29bacSmrg# as_fn_mkdir_p
1174711a29bacSmrg# -------------
1174811a29bacSmrg# Create "$as_dir" as a directory, including parents if necessary.
1174911a29bacSmrgas_fn_mkdir_p ()
1175011a29bacSmrg{
1175111245024Smrg
1175211a29bacSmrg  case $as_dir in #(
1175311a29bacSmrg  -*) as_dir=./$as_dir;;
1175411a29bacSmrg  esac
1175511a29bacSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1175611a29bacSmrg    as_dirs=
1175711a29bacSmrg    while :; do
1175811a29bacSmrg      case $as_dir in #(
1175911a29bacSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1176011a29bacSmrg      *) as_qdir=$as_dir;;
1176111a29bacSmrg      esac
1176211a29bacSmrg      as_dirs="'$as_qdir' $as_dirs"
1176311a29bacSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1176411a29bacSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176511a29bacSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1176611a29bacSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1176711a29bacSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1176811a29bacSmrg$as_echo X"$as_dir" |
1176911a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177011a29bacSmrg	    s//\1/
1177111a29bacSmrg	    q
1177211a29bacSmrg	  }
1177311a29bacSmrg	  /^X\(\/\/\)[^/].*/{
1177411a29bacSmrg	    s//\1/
1177511a29bacSmrg	    q
1177611a29bacSmrg	  }
1177711a29bacSmrg	  /^X\(\/\/\)$/{
1177811a29bacSmrg	    s//\1/
1177911a29bacSmrg	    q
1178011a29bacSmrg	  }
1178111a29bacSmrg	  /^X\(\/\).*/{
1178211a29bacSmrg	    s//\1/
1178311a29bacSmrg	    q
1178411a29bacSmrg	  }
1178511a29bacSmrg	  s/.*/./; q'`
1178611a29bacSmrg      test -d "$as_dir" && break
1178711a29bacSmrg    done
1178811a29bacSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1178911a29bacSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1179011245024Smrg
1179111245024Smrg
1179211a29bacSmrg} # as_fn_mkdir_p
1179311a29bacSmrgif mkdir -p . 2>/dev/null; then
1179411a29bacSmrg  as_mkdir_p='mkdir -p "$as_dir"'
1179511a29bacSmrgelse
1179611a29bacSmrg  test -d ./-p && rmdir ./-p
1179711a29bacSmrg  as_mkdir_p=false
1179811245024Smrgfi
1179911245024Smrg
1180011a29bacSmrgif test -x / >/dev/null 2>&1; then
1180111a29bacSmrg  as_test_x='test -x'
1180211a29bacSmrgelse
1180311a29bacSmrg  if ls -dL / >/dev/null 2>&1; then
1180411a29bacSmrg    as_ls_L_option=L
1180511a29bacSmrg  else
1180611a29bacSmrg    as_ls_L_option=
1180711a29bacSmrg  fi
1180811a29bacSmrg  as_test_x='
1180911a29bacSmrg    eval sh -c '\''
1181011a29bacSmrg      if test -d "$1"; then
1181111a29bacSmrg	test -d "$1/.";
1181211a29bacSmrg      else
1181311a29bacSmrg	case $1 in #(
1181411a29bacSmrg	-*)set "./$1";;
1181511a29bacSmrg	esac;
1181611a29bacSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1181711a29bacSmrg	???[sx]*):;;*)false;;esac;fi
1181811a29bacSmrg    '\'' sh
1181911a29bacSmrg  '
1182011245024Smrgfi
1182111a29bacSmrgas_executable_p=$as_test_x
1182211245024Smrg
1182311a29bacSmrg# Sed expression to map a string onto a valid CPP name.
1182411a29bacSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1182511245024Smrg
1182611a29bacSmrg# Sed expression to map a string onto a valid variable name.
1182711a29bacSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1182811245024Smrg
1182911245024Smrg
1183011a29bacSmrgexec 6>&1
1183111a29bacSmrg## ----------------------------------- ##
1183211a29bacSmrg## Main body of $CONFIG_STATUS script. ##
1183311a29bacSmrg## ----------------------------------- ##
1183411a29bacSmrg_ASEOF
1183511a29bacSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1183611a29bacSmrg
1183711a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1183811a29bacSmrg# Save the log message, to keep $0 and so on meaningful, and to
1183911a29bacSmrg# report actual input values of CONFIG_FILES etc. instead of their
1184011a29bacSmrg# values after options handling.
1184111a29bacSmrgac_log="
1184211a29bacSmrgThis file was extended by libXxf86misc $as_me 1.0.3, which was
1184311a29bacSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1184411245024Smrg
1184511a29bacSmrg  CONFIG_FILES    = $CONFIG_FILES
1184611a29bacSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1184711a29bacSmrg  CONFIG_LINKS    = $CONFIG_LINKS
1184811a29bacSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1184911a29bacSmrg  $ $0 $@
1185011245024Smrg
1185111a29bacSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1185211a29bacSmrg"
1185311245024Smrg
1185411a29bacSmrg_ACEOF
1185511245024Smrg
1185611a29bacSmrgcase $ac_config_files in *"
1185711a29bacSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1185811a29bacSmrgesac
1185911245024Smrg
1186011a29bacSmrgcase $ac_config_headers in *"
1186111a29bacSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1186211a29bacSmrgesac
1186311245024Smrg
1186411245024Smrg
1186511a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1186611a29bacSmrg# Files that config.status was made for.
1186711a29bacSmrgconfig_files="$ac_config_files"
1186811a29bacSmrgconfig_headers="$ac_config_headers"
1186911a29bacSmrgconfig_commands="$ac_config_commands"
1187011245024Smrg
1187111a29bacSmrg_ACEOF
1187211245024Smrg
1187311a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1187411a29bacSmrgac_cs_usage="\
1187511a29bacSmrg\`$as_me' instantiates files and other configuration actions
1187611a29bacSmrgfrom templates according to the current configuration.  Unless the files
1187711a29bacSmrgand actions are specified as TAGs, all are instantiated by default.
1187811245024Smrg
1187911a29bacSmrgUsage: $0 [OPTION]... [TAG]...
1188011245024Smrg
1188111a29bacSmrg  -h, --help       print this help, then exit
1188211a29bacSmrg  -V, --version    print version number and configuration settings, then exit
1188311a29bacSmrg      --config     print configuration, then exit
1188411a29bacSmrg  -q, --quiet, --silent
1188511a29bacSmrg                   do not print progress messages
1188611a29bacSmrg  -d, --debug      don't remove temporary files
1188711a29bacSmrg      --recheck    update $as_me by reconfiguring in the same conditions
1188811a29bacSmrg      --file=FILE[:TEMPLATE]
1188911a29bacSmrg                   instantiate the configuration file FILE
1189011a29bacSmrg      --header=FILE[:TEMPLATE]
1189111a29bacSmrg                   instantiate the configuration header FILE
1189211245024Smrg
1189311a29bacSmrgConfiguration files:
1189411a29bacSmrg$config_files
1189511245024Smrg
1189611a29bacSmrgConfiguration headers:
1189711a29bacSmrg$config_headers
1189811245024Smrg
1189911a29bacSmrgConfiguration commands:
1190011a29bacSmrg$config_commands
1190111245024Smrg
1190211a29bacSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
1190311245024Smrg
1190411a29bacSmrg_ACEOF
1190511a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1190611a29bacSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1190711a29bacSmrgac_cs_version="\\
1190811a29bacSmrglibXxf86misc config.status 1.0.3
1190911a29bacSmrgconfigured by $0, generated by GNU Autoconf 2.68,
1191011a29bacSmrg  with options \\"\$ac_cs_config\\"
1191111245024Smrg
1191211a29bacSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1191311a29bacSmrgThis config.status script is free software; the Free Software Foundation
1191411a29bacSmrggives unlimited permission to copy, distribute and modify it."
1191511245024Smrg
1191611a29bacSmrgac_pwd='$ac_pwd'
1191711a29bacSmrgsrcdir='$srcdir'
1191811a29bacSmrgINSTALL='$INSTALL'
1191911a29bacSmrgMKDIR_P='$MKDIR_P'
1192011a29bacSmrgAWK='$AWK'
1192111a29bacSmrgtest -n "\$AWK" || AWK=awk
1192211a29bacSmrg_ACEOF
1192311245024Smrg
1192411a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1192511a29bacSmrg# The default lists apply if the user does not specify any file.
1192611a29bacSmrgac_need_defaults=:
1192711a29bacSmrgwhile test $# != 0
1192811245024Smrgdo
1192911a29bacSmrg  case $1 in
1193011a29bacSmrg  --*=?*)
1193111a29bacSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1193211a29bacSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1193311a29bacSmrg    ac_shift=:
1193411a29bacSmrg    ;;
1193511a29bacSmrg  --*=)
1193611a29bacSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1193711a29bacSmrg    ac_optarg=
1193811a29bacSmrg    ac_shift=:
1193911a29bacSmrg    ;;
1194011a29bacSmrg  *)
1194111a29bacSmrg    ac_option=$1
1194211a29bacSmrg    ac_optarg=$2
1194311a29bacSmrg    ac_shift=shift
1194411a29bacSmrg    ;;
1194511a29bacSmrg  esac
1194611245024Smrg
1194711a29bacSmrg  case $ac_option in
1194811a29bacSmrg  # Handling of the options.
1194911a29bacSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1195011a29bacSmrg    ac_cs_recheck=: ;;
1195111a29bacSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1195211a29bacSmrg    $as_echo "$ac_cs_version"; exit ;;
1195311a29bacSmrg  --config | --confi | --conf | --con | --co | --c )
1195411a29bacSmrg    $as_echo "$ac_cs_config"; exit ;;
1195511a29bacSmrg  --debug | --debu | --deb | --de | --d | -d )
1195611a29bacSmrg    debug=: ;;
1195711a29bacSmrg  --file | --fil | --fi | --f )
1195811a29bacSmrg    $ac_shift
1195911a29bacSmrg    case $ac_optarg in
1196011a29bacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1196111a29bacSmrg    '') as_fn_error $? "missing file argument" ;;
1196211a29bacSmrg    esac
1196311a29bacSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1196411a29bacSmrg    ac_need_defaults=false;;
1196511a29bacSmrg  --header | --heade | --head | --hea )
1196611a29bacSmrg    $ac_shift
1196711a29bacSmrg    case $ac_optarg in
1196811a29bacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1196911a29bacSmrg    esac
1197011a29bacSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1197111a29bacSmrg    ac_need_defaults=false;;
1197211a29bacSmrg  --he | --h)
1197311a29bacSmrg    # Conflict between --help and --header
1197411a29bacSmrg    as_fn_error $? "ambiguous option: \`$1'
1197511a29bacSmrgTry \`$0 --help' for more information.";;
1197611a29bacSmrg  --help | --hel | -h )
1197711a29bacSmrg    $as_echo "$ac_cs_usage"; exit ;;
1197811a29bacSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197911a29bacSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1198011a29bacSmrg    ac_cs_silent=: ;;
1198111245024Smrg
1198211a29bacSmrg  # This is an error.
1198311a29bacSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
1198411a29bacSmrgTry \`$0 --help' for more information." ;;
1198511245024Smrg
1198611a29bacSmrg  *) as_fn_append ac_config_targets " $1"
1198711a29bacSmrg     ac_need_defaults=false ;;
1198811a29bacSmrg
1198911a29bacSmrg  esac
1199011a29bacSmrg  shift
1199141b2f0bdSmrgdone
1199241b2f0bdSmrg
1199311a29bacSmrgac_configure_extra_args=
1199441b2f0bdSmrg
1199511a29bacSmrgif $ac_cs_silent; then
1199611a29bacSmrg  exec 6>/dev/null
1199711a29bacSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1199841b2f0bdSmrgfi
1199941b2f0bdSmrg
1200011a29bacSmrg_ACEOF
1200111a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1200211a29bacSmrgif \$ac_cs_recheck; then
1200311a29bacSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1200411a29bacSmrg  shift
1200511a29bacSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1200611a29bacSmrg  CONFIG_SHELL='$SHELL'
1200711a29bacSmrg  export CONFIG_SHELL
1200811a29bacSmrg  exec "\$@"
1200941b2f0bdSmrgfi
1201041b2f0bdSmrg
1201111a29bacSmrg_ACEOF
1201211a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1201311a29bacSmrgexec 5>>config.log
1201411a29bacSmrg{
1201511a29bacSmrg  echo
1201611a29bacSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1201711a29bacSmrg## Running $as_me. ##
1201811a29bacSmrg_ASBOX
1201911a29bacSmrg  $as_echo "$ac_log"
1202011a29bacSmrg} >&5
1202141b2f0bdSmrg
1202211a29bacSmrg_ACEOF
1202311a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1202411a29bacSmrg#
1202511a29bacSmrg# INIT-COMMANDS
1202611a29bacSmrg#
1202711a29bacSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1202811245024Smrg
1202911a29bacSmrg
1203011a29bacSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout
1203111a29bacSmrg# if CDPATH is set.
1203211a29bacSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1203311a29bacSmrg
1203411a29bacSmrgsed_quote_subst='$sed_quote_subst'
1203511a29bacSmrgdouble_quote_subst='$double_quote_subst'
1203611a29bacSmrgdelay_variable_subst='$delay_variable_subst'
1203711a29bacSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
1203811a29bacSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1203911a29bacSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1204011a29bacSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1204111a29bacSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1204211a29bacSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1204311a29bacSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1204411a29bacSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1204511a29bacSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1204611a29bacSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1204711a29bacSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1204811a29bacSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
1204911a29bacSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
1205011a29bacSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
1205111a29bacSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
1205211a29bacSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
1205311a29bacSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
1205411a29bacSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
1205511a29bacSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
1205611a29bacSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
1205711a29bacSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
1205811a29bacSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
1205911a29bacSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
1206011a29bacSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
1206111a29bacSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
1206211a29bacSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1206311a29bacSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1206411a29bacSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1206511a29bacSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1206611a29bacSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1206711a29bacSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1206811a29bacSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1206911a29bacSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1207011a29bacSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1207111a29bacSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1207211a29bacSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1207311a29bacSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1207411a29bacSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1207511a29bacSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1207611a29bacSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
1207711a29bacSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
1207811a29bacSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
1207911a29bacSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
1208011a29bacSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
1208111a29bacSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1208211a29bacSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1208311a29bacSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1208411a29bacSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1208511a29bacSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1208611a29bacSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1208711a29bacSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1208811a29bacSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1208911a29bacSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1209011a29bacSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1209111a29bacSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1209211a29bacSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1209311a29bacSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1209411a29bacSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1209511a29bacSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1209611a29bacSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1209711a29bacSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
1209811a29bacSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
1209911a29bacSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
1210011a29bacSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
1210111a29bacSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1210211a29bacSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
1210311a29bacSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
1210411a29bacSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
1210511a29bacSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
1210611a29bacSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
1210711a29bacSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
1210811a29bacSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1210911a29bacSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
1211011a29bacSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1211111a29bacSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
1211211a29bacSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1211311a29bacSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
1211411a29bacSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1211511a29bacSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1211611a29bacSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
1211711a29bacSmrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
1211811a29bacSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1211911a29bacSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1212011a29bacSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1212111a29bacSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
1212211a29bacSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
1212311a29bacSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1212411a29bacSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1212511a29bacSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1212611a29bacSmrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1212711a29bacSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1212811a29bacSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1212911a29bacSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1213011a29bacSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1213111a29bacSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1213211a29bacSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1213311a29bacSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1213411a29bacSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1213511a29bacSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
1213611a29bacSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
1213711a29bacSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
1213811a29bacSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
1213911a29bacSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
1214011a29bacSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
1214111a29bacSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
1214211a29bacSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
1214311a29bacSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
1214411a29bacSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1214511a29bacSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1214611a29bacSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
1214711a29bacSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1214811a29bacSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1214911a29bacSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1215011a29bacSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
1215111a29bacSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1215211a29bacSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1215311a29bacSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1215411a29bacSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
1215511a29bacSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
1215611a29bacSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1215711a29bacSmrg
1215811a29bacSmrgLTCC='$LTCC'
1215911a29bacSmrgLTCFLAGS='$LTCFLAGS'
1216011a29bacSmrgcompiler='$compiler_DEFAULT'
1216111a29bacSmrg
1216211a29bacSmrg# A function that is used when there is no print builtin or printf.
1216311a29bacSmrgfunc_fallback_echo ()
1216411a29bacSmrg{
1216511a29bacSmrg  eval 'cat <<_LTECHO_EOF
1216611a29bacSmrg\$1
1216711a29bacSmrg_LTECHO_EOF'
1216811a29bacSmrg}
1216911a29bacSmrg
1217011a29bacSmrg# Quote evaled strings.
1217111a29bacSmrgfor var in SHELL \
1217211a29bacSmrgECHO \
1217311a29bacSmrgSED \
1217411a29bacSmrgGREP \
1217511a29bacSmrgEGREP \
1217611a29bacSmrgFGREP \
1217711a29bacSmrgLD \
1217811a29bacSmrgNM \
1217911a29bacSmrgLN_S \
1218011a29bacSmrglt_SP2NL \
1218111a29bacSmrglt_NL2SP \
1218211a29bacSmrgreload_flag \
1218311a29bacSmrgOBJDUMP \
1218411a29bacSmrgdeplibs_check_method \
1218511a29bacSmrgfile_magic_cmd \
1218611a29bacSmrgAR \
1218711a29bacSmrgAR_FLAGS \
1218811a29bacSmrgSTRIP \
1218911a29bacSmrgRANLIB \
1219011a29bacSmrgCC \
1219111a29bacSmrgCFLAGS \
1219211a29bacSmrgcompiler \
1219311a29bacSmrglt_cv_sys_global_symbol_pipe \
1219411a29bacSmrglt_cv_sys_global_symbol_to_cdecl \
1219511a29bacSmrglt_cv_sys_global_symbol_to_c_name_address \
1219611a29bacSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1219711a29bacSmrglt_prog_compiler_no_builtin_flag \
1219811a29bacSmrglt_prog_compiler_wl \
1219911a29bacSmrglt_prog_compiler_pic \
1220011a29bacSmrglt_prog_compiler_static \
1220111a29bacSmrglt_cv_prog_compiler_c_o \
1220211a29bacSmrgneed_locks \
1220311a29bacSmrgDSYMUTIL \
1220411a29bacSmrgNMEDIT \
1220511a29bacSmrgLIPO \
1220611a29bacSmrgOTOOL \
1220711a29bacSmrgOTOOL64 \
1220811a29bacSmrgshrext_cmds \
1220911a29bacSmrgexport_dynamic_flag_spec \
1221011a29bacSmrgwhole_archive_flag_spec \
1221111a29bacSmrgcompiler_needs_object \
1221211a29bacSmrgwith_gnu_ld \
1221311a29bacSmrgallow_undefined_flag \
1221411a29bacSmrgno_undefined_flag \
1221511a29bacSmrghardcode_libdir_flag_spec \
1221611a29bacSmrghardcode_libdir_flag_spec_ld \
1221711a29bacSmrghardcode_libdir_separator \
1221811a29bacSmrgfix_srcfile_path \
1221911a29bacSmrgexclude_expsyms \
1222011a29bacSmrginclude_expsyms \
1222111a29bacSmrgfile_list_spec \
1222211a29bacSmrgvariables_saved_for_relink \
1222311a29bacSmrglibname_spec \
1222411a29bacSmrglibrary_names_spec \
1222511a29bacSmrgsoname_spec \
1222611a29bacSmrginstall_override_mode \
1222711a29bacSmrgfinish_eval \
1222811a29bacSmrgold_striplib \
1222911a29bacSmrgstriplib; do
1223011a29bacSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1223111a29bacSmrg    *[\\\\\\\`\\"\\\$]*)
1223211a29bacSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1223311a29bacSmrg      ;;
1223411a29bacSmrg    *)
1223511a29bacSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1223611a29bacSmrg      ;;
1223711a29bacSmrg    esac
1223811a29bacSmrgdone
1223911a29bacSmrg
1224011a29bacSmrg# Double-quote double-evaled strings.
1224111a29bacSmrgfor var in reload_cmds \
1224211a29bacSmrgold_postinstall_cmds \
1224311a29bacSmrgold_postuninstall_cmds \
1224411a29bacSmrgold_archive_cmds \
1224511a29bacSmrgextract_expsyms_cmds \
1224611a29bacSmrgold_archive_from_new_cmds \
1224711a29bacSmrgold_archive_from_expsyms_cmds \
1224811a29bacSmrgarchive_cmds \
1224911a29bacSmrgarchive_expsym_cmds \
1225011a29bacSmrgmodule_cmds \
1225111a29bacSmrgmodule_expsym_cmds \
1225211a29bacSmrgexport_symbols_cmds \
1225311a29bacSmrgprelink_cmds \
1225411a29bacSmrgpostinstall_cmds \
1225511a29bacSmrgpostuninstall_cmds \
1225611a29bacSmrgfinish_cmds \
1225711a29bacSmrgsys_lib_search_path_spec \
1225811a29bacSmrgsys_lib_dlsearch_path_spec; do
1225911a29bacSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1226011a29bacSmrg    *[\\\\\\\`\\"\\\$]*)
1226111a29bacSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1226211a29bacSmrg      ;;
1226311a29bacSmrg    *)
1226411a29bacSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1226511a29bacSmrg      ;;
1226611a29bacSmrg    esac
1226711a29bacSmrgdone
1226811a29bacSmrg
1226911a29bacSmrgac_aux_dir='$ac_aux_dir'
1227011a29bacSmrgxsi_shell='$xsi_shell'
1227111a29bacSmrglt_shell_append='$lt_shell_append'
1227211a29bacSmrg
1227311a29bacSmrg# See if we are running on zsh, and set the options which allow our
1227411a29bacSmrg# commands through without removal of \ escapes INIT.
1227511a29bacSmrgif test -n "\${ZSH_VERSION+set}" ; then
1227611a29bacSmrg   setopt NO_GLOB_SUBST
1227741b2f0bdSmrgfi
1227841b2f0bdSmrg
1227941b2f0bdSmrg
1228011a29bacSmrg    PACKAGE='$PACKAGE'
1228111a29bacSmrg    VERSION='$VERSION'
1228211a29bacSmrg    TIMESTAMP='$TIMESTAMP'
1228311a29bacSmrg    RM='$RM'
1228411a29bacSmrg    ofile='$ofile'
1228541b2f0bdSmrg
1228641b2f0bdSmrg
1228741b2f0bdSmrg
1228841b2f0bdSmrg
1228911a29bacSmrg_ACEOF
1229041b2f0bdSmrg
1229111a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1229241b2f0bdSmrg
1229311a29bacSmrg# Handling of arguments.
1229411a29bacSmrgfor ac_config_target in $ac_config_targets
1229511a29bacSmrgdo
1229611a29bacSmrg  case $ac_config_target in
1229711a29bacSmrg    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
1229811a29bacSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1229911a29bacSmrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1230011a29bacSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1230111a29bacSmrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1230211a29bacSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1230311a29bacSmrg    "xxf86misc.pc") CONFIG_FILES="$CONFIG_FILES xxf86misc.pc" ;;
1230441b2f0bdSmrg
1230511a29bacSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1230611a29bacSmrg  esac
1230711a29bacSmrgdone
1230841b2f0bdSmrg
1230941b2f0bdSmrg
1231011a29bacSmrg# If the user did not use the arguments to specify the items to instantiate,
1231111a29bacSmrg# then the envvar interface is used.  Set only those that are not.
1231211a29bacSmrg# We use the long form for the default assignment because of an extremely
1231311a29bacSmrg# bizarre bug on SunOS 4.1.3.
1231411a29bacSmrgif $ac_need_defaults; then
1231511a29bacSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1231611a29bacSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1231711a29bacSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1231811a29bacSmrgfi
1231941b2f0bdSmrg
1232011a29bacSmrg# Have a temporary directory for convenience.  Make it in the build tree
1232111a29bacSmrg# simply because there is no reason against having it here, and in addition,
1232211a29bacSmrg# creating and moving files from /tmp can sometimes cause problems.
1232311a29bacSmrg# Hook for its removal unless debugging.
1232411a29bacSmrg# Note that there is a small window in which the directory will not be cleaned:
1232511a29bacSmrg# after its creation but before its name has been assigned to `$tmp'.
1232611a29bacSmrg$debug ||
1232711a29bacSmrg{
1232811a29bacSmrg  tmp= ac_tmp=
1232911a29bacSmrg  trap 'exit_status=$?
1233011a29bacSmrg  : "${ac_tmp:=$tmp}"
1233111a29bacSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1233211a29bacSmrg' 0
1233311a29bacSmrg  trap 'as_fn_exit 1' 1 2 13 15
1233411a29bacSmrg}
1233511a29bacSmrg# Create a (secure) tmp directory for tmp files.
1233641b2f0bdSmrg
1233711a29bacSmrg{
1233811a29bacSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1233911a29bacSmrg  test -d "$tmp"
1234011a29bacSmrg}  ||
1234111a29bacSmrg{
1234211a29bacSmrg  tmp=./conf$$-$RANDOM
1234311a29bacSmrg  (umask 077 && mkdir "$tmp")
1234411a29bacSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1234511a29bacSmrgac_tmp=$tmp
1234641b2f0bdSmrg
1234711a29bacSmrg# Set up the scripts for CONFIG_FILES section.
1234811a29bacSmrg# No need to generate them if there are no CONFIG_FILES.
1234911a29bacSmrg# This happens for instance with `./config.status config.h'.
1235011a29bacSmrgif test -n "$CONFIG_FILES"; then
1235141b2f0bdSmrg
1235211a29bacSmrg
1235311a29bacSmrgac_cr=`echo X | tr X '\015'`
1235411a29bacSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1235511a29bacSmrg# But we know of no other shell where ac_cr would be empty at this
1235611a29bacSmrg# point, so we can use a bashism as a fallback.
1235711a29bacSmrgif test "x$ac_cr" = x; then
1235811a29bacSmrg  eval ac_cr=\$\'\\r\'
1235911a29bacSmrgfi
1236011a29bacSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1236111a29bacSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1236211a29bacSmrg  ac_cs_awk_cr='\\r'
1236341b2f0bdSmrgelse
1236411a29bacSmrg  ac_cs_awk_cr=$ac_cr
1236541b2f0bdSmrgfi
1236641b2f0bdSmrg
1236711a29bacSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1236811a29bacSmrg_ACEOF
1236941b2f0bdSmrg
1237011a29bacSmrg
1237111a29bacSmrg{
1237211a29bacSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1237311a29bacSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1237411a29bacSmrg  echo "_ACEOF"
1237511a29bacSmrg} >conf$$subs.sh ||
1237611a29bacSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1237711a29bacSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1237811a29bacSmrgac_delim='%!_!# '
1237911a29bacSmrgfor ac_last_try in false false false false false :; do
1238011a29bacSmrg  . ./conf$$subs.sh ||
1238111a29bacSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1238211a29bacSmrg
1238311a29bacSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1238411a29bacSmrg  if test $ac_delim_n = $ac_delim_num; then
1238511a29bacSmrg    break
1238611a29bacSmrg  elif $ac_last_try; then
1238711a29bacSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1238811a29bacSmrg  else
1238911a29bacSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1239011a29bacSmrg  fi
1239111a29bacSmrgdone
1239211a29bacSmrgrm -f conf$$subs.sh
1239311a29bacSmrg
1239411a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1239511a29bacSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1239611a29bacSmrg_ACEOF
1239711a29bacSmrgsed -n '
1239811a29bacSmrgh
1239911a29bacSmrgs/^/S["/; s/!.*/"]=/
1240011a29bacSmrgp
1240111a29bacSmrgg
1240211a29bacSmrgs/^[^!]*!//
1240311a29bacSmrg:repl
1240411a29bacSmrgt repl
1240511a29bacSmrgs/'"$ac_delim"'$//
1240611a29bacSmrgt delim
1240711a29bacSmrg:nl
1240811a29bacSmrgh
1240911a29bacSmrgs/\(.\{148\}\)..*/\1/
1241011a29bacSmrgt more1
1241111a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1241211a29bacSmrgp
1241311a29bacSmrgn
1241411a29bacSmrgb repl
1241511a29bacSmrg:more1
1241611a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1241711a29bacSmrgp
1241811a29bacSmrgg
1241911a29bacSmrgs/.\{148\}//
1242011a29bacSmrgt nl
1242111a29bacSmrg:delim
1242211a29bacSmrgh
1242311a29bacSmrgs/\(.\{148\}\)..*/\1/
1242411a29bacSmrgt more2
1242511a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1242611a29bacSmrgp
1242711a29bacSmrgb
1242811a29bacSmrg:more2
1242911a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1243011a29bacSmrgp
1243111a29bacSmrgg
1243211a29bacSmrgs/.\{148\}//
1243311a29bacSmrgt delim
1243411a29bacSmrg' <conf$$subs.awk | sed '
1243511a29bacSmrg/^[^""]/{
1243611a29bacSmrg  N
1243711a29bacSmrg  s/\n//
1243811a29bacSmrg}
1243911a29bacSmrg' >>$CONFIG_STATUS || ac_write_fail=1
1244011a29bacSmrgrm -f conf$$subs.awk
1244111a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1244211a29bacSmrg_ACAWK
1244311a29bacSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1244411a29bacSmrg  for (key in S) S_is_set[key] = 1
1244511a29bacSmrg  FS = ""
1244611a29bacSmrg
1244711a29bacSmrg}
1244811a29bacSmrg{
1244911a29bacSmrg  line = $ 0
1245011a29bacSmrg  nfields = split(line, field, "@")
1245111a29bacSmrg  substed = 0
1245211a29bacSmrg  len = length(field[1])
1245311a29bacSmrg  for (i = 2; i < nfields; i++) {
1245411a29bacSmrg    key = field[i]
1245511a29bacSmrg    keylen = length(key)
1245611a29bacSmrg    if (S_is_set[key]) {
1245711a29bacSmrg      value = S[key]
1245811a29bacSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1245911a29bacSmrg      len += length(value) + length(field[++i])
1246011a29bacSmrg      substed = 1
1246111a29bacSmrg    } else
1246211a29bacSmrg      len += 1 + keylen
1246311a29bacSmrg  }
1246411a29bacSmrg
1246511a29bacSmrg  print line
1246611a29bacSmrg}
1246711a29bacSmrg
1246811a29bacSmrg_ACAWK
1246911a29bacSmrg_ACEOF
1247011a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1247111a29bacSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1247211a29bacSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1247341b2f0bdSmrgelse
1247411a29bacSmrg  cat
1247511a29bacSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1247611a29bacSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1247711a29bacSmrg_ACEOF
1247811a29bacSmrg
1247911a29bacSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1248011a29bacSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1248111a29bacSmrg# trailing colons and then remove the whole line if VPATH becomes empty
1248211a29bacSmrg# (actually we leave an empty line to preserve line numbers).
1248311a29bacSmrgif test "x$srcdir" = x.; then
1248411a29bacSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1248511a29bacSmrgh
1248611a29bacSmrgs///
1248711a29bacSmrgs/^/:/
1248811a29bacSmrgs/[	 ]*$/:/
1248911a29bacSmrgs/:\$(srcdir):/:/g
1249011a29bacSmrgs/:\${srcdir}:/:/g
1249111a29bacSmrgs/:@srcdir@:/:/g
1249211a29bacSmrgs/^:*//
1249311a29bacSmrgs/:*$//
1249411a29bacSmrgx
1249511a29bacSmrgs/\(=[	 ]*\).*/\1/
1249611a29bacSmrgG
1249711a29bacSmrgs/\n//
1249811a29bacSmrgs/^[^=]*=[	 ]*$//
1249911a29bacSmrg}'
1250011245024Smrgfi
1250141b2f0bdSmrg
1250211a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1250311a29bacSmrgfi # test -n "$CONFIG_FILES"
1250411245024Smrg
1250511a29bacSmrg# Set up the scripts for CONFIG_HEADERS section.
1250611a29bacSmrg# No need to generate them if there are no CONFIG_HEADERS.
1250711a29bacSmrg# This happens for instance with `./config.status Makefile'.
1250811a29bacSmrgif test -n "$CONFIG_HEADERS"; then
1250911a29bacSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1251011a29bacSmrgBEGIN {
1251111a29bacSmrg_ACEOF
1251211a29bacSmrg
1251311a29bacSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1251411a29bacSmrg# here-document in config.status, that substitutes the proper values into
1251511a29bacSmrg# config.h.in to produce config.h.
1251611a29bacSmrg
1251711a29bacSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
1251811a29bacSmrg# handling of long lines.
1251911a29bacSmrgac_delim='%!_!# '
1252011a29bacSmrgfor ac_last_try in false false :; do
1252111a29bacSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1252211a29bacSmrg  if test -z "$ac_tt"; then
1252311a29bacSmrg    break
1252411a29bacSmrg  elif $ac_last_try; then
1252511a29bacSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1252611a29bacSmrg  else
1252711a29bacSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1252811a29bacSmrg  fi
1252911a29bacSmrgdone
1253011a29bacSmrg
1253111a29bacSmrg# For the awk script, D is an array of macro values keyed by name,
1253211a29bacSmrg# likewise P contains macro parameters if any.  Preserve backslash
1253311a29bacSmrg# newline sequences.
1253411a29bacSmrg
1253511a29bacSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1253611a29bacSmrgsed -n '
1253711a29bacSmrgs/.\{148\}/&'"$ac_delim"'/g
1253811a29bacSmrgt rset
1253911a29bacSmrg:rset
1254011a29bacSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1254111a29bacSmrgt def
1254211a29bacSmrgd
1254311a29bacSmrg:def
1254411a29bacSmrgs/\\$//
1254511a29bacSmrgt bsnl
1254611a29bacSmrgs/["\\]/\\&/g
1254711a29bacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1254811a29bacSmrgD["\1"]=" \3"/p
1254911a29bacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1255011a29bacSmrgd
1255111a29bacSmrg:bsnl
1255211a29bacSmrgs/["\\]/\\&/g
1255311a29bacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1255411a29bacSmrgD["\1"]=" \3\\\\\\n"\\/p
1255511a29bacSmrgt cont
1255611a29bacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1255711a29bacSmrgt cont
1255811a29bacSmrgd
1255911a29bacSmrg:cont
1256011a29bacSmrgn
1256111a29bacSmrgs/.\{148\}/&'"$ac_delim"'/g
1256211a29bacSmrgt clear
1256311a29bacSmrg:clear
1256411a29bacSmrgs/\\$//
1256511a29bacSmrgt bsnlc
1256611a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1256711a29bacSmrgd
1256811a29bacSmrg:bsnlc
1256911a29bacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1257011a29bacSmrgb cont
1257111a29bacSmrg' <confdefs.h | sed '
1257211a29bacSmrgs/'"$ac_delim"'/"\\\
1257311a29bacSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1257441b2f0bdSmrg
1257511a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1257611a29bacSmrg  for (key in D) D_is_set[key] = 1
1257711a29bacSmrg  FS = ""
1257811a29bacSmrg}
1257911a29bacSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1258011a29bacSmrg  line = \$ 0
1258111a29bacSmrg  split(line, arg, " ")
1258211a29bacSmrg  if (arg[1] == "#") {
1258311a29bacSmrg    defundef = arg[2]
1258411a29bacSmrg    mac1 = arg[3]
1258511a29bacSmrg  } else {
1258611a29bacSmrg    defundef = substr(arg[1], 2)
1258711a29bacSmrg    mac1 = arg[2]
1258811a29bacSmrg  }
1258911a29bacSmrg  split(mac1, mac2, "(") #)
1259011a29bacSmrg  macro = mac2[1]
1259111a29bacSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
1259211a29bacSmrg  if (D_is_set[macro]) {
1259311a29bacSmrg    # Preserve the white space surrounding the "#".
1259411a29bacSmrg    print prefix "define", macro P[macro] D[macro]
1259511a29bacSmrg    next
1259611a29bacSmrg  } else {
1259711a29bacSmrg    # Replace #undef with comments.  This is necessary, for example,
1259811a29bacSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
1259911a29bacSmrg    # on some systems where configure will not decide to define it.
1260011a29bacSmrg    if (defundef == "undef") {
1260111a29bacSmrg      print "/*", prefix defundef, macro, "*/"
1260211a29bacSmrg      next
1260311a29bacSmrg    }
1260411a29bacSmrg  }
1260541b2f0bdSmrg}
1260611a29bacSmrg{ print }
1260711a29bacSmrg_ACAWK
1260841b2f0bdSmrg_ACEOF
1260911a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1261011a29bacSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1261111a29bacSmrgfi # test -n "$CONFIG_HEADERS"
1261241b2f0bdSmrg
1261311245024Smrg
1261411a29bacSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1261511a29bacSmrgshift
1261611a29bacSmrgfor ac_tag
1261711a29bacSmrgdo
1261811a29bacSmrg  case $ac_tag in
1261911a29bacSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1262011a29bacSmrg  esac
1262111a29bacSmrg  case $ac_mode$ac_tag in
1262211a29bacSmrg  :[FHL]*:*);;
1262311a29bacSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1262411a29bacSmrg  :[FH]-) ac_tag=-:-;;
1262511a29bacSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1262611a29bacSmrg  esac
1262711a29bacSmrg  ac_save_IFS=$IFS
1262811a29bacSmrg  IFS=:
1262911a29bacSmrg  set x $ac_tag
1263011a29bacSmrg  IFS=$ac_save_IFS
1263111a29bacSmrg  shift
1263211a29bacSmrg  ac_file=$1
1263311a29bacSmrg  shift
1263411245024Smrg
1263511a29bacSmrg  case $ac_mode in
1263611a29bacSmrg  :L) ac_source=$1;;
1263711a29bacSmrg  :[FH])
1263811a29bacSmrg    ac_file_inputs=
1263911a29bacSmrg    for ac_f
1264011a29bacSmrg    do
1264111a29bacSmrg      case $ac_f in
1264211a29bacSmrg      -) ac_f="$ac_tmp/stdin";;
1264311a29bacSmrg      *) # Look for the file first in the build tree, then in the source tree
1264411a29bacSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1264511a29bacSmrg	 # because $ac_f cannot contain `:'.
1264611a29bacSmrg	 test -f "$ac_f" ||
1264711a29bacSmrg	   case $ac_f in
1264811a29bacSmrg	   [\\/$]*) false;;
1264911a29bacSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1265011a29bacSmrg	   esac ||
1265111a29bacSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1265211a29bacSmrg      esac
1265311a29bacSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1265411a29bacSmrg      as_fn_append ac_file_inputs " '$ac_f'"
1265511a29bacSmrg    done
1265641b2f0bdSmrg
1265711a29bacSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1265811a29bacSmrg    # use $as_me), people would be surprised to read:
1265911a29bacSmrg    #    /* config.h.  Generated by config.status.  */
1266011a29bacSmrg    configure_input='Generated from '`
1266111a29bacSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1266211a29bacSmrg	`' by configure.'
1266311a29bacSmrg    if test x"$ac_file" != x-; then
1266411a29bacSmrg      configure_input="$ac_file.  $configure_input"
1266511a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1266611a29bacSmrg$as_echo "$as_me: creating $ac_file" >&6;}
1266711a29bacSmrg    fi
1266811a29bacSmrg    # Neutralize special characters interpreted by sed in replacement strings.
1266911a29bacSmrg    case $configure_input in #(
1267011a29bacSmrg    *\&* | *\|* | *\\* )
1267111a29bacSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
1267211a29bacSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1267311a29bacSmrg    *) ac_sed_conf_input=$configure_input;;
1267411a29bacSmrg    esac
1267541b2f0bdSmrg
1267611a29bacSmrg    case $ac_tag in
1267711a29bacSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1267811a29bacSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1267911a29bacSmrg    esac
1268011a29bacSmrg    ;;
1268111a29bacSmrg  esac
1268211a29bacSmrg
1268311a29bacSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
1268411a29bacSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268511a29bacSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1268611a29bacSmrg	 X"$ac_file" : 'X\(//\)$' \| \
1268711a29bacSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1268811a29bacSmrg$as_echo X"$ac_file" |
1268911a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269011a29bacSmrg	    s//\1/
1269111a29bacSmrg	    q
1269211a29bacSmrg	  }
1269311a29bacSmrg	  /^X\(\/\/\)[^/].*/{
1269411a29bacSmrg	    s//\1/
1269511a29bacSmrg	    q
1269611a29bacSmrg	  }
1269711a29bacSmrg	  /^X\(\/\/\)$/{
1269811a29bacSmrg	    s//\1/
1269911a29bacSmrg	    q
1270011a29bacSmrg	  }
1270111a29bacSmrg	  /^X\(\/\).*/{
1270211a29bacSmrg	    s//\1/
1270311a29bacSmrg	    q
1270411a29bacSmrg	  }
1270511a29bacSmrg	  s/.*/./; q'`
1270611a29bacSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
1270711a29bacSmrg  ac_builddir=.
1270841b2f0bdSmrg
1270911a29bacSmrgcase "$ac_dir" in
1271011a29bacSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271111a29bacSmrg*)
1271211a29bacSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1271311a29bacSmrg  # A ".." for each directory in $ac_dir_suffix.
1271411a29bacSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1271511a29bacSmrg  case $ac_top_builddir_sub in
1271611a29bacSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271711a29bacSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1271811a29bacSmrg  esac ;;
1271911a29bacSmrgesac
1272011a29bacSmrgac_abs_top_builddir=$ac_pwd
1272111a29bacSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1272211a29bacSmrg# for backward compatibility:
1272311a29bacSmrgac_top_builddir=$ac_top_build_prefix
1272441b2f0bdSmrg
1272511a29bacSmrgcase $srcdir in
1272611a29bacSmrg  .)  # We are building in place.
1272711a29bacSmrg    ac_srcdir=.
1272811a29bacSmrg    ac_top_srcdir=$ac_top_builddir_sub
1272911a29bacSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1273011a29bacSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1273111a29bacSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1273211a29bacSmrg    ac_top_srcdir=$srcdir
1273311a29bacSmrg    ac_abs_top_srcdir=$srcdir ;;
1273411a29bacSmrg  *) # Relative name.
1273511a29bacSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1273611a29bacSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1273711a29bacSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1273811a29bacSmrgesac
1273911a29bacSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1274041b2f0bdSmrg
1274141b2f0bdSmrg
1274211a29bacSmrg  case $ac_mode in
1274311a29bacSmrg  :F)
1274411a29bacSmrg  #
1274511a29bacSmrg  # CONFIG_FILE
1274611a29bacSmrg  #
1274741b2f0bdSmrg
1274811a29bacSmrg  case $INSTALL in
1274911a29bacSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1275011a29bacSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1275111a29bacSmrg  esac
1275211a29bacSmrg  ac_MKDIR_P=$MKDIR_P
1275311a29bacSmrg  case $MKDIR_P in
1275411a29bacSmrg  [\\/$]* | ?:[\\/]* ) ;;
1275511a29bacSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1275611a29bacSmrg  esac
1275711a29bacSmrg_ACEOF
1275841b2f0bdSmrg
1275911a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1276011a29bacSmrg# If the template does not know about datarootdir, expand it.
1276111a29bacSmrg# FIXME: This hack should be removed a few years after 2.60.
1276211a29bacSmrgac_datarootdir_hack=; ac_datarootdir_seen=
1276311a29bacSmrgac_sed_dataroot='
1276411a29bacSmrg/datarootdir/ {
1276511a29bacSmrg  p
1276611a29bacSmrg  q
1276711a29bacSmrg}
1276811a29bacSmrg/@datadir@/p
1276911a29bacSmrg/@docdir@/p
1277011a29bacSmrg/@infodir@/p
1277111a29bacSmrg/@localedir@/p
1277211a29bacSmrg/@mandir@/p'
1277311a29bacSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1277411a29bacSmrg*datarootdir*) ac_datarootdir_seen=yes;;
1277511a29bacSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1277611a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1277711a29bacSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1277811a29bacSmrg_ACEOF
1277911a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1278011a29bacSmrg  ac_datarootdir_hack='
1278111a29bacSmrg  s&@datadir@&$datadir&g
1278211a29bacSmrg  s&@docdir@&$docdir&g
1278311a29bacSmrg  s&@infodir@&$infodir&g
1278411a29bacSmrg  s&@localedir@&$localedir&g
1278511a29bacSmrg  s&@mandir@&$mandir&g
1278611a29bacSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1278711a29bacSmrgesac
1278811a29bacSmrg_ACEOF
1278941b2f0bdSmrg
1279011a29bacSmrg# Neutralize VPATH when `$srcdir' = `.'.
1279111a29bacSmrg# Shell code in configure.ac might set extrasub.
1279211a29bacSmrg# FIXME: do we really want to maintain this feature?
1279311a29bacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1279411a29bacSmrgac_sed_extra="$ac_vpsub
1279511a29bacSmrg$extrasub
1279641b2f0bdSmrg_ACEOF
1279711a29bacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1279811a29bacSmrg:t
1279911a29bacSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1280011a29bacSmrgs|@configure_input@|$ac_sed_conf_input|;t t
1280111a29bacSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1280211a29bacSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1280311a29bacSmrgs&@srcdir@&$ac_srcdir&;t t
1280411a29bacSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1280511a29bacSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
1280611a29bacSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1280711a29bacSmrgs&@builddir@&$ac_builddir&;t t
1280811a29bacSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
1280911a29bacSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1281011a29bacSmrgs&@INSTALL@&$ac_INSTALL&;t t
1281111a29bacSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1281211a29bacSmrg$ac_datarootdir_hack
1281311a29bacSmrg"
1281411a29bacSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1281511a29bacSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1281641b2f0bdSmrg
1281711a29bacSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1281811a29bacSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1281911a29bacSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1282011a29bacSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1282111a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1282211a29bacSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
1282311a29bacSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1282411a29bacSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1282511245024Smrg
1282611a29bacSmrg  rm -f "$ac_tmp/stdin"
1282711a29bacSmrg  case $ac_file in
1282811a29bacSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1282911a29bacSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1283011a29bacSmrg  esac \
1283111a29bacSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1283211a29bacSmrg ;;
1283311a29bacSmrg  :H)
1283411a29bacSmrg  #
1283511a29bacSmrg  # CONFIG_HEADER
1283611a29bacSmrg  #
1283711a29bacSmrg  if test x"$ac_file" != x-; then
1283811a29bacSmrg    {
1283911a29bacSmrg      $as_echo "/* $configure_input  */" \
1284011a29bacSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1284111a29bacSmrg    } >"$ac_tmp/config.h" \
1284211a29bacSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1284311a29bacSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1284411a29bacSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1284511a29bacSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1284611a29bacSmrg    else
1284711a29bacSmrg      rm -f "$ac_file"
1284811a29bacSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1284911a29bacSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1285011a29bacSmrg    fi
1285141b2f0bdSmrg  else
1285211a29bacSmrg    $as_echo "/* $configure_input  */" \
1285311a29bacSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1285411a29bacSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
1285541b2f0bdSmrg  fi
1285611a29bacSmrg# Compute "$ac_file"'s index in $config_headers.
1285711a29bacSmrg_am_arg="$ac_file"
1285811a29bacSmrg_am_stamp_count=1
1285911a29bacSmrgfor _am_header in $config_headers :; do
1286011a29bacSmrg  case $_am_header in
1286111a29bacSmrg    $_am_arg | $_am_arg:* )
1286211a29bacSmrg      break ;;
1286311a29bacSmrg    * )
1286411a29bacSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1286511a29bacSmrg  esac
1286641b2f0bdSmrgdone
1286711a29bacSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1286811a29bacSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286911a29bacSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1287011a29bacSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
1287111a29bacSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1287211a29bacSmrg$as_echo X"$_am_arg" |
1287311a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287411a29bacSmrg	    s//\1/
1287511a29bacSmrg	    q
1287611a29bacSmrg	  }
1287711a29bacSmrg	  /^X\(\/\/\)[^/].*/{
1287811a29bacSmrg	    s//\1/
1287911a29bacSmrg	    q
1288011a29bacSmrg	  }
1288111a29bacSmrg	  /^X\(\/\/\)$/{
1288211a29bacSmrg	    s//\1/
1288311a29bacSmrg	    q
1288411a29bacSmrg	  }
1288511a29bacSmrg	  /^X\(\/\).*/{
1288611a29bacSmrg	    s//\1/
1288711a29bacSmrg	    q
1288811a29bacSmrg	  }
1288911a29bacSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1289011a29bacSmrg ;;
1289141b2f0bdSmrg
1289211a29bacSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1289311a29bacSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
1289411a29bacSmrg ;;
1289511a29bacSmrg  esac
1289641b2f0bdSmrg
1289741b2f0bdSmrg
1289811a29bacSmrg  case $ac_file$ac_mode in
1289911a29bacSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1290011a29bacSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
1290111a29bacSmrg  # are listed without --file.  Let's play safe and only enable the eval
1290211a29bacSmrg  # if we detect the quoting.
1290311a29bacSmrg  case $CONFIG_FILES in
1290411a29bacSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
1290511a29bacSmrg  *)   set x $CONFIG_FILES ;;
1290611a29bacSmrg  esac
1290711a29bacSmrg  shift
1290811a29bacSmrg  for mf
1290911a29bacSmrg  do
1291011a29bacSmrg    # Strip MF so we end up with the name of the file.
1291111a29bacSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
1291211a29bacSmrg    # Check whether this is an Automake generated Makefile or not.
1291311a29bacSmrg    # We used to match only the files named `Makefile.in', but
1291411a29bacSmrg    # some people rename them; so instead we look at the file content.
1291511a29bacSmrg    # Grep'ing the first line is not enough: some people post-process
1291611a29bacSmrg    # each Makefile.in and add a new line on top of each file to say so.
1291711a29bacSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
1291811a29bacSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
1291911a29bacSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1292011a29bacSmrg      dirpart=`$as_dirname -- "$mf" ||
1292111a29bacSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292211a29bacSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
1292311a29bacSmrg	 X"$mf" : 'X\(//\)$' \| \
1292411a29bacSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1292511a29bacSmrg$as_echo X"$mf" |
1292611a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292711a29bacSmrg	    s//\1/
1292811a29bacSmrg	    q
1292911a29bacSmrg	  }
1293011a29bacSmrg	  /^X\(\/\/\)[^/].*/{
1293111a29bacSmrg	    s//\1/
1293211a29bacSmrg	    q
1293311a29bacSmrg	  }
1293411a29bacSmrg	  /^X\(\/\/\)$/{
1293511a29bacSmrg	    s//\1/
1293611a29bacSmrg	    q
1293711a29bacSmrg	  }
1293811a29bacSmrg	  /^X\(\/\).*/{
1293911a29bacSmrg	    s//\1/
1294011a29bacSmrg	    q
1294111a29bacSmrg	  }
1294211a29bacSmrg	  s/.*/./; q'`
1294311a29bacSmrg    else
1294411a29bacSmrg      continue
1294511a29bacSmrg    fi
1294611a29bacSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
1294711a29bacSmrg    # from the Makefile without running `make'.
1294811a29bacSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1294911a29bacSmrg    test -z "$DEPDIR" && continue
1295011a29bacSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1295111a29bacSmrg    test -z "am__include" && continue
1295211a29bacSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1295311a29bacSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
1295411a29bacSmrg    U=`sed -n 's/^U = //p' < "$mf"`
1295511a29bacSmrg    # Find all dependency output files, they are included files with
1295611a29bacSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1295711a29bacSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
1295811a29bacSmrg    # expansion.
1295911a29bacSmrg    for file in `sed -n "
1296011a29bacSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1296111a29bacSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1296211a29bacSmrg      # Make sure the directory exists.
1296311a29bacSmrg      test -f "$dirpart/$file" && continue
1296411a29bacSmrg      fdir=`$as_dirname -- "$file" ||
1296511a29bacSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296611a29bacSmrg	 X"$file" : 'X\(//\)[^/]' \| \
1296711a29bacSmrg	 X"$file" : 'X\(//\)$' \| \
1296811a29bacSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1296911a29bacSmrg$as_echo X"$file" |
1297011a29bacSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297111a29bacSmrg	    s//\1/
1297211a29bacSmrg	    q
1297311a29bacSmrg	  }
1297411a29bacSmrg	  /^X\(\/\/\)[^/].*/{
1297511a29bacSmrg	    s//\1/
1297611a29bacSmrg	    q
1297711a29bacSmrg	  }
1297811a29bacSmrg	  /^X\(\/\/\)$/{
1297911a29bacSmrg	    s//\1/
1298011a29bacSmrg	    q
1298111a29bacSmrg	  }
1298211a29bacSmrg	  /^X\(\/\).*/{
1298311a29bacSmrg	    s//\1/
1298411a29bacSmrg	    q
1298511a29bacSmrg	  }
1298611a29bacSmrg	  s/.*/./; q'`
1298711a29bacSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
1298811a29bacSmrg      # echo "creating $dirpart/$file"
1298911a29bacSmrg      echo '# dummy' > "$dirpart/$file"
1299011a29bacSmrg    done
1299111a29bacSmrg  done
1299211a29bacSmrg}
1299311a29bacSmrg ;;
1299411a29bacSmrg    "libtool":C)
1299511a29bacSmrg
1299611a29bacSmrg    # See if we are running on zsh, and set the options which allow our
1299711a29bacSmrg    # commands through without removal of \ escapes.
1299811a29bacSmrg    if test -n "${ZSH_VERSION+set}" ; then
1299911a29bacSmrg      setopt NO_GLOB_SUBST
1300011a29bacSmrg    fi
1300111245024Smrg
1300211a29bacSmrg    cfgfile="${ofile}T"
1300311a29bacSmrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1300411a29bacSmrg    $RM "$cfgfile"
1300541b2f0bdSmrg
1300611a29bacSmrg    cat <<_LT_EOF >> "$cfgfile"
1300741b2f0bdSmrg#! $SHELL
1300841b2f0bdSmrg
1300911a29bacSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1301011a29bacSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1301111a29bacSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1301211a29bacSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1301311a29bacSmrg#
1301411a29bacSmrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1301511a29bacSmrg#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1301611a29bacSmrg#                 Inc.
1301711a29bacSmrg#   Written by Gordon Matzigkeit, 1996
1301811a29bacSmrg#
1301911a29bacSmrg#   This file is part of GNU Libtool.
1302011a29bacSmrg#
1302111a29bacSmrg# GNU Libtool is free software; you can redistribute it and/or
1302211a29bacSmrg# modify it under the terms of the GNU General Public License as
1302311a29bacSmrg# published by the Free Software Foundation; either version 2 of
1302411a29bacSmrg# the License, or (at your option) any later version.
1302511a29bacSmrg#
1302611a29bacSmrg# As a special exception to the GNU General Public License,
1302711a29bacSmrg# if you distribute this file as part of a program or library that
1302811a29bacSmrg# is built using GNU Libtool, you may include this file under the
1302911a29bacSmrg# same distribution terms that you use for the rest of that program.
1303011a29bacSmrg#
1303111a29bacSmrg# GNU Libtool is distributed in the hope that it will be useful,
1303211a29bacSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1303311a29bacSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1303411a29bacSmrg# GNU General Public License for more details.
1303511a29bacSmrg#
1303611a29bacSmrg# You should have received a copy of the GNU General Public License
1303711a29bacSmrg# along with GNU Libtool; see the file COPYING.  If not, a copy
1303811a29bacSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1303911a29bacSmrg# obtained by writing to the Free Software Foundation, Inc.,
1304011a29bacSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1304141b2f0bdSmrg
1304211245024Smrg
1304311a29bacSmrg# The names of the tagged configurations supported by this script.
1304411a29bacSmrgavailable_tags=""
1304511245024Smrg
1304611a29bacSmrg# ### BEGIN LIBTOOL CONFIG
1304711245024Smrg
1304811a29bacSmrg# Which release of libtool.m4 was used?
1304911a29bacSmrgmacro_version=$macro_version
1305011a29bacSmrgmacro_revision=$macro_revision
1305111245024Smrg
1305211a29bacSmrg# Whether or not to build shared libraries.
1305311a29bacSmrgbuild_libtool_libs=$enable_shared
1305411245024Smrg
1305511a29bacSmrg# Whether or not to build static libraries.
1305611a29bacSmrgbuild_old_libs=$enable_static
1305711245024Smrg
1305811a29bacSmrg# What type of objects to build.
1305911a29bacSmrgpic_mode=$pic_mode
1306011245024Smrg
1306111a29bacSmrg# Whether or not to optimize for fast installation.
1306211a29bacSmrgfast_install=$enable_fast_install
1306341b2f0bdSmrg
1306411a29bacSmrg# Shell to use when invoking shell scripts.
1306511a29bacSmrgSHELL=$lt_SHELL
1306641b2f0bdSmrg
1306711a29bacSmrg# An echo program that protects backslashes.
1306811a29bacSmrgECHO=$lt_ECHO
1306941b2f0bdSmrg
1307011a29bacSmrg# The host system.
1307111a29bacSmrghost_alias=$host_alias
1307211a29bacSmrghost=$host
1307311a29bacSmrghost_os=$host_os
1307411245024Smrg
1307511a29bacSmrg# The build system.
1307611a29bacSmrgbuild_alias=$build_alias
1307711a29bacSmrgbuild=$build
1307811a29bacSmrgbuild_os=$build_os
1307911245024Smrg
1308011a29bacSmrg# A sed program that does not truncate output.
1308111a29bacSmrgSED=$lt_SED
1308211245024Smrg
1308311a29bacSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1308411a29bacSmrgXsed="\$SED -e 1s/^X//"
1308541b2f0bdSmrg
1308611a29bacSmrg# A grep program that handles long lines.
1308711a29bacSmrgGREP=$lt_GREP
1308841b2f0bdSmrg
1308911a29bacSmrg# An ERE matcher.
1309011a29bacSmrgEGREP=$lt_EGREP
1309141b2f0bdSmrg
1309211a29bacSmrg# A literal string matcher.
1309311a29bacSmrgFGREP=$lt_FGREP
1309441b2f0bdSmrg
1309511a29bacSmrg# A BSD- or MS-compatible name lister.
1309611a29bacSmrgNM=$lt_NM
1309741b2f0bdSmrg
1309811a29bacSmrg# Whether we need soft or hard links.
1309911a29bacSmrgLN_S=$lt_LN_S
1310041b2f0bdSmrg
1310111a29bacSmrg# What is the maximum length of a command?
1310211a29bacSmrgmax_cmd_len=$max_cmd_len
1310341b2f0bdSmrg
1310411a29bacSmrg# Object file suffix (normally "o").
1310511a29bacSmrgobjext=$ac_objext
1310641b2f0bdSmrg
1310711a29bacSmrg# Executable file suffix (normally "").
1310811a29bacSmrgexeext=$exeext
1310941b2f0bdSmrg
1311011a29bacSmrg# whether the shell understands "unset".
1311111a29bacSmrglt_unset=$lt_unset
1311241b2f0bdSmrg
1311311a29bacSmrg# turn spaces into newlines.
1311411a29bacSmrgSP2NL=$lt_lt_SP2NL
1311541b2f0bdSmrg
1311611a29bacSmrg# turn newlines into spaces.
1311711a29bacSmrgNL2SP=$lt_lt_NL2SP
1311841b2f0bdSmrg
1311911a29bacSmrg# An object symbol dumper.
1312011a29bacSmrgOBJDUMP=$lt_OBJDUMP
1312141b2f0bdSmrg
1312211a29bacSmrg# Method to check whether dependent libraries are shared objects.
1312311a29bacSmrgdeplibs_check_method=$lt_deplibs_check_method
1312441b2f0bdSmrg
1312511a29bacSmrg# Command to use when deplibs_check_method == "file_magic".
1312611a29bacSmrgfile_magic_cmd=$lt_file_magic_cmd
1312741b2f0bdSmrg
1312811a29bacSmrg# The archiver.
1312911a29bacSmrgAR=$lt_AR
1313011a29bacSmrgAR_FLAGS=$lt_AR_FLAGS
1313141b2f0bdSmrg
1313211a29bacSmrg# A symbol stripping program.
1313311a29bacSmrgSTRIP=$lt_STRIP
1313441b2f0bdSmrg
1313511a29bacSmrg# Commands used to install an old-style archive.
1313611a29bacSmrgRANLIB=$lt_RANLIB
1313711a29bacSmrgold_postinstall_cmds=$lt_old_postinstall_cmds
1313811a29bacSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1313941b2f0bdSmrg
1314011a29bacSmrg# Whether to use a lock for old archive extraction.
1314111a29bacSmrglock_old_archive_extraction=$lock_old_archive_extraction
1314241b2f0bdSmrg
1314311a29bacSmrg# A C compiler.
1314411a29bacSmrgLTCC=$lt_CC
1314541b2f0bdSmrg
1314611a29bacSmrg# LTCC compiler flags.
1314711a29bacSmrgLTCFLAGS=$lt_CFLAGS
1314841b2f0bdSmrg
1314911a29bacSmrg# Take the output of nm and produce a listing of raw symbols and C names.
1315011a29bacSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1315141b2f0bdSmrg
1315211a29bacSmrg# Transform the output of nm in a proper C declaration.
1315311a29bacSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1315441b2f0bdSmrg
1315511a29bacSmrg# Transform the output of nm in a C name address pair.
1315611a29bacSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1315741b2f0bdSmrg
1315811a29bacSmrg# Transform the output of nm in a C name address pair when lib prefix is needed.
1315911a29bacSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1316011245024Smrg
1316111a29bacSmrg# The name of the directory that contains temporary libtool files.
1316211a29bacSmrgobjdir=$objdir
1316341b2f0bdSmrg
1316411a29bacSmrg# Used to examine libraries when file_magic_cmd begins with "file".
1316511a29bacSmrgMAGIC_CMD=$MAGIC_CMD
1316641b2f0bdSmrg
1316711a29bacSmrg# Must we lock files when doing compilation?
1316811a29bacSmrgneed_locks=$lt_need_locks
1316941b2f0bdSmrg
1317011a29bacSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1317111a29bacSmrgDSYMUTIL=$lt_DSYMUTIL
1317241b2f0bdSmrg
1317311a29bacSmrg# Tool to change global to local symbols on Mac OS X.
1317411a29bacSmrgNMEDIT=$lt_NMEDIT
1317541b2f0bdSmrg
1317611a29bacSmrg# Tool to manipulate fat objects and archives on Mac OS X.
1317711a29bacSmrgLIPO=$lt_LIPO
1317841b2f0bdSmrg
1317911a29bacSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
1318011a29bacSmrgOTOOL=$lt_OTOOL
1318141b2f0bdSmrg
1318211a29bacSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
1318311a29bacSmrgOTOOL64=$lt_OTOOL64
1318441b2f0bdSmrg
1318511a29bacSmrg# Old archive suffix (normally "a").
1318611a29bacSmrglibext=$libext
1318741b2f0bdSmrg
1318811a29bacSmrg# Shared library suffix (normally ".so").
1318911a29bacSmrgshrext_cmds=$lt_shrext_cmds
1319041b2f0bdSmrg
1319111a29bacSmrg# The commands to extract the exported symbol list from a shared archive.
1319211a29bacSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1319341b2f0bdSmrg
1319411a29bacSmrg# Variables whose values should be saved in libtool wrapper scripts and
1319511a29bacSmrg# restored at link time.
1319611a29bacSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink
1319741b2f0bdSmrg
1319811a29bacSmrg# Do we need the "lib" prefix for modules?
1319911a29bacSmrgneed_lib_prefix=$need_lib_prefix
1320041b2f0bdSmrg
1320111a29bacSmrg# Do we need a version for libraries?
1320211a29bacSmrgneed_version=$need_version
1320341b2f0bdSmrg
1320411a29bacSmrg# Library versioning type.
1320511a29bacSmrgversion_type=$version_type
1320611245024Smrg
1320711a29bacSmrg# Shared library runtime path variable.
1320811a29bacSmrgrunpath_var=$runpath_var
1320941b2f0bdSmrg
1321011a29bacSmrg# Shared library path variable.
1321111a29bacSmrgshlibpath_var=$shlibpath_var
1321241b2f0bdSmrg
1321311a29bacSmrg# Is shlibpath searched before the hard-coded library search path?
1321411a29bacSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1321541b2f0bdSmrg
1321611a29bacSmrg# Format of library name prefix.
1321711a29bacSmrglibname_spec=$lt_libname_spec
1321841b2f0bdSmrg
1321911a29bacSmrg# List of archive names.  First name is the real one, the rest are links.
1322011a29bacSmrg# The last name is the one that the linker finds with -lNAME
1322111a29bacSmrglibrary_names_spec=$lt_library_names_spec
1322241b2f0bdSmrg
1322311a29bacSmrg# The coded name of the library, if different from the real name.
1322411a29bacSmrgsoname_spec=$lt_soname_spec
1322541b2f0bdSmrg
1322611a29bacSmrg# Permission mode override for installation of shared libraries.
1322711a29bacSmrginstall_override_mode=$lt_install_override_mode
1322841b2f0bdSmrg
1322911a29bacSmrg# Command to use after installation of a shared archive.
1323011a29bacSmrgpostinstall_cmds=$lt_postinstall_cmds
1323141b2f0bdSmrg
1323211a29bacSmrg# Command to use after uninstallation of a shared archive.
1323311a29bacSmrgpostuninstall_cmds=$lt_postuninstall_cmds
1323441b2f0bdSmrg
1323511a29bacSmrg# Commands used to finish a libtool library installation in a directory.
1323611a29bacSmrgfinish_cmds=$lt_finish_cmds
1323741b2f0bdSmrg
1323811a29bacSmrg# As "finish_cmds", except a single script fragment to be evaled but
1323911a29bacSmrg# not shown.
1324011a29bacSmrgfinish_eval=$lt_finish_eval
1324141b2f0bdSmrg
1324211a29bacSmrg# Whether we should hardcode library paths into libraries.
1324311a29bacSmrghardcode_into_libs=$hardcode_into_libs
1324441b2f0bdSmrg
1324511a29bacSmrg# Compile-time system search path for libraries.
1324611a29bacSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1324741b2f0bdSmrg
1324811a29bacSmrg# Run-time system search path for libraries.
1324911a29bacSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1325011245024Smrg
1325111a29bacSmrg# Whether dlopen is supported.
1325211a29bacSmrgdlopen_support=$enable_dlopen
1325311a29bacSmrg
1325411a29bacSmrg# Whether dlopen of programs is supported.
1325511a29bacSmrgdlopen_self=$enable_dlopen_self
1325641b2f0bdSmrg
1325711a29bacSmrg# Whether dlopen of statically linked programs is supported.
1325811a29bacSmrgdlopen_self_static=$enable_dlopen_self_static
1325911245024Smrg
1326011a29bacSmrg# Commands to strip libraries.
1326111a29bacSmrgold_striplib=$lt_old_striplib
1326211a29bacSmrgstriplib=$lt_striplib
1326341b2f0bdSmrg
1326441b2f0bdSmrg
1326511a29bacSmrg# The linker used to build libraries.
1326611a29bacSmrgLD=$lt_LD
1326711a29bacSmrg
1326811a29bacSmrg# How to create reloadable object files.
1326911a29bacSmrgreload_flag=$lt_reload_flag
1327011a29bacSmrgreload_cmds=$lt_reload_cmds
1327111a29bacSmrg
1327211a29bacSmrg# Commands used to build an old-style archive.
1327311a29bacSmrgold_archive_cmds=$lt_old_archive_cmds
1327441b2f0bdSmrg
1327511a29bacSmrg# A language specific compiler.
1327611a29bacSmrgCC=$lt_compiler
1327711245024Smrg
1327811a29bacSmrg# Is the compiler the GNU compiler?
1327911a29bacSmrgwith_gcc=$GCC
1328011245024Smrg
1328111a29bacSmrg# Compiler flag to turn off builtin functions.
1328211a29bacSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1328311245024Smrg
1328411a29bacSmrg# How to pass a linker flag through the compiler.
1328511a29bacSmrgwl=$lt_lt_prog_compiler_wl
1328641b2f0bdSmrg
1328711a29bacSmrg# Additional compiler flags for building library objects.
1328811a29bacSmrgpic_flag=$lt_lt_prog_compiler_pic
1328941b2f0bdSmrg
1329011a29bacSmrg# Compiler flag to prevent dynamic linking.
1329111a29bacSmrglink_static_flag=$lt_lt_prog_compiler_static
1329241b2f0bdSmrg
1329311a29bacSmrg# Does compiler simultaneously support -c and -o options?
1329411a29bacSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
1329541b2f0bdSmrg
1329611a29bacSmrg# Whether or not to add -lc for building shared libraries.
1329711a29bacSmrgbuild_libtool_need_lc=$archive_cmds_need_lc
1329841b2f0bdSmrg
1329911a29bacSmrg# Whether or not to disallow shared libs when runtime libs are static.
1330011a29bacSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1330111245024Smrg
1330211a29bacSmrg# Compiler flag to allow reflexive dlopens.
1330311a29bacSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1330411245024Smrg
1330511a29bacSmrg# Compiler flag to generate shared objects directly from archives.
1330611a29bacSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
1330711245024Smrg
1330811a29bacSmrg# Whether the compiler copes with passing no objects directly.
1330911a29bacSmrgcompiler_needs_object=$lt_compiler_needs_object
1331011245024Smrg
1331111a29bacSmrg# Create an old-style archive from a shared archive.
1331211a29bacSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1331341b2f0bdSmrg
1331411a29bacSmrg# Create a temporary old-style archive to link instead of a shared archive.
1331511a29bacSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1331611245024Smrg
1331711a29bacSmrg# Commands used to build a shared archive.
1331811a29bacSmrgarchive_cmds=$lt_archive_cmds
1331911a29bacSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds
1332011245024Smrg
1332111a29bacSmrg# Commands used to build a loadable module if different from building
1332211a29bacSmrg# a shared archive.
1332311a29bacSmrgmodule_cmds=$lt_module_cmds
1332411a29bacSmrgmodule_expsym_cmds=$lt_module_expsym_cmds
1332511245024Smrg
1332611a29bacSmrg# Whether we are building with GNU ld or not.
1332711a29bacSmrgwith_gnu_ld=$lt_with_gnu_ld
1332811245024Smrg
1332911a29bacSmrg# Flag that allows shared libraries with undefined symbols to be built.
1333011a29bacSmrgallow_undefined_flag=$lt_allow_undefined_flag
1333111245024Smrg
1333211a29bacSmrg# Flag that enforces no undefined symbols.
1333311a29bacSmrgno_undefined_flag=$lt_no_undefined_flag
1333411a29bacSmrg
1333511a29bacSmrg# Flag to hardcode \$libdir into a binary during linking.
1333611a29bacSmrg# This must work even if \$libdir does not exist
1333711a29bacSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1333811a29bacSmrg
1333911a29bacSmrg# If ld is used when linking, flag to hardcode \$libdir into a binary
1334011a29bacSmrg# during linking.  This must work even if \$libdir does not exist.
1334111a29bacSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1334211a29bacSmrg
1334311a29bacSmrg# Whether we need a single "-rpath" flag with a separated argument.
1334411a29bacSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator
1334511245024Smrg
1334611a29bacSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1334711a29bacSmrg# DIR into the resulting binary.
1334811a29bacSmrghardcode_direct=$hardcode_direct
1334911245024Smrg
1335011a29bacSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1335111a29bacSmrg# DIR into the resulting binary and the resulting library dependency is
1335211a29bacSmrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
1335311a29bacSmrg# library is relocated.
1335411a29bacSmrghardcode_direct_absolute=$hardcode_direct_absolute
1335511245024Smrg
1335611a29bacSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
1335711a29bacSmrg# into the resulting binary.
1335811a29bacSmrghardcode_minus_L=$hardcode_minus_L
1335911245024Smrg
1336011a29bacSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
1336111a29bacSmrg# into the resulting binary.
1336211a29bacSmrghardcode_shlibpath_var=$hardcode_shlibpath_var
1336311245024Smrg
1336411a29bacSmrg# Set to "yes" if building a shared library automatically hardcodes DIR
1336511a29bacSmrg# into the library and all subsequent libraries and executables linked
1336611a29bacSmrg# against it.
1336711a29bacSmrghardcode_automatic=$hardcode_automatic
1336811a29bacSmrg
1336911a29bacSmrg# Set to yes if linker adds runtime paths of dependent libraries
1337011a29bacSmrg# to runtime path list.
1337111a29bacSmrginherit_rpath=$inherit_rpath
1337211a29bacSmrg
1337311a29bacSmrg# Whether libtool must link a program against all its dependency libraries.
1337411a29bacSmrglink_all_deplibs=$link_all_deplibs
1337511a29bacSmrg
1337611a29bacSmrg# Fix the shell variable \$srcfile for the compiler.
1337711a29bacSmrgfix_srcfile_path=$lt_fix_srcfile_path
1337811a29bacSmrg
1337911a29bacSmrg# Set to "yes" if exported symbols are required.
1338011a29bacSmrgalways_export_symbols=$always_export_symbols
1338111a29bacSmrg
1338211a29bacSmrg# The commands to list exported symbols.
1338311a29bacSmrgexport_symbols_cmds=$lt_export_symbols_cmds
1338411a29bacSmrg
1338511a29bacSmrg# Symbols that should not be listed in the preloaded symbols.
1338611a29bacSmrgexclude_expsyms=$lt_exclude_expsyms
1338711a29bacSmrg
1338811a29bacSmrg# Symbols that must always be exported.
1338911a29bacSmrginclude_expsyms=$lt_include_expsyms
1339011a29bacSmrg
1339111a29bacSmrg# Commands necessary for linking programs (against libraries) with templates.
1339211a29bacSmrgprelink_cmds=$lt_prelink_cmds
1339311a29bacSmrg
1339411a29bacSmrg# Specify filename containing input files.
1339511a29bacSmrgfile_list_spec=$lt_file_list_spec
1339611a29bacSmrg
1339711a29bacSmrg# How to hardcode a shared library path into an executable.
1339811a29bacSmrghardcode_action=$hardcode_action
1339911a29bacSmrg
1340011a29bacSmrg# ### END LIBTOOL CONFIG
1340111a29bacSmrg
1340211a29bacSmrg_LT_EOF
1340311a29bacSmrg
1340411a29bacSmrg  case $host_os in
1340511a29bacSmrg  aix3*)
1340611a29bacSmrg    cat <<\_LT_EOF >> "$cfgfile"
1340711a29bacSmrg# AIX sometimes has problems with the GCC collect2 program.  For some
1340811a29bacSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems
1340911a29bacSmrg# vanish in a puff of smoke.
1341011a29bacSmrgif test "X${COLLECT_NAMES+set}" != Xset; then
1341111a29bacSmrg  COLLECT_NAMES=
1341211a29bacSmrg  export COLLECT_NAMES
1341311a29bacSmrgfi
1341411a29bacSmrg_LT_EOF
1341511245024Smrg    ;;
1341641b2f0bdSmrg  esac
1341741b2f0bdSmrg
1341811a29bacSmrg
1341911a29bacSmrgltmain="$ac_aux_dir/ltmain.sh"
1342011a29bacSmrg
1342111a29bacSmrg
1342211a29bacSmrg  # We use sed instead of cat because bash on DJGPP gets confused if
1342311a29bacSmrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1342411a29bacSmrg  # text mode, it properly converts lines to CR/LF.  This bash problem
1342511a29bacSmrg  # is reportedly fixed, but why not run on old versions too?
1342611a29bacSmrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1342711a29bacSmrg    || (rm -f "$cfgfile"; exit 1)
1342811a29bacSmrg
1342911a29bacSmrg  case $xsi_shell in
1343011a29bacSmrg  yes)
1343111a29bacSmrg    cat << \_LT_EOF >> "$cfgfile"
1343211a29bacSmrg
1343311a29bacSmrg# func_dirname file append nondir_replacement
1343411a29bacSmrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1343511a29bacSmrg# otherwise set result to NONDIR_REPLACEMENT.
1343611a29bacSmrgfunc_dirname ()
1343711a29bacSmrg{
1343811a29bacSmrg  case ${1} in
1343911a29bacSmrg    */*) func_dirname_result="${1%/*}${2}" ;;
1344011a29bacSmrg    *  ) func_dirname_result="${3}" ;;
1344111245024Smrg  esac
1344211a29bacSmrg}
1344341b2f0bdSmrg
1344411a29bacSmrg# func_basename file
1344511a29bacSmrgfunc_basename ()
1344611a29bacSmrg{
1344711a29bacSmrg  func_basename_result="${1##*/}"
1344811a29bacSmrg}
1344941b2f0bdSmrg
1345011a29bacSmrg# func_dirname_and_basename file append nondir_replacement
1345111a29bacSmrg# perform func_basename and func_dirname in a single function
1345211a29bacSmrg# call:
1345311a29bacSmrg#   dirname:  Compute the dirname of FILE.  If nonempty,
1345411a29bacSmrg#             add APPEND to the result, otherwise set result
1345511a29bacSmrg#             to NONDIR_REPLACEMENT.
1345611a29bacSmrg#             value returned in "$func_dirname_result"
1345711a29bacSmrg#   basename: Compute filename of FILE.
1345811a29bacSmrg#             value retuned in "$func_basename_result"
1345911a29bacSmrg# Implementation must be kept synchronized with func_dirname
1346011a29bacSmrg# and func_basename. For efficiency, we do not delegate to
1346111a29bacSmrg# those functions but instead duplicate the functionality here.
1346211a29bacSmrgfunc_dirname_and_basename ()
1346311a29bacSmrg{
1346411a29bacSmrg  case ${1} in
1346511a29bacSmrg    */*) func_dirname_result="${1%/*}${2}" ;;
1346611a29bacSmrg    *  ) func_dirname_result="${3}" ;;
1346711a29bacSmrg  esac
1346811a29bacSmrg  func_basename_result="${1##*/}"
1346911a29bacSmrg}
1347041b2f0bdSmrg
1347111a29bacSmrg# func_stripname prefix suffix name
1347211a29bacSmrg# strip PREFIX and SUFFIX off of NAME.
1347311a29bacSmrg# PREFIX and SUFFIX must not contain globbing or regex special
1347411a29bacSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1347511a29bacSmrg# dot (in which case that matches only a dot).
1347611a29bacSmrgfunc_stripname ()
1347711a29bacSmrg{
1347811a29bacSmrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1347911a29bacSmrg  # positional parameters, so assign one to ordinary parameter first.
1348011a29bacSmrg  func_stripname_result=${3}
1348111a29bacSmrg  func_stripname_result=${func_stripname_result#"${1}"}
1348211a29bacSmrg  func_stripname_result=${func_stripname_result%"${2}"}
1348311a29bacSmrg}
1348441b2f0bdSmrg
1348511a29bacSmrg# func_opt_split
1348611a29bacSmrgfunc_opt_split ()
1348711a29bacSmrg{
1348811a29bacSmrg  func_opt_split_opt=${1%%=*}
1348911a29bacSmrg  func_opt_split_arg=${1#*=}
1349011a29bacSmrg}
1349141b2f0bdSmrg
1349211a29bacSmrg# func_lo2o object
1349311a29bacSmrgfunc_lo2o ()
1349411a29bacSmrg{
1349511a29bacSmrg  case ${1} in
1349611a29bacSmrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1349711a29bacSmrg    *)    func_lo2o_result=${1} ;;
1349811245024Smrg  esac
1349911a29bacSmrg}
1350011a29bacSmrg
1350111a29bacSmrg# func_xform libobj-or-source
1350211a29bacSmrgfunc_xform ()
1350311a29bacSmrg{
1350411a29bacSmrg  func_xform_result=${1%.*}.lo
1350511a29bacSmrg}
1350611a29bacSmrg
1350711a29bacSmrg# func_arith arithmetic-term...
1350811a29bacSmrgfunc_arith ()
1350911a29bacSmrg{
1351011a29bacSmrg  func_arith_result=$(( $* ))
1351111a29bacSmrg}
1351211a29bacSmrg
1351311a29bacSmrg# func_len string
1351411a29bacSmrg# STRING may not start with a hyphen.
1351511a29bacSmrgfunc_len ()
1351611a29bacSmrg{
1351711a29bacSmrg  func_len_result=${#1}
1351811a29bacSmrg}
1351911a29bacSmrg
1352011a29bacSmrg_LT_EOF
1352111a29bacSmrg    ;;
1352211a29bacSmrg  *) # Bourne compatible functions.
1352311a29bacSmrg    cat << \_LT_EOF >> "$cfgfile"
1352411a29bacSmrg
1352511a29bacSmrg# func_dirname file append nondir_replacement
1352611a29bacSmrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1352711a29bacSmrg# otherwise set result to NONDIR_REPLACEMENT.
1352811a29bacSmrgfunc_dirname ()
1352911a29bacSmrg{
1353011a29bacSmrg  # Extract subdirectory from the argument.
1353111a29bacSmrg  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1353211a29bacSmrg  if test "X$func_dirname_result" = "X${1}"; then
1353311a29bacSmrg    func_dirname_result="${3}"
1353411a29bacSmrg  else
1353511a29bacSmrg    func_dirname_result="$func_dirname_result${2}"
1353611a29bacSmrg  fi
1353711a29bacSmrg}
1353811a29bacSmrg
1353911a29bacSmrg# func_basename file
1354011a29bacSmrgfunc_basename ()
1354111a29bacSmrg{
1354211a29bacSmrg  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1354311a29bacSmrg}
1354411a29bacSmrg
1354511a29bacSmrg
1354611a29bacSmrg# func_stripname prefix suffix name
1354711a29bacSmrg# strip PREFIX and SUFFIX off of NAME.
1354811a29bacSmrg# PREFIX and SUFFIX must not contain globbing or regex special
1354911a29bacSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1355011a29bacSmrg# dot (in which case that matches only a dot).
1355111a29bacSmrg# func_strip_suffix prefix name
1355211a29bacSmrgfunc_stripname ()
1355311a29bacSmrg{
1355411a29bacSmrg  case ${2} in
1355511a29bacSmrg    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
1355611a29bacSmrg    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1355741b2f0bdSmrg  esac
1355811a29bacSmrg}
1355911a29bacSmrg
1356011a29bacSmrg# sed scripts:
1356111a29bacSmrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1356211a29bacSmrgmy_sed_long_arg='1s/^-[^=]*=//'
1356311a29bacSmrg
1356411a29bacSmrg# func_opt_split
1356511a29bacSmrgfunc_opt_split ()
1356611a29bacSmrg{
1356711a29bacSmrg  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
1356811a29bacSmrg  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1356911a29bacSmrg}
1357011a29bacSmrg
1357111a29bacSmrg# func_lo2o object
1357211a29bacSmrgfunc_lo2o ()
1357311a29bacSmrg{
1357411a29bacSmrg  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1357511a29bacSmrg}
1357611a29bacSmrg
1357711a29bacSmrg# func_xform libobj-or-source
1357811a29bacSmrgfunc_xform ()
1357911a29bacSmrg{
1358011a29bacSmrg  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1358111a29bacSmrg}
1358241b2f0bdSmrg
1358311a29bacSmrg# func_arith arithmetic-term...
1358411a29bacSmrgfunc_arith ()
1358511a29bacSmrg{
1358611a29bacSmrg  func_arith_result=`expr "$@"`
1358711a29bacSmrg}
1358811245024Smrg
1358911a29bacSmrg# func_len string
1359011a29bacSmrg# STRING may not start with a hyphen.
1359111a29bacSmrgfunc_len ()
1359211a29bacSmrg{
1359311a29bacSmrg  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
1359411245024Smrg}
1359511a29bacSmrg
1359611a29bacSmrg_LT_EOF
1359711245024Smrgesac
1359811245024Smrg
1359911a29bacSmrgcase $lt_shell_append in
1360011a29bacSmrg  yes)
1360111a29bacSmrg    cat << \_LT_EOF >> "$cfgfile"
1360241b2f0bdSmrg
1360311a29bacSmrg# func_append var value
1360411a29bacSmrg# Append VALUE to the end of shell variable VAR.
1360511a29bacSmrgfunc_append ()
1360611a29bacSmrg{
1360711a29bacSmrg  eval "$1+=\$2"
1360811a29bacSmrg}
1360911a29bacSmrg_LT_EOF
1361011a29bacSmrg    ;;
1361111a29bacSmrg  *)
1361211a29bacSmrg    cat << \_LT_EOF >> "$cfgfile"
1361341b2f0bdSmrg
1361411a29bacSmrg# func_append var value
1361511a29bacSmrg# Append VALUE to the end of shell variable VAR.
1361611a29bacSmrgfunc_append ()
1361711a29bacSmrg{
1361811a29bacSmrg  eval "$1=\$$1\$2"
1361911a29bacSmrg}
1362041b2f0bdSmrg
1362111a29bacSmrg_LT_EOF
1362211a29bacSmrg    ;;
1362311245024Smrg  esac
1362441b2f0bdSmrg
1362541b2f0bdSmrg
1362611a29bacSmrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1362711a29bacSmrg    || (rm -f "$cfgfile"; exit 1)
1362811a29bacSmrg
1362911a29bacSmrg  mv -f "$cfgfile" "$ofile" ||
1363011a29bacSmrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1363111a29bacSmrg  chmod +x "$ofile"
1363211a29bacSmrg
1363341b2f0bdSmrg ;;
1363411245024Smrg
1363541b2f0bdSmrg  esac
1363611245024Smrgdone # for ac_tag
1363741b2f0bdSmrg
1363841b2f0bdSmrg
1363911a29bacSmrgas_fn_exit 0
1364041b2f0bdSmrg_ACEOF
1364141b2f0bdSmrgac_clean_files=$ac_clean_files_save
1364241b2f0bdSmrg
1364311245024Smrgtest $ac_write_fail = 0 ||
1364411a29bacSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1364511245024Smrg
1364641b2f0bdSmrg
1364741b2f0bdSmrg# configure is writing to config.log, and then calls config.status.
1364841b2f0bdSmrg# config.status does its own redirection, appending to config.log.
1364941b2f0bdSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
1365041b2f0bdSmrg# by configure, so config.status won't be able to write to it; its
1365141b2f0bdSmrg# output is simply discarded.  So we exec the FD to /dev/null,
1365241b2f0bdSmrg# effectively closing config.log, so it can be properly (re)opened and
1365341b2f0bdSmrg# appended to by config.status.  When coming back to configure, we
1365441b2f0bdSmrg# need to make the FD available again.
1365541b2f0bdSmrgif test "$no_create" != yes; then
1365641b2f0bdSmrg  ac_cs_success=:
1365741b2f0bdSmrg  ac_config_status_args=
1365841b2f0bdSmrg  test "$silent" = yes &&
1365941b2f0bdSmrg    ac_config_status_args="$ac_config_status_args --quiet"
1366041b2f0bdSmrg  exec 5>/dev/null
1366141b2f0bdSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1366241b2f0bdSmrg  exec 5>>config.log
1366341b2f0bdSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1366441b2f0bdSmrg  # would make configure fail if this is the last instruction.
1366511a29bacSmrg  $ac_cs_success || as_fn_exit 1
1366641b2f0bdSmrgfi
1366711245024Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1366811a29bacSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1366911245024Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1367011245024Smrgfi
1367141b2f0bdSmrg
13672