configure revision 2a51b5be
132b578d3Smrg#! /bin/sh
232b578d3Smrg# Guess values for system-dependent variables and create Makefiles.
32a51b5beSmrg# Generated by GNU Autoconf 2.63 for xf86-video-mach64 6.8.2.
432b578d3Smrg#
532b578d3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
632b578d3Smrg#
732b578d3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
82a51b5beSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
932b578d3Smrg# This configure script is free software; the Free Software Foundation
1032b578d3Smrg# gives unlimited permission to copy, distribute and modify it.
1132b578d3Smrg## --------------------- ##
1232b578d3Smrg## M4sh Initialization.  ##
1332b578d3Smrg## --------------------- ##
1432b578d3Smrg
1532b578d3Smrg# Be more Bourne compatible
1632b578d3SmrgDUALCASE=1; export DUALCASE # for MKS sh
1732b578d3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1832b578d3Smrg  emulate sh
1932b578d3Smrg  NULLCMD=:
202a51b5beSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2132b578d3Smrg  # is contrary to our usage.  Disable this feature.
2232b578d3Smrg  alias -g '${1+"$@"}'='"$@"'
2332b578d3Smrg  setopt NO_GLOB_SUBST
2432b578d3Smrgelse
2532b578d3Smrg  case `(set -o) 2>/dev/null` in
2632b578d3Smrg  *posix*) set -o posix ;;
2732b578d3Smrgesac
2832b578d3Smrg
2932b578d3Smrgfi
3032b578d3Smrg
3132b578d3Smrg
3232b578d3Smrg
3332b578d3Smrg
3432b578d3Smrg# PATH needs CR
3532b578d3Smrg# Avoid depending upon Character Ranges.
3632b578d3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3732b578d3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3832b578d3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3932b578d3Smrgas_cr_digits='0123456789'
4032b578d3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4132b578d3Smrg
422a51b5beSmrgas_nl='
432a51b5beSmrg'
442a51b5beSmrgexport as_nl
452a51b5beSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
462a51b5beSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
472a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
482a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
492a51b5beSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
502a51b5beSmrg  as_echo='printf %s\n'
512a51b5beSmrg  as_echo_n='printf %s'
522a51b5beSmrgelse
532a51b5beSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
542a51b5beSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
552a51b5beSmrg    as_echo_n='/usr/ucb/echo -n'
5632b578d3Smrg  else
572a51b5beSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
582a51b5beSmrg    as_echo_n_body='eval
592a51b5beSmrg      arg=$1;
602a51b5beSmrg      case $arg in
612a51b5beSmrg      *"$as_nl"*)
622a51b5beSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
632a51b5beSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
642a51b5beSmrg      esac;
652a51b5beSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
662a51b5beSmrg    '
672a51b5beSmrg    export as_echo_n_body
682a51b5beSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6932b578d3Smrg  fi
702a51b5beSmrg  export as_echo_body
712a51b5beSmrg  as_echo='sh -c $as_echo_body as_echo'
722a51b5beSmrgfi
732a51b5beSmrg
742a51b5beSmrg# The user is always right.
752a51b5beSmrgif test "${PATH_SEPARATOR+set}" != set; then
762a51b5beSmrg  PATH_SEPARATOR=:
772a51b5beSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
782a51b5beSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
792a51b5beSmrg      PATH_SEPARATOR=';'
802a51b5beSmrg  }
8132b578d3Smrgfi
8232b578d3Smrg
8332b578d3Smrg# Support unset when possible.
8432b578d3Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8532b578d3Smrg  as_unset=unset
8632b578d3Smrgelse
8732b578d3Smrg  as_unset=false
8832b578d3Smrgfi
8932b578d3Smrg
9032b578d3Smrg
9132b578d3Smrg# IFS
9232b578d3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
9332b578d3Smrg# there to prevent editors from complaining about space-tab.
9432b578d3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9532b578d3Smrg# splitting by setting IFS to empty value.)
9632b578d3SmrgIFS=" ""	$as_nl"
9732b578d3Smrg
9832b578d3Smrg# Find who we are.  Look in the path if we contain no directory separator.
9932b578d3Smrgcase $0 in
10032b578d3Smrg  *[\\/]* ) as_myself=$0 ;;
10132b578d3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232b578d3Smrgfor as_dir in $PATH
10332b578d3Smrgdo
10432b578d3Smrg  IFS=$as_save_IFS
10532b578d3Smrg  test -z "$as_dir" && as_dir=.
10632b578d3Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10732b578d3Smrgdone
10832b578d3SmrgIFS=$as_save_IFS
10932b578d3Smrg
11032b578d3Smrg     ;;
11132b578d3Smrgesac
11232b578d3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11332b578d3Smrg# in which case we are not to be found in the path.
11432b578d3Smrgif test "x$as_myself" = x; then
11532b578d3Smrg  as_myself=$0
11632b578d3Smrgfi
11732b578d3Smrgif test ! -f "$as_myself"; then
1182a51b5beSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11932b578d3Smrg  { (exit 1); exit 1; }
12032b578d3Smrgfi
12132b578d3Smrg
12232b578d3Smrg# Work around bugs in pre-3.0 UWIN ksh.
12332b578d3Smrgfor as_var in ENV MAIL MAILPATH
12432b578d3Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12532b578d3Smrgdone
12632b578d3SmrgPS1='$ '
12732b578d3SmrgPS2='> '
12832b578d3SmrgPS4='+ '
12932b578d3Smrg
13032b578d3Smrg# NLS nuisances.
1312a51b5beSmrgLC_ALL=C
1322a51b5beSmrgexport LC_ALL
1332a51b5beSmrgLANGUAGE=C
1342a51b5beSmrgexport LANGUAGE
13532b578d3Smrg
13632b578d3Smrg# Required to use basename.
13732b578d3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
13832b578d3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13932b578d3Smrg  as_expr=expr
14032b578d3Smrgelse
14132b578d3Smrg  as_expr=false
14232b578d3Smrgfi
14332b578d3Smrg
14432b578d3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14532b578d3Smrg  as_basename=basename
14632b578d3Smrgelse
14732b578d3Smrg  as_basename=false
14832b578d3Smrgfi
14932b578d3Smrg
15032b578d3Smrg
15132b578d3Smrg# Name of the executable.
15232b578d3Smrgas_me=`$as_basename -- "$0" ||
15332b578d3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15432b578d3Smrg	 X"$0" : 'X\(//\)$' \| \
15532b578d3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1562a51b5beSmrg$as_echo X/"$0" |
15732b578d3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
15832b578d3Smrg	    s//\1/
15932b578d3Smrg	    q
16032b578d3Smrg	  }
16132b578d3Smrg	  /^X\/\(\/\/\)$/{
16232b578d3Smrg	    s//\1/
16332b578d3Smrg	    q
16432b578d3Smrg	  }
16532b578d3Smrg	  /^X\/\(\/\).*/{
16632b578d3Smrg	    s//\1/
16732b578d3Smrg	    q
16832b578d3Smrg	  }
16932b578d3Smrg	  s/.*/./; q'`
17032b578d3Smrg
17132b578d3Smrg# CDPATH.
17232b578d3Smrg$as_unset CDPATH
17332b578d3Smrg
17432b578d3Smrg
17532b578d3Smrgif test "x$CONFIG_SHELL" = x; then
17632b578d3Smrg  if (eval ":") 2>/dev/null; then
17732b578d3Smrg  as_have_required=yes
17832b578d3Smrgelse
17932b578d3Smrg  as_have_required=no
18032b578d3Smrgfi
18132b578d3Smrg
1822a51b5beSmrg  if test $as_have_required = yes &&	 (eval ":
18332b578d3Smrg(as_func_return () {
18432b578d3Smrg  (exit \$1)
18532b578d3Smrg}
18632b578d3Smrgas_func_success () {
18732b578d3Smrg  as_func_return 0
18832b578d3Smrg}
18932b578d3Smrgas_func_failure () {
19032b578d3Smrg  as_func_return 1
19132b578d3Smrg}
19232b578d3Smrgas_func_ret_success () {
19332b578d3Smrg  return 0
19432b578d3Smrg}
19532b578d3Smrgas_func_ret_failure () {
19632b578d3Smrg  return 1
19732b578d3Smrg}
19832b578d3Smrg
19932b578d3Smrgexitcode=0
20032b578d3Smrgif as_func_success; then
20132b578d3Smrg  :
20232b578d3Smrgelse
20332b578d3Smrg  exitcode=1
20432b578d3Smrg  echo as_func_success failed.
20532b578d3Smrgfi
20632b578d3Smrg
20732b578d3Smrgif as_func_failure; then
20832b578d3Smrg  exitcode=1
20932b578d3Smrg  echo as_func_failure succeeded.
21032b578d3Smrgfi
21132b578d3Smrg
21232b578d3Smrgif as_func_ret_success; then
21332b578d3Smrg  :
21432b578d3Smrgelse
21532b578d3Smrg  exitcode=1
21632b578d3Smrg  echo as_func_ret_success failed.
21732b578d3Smrgfi
21832b578d3Smrg
21932b578d3Smrgif as_func_ret_failure; then
22032b578d3Smrg  exitcode=1
22132b578d3Smrg  echo as_func_ret_failure succeeded.
22232b578d3Smrgfi
22332b578d3Smrg
22432b578d3Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
22532b578d3Smrg  :
22632b578d3Smrgelse
22732b578d3Smrg  exitcode=1
22832b578d3Smrg  echo positional parameters were not saved.
22932b578d3Smrgfi
23032b578d3Smrg
23132b578d3Smrgtest \$exitcode = 0) || { (exit 1); exit 1; }
23232b578d3Smrg
23332b578d3Smrg(
23432b578d3Smrg  as_lineno_1=\$LINENO
23532b578d3Smrg  as_lineno_2=\$LINENO
23632b578d3Smrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
23732b578d3Smrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
23832b578d3Smrg") 2> /dev/null; then
23932b578d3Smrg  :
24032b578d3Smrgelse
24132b578d3Smrg  as_candidate_shells=
24232b578d3Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24332b578d3Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24432b578d3Smrgdo
24532b578d3Smrg  IFS=$as_save_IFS
24632b578d3Smrg  test -z "$as_dir" && as_dir=.
24732b578d3Smrg  case $as_dir in
24832b578d3Smrg	 /*)
24932b578d3Smrg	   for as_base in sh bash ksh sh5; do
25032b578d3Smrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
25132b578d3Smrg	   done;;
25232b578d3Smrg       esac
25332b578d3Smrgdone
25432b578d3SmrgIFS=$as_save_IFS
25532b578d3Smrg
25632b578d3Smrg
25732b578d3Smrg      for as_shell in $as_candidate_shells $SHELL; do
25832b578d3Smrg	 # Try only shells that exist, to save several forks.
25932b578d3Smrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
26032b578d3Smrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
26132b578d3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26232b578d3Smrg  emulate sh
26332b578d3Smrg  NULLCMD=:
2642a51b5beSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26532b578d3Smrg  # is contrary to our usage.  Disable this feature.
26632b578d3Smrg  alias -g '${1+"$@"}'='"$@"'
26732b578d3Smrg  setopt NO_GLOB_SUBST
26832b578d3Smrgelse
26932b578d3Smrg  case `(set -o) 2>/dev/null` in
27032b578d3Smrg  *posix*) set -o posix ;;
27132b578d3Smrgesac
27232b578d3Smrg
27332b578d3Smrgfi
27432b578d3Smrg
27532b578d3Smrg
27632b578d3Smrg:
27732b578d3Smrg_ASEOF
27832b578d3Smrg}; then
27932b578d3Smrg  CONFIG_SHELL=$as_shell
28032b578d3Smrg	       as_have_required=yes
28132b578d3Smrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
28232b578d3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28332b578d3Smrg  emulate sh
28432b578d3Smrg  NULLCMD=:
2852a51b5beSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28632b578d3Smrg  # is contrary to our usage.  Disable this feature.
28732b578d3Smrg  alias -g '${1+"$@"}'='"$@"'
28832b578d3Smrg  setopt NO_GLOB_SUBST
28932b578d3Smrgelse
29032b578d3Smrg  case `(set -o) 2>/dev/null` in
29132b578d3Smrg  *posix*) set -o posix ;;
29232b578d3Smrgesac
29332b578d3Smrg
29432b578d3Smrgfi
29532b578d3Smrg
29632b578d3Smrg
29732b578d3Smrg:
29832b578d3Smrg(as_func_return () {
29932b578d3Smrg  (exit $1)
30032b578d3Smrg}
30132b578d3Smrgas_func_success () {
30232b578d3Smrg  as_func_return 0
30332b578d3Smrg}
30432b578d3Smrgas_func_failure () {
30532b578d3Smrg  as_func_return 1
30632b578d3Smrg}
30732b578d3Smrgas_func_ret_success () {
30832b578d3Smrg  return 0
30932b578d3Smrg}
31032b578d3Smrgas_func_ret_failure () {
31132b578d3Smrg  return 1
31232b578d3Smrg}
31332b578d3Smrg
31432b578d3Smrgexitcode=0
31532b578d3Smrgif as_func_success; then
31632b578d3Smrg  :
31732b578d3Smrgelse
31832b578d3Smrg  exitcode=1
31932b578d3Smrg  echo as_func_success failed.
32032b578d3Smrgfi
32132b578d3Smrg
32232b578d3Smrgif as_func_failure; then
32332b578d3Smrg  exitcode=1
32432b578d3Smrg  echo as_func_failure succeeded.
32532b578d3Smrgfi
32632b578d3Smrg
32732b578d3Smrgif as_func_ret_success; then
32832b578d3Smrg  :
32932b578d3Smrgelse
33032b578d3Smrg  exitcode=1
33132b578d3Smrg  echo as_func_ret_success failed.
33232b578d3Smrgfi
33332b578d3Smrg
33432b578d3Smrgif as_func_ret_failure; then
33532b578d3Smrg  exitcode=1
33632b578d3Smrg  echo as_func_ret_failure succeeded.
33732b578d3Smrgfi
33832b578d3Smrg
33932b578d3Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then
34032b578d3Smrg  :
34132b578d3Smrgelse
34232b578d3Smrg  exitcode=1
34332b578d3Smrg  echo positional parameters were not saved.
34432b578d3Smrgfi
34532b578d3Smrg
34632b578d3Smrgtest $exitcode = 0) || { (exit 1); exit 1; }
34732b578d3Smrg
34832b578d3Smrg(
34932b578d3Smrg  as_lineno_1=$LINENO
35032b578d3Smrg  as_lineno_2=$LINENO
35132b578d3Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
35232b578d3Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
35332b578d3Smrg
35432b578d3Smrg_ASEOF
35532b578d3Smrg}; then
35632b578d3Smrg  break
35732b578d3Smrgfi
35832b578d3Smrg
35932b578d3Smrgfi
36032b578d3Smrg
36132b578d3Smrg      done
36232b578d3Smrg
36332b578d3Smrg      if test "x$CONFIG_SHELL" != x; then
36432b578d3Smrg  for as_var in BASH_ENV ENV
3652a51b5beSmrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3662a51b5beSmrg	done
3672a51b5beSmrg	export CONFIG_SHELL
3682a51b5beSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
36932b578d3Smrgfi
37032b578d3Smrg
37132b578d3Smrg
37232b578d3Smrg    if test $as_have_required = no; then
37332b578d3Smrg  echo This script requires a shell more modern than all the
37432b578d3Smrg      echo shells that I found on your system.  Please install a
37532b578d3Smrg      echo modern shell, or manually run the script under such a
37632b578d3Smrg      echo shell if you do have one.
37732b578d3Smrg      { (exit 1); exit 1; }
37832b578d3Smrgfi
37932b578d3Smrg
38032b578d3Smrg
38132b578d3Smrgfi
38232b578d3Smrg
38332b578d3Smrgfi
38432b578d3Smrg
38532b578d3Smrg
38632b578d3Smrg
38732b578d3Smrg(eval "as_func_return () {
38832b578d3Smrg  (exit \$1)
38932b578d3Smrg}
39032b578d3Smrgas_func_success () {
39132b578d3Smrg  as_func_return 0
39232b578d3Smrg}
39332b578d3Smrgas_func_failure () {
39432b578d3Smrg  as_func_return 1
39532b578d3Smrg}
39632b578d3Smrgas_func_ret_success () {
39732b578d3Smrg  return 0
39832b578d3Smrg}
39932b578d3Smrgas_func_ret_failure () {
40032b578d3Smrg  return 1
40132b578d3Smrg}
40232b578d3Smrg
40332b578d3Smrgexitcode=0
40432b578d3Smrgif as_func_success; then
40532b578d3Smrg  :
40632b578d3Smrgelse
40732b578d3Smrg  exitcode=1
40832b578d3Smrg  echo as_func_success failed.
40932b578d3Smrgfi
41032b578d3Smrg
41132b578d3Smrgif as_func_failure; then
41232b578d3Smrg  exitcode=1
41332b578d3Smrg  echo as_func_failure succeeded.
41432b578d3Smrgfi
41532b578d3Smrg
41632b578d3Smrgif as_func_ret_success; then
41732b578d3Smrg  :
41832b578d3Smrgelse
41932b578d3Smrg  exitcode=1
42032b578d3Smrg  echo as_func_ret_success failed.
42132b578d3Smrgfi
42232b578d3Smrg
42332b578d3Smrgif as_func_ret_failure; then
42432b578d3Smrg  exitcode=1
42532b578d3Smrg  echo as_func_ret_failure succeeded.
42632b578d3Smrgfi
42732b578d3Smrg
42832b578d3Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
42932b578d3Smrg  :
43032b578d3Smrgelse
43132b578d3Smrg  exitcode=1
43232b578d3Smrg  echo positional parameters were not saved.
43332b578d3Smrgfi
43432b578d3Smrg
43532b578d3Smrgtest \$exitcode = 0") || {
43632b578d3Smrg  echo No shell found that supports shell functions.
4372a51b5beSmrg  echo Please tell bug-autoconf@gnu.org about your system,
4382a51b5beSmrg  echo including any error possibly output before this message.
4392a51b5beSmrg  echo This can help us improve future autoconf versions.
4402a51b5beSmrg  echo Configuration will now proceed without shell functions.
44132b578d3Smrg}
44232b578d3Smrg
44332b578d3Smrg
44432b578d3Smrg
44532b578d3Smrg  as_lineno_1=$LINENO
44632b578d3Smrg  as_lineno_2=$LINENO
44732b578d3Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
44832b578d3Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44932b578d3Smrg
45032b578d3Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45132b578d3Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
45232b578d3Smrg  # line-number line after each line using $LINENO; the second 'sed'
45332b578d3Smrg  # does the real work.  The second script uses 'N' to pair each
45432b578d3Smrg  # line-number line with the line containing $LINENO, and appends
45532b578d3Smrg  # trailing '-' during substitution so that $LINENO is not a special
45632b578d3Smrg  # case at line end.
45732b578d3Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45832b578d3Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
45932b578d3Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
46032b578d3Smrg  sed -n '
46132b578d3Smrg    p
46232b578d3Smrg    /[$]LINENO/=
46332b578d3Smrg  ' <$as_myself |
46432b578d3Smrg    sed '
46532b578d3Smrg      s/[$]LINENO.*/&-/
46632b578d3Smrg      t lineno
46732b578d3Smrg      b
46832b578d3Smrg      :lineno
46932b578d3Smrg      N
47032b578d3Smrg      :loop
47132b578d3Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47232b578d3Smrg      t loop
47332b578d3Smrg      s/-\n.*//
47432b578d3Smrg    ' >$as_me.lineno &&
47532b578d3Smrg  chmod +x "$as_me.lineno" ||
4762a51b5beSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47732b578d3Smrg   { (exit 1); exit 1; }; }
47832b578d3Smrg
47932b578d3Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
48032b578d3Smrg  # (the dirname of $[0] is not the place where we might find the
48132b578d3Smrg  # original and so on.  Autoconf is especially sensitive to this).
48232b578d3Smrg  . "./$as_me.lineno"
48332b578d3Smrg  # Exit status is that of the last command.
48432b578d3Smrg  exit
48532b578d3Smrg}
48632b578d3Smrg
48732b578d3Smrg
48832b578d3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48932b578d3Smrg  as_dirname=dirname
49032b578d3Smrgelse
49132b578d3Smrg  as_dirname=false
49232b578d3Smrgfi
49332b578d3Smrg
49432b578d3SmrgECHO_C= ECHO_N= ECHO_T=
49532b578d3Smrgcase `echo -n x` in
49632b578d3Smrg-n*)
49732b578d3Smrg  case `echo 'x\c'` in
49832b578d3Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
49932b578d3Smrg  *)   ECHO_C='\c';;
50032b578d3Smrg  esac;;
50132b578d3Smrg*)
50232b578d3Smrg  ECHO_N='-n';;
50332b578d3Smrgesac
50432b578d3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
50532b578d3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
50632b578d3Smrg  as_expr=expr
50732b578d3Smrgelse
50832b578d3Smrg  as_expr=false
50932b578d3Smrgfi
51032b578d3Smrg
51132b578d3Smrgrm -f conf$$ conf$$.exe conf$$.file
51232b578d3Smrgif test -d conf$$.dir; then
51332b578d3Smrg  rm -f conf$$.dir/conf$$.file
51432b578d3Smrgelse
51532b578d3Smrg  rm -f conf$$.dir
5162a51b5beSmrg  mkdir conf$$.dir 2>/dev/null
5172a51b5beSmrgfi
5182a51b5beSmrgif (echo >conf$$.file) 2>/dev/null; then
5192a51b5beSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5202a51b5beSmrg    as_ln_s='ln -s'
5212a51b5beSmrg    # ... but there are two gotchas:
5222a51b5beSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5232a51b5beSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5242a51b5beSmrg    # In both cases, we have to default to `cp -p'.
5252a51b5beSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5262a51b5beSmrg      as_ln_s='cp -p'
5272a51b5beSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5282a51b5beSmrg    as_ln_s=ln
5292a51b5beSmrg  else
53032b578d3Smrg    as_ln_s='cp -p'
5312a51b5beSmrg  fi
53232b578d3Smrgelse
53332b578d3Smrg  as_ln_s='cp -p'
53432b578d3Smrgfi
53532b578d3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53632b578d3Smrgrmdir conf$$.dir 2>/dev/null
53732b578d3Smrg
53832b578d3Smrgif mkdir -p . 2>/dev/null; then
53932b578d3Smrg  as_mkdir_p=:
54032b578d3Smrgelse
54132b578d3Smrg  test -d ./-p && rmdir ./-p
54232b578d3Smrg  as_mkdir_p=false
54332b578d3Smrgfi
54432b578d3Smrg
54532b578d3Smrgif test -x / >/dev/null 2>&1; then
54632b578d3Smrg  as_test_x='test -x'
54732b578d3Smrgelse
54832b578d3Smrg  if ls -dL / >/dev/null 2>&1; then
54932b578d3Smrg    as_ls_L_option=L
55032b578d3Smrg  else
55132b578d3Smrg    as_ls_L_option=
55232b578d3Smrg  fi
55332b578d3Smrg  as_test_x='
55432b578d3Smrg    eval sh -c '\''
55532b578d3Smrg      if test -d "$1"; then
5562a51b5beSmrg	test -d "$1/.";
55732b578d3Smrg      else
55832b578d3Smrg	case $1 in
5592a51b5beSmrg	-*)set "./$1";;
56032b578d3Smrg	esac;
56132b578d3Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56232b578d3Smrg	???[sx]*):;;*)false;;esac;fi
56332b578d3Smrg    '\'' sh
56432b578d3Smrg  '
56532b578d3Smrgfi
56632b578d3Smrgas_executable_p=$as_test_x
56732b578d3Smrg
56832b578d3Smrg# Sed expression to map a string onto a valid CPP name.
56932b578d3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
57032b578d3Smrg
57132b578d3Smrg# Sed expression to map a string onto a valid variable name.
57232b578d3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
57332b578d3Smrg
57432b578d3Smrg
57532b578d3Smrg
57632b578d3Smrg
57732b578d3Smrg# Check that we are running under the correct shell.
57832b578d3SmrgSHELL=${CONFIG_SHELL-/bin/sh}
57932b578d3Smrg
58032b578d3Smrgcase X$ECHO in
58132b578d3SmrgX*--fallback-echo)
58232b578d3Smrg  # Remove one level of quotation (which was required for Make).
58332b578d3Smrg  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
58432b578d3Smrg  ;;
58532b578d3Smrgesac
58632b578d3Smrg
58732b578d3Smrgecho=${ECHO-echo}
58832b578d3Smrgif test "X$1" = X--no-reexec; then
58932b578d3Smrg  # Discard the --no-reexec flag, and continue.
59032b578d3Smrg  shift
59132b578d3Smrgelif test "X$1" = X--fallback-echo; then
59232b578d3Smrg  # Avoid inline document here, it may be left over
59332b578d3Smrg  :
59432b578d3Smrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
59532b578d3Smrg  # Yippee, $echo works!
59632b578d3Smrg  :
59732b578d3Smrgelse
59832b578d3Smrg  # Restart under the correct shell.
59932b578d3Smrg  exec $SHELL "$0" --no-reexec ${1+"$@"}
60032b578d3Smrgfi
60132b578d3Smrg
60232b578d3Smrgif test "X$1" = X--fallback-echo; then
60332b578d3Smrg  # used as fallback echo
60432b578d3Smrg  shift
60532b578d3Smrg  cat <<EOF
60632b578d3Smrg$*
60732b578d3SmrgEOF
60832b578d3Smrg  exit 0
60932b578d3Smrgfi
61032b578d3Smrg
61132b578d3Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
61232b578d3Smrg# if CDPATH is set.
61332b578d3Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
61432b578d3Smrg
61532b578d3Smrgif test -z "$ECHO"; then
61632b578d3Smrgif test "X${echo_test_string+set}" != Xset; then
61732b578d3Smrg# find a string as large as possible, as long as the shell can cope with it
61832b578d3Smrg  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
61932b578d3Smrg    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
62032b578d3Smrg    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
62132b578d3Smrg       echo_test_string=`eval $cmd` &&
62232b578d3Smrg       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
62332b578d3Smrg    then
62432b578d3Smrg      break
62532b578d3Smrg    fi
62632b578d3Smrg  done
62732b578d3Smrgfi
62832b578d3Smrg
62932b578d3Smrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
63032b578d3Smrg   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
63132b578d3Smrg   test "X$echo_testing_string" = "X$echo_test_string"; then
63232b578d3Smrg  :
63332b578d3Smrgelse
63432b578d3Smrg  # The Solaris, AIX, and Digital Unix default echo programs unquote
63532b578d3Smrg  # backslashes.  This makes it impossible to quote backslashes using
63632b578d3Smrg  #   echo "$something" | sed 's/\\/\\\\/g'
63732b578d3Smrg  #
63832b578d3Smrg  # So, first we look for a working echo in the user's PATH.
63932b578d3Smrg
64032b578d3Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
64132b578d3Smrg  for dir in $PATH /usr/ucb; do
64232b578d3Smrg    IFS="$lt_save_ifs"
64332b578d3Smrg    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
64432b578d3Smrg       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
64532b578d3Smrg       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
64632b578d3Smrg       test "X$echo_testing_string" = "X$echo_test_string"; then
64732b578d3Smrg      echo="$dir/echo"
64832b578d3Smrg      break
64932b578d3Smrg    fi
65032b578d3Smrg  done
65132b578d3Smrg  IFS="$lt_save_ifs"
65232b578d3Smrg
65332b578d3Smrg  if test "X$echo" = Xecho; then
65432b578d3Smrg    # We didn't find a better echo, so look for alternatives.
65532b578d3Smrg    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
65632b578d3Smrg       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
65732b578d3Smrg       test "X$echo_testing_string" = "X$echo_test_string"; then
65832b578d3Smrg      # This shell has a builtin print -r that does the trick.
65932b578d3Smrg      echo='print -r'
66032b578d3Smrg    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
66132b578d3Smrg	 test "X$CONFIG_SHELL" != X/bin/ksh; then
66232b578d3Smrg      # If we have ksh, try running configure again with it.
66332b578d3Smrg      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
66432b578d3Smrg      export ORIGINAL_CONFIG_SHELL
66532b578d3Smrg      CONFIG_SHELL=/bin/ksh
66632b578d3Smrg      export CONFIG_SHELL
66732b578d3Smrg      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
66832b578d3Smrg    else
66932b578d3Smrg      # Try using printf.
67032b578d3Smrg      echo='printf %s\n'
67132b578d3Smrg      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
67232b578d3Smrg	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
67332b578d3Smrg	 test "X$echo_testing_string" = "X$echo_test_string"; then
67432b578d3Smrg	# Cool, printf works
67532b578d3Smrg	:
67632b578d3Smrg      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
67732b578d3Smrg	   test "X$echo_testing_string" = 'X\t' &&
67832b578d3Smrg	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
67932b578d3Smrg	   test "X$echo_testing_string" = "X$echo_test_string"; then
68032b578d3Smrg	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
68132b578d3Smrg	export CONFIG_SHELL
68232b578d3Smrg	SHELL="$CONFIG_SHELL"
68332b578d3Smrg	export SHELL
68432b578d3Smrg	echo="$CONFIG_SHELL $0 --fallback-echo"
68532b578d3Smrg      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
68632b578d3Smrg	   test "X$echo_testing_string" = 'X\t' &&
68732b578d3Smrg	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
68832b578d3Smrg	   test "X$echo_testing_string" = "X$echo_test_string"; then
68932b578d3Smrg	echo="$CONFIG_SHELL $0 --fallback-echo"
69032b578d3Smrg      else
69132b578d3Smrg	# maybe with a smaller string...
69232b578d3Smrg	prev=:
69332b578d3Smrg
69432b578d3Smrg	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
69532b578d3Smrg	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
69632b578d3Smrg	  then
69732b578d3Smrg	    break
69832b578d3Smrg	  fi
69932b578d3Smrg	  prev="$cmd"
70032b578d3Smrg	done
70132b578d3Smrg
70232b578d3Smrg	if test "$prev" != 'sed 50q "$0"'; then
70332b578d3Smrg	  echo_test_string=`eval $prev`
70432b578d3Smrg	  export echo_test_string
70532b578d3Smrg	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
70632b578d3Smrg	else
70732b578d3Smrg	  # Oops.  We lost completely, so just stick with echo.
70832b578d3Smrg	  echo=echo
70932b578d3Smrg	fi
71032b578d3Smrg      fi
71132b578d3Smrg    fi
71232b578d3Smrg  fi
71332b578d3Smrgfi
71432b578d3Smrgfi
71532b578d3Smrg
71632b578d3Smrg# Copy echo and quote the copy suitably for passing to libtool from
71732b578d3Smrg# the Makefile, instead of quoting the original, which is used later.
71832b578d3SmrgECHO=$echo
71932b578d3Smrgif test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
72032b578d3Smrg   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
72132b578d3Smrgfi
72232b578d3Smrg
72332b578d3Smrg
72432b578d3Smrg
72532b578d3Smrg
72632b578d3Smrgtagnames=${tagnames+${tagnames},}CXX
72732b578d3Smrg
72832b578d3Smrgtagnames=${tagnames+${tagnames},}F77
72932b578d3Smrg
73032b578d3Smrgexec 7<&0 </dev/null 6>&1
73132b578d3Smrg
73232b578d3Smrg# Name of the host.
73332b578d3Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
73432b578d3Smrg# so uname gets run too.
73532b578d3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
73632b578d3Smrg
73732b578d3Smrg#
73832b578d3Smrg# Initializations.
73932b578d3Smrg#
74032b578d3Smrgac_default_prefix=/usr/local
74132b578d3Smrgac_clean_files=
74232b578d3Smrgac_config_libobj_dir=.
74332b578d3SmrgLIBOBJS=
74432b578d3Smrgcross_compiling=no
74532b578d3Smrgsubdirs=
74632b578d3SmrgMFLAGS=
74732b578d3SmrgMAKEFLAGS=
74832b578d3SmrgSHELL=${CONFIG_SHELL-/bin/sh}
74932b578d3Smrg
75032b578d3Smrg# Identity of this package.
75132b578d3SmrgPACKAGE_NAME='xf86-video-mach64'
75232b578d3SmrgPACKAGE_TARNAME='xf86-video-mach64'
7532a51b5beSmrgPACKAGE_VERSION='6.8.2'
7542a51b5beSmrgPACKAGE_STRING='xf86-video-mach64 6.8.2'
75532b578d3SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
75632b578d3Smrg
75732b578d3Smrgac_unique_file="Makefile.am"
75832b578d3Smrg# Factoring default headers for most tests.
75932b578d3Smrgac_includes_default="\
76032b578d3Smrg#include <stdio.h>
76132b578d3Smrg#ifdef HAVE_SYS_TYPES_H
76232b578d3Smrg# include <sys/types.h>
76332b578d3Smrg#endif
76432b578d3Smrg#ifdef HAVE_SYS_STAT_H
76532b578d3Smrg# include <sys/stat.h>
76632b578d3Smrg#endif
76732b578d3Smrg#ifdef STDC_HEADERS
76832b578d3Smrg# include <stdlib.h>
76932b578d3Smrg# include <stddef.h>
77032b578d3Smrg#else
77132b578d3Smrg# ifdef HAVE_STDLIB_H
77232b578d3Smrg#  include <stdlib.h>
77332b578d3Smrg# endif
77432b578d3Smrg#endif
77532b578d3Smrg#ifdef HAVE_STRING_H
77632b578d3Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
77732b578d3Smrg#  include <memory.h>
77832b578d3Smrg# endif
77932b578d3Smrg# include <string.h>
78032b578d3Smrg#endif
78132b578d3Smrg#ifdef HAVE_STRINGS_H
78232b578d3Smrg# include <strings.h>
78332b578d3Smrg#endif
78432b578d3Smrg#ifdef HAVE_INTTYPES_H
78532b578d3Smrg# include <inttypes.h>
78632b578d3Smrg#endif
78732b578d3Smrg#ifdef HAVE_STDINT_H
78832b578d3Smrg# include <stdint.h>
78932b578d3Smrg#endif
79032b578d3Smrg#ifdef HAVE_UNISTD_H
79132b578d3Smrg# include <unistd.h>
79232b578d3Smrg#endif"
79332b578d3Smrg
7942a51b5beSmrgac_subst_vars='am__EXEEXT_FALSE
7952a51b5beSmrgam__EXEEXT_TRUE
7962a51b5beSmrgLTLIBOBJS
79732b578d3SmrgLIBOBJS
7982a51b5beSmrgdistcleancheck_listfiles
7992a51b5beSmrgCHANGELOG_CMD
8002a51b5beSmrgMAKE_HTML
8012a51b5beSmrgMAKE_PDF
8022a51b5beSmrgMAKE_PS
8032a51b5beSmrgMAKE_TEXT
8042a51b5beSmrgBUILD_PDFDOC_FALSE
8052a51b5beSmrgBUILD_PDFDOC_TRUE
8062a51b5beSmrgBUILD_LINUXDOC_FALSE
8072a51b5beSmrgBUILD_LINUXDOC_TRUE
8082a51b5beSmrgPS2PDF
8092a51b5beSmrgLINUXDOC
8102a51b5beSmrgADMIN_MAN_DIR
8112a51b5beSmrgDRIVER_MAN_DIR
8122a51b5beSmrgMISC_MAN_DIR
8132a51b5beSmrgFILE_MAN_DIR
8142a51b5beSmrgLIB_MAN_DIR
8152a51b5beSmrgAPP_MAN_DIR
8162a51b5beSmrgADMIN_MAN_SUFFIX
8172a51b5beSmrgDRIVER_MAN_SUFFIX
8182a51b5beSmrgMISC_MAN_SUFFIX
8192a51b5beSmrgFILE_MAN_SUFFIX
8202a51b5beSmrgLIB_MAN_SUFFIX
8212a51b5beSmrgAPP_MAN_SUFFIX
8222a51b5beSmrgDRIVER_NAME
8232a51b5beSmrgmoduledir
8242a51b5beSmrgXSERVER_LIBPCIACCESS_FALSE
8252a51b5beSmrgXSERVER_LIBPCIACCESS_TRUE
8262a51b5beSmrgPCIACCESS_LIBS
8272a51b5beSmrgPCIACCESS_CFLAGS
8282a51b5beSmrgUSE_EXA_FALSE
8292a51b5beSmrgUSE_EXA_TRUE
8302a51b5beSmrgATIMISC_TV_OUT_FALSE
8312a51b5beSmrgATIMISC_TV_OUT_TRUE
8322a51b5beSmrgATIMISC_DGA_FALSE
8332a51b5beSmrgATIMISC_DGA_TRUE
8342a51b5beSmrgATIMISC_CPIO_FALSE
8352a51b5beSmrgATIMISC_CPIO_TRUE
8362a51b5beSmrgDRI_LIBS
8372a51b5beSmrgDRI_CFLAGS
8382a51b5beSmrgDRI_FALSE
8392a51b5beSmrgDRI_TRUE
8402a51b5beSmrgHAVE_XEXTPROTO_71_FALSE
8412a51b5beSmrgHAVE_XEXTPROTO_71_TRUE
8422a51b5beSmrgXEXT_LIBS
8432a51b5beSmrgXEXT_CFLAGS
8442a51b5beSmrgXORG_LIBS
8452a51b5beSmrgXORG_CFLAGS
8462a51b5beSmrgPKG_CONFIG
8472a51b5beSmrgCWARNFLAGS
8482a51b5beSmrgLIBTOOL
8492a51b5beSmrgac_ct_F77
8502a51b5beSmrgFFLAGS
8512a51b5beSmrgF77
8522a51b5beSmrgCXXCPP
8532a51b5beSmrgam__fastdepCXX_FALSE
8542a51b5beSmrgam__fastdepCXX_TRUE
8552a51b5beSmrgCXXDEPMODE
8562a51b5beSmrgac_ct_CXX
8572a51b5beSmrgCXXFLAGS
8582a51b5beSmrgCXX
8592a51b5beSmrgCPP
8602a51b5beSmrgNMEDIT
8612a51b5beSmrgDSYMUTIL
8622a51b5beSmrgRANLIB
8632a51b5beSmrgAR
8642a51b5beSmrgECHO
8652a51b5beSmrgLN_S
8662a51b5beSmrgEGREP
8672a51b5beSmrgGREP
8682a51b5beSmrgSED
8692a51b5beSmrgam__fastdepCC_FALSE
8702a51b5beSmrgam__fastdepCC_TRUE
8712a51b5beSmrgCCDEPMODE
8722a51b5beSmrgAMDEPBACKSLASH
8732a51b5beSmrgAMDEP_FALSE
8742a51b5beSmrgAMDEP_TRUE
8752a51b5beSmrgam__quote
8762a51b5beSmrgam__include
8772a51b5beSmrgDEPDIR
8782a51b5beSmrgOBJEXT
8792a51b5beSmrgEXEEXT
8802a51b5beSmrgac_ct_CC
8812a51b5beSmrgCPPFLAGS
8822a51b5beSmrgLDFLAGS
8832a51b5beSmrgCFLAGS
8842a51b5beSmrgCC
8852a51b5beSmrghost_os
8862a51b5beSmrghost_vendor
8872a51b5beSmrghost_cpu
8882a51b5beSmrghost
8892a51b5beSmrgbuild_os
8902a51b5beSmrgbuild_vendor
8912a51b5beSmrgbuild_cpu
8922a51b5beSmrgbuild
8932a51b5beSmrgMAINT
8942a51b5beSmrgMAINTAINER_MODE_FALSE
8952a51b5beSmrgMAINTAINER_MODE_TRUE
8962a51b5beSmrgam__untar
8972a51b5beSmrgam__tar
8982a51b5beSmrgAMTAR
8992a51b5beSmrgam__leading_dot
9002a51b5beSmrgSET_MAKE
9012a51b5beSmrgAWK
9022a51b5beSmrgmkdir_p
9032a51b5beSmrgMKDIR_P
9042a51b5beSmrgINSTALL_STRIP_PROGRAM
9052a51b5beSmrgSTRIP
9062a51b5beSmrginstall_sh
9072a51b5beSmrgMAKEINFO
9082a51b5beSmrgAUTOHEADER
9092a51b5beSmrgAUTOMAKE
9102a51b5beSmrgAUTOCONF
9112a51b5beSmrgACLOCAL
9122a51b5beSmrgVERSION
9132a51b5beSmrgPACKAGE
9142a51b5beSmrgCYGPATH_W
9152a51b5beSmrgam__isrc
9162a51b5beSmrgINSTALL_DATA
9172a51b5beSmrgINSTALL_SCRIPT
9182a51b5beSmrgINSTALL_PROGRAM
9192a51b5beSmrgtarget_alias
9202a51b5beSmrghost_alias
9212a51b5beSmrgbuild_alias
9222a51b5beSmrgLIBS
9232a51b5beSmrgECHO_T
9242a51b5beSmrgECHO_N
9252a51b5beSmrgECHO_C
9262a51b5beSmrgDEFS
9272a51b5beSmrgmandir
9282a51b5beSmrglocaledir
9292a51b5beSmrglibdir
9302a51b5beSmrgpsdir
9312a51b5beSmrgpdfdir
9322a51b5beSmrgdvidir
9332a51b5beSmrghtmldir
9342a51b5beSmrginfodir
9352a51b5beSmrgdocdir
9362a51b5beSmrgoldincludedir
9372a51b5beSmrgincludedir
9382a51b5beSmrglocalstatedir
9392a51b5beSmrgsharedstatedir
9402a51b5beSmrgsysconfdir
9412a51b5beSmrgdatadir
9422a51b5beSmrgdatarootdir
9432a51b5beSmrglibexecdir
9442a51b5beSmrgsbindir
9452a51b5beSmrgbindir
9462a51b5beSmrgprogram_transform_name
9472a51b5beSmrgprefix
9482a51b5beSmrgexec_prefix
9492a51b5beSmrgPACKAGE_BUGREPORT
9502a51b5beSmrgPACKAGE_STRING
9512a51b5beSmrgPACKAGE_VERSION
9522a51b5beSmrgPACKAGE_TARNAME
9532a51b5beSmrgPACKAGE_NAME
9542a51b5beSmrgPATH_SEPARATOR
9552a51b5beSmrgSHELL'
95632b578d3Smrgac_subst_files=''
9572a51b5beSmrgac_user_opts='
9582a51b5beSmrgenable_option_checking
9592a51b5beSmrgenable_maintainer_mode
9602a51b5beSmrgenable_static
9612a51b5beSmrgenable_shared
9622a51b5beSmrgenable_fast_install
9632a51b5beSmrgenable_dependency_tracking
9642a51b5beSmrgwith_gnu_ld
9652a51b5beSmrgenable_libtool_lock
9662a51b5beSmrgwith_pic
9672a51b5beSmrgwith_tags
9682a51b5beSmrgwith_xorg_module_dir
9692a51b5beSmrgenable_dri
9702a51b5beSmrgenable_exa
9712a51b5beSmrgwith_release_version
9722a51b5beSmrg'
97332b578d3Smrg      ac_precious_vars='build_alias
97432b578d3Smrghost_alias
97532b578d3Smrgtarget_alias
97632b578d3SmrgCC
97732b578d3SmrgCFLAGS
97832b578d3SmrgLDFLAGS
97932b578d3SmrgLIBS
98032b578d3SmrgCPPFLAGS
98132b578d3SmrgCPP
98232b578d3SmrgCXX
98332b578d3SmrgCXXFLAGS
98432b578d3SmrgCCC
98532b578d3SmrgCXXCPP
98632b578d3SmrgF77
98732b578d3SmrgFFLAGS
98832b578d3SmrgPKG_CONFIG
98932b578d3SmrgXORG_CFLAGS
99032b578d3SmrgXORG_LIBS
9912a51b5beSmrgXEXT_CFLAGS
9922a51b5beSmrgXEXT_LIBS
99332b578d3SmrgDRI_CFLAGS
99432b578d3SmrgDRI_LIBS
99532b578d3SmrgPCIACCESS_CFLAGS
99632b578d3SmrgPCIACCESS_LIBS'
99732b578d3Smrg
99832b578d3Smrg
99932b578d3Smrg# Initialize some variables set by options.
100032b578d3Smrgac_init_help=
100132b578d3Smrgac_init_version=false
10022a51b5beSmrgac_unrecognized_opts=
10032a51b5beSmrgac_unrecognized_sep=
100432b578d3Smrg# The variables have the same names as the options, with
100532b578d3Smrg# dashes changed to underlines.
100632b578d3Smrgcache_file=/dev/null
100732b578d3Smrgexec_prefix=NONE
100832b578d3Smrgno_create=
100932b578d3Smrgno_recursion=
101032b578d3Smrgprefix=NONE
101132b578d3Smrgprogram_prefix=NONE
101232b578d3Smrgprogram_suffix=NONE
101332b578d3Smrgprogram_transform_name=s,x,x,
101432b578d3Smrgsilent=
101532b578d3Smrgsite=
101632b578d3Smrgsrcdir=
101732b578d3Smrgverbose=
101832b578d3Smrgx_includes=NONE
101932b578d3Smrgx_libraries=NONE
102032b578d3Smrg
102132b578d3Smrg# Installation directory options.
102232b578d3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
102332b578d3Smrg# and all the variables that are supposed to be based on exec_prefix
102432b578d3Smrg# by default will actually change.
102532b578d3Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
102632b578d3Smrg# (The list follows the same order as the GNU Coding Standards.)
102732b578d3Smrgbindir='${exec_prefix}/bin'
102832b578d3Smrgsbindir='${exec_prefix}/sbin'
102932b578d3Smrglibexecdir='${exec_prefix}/libexec'
103032b578d3Smrgdatarootdir='${prefix}/share'
103132b578d3Smrgdatadir='${datarootdir}'
103232b578d3Smrgsysconfdir='${prefix}/etc'
103332b578d3Smrgsharedstatedir='${prefix}/com'
103432b578d3Smrglocalstatedir='${prefix}/var'
103532b578d3Smrgincludedir='${prefix}/include'
103632b578d3Smrgoldincludedir='/usr/include'
103732b578d3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
103832b578d3Smrginfodir='${datarootdir}/info'
103932b578d3Smrghtmldir='${docdir}'
104032b578d3Smrgdvidir='${docdir}'
104132b578d3Smrgpdfdir='${docdir}'
104232b578d3Smrgpsdir='${docdir}'
104332b578d3Smrglibdir='${exec_prefix}/lib'
104432b578d3Smrglocaledir='${datarootdir}/locale'
104532b578d3Smrgmandir='${datarootdir}/man'
104632b578d3Smrg
104732b578d3Smrgac_prev=
104832b578d3Smrgac_dashdash=
104932b578d3Smrgfor ac_option
105032b578d3Smrgdo
105132b578d3Smrg  # If the previous option needs an argument, assign it.
105232b578d3Smrg  if test -n "$ac_prev"; then
105332b578d3Smrg    eval $ac_prev=\$ac_option
105432b578d3Smrg    ac_prev=
105532b578d3Smrg    continue
105632b578d3Smrg  fi
105732b578d3Smrg
105832b578d3Smrg  case $ac_option in
105932b578d3Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
106032b578d3Smrg  *)	ac_optarg=yes ;;
106132b578d3Smrg  esac
106232b578d3Smrg
106332b578d3Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
106432b578d3Smrg
106532b578d3Smrg  case $ac_dashdash$ac_option in
106632b578d3Smrg  --)
106732b578d3Smrg    ac_dashdash=yes ;;
106832b578d3Smrg
106932b578d3Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
107032b578d3Smrg    ac_prev=bindir ;;
107132b578d3Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107232b578d3Smrg    bindir=$ac_optarg ;;
107332b578d3Smrg
107432b578d3Smrg  -build | --build | --buil | --bui | --bu)
107532b578d3Smrg    ac_prev=build_alias ;;
107632b578d3Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107732b578d3Smrg    build_alias=$ac_optarg ;;
107832b578d3Smrg
107932b578d3Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
108032b578d3Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108132b578d3Smrg    ac_prev=cache_file ;;
108232b578d3Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108332b578d3Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108432b578d3Smrg    cache_file=$ac_optarg ;;
108532b578d3Smrg
108632b578d3Smrg  --config-cache | -C)
108732b578d3Smrg    cache_file=config.cache ;;
108832b578d3Smrg
108932b578d3Smrg  -datadir | --datadir | --datadi | --datad)
109032b578d3Smrg    ac_prev=datadir ;;
109132b578d3Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
109232b578d3Smrg    datadir=$ac_optarg ;;
109332b578d3Smrg
109432b578d3Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
109532b578d3Smrg  | --dataroo | --dataro | --datar)
109632b578d3Smrg    ac_prev=datarootdir ;;
109732b578d3Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
109832b578d3Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
109932b578d3Smrg    datarootdir=$ac_optarg ;;
110032b578d3Smrg
110132b578d3Smrg  -disable-* | --disable-*)
11022a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
110332b578d3Smrg    # Reject names that are not valid shell variable names.
11042a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11052a51b5beSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
110632b578d3Smrg   { (exit 1); exit 1; }; }
11072a51b5beSmrg    ac_useropt_orig=$ac_useropt
11082a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11092a51b5beSmrg    case $ac_user_opts in
11102a51b5beSmrg      *"
11112a51b5beSmrg"enable_$ac_useropt"
11122a51b5beSmrg"*) ;;
11132a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
11142a51b5beSmrg	 ac_unrecognized_sep=', ';;
11152a51b5beSmrg    esac
11162a51b5beSmrg    eval enable_$ac_useropt=no ;;
111732b578d3Smrg
111832b578d3Smrg  -docdir | --docdir | --docdi | --doc | --do)
111932b578d3Smrg    ac_prev=docdir ;;
112032b578d3Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
112132b578d3Smrg    docdir=$ac_optarg ;;
112232b578d3Smrg
112332b578d3Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
112432b578d3Smrg    ac_prev=dvidir ;;
112532b578d3Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
112632b578d3Smrg    dvidir=$ac_optarg ;;
112732b578d3Smrg
112832b578d3Smrg  -enable-* | --enable-*)
11292a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
113032b578d3Smrg    # Reject names that are not valid shell variable names.
11312a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11322a51b5beSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
113332b578d3Smrg   { (exit 1); exit 1; }; }
11342a51b5beSmrg    ac_useropt_orig=$ac_useropt
11352a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11362a51b5beSmrg    case $ac_user_opts in
11372a51b5beSmrg      *"
11382a51b5beSmrg"enable_$ac_useropt"
11392a51b5beSmrg"*) ;;
11402a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
11412a51b5beSmrg	 ac_unrecognized_sep=', ';;
11422a51b5beSmrg    esac
11432a51b5beSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
114432b578d3Smrg
114532b578d3Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
114632b578d3Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
114732b578d3Smrg  | --exec | --exe | --ex)
114832b578d3Smrg    ac_prev=exec_prefix ;;
114932b578d3Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
115032b578d3Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
115132b578d3Smrg  | --exec=* | --exe=* | --ex=*)
115232b578d3Smrg    exec_prefix=$ac_optarg ;;
115332b578d3Smrg
115432b578d3Smrg  -gas | --gas | --ga | --g)
115532b578d3Smrg    # Obsolete; use --with-gas.
115632b578d3Smrg    with_gas=yes ;;
115732b578d3Smrg
115832b578d3Smrg  -help | --help | --hel | --he | -h)
115932b578d3Smrg    ac_init_help=long ;;
116032b578d3Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
116132b578d3Smrg    ac_init_help=recursive ;;
116232b578d3Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
116332b578d3Smrg    ac_init_help=short ;;
116432b578d3Smrg
116532b578d3Smrg  -host | --host | --hos | --ho)
116632b578d3Smrg    ac_prev=host_alias ;;
116732b578d3Smrg  -host=* | --host=* | --hos=* | --ho=*)
116832b578d3Smrg    host_alias=$ac_optarg ;;
116932b578d3Smrg
117032b578d3Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
117132b578d3Smrg    ac_prev=htmldir ;;
117232b578d3Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
117332b578d3Smrg  | --ht=*)
117432b578d3Smrg    htmldir=$ac_optarg ;;
117532b578d3Smrg
117632b578d3Smrg  -includedir | --includedir | --includedi | --included | --include \
117732b578d3Smrg  | --includ | --inclu | --incl | --inc)
117832b578d3Smrg    ac_prev=includedir ;;
117932b578d3Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
118032b578d3Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
118132b578d3Smrg    includedir=$ac_optarg ;;
118232b578d3Smrg
118332b578d3Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
118432b578d3Smrg    ac_prev=infodir ;;
118532b578d3Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
118632b578d3Smrg    infodir=$ac_optarg ;;
118732b578d3Smrg
118832b578d3Smrg  -libdir | --libdir | --libdi | --libd)
118932b578d3Smrg    ac_prev=libdir ;;
119032b578d3Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
119132b578d3Smrg    libdir=$ac_optarg ;;
119232b578d3Smrg
119332b578d3Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
119432b578d3Smrg  | --libexe | --libex | --libe)
119532b578d3Smrg    ac_prev=libexecdir ;;
119632b578d3Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
119732b578d3Smrg  | --libexe=* | --libex=* | --libe=*)
119832b578d3Smrg    libexecdir=$ac_optarg ;;
119932b578d3Smrg
120032b578d3Smrg  -localedir | --localedir | --localedi | --localed | --locale)
120132b578d3Smrg    ac_prev=localedir ;;
120232b578d3Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
120332b578d3Smrg    localedir=$ac_optarg ;;
120432b578d3Smrg
120532b578d3Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
120632b578d3Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
120732b578d3Smrg    ac_prev=localstatedir ;;
120832b578d3Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
120932b578d3Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
121032b578d3Smrg    localstatedir=$ac_optarg ;;
121132b578d3Smrg
121232b578d3Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
121332b578d3Smrg    ac_prev=mandir ;;
121432b578d3Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
121532b578d3Smrg    mandir=$ac_optarg ;;
121632b578d3Smrg
121732b578d3Smrg  -nfp | --nfp | --nf)
121832b578d3Smrg    # Obsolete; use --without-fp.
121932b578d3Smrg    with_fp=no ;;
122032b578d3Smrg
122132b578d3Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
122232b578d3Smrg  | --no-cr | --no-c | -n)
122332b578d3Smrg    no_create=yes ;;
122432b578d3Smrg
122532b578d3Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
122632b578d3Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
122732b578d3Smrg    no_recursion=yes ;;
122832b578d3Smrg
122932b578d3Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
123032b578d3Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
123132b578d3Smrg  | --oldin | --oldi | --old | --ol | --o)
123232b578d3Smrg    ac_prev=oldincludedir ;;
123332b578d3Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
123432b578d3Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
123532b578d3Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
123632b578d3Smrg    oldincludedir=$ac_optarg ;;
123732b578d3Smrg
123832b578d3Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
123932b578d3Smrg    ac_prev=prefix ;;
124032b578d3Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
124132b578d3Smrg    prefix=$ac_optarg ;;
124232b578d3Smrg
124332b578d3Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
124432b578d3Smrg  | --program-pre | --program-pr | --program-p)
124532b578d3Smrg    ac_prev=program_prefix ;;
124632b578d3Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
124732b578d3Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
124832b578d3Smrg    program_prefix=$ac_optarg ;;
124932b578d3Smrg
125032b578d3Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
125132b578d3Smrg  | --program-suf | --program-su | --program-s)
125232b578d3Smrg    ac_prev=program_suffix ;;
125332b578d3Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
125432b578d3Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
125532b578d3Smrg    program_suffix=$ac_optarg ;;
125632b578d3Smrg
125732b578d3Smrg  -program-transform-name | --program-transform-name \
125832b578d3Smrg  | --program-transform-nam | --program-transform-na \
125932b578d3Smrg  | --program-transform-n | --program-transform- \
126032b578d3Smrg  | --program-transform | --program-transfor \
126132b578d3Smrg  | --program-transfo | --program-transf \
126232b578d3Smrg  | --program-trans | --program-tran \
126332b578d3Smrg  | --progr-tra | --program-tr | --program-t)
126432b578d3Smrg    ac_prev=program_transform_name ;;
126532b578d3Smrg  -program-transform-name=* | --program-transform-name=* \
126632b578d3Smrg  | --program-transform-nam=* | --program-transform-na=* \
126732b578d3Smrg  | --program-transform-n=* | --program-transform-=* \
126832b578d3Smrg  | --program-transform=* | --program-transfor=* \
126932b578d3Smrg  | --program-transfo=* | --program-transf=* \
127032b578d3Smrg  | --program-trans=* | --program-tran=* \
127132b578d3Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
127232b578d3Smrg    program_transform_name=$ac_optarg ;;
127332b578d3Smrg
127432b578d3Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
127532b578d3Smrg    ac_prev=pdfdir ;;
127632b578d3Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
127732b578d3Smrg    pdfdir=$ac_optarg ;;
127832b578d3Smrg
127932b578d3Smrg  -psdir | --psdir | --psdi | --psd | --ps)
128032b578d3Smrg    ac_prev=psdir ;;
128132b578d3Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
128232b578d3Smrg    psdir=$ac_optarg ;;
128332b578d3Smrg
128432b578d3Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
128532b578d3Smrg  | -silent | --silent | --silen | --sile | --sil)
128632b578d3Smrg    silent=yes ;;
128732b578d3Smrg
128832b578d3Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
128932b578d3Smrg    ac_prev=sbindir ;;
129032b578d3Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
129132b578d3Smrg  | --sbi=* | --sb=*)
129232b578d3Smrg    sbindir=$ac_optarg ;;
129332b578d3Smrg
129432b578d3Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
129532b578d3Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
129632b578d3Smrg  | --sharedst | --shareds | --shared | --share | --shar \
129732b578d3Smrg  | --sha | --sh)
129832b578d3Smrg    ac_prev=sharedstatedir ;;
129932b578d3Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
130032b578d3Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
130132b578d3Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
130232b578d3Smrg  | --sha=* | --sh=*)
130332b578d3Smrg    sharedstatedir=$ac_optarg ;;
130432b578d3Smrg
130532b578d3Smrg  -site | --site | --sit)
130632b578d3Smrg    ac_prev=site ;;
130732b578d3Smrg  -site=* | --site=* | --sit=*)
130832b578d3Smrg    site=$ac_optarg ;;
130932b578d3Smrg
131032b578d3Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
131132b578d3Smrg    ac_prev=srcdir ;;
131232b578d3Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
131332b578d3Smrg    srcdir=$ac_optarg ;;
131432b578d3Smrg
131532b578d3Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
131632b578d3Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
131732b578d3Smrg    ac_prev=sysconfdir ;;
131832b578d3Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
131932b578d3Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
132032b578d3Smrg    sysconfdir=$ac_optarg ;;
132132b578d3Smrg
132232b578d3Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
132332b578d3Smrg    ac_prev=target_alias ;;
132432b578d3Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
132532b578d3Smrg    target_alias=$ac_optarg ;;
132632b578d3Smrg
132732b578d3Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
132832b578d3Smrg    verbose=yes ;;
132932b578d3Smrg
133032b578d3Smrg  -version | --version | --versio | --versi | --vers | -V)
133132b578d3Smrg    ac_init_version=: ;;
133232b578d3Smrg
133332b578d3Smrg  -with-* | --with-*)
13342a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
133532b578d3Smrg    # Reject names that are not valid shell variable names.
13362a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13372a51b5beSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
133832b578d3Smrg   { (exit 1); exit 1; }; }
13392a51b5beSmrg    ac_useropt_orig=$ac_useropt
13402a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13412a51b5beSmrg    case $ac_user_opts in
13422a51b5beSmrg      *"
13432a51b5beSmrg"with_$ac_useropt"
13442a51b5beSmrg"*) ;;
13452a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
13462a51b5beSmrg	 ac_unrecognized_sep=', ';;
13472a51b5beSmrg    esac
13482a51b5beSmrg    eval with_$ac_useropt=\$ac_optarg ;;
134932b578d3Smrg
135032b578d3Smrg  -without-* | --without-*)
13512a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
135232b578d3Smrg    # Reject names that are not valid shell variable names.
13532a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
13542a51b5beSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
135532b578d3Smrg   { (exit 1); exit 1; }; }
13562a51b5beSmrg    ac_useropt_orig=$ac_useropt
13572a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13582a51b5beSmrg    case $ac_user_opts in
13592a51b5beSmrg      *"
13602a51b5beSmrg"with_$ac_useropt"
13612a51b5beSmrg"*) ;;
13622a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
13632a51b5beSmrg	 ac_unrecognized_sep=', ';;
13642a51b5beSmrg    esac
13652a51b5beSmrg    eval with_$ac_useropt=no ;;
136632b578d3Smrg
136732b578d3Smrg  --x)
136832b578d3Smrg    # Obsolete; use --with-x.
136932b578d3Smrg    with_x=yes ;;
137032b578d3Smrg
137132b578d3Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
137232b578d3Smrg  | --x-incl | --x-inc | --x-in | --x-i)
137332b578d3Smrg    ac_prev=x_includes ;;
137432b578d3Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
137532b578d3Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
137632b578d3Smrg    x_includes=$ac_optarg ;;
137732b578d3Smrg
137832b578d3Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
137932b578d3Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
138032b578d3Smrg    ac_prev=x_libraries ;;
138132b578d3Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
138232b578d3Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
138332b578d3Smrg    x_libraries=$ac_optarg ;;
138432b578d3Smrg
13852a51b5beSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
138632b578d3SmrgTry \`$0 --help' for more information." >&2
138732b578d3Smrg   { (exit 1); exit 1; }; }
138832b578d3Smrg    ;;
138932b578d3Smrg
139032b578d3Smrg  *=*)
139132b578d3Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
139232b578d3Smrg    # Reject names that are not valid shell variable names.
139332b578d3Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
13942a51b5beSmrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
139532b578d3Smrg   { (exit 1); exit 1; }; }
139632b578d3Smrg    eval $ac_envvar=\$ac_optarg
139732b578d3Smrg    export $ac_envvar ;;
139832b578d3Smrg
139932b578d3Smrg  *)
140032b578d3Smrg    # FIXME: should be removed in autoconf 3.0.
14012a51b5beSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
140232b578d3Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
14032a51b5beSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
140432b578d3Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
140532b578d3Smrg    ;;
140632b578d3Smrg
140732b578d3Smrg  esac
140832b578d3Smrgdone
140932b578d3Smrg
141032b578d3Smrgif test -n "$ac_prev"; then
141132b578d3Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
14122a51b5beSmrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
141332b578d3Smrg   { (exit 1); exit 1; }; }
141432b578d3Smrgfi
141532b578d3Smrg
14162a51b5beSmrgif test -n "$ac_unrecognized_opts"; then
14172a51b5beSmrg  case $enable_option_checking in
14182a51b5beSmrg    no) ;;
14192a51b5beSmrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
14202a51b5beSmrg   { (exit 1); exit 1; }; } ;;
14212a51b5beSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
14222a51b5beSmrg  esac
14232a51b5beSmrgfi
14242a51b5beSmrg
14252a51b5beSmrg# Check all directory arguments for consistency.
142632b578d3Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
142732b578d3Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
142832b578d3Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
142932b578d3Smrg		libdir localedir mandir
143032b578d3Smrgdo
143132b578d3Smrg  eval ac_val=\$$ac_var
14322a51b5beSmrg  # Remove trailing slashes.
14332a51b5beSmrg  case $ac_val in
14342a51b5beSmrg    */ )
14352a51b5beSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
14362a51b5beSmrg      eval $ac_var=\$ac_val;;
14372a51b5beSmrg  esac
14382a51b5beSmrg  # Be sure to have absolute directory names.
143932b578d3Smrg  case $ac_val in
144032b578d3Smrg    [\\/$]* | ?:[\\/]* )  continue;;
144132b578d3Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
144232b578d3Smrg  esac
14432a51b5beSmrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
144432b578d3Smrg   { (exit 1); exit 1; }; }
144532b578d3Smrgdone
144632b578d3Smrg
144732b578d3Smrg# There might be people who depend on the old broken behavior: `$host'
144832b578d3Smrg# used to hold the argument of --host etc.
144932b578d3Smrg# FIXME: To remove some day.
145032b578d3Smrgbuild=$build_alias
145132b578d3Smrghost=$host_alias
145232b578d3Smrgtarget=$target_alias
145332b578d3Smrg
145432b578d3Smrg# FIXME: To remove some day.
145532b578d3Smrgif test "x$host_alias" != x; then
145632b578d3Smrg  if test "x$build_alias" = x; then
145732b578d3Smrg    cross_compiling=maybe
14582a51b5beSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
145932b578d3Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
146032b578d3Smrg  elif test "x$build_alias" != "x$host_alias"; then
146132b578d3Smrg    cross_compiling=yes
146232b578d3Smrg  fi
146332b578d3Smrgfi
146432b578d3Smrg
146532b578d3Smrgac_tool_prefix=
146632b578d3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
146732b578d3Smrg
146832b578d3Smrgtest "$silent" = yes && exec 6>/dev/null
146932b578d3Smrg
147032b578d3Smrg
147132b578d3Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
147232b578d3Smrgac_ls_di=`ls -di .` &&
147332b578d3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
14742a51b5beSmrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
147532b578d3Smrg   { (exit 1); exit 1; }; }
147632b578d3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
14772a51b5beSmrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
147832b578d3Smrg   { (exit 1); exit 1; }; }
147932b578d3Smrg
148032b578d3Smrg
148132b578d3Smrg# Find the source files, if location was not specified.
148232b578d3Smrgif test -z "$srcdir"; then
148332b578d3Smrg  ac_srcdir_defaulted=yes
148432b578d3Smrg  # Try the directory containing this script, then the parent directory.
14852a51b5beSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
14862a51b5beSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14872a51b5beSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
14882a51b5beSmrg	 X"$as_myself" : 'X\(//\)$' \| \
14892a51b5beSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
14902a51b5beSmrg$as_echo X"$as_myself" |
149132b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
149232b578d3Smrg	    s//\1/
149332b578d3Smrg	    q
149432b578d3Smrg	  }
149532b578d3Smrg	  /^X\(\/\/\)[^/].*/{
149632b578d3Smrg	    s//\1/
149732b578d3Smrg	    q
149832b578d3Smrg	  }
149932b578d3Smrg	  /^X\(\/\/\)$/{
150032b578d3Smrg	    s//\1/
150132b578d3Smrg	    q
150232b578d3Smrg	  }
150332b578d3Smrg	  /^X\(\/\).*/{
150432b578d3Smrg	    s//\1/
150532b578d3Smrg	    q
150632b578d3Smrg	  }
150732b578d3Smrg	  s/.*/./; q'`
150832b578d3Smrg  srcdir=$ac_confdir
150932b578d3Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
151032b578d3Smrg    srcdir=..
151132b578d3Smrg  fi
151232b578d3Smrgelse
151332b578d3Smrg  ac_srcdir_defaulted=no
151432b578d3Smrgfi
151532b578d3Smrgif test ! -r "$srcdir/$ac_unique_file"; then
151632b578d3Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
15172a51b5beSmrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
151832b578d3Smrg   { (exit 1); exit 1; }; }
151932b578d3Smrgfi
152032b578d3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
152132b578d3Smrgac_abs_confdir=`(
15222a51b5beSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
152332b578d3Smrg   { (exit 1); exit 1; }; }
152432b578d3Smrg	pwd)`
152532b578d3Smrg# When building in place, set srcdir=.
152632b578d3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
152732b578d3Smrg  srcdir=.
152832b578d3Smrgfi
152932b578d3Smrg# Remove unnecessary trailing slashes from srcdir.
153032b578d3Smrg# Double slashes in file names in object file debugging info
153132b578d3Smrg# mess up M-x gdb in Emacs.
153232b578d3Smrgcase $srcdir in
153332b578d3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
153432b578d3Smrgesac
153532b578d3Smrgfor ac_var in $ac_precious_vars; do
153632b578d3Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
153732b578d3Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
153832b578d3Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
153932b578d3Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
154032b578d3Smrgdone
154132b578d3Smrg
154232b578d3Smrg#
154332b578d3Smrg# Report the --help message.
154432b578d3Smrg#
154532b578d3Smrgif test "$ac_init_help" = "long"; then
154632b578d3Smrg  # Omit some internal or obsolete options to make the list less imposing.
154732b578d3Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
154832b578d3Smrg  cat <<_ACEOF
15492a51b5beSmrg\`configure' configures xf86-video-mach64 6.8.2 to adapt to many kinds of systems.
155032b578d3Smrg
155132b578d3SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
155232b578d3Smrg
155332b578d3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
155432b578d3SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
155532b578d3Smrg
155632b578d3SmrgDefaults for the options are specified in brackets.
155732b578d3Smrg
155832b578d3SmrgConfiguration:
155932b578d3Smrg  -h, --help              display this help and exit
156032b578d3Smrg      --help=short        display options specific to this package
156132b578d3Smrg      --help=recursive    display the short help of all the included packages
156232b578d3Smrg  -V, --version           display version information and exit
156332b578d3Smrg  -q, --quiet, --silent   do not print \`checking...' messages
156432b578d3Smrg      --cache-file=FILE   cache test results in FILE [disabled]
156532b578d3Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
156632b578d3Smrg  -n, --no-create         do not create output files
156732b578d3Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
156832b578d3Smrg
156932b578d3SmrgInstallation directories:
157032b578d3Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
15712a51b5beSmrg                          [$ac_default_prefix]
157232b578d3Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
15732a51b5beSmrg                          [PREFIX]
157432b578d3Smrg
157532b578d3SmrgBy default, \`make install' will install all the files in
157632b578d3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
157732b578d3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
157832b578d3Smrgfor instance \`--prefix=\$HOME'.
157932b578d3Smrg
158032b578d3SmrgFor better control, use the options below.
158132b578d3Smrg
158232b578d3SmrgFine tuning of the installation directories:
15832a51b5beSmrg  --bindir=DIR            user executables [EPREFIX/bin]
15842a51b5beSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
15852a51b5beSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
15862a51b5beSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
15872a51b5beSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
15882a51b5beSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
15892a51b5beSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
15902a51b5beSmrg  --includedir=DIR        C header files [PREFIX/include]
15912a51b5beSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
15922a51b5beSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
15932a51b5beSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
15942a51b5beSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
15952a51b5beSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
15962a51b5beSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
15972a51b5beSmrg  --docdir=DIR            documentation root
15982a51b5beSmrg                          [DATAROOTDIR/doc/xf86-video-mach64]
15992a51b5beSmrg  --htmldir=DIR           html documentation [DOCDIR]
16002a51b5beSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
16012a51b5beSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
16022a51b5beSmrg  --psdir=DIR             ps documentation [DOCDIR]
160332b578d3Smrg_ACEOF
160432b578d3Smrg
160532b578d3Smrg  cat <<\_ACEOF
160632b578d3Smrg
160732b578d3SmrgProgram names:
160832b578d3Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
160932b578d3Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
161032b578d3Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
161132b578d3Smrg
161232b578d3SmrgSystem types:
161332b578d3Smrg  --build=BUILD     configure for building on BUILD [guessed]
161432b578d3Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
161532b578d3Smrg_ACEOF
161632b578d3Smrgfi
161732b578d3Smrg
161832b578d3Smrgif test -n "$ac_init_help"; then
161932b578d3Smrg  case $ac_init_help in
16202a51b5beSmrg     short | recursive ) echo "Configuration of xf86-video-mach64 6.8.2:";;
162132b578d3Smrg   esac
162232b578d3Smrg  cat <<\_ACEOF
162332b578d3Smrg
162432b578d3SmrgOptional Features:
16252a51b5beSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
162632b578d3Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
162732b578d3Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
162832b578d3Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
162932b578d3Smrg			  (and sometimes confusing) to the casual installer
163032b578d3Smrg  --enable-static[=PKGS]  build static libraries [default=no]
163132b578d3Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
163232b578d3Smrg  --enable-fast-install[=PKGS]
163332b578d3Smrg                          optimize for fast installation [default=yes]
163432b578d3Smrg  --disable-dependency-tracking  speeds up one-time build
163532b578d3Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
163632b578d3Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
163732b578d3Smrg  --disable-dri           Disable DRI support [default=auto]
163832b578d3Smrg  --disable-exa           Disable EXA support [default=enabled]
163932b578d3Smrg
164032b578d3SmrgOptional Packages:
164132b578d3Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
164232b578d3Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
164332b578d3Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
164432b578d3Smrg  --with-pic              try to use only PIC/non-PIC objects [default=use
164532b578d3Smrg                          both]
164632b578d3Smrg  --with-tags[=TAGS]      include additional configurations [automatic]
164732b578d3Smrg  --with-xorg-module-dir=DIR
164832b578d3Smrg                          Default xorg module directory
164932b578d3Smrg                          [default=$libdir/xorg/modules]
165032b578d3Smrg  --with-release-version=STRING
165132b578d3Smrg                          Use release version string in package name
165232b578d3Smrg
165332b578d3SmrgSome influential environment variables:
165432b578d3Smrg  CC          C compiler command
165532b578d3Smrg  CFLAGS      C compiler flags
165632b578d3Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
165732b578d3Smrg              nonstandard directory <lib dir>
165832b578d3Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
165932b578d3Smrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
166032b578d3Smrg              you have headers in a nonstandard directory <include dir>
166132b578d3Smrg  CPP         C preprocessor
166232b578d3Smrg  CXX         C++ compiler command
166332b578d3Smrg  CXXFLAGS    C++ compiler flags
166432b578d3Smrg  CXXCPP      C++ preprocessor
166532b578d3Smrg  F77         Fortran 77 compiler command
166632b578d3Smrg  FFLAGS      Fortran 77 compiler flags
166732b578d3Smrg  PKG_CONFIG  path to pkg-config utility
166832b578d3Smrg  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
166932b578d3Smrg  XORG_LIBS   linker flags for XORG, overriding pkg-config
16702a51b5beSmrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
16712a51b5beSmrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
167232b578d3Smrg  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
167332b578d3Smrg  DRI_LIBS    linker flags for DRI, overriding pkg-config
167432b578d3Smrg  PCIACCESS_CFLAGS
167532b578d3Smrg              C compiler flags for PCIACCESS, overriding pkg-config
167632b578d3Smrg  PCIACCESS_LIBS
167732b578d3Smrg              linker flags for PCIACCESS, overriding pkg-config
167832b578d3Smrg
167932b578d3SmrgUse these variables to override the choices made by `configure' or to help
168032b578d3Smrgit to find libraries and programs with nonstandard names/locations.
168132b578d3Smrg
168232b578d3SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
168332b578d3Smrg_ACEOF
168432b578d3Smrgac_status=$?
168532b578d3Smrgfi
168632b578d3Smrg
168732b578d3Smrgif test "$ac_init_help" = "recursive"; then
168832b578d3Smrg  # If there are subdirs, report their specific --help.
168932b578d3Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
16902a51b5beSmrg    test -d "$ac_dir" ||
16912a51b5beSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
16922a51b5beSmrg      continue
169332b578d3Smrg    ac_builddir=.
169432b578d3Smrg
169532b578d3Smrgcase "$ac_dir" in
169632b578d3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
169732b578d3Smrg*)
16982a51b5beSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
169932b578d3Smrg  # A ".." for each directory in $ac_dir_suffix.
17002a51b5beSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
170132b578d3Smrg  case $ac_top_builddir_sub in
170232b578d3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
170332b578d3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
170432b578d3Smrg  esac ;;
170532b578d3Smrgesac
170632b578d3Smrgac_abs_top_builddir=$ac_pwd
170732b578d3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
170832b578d3Smrg# for backward compatibility:
170932b578d3Smrgac_top_builddir=$ac_top_build_prefix
171032b578d3Smrg
171132b578d3Smrgcase $srcdir in
171232b578d3Smrg  .)  # We are building in place.
171332b578d3Smrg    ac_srcdir=.
171432b578d3Smrg    ac_top_srcdir=$ac_top_builddir_sub
171532b578d3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
171632b578d3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
171732b578d3Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
171832b578d3Smrg    ac_top_srcdir=$srcdir
171932b578d3Smrg    ac_abs_top_srcdir=$srcdir ;;
172032b578d3Smrg  *) # Relative name.
172132b578d3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
172232b578d3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
172332b578d3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
172432b578d3Smrgesac
172532b578d3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
172632b578d3Smrg
172732b578d3Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
172832b578d3Smrg    # Check for guested configure.
172932b578d3Smrg    if test -f "$ac_srcdir/configure.gnu"; then
173032b578d3Smrg      echo &&
173132b578d3Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
173232b578d3Smrg    elif test -f "$ac_srcdir/configure"; then
173332b578d3Smrg      echo &&
173432b578d3Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
173532b578d3Smrg    else
17362a51b5beSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
173732b578d3Smrg    fi || ac_status=$?
173832b578d3Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
173932b578d3Smrg  done
174032b578d3Smrgfi
174132b578d3Smrg
174232b578d3Smrgtest -n "$ac_init_help" && exit $ac_status
174332b578d3Smrgif $ac_init_version; then
174432b578d3Smrg  cat <<\_ACEOF
17452a51b5beSmrgxf86-video-mach64 configure 6.8.2
17462a51b5beSmrggenerated by GNU Autoconf 2.63
174732b578d3Smrg
174832b578d3SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17492a51b5beSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
175032b578d3SmrgThis configure script is free software; the Free Software Foundation
175132b578d3Smrggives unlimited permission to copy, distribute and modify it.
175232b578d3Smrg_ACEOF
175332b578d3Smrg  exit
175432b578d3Smrgfi
175532b578d3Smrgcat >config.log <<_ACEOF
175632b578d3SmrgThis file contains any messages produced by compilers while
175732b578d3Smrgrunning configure, to aid debugging if configure makes a mistake.
175832b578d3Smrg
17592a51b5beSmrgIt was created by xf86-video-mach64 $as_me 6.8.2, which was
17602a51b5beSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
176132b578d3Smrg
176232b578d3Smrg  $ $0 $@
176332b578d3Smrg
176432b578d3Smrg_ACEOF
176532b578d3Smrgexec 5>>config.log
176632b578d3Smrg{
176732b578d3Smrgcat <<_ASUNAME
176832b578d3Smrg## --------- ##
176932b578d3Smrg## Platform. ##
177032b578d3Smrg## --------- ##
177132b578d3Smrg
177232b578d3Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
177332b578d3Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
177432b578d3Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
177532b578d3Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
177632b578d3Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
177732b578d3Smrg
177832b578d3Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
177932b578d3Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
178032b578d3Smrg
178132b578d3Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
178232b578d3Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
178332b578d3Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
178432b578d3Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
178532b578d3Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
178632b578d3Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
178732b578d3Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
178832b578d3Smrg
178932b578d3Smrg_ASUNAME
179032b578d3Smrg
179132b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
179232b578d3Smrgfor as_dir in $PATH
179332b578d3Smrgdo
179432b578d3Smrg  IFS=$as_save_IFS
179532b578d3Smrg  test -z "$as_dir" && as_dir=.
17962a51b5beSmrg  $as_echo "PATH: $as_dir"
179732b578d3Smrgdone
179832b578d3SmrgIFS=$as_save_IFS
179932b578d3Smrg
180032b578d3Smrg} >&5
180132b578d3Smrg
180232b578d3Smrgcat >&5 <<_ACEOF
180332b578d3Smrg
180432b578d3Smrg
180532b578d3Smrg## ----------- ##
180632b578d3Smrg## Core tests. ##
180732b578d3Smrg## ----------- ##
180832b578d3Smrg
180932b578d3Smrg_ACEOF
181032b578d3Smrg
181132b578d3Smrg
181232b578d3Smrg# Keep a trace of the command line.
181332b578d3Smrg# Strip out --no-create and --no-recursion so they do not pile up.
181432b578d3Smrg# Strip out --silent because we don't want to record it for future runs.
181532b578d3Smrg# Also quote any args containing shell meta-characters.
181632b578d3Smrg# Make two passes to allow for proper duplicate-argument suppression.
181732b578d3Smrgac_configure_args=
181832b578d3Smrgac_configure_args0=
181932b578d3Smrgac_configure_args1=
182032b578d3Smrgac_must_keep_next=false
182132b578d3Smrgfor ac_pass in 1 2
182232b578d3Smrgdo
182332b578d3Smrg  for ac_arg
182432b578d3Smrg  do
182532b578d3Smrg    case $ac_arg in
182632b578d3Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
182732b578d3Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
182832b578d3Smrg    | -silent | --silent | --silen | --sile | --sil)
182932b578d3Smrg      continue ;;
183032b578d3Smrg    *\'*)
18312a51b5beSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
183232b578d3Smrg    esac
183332b578d3Smrg    case $ac_pass in
183432b578d3Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
183532b578d3Smrg    2)
183632b578d3Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
183732b578d3Smrg      if test $ac_must_keep_next = true; then
183832b578d3Smrg	ac_must_keep_next=false # Got value, back to normal.
183932b578d3Smrg      else
184032b578d3Smrg	case $ac_arg in
184132b578d3Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
184232b578d3Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
184332b578d3Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
184432b578d3Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
184532b578d3Smrg	    case "$ac_configure_args0 " in
184632b578d3Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
184732b578d3Smrg	    esac
184832b578d3Smrg	    ;;
184932b578d3Smrg	  -* ) ac_must_keep_next=true ;;
185032b578d3Smrg	esac
185132b578d3Smrg      fi
185232b578d3Smrg      ac_configure_args="$ac_configure_args '$ac_arg'"
185332b578d3Smrg      ;;
185432b578d3Smrg    esac
185532b578d3Smrg  done
185632b578d3Smrgdone
185732b578d3Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
185832b578d3Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
185932b578d3Smrg
186032b578d3Smrg# When interrupted or exit'd, cleanup temporary files, and complete
186132b578d3Smrg# config.log.  We remove comments because anyway the quotes in there
186232b578d3Smrg# would cause problems or look ugly.
186332b578d3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
186432b578d3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
186532b578d3Smrgtrap 'exit_status=$?
186632b578d3Smrg  # Save into config.log some information that might help in debugging.
186732b578d3Smrg  {
186832b578d3Smrg    echo
186932b578d3Smrg
187032b578d3Smrg    cat <<\_ASBOX
187132b578d3Smrg## ---------------- ##
187232b578d3Smrg## Cache variables. ##
187332b578d3Smrg## ---------------- ##
187432b578d3Smrg_ASBOX
187532b578d3Smrg    echo
187632b578d3Smrg    # The following way of writing the cache mishandles newlines in values,
187732b578d3Smrg(
187832b578d3Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
187932b578d3Smrg    eval ac_val=\$$ac_var
188032b578d3Smrg    case $ac_val in #(
188132b578d3Smrg    *${as_nl}*)
188232b578d3Smrg      case $ac_var in #(
18832a51b5beSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18842a51b5beSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
188532b578d3Smrg      esac
188632b578d3Smrg      case $ac_var in #(
188732b578d3Smrg      _ | IFS | as_nl) ;; #(
18882a51b5beSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
188932b578d3Smrg      *) $as_unset $ac_var ;;
189032b578d3Smrg      esac ;;
189132b578d3Smrg    esac
189232b578d3Smrg  done
189332b578d3Smrg  (set) 2>&1 |
189432b578d3Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
189532b578d3Smrg    *${as_nl}ac_space=\ *)
189632b578d3Smrg      sed -n \
189732b578d3Smrg	"s/'\''/'\''\\\\'\'''\''/g;
189832b578d3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
189932b578d3Smrg      ;; #(
190032b578d3Smrg    *)
190132b578d3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
190232b578d3Smrg      ;;
190332b578d3Smrg    esac |
190432b578d3Smrg    sort
190532b578d3Smrg)
190632b578d3Smrg    echo
190732b578d3Smrg
190832b578d3Smrg    cat <<\_ASBOX
190932b578d3Smrg## ----------------- ##
191032b578d3Smrg## Output variables. ##
191132b578d3Smrg## ----------------- ##
191232b578d3Smrg_ASBOX
191332b578d3Smrg    echo
191432b578d3Smrg    for ac_var in $ac_subst_vars
191532b578d3Smrg    do
191632b578d3Smrg      eval ac_val=\$$ac_var
191732b578d3Smrg      case $ac_val in
19182a51b5beSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
191932b578d3Smrg      esac
19202a51b5beSmrg      $as_echo "$ac_var='\''$ac_val'\''"
192132b578d3Smrg    done | sort
192232b578d3Smrg    echo
192332b578d3Smrg
192432b578d3Smrg    if test -n "$ac_subst_files"; then
192532b578d3Smrg      cat <<\_ASBOX
192632b578d3Smrg## ------------------- ##
192732b578d3Smrg## File substitutions. ##
192832b578d3Smrg## ------------------- ##
192932b578d3Smrg_ASBOX
193032b578d3Smrg      echo
193132b578d3Smrg      for ac_var in $ac_subst_files
193232b578d3Smrg      do
193332b578d3Smrg	eval ac_val=\$$ac_var
193432b578d3Smrg	case $ac_val in
19352a51b5beSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
193632b578d3Smrg	esac
19372a51b5beSmrg	$as_echo "$ac_var='\''$ac_val'\''"
193832b578d3Smrg      done | sort
193932b578d3Smrg      echo
194032b578d3Smrg    fi
194132b578d3Smrg
194232b578d3Smrg    if test -s confdefs.h; then
194332b578d3Smrg      cat <<\_ASBOX
194432b578d3Smrg## ----------- ##
194532b578d3Smrg## confdefs.h. ##
194632b578d3Smrg## ----------- ##
194732b578d3Smrg_ASBOX
194832b578d3Smrg      echo
194932b578d3Smrg      cat confdefs.h
195032b578d3Smrg      echo
195132b578d3Smrg    fi
195232b578d3Smrg    test "$ac_signal" != 0 &&
19532a51b5beSmrg      $as_echo "$as_me: caught signal $ac_signal"
19542a51b5beSmrg    $as_echo "$as_me: exit $exit_status"
195532b578d3Smrg  } >&5
195632b578d3Smrg  rm -f core *.core core.conftest.* &&
195732b578d3Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
195832b578d3Smrg    exit $exit_status
195932b578d3Smrg' 0
196032b578d3Smrgfor ac_signal in 1 2 13 15; do
196132b578d3Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
196232b578d3Smrgdone
196332b578d3Smrgac_signal=0
196432b578d3Smrg
196532b578d3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
196632b578d3Smrgrm -f -r conftest* confdefs.h
196732b578d3Smrg
196832b578d3Smrg# Predefined preprocessor variables.
196932b578d3Smrg
197032b578d3Smrgcat >>confdefs.h <<_ACEOF
197132b578d3Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
197232b578d3Smrg_ACEOF
197332b578d3Smrg
197432b578d3Smrg
197532b578d3Smrgcat >>confdefs.h <<_ACEOF
197632b578d3Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
197732b578d3Smrg_ACEOF
197832b578d3Smrg
197932b578d3Smrg
198032b578d3Smrgcat >>confdefs.h <<_ACEOF
198132b578d3Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
198232b578d3Smrg_ACEOF
198332b578d3Smrg
198432b578d3Smrg
198532b578d3Smrgcat >>confdefs.h <<_ACEOF
198632b578d3Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
198732b578d3Smrg_ACEOF
198832b578d3Smrg
198932b578d3Smrg
199032b578d3Smrgcat >>confdefs.h <<_ACEOF
199132b578d3Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
199232b578d3Smrg_ACEOF
199332b578d3Smrg
199432b578d3Smrg
199532b578d3Smrg# Let the site file select an alternate cache file if it wants to.
19962a51b5beSmrg# Prefer an explicitly selected file to automatically selected ones.
19972a51b5beSmrgac_site_file1=NONE
19982a51b5beSmrgac_site_file2=NONE
199932b578d3Smrgif test -n "$CONFIG_SITE"; then
20002a51b5beSmrg  ac_site_file1=$CONFIG_SITE
200132b578d3Smrgelif test "x$prefix" != xNONE; then
20022a51b5beSmrg  ac_site_file1=$prefix/share/config.site
20032a51b5beSmrg  ac_site_file2=$prefix/etc/config.site
200432b578d3Smrgelse
20052a51b5beSmrg  ac_site_file1=$ac_default_prefix/share/config.site
20062a51b5beSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
200732b578d3Smrgfi
20082a51b5beSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
200932b578d3Smrgdo
20102a51b5beSmrg  test "x$ac_site_file" = xNONE && continue
201132b578d3Smrg  if test -r "$ac_site_file"; then
20122a51b5beSmrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
20132a51b5beSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
201432b578d3Smrg    sed 's/^/| /' "$ac_site_file" >&5
201532b578d3Smrg    . "$ac_site_file"
201632b578d3Smrg  fi
201732b578d3Smrgdone
201832b578d3Smrg
201932b578d3Smrgif test -r "$cache_file"; then
202032b578d3Smrg  # Some versions of bash will fail to source /dev/null (special
202132b578d3Smrg  # files actually), so we avoid doing that.
202232b578d3Smrg  if test -f "$cache_file"; then
20232a51b5beSmrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
20242a51b5beSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
202532b578d3Smrg    case $cache_file in
202632b578d3Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
202732b578d3Smrg      *)                      . "./$cache_file";;
202832b578d3Smrg    esac
202932b578d3Smrg  fi
203032b578d3Smrgelse
20312a51b5beSmrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
20322a51b5beSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
203332b578d3Smrg  >$cache_file
203432b578d3Smrgfi
203532b578d3Smrg
203632b578d3Smrg# Check that the precious variables saved in the cache have kept the same
203732b578d3Smrg# value.
203832b578d3Smrgac_cache_corrupted=false
203932b578d3Smrgfor ac_var in $ac_precious_vars; do
204032b578d3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
204132b578d3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
204232b578d3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
204332b578d3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
204432b578d3Smrg  case $ac_old_set,$ac_new_set in
204532b578d3Smrg    set,)
20462a51b5beSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20472a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
204832b578d3Smrg      ac_cache_corrupted=: ;;
204932b578d3Smrg    ,set)
20502a51b5beSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
20512a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
205232b578d3Smrg      ac_cache_corrupted=: ;;
205332b578d3Smrg    ,);;
205432b578d3Smrg    *)
205532b578d3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
20562a51b5beSmrg	# differences in whitespace do not lead to failure.
20572a51b5beSmrg	ac_old_val_w=`echo x $ac_old_val`
20582a51b5beSmrg	ac_new_val_w=`echo x $ac_new_val`
20592a51b5beSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
20602a51b5beSmrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
20612a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20622a51b5beSmrg	  ac_cache_corrupted=:
20632a51b5beSmrg	else
20642a51b5beSmrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20652a51b5beSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20662a51b5beSmrg	  eval $ac_var=\$ac_old_val
20672a51b5beSmrg	fi
20682a51b5beSmrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
20692a51b5beSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20702a51b5beSmrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
20712a51b5beSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
207232b578d3Smrg      fi;;
207332b578d3Smrg  esac
207432b578d3Smrg  # Pass precious variables to config.status.
207532b578d3Smrg  if test "$ac_new_set" = set; then
207632b578d3Smrg    case $ac_new_val in
20772a51b5beSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
207832b578d3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
207932b578d3Smrg    esac
208032b578d3Smrg    case " $ac_configure_args " in
208132b578d3Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
208232b578d3Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
208332b578d3Smrg    esac
208432b578d3Smrg  fi
208532b578d3Smrgdone
208632b578d3Smrgif $ac_cache_corrupted; then
20872a51b5beSmrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20882a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20892a51b5beSmrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
20902a51b5beSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
20912a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
20922a51b5beSmrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
209332b578d3Smrg   { (exit 1); exit 1; }; }
209432b578d3Smrgfi
209532b578d3Smrg
209632b578d3Smrg
209732b578d3Smrg
209832b578d3Smrg
209932b578d3Smrg
210032b578d3Smrg
210132b578d3Smrg
210232b578d3Smrg
210332b578d3Smrg
210432b578d3Smrg
210532b578d3Smrg
210632b578d3Smrg
210732b578d3Smrg
210832b578d3Smrg
210932b578d3Smrg
211032b578d3Smrg
211132b578d3Smrg
211232b578d3Smrg
211332b578d3Smrg
211432b578d3Smrg
211532b578d3Smrg
211632b578d3Smrg
211732b578d3Smrg
211832b578d3Smrg
211932b578d3Smrg
212032b578d3Smrgac_ext=c
212132b578d3Smrgac_cpp='$CPP $CPPFLAGS'
212232b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
212332b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
212432b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
212532b578d3Smrg
212632b578d3Smrg
212732b578d3Smrg
212832b578d3Smrg
212932b578d3Smrgac_config_headers="$ac_config_headers config.h"
213032b578d3Smrg
213132b578d3Smrgac_aux_dir=
213232b578d3Smrgfor ac_dir in . "$srcdir"/.; do
213332b578d3Smrg  if test -f "$ac_dir/install-sh"; then
213432b578d3Smrg    ac_aux_dir=$ac_dir
213532b578d3Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
213632b578d3Smrg    break
213732b578d3Smrg  elif test -f "$ac_dir/install.sh"; then
213832b578d3Smrg    ac_aux_dir=$ac_dir
213932b578d3Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
214032b578d3Smrg    break
214132b578d3Smrg  elif test -f "$ac_dir/shtool"; then
214232b578d3Smrg    ac_aux_dir=$ac_dir
214332b578d3Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
214432b578d3Smrg    break
214532b578d3Smrg  fi
214632b578d3Smrgdone
214732b578d3Smrgif test -z "$ac_aux_dir"; then
21482a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
21492a51b5beSmrg$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
215032b578d3Smrg   { (exit 1); exit 1; }; }
215132b578d3Smrgfi
215232b578d3Smrg
215332b578d3Smrg# These three variables are undocumented and unsupported,
215432b578d3Smrg# and are intended to be withdrawn in a future Autoconf release.
215532b578d3Smrg# They can cause serious problems if a builder's source tree is in a directory
215632b578d3Smrg# whose full name contains unusual characters.
215732b578d3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
215832b578d3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
215932b578d3Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
216032b578d3Smrg
216132b578d3Smrg
216232b578d3Smrg
21632a51b5beSmrgam__api_version='1.11'
216432b578d3Smrg
216532b578d3Smrg# Find a good install program.  We prefer a C program (faster),
216632b578d3Smrg# so one script is as good as another.  But avoid the broken or
216732b578d3Smrg# incompatible versions:
216832b578d3Smrg# SysV /etc/install, /usr/sbin/install
216932b578d3Smrg# SunOS /usr/etc/install
217032b578d3Smrg# IRIX /sbin/install
217132b578d3Smrg# AIX /bin/install
217232b578d3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
217332b578d3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
217432b578d3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
217532b578d3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
217632b578d3Smrg# OS/2's system install, which has a completely different semantic
217732b578d3Smrg# ./install, which can be erroneously created by make from ./install.sh.
21782a51b5beSmrg# Reject install programs that cannot install multiple files.
21792a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21802a51b5beSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
218132b578d3Smrgif test -z "$INSTALL"; then
218232b578d3Smrgif test "${ac_cv_path_install+set}" = set; then
21832a51b5beSmrg  $as_echo_n "(cached) " >&6
218432b578d3Smrgelse
218532b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218632b578d3Smrgfor as_dir in $PATH
218732b578d3Smrgdo
218832b578d3Smrg  IFS=$as_save_IFS
218932b578d3Smrg  test -z "$as_dir" && as_dir=.
219032b578d3Smrg  # Account for people who put trailing slashes in PATH elements.
219132b578d3Smrgcase $as_dir/ in
219232b578d3Smrg  ./ | .// | /cC/* | \
219332b578d3Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
219432b578d3Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
219532b578d3Smrg  /usr/ucb/* ) ;;
219632b578d3Smrg  *)
219732b578d3Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
219832b578d3Smrg    # Don't use installbsd from OSF since it installs stuff as root
219932b578d3Smrg    # by default.
220032b578d3Smrg    for ac_prog in ginstall scoinst install; do
220132b578d3Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
220232b578d3Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
220332b578d3Smrg	  if test $ac_prog = install &&
220432b578d3Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
220532b578d3Smrg	    # AIX install.  It has an incompatible calling convention.
220632b578d3Smrg	    :
220732b578d3Smrg	  elif test $ac_prog = install &&
220832b578d3Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
220932b578d3Smrg	    # program-specific install script used by HP pwplus--don't use.
221032b578d3Smrg	    :
221132b578d3Smrg	  else
22122a51b5beSmrg	    rm -rf conftest.one conftest.two conftest.dir
22132a51b5beSmrg	    echo one > conftest.one
22142a51b5beSmrg	    echo two > conftest.two
22152a51b5beSmrg	    mkdir conftest.dir
22162a51b5beSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22172a51b5beSmrg	      test -s conftest.one && test -s conftest.two &&
22182a51b5beSmrg	      test -s conftest.dir/conftest.one &&
22192a51b5beSmrg	      test -s conftest.dir/conftest.two
22202a51b5beSmrg	    then
22212a51b5beSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22222a51b5beSmrg	      break 3
22232a51b5beSmrg	    fi
222432b578d3Smrg	  fi
222532b578d3Smrg	fi
222632b578d3Smrg      done
222732b578d3Smrg    done
222832b578d3Smrg    ;;
222932b578d3Smrgesac
22302a51b5beSmrg
223132b578d3Smrgdone
223232b578d3SmrgIFS=$as_save_IFS
223332b578d3Smrg
22342a51b5beSmrgrm -rf conftest.one conftest.two conftest.dir
223532b578d3Smrg
223632b578d3Smrgfi
223732b578d3Smrg  if test "${ac_cv_path_install+set}" = set; then
223832b578d3Smrg    INSTALL=$ac_cv_path_install
223932b578d3Smrg  else
224032b578d3Smrg    # As a last resort, use the slow shell script.  Don't cache a
224132b578d3Smrg    # value for INSTALL within a source directory, because that will
224232b578d3Smrg    # break other packages using the cache if that directory is
224332b578d3Smrg    # removed, or if the value is a relative name.
224432b578d3Smrg    INSTALL=$ac_install_sh
224532b578d3Smrg  fi
224632b578d3Smrgfi
22472a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
22482a51b5beSmrg$as_echo "$INSTALL" >&6; }
224932b578d3Smrg
225032b578d3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
225132b578d3Smrg# It thinks the first close brace ends the variable substitution.
225232b578d3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
225332b578d3Smrg
225432b578d3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
225532b578d3Smrg
225632b578d3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
225732b578d3Smrg
22582a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
22592a51b5beSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
226032b578d3Smrg# Just in case
226132b578d3Smrgsleep 1
226232b578d3Smrgecho timestamp > conftest.file
22632a51b5beSmrg# Reject unsafe characters in $srcdir or the absolute working directory
22642a51b5beSmrg# name.  Accept space and tab only in the latter.
22652a51b5beSmrgam_lf='
22662a51b5beSmrg'
22672a51b5beSmrgcase `pwd` in
22682a51b5beSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
22692a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
22702a51b5beSmrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
22712a51b5beSmrg   { (exit 1); exit 1; }; };;
22722a51b5beSmrgesac
22732a51b5beSmrgcase $srcdir in
22742a51b5beSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
22752a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
22762a51b5beSmrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
22772a51b5beSmrg   { (exit 1); exit 1; }; };;
22782a51b5beSmrgesac
22792a51b5beSmrg
228032b578d3Smrg# Do `set' in a subshell so we don't clobber the current shell's
228132b578d3Smrg# arguments.  Must try -L first in case configure is actually a
228232b578d3Smrg# symlink; some systems play weird games with the mod time of symlinks
228332b578d3Smrg# (eg FreeBSD returns the mod time of the symlink's containing
228432b578d3Smrg# directory).
228532b578d3Smrgif (
22862a51b5beSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
228732b578d3Smrg   if test "$*" = "X"; then
228832b578d3Smrg      # -L didn't work.
22892a51b5beSmrg      set X `ls -t "$srcdir/configure" conftest.file`
229032b578d3Smrg   fi
229132b578d3Smrg   rm -f conftest.file
229232b578d3Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
229332b578d3Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
229432b578d3Smrg
229532b578d3Smrg      # If neither matched, then we have a broken ls.  This can happen
229632b578d3Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
229732b578d3Smrg      # broken ls alias from the environment.  This has actually
229832b578d3Smrg      # happened.  Such a system could not be considered "sane".
22992a51b5beSmrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
230032b578d3Smrgalias in your environment" >&5
23012a51b5beSmrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
230232b578d3Smrgalias in your environment" >&2;}
230332b578d3Smrg   { (exit 1); exit 1; }; }
230432b578d3Smrg   fi
230532b578d3Smrg
230632b578d3Smrg   test "$2" = conftest.file
230732b578d3Smrg   )
230832b578d3Smrgthen
230932b578d3Smrg   # Ok.
231032b578d3Smrg   :
231132b578d3Smrgelse
23122a51b5beSmrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
231332b578d3SmrgCheck your system clock" >&5
23142a51b5beSmrg$as_echo "$as_me: error: newly created file is older than distributed files!
231532b578d3SmrgCheck your system clock" >&2;}
231632b578d3Smrg   { (exit 1); exit 1; }; }
231732b578d3Smrgfi
23182a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
23192a51b5beSmrg$as_echo "yes" >&6; }
232032b578d3Smrgtest "$program_prefix" != NONE &&
232132b578d3Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
232232b578d3Smrg# Use a double $ so make ignores it.
232332b578d3Smrgtest "$program_suffix" != NONE &&
232432b578d3Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23252a51b5beSmrg# Double any \ or $.
232632b578d3Smrg# By default was `s,x,x', remove it if useless.
23272a51b5beSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23282a51b5beSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
232932b578d3Smrg
233032b578d3Smrg# expand $ac_aux_dir to an absolute path
233132b578d3Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
233232b578d3Smrg
23332a51b5beSmrgif test x"${MISSING+set}" != xset; then
23342a51b5beSmrg  case $am_aux_dir in
23352a51b5beSmrg  *\ * | *\	*)
23362a51b5beSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23372a51b5beSmrg  *)
23382a51b5beSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23392a51b5beSmrg  esac
23402a51b5beSmrgfi
234132b578d3Smrg# Use eval to expand $SHELL
234232b578d3Smrgif eval "$MISSING --run true"; then
234332b578d3Smrg  am_missing_run="$MISSING --run "
234432b578d3Smrgelse
234532b578d3Smrg  am_missing_run=
23462a51b5beSmrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
23472a51b5beSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23482a51b5beSmrgfi
23492a51b5beSmrg
23502a51b5beSmrgif test x"${install_sh}" != xset; then
23512a51b5beSmrg  case $am_aux_dir in
23522a51b5beSmrg  *\ * | *\	*)
23532a51b5beSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23542a51b5beSmrg  *)
23552a51b5beSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23562a51b5beSmrg  esac
23572a51b5beSmrgfi
23582a51b5beSmrg
23592a51b5beSmrg# Installed binaries are usually stripped using `strip' when the user
23602a51b5beSmrg# run `make install-strip'.  However `strip' might not be the right
23612a51b5beSmrg# tool to use in cross-compilation environments, therefore Automake
23622a51b5beSmrg# will honor the `STRIP' environment variable to overrule this program.
23632a51b5beSmrgif test "$cross_compiling" != no; then
23642a51b5beSmrg  if test -n "$ac_tool_prefix"; then
23652a51b5beSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23662a51b5beSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23672a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23682a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
23692a51b5beSmrgif test "${ac_cv_prog_STRIP+set}" = set; then
23702a51b5beSmrg  $as_echo_n "(cached) " >&6
23712a51b5beSmrgelse
23722a51b5beSmrg  if test -n "$STRIP"; then
23732a51b5beSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23742a51b5beSmrgelse
23752a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23762a51b5beSmrgfor as_dir in $PATH
23772a51b5beSmrgdo
23782a51b5beSmrg  IFS=$as_save_IFS
23792a51b5beSmrg  test -z "$as_dir" && as_dir=.
23802a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
23812a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23822a51b5beSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23832a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23842a51b5beSmrg    break 2
23852a51b5beSmrg  fi
23862a51b5beSmrgdone
23872a51b5beSmrgdone
23882a51b5beSmrgIFS=$as_save_IFS
23892a51b5beSmrg
23902a51b5beSmrgfi
23912a51b5beSmrgfi
23922a51b5beSmrgSTRIP=$ac_cv_prog_STRIP
23932a51b5beSmrgif test -n "$STRIP"; then
23942a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
23952a51b5beSmrg$as_echo "$STRIP" >&6; }
23962a51b5beSmrgelse
23972a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
23982a51b5beSmrg$as_echo "no" >&6; }
23992a51b5beSmrgfi
24002a51b5beSmrg
24012a51b5beSmrg
24022a51b5beSmrgfi
24032a51b5beSmrgif test -z "$ac_cv_prog_STRIP"; then
24042a51b5beSmrg  ac_ct_STRIP=$STRIP
24052a51b5beSmrg  # Extract the first word of "strip", so it can be a program name with args.
24062a51b5beSmrgset dummy strip; ac_word=$2
24072a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24082a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
24092a51b5beSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
24102a51b5beSmrg  $as_echo_n "(cached) " >&6
24112a51b5beSmrgelse
24122a51b5beSmrg  if test -n "$ac_ct_STRIP"; then
24132a51b5beSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24142a51b5beSmrgelse
24152a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162a51b5beSmrgfor as_dir in $PATH
24172a51b5beSmrgdo
24182a51b5beSmrg  IFS=$as_save_IFS
24192a51b5beSmrg  test -z "$as_dir" && as_dir=.
24202a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
24212a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24222a51b5beSmrg    ac_cv_prog_ac_ct_STRIP="strip"
24232a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24242a51b5beSmrg    break 2
24252a51b5beSmrg  fi
24262a51b5beSmrgdone
24272a51b5beSmrgdone
24282a51b5beSmrgIFS=$as_save_IFS
24292a51b5beSmrg
24302a51b5beSmrgfi
24312a51b5beSmrgfi
24322a51b5beSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24332a51b5beSmrgif test -n "$ac_ct_STRIP"; then
24342a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
24352a51b5beSmrg$as_echo "$ac_ct_STRIP" >&6; }
24362a51b5beSmrgelse
24372a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
24382a51b5beSmrg$as_echo "no" >&6; }
24392a51b5beSmrgfi
24402a51b5beSmrg
24412a51b5beSmrg  if test "x$ac_ct_STRIP" = x; then
24422a51b5beSmrg    STRIP=":"
24432a51b5beSmrg  else
24442a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
24452a51b5beSmrgyes:)
24462a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24472a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24482a51b5beSmrgac_tool_warned=yes ;;
24492a51b5beSmrgesac
24502a51b5beSmrg    STRIP=$ac_ct_STRIP
24512a51b5beSmrg  fi
24522a51b5beSmrgelse
24532a51b5beSmrg  STRIP="$ac_cv_prog_STRIP"
24542a51b5beSmrgfi
24552a51b5beSmrg
245632b578d3Smrgfi
24572a51b5beSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
245832b578d3Smrg
24592a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
24602a51b5beSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
246132b578d3Smrgif test -z "$MKDIR_P"; then
246232b578d3Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
24632a51b5beSmrg  $as_echo_n "(cached) " >&6
246432b578d3Smrgelse
246532b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246632b578d3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
246732b578d3Smrgdo
246832b578d3Smrg  IFS=$as_save_IFS
246932b578d3Smrg  test -z "$as_dir" && as_dir=.
247032b578d3Smrg  for ac_prog in mkdir gmkdir; do
247132b578d3Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
247232b578d3Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
247332b578d3Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
247432b578d3Smrg	     'mkdir (GNU coreutils) '* | \
247532b578d3Smrg	     'mkdir (coreutils) '* | \
247632b578d3Smrg	     'mkdir (fileutils) '4.1*)
247732b578d3Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
247832b578d3Smrg	       break 3;;
247932b578d3Smrg	   esac
248032b578d3Smrg	 done
248132b578d3Smrg       done
248232b578d3Smrgdone
248332b578d3SmrgIFS=$as_save_IFS
248432b578d3Smrg
248532b578d3Smrgfi
248632b578d3Smrg
248732b578d3Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
248832b578d3Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
248932b578d3Smrg  else
249032b578d3Smrg    # As a last resort, use the slow shell script.  Don't cache a
249132b578d3Smrg    # value for MKDIR_P within a source directory, because that will
249232b578d3Smrg    # break other packages using the cache if that directory is
249332b578d3Smrg    # removed, or if the value is a relative name.
249432b578d3Smrg    test -d ./--version && rmdir ./--version
249532b578d3Smrg    MKDIR_P="$ac_install_sh -d"
249632b578d3Smrg  fi
249732b578d3Smrgfi
24982a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
24992a51b5beSmrg$as_echo "$MKDIR_P" >&6; }
250032b578d3Smrg
250132b578d3Smrgmkdir_p="$MKDIR_P"
250232b578d3Smrgcase $mkdir_p in
250332b578d3Smrg  [\\/$]* | ?:[\\/]*) ;;
250432b578d3Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
250532b578d3Smrgesac
250632b578d3Smrg
250732b578d3Smrgfor ac_prog in gawk mawk nawk awk
250832b578d3Smrgdo
250932b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
251032b578d3Smrgset dummy $ac_prog; ac_word=$2
25112a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25122a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
251332b578d3Smrgif test "${ac_cv_prog_AWK+set}" = set; then
25142a51b5beSmrg  $as_echo_n "(cached) " >&6
251532b578d3Smrgelse
251632b578d3Smrg  if test -n "$AWK"; then
251732b578d3Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
251832b578d3Smrgelse
251932b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252032b578d3Smrgfor as_dir in $PATH
252132b578d3Smrgdo
252232b578d3Smrg  IFS=$as_save_IFS
252332b578d3Smrg  test -z "$as_dir" && as_dir=.
252432b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
252532b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
252632b578d3Smrg    ac_cv_prog_AWK="$ac_prog"
25272a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
252832b578d3Smrg    break 2
252932b578d3Smrg  fi
253032b578d3Smrgdone
253132b578d3Smrgdone
253232b578d3SmrgIFS=$as_save_IFS
253332b578d3Smrg
253432b578d3Smrgfi
253532b578d3Smrgfi
253632b578d3SmrgAWK=$ac_cv_prog_AWK
253732b578d3Smrgif test -n "$AWK"; then
25382a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
25392a51b5beSmrg$as_echo "$AWK" >&6; }
254032b578d3Smrgelse
25412a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25422a51b5beSmrg$as_echo "no" >&6; }
254332b578d3Smrgfi
254432b578d3Smrg
254532b578d3Smrg
254632b578d3Smrg  test -n "$AWK" && break
254732b578d3Smrgdone
254832b578d3Smrg
25492a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25502a51b5beSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25512a51b5beSmrgset x ${MAKE-make}
25522a51b5beSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
255332b578d3Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
25542a51b5beSmrg  $as_echo_n "(cached) " >&6
255532b578d3Smrgelse
255632b578d3Smrg  cat >conftest.make <<\_ACEOF
255732b578d3SmrgSHELL = /bin/sh
255832b578d3Smrgall:
255932b578d3Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
256032b578d3Smrg_ACEOF
256132b578d3Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
256232b578d3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
256332b578d3Smrg  *@@@%%%=?*=@@@%%%*)
256432b578d3Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
256532b578d3Smrg  *)
256632b578d3Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
256732b578d3Smrgesac
256832b578d3Smrgrm -f conftest.make
256932b578d3Smrgfi
257032b578d3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25712a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
25722a51b5beSmrg$as_echo "yes" >&6; }
257332b578d3Smrg  SET_MAKE=
257432b578d3Smrgelse
25752a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25762a51b5beSmrg$as_echo "no" >&6; }
257732b578d3Smrg  SET_MAKE="MAKE=${MAKE-make}"
257832b578d3Smrgfi
257932b578d3Smrg
258032b578d3Smrgrm -rf .tst 2>/dev/null
258132b578d3Smrgmkdir .tst 2>/dev/null
258232b578d3Smrgif test -d .tst; then
258332b578d3Smrg  am__leading_dot=.
258432b578d3Smrgelse
258532b578d3Smrg  am__leading_dot=_
258632b578d3Smrgfi
258732b578d3Smrgrmdir .tst 2>/dev/null
258832b578d3Smrg
258932b578d3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
259032b578d3Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
259132b578d3Smrg  # is not polluted with repeated "-I."
259232b578d3Smrg  am__isrc=' -I$(srcdir)'
259332b578d3Smrg  # test to see if srcdir already configured
259432b578d3Smrg  if test -f $srcdir/config.status; then
25952a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
25962a51b5beSmrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
259732b578d3Smrg   { (exit 1); exit 1; }; }
259832b578d3Smrg  fi
259932b578d3Smrgfi
260032b578d3Smrg
260132b578d3Smrg# test whether we have cygpath
260232b578d3Smrgif test -z "$CYGPATH_W"; then
260332b578d3Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
260432b578d3Smrg    CYGPATH_W='cygpath -w'
260532b578d3Smrg  else
260632b578d3Smrg    CYGPATH_W=echo
260732b578d3Smrg  fi
260832b578d3Smrgfi
260932b578d3Smrg
261032b578d3Smrg
261132b578d3Smrg# Define the identity of the package.
261232b578d3Smrg PACKAGE='xf86-video-mach64'
26132a51b5beSmrg VERSION='6.8.2'
261432b578d3Smrg
261532b578d3Smrg
261632b578d3Smrgcat >>confdefs.h <<_ACEOF
261732b578d3Smrg#define PACKAGE "$PACKAGE"
261832b578d3Smrg_ACEOF
261932b578d3Smrg
262032b578d3Smrg
262132b578d3Smrgcat >>confdefs.h <<_ACEOF
262232b578d3Smrg#define VERSION "$VERSION"
262332b578d3Smrg_ACEOF
262432b578d3Smrg
262532b578d3Smrg# Some tools Automake needs.
262632b578d3Smrg
262732b578d3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
262832b578d3Smrg
262932b578d3Smrg
263032b578d3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
263132b578d3Smrg
263232b578d3Smrg
263332b578d3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
263432b578d3Smrg
263532b578d3Smrg
263632b578d3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
263732b578d3Smrg
263832b578d3Smrg
263932b578d3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
264032b578d3Smrg
264132b578d3Smrg# We need awk for the "check" target.  The system "awk" is bad on
264232b578d3Smrg# some platforms.
264332b578d3Smrg# Always define AMTAR for backward compatibility.
264432b578d3Smrg
264532b578d3SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
264632b578d3Smrg
264732b578d3Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
264832b578d3Smrg
264932b578d3Smrg
265032b578d3Smrg
265132b578d3Smrg
265232b578d3Smrg
265332b578d3Smrg
26542a51b5beSmrg
26552a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26562a51b5beSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
265732b578d3Smrg    # Check whether --enable-maintainer-mode was given.
265832b578d3Smrgif test "${enable_maintainer_mode+set}" = set; then
265932b578d3Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
266032b578d3Smrgelse
266132b578d3Smrg  USE_MAINTAINER_MODE=no
266232b578d3Smrgfi
266332b578d3Smrg
26642a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26652a51b5beSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
266632b578d3Smrg   if test $USE_MAINTAINER_MODE = yes; then
266732b578d3Smrg  MAINTAINER_MODE_TRUE=
266832b578d3Smrg  MAINTAINER_MODE_FALSE='#'
266932b578d3Smrgelse
267032b578d3Smrg  MAINTAINER_MODE_TRUE='#'
267132b578d3Smrg  MAINTAINER_MODE_FALSE=
267232b578d3Smrgfi
267332b578d3Smrg
267432b578d3Smrg  MAINT=$MAINTAINER_MODE_TRUE
267532b578d3Smrg
267632b578d3Smrg
267732b578d3Smrg
2678d31dbc53Smrg# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2679d31dbc53Smrg
2680d31dbc53Smrg
26812a51b5beSmrg	XORG_MACROS_needed_version=1.2
26822a51b5beSmrg	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
26832a51b5beSmrg	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
26842a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
26852a51b5beSmrg$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
26862a51b5beSmrg	XORG_MACROS_version=1.2.1
26872a51b5beSmrg	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
26882a51b5beSmrg	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
26892a51b5beSmrg	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
26902a51b5beSmrg		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
26912a51b5beSmrg$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
26922a51b5beSmrg   { (exit 1); exit 1; }; }
26932a51b5beSmrg	fi
26942a51b5beSmrg	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
26952a51b5beSmrg		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
26962a51b5beSmrg$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
26972a51b5beSmrg   { (exit 1); exit 1; }; }
26982a51b5beSmrg	fi
26992a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
27002a51b5beSmrg$as_echo "yes, $XORG_MACROS_version" >&6; }
2701d31dbc53Smrg
2702d31dbc53Smrg
270332b578d3Smrg# Checks for programs.
270432b578d3Smrg# Check whether --enable-static was given.
270532b578d3Smrgif test "${enable_static+set}" = set; then
270632b578d3Smrg  enableval=$enable_static; p=${PACKAGE-default}
270732b578d3Smrg    case $enableval in
270832b578d3Smrg    yes) enable_static=yes ;;
270932b578d3Smrg    no) enable_static=no ;;
271032b578d3Smrg    *)
271132b578d3Smrg     enable_static=no
271232b578d3Smrg      # Look at the argument we got.  We use all the common list separators.
271332b578d3Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
271432b578d3Smrg      for pkg in $enableval; do
271532b578d3Smrg	IFS="$lt_save_ifs"
271632b578d3Smrg	if test "X$pkg" = "X$p"; then
271732b578d3Smrg	  enable_static=yes
271832b578d3Smrg	fi
271932b578d3Smrg      done
272032b578d3Smrg      IFS="$lt_save_ifs"
272132b578d3Smrg      ;;
272232b578d3Smrg    esac
272332b578d3Smrgelse
272432b578d3Smrg  enable_static=no
272532b578d3Smrgfi
272632b578d3Smrg
272732b578d3Smrg
272832b578d3Smrg
272932b578d3Smrg# Check whether --enable-shared was given.
273032b578d3Smrgif test "${enable_shared+set}" = set; then
273132b578d3Smrg  enableval=$enable_shared; p=${PACKAGE-default}
273232b578d3Smrg    case $enableval in
273332b578d3Smrg    yes) enable_shared=yes ;;
273432b578d3Smrg    no) enable_shared=no ;;
273532b578d3Smrg    *)
273632b578d3Smrg      enable_shared=no
273732b578d3Smrg      # Look at the argument we got.  We use all the common list separators.
273832b578d3Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
273932b578d3Smrg      for pkg in $enableval; do
274032b578d3Smrg	IFS="$lt_save_ifs"
274132b578d3Smrg	if test "X$pkg" = "X$p"; then
274232b578d3Smrg	  enable_shared=yes
274332b578d3Smrg	fi
274432b578d3Smrg      done
274532b578d3Smrg      IFS="$lt_save_ifs"
274632b578d3Smrg      ;;
274732b578d3Smrg    esac
274832b578d3Smrgelse
274932b578d3Smrg  enable_shared=yes
275032b578d3Smrgfi
275132b578d3Smrg
275232b578d3Smrg
275332b578d3Smrg# Check whether --enable-fast-install was given.
275432b578d3Smrgif test "${enable_fast_install+set}" = set; then
275532b578d3Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
275632b578d3Smrg    case $enableval in
275732b578d3Smrg    yes) enable_fast_install=yes ;;
275832b578d3Smrg    no) enable_fast_install=no ;;
275932b578d3Smrg    *)
276032b578d3Smrg      enable_fast_install=no
276132b578d3Smrg      # Look at the argument we got.  We use all the common list separators.
276232b578d3Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
276332b578d3Smrg      for pkg in $enableval; do
276432b578d3Smrg	IFS="$lt_save_ifs"
276532b578d3Smrg	if test "X$pkg" = "X$p"; then
276632b578d3Smrg	  enable_fast_install=yes
276732b578d3Smrg	fi
276832b578d3Smrg      done
276932b578d3Smrg      IFS="$lt_save_ifs"
277032b578d3Smrg      ;;
277132b578d3Smrg    esac
277232b578d3Smrgelse
277332b578d3Smrg  enable_fast_install=yes
277432b578d3Smrgfi
277532b578d3Smrg
277632b578d3Smrg
277732b578d3Smrg# Make sure we can run config.sub.
277832b578d3Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
27792a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
27802a51b5beSmrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
278132b578d3Smrg   { (exit 1); exit 1; }; }
278232b578d3Smrg
27832a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
27842a51b5beSmrg$as_echo_n "checking build system type... " >&6; }
278532b578d3Smrgif test "${ac_cv_build+set}" = set; then
27862a51b5beSmrg  $as_echo_n "(cached) " >&6
278732b578d3Smrgelse
278832b578d3Smrg  ac_build_alias=$build_alias
278932b578d3Smrgtest "x$ac_build_alias" = x &&
279032b578d3Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
279132b578d3Smrgtest "x$ac_build_alias" = x &&
27922a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
27932a51b5beSmrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
279432b578d3Smrg   { (exit 1); exit 1; }; }
279532b578d3Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
27962a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
27972a51b5beSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
279832b578d3Smrg   { (exit 1); exit 1; }; }
279932b578d3Smrg
280032b578d3Smrgfi
28012a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
28022a51b5beSmrg$as_echo "$ac_cv_build" >&6; }
280332b578d3Smrgcase $ac_cv_build in
280432b578d3Smrg*-*-*) ;;
28052a51b5beSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
28062a51b5beSmrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
280732b578d3Smrg   { (exit 1); exit 1; }; };;
280832b578d3Smrgesac
280932b578d3Smrgbuild=$ac_cv_build
281032b578d3Smrgac_save_IFS=$IFS; IFS='-'
281132b578d3Smrgset x $ac_cv_build
281232b578d3Smrgshift
281332b578d3Smrgbuild_cpu=$1
281432b578d3Smrgbuild_vendor=$2
281532b578d3Smrgshift; shift
281632b578d3Smrg# Remember, the first character of IFS is used to create $*,
281732b578d3Smrg# except with old shells:
281832b578d3Smrgbuild_os=$*
281932b578d3SmrgIFS=$ac_save_IFS
282032b578d3Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
282132b578d3Smrg
282232b578d3Smrg
28232a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
28242a51b5beSmrg$as_echo_n "checking host system type... " >&6; }
282532b578d3Smrgif test "${ac_cv_host+set}" = set; then
28262a51b5beSmrg  $as_echo_n "(cached) " >&6
282732b578d3Smrgelse
282832b578d3Smrg  if test "x$host_alias" = x; then
282932b578d3Smrg  ac_cv_host=$ac_cv_build
283032b578d3Smrgelse
283132b578d3Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
28322a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
28332a51b5beSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
283432b578d3Smrg   { (exit 1); exit 1; }; }
283532b578d3Smrgfi
283632b578d3Smrg
283732b578d3Smrgfi
28382a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
28392a51b5beSmrg$as_echo "$ac_cv_host" >&6; }
284032b578d3Smrgcase $ac_cv_host in
284132b578d3Smrg*-*-*) ;;
28422a51b5beSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
28432a51b5beSmrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
284432b578d3Smrg   { (exit 1); exit 1; }; };;
284532b578d3Smrgesac
284632b578d3Smrghost=$ac_cv_host
284732b578d3Smrgac_save_IFS=$IFS; IFS='-'
284832b578d3Smrgset x $ac_cv_host
284932b578d3Smrgshift
285032b578d3Smrghost_cpu=$1
285132b578d3Smrghost_vendor=$2
285232b578d3Smrgshift; shift
285332b578d3Smrg# Remember, the first character of IFS is used to create $*,
285432b578d3Smrg# except with old shells:
285532b578d3Smrghost_os=$*
285632b578d3SmrgIFS=$ac_save_IFS
285732b578d3Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
285832b578d3Smrg
285932b578d3Smrg
286032b578d3SmrgDEPDIR="${am__leading_dot}deps"
286132b578d3Smrg
286232b578d3Smrgac_config_commands="$ac_config_commands depfiles"
286332b578d3Smrg
286432b578d3Smrg
286532b578d3Smrgam_make=${MAKE-make}
286632b578d3Smrgcat > confinc << 'END'
286732b578d3Smrgam__doit:
28682a51b5beSmrg	@echo this is the am__doit target
286932b578d3Smrg.PHONY: am__doit
287032b578d3SmrgEND
287132b578d3Smrg# If we don't find an include directive, just comment out the code.
28722a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
28732a51b5beSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
287432b578d3Smrgam__include="#"
287532b578d3Smrgam__quote=
287632b578d3Smrg_am_result=none
287732b578d3Smrg# First try GNU make style include.
287832b578d3Smrgecho "include confinc" > confmf
28792a51b5beSmrg# Ignore all kinds of additional output from `make'.
28802a51b5beSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
28812a51b5beSmrg*the\ am__doit\ target*)
28822a51b5beSmrg  am__include=include
28832a51b5beSmrg  am__quote=
28842a51b5beSmrg  _am_result=GNU
28852a51b5beSmrg  ;;
28862a51b5beSmrgesac
288732b578d3Smrg# Now try BSD make style include.
288832b578d3Smrgif test "$am__include" = "#"; then
288932b578d3Smrg   echo '.include "confinc"' > confmf
28902a51b5beSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
28912a51b5beSmrg   *the\ am__doit\ target*)
28922a51b5beSmrg     am__include=.include
28932a51b5beSmrg     am__quote="\""
28942a51b5beSmrg     _am_result=BSD
28952a51b5beSmrg     ;;
28962a51b5beSmrg   esac
289732b578d3Smrgfi
289832b578d3Smrg
289932b578d3Smrg
29002a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
29012a51b5beSmrg$as_echo "$_am_result" >&6; }
290232b578d3Smrgrm -f confinc confmf
290332b578d3Smrg
290432b578d3Smrg# Check whether --enable-dependency-tracking was given.
290532b578d3Smrgif test "${enable_dependency_tracking+set}" = set; then
290632b578d3Smrg  enableval=$enable_dependency_tracking;
290732b578d3Smrgfi
290832b578d3Smrg
290932b578d3Smrgif test "x$enable_dependency_tracking" != xno; then
291032b578d3Smrg  am_depcomp="$ac_aux_dir/depcomp"
291132b578d3Smrg  AMDEPBACKSLASH='\'
291232b578d3Smrgfi
291332b578d3Smrg if test "x$enable_dependency_tracking" != xno; then
291432b578d3Smrg  AMDEP_TRUE=
291532b578d3Smrg  AMDEP_FALSE='#'
291632b578d3Smrgelse
291732b578d3Smrg  AMDEP_TRUE='#'
291832b578d3Smrg  AMDEP_FALSE=
291932b578d3Smrgfi
292032b578d3Smrg
292132b578d3Smrg
292232b578d3Smrgac_ext=c
292332b578d3Smrgac_cpp='$CPP $CPPFLAGS'
292432b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
292532b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
292632b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
292732b578d3Smrgif test -n "$ac_tool_prefix"; then
292832b578d3Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
292932b578d3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
29302a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29312a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
293232b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
29332a51b5beSmrg  $as_echo_n "(cached) " >&6
293432b578d3Smrgelse
293532b578d3Smrg  if test -n "$CC"; then
293632b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
293732b578d3Smrgelse
293832b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
293932b578d3Smrgfor as_dir in $PATH
294032b578d3Smrgdo
294132b578d3Smrg  IFS=$as_save_IFS
294232b578d3Smrg  test -z "$as_dir" && as_dir=.
294332b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
294432b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
294532b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
29462a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
294732b578d3Smrg    break 2
294832b578d3Smrg  fi
294932b578d3Smrgdone
295032b578d3Smrgdone
295132b578d3SmrgIFS=$as_save_IFS
295232b578d3Smrg
295332b578d3Smrgfi
295432b578d3Smrgfi
295532b578d3SmrgCC=$ac_cv_prog_CC
295632b578d3Smrgif test -n "$CC"; then
29572a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
29582a51b5beSmrg$as_echo "$CC" >&6; }
295932b578d3Smrgelse
29602a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
29612a51b5beSmrg$as_echo "no" >&6; }
296232b578d3Smrgfi
296332b578d3Smrg
296432b578d3Smrg
296532b578d3Smrgfi
296632b578d3Smrgif test -z "$ac_cv_prog_CC"; then
296732b578d3Smrg  ac_ct_CC=$CC
296832b578d3Smrg  # Extract the first word of "gcc", so it can be a program name with args.
296932b578d3Smrgset dummy gcc; ac_word=$2
29702a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29712a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
297232b578d3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
29732a51b5beSmrg  $as_echo_n "(cached) " >&6
297432b578d3Smrgelse
297532b578d3Smrg  if test -n "$ac_ct_CC"; then
297632b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
297732b578d3Smrgelse
297832b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
297932b578d3Smrgfor as_dir in $PATH
298032b578d3Smrgdo
298132b578d3Smrg  IFS=$as_save_IFS
298232b578d3Smrg  test -z "$as_dir" && as_dir=.
298332b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
298432b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
298532b578d3Smrg    ac_cv_prog_ac_ct_CC="gcc"
29862a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
298732b578d3Smrg    break 2
298832b578d3Smrg  fi
298932b578d3Smrgdone
299032b578d3Smrgdone
299132b578d3SmrgIFS=$as_save_IFS
299232b578d3Smrg
299332b578d3Smrgfi
299432b578d3Smrgfi
299532b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
299632b578d3Smrgif test -n "$ac_ct_CC"; then
29972a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
29982a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
299932b578d3Smrgelse
30002a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
30012a51b5beSmrg$as_echo "no" >&6; }
300232b578d3Smrgfi
300332b578d3Smrg
300432b578d3Smrg  if test "x$ac_ct_CC" = x; then
300532b578d3Smrg    CC=""
300632b578d3Smrg  else
300732b578d3Smrg    case $cross_compiling:$ac_tool_warned in
300832b578d3Smrgyes:)
30092a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30102a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
301132b578d3Smrgac_tool_warned=yes ;;
301232b578d3Smrgesac
301332b578d3Smrg    CC=$ac_ct_CC
301432b578d3Smrg  fi
301532b578d3Smrgelse
301632b578d3Smrg  CC="$ac_cv_prog_CC"
301732b578d3Smrgfi
301832b578d3Smrg
301932b578d3Smrgif test -z "$CC"; then
302032b578d3Smrg          if test -n "$ac_tool_prefix"; then
302132b578d3Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
302232b578d3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
30232a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30242a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
302532b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
30262a51b5beSmrg  $as_echo_n "(cached) " >&6
302732b578d3Smrgelse
302832b578d3Smrg  if test -n "$CC"; then
302932b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
303032b578d3Smrgelse
303132b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
303232b578d3Smrgfor as_dir in $PATH
303332b578d3Smrgdo
303432b578d3Smrg  IFS=$as_save_IFS
303532b578d3Smrg  test -z "$as_dir" && as_dir=.
303632b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
303732b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
303832b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
30392a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
304032b578d3Smrg    break 2
304132b578d3Smrg  fi
304232b578d3Smrgdone
304332b578d3Smrgdone
304432b578d3SmrgIFS=$as_save_IFS
304532b578d3Smrg
304632b578d3Smrgfi
304732b578d3Smrgfi
304832b578d3SmrgCC=$ac_cv_prog_CC
304932b578d3Smrgif test -n "$CC"; then
30502a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
30512a51b5beSmrg$as_echo "$CC" >&6; }
305232b578d3Smrgelse
30532a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
30542a51b5beSmrg$as_echo "no" >&6; }
305532b578d3Smrgfi
305632b578d3Smrg
305732b578d3Smrg
305832b578d3Smrg  fi
305932b578d3Smrgfi
306032b578d3Smrgif test -z "$CC"; then
306132b578d3Smrg  # Extract the first word of "cc", so it can be a program name with args.
306232b578d3Smrgset dummy cc; ac_word=$2
30632a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30642a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
306532b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
30662a51b5beSmrg  $as_echo_n "(cached) " >&6
306732b578d3Smrgelse
306832b578d3Smrg  if test -n "$CC"; then
306932b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
307032b578d3Smrgelse
307132b578d3Smrg  ac_prog_rejected=no
307232b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
307332b578d3Smrgfor as_dir in $PATH
307432b578d3Smrgdo
307532b578d3Smrg  IFS=$as_save_IFS
307632b578d3Smrg  test -z "$as_dir" && as_dir=.
307732b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
307832b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
307932b578d3Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
308032b578d3Smrg       ac_prog_rejected=yes
308132b578d3Smrg       continue
308232b578d3Smrg     fi
308332b578d3Smrg    ac_cv_prog_CC="cc"
30842a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
308532b578d3Smrg    break 2
308632b578d3Smrg  fi
308732b578d3Smrgdone
308832b578d3Smrgdone
308932b578d3SmrgIFS=$as_save_IFS
309032b578d3Smrg
309132b578d3Smrgif test $ac_prog_rejected = yes; then
309232b578d3Smrg  # We found a bogon in the path, so make sure we never use it.
309332b578d3Smrg  set dummy $ac_cv_prog_CC
309432b578d3Smrg  shift
309532b578d3Smrg  if test $# != 0; then
309632b578d3Smrg    # We chose a different compiler from the bogus one.
309732b578d3Smrg    # However, it has the same basename, so the bogon will be chosen
309832b578d3Smrg    # first if we set CC to just the basename; use the full file name.
309932b578d3Smrg    shift
310032b578d3Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
310132b578d3Smrg  fi
310232b578d3Smrgfi
310332b578d3Smrgfi
310432b578d3Smrgfi
310532b578d3SmrgCC=$ac_cv_prog_CC
310632b578d3Smrgif test -n "$CC"; then
31072a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
31082a51b5beSmrg$as_echo "$CC" >&6; }
310932b578d3Smrgelse
31102a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
31112a51b5beSmrg$as_echo "no" >&6; }
311232b578d3Smrgfi
311332b578d3Smrg
311432b578d3Smrg
311532b578d3Smrgfi
311632b578d3Smrgif test -z "$CC"; then
311732b578d3Smrg  if test -n "$ac_tool_prefix"; then
311832b578d3Smrg  for ac_prog in cl.exe
311932b578d3Smrg  do
312032b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
312132b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
31222a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31232a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
312432b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
31252a51b5beSmrg  $as_echo_n "(cached) " >&6
312632b578d3Smrgelse
312732b578d3Smrg  if test -n "$CC"; then
312832b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
312932b578d3Smrgelse
313032b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
313132b578d3Smrgfor as_dir in $PATH
313232b578d3Smrgdo
313332b578d3Smrg  IFS=$as_save_IFS
313432b578d3Smrg  test -z "$as_dir" && as_dir=.
313532b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
313632b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
313732b578d3Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31382a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
313932b578d3Smrg    break 2
314032b578d3Smrg  fi
314132b578d3Smrgdone
314232b578d3Smrgdone
314332b578d3SmrgIFS=$as_save_IFS
314432b578d3Smrg
314532b578d3Smrgfi
314632b578d3Smrgfi
314732b578d3SmrgCC=$ac_cv_prog_CC
314832b578d3Smrgif test -n "$CC"; then
31492a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
31502a51b5beSmrg$as_echo "$CC" >&6; }
315132b578d3Smrgelse
31522a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
31532a51b5beSmrg$as_echo "no" >&6; }
315432b578d3Smrgfi
315532b578d3Smrg
315632b578d3Smrg
315732b578d3Smrg    test -n "$CC" && break
315832b578d3Smrg  done
315932b578d3Smrgfi
316032b578d3Smrgif test -z "$CC"; then
316132b578d3Smrg  ac_ct_CC=$CC
316232b578d3Smrg  for ac_prog in cl.exe
316332b578d3Smrgdo
316432b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
316532b578d3Smrgset dummy $ac_prog; ac_word=$2
31662a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31672a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
316832b578d3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31692a51b5beSmrg  $as_echo_n "(cached) " >&6
317032b578d3Smrgelse
317132b578d3Smrg  if test -n "$ac_ct_CC"; then
317232b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
317332b578d3Smrgelse
317432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
317532b578d3Smrgfor as_dir in $PATH
317632b578d3Smrgdo
317732b578d3Smrg  IFS=$as_save_IFS
317832b578d3Smrg  test -z "$as_dir" && as_dir=.
317932b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
318032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
318132b578d3Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
31822a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
318332b578d3Smrg    break 2
318432b578d3Smrg  fi
318532b578d3Smrgdone
318632b578d3Smrgdone
318732b578d3SmrgIFS=$as_save_IFS
318832b578d3Smrg
318932b578d3Smrgfi
319032b578d3Smrgfi
319132b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
319232b578d3Smrgif test -n "$ac_ct_CC"; then
31932a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31942a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
319532b578d3Smrgelse
31962a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
31972a51b5beSmrg$as_echo "no" >&6; }
319832b578d3Smrgfi
319932b578d3Smrg
320032b578d3Smrg
320132b578d3Smrg  test -n "$ac_ct_CC" && break
320232b578d3Smrgdone
320332b578d3Smrg
320432b578d3Smrg  if test "x$ac_ct_CC" = x; then
320532b578d3Smrg    CC=""
320632b578d3Smrg  else
320732b578d3Smrg    case $cross_compiling:$ac_tool_warned in
320832b578d3Smrgyes:)
32092a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
32102a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
321132b578d3Smrgac_tool_warned=yes ;;
321232b578d3Smrgesac
321332b578d3Smrg    CC=$ac_ct_CC
321432b578d3Smrg  fi
321532b578d3Smrgfi
321632b578d3Smrg
321732b578d3Smrgfi
321832b578d3Smrg
321932b578d3Smrg
32202a51b5beSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32212a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32222a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
322332b578d3SmrgSee \`config.log' for more details." >&5
32242a51b5beSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
322532b578d3SmrgSee \`config.log' for more details." >&2;}
32262a51b5beSmrg   { (exit 1); exit 1; }; }; }
322732b578d3Smrg
322832b578d3Smrg# Provide some information about the compiler.
32292a51b5beSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
32302a51b5beSmrgset X $ac_compile
32312a51b5beSmrgac_compiler=$2
323232b578d3Smrg{ (ac_try="$ac_compiler --version >&5"
323332b578d3Smrgcase "(($ac_try" in
323432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
323532b578d3Smrg  *) ac_try_echo=$ac_try;;
323632b578d3Smrgesac
32372a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32382a51b5beSmrg$as_echo "$ac_try_echo") >&5
323932b578d3Smrg  (eval "$ac_compiler --version >&5") 2>&5
324032b578d3Smrg  ac_status=$?
32412a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
324232b578d3Smrg  (exit $ac_status); }
324332b578d3Smrg{ (ac_try="$ac_compiler -v >&5"
324432b578d3Smrgcase "(($ac_try" in
324532b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
324632b578d3Smrg  *) ac_try_echo=$ac_try;;
324732b578d3Smrgesac
32482a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32492a51b5beSmrg$as_echo "$ac_try_echo") >&5
325032b578d3Smrg  (eval "$ac_compiler -v >&5") 2>&5
325132b578d3Smrg  ac_status=$?
32522a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
325332b578d3Smrg  (exit $ac_status); }
325432b578d3Smrg{ (ac_try="$ac_compiler -V >&5"
325532b578d3Smrgcase "(($ac_try" in
325632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
325732b578d3Smrg  *) ac_try_echo=$ac_try;;
325832b578d3Smrgesac
32592a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602a51b5beSmrg$as_echo "$ac_try_echo") >&5
326132b578d3Smrg  (eval "$ac_compiler -V >&5") 2>&5
326232b578d3Smrg  ac_status=$?
32632a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
326432b578d3Smrg  (exit $ac_status); }
326532b578d3Smrg
326632b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
326732b578d3Smrg/* confdefs.h.  */
326832b578d3Smrg_ACEOF
326932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
327032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
327132b578d3Smrg/* end confdefs.h.  */
327232b578d3Smrg
327332b578d3Smrgint
327432b578d3Smrgmain ()
327532b578d3Smrg{
327632b578d3Smrg
327732b578d3Smrg  ;
327832b578d3Smrg  return 0;
327932b578d3Smrg}
328032b578d3Smrg_ACEOF
328132b578d3Smrgac_clean_files_save=$ac_clean_files
32822a51b5beSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
328332b578d3Smrg# Try to create an executable without -o first, disregard a.out.
328432b578d3Smrg# It will help us diagnose broken compilers, and finding out an intuition
328532b578d3Smrg# of exeext.
32862a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
32872a51b5beSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
32882a51b5beSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
32892a51b5beSmrg
32902a51b5beSmrg# The possible output files:
32912a51b5beSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
32922a51b5beSmrg
329332b578d3Smrgac_rmfiles=
329432b578d3Smrgfor ac_file in $ac_files
329532b578d3Smrgdo
329632b578d3Smrg  case $ac_file in
32972a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
329832b578d3Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
329932b578d3Smrg  esac
330032b578d3Smrgdone
330132b578d3Smrgrm -f $ac_rmfiles
330232b578d3Smrg
330332b578d3Smrgif { (ac_try="$ac_link_default"
330432b578d3Smrgcase "(($ac_try" in
330532b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
330632b578d3Smrg  *) ac_try_echo=$ac_try;;
330732b578d3Smrgesac
33082a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33092a51b5beSmrg$as_echo "$ac_try_echo") >&5
331032b578d3Smrg  (eval "$ac_link_default") 2>&5
331132b578d3Smrg  ac_status=$?
33122a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
331332b578d3Smrg  (exit $ac_status); }; then
331432b578d3Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
331532b578d3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
331632b578d3Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
331732b578d3Smrg# so that the user can short-circuit this test for compilers unknown to
331832b578d3Smrg# Autoconf.
331932b578d3Smrgfor ac_file in $ac_files ''
332032b578d3Smrgdo
332132b578d3Smrg  test -f "$ac_file" || continue
332232b578d3Smrg  case $ac_file in
33232a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
332432b578d3Smrg	;;
332532b578d3Smrg    [ab].out )
332632b578d3Smrg	# We found the default executable, but exeext='' is most
332732b578d3Smrg	# certainly right.
332832b578d3Smrg	break;;
332932b578d3Smrg    *.* )
333032b578d3Smrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
333132b578d3Smrg	then :; else
333232b578d3Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
333332b578d3Smrg	fi
333432b578d3Smrg	# We set ac_cv_exeext here because the later test for it is not
333532b578d3Smrg	# safe: cross compilers may not add the suffix if given an `-o'
333632b578d3Smrg	# argument, so we may need to know it at that point already.
333732b578d3Smrg	# Even if this section looks crufty: it has the advantage of
333832b578d3Smrg	# actually working.
333932b578d3Smrg	break;;
334032b578d3Smrg    * )
334132b578d3Smrg	break;;
334232b578d3Smrg  esac
334332b578d3Smrgdone
334432b578d3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
334532b578d3Smrg
334632b578d3Smrgelse
334732b578d3Smrg  ac_file=''
334832b578d3Smrgfi
334932b578d3Smrg
33502a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
33512a51b5beSmrg$as_echo "$ac_file" >&6; }
335232b578d3Smrgif test -z "$ac_file"; then
33532a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
335432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
335532b578d3Smrg
33562a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33572a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33582a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
335932b578d3SmrgSee \`config.log' for more details." >&5
33602a51b5beSmrg$as_echo "$as_me: error: C compiler cannot create executables
336132b578d3SmrgSee \`config.log' for more details." >&2;}
33622a51b5beSmrg   { (exit 77); exit 77; }; }; }
336332b578d3Smrgfi
336432b578d3Smrg
336532b578d3Smrgac_exeext=$ac_cv_exeext
336632b578d3Smrg
336732b578d3Smrg# Check that the compiler produces executables we can run.  If not, either
336832b578d3Smrg# the compiler is broken, or we cross compile.
33692a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
33702a51b5beSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
337132b578d3Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
337232b578d3Smrg# If not cross compiling, check that we can run a simple program.
337332b578d3Smrgif test "$cross_compiling" != yes; then
337432b578d3Smrg  if { ac_try='./$ac_file'
337532b578d3Smrg  { (case "(($ac_try" in
337632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
337732b578d3Smrg  *) ac_try_echo=$ac_try;;
337832b578d3Smrgesac
33792a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33802a51b5beSmrg$as_echo "$ac_try_echo") >&5
338132b578d3Smrg  (eval "$ac_try") 2>&5
338232b578d3Smrg  ac_status=$?
33832a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
338432b578d3Smrg  (exit $ac_status); }; }; then
338532b578d3Smrg    cross_compiling=no
338632b578d3Smrg  else
338732b578d3Smrg    if test "$cross_compiling" = maybe; then
338832b578d3Smrg	cross_compiling=yes
338932b578d3Smrg    else
33902a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33912a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33922a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
339332b578d3SmrgIf you meant to cross compile, use \`--host'.
339432b578d3SmrgSee \`config.log' for more details." >&5
33952a51b5beSmrg$as_echo "$as_me: error: cannot run C compiled programs.
339632b578d3SmrgIf you meant to cross compile, use \`--host'.
339732b578d3SmrgSee \`config.log' for more details." >&2;}
33982a51b5beSmrg   { (exit 1); exit 1; }; }; }
339932b578d3Smrg    fi
340032b578d3Smrg  fi
340132b578d3Smrgfi
34022a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
34032a51b5beSmrg$as_echo "yes" >&6; }
340432b578d3Smrg
34052a51b5beSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
340632b578d3Smrgac_clean_files=$ac_clean_files_save
340732b578d3Smrg# Check that the compiler produces executables we can run.  If not, either
340832b578d3Smrg# the compiler is broken, or we cross compile.
34092a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
34102a51b5beSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
34112a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
34122a51b5beSmrg$as_echo "$cross_compiling" >&6; }
341332b578d3Smrg
34142a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
34152a51b5beSmrg$as_echo_n "checking for suffix of executables... " >&6; }
341632b578d3Smrgif { (ac_try="$ac_link"
341732b578d3Smrgcase "(($ac_try" in
341832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
341932b578d3Smrg  *) ac_try_echo=$ac_try;;
342032b578d3Smrgesac
34212a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34222a51b5beSmrg$as_echo "$ac_try_echo") >&5
342332b578d3Smrg  (eval "$ac_link") 2>&5
342432b578d3Smrg  ac_status=$?
34252a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
342632b578d3Smrg  (exit $ac_status); }; then
342732b578d3Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
342832b578d3Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
342932b578d3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
343032b578d3Smrg# `rm'.
343132b578d3Smrgfor ac_file in conftest.exe conftest conftest.*; do
343232b578d3Smrg  test -f "$ac_file" || continue
343332b578d3Smrg  case $ac_file in
34342a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
343532b578d3Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
343632b578d3Smrg	  break;;
343732b578d3Smrg    * ) break;;
343832b578d3Smrg  esac
343932b578d3Smrgdone
344032b578d3Smrgelse
34412a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34422a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34432a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
344432b578d3SmrgSee \`config.log' for more details." >&5
34452a51b5beSmrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
344632b578d3SmrgSee \`config.log' for more details." >&2;}
34472a51b5beSmrg   { (exit 1); exit 1; }; }; }
344832b578d3Smrgfi
344932b578d3Smrg
345032b578d3Smrgrm -f conftest$ac_cv_exeext
34512a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
34522a51b5beSmrg$as_echo "$ac_cv_exeext" >&6; }
345332b578d3Smrg
345432b578d3Smrgrm -f conftest.$ac_ext
345532b578d3SmrgEXEEXT=$ac_cv_exeext
345632b578d3Smrgac_exeext=$EXEEXT
34572a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
34582a51b5beSmrg$as_echo_n "checking for suffix of object files... " >&6; }
345932b578d3Smrgif test "${ac_cv_objext+set}" = set; then
34602a51b5beSmrg  $as_echo_n "(cached) " >&6
346132b578d3Smrgelse
346232b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
346332b578d3Smrg/* confdefs.h.  */
346432b578d3Smrg_ACEOF
346532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
346632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
346732b578d3Smrg/* end confdefs.h.  */
346832b578d3Smrg
346932b578d3Smrgint
347032b578d3Smrgmain ()
347132b578d3Smrg{
347232b578d3Smrg
347332b578d3Smrg  ;
347432b578d3Smrg  return 0;
347532b578d3Smrg}
347632b578d3Smrg_ACEOF
347732b578d3Smrgrm -f conftest.o conftest.obj
347832b578d3Smrgif { (ac_try="$ac_compile"
347932b578d3Smrgcase "(($ac_try" in
348032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
348132b578d3Smrg  *) ac_try_echo=$ac_try;;
348232b578d3Smrgesac
34832a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34842a51b5beSmrg$as_echo "$ac_try_echo") >&5
348532b578d3Smrg  (eval "$ac_compile") 2>&5
348632b578d3Smrg  ac_status=$?
34872a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
348832b578d3Smrg  (exit $ac_status); }; then
348932b578d3Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
349032b578d3Smrg  test -f "$ac_file" || continue;
349132b578d3Smrg  case $ac_file in
34922a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
349332b578d3Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
349432b578d3Smrg       break;;
349532b578d3Smrg  esac
349632b578d3Smrgdone
349732b578d3Smrgelse
34982a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
349932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
350032b578d3Smrg
35012a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35022a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35032a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
350432b578d3SmrgSee \`config.log' for more details." >&5
35052a51b5beSmrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
350632b578d3SmrgSee \`config.log' for more details." >&2;}
35072a51b5beSmrg   { (exit 1); exit 1; }; }; }
350832b578d3Smrgfi
350932b578d3Smrg
351032b578d3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
351132b578d3Smrgfi
35122a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
35132a51b5beSmrg$as_echo "$ac_cv_objext" >&6; }
351432b578d3SmrgOBJEXT=$ac_cv_objext
351532b578d3Smrgac_objext=$OBJEXT
35162a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
35172a51b5beSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
351832b578d3Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
35192a51b5beSmrg  $as_echo_n "(cached) " >&6
352032b578d3Smrgelse
352132b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
352232b578d3Smrg/* confdefs.h.  */
352332b578d3Smrg_ACEOF
352432b578d3Smrgcat confdefs.h >>conftest.$ac_ext
352532b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
352632b578d3Smrg/* end confdefs.h.  */
352732b578d3Smrg
352832b578d3Smrgint
352932b578d3Smrgmain ()
353032b578d3Smrg{
353132b578d3Smrg#ifndef __GNUC__
353232b578d3Smrg       choke me
353332b578d3Smrg#endif
353432b578d3Smrg
353532b578d3Smrg  ;
353632b578d3Smrg  return 0;
353732b578d3Smrg}
353832b578d3Smrg_ACEOF
353932b578d3Smrgrm -f conftest.$ac_objext
354032b578d3Smrgif { (ac_try="$ac_compile"
354132b578d3Smrgcase "(($ac_try" in
354232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
354332b578d3Smrg  *) ac_try_echo=$ac_try;;
354432b578d3Smrgesac
35452a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35462a51b5beSmrg$as_echo "$ac_try_echo") >&5
354732b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
354832b578d3Smrg  ac_status=$?
354932b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
355032b578d3Smrg  rm -f conftest.er1
355132b578d3Smrg  cat conftest.err >&5
35522a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
355332b578d3Smrg  (exit $ac_status); } && {
355432b578d3Smrg	 test -z "$ac_c_werror_flag" ||
355532b578d3Smrg	 test ! -s conftest.err
355632b578d3Smrg       } && test -s conftest.$ac_objext; then
355732b578d3Smrg  ac_compiler_gnu=yes
355832b578d3Smrgelse
35592a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
356032b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
356132b578d3Smrg
356232b578d3Smrg	ac_compiler_gnu=no
356332b578d3Smrgfi
356432b578d3Smrg
356532b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
356632b578d3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
356732b578d3Smrg
356832b578d3Smrgfi
35692a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
35702a51b5beSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35712a51b5beSmrgif test $ac_compiler_gnu = yes; then
35722a51b5beSmrg  GCC=yes
35732a51b5beSmrgelse
35742a51b5beSmrg  GCC=
35752a51b5beSmrgfi
357632b578d3Smrgac_test_CFLAGS=${CFLAGS+set}
357732b578d3Smrgac_save_CFLAGS=$CFLAGS
35782a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
35792a51b5beSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
358032b578d3Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
35812a51b5beSmrg  $as_echo_n "(cached) " >&6
358232b578d3Smrgelse
358332b578d3Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
358432b578d3Smrg   ac_c_werror_flag=yes
358532b578d3Smrg   ac_cv_prog_cc_g=no
358632b578d3Smrg   CFLAGS="-g"
358732b578d3Smrg   cat >conftest.$ac_ext <<_ACEOF
358832b578d3Smrg/* confdefs.h.  */
358932b578d3Smrg_ACEOF
359032b578d3Smrgcat confdefs.h >>conftest.$ac_ext
359132b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
359232b578d3Smrg/* end confdefs.h.  */
359332b578d3Smrg
359432b578d3Smrgint
359532b578d3Smrgmain ()
359632b578d3Smrg{
359732b578d3Smrg
359832b578d3Smrg  ;
359932b578d3Smrg  return 0;
360032b578d3Smrg}
360132b578d3Smrg_ACEOF
360232b578d3Smrgrm -f conftest.$ac_objext
360332b578d3Smrgif { (ac_try="$ac_compile"
360432b578d3Smrgcase "(($ac_try" in
360532b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
360632b578d3Smrg  *) ac_try_echo=$ac_try;;
360732b578d3Smrgesac
36082a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36092a51b5beSmrg$as_echo "$ac_try_echo") >&5
361032b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
361132b578d3Smrg  ac_status=$?
361232b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
361332b578d3Smrg  rm -f conftest.er1
361432b578d3Smrg  cat conftest.err >&5
36152a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
361632b578d3Smrg  (exit $ac_status); } && {
361732b578d3Smrg	 test -z "$ac_c_werror_flag" ||
361832b578d3Smrg	 test ! -s conftest.err
361932b578d3Smrg       } && test -s conftest.$ac_objext; then
362032b578d3Smrg  ac_cv_prog_cc_g=yes
362132b578d3Smrgelse
36222a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
362332b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
362432b578d3Smrg
362532b578d3Smrg	CFLAGS=""
362632b578d3Smrg      cat >conftest.$ac_ext <<_ACEOF
362732b578d3Smrg/* confdefs.h.  */
362832b578d3Smrg_ACEOF
362932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
363032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
363132b578d3Smrg/* end confdefs.h.  */
363232b578d3Smrg
363332b578d3Smrgint
363432b578d3Smrgmain ()
363532b578d3Smrg{
363632b578d3Smrg
363732b578d3Smrg  ;
363832b578d3Smrg  return 0;
363932b578d3Smrg}
364032b578d3Smrg_ACEOF
364132b578d3Smrgrm -f conftest.$ac_objext
364232b578d3Smrgif { (ac_try="$ac_compile"
364332b578d3Smrgcase "(($ac_try" in
364432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
364532b578d3Smrg  *) ac_try_echo=$ac_try;;
364632b578d3Smrgesac
36472a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36482a51b5beSmrg$as_echo "$ac_try_echo") >&5
364932b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
365032b578d3Smrg  ac_status=$?
365132b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
365232b578d3Smrg  rm -f conftest.er1
365332b578d3Smrg  cat conftest.err >&5
36542a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
365532b578d3Smrg  (exit $ac_status); } && {
365632b578d3Smrg	 test -z "$ac_c_werror_flag" ||
365732b578d3Smrg	 test ! -s conftest.err
365832b578d3Smrg       } && test -s conftest.$ac_objext; then
365932b578d3Smrg  :
366032b578d3Smrgelse
36612a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
366232b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
366332b578d3Smrg
366432b578d3Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
366532b578d3Smrg	 CFLAGS="-g"
366632b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
366732b578d3Smrg/* confdefs.h.  */
366832b578d3Smrg_ACEOF
366932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
367032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
367132b578d3Smrg/* end confdefs.h.  */
367232b578d3Smrg
367332b578d3Smrgint
367432b578d3Smrgmain ()
367532b578d3Smrg{
367632b578d3Smrg
367732b578d3Smrg  ;
367832b578d3Smrg  return 0;
367932b578d3Smrg}
368032b578d3Smrg_ACEOF
368132b578d3Smrgrm -f conftest.$ac_objext
368232b578d3Smrgif { (ac_try="$ac_compile"
368332b578d3Smrgcase "(($ac_try" in
368432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
368532b578d3Smrg  *) ac_try_echo=$ac_try;;
368632b578d3Smrgesac
36872a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36882a51b5beSmrg$as_echo "$ac_try_echo") >&5
368932b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
369032b578d3Smrg  ac_status=$?
369132b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
369232b578d3Smrg  rm -f conftest.er1
369332b578d3Smrg  cat conftest.err >&5
36942a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
369532b578d3Smrg  (exit $ac_status); } && {
369632b578d3Smrg	 test -z "$ac_c_werror_flag" ||
369732b578d3Smrg	 test ! -s conftest.err
369832b578d3Smrg       } && test -s conftest.$ac_objext; then
369932b578d3Smrg  ac_cv_prog_cc_g=yes
370032b578d3Smrgelse
37012a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
370232b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
370332b578d3Smrg
370432b578d3Smrg
370532b578d3Smrgfi
370632b578d3Smrg
370732b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
370832b578d3Smrgfi
370932b578d3Smrg
371032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
371132b578d3Smrgfi
371232b578d3Smrg
371332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
371432b578d3Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
371532b578d3Smrgfi
37162a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
37172a51b5beSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
371832b578d3Smrgif test "$ac_test_CFLAGS" = set; then
371932b578d3Smrg  CFLAGS=$ac_save_CFLAGS
372032b578d3Smrgelif test $ac_cv_prog_cc_g = yes; then
372132b578d3Smrg  if test "$GCC" = yes; then
372232b578d3Smrg    CFLAGS="-g -O2"
372332b578d3Smrg  else
372432b578d3Smrg    CFLAGS="-g"
372532b578d3Smrg  fi
372632b578d3Smrgelse
372732b578d3Smrg  if test "$GCC" = yes; then
372832b578d3Smrg    CFLAGS="-O2"
372932b578d3Smrg  else
373032b578d3Smrg    CFLAGS=
373132b578d3Smrg  fi
373232b578d3Smrgfi
37332a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
37342a51b5beSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
373532b578d3Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
37362a51b5beSmrg  $as_echo_n "(cached) " >&6
373732b578d3Smrgelse
373832b578d3Smrg  ac_cv_prog_cc_c89=no
373932b578d3Smrgac_save_CC=$CC
374032b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
374132b578d3Smrg/* confdefs.h.  */
374232b578d3Smrg_ACEOF
374332b578d3Smrgcat confdefs.h >>conftest.$ac_ext
374432b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
374532b578d3Smrg/* end confdefs.h.  */
374632b578d3Smrg#include <stdarg.h>
374732b578d3Smrg#include <stdio.h>
374832b578d3Smrg#include <sys/types.h>
374932b578d3Smrg#include <sys/stat.h>
375032b578d3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
375132b578d3Smrgstruct buf { int x; };
375232b578d3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
375332b578d3Smrgstatic char *e (p, i)
375432b578d3Smrg     char **p;
375532b578d3Smrg     int i;
375632b578d3Smrg{
375732b578d3Smrg  return p[i];
375832b578d3Smrg}
375932b578d3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
376032b578d3Smrg{
376132b578d3Smrg  char *s;
376232b578d3Smrg  va_list v;
376332b578d3Smrg  va_start (v,p);
376432b578d3Smrg  s = g (p, va_arg (v,int));
376532b578d3Smrg  va_end (v);
376632b578d3Smrg  return s;
376732b578d3Smrg}
376832b578d3Smrg
376932b578d3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
377032b578d3Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
377132b578d3Smrg   These don't provoke an error unfortunately, instead are silently treated
377232b578d3Smrg   as 'x'.  The following induces an error, until -std is added to get
377332b578d3Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
377432b578d3Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
377532b578d3Smrg   that's true only with -std.  */
377632b578d3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
377732b578d3Smrg
377832b578d3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
377932b578d3Smrg   inside strings and character constants.  */
378032b578d3Smrg#define FOO(x) 'x'
378132b578d3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
378232b578d3Smrg
378332b578d3Smrgint test (int i, double x);
378432b578d3Smrgstruct s1 {int (*f) (int a);};
378532b578d3Smrgstruct s2 {int (*f) (double a);};
378632b578d3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
378732b578d3Smrgint argc;
378832b578d3Smrgchar **argv;
378932b578d3Smrgint
379032b578d3Smrgmain ()
379132b578d3Smrg{
379232b578d3Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
379332b578d3Smrg  ;
379432b578d3Smrg  return 0;
379532b578d3Smrg}
379632b578d3Smrg_ACEOF
379732b578d3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
379832b578d3Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
379932b578d3Smrgdo
380032b578d3Smrg  CC="$ac_save_CC $ac_arg"
380132b578d3Smrg  rm -f conftest.$ac_objext
380232b578d3Smrgif { (ac_try="$ac_compile"
380332b578d3Smrgcase "(($ac_try" in
380432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
380532b578d3Smrg  *) ac_try_echo=$ac_try;;
380632b578d3Smrgesac
38072a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38082a51b5beSmrg$as_echo "$ac_try_echo") >&5
380932b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
381032b578d3Smrg  ac_status=$?
381132b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
381232b578d3Smrg  rm -f conftest.er1
381332b578d3Smrg  cat conftest.err >&5
38142a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
381532b578d3Smrg  (exit $ac_status); } && {
381632b578d3Smrg	 test -z "$ac_c_werror_flag" ||
381732b578d3Smrg	 test ! -s conftest.err
381832b578d3Smrg       } && test -s conftest.$ac_objext; then
381932b578d3Smrg  ac_cv_prog_cc_c89=$ac_arg
382032b578d3Smrgelse
38212a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
382232b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
382332b578d3Smrg
382432b578d3Smrg
382532b578d3Smrgfi
382632b578d3Smrg
382732b578d3Smrgrm -f core conftest.err conftest.$ac_objext
382832b578d3Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
382932b578d3Smrgdone
383032b578d3Smrgrm -f conftest.$ac_ext
383132b578d3SmrgCC=$ac_save_CC
383232b578d3Smrg
383332b578d3Smrgfi
383432b578d3Smrg# AC_CACHE_VAL
383532b578d3Smrgcase "x$ac_cv_prog_cc_c89" in
383632b578d3Smrg  x)
38372a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
38382a51b5beSmrg$as_echo "none needed" >&6; } ;;
383932b578d3Smrg  xno)
38402a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
38412a51b5beSmrg$as_echo "unsupported" >&6; } ;;
384232b578d3Smrg  *)
384332b578d3Smrg    CC="$CC $ac_cv_prog_cc_c89"
38442a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
38452a51b5beSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
384632b578d3Smrgesac
384732b578d3Smrg
384832b578d3Smrg
384932b578d3Smrgac_ext=c
385032b578d3Smrgac_cpp='$CPP $CPPFLAGS'
385132b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
385232b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
385332b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
385432b578d3Smrg
385532b578d3Smrgdepcc="$CC"   am_compiler_list=
385632b578d3Smrg
38572a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
38582a51b5beSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
385932b578d3Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
38602a51b5beSmrg  $as_echo_n "(cached) " >&6
386132b578d3Smrgelse
386232b578d3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
386332b578d3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
386432b578d3Smrg  # making bogus files that we don't know about and never remove.  For
386532b578d3Smrg  # instance it was reported that on HP-UX the gcc test will end up
386632b578d3Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
386732b578d3Smrg  # in D'.
386832b578d3Smrg  mkdir conftest.dir
386932b578d3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
387032b578d3Smrg  # using a relative directory.
387132b578d3Smrg  cp "$am_depcomp" conftest.dir
387232b578d3Smrg  cd conftest.dir
387332b578d3Smrg  # We will build objects and dependencies in a subdirectory because
387432b578d3Smrg  # it helps to detect inapplicable dependency modes.  For instance
387532b578d3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
387632b578d3Smrg  # side effect of compilation, but ICC will put the dependencies in
387732b578d3Smrg  # the current directory while Tru64 will put them in the object
387832b578d3Smrg  # directory.
387932b578d3Smrg  mkdir sub
388032b578d3Smrg
388132b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
388232b578d3Smrg  if test "$am_compiler_list" = ""; then
388332b578d3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
388432b578d3Smrg  fi
38852a51b5beSmrg  am__universal=false
38862a51b5beSmrg  case " $depcc " in #(
38872a51b5beSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
38882a51b5beSmrg     esac
38892a51b5beSmrg
389032b578d3Smrg  for depmode in $am_compiler_list; do
389132b578d3Smrg    # Setup a source with many dependencies, because some compilers
389232b578d3Smrg    # like to wrap large dependency lists on column 80 (with \), and
389332b578d3Smrg    # we should not choose a depcomp mode which is confused by this.
389432b578d3Smrg    #
389532b578d3Smrg    # We need to recreate these files for each test, as the compiler may
389632b578d3Smrg    # overwrite some of them when testing with obscure command lines.
389732b578d3Smrg    # This happens at least with the AIX C compiler.
389832b578d3Smrg    : > sub/conftest.c
389932b578d3Smrg    for i in 1 2 3 4 5 6; do
390032b578d3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
390132b578d3Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
390232b578d3Smrg      # Solaris 8's {/usr,}/bin/sh.
390332b578d3Smrg      touch sub/conftst$i.h
390432b578d3Smrg    done
390532b578d3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
390632b578d3Smrg
39072a51b5beSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
39082a51b5beSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
39092a51b5beSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
39102a51b5beSmrg    # versions had trouble with output in subdirs
39112a51b5beSmrg    am__obj=sub/conftest.${OBJEXT-o}
39122a51b5beSmrg    am__minus_obj="-o $am__obj"
391332b578d3Smrg    case $depmode in
39142a51b5beSmrg    gcc)
39152a51b5beSmrg      # This depmode causes a compiler race in universal mode.
39162a51b5beSmrg      test "$am__universal" = false || continue
39172a51b5beSmrg      ;;
391832b578d3Smrg    nosideeffect)
391932b578d3Smrg      # after this tag, mechanisms are not by side-effect, so they'll
392032b578d3Smrg      # only be used when explicitly requested
392132b578d3Smrg      if test "x$enable_dependency_tracking" = xyes; then
392232b578d3Smrg	continue
392332b578d3Smrg      else
392432b578d3Smrg	break
392532b578d3Smrg      fi
392632b578d3Smrg      ;;
39272a51b5beSmrg    msvisualcpp | msvcmsys)
39282a51b5beSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
39292a51b5beSmrg      # not run yet.  These depmodes are late enough in the game, and
39302a51b5beSmrg      # so weak that their functioning should not be impacted.
39312a51b5beSmrg      am__obj=conftest.${OBJEXT-o}
39322a51b5beSmrg      am__minus_obj=
39332a51b5beSmrg      ;;
393432b578d3Smrg    none) break ;;
393532b578d3Smrg    esac
393632b578d3Smrg    if depmode=$depmode \
39372a51b5beSmrg       source=sub/conftest.c object=$am__obj \
393832b578d3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
39392a51b5beSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
394032b578d3Smrg         >/dev/null 2>conftest.err &&
394132b578d3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
394232b578d3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
39432a51b5beSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
394432b578d3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
394532b578d3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
394632b578d3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
394732b578d3Smrg      # that says an option was ignored or not supported.
394832b578d3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
394932b578d3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
395032b578d3Smrg      # The diagnosis changed in icc 8.0:
395132b578d3Smrg      #   icc: Command line remark: option '-MP' not supported
395232b578d3Smrg      if (grep 'ignoring option' conftest.err ||
395332b578d3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
395432b578d3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
395532b578d3Smrg        break
395632b578d3Smrg      fi
395732b578d3Smrg    fi
395832b578d3Smrg  done
395932b578d3Smrg
396032b578d3Smrg  cd ..
396132b578d3Smrg  rm -rf conftest.dir
396232b578d3Smrgelse
396332b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
396432b578d3Smrgfi
396532b578d3Smrg
396632b578d3Smrgfi
39672a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
39682a51b5beSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
396932b578d3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
397032b578d3Smrg
397132b578d3Smrg if
397232b578d3Smrg  test "x$enable_dependency_tracking" != xno \
397332b578d3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
397432b578d3Smrg  am__fastdepCC_TRUE=
397532b578d3Smrg  am__fastdepCC_FALSE='#'
397632b578d3Smrgelse
397732b578d3Smrg  am__fastdepCC_TRUE='#'
397832b578d3Smrg  am__fastdepCC_FALSE=
397932b578d3Smrgfi
398032b578d3Smrg
398132b578d3Smrg
39822a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
39832a51b5beSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
398432b578d3Smrgif test "${lt_cv_path_SED+set}" = set; then
39852a51b5beSmrg  $as_echo_n "(cached) " >&6
398632b578d3Smrgelse
398732b578d3Smrg  # Loop through the user's path and test for sed and gsed.
398832b578d3Smrg# Then use that list of sed's as ones to test for truncation.
398932b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
399032b578d3Smrgfor as_dir in $PATH
399132b578d3Smrgdo
399232b578d3Smrg  IFS=$as_save_IFS
399332b578d3Smrg  test -z "$as_dir" && as_dir=.
399432b578d3Smrg  for lt_ac_prog in sed gsed; do
399532b578d3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
39962a51b5beSmrg      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
399732b578d3Smrg        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
399832b578d3Smrg      fi
399932b578d3Smrg    done
400032b578d3Smrg  done
400132b578d3Smrgdone
40022a51b5beSmrgIFS=$as_save_IFS
400332b578d3Smrglt_ac_max=0
400432b578d3Smrglt_ac_count=0
400532b578d3Smrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris
400632b578d3Smrg# along with /bin/sed that truncates output.
400732b578d3Smrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
400832b578d3Smrg  test ! -f $lt_ac_sed && continue
400932b578d3Smrg  cat /dev/null > conftest.in
401032b578d3Smrg  lt_ac_count=0
401132b578d3Smrg  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
401232b578d3Smrg  # Check for GNU sed and select it if it is found.
401332b578d3Smrg  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
401432b578d3Smrg    lt_cv_path_SED=$lt_ac_sed
401532b578d3Smrg    break
401632b578d3Smrg  fi
401732b578d3Smrg  while true; do
401832b578d3Smrg    cat conftest.in conftest.in >conftest.tmp
401932b578d3Smrg    mv conftest.tmp conftest.in
402032b578d3Smrg    cp conftest.in conftest.nl
402132b578d3Smrg    echo >>conftest.nl
402232b578d3Smrg    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
402332b578d3Smrg    cmp -s conftest.out conftest.nl || break
402432b578d3Smrg    # 10000 chars as input seems more than enough
402532b578d3Smrg    test $lt_ac_count -gt 10 && break
402632b578d3Smrg    lt_ac_count=`expr $lt_ac_count + 1`
402732b578d3Smrg    if test $lt_ac_count -gt $lt_ac_max; then
402832b578d3Smrg      lt_ac_max=$lt_ac_count
402932b578d3Smrg      lt_cv_path_SED=$lt_ac_sed
403032b578d3Smrg    fi
403132b578d3Smrg  done
403232b578d3Smrgdone
403332b578d3Smrg
403432b578d3Smrgfi
403532b578d3Smrg
403632b578d3SmrgSED=$lt_cv_path_SED
403732b578d3Smrg
40382a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $SED" >&5
40392a51b5beSmrg$as_echo "$SED" >&6; }
40402a51b5beSmrg
40412a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
40422a51b5beSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
404332b578d3Smrgif test "${ac_cv_path_GREP+set}" = set; then
40442a51b5beSmrg  $as_echo_n "(cached) " >&6
404532b578d3Smrgelse
40462a51b5beSmrg  if test -z "$GREP"; then
404732b578d3Smrg  ac_path_GREP_found=false
40482a51b5beSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40492a51b5beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
405032b578d3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
405132b578d3Smrgdo
405232b578d3Smrg  IFS=$as_save_IFS
405332b578d3Smrg  test -z "$as_dir" && as_dir=.
405432b578d3Smrg  for ac_prog in grep ggrep; do
40552a51b5beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40562a51b5beSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40572a51b5beSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40582a51b5beSmrg# Check for GNU ac_path_GREP and select it if it is found.
405932b578d3Smrg  # Check for GNU $ac_path_GREP
406032b578d3Smrgcase `"$ac_path_GREP" --version 2>&1` in
406132b578d3Smrg*GNU*)
406232b578d3Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
406332b578d3Smrg*)
406432b578d3Smrg  ac_count=0
40652a51b5beSmrg  $as_echo_n 0123456789 >"conftest.in"
406632b578d3Smrg  while :
406732b578d3Smrg  do
406832b578d3Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
406932b578d3Smrg    mv "conftest.tmp" "conftest.in"
407032b578d3Smrg    cp "conftest.in" "conftest.nl"
40712a51b5beSmrg    $as_echo 'GREP' >> "conftest.nl"
407232b578d3Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
407332b578d3Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
407432b578d3Smrg    ac_count=`expr $ac_count + 1`
407532b578d3Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
407632b578d3Smrg      # Best one so far, save it but keep looking for a better one
407732b578d3Smrg      ac_cv_path_GREP="$ac_path_GREP"
407832b578d3Smrg      ac_path_GREP_max=$ac_count
407932b578d3Smrg    fi
408032b578d3Smrg    # 10*(2^10) chars as input seems more than enough
408132b578d3Smrg    test $ac_count -gt 10 && break
408232b578d3Smrg  done
408332b578d3Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
408432b578d3Smrgesac
408532b578d3Smrg
40862a51b5beSmrg      $ac_path_GREP_found && break 3
40872a51b5beSmrg    done
408832b578d3Smrg  done
408932b578d3Smrgdone
409032b578d3SmrgIFS=$as_save_IFS
40912a51b5beSmrg  if test -z "$ac_cv_path_GREP"; then
40922a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
40932a51b5beSmrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
409432b578d3Smrg   { (exit 1); exit 1; }; }
40952a51b5beSmrg  fi
409632b578d3Smrgelse
409732b578d3Smrg  ac_cv_path_GREP=$GREP
409832b578d3Smrgfi
409932b578d3Smrg
410032b578d3Smrgfi
41012a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
41022a51b5beSmrg$as_echo "$ac_cv_path_GREP" >&6; }
410332b578d3Smrg GREP="$ac_cv_path_GREP"
410432b578d3Smrg
410532b578d3Smrg
41062a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
41072a51b5beSmrg$as_echo_n "checking for egrep... " >&6; }
410832b578d3Smrgif test "${ac_cv_path_EGREP+set}" = set; then
41092a51b5beSmrg  $as_echo_n "(cached) " >&6
411032b578d3Smrgelse
411132b578d3Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
411232b578d3Smrg   then ac_cv_path_EGREP="$GREP -E"
411332b578d3Smrg   else
41142a51b5beSmrg     if test -z "$EGREP"; then
411532b578d3Smrg  ac_path_EGREP_found=false
41162a51b5beSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
41172a51b5beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
411832b578d3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
411932b578d3Smrgdo
412032b578d3Smrg  IFS=$as_save_IFS
412132b578d3Smrg  test -z "$as_dir" && as_dir=.
412232b578d3Smrg  for ac_prog in egrep; do
41232a51b5beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41242a51b5beSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
41252a51b5beSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
41262a51b5beSmrg# Check for GNU ac_path_EGREP and select it if it is found.
412732b578d3Smrg  # Check for GNU $ac_path_EGREP
412832b578d3Smrgcase `"$ac_path_EGREP" --version 2>&1` in
412932b578d3Smrg*GNU*)
413032b578d3Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
413132b578d3Smrg*)
413232b578d3Smrg  ac_count=0
41332a51b5beSmrg  $as_echo_n 0123456789 >"conftest.in"
413432b578d3Smrg  while :
413532b578d3Smrg  do
413632b578d3Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
413732b578d3Smrg    mv "conftest.tmp" "conftest.in"
413832b578d3Smrg    cp "conftest.in" "conftest.nl"
41392a51b5beSmrg    $as_echo 'EGREP' >> "conftest.nl"
414032b578d3Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
414132b578d3Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
414232b578d3Smrg    ac_count=`expr $ac_count + 1`
414332b578d3Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
414432b578d3Smrg      # Best one so far, save it but keep looking for a better one
414532b578d3Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
414632b578d3Smrg      ac_path_EGREP_max=$ac_count
414732b578d3Smrg    fi
414832b578d3Smrg    # 10*(2^10) chars as input seems more than enough
414932b578d3Smrg    test $ac_count -gt 10 && break
415032b578d3Smrg  done
415132b578d3Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
415232b578d3Smrgesac
415332b578d3Smrg
41542a51b5beSmrg      $ac_path_EGREP_found && break 3
41552a51b5beSmrg    done
415632b578d3Smrg  done
415732b578d3Smrgdone
415832b578d3SmrgIFS=$as_save_IFS
41592a51b5beSmrg  if test -z "$ac_cv_path_EGREP"; then
41602a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
41612a51b5beSmrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
416232b578d3Smrg   { (exit 1); exit 1; }; }
41632a51b5beSmrg  fi
416432b578d3Smrgelse
416532b578d3Smrg  ac_cv_path_EGREP=$EGREP
416632b578d3Smrgfi
416732b578d3Smrg
416832b578d3Smrg   fi
416932b578d3Smrgfi
41702a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
41712a51b5beSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
417232b578d3Smrg EGREP="$ac_cv_path_EGREP"
417332b578d3Smrg
417432b578d3Smrg
417532b578d3Smrg
417632b578d3Smrg# Check whether --with-gnu-ld was given.
417732b578d3Smrgif test "${with_gnu_ld+set}" = set; then
417832b578d3Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
417932b578d3Smrgelse
418032b578d3Smrg  with_gnu_ld=no
418132b578d3Smrgfi
418232b578d3Smrg
418332b578d3Smrgac_prog=ld
418432b578d3Smrgif test "$GCC" = yes; then
418532b578d3Smrg  # Check if gcc -print-prog-name=ld gives a path.
41862a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
41872a51b5beSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
418832b578d3Smrg  case $host in
418932b578d3Smrg  *-*-mingw*)
419032b578d3Smrg    # gcc leaves a trailing carriage return which upsets mingw
419132b578d3Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
419232b578d3Smrg  *)
419332b578d3Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
419432b578d3Smrg  esac
419532b578d3Smrg  case $ac_prog in
419632b578d3Smrg    # Accept absolute paths.
419732b578d3Smrg    [\\/]* | ?:[\\/]*)
419832b578d3Smrg      re_direlt='/[^/][^/]*/\.\./'
419932b578d3Smrg      # Canonicalize the pathname of ld
420032b578d3Smrg      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
420132b578d3Smrg      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
420232b578d3Smrg	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
420332b578d3Smrg      done
420432b578d3Smrg      test -z "$LD" && LD="$ac_prog"
420532b578d3Smrg      ;;
420632b578d3Smrg  "")
420732b578d3Smrg    # If it fails, then pretend we aren't using GCC.
420832b578d3Smrg    ac_prog=ld
420932b578d3Smrg    ;;
421032b578d3Smrg  *)
421132b578d3Smrg    # If it is relative, then search for the first ld in PATH.
421232b578d3Smrg    with_gnu_ld=unknown
421332b578d3Smrg    ;;
421432b578d3Smrg  esac
421532b578d3Smrgelif test "$with_gnu_ld" = yes; then
42162a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
42172a51b5beSmrg$as_echo_n "checking for GNU ld... " >&6; }
421832b578d3Smrgelse
42192a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
42202a51b5beSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
422132b578d3Smrgfi
422232b578d3Smrgif test "${lt_cv_path_LD+set}" = set; then
42232a51b5beSmrg  $as_echo_n "(cached) " >&6
422432b578d3Smrgelse
422532b578d3Smrg  if test -z "$LD"; then
422632b578d3Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
422732b578d3Smrg  for ac_dir in $PATH; do
422832b578d3Smrg    IFS="$lt_save_ifs"
422932b578d3Smrg    test -z "$ac_dir" && ac_dir=.
423032b578d3Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
423132b578d3Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
423232b578d3Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
423332b578d3Smrg      # but apparently some variants of GNU ld only accept -v.
423432b578d3Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
423532b578d3Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
423632b578d3Smrg      *GNU* | *'with BFD'*)
423732b578d3Smrg	test "$with_gnu_ld" != no && break
423832b578d3Smrg	;;
423932b578d3Smrg      *)
424032b578d3Smrg	test "$with_gnu_ld" != yes && break
424132b578d3Smrg	;;
424232b578d3Smrg      esac
424332b578d3Smrg    fi
424432b578d3Smrg  done
424532b578d3Smrg  IFS="$lt_save_ifs"
424632b578d3Smrgelse
424732b578d3Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
424832b578d3Smrgfi
424932b578d3Smrgfi
425032b578d3Smrg
425132b578d3SmrgLD="$lt_cv_path_LD"
425232b578d3Smrgif test -n "$LD"; then
42532a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $LD" >&5
42542a51b5beSmrg$as_echo "$LD" >&6; }
425532b578d3Smrgelse
42562a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
42572a51b5beSmrg$as_echo "no" >&6; }
425832b578d3Smrgfi
42592a51b5beSmrgtest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
42602a51b5beSmrg$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
426132b578d3Smrg   { (exit 1); exit 1; }; }
42622a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
42632a51b5beSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
426432b578d3Smrgif test "${lt_cv_prog_gnu_ld+set}" = set; then
42652a51b5beSmrg  $as_echo_n "(cached) " >&6
426632b578d3Smrgelse
426732b578d3Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
426832b578d3Smrgcase `$LD -v 2>&1 </dev/null` in
426932b578d3Smrg*GNU* | *'with BFD'*)
427032b578d3Smrg  lt_cv_prog_gnu_ld=yes
427132b578d3Smrg  ;;
427232b578d3Smrg*)
427332b578d3Smrg  lt_cv_prog_gnu_ld=no
427432b578d3Smrg  ;;
427532b578d3Smrgesac
427632b578d3Smrgfi
42772a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
42782a51b5beSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
427932b578d3Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
428032b578d3Smrg
428132b578d3Smrg
42822a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
42832a51b5beSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
428432b578d3Smrgif test "${lt_cv_ld_reload_flag+set}" = set; then
42852a51b5beSmrg  $as_echo_n "(cached) " >&6
428632b578d3Smrgelse
428732b578d3Smrg  lt_cv_ld_reload_flag='-r'
428832b578d3Smrgfi
42892a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
42902a51b5beSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
429132b578d3Smrgreload_flag=$lt_cv_ld_reload_flag
429232b578d3Smrgcase $reload_flag in
429332b578d3Smrg"" | " "*) ;;
429432b578d3Smrg*) reload_flag=" $reload_flag" ;;
429532b578d3Smrgesac
429632b578d3Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
429732b578d3Smrgcase $host_os in
429832b578d3Smrg  darwin*)
429932b578d3Smrg    if test "$GCC" = yes; then
430032b578d3Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
430132b578d3Smrg    else
430232b578d3Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
430332b578d3Smrg    fi
430432b578d3Smrg    ;;
430532b578d3Smrgesac
430632b578d3Smrg
43072a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
43082a51b5beSmrg$as_echo_n "checking for BSD-compatible nm... " >&6; }
430932b578d3Smrgif test "${lt_cv_path_NM+set}" = set; then
43102a51b5beSmrg  $as_echo_n "(cached) " >&6
431132b578d3Smrgelse
431232b578d3Smrg  if test -n "$NM"; then
431332b578d3Smrg  # Let the user override the test.
431432b578d3Smrg  lt_cv_path_NM="$NM"
431532b578d3Smrgelse
431632b578d3Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
431732b578d3Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
431832b578d3Smrg    lt_nm_to_check="$lt_nm_to_check nm"
431932b578d3Smrg  fi
432032b578d3Smrg  for lt_tmp_nm in $lt_nm_to_check; do
432132b578d3Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
432232b578d3Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
432332b578d3Smrg      IFS="$lt_save_ifs"
432432b578d3Smrg      test -z "$ac_dir" && ac_dir=.
432532b578d3Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
432632b578d3Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
432732b578d3Smrg	# Check to see if the nm accepts a BSD-compat flag.
432832b578d3Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
432932b578d3Smrg	#   nm: unknown option "B" ignored
433032b578d3Smrg	# Tru64's nm complains that /dev/null is an invalid object file
433132b578d3Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
433232b578d3Smrg	*/dev/null* | *'Invalid file or object type'*)
433332b578d3Smrg	  lt_cv_path_NM="$tmp_nm -B"
433432b578d3Smrg	  break
433532b578d3Smrg	  ;;
433632b578d3Smrg	*)
433732b578d3Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
433832b578d3Smrg	  */dev/null*)
433932b578d3Smrg	    lt_cv_path_NM="$tmp_nm -p"
434032b578d3Smrg	    break
434132b578d3Smrg	    ;;
434232b578d3Smrg	  *)
434332b578d3Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
434432b578d3Smrg	    continue # so that we can try to find one that supports BSD flags
434532b578d3Smrg	    ;;
434632b578d3Smrg	  esac
434732b578d3Smrg	  ;;
434832b578d3Smrg	esac
434932b578d3Smrg      fi
435032b578d3Smrg    done
435132b578d3Smrg    IFS="$lt_save_ifs"
435232b578d3Smrg  done
435332b578d3Smrg  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
435432b578d3Smrgfi
435532b578d3Smrgfi
43562a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
43572a51b5beSmrg$as_echo "$lt_cv_path_NM" >&6; }
435832b578d3SmrgNM="$lt_cv_path_NM"
435932b578d3Smrg
43602a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
43612a51b5beSmrg$as_echo_n "checking whether ln -s works... " >&6; }
436232b578d3SmrgLN_S=$as_ln_s
436332b578d3Smrgif test "$LN_S" = "ln -s"; then
43642a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
43652a51b5beSmrg$as_echo "yes" >&6; }
436632b578d3Smrgelse
43672a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43682a51b5beSmrg$as_echo "no, using $LN_S" >&6; }
436932b578d3Smrgfi
437032b578d3Smrg
43712a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
43722a51b5beSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
437332b578d3Smrgif test "${lt_cv_deplibs_check_method+set}" = set; then
43742a51b5beSmrg  $as_echo_n "(cached) " >&6
437532b578d3Smrgelse
437632b578d3Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
437732b578d3Smrglt_cv_file_magic_test_file=
437832b578d3Smrglt_cv_deplibs_check_method='unknown'
437932b578d3Smrg# Need to set the preceding variable on all platforms that support
438032b578d3Smrg# interlibrary dependencies.
438132b578d3Smrg# 'none' -- dependencies not supported.
438232b578d3Smrg# `unknown' -- same as none, but documents that we really don't know.
438332b578d3Smrg# 'pass_all' -- all dependencies passed with no checks.
438432b578d3Smrg# 'test_compile' -- check by making test program.
438532b578d3Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
438632b578d3Smrg# which responds to the $file_magic_cmd with a given extended regex.
438732b578d3Smrg# If you have `file' or equivalent on your system and you're not sure
438832b578d3Smrg# whether `pass_all' will *always* work, you probably want this one.
438932b578d3Smrg
439032b578d3Smrgcase $host_os in
43912a51b5beSmrgaix[4-9]*)
439232b578d3Smrg  lt_cv_deplibs_check_method=pass_all
439332b578d3Smrg  ;;
439432b578d3Smrg
439532b578d3Smrgbeos*)
439632b578d3Smrg  lt_cv_deplibs_check_method=pass_all
439732b578d3Smrg  ;;
439832b578d3Smrg
439932b578d3Smrgbsdi[45]*)
440032b578d3Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
440132b578d3Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
440232b578d3Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
440332b578d3Smrg  ;;
440432b578d3Smrg
440532b578d3Smrgcygwin*)
440632b578d3Smrg  # func_win32_libid is a shell function defined in ltmain.sh
440732b578d3Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
440832b578d3Smrg  lt_cv_file_magic_cmd='func_win32_libid'
440932b578d3Smrg  ;;
441032b578d3Smrg
441132b578d3Smrgmingw* | pw32*)
441232b578d3Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
44132a51b5beSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
44142a51b5beSmrg  # unless we find 'file', for example because we are cross-compiling.
44152a51b5beSmrg  if ( file / ) >/dev/null 2>&1; then
44162a51b5beSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
44172a51b5beSmrg    lt_cv_file_magic_cmd='func_win32_libid'
44182a51b5beSmrg  else
44192a51b5beSmrg    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
44202a51b5beSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
44212a51b5beSmrg  fi
442232b578d3Smrg  ;;
442332b578d3Smrg
442432b578d3Smrgdarwin* | rhapsody*)
442532b578d3Smrg  lt_cv_deplibs_check_method=pass_all
442632b578d3Smrg  ;;
442732b578d3Smrg
44282a51b5beSmrgfreebsd* | dragonfly*)
442932b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
443032b578d3Smrg    case $host_cpu in
443132b578d3Smrg    i*86 )
443232b578d3Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
443332b578d3Smrg      # Let's accept both of them until this is cleared up.
443432b578d3Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
443532b578d3Smrg      lt_cv_file_magic_cmd=/usr/bin/file
443632b578d3Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
443732b578d3Smrg      ;;
443832b578d3Smrg    esac
443932b578d3Smrg  else
444032b578d3Smrg    lt_cv_deplibs_check_method=pass_all
444132b578d3Smrg  fi
444232b578d3Smrg  ;;
444332b578d3Smrg
444432b578d3Smrggnu*)
444532b578d3Smrg  lt_cv_deplibs_check_method=pass_all
444632b578d3Smrg  ;;
444732b578d3Smrg
444832b578d3Smrghpux10.20* | hpux11*)
444932b578d3Smrg  lt_cv_file_magic_cmd=/usr/bin/file
445032b578d3Smrg  case $host_cpu in
445132b578d3Smrg  ia64*)
445232b578d3Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
445332b578d3Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
445432b578d3Smrg    ;;
445532b578d3Smrg  hppa*64*)
445632b578d3Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
445732b578d3Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
445832b578d3Smrg    ;;
445932b578d3Smrg  *)
446032b578d3Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
446132b578d3Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
446232b578d3Smrg    ;;
446332b578d3Smrg  esac
446432b578d3Smrg  ;;
446532b578d3Smrg
44662a51b5beSmrginterix[3-9]*)
446732b578d3Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
446832b578d3Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
446932b578d3Smrg  ;;
447032b578d3Smrg
447132b578d3Smrgirix5* | irix6* | nonstopux*)
447232b578d3Smrg  case $LD in
447332b578d3Smrg  *-32|*"-32 ") libmagic=32-bit;;
447432b578d3Smrg  *-n32|*"-n32 ") libmagic=N32;;
447532b578d3Smrg  *-64|*"-64 ") libmagic=64-bit;;
447632b578d3Smrg  *) libmagic=never-match;;
447732b578d3Smrg  esac
447832b578d3Smrg  lt_cv_deplibs_check_method=pass_all
447932b578d3Smrg  ;;
448032b578d3Smrg
448132b578d3Smrg# This must be Linux ELF.
44822a51b5beSmrglinux* | k*bsd*-gnu)
448332b578d3Smrg  lt_cv_deplibs_check_method=pass_all
448432b578d3Smrg  ;;
448532b578d3Smrg
448632b578d3Smrgnetbsd*)
448732b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
448832b578d3Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
448932b578d3Smrg  else
449032b578d3Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
449132b578d3Smrg  fi
449232b578d3Smrg  ;;
449332b578d3Smrg
449432b578d3Smrgnewos6*)
449532b578d3Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
449632b578d3Smrg  lt_cv_file_magic_cmd=/usr/bin/file
449732b578d3Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
449832b578d3Smrg  ;;
449932b578d3Smrg
450032b578d3Smrgnto-qnx*)
450132b578d3Smrg  lt_cv_deplibs_check_method=unknown
450232b578d3Smrg  ;;
450332b578d3Smrg
450432b578d3Smrgopenbsd*)
450532b578d3Smrg  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
450632b578d3Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
450732b578d3Smrg  else
450832b578d3Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
450932b578d3Smrg  fi
451032b578d3Smrg  ;;
451132b578d3Smrg
451232b578d3Smrgosf3* | osf4* | osf5*)
451332b578d3Smrg  lt_cv_deplibs_check_method=pass_all
451432b578d3Smrg  ;;
451532b578d3Smrg
45162a51b5beSmrgrdos*)
45172a51b5beSmrg  lt_cv_deplibs_check_method=pass_all
45182a51b5beSmrg  ;;
45192a51b5beSmrg
452032b578d3Smrgsolaris*)
452132b578d3Smrg  lt_cv_deplibs_check_method=pass_all
452232b578d3Smrg  ;;
452332b578d3Smrg
452432b578d3Smrgsysv4 | sysv4.3*)
452532b578d3Smrg  case $host_vendor in
452632b578d3Smrg  motorola)
452732b578d3Smrg    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]'
452832b578d3Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
452932b578d3Smrg    ;;
453032b578d3Smrg  ncr)
453132b578d3Smrg    lt_cv_deplibs_check_method=pass_all
453232b578d3Smrg    ;;
453332b578d3Smrg  sequent)
453432b578d3Smrg    lt_cv_file_magic_cmd='/bin/file'
453532b578d3Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
453632b578d3Smrg    ;;
453732b578d3Smrg  sni)
453832b578d3Smrg    lt_cv_file_magic_cmd='/bin/file'
453932b578d3Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
454032b578d3Smrg    lt_cv_file_magic_test_file=/lib/libc.so
454132b578d3Smrg    ;;
454232b578d3Smrg  siemens)
454332b578d3Smrg    lt_cv_deplibs_check_method=pass_all
454432b578d3Smrg    ;;
454532b578d3Smrg  pc)
454632b578d3Smrg    lt_cv_deplibs_check_method=pass_all
454732b578d3Smrg    ;;
454832b578d3Smrg  esac
454932b578d3Smrg  ;;
455032b578d3Smrg
455132b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
455232b578d3Smrg  lt_cv_deplibs_check_method=pass_all
455332b578d3Smrg  ;;
455432b578d3Smrgesac
455532b578d3Smrg
455632b578d3Smrgfi
45572a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
45582a51b5beSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
455932b578d3Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
456032b578d3Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
456132b578d3Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
456232b578d3Smrg
456332b578d3Smrg
456432b578d3Smrg
456532b578d3Smrg
456632b578d3Smrg# If no C compiler was specified, use CC.
456732b578d3SmrgLTCC=${LTCC-"$CC"}
456832b578d3Smrg
456932b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
457032b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
457132b578d3Smrg
457232b578d3Smrg# Allow CC to be a program name with arguments.
457332b578d3Smrgcompiler=$CC
457432b578d3Smrg
457532b578d3Smrg
457632b578d3Smrg# Check whether --enable-libtool-lock was given.
457732b578d3Smrgif test "${enable_libtool_lock+set}" = set; then
457832b578d3Smrg  enableval=$enable_libtool_lock;
457932b578d3Smrgfi
458032b578d3Smrg
458132b578d3Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
458232b578d3Smrg
458332b578d3Smrg# Some flags need to be propagated to the compiler or linker for good
458432b578d3Smrg# libtool support.
458532b578d3Smrgcase $host in
458632b578d3Smrgia64-*-hpux*)
458732b578d3Smrg  # Find out which ABI we are using.
458832b578d3Smrg  echo 'int i;' > conftest.$ac_ext
458932b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
459032b578d3Smrg  (eval $ac_compile) 2>&5
459132b578d3Smrg  ac_status=$?
45922a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
459332b578d3Smrg  (exit $ac_status); }; then
459432b578d3Smrg    case `/usr/bin/file conftest.$ac_objext` in
459532b578d3Smrg    *ELF-32*)
459632b578d3Smrg      HPUX_IA64_MODE="32"
459732b578d3Smrg      ;;
459832b578d3Smrg    *ELF-64*)
459932b578d3Smrg      HPUX_IA64_MODE="64"
460032b578d3Smrg      ;;
460132b578d3Smrg    esac
460232b578d3Smrg  fi
460332b578d3Smrg  rm -rf conftest*
460432b578d3Smrg  ;;
460532b578d3Smrg*-*-irix6*)
460632b578d3Smrg  # Find out which ABI we are using.
46072a51b5beSmrg  echo '#line 4607 "configure"' > conftest.$ac_ext
460832b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
460932b578d3Smrg  (eval $ac_compile) 2>&5
461032b578d3Smrg  ac_status=$?
46112a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
461232b578d3Smrg  (exit $ac_status); }; then
461332b578d3Smrg   if test "$lt_cv_prog_gnu_ld" = yes; then
461432b578d3Smrg    case `/usr/bin/file conftest.$ac_objext` in
461532b578d3Smrg    *32-bit*)
461632b578d3Smrg      LD="${LD-ld} -melf32bsmip"
461732b578d3Smrg      ;;
461832b578d3Smrg    *N32*)
461932b578d3Smrg      LD="${LD-ld} -melf32bmipn32"
462032b578d3Smrg      ;;
462132b578d3Smrg    *64-bit*)
462232b578d3Smrg      LD="${LD-ld} -melf64bmip"
462332b578d3Smrg      ;;
462432b578d3Smrg    esac
462532b578d3Smrg   else
462632b578d3Smrg    case `/usr/bin/file conftest.$ac_objext` in
462732b578d3Smrg    *32-bit*)
462832b578d3Smrg      LD="${LD-ld} -32"
462932b578d3Smrg      ;;
463032b578d3Smrg    *N32*)
463132b578d3Smrg      LD="${LD-ld} -n32"
463232b578d3Smrg      ;;
463332b578d3Smrg    *64-bit*)
463432b578d3Smrg      LD="${LD-ld} -64"
463532b578d3Smrg      ;;
463632b578d3Smrg    esac
463732b578d3Smrg   fi
463832b578d3Smrg  fi
463932b578d3Smrg  rm -rf conftest*
464032b578d3Smrg  ;;
464132b578d3Smrg
46422a51b5beSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
46432a51b5beSmrgs390*-*linux*|sparc*-*linux*)
464432b578d3Smrg  # Find out which ABI we are using.
464532b578d3Smrg  echo 'int i;' > conftest.$ac_ext
464632b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
464732b578d3Smrg  (eval $ac_compile) 2>&5
464832b578d3Smrg  ac_status=$?
46492a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
465032b578d3Smrg  (exit $ac_status); }; then
465132b578d3Smrg    case `/usr/bin/file conftest.o` in
465232b578d3Smrg    *32-bit*)
465332b578d3Smrg      case $host in
46542a51b5beSmrg        x86_64-*kfreebsd*-gnu)
46552a51b5beSmrg          LD="${LD-ld} -m elf_i386_fbsd"
46562a51b5beSmrg          ;;
465732b578d3Smrg        x86_64-*linux*)
465832b578d3Smrg          LD="${LD-ld} -m elf_i386"
465932b578d3Smrg          ;;
466032b578d3Smrg        ppc64-*linux*|powerpc64-*linux*)
466132b578d3Smrg          LD="${LD-ld} -m elf32ppclinux"
466232b578d3Smrg          ;;
466332b578d3Smrg        s390x-*linux*)
466432b578d3Smrg          LD="${LD-ld} -m elf_s390"
466532b578d3Smrg          ;;
466632b578d3Smrg        sparc64-*linux*)
466732b578d3Smrg          LD="${LD-ld} -m elf32_sparc"
466832b578d3Smrg          ;;
466932b578d3Smrg      esac
467032b578d3Smrg      ;;
467132b578d3Smrg    *64-bit*)
46722a51b5beSmrg      libsuff=64
467332b578d3Smrg      case $host in
46742a51b5beSmrg        x86_64-*kfreebsd*-gnu)
46752a51b5beSmrg          LD="${LD-ld} -m elf_x86_64_fbsd"
46762a51b5beSmrg          ;;
467732b578d3Smrg        x86_64-*linux*)
467832b578d3Smrg          LD="${LD-ld} -m elf_x86_64"
467932b578d3Smrg          ;;
468032b578d3Smrg        ppc*-*linux*|powerpc*-*linux*)
468132b578d3Smrg          LD="${LD-ld} -m elf64ppc"
468232b578d3Smrg          ;;
468332b578d3Smrg        s390*-*linux*)
468432b578d3Smrg          LD="${LD-ld} -m elf64_s390"
468532b578d3Smrg          ;;
468632b578d3Smrg        sparc*-*linux*)
468732b578d3Smrg          LD="${LD-ld} -m elf64_sparc"
468832b578d3Smrg          ;;
468932b578d3Smrg      esac
469032b578d3Smrg      ;;
469132b578d3Smrg    esac
469232b578d3Smrg  fi
469332b578d3Smrg  rm -rf conftest*
469432b578d3Smrg  ;;
469532b578d3Smrg
469632b578d3Smrg*-*-sco3.2v5*)
469732b578d3Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
469832b578d3Smrg  SAVE_CFLAGS="$CFLAGS"
469932b578d3Smrg  CFLAGS="$CFLAGS -belf"
47002a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
47012a51b5beSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
470232b578d3Smrgif test "${lt_cv_cc_needs_belf+set}" = set; then
47032a51b5beSmrg  $as_echo_n "(cached) " >&6
470432b578d3Smrgelse
470532b578d3Smrg  ac_ext=c
470632b578d3Smrgac_cpp='$CPP $CPPFLAGS'
470732b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
470832b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
470932b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
471032b578d3Smrg
471132b578d3Smrg     cat >conftest.$ac_ext <<_ACEOF
471232b578d3Smrg/* confdefs.h.  */
471332b578d3Smrg_ACEOF
471432b578d3Smrgcat confdefs.h >>conftest.$ac_ext
471532b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
471632b578d3Smrg/* end confdefs.h.  */
471732b578d3Smrg
471832b578d3Smrgint
471932b578d3Smrgmain ()
472032b578d3Smrg{
472132b578d3Smrg
472232b578d3Smrg  ;
472332b578d3Smrg  return 0;
472432b578d3Smrg}
472532b578d3Smrg_ACEOF
472632b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
472732b578d3Smrgif { (ac_try="$ac_link"
472832b578d3Smrgcase "(($ac_try" in
472932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
473032b578d3Smrg  *) ac_try_echo=$ac_try;;
473132b578d3Smrgesac
47322a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47332a51b5beSmrg$as_echo "$ac_try_echo") >&5
473432b578d3Smrg  (eval "$ac_link") 2>conftest.er1
473532b578d3Smrg  ac_status=$?
473632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
473732b578d3Smrg  rm -f conftest.er1
473832b578d3Smrg  cat conftest.err >&5
47392a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
474032b578d3Smrg  (exit $ac_status); } && {
474132b578d3Smrg	 test -z "$ac_c_werror_flag" ||
474232b578d3Smrg	 test ! -s conftest.err
47432a51b5beSmrg       } && test -s conftest$ac_exeext && {
47442a51b5beSmrg	 test "$cross_compiling" = yes ||
47452a51b5beSmrg	 $as_test_x conftest$ac_exeext
47462a51b5beSmrg       }; then
474732b578d3Smrg  lt_cv_cc_needs_belf=yes
474832b578d3Smrgelse
47492a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
475032b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
475132b578d3Smrg
475232b578d3Smrg	lt_cv_cc_needs_belf=no
475332b578d3Smrgfi
475432b578d3Smrg
47552a51b5beSmrgrm -rf conftest.dSYM
475632b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
475732b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
475832b578d3Smrg     ac_ext=c
475932b578d3Smrgac_cpp='$CPP $CPPFLAGS'
476032b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
476132b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
476232b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
476332b578d3Smrg
476432b578d3Smrgfi
47652a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
47662a51b5beSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
476732b578d3Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
476832b578d3Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
476932b578d3Smrg    CFLAGS="$SAVE_CFLAGS"
477032b578d3Smrg  fi
477132b578d3Smrg  ;;
477232b578d3Smrgsparc*-*solaris*)
477332b578d3Smrg  # Find out which ABI we are using.
477432b578d3Smrg  echo 'int i;' > conftest.$ac_ext
477532b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
477632b578d3Smrg  (eval $ac_compile) 2>&5
477732b578d3Smrg  ac_status=$?
47782a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
477932b578d3Smrg  (exit $ac_status); }; then
478032b578d3Smrg    case `/usr/bin/file conftest.o` in
478132b578d3Smrg    *64-bit*)
478232b578d3Smrg      case $lt_cv_prog_gnu_ld in
478332b578d3Smrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
47842a51b5beSmrg      *)
47852a51b5beSmrg        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
47862a51b5beSmrg	  LD="${LD-ld} -64"
47872a51b5beSmrg	fi
47882a51b5beSmrg	;;
478932b578d3Smrg      esac
479032b578d3Smrg      ;;
479132b578d3Smrg    esac
479232b578d3Smrg  fi
479332b578d3Smrg  rm -rf conftest*
479432b578d3Smrg  ;;
479532b578d3Smrg
479632b578d3Smrg
479732b578d3Smrgesac
479832b578d3Smrg
479932b578d3Smrgneed_locks="$enable_libtool_lock"
480032b578d3Smrg
480132b578d3Smrg
480232b578d3Smrgac_ext=c
480332b578d3Smrgac_cpp='$CPP $CPPFLAGS'
480432b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
480532b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
480632b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
48072a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
48082a51b5beSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
480932b578d3Smrg# On Suns, sometimes $CPP names a directory.
481032b578d3Smrgif test -n "$CPP" && test -d "$CPP"; then
481132b578d3Smrg  CPP=
481232b578d3Smrgfi
481332b578d3Smrgif test -z "$CPP"; then
481432b578d3Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
48152a51b5beSmrg  $as_echo_n "(cached) " >&6
481632b578d3Smrgelse
481732b578d3Smrg      # Double quotes because CPP needs to be expanded
481832b578d3Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
481932b578d3Smrg    do
482032b578d3Smrg      ac_preproc_ok=false
482132b578d3Smrgfor ac_c_preproc_warn_flag in '' yes
482232b578d3Smrgdo
482332b578d3Smrg  # Use a header file that comes with gcc, so configuring glibc
482432b578d3Smrg  # with a fresh cross-compiler works.
482532b578d3Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
482632b578d3Smrg  # <limits.h> exists even on freestanding compilers.
482732b578d3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
482832b578d3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
482932b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
483032b578d3Smrg/* confdefs.h.  */
483132b578d3Smrg_ACEOF
483232b578d3Smrgcat confdefs.h >>conftest.$ac_ext
483332b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
483432b578d3Smrg/* end confdefs.h.  */
483532b578d3Smrg#ifdef __STDC__
483632b578d3Smrg# include <limits.h>
483732b578d3Smrg#else
483832b578d3Smrg# include <assert.h>
483932b578d3Smrg#endif
484032b578d3Smrg		     Syntax error
484132b578d3Smrg_ACEOF
484232b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
484332b578d3Smrgcase "(($ac_try" in
484432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
484532b578d3Smrg  *) ac_try_echo=$ac_try;;
484632b578d3Smrgesac
48472a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48482a51b5beSmrg$as_echo "$ac_try_echo") >&5
484932b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
485032b578d3Smrg  ac_status=$?
485132b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
485232b578d3Smrg  rm -f conftest.er1
485332b578d3Smrg  cat conftest.err >&5
48542a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
485532b578d3Smrg  (exit $ac_status); } >/dev/null && {
485632b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
485732b578d3Smrg	 test ! -s conftest.err
485832b578d3Smrg       }; then
485932b578d3Smrg  :
486032b578d3Smrgelse
48612a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
486232b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
486332b578d3Smrg
486432b578d3Smrg  # Broken: fails on valid input.
486532b578d3Smrgcontinue
486632b578d3Smrgfi
486732b578d3Smrg
486832b578d3Smrgrm -f conftest.err conftest.$ac_ext
486932b578d3Smrg
487032b578d3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
487132b578d3Smrg  # can be detected and how.
487232b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
487332b578d3Smrg/* confdefs.h.  */
487432b578d3Smrg_ACEOF
487532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
487632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
487732b578d3Smrg/* end confdefs.h.  */
487832b578d3Smrg#include <ac_nonexistent.h>
487932b578d3Smrg_ACEOF
488032b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
488132b578d3Smrgcase "(($ac_try" in
488232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
488332b578d3Smrg  *) ac_try_echo=$ac_try;;
488432b578d3Smrgesac
48852a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48862a51b5beSmrg$as_echo "$ac_try_echo") >&5
488732b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
488832b578d3Smrg  ac_status=$?
488932b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
489032b578d3Smrg  rm -f conftest.er1
489132b578d3Smrg  cat conftest.err >&5
48922a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
489332b578d3Smrg  (exit $ac_status); } >/dev/null && {
489432b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
489532b578d3Smrg	 test ! -s conftest.err
489632b578d3Smrg       }; then
489732b578d3Smrg  # Broken: success on invalid input.
489832b578d3Smrgcontinue
489932b578d3Smrgelse
49002a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
490132b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
490232b578d3Smrg
490332b578d3Smrg  # Passes both tests.
490432b578d3Smrgac_preproc_ok=:
490532b578d3Smrgbreak
490632b578d3Smrgfi
490732b578d3Smrg
490832b578d3Smrgrm -f conftest.err conftest.$ac_ext
490932b578d3Smrg
491032b578d3Smrgdone
491132b578d3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
491232b578d3Smrgrm -f conftest.err conftest.$ac_ext
491332b578d3Smrgif $ac_preproc_ok; then
491432b578d3Smrg  break
491532b578d3Smrgfi
491632b578d3Smrg
491732b578d3Smrg    done
491832b578d3Smrg    ac_cv_prog_CPP=$CPP
491932b578d3Smrg
492032b578d3Smrgfi
492132b578d3Smrg  CPP=$ac_cv_prog_CPP
492232b578d3Smrgelse
492332b578d3Smrg  ac_cv_prog_CPP=$CPP
492432b578d3Smrgfi
49252a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
49262a51b5beSmrg$as_echo "$CPP" >&6; }
492732b578d3Smrgac_preproc_ok=false
492832b578d3Smrgfor ac_c_preproc_warn_flag in '' yes
492932b578d3Smrgdo
493032b578d3Smrg  # Use a header file that comes with gcc, so configuring glibc
493132b578d3Smrg  # with a fresh cross-compiler works.
493232b578d3Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
493332b578d3Smrg  # <limits.h> exists even on freestanding compilers.
493432b578d3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
493532b578d3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
493632b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
493732b578d3Smrg/* confdefs.h.  */
493832b578d3Smrg_ACEOF
493932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
494032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
494132b578d3Smrg/* end confdefs.h.  */
494232b578d3Smrg#ifdef __STDC__
494332b578d3Smrg# include <limits.h>
494432b578d3Smrg#else
494532b578d3Smrg# include <assert.h>
494632b578d3Smrg#endif
494732b578d3Smrg		     Syntax error
494832b578d3Smrg_ACEOF
494932b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
495032b578d3Smrgcase "(($ac_try" in
495132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
495232b578d3Smrg  *) ac_try_echo=$ac_try;;
495332b578d3Smrgesac
49542a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49552a51b5beSmrg$as_echo "$ac_try_echo") >&5
495632b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
495732b578d3Smrg  ac_status=$?
495832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
495932b578d3Smrg  rm -f conftest.er1
496032b578d3Smrg  cat conftest.err >&5
49612a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
496232b578d3Smrg  (exit $ac_status); } >/dev/null && {
496332b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
496432b578d3Smrg	 test ! -s conftest.err
496532b578d3Smrg       }; then
496632b578d3Smrg  :
496732b578d3Smrgelse
49682a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
496932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
497032b578d3Smrg
497132b578d3Smrg  # Broken: fails on valid input.
497232b578d3Smrgcontinue
497332b578d3Smrgfi
497432b578d3Smrg
497532b578d3Smrgrm -f conftest.err conftest.$ac_ext
497632b578d3Smrg
497732b578d3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
497832b578d3Smrg  # can be detected and how.
497932b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
498032b578d3Smrg/* confdefs.h.  */
498132b578d3Smrg_ACEOF
498232b578d3Smrgcat confdefs.h >>conftest.$ac_ext
498332b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
498432b578d3Smrg/* end confdefs.h.  */
498532b578d3Smrg#include <ac_nonexistent.h>
498632b578d3Smrg_ACEOF
498732b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
498832b578d3Smrgcase "(($ac_try" in
498932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
499032b578d3Smrg  *) ac_try_echo=$ac_try;;
499132b578d3Smrgesac
49922a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49932a51b5beSmrg$as_echo "$ac_try_echo") >&5
499432b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
499532b578d3Smrg  ac_status=$?
499632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
499732b578d3Smrg  rm -f conftest.er1
499832b578d3Smrg  cat conftest.err >&5
49992a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
500032b578d3Smrg  (exit $ac_status); } >/dev/null && {
500132b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
500232b578d3Smrg	 test ! -s conftest.err
500332b578d3Smrg       }; then
500432b578d3Smrg  # Broken: success on invalid input.
500532b578d3Smrgcontinue
500632b578d3Smrgelse
50072a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
500832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
500932b578d3Smrg
501032b578d3Smrg  # Passes both tests.
501132b578d3Smrgac_preproc_ok=:
501232b578d3Smrgbreak
501332b578d3Smrgfi
501432b578d3Smrg
501532b578d3Smrgrm -f conftest.err conftest.$ac_ext
501632b578d3Smrg
501732b578d3Smrgdone
501832b578d3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
501932b578d3Smrgrm -f conftest.err conftest.$ac_ext
502032b578d3Smrgif $ac_preproc_ok; then
502132b578d3Smrg  :
502232b578d3Smrgelse
50232a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50242a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50252a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
502632b578d3SmrgSee \`config.log' for more details." >&5
50272a51b5beSmrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
502832b578d3SmrgSee \`config.log' for more details." >&2;}
50292a51b5beSmrg   { (exit 1); exit 1; }; }; }
503032b578d3Smrgfi
503132b578d3Smrg
503232b578d3Smrgac_ext=c
503332b578d3Smrgac_cpp='$CPP $CPPFLAGS'
503432b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
503532b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
503632b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
503732b578d3Smrg
503832b578d3Smrg
50392a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
50402a51b5beSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
504132b578d3Smrgif test "${ac_cv_header_stdc+set}" = set; then
50422a51b5beSmrg  $as_echo_n "(cached) " >&6
504332b578d3Smrgelse
504432b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
504532b578d3Smrg/* confdefs.h.  */
504632b578d3Smrg_ACEOF
504732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
504832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
504932b578d3Smrg/* end confdefs.h.  */
505032b578d3Smrg#include <stdlib.h>
505132b578d3Smrg#include <stdarg.h>
505232b578d3Smrg#include <string.h>
505332b578d3Smrg#include <float.h>
505432b578d3Smrg
505532b578d3Smrgint
505632b578d3Smrgmain ()
505732b578d3Smrg{
505832b578d3Smrg
505932b578d3Smrg  ;
506032b578d3Smrg  return 0;
506132b578d3Smrg}
506232b578d3Smrg_ACEOF
506332b578d3Smrgrm -f conftest.$ac_objext
506432b578d3Smrgif { (ac_try="$ac_compile"
506532b578d3Smrgcase "(($ac_try" in
506632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
506732b578d3Smrg  *) ac_try_echo=$ac_try;;
506832b578d3Smrgesac
50692a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50702a51b5beSmrg$as_echo "$ac_try_echo") >&5
507132b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
507232b578d3Smrg  ac_status=$?
507332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
507432b578d3Smrg  rm -f conftest.er1
507532b578d3Smrg  cat conftest.err >&5
50762a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
507732b578d3Smrg  (exit $ac_status); } && {
507832b578d3Smrg	 test -z "$ac_c_werror_flag" ||
507932b578d3Smrg	 test ! -s conftest.err
508032b578d3Smrg       } && test -s conftest.$ac_objext; then
508132b578d3Smrg  ac_cv_header_stdc=yes
508232b578d3Smrgelse
50832a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
508432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
508532b578d3Smrg
508632b578d3Smrg	ac_cv_header_stdc=no
508732b578d3Smrgfi
508832b578d3Smrg
508932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
509032b578d3Smrg
509132b578d3Smrgif test $ac_cv_header_stdc = yes; then
509232b578d3Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
509332b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
509432b578d3Smrg/* confdefs.h.  */
509532b578d3Smrg_ACEOF
509632b578d3Smrgcat confdefs.h >>conftest.$ac_ext
509732b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
509832b578d3Smrg/* end confdefs.h.  */
509932b578d3Smrg#include <string.h>
510032b578d3Smrg
510132b578d3Smrg_ACEOF
510232b578d3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
510332b578d3Smrg  $EGREP "memchr" >/dev/null 2>&1; then
510432b578d3Smrg  :
510532b578d3Smrgelse
510632b578d3Smrg  ac_cv_header_stdc=no
510732b578d3Smrgfi
510832b578d3Smrgrm -f conftest*
510932b578d3Smrg
511032b578d3Smrgfi
511132b578d3Smrg
511232b578d3Smrgif test $ac_cv_header_stdc = yes; then
511332b578d3Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
511432b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
511532b578d3Smrg/* confdefs.h.  */
511632b578d3Smrg_ACEOF
511732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
511832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
511932b578d3Smrg/* end confdefs.h.  */
512032b578d3Smrg#include <stdlib.h>
512132b578d3Smrg
512232b578d3Smrg_ACEOF
512332b578d3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
512432b578d3Smrg  $EGREP "free" >/dev/null 2>&1; then
512532b578d3Smrg  :
512632b578d3Smrgelse
512732b578d3Smrg  ac_cv_header_stdc=no
512832b578d3Smrgfi
512932b578d3Smrgrm -f conftest*
513032b578d3Smrg
513132b578d3Smrgfi
513232b578d3Smrg
513332b578d3Smrgif test $ac_cv_header_stdc = yes; then
513432b578d3Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
513532b578d3Smrg  if test "$cross_compiling" = yes; then
513632b578d3Smrg  :
513732b578d3Smrgelse
513832b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
513932b578d3Smrg/* confdefs.h.  */
514032b578d3Smrg_ACEOF
514132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
514232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
514332b578d3Smrg/* end confdefs.h.  */
514432b578d3Smrg#include <ctype.h>
514532b578d3Smrg#include <stdlib.h>
514632b578d3Smrg#if ((' ' & 0x0FF) == 0x020)
514732b578d3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
514832b578d3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
514932b578d3Smrg#else
515032b578d3Smrg# define ISLOWER(c) \
515132b578d3Smrg		   (('a' <= (c) && (c) <= 'i') \
515232b578d3Smrg		     || ('j' <= (c) && (c) <= 'r') \
515332b578d3Smrg		     || ('s' <= (c) && (c) <= 'z'))
515432b578d3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
515532b578d3Smrg#endif
515632b578d3Smrg
515732b578d3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
515832b578d3Smrgint
515932b578d3Smrgmain ()
516032b578d3Smrg{
516132b578d3Smrg  int i;
516232b578d3Smrg  for (i = 0; i < 256; i++)
516332b578d3Smrg    if (XOR (islower (i), ISLOWER (i))
516432b578d3Smrg	|| toupper (i) != TOUPPER (i))
516532b578d3Smrg      return 2;
516632b578d3Smrg  return 0;
516732b578d3Smrg}
516832b578d3Smrg_ACEOF
516932b578d3Smrgrm -f conftest$ac_exeext
517032b578d3Smrgif { (ac_try="$ac_link"
517132b578d3Smrgcase "(($ac_try" in
517232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
517332b578d3Smrg  *) ac_try_echo=$ac_try;;
517432b578d3Smrgesac
51752a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51762a51b5beSmrg$as_echo "$ac_try_echo") >&5
517732b578d3Smrg  (eval "$ac_link") 2>&5
517832b578d3Smrg  ac_status=$?
51792a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
518032b578d3Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
518132b578d3Smrg  { (case "(($ac_try" in
518232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
518332b578d3Smrg  *) ac_try_echo=$ac_try;;
518432b578d3Smrgesac
51852a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51862a51b5beSmrg$as_echo "$ac_try_echo") >&5
518732b578d3Smrg  (eval "$ac_try") 2>&5
518832b578d3Smrg  ac_status=$?
51892a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
519032b578d3Smrg  (exit $ac_status); }; }; then
519132b578d3Smrg  :
519232b578d3Smrgelse
51932a51b5beSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
51942a51b5beSmrg$as_echo "$as_me: failed program was:" >&5
519532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
519632b578d3Smrg
519732b578d3Smrg( exit $ac_status )
519832b578d3Smrgac_cv_header_stdc=no
519932b578d3Smrgfi
52002a51b5beSmrgrm -rf conftest.dSYM
520132b578d3Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
520232b578d3Smrgfi
520332b578d3Smrg
520432b578d3Smrg
520532b578d3Smrgfi
520632b578d3Smrgfi
52072a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
52082a51b5beSmrg$as_echo "$ac_cv_header_stdc" >&6; }
520932b578d3Smrgif test $ac_cv_header_stdc = yes; then
521032b578d3Smrg
521132b578d3Smrgcat >>confdefs.h <<\_ACEOF
521232b578d3Smrg#define STDC_HEADERS 1
521332b578d3Smrg_ACEOF
521432b578d3Smrg
521532b578d3Smrgfi
521632b578d3Smrg
521732b578d3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
521832b578d3Smrg
521932b578d3Smrg
522032b578d3Smrg
522132b578d3Smrg
522232b578d3Smrg
522332b578d3Smrg
522432b578d3Smrg
522532b578d3Smrg
522632b578d3Smrg
522732b578d3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
522832b578d3Smrg		  inttypes.h stdint.h unistd.h
522932b578d3Smrgdo
52302a51b5beSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52312a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52322a51b5beSmrg$as_echo_n "checking for $ac_header... " >&6; }
523332b578d3Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52342a51b5beSmrg  $as_echo_n "(cached) " >&6
523532b578d3Smrgelse
523632b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
523732b578d3Smrg/* confdefs.h.  */
523832b578d3Smrg_ACEOF
523932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
524032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
524132b578d3Smrg/* end confdefs.h.  */
524232b578d3Smrg$ac_includes_default
524332b578d3Smrg
524432b578d3Smrg#include <$ac_header>
524532b578d3Smrg_ACEOF
524632b578d3Smrgrm -f conftest.$ac_objext
524732b578d3Smrgif { (ac_try="$ac_compile"
524832b578d3Smrgcase "(($ac_try" in
524932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
525032b578d3Smrg  *) ac_try_echo=$ac_try;;
525132b578d3Smrgesac
52522a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52532a51b5beSmrg$as_echo "$ac_try_echo") >&5
525432b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
525532b578d3Smrg  ac_status=$?
525632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
525732b578d3Smrg  rm -f conftest.er1
525832b578d3Smrg  cat conftest.err >&5
52592a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
526032b578d3Smrg  (exit $ac_status); } && {
526132b578d3Smrg	 test -z "$ac_c_werror_flag" ||
526232b578d3Smrg	 test ! -s conftest.err
526332b578d3Smrg       } && test -s conftest.$ac_objext; then
526432b578d3Smrg  eval "$as_ac_Header=yes"
526532b578d3Smrgelse
52662a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
526732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
526832b578d3Smrg
526932b578d3Smrg	eval "$as_ac_Header=no"
527032b578d3Smrgfi
527132b578d3Smrg
527232b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
527332b578d3Smrgfi
52742a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
52752a51b5beSmrg		 $as_echo "$as_val"'`
52762a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52772a51b5beSmrg$as_echo "$ac_res" >&6; }
52782a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_Header'}
52792a51b5beSmrg		 $as_echo "$as_val"'`
52802a51b5beSmrg   if test "x$as_val" = x""yes; then
528132b578d3Smrg  cat >>confdefs.h <<_ACEOF
52822a51b5beSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
528332b578d3Smrg_ACEOF
528432b578d3Smrg
528532b578d3Smrgfi
528632b578d3Smrg
528732b578d3Smrgdone
528832b578d3Smrg
528932b578d3Smrg
529032b578d3Smrg
529132b578d3Smrgfor ac_header in dlfcn.h
529232b578d3Smrgdo
52932a51b5beSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
529432b578d3Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52952a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52962a51b5beSmrg$as_echo_n "checking for $ac_header... " >&6; }
529732b578d3Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52982a51b5beSmrg  $as_echo_n "(cached) " >&6
529932b578d3Smrgfi
53002a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
53012a51b5beSmrg		 $as_echo "$as_val"'`
53022a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53032a51b5beSmrg$as_echo "$ac_res" >&6; }
530432b578d3Smrgelse
530532b578d3Smrg  # Is the header compilable?
53062a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53072a51b5beSmrg$as_echo_n "checking $ac_header usability... " >&6; }
530832b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
530932b578d3Smrg/* confdefs.h.  */
531032b578d3Smrg_ACEOF
531132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
531232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
531332b578d3Smrg/* end confdefs.h.  */
531432b578d3Smrg$ac_includes_default
531532b578d3Smrg#include <$ac_header>
531632b578d3Smrg_ACEOF
531732b578d3Smrgrm -f conftest.$ac_objext
531832b578d3Smrgif { (ac_try="$ac_compile"
531932b578d3Smrgcase "(($ac_try" in
532032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
532132b578d3Smrg  *) ac_try_echo=$ac_try;;
532232b578d3Smrgesac
53232a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53242a51b5beSmrg$as_echo "$ac_try_echo") >&5
532532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
532632b578d3Smrg  ac_status=$?
532732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
532832b578d3Smrg  rm -f conftest.er1
532932b578d3Smrg  cat conftest.err >&5
53302a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
533132b578d3Smrg  (exit $ac_status); } && {
533232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
533332b578d3Smrg	 test ! -s conftest.err
533432b578d3Smrg       } && test -s conftest.$ac_objext; then
533532b578d3Smrg  ac_header_compiler=yes
533632b578d3Smrgelse
53372a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
533832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
533932b578d3Smrg
534032b578d3Smrg	ac_header_compiler=no
534132b578d3Smrgfi
534232b578d3Smrg
534332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53442a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53452a51b5beSmrg$as_echo "$ac_header_compiler" >&6; }
534632b578d3Smrg
534732b578d3Smrg# Is the header present?
53482a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53492a51b5beSmrg$as_echo_n "checking $ac_header presence... " >&6; }
535032b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
535132b578d3Smrg/* confdefs.h.  */
535232b578d3Smrg_ACEOF
535332b578d3Smrgcat confdefs.h >>conftest.$ac_ext
535432b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
535532b578d3Smrg/* end confdefs.h.  */
535632b578d3Smrg#include <$ac_header>
535732b578d3Smrg_ACEOF
535832b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
535932b578d3Smrgcase "(($ac_try" in
536032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
536132b578d3Smrg  *) ac_try_echo=$ac_try;;
536232b578d3Smrgesac
53632a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53642a51b5beSmrg$as_echo "$ac_try_echo") >&5
536532b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
536632b578d3Smrg  ac_status=$?
536732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
536832b578d3Smrg  rm -f conftest.er1
536932b578d3Smrg  cat conftest.err >&5
53702a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
537132b578d3Smrg  (exit $ac_status); } >/dev/null && {
537232b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
537332b578d3Smrg	 test ! -s conftest.err
537432b578d3Smrg       }; then
537532b578d3Smrg  ac_header_preproc=yes
537632b578d3Smrgelse
53772a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
537832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
537932b578d3Smrg
538032b578d3Smrg  ac_header_preproc=no
538132b578d3Smrgfi
538232b578d3Smrg
538332b578d3Smrgrm -f conftest.err conftest.$ac_ext
53842a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53852a51b5beSmrg$as_echo "$ac_header_preproc" >&6; }
538632b578d3Smrg
538732b578d3Smrg# So?  What about this header?
538832b578d3Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
538932b578d3Smrg  yes:no: )
53902a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53912a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53922a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53932a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
539432b578d3Smrg    ac_header_preproc=yes
539532b578d3Smrg    ;;
539632b578d3Smrg  no:yes:* )
53972a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53982a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53992a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54002a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54012a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54022a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54032a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54042a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54052a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54062a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54072a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54082a51b5beSmrg$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
540932b578d3Smrg    ( cat <<\_ASBOX
541032b578d3Smrg## ---------------------------------------------------------------------- ##
541132b578d3Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
541232b578d3Smrg## ---------------------------------------------------------------------- ##
541332b578d3Smrg_ASBOX
541432b578d3Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
541532b578d3Smrg    ;;
541632b578d3Smrgesac
54172a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54182a51b5beSmrg$as_echo_n "checking for $ac_header... " >&6; }
541932b578d3Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54202a51b5beSmrg  $as_echo_n "(cached) " >&6
542132b578d3Smrgelse
542232b578d3Smrg  eval "$as_ac_Header=\$ac_header_preproc"
542332b578d3Smrgfi
54242a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
54252a51b5beSmrg		 $as_echo "$as_val"'`
54262a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54272a51b5beSmrg$as_echo "$ac_res" >&6; }
542832b578d3Smrg
542932b578d3Smrgfi
54302a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_Header'}
54312a51b5beSmrg		 $as_echo "$as_val"'`
54322a51b5beSmrg   if test "x$as_val" = x""yes; then
543332b578d3Smrg  cat >>confdefs.h <<_ACEOF
54342a51b5beSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
543532b578d3Smrg_ACEOF
543632b578d3Smrg
543732b578d3Smrgfi
543832b578d3Smrg
543932b578d3Smrgdone
544032b578d3Smrg
544132b578d3Smrgac_ext=cpp
544232b578d3Smrgac_cpp='$CXXCPP $CPPFLAGS'
544332b578d3Smrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
544432b578d3Smrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
544532b578d3Smrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
544632b578d3Smrgif test -z "$CXX"; then
544732b578d3Smrg  if test -n "$CCC"; then
544832b578d3Smrg    CXX=$CCC
544932b578d3Smrg  else
545032b578d3Smrg    if test -n "$ac_tool_prefix"; then
545132b578d3Smrg  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
545232b578d3Smrg  do
545332b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
545432b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
54552a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54562a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
545732b578d3Smrgif test "${ac_cv_prog_CXX+set}" = set; then
54582a51b5beSmrg  $as_echo_n "(cached) " >&6
545932b578d3Smrgelse
546032b578d3Smrg  if test -n "$CXX"; then
546132b578d3Smrg  ac_cv_prog_CXX="$CXX" # Let the user override the test.
546232b578d3Smrgelse
546332b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
546432b578d3Smrgfor as_dir in $PATH
546532b578d3Smrgdo
546632b578d3Smrg  IFS=$as_save_IFS
546732b578d3Smrg  test -z "$as_dir" && as_dir=.
546832b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
546932b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
547032b578d3Smrg    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
54712a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
547232b578d3Smrg    break 2
547332b578d3Smrg  fi
547432b578d3Smrgdone
547532b578d3Smrgdone
547632b578d3SmrgIFS=$as_save_IFS
547732b578d3Smrg
547832b578d3Smrgfi
547932b578d3Smrgfi
548032b578d3SmrgCXX=$ac_cv_prog_CXX
548132b578d3Smrgif test -n "$CXX"; then
54822a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
54832a51b5beSmrg$as_echo "$CXX" >&6; }
548432b578d3Smrgelse
54852a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
54862a51b5beSmrg$as_echo "no" >&6; }
548732b578d3Smrgfi
548832b578d3Smrg
548932b578d3Smrg
549032b578d3Smrg    test -n "$CXX" && break
549132b578d3Smrg  done
549232b578d3Smrgfi
549332b578d3Smrgif test -z "$CXX"; then
549432b578d3Smrg  ac_ct_CXX=$CXX
549532b578d3Smrg  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
549632b578d3Smrgdo
549732b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
549832b578d3Smrgset dummy $ac_prog; ac_word=$2
54992a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
55002a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
550132b578d3Smrgif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
55022a51b5beSmrg  $as_echo_n "(cached) " >&6
550332b578d3Smrgelse
550432b578d3Smrg  if test -n "$ac_ct_CXX"; then
550532b578d3Smrg  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
550632b578d3Smrgelse
550732b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
550832b578d3Smrgfor as_dir in $PATH
550932b578d3Smrgdo
551032b578d3Smrg  IFS=$as_save_IFS
551132b578d3Smrg  test -z "$as_dir" && as_dir=.
551232b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
551332b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
551432b578d3Smrg    ac_cv_prog_ac_ct_CXX="$ac_prog"
55152a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
551632b578d3Smrg    break 2
551732b578d3Smrg  fi
551832b578d3Smrgdone
551932b578d3Smrgdone
552032b578d3SmrgIFS=$as_save_IFS
552132b578d3Smrg
552232b578d3Smrgfi
552332b578d3Smrgfi
552432b578d3Smrgac_ct_CXX=$ac_cv_prog_ac_ct_CXX
552532b578d3Smrgif test -n "$ac_ct_CXX"; then
55262a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
55272a51b5beSmrg$as_echo "$ac_ct_CXX" >&6; }
552832b578d3Smrgelse
55292a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
55302a51b5beSmrg$as_echo "no" >&6; }
553132b578d3Smrgfi
553232b578d3Smrg
553332b578d3Smrg
553432b578d3Smrg  test -n "$ac_ct_CXX" && break
553532b578d3Smrgdone
553632b578d3Smrg
553732b578d3Smrg  if test "x$ac_ct_CXX" = x; then
553832b578d3Smrg    CXX="g++"
553932b578d3Smrg  else
554032b578d3Smrg    case $cross_compiling:$ac_tool_warned in
554132b578d3Smrgyes:)
55422a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
55432a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
554432b578d3Smrgac_tool_warned=yes ;;
554532b578d3Smrgesac
554632b578d3Smrg    CXX=$ac_ct_CXX
554732b578d3Smrg  fi
554832b578d3Smrgfi
554932b578d3Smrg
555032b578d3Smrg  fi
555132b578d3Smrgfi
555232b578d3Smrg# Provide some information about the compiler.
55532a51b5beSmrg$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
55542a51b5beSmrgset X $ac_compile
55552a51b5beSmrgac_compiler=$2
555632b578d3Smrg{ (ac_try="$ac_compiler --version >&5"
555732b578d3Smrgcase "(($ac_try" in
555832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
555932b578d3Smrg  *) ac_try_echo=$ac_try;;
556032b578d3Smrgesac
55612a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55622a51b5beSmrg$as_echo "$ac_try_echo") >&5
556332b578d3Smrg  (eval "$ac_compiler --version >&5") 2>&5
556432b578d3Smrg  ac_status=$?
55652a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
556632b578d3Smrg  (exit $ac_status); }
556732b578d3Smrg{ (ac_try="$ac_compiler -v >&5"
556832b578d3Smrgcase "(($ac_try" in
556932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
557032b578d3Smrg  *) ac_try_echo=$ac_try;;
557132b578d3Smrgesac
55722a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55732a51b5beSmrg$as_echo "$ac_try_echo") >&5
557432b578d3Smrg  (eval "$ac_compiler -v >&5") 2>&5
557532b578d3Smrg  ac_status=$?
55762a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
557732b578d3Smrg  (exit $ac_status); }
557832b578d3Smrg{ (ac_try="$ac_compiler -V >&5"
557932b578d3Smrgcase "(($ac_try" in
558032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
558132b578d3Smrg  *) ac_try_echo=$ac_try;;
558232b578d3Smrgesac
55832a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55842a51b5beSmrg$as_echo "$ac_try_echo") >&5
558532b578d3Smrg  (eval "$ac_compiler -V >&5") 2>&5
558632b578d3Smrg  ac_status=$?
55872a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
558832b578d3Smrg  (exit $ac_status); }
558932b578d3Smrg
55902a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
55912a51b5beSmrg$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
559232b578d3Smrgif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
55932a51b5beSmrg  $as_echo_n "(cached) " >&6
559432b578d3Smrgelse
559532b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
559632b578d3Smrg/* confdefs.h.  */
559732b578d3Smrg_ACEOF
559832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
559932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
560032b578d3Smrg/* end confdefs.h.  */
560132b578d3Smrg
560232b578d3Smrgint
560332b578d3Smrgmain ()
560432b578d3Smrg{
560532b578d3Smrg#ifndef __GNUC__
560632b578d3Smrg       choke me
560732b578d3Smrg#endif
560832b578d3Smrg
560932b578d3Smrg  ;
561032b578d3Smrg  return 0;
561132b578d3Smrg}
561232b578d3Smrg_ACEOF
561332b578d3Smrgrm -f conftest.$ac_objext
561432b578d3Smrgif { (ac_try="$ac_compile"
561532b578d3Smrgcase "(($ac_try" in
561632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
561732b578d3Smrg  *) ac_try_echo=$ac_try;;
561832b578d3Smrgesac
56192a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56202a51b5beSmrg$as_echo "$ac_try_echo") >&5
562132b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
562232b578d3Smrg  ac_status=$?
562332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
562432b578d3Smrg  rm -f conftest.er1
562532b578d3Smrg  cat conftest.err >&5
56262a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
562732b578d3Smrg  (exit $ac_status); } && {
562832b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
562932b578d3Smrg	 test ! -s conftest.err
563032b578d3Smrg       } && test -s conftest.$ac_objext; then
563132b578d3Smrg  ac_compiler_gnu=yes
563232b578d3Smrgelse
56332a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
563432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
563532b578d3Smrg
563632b578d3Smrg	ac_compiler_gnu=no
563732b578d3Smrgfi
563832b578d3Smrg
563932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
564032b578d3Smrgac_cv_cxx_compiler_gnu=$ac_compiler_gnu
564132b578d3Smrg
564232b578d3Smrgfi
56432a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
56442a51b5beSmrg$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
56452a51b5beSmrgif test $ac_compiler_gnu = yes; then
56462a51b5beSmrg  GXX=yes
56472a51b5beSmrgelse
56482a51b5beSmrg  GXX=
56492a51b5beSmrgfi
565032b578d3Smrgac_test_CXXFLAGS=${CXXFLAGS+set}
565132b578d3Smrgac_save_CXXFLAGS=$CXXFLAGS
56522a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
56532a51b5beSmrg$as_echo_n "checking whether $CXX accepts -g... " >&6; }
565432b578d3Smrgif test "${ac_cv_prog_cxx_g+set}" = set; then
56552a51b5beSmrg  $as_echo_n "(cached) " >&6
565632b578d3Smrgelse
565732b578d3Smrg  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
565832b578d3Smrg   ac_cxx_werror_flag=yes
565932b578d3Smrg   ac_cv_prog_cxx_g=no
566032b578d3Smrg   CXXFLAGS="-g"
566132b578d3Smrg   cat >conftest.$ac_ext <<_ACEOF
566232b578d3Smrg/* confdefs.h.  */
566332b578d3Smrg_ACEOF
566432b578d3Smrgcat confdefs.h >>conftest.$ac_ext
566532b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
566632b578d3Smrg/* end confdefs.h.  */
566732b578d3Smrg
566832b578d3Smrgint
566932b578d3Smrgmain ()
567032b578d3Smrg{
567132b578d3Smrg
567232b578d3Smrg  ;
567332b578d3Smrg  return 0;
567432b578d3Smrg}
567532b578d3Smrg_ACEOF
567632b578d3Smrgrm -f conftest.$ac_objext
567732b578d3Smrgif { (ac_try="$ac_compile"
567832b578d3Smrgcase "(($ac_try" in
567932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
568032b578d3Smrg  *) ac_try_echo=$ac_try;;
568132b578d3Smrgesac
56822a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56832a51b5beSmrg$as_echo "$ac_try_echo") >&5
568432b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
568532b578d3Smrg  ac_status=$?
568632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
568732b578d3Smrg  rm -f conftest.er1
568832b578d3Smrg  cat conftest.err >&5
56892a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
569032b578d3Smrg  (exit $ac_status); } && {
569132b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
569232b578d3Smrg	 test ! -s conftest.err
569332b578d3Smrg       } && test -s conftest.$ac_objext; then
569432b578d3Smrg  ac_cv_prog_cxx_g=yes
569532b578d3Smrgelse
56962a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
569732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
569832b578d3Smrg
569932b578d3Smrg	CXXFLAGS=""
570032b578d3Smrg      cat >conftest.$ac_ext <<_ACEOF
570132b578d3Smrg/* confdefs.h.  */
570232b578d3Smrg_ACEOF
570332b578d3Smrgcat confdefs.h >>conftest.$ac_ext
570432b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
570532b578d3Smrg/* end confdefs.h.  */
570632b578d3Smrg
570732b578d3Smrgint
570832b578d3Smrgmain ()
570932b578d3Smrg{
571032b578d3Smrg
571132b578d3Smrg  ;
571232b578d3Smrg  return 0;
571332b578d3Smrg}
571432b578d3Smrg_ACEOF
571532b578d3Smrgrm -f conftest.$ac_objext
571632b578d3Smrgif { (ac_try="$ac_compile"
571732b578d3Smrgcase "(($ac_try" in
571832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
571932b578d3Smrg  *) ac_try_echo=$ac_try;;
572032b578d3Smrgesac
57212a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57222a51b5beSmrg$as_echo "$ac_try_echo") >&5
572332b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
572432b578d3Smrg  ac_status=$?
572532b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
572632b578d3Smrg  rm -f conftest.er1
572732b578d3Smrg  cat conftest.err >&5
57282a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
572932b578d3Smrg  (exit $ac_status); } && {
573032b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
573132b578d3Smrg	 test ! -s conftest.err
573232b578d3Smrg       } && test -s conftest.$ac_objext; then
573332b578d3Smrg  :
573432b578d3Smrgelse
57352a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
573632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
573732b578d3Smrg
573832b578d3Smrg	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
573932b578d3Smrg	 CXXFLAGS="-g"
574032b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
574132b578d3Smrg/* confdefs.h.  */
574232b578d3Smrg_ACEOF
574332b578d3Smrgcat confdefs.h >>conftest.$ac_ext
574432b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
574532b578d3Smrg/* end confdefs.h.  */
574632b578d3Smrg
574732b578d3Smrgint
574832b578d3Smrgmain ()
574932b578d3Smrg{
575032b578d3Smrg
575132b578d3Smrg  ;
575232b578d3Smrg  return 0;
575332b578d3Smrg}
575432b578d3Smrg_ACEOF
575532b578d3Smrgrm -f conftest.$ac_objext
575632b578d3Smrgif { (ac_try="$ac_compile"
575732b578d3Smrgcase "(($ac_try" in
575832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
575932b578d3Smrg  *) ac_try_echo=$ac_try;;
576032b578d3Smrgesac
57612a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57622a51b5beSmrg$as_echo "$ac_try_echo") >&5
576332b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
576432b578d3Smrg  ac_status=$?
576532b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
576632b578d3Smrg  rm -f conftest.er1
576732b578d3Smrg  cat conftest.err >&5
57682a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
576932b578d3Smrg  (exit $ac_status); } && {
577032b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
577132b578d3Smrg	 test ! -s conftest.err
577232b578d3Smrg       } && test -s conftest.$ac_objext; then
577332b578d3Smrg  ac_cv_prog_cxx_g=yes
577432b578d3Smrgelse
57752a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
577632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
577732b578d3Smrg
577832b578d3Smrg
577932b578d3Smrgfi
578032b578d3Smrg
578132b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
578232b578d3Smrgfi
578332b578d3Smrg
578432b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
578532b578d3Smrgfi
578632b578d3Smrg
578732b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
578832b578d3Smrg   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
578932b578d3Smrgfi
57902a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
57912a51b5beSmrg$as_echo "$ac_cv_prog_cxx_g" >&6; }
579232b578d3Smrgif test "$ac_test_CXXFLAGS" = set; then
579332b578d3Smrg  CXXFLAGS=$ac_save_CXXFLAGS
579432b578d3Smrgelif test $ac_cv_prog_cxx_g = yes; then
579532b578d3Smrg  if test "$GXX" = yes; then
579632b578d3Smrg    CXXFLAGS="-g -O2"
579732b578d3Smrg  else
579832b578d3Smrg    CXXFLAGS="-g"
579932b578d3Smrg  fi
580032b578d3Smrgelse
580132b578d3Smrg  if test "$GXX" = yes; then
580232b578d3Smrg    CXXFLAGS="-O2"
580332b578d3Smrg  else
580432b578d3Smrg    CXXFLAGS=
580532b578d3Smrg  fi
580632b578d3Smrgfi
580732b578d3Smrgac_ext=cpp
580832b578d3Smrgac_cpp='$CXXCPP $CPPFLAGS'
580932b578d3Smrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
581032b578d3Smrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
581132b578d3Smrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
581232b578d3Smrg
581332b578d3Smrgdepcc="$CXX"  am_compiler_list=
581432b578d3Smrg
58152a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
58162a51b5beSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
581732b578d3Smrgif test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
58182a51b5beSmrg  $as_echo_n "(cached) " >&6
581932b578d3Smrgelse
582032b578d3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
582132b578d3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
582232b578d3Smrg  # making bogus files that we don't know about and never remove.  For
582332b578d3Smrg  # instance it was reported that on HP-UX the gcc test will end up
582432b578d3Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
582532b578d3Smrg  # in D'.
582632b578d3Smrg  mkdir conftest.dir
582732b578d3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
582832b578d3Smrg  # using a relative directory.
582932b578d3Smrg  cp "$am_depcomp" conftest.dir
583032b578d3Smrg  cd conftest.dir
583132b578d3Smrg  # We will build objects and dependencies in a subdirectory because
583232b578d3Smrg  # it helps to detect inapplicable dependency modes.  For instance
583332b578d3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
583432b578d3Smrg  # side effect of compilation, but ICC will put the dependencies in
583532b578d3Smrg  # the current directory while Tru64 will put them in the object
583632b578d3Smrg  # directory.
583732b578d3Smrg  mkdir sub
583832b578d3Smrg
583932b578d3Smrg  am_cv_CXX_dependencies_compiler_type=none
584032b578d3Smrg  if test "$am_compiler_list" = ""; then
584132b578d3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
584232b578d3Smrg  fi
58432a51b5beSmrg  am__universal=false
58442a51b5beSmrg  case " $depcc " in #(
58452a51b5beSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
58462a51b5beSmrg     esac
58472a51b5beSmrg
584832b578d3Smrg  for depmode in $am_compiler_list; do
584932b578d3Smrg    # Setup a source with many dependencies, because some compilers
585032b578d3Smrg    # like to wrap large dependency lists on column 80 (with \), and
585132b578d3Smrg    # we should not choose a depcomp mode which is confused by this.
585232b578d3Smrg    #
585332b578d3Smrg    # We need to recreate these files for each test, as the compiler may
585432b578d3Smrg    # overwrite some of them when testing with obscure command lines.
585532b578d3Smrg    # This happens at least with the AIX C compiler.
585632b578d3Smrg    : > sub/conftest.c
585732b578d3Smrg    for i in 1 2 3 4 5 6; do
585832b578d3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
585932b578d3Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
586032b578d3Smrg      # Solaris 8's {/usr,}/bin/sh.
586132b578d3Smrg      touch sub/conftst$i.h
586232b578d3Smrg    done
586332b578d3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
586432b578d3Smrg
58652a51b5beSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
58662a51b5beSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
58672a51b5beSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
58682a51b5beSmrg    # versions had trouble with output in subdirs
58692a51b5beSmrg    am__obj=sub/conftest.${OBJEXT-o}
58702a51b5beSmrg    am__minus_obj="-o $am__obj"
587132b578d3Smrg    case $depmode in
58722a51b5beSmrg    gcc)
58732a51b5beSmrg      # This depmode causes a compiler race in universal mode.
58742a51b5beSmrg      test "$am__universal" = false || continue
58752a51b5beSmrg      ;;
587632b578d3Smrg    nosideeffect)
587732b578d3Smrg      # after this tag, mechanisms are not by side-effect, so they'll
587832b578d3Smrg      # only be used when explicitly requested
587932b578d3Smrg      if test "x$enable_dependency_tracking" = xyes; then
588032b578d3Smrg	continue
588132b578d3Smrg      else
588232b578d3Smrg	break
588332b578d3Smrg      fi
588432b578d3Smrg      ;;
58852a51b5beSmrg    msvisualcpp | msvcmsys)
58862a51b5beSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
58872a51b5beSmrg      # not run yet.  These depmodes are late enough in the game, and
58882a51b5beSmrg      # so weak that their functioning should not be impacted.
58892a51b5beSmrg      am__obj=conftest.${OBJEXT-o}
58902a51b5beSmrg      am__minus_obj=
58912a51b5beSmrg      ;;
589232b578d3Smrg    none) break ;;
589332b578d3Smrg    esac
589432b578d3Smrg    if depmode=$depmode \
58952a51b5beSmrg       source=sub/conftest.c object=$am__obj \
589632b578d3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
58972a51b5beSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
589832b578d3Smrg         >/dev/null 2>conftest.err &&
589932b578d3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
590032b578d3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
59012a51b5beSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
590232b578d3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
590332b578d3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
590432b578d3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
590532b578d3Smrg      # that says an option was ignored or not supported.
590632b578d3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
590732b578d3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
590832b578d3Smrg      # The diagnosis changed in icc 8.0:
590932b578d3Smrg      #   icc: Command line remark: option '-MP' not supported
591032b578d3Smrg      if (grep 'ignoring option' conftest.err ||
591132b578d3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
591232b578d3Smrg        am_cv_CXX_dependencies_compiler_type=$depmode
591332b578d3Smrg        break
591432b578d3Smrg      fi
591532b578d3Smrg    fi
591632b578d3Smrg  done
591732b578d3Smrg
591832b578d3Smrg  cd ..
591932b578d3Smrg  rm -rf conftest.dir
592032b578d3Smrgelse
592132b578d3Smrg  am_cv_CXX_dependencies_compiler_type=none
592232b578d3Smrgfi
592332b578d3Smrg
592432b578d3Smrgfi
59252a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
59262a51b5beSmrg$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
592732b578d3SmrgCXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
592832b578d3Smrg
592932b578d3Smrg if
593032b578d3Smrg  test "x$enable_dependency_tracking" != xno \
593132b578d3Smrg  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
593232b578d3Smrg  am__fastdepCXX_TRUE=
593332b578d3Smrg  am__fastdepCXX_FALSE='#'
593432b578d3Smrgelse
593532b578d3Smrg  am__fastdepCXX_TRUE='#'
593632b578d3Smrg  am__fastdepCXX_FALSE=
593732b578d3Smrgfi
593832b578d3Smrg
593932b578d3Smrg
594032b578d3Smrg
594132b578d3Smrg
594232b578d3Smrgif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
594332b578d3Smrg    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
594432b578d3Smrg    (test "X$CXX" != "Xg++"))) ; then
594532b578d3Smrg  ac_ext=cpp
594632b578d3Smrgac_cpp='$CXXCPP $CPPFLAGS'
594732b578d3Smrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
594832b578d3Smrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
594932b578d3Smrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
59502a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
59512a51b5beSmrg$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
595232b578d3Smrgif test -z "$CXXCPP"; then
595332b578d3Smrg  if test "${ac_cv_prog_CXXCPP+set}" = set; then
59542a51b5beSmrg  $as_echo_n "(cached) " >&6
595532b578d3Smrgelse
595632b578d3Smrg      # Double quotes because CXXCPP needs to be expanded
595732b578d3Smrg    for CXXCPP in "$CXX -E" "/lib/cpp"
595832b578d3Smrg    do
595932b578d3Smrg      ac_preproc_ok=false
596032b578d3Smrgfor ac_cxx_preproc_warn_flag in '' yes
596132b578d3Smrgdo
596232b578d3Smrg  # Use a header file that comes with gcc, so configuring glibc
596332b578d3Smrg  # with a fresh cross-compiler works.
596432b578d3Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
596532b578d3Smrg  # <limits.h> exists even on freestanding compilers.
596632b578d3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
596732b578d3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
596832b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
596932b578d3Smrg/* confdefs.h.  */
597032b578d3Smrg_ACEOF
597132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
597232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
597332b578d3Smrg/* end confdefs.h.  */
597432b578d3Smrg#ifdef __STDC__
597532b578d3Smrg# include <limits.h>
597632b578d3Smrg#else
597732b578d3Smrg# include <assert.h>
597832b578d3Smrg#endif
597932b578d3Smrg		     Syntax error
598032b578d3Smrg_ACEOF
598132b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
598232b578d3Smrgcase "(($ac_try" in
598332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
598432b578d3Smrg  *) ac_try_echo=$ac_try;;
598532b578d3Smrgesac
59862a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59872a51b5beSmrg$as_echo "$ac_try_echo") >&5
598832b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
598932b578d3Smrg  ac_status=$?
599032b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
599132b578d3Smrg  rm -f conftest.er1
599232b578d3Smrg  cat conftest.err >&5
59932a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
599432b578d3Smrg  (exit $ac_status); } >/dev/null && {
599532b578d3Smrg	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
599632b578d3Smrg	 test ! -s conftest.err
599732b578d3Smrg       }; then
599832b578d3Smrg  :
599932b578d3Smrgelse
60002a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
600132b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
600232b578d3Smrg
600332b578d3Smrg  # Broken: fails on valid input.
600432b578d3Smrgcontinue
600532b578d3Smrgfi
600632b578d3Smrg
600732b578d3Smrgrm -f conftest.err conftest.$ac_ext
600832b578d3Smrg
600932b578d3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
601032b578d3Smrg  # can be detected and how.
601132b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
601232b578d3Smrg/* confdefs.h.  */
601332b578d3Smrg_ACEOF
601432b578d3Smrgcat confdefs.h >>conftest.$ac_ext
601532b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
601632b578d3Smrg/* end confdefs.h.  */
601732b578d3Smrg#include <ac_nonexistent.h>
601832b578d3Smrg_ACEOF
601932b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
602032b578d3Smrgcase "(($ac_try" in
602132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
602232b578d3Smrg  *) ac_try_echo=$ac_try;;
602332b578d3Smrgesac
60242a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60252a51b5beSmrg$as_echo "$ac_try_echo") >&5
602632b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
602732b578d3Smrg  ac_status=$?
602832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
602932b578d3Smrg  rm -f conftest.er1
603032b578d3Smrg  cat conftest.err >&5
60312a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
603232b578d3Smrg  (exit $ac_status); } >/dev/null && {
603332b578d3Smrg	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
603432b578d3Smrg	 test ! -s conftest.err
603532b578d3Smrg       }; then
603632b578d3Smrg  # Broken: success on invalid input.
603732b578d3Smrgcontinue
603832b578d3Smrgelse
60392a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
604032b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
604132b578d3Smrg
604232b578d3Smrg  # Passes both tests.
604332b578d3Smrgac_preproc_ok=:
604432b578d3Smrgbreak
604532b578d3Smrgfi
604632b578d3Smrg
604732b578d3Smrgrm -f conftest.err conftest.$ac_ext
604832b578d3Smrg
604932b578d3Smrgdone
605032b578d3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
605132b578d3Smrgrm -f conftest.err conftest.$ac_ext
605232b578d3Smrgif $ac_preproc_ok; then
605332b578d3Smrg  break
605432b578d3Smrgfi
605532b578d3Smrg
605632b578d3Smrg    done
605732b578d3Smrg    ac_cv_prog_CXXCPP=$CXXCPP
605832b578d3Smrg
605932b578d3Smrgfi
606032b578d3Smrg  CXXCPP=$ac_cv_prog_CXXCPP
606132b578d3Smrgelse
606232b578d3Smrg  ac_cv_prog_CXXCPP=$CXXCPP
606332b578d3Smrgfi
60642a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
60652a51b5beSmrg$as_echo "$CXXCPP" >&6; }
606632b578d3Smrgac_preproc_ok=false
606732b578d3Smrgfor ac_cxx_preproc_warn_flag in '' yes
606832b578d3Smrgdo
606932b578d3Smrg  # Use a header file that comes with gcc, so configuring glibc
607032b578d3Smrg  # with a fresh cross-compiler works.
607132b578d3Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
607232b578d3Smrg  # <limits.h> exists even on freestanding compilers.
607332b578d3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
607432b578d3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
607532b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
607632b578d3Smrg/* confdefs.h.  */
607732b578d3Smrg_ACEOF
607832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
607932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
608032b578d3Smrg/* end confdefs.h.  */
608132b578d3Smrg#ifdef __STDC__
608232b578d3Smrg# include <limits.h>
608332b578d3Smrg#else
608432b578d3Smrg# include <assert.h>
608532b578d3Smrg#endif
608632b578d3Smrg		     Syntax error
608732b578d3Smrg_ACEOF
608832b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
608932b578d3Smrgcase "(($ac_try" in
609032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
609132b578d3Smrg  *) ac_try_echo=$ac_try;;
609232b578d3Smrgesac
60932a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60942a51b5beSmrg$as_echo "$ac_try_echo") >&5
609532b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
609632b578d3Smrg  ac_status=$?
609732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
609832b578d3Smrg  rm -f conftest.er1
609932b578d3Smrg  cat conftest.err >&5
61002a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
610132b578d3Smrg  (exit $ac_status); } >/dev/null && {
610232b578d3Smrg	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
610332b578d3Smrg	 test ! -s conftest.err
610432b578d3Smrg       }; then
610532b578d3Smrg  :
610632b578d3Smrgelse
61072a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
610832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
610932b578d3Smrg
611032b578d3Smrg  # Broken: fails on valid input.
611132b578d3Smrgcontinue
611232b578d3Smrgfi
611332b578d3Smrg
611432b578d3Smrgrm -f conftest.err conftest.$ac_ext
611532b578d3Smrg
611632b578d3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
611732b578d3Smrg  # can be detected and how.
611832b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
611932b578d3Smrg/* confdefs.h.  */
612032b578d3Smrg_ACEOF
612132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
612232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
612332b578d3Smrg/* end confdefs.h.  */
612432b578d3Smrg#include <ac_nonexistent.h>
612532b578d3Smrg_ACEOF
612632b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
612732b578d3Smrgcase "(($ac_try" in
612832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
612932b578d3Smrg  *) ac_try_echo=$ac_try;;
613032b578d3Smrgesac
61312a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61322a51b5beSmrg$as_echo "$ac_try_echo") >&5
613332b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
613432b578d3Smrg  ac_status=$?
613532b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
613632b578d3Smrg  rm -f conftest.er1
613732b578d3Smrg  cat conftest.err >&5
61382a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
613932b578d3Smrg  (exit $ac_status); } >/dev/null && {
614032b578d3Smrg	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
614132b578d3Smrg	 test ! -s conftest.err
614232b578d3Smrg       }; then
614332b578d3Smrg  # Broken: success on invalid input.
614432b578d3Smrgcontinue
614532b578d3Smrgelse
61462a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
614732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
614832b578d3Smrg
614932b578d3Smrg  # Passes both tests.
615032b578d3Smrgac_preproc_ok=:
615132b578d3Smrgbreak
615232b578d3Smrgfi
615332b578d3Smrg
615432b578d3Smrgrm -f conftest.err conftest.$ac_ext
615532b578d3Smrg
615632b578d3Smrgdone
615732b578d3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
615832b578d3Smrgrm -f conftest.err conftest.$ac_ext
615932b578d3Smrgif $ac_preproc_ok; then
616032b578d3Smrg  :
616132b578d3Smrgelse
61622a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
61632a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61642a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
616532b578d3SmrgSee \`config.log' for more details." >&5
61662a51b5beSmrg$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
616732b578d3SmrgSee \`config.log' for more details." >&2;}
61682a51b5beSmrg   { (exit 1); exit 1; }; }; }
616932b578d3Smrgfi
617032b578d3Smrg
617132b578d3Smrgac_ext=cpp
617232b578d3Smrgac_cpp='$CXXCPP $CPPFLAGS'
617332b578d3Smrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
617432b578d3Smrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
617532b578d3Smrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
617632b578d3Smrg
617732b578d3Smrgfi
617832b578d3Smrg
617932b578d3Smrg
618032b578d3Smrgac_ext=f
618132b578d3Smrgac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
618232b578d3Smrgac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
618332b578d3Smrgac_compiler_gnu=$ac_cv_f77_compiler_gnu
618432b578d3Smrgif test -n "$ac_tool_prefix"; then
618532b578d3Smrg  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
618632b578d3Smrg  do
618732b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
618832b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
61892a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
61902a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
619132b578d3Smrgif test "${ac_cv_prog_F77+set}" = set; then
61922a51b5beSmrg  $as_echo_n "(cached) " >&6
619332b578d3Smrgelse
619432b578d3Smrg  if test -n "$F77"; then
619532b578d3Smrg  ac_cv_prog_F77="$F77" # Let the user override the test.
619632b578d3Smrgelse
619732b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
619832b578d3Smrgfor as_dir in $PATH
619932b578d3Smrgdo
620032b578d3Smrg  IFS=$as_save_IFS
620132b578d3Smrg  test -z "$as_dir" && as_dir=.
620232b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
620332b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
620432b578d3Smrg    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
62052a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
620632b578d3Smrg    break 2
620732b578d3Smrg  fi
620832b578d3Smrgdone
620932b578d3Smrgdone
621032b578d3SmrgIFS=$as_save_IFS
621132b578d3Smrg
621232b578d3Smrgfi
621332b578d3Smrgfi
621432b578d3SmrgF77=$ac_cv_prog_F77
621532b578d3Smrgif test -n "$F77"; then
62162a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $F77" >&5
62172a51b5beSmrg$as_echo "$F77" >&6; }
621832b578d3Smrgelse
62192a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
62202a51b5beSmrg$as_echo "no" >&6; }
622132b578d3Smrgfi
622232b578d3Smrg
622332b578d3Smrg
622432b578d3Smrg    test -n "$F77" && break
622532b578d3Smrg  done
622632b578d3Smrgfi
622732b578d3Smrgif test -z "$F77"; then
622832b578d3Smrg  ac_ct_F77=$F77
622932b578d3Smrg  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
623032b578d3Smrgdo
623132b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
623232b578d3Smrgset dummy $ac_prog; ac_word=$2
62332a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
62342a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
623532b578d3Smrgif test "${ac_cv_prog_ac_ct_F77+set}" = set; then
62362a51b5beSmrg  $as_echo_n "(cached) " >&6
623732b578d3Smrgelse
623832b578d3Smrg  if test -n "$ac_ct_F77"; then
623932b578d3Smrg  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
624032b578d3Smrgelse
624132b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
624232b578d3Smrgfor as_dir in $PATH
624332b578d3Smrgdo
624432b578d3Smrg  IFS=$as_save_IFS
624532b578d3Smrg  test -z "$as_dir" && as_dir=.
624632b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
624732b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
624832b578d3Smrg    ac_cv_prog_ac_ct_F77="$ac_prog"
62492a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
625032b578d3Smrg    break 2
625132b578d3Smrg  fi
625232b578d3Smrgdone
625332b578d3Smrgdone
625432b578d3SmrgIFS=$as_save_IFS
625532b578d3Smrg
625632b578d3Smrgfi
625732b578d3Smrgfi
625832b578d3Smrgac_ct_F77=$ac_cv_prog_ac_ct_F77
625932b578d3Smrgif test -n "$ac_ct_F77"; then
62602a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
62612a51b5beSmrg$as_echo "$ac_ct_F77" >&6; }
626232b578d3Smrgelse
62632a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
62642a51b5beSmrg$as_echo "no" >&6; }
626532b578d3Smrgfi
626632b578d3Smrg
626732b578d3Smrg
626832b578d3Smrg  test -n "$ac_ct_F77" && break
626932b578d3Smrgdone
627032b578d3Smrg
627132b578d3Smrg  if test "x$ac_ct_F77" = x; then
627232b578d3Smrg    F77=""
627332b578d3Smrg  else
627432b578d3Smrg    case $cross_compiling:$ac_tool_warned in
627532b578d3Smrgyes:)
62762a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
62772a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
627832b578d3Smrgac_tool_warned=yes ;;
627932b578d3Smrgesac
628032b578d3Smrg    F77=$ac_ct_F77
628132b578d3Smrg  fi
628232b578d3Smrgfi
628332b578d3Smrg
628432b578d3Smrg
628532b578d3Smrg# Provide some information about the compiler.
62862a51b5beSmrg$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
62872a51b5beSmrgset X $ac_compile
62882a51b5beSmrgac_compiler=$2
628932b578d3Smrg{ (ac_try="$ac_compiler --version >&5"
629032b578d3Smrgcase "(($ac_try" in
629132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
629232b578d3Smrg  *) ac_try_echo=$ac_try;;
629332b578d3Smrgesac
62942a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62952a51b5beSmrg$as_echo "$ac_try_echo") >&5
629632b578d3Smrg  (eval "$ac_compiler --version >&5") 2>&5
629732b578d3Smrg  ac_status=$?
62982a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
629932b578d3Smrg  (exit $ac_status); }
630032b578d3Smrg{ (ac_try="$ac_compiler -v >&5"
630132b578d3Smrgcase "(($ac_try" in
630232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
630332b578d3Smrg  *) ac_try_echo=$ac_try;;
630432b578d3Smrgesac
63052a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63062a51b5beSmrg$as_echo "$ac_try_echo") >&5
630732b578d3Smrg  (eval "$ac_compiler -v >&5") 2>&5
630832b578d3Smrg  ac_status=$?
63092a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
631032b578d3Smrg  (exit $ac_status); }
631132b578d3Smrg{ (ac_try="$ac_compiler -V >&5"
631232b578d3Smrgcase "(($ac_try" in
631332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
631432b578d3Smrg  *) ac_try_echo=$ac_try;;
631532b578d3Smrgesac
63162a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63172a51b5beSmrg$as_echo "$ac_try_echo") >&5
631832b578d3Smrg  (eval "$ac_compiler -V >&5") 2>&5
631932b578d3Smrg  ac_status=$?
63202a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
632132b578d3Smrg  (exit $ac_status); }
632232b578d3Smrgrm -f a.out
632332b578d3Smrg
632432b578d3Smrg# If we don't use `.F' as extension, the preprocessor is not run on the
632532b578d3Smrg# input file.  (Note that this only needs to work for GNU compilers.)
632632b578d3Smrgac_save_ext=$ac_ext
632732b578d3Smrgac_ext=F
63282a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
63292a51b5beSmrg$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
633032b578d3Smrgif test "${ac_cv_f77_compiler_gnu+set}" = set; then
63312a51b5beSmrg  $as_echo_n "(cached) " >&6
633232b578d3Smrgelse
633332b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
633432b578d3Smrg      program main
633532b578d3Smrg#ifndef __GNUC__
633632b578d3Smrg       choke me
633732b578d3Smrg#endif
633832b578d3Smrg
633932b578d3Smrg      end
634032b578d3Smrg_ACEOF
634132b578d3Smrgrm -f conftest.$ac_objext
634232b578d3Smrgif { (ac_try="$ac_compile"
634332b578d3Smrgcase "(($ac_try" in
634432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
634532b578d3Smrg  *) ac_try_echo=$ac_try;;
634632b578d3Smrgesac
63472a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63482a51b5beSmrg$as_echo "$ac_try_echo") >&5
634932b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
635032b578d3Smrg  ac_status=$?
635132b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
635232b578d3Smrg  rm -f conftest.er1
635332b578d3Smrg  cat conftest.err >&5
63542a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
635532b578d3Smrg  (exit $ac_status); } && {
635632b578d3Smrg	 test -z "$ac_f77_werror_flag" ||
635732b578d3Smrg	 test ! -s conftest.err
635832b578d3Smrg       } && test -s conftest.$ac_objext; then
635932b578d3Smrg  ac_compiler_gnu=yes
636032b578d3Smrgelse
63612a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
636232b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
636332b578d3Smrg
636432b578d3Smrg	ac_compiler_gnu=no
636532b578d3Smrgfi
636632b578d3Smrg
636732b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
636832b578d3Smrgac_cv_f77_compiler_gnu=$ac_compiler_gnu
636932b578d3Smrg
637032b578d3Smrgfi
63712a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
63722a51b5beSmrg$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
637332b578d3Smrgac_ext=$ac_save_ext
637432b578d3Smrgac_test_FFLAGS=${FFLAGS+set}
637532b578d3Smrgac_save_FFLAGS=$FFLAGS
637632b578d3SmrgFFLAGS=
63772a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
63782a51b5beSmrg$as_echo_n "checking whether $F77 accepts -g... " >&6; }
637932b578d3Smrgif test "${ac_cv_prog_f77_g+set}" = set; then
63802a51b5beSmrg  $as_echo_n "(cached) " >&6
638132b578d3Smrgelse
638232b578d3Smrg  FFLAGS=-g
638332b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
638432b578d3Smrg      program main
638532b578d3Smrg
638632b578d3Smrg      end
638732b578d3Smrg_ACEOF
638832b578d3Smrgrm -f conftest.$ac_objext
638932b578d3Smrgif { (ac_try="$ac_compile"
639032b578d3Smrgcase "(($ac_try" in
639132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
639232b578d3Smrg  *) ac_try_echo=$ac_try;;
639332b578d3Smrgesac
63942a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63952a51b5beSmrg$as_echo "$ac_try_echo") >&5
639632b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
639732b578d3Smrg  ac_status=$?
639832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
639932b578d3Smrg  rm -f conftest.er1
640032b578d3Smrg  cat conftest.err >&5
64012a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
640232b578d3Smrg  (exit $ac_status); } && {
640332b578d3Smrg	 test -z "$ac_f77_werror_flag" ||
640432b578d3Smrg	 test ! -s conftest.err
640532b578d3Smrg       } && test -s conftest.$ac_objext; then
640632b578d3Smrg  ac_cv_prog_f77_g=yes
640732b578d3Smrgelse
64082a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
640932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
641032b578d3Smrg
641132b578d3Smrg	ac_cv_prog_f77_g=no
641232b578d3Smrgfi
641332b578d3Smrg
641432b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
641532b578d3Smrg
641632b578d3Smrgfi
64172a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
64182a51b5beSmrg$as_echo "$ac_cv_prog_f77_g" >&6; }
641932b578d3Smrgif test "$ac_test_FFLAGS" = set; then
642032b578d3Smrg  FFLAGS=$ac_save_FFLAGS
642132b578d3Smrgelif test $ac_cv_prog_f77_g = yes; then
642232b578d3Smrg  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
642332b578d3Smrg    FFLAGS="-g -O2"
642432b578d3Smrg  else
642532b578d3Smrg    FFLAGS="-g"
642632b578d3Smrg  fi
642732b578d3Smrgelse
642832b578d3Smrg  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
642932b578d3Smrg    FFLAGS="-O2"
643032b578d3Smrg  else
643132b578d3Smrg    FFLAGS=
643232b578d3Smrg  fi
643332b578d3Smrgfi
643432b578d3Smrg
64352a51b5beSmrgif test $ac_compiler_gnu = yes; then
64362a51b5beSmrg  G77=yes
64372a51b5beSmrgelse
64382a51b5beSmrg  G77=
64392a51b5beSmrgfi
644032b578d3Smrgac_ext=c
644132b578d3Smrgac_cpp='$CPP $CPPFLAGS'
644232b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
644332b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
644432b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
644532b578d3Smrg
644632b578d3Smrg
644732b578d3Smrg
644832b578d3Smrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
644932b578d3Smrg# find the maximum length of command line arguments
64502a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
64512a51b5beSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
645232b578d3Smrgif test "${lt_cv_sys_max_cmd_len+set}" = set; then
64532a51b5beSmrg  $as_echo_n "(cached) " >&6
645432b578d3Smrgelse
645532b578d3Smrg    i=0
645632b578d3Smrg  teststring="ABCD"
645732b578d3Smrg
645832b578d3Smrg  case $build_os in
645932b578d3Smrg  msdosdjgpp*)
646032b578d3Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
646132b578d3Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
646232b578d3Smrg    # during glob expansion).  Even if it were fixed, the result of this
646332b578d3Smrg    # check would be larger than it should be.
646432b578d3Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
646532b578d3Smrg    ;;
646632b578d3Smrg
646732b578d3Smrg  gnu*)
646832b578d3Smrg    # Under GNU Hurd, this test is not required because there is
646932b578d3Smrg    # no limit to the length of command line arguments.
647032b578d3Smrg    # Libtool will interpret -1 as no limit whatsoever
647132b578d3Smrg    lt_cv_sys_max_cmd_len=-1;
647232b578d3Smrg    ;;
647332b578d3Smrg
647432b578d3Smrg  cygwin* | mingw*)
647532b578d3Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
647632b578d3Smrg    # about 5 minutes as the teststring grows exponentially.
647732b578d3Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
647832b578d3Smrg    # you end up with a "frozen" computer, even though with patience
647932b578d3Smrg    # the test eventually succeeds (with a max line length of 256k).
648032b578d3Smrg    # Instead, let's just punt: use the minimum linelength reported by
648132b578d3Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
648232b578d3Smrg    lt_cv_sys_max_cmd_len=8192;
648332b578d3Smrg    ;;
648432b578d3Smrg
648532b578d3Smrg  amigaos*)
648632b578d3Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
648732b578d3Smrg    # So we just punt and use a minimum line length of 8192.
648832b578d3Smrg    lt_cv_sys_max_cmd_len=8192;
648932b578d3Smrg    ;;
649032b578d3Smrg
649132b578d3Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
649232b578d3Smrg    # This has been around since 386BSD, at least.  Likely further.
649332b578d3Smrg    if test -x /sbin/sysctl; then
649432b578d3Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
649532b578d3Smrg    elif test -x /usr/sbin/sysctl; then
649632b578d3Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
649732b578d3Smrg    else
649832b578d3Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
649932b578d3Smrg    fi
650032b578d3Smrg    # And add a safety zone
650132b578d3Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
650232b578d3Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
650332b578d3Smrg    ;;
650432b578d3Smrg
650532b578d3Smrg  interix*)
650632b578d3Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
650732b578d3Smrg    lt_cv_sys_max_cmd_len=196608
650832b578d3Smrg    ;;
650932b578d3Smrg
651032b578d3Smrg  osf*)
651132b578d3Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
651232b578d3Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
651332b578d3Smrg    # nice to cause kernel panics so lets avoid the loop below.
651432b578d3Smrg    # First set a reasonable default.
651532b578d3Smrg    lt_cv_sys_max_cmd_len=16384
651632b578d3Smrg    #
651732b578d3Smrg    if test -x /sbin/sysconfig; then
651832b578d3Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
651932b578d3Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
652032b578d3Smrg      esac
652132b578d3Smrg    fi
652232b578d3Smrg    ;;
652332b578d3Smrg  sco3.2v5*)
652432b578d3Smrg    lt_cv_sys_max_cmd_len=102400
652532b578d3Smrg    ;;
652632b578d3Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
652732b578d3Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
652832b578d3Smrg    if test -n "$kargmax"; then
652932b578d3Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
653032b578d3Smrg    else
653132b578d3Smrg      lt_cv_sys_max_cmd_len=32768
653232b578d3Smrg    fi
653332b578d3Smrg    ;;
653432b578d3Smrg  *)
65352a51b5beSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
65362a51b5beSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
65372a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
65382a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
65392a51b5beSmrg    else
65402a51b5beSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
65412a51b5beSmrg      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
654232b578d3Smrg	       = "XX$teststring") >/dev/null 2>&1 &&
65432a51b5beSmrg	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
65442a51b5beSmrg	      lt_cv_sys_max_cmd_len=$new_result &&
65452a51b5beSmrg	      test $i != 17 # 1/2 MB should be enough
65462a51b5beSmrg      do
65472a51b5beSmrg        i=`expr $i + 1`
65482a51b5beSmrg        teststring=$teststring$teststring
65492a51b5beSmrg      done
65502a51b5beSmrg      teststring=
65512a51b5beSmrg      # Add a significant safety factor because C++ compilers can tack on massive
65522a51b5beSmrg      # amounts of additional arguments before passing them to the linker.
65532a51b5beSmrg      # It appears as though 1/2 is a usable value.
65542a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
65552a51b5beSmrg    fi
655632b578d3Smrg    ;;
655732b578d3Smrg  esac
655832b578d3Smrg
655932b578d3Smrgfi
656032b578d3Smrg
656132b578d3Smrgif test -n $lt_cv_sys_max_cmd_len ; then
65622a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
65632a51b5beSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
656432b578d3Smrgelse
65652a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: none" >&5
65662a51b5beSmrg$as_echo "none" >&6; }
656732b578d3Smrgfi
656832b578d3Smrg
656932b578d3Smrg
657032b578d3Smrg
657132b578d3Smrg
65722a51b5beSmrg
657332b578d3Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
65742a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
65752a51b5beSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
657632b578d3Smrgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
65772a51b5beSmrg  $as_echo_n "(cached) " >&6
657832b578d3Smrgelse
657932b578d3Smrg
658032b578d3Smrg# These are sane defaults that work on at least a few old systems.
658132b578d3Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
658232b578d3Smrg
658332b578d3Smrg# Character class describing NM global symbol codes.
658432b578d3Smrgsymcode='[BCDEGRST]'
658532b578d3Smrg
658632b578d3Smrg# Regexp to match symbols that can be accessed directly from C.
658732b578d3Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
658832b578d3Smrg
658932b578d3Smrg# Transform an extracted symbol line into a proper C declaration
659032b578d3Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
659132b578d3Smrg
659232b578d3Smrg# Transform an extracted symbol line into symbol name and symbol address
659332b578d3Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
659432b578d3Smrg
659532b578d3Smrg# Define system-specific variables.
659632b578d3Smrgcase $host_os in
659732b578d3Smrgaix*)
659832b578d3Smrg  symcode='[BCDT]'
659932b578d3Smrg  ;;
660032b578d3Smrgcygwin* | mingw* | pw32*)
660132b578d3Smrg  symcode='[ABCDGISTW]'
660232b578d3Smrg  ;;
660332b578d3Smrghpux*) # Its linker distinguishes data from code symbols
660432b578d3Smrg  if test "$host_cpu" = ia64; then
660532b578d3Smrg    symcode='[ABCDEGRST]'
660632b578d3Smrg  fi
660732b578d3Smrg  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
660832b578d3Smrg  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
660932b578d3Smrg  ;;
66102a51b5beSmrglinux* | k*bsd*-gnu)
661132b578d3Smrg  if test "$host_cpu" = ia64; then
661232b578d3Smrg    symcode='[ABCDGIRSTW]'
661332b578d3Smrg    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
661432b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
661532b578d3Smrg  fi
661632b578d3Smrg  ;;
661732b578d3Smrgirix* | nonstopux*)
661832b578d3Smrg  symcode='[BCDEGRST]'
661932b578d3Smrg  ;;
662032b578d3Smrgosf*)
662132b578d3Smrg  symcode='[BCDEGQRST]'
662232b578d3Smrg  ;;
662332b578d3Smrgsolaris*)
662432b578d3Smrg  symcode='[BDRT]'
662532b578d3Smrg  ;;
662632b578d3Smrgsco3.2v5*)
662732b578d3Smrg  symcode='[DT]'
662832b578d3Smrg  ;;
662932b578d3Smrgsysv4.2uw2*)
663032b578d3Smrg  symcode='[DT]'
663132b578d3Smrg  ;;
663232b578d3Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
663332b578d3Smrg  symcode='[ABDT]'
663432b578d3Smrg  ;;
663532b578d3Smrgsysv4)
663632b578d3Smrg  symcode='[DFNSTU]'
663732b578d3Smrg  ;;
663832b578d3Smrgesac
663932b578d3Smrg
664032b578d3Smrg# Handle CRLF in mingw tool chain
664132b578d3Smrgopt_cr=
664232b578d3Smrgcase $build_os in
664332b578d3Smrgmingw*)
664432b578d3Smrg  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
664532b578d3Smrg  ;;
664632b578d3Smrgesac
664732b578d3Smrg
664832b578d3Smrg# If we're using GNU nm, then use its standard symbol codes.
664932b578d3Smrgcase `$NM -V 2>&1` in
665032b578d3Smrg*GNU* | *'with BFD'*)
665132b578d3Smrg  symcode='[ABCDGIRSTW]' ;;
665232b578d3Smrgesac
665332b578d3Smrg
665432b578d3Smrg# Try without a prefix undercore, then with it.
665532b578d3Smrgfor ac_symprfx in "" "_"; do
665632b578d3Smrg
665732b578d3Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
665832b578d3Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
665932b578d3Smrg
666032b578d3Smrg  # Write the raw and C identifiers.
666132b578d3Smrg  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
666232b578d3Smrg
666332b578d3Smrg  # Check to see that the pipe works correctly.
666432b578d3Smrg  pipe_works=no
666532b578d3Smrg
666632b578d3Smrg  rm -f conftest*
666732b578d3Smrg  cat > conftest.$ac_ext <<EOF
666832b578d3Smrg#ifdef __cplusplus
666932b578d3Smrgextern "C" {
667032b578d3Smrg#endif
667132b578d3Smrgchar nm_test_var;
667232b578d3Smrgvoid nm_test_func(){}
667332b578d3Smrg#ifdef __cplusplus
667432b578d3Smrg}
667532b578d3Smrg#endif
667632b578d3Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
667732b578d3SmrgEOF
667832b578d3Smrg
667932b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
668032b578d3Smrg  (eval $ac_compile) 2>&5
668132b578d3Smrg  ac_status=$?
66822a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
668332b578d3Smrg  (exit $ac_status); }; then
668432b578d3Smrg    # Now try to grab the symbols.
668532b578d3Smrg    nlist=conftest.nm
668632b578d3Smrg    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
668732b578d3Smrg  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
668832b578d3Smrg  ac_status=$?
66892a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
669032b578d3Smrg  (exit $ac_status); } && test -s "$nlist"; then
669132b578d3Smrg      # Try sorting and uniquifying the output.
669232b578d3Smrg      if sort "$nlist" | uniq > "$nlist"T; then
669332b578d3Smrg	mv -f "$nlist"T "$nlist"
669432b578d3Smrg      else
669532b578d3Smrg	rm -f "$nlist"T
669632b578d3Smrg      fi
669732b578d3Smrg
669832b578d3Smrg      # Make sure that we snagged all the symbols we need.
669932b578d3Smrg      if grep ' nm_test_var$' "$nlist" >/dev/null; then
670032b578d3Smrg	if grep ' nm_test_func$' "$nlist" >/dev/null; then
670132b578d3Smrg	  cat <<EOF > conftest.$ac_ext
670232b578d3Smrg#ifdef __cplusplus
670332b578d3Smrgextern "C" {
670432b578d3Smrg#endif
670532b578d3Smrg
670632b578d3SmrgEOF
670732b578d3Smrg	  # Now generate the symbol file.
670832b578d3Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
670932b578d3Smrg
671032b578d3Smrg	  cat <<EOF >> conftest.$ac_ext
671132b578d3Smrg#if defined (__STDC__) && __STDC__
671232b578d3Smrg# define lt_ptr_t void *
671332b578d3Smrg#else
671432b578d3Smrg# define lt_ptr_t char *
671532b578d3Smrg# define const
671632b578d3Smrg#endif
671732b578d3Smrg
671832b578d3Smrg/* The mapping between symbol names and symbols. */
671932b578d3Smrgconst struct {
672032b578d3Smrg  const char *name;
672132b578d3Smrg  lt_ptr_t address;
672232b578d3Smrg}
672332b578d3Smrglt_preloaded_symbols[] =
672432b578d3Smrg{
672532b578d3SmrgEOF
672632b578d3Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
672732b578d3Smrg	  cat <<\EOF >> conftest.$ac_ext
672832b578d3Smrg  {0, (lt_ptr_t) 0}
672932b578d3Smrg};
673032b578d3Smrg
673132b578d3Smrg#ifdef __cplusplus
673232b578d3Smrg}
673332b578d3Smrg#endif
673432b578d3SmrgEOF
673532b578d3Smrg	  # Now try linking the two files.
673632b578d3Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
673732b578d3Smrg	  lt_save_LIBS="$LIBS"
673832b578d3Smrg	  lt_save_CFLAGS="$CFLAGS"
673932b578d3Smrg	  LIBS="conftstm.$ac_objext"
674032b578d3Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
674132b578d3Smrg	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
674232b578d3Smrg  (eval $ac_link) 2>&5
674332b578d3Smrg  ac_status=$?
67442a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
674532b578d3Smrg  (exit $ac_status); } && test -s conftest${ac_exeext}; then
674632b578d3Smrg	    pipe_works=yes
674732b578d3Smrg	  fi
674832b578d3Smrg	  LIBS="$lt_save_LIBS"
674932b578d3Smrg	  CFLAGS="$lt_save_CFLAGS"
675032b578d3Smrg	else
675132b578d3Smrg	  echo "cannot find nm_test_func in $nlist" >&5
675232b578d3Smrg	fi
675332b578d3Smrg      else
675432b578d3Smrg	echo "cannot find nm_test_var in $nlist" >&5
675532b578d3Smrg      fi
675632b578d3Smrg    else
675732b578d3Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
675832b578d3Smrg    fi
675932b578d3Smrg  else
676032b578d3Smrg    echo "$progname: failed program was:" >&5
676132b578d3Smrg    cat conftest.$ac_ext >&5
676232b578d3Smrg  fi
67632a51b5beSmrg  rm -rf conftest* conftst*
676432b578d3Smrg
676532b578d3Smrg  # Do not use the global_symbol_pipe unless it works.
676632b578d3Smrg  if test "$pipe_works" = yes; then
676732b578d3Smrg    break
676832b578d3Smrg  else
676932b578d3Smrg    lt_cv_sys_global_symbol_pipe=
677032b578d3Smrg  fi
677132b578d3Smrgdone
677232b578d3Smrg
677332b578d3Smrgfi
677432b578d3Smrg
677532b578d3Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
677632b578d3Smrg  lt_cv_sys_global_symbol_to_cdecl=
677732b578d3Smrgfi
677832b578d3Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
67792a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: failed" >&5
67802a51b5beSmrg$as_echo "failed" >&6; }
678132b578d3Smrgelse
67822a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: ok" >&5
67832a51b5beSmrg$as_echo "ok" >&6; }
678432b578d3Smrgfi
678532b578d3Smrg
67862a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
67872a51b5beSmrg$as_echo_n "checking for objdir... " >&6; }
678832b578d3Smrgif test "${lt_cv_objdir+set}" = set; then
67892a51b5beSmrg  $as_echo_n "(cached) " >&6
679032b578d3Smrgelse
679132b578d3Smrg  rm -f .libs 2>/dev/null
679232b578d3Smrgmkdir .libs 2>/dev/null
679332b578d3Smrgif test -d .libs; then
679432b578d3Smrg  lt_cv_objdir=.libs
679532b578d3Smrgelse
679632b578d3Smrg  # MS-DOS does not allow filenames that begin with a dot.
679732b578d3Smrg  lt_cv_objdir=_libs
679832b578d3Smrgfi
679932b578d3Smrgrmdir .libs 2>/dev/null
680032b578d3Smrgfi
68012a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
68022a51b5beSmrg$as_echo "$lt_cv_objdir" >&6; }
680332b578d3Smrgobjdir=$lt_cv_objdir
680432b578d3Smrg
680532b578d3Smrg
680632b578d3Smrg
680732b578d3Smrg
680832b578d3Smrg
680932b578d3Smrgcase $host_os in
681032b578d3Smrgaix3*)
681132b578d3Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
681232b578d3Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
681332b578d3Smrg  # vanish in a puff of smoke.
681432b578d3Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
681532b578d3Smrg    COLLECT_NAMES=
681632b578d3Smrg    export COLLECT_NAMES
681732b578d3Smrg  fi
681832b578d3Smrg  ;;
681932b578d3Smrgesac
682032b578d3Smrg
682132b578d3Smrg# Sed substitution that helps us do robust quoting.  It backslashifies
682232b578d3Smrg# metacharacters that are still active within double-quoted strings.
682332b578d3SmrgXsed='sed -e 1s/^X//'
682432b578d3Smrgsed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
682532b578d3Smrg
682632b578d3Smrg# Same as above, but do not quote variable references.
682732b578d3Smrgdouble_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
682832b578d3Smrg
682932b578d3Smrg# Sed substitution to delay expansion of an escaped shell variable in a
683032b578d3Smrg# double_quote_subst'ed string.
683132b578d3Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
683232b578d3Smrg
683332b578d3Smrg# Sed substitution to avoid accidental globbing in evaled expressions
683432b578d3Smrgno_glob_subst='s/\*/\\\*/g'
683532b578d3Smrg
683632b578d3Smrg# Constants:
683732b578d3Smrgrm="rm -f"
683832b578d3Smrg
683932b578d3Smrg# Global variables:
684032b578d3Smrgdefault_ofile=libtool
684132b578d3Smrgcan_build_shared=yes
684232b578d3Smrg
684332b578d3Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
684432b578d3Smrg# which needs '.lib').
684532b578d3Smrglibext=a
684632b578d3Smrgltmain="$ac_aux_dir/ltmain.sh"
684732b578d3Smrgofile="$default_ofile"
684832b578d3Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
684932b578d3Smrg
685032b578d3Smrgif test -n "$ac_tool_prefix"; then
685132b578d3Smrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
685232b578d3Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2
68532a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
68542a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
685532b578d3Smrgif test "${ac_cv_prog_AR+set}" = set; then
68562a51b5beSmrg  $as_echo_n "(cached) " >&6
685732b578d3Smrgelse
685832b578d3Smrg  if test -n "$AR"; then
685932b578d3Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
686032b578d3Smrgelse
686132b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
686232b578d3Smrgfor as_dir in $PATH
686332b578d3Smrgdo
686432b578d3Smrg  IFS=$as_save_IFS
686532b578d3Smrg  test -z "$as_dir" && as_dir=.
686632b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
686732b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
686832b578d3Smrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
68692a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
687032b578d3Smrg    break 2
687132b578d3Smrg  fi
687232b578d3Smrgdone
687332b578d3Smrgdone
687432b578d3SmrgIFS=$as_save_IFS
687532b578d3Smrg
687632b578d3Smrgfi
687732b578d3Smrgfi
687832b578d3SmrgAR=$ac_cv_prog_AR
687932b578d3Smrgif test -n "$AR"; then
68802a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $AR" >&5
68812a51b5beSmrg$as_echo "$AR" >&6; }
688232b578d3Smrgelse
68832a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
68842a51b5beSmrg$as_echo "no" >&6; }
688532b578d3Smrgfi
688632b578d3Smrg
688732b578d3Smrg
688832b578d3Smrgfi
688932b578d3Smrgif test -z "$ac_cv_prog_AR"; then
689032b578d3Smrg  ac_ct_AR=$AR
689132b578d3Smrg  # Extract the first word of "ar", so it can be a program name with args.
689232b578d3Smrgset dummy ar; ac_word=$2
68932a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
68942a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
689532b578d3Smrgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
68962a51b5beSmrg  $as_echo_n "(cached) " >&6
689732b578d3Smrgelse
689832b578d3Smrg  if test -n "$ac_ct_AR"; then
689932b578d3Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
690032b578d3Smrgelse
690132b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
690232b578d3Smrgfor as_dir in $PATH
690332b578d3Smrgdo
690432b578d3Smrg  IFS=$as_save_IFS
690532b578d3Smrg  test -z "$as_dir" && as_dir=.
690632b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
690732b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
690832b578d3Smrg    ac_cv_prog_ac_ct_AR="ar"
69092a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
691032b578d3Smrg    break 2
691132b578d3Smrg  fi
691232b578d3Smrgdone
691332b578d3Smrgdone
691432b578d3SmrgIFS=$as_save_IFS
691532b578d3Smrg
691632b578d3Smrgfi
691732b578d3Smrgfi
691832b578d3Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
691932b578d3Smrgif test -n "$ac_ct_AR"; then
69202a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
69212a51b5beSmrg$as_echo "$ac_ct_AR" >&6; }
692232b578d3Smrgelse
69232a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
69242a51b5beSmrg$as_echo "no" >&6; }
692532b578d3Smrgfi
692632b578d3Smrg
692732b578d3Smrg  if test "x$ac_ct_AR" = x; then
692832b578d3Smrg    AR="false"
692932b578d3Smrg  else
693032b578d3Smrg    case $cross_compiling:$ac_tool_warned in
693132b578d3Smrgyes:)
69322a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
69332a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
693432b578d3Smrgac_tool_warned=yes ;;
693532b578d3Smrgesac
693632b578d3Smrg    AR=$ac_ct_AR
693732b578d3Smrg  fi
693832b578d3Smrgelse
693932b578d3Smrg  AR="$ac_cv_prog_AR"
694032b578d3Smrgfi
694132b578d3Smrg
694232b578d3Smrgif test -n "$ac_tool_prefix"; then
694332b578d3Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
694432b578d3Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
69452a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
69462a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
694732b578d3Smrgif test "${ac_cv_prog_RANLIB+set}" = set; then
69482a51b5beSmrg  $as_echo_n "(cached) " >&6
694932b578d3Smrgelse
695032b578d3Smrg  if test -n "$RANLIB"; then
695132b578d3Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
695232b578d3Smrgelse
695332b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
695432b578d3Smrgfor as_dir in $PATH
695532b578d3Smrgdo
695632b578d3Smrg  IFS=$as_save_IFS
695732b578d3Smrg  test -z "$as_dir" && as_dir=.
695832b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
695932b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
696032b578d3Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
69612a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
696232b578d3Smrg    break 2
696332b578d3Smrg  fi
696432b578d3Smrgdone
696532b578d3Smrgdone
696632b578d3SmrgIFS=$as_save_IFS
696732b578d3Smrg
696832b578d3Smrgfi
696932b578d3Smrgfi
697032b578d3SmrgRANLIB=$ac_cv_prog_RANLIB
697132b578d3Smrgif test -n "$RANLIB"; then
69722a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
69732a51b5beSmrg$as_echo "$RANLIB" >&6; }
697432b578d3Smrgelse
69752a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
69762a51b5beSmrg$as_echo "no" >&6; }
697732b578d3Smrgfi
697832b578d3Smrg
697932b578d3Smrg
698032b578d3Smrgfi
698132b578d3Smrgif test -z "$ac_cv_prog_RANLIB"; then
698232b578d3Smrg  ac_ct_RANLIB=$RANLIB
698332b578d3Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
698432b578d3Smrgset dummy ranlib; ac_word=$2
69852a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
69862a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
698732b578d3Smrgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
69882a51b5beSmrg  $as_echo_n "(cached) " >&6
698932b578d3Smrgelse
699032b578d3Smrg  if test -n "$ac_ct_RANLIB"; then
699132b578d3Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
699232b578d3Smrgelse
699332b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
699432b578d3Smrgfor as_dir in $PATH
699532b578d3Smrgdo
699632b578d3Smrg  IFS=$as_save_IFS
699732b578d3Smrg  test -z "$as_dir" && as_dir=.
699832b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
699932b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
700032b578d3Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
70012a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
700232b578d3Smrg    break 2
700332b578d3Smrg  fi
700432b578d3Smrgdone
700532b578d3Smrgdone
700632b578d3SmrgIFS=$as_save_IFS
700732b578d3Smrg
700832b578d3Smrgfi
700932b578d3Smrgfi
701032b578d3Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
701132b578d3Smrgif test -n "$ac_ct_RANLIB"; then
70122a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
70132a51b5beSmrg$as_echo "$ac_ct_RANLIB" >&6; }
701432b578d3Smrgelse
70152a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
70162a51b5beSmrg$as_echo "no" >&6; }
701732b578d3Smrgfi
701832b578d3Smrg
701932b578d3Smrg  if test "x$ac_ct_RANLIB" = x; then
702032b578d3Smrg    RANLIB=":"
702132b578d3Smrg  else
702232b578d3Smrg    case $cross_compiling:$ac_tool_warned in
702332b578d3Smrgyes:)
70242a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
70252a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
702632b578d3Smrgac_tool_warned=yes ;;
702732b578d3Smrgesac
702832b578d3Smrg    RANLIB=$ac_ct_RANLIB
702932b578d3Smrg  fi
703032b578d3Smrgelse
703132b578d3Smrg  RANLIB="$ac_cv_prog_RANLIB"
703232b578d3Smrgfi
703332b578d3Smrg
703432b578d3Smrgif test -n "$ac_tool_prefix"; then
703532b578d3Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
703632b578d3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
70372a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
70382a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
703932b578d3Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
70402a51b5beSmrg  $as_echo_n "(cached) " >&6
704132b578d3Smrgelse
704232b578d3Smrg  if test -n "$STRIP"; then
704332b578d3Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
704432b578d3Smrgelse
704532b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
704632b578d3Smrgfor as_dir in $PATH
704732b578d3Smrgdo
704832b578d3Smrg  IFS=$as_save_IFS
704932b578d3Smrg  test -z "$as_dir" && as_dir=.
705032b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
705132b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
705232b578d3Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
70532a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
705432b578d3Smrg    break 2
705532b578d3Smrg  fi
705632b578d3Smrgdone
705732b578d3Smrgdone
705832b578d3SmrgIFS=$as_save_IFS
705932b578d3Smrg
706032b578d3Smrgfi
706132b578d3Smrgfi
706232b578d3SmrgSTRIP=$ac_cv_prog_STRIP
706332b578d3Smrgif test -n "$STRIP"; then
70642a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
70652a51b5beSmrg$as_echo "$STRIP" >&6; }
706632b578d3Smrgelse
70672a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
70682a51b5beSmrg$as_echo "no" >&6; }
706932b578d3Smrgfi
707032b578d3Smrg
707132b578d3Smrg
707232b578d3Smrgfi
707332b578d3Smrgif test -z "$ac_cv_prog_STRIP"; then
707432b578d3Smrg  ac_ct_STRIP=$STRIP
707532b578d3Smrg  # Extract the first word of "strip", so it can be a program name with args.
707632b578d3Smrgset dummy strip; ac_word=$2
70772a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
70782a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
707932b578d3Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
70802a51b5beSmrg  $as_echo_n "(cached) " >&6
708132b578d3Smrgelse
708232b578d3Smrg  if test -n "$ac_ct_STRIP"; then
708332b578d3Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
708432b578d3Smrgelse
708532b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
708632b578d3Smrgfor as_dir in $PATH
708732b578d3Smrgdo
708832b578d3Smrg  IFS=$as_save_IFS
708932b578d3Smrg  test -z "$as_dir" && as_dir=.
709032b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
709132b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
709232b578d3Smrg    ac_cv_prog_ac_ct_STRIP="strip"
70932a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
709432b578d3Smrg    break 2
709532b578d3Smrg  fi
709632b578d3Smrgdone
709732b578d3Smrgdone
709832b578d3SmrgIFS=$as_save_IFS
709932b578d3Smrg
710032b578d3Smrgfi
710132b578d3Smrgfi
710232b578d3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
710332b578d3Smrgif test -n "$ac_ct_STRIP"; then
71042a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
71052a51b5beSmrg$as_echo "$ac_ct_STRIP" >&6; }
710632b578d3Smrgelse
71072a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
71082a51b5beSmrg$as_echo "no" >&6; }
710932b578d3Smrgfi
711032b578d3Smrg
711132b578d3Smrg  if test "x$ac_ct_STRIP" = x; then
711232b578d3Smrg    STRIP=":"
711332b578d3Smrg  else
711432b578d3Smrg    case $cross_compiling:$ac_tool_warned in
711532b578d3Smrgyes:)
71162a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
71172a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
711832b578d3Smrgac_tool_warned=yes ;;
711932b578d3Smrgesac
712032b578d3Smrg    STRIP=$ac_ct_STRIP
712132b578d3Smrg  fi
712232b578d3Smrgelse
712332b578d3Smrg  STRIP="$ac_cv_prog_STRIP"
712432b578d3Smrgfi
712532b578d3Smrg
712632b578d3Smrg
712732b578d3Smrgold_CC="$CC"
712832b578d3Smrgold_CFLAGS="$CFLAGS"
712932b578d3Smrg
713032b578d3Smrg# Set sane defaults for various variables
713132b578d3Smrgtest -z "$AR" && AR=ar
713232b578d3Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
713332b578d3Smrgtest -z "$AS" && AS=as
713432b578d3Smrgtest -z "$CC" && CC=cc
713532b578d3Smrgtest -z "$LTCC" && LTCC=$CC
713632b578d3Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
713732b578d3Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
713832b578d3Smrgtest -z "$LD" && LD=ld
713932b578d3Smrgtest -z "$LN_S" && LN_S="ln -s"
714032b578d3Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
714132b578d3Smrgtest -z "$NM" && NM=nm
714232b578d3Smrgtest -z "$SED" && SED=sed
714332b578d3Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
714432b578d3Smrgtest -z "$RANLIB" && RANLIB=:
714532b578d3Smrgtest -z "$STRIP" && STRIP=:
714632b578d3Smrgtest -z "$ac_objext" && ac_objext=o
714732b578d3Smrg
714832b578d3Smrg# Determine commands to create old-style static archives.
71492a51b5beSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
715032b578d3Smrgold_postinstall_cmds='chmod 644 $oldlib'
715132b578d3Smrgold_postuninstall_cmds=
715232b578d3Smrg
715332b578d3Smrgif test -n "$RANLIB"; then
715432b578d3Smrg  case $host_os in
715532b578d3Smrg  openbsd*)
715632b578d3Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
715732b578d3Smrg    ;;
715832b578d3Smrg  *)
715932b578d3Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
716032b578d3Smrg    ;;
716132b578d3Smrg  esac
716232b578d3Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
716332b578d3Smrgfi
716432b578d3Smrg
716532b578d3Smrgfor cc_temp in $compiler""; do
716632b578d3Smrg  case $cc_temp in
716732b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
716832b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
716932b578d3Smrg    \-*) ;;
717032b578d3Smrg    *) break;;
717132b578d3Smrg  esac
717232b578d3Smrgdone
717332b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
717432b578d3Smrg
717532b578d3Smrg
717632b578d3Smrg# Only perform the check for file, if the check method requires it
717732b578d3Smrgcase $deplibs_check_method in
717832b578d3Smrgfile_magic*)
717932b578d3Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
71802a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
71812a51b5beSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
718232b578d3Smrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
71832a51b5beSmrg  $as_echo_n "(cached) " >&6
718432b578d3Smrgelse
718532b578d3Smrg  case $MAGIC_CMD in
718632b578d3Smrg[\\/*] |  ?:[\\/]*)
718732b578d3Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
718832b578d3Smrg  ;;
718932b578d3Smrg*)
719032b578d3Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
719132b578d3Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
719232b578d3Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
719332b578d3Smrg  for ac_dir in $ac_dummy; do
719432b578d3Smrg    IFS="$lt_save_ifs"
719532b578d3Smrg    test -z "$ac_dir" && ac_dir=.
719632b578d3Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
719732b578d3Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
719832b578d3Smrg      if test -n "$file_magic_test_file"; then
719932b578d3Smrg	case $deplibs_check_method in
720032b578d3Smrg	"file_magic "*)
720132b578d3Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
720232b578d3Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
720332b578d3Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
720432b578d3Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
720532b578d3Smrg	    :
720632b578d3Smrg	  else
720732b578d3Smrg	    cat <<EOF 1>&2
720832b578d3Smrg
720932b578d3Smrg*** Warning: the command libtool uses to detect shared libraries,
721032b578d3Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
721132b578d3Smrg*** The result is that libtool may fail to recognize shared libraries
721232b578d3Smrg*** as such.  This will affect the creation of libtool libraries that
721332b578d3Smrg*** depend on shared libraries, but programs linked with such libtool
721432b578d3Smrg*** libraries will work regardless of this problem.  Nevertheless, you
721532b578d3Smrg*** may want to report the problem to your system manager and/or to
721632b578d3Smrg*** bug-libtool@gnu.org
721732b578d3Smrg
72182a51b5beSmrgEOF
72192a51b5beSmrg	  fi ;;
72202a51b5beSmrg	esac
72212a51b5beSmrg      fi
72222a51b5beSmrg      break
72232a51b5beSmrg    fi
72242a51b5beSmrg  done
72252a51b5beSmrg  IFS="$lt_save_ifs"
72262a51b5beSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
72272a51b5beSmrg  ;;
72282a51b5beSmrgesac
72292a51b5beSmrgfi
72302a51b5beSmrg
72312a51b5beSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
72322a51b5beSmrgif test -n "$MAGIC_CMD"; then
72332a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
72342a51b5beSmrg$as_echo "$MAGIC_CMD" >&6; }
72352a51b5beSmrgelse
72362a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
72372a51b5beSmrg$as_echo "no" >&6; }
72382a51b5beSmrgfi
72392a51b5beSmrg
72402a51b5beSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
72412a51b5beSmrg  if test -n "$ac_tool_prefix"; then
72422a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for file" >&5
72432a51b5beSmrg$as_echo_n "checking for file... " >&6; }
72442a51b5beSmrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
72452a51b5beSmrg  $as_echo_n "(cached) " >&6
72462a51b5beSmrgelse
72472a51b5beSmrg  case $MAGIC_CMD in
72482a51b5beSmrg[\\/*] |  ?:[\\/]*)
72492a51b5beSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
72502a51b5beSmrg  ;;
72512a51b5beSmrg*)
72522a51b5beSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
72532a51b5beSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
72542a51b5beSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
72552a51b5beSmrg  for ac_dir in $ac_dummy; do
72562a51b5beSmrg    IFS="$lt_save_ifs"
72572a51b5beSmrg    test -z "$ac_dir" && ac_dir=.
72582a51b5beSmrg    if test -f $ac_dir/file; then
72592a51b5beSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
72602a51b5beSmrg      if test -n "$file_magic_test_file"; then
72612a51b5beSmrg	case $deplibs_check_method in
72622a51b5beSmrg	"file_magic "*)
72632a51b5beSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
72642a51b5beSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
72652a51b5beSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
72662a51b5beSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
72672a51b5beSmrg	    :
72682a51b5beSmrg	  else
72692a51b5beSmrg	    cat <<EOF 1>&2
72702a51b5beSmrg
72712a51b5beSmrg*** Warning: the command libtool uses to detect shared libraries,
72722a51b5beSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
72732a51b5beSmrg*** The result is that libtool may fail to recognize shared libraries
72742a51b5beSmrg*** as such.  This will affect the creation of libtool libraries that
72752a51b5beSmrg*** depend on shared libraries, but programs linked with such libtool
72762a51b5beSmrg*** libraries will work regardless of this problem.  Nevertheless, you
72772a51b5beSmrg*** may want to report the problem to your system manager and/or to
72782a51b5beSmrg*** bug-libtool@gnu.org
72792a51b5beSmrg
72802a51b5beSmrgEOF
72812a51b5beSmrg	  fi ;;
72822a51b5beSmrg	esac
72832a51b5beSmrg      fi
72842a51b5beSmrg      break
72852a51b5beSmrg    fi
72862a51b5beSmrg  done
72872a51b5beSmrg  IFS="$lt_save_ifs"
72882a51b5beSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
72892a51b5beSmrg  ;;
72902a51b5beSmrgesac
72912a51b5beSmrgfi
72922a51b5beSmrg
72932a51b5beSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
72942a51b5beSmrgif test -n "$MAGIC_CMD"; then
72952a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
72962a51b5beSmrg$as_echo "$MAGIC_CMD" >&6; }
72972a51b5beSmrgelse
72982a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
72992a51b5beSmrg$as_echo "no" >&6; }
73002a51b5beSmrgfi
73012a51b5beSmrg
73022a51b5beSmrg  else
73032a51b5beSmrg    MAGIC_CMD=:
73042a51b5beSmrg  fi
73052a51b5beSmrgfi
73062a51b5beSmrg
73072a51b5beSmrg  fi
73082a51b5beSmrg  ;;
73092a51b5beSmrgesac
73102a51b5beSmrg
73112a51b5beSmrg
73122a51b5beSmrg  case $host_os in
73132a51b5beSmrg    rhapsody* | darwin*)
73142a51b5beSmrg    if test -n "$ac_tool_prefix"; then
73152a51b5beSmrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
73162a51b5beSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
73172a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73182a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
73192a51b5beSmrgif test "${ac_cv_prog_DSYMUTIL+set}" = set; then
73202a51b5beSmrg  $as_echo_n "(cached) " >&6
73212a51b5beSmrgelse
73222a51b5beSmrg  if test -n "$DSYMUTIL"; then
73232a51b5beSmrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
73242a51b5beSmrgelse
73252a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73262a51b5beSmrgfor as_dir in $PATH
73272a51b5beSmrgdo
73282a51b5beSmrg  IFS=$as_save_IFS
73292a51b5beSmrg  test -z "$as_dir" && as_dir=.
73302a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
73312a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73322a51b5beSmrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
73332a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73342a51b5beSmrg    break 2
73352a51b5beSmrg  fi
73362a51b5beSmrgdone
73372a51b5beSmrgdone
73382a51b5beSmrgIFS=$as_save_IFS
73392a51b5beSmrg
73402a51b5beSmrgfi
73412a51b5beSmrgfi
73422a51b5beSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
73432a51b5beSmrgif test -n "$DSYMUTIL"; then
73442a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
73452a51b5beSmrg$as_echo "$DSYMUTIL" >&6; }
73462a51b5beSmrgelse
73472a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
73482a51b5beSmrg$as_echo "no" >&6; }
73492a51b5beSmrgfi
73502a51b5beSmrg
73512a51b5beSmrg
73522a51b5beSmrgfi
73532a51b5beSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then
73542a51b5beSmrg  ac_ct_DSYMUTIL=$DSYMUTIL
73552a51b5beSmrg  # Extract the first word of "dsymutil", so it can be a program name with args.
73562a51b5beSmrgset dummy dsymutil; ac_word=$2
73572a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73582a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
73592a51b5beSmrgif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
73602a51b5beSmrg  $as_echo_n "(cached) " >&6
73612a51b5beSmrgelse
73622a51b5beSmrg  if test -n "$ac_ct_DSYMUTIL"; then
73632a51b5beSmrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
73642a51b5beSmrgelse
73652a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73662a51b5beSmrgfor as_dir in $PATH
73672a51b5beSmrgdo
73682a51b5beSmrg  IFS=$as_save_IFS
73692a51b5beSmrg  test -z "$as_dir" && as_dir=.
73702a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
73712a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73722a51b5beSmrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
73732a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73742a51b5beSmrg    break 2
73752a51b5beSmrg  fi
73762a51b5beSmrgdone
73772a51b5beSmrgdone
73782a51b5beSmrgIFS=$as_save_IFS
73792a51b5beSmrg
73802a51b5beSmrgfi
73812a51b5beSmrgfi
73822a51b5beSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
73832a51b5beSmrgif test -n "$ac_ct_DSYMUTIL"; then
73842a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
73852a51b5beSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
73862a51b5beSmrgelse
73872a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
73882a51b5beSmrg$as_echo "no" >&6; }
73892a51b5beSmrgfi
73902a51b5beSmrg
73912a51b5beSmrg  if test "x$ac_ct_DSYMUTIL" = x; then
73922a51b5beSmrg    DSYMUTIL=":"
73932a51b5beSmrg  else
73942a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
73952a51b5beSmrgyes:)
73962a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
73972a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73982a51b5beSmrgac_tool_warned=yes ;;
73992a51b5beSmrgesac
74002a51b5beSmrg    DSYMUTIL=$ac_ct_DSYMUTIL
74012a51b5beSmrg  fi
74022a51b5beSmrgelse
74032a51b5beSmrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
74042a51b5beSmrgfi
74052a51b5beSmrg
74062a51b5beSmrg    if test -n "$ac_tool_prefix"; then
74072a51b5beSmrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
74082a51b5beSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
74092a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
74102a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
74112a51b5beSmrgif test "${ac_cv_prog_NMEDIT+set}" = set; then
74122a51b5beSmrg  $as_echo_n "(cached) " >&6
74132a51b5beSmrgelse
74142a51b5beSmrg  if test -n "$NMEDIT"; then
74152a51b5beSmrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
74162a51b5beSmrgelse
74172a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74182a51b5beSmrgfor as_dir in $PATH
74192a51b5beSmrgdo
74202a51b5beSmrg  IFS=$as_save_IFS
74212a51b5beSmrg  test -z "$as_dir" && as_dir=.
74222a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
74232a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
74242a51b5beSmrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
74252a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
74262a51b5beSmrg    break 2
74272a51b5beSmrg  fi
74282a51b5beSmrgdone
74292a51b5beSmrgdone
74302a51b5beSmrgIFS=$as_save_IFS
74312a51b5beSmrg
74322a51b5beSmrgfi
74332a51b5beSmrgfi
74342a51b5beSmrgNMEDIT=$ac_cv_prog_NMEDIT
74352a51b5beSmrgif test -n "$NMEDIT"; then
74362a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
74372a51b5beSmrg$as_echo "$NMEDIT" >&6; }
74382a51b5beSmrgelse
74392a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
74402a51b5beSmrg$as_echo "no" >&6; }
74412a51b5beSmrgfi
74422a51b5beSmrg
74432a51b5beSmrg
744432b578d3Smrgfi
74452a51b5beSmrgif test -z "$ac_cv_prog_NMEDIT"; then
74462a51b5beSmrg  ac_ct_NMEDIT=$NMEDIT
74472a51b5beSmrg  # Extract the first word of "nmedit", so it can be a program name with args.
74482a51b5beSmrgset dummy nmedit; ac_word=$2
74492a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
74502a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
74512a51b5beSmrgif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
74522a51b5beSmrg  $as_echo_n "(cached) " >&6
74532a51b5beSmrgelse
74542a51b5beSmrg  if test -n "$ac_ct_NMEDIT"; then
74552a51b5beSmrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
74562a51b5beSmrgelse
74572a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74582a51b5beSmrgfor as_dir in $PATH
74592a51b5beSmrgdo
74602a51b5beSmrg  IFS=$as_save_IFS
74612a51b5beSmrg  test -z "$as_dir" && as_dir=.
74622a51b5beSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
74632a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
74642a51b5beSmrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
74652a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
74662a51b5beSmrg    break 2
74672a51b5beSmrg  fi
74682a51b5beSmrgdone
74692a51b5beSmrgdone
74702a51b5beSmrgIFS=$as_save_IFS
747132b578d3Smrg
74722a51b5beSmrgfi
74732a51b5beSmrgfi
74742a51b5beSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
74752a51b5beSmrgif test -n "$ac_ct_NMEDIT"; then
74762a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
74772a51b5beSmrg$as_echo "$ac_ct_NMEDIT" >&6; }
747832b578d3Smrgelse
74792a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
74802a51b5beSmrg$as_echo "no" >&6; }
748132b578d3Smrgfi
748232b578d3Smrg
74832a51b5beSmrg  if test "x$ac_ct_NMEDIT" = x; then
74842a51b5beSmrg    NMEDIT=":"
74852a51b5beSmrg  else
74862a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
74872a51b5beSmrgyes:)
74882a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
74892a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
74902a51b5beSmrgac_tool_warned=yes ;;
74912a51b5beSmrgesac
74922a51b5beSmrg    NMEDIT=$ac_ct_NMEDIT
74932a51b5beSmrg  fi
749432b578d3Smrgelse
74952a51b5beSmrg  NMEDIT="$ac_cv_prog_NMEDIT"
74962a51b5beSmrgfi
749732b578d3Smrg
749832b578d3Smrg
74992a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
75002a51b5beSmrg$as_echo_n "checking for -single_module linker flag... " >&6; }
75012a51b5beSmrgif test "${lt_cv_apple_cc_single_mod+set}" = set; then
75022a51b5beSmrg  $as_echo_n "(cached) " >&6
75032a51b5beSmrgelse
75042a51b5beSmrg  lt_cv_apple_cc_single_mod=no
75052a51b5beSmrg      if test -z "${LT_MULTI_MODULE}"; then
75062a51b5beSmrg   # By default we will add the -single_module flag. You can override
75072a51b5beSmrg   # by either setting the environment variable LT_MULTI_MODULE
75082a51b5beSmrg   # non-empty at configure time, or by adding -multi_module to the
75092a51b5beSmrg   # link flags.
75102a51b5beSmrg   echo "int foo(void){return 1;}" > conftest.c
75112a51b5beSmrg   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
75122a51b5beSmrg     -dynamiclib ${wl}-single_module conftest.c
75132a51b5beSmrg   if test -f libconftest.dylib; then
75142a51b5beSmrg     lt_cv_apple_cc_single_mod=yes
75152a51b5beSmrg     rm -rf libconftest.dylib*
75162a51b5beSmrg   fi
75172a51b5beSmrg   rm conftest.c
751832b578d3Smrg      fi
751932b578d3Smrgfi
75202a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
75212a51b5beSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
75222a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
75232a51b5beSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
75242a51b5beSmrgif test "${lt_cv_ld_exported_symbols_list+set}" = set; then
75252a51b5beSmrg  $as_echo_n "(cached) " >&6
75262a51b5beSmrgelse
75272a51b5beSmrg  lt_cv_ld_exported_symbols_list=no
75282a51b5beSmrg      save_LDFLAGS=$LDFLAGS
75292a51b5beSmrg      echo "_main" > conftest.sym
75302a51b5beSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
75312a51b5beSmrg      cat >conftest.$ac_ext <<_ACEOF
75322a51b5beSmrg/* confdefs.h.  */
75332a51b5beSmrg_ACEOF
75342a51b5beSmrgcat confdefs.h >>conftest.$ac_ext
75352a51b5beSmrgcat >>conftest.$ac_ext <<_ACEOF
75362a51b5beSmrg/* end confdefs.h.  */
753732b578d3Smrg
75382a51b5beSmrgint
75392a51b5beSmrgmain ()
75402a51b5beSmrg{
75412a51b5beSmrg
75422a51b5beSmrg  ;
75432a51b5beSmrg  return 0;
75442a51b5beSmrg}
75452a51b5beSmrg_ACEOF
75462a51b5beSmrgrm -f conftest.$ac_objext conftest$ac_exeext
75472a51b5beSmrgif { (ac_try="$ac_link"
75482a51b5beSmrgcase "(($ac_try" in
75492a51b5beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75502a51b5beSmrg  *) ac_try_echo=$ac_try;;
75512a51b5beSmrgesac
75522a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75532a51b5beSmrg$as_echo "$ac_try_echo") >&5
75542a51b5beSmrg  (eval "$ac_link") 2>conftest.er1
75552a51b5beSmrg  ac_status=$?
75562a51b5beSmrg  grep -v '^ *+' conftest.er1 >conftest.err
75572a51b5beSmrg  rm -f conftest.er1
75582a51b5beSmrg  cat conftest.err >&5
75592a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75602a51b5beSmrg  (exit $ac_status); } && {
75612a51b5beSmrg	 test -z "$ac_c_werror_flag" ||
75622a51b5beSmrg	 test ! -s conftest.err
75632a51b5beSmrg       } && test -s conftest$ac_exeext && {
75642a51b5beSmrg	 test "$cross_compiling" = yes ||
75652a51b5beSmrg	 $as_test_x conftest$ac_exeext
75662a51b5beSmrg       }; then
75672a51b5beSmrg  lt_cv_ld_exported_symbols_list=yes
756832b578d3Smrgelse
75692a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
75702a51b5beSmrgsed 's/^/| /' conftest.$ac_ext >&5
75712a51b5beSmrg
75722a51b5beSmrg	lt_cv_ld_exported_symbols_list=no
757332b578d3Smrgfi
757432b578d3Smrg
75752a51b5beSmrgrm -rf conftest.dSYM
75762a51b5beSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75772a51b5beSmrg      conftest$ac_exeext conftest.$ac_ext
75782a51b5beSmrg   LDFLAGS="$save_LDFLAGS"
75792a51b5beSmrg
758032b578d3Smrgfi
75812a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
75822a51b5beSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
75832a51b5beSmrg    case $host_os in
75842a51b5beSmrg    rhapsody* | darwin1.[0123])
75852a51b5beSmrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
75862a51b5beSmrg    darwin1.*)
75872a51b5beSmrg     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
75882a51b5beSmrg    darwin*)
75892a51b5beSmrg      # if running on 10.5 or later, the deployment target defaults
75902a51b5beSmrg      # to the OS version, if on x86, and 10.4, the deployment
75912a51b5beSmrg      # target defaults to 10.4. Don't you love it?
75922a51b5beSmrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
75932a51b5beSmrg   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
75942a51b5beSmrg     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
75952a51b5beSmrg   10.[012]*)
75962a51b5beSmrg     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
75972a51b5beSmrg   10.*)
75982a51b5beSmrg     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
75992a51b5beSmrg      esac
76002a51b5beSmrg    ;;
76012a51b5beSmrg  esac
76022a51b5beSmrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
76032a51b5beSmrg      _lt_dar_single_mod='$single_module'
76042a51b5beSmrg    fi
76052a51b5beSmrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
76062a51b5beSmrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
76072a51b5beSmrg    else
76082a51b5beSmrg      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
76092a51b5beSmrg    fi
76102a51b5beSmrg    if test "$DSYMUTIL" != ":"; then
76112a51b5beSmrg      _lt_dsymutil="~$DSYMUTIL \$lib || :"
76122a51b5beSmrg    else
76132a51b5beSmrg      _lt_dsymutil=
76142a51b5beSmrg    fi
76152a51b5beSmrg    ;;
76162a51b5beSmrg  esac
761732b578d3Smrg
761832b578d3Smrg
761932b578d3Smrgenable_dlopen=no
762032b578d3Smrgenable_win32_dll=no
762132b578d3Smrg
762232b578d3Smrg# Check whether --enable-libtool-lock was given.
762332b578d3Smrgif test "${enable_libtool_lock+set}" = set; then
762432b578d3Smrg  enableval=$enable_libtool_lock;
762532b578d3Smrgfi
762632b578d3Smrg
762732b578d3Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
762832b578d3Smrg
762932b578d3Smrg
763032b578d3Smrg# Check whether --with-pic was given.
763132b578d3Smrgif test "${with_pic+set}" = set; then
763232b578d3Smrg  withval=$with_pic; pic_mode="$withval"
763332b578d3Smrgelse
763432b578d3Smrg  pic_mode=default
763532b578d3Smrgfi
763632b578d3Smrg
763732b578d3Smrgtest -z "$pic_mode" && pic_mode=default
763832b578d3Smrg
763932b578d3Smrg# Use C for the default configuration in the libtool script
764032b578d3Smrgtagname=
764132b578d3Smrglt_save_CC="$CC"
764232b578d3Smrgac_ext=c
764332b578d3Smrgac_cpp='$CPP $CPPFLAGS'
764432b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
764532b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
764632b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
764732b578d3Smrg
764832b578d3Smrg
764932b578d3Smrg# Source file extension for C test sources.
765032b578d3Smrgac_ext=c
765132b578d3Smrg
765232b578d3Smrg# Object file extension for compiled C test sources.
765332b578d3Smrgobjext=o
765432b578d3Smrgobjext=$objext
765532b578d3Smrg
765632b578d3Smrg# Code to be used in simple compile tests
76572a51b5beSmrglt_simple_compile_test_code="int some_variable = 0;"
765832b578d3Smrg
765932b578d3Smrg# Code to be used in simple link tests
76602a51b5beSmrglt_simple_link_test_code='int main(){return(0);}'
766132b578d3Smrg
766232b578d3Smrg
766332b578d3Smrg# If no C compiler was specified, use CC.
766432b578d3SmrgLTCC=${LTCC-"$CC"}
766532b578d3Smrg
766632b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
766732b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
766832b578d3Smrg
766932b578d3Smrg# Allow CC to be a program name with arguments.
767032b578d3Smrgcompiler=$CC
767132b578d3Smrg
767232b578d3Smrg
767332b578d3Smrg# save warnings/boilerplate of simple test code
767432b578d3Smrgac_outfile=conftest.$ac_objext
76752a51b5beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
767632b578d3Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
767732b578d3Smrg_lt_compiler_boilerplate=`cat conftest.err`
767832b578d3Smrg$rm conftest*
767932b578d3Smrg
768032b578d3Smrgac_outfile=conftest.$ac_objext
76812a51b5beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
768232b578d3Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
768332b578d3Smrg_lt_linker_boilerplate=`cat conftest.err`
76842a51b5beSmrg$rm -r conftest*
768532b578d3Smrg
768632b578d3Smrg
768732b578d3Smrg
768832b578d3Smrglt_prog_compiler_no_builtin_flag=
768932b578d3Smrg
769032b578d3Smrgif test "$GCC" = yes; then
769132b578d3Smrg  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
769232b578d3Smrg
769332b578d3Smrg
76942a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
76952a51b5beSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
769632b578d3Smrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
76972a51b5beSmrg  $as_echo_n "(cached) " >&6
769832b578d3Smrgelse
769932b578d3Smrg  lt_cv_prog_compiler_rtti_exceptions=no
770032b578d3Smrg  ac_outfile=conftest.$ac_objext
77012a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
770232b578d3Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
770332b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
770432b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
770532b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
770632b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
770732b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
770832b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
770932b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
771032b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
771132b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
77122a51b5beSmrg   (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
771332b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
771432b578d3Smrg   ac_status=$?
771532b578d3Smrg   cat conftest.err >&5
77162a51b5beSmrg   echo "$as_me:7716: \$? = $ac_status" >&5
771732b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
771832b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
771932b578d3Smrg     # So say no if there are warnings other than the usual output.
772032b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
772132b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
772232b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
772332b578d3Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
772432b578d3Smrg     fi
772532b578d3Smrg   fi
772632b578d3Smrg   $rm conftest*
772732b578d3Smrg
772832b578d3Smrgfi
77292a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
77302a51b5beSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
773132b578d3Smrg
773232b578d3Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
773332b578d3Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
773432b578d3Smrgelse
773532b578d3Smrg    :
773632b578d3Smrgfi
773732b578d3Smrg
773832b578d3Smrgfi
773932b578d3Smrg
774032b578d3Smrglt_prog_compiler_wl=
774132b578d3Smrglt_prog_compiler_pic=
774232b578d3Smrglt_prog_compiler_static=
774332b578d3Smrg
77442a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
77452a51b5beSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
774632b578d3Smrg
774732b578d3Smrg  if test "$GCC" = yes; then
774832b578d3Smrg    lt_prog_compiler_wl='-Wl,'
774932b578d3Smrg    lt_prog_compiler_static='-static'
775032b578d3Smrg
775132b578d3Smrg    case $host_os in
775232b578d3Smrg      aix*)
775332b578d3Smrg      # All AIX code is PIC.
775432b578d3Smrg      if test "$host_cpu" = ia64; then
775532b578d3Smrg	# AIX 5 now supports IA64 processor
775632b578d3Smrg	lt_prog_compiler_static='-Bstatic'
775732b578d3Smrg      fi
775832b578d3Smrg      ;;
775932b578d3Smrg
776032b578d3Smrg    amigaos*)
776132b578d3Smrg      # FIXME: we need at least 68020 code to build shared libraries, but
776232b578d3Smrg      # adding the `-m68020' flag to GCC prevents building anything better,
776332b578d3Smrg      # like `-m68040'.
776432b578d3Smrg      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
776532b578d3Smrg      ;;
776632b578d3Smrg
77672a51b5beSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
776832b578d3Smrg      # PIC is the default for these OSes.
776932b578d3Smrg      ;;
777032b578d3Smrg
77712a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
777232b578d3Smrg      # This hack is so that the source file can tell whether it is being
777332b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
77742a51b5beSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
77752a51b5beSmrg      # (--disable-auto-import) libraries
777632b578d3Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
777732b578d3Smrg      ;;
777832b578d3Smrg
777932b578d3Smrg    darwin* | rhapsody*)
778032b578d3Smrg      # PIC is the default on this platform
778132b578d3Smrg      # Common symbols not allowed in MH_DYLIB files
778232b578d3Smrg      lt_prog_compiler_pic='-fno-common'
778332b578d3Smrg      ;;
778432b578d3Smrg
77852a51b5beSmrg    interix[3-9]*)
778632b578d3Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
778732b578d3Smrg      # Instead, we relocate shared libraries at runtime.
778832b578d3Smrg      ;;
778932b578d3Smrg
779032b578d3Smrg    msdosdjgpp*)
779132b578d3Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
779232b578d3Smrg      # on systems that don't support them.
779332b578d3Smrg      lt_prog_compiler_can_build_shared=no
779432b578d3Smrg      enable_shared=no
779532b578d3Smrg      ;;
779632b578d3Smrg
779732b578d3Smrg    sysv4*MP*)
779832b578d3Smrg      if test -d /usr/nec; then
779932b578d3Smrg	lt_prog_compiler_pic=-Kconform_pic
780032b578d3Smrg      fi
780132b578d3Smrg      ;;
780232b578d3Smrg
780332b578d3Smrg    hpux*)
780432b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
780532b578d3Smrg      # not for PA HP-UX.
780632b578d3Smrg      case $host_cpu in
780732b578d3Smrg      hppa*64*|ia64*)
780832b578d3Smrg	# +Z the default
780932b578d3Smrg	;;
781032b578d3Smrg      *)
781132b578d3Smrg	lt_prog_compiler_pic='-fPIC'
781232b578d3Smrg	;;
781332b578d3Smrg      esac
781432b578d3Smrg      ;;
781532b578d3Smrg
781632b578d3Smrg    *)
781732b578d3Smrg      lt_prog_compiler_pic='-fPIC'
781832b578d3Smrg      ;;
781932b578d3Smrg    esac
782032b578d3Smrg  else
782132b578d3Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
782232b578d3Smrg    case $host_os in
782332b578d3Smrg    aix*)
782432b578d3Smrg      lt_prog_compiler_wl='-Wl,'
782532b578d3Smrg      if test "$host_cpu" = ia64; then
782632b578d3Smrg	# AIX 5 now supports IA64 processor
782732b578d3Smrg	lt_prog_compiler_static='-Bstatic'
782832b578d3Smrg      else
782932b578d3Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
783032b578d3Smrg      fi
783132b578d3Smrg      ;;
783232b578d3Smrg      darwin*)
783332b578d3Smrg        # PIC is the default on this platform
783432b578d3Smrg        # Common symbols not allowed in MH_DYLIB files
783532b578d3Smrg       case $cc_basename in
783632b578d3Smrg         xlc*)
783732b578d3Smrg         lt_prog_compiler_pic='-qnocommon'
783832b578d3Smrg         lt_prog_compiler_wl='-Wl,'
783932b578d3Smrg         ;;
784032b578d3Smrg       esac
784132b578d3Smrg       ;;
784232b578d3Smrg
78432a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
784432b578d3Smrg      # This hack is so that the source file can tell whether it is being
784532b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
784632b578d3Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
784732b578d3Smrg      ;;
784832b578d3Smrg
784932b578d3Smrg    hpux9* | hpux10* | hpux11*)
785032b578d3Smrg      lt_prog_compiler_wl='-Wl,'
785132b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
785232b578d3Smrg      # not for PA HP-UX.
785332b578d3Smrg      case $host_cpu in
785432b578d3Smrg      hppa*64*|ia64*)
785532b578d3Smrg	# +Z the default
785632b578d3Smrg	;;
785732b578d3Smrg      *)
785832b578d3Smrg	lt_prog_compiler_pic='+Z'
785932b578d3Smrg	;;
786032b578d3Smrg      esac
786132b578d3Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
786232b578d3Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
786332b578d3Smrg      ;;
786432b578d3Smrg
786532b578d3Smrg    irix5* | irix6* | nonstopux*)
786632b578d3Smrg      lt_prog_compiler_wl='-Wl,'
786732b578d3Smrg      # PIC (with -KPIC) is the default.
786832b578d3Smrg      lt_prog_compiler_static='-non_shared'
786932b578d3Smrg      ;;
787032b578d3Smrg
787132b578d3Smrg    newsos6)
787232b578d3Smrg      lt_prog_compiler_pic='-KPIC'
787332b578d3Smrg      lt_prog_compiler_static='-Bstatic'
787432b578d3Smrg      ;;
787532b578d3Smrg
78762a51b5beSmrg    linux* | k*bsd*-gnu)
787732b578d3Smrg      case $cc_basename in
787832b578d3Smrg      icc* | ecc*)
787932b578d3Smrg	lt_prog_compiler_wl='-Wl,'
788032b578d3Smrg	lt_prog_compiler_pic='-KPIC'
788132b578d3Smrg	lt_prog_compiler_static='-static'
788232b578d3Smrg        ;;
788332b578d3Smrg      pgcc* | pgf77* | pgf90* | pgf95*)
788432b578d3Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
788532b578d3Smrg	# which looks to be a dead project)
788632b578d3Smrg	lt_prog_compiler_wl='-Wl,'
788732b578d3Smrg	lt_prog_compiler_pic='-fpic'
788832b578d3Smrg	lt_prog_compiler_static='-Bstatic'
788932b578d3Smrg        ;;
789032b578d3Smrg      ccc*)
789132b578d3Smrg        lt_prog_compiler_wl='-Wl,'
789232b578d3Smrg        # All Alpha code is PIC.
789332b578d3Smrg        lt_prog_compiler_static='-non_shared'
789432b578d3Smrg        ;;
78952a51b5beSmrg      *)
78962a51b5beSmrg        case `$CC -V 2>&1 | sed 5q` in
78972a51b5beSmrg	*Sun\ C*)
78982a51b5beSmrg	  # Sun C 5.9
78992a51b5beSmrg	  lt_prog_compiler_pic='-KPIC'
79002a51b5beSmrg	  lt_prog_compiler_static='-Bstatic'
79012a51b5beSmrg	  lt_prog_compiler_wl='-Wl,'
79022a51b5beSmrg	  ;;
79032a51b5beSmrg	*Sun\ F*)
79042a51b5beSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
79052a51b5beSmrg	  lt_prog_compiler_pic='-KPIC'
79062a51b5beSmrg	  lt_prog_compiler_static='-Bstatic'
79072a51b5beSmrg	  lt_prog_compiler_wl=''
79082a51b5beSmrg	  ;;
79092a51b5beSmrg	esac
79102a51b5beSmrg	;;
791132b578d3Smrg      esac
791232b578d3Smrg      ;;
791332b578d3Smrg
791432b578d3Smrg    osf3* | osf4* | osf5*)
791532b578d3Smrg      lt_prog_compiler_wl='-Wl,'
791632b578d3Smrg      # All OSF/1 code is PIC.
791732b578d3Smrg      lt_prog_compiler_static='-non_shared'
791832b578d3Smrg      ;;
791932b578d3Smrg
79202a51b5beSmrg    rdos*)
79212a51b5beSmrg      lt_prog_compiler_static='-non_shared'
79222a51b5beSmrg      ;;
79232a51b5beSmrg
792432b578d3Smrg    solaris*)
792532b578d3Smrg      lt_prog_compiler_pic='-KPIC'
792632b578d3Smrg      lt_prog_compiler_static='-Bstatic'
792732b578d3Smrg      case $cc_basename in
792832b578d3Smrg      f77* | f90* | f95*)
792932b578d3Smrg	lt_prog_compiler_wl='-Qoption ld ';;
793032b578d3Smrg      *)
793132b578d3Smrg	lt_prog_compiler_wl='-Wl,';;
793232b578d3Smrg      esac
793332b578d3Smrg      ;;
793432b578d3Smrg
793532b578d3Smrg    sunos4*)
793632b578d3Smrg      lt_prog_compiler_wl='-Qoption ld '
793732b578d3Smrg      lt_prog_compiler_pic='-PIC'
793832b578d3Smrg      lt_prog_compiler_static='-Bstatic'
793932b578d3Smrg      ;;
794032b578d3Smrg
794132b578d3Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
794232b578d3Smrg      lt_prog_compiler_wl='-Wl,'
794332b578d3Smrg      lt_prog_compiler_pic='-KPIC'
794432b578d3Smrg      lt_prog_compiler_static='-Bstatic'
794532b578d3Smrg      ;;
794632b578d3Smrg
794732b578d3Smrg    sysv4*MP*)
794832b578d3Smrg      if test -d /usr/nec ;then
794932b578d3Smrg	lt_prog_compiler_pic='-Kconform_pic'
795032b578d3Smrg	lt_prog_compiler_static='-Bstatic'
795132b578d3Smrg      fi
795232b578d3Smrg      ;;
795332b578d3Smrg
795432b578d3Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
795532b578d3Smrg      lt_prog_compiler_wl='-Wl,'
795632b578d3Smrg      lt_prog_compiler_pic='-KPIC'
795732b578d3Smrg      lt_prog_compiler_static='-Bstatic'
795832b578d3Smrg      ;;
795932b578d3Smrg
796032b578d3Smrg    unicos*)
796132b578d3Smrg      lt_prog_compiler_wl='-Wl,'
796232b578d3Smrg      lt_prog_compiler_can_build_shared=no
796332b578d3Smrg      ;;
796432b578d3Smrg
796532b578d3Smrg    uts4*)
796632b578d3Smrg      lt_prog_compiler_pic='-pic'
796732b578d3Smrg      lt_prog_compiler_static='-Bstatic'
796832b578d3Smrg      ;;
796932b578d3Smrg
797032b578d3Smrg    *)
797132b578d3Smrg      lt_prog_compiler_can_build_shared=no
797232b578d3Smrg      ;;
797332b578d3Smrg    esac
797432b578d3Smrg  fi
797532b578d3Smrg
79762a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
79772a51b5beSmrg$as_echo "$lt_prog_compiler_pic" >&6; }
797832b578d3Smrg
797932b578d3Smrg#
798032b578d3Smrg# Check to make sure the PIC flag actually works.
798132b578d3Smrg#
798232b578d3Smrgif test -n "$lt_prog_compiler_pic"; then
798332b578d3Smrg
79842a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
79852a51b5beSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
79862a51b5beSmrgif test "${lt_cv_prog_compiler_pic_works+set}" = set; then
79872a51b5beSmrg  $as_echo_n "(cached) " >&6
798832b578d3Smrgelse
79892a51b5beSmrg  lt_cv_prog_compiler_pic_works=no
799032b578d3Smrg  ac_outfile=conftest.$ac_objext
79912a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
799232b578d3Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
799332b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
799432b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
799532b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
799632b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
799732b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
799832b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
799932b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
800032b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
800132b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
80022a51b5beSmrg   (eval echo "\"\$as_me:8002: $lt_compile\"" >&5)
800332b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
800432b578d3Smrg   ac_status=$?
800532b578d3Smrg   cat conftest.err >&5
80062a51b5beSmrg   echo "$as_me:8006: \$? = $ac_status" >&5
800732b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
800832b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
800932b578d3Smrg     # So say no if there are warnings other than the usual output.
801032b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
801132b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
801232b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80132a51b5beSmrg       lt_cv_prog_compiler_pic_works=yes
801432b578d3Smrg     fi
801532b578d3Smrg   fi
801632b578d3Smrg   $rm conftest*
801732b578d3Smrg
801832b578d3Smrgfi
80192a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
80202a51b5beSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
802132b578d3Smrg
80222a51b5beSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
802332b578d3Smrg    case $lt_prog_compiler_pic in
802432b578d3Smrg     "" | " "*) ;;
802532b578d3Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
802632b578d3Smrg     esac
802732b578d3Smrgelse
802832b578d3Smrg    lt_prog_compiler_pic=
802932b578d3Smrg     lt_prog_compiler_can_build_shared=no
803032b578d3Smrgfi
803132b578d3Smrg
803232b578d3Smrgfi
803332b578d3Smrgcase $host_os in
803432b578d3Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
803532b578d3Smrg  *djgpp*)
803632b578d3Smrg    lt_prog_compiler_pic=
803732b578d3Smrg    ;;
803832b578d3Smrg  *)
803932b578d3Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
804032b578d3Smrg    ;;
804132b578d3Smrgesac
804232b578d3Smrg
804332b578d3Smrg#
804432b578d3Smrg# Check to make sure the static flag actually works.
804532b578d3Smrg#
804632b578d3Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
80472a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
80482a51b5beSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
80492a51b5beSmrgif test "${lt_cv_prog_compiler_static_works+set}" = set; then
80502a51b5beSmrg  $as_echo_n "(cached) " >&6
805132b578d3Smrgelse
80522a51b5beSmrg  lt_cv_prog_compiler_static_works=no
805332b578d3Smrg   save_LDFLAGS="$LDFLAGS"
805432b578d3Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
80552a51b5beSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
805632b578d3Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
805732b578d3Smrg     # The linker can only warn and ignore the option if not recognized
805832b578d3Smrg     # So say no if there are warnings
805932b578d3Smrg     if test -s conftest.err; then
806032b578d3Smrg       # Append any errors to the config.log.
806132b578d3Smrg       cat conftest.err 1>&5
806232b578d3Smrg       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
806332b578d3Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
806432b578d3Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
80652a51b5beSmrg         lt_cv_prog_compiler_static_works=yes
806632b578d3Smrg       fi
806732b578d3Smrg     else
80682a51b5beSmrg       lt_cv_prog_compiler_static_works=yes
806932b578d3Smrg     fi
807032b578d3Smrg   fi
80712a51b5beSmrg   $rm -r conftest*
807232b578d3Smrg   LDFLAGS="$save_LDFLAGS"
807332b578d3Smrg
807432b578d3Smrgfi
80752a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
80762a51b5beSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
807732b578d3Smrg
80782a51b5beSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
807932b578d3Smrg    :
808032b578d3Smrgelse
808132b578d3Smrg    lt_prog_compiler_static=
808232b578d3Smrgfi
808332b578d3Smrg
808432b578d3Smrg
80852a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
80862a51b5beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
808732b578d3Smrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then
80882a51b5beSmrg  $as_echo_n "(cached) " >&6
808932b578d3Smrgelse
809032b578d3Smrg  lt_cv_prog_compiler_c_o=no
809132b578d3Smrg   $rm -r conftest 2>/dev/null
809232b578d3Smrg   mkdir conftest
809332b578d3Smrg   cd conftest
809432b578d3Smrg   mkdir out
80952a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
809632b578d3Smrg
809732b578d3Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
809832b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
809932b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
810032b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
810132b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
810232b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
810332b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
810432b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
810532b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
81062a51b5beSmrg   (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
810732b578d3Smrg   (eval "$lt_compile" 2>out/conftest.err)
810832b578d3Smrg   ac_status=$?
810932b578d3Smrg   cat out/conftest.err >&5
81102a51b5beSmrg   echo "$as_me:8110: \$? = $ac_status" >&5
811132b578d3Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
811232b578d3Smrg   then
811332b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
811432b578d3Smrg     # So say no if there are warnings
811532b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
811632b578d3Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
811732b578d3Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
811832b578d3Smrg       lt_cv_prog_compiler_c_o=yes
811932b578d3Smrg     fi
812032b578d3Smrg   fi
812132b578d3Smrg   chmod u+w . 2>&5
812232b578d3Smrg   $rm conftest*
812332b578d3Smrg   # SGI C++ compiler will create directory out/ii_files/ for
812432b578d3Smrg   # template instantiation
812532b578d3Smrg   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
812632b578d3Smrg   $rm out/* && rmdir out
812732b578d3Smrg   cd ..
812832b578d3Smrg   rmdir conftest
812932b578d3Smrg   $rm conftest*
813032b578d3Smrg
813132b578d3Smrgfi
81322a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
81332a51b5beSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
813432b578d3Smrg
813532b578d3Smrg
813632b578d3Smrghard_links="nottested"
813732b578d3Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
813832b578d3Smrg  # do not overwrite the value of need_locks provided by the user
81392a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
81402a51b5beSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
814132b578d3Smrg  hard_links=yes
814232b578d3Smrg  $rm conftest*
814332b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
814432b578d3Smrg  touch conftest.a
814532b578d3Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
814632b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
81472a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
81482a51b5beSmrg$as_echo "$hard_links" >&6; }
814932b578d3Smrg  if test "$hard_links" = no; then
81502a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
81512a51b5beSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
815232b578d3Smrg    need_locks=warn
815332b578d3Smrg  fi
815432b578d3Smrgelse
815532b578d3Smrg  need_locks=no
815632b578d3Smrgfi
815732b578d3Smrg
81582a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
81592a51b5beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
816032b578d3Smrg
816132b578d3Smrg  runpath_var=
816232b578d3Smrg  allow_undefined_flag=
816332b578d3Smrg  enable_shared_with_static_runtimes=no
816432b578d3Smrg  archive_cmds=
816532b578d3Smrg  archive_expsym_cmds=
816632b578d3Smrg  old_archive_From_new_cmds=
816732b578d3Smrg  old_archive_from_expsyms_cmds=
816832b578d3Smrg  export_dynamic_flag_spec=
816932b578d3Smrg  whole_archive_flag_spec=
817032b578d3Smrg  thread_safe_flag_spec=
817132b578d3Smrg  hardcode_libdir_flag_spec=
817232b578d3Smrg  hardcode_libdir_flag_spec_ld=
817332b578d3Smrg  hardcode_libdir_separator=
817432b578d3Smrg  hardcode_direct=no
817532b578d3Smrg  hardcode_minus_L=no
817632b578d3Smrg  hardcode_shlibpath_var=unsupported
817732b578d3Smrg  link_all_deplibs=unknown
817832b578d3Smrg  hardcode_automatic=no
817932b578d3Smrg  module_cmds=
818032b578d3Smrg  module_expsym_cmds=
818132b578d3Smrg  always_export_symbols=no
818232b578d3Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
818332b578d3Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
818432b578d3Smrg  # included in the symbol list
818532b578d3Smrg  include_expsyms=
818632b578d3Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
818732b578d3Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
818832b578d3Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
818932b578d3Smrg  # as well as any symbol that contains `d'.
81902a51b5beSmrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
819132b578d3Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
819232b578d3Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
819332b578d3Smrg  # the symbol is explicitly referenced.  Since portable code cannot
819432b578d3Smrg  # rely on this symbol name, it's probably fine to never include it in
819532b578d3Smrg  # preloaded symbol tables.
81962a51b5beSmrg  # Exclude shared library initialization/finalization symbols.
819732b578d3Smrg  extract_expsyms_cmds=
819832b578d3Smrg  # Just being paranoid about ensuring that cc_basename is set.
819932b578d3Smrg  for cc_temp in $compiler""; do
820032b578d3Smrg  case $cc_temp in
820132b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
820232b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
820332b578d3Smrg    \-*) ;;
820432b578d3Smrg    *) break;;
820532b578d3Smrg  esac
820632b578d3Smrgdone
820732b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
820832b578d3Smrg
820932b578d3Smrg  case $host_os in
821032b578d3Smrg  cygwin* | mingw* | pw32*)
821132b578d3Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
821232b578d3Smrg    # When not using gcc, we currently assume that we are using
821332b578d3Smrg    # Microsoft Visual C++.
821432b578d3Smrg    if test "$GCC" != yes; then
821532b578d3Smrg      with_gnu_ld=no
821632b578d3Smrg    fi
821732b578d3Smrg    ;;
821832b578d3Smrg  interix*)
821932b578d3Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
822032b578d3Smrg    with_gnu_ld=yes
822132b578d3Smrg    ;;
822232b578d3Smrg  openbsd*)
822332b578d3Smrg    with_gnu_ld=no
822432b578d3Smrg    ;;
822532b578d3Smrg  esac
822632b578d3Smrg
822732b578d3Smrg  ld_shlibs=yes
822832b578d3Smrg  if test "$with_gnu_ld" = yes; then
822932b578d3Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
823032b578d3Smrg    wlarc='${wl}'
823132b578d3Smrg
823232b578d3Smrg    # Set some defaults for GNU ld with shared library support. These
823332b578d3Smrg    # are reset later if shared libraries are not supported. Putting them
823432b578d3Smrg    # here allows them to be overridden if necessary.
823532b578d3Smrg    runpath_var=LD_RUN_PATH
823632b578d3Smrg    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
823732b578d3Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
823832b578d3Smrg    # ancient GNU ld didn't support --whole-archive et. al.
823932b578d3Smrg    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
824032b578d3Smrg	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
824132b578d3Smrg      else
824232b578d3Smrg  	whole_archive_flag_spec=
824332b578d3Smrg    fi
824432b578d3Smrg    supports_anon_versioning=no
824532b578d3Smrg    case `$LD -v 2>/dev/null` in
824632b578d3Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
824732b578d3Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
824832b578d3Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
824932b578d3Smrg      *\ 2.11.*) ;; # other 2.11 versions
825032b578d3Smrg      *) supports_anon_versioning=yes ;;
825132b578d3Smrg    esac
825232b578d3Smrg
825332b578d3Smrg    # See if GNU ld supports shared libraries.
825432b578d3Smrg    case $host_os in
82552a51b5beSmrg    aix[3-9]*)
825632b578d3Smrg      # On AIX/PPC, the GNU linker is very broken
825732b578d3Smrg      if test "$host_cpu" != ia64; then
825832b578d3Smrg	ld_shlibs=no
825932b578d3Smrg	cat <<EOF 1>&2
826032b578d3Smrg
826132b578d3Smrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
826232b578d3Smrg*** to be unable to reliably create shared libraries on AIX.
826332b578d3Smrg*** Therefore, libtool is disabling shared libraries support.  If you
826432b578d3Smrg*** really care for shared libraries, you may want to modify your PATH
826532b578d3Smrg*** so that a non-GNU linker is found, and then restart.
826632b578d3Smrg
826732b578d3SmrgEOF
826832b578d3Smrg      fi
826932b578d3Smrg      ;;
827032b578d3Smrg
827132b578d3Smrg    amigaos*)
827232b578d3Smrg      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)'
827332b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
827432b578d3Smrg      hardcode_minus_L=yes
827532b578d3Smrg
827632b578d3Smrg      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
827732b578d3Smrg      # that the semantics of dynamic libraries on AmigaOS, at least up
827832b578d3Smrg      # to version 4, is to share data among multiple programs linked
827932b578d3Smrg      # with the same dynamic library.  Since this doesn't match the
828032b578d3Smrg      # behavior of shared libraries on other platforms, we can't use
828132b578d3Smrg      # them.
828232b578d3Smrg      ld_shlibs=no
828332b578d3Smrg      ;;
828432b578d3Smrg
828532b578d3Smrg    beos*)
828632b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
828732b578d3Smrg	allow_undefined_flag=unsupported
828832b578d3Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
828932b578d3Smrg	# support --undefined.  This deserves some investigation.  FIXME
829032b578d3Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
829132b578d3Smrg      else
829232b578d3Smrg	ld_shlibs=no
829332b578d3Smrg      fi
829432b578d3Smrg      ;;
829532b578d3Smrg
829632b578d3Smrg    cygwin* | mingw* | pw32*)
829732b578d3Smrg      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
829832b578d3Smrg      # as there is no search path for DLLs.
829932b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
830032b578d3Smrg      allow_undefined_flag=unsupported
830132b578d3Smrg      always_export_symbols=no
830232b578d3Smrg      enable_shared_with_static_runtimes=yes
83032a51b5beSmrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
830432b578d3Smrg
830532b578d3Smrg      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
830632b578d3Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
830732b578d3Smrg	# If the export-symbols file already is a .def file (1st line
830832b578d3Smrg	# is EXPORTS), use it as is; otherwise, prepend...
830932b578d3Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
831032b578d3Smrg	  cp $export_symbols $output_objdir/$soname.def;
831132b578d3Smrg	else
831232b578d3Smrg	  echo EXPORTS > $output_objdir/$soname.def;
831332b578d3Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
831432b578d3Smrg	fi~
831532b578d3Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
831632b578d3Smrg      else
831732b578d3Smrg	ld_shlibs=no
831832b578d3Smrg      fi
831932b578d3Smrg      ;;
832032b578d3Smrg
83212a51b5beSmrg    interix[3-9]*)
832232b578d3Smrg      hardcode_direct=no
832332b578d3Smrg      hardcode_shlibpath_var=no
832432b578d3Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
832532b578d3Smrg      export_dynamic_flag_spec='${wl}-E'
832632b578d3Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
832732b578d3Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
832832b578d3Smrg      # default) and relocated if they conflict, which is a slow very memory
832932b578d3Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
833032b578d3Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
833132b578d3Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
833232b578d3Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
833332b578d3Smrg      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'
833432b578d3Smrg      ;;
833532b578d3Smrg
83362a51b5beSmrg    gnu* | linux* | k*bsd*-gnu)
833732b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
833832b578d3Smrg	tmp_addflag=
833932b578d3Smrg	case $cc_basename,$host_cpu in
834032b578d3Smrg	pgcc*)				# Portland Group C compiler
834132b578d3Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
834232b578d3Smrg	  tmp_addflag=' $pic_flag'
834332b578d3Smrg	  ;;
834432b578d3Smrg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
834532b578d3Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
834632b578d3Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
834732b578d3Smrg	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
834832b578d3Smrg	  tmp_addflag=' -i_dynamic' ;;
834932b578d3Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
835032b578d3Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
835132b578d3Smrg	ifc* | ifort*)			# Intel Fortran compiler
835232b578d3Smrg	  tmp_addflag=' -nofor_main' ;;
835332b578d3Smrg	esac
83542a51b5beSmrg	case `$CC -V 2>&1 | sed 5q` in
83552a51b5beSmrg	*Sun\ C*)			# Sun C 5.9
83562a51b5beSmrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
83572a51b5beSmrg	  tmp_sharedflag='-G' ;;
83582a51b5beSmrg	*Sun\ F*)			# Sun Fortran 8.3
83592a51b5beSmrg	  tmp_sharedflag='-G' ;;
83602a51b5beSmrg	*)
83612a51b5beSmrg	  tmp_sharedflag='-shared' ;;
83622a51b5beSmrg	esac
83632a51b5beSmrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
836432b578d3Smrg
836532b578d3Smrg	if test $supports_anon_versioning = yes; then
836632b578d3Smrg	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
836732b578d3Smrg  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
836832b578d3Smrg  $echo "local: *; };" >> $output_objdir/$libname.ver~
83692a51b5beSmrg	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
837032b578d3Smrg	fi
837132b578d3Smrg      else
837232b578d3Smrg	ld_shlibs=no
837332b578d3Smrg      fi
837432b578d3Smrg      ;;
837532b578d3Smrg
837632b578d3Smrg    netbsd*)
837732b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
837832b578d3Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
837932b578d3Smrg	wlarc=
838032b578d3Smrg      else
838132b578d3Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
838232b578d3Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
838332b578d3Smrg      fi
838432b578d3Smrg      ;;
838532b578d3Smrg
838632b578d3Smrg    solaris*)
838732b578d3Smrg      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
838832b578d3Smrg	ld_shlibs=no
838932b578d3Smrg	cat <<EOF 1>&2
839032b578d3Smrg
839132b578d3Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
839232b578d3Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
839332b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
839432b578d3Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
839532b578d3Smrg*** your PATH or compiler configuration so that the native linker is
839632b578d3Smrg*** used, and then restart.
839732b578d3Smrg
839832b578d3SmrgEOF
839932b578d3Smrg      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
840032b578d3Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
840132b578d3Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
840232b578d3Smrg      else
840332b578d3Smrg	ld_shlibs=no
840432b578d3Smrg      fi
840532b578d3Smrg      ;;
840632b578d3Smrg
840732b578d3Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
840832b578d3Smrg      case `$LD -v 2>&1` in
840932b578d3Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
841032b578d3Smrg	ld_shlibs=no
841132b578d3Smrg	cat <<_LT_EOF 1>&2
841232b578d3Smrg
841332b578d3Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
841432b578d3Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
841532b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
841632b578d3Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
841732b578d3Smrg*** your PATH or compiler configuration so that the native linker is
841832b578d3Smrg*** used, and then restart.
841932b578d3Smrg
842032b578d3Smrg_LT_EOF
842132b578d3Smrg	;;
842232b578d3Smrg	*)
842332b578d3Smrg	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
842432b578d3Smrg	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
842532b578d3Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
842632b578d3Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
842732b578d3Smrg	  else
842832b578d3Smrg	    ld_shlibs=no
842932b578d3Smrg	  fi
843032b578d3Smrg	;;
843132b578d3Smrg      esac
843232b578d3Smrg      ;;
843332b578d3Smrg
843432b578d3Smrg    sunos4*)
843532b578d3Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
843632b578d3Smrg      wlarc=
843732b578d3Smrg      hardcode_direct=yes
843832b578d3Smrg      hardcode_shlibpath_var=no
843932b578d3Smrg      ;;
844032b578d3Smrg
844132b578d3Smrg    *)
844232b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
844332b578d3Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
844432b578d3Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
844532b578d3Smrg      else
844632b578d3Smrg	ld_shlibs=no
844732b578d3Smrg      fi
844832b578d3Smrg      ;;
844932b578d3Smrg    esac
845032b578d3Smrg
845132b578d3Smrg    if test "$ld_shlibs" = no; then
845232b578d3Smrg      runpath_var=
845332b578d3Smrg      hardcode_libdir_flag_spec=
845432b578d3Smrg      export_dynamic_flag_spec=
845532b578d3Smrg      whole_archive_flag_spec=
845632b578d3Smrg    fi
845732b578d3Smrg  else
845832b578d3Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
845932b578d3Smrg    case $host_os in
846032b578d3Smrg    aix3*)
846132b578d3Smrg      allow_undefined_flag=unsupported
846232b578d3Smrg      always_export_symbols=yes
846332b578d3Smrg      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'
846432b578d3Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
846532b578d3Smrg      # are no directories specified by -L.
846632b578d3Smrg      hardcode_minus_L=yes
846732b578d3Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
846832b578d3Smrg	# Neither direct hardcoding nor static linking is supported with a
846932b578d3Smrg	# broken collect2.
847032b578d3Smrg	hardcode_direct=unsupported
847132b578d3Smrg      fi
847232b578d3Smrg      ;;
847332b578d3Smrg
84742a51b5beSmrg    aix[4-9]*)
847532b578d3Smrg      if test "$host_cpu" = ia64; then
847632b578d3Smrg	# On IA64, the linker does run time linking by default, so we don't
847732b578d3Smrg	# have to do anything special.
847832b578d3Smrg	aix_use_runtimelinking=no
847932b578d3Smrg	exp_sym_flag='-Bexport'
848032b578d3Smrg	no_entry_flag=""
848132b578d3Smrg      else
848232b578d3Smrg	# If we're using GNU nm, then we don't want the "-C" option.
848332b578d3Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
848432b578d3Smrg	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
848532b578d3Smrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
848632b578d3Smrg	else
848732b578d3Smrg	  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'
848832b578d3Smrg	fi
848932b578d3Smrg	aix_use_runtimelinking=no
849032b578d3Smrg
849132b578d3Smrg	# Test if we are trying to use run time linking or normal
849232b578d3Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
849332b578d3Smrg	# need to do runtime linking.
84942a51b5beSmrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
849532b578d3Smrg	  for ld_flag in $LDFLAGS; do
849632b578d3Smrg  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
849732b578d3Smrg  	    aix_use_runtimelinking=yes
849832b578d3Smrg  	    break
849932b578d3Smrg  	  fi
850032b578d3Smrg	  done
850132b578d3Smrg	  ;;
850232b578d3Smrg	esac
850332b578d3Smrg
850432b578d3Smrg	exp_sym_flag='-bexport'
850532b578d3Smrg	no_entry_flag='-bnoentry'
850632b578d3Smrg      fi
850732b578d3Smrg
850832b578d3Smrg      # When large executables or shared objects are built, AIX ld can
850932b578d3Smrg      # have problems creating the table of contents.  If linking a library
851032b578d3Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
851132b578d3Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
851232b578d3Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
851332b578d3Smrg
851432b578d3Smrg      archive_cmds=''
851532b578d3Smrg      hardcode_direct=yes
851632b578d3Smrg      hardcode_libdir_separator=':'
851732b578d3Smrg      link_all_deplibs=yes
851832b578d3Smrg
851932b578d3Smrg      if test "$GCC" = yes; then
852032b578d3Smrg	case $host_os in aix4.[012]|aix4.[012].*)
852132b578d3Smrg	# We only want to do this on AIX 4.2 and lower, the check
852232b578d3Smrg	# below for broken collect2 doesn't work under 4.3+
852332b578d3Smrg	  collect2name=`${CC} -print-prog-name=collect2`
852432b578d3Smrg	  if test -f "$collect2name" && \
852532b578d3Smrg  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
852632b578d3Smrg	  then
852732b578d3Smrg  	  # We have reworked collect2
85282a51b5beSmrg  	  :
852932b578d3Smrg	  else
853032b578d3Smrg  	  # We have old collect2
853132b578d3Smrg  	  hardcode_direct=unsupported
853232b578d3Smrg  	  # It fails to find uninstalled libraries when the uninstalled
853332b578d3Smrg  	  # path is not listed in the libpath.  Setting hardcode_minus_L
853432b578d3Smrg  	  # to unsupported forces relinking
853532b578d3Smrg  	  hardcode_minus_L=yes
853632b578d3Smrg  	  hardcode_libdir_flag_spec='-L$libdir'
853732b578d3Smrg  	  hardcode_libdir_separator=
853832b578d3Smrg	  fi
853932b578d3Smrg	  ;;
854032b578d3Smrg	esac
854132b578d3Smrg	shared_flag='-shared'
854232b578d3Smrg	if test "$aix_use_runtimelinking" = yes; then
854332b578d3Smrg	  shared_flag="$shared_flag "'${wl}-G'
854432b578d3Smrg	fi
854532b578d3Smrg      else
854632b578d3Smrg	# not using gcc
854732b578d3Smrg	if test "$host_cpu" = ia64; then
854832b578d3Smrg  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
854932b578d3Smrg  	# chokes on -Wl,-G. The following line is correct:
855032b578d3Smrg	  shared_flag='-G'
855132b578d3Smrg	else
855232b578d3Smrg	  if test "$aix_use_runtimelinking" = yes; then
855332b578d3Smrg	    shared_flag='${wl}-G'
855432b578d3Smrg	  else
855532b578d3Smrg	    shared_flag='${wl}-bM:SRE'
855632b578d3Smrg	  fi
855732b578d3Smrg	fi
855832b578d3Smrg      fi
855932b578d3Smrg
856032b578d3Smrg      # It seems that -bexpall does not export symbols beginning with
856132b578d3Smrg      # underscore (_), so it is better to generate a list of symbols to export.
856232b578d3Smrg      always_export_symbols=yes
856332b578d3Smrg      if test "$aix_use_runtimelinking" = yes; then
856432b578d3Smrg	# Warning - without using the other runtime loading flags (-brtl),
856532b578d3Smrg	# -berok will link without error, but may produce a broken library.
856632b578d3Smrg	allow_undefined_flag='-berok'
856732b578d3Smrg       # Determine the default libpath from the value encoded in an empty executable.
856832b578d3Smrg       cat >conftest.$ac_ext <<_ACEOF
856932b578d3Smrg/* confdefs.h.  */
857032b578d3Smrg_ACEOF
857132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
857232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
857332b578d3Smrg/* end confdefs.h.  */
857432b578d3Smrg
857532b578d3Smrgint
857632b578d3Smrgmain ()
857732b578d3Smrg{
857832b578d3Smrg
857932b578d3Smrg  ;
858032b578d3Smrg  return 0;
858132b578d3Smrg}
858232b578d3Smrg_ACEOF
858332b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
858432b578d3Smrgif { (ac_try="$ac_link"
858532b578d3Smrgcase "(($ac_try" in
858632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
858732b578d3Smrg  *) ac_try_echo=$ac_try;;
858832b578d3Smrgesac
85892a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
85902a51b5beSmrg$as_echo "$ac_try_echo") >&5
859132b578d3Smrg  (eval "$ac_link") 2>conftest.er1
859232b578d3Smrg  ac_status=$?
859332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
859432b578d3Smrg  rm -f conftest.er1
859532b578d3Smrg  cat conftest.err >&5
85962a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
859732b578d3Smrg  (exit $ac_status); } && {
859832b578d3Smrg	 test -z "$ac_c_werror_flag" ||
859932b578d3Smrg	 test ! -s conftest.err
86002a51b5beSmrg       } && test -s conftest$ac_exeext && {
86012a51b5beSmrg	 test "$cross_compiling" = yes ||
86022a51b5beSmrg	 $as_test_x conftest$ac_exeext
86032a51b5beSmrg       }; then
860432b578d3Smrg
86052a51b5beSmrglt_aix_libpath_sed='
86062a51b5beSmrg    /Import File Strings/,/^$/ {
86072a51b5beSmrg	/^0/ {
86082a51b5beSmrg	    s/^0  *\(.*\)$/\1/
86092a51b5beSmrg	    p
86102a51b5beSmrg	}
86112a51b5beSmrg    }'
86122a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
861332b578d3Smrg# Check for a 64-bit object if we didn't find anything.
86142a51b5beSmrgif test -z "$aix_libpath"; then
86152a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
86162a51b5beSmrgfi
861732b578d3Smrgelse
86182a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
861932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
862032b578d3Smrg
862132b578d3Smrg
862232b578d3Smrgfi
862332b578d3Smrg
86242a51b5beSmrgrm -rf conftest.dSYM
862532b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
862632b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
862732b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
862832b578d3Smrg
862932b578d3Smrg       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
863032b578d3Smrg	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
863132b578d3Smrg       else
863232b578d3Smrg	if test "$host_cpu" = ia64; then
863332b578d3Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
863432b578d3Smrg	  allow_undefined_flag="-z nodefs"
863532b578d3Smrg	  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"
863632b578d3Smrg	else
863732b578d3Smrg	 # Determine the default libpath from the value encoded in an empty executable.
863832b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
863932b578d3Smrg/* confdefs.h.  */
864032b578d3Smrg_ACEOF
864132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
864232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
864332b578d3Smrg/* end confdefs.h.  */
864432b578d3Smrg
864532b578d3Smrgint
864632b578d3Smrgmain ()
864732b578d3Smrg{
864832b578d3Smrg
864932b578d3Smrg  ;
865032b578d3Smrg  return 0;
865132b578d3Smrg}
865232b578d3Smrg_ACEOF
865332b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
865432b578d3Smrgif { (ac_try="$ac_link"
865532b578d3Smrgcase "(($ac_try" in
865632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
865732b578d3Smrg  *) ac_try_echo=$ac_try;;
865832b578d3Smrgesac
86592a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
86602a51b5beSmrg$as_echo "$ac_try_echo") >&5
866132b578d3Smrg  (eval "$ac_link") 2>conftest.er1
866232b578d3Smrg  ac_status=$?
866332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
866432b578d3Smrg  rm -f conftest.er1
866532b578d3Smrg  cat conftest.err >&5
86662a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
866732b578d3Smrg  (exit $ac_status); } && {
866832b578d3Smrg	 test -z "$ac_c_werror_flag" ||
866932b578d3Smrg	 test ! -s conftest.err
86702a51b5beSmrg       } && test -s conftest$ac_exeext && {
86712a51b5beSmrg	 test "$cross_compiling" = yes ||
86722a51b5beSmrg	 $as_test_x conftest$ac_exeext
86732a51b5beSmrg       }; then
867432b578d3Smrg
86752a51b5beSmrglt_aix_libpath_sed='
86762a51b5beSmrg    /Import File Strings/,/^$/ {
86772a51b5beSmrg	/^0/ {
86782a51b5beSmrg	    s/^0  *\(.*\)$/\1/
86792a51b5beSmrg	    p
86802a51b5beSmrg	}
86812a51b5beSmrg    }'
86822a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
868332b578d3Smrg# Check for a 64-bit object if we didn't find anything.
86842a51b5beSmrgif test -z "$aix_libpath"; then
86852a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
86862a51b5beSmrgfi
868732b578d3Smrgelse
86882a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
868932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
869032b578d3Smrg
869132b578d3Smrg
869232b578d3Smrgfi
869332b578d3Smrg
86942a51b5beSmrgrm -rf conftest.dSYM
869532b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
869632b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
869732b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
869832b578d3Smrg
869932b578d3Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
870032b578d3Smrg	  # Warning - without using the other run time loading flags,
870132b578d3Smrg	  # -berok will link without error, but may produce a broken library.
870232b578d3Smrg	  no_undefined_flag=' ${wl}-bernotok'
870332b578d3Smrg	  allow_undefined_flag=' ${wl}-berok'
870432b578d3Smrg	  # Exported symbols can be pulled into shared objects from archives
870532b578d3Smrg	  whole_archive_flag_spec='$convenience'
870632b578d3Smrg	  archive_cmds_need_lc=yes
870732b578d3Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
870832b578d3Smrg	  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'
870932b578d3Smrg	fi
871032b578d3Smrg      fi
871132b578d3Smrg      ;;
871232b578d3Smrg
871332b578d3Smrg    amigaos*)
871432b578d3Smrg      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)'
871532b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
871632b578d3Smrg      hardcode_minus_L=yes
871732b578d3Smrg      # see comment about different semantics on the GNU ld section
871832b578d3Smrg      ld_shlibs=no
871932b578d3Smrg      ;;
872032b578d3Smrg
872132b578d3Smrg    bsdi[45]*)
872232b578d3Smrg      export_dynamic_flag_spec=-rdynamic
872332b578d3Smrg      ;;
872432b578d3Smrg
872532b578d3Smrg    cygwin* | mingw* | pw32*)
872632b578d3Smrg      # When not using gcc, we currently assume that we are using
872732b578d3Smrg      # Microsoft Visual C++.
872832b578d3Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
872932b578d3Smrg      # no search path for DLLs.
873032b578d3Smrg      hardcode_libdir_flag_spec=' '
873132b578d3Smrg      allow_undefined_flag=unsupported
873232b578d3Smrg      # Tell ltmain to make .lib files, not .a files.
873332b578d3Smrg      libext=lib
873432b578d3Smrg      # Tell ltmain to make .dll files, not .so files.
873532b578d3Smrg      shrext_cmds=".dll"
873632b578d3Smrg      # FIXME: Setting linknames here is a bad hack.
873732b578d3Smrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
873832b578d3Smrg      # The linker will automatically build a .lib file if we build a DLL.
873932b578d3Smrg      old_archive_From_new_cmds='true'
874032b578d3Smrg      # FIXME: Should let the user specify the lib program.
87412a51b5beSmrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
874232b578d3Smrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
874332b578d3Smrg      enable_shared_with_static_runtimes=yes
874432b578d3Smrg      ;;
874532b578d3Smrg
874632b578d3Smrg    darwin* | rhapsody*)
874732b578d3Smrg      case $host_os in
874832b578d3Smrg        rhapsody* | darwin1.[012])
874932b578d3Smrg         allow_undefined_flag='${wl}-undefined ${wl}suppress'
875032b578d3Smrg         ;;
875132b578d3Smrg       *) # Darwin 1.3 on
875232b578d3Smrg         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
875332b578d3Smrg           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
875432b578d3Smrg         else
875532b578d3Smrg           case ${MACOSX_DEPLOYMENT_TARGET} in
875632b578d3Smrg             10.[012])
875732b578d3Smrg               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
875832b578d3Smrg               ;;
875932b578d3Smrg             10.*)
876032b578d3Smrg               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
876132b578d3Smrg               ;;
876232b578d3Smrg           esac
876332b578d3Smrg         fi
876432b578d3Smrg         ;;
876532b578d3Smrg      esac
876632b578d3Smrg      archive_cmds_need_lc=no
876732b578d3Smrg      hardcode_direct=no
876832b578d3Smrg      hardcode_automatic=yes
876932b578d3Smrg      hardcode_shlibpath_var=unsupported
877032b578d3Smrg      whole_archive_flag_spec=''
877132b578d3Smrg      link_all_deplibs=yes
877232b578d3Smrg    if test "$GCC" = yes ; then
877332b578d3Smrg    	output_verbose_link_cmd='echo'
87742a51b5beSmrg        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
87752a51b5beSmrg        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
87762a51b5beSmrg        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}"
87772a51b5beSmrg        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}"
877832b578d3Smrg    else
877932b578d3Smrg      case $cc_basename in
878032b578d3Smrg        xlc*)
878132b578d3Smrg         output_verbose_link_cmd='echo'
87822a51b5beSmrg         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
878332b578d3Smrg         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
878432b578d3Smrg          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
87852a51b5beSmrg         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
878632b578d3Smrg          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
878732b578d3Smrg          ;;
878832b578d3Smrg       *)
878932b578d3Smrg         ld_shlibs=no
879032b578d3Smrg          ;;
879132b578d3Smrg      esac
879232b578d3Smrg    fi
879332b578d3Smrg      ;;
879432b578d3Smrg
879532b578d3Smrg    dgux*)
879632b578d3Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
879732b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
879832b578d3Smrg      hardcode_shlibpath_var=no
879932b578d3Smrg      ;;
880032b578d3Smrg
880132b578d3Smrg    freebsd1*)
880232b578d3Smrg      ld_shlibs=no
880332b578d3Smrg      ;;
880432b578d3Smrg
880532b578d3Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
880632b578d3Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
880732b578d3Smrg    # does not break anything, and helps significantly (at the cost of a little
880832b578d3Smrg    # extra space).
880932b578d3Smrg    freebsd2.2*)
881032b578d3Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
881132b578d3Smrg      hardcode_libdir_flag_spec='-R$libdir'
881232b578d3Smrg      hardcode_direct=yes
881332b578d3Smrg      hardcode_shlibpath_var=no
881432b578d3Smrg      ;;
881532b578d3Smrg
881632b578d3Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
881732b578d3Smrg    freebsd2*)
881832b578d3Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
881932b578d3Smrg      hardcode_direct=yes
882032b578d3Smrg      hardcode_minus_L=yes
882132b578d3Smrg      hardcode_shlibpath_var=no
882232b578d3Smrg      ;;
882332b578d3Smrg
882432b578d3Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
88252a51b5beSmrg    freebsd* | dragonfly*)
882632b578d3Smrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
882732b578d3Smrg      hardcode_libdir_flag_spec='-R$libdir'
882832b578d3Smrg      hardcode_direct=yes
882932b578d3Smrg      hardcode_shlibpath_var=no
883032b578d3Smrg      ;;
883132b578d3Smrg
883232b578d3Smrg    hpux9*)
883332b578d3Smrg      if test "$GCC" = yes; then
883432b578d3Smrg	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'
883532b578d3Smrg      else
883632b578d3Smrg	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'
883732b578d3Smrg      fi
883832b578d3Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
883932b578d3Smrg      hardcode_libdir_separator=:
884032b578d3Smrg      hardcode_direct=yes
884132b578d3Smrg
884232b578d3Smrg      # hardcode_minus_L: Not really in the search PATH,
884332b578d3Smrg      # but as the default location of the library.
884432b578d3Smrg      hardcode_minus_L=yes
884532b578d3Smrg      export_dynamic_flag_spec='${wl}-E'
884632b578d3Smrg      ;;
884732b578d3Smrg
884832b578d3Smrg    hpux10*)
884932b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
885032b578d3Smrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
885132b578d3Smrg      else
885232b578d3Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
885332b578d3Smrg      fi
885432b578d3Smrg      if test "$with_gnu_ld" = no; then
885532b578d3Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
885632b578d3Smrg	hardcode_libdir_separator=:
885732b578d3Smrg
885832b578d3Smrg	hardcode_direct=yes
885932b578d3Smrg	export_dynamic_flag_spec='${wl}-E'
886032b578d3Smrg
886132b578d3Smrg	# hardcode_minus_L: Not really in the search PATH,
886232b578d3Smrg	# but as the default location of the library.
886332b578d3Smrg	hardcode_minus_L=yes
886432b578d3Smrg      fi
886532b578d3Smrg      ;;
886632b578d3Smrg
886732b578d3Smrg    hpux11*)
886832b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
886932b578d3Smrg	case $host_cpu in
887032b578d3Smrg	hppa*64*)
887132b578d3Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
887232b578d3Smrg	  ;;
887332b578d3Smrg	ia64*)
887432b578d3Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
887532b578d3Smrg	  ;;
887632b578d3Smrg	*)
887732b578d3Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
887832b578d3Smrg	  ;;
887932b578d3Smrg	esac
888032b578d3Smrg      else
888132b578d3Smrg	case $host_cpu in
888232b578d3Smrg	hppa*64*)
888332b578d3Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
888432b578d3Smrg	  ;;
888532b578d3Smrg	ia64*)
888632b578d3Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
888732b578d3Smrg	  ;;
888832b578d3Smrg	*)
888932b578d3Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
889032b578d3Smrg	  ;;
889132b578d3Smrg	esac
889232b578d3Smrg      fi
889332b578d3Smrg      if test "$with_gnu_ld" = no; then
889432b578d3Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
889532b578d3Smrg	hardcode_libdir_separator=:
889632b578d3Smrg
889732b578d3Smrg	case $host_cpu in
889832b578d3Smrg	hppa*64*|ia64*)
889932b578d3Smrg	  hardcode_libdir_flag_spec_ld='+b $libdir'
890032b578d3Smrg	  hardcode_direct=no
890132b578d3Smrg	  hardcode_shlibpath_var=no
890232b578d3Smrg	  ;;
890332b578d3Smrg	*)
890432b578d3Smrg	  hardcode_direct=yes
890532b578d3Smrg	  export_dynamic_flag_spec='${wl}-E'
890632b578d3Smrg
890732b578d3Smrg	  # hardcode_minus_L: Not really in the search PATH,
890832b578d3Smrg	  # but as the default location of the library.
890932b578d3Smrg	  hardcode_minus_L=yes
891032b578d3Smrg	  ;;
891132b578d3Smrg	esac
891232b578d3Smrg      fi
891332b578d3Smrg      ;;
891432b578d3Smrg
891532b578d3Smrg    irix5* | irix6* | nonstopux*)
891632b578d3Smrg      if test "$GCC" = yes; then
891732b578d3Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
891832b578d3Smrg      else
891932b578d3Smrg	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
892032b578d3Smrg	hardcode_libdir_flag_spec_ld='-rpath $libdir'
892132b578d3Smrg      fi
892232b578d3Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
892332b578d3Smrg      hardcode_libdir_separator=:
892432b578d3Smrg      link_all_deplibs=yes
892532b578d3Smrg      ;;
892632b578d3Smrg
892732b578d3Smrg    netbsd*)
892832b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
892932b578d3Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
893032b578d3Smrg      else
893132b578d3Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
893232b578d3Smrg      fi
893332b578d3Smrg      hardcode_libdir_flag_spec='-R$libdir'
893432b578d3Smrg      hardcode_direct=yes
893532b578d3Smrg      hardcode_shlibpath_var=no
893632b578d3Smrg      ;;
893732b578d3Smrg
893832b578d3Smrg    newsos6)
893932b578d3Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
894032b578d3Smrg      hardcode_direct=yes
894132b578d3Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
894232b578d3Smrg      hardcode_libdir_separator=:
894332b578d3Smrg      hardcode_shlibpath_var=no
894432b578d3Smrg      ;;
894532b578d3Smrg
894632b578d3Smrg    openbsd*)
89472a51b5beSmrg      if test -f /usr/libexec/ld.so; then
89482a51b5beSmrg	hardcode_direct=yes
89492a51b5beSmrg	hardcode_shlibpath_var=no
89502a51b5beSmrg	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
89512a51b5beSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
89522a51b5beSmrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
89532a51b5beSmrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
89542a51b5beSmrg	  export_dynamic_flag_spec='${wl}-E'
89552a51b5beSmrg	else
89562a51b5beSmrg	  case $host_os in
89572a51b5beSmrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
89582a51b5beSmrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
89592a51b5beSmrg	     hardcode_libdir_flag_spec='-R$libdir'
89602a51b5beSmrg	     ;;
89612a51b5beSmrg	   *)
89622a51b5beSmrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
89632a51b5beSmrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
89642a51b5beSmrg	     ;;
89652a51b5beSmrg	  esac
89662a51b5beSmrg        fi
896732b578d3Smrg      else
89682a51b5beSmrg	ld_shlibs=no
896932b578d3Smrg      fi
897032b578d3Smrg      ;;
897132b578d3Smrg
897232b578d3Smrg    os2*)
897332b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
897432b578d3Smrg      hardcode_minus_L=yes
897532b578d3Smrg      allow_undefined_flag=unsupported
897632b578d3Smrg      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'
897732b578d3Smrg      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
897832b578d3Smrg      ;;
897932b578d3Smrg
898032b578d3Smrg    osf3*)
898132b578d3Smrg      if test "$GCC" = yes; then
898232b578d3Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
898332b578d3Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
898432b578d3Smrg      else
898532b578d3Smrg	allow_undefined_flag=' -expect_unresolved \*'
898632b578d3Smrg	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
898732b578d3Smrg      fi
898832b578d3Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
898932b578d3Smrg      hardcode_libdir_separator=:
899032b578d3Smrg      ;;
899132b578d3Smrg
899232b578d3Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
899332b578d3Smrg      if test "$GCC" = yes; then
899432b578d3Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
899532b578d3Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
899632b578d3Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
899732b578d3Smrg      else
899832b578d3Smrg	allow_undefined_flag=' -expect_unresolved \*'
899932b578d3Smrg	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
900032b578d3Smrg	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
900132b578d3Smrg	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
900232b578d3Smrg
900332b578d3Smrg	# Both c and cxx compiler support -rpath directly
900432b578d3Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
900532b578d3Smrg      fi
900632b578d3Smrg      hardcode_libdir_separator=:
900732b578d3Smrg      ;;
900832b578d3Smrg
900932b578d3Smrg    solaris*)
901032b578d3Smrg      no_undefined_flag=' -z text'
901132b578d3Smrg      if test "$GCC" = yes; then
901232b578d3Smrg	wlarc='${wl}'
901332b578d3Smrg	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
901432b578d3Smrg	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
901532b578d3Smrg	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
901632b578d3Smrg      else
901732b578d3Smrg	wlarc=''
901832b578d3Smrg	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
901932b578d3Smrg	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
902032b578d3Smrg  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
902132b578d3Smrg      fi
902232b578d3Smrg      hardcode_libdir_flag_spec='-R$libdir'
902332b578d3Smrg      hardcode_shlibpath_var=no
902432b578d3Smrg      case $host_os in
902532b578d3Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
902632b578d3Smrg      *)
90272a51b5beSmrg	# The compiler driver will combine and reorder linker options,
90282a51b5beSmrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
90292a51b5beSmrg	# but is careful enough not to reorder.
903032b578d3Smrg 	# Supported since Solaris 2.6 (maybe 2.5.1?)
90312a51b5beSmrg	if test "$GCC" = yes; then
90322a51b5beSmrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
90332a51b5beSmrg	else
90342a51b5beSmrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
90352a51b5beSmrg	fi
90362a51b5beSmrg	;;
903732b578d3Smrg      esac
903832b578d3Smrg      link_all_deplibs=yes
903932b578d3Smrg      ;;
904032b578d3Smrg
904132b578d3Smrg    sunos4*)
904232b578d3Smrg      if test "x$host_vendor" = xsequent; then
904332b578d3Smrg	# Use $CC to link under sequent, because it throws in some extra .o
904432b578d3Smrg	# files that make .init and .fini sections work.
904532b578d3Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
904632b578d3Smrg      else
904732b578d3Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
904832b578d3Smrg      fi
904932b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
905032b578d3Smrg      hardcode_direct=yes
905132b578d3Smrg      hardcode_minus_L=yes
905232b578d3Smrg      hardcode_shlibpath_var=no
905332b578d3Smrg      ;;
905432b578d3Smrg
905532b578d3Smrg    sysv4)
905632b578d3Smrg      case $host_vendor in
905732b578d3Smrg	sni)
905832b578d3Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
905932b578d3Smrg	  hardcode_direct=yes # is this really true???
906032b578d3Smrg	;;
906132b578d3Smrg	siemens)
906232b578d3Smrg	  ## LD is ld it makes a PLAMLIB
906332b578d3Smrg	  ## CC just makes a GrossModule.
906432b578d3Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
906532b578d3Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
906632b578d3Smrg	  hardcode_direct=no
906732b578d3Smrg        ;;
906832b578d3Smrg	motorola)
906932b578d3Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
907032b578d3Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
907132b578d3Smrg	;;
907232b578d3Smrg      esac
907332b578d3Smrg      runpath_var='LD_RUN_PATH'
907432b578d3Smrg      hardcode_shlibpath_var=no
907532b578d3Smrg      ;;
907632b578d3Smrg
907732b578d3Smrg    sysv4.3*)
907832b578d3Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
907932b578d3Smrg      hardcode_shlibpath_var=no
908032b578d3Smrg      export_dynamic_flag_spec='-Bexport'
908132b578d3Smrg      ;;
908232b578d3Smrg
908332b578d3Smrg    sysv4*MP*)
908432b578d3Smrg      if test -d /usr/nec; then
908532b578d3Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
908632b578d3Smrg	hardcode_shlibpath_var=no
908732b578d3Smrg	runpath_var=LD_RUN_PATH
908832b578d3Smrg	hardcode_runpath_var=yes
908932b578d3Smrg	ld_shlibs=yes
909032b578d3Smrg      fi
909132b578d3Smrg      ;;
909232b578d3Smrg
90932a51b5beSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
909432b578d3Smrg      no_undefined_flag='${wl}-z,text'
909532b578d3Smrg      archive_cmds_need_lc=no
909632b578d3Smrg      hardcode_shlibpath_var=no
909732b578d3Smrg      runpath_var='LD_RUN_PATH'
909832b578d3Smrg
909932b578d3Smrg      if test "$GCC" = yes; then
910032b578d3Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
910132b578d3Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
910232b578d3Smrg      else
910332b578d3Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
910432b578d3Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
910532b578d3Smrg      fi
910632b578d3Smrg      ;;
910732b578d3Smrg
910832b578d3Smrg    sysv5* | sco3.2v5* | sco5v6*)
910932b578d3Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
911032b578d3Smrg      # link with -lc, and that would cause any symbols used from libc to
911132b578d3Smrg      # always be unresolved, which means just about no library would
911232b578d3Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
911332b578d3Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
911432b578d3Smrg      # as -z defs.
911532b578d3Smrg      no_undefined_flag='${wl}-z,text'
911632b578d3Smrg      allow_undefined_flag='${wl}-z,nodefs'
911732b578d3Smrg      archive_cmds_need_lc=no
911832b578d3Smrg      hardcode_shlibpath_var=no
911932b578d3Smrg      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
912032b578d3Smrg      hardcode_libdir_separator=':'
912132b578d3Smrg      link_all_deplibs=yes
912232b578d3Smrg      export_dynamic_flag_spec='${wl}-Bexport'
912332b578d3Smrg      runpath_var='LD_RUN_PATH'
912432b578d3Smrg
912532b578d3Smrg      if test "$GCC" = yes; then
912632b578d3Smrg	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
912732b578d3Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
912832b578d3Smrg      else
912932b578d3Smrg	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
913032b578d3Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
913132b578d3Smrg      fi
913232b578d3Smrg      ;;
913332b578d3Smrg
913432b578d3Smrg    uts4*)
913532b578d3Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
913632b578d3Smrg      hardcode_libdir_flag_spec='-L$libdir'
913732b578d3Smrg      hardcode_shlibpath_var=no
913832b578d3Smrg      ;;
913932b578d3Smrg
914032b578d3Smrg    *)
914132b578d3Smrg      ld_shlibs=no
914232b578d3Smrg      ;;
914332b578d3Smrg    esac
914432b578d3Smrg  fi
914532b578d3Smrg
91462a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
91472a51b5beSmrg$as_echo "$ld_shlibs" >&6; }
914832b578d3Smrgtest "$ld_shlibs" = no && can_build_shared=no
914932b578d3Smrg
915032b578d3Smrg#
915132b578d3Smrg# Do we need to explicitly link libc?
915232b578d3Smrg#
915332b578d3Smrgcase "x$archive_cmds_need_lc" in
915432b578d3Smrgx|xyes)
915532b578d3Smrg  # Assume -lc should be added
915632b578d3Smrg  archive_cmds_need_lc=yes
915732b578d3Smrg
915832b578d3Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
915932b578d3Smrg    case $archive_cmds in
916032b578d3Smrg    *'~'*)
916132b578d3Smrg      # FIXME: we may have to deal with multi-command sequences.
916232b578d3Smrg      ;;
916332b578d3Smrg    '$CC '*)
916432b578d3Smrg      # Test whether the compiler implicitly links with -lc since on some
916532b578d3Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
916632b578d3Smrg      # to ld, don't add -lc before -lgcc.
91672a51b5beSmrg      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
91682a51b5beSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
916932b578d3Smrg      $rm conftest*
91702a51b5beSmrg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
917132b578d3Smrg
917232b578d3Smrg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
917332b578d3Smrg  (eval $ac_compile) 2>&5
917432b578d3Smrg  ac_status=$?
91752a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
917632b578d3Smrg  (exit $ac_status); } 2>conftest.err; then
917732b578d3Smrg        soname=conftest
917832b578d3Smrg        lib=conftest
917932b578d3Smrg        libobjs=conftest.$ac_objext
918032b578d3Smrg        deplibs=
918132b578d3Smrg        wl=$lt_prog_compiler_wl
918232b578d3Smrg	pic_flag=$lt_prog_compiler_pic
918332b578d3Smrg        compiler_flags=-v
918432b578d3Smrg        linker_flags=-v
918532b578d3Smrg        verstring=
918632b578d3Smrg        output_objdir=.
918732b578d3Smrg        libname=conftest
918832b578d3Smrg        lt_save_allow_undefined_flag=$allow_undefined_flag
918932b578d3Smrg        allow_undefined_flag=
919032b578d3Smrg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
919132b578d3Smrg  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
919232b578d3Smrg  ac_status=$?
91932a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
919432b578d3Smrg  (exit $ac_status); }
919532b578d3Smrg        then
919632b578d3Smrg	  archive_cmds_need_lc=no
919732b578d3Smrg        else
919832b578d3Smrg	  archive_cmds_need_lc=yes
919932b578d3Smrg        fi
920032b578d3Smrg        allow_undefined_flag=$lt_save_allow_undefined_flag
920132b578d3Smrg      else
920232b578d3Smrg        cat conftest.err 1>&5
920332b578d3Smrg      fi
920432b578d3Smrg      $rm conftest*
92052a51b5beSmrg      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
92062a51b5beSmrg$as_echo "$archive_cmds_need_lc" >&6; }
920732b578d3Smrg      ;;
920832b578d3Smrg    esac
920932b578d3Smrg  fi
921032b578d3Smrg  ;;
921132b578d3Smrgesac
921232b578d3Smrg
92132a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
92142a51b5beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
921532b578d3Smrglibrary_names_spec=
921632b578d3Smrglibname_spec='lib$name'
921732b578d3Smrgsoname_spec=
921832b578d3Smrgshrext_cmds=".so"
921932b578d3Smrgpostinstall_cmds=
922032b578d3Smrgpostuninstall_cmds=
922132b578d3Smrgfinish_cmds=
922232b578d3Smrgfinish_eval=
922332b578d3Smrgshlibpath_var=
922432b578d3Smrgshlibpath_overrides_runpath=unknown
922532b578d3Smrgversion_type=none
922632b578d3Smrgdynamic_linker="$host_os ld.so"
922732b578d3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
92282a51b5beSmrg
922932b578d3Smrgif test "$GCC" = yes; then
92302a51b5beSmrg  case $host_os in
92312a51b5beSmrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
92322a51b5beSmrg    *) lt_awk_arg="/^libraries:/" ;;
92332a51b5beSmrg  esac
92342a51b5beSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
92352a51b5beSmrg  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
923632b578d3Smrg    # if the path contains ";" then we assume it to be the separator
923732b578d3Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
923832b578d3Smrg    # assumed that no part of a normal pathname contains ";" but that should
923932b578d3Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
92402a51b5beSmrg    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
924132b578d3Smrg  else
92422a51b5beSmrg    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
924332b578d3Smrg  fi
92442a51b5beSmrg  # Ok, now we have the path, separated by spaces, we can step through it
92452a51b5beSmrg  # and add multilib dir if necessary.
92462a51b5beSmrg  lt_tmp_lt_search_path_spec=
92472a51b5beSmrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
92482a51b5beSmrg  for lt_sys_path in $lt_search_path_spec; do
92492a51b5beSmrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
92502a51b5beSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
92512a51b5beSmrg    else
92522a51b5beSmrg      test -d "$lt_sys_path" && \
92532a51b5beSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
92542a51b5beSmrg    fi
92552a51b5beSmrg  done
92562a51b5beSmrg  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
92572a51b5beSmrgBEGIN {RS=" "; FS="/|\n";} {
92582a51b5beSmrg  lt_foo="";
92592a51b5beSmrg  lt_count=0;
92602a51b5beSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
92612a51b5beSmrg    if ($lt_i != "" && $lt_i != ".") {
92622a51b5beSmrg      if ($lt_i == "..") {
92632a51b5beSmrg        lt_count++;
92642a51b5beSmrg      } else {
92652a51b5beSmrg        if (lt_count == 0) {
92662a51b5beSmrg          lt_foo="/" $lt_i lt_foo;
92672a51b5beSmrg        } else {
92682a51b5beSmrg          lt_count--;
92692a51b5beSmrg        }
92702a51b5beSmrg      }
92712a51b5beSmrg    }
92722a51b5beSmrg  }
92732a51b5beSmrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
92742a51b5beSmrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
92752a51b5beSmrg}'`
92762a51b5beSmrg  sys_lib_search_path_spec=`echo $lt_search_path_spec`
927732b578d3Smrgelse
927832b578d3Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
927932b578d3Smrgfi
928032b578d3Smrgneed_lib_prefix=unknown
928132b578d3Smrghardcode_into_libs=no
928232b578d3Smrg
928332b578d3Smrg# when you set need_version to no, make sure it does not cause -set_version
928432b578d3Smrg# flags to be left without arguments
928532b578d3Smrgneed_version=unknown
928632b578d3Smrg
928732b578d3Smrgcase $host_os in
928832b578d3Smrgaix3*)
928932b578d3Smrg  version_type=linux
929032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
929132b578d3Smrg  shlibpath_var=LIBPATH
929232b578d3Smrg
929332b578d3Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
929432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
929532b578d3Smrg  ;;
929632b578d3Smrg
92972a51b5beSmrgaix[4-9]*)
929832b578d3Smrg  version_type=linux
929932b578d3Smrg  need_lib_prefix=no
930032b578d3Smrg  need_version=no
930132b578d3Smrg  hardcode_into_libs=yes
930232b578d3Smrg  if test "$host_cpu" = ia64; then
930332b578d3Smrg    # AIX 5 supports IA64
930432b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
930532b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
930632b578d3Smrg  else
930732b578d3Smrg    # With GCC up to 2.95.x, collect2 would create an import file
930832b578d3Smrg    # for dependence libraries.  The import file would start with
930932b578d3Smrg    # the line `#! .'.  This would cause the generated library to
931032b578d3Smrg    # depend on `.', always an invalid library.  This was fixed in
931132b578d3Smrg    # development snapshots of GCC prior to 3.0.
931232b578d3Smrg    case $host_os in
931332b578d3Smrg      aix4 | aix4.[01] | aix4.[01].*)
931432b578d3Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
931532b578d3Smrg	   echo ' yes '
931632b578d3Smrg	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
931732b578d3Smrg	:
931832b578d3Smrg      else
931932b578d3Smrg	can_build_shared=no
932032b578d3Smrg      fi
932132b578d3Smrg      ;;
932232b578d3Smrg    esac
932332b578d3Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
932432b578d3Smrg    # soname into executable. Probably we can add versioning support to
932532b578d3Smrg    # collect2, so additional links can be useful in future.
932632b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
932732b578d3Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
932832b578d3Smrg      # instead of lib<name>.a to let people know that these are not
932932b578d3Smrg      # typical AIX shared libraries.
933032b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
933132b578d3Smrg    else
933232b578d3Smrg      # We preserve .a as extension for shared libraries through AIX4.2
933332b578d3Smrg      # and later when we are not doing run time linking.
933432b578d3Smrg      library_names_spec='${libname}${release}.a $libname.a'
933532b578d3Smrg      soname_spec='${libname}${release}${shared_ext}$major'
933632b578d3Smrg    fi
933732b578d3Smrg    shlibpath_var=LIBPATH
933832b578d3Smrg  fi
933932b578d3Smrg  ;;
934032b578d3Smrg
934132b578d3Smrgamigaos*)
934232b578d3Smrg  library_names_spec='$libname.ixlibrary $libname.a'
934332b578d3Smrg  # Create ${libname}_ixlibrary.a entries in /sys/libs.
934432b578d3Smrg  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
934532b578d3Smrg  ;;
934632b578d3Smrg
934732b578d3Smrgbeos*)
934832b578d3Smrg  library_names_spec='${libname}${shared_ext}'
934932b578d3Smrg  dynamic_linker="$host_os ld.so"
935032b578d3Smrg  shlibpath_var=LIBRARY_PATH
935132b578d3Smrg  ;;
935232b578d3Smrg
935332b578d3Smrgbsdi[45]*)
935432b578d3Smrg  version_type=linux
935532b578d3Smrg  need_version=no
935632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
935732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
935832b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
935932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
936032b578d3Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
936132b578d3Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
936232b578d3Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
936332b578d3Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
936432b578d3Smrg  # libtool to hard-code these into programs
936532b578d3Smrg  ;;
936632b578d3Smrg
936732b578d3Smrgcygwin* | mingw* | pw32*)
936832b578d3Smrg  version_type=windows
936932b578d3Smrg  shrext_cmds=".dll"
937032b578d3Smrg  need_version=no
937132b578d3Smrg  need_lib_prefix=no
937232b578d3Smrg
937332b578d3Smrg  case $GCC,$host_os in
937432b578d3Smrg  yes,cygwin* | yes,mingw* | yes,pw32*)
937532b578d3Smrg    library_names_spec='$libname.dll.a'
937632b578d3Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
937732b578d3Smrg    postinstall_cmds='base_file=`basename \${file}`~
937832b578d3Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
937932b578d3Smrg      dldir=$destdir/`dirname \$dlpath`~
938032b578d3Smrg      test -d \$dldir || mkdir -p \$dldir~
938132b578d3Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
938232b578d3Smrg      chmod a+x \$dldir/$dlname'
938332b578d3Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
938432b578d3Smrg      dlpath=$dir/\$dldll~
938532b578d3Smrg       $rm \$dlpath'
938632b578d3Smrg    shlibpath_overrides_runpath=yes
938732b578d3Smrg
938832b578d3Smrg    case $host_os in
938932b578d3Smrg    cygwin*)
939032b578d3Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
939132b578d3Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
939232b578d3Smrg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
939332b578d3Smrg      ;;
939432b578d3Smrg    mingw*)
939532b578d3Smrg      # MinGW DLLs use traditional 'lib' prefix
939632b578d3Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
939732b578d3Smrg      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
939832b578d3Smrg      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
939932b578d3Smrg        # It is most probably a Windows format PATH printed by
940032b578d3Smrg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
940132b578d3Smrg        # path with ; separators, and with drive letters. We can handle the
940232b578d3Smrg        # drive letters (cygwin fileutils understands them), so leave them,
940332b578d3Smrg        # especially as we might pass files found there to a mingw objdump,
940432b578d3Smrg        # which wouldn't understand a cygwinified path. Ahh.
940532b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
940632b578d3Smrg      else
940732b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
940832b578d3Smrg      fi
940932b578d3Smrg      ;;
941032b578d3Smrg    pw32*)
941132b578d3Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
941232b578d3Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
941332b578d3Smrg      ;;
941432b578d3Smrg    esac
941532b578d3Smrg    ;;
941632b578d3Smrg
941732b578d3Smrg  *)
941832b578d3Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
941932b578d3Smrg    ;;
942032b578d3Smrg  esac
942132b578d3Smrg  dynamic_linker='Win32 ld.exe'
942232b578d3Smrg  # FIXME: first we should search . and the directory the executable is in
942332b578d3Smrg  shlibpath_var=PATH
942432b578d3Smrg  ;;
942532b578d3Smrg
942632b578d3Smrgdarwin* | rhapsody*)
942732b578d3Smrg  dynamic_linker="$host_os dyld"
942832b578d3Smrg  version_type=darwin
942932b578d3Smrg  need_lib_prefix=no
943032b578d3Smrg  need_version=no
943132b578d3Smrg  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
943232b578d3Smrg  soname_spec='${libname}${release}${major}$shared_ext'
943332b578d3Smrg  shlibpath_overrides_runpath=yes
943432b578d3Smrg  shlibpath_var=DYLD_LIBRARY_PATH
943532b578d3Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
94362a51b5beSmrg
94372a51b5beSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
943832b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
943932b578d3Smrg  ;;
944032b578d3Smrg
944132b578d3Smrgdgux*)
944232b578d3Smrg  version_type=linux
944332b578d3Smrg  need_lib_prefix=no
944432b578d3Smrg  need_version=no
944532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
944632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
944732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
944832b578d3Smrg  ;;
944932b578d3Smrg
945032b578d3Smrgfreebsd1*)
945132b578d3Smrg  dynamic_linker=no
945232b578d3Smrg  ;;
945332b578d3Smrg
945432b578d3Smrgfreebsd* | dragonfly*)
945532b578d3Smrg  # DragonFly does not have aout.  When/if they implement a new
945632b578d3Smrg  # versioning mechanism, adjust this.
945732b578d3Smrg  if test -x /usr/bin/objformat; then
945832b578d3Smrg    objformat=`/usr/bin/objformat`
945932b578d3Smrg  else
946032b578d3Smrg    case $host_os in
946132b578d3Smrg    freebsd[123]*) objformat=aout ;;
946232b578d3Smrg    *) objformat=elf ;;
946332b578d3Smrg    esac
946432b578d3Smrg  fi
946532b578d3Smrg  version_type=freebsd-$objformat
946632b578d3Smrg  case $version_type in
946732b578d3Smrg    freebsd-elf*)
946832b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
946932b578d3Smrg      need_version=no
947032b578d3Smrg      need_lib_prefix=no
947132b578d3Smrg      ;;
947232b578d3Smrg    freebsd-*)
947332b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
947432b578d3Smrg      need_version=yes
947532b578d3Smrg      ;;
947632b578d3Smrg  esac
947732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
947832b578d3Smrg  case $host_os in
947932b578d3Smrg  freebsd2*)
948032b578d3Smrg    shlibpath_overrides_runpath=yes
948132b578d3Smrg    ;;
948232b578d3Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
948332b578d3Smrg    shlibpath_overrides_runpath=yes
948432b578d3Smrg    hardcode_into_libs=yes
948532b578d3Smrg    ;;
948632b578d3Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
948732b578d3Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
948832b578d3Smrg    shlibpath_overrides_runpath=no
948932b578d3Smrg    hardcode_into_libs=yes
949032b578d3Smrg    ;;
94912a51b5beSmrg  *) # from 4.6 on, and DragonFly
949232b578d3Smrg    shlibpath_overrides_runpath=yes
949332b578d3Smrg    hardcode_into_libs=yes
949432b578d3Smrg    ;;
949532b578d3Smrg  esac
949632b578d3Smrg  ;;
949732b578d3Smrg
949832b578d3Smrggnu*)
949932b578d3Smrg  version_type=linux
950032b578d3Smrg  need_lib_prefix=no
950132b578d3Smrg  need_version=no
950232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
950332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
950432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
950532b578d3Smrg  hardcode_into_libs=yes
950632b578d3Smrg  ;;
950732b578d3Smrg
950832b578d3Smrghpux9* | hpux10* | hpux11*)
950932b578d3Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
951032b578d3Smrg  # link against other versions.
951132b578d3Smrg  version_type=sunos
951232b578d3Smrg  need_lib_prefix=no
951332b578d3Smrg  need_version=no
951432b578d3Smrg  case $host_cpu in
951532b578d3Smrg  ia64*)
951632b578d3Smrg    shrext_cmds='.so'
951732b578d3Smrg    hardcode_into_libs=yes
951832b578d3Smrg    dynamic_linker="$host_os dld.so"
951932b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
952032b578d3Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
952132b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
952232b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
952332b578d3Smrg    if test "X$HPUX_IA64_MODE" = X32; then
952432b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
952532b578d3Smrg    else
952632b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
952732b578d3Smrg    fi
952832b578d3Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
952932b578d3Smrg    ;;
953032b578d3Smrg   hppa*64*)
953132b578d3Smrg     shrext_cmds='.sl'
953232b578d3Smrg     hardcode_into_libs=yes
953332b578d3Smrg     dynamic_linker="$host_os dld.sl"
953432b578d3Smrg     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
953532b578d3Smrg     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
953632b578d3Smrg     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
953732b578d3Smrg     soname_spec='${libname}${release}${shared_ext}$major'
953832b578d3Smrg     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
953932b578d3Smrg     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
954032b578d3Smrg     ;;
954132b578d3Smrg   *)
954232b578d3Smrg    shrext_cmds='.sl'
954332b578d3Smrg    dynamic_linker="$host_os dld.sl"
954432b578d3Smrg    shlibpath_var=SHLIB_PATH
954532b578d3Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
954632b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
954732b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
954832b578d3Smrg    ;;
954932b578d3Smrg  esac
955032b578d3Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
955132b578d3Smrg  postinstall_cmds='chmod 555 $lib'
955232b578d3Smrg  ;;
955332b578d3Smrg
95542a51b5beSmrginterix[3-9]*)
955532b578d3Smrg  version_type=linux
955632b578d3Smrg  need_lib_prefix=no
955732b578d3Smrg  need_version=no
955832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
955932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
956032b578d3Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
956132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
956232b578d3Smrg  shlibpath_overrides_runpath=no
956332b578d3Smrg  hardcode_into_libs=yes
956432b578d3Smrg  ;;
956532b578d3Smrg
956632b578d3Smrgirix5* | irix6* | nonstopux*)
956732b578d3Smrg  case $host_os in
956832b578d3Smrg    nonstopux*) version_type=nonstopux ;;
956932b578d3Smrg    *)
957032b578d3Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
957132b578d3Smrg		version_type=linux
957232b578d3Smrg	else
957332b578d3Smrg		version_type=irix
957432b578d3Smrg	fi ;;
957532b578d3Smrg  esac
957632b578d3Smrg  need_lib_prefix=no
957732b578d3Smrg  need_version=no
957832b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
957932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
958032b578d3Smrg  case $host_os in
958132b578d3Smrg  irix5* | nonstopux*)
958232b578d3Smrg    libsuff= shlibsuff=
958332b578d3Smrg    ;;
958432b578d3Smrg  *)
958532b578d3Smrg    case $LD in # libtool.m4 will add one of these switches to LD
958632b578d3Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
958732b578d3Smrg      libsuff= shlibsuff= libmagic=32-bit;;
958832b578d3Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
958932b578d3Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
959032b578d3Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
959132b578d3Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
959232b578d3Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
959332b578d3Smrg    esac
959432b578d3Smrg    ;;
959532b578d3Smrg  esac
959632b578d3Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
959732b578d3Smrg  shlibpath_overrides_runpath=no
959832b578d3Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
959932b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
960032b578d3Smrg  hardcode_into_libs=yes
960132b578d3Smrg  ;;
960232b578d3Smrg
960332b578d3Smrg# No shared lib support for Linux oldld, aout, or coff.
960432b578d3Smrglinux*oldld* | linux*aout* | linux*coff*)
960532b578d3Smrg  dynamic_linker=no
960632b578d3Smrg  ;;
960732b578d3Smrg
960832b578d3Smrg# This must be Linux ELF.
96092a51b5beSmrglinux* | k*bsd*-gnu)
961032b578d3Smrg  version_type=linux
961132b578d3Smrg  need_lib_prefix=no
961232b578d3Smrg  need_version=no
961332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
961432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
961532b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
961632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
961732b578d3Smrg  shlibpath_overrides_runpath=no
961832b578d3Smrg  # This implies no fast_install, which is unacceptable.
961932b578d3Smrg  # Some rework will be needed to allow for fast_install
962032b578d3Smrg  # before this can be enabled.
962132b578d3Smrg  hardcode_into_libs=yes
96222a51b5beSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
96232a51b5beSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
962432b578d3Smrg
962532b578d3Smrg  # Append ld.so.conf contents to the search path
962632b578d3Smrg  if test -f /etc/ld.so.conf; then
96272a51b5beSmrg    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;/^$/d' | tr '\n' ' '`
96282a51b5beSmrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
962932b578d3Smrg  fi
963032b578d3Smrg
963132b578d3Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
963232b578d3Smrg  # powerpc, because MkLinux only supported shared libraries with the
963332b578d3Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
963432b578d3Smrg  # most powerpc-linux boxes support dynamic linking these days and
963532b578d3Smrg  # people can always --disable-shared, the test was removed, and we
963632b578d3Smrg  # assume the GNU/Linux dynamic linker is in use.
963732b578d3Smrg  dynamic_linker='GNU/Linux ld.so'
963832b578d3Smrg  ;;
963932b578d3Smrg
964032b578d3Smrgnetbsd*)
964132b578d3Smrg  version_type=sunos
964232b578d3Smrg  need_lib_prefix=no
964332b578d3Smrg  need_version=no
964432b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
964532b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
964632b578d3Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
964732b578d3Smrg    dynamic_linker='NetBSD (a.out) ld.so'
964832b578d3Smrg  else
964932b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
965032b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
965132b578d3Smrg    dynamic_linker='NetBSD ld.elf_so'
965232b578d3Smrg  fi
965332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
965432b578d3Smrg  shlibpath_overrides_runpath=yes
965532b578d3Smrg  hardcode_into_libs=yes
965632b578d3Smrg  ;;
965732b578d3Smrg
965832b578d3Smrgnewsos6)
965932b578d3Smrg  version_type=linux
966032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
966132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
966232b578d3Smrg  shlibpath_overrides_runpath=yes
966332b578d3Smrg  ;;
966432b578d3Smrg
966532b578d3Smrgnto-qnx*)
966632b578d3Smrg  version_type=linux
966732b578d3Smrg  need_lib_prefix=no
966832b578d3Smrg  need_version=no
966932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
967032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
967132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
967232b578d3Smrg  shlibpath_overrides_runpath=yes
967332b578d3Smrg  ;;
967432b578d3Smrg
967532b578d3Smrgopenbsd*)
967632b578d3Smrg  version_type=sunos
967732b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
967832b578d3Smrg  need_lib_prefix=no
967932b578d3Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
968032b578d3Smrg  case $host_os in
968132b578d3Smrg    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
968232b578d3Smrg    *)                         need_version=no  ;;
968332b578d3Smrg  esac
968432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
968532b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
968632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
968732b578d3Smrg  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
968832b578d3Smrg    case $host_os in
968932b578d3Smrg      openbsd2.[89] | openbsd2.[89].*)
969032b578d3Smrg	shlibpath_overrides_runpath=no
969132b578d3Smrg	;;
969232b578d3Smrg      *)
969332b578d3Smrg	shlibpath_overrides_runpath=yes
969432b578d3Smrg	;;
969532b578d3Smrg      esac
969632b578d3Smrg  else
969732b578d3Smrg    shlibpath_overrides_runpath=yes
969832b578d3Smrg  fi
969932b578d3Smrg  ;;
970032b578d3Smrg
970132b578d3Smrgos2*)
970232b578d3Smrg  libname_spec='$name'
970332b578d3Smrg  shrext_cmds=".dll"
970432b578d3Smrg  need_lib_prefix=no
970532b578d3Smrg  library_names_spec='$libname${shared_ext} $libname.a'
970632b578d3Smrg  dynamic_linker='OS/2 ld.exe'
970732b578d3Smrg  shlibpath_var=LIBPATH
970832b578d3Smrg  ;;
970932b578d3Smrg
971032b578d3Smrgosf3* | osf4* | osf5*)
971132b578d3Smrg  version_type=osf
971232b578d3Smrg  need_lib_prefix=no
971332b578d3Smrg  need_version=no
971432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
971532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
971632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
971732b578d3Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
971832b578d3Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
971932b578d3Smrg  ;;
972032b578d3Smrg
97212a51b5beSmrgrdos*)
97222a51b5beSmrg  dynamic_linker=no
97232a51b5beSmrg  ;;
97242a51b5beSmrg
972532b578d3Smrgsolaris*)
972632b578d3Smrg  version_type=linux
972732b578d3Smrg  need_lib_prefix=no
972832b578d3Smrg  need_version=no
972932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
973032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
973132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
973232b578d3Smrg  shlibpath_overrides_runpath=yes
973332b578d3Smrg  hardcode_into_libs=yes
973432b578d3Smrg  # ldd complains unless libraries are executable
973532b578d3Smrg  postinstall_cmds='chmod +x $lib'
973632b578d3Smrg  ;;
973732b578d3Smrg
973832b578d3Smrgsunos4*)
973932b578d3Smrg  version_type=sunos
974032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
974132b578d3Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
974232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
974332b578d3Smrg  shlibpath_overrides_runpath=yes
974432b578d3Smrg  if test "$with_gnu_ld" = yes; then
974532b578d3Smrg    need_lib_prefix=no
974632b578d3Smrg  fi
974732b578d3Smrg  need_version=yes
974832b578d3Smrg  ;;
974932b578d3Smrg
975032b578d3Smrgsysv4 | sysv4.3*)
975132b578d3Smrg  version_type=linux
975232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
975332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
975432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
975532b578d3Smrg  case $host_vendor in
975632b578d3Smrg    sni)
975732b578d3Smrg      shlibpath_overrides_runpath=no
975832b578d3Smrg      need_lib_prefix=no
975932b578d3Smrg      export_dynamic_flag_spec='${wl}-Blargedynsym'
976032b578d3Smrg      runpath_var=LD_RUN_PATH
976132b578d3Smrg      ;;
976232b578d3Smrg    siemens)
976332b578d3Smrg      need_lib_prefix=no
976432b578d3Smrg      ;;
976532b578d3Smrg    motorola)
976632b578d3Smrg      need_lib_prefix=no
976732b578d3Smrg      need_version=no
976832b578d3Smrg      shlibpath_overrides_runpath=no
976932b578d3Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
977032b578d3Smrg      ;;
977132b578d3Smrg  esac
977232b578d3Smrg  ;;
977332b578d3Smrg
977432b578d3Smrgsysv4*MP*)
977532b578d3Smrg  if test -d /usr/nec ;then
977632b578d3Smrg    version_type=linux
977732b578d3Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
977832b578d3Smrg    soname_spec='$libname${shared_ext}.$major'
977932b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
978032b578d3Smrg  fi
978132b578d3Smrg  ;;
978232b578d3Smrg
978332b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
978432b578d3Smrg  version_type=freebsd-elf
978532b578d3Smrg  need_lib_prefix=no
978632b578d3Smrg  need_version=no
978732b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
978832b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
978932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
979032b578d3Smrg  hardcode_into_libs=yes
979132b578d3Smrg  if test "$with_gnu_ld" = yes; then
979232b578d3Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
979332b578d3Smrg    shlibpath_overrides_runpath=no
979432b578d3Smrg  else
979532b578d3Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
979632b578d3Smrg    shlibpath_overrides_runpath=yes
979732b578d3Smrg    case $host_os in
979832b578d3Smrg      sco3.2v5*)
979932b578d3Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
980032b578d3Smrg	;;
980132b578d3Smrg    esac
980232b578d3Smrg  fi
980332b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
980432b578d3Smrg  ;;
980532b578d3Smrg
980632b578d3Smrguts4*)
980732b578d3Smrg  version_type=linux
980832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
980932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
981032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
981132b578d3Smrg  ;;
981232b578d3Smrg
981332b578d3Smrg*)
981432b578d3Smrg  dynamic_linker=no
981532b578d3Smrg  ;;
981632b578d3Smrgesac
98172a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
98182a51b5beSmrg$as_echo "$dynamic_linker" >&6; }
981932b578d3Smrgtest "$dynamic_linker" = no && can_build_shared=no
982032b578d3Smrg
98212a51b5beSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
98222a51b5beSmrg  $as_echo_n "(cached) " >&6
98232a51b5beSmrgelse
98242a51b5beSmrg  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
98252a51b5beSmrgfi
98262a51b5beSmrg
98272a51b5beSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
98282a51b5beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
98292a51b5beSmrg  $as_echo_n "(cached) " >&6
98302a51b5beSmrgelse
98312a51b5beSmrg  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
98322a51b5beSmrgfi
98332a51b5beSmrg
98342a51b5beSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
98352a51b5beSmrg
983632b578d3Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
983732b578d3Smrgif test "$GCC" = yes; then
983832b578d3Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
983932b578d3Smrgfi
984032b578d3Smrg
98412a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
98422a51b5beSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
984332b578d3Smrghardcode_action=
984432b578d3Smrgif test -n "$hardcode_libdir_flag_spec" || \
984532b578d3Smrg   test -n "$runpath_var" || \
984632b578d3Smrg   test "X$hardcode_automatic" = "Xyes" ; then
984732b578d3Smrg
984832b578d3Smrg  # We can hardcode non-existant directories.
984932b578d3Smrg  if test "$hardcode_direct" != no &&
985032b578d3Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
985132b578d3Smrg     # have to relink, otherwise we might link with an installed library
985232b578d3Smrg     # when we should be linking with a yet-to-be-installed one
985332b578d3Smrg     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
985432b578d3Smrg     test "$hardcode_minus_L" != no; then
985532b578d3Smrg    # Linking always hardcodes the temporary library directory.
985632b578d3Smrg    hardcode_action=relink
985732b578d3Smrg  else
985832b578d3Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
985932b578d3Smrg    hardcode_action=immediate
986032b578d3Smrg  fi
986132b578d3Smrgelse
986232b578d3Smrg  # We cannot hardcode anything, or else we can only hardcode existing
986332b578d3Smrg  # directories.
986432b578d3Smrg  hardcode_action=unsupported
986532b578d3Smrgfi
98662a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
98672a51b5beSmrg$as_echo "$hardcode_action" >&6; }
986832b578d3Smrg
986932b578d3Smrgif test "$hardcode_action" = relink; then
987032b578d3Smrg  # Fast installation is not supported
987132b578d3Smrg  enable_fast_install=no
987232b578d3Smrgelif test "$shlibpath_overrides_runpath" = yes ||
987332b578d3Smrg     test "$enable_shared" = no; then
987432b578d3Smrg  # Fast installation is not necessary
987532b578d3Smrg  enable_fast_install=needless
987632b578d3Smrgfi
987732b578d3Smrg
987832b578d3Smrgstriplib=
987932b578d3Smrgold_striplib=
98802a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
98812a51b5beSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
988232b578d3Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
988332b578d3Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
988432b578d3Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
98852a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
98862a51b5beSmrg$as_echo "yes" >&6; }
988732b578d3Smrgelse
988832b578d3Smrg# FIXME - insert some real tests, host_os isn't really good enough
988932b578d3Smrg  case $host_os in
989032b578d3Smrg   darwin*)
989132b578d3Smrg       if test -n "$STRIP" ; then
989232b578d3Smrg         striplib="$STRIP -x"
98932a51b5beSmrg         old_striplib="$STRIP -S"
98942a51b5beSmrg         { $as_echo "$as_me:$LINENO: result: yes" >&5
98952a51b5beSmrg$as_echo "yes" >&6; }
989632b578d3Smrg       else
98972a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
98982a51b5beSmrg$as_echo "no" >&6; }
989932b578d3Smrgfi
990032b578d3Smrg       ;;
990132b578d3Smrg   *)
99022a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
99032a51b5beSmrg$as_echo "no" >&6; }
990432b578d3Smrg    ;;
990532b578d3Smrg  esac
990632b578d3Smrgfi
990732b578d3Smrg
990832b578d3Smrgif test "x$enable_dlopen" != xyes; then
990932b578d3Smrg  enable_dlopen=unknown
991032b578d3Smrg  enable_dlopen_self=unknown
991132b578d3Smrg  enable_dlopen_self_static=unknown
991232b578d3Smrgelse
991332b578d3Smrg  lt_cv_dlopen=no
991432b578d3Smrg  lt_cv_dlopen_libs=
991532b578d3Smrg
991632b578d3Smrg  case $host_os in
991732b578d3Smrg  beos*)
991832b578d3Smrg    lt_cv_dlopen="load_add_on"
991932b578d3Smrg    lt_cv_dlopen_libs=
992032b578d3Smrg    lt_cv_dlopen_self=yes
992132b578d3Smrg    ;;
992232b578d3Smrg
992332b578d3Smrg  mingw* | pw32*)
992432b578d3Smrg    lt_cv_dlopen="LoadLibrary"
992532b578d3Smrg    lt_cv_dlopen_libs=
992632b578d3Smrg   ;;
992732b578d3Smrg
992832b578d3Smrg  cygwin*)
992932b578d3Smrg    lt_cv_dlopen="dlopen"
993032b578d3Smrg    lt_cv_dlopen_libs=
993132b578d3Smrg   ;;
993232b578d3Smrg
993332b578d3Smrg  darwin*)
993432b578d3Smrg  # if libdl is installed we need to link against it
99352a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
99362a51b5beSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
993732b578d3Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then
99382a51b5beSmrg  $as_echo_n "(cached) " >&6
993932b578d3Smrgelse
994032b578d3Smrg  ac_check_lib_save_LIBS=$LIBS
994132b578d3SmrgLIBS="-ldl  $LIBS"
994232b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
994332b578d3Smrg/* confdefs.h.  */
994432b578d3Smrg_ACEOF
994532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
994632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
994732b578d3Smrg/* end confdefs.h.  */
994832b578d3Smrg
994932b578d3Smrg/* Override any GCC internal prototype to avoid an error.
995032b578d3Smrg   Use char because int might match the return type of a GCC
995132b578d3Smrg   builtin and then its argument prototype would still apply.  */
995232b578d3Smrg#ifdef __cplusplus
995332b578d3Smrgextern "C"
995432b578d3Smrg#endif
995532b578d3Smrgchar dlopen ();
995632b578d3Smrgint
995732b578d3Smrgmain ()
995832b578d3Smrg{
995932b578d3Smrgreturn dlopen ();
996032b578d3Smrg  ;
996132b578d3Smrg  return 0;
996232b578d3Smrg}
996332b578d3Smrg_ACEOF
996432b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
996532b578d3Smrgif { (ac_try="$ac_link"
996632b578d3Smrgcase "(($ac_try" in
996732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
996832b578d3Smrg  *) ac_try_echo=$ac_try;;
996932b578d3Smrgesac
99702a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99712a51b5beSmrg$as_echo "$ac_try_echo") >&5
997232b578d3Smrg  (eval "$ac_link") 2>conftest.er1
997332b578d3Smrg  ac_status=$?
997432b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
997532b578d3Smrg  rm -f conftest.er1
997632b578d3Smrg  cat conftest.err >&5
99772a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
997832b578d3Smrg  (exit $ac_status); } && {
997932b578d3Smrg	 test -z "$ac_c_werror_flag" ||
998032b578d3Smrg	 test ! -s conftest.err
99812a51b5beSmrg       } && test -s conftest$ac_exeext && {
99822a51b5beSmrg	 test "$cross_compiling" = yes ||
99832a51b5beSmrg	 $as_test_x conftest$ac_exeext
99842a51b5beSmrg       }; then
998532b578d3Smrg  ac_cv_lib_dl_dlopen=yes
998632b578d3Smrgelse
99872a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
998832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
998932b578d3Smrg
999032b578d3Smrg	ac_cv_lib_dl_dlopen=no
999132b578d3Smrgfi
999232b578d3Smrg
99932a51b5beSmrgrm -rf conftest.dSYM
999432b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
999532b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
999632b578d3SmrgLIBS=$ac_check_lib_save_LIBS
999732b578d3Smrgfi
99982a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
99992a51b5beSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
100002a51b5beSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then
1000132b578d3Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1000232b578d3Smrgelse
1000332b578d3Smrg
1000432b578d3Smrg    lt_cv_dlopen="dyld"
1000532b578d3Smrg    lt_cv_dlopen_libs=
1000632b578d3Smrg    lt_cv_dlopen_self=yes
1000732b578d3Smrg
1000832b578d3Smrgfi
1000932b578d3Smrg
1001032b578d3Smrg   ;;
1001132b578d3Smrg
1001232b578d3Smrg  *)
100132a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
100142a51b5beSmrg$as_echo_n "checking for shl_load... " >&6; }
1001532b578d3Smrgif test "${ac_cv_func_shl_load+set}" = set; then
100162a51b5beSmrg  $as_echo_n "(cached) " >&6
1001732b578d3Smrgelse
1001832b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
1001932b578d3Smrg/* confdefs.h.  */
1002032b578d3Smrg_ACEOF
1002132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1002232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1002332b578d3Smrg/* end confdefs.h.  */
1002432b578d3Smrg/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
1002532b578d3Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1002632b578d3Smrg#define shl_load innocuous_shl_load
1002732b578d3Smrg
1002832b578d3Smrg/* System header to define __stub macros and hopefully few prototypes,
1002932b578d3Smrg    which can conflict with char shl_load (); below.
1003032b578d3Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1003132b578d3Smrg    <limits.h> exists even on freestanding compilers.  */
1003232b578d3Smrg
1003332b578d3Smrg#ifdef __STDC__
1003432b578d3Smrg# include <limits.h>
1003532b578d3Smrg#else
1003632b578d3Smrg# include <assert.h>
1003732b578d3Smrg#endif
1003832b578d3Smrg
1003932b578d3Smrg#undef shl_load
1004032b578d3Smrg
1004132b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1004232b578d3Smrg   Use char because int might match the return type of a GCC
1004332b578d3Smrg   builtin and then its argument prototype would still apply.  */
1004432b578d3Smrg#ifdef __cplusplus
1004532b578d3Smrgextern "C"
1004632b578d3Smrg#endif
1004732b578d3Smrgchar shl_load ();
1004832b578d3Smrg/* The GNU C library defines this for functions which it implements
1004932b578d3Smrg    to always fail with ENOSYS.  Some functions are actually named
1005032b578d3Smrg    something starting with __ and the normal name is an alias.  */
1005132b578d3Smrg#if defined __stub_shl_load || defined __stub___shl_load
1005232b578d3Smrgchoke me
1005332b578d3Smrg#endif
1005432b578d3Smrg
1005532b578d3Smrgint
1005632b578d3Smrgmain ()
1005732b578d3Smrg{
1005832b578d3Smrgreturn shl_load ();
1005932b578d3Smrg  ;
1006032b578d3Smrg  return 0;
1006132b578d3Smrg}
1006232b578d3Smrg_ACEOF
1006332b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1006432b578d3Smrgif { (ac_try="$ac_link"
1006532b578d3Smrgcase "(($ac_try" in
1006632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1006732b578d3Smrg  *) ac_try_echo=$ac_try;;
1006832b578d3Smrgesac
100692a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100702a51b5beSmrg$as_echo "$ac_try_echo") >&5
1007132b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1007232b578d3Smrg  ac_status=$?
1007332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1007432b578d3Smrg  rm -f conftest.er1
1007532b578d3Smrg  cat conftest.err >&5
100762a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1007732b578d3Smrg  (exit $ac_status); } && {
1007832b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1007932b578d3Smrg	 test ! -s conftest.err
100802a51b5beSmrg       } && test -s conftest$ac_exeext && {
100812a51b5beSmrg	 test "$cross_compiling" = yes ||
100822a51b5beSmrg	 $as_test_x conftest$ac_exeext
100832a51b5beSmrg       }; then
1008432b578d3Smrg  ac_cv_func_shl_load=yes
1008532b578d3Smrgelse
100862a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1008732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1008832b578d3Smrg
1008932b578d3Smrg	ac_cv_func_shl_load=no
1009032b578d3Smrgfi
1009132b578d3Smrg
100922a51b5beSmrgrm -rf conftest.dSYM
1009332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1009432b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1009532b578d3Smrgfi
100962a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
100972a51b5beSmrg$as_echo "$ac_cv_func_shl_load" >&6; }
100982a51b5beSmrgif test "x$ac_cv_func_shl_load" = x""yes; then
1009932b578d3Smrg  lt_cv_dlopen="shl_load"
1010032b578d3Smrgelse
101012a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
101022a51b5beSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
1010332b578d3Smrgif test "${ac_cv_lib_dld_shl_load+set}" = set; then
101042a51b5beSmrg  $as_echo_n "(cached) " >&6
1010532b578d3Smrgelse
1010632b578d3Smrg  ac_check_lib_save_LIBS=$LIBS
1010732b578d3SmrgLIBS="-ldld  $LIBS"
1010832b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
1010932b578d3Smrg/* confdefs.h.  */
1011032b578d3Smrg_ACEOF
1011132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1011232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1011332b578d3Smrg/* end confdefs.h.  */
1011432b578d3Smrg
1011532b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1011632b578d3Smrg   Use char because int might match the return type of a GCC
1011732b578d3Smrg   builtin and then its argument prototype would still apply.  */
1011832b578d3Smrg#ifdef __cplusplus
1011932b578d3Smrgextern "C"
1012032b578d3Smrg#endif
1012132b578d3Smrgchar shl_load ();
1012232b578d3Smrgint
1012332b578d3Smrgmain ()
1012432b578d3Smrg{
1012532b578d3Smrgreturn shl_load ();
1012632b578d3Smrg  ;
1012732b578d3Smrg  return 0;
1012832b578d3Smrg}
1012932b578d3Smrg_ACEOF
1013032b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1013132b578d3Smrgif { (ac_try="$ac_link"
1013232b578d3Smrgcase "(($ac_try" in
1013332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1013432b578d3Smrg  *) ac_try_echo=$ac_try;;
1013532b578d3Smrgesac
101362a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101372a51b5beSmrg$as_echo "$ac_try_echo") >&5
1013832b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1013932b578d3Smrg  ac_status=$?
1014032b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1014132b578d3Smrg  rm -f conftest.er1
1014232b578d3Smrg  cat conftest.err >&5
101432a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1014432b578d3Smrg  (exit $ac_status); } && {
1014532b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1014632b578d3Smrg	 test ! -s conftest.err
101472a51b5beSmrg       } && test -s conftest$ac_exeext && {
101482a51b5beSmrg	 test "$cross_compiling" = yes ||
101492a51b5beSmrg	 $as_test_x conftest$ac_exeext
101502a51b5beSmrg       }; then
1015132b578d3Smrg  ac_cv_lib_dld_shl_load=yes
1015232b578d3Smrgelse
101532a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1015432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1015532b578d3Smrg
1015632b578d3Smrg	ac_cv_lib_dld_shl_load=no
1015732b578d3Smrgfi
1015832b578d3Smrg
101592a51b5beSmrgrm -rf conftest.dSYM
1016032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1016132b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1016232b578d3SmrgLIBS=$ac_check_lib_save_LIBS
1016332b578d3Smrgfi
101642a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
101652a51b5beSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
101662a51b5beSmrgif test "x$ac_cv_lib_dld_shl_load" = x""yes; then
101672a51b5beSmrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1016832b578d3Smrgelse
101692a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
101702a51b5beSmrg$as_echo_n "checking for dlopen... " >&6; }
1017132b578d3Smrgif test "${ac_cv_func_dlopen+set}" = set; then
101722a51b5beSmrg  $as_echo_n "(cached) " >&6
1017332b578d3Smrgelse
1017432b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
1017532b578d3Smrg/* confdefs.h.  */
1017632b578d3Smrg_ACEOF
1017732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1017832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1017932b578d3Smrg/* end confdefs.h.  */
1018032b578d3Smrg/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
1018132b578d3Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1018232b578d3Smrg#define dlopen innocuous_dlopen
1018332b578d3Smrg
1018432b578d3Smrg/* System header to define __stub macros and hopefully few prototypes,
1018532b578d3Smrg    which can conflict with char dlopen (); below.
1018632b578d3Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1018732b578d3Smrg    <limits.h> exists even on freestanding compilers.  */
1018832b578d3Smrg
1018932b578d3Smrg#ifdef __STDC__
1019032b578d3Smrg# include <limits.h>
1019132b578d3Smrg#else
1019232b578d3Smrg# include <assert.h>
1019332b578d3Smrg#endif
1019432b578d3Smrg
1019532b578d3Smrg#undef dlopen
1019632b578d3Smrg
1019732b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1019832b578d3Smrg   Use char because int might match the return type of a GCC
1019932b578d3Smrg   builtin and then its argument prototype would still apply.  */
1020032b578d3Smrg#ifdef __cplusplus
1020132b578d3Smrgextern "C"
1020232b578d3Smrg#endif
1020332b578d3Smrgchar dlopen ();
1020432b578d3Smrg/* The GNU C library defines this for functions which it implements
1020532b578d3Smrg    to always fail with ENOSYS.  Some functions are actually named
1020632b578d3Smrg    something starting with __ and the normal name is an alias.  */
1020732b578d3Smrg#if defined __stub_dlopen || defined __stub___dlopen
1020832b578d3Smrgchoke me
1020932b578d3Smrg#endif
1021032b578d3Smrg
1021132b578d3Smrgint
1021232b578d3Smrgmain ()
1021332b578d3Smrg{
1021432b578d3Smrgreturn dlopen ();
1021532b578d3Smrg  ;
1021632b578d3Smrg  return 0;
1021732b578d3Smrg}
1021832b578d3Smrg_ACEOF
1021932b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1022032b578d3Smrgif { (ac_try="$ac_link"
1022132b578d3Smrgcase "(($ac_try" in
1022232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1022332b578d3Smrg  *) ac_try_echo=$ac_try;;
1022432b578d3Smrgesac
102252a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102262a51b5beSmrg$as_echo "$ac_try_echo") >&5
1022732b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1022832b578d3Smrg  ac_status=$?
1022932b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1023032b578d3Smrg  rm -f conftest.er1
1023132b578d3Smrg  cat conftest.err >&5
102322a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1023332b578d3Smrg  (exit $ac_status); } && {
1023432b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1023532b578d3Smrg	 test ! -s conftest.err
102362a51b5beSmrg       } && test -s conftest$ac_exeext && {
102372a51b5beSmrg	 test "$cross_compiling" = yes ||
102382a51b5beSmrg	 $as_test_x conftest$ac_exeext
102392a51b5beSmrg       }; then
1024032b578d3Smrg  ac_cv_func_dlopen=yes
1024132b578d3Smrgelse
102422a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1024332b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1024432b578d3Smrg
1024532b578d3Smrg	ac_cv_func_dlopen=no
1024632b578d3Smrgfi
1024732b578d3Smrg
102482a51b5beSmrgrm -rf conftest.dSYM
1024932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1025032b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1025132b578d3Smrgfi
102522a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
102532a51b5beSmrg$as_echo "$ac_cv_func_dlopen" >&6; }
102542a51b5beSmrgif test "x$ac_cv_func_dlopen" = x""yes; then
1025532b578d3Smrg  lt_cv_dlopen="dlopen"
1025632b578d3Smrgelse
102572a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
102582a51b5beSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1025932b578d3Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then
102602a51b5beSmrg  $as_echo_n "(cached) " >&6
1026132b578d3Smrgelse
1026232b578d3Smrg  ac_check_lib_save_LIBS=$LIBS
1026332b578d3SmrgLIBS="-ldl  $LIBS"
1026432b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
1026532b578d3Smrg/* confdefs.h.  */
1026632b578d3Smrg_ACEOF
1026732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1026832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1026932b578d3Smrg/* end confdefs.h.  */
1027032b578d3Smrg
1027132b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1027232b578d3Smrg   Use char because int might match the return type of a GCC
1027332b578d3Smrg   builtin and then its argument prototype would still apply.  */
1027432b578d3Smrg#ifdef __cplusplus
1027532b578d3Smrgextern "C"
1027632b578d3Smrg#endif
1027732b578d3Smrgchar dlopen ();
1027832b578d3Smrgint
1027932b578d3Smrgmain ()
1028032b578d3Smrg{
1028132b578d3Smrgreturn dlopen ();
1028232b578d3Smrg  ;
1028332b578d3Smrg  return 0;
1028432b578d3Smrg}
1028532b578d3Smrg_ACEOF
1028632b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1028732b578d3Smrgif { (ac_try="$ac_link"
1028832b578d3Smrgcase "(($ac_try" in
1028932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1029032b578d3Smrg  *) ac_try_echo=$ac_try;;
1029132b578d3Smrgesac
102922a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102932a51b5beSmrg$as_echo "$ac_try_echo") >&5
1029432b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1029532b578d3Smrg  ac_status=$?
1029632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1029732b578d3Smrg  rm -f conftest.er1
1029832b578d3Smrg  cat conftest.err >&5
102992a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1030032b578d3Smrg  (exit $ac_status); } && {
1030132b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1030232b578d3Smrg	 test ! -s conftest.err
103032a51b5beSmrg       } && test -s conftest$ac_exeext && {
103042a51b5beSmrg	 test "$cross_compiling" = yes ||
103052a51b5beSmrg	 $as_test_x conftest$ac_exeext
103062a51b5beSmrg       }; then
1030732b578d3Smrg  ac_cv_lib_dl_dlopen=yes
1030832b578d3Smrgelse
103092a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1031032b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1031132b578d3Smrg
1031232b578d3Smrg	ac_cv_lib_dl_dlopen=no
1031332b578d3Smrgfi
1031432b578d3Smrg
103152a51b5beSmrgrm -rf conftest.dSYM
1031632b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1031732b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1031832b578d3SmrgLIBS=$ac_check_lib_save_LIBS
1031932b578d3Smrgfi
103202a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
103212a51b5beSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
103222a51b5beSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then
1032332b578d3Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1032432b578d3Smrgelse
103252a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
103262a51b5beSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1032732b578d3Smrgif test "${ac_cv_lib_svld_dlopen+set}" = set; then
103282a51b5beSmrg  $as_echo_n "(cached) " >&6
1032932b578d3Smrgelse
1033032b578d3Smrg  ac_check_lib_save_LIBS=$LIBS
1033132b578d3SmrgLIBS="-lsvld  $LIBS"
1033232b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
1033332b578d3Smrg/* confdefs.h.  */
1033432b578d3Smrg_ACEOF
1033532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1033632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1033732b578d3Smrg/* end confdefs.h.  */
1033832b578d3Smrg
1033932b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1034032b578d3Smrg   Use char because int might match the return type of a GCC
1034132b578d3Smrg   builtin and then its argument prototype would still apply.  */
1034232b578d3Smrg#ifdef __cplusplus
1034332b578d3Smrgextern "C"
1034432b578d3Smrg#endif
1034532b578d3Smrgchar dlopen ();
1034632b578d3Smrgint
1034732b578d3Smrgmain ()
1034832b578d3Smrg{
1034932b578d3Smrgreturn dlopen ();
1035032b578d3Smrg  ;
1035132b578d3Smrg  return 0;
1035232b578d3Smrg}
1035332b578d3Smrg_ACEOF
1035432b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1035532b578d3Smrgif { (ac_try="$ac_link"
1035632b578d3Smrgcase "(($ac_try" in
1035732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1035832b578d3Smrg  *) ac_try_echo=$ac_try;;
1035932b578d3Smrgesac
103602a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103612a51b5beSmrg$as_echo "$ac_try_echo") >&5
1036232b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1036332b578d3Smrg  ac_status=$?
1036432b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1036532b578d3Smrg  rm -f conftest.er1
1036632b578d3Smrg  cat conftest.err >&5
103672a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1036832b578d3Smrg  (exit $ac_status); } && {
1036932b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1037032b578d3Smrg	 test ! -s conftest.err
103712a51b5beSmrg       } && test -s conftest$ac_exeext && {
103722a51b5beSmrg	 test "$cross_compiling" = yes ||
103732a51b5beSmrg	 $as_test_x conftest$ac_exeext
103742a51b5beSmrg       }; then
1037532b578d3Smrg  ac_cv_lib_svld_dlopen=yes
1037632b578d3Smrgelse
103772a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1037832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1037932b578d3Smrg
1038032b578d3Smrg	ac_cv_lib_svld_dlopen=no
1038132b578d3Smrgfi
1038232b578d3Smrg
103832a51b5beSmrgrm -rf conftest.dSYM
1038432b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1038532b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1038632b578d3SmrgLIBS=$ac_check_lib_save_LIBS
1038732b578d3Smrgfi
103882a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
103892a51b5beSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
103902a51b5beSmrgif test "x$ac_cv_lib_svld_dlopen" = x""yes; then
1039132b578d3Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1039232b578d3Smrgelse
103932a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
103942a51b5beSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
1039532b578d3Smrgif test "${ac_cv_lib_dld_dld_link+set}" = set; then
103962a51b5beSmrg  $as_echo_n "(cached) " >&6
1039732b578d3Smrgelse
1039832b578d3Smrg  ac_check_lib_save_LIBS=$LIBS
1039932b578d3SmrgLIBS="-ldld  $LIBS"
1040032b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
1040132b578d3Smrg/* confdefs.h.  */
1040232b578d3Smrg_ACEOF
1040332b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1040432b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1040532b578d3Smrg/* end confdefs.h.  */
1040632b578d3Smrg
1040732b578d3Smrg/* Override any GCC internal prototype to avoid an error.
1040832b578d3Smrg   Use char because int might match the return type of a GCC
1040932b578d3Smrg   builtin and then its argument prototype would still apply.  */
1041032b578d3Smrg#ifdef __cplusplus
1041132b578d3Smrgextern "C"
1041232b578d3Smrg#endif
1041332b578d3Smrgchar dld_link ();
1041432b578d3Smrgint
1041532b578d3Smrgmain ()
1041632b578d3Smrg{
1041732b578d3Smrgreturn dld_link ();
1041832b578d3Smrg  ;
1041932b578d3Smrg  return 0;
1042032b578d3Smrg}
1042132b578d3Smrg_ACEOF
1042232b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1042332b578d3Smrgif { (ac_try="$ac_link"
1042432b578d3Smrgcase "(($ac_try" in
1042532b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1042632b578d3Smrg  *) ac_try_echo=$ac_try;;
1042732b578d3Smrgesac
104282a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104292a51b5beSmrg$as_echo "$ac_try_echo") >&5
1043032b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1043132b578d3Smrg  ac_status=$?
1043232b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1043332b578d3Smrg  rm -f conftest.er1
1043432b578d3Smrg  cat conftest.err >&5
104352a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1043632b578d3Smrg  (exit $ac_status); } && {
1043732b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1043832b578d3Smrg	 test ! -s conftest.err
104392a51b5beSmrg       } && test -s conftest$ac_exeext && {
104402a51b5beSmrg	 test "$cross_compiling" = yes ||
104412a51b5beSmrg	 $as_test_x conftest$ac_exeext
104422a51b5beSmrg       }; then
1044332b578d3Smrg  ac_cv_lib_dld_dld_link=yes
1044432b578d3Smrgelse
104452a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1044632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1044732b578d3Smrg
1044832b578d3Smrg	ac_cv_lib_dld_dld_link=no
1044932b578d3Smrgfi
1045032b578d3Smrg
104512a51b5beSmrgrm -rf conftest.dSYM
1045232b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1045332b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1045432b578d3SmrgLIBS=$ac_check_lib_save_LIBS
1045532b578d3Smrgfi
104562a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
104572a51b5beSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
104582a51b5beSmrgif test "x$ac_cv_lib_dld_dld_link" = x""yes; then
104592a51b5beSmrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1046032b578d3Smrgfi
1046132b578d3Smrg
1046232b578d3Smrg
1046332b578d3Smrgfi
1046432b578d3Smrg
1046532b578d3Smrg
1046632b578d3Smrgfi
1046732b578d3Smrg
1046832b578d3Smrg
1046932b578d3Smrgfi
1047032b578d3Smrg
1047132b578d3Smrg
1047232b578d3Smrgfi
1047332b578d3Smrg
1047432b578d3Smrg
1047532b578d3Smrgfi
1047632b578d3Smrg
1047732b578d3Smrg    ;;
1047832b578d3Smrg  esac
1047932b578d3Smrg
1048032b578d3Smrg  if test "x$lt_cv_dlopen" != xno; then
1048132b578d3Smrg    enable_dlopen=yes
1048232b578d3Smrg  else
1048332b578d3Smrg    enable_dlopen=no
1048432b578d3Smrg  fi
1048532b578d3Smrg
1048632b578d3Smrg  case $lt_cv_dlopen in
1048732b578d3Smrg  dlopen)
1048832b578d3Smrg    save_CPPFLAGS="$CPPFLAGS"
1048932b578d3Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1049032b578d3Smrg
1049132b578d3Smrg    save_LDFLAGS="$LDFLAGS"
1049232b578d3Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1049332b578d3Smrg
1049432b578d3Smrg    save_LIBS="$LIBS"
1049532b578d3Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
1049632b578d3Smrg
104972a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
104982a51b5beSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1049932b578d3Smrgif test "${lt_cv_dlopen_self+set}" = set; then
105002a51b5beSmrg  $as_echo_n "(cached) " >&6
1050132b578d3Smrgelse
1050232b578d3Smrg  	  if test "$cross_compiling" = yes; then :
1050332b578d3Smrg  lt_cv_dlopen_self=cross
1050432b578d3Smrgelse
1050532b578d3Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1050632b578d3Smrg  lt_status=$lt_dlunknown
1050732b578d3Smrg  cat > conftest.$ac_ext <<EOF
105082a51b5beSmrg#line 10508 "configure"
1050932b578d3Smrg#include "confdefs.h"
1051032b578d3Smrg
1051132b578d3Smrg#if HAVE_DLFCN_H
1051232b578d3Smrg#include <dlfcn.h>
1051332b578d3Smrg#endif
1051432b578d3Smrg
1051532b578d3Smrg#include <stdio.h>
1051632b578d3Smrg
1051732b578d3Smrg#ifdef RTLD_GLOBAL
1051832b578d3Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1051932b578d3Smrg#else
1052032b578d3Smrg#  ifdef DL_GLOBAL
1052132b578d3Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1052232b578d3Smrg#  else
1052332b578d3Smrg#    define LT_DLGLOBAL		0
1052432b578d3Smrg#  endif
1052532b578d3Smrg#endif
1052632b578d3Smrg
1052732b578d3Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1052832b578d3Smrg   find out it does not work in some platform. */
1052932b578d3Smrg#ifndef LT_DLLAZY_OR_NOW
1053032b578d3Smrg#  ifdef RTLD_LAZY
1053132b578d3Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1053232b578d3Smrg#  else
1053332b578d3Smrg#    ifdef DL_LAZY
1053432b578d3Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1053532b578d3Smrg#    else
1053632b578d3Smrg#      ifdef RTLD_NOW
1053732b578d3Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1053832b578d3Smrg#      else
1053932b578d3Smrg#        ifdef DL_NOW
1054032b578d3Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1054132b578d3Smrg#        else
1054232b578d3Smrg#          define LT_DLLAZY_OR_NOW	0
1054332b578d3Smrg#        endif
1054432b578d3Smrg#      endif
1054532b578d3Smrg#    endif
1054632b578d3Smrg#  endif
1054732b578d3Smrg#endif
1054832b578d3Smrg
1054932b578d3Smrg#ifdef __cplusplus
1055032b578d3Smrgextern "C" void exit (int);
1055132b578d3Smrg#endif
1055232b578d3Smrg
1055332b578d3Smrgvoid fnord() { int i=42;}
1055432b578d3Smrgint main ()
1055532b578d3Smrg{
1055632b578d3Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1055732b578d3Smrg  int status = $lt_dlunknown;
1055832b578d3Smrg
1055932b578d3Smrg  if (self)
1056032b578d3Smrg    {
1056132b578d3Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1056232b578d3Smrg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1056332b578d3Smrg      /* dlclose (self); */
1056432b578d3Smrg    }
1056532b578d3Smrg  else
1056632b578d3Smrg    puts (dlerror ());
1056732b578d3Smrg
1056832b578d3Smrg    exit (status);
1056932b578d3Smrg}
1057032b578d3SmrgEOF
1057132b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1057232b578d3Smrg  (eval $ac_link) 2>&5
1057332b578d3Smrg  ac_status=$?
105742a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1057532b578d3Smrg  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1057632b578d3Smrg    (./conftest; exit; ) >&5 2>/dev/null
1057732b578d3Smrg    lt_status=$?
1057832b578d3Smrg    case x$lt_status in
1057932b578d3Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1058032b578d3Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1058132b578d3Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1058232b578d3Smrg    esac
1058332b578d3Smrg  else :
1058432b578d3Smrg    # compilation failed
1058532b578d3Smrg    lt_cv_dlopen_self=no
1058632b578d3Smrg  fi
1058732b578d3Smrgfi
1058832b578d3Smrgrm -fr conftest*
1058932b578d3Smrg
1059032b578d3Smrg
1059132b578d3Smrgfi
105922a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
105932a51b5beSmrg$as_echo "$lt_cv_dlopen_self" >&6; }
1059432b578d3Smrg
1059532b578d3Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
1059632b578d3Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
105972a51b5beSmrg      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
105982a51b5beSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1059932b578d3Smrgif test "${lt_cv_dlopen_self_static+set}" = set; then
106002a51b5beSmrg  $as_echo_n "(cached) " >&6
1060132b578d3Smrgelse
1060232b578d3Smrg  	  if test "$cross_compiling" = yes; then :
1060332b578d3Smrg  lt_cv_dlopen_self_static=cross
1060432b578d3Smrgelse
1060532b578d3Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1060632b578d3Smrg  lt_status=$lt_dlunknown
1060732b578d3Smrg  cat > conftest.$ac_ext <<EOF
106082a51b5beSmrg#line 10608 "configure"
1060932b578d3Smrg#include "confdefs.h"
1061032b578d3Smrg
1061132b578d3Smrg#if HAVE_DLFCN_H
1061232b578d3Smrg#include <dlfcn.h>
1061332b578d3Smrg#endif
1061432b578d3Smrg
1061532b578d3Smrg#include <stdio.h>
1061632b578d3Smrg
1061732b578d3Smrg#ifdef RTLD_GLOBAL
1061832b578d3Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1061932b578d3Smrg#else
1062032b578d3Smrg#  ifdef DL_GLOBAL
1062132b578d3Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1062232b578d3Smrg#  else
1062332b578d3Smrg#    define LT_DLGLOBAL		0
1062432b578d3Smrg#  endif
1062532b578d3Smrg#endif
1062632b578d3Smrg
1062732b578d3Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1062832b578d3Smrg   find out it does not work in some platform. */
1062932b578d3Smrg#ifndef LT_DLLAZY_OR_NOW
1063032b578d3Smrg#  ifdef RTLD_LAZY
1063132b578d3Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1063232b578d3Smrg#  else
1063332b578d3Smrg#    ifdef DL_LAZY
1063432b578d3Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1063532b578d3Smrg#    else
1063632b578d3Smrg#      ifdef RTLD_NOW
1063732b578d3Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1063832b578d3Smrg#      else
1063932b578d3Smrg#        ifdef DL_NOW
1064032b578d3Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1064132b578d3Smrg#        else
1064232b578d3Smrg#          define LT_DLLAZY_OR_NOW	0
1064332b578d3Smrg#        endif
1064432b578d3Smrg#      endif
1064532b578d3Smrg#    endif
1064632b578d3Smrg#  endif
1064732b578d3Smrg#endif
1064832b578d3Smrg
1064932b578d3Smrg#ifdef __cplusplus
1065032b578d3Smrgextern "C" void exit (int);
1065132b578d3Smrg#endif
1065232b578d3Smrg
1065332b578d3Smrgvoid fnord() { int i=42;}
1065432b578d3Smrgint main ()
1065532b578d3Smrg{
1065632b578d3Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1065732b578d3Smrg  int status = $lt_dlunknown;
1065832b578d3Smrg
1065932b578d3Smrg  if (self)
1066032b578d3Smrg    {
1066132b578d3Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1066232b578d3Smrg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1066332b578d3Smrg      /* dlclose (self); */
1066432b578d3Smrg    }
1066532b578d3Smrg  else
1066632b578d3Smrg    puts (dlerror ());
1066732b578d3Smrg
1066832b578d3Smrg    exit (status);
1066932b578d3Smrg}
1067032b578d3SmrgEOF
1067132b578d3Smrg  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1067232b578d3Smrg  (eval $ac_link) 2>&5
1067332b578d3Smrg  ac_status=$?
106742a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1067532b578d3Smrg  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1067632b578d3Smrg    (./conftest; exit; ) >&5 2>/dev/null
1067732b578d3Smrg    lt_status=$?
1067832b578d3Smrg    case x$lt_status in
1067932b578d3Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1068032b578d3Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1068132b578d3Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1068232b578d3Smrg    esac
1068332b578d3Smrg  else :
1068432b578d3Smrg    # compilation failed
1068532b578d3Smrg    lt_cv_dlopen_self_static=no
1068632b578d3Smrg  fi
1068732b578d3Smrgfi
1068832b578d3Smrgrm -fr conftest*
1068932b578d3Smrg
1069032b578d3Smrg
1069132b578d3Smrgfi
106922a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
106932a51b5beSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
1069432b578d3Smrg    fi
1069532b578d3Smrg
1069632b578d3Smrg    CPPFLAGS="$save_CPPFLAGS"
1069732b578d3Smrg    LDFLAGS="$save_LDFLAGS"
1069832b578d3Smrg    LIBS="$save_LIBS"
1069932b578d3Smrg    ;;
1070032b578d3Smrg  esac
1070132b578d3Smrg
1070232b578d3Smrg  case $lt_cv_dlopen_self in
1070332b578d3Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1070432b578d3Smrg  *) enable_dlopen_self=unknown ;;
1070532b578d3Smrg  esac
1070632b578d3Smrg
1070732b578d3Smrg  case $lt_cv_dlopen_self_static in
1070832b578d3Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1070932b578d3Smrg  *) enable_dlopen_self_static=unknown ;;
1071032b578d3Smrg  esac
1071132b578d3Smrgfi
1071232b578d3Smrg
1071332b578d3Smrg
1071432b578d3Smrg# Report which library types will actually be built
107152a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
107162a51b5beSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
107172a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
107182a51b5beSmrg$as_echo "$can_build_shared" >&6; }
1071932b578d3Smrg
107202a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
107212a51b5beSmrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1072232b578d3Smrgtest "$can_build_shared" = "no" && enable_shared=no
1072332b578d3Smrg
1072432b578d3Smrg# On AIX, shared libraries and static libraries use the same namespace, and
1072532b578d3Smrg# are all built from PIC.
1072632b578d3Smrgcase $host_os in
1072732b578d3Smrgaix3*)
1072832b578d3Smrg  test "$enable_shared" = yes && enable_static=no
1072932b578d3Smrg  if test -n "$RANLIB"; then
1073032b578d3Smrg    archive_cmds="$archive_cmds~\$RANLIB \$lib"
1073132b578d3Smrg    postinstall_cmds='$RANLIB $lib'
1073232b578d3Smrg  fi
1073332b578d3Smrg  ;;
1073432b578d3Smrg
107352a51b5beSmrgaix[4-9]*)
1073632b578d3Smrg  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1073732b578d3Smrg    test "$enable_shared" = yes && enable_static=no
1073832b578d3Smrg  fi
1073932b578d3Smrg    ;;
1074032b578d3Smrgesac
107412a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
107422a51b5beSmrg$as_echo "$enable_shared" >&6; }
1074332b578d3Smrg
107442a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
107452a51b5beSmrg$as_echo_n "checking whether to build static libraries... " >&6; }
1074632b578d3Smrg# Make sure either enable_shared or enable_static is yes.
1074732b578d3Smrgtest "$enable_shared" = yes || enable_static=yes
107482a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
107492a51b5beSmrg$as_echo "$enable_static" >&6; }
1075032b578d3Smrg
1075132b578d3Smrg# The else clause should only fire when bootstrapping the
1075232b578d3Smrg# libtool distribution, otherwise you forgot to ship ltmain.sh
1075332b578d3Smrg# with your package, and you will get complaints that there are
1075432b578d3Smrg# no rules to generate ltmain.sh.
1075532b578d3Smrgif test -f "$ltmain"; then
1075632b578d3Smrg  # See if we are running on zsh, and set the options which allow our commands through
1075732b578d3Smrg  # without removal of \ escapes.
1075832b578d3Smrg  if test -n "${ZSH_VERSION+set}" ; then
1075932b578d3Smrg    setopt NO_GLOB_SUBST
1076032b578d3Smrg  fi
1076132b578d3Smrg  # Now quote all the things that may contain metacharacters while being
1076232b578d3Smrg  # careful not to overquote the AC_SUBSTed values.  We take copies of the
1076332b578d3Smrg  # variables and quote the copies for generation of the libtool script.
1076432b578d3Smrg  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1076532b578d3Smrg    SED SHELL STRIP \
1076632b578d3Smrg    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1076732b578d3Smrg    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1076832b578d3Smrg    deplibs_check_method reload_flag reload_cmds need_locks \
1076932b578d3Smrg    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1077032b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address \
1077132b578d3Smrg    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1077232b578d3Smrg    old_postinstall_cmds old_postuninstall_cmds \
1077332b578d3Smrg    compiler \
1077432b578d3Smrg    CC \
1077532b578d3Smrg    LD \
1077632b578d3Smrg    lt_prog_compiler_wl \
1077732b578d3Smrg    lt_prog_compiler_pic \
1077832b578d3Smrg    lt_prog_compiler_static \
1077932b578d3Smrg    lt_prog_compiler_no_builtin_flag \
1078032b578d3Smrg    export_dynamic_flag_spec \
1078132b578d3Smrg    thread_safe_flag_spec \
1078232b578d3Smrg    whole_archive_flag_spec \
1078332b578d3Smrg    enable_shared_with_static_runtimes \
1078432b578d3Smrg    old_archive_cmds \
1078532b578d3Smrg    old_archive_from_new_cmds \
1078632b578d3Smrg    predep_objects \
1078732b578d3Smrg    postdep_objects \
1078832b578d3Smrg    predeps \
1078932b578d3Smrg    postdeps \
1079032b578d3Smrg    compiler_lib_search_path \
107912a51b5beSmrg    compiler_lib_search_dirs \
1079232b578d3Smrg    archive_cmds \
1079332b578d3Smrg    archive_expsym_cmds \
1079432b578d3Smrg    postinstall_cmds \
1079532b578d3Smrg    postuninstall_cmds \
1079632b578d3Smrg    old_archive_from_expsyms_cmds \
1079732b578d3Smrg    allow_undefined_flag \
1079832b578d3Smrg    no_undefined_flag \
1079932b578d3Smrg    export_symbols_cmds \
1080032b578d3Smrg    hardcode_libdir_flag_spec \
1080132b578d3Smrg    hardcode_libdir_flag_spec_ld \
1080232b578d3Smrg    hardcode_libdir_separator \
1080332b578d3Smrg    hardcode_automatic \
1080432b578d3Smrg    module_cmds \
1080532b578d3Smrg    module_expsym_cmds \
1080632b578d3Smrg    lt_cv_prog_compiler_c_o \
108072a51b5beSmrg    fix_srcfile_path \
1080832b578d3Smrg    exclude_expsyms \
1080932b578d3Smrg    include_expsyms; do
1081032b578d3Smrg
1081132b578d3Smrg    case $var in
1081232b578d3Smrg    old_archive_cmds | \
1081332b578d3Smrg    old_archive_from_new_cmds | \
1081432b578d3Smrg    archive_cmds | \
1081532b578d3Smrg    archive_expsym_cmds | \
1081632b578d3Smrg    module_cmds | \
1081732b578d3Smrg    module_expsym_cmds | \
1081832b578d3Smrg    old_archive_from_expsyms_cmds | \
1081932b578d3Smrg    export_symbols_cmds | \
1082032b578d3Smrg    extract_expsyms_cmds | reload_cmds | finish_cmds | \
1082132b578d3Smrg    postinstall_cmds | postuninstall_cmds | \
1082232b578d3Smrg    old_postinstall_cmds | old_postuninstall_cmds | \
1082332b578d3Smrg    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1082432b578d3Smrg      # Double-quote double-evaled strings.
1082532b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1082632b578d3Smrg      ;;
1082732b578d3Smrg    *)
1082832b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1082932b578d3Smrg      ;;
1083032b578d3Smrg    esac
1083132b578d3Smrg  done
1083232b578d3Smrg
1083332b578d3Smrg  case $lt_echo in
1083432b578d3Smrg  *'\$0 --fallback-echo"')
1083532b578d3Smrg    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1083632b578d3Smrg    ;;
1083732b578d3Smrg  esac
1083832b578d3Smrg
1083932b578d3Smrgcfgfile="${ofile}T"
1084032b578d3Smrg  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
1084132b578d3Smrg  $rm -f "$cfgfile"
108422a51b5beSmrg  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
108432a51b5beSmrg$as_echo "$as_me: creating $ofile" >&6;}
1084432b578d3Smrg
1084532b578d3Smrg  cat <<__EOF__ >> "$cfgfile"
1084632b578d3Smrg#! $SHELL
1084732b578d3Smrg
1084832b578d3Smrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1084932b578d3Smrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
1085032b578d3Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1085132b578d3Smrg#
108522a51b5beSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1085332b578d3Smrg# Free Software Foundation, Inc.
1085432b578d3Smrg#
1085532b578d3Smrg# This file is part of GNU Libtool:
1085632b578d3Smrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1085732b578d3Smrg#
1085832b578d3Smrg# This program is free software; you can redistribute it and/or modify
1085932b578d3Smrg# it under the terms of the GNU General Public License as published by
1086032b578d3Smrg# the Free Software Foundation; either version 2 of the License, or
1086132b578d3Smrg# (at your option) any later version.
1086232b578d3Smrg#
1086332b578d3Smrg# This program is distributed in the hope that it will be useful, but
1086432b578d3Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of
1086532b578d3Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1086632b578d3Smrg# General Public License for more details.
1086732b578d3Smrg#
1086832b578d3Smrg# You should have received a copy of the GNU General Public License
1086932b578d3Smrg# along with this program; if not, write to the Free Software
1087032b578d3Smrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1087132b578d3Smrg#
1087232b578d3Smrg# As a special exception to the GNU General Public License, if you
1087332b578d3Smrg# distribute this file as part of a program that contains a
1087432b578d3Smrg# configuration script generated by Autoconf, you may include it under
1087532b578d3Smrg# the same distribution terms that you use for the rest of that program.
1087632b578d3Smrg
1087732b578d3Smrg# A sed program that does not truncate output.
1087832b578d3SmrgSED=$lt_SED
1087932b578d3Smrg
1088032b578d3Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1088132b578d3SmrgXsed="$SED -e 1s/^X//"
1088232b578d3Smrg
1088332b578d3Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
1088432b578d3Smrg# if CDPATH is set.
1088532b578d3Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1088632b578d3Smrg
1088732b578d3Smrg# The names of the tagged configurations supported by this script.
1088832b578d3Smrgavailable_tags=
1088932b578d3Smrg
1089032b578d3Smrg# ### BEGIN LIBTOOL CONFIG
1089132b578d3Smrg
1089232b578d3Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1089332b578d3Smrg
1089432b578d3Smrg# Shell to use when invoking shell scripts.
1089532b578d3SmrgSHELL=$lt_SHELL
1089632b578d3Smrg
1089732b578d3Smrg# Whether or not to build shared libraries.
1089832b578d3Smrgbuild_libtool_libs=$enable_shared
1089932b578d3Smrg
1090032b578d3Smrg# Whether or not to build static libraries.
1090132b578d3Smrgbuild_old_libs=$enable_static
1090232b578d3Smrg
1090332b578d3Smrg# Whether or not to add -lc for building shared libraries.
1090432b578d3Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
1090532b578d3Smrg
1090632b578d3Smrg# Whether or not to disallow shared libs when runtime libs are static
1090732b578d3Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1090832b578d3Smrg
1090932b578d3Smrg# Whether or not to optimize for fast installation.
1091032b578d3Smrgfast_install=$enable_fast_install
1091132b578d3Smrg
1091232b578d3Smrg# The host system.
1091332b578d3Smrghost_alias=$host_alias
1091432b578d3Smrghost=$host
1091532b578d3Smrghost_os=$host_os
1091632b578d3Smrg
1091732b578d3Smrg# The build system.
1091832b578d3Smrgbuild_alias=$build_alias
1091932b578d3Smrgbuild=$build
1092032b578d3Smrgbuild_os=$build_os
1092132b578d3Smrg
1092232b578d3Smrg# An echo program that does not interpret backslashes.
1092332b578d3Smrgecho=$lt_echo
1092432b578d3Smrg
1092532b578d3Smrg# The archiver.
1092632b578d3SmrgAR=$lt_AR
1092732b578d3SmrgAR_FLAGS=$lt_AR_FLAGS
1092832b578d3Smrg
1092932b578d3Smrg# A C compiler.
1093032b578d3SmrgLTCC=$lt_LTCC
1093132b578d3Smrg
1093232b578d3Smrg# LTCC compiler flags.
1093332b578d3SmrgLTCFLAGS=$lt_LTCFLAGS
1093432b578d3Smrg
1093532b578d3Smrg# A language-specific compiler.
1093632b578d3SmrgCC=$lt_compiler
1093732b578d3Smrg
1093832b578d3Smrg# Is the compiler the GNU C compiler?
1093932b578d3Smrgwith_gcc=$GCC
1094032b578d3Smrg
1094132b578d3Smrg# An ERE matcher.
1094232b578d3SmrgEGREP=$lt_EGREP
1094332b578d3Smrg
1094432b578d3Smrg# The linker used to build libraries.
1094532b578d3SmrgLD=$lt_LD
1094632b578d3Smrg
1094732b578d3Smrg# Whether we need hard or soft links.
1094832b578d3SmrgLN_S=$lt_LN_S
1094932b578d3Smrg
1095032b578d3Smrg# A BSD-compatible nm program.
1095132b578d3SmrgNM=$lt_NM
1095232b578d3Smrg
1095332b578d3Smrg# A symbol stripping program
1095432b578d3SmrgSTRIP=$lt_STRIP
1095532b578d3Smrg
1095632b578d3Smrg# Used to examine libraries when file_magic_cmd begins "file"
1095732b578d3SmrgMAGIC_CMD=$MAGIC_CMD
1095832b578d3Smrg
1095932b578d3Smrg# Used on cygwin: DLL creation program.
1096032b578d3SmrgDLLTOOL="$DLLTOOL"
1096132b578d3Smrg
1096232b578d3Smrg# Used on cygwin: object dumper.
1096332b578d3SmrgOBJDUMP="$OBJDUMP"
1096432b578d3Smrg
1096532b578d3Smrg# Used on cygwin: assembler.
1096632b578d3SmrgAS="$AS"
1096732b578d3Smrg
1096832b578d3Smrg# The name of the directory that contains temporary libtool files.
1096932b578d3Smrgobjdir=$objdir
1097032b578d3Smrg
1097132b578d3Smrg# How to create reloadable object files.
1097232b578d3Smrgreload_flag=$lt_reload_flag
1097332b578d3Smrgreload_cmds=$lt_reload_cmds
1097432b578d3Smrg
1097532b578d3Smrg# How to pass a linker flag through the compiler.
1097632b578d3Smrgwl=$lt_lt_prog_compiler_wl
1097732b578d3Smrg
1097832b578d3Smrg# Object file suffix (normally "o").
1097932b578d3Smrgobjext="$ac_objext"
1098032b578d3Smrg
1098132b578d3Smrg# Old archive suffix (normally "a").
1098232b578d3Smrglibext="$libext"
1098332b578d3Smrg
1098432b578d3Smrg# Shared library suffix (normally ".so").
1098532b578d3Smrgshrext_cmds='$shrext_cmds'
1098632b578d3Smrg
1098732b578d3Smrg# Executable file suffix (normally "").
1098832b578d3Smrgexeext="$exeext"
1098932b578d3Smrg
1099032b578d3Smrg# Additional compiler flags for building library objects.
1099132b578d3Smrgpic_flag=$lt_lt_prog_compiler_pic
1099232b578d3Smrgpic_mode=$pic_mode
1099332b578d3Smrg
1099432b578d3Smrg# What is the maximum length of a command?
1099532b578d3Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1099632b578d3Smrg
1099732b578d3Smrg# Does compiler simultaneously support -c and -o options?
1099832b578d3Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
1099932b578d3Smrg
1100032b578d3Smrg# Must we lock files when doing compilation?
1100132b578d3Smrgneed_locks=$lt_need_locks
1100232b578d3Smrg
1100332b578d3Smrg# Do we need the lib prefix for modules?
1100432b578d3Smrgneed_lib_prefix=$need_lib_prefix
1100532b578d3Smrg
1100632b578d3Smrg# Do we need a version for libraries?
1100732b578d3Smrgneed_version=$need_version
1100832b578d3Smrg
1100932b578d3Smrg# Whether dlopen is supported.
1101032b578d3Smrgdlopen_support=$enable_dlopen
1101132b578d3Smrg
1101232b578d3Smrg# Whether dlopen of programs is supported.
1101332b578d3Smrgdlopen_self=$enable_dlopen_self
1101432b578d3Smrg
1101532b578d3Smrg# Whether dlopen of statically linked programs is supported.
1101632b578d3Smrgdlopen_self_static=$enable_dlopen_self_static
1101732b578d3Smrg
1101832b578d3Smrg# Compiler flag to prevent dynamic linking.
1101932b578d3Smrglink_static_flag=$lt_lt_prog_compiler_static
1102032b578d3Smrg
1102132b578d3Smrg# Compiler flag to turn off builtin functions.
1102232b578d3Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1102332b578d3Smrg
1102432b578d3Smrg# Compiler flag to allow reflexive dlopens.
1102532b578d3Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1102632b578d3Smrg
1102732b578d3Smrg# Compiler flag to generate shared objects directly from archives.
1102832b578d3Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
1102932b578d3Smrg
1103032b578d3Smrg# Compiler flag to generate thread-safe objects.
1103132b578d3Smrgthread_safe_flag_spec=$lt_thread_safe_flag_spec
1103232b578d3Smrg
1103332b578d3Smrg# Library versioning type.
1103432b578d3Smrgversion_type=$version_type
1103532b578d3Smrg
1103632b578d3Smrg# Format of library name prefix.
1103732b578d3Smrglibname_spec=$lt_libname_spec
1103832b578d3Smrg
1103932b578d3Smrg# List of archive names.  First name is the real one, the rest are links.
1104032b578d3Smrg# The last name is the one that the linker finds with -lNAME.
1104132b578d3Smrglibrary_names_spec=$lt_library_names_spec
1104232b578d3Smrg
1104332b578d3Smrg# The coded name of the library, if different from the real name.
1104432b578d3Smrgsoname_spec=$lt_soname_spec
1104532b578d3Smrg
1104632b578d3Smrg# Commands used to build and install an old-style archive.
1104732b578d3SmrgRANLIB=$lt_RANLIB
1104832b578d3Smrgold_archive_cmds=$lt_old_archive_cmds
1104932b578d3Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1105032b578d3Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1105132b578d3Smrg
1105232b578d3Smrg# Create an old-style archive from a shared archive.
1105332b578d3Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1105432b578d3Smrg
1105532b578d3Smrg# Create a temporary old-style archive to link instead of a shared archive.
1105632b578d3Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1105732b578d3Smrg
1105832b578d3Smrg# Commands used to build and install a shared archive.
1105932b578d3Smrgarchive_cmds=$lt_archive_cmds
1106032b578d3Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
1106132b578d3Smrgpostinstall_cmds=$lt_postinstall_cmds
1106232b578d3Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1106332b578d3Smrg
1106432b578d3Smrg# Commands used to build a loadable module (assumed same as above if empty)
1106532b578d3Smrgmodule_cmds=$lt_module_cmds
1106632b578d3Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
1106732b578d3Smrg
1106832b578d3Smrg# Commands to strip libraries.
1106932b578d3Smrgold_striplib=$lt_old_striplib
1107032b578d3Smrgstriplib=$lt_striplib
1107132b578d3Smrg
1107232b578d3Smrg# Dependencies to place before the objects being linked to create a
1107332b578d3Smrg# shared library.
1107432b578d3Smrgpredep_objects=$lt_predep_objects
1107532b578d3Smrg
1107632b578d3Smrg# Dependencies to place after the objects being linked to create a
1107732b578d3Smrg# shared library.
1107832b578d3Smrgpostdep_objects=$lt_postdep_objects
1107932b578d3Smrg
1108032b578d3Smrg# Dependencies to place before the objects being linked to create a
1108132b578d3Smrg# shared library.
1108232b578d3Smrgpredeps=$lt_predeps
1108332b578d3Smrg
1108432b578d3Smrg# Dependencies to place after the objects being linked to create a
1108532b578d3Smrg# shared library.
1108632b578d3Smrgpostdeps=$lt_postdeps
1108732b578d3Smrg
110882a51b5beSmrg# The directories searched by this compiler when creating a shared
110892a51b5beSmrg# library
110902a51b5beSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs
110912a51b5beSmrg
1109232b578d3Smrg# The library search path used internally by the compiler when linking
1109332b578d3Smrg# a shared library.
1109432b578d3Smrgcompiler_lib_search_path=$lt_compiler_lib_search_path
1109532b578d3Smrg
1109632b578d3Smrg# Method to check whether dependent libraries are shared objects.
1109732b578d3Smrgdeplibs_check_method=$lt_deplibs_check_method
1109832b578d3Smrg
1109932b578d3Smrg# Command to use when deplibs_check_method == file_magic.
1110032b578d3Smrgfile_magic_cmd=$lt_file_magic_cmd
1110132b578d3Smrg
1110232b578d3Smrg# Flag that allows shared libraries with undefined symbols to be built.
1110332b578d3Smrgallow_undefined_flag=$lt_allow_undefined_flag
1110432b578d3Smrg
1110532b578d3Smrg# Flag that forces no undefined symbols.
1110632b578d3Smrgno_undefined_flag=$lt_no_undefined_flag
1110732b578d3Smrg
1110832b578d3Smrg# Commands used to finish a libtool library installation in a directory.
1110932b578d3Smrgfinish_cmds=$lt_finish_cmds
1111032b578d3Smrg
1111132b578d3Smrg# Same as above, but a single script fragment to be evaled but not shown.
1111232b578d3Smrgfinish_eval=$lt_finish_eval
1111332b578d3Smrg
1111432b578d3Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1111532b578d3Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1111632b578d3Smrg
1111732b578d3Smrg# Transform the output of nm in a proper C declaration
1111832b578d3Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1111932b578d3Smrg
1112032b578d3Smrg# Transform the output of nm in a C name address pair
1112132b578d3Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1112232b578d3Smrg
1112332b578d3Smrg# This is the shared library runtime path variable.
1112432b578d3Smrgrunpath_var=$runpath_var
1112532b578d3Smrg
1112632b578d3Smrg# This is the shared library path variable.
1112732b578d3Smrgshlibpath_var=$shlibpath_var
1112832b578d3Smrg
1112932b578d3Smrg# Is shlibpath searched before the hard-coded library search path?
1113032b578d3Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1113132b578d3Smrg
1113232b578d3Smrg# How to hardcode a shared library path into an executable.
1113332b578d3Smrghardcode_action=$hardcode_action
1113432b578d3Smrg
1113532b578d3Smrg# Whether we should hardcode library paths into libraries.
1113632b578d3Smrghardcode_into_libs=$hardcode_into_libs
1113732b578d3Smrg
1113832b578d3Smrg# Flag to hardcode \$libdir into a binary during linking.
1113932b578d3Smrg# This must work even if \$libdir does not exist.
1114032b578d3Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1114132b578d3Smrg
1114232b578d3Smrg# If ld is used when linking, flag to hardcode \$libdir into
1114332b578d3Smrg# a binary during linking. This must work even if \$libdir does
1114432b578d3Smrg# not exist.
1114532b578d3Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1114632b578d3Smrg
1114732b578d3Smrg# Whether we need a single -rpath flag with a separated argument.
1114832b578d3Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
1114932b578d3Smrg
1115032b578d3Smrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1115132b578d3Smrg# resulting binary.
1115232b578d3Smrghardcode_direct=$hardcode_direct
1115332b578d3Smrg
1115432b578d3Smrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1115532b578d3Smrg# resulting binary.
1115632b578d3Smrghardcode_minus_L=$hardcode_minus_L
1115732b578d3Smrg
1115832b578d3Smrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1115932b578d3Smrg# the resulting binary.
1116032b578d3Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
1116132b578d3Smrg
1116232b578d3Smrg# Set to yes if building a shared library automatically hardcodes DIR into the library
1116332b578d3Smrg# and all subsequent libraries and executables linked against it.
1116432b578d3Smrghardcode_automatic=$hardcode_automatic
1116532b578d3Smrg
1116632b578d3Smrg# Variables whose values should be saved in libtool wrapper scripts and
1116732b578d3Smrg# restored at relink time.
1116832b578d3Smrgvariables_saved_for_relink="$variables_saved_for_relink"
1116932b578d3Smrg
1117032b578d3Smrg# Whether libtool must link a program against all its dependency libraries.
1117132b578d3Smrglink_all_deplibs=$link_all_deplibs
1117232b578d3Smrg
1117332b578d3Smrg# Compile-time system search path for libraries
1117432b578d3Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1117532b578d3Smrg
1117632b578d3Smrg# Run-time system search path for libraries
1117732b578d3Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1117832b578d3Smrg
1117932b578d3Smrg# Fix the shell variable \$srcfile for the compiler.
111802a51b5beSmrgfix_srcfile_path=$lt_fix_srcfile_path
1118132b578d3Smrg
1118232b578d3Smrg# Set to yes if exported symbols are required.
1118332b578d3Smrgalways_export_symbols=$always_export_symbols
1118432b578d3Smrg
1118532b578d3Smrg# The commands to list exported symbols.
1118632b578d3Smrgexport_symbols_cmds=$lt_export_symbols_cmds
1118732b578d3Smrg
1118832b578d3Smrg# The commands to extract the exported symbol list from a shared archive.
1118932b578d3Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1119032b578d3Smrg
1119132b578d3Smrg# Symbols that should not be listed in the preloaded symbols.
1119232b578d3Smrgexclude_expsyms=$lt_exclude_expsyms
1119332b578d3Smrg
1119432b578d3Smrg# Symbols that must always be exported.
1119532b578d3Smrginclude_expsyms=$lt_include_expsyms
1119632b578d3Smrg
1119732b578d3Smrg# ### END LIBTOOL CONFIG
1119832b578d3Smrg
1119932b578d3Smrg__EOF__
1120032b578d3Smrg
1120132b578d3Smrg
1120232b578d3Smrg  case $host_os in
1120332b578d3Smrg  aix3*)
1120432b578d3Smrg    cat <<\EOF >> "$cfgfile"
1120532b578d3Smrg
1120632b578d3Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
1120732b578d3Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
1120832b578d3Smrg# vanish in a puff of smoke.
1120932b578d3Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
1121032b578d3Smrg  COLLECT_NAMES=
1121132b578d3Smrg  export COLLECT_NAMES
1121232b578d3Smrgfi
1121332b578d3SmrgEOF
1121432b578d3Smrg    ;;
1121532b578d3Smrg  esac
1121632b578d3Smrg
1121732b578d3Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
1121832b578d3Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1121932b578d3Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
1122032b578d3Smrg  # is reportedly fixed, but why not run on old versions too?
1122132b578d3Smrg  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1122232b578d3Smrg
1122332b578d3Smrg  mv -f "$cfgfile" "$ofile" || \
1122432b578d3Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1122532b578d3Smrg  chmod +x "$ofile"
1122632b578d3Smrg
1122732b578d3Smrgelse
1122832b578d3Smrg  # If there is no Makefile yet, we rely on a make rule to execute
1122932b578d3Smrg  # `config.status --recheck' to rerun these tests and create the
1123032b578d3Smrg  # libtool script then.
1123132b578d3Smrg  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1123232b578d3Smrg  if test -f "$ltmain_in"; then
1123332b578d3Smrg    test -f Makefile && make "$ltmain"
1123432b578d3Smrg  fi
1123532b578d3Smrgfi
1123632b578d3Smrg
1123732b578d3Smrg
1123832b578d3Smrgac_ext=c
1123932b578d3Smrgac_cpp='$CPP $CPPFLAGS'
1124032b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1124132b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1124232b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1124332b578d3Smrg
1124432b578d3SmrgCC="$lt_save_CC"
1124532b578d3Smrg
1124632b578d3Smrg
1124732b578d3Smrg# Check whether --with-tags was given.
1124832b578d3Smrgif test "${with_tags+set}" = set; then
1124932b578d3Smrg  withval=$with_tags; tagnames="$withval"
1125032b578d3Smrgfi
1125132b578d3Smrg
1125232b578d3Smrg
1125332b578d3Smrgif test -f "$ltmain" && test -n "$tagnames"; then
1125432b578d3Smrg  if test ! -f "${ofile}"; then
112552a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
112562a51b5beSmrg$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
1125732b578d3Smrg  fi
1125832b578d3Smrg
1125932b578d3Smrg  if test -z "$LTCC"; then
1126032b578d3Smrg    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1126132b578d3Smrg    if test -z "$LTCC"; then
112622a51b5beSmrg      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
112632a51b5beSmrg$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
1126432b578d3Smrg    else
112652a51b5beSmrg      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
112662a51b5beSmrg$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
1126732b578d3Smrg    fi
1126832b578d3Smrg  fi
1126932b578d3Smrg  if test -z "$LTCFLAGS"; then
1127032b578d3Smrg    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1127132b578d3Smrg  fi
1127232b578d3Smrg
1127332b578d3Smrg  # Extract list of available tagged configurations in $ofile.
1127432b578d3Smrg  # Note that this assumes the entire list is on one line.
1127532b578d3Smrg  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1127632b578d3Smrg
1127732b578d3Smrg  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1127832b578d3Smrg  for tagname in $tagnames; do
1127932b578d3Smrg    IFS="$lt_save_ifs"
1128032b578d3Smrg    # Check whether tagname contains only valid characters
1128132b578d3Smrg    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
1128232b578d3Smrg    "") ;;
112832a51b5beSmrg    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
112842a51b5beSmrg$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
1128532b578d3Smrg   { (exit 1); exit 1; }; }
1128632b578d3Smrg	;;
1128732b578d3Smrg    esac
1128832b578d3Smrg
1128932b578d3Smrg    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1129032b578d3Smrg    then
112912a51b5beSmrg      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
112922a51b5beSmrg$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
1129332b578d3Smrg   { (exit 1); exit 1; }; }
1129432b578d3Smrg    fi
1129532b578d3Smrg
1129632b578d3Smrg    # Update the list of available tags.
1129732b578d3Smrg    if test -n "$tagname"; then
1129832b578d3Smrg      echo appending configuration tag \"$tagname\" to $ofile
1129932b578d3Smrg
1130032b578d3Smrg      case $tagname in
1130132b578d3Smrg      CXX)
1130232b578d3Smrg	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1130332b578d3Smrg	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1130432b578d3Smrg	    (test "X$CXX" != "Xg++"))) ; then
1130532b578d3Smrg	  ac_ext=cpp
1130632b578d3Smrgac_cpp='$CXXCPP $CPPFLAGS'
1130732b578d3Smrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1130832b578d3Smrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1130932b578d3Smrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1131032b578d3Smrg
1131132b578d3Smrg
1131232b578d3Smrg
1131332b578d3Smrg
1131432b578d3Smrgarchive_cmds_need_lc_CXX=no
1131532b578d3Smrgallow_undefined_flag_CXX=
1131632b578d3Smrgalways_export_symbols_CXX=no
1131732b578d3Smrgarchive_expsym_cmds_CXX=
1131832b578d3Smrgexport_dynamic_flag_spec_CXX=
1131932b578d3Smrghardcode_direct_CXX=no
1132032b578d3Smrghardcode_libdir_flag_spec_CXX=
1132132b578d3Smrghardcode_libdir_flag_spec_ld_CXX=
1132232b578d3Smrghardcode_libdir_separator_CXX=
1132332b578d3Smrghardcode_minus_L_CXX=no
1132432b578d3Smrghardcode_shlibpath_var_CXX=unsupported
1132532b578d3Smrghardcode_automatic_CXX=no
1132632b578d3Smrgmodule_cmds_CXX=
1132732b578d3Smrgmodule_expsym_cmds_CXX=
1132832b578d3Smrglink_all_deplibs_CXX=unknown
1132932b578d3Smrgold_archive_cmds_CXX=$old_archive_cmds
1133032b578d3Smrgno_undefined_flag_CXX=
1133132b578d3Smrgwhole_archive_flag_spec_CXX=
1133232b578d3Smrgenable_shared_with_static_runtimes_CXX=no
1133332b578d3Smrg
1133432b578d3Smrg# Dependencies to place before and after the object being linked:
1133532b578d3Smrgpredep_objects_CXX=
1133632b578d3Smrgpostdep_objects_CXX=
1133732b578d3Smrgpredeps_CXX=
1133832b578d3Smrgpostdeps_CXX=
1133932b578d3Smrgcompiler_lib_search_path_CXX=
113402a51b5beSmrgcompiler_lib_search_dirs_CXX=
1134132b578d3Smrg
1134232b578d3Smrg# Source file extension for C++ test sources.
1134332b578d3Smrgac_ext=cpp
1134432b578d3Smrg
1134532b578d3Smrg# Object file extension for compiled C++ test sources.
1134632b578d3Smrgobjext=o
1134732b578d3Smrgobjext_CXX=$objext
1134832b578d3Smrg
1134932b578d3Smrg# Code to be used in simple compile tests
113502a51b5beSmrglt_simple_compile_test_code="int some_variable = 0;"
1135132b578d3Smrg
1135232b578d3Smrg# Code to be used in simple link tests
113532a51b5beSmrglt_simple_link_test_code='int main(int, char *[]) { return(0); }'
1135432b578d3Smrg
1135532b578d3Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1135632b578d3Smrg
1135732b578d3Smrg# If no C compiler was specified, use CC.
1135832b578d3SmrgLTCC=${LTCC-"$CC"}
1135932b578d3Smrg
1136032b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
1136132b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1136232b578d3Smrg
1136332b578d3Smrg# Allow CC to be a program name with arguments.
1136432b578d3Smrgcompiler=$CC
1136532b578d3Smrg
1136632b578d3Smrg
1136732b578d3Smrg# save warnings/boilerplate of simple test code
1136832b578d3Smrgac_outfile=conftest.$ac_objext
113692a51b5beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
1137032b578d3Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1137132b578d3Smrg_lt_compiler_boilerplate=`cat conftest.err`
1137232b578d3Smrg$rm conftest*
1137332b578d3Smrg
1137432b578d3Smrgac_outfile=conftest.$ac_objext
113752a51b5beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
1137632b578d3Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1137732b578d3Smrg_lt_linker_boilerplate=`cat conftest.err`
113782a51b5beSmrg$rm -r conftest*
1137932b578d3Smrg
1138032b578d3Smrg
1138132b578d3Smrg# Allow CC to be a program name with arguments.
1138232b578d3Smrglt_save_CC=$CC
1138332b578d3Smrglt_save_LD=$LD
1138432b578d3Smrglt_save_GCC=$GCC
1138532b578d3SmrgGCC=$GXX
1138632b578d3Smrglt_save_with_gnu_ld=$with_gnu_ld
1138732b578d3Smrglt_save_path_LD=$lt_cv_path_LD
1138832b578d3Smrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1138932b578d3Smrg  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1139032b578d3Smrgelse
1139132b578d3Smrg  $as_unset lt_cv_prog_gnu_ld
1139232b578d3Smrgfi
1139332b578d3Smrgif test -n "${lt_cv_path_LDCXX+set}"; then
1139432b578d3Smrg  lt_cv_path_LD=$lt_cv_path_LDCXX
1139532b578d3Smrgelse
1139632b578d3Smrg  $as_unset lt_cv_path_LD
1139732b578d3Smrgfi
1139832b578d3Smrgtest -z "${LDCXX+set}" || LD=$LDCXX
1139932b578d3SmrgCC=${CXX-"c++"}
1140032b578d3Smrgcompiler=$CC
1140132b578d3Smrgcompiler_CXX=$CC
1140232b578d3Smrgfor cc_temp in $compiler""; do
1140332b578d3Smrg  case $cc_temp in
1140432b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1140532b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1140632b578d3Smrg    \-*) ;;
1140732b578d3Smrg    *) break;;
1140832b578d3Smrg  esac
1140932b578d3Smrgdone
1141032b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1141132b578d3Smrg
1141232b578d3Smrg
1141332b578d3Smrg# We don't want -fno-exception wen compiling C++ code, so set the
1141432b578d3Smrg# no_builtin_flag separately
1141532b578d3Smrgif test "$GXX" = yes; then
1141632b578d3Smrg  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
1141732b578d3Smrgelse
1141832b578d3Smrg  lt_prog_compiler_no_builtin_flag_CXX=
1141932b578d3Smrgfi
1142032b578d3Smrg
1142132b578d3Smrgif test "$GXX" = yes; then
1142232b578d3Smrg  # Set up default GNU C++ configuration
1142332b578d3Smrg
1142432b578d3Smrg
1142532b578d3Smrg# Check whether --with-gnu-ld was given.
1142632b578d3Smrgif test "${with_gnu_ld+set}" = set; then
1142732b578d3Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1142832b578d3Smrgelse
1142932b578d3Smrg  with_gnu_ld=no
1143032b578d3Smrgfi
1143132b578d3Smrg
1143232b578d3Smrgac_prog=ld
1143332b578d3Smrgif test "$GCC" = yes; then
1143432b578d3Smrg  # Check if gcc -print-prog-name=ld gives a path.
114352a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
114362a51b5beSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
1143732b578d3Smrg  case $host in
1143832b578d3Smrg  *-*-mingw*)
1143932b578d3Smrg    # gcc leaves a trailing carriage return which upsets mingw
1144032b578d3Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1144132b578d3Smrg  *)
1144232b578d3Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1144332b578d3Smrg  esac
1144432b578d3Smrg  case $ac_prog in
1144532b578d3Smrg    # Accept absolute paths.
1144632b578d3Smrg    [\\/]* | ?:[\\/]*)
1144732b578d3Smrg      re_direlt='/[^/][^/]*/\.\./'
1144832b578d3Smrg      # Canonicalize the pathname of ld
1144932b578d3Smrg      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1145032b578d3Smrg      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1145132b578d3Smrg	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1145232b578d3Smrg      done
1145332b578d3Smrg      test -z "$LD" && LD="$ac_prog"
1145432b578d3Smrg      ;;
1145532b578d3Smrg  "")
1145632b578d3Smrg    # If it fails, then pretend we aren't using GCC.
1145732b578d3Smrg    ac_prog=ld
1145832b578d3Smrg    ;;
1145932b578d3Smrg  *)
1146032b578d3Smrg    # If it is relative, then search for the first ld in PATH.
1146132b578d3Smrg    with_gnu_ld=unknown
1146232b578d3Smrg    ;;
1146332b578d3Smrg  esac
1146432b578d3Smrgelif test "$with_gnu_ld" = yes; then
114652a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
114662a51b5beSmrg$as_echo_n "checking for GNU ld... " >&6; }
1146732b578d3Smrgelse
114682a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
114692a51b5beSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
1147032b578d3Smrgfi
1147132b578d3Smrgif test "${lt_cv_path_LD+set}" = set; then
114722a51b5beSmrg  $as_echo_n "(cached) " >&6
1147332b578d3Smrgelse
1147432b578d3Smrg  if test -z "$LD"; then
1147532b578d3Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1147632b578d3Smrg  for ac_dir in $PATH; do
1147732b578d3Smrg    IFS="$lt_save_ifs"
1147832b578d3Smrg    test -z "$ac_dir" && ac_dir=.
1147932b578d3Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1148032b578d3Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
1148132b578d3Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
1148232b578d3Smrg      # but apparently some variants of GNU ld only accept -v.
1148332b578d3Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
1148432b578d3Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1148532b578d3Smrg      *GNU* | *'with BFD'*)
1148632b578d3Smrg	test "$with_gnu_ld" != no && break
1148732b578d3Smrg	;;
1148832b578d3Smrg      *)
1148932b578d3Smrg	test "$with_gnu_ld" != yes && break
1149032b578d3Smrg	;;
1149132b578d3Smrg      esac
1149232b578d3Smrg    fi
1149332b578d3Smrg  done
1149432b578d3Smrg  IFS="$lt_save_ifs"
1149532b578d3Smrgelse
1149632b578d3Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1149732b578d3Smrgfi
1149832b578d3Smrgfi
1149932b578d3Smrg
1150032b578d3SmrgLD="$lt_cv_path_LD"
1150132b578d3Smrgif test -n "$LD"; then
115022a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $LD" >&5
115032a51b5beSmrg$as_echo "$LD" >&6; }
1150432b578d3Smrgelse
115052a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
115062a51b5beSmrg$as_echo "no" >&6; }
1150732b578d3Smrgfi
115082a51b5beSmrgtest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
115092a51b5beSmrg$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
1151032b578d3Smrg   { (exit 1); exit 1; }; }
115112a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
115122a51b5beSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1151332b578d3Smrgif test "${lt_cv_prog_gnu_ld+set}" = set; then
115142a51b5beSmrg  $as_echo_n "(cached) " >&6
1151532b578d3Smrgelse
1151632b578d3Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
1151732b578d3Smrgcase `$LD -v 2>&1 </dev/null` in
1151832b578d3Smrg*GNU* | *'with BFD'*)
1151932b578d3Smrg  lt_cv_prog_gnu_ld=yes
1152032b578d3Smrg  ;;
1152132b578d3Smrg*)
1152232b578d3Smrg  lt_cv_prog_gnu_ld=no
1152332b578d3Smrg  ;;
1152432b578d3Smrgesac
1152532b578d3Smrgfi
115262a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
115272a51b5beSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1152832b578d3Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
1152932b578d3Smrg
1153032b578d3Smrg
1153132b578d3Smrg
1153232b578d3Smrg  # Check if GNU C++ uses GNU ld as the underlying linker, since the
1153332b578d3Smrg  # archiving commands below assume that GNU ld is being used.
1153432b578d3Smrg  if test "$with_gnu_ld" = yes; then
1153532b578d3Smrg    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1153632b578d3Smrg    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1153732b578d3Smrg
1153832b578d3Smrg    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1153932b578d3Smrg    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1154032b578d3Smrg
1154132b578d3Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
1154232b578d3Smrg    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1154332b578d3Smrg    #     investigate it a little bit more. (MM)
1154432b578d3Smrg    wlarc='${wl}'
1154532b578d3Smrg
1154632b578d3Smrg    # ancient GNU ld didn't support --whole-archive et. al.
1154732b578d3Smrg    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
1154832b578d3Smrg	grep 'no-whole-archive' > /dev/null; then
1154932b578d3Smrg      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1155032b578d3Smrg    else
1155132b578d3Smrg      whole_archive_flag_spec_CXX=
1155232b578d3Smrg    fi
1155332b578d3Smrg  else
1155432b578d3Smrg    with_gnu_ld=no
1155532b578d3Smrg    wlarc=
1155632b578d3Smrg
1155732b578d3Smrg    # A generic and very simple default shared library creation
1155832b578d3Smrg    # command for GNU C++ for the case where it uses the native
1155932b578d3Smrg    # linker, instead of GNU ld.  If possible, this setting should
1156032b578d3Smrg    # overridden to take advantage of the native linker features on
1156132b578d3Smrg    # the platform it is being used on.
1156232b578d3Smrg    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1156332b578d3Smrg  fi
1156432b578d3Smrg
1156532b578d3Smrg  # Commands to make compiler produce verbose output that lists
1156632b578d3Smrg  # what "hidden" libraries, object files and flags are used when
1156732b578d3Smrg  # linking a shared library.
1156832b578d3Smrg  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1156932b578d3Smrg
1157032b578d3Smrgelse
1157132b578d3Smrg  GXX=no
1157232b578d3Smrg  with_gnu_ld=no
1157332b578d3Smrg  wlarc=
1157432b578d3Smrgfi
1157532b578d3Smrg
1157632b578d3Smrg# PORTME: fill in a description of your system's C++ link characteristics
115772a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
115782a51b5beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1157932b578d3Smrgld_shlibs_CXX=yes
1158032b578d3Smrgcase $host_os in
1158132b578d3Smrg  aix3*)
1158232b578d3Smrg    # FIXME: insert proper C++ library support
1158332b578d3Smrg    ld_shlibs_CXX=no
1158432b578d3Smrg    ;;
115852a51b5beSmrg  aix[4-9]*)
1158632b578d3Smrg    if test "$host_cpu" = ia64; then
1158732b578d3Smrg      # On IA64, the linker does run time linking by default, so we don't
1158832b578d3Smrg      # have to do anything special.
1158932b578d3Smrg      aix_use_runtimelinking=no
1159032b578d3Smrg      exp_sym_flag='-Bexport'
1159132b578d3Smrg      no_entry_flag=""
1159232b578d3Smrg    else
1159332b578d3Smrg      aix_use_runtimelinking=no
1159432b578d3Smrg
1159532b578d3Smrg      # Test if we are trying to use run time linking or normal
1159632b578d3Smrg      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1159732b578d3Smrg      # need to do runtime linking.
115982a51b5beSmrg      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1159932b578d3Smrg	for ld_flag in $LDFLAGS; do
1160032b578d3Smrg	  case $ld_flag in
1160132b578d3Smrg	  *-brtl*)
1160232b578d3Smrg	    aix_use_runtimelinking=yes
1160332b578d3Smrg	    break
1160432b578d3Smrg	    ;;
1160532b578d3Smrg	  esac
1160632b578d3Smrg	done
1160732b578d3Smrg	;;
1160832b578d3Smrg      esac
1160932b578d3Smrg
1161032b578d3Smrg      exp_sym_flag='-bexport'
1161132b578d3Smrg      no_entry_flag='-bnoentry'
1161232b578d3Smrg    fi
1161332b578d3Smrg
1161432b578d3Smrg    # When large executables or shared objects are built, AIX ld can
1161532b578d3Smrg    # have problems creating the table of contents.  If linking a library
1161632b578d3Smrg    # or program results in "error TOC overflow" add -mminimal-toc to
1161732b578d3Smrg    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
1161832b578d3Smrg    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1161932b578d3Smrg
1162032b578d3Smrg    archive_cmds_CXX=''
1162132b578d3Smrg    hardcode_direct_CXX=yes
1162232b578d3Smrg    hardcode_libdir_separator_CXX=':'
1162332b578d3Smrg    link_all_deplibs_CXX=yes
1162432b578d3Smrg
1162532b578d3Smrg    if test "$GXX" = yes; then
1162632b578d3Smrg      case $host_os in aix4.[012]|aix4.[012].*)
1162732b578d3Smrg      # We only want to do this on AIX 4.2 and lower, the check
1162832b578d3Smrg      # below for broken collect2 doesn't work under 4.3+
1162932b578d3Smrg	collect2name=`${CC} -print-prog-name=collect2`
1163032b578d3Smrg	if test -f "$collect2name" && \
1163132b578d3Smrg	   strings "$collect2name" | grep resolve_lib_name >/dev/null
1163232b578d3Smrg	then
1163332b578d3Smrg	  # We have reworked collect2
116342a51b5beSmrg	  :
1163532b578d3Smrg	else
1163632b578d3Smrg	  # We have old collect2
1163732b578d3Smrg	  hardcode_direct_CXX=unsupported
1163832b578d3Smrg	  # It fails to find uninstalled libraries when the uninstalled
1163932b578d3Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
1164032b578d3Smrg	  # to unsupported forces relinking
1164132b578d3Smrg	  hardcode_minus_L_CXX=yes
1164232b578d3Smrg	  hardcode_libdir_flag_spec_CXX='-L$libdir'
1164332b578d3Smrg	  hardcode_libdir_separator_CXX=
1164432b578d3Smrg	fi
1164532b578d3Smrg	;;
1164632b578d3Smrg      esac
1164732b578d3Smrg      shared_flag='-shared'
1164832b578d3Smrg      if test "$aix_use_runtimelinking" = yes; then
1164932b578d3Smrg	shared_flag="$shared_flag "'${wl}-G'
1165032b578d3Smrg      fi
1165132b578d3Smrg    else
1165232b578d3Smrg      # not using gcc
1165332b578d3Smrg      if test "$host_cpu" = ia64; then
1165432b578d3Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1165532b578d3Smrg	# chokes on -Wl,-G. The following line is correct:
1165632b578d3Smrg	shared_flag='-G'
1165732b578d3Smrg      else
1165832b578d3Smrg	if test "$aix_use_runtimelinking" = yes; then
1165932b578d3Smrg	  shared_flag='${wl}-G'
1166032b578d3Smrg	else
1166132b578d3Smrg	  shared_flag='${wl}-bM:SRE'
1166232b578d3Smrg	fi
1166332b578d3Smrg      fi
1166432b578d3Smrg    fi
1166532b578d3Smrg
1166632b578d3Smrg    # It seems that -bexpall does not export symbols beginning with
1166732b578d3Smrg    # underscore (_), so it is better to generate a list of symbols to export.
1166832b578d3Smrg    always_export_symbols_CXX=yes
1166932b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
1167032b578d3Smrg      # Warning - without using the other runtime loading flags (-brtl),
1167132b578d3Smrg      # -berok will link without error, but may produce a broken library.
1167232b578d3Smrg      allow_undefined_flag_CXX='-berok'
1167332b578d3Smrg      # Determine the default libpath from the value encoded in an empty executable.
1167432b578d3Smrg      cat >conftest.$ac_ext <<_ACEOF
1167532b578d3Smrg/* confdefs.h.  */
1167632b578d3Smrg_ACEOF
1167732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1167832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1167932b578d3Smrg/* end confdefs.h.  */
1168032b578d3Smrg
1168132b578d3Smrgint
1168232b578d3Smrgmain ()
1168332b578d3Smrg{
1168432b578d3Smrg
1168532b578d3Smrg  ;
1168632b578d3Smrg  return 0;
1168732b578d3Smrg}
1168832b578d3Smrg_ACEOF
1168932b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1169032b578d3Smrgif { (ac_try="$ac_link"
1169132b578d3Smrgcase "(($ac_try" in
1169232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1169332b578d3Smrg  *) ac_try_echo=$ac_try;;
1169432b578d3Smrgesac
116952a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116962a51b5beSmrg$as_echo "$ac_try_echo") >&5
1169732b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1169832b578d3Smrg  ac_status=$?
1169932b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1170032b578d3Smrg  rm -f conftest.er1
1170132b578d3Smrg  cat conftest.err >&5
117022a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1170332b578d3Smrg  (exit $ac_status); } && {
1170432b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
1170532b578d3Smrg	 test ! -s conftest.err
117062a51b5beSmrg       } && test -s conftest$ac_exeext && {
117072a51b5beSmrg	 test "$cross_compiling" = yes ||
117082a51b5beSmrg	 $as_test_x conftest$ac_exeext
117092a51b5beSmrg       }; then
1171032b578d3Smrg
117112a51b5beSmrglt_aix_libpath_sed='
117122a51b5beSmrg    /Import File Strings/,/^$/ {
117132a51b5beSmrg	/^0/ {
117142a51b5beSmrg	    s/^0  *\(.*\)$/\1/
117152a51b5beSmrg	    p
117162a51b5beSmrg	}
117172a51b5beSmrg    }'
117182a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1171932b578d3Smrg# Check for a 64-bit object if we didn't find anything.
117202a51b5beSmrgif test -z "$aix_libpath"; then
117212a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
117222a51b5beSmrgfi
1172332b578d3Smrgelse
117242a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1172532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1172632b578d3Smrg
1172732b578d3Smrg
1172832b578d3Smrgfi
1172932b578d3Smrg
117302a51b5beSmrgrm -rf conftest.dSYM
1173132b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1173232b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1173332b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1173432b578d3Smrg
1173532b578d3Smrg      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1173632b578d3Smrg
1173732b578d3Smrg      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1173832b578d3Smrg     else
1173932b578d3Smrg      if test "$host_cpu" = ia64; then
1174032b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1174132b578d3Smrg	allow_undefined_flag_CXX="-z nodefs"
1174232b578d3Smrg	archive_expsym_cmds_CXX="\$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"
1174332b578d3Smrg      else
1174432b578d3Smrg	# Determine the default libpath from the value encoded in an empty executable.
1174532b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
1174632b578d3Smrg/* confdefs.h.  */
1174732b578d3Smrg_ACEOF
1174832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1174932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1175032b578d3Smrg/* end confdefs.h.  */
1175132b578d3Smrg
1175232b578d3Smrgint
1175332b578d3Smrgmain ()
1175432b578d3Smrg{
1175532b578d3Smrg
1175632b578d3Smrg  ;
1175732b578d3Smrg  return 0;
1175832b578d3Smrg}
1175932b578d3Smrg_ACEOF
1176032b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1176132b578d3Smrgif { (ac_try="$ac_link"
1176232b578d3Smrgcase "(($ac_try" in
1176332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1176432b578d3Smrg  *) ac_try_echo=$ac_try;;
1176532b578d3Smrgesac
117662a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117672a51b5beSmrg$as_echo "$ac_try_echo") >&5
1176832b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1176932b578d3Smrg  ac_status=$?
1177032b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1177132b578d3Smrg  rm -f conftest.er1
1177232b578d3Smrg  cat conftest.err >&5
117732a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1177432b578d3Smrg  (exit $ac_status); } && {
1177532b578d3Smrg	 test -z "$ac_cxx_werror_flag" ||
1177632b578d3Smrg	 test ! -s conftest.err
117772a51b5beSmrg       } && test -s conftest$ac_exeext && {
117782a51b5beSmrg	 test "$cross_compiling" = yes ||
117792a51b5beSmrg	 $as_test_x conftest$ac_exeext
117802a51b5beSmrg       }; then
1178132b578d3Smrg
117822a51b5beSmrglt_aix_libpath_sed='
117832a51b5beSmrg    /Import File Strings/,/^$/ {
117842a51b5beSmrg	/^0/ {
117852a51b5beSmrg	    s/^0  *\(.*\)$/\1/
117862a51b5beSmrg	    p
117872a51b5beSmrg	}
117882a51b5beSmrg    }'
117892a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1179032b578d3Smrg# Check for a 64-bit object if we didn't find anything.
117912a51b5beSmrgif test -z "$aix_libpath"; then
117922a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
117932a51b5beSmrgfi
1179432b578d3Smrgelse
117952a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1179632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1179732b578d3Smrg
1179832b578d3Smrg
1179932b578d3Smrgfi
1180032b578d3Smrg
118012a51b5beSmrgrm -rf conftest.dSYM
1180232b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1180332b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1180432b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1180532b578d3Smrg
1180632b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1180732b578d3Smrg	# Warning - without using the other run time loading flags,
1180832b578d3Smrg	# -berok will link without error, but may produce a broken library.
1180932b578d3Smrg	no_undefined_flag_CXX=' ${wl}-bernotok'
1181032b578d3Smrg	allow_undefined_flag_CXX=' ${wl}-berok'
1181132b578d3Smrg	# Exported symbols can be pulled into shared objects from archives
1181232b578d3Smrg	whole_archive_flag_spec_CXX='$convenience'
1181332b578d3Smrg	archive_cmds_need_lc_CXX=yes
1181432b578d3Smrg	# This is similar to how AIX traditionally builds its shared libraries.
1181532b578d3Smrg	archive_expsym_cmds_CXX="\$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'
1181632b578d3Smrg      fi
1181732b578d3Smrg    fi
1181832b578d3Smrg    ;;
1181932b578d3Smrg
1182032b578d3Smrg  beos*)
1182132b578d3Smrg    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1182232b578d3Smrg      allow_undefined_flag_CXX=unsupported
1182332b578d3Smrg      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1182432b578d3Smrg      # support --undefined.  This deserves some investigation.  FIXME
1182532b578d3Smrg      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1182632b578d3Smrg    else
1182732b578d3Smrg      ld_shlibs_CXX=no
1182832b578d3Smrg    fi
1182932b578d3Smrg    ;;
1183032b578d3Smrg
1183132b578d3Smrg  chorus*)
1183232b578d3Smrg    case $cc_basename in
1183332b578d3Smrg      *)
1183432b578d3Smrg	# FIXME: insert proper C++ library support
1183532b578d3Smrg	ld_shlibs_CXX=no
1183632b578d3Smrg	;;
1183732b578d3Smrg    esac
1183832b578d3Smrg    ;;
1183932b578d3Smrg
1184032b578d3Smrg  cygwin* | mingw* | pw32*)
1184132b578d3Smrg    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1184232b578d3Smrg    # as there is no search path for DLLs.
1184332b578d3Smrg    hardcode_libdir_flag_spec_CXX='-L$libdir'
1184432b578d3Smrg    allow_undefined_flag_CXX=unsupported
1184532b578d3Smrg    always_export_symbols_CXX=no
1184632b578d3Smrg    enable_shared_with_static_runtimes_CXX=yes
1184732b578d3Smrg
1184832b578d3Smrg    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1184932b578d3Smrg      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1185032b578d3Smrg      # If the export-symbols file already is a .def file (1st line
1185132b578d3Smrg      # is EXPORTS), use it as is; otherwise, prepend...
1185232b578d3Smrg      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1185332b578d3Smrg	cp $export_symbols $output_objdir/$soname.def;
1185432b578d3Smrg      else
118552a51b5beSmrg	echo EXPORTS > $output_objdir/$soname.def;
118562a51b5beSmrg	cat $export_symbols >> $output_objdir/$soname.def;
118572a51b5beSmrg      fi~
118582a51b5beSmrg      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
118592a51b5beSmrg    else
118602a51b5beSmrg      ld_shlibs_CXX=no
118612a51b5beSmrg    fi
118622a51b5beSmrg  ;;
118632a51b5beSmrg      darwin* | rhapsody*)
1186432b578d3Smrg      archive_cmds_need_lc_CXX=no
1186532b578d3Smrg      hardcode_direct_CXX=no
1186632b578d3Smrg      hardcode_automatic_CXX=yes
1186732b578d3Smrg      hardcode_shlibpath_var_CXX=unsupported
1186832b578d3Smrg      whole_archive_flag_spec_CXX=''
1186932b578d3Smrg      link_all_deplibs_CXX=yes
118702a51b5beSmrg      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
118712a51b5beSmrg      if test "$GXX" = yes ; then
1187232b578d3Smrg      output_verbose_link_cmd='echo'
118732a51b5beSmrg      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
118742a51b5beSmrg      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
118752a51b5beSmrg      archive_expsym_cmds_CXX="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}"
118762a51b5beSmrg      module_expsym_cmds_CXX="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}"
118772a51b5beSmrg      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
118782a51b5beSmrg        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
118792a51b5beSmrg        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1188032b578d3Smrg      fi
1188132b578d3Smrg      else
1188232b578d3Smrg      case $cc_basename in
1188332b578d3Smrg        xlc*)
1188432b578d3Smrg         output_verbose_link_cmd='echo'
118852a51b5beSmrg          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1188632b578d3Smrg          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1188732b578d3Smrg          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
118882a51b5beSmrg          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1188932b578d3Smrg          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1189032b578d3Smrg          ;;
1189132b578d3Smrg       *)
1189232b578d3Smrg         ld_shlibs_CXX=no
1189332b578d3Smrg          ;;
1189432b578d3Smrg      esac
1189532b578d3Smrg      fi
1189632b578d3Smrg        ;;
1189732b578d3Smrg
1189832b578d3Smrg  dgux*)
1189932b578d3Smrg    case $cc_basename in
1190032b578d3Smrg      ec++*)
1190132b578d3Smrg	# FIXME: insert proper C++ library support
1190232b578d3Smrg	ld_shlibs_CXX=no
1190332b578d3Smrg	;;
1190432b578d3Smrg      ghcx*)
1190532b578d3Smrg	# Green Hills C++ Compiler
1190632b578d3Smrg	# FIXME: insert proper C++ library support
1190732b578d3Smrg	ld_shlibs_CXX=no
1190832b578d3Smrg	;;
1190932b578d3Smrg      *)
1191032b578d3Smrg	# FIXME: insert proper C++ library support
1191132b578d3Smrg	ld_shlibs_CXX=no
1191232b578d3Smrg	;;
1191332b578d3Smrg    esac
1191432b578d3Smrg    ;;
1191532b578d3Smrg  freebsd[12]*)
1191632b578d3Smrg    # C++ shared libraries reported to be fairly broken before switch to ELF
1191732b578d3Smrg    ld_shlibs_CXX=no
1191832b578d3Smrg    ;;
1191932b578d3Smrg  freebsd-elf*)
1192032b578d3Smrg    archive_cmds_need_lc_CXX=no
1192132b578d3Smrg    ;;
119222a51b5beSmrg  freebsd* | dragonfly*)
1192332b578d3Smrg    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1192432b578d3Smrg    # conventions
1192532b578d3Smrg    ld_shlibs_CXX=yes
1192632b578d3Smrg    ;;
1192732b578d3Smrg  gnu*)
1192832b578d3Smrg    ;;
1192932b578d3Smrg  hpux9*)
1193032b578d3Smrg    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
1193132b578d3Smrg    hardcode_libdir_separator_CXX=:
1193232b578d3Smrg    export_dynamic_flag_spec_CXX='${wl}-E'
1193332b578d3Smrg    hardcode_direct_CXX=yes
1193432b578d3Smrg    hardcode_minus_L_CXX=yes # Not in the search PATH,
1193532b578d3Smrg				# but as the default
1193632b578d3Smrg				# location of the library.
1193732b578d3Smrg
1193832b578d3Smrg    case $cc_basename in
1193932b578d3Smrg    CC*)
1194032b578d3Smrg      # FIXME: insert proper C++ library support
1194132b578d3Smrg      ld_shlibs_CXX=no
1194232b578d3Smrg      ;;
1194332b578d3Smrg    aCC*)
1194432b578d3Smrg      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1194532b578d3Smrg      # Commands to make compiler produce verbose output that lists
1194632b578d3Smrg      # what "hidden" libraries, object files and flags are used when
1194732b578d3Smrg      # linking a shared library.
1194832b578d3Smrg      #
1194932b578d3Smrg      # There doesn't appear to be a way to prevent this compiler from
1195032b578d3Smrg      # explicitly linking system object files so we need to strip them
1195132b578d3Smrg      # from the output so that they don't get included in the library
1195232b578d3Smrg      # dependencies.
1195332b578d3Smrg      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1195432b578d3Smrg      ;;
1195532b578d3Smrg    *)
1195632b578d3Smrg      if test "$GXX" = yes; then
1195732b578d3Smrg        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1195832b578d3Smrg      else
1195932b578d3Smrg        # FIXME: insert proper C++ library support
1196032b578d3Smrg        ld_shlibs_CXX=no
1196132b578d3Smrg      fi
1196232b578d3Smrg      ;;
1196332b578d3Smrg    esac
1196432b578d3Smrg    ;;
1196532b578d3Smrg  hpux10*|hpux11*)
1196632b578d3Smrg    if test $with_gnu_ld = no; then
1196732b578d3Smrg      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
1196832b578d3Smrg      hardcode_libdir_separator_CXX=:
1196932b578d3Smrg
1197032b578d3Smrg      case $host_cpu in
119712a51b5beSmrg      hppa*64*|ia64*) ;;
1197232b578d3Smrg      *)
1197332b578d3Smrg	export_dynamic_flag_spec_CXX='${wl}-E'
1197432b578d3Smrg        ;;
1197532b578d3Smrg      esac
1197632b578d3Smrg    fi
1197732b578d3Smrg    case $host_cpu in
1197832b578d3Smrg    hppa*64*|ia64*)
1197932b578d3Smrg      hardcode_direct_CXX=no
1198032b578d3Smrg      hardcode_shlibpath_var_CXX=no
1198132b578d3Smrg      ;;
1198232b578d3Smrg    *)
1198332b578d3Smrg      hardcode_direct_CXX=yes
1198432b578d3Smrg      hardcode_minus_L_CXX=yes # Not in the search PATH,
1198532b578d3Smrg					      # but as the default
1198632b578d3Smrg					      # location of the library.
1198732b578d3Smrg      ;;
1198832b578d3Smrg    esac
1198932b578d3Smrg
1199032b578d3Smrg    case $cc_basename in
1199132b578d3Smrg      CC*)
1199232b578d3Smrg	# FIXME: insert proper C++ library support
1199332b578d3Smrg	ld_shlibs_CXX=no
1199432b578d3Smrg	;;
1199532b578d3Smrg      aCC*)
1199632b578d3Smrg	case $host_cpu in
1199732b578d3Smrg	hppa*64*)
1199832b578d3Smrg	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1199932b578d3Smrg	  ;;
1200032b578d3Smrg	ia64*)
1200132b578d3Smrg	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1200232b578d3Smrg	  ;;
1200332b578d3Smrg	*)
1200432b578d3Smrg	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1200532b578d3Smrg	  ;;
1200632b578d3Smrg	esac
1200732b578d3Smrg	# Commands to make compiler produce verbose output that lists
1200832b578d3Smrg	# what "hidden" libraries, object files and flags are used when
1200932b578d3Smrg	# linking a shared library.
1201032b578d3Smrg	#
1201132b578d3Smrg	# There doesn't appear to be a way to prevent this compiler from
1201232b578d3Smrg	# explicitly linking system object files so we need to strip them
1201332b578d3Smrg	# from the output so that they don't get included in the library
1201432b578d3Smrg	# dependencies.
1201532b578d3Smrg	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1201632b578d3Smrg	;;
1201732b578d3Smrg      *)
1201832b578d3Smrg	if test "$GXX" = yes; then
1201932b578d3Smrg	  if test $with_gnu_ld = no; then
1202032b578d3Smrg	    case $host_cpu in
1202132b578d3Smrg	    hppa*64*)
1202232b578d3Smrg	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1202332b578d3Smrg	      ;;
1202432b578d3Smrg	    ia64*)
1202532b578d3Smrg	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1202632b578d3Smrg	      ;;
1202732b578d3Smrg	    *)
1202832b578d3Smrg	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1202932b578d3Smrg	      ;;
1203032b578d3Smrg	    esac
1203132b578d3Smrg	  fi
1203232b578d3Smrg	else
1203332b578d3Smrg	  # FIXME: insert proper C++ library support
1203432b578d3Smrg	  ld_shlibs_CXX=no
1203532b578d3Smrg	fi
1203632b578d3Smrg	;;
1203732b578d3Smrg    esac
1203832b578d3Smrg    ;;
120392a51b5beSmrg  interix[3-9]*)
1204032b578d3Smrg    hardcode_direct_CXX=no
1204132b578d3Smrg    hardcode_shlibpath_var_CXX=no
1204232b578d3Smrg    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1204332b578d3Smrg    export_dynamic_flag_spec_CXX='${wl}-E'
1204432b578d3Smrg    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1204532b578d3Smrg    # Instead, shared libraries are loaded at an image base (0x10000000 by
1204632b578d3Smrg    # default) and relocated if they conflict, which is a slow very memory
1204732b578d3Smrg    # consuming and fragmenting process.  To avoid this, we pick a random,
1204832b578d3Smrg    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1204932b578d3Smrg    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1205032b578d3Smrg    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1205132b578d3Smrg    archive_expsym_cmds_CXX='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'
1205232b578d3Smrg    ;;
1205332b578d3Smrg  irix5* | irix6*)
1205432b578d3Smrg    case $cc_basename in
1205532b578d3Smrg      CC*)
1205632b578d3Smrg	# SGI C++
1205732b578d3Smrg	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1205832b578d3Smrg
1205932b578d3Smrg	# Archives containing C++ object files must be created using
1206032b578d3Smrg	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
1206132b578d3Smrg	# necessary to make sure instantiated templates are included
1206232b578d3Smrg	# in the archive.
1206332b578d3Smrg	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
1206432b578d3Smrg	;;
1206532b578d3Smrg      *)
1206632b578d3Smrg	if test "$GXX" = yes; then
1206732b578d3Smrg	  if test "$with_gnu_ld" = no; then
1206832b578d3Smrg	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1206932b578d3Smrg	  else
1207032b578d3Smrg	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
1207132b578d3Smrg	  fi
1207232b578d3Smrg	fi
1207332b578d3Smrg	link_all_deplibs_CXX=yes
1207432b578d3Smrg	;;
1207532b578d3Smrg    esac
1207632b578d3Smrg    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1207732b578d3Smrg    hardcode_libdir_separator_CXX=:
1207832b578d3Smrg    ;;
120792a51b5beSmrg  linux* | k*bsd*-gnu)
1208032b578d3Smrg    case $cc_basename in
1208132b578d3Smrg      KCC*)
1208232b578d3Smrg	# Kuck and Associates, Inc. (KAI) C++ Compiler
1208332b578d3Smrg
1208432b578d3Smrg	# KCC will only create a shared library if the output file
1208532b578d3Smrg	# ends with ".so" (or ".sl" for HP-UX), so rename the library
1208632b578d3Smrg	# to its proper name (with version) after linking.
1208732b578d3Smrg	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1208832b578d3Smrg	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
1208932b578d3Smrg	# Commands to make compiler produce verbose output that lists
1209032b578d3Smrg	# what "hidden" libraries, object files and flags are used when
1209132b578d3Smrg	# linking a shared library.
1209232b578d3Smrg	#
1209332b578d3Smrg	# There doesn't appear to be a way to prevent this compiler from
1209432b578d3Smrg	# explicitly linking system object files so we need to strip them
1209532b578d3Smrg	# from the output so that they don't get included in the library
1209632b578d3Smrg	# dependencies.
1209732b578d3Smrg	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1209832b578d3Smrg
1209932b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
1210032b578d3Smrg	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1210132b578d3Smrg
1210232b578d3Smrg	# Archives containing C++ object files must be created using
1210332b578d3Smrg	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
1210432b578d3Smrg	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
1210532b578d3Smrg	;;
1210632b578d3Smrg      icpc*)
1210732b578d3Smrg	# Intel C++
1210832b578d3Smrg	with_gnu_ld=yes
1210932b578d3Smrg	# version 8.0 and above of icpc choke on multiply defined symbols
1211032b578d3Smrg	# if we add $predep_objects and $postdep_objects, however 7.1 and
1211132b578d3Smrg	# earlier do not add the objects themselves.
1211232b578d3Smrg	case `$CC -V 2>&1` in
1211332b578d3Smrg	*"Version 7."*)
1211432b578d3Smrg  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1211532b578d3Smrg  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1211632b578d3Smrg	  ;;
1211732b578d3Smrg	*)  # Version 8.0 or newer
1211832b578d3Smrg	  tmp_idyn=
1211932b578d3Smrg	  case $host_cpu in
1212032b578d3Smrg	    ia64*) tmp_idyn=' -i_dynamic';;
1212132b578d3Smrg	  esac
1212232b578d3Smrg  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1212332b578d3Smrg	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1212432b578d3Smrg	  ;;
1212532b578d3Smrg	esac
1212632b578d3Smrg	archive_cmds_need_lc_CXX=no
1212732b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1212832b578d3Smrg	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1212932b578d3Smrg	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1213032b578d3Smrg	;;
121312a51b5beSmrg      pgCC* | pgcpp*)
1213232b578d3Smrg        # Portland Group C++ compiler
1213332b578d3Smrg	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1213432b578d3Smrg  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1213532b578d3Smrg
1213632b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1213732b578d3Smrg	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1213832b578d3Smrg	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1213932b578d3Smrg        ;;
1214032b578d3Smrg      cxx*)
1214132b578d3Smrg	# Compaq C++
1214232b578d3Smrg	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1214332b578d3Smrg	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
1214432b578d3Smrg
1214532b578d3Smrg	runpath_var=LD_RUN_PATH
1214632b578d3Smrg	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1214732b578d3Smrg	hardcode_libdir_separator_CXX=:
1214832b578d3Smrg
1214932b578d3Smrg	# Commands to make compiler produce verbose output that lists
1215032b578d3Smrg	# what "hidden" libraries, object files and flags are used when
1215132b578d3Smrg	# linking a shared library.
1215232b578d3Smrg	#
1215332b578d3Smrg	# There doesn't appear to be a way to prevent this compiler from
1215432b578d3Smrg	# explicitly linking system object files so we need to strip them
1215532b578d3Smrg	# from the output so that they don't get included in the library
1215632b578d3Smrg	# dependencies.
1215732b578d3Smrg	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1215832b578d3Smrg	;;
121592a51b5beSmrg      *)
121602a51b5beSmrg	case `$CC -V 2>&1 | sed 5q` in
121612a51b5beSmrg	*Sun\ C*)
121622a51b5beSmrg	  # Sun C++ 5.9
121632a51b5beSmrg	  no_undefined_flag_CXX=' -zdefs'
121642a51b5beSmrg	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
121652a51b5beSmrg	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
121662a51b5beSmrg	  hardcode_libdir_flag_spec_CXX='-R$libdir'
121672a51b5beSmrg	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
121682a51b5beSmrg
121692a51b5beSmrg	  # Not sure whether something based on
121702a51b5beSmrg	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
121712a51b5beSmrg	  # would be better.
121722a51b5beSmrg	  output_verbose_link_cmd='echo'
121732a51b5beSmrg
121742a51b5beSmrg	  # Archives containing C++ object files must be created using
121752a51b5beSmrg	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
121762a51b5beSmrg	  # necessary to make sure instantiated templates are included
121772a51b5beSmrg	  # in the archive.
121782a51b5beSmrg	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
121792a51b5beSmrg	  ;;
121802a51b5beSmrg	esac
121812a51b5beSmrg	;;
1218232b578d3Smrg    esac
1218332b578d3Smrg    ;;
1218432b578d3Smrg  lynxos*)
1218532b578d3Smrg    # FIXME: insert proper C++ library support
1218632b578d3Smrg    ld_shlibs_CXX=no
1218732b578d3Smrg    ;;
1218832b578d3Smrg  m88k*)
1218932b578d3Smrg    # FIXME: insert proper C++ library support
1219032b578d3Smrg    ld_shlibs_CXX=no
1219132b578d3Smrg    ;;
1219232b578d3Smrg  mvs*)
1219332b578d3Smrg    case $cc_basename in
1219432b578d3Smrg      cxx*)
1219532b578d3Smrg	# FIXME: insert proper C++ library support
1219632b578d3Smrg	ld_shlibs_CXX=no
1219732b578d3Smrg	;;
1219832b578d3Smrg      *)
1219932b578d3Smrg	# FIXME: insert proper C++ library support
1220032b578d3Smrg	ld_shlibs_CXX=no
1220132b578d3Smrg	;;
1220232b578d3Smrg    esac
1220332b578d3Smrg    ;;
1220432b578d3Smrg  netbsd*)
1220532b578d3Smrg    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1220632b578d3Smrg      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1220732b578d3Smrg      wlarc=
1220832b578d3Smrg      hardcode_libdir_flag_spec_CXX='-R$libdir'
1220932b578d3Smrg      hardcode_direct_CXX=yes
1221032b578d3Smrg      hardcode_shlibpath_var_CXX=no
1221132b578d3Smrg    fi
1221232b578d3Smrg    # Workaround some broken pre-1.5 toolchains
1221332b578d3Smrg    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
1221432b578d3Smrg    ;;
1221532b578d3Smrg  openbsd2*)
1221632b578d3Smrg    # C++ shared libraries are fairly broken
1221732b578d3Smrg    ld_shlibs_CXX=no
1221832b578d3Smrg    ;;
1221932b578d3Smrg  openbsd*)
122202a51b5beSmrg    if test -f /usr/libexec/ld.so; then
122212a51b5beSmrg      hardcode_direct_CXX=yes
122222a51b5beSmrg      hardcode_shlibpath_var_CXX=no
122232a51b5beSmrg      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
122242a51b5beSmrg      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
122252a51b5beSmrg      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
122262a51b5beSmrg	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
122272a51b5beSmrg	export_dynamic_flag_spec_CXX='${wl}-E'
122282a51b5beSmrg	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
122292a51b5beSmrg      fi
122302a51b5beSmrg      output_verbose_link_cmd='echo'
122312a51b5beSmrg    else
122322a51b5beSmrg      ld_shlibs_CXX=no
1223332b578d3Smrg    fi
1223432b578d3Smrg    ;;
1223532b578d3Smrg  osf3*)
1223632b578d3Smrg    case $cc_basename in
1223732b578d3Smrg      KCC*)
1223832b578d3Smrg	# Kuck and Associates, Inc. (KAI) C++ Compiler
1223932b578d3Smrg
1224032b578d3Smrg	# KCC will only create a shared library if the output file
1224132b578d3Smrg	# ends with ".so" (or ".sl" for HP-UX), so rename the library
1224232b578d3Smrg	# to its proper name (with version) after linking.
1224332b578d3Smrg	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1224432b578d3Smrg
1224532b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1224632b578d3Smrg	hardcode_libdir_separator_CXX=:
1224732b578d3Smrg
1224832b578d3Smrg	# Archives containing C++ object files must be created using
1224932b578d3Smrg	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
1225032b578d3Smrg	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
1225132b578d3Smrg
1225232b578d3Smrg	;;
1225332b578d3Smrg      RCC*)
1225432b578d3Smrg	# Rational C++ 2.4.1
1225532b578d3Smrg	# FIXME: insert proper C++ library support
1225632b578d3Smrg	ld_shlibs_CXX=no
1225732b578d3Smrg	;;
1225832b578d3Smrg      cxx*)
1225932b578d3Smrg	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1226032b578d3Smrg	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1226132b578d3Smrg
1226232b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1226332b578d3Smrg	hardcode_libdir_separator_CXX=:
1226432b578d3Smrg
1226532b578d3Smrg	# Commands to make compiler produce verbose output that lists
1226632b578d3Smrg	# what "hidden" libraries, object files and flags are used when
1226732b578d3Smrg	# linking a shared library.
1226832b578d3Smrg	#
1226932b578d3Smrg	# There doesn't appear to be a way to prevent this compiler from
1227032b578d3Smrg	# explicitly linking system object files so we need to strip them
1227132b578d3Smrg	# from the output so that they don't get included in the library
1227232b578d3Smrg	# dependencies.
1227332b578d3Smrg	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1227432b578d3Smrg	;;
1227532b578d3Smrg      *)
1227632b578d3Smrg	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1227732b578d3Smrg	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1227832b578d3Smrg	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1227932b578d3Smrg
1228032b578d3Smrg	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1228132b578d3Smrg	  hardcode_libdir_separator_CXX=:
1228232b578d3Smrg
1228332b578d3Smrg	  # Commands to make compiler produce verbose output that lists
1228432b578d3Smrg	  # what "hidden" libraries, object files and flags are used when
1228532b578d3Smrg	  # linking a shared library.
1228632b578d3Smrg	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1228732b578d3Smrg
1228832b578d3Smrg	else
1228932b578d3Smrg	  # FIXME: insert proper C++ library support
1229032b578d3Smrg	  ld_shlibs_CXX=no
1229132b578d3Smrg	fi
1229232b578d3Smrg	;;
1229332b578d3Smrg    esac
1229432b578d3Smrg    ;;
1229532b578d3Smrg  osf4* | osf5*)
1229632b578d3Smrg    case $cc_basename in
1229732b578d3Smrg      KCC*)
1229832b578d3Smrg	# Kuck and Associates, Inc. (KAI) C++ Compiler
1229932b578d3Smrg
1230032b578d3Smrg	# KCC will only create a shared library if the output file
1230132b578d3Smrg	# ends with ".so" (or ".sl" for HP-UX), so rename the library
1230232b578d3Smrg	# to its proper name (with version) after linking.
1230332b578d3Smrg	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1230432b578d3Smrg
1230532b578d3Smrg	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1230632b578d3Smrg	hardcode_libdir_separator_CXX=:
1230732b578d3Smrg
1230832b578d3Smrg	# Archives containing C++ object files must be created using
1230932b578d3Smrg	# the KAI C++ compiler.
1231032b578d3Smrg	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
1231132b578d3Smrg	;;
1231232b578d3Smrg      RCC*)
1231332b578d3Smrg	# Rational C++ 2.4.1
1231432b578d3Smrg	# FIXME: insert proper C++ library support
1231532b578d3Smrg	ld_shlibs_CXX=no
1231632b578d3Smrg	;;
1231732b578d3Smrg      cxx*)
1231832b578d3Smrg	allow_undefined_flag_CXX=' -expect_unresolved \*'
1231932b578d3Smrg	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1232032b578d3Smrg	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1232132b578d3Smrg	  echo "-hidden">> $lib.exp~
1232232b578d3Smrg	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
1232332b578d3Smrg	  $rm $lib.exp'
1232432b578d3Smrg
1232532b578d3Smrg	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1232632b578d3Smrg	hardcode_libdir_separator_CXX=:
1232732b578d3Smrg
1232832b578d3Smrg	# Commands to make compiler produce verbose output that lists
1232932b578d3Smrg	# what "hidden" libraries, object files and flags are used when
1233032b578d3Smrg	# linking a shared library.
1233132b578d3Smrg	#
1233232b578d3Smrg	# There doesn't appear to be a way to prevent this compiler from
1233332b578d3Smrg	# explicitly linking system object files so we need to strip them
1233432b578d3Smrg	# from the output so that they don't get included in the library
1233532b578d3Smrg	# dependencies.
1233632b578d3Smrg	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1233732b578d3Smrg	;;
1233832b578d3Smrg      *)
1233932b578d3Smrg	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1234032b578d3Smrg	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1234132b578d3Smrg	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1234232b578d3Smrg
1234332b578d3Smrg	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1234432b578d3Smrg	  hardcode_libdir_separator_CXX=:
1234532b578d3Smrg
1234632b578d3Smrg	  # Commands to make compiler produce verbose output that lists
1234732b578d3Smrg	  # what "hidden" libraries, object files and flags are used when
1234832b578d3Smrg	  # linking a shared library.
1234932b578d3Smrg	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1235032b578d3Smrg
1235132b578d3Smrg	else
1235232b578d3Smrg	  # FIXME: insert proper C++ library support
1235332b578d3Smrg	  ld_shlibs_CXX=no
1235432b578d3Smrg	fi
1235532b578d3Smrg	;;
1235632b578d3Smrg    esac
1235732b578d3Smrg    ;;
1235832b578d3Smrg  psos*)
1235932b578d3Smrg    # FIXME: insert proper C++ library support
1236032b578d3Smrg    ld_shlibs_CXX=no
1236132b578d3Smrg    ;;
1236232b578d3Smrg  sunos4*)
1236332b578d3Smrg    case $cc_basename in
1236432b578d3Smrg      CC*)
1236532b578d3Smrg	# Sun C++ 4.x
1236632b578d3Smrg	# FIXME: insert proper C++ library support
1236732b578d3Smrg	ld_shlibs_CXX=no
1236832b578d3Smrg	;;
1236932b578d3Smrg      lcc*)
1237032b578d3Smrg	# Lucid
1237132b578d3Smrg	# FIXME: insert proper C++ library support
1237232b578d3Smrg	ld_shlibs_CXX=no
1237332b578d3Smrg	;;
1237432b578d3Smrg      *)
1237532b578d3Smrg	# FIXME: insert proper C++ library support
1237632b578d3Smrg	ld_shlibs_CXX=no
1237732b578d3Smrg	;;
1237832b578d3Smrg    esac
1237932b578d3Smrg    ;;
1238032b578d3Smrg  solaris*)
1238132b578d3Smrg    case $cc_basename in
1238232b578d3Smrg      CC*)
1238332b578d3Smrg	# Sun C++ 4.2, 5.x and Centerline C++
1238432b578d3Smrg        archive_cmds_need_lc_CXX=yes
1238532b578d3Smrg	no_undefined_flag_CXX=' -zdefs'
1238632b578d3Smrg	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1238732b578d3Smrg	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1238832b578d3Smrg	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1238932b578d3Smrg
1239032b578d3Smrg	hardcode_libdir_flag_spec_CXX='-R$libdir'
1239132b578d3Smrg	hardcode_shlibpath_var_CXX=no
1239232b578d3Smrg	case $host_os in
1239332b578d3Smrg	  solaris2.[0-5] | solaris2.[0-5].*) ;;
1239432b578d3Smrg	  *)
123952a51b5beSmrg	    # The compiler driver will combine and reorder linker options,
123962a51b5beSmrg	    # but understands `-z linker_flag'.
1239732b578d3Smrg	    # Supported since Solaris 2.6 (maybe 2.5.1?)
123982a51b5beSmrg	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1239932b578d3Smrg	    ;;
1240032b578d3Smrg	esac
1240132b578d3Smrg	link_all_deplibs_CXX=yes
1240232b578d3Smrg
1240332b578d3Smrg	output_verbose_link_cmd='echo'
1240432b578d3Smrg
1240532b578d3Smrg	# Archives containing C++ object files must be created using
1240632b578d3Smrg	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
1240732b578d3Smrg	# necessary to make sure instantiated templates are included
1240832b578d3Smrg	# in the archive.
1240932b578d3Smrg	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
1241032b578d3Smrg	;;
1241132b578d3Smrg      gcx*)
1241232b578d3Smrg	# Green Hills C++ Compiler
1241332b578d3Smrg	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1241432b578d3Smrg
1241532b578d3Smrg	# The C++ compiler must be used to create the archive.
1241632b578d3Smrg	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1241732b578d3Smrg	;;
1241832b578d3Smrg      *)
1241932b578d3Smrg	# GNU C++ compiler with Solaris linker
1242032b578d3Smrg	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1242132b578d3Smrg	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1242232b578d3Smrg	  if $CC --version | grep -v '^2\.7' > /dev/null; then
1242332b578d3Smrg	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1242432b578d3Smrg	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1242532b578d3Smrg		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1242632b578d3Smrg
1242732b578d3Smrg	    # Commands to make compiler produce verbose output that lists
1242832b578d3Smrg	    # what "hidden" libraries, object files and flags are used when
1242932b578d3Smrg	    # linking a shared library.
1243032b578d3Smrg	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1243132b578d3Smrg	  else
1243232b578d3Smrg	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
1243332b578d3Smrg	    # platform.
1243432b578d3Smrg	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1243532b578d3Smrg	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1243632b578d3Smrg		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1243732b578d3Smrg
1243832b578d3Smrg	    # Commands to make compiler produce verbose output that lists
1243932b578d3Smrg	    # what "hidden" libraries, object files and flags are used when
1244032b578d3Smrg	    # linking a shared library.
1244132b578d3Smrg	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1244232b578d3Smrg	  fi
1244332b578d3Smrg
1244432b578d3Smrg	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
124452a51b5beSmrg	  case $host_os in
124462a51b5beSmrg	  solaris2.[0-5] | solaris2.[0-5].*) ;;
124472a51b5beSmrg	  *)
124482a51b5beSmrg	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
124492a51b5beSmrg	    ;;
124502a51b5beSmrg	  esac
1245132b578d3Smrg	fi
1245232b578d3Smrg	;;
1245332b578d3Smrg    esac
1245432b578d3Smrg    ;;
1245532b578d3Smrg  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1245632b578d3Smrg    no_undefined_flag_CXX='${wl}-z,text'
1245732b578d3Smrg    archive_cmds_need_lc_CXX=no
1245832b578d3Smrg    hardcode_shlibpath_var_CXX=no
1245932b578d3Smrg    runpath_var='LD_RUN_PATH'
1246032b578d3Smrg
1246132b578d3Smrg    case $cc_basename in
1246232b578d3Smrg      CC*)
1246332b578d3Smrg	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1246432b578d3Smrg	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1246532b578d3Smrg	;;
1246632b578d3Smrg      *)
1246732b578d3Smrg	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1246832b578d3Smrg	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1246932b578d3Smrg	;;
1247032b578d3Smrg    esac
1247132b578d3Smrg    ;;
1247232b578d3Smrg  sysv5* | sco3.2v5* | sco5v6*)
1247332b578d3Smrg    # Note: We can NOT use -z defs as we might desire, because we do not
1247432b578d3Smrg    # link with -lc, and that would cause any symbols used from libc to
1247532b578d3Smrg    # always be unresolved, which means just about no library would
1247632b578d3Smrg    # ever link correctly.  If we're not using GNU ld we use -z text
1247732b578d3Smrg    # though, which does catch some bad symbols but isn't as heavy-handed
1247832b578d3Smrg    # as -z defs.
1247932b578d3Smrg    # For security reasons, it is highly recommended that you always
1248032b578d3Smrg    # use absolute paths for naming shared libraries, and exclude the
1248132b578d3Smrg    # DT_RUNPATH tag from executables and libraries.  But doing so
1248232b578d3Smrg    # requires that you compile everything twice, which is a pain.
1248332b578d3Smrg    # So that behaviour is only enabled if SCOABSPATH is set to a
1248432b578d3Smrg    # non-empty value in the environment.  Most likely only useful for
1248532b578d3Smrg    # creating official distributions of packages.
1248632b578d3Smrg    # This is a hack until libtool officially supports absolute path
1248732b578d3Smrg    # names for shared libraries.
1248832b578d3Smrg    no_undefined_flag_CXX='${wl}-z,text'
1248932b578d3Smrg    allow_undefined_flag_CXX='${wl}-z,nodefs'
1249032b578d3Smrg    archive_cmds_need_lc_CXX=no
1249132b578d3Smrg    hardcode_shlibpath_var_CXX=no
1249232b578d3Smrg    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1249332b578d3Smrg    hardcode_libdir_separator_CXX=':'
1249432b578d3Smrg    link_all_deplibs_CXX=yes
1249532b578d3Smrg    export_dynamic_flag_spec_CXX='${wl}-Bexport'
1249632b578d3Smrg    runpath_var='LD_RUN_PATH'
1249732b578d3Smrg
1249832b578d3Smrg    case $cc_basename in
1249932b578d3Smrg      CC*)
1250032b578d3Smrg	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1250132b578d3Smrg	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1250232b578d3Smrg	;;
1250332b578d3Smrg      *)
1250432b578d3Smrg	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1250532b578d3Smrg	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1250632b578d3Smrg	;;
1250732b578d3Smrg    esac
1250832b578d3Smrg    ;;
1250932b578d3Smrg  tandem*)
1251032b578d3Smrg    case $cc_basename in
1251132b578d3Smrg      NCC*)
1251232b578d3Smrg	# NonStop-UX NCC 3.20
1251332b578d3Smrg	# FIXME: insert proper C++ library support
1251432b578d3Smrg	ld_shlibs_CXX=no
1251532b578d3Smrg	;;
1251632b578d3Smrg      *)
1251732b578d3Smrg	# FIXME: insert proper C++ library support
1251832b578d3Smrg	ld_shlibs_CXX=no
1251932b578d3Smrg	;;
1252032b578d3Smrg    esac
1252132b578d3Smrg    ;;
1252232b578d3Smrg  vxworks*)
1252332b578d3Smrg    # FIXME: insert proper C++ library support
1252432b578d3Smrg    ld_shlibs_CXX=no
1252532b578d3Smrg    ;;
1252632b578d3Smrg  *)
1252732b578d3Smrg    # FIXME: insert proper C++ library support
1252832b578d3Smrg    ld_shlibs_CXX=no
1252932b578d3Smrg    ;;
1253032b578d3Smrgesac
125312a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
125322a51b5beSmrg$as_echo "$ld_shlibs_CXX" >&6; }
1253332b578d3Smrgtest "$ld_shlibs_CXX" = no && can_build_shared=no
1253432b578d3Smrg
1253532b578d3SmrgGCC_CXX="$GXX"
1253632b578d3SmrgLD_CXX="$LD"
1253732b578d3Smrg
1253832b578d3Smrgcat > conftest.$ac_ext <<EOF
1253932b578d3Smrgclass Foo
1254032b578d3Smrg{
1254132b578d3Smrgpublic:
1254232b578d3Smrg  Foo (void) { a = 0; }
1254332b578d3Smrgprivate:
1254432b578d3Smrg  int a;
1254532b578d3Smrg};
1254632b578d3SmrgEOF
1254732b578d3Smrg
1254832b578d3Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1254932b578d3Smrg  (eval $ac_compile) 2>&5
1255032b578d3Smrg  ac_status=$?
125512a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1255232b578d3Smrg  (exit $ac_status); }; then
1255332b578d3Smrg  # Parse the compiler output and extract the necessary
1255432b578d3Smrg  # objects, libraries and library flags.
1255532b578d3Smrg
1255632b578d3Smrg  # Sentinel used to keep track of whether or not we are before
1255732b578d3Smrg  # the conftest object file.
1255832b578d3Smrg  pre_test_object_deps_done=no
1255932b578d3Smrg
1256032b578d3Smrg  # The `*' in the case matches for architectures that use `case' in
1256132b578d3Smrg  # $output_verbose_cmd can trigger glob expansion during the loop
1256232b578d3Smrg  # eval without this substitution.
1256332b578d3Smrg  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1256432b578d3Smrg
1256532b578d3Smrg  for p in `eval $output_verbose_link_cmd`; do
1256632b578d3Smrg    case $p in
1256732b578d3Smrg
1256832b578d3Smrg    -L* | -R* | -l*)
1256932b578d3Smrg       # Some compilers place space between "-{L,R}" and the path.
1257032b578d3Smrg       # Remove the space.
1257132b578d3Smrg       if test $p = "-L" \
1257232b578d3Smrg	  || test $p = "-R"; then
1257332b578d3Smrg	 prev=$p
1257432b578d3Smrg	 continue
1257532b578d3Smrg       else
1257632b578d3Smrg	 prev=
1257732b578d3Smrg       fi
1257832b578d3Smrg
1257932b578d3Smrg       if test "$pre_test_object_deps_done" = no; then
1258032b578d3Smrg	 case $p in
1258132b578d3Smrg	 -L* | -R*)
1258232b578d3Smrg	   # Internal compiler library paths should come after those
1258332b578d3Smrg	   # provided the user.  The postdeps already come after the
1258432b578d3Smrg	   # user supplied libs so there is no need to process them.
1258532b578d3Smrg	   if test -z "$compiler_lib_search_path_CXX"; then
1258632b578d3Smrg	     compiler_lib_search_path_CXX="${prev}${p}"
1258732b578d3Smrg	   else
1258832b578d3Smrg	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
1258932b578d3Smrg	   fi
1259032b578d3Smrg	   ;;
1259132b578d3Smrg	 # The "-l" case would never come before the object being
1259232b578d3Smrg	 # linked, so don't bother handling this case.
1259332b578d3Smrg	 esac
1259432b578d3Smrg       else
1259532b578d3Smrg	 if test -z "$postdeps_CXX"; then
1259632b578d3Smrg	   postdeps_CXX="${prev}${p}"
1259732b578d3Smrg	 else
1259832b578d3Smrg	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1259932b578d3Smrg	 fi
1260032b578d3Smrg       fi
1260132b578d3Smrg       ;;
1260232b578d3Smrg
1260332b578d3Smrg    *.$objext)
1260432b578d3Smrg       # This assumes that the test object file only shows up
1260532b578d3Smrg       # once in the compiler output.
1260632b578d3Smrg       if test "$p" = "conftest.$objext"; then
1260732b578d3Smrg	 pre_test_object_deps_done=yes
1260832b578d3Smrg	 continue
1260932b578d3Smrg       fi
1261032b578d3Smrg
1261132b578d3Smrg       if test "$pre_test_object_deps_done" = no; then
1261232b578d3Smrg	 if test -z "$predep_objects_CXX"; then
1261332b578d3Smrg	   predep_objects_CXX="$p"
1261432b578d3Smrg	 else
1261532b578d3Smrg	   predep_objects_CXX="$predep_objects_CXX $p"
1261632b578d3Smrg	 fi
1261732b578d3Smrg       else
1261832b578d3Smrg	 if test -z "$postdep_objects_CXX"; then
1261932b578d3Smrg	   postdep_objects_CXX="$p"
1262032b578d3Smrg	 else
1262132b578d3Smrg	   postdep_objects_CXX="$postdep_objects_CXX $p"
1262232b578d3Smrg	 fi
1262332b578d3Smrg       fi
1262432b578d3Smrg       ;;
1262532b578d3Smrg
1262632b578d3Smrg    *) ;; # Ignore the rest.
1262732b578d3Smrg
1262832b578d3Smrg    esac
1262932b578d3Smrg  done
1263032b578d3Smrg
1263132b578d3Smrg  # Clean up.
1263232b578d3Smrg  rm -f a.out a.exe
1263332b578d3Smrgelse
1263432b578d3Smrg  echo "libtool.m4: error: problem compiling CXX test program"
1263532b578d3Smrgfi
1263632b578d3Smrg
1263732b578d3Smrg$rm -f confest.$objext
1263832b578d3Smrg
126392a51b5beSmrgcompiler_lib_search_dirs_CXX=
126402a51b5beSmrgif test -n "$compiler_lib_search_path_CXX"; then
126412a51b5beSmrg  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
126422a51b5beSmrgfi
126432a51b5beSmrg
1264432b578d3Smrg# PORTME: override above test on systems where it is broken
1264532b578d3Smrgcase $host_os in
126462a51b5beSmrginterix[3-9]*)
1264732b578d3Smrg  # Interix 3.5 installs completely hosed .la files for C++, so rather than
1264832b578d3Smrg  # hack all around it, let's just trust "g++" to DTRT.
1264932b578d3Smrg  predep_objects_CXX=
1265032b578d3Smrg  postdep_objects_CXX=
1265132b578d3Smrg  postdeps_CXX=
1265232b578d3Smrg  ;;
1265332b578d3Smrg
126542a51b5beSmrglinux*)
126552a51b5beSmrg  case `$CC -V 2>&1 | sed 5q` in
126562a51b5beSmrg  *Sun\ C*)
126572a51b5beSmrg    # Sun C++ 5.9
126582a51b5beSmrg    #
126592a51b5beSmrg    # The more standards-conforming stlport4 library is
126602a51b5beSmrg    # incompatible with the Cstd library. Avoid specifying
126612a51b5beSmrg    # it if it's in CXXFLAGS. Ignore libCrun as
126622a51b5beSmrg    # -library=stlport4 depends on it.
126632a51b5beSmrg    case " $CXX $CXXFLAGS " in
126642a51b5beSmrg    *" -library=stlport4 "*)
126652a51b5beSmrg      solaris_use_stlport4=yes
126662a51b5beSmrg      ;;
126672a51b5beSmrg    esac
126682a51b5beSmrg    if test "$solaris_use_stlport4" != yes; then
126692a51b5beSmrg      postdeps_CXX='-library=Cstd -library=Crun'
126702a51b5beSmrg    fi
126712a51b5beSmrg    ;;
126722a51b5beSmrg  esac
126732a51b5beSmrg  ;;
126742a51b5beSmrg
1267532b578d3Smrgsolaris*)
1267632b578d3Smrg  case $cc_basename in
1267732b578d3Smrg  CC*)
126782a51b5beSmrg    # The more standards-conforming stlport4 library is
126792a51b5beSmrg    # incompatible with the Cstd library. Avoid specifying
126802a51b5beSmrg    # it if it's in CXXFLAGS. Ignore libCrun as
126812a51b5beSmrg    # -library=stlport4 depends on it.
126822a51b5beSmrg    case " $CXX $CXXFLAGS " in
126832a51b5beSmrg    *" -library=stlport4 "*)
126842a51b5beSmrg      solaris_use_stlport4=yes
126852a51b5beSmrg      ;;
126862a51b5beSmrg    esac
126872a51b5beSmrg
1268832b578d3Smrg    # Adding this requires a known-good setup of shared libraries for
1268932b578d3Smrg    # Sun compiler versions before 5.6, else PIC objects from an old
1269032b578d3Smrg    # archive will be linked into the output, leading to subtle bugs.
126912a51b5beSmrg    if test "$solaris_use_stlport4" != yes; then
126922a51b5beSmrg      postdeps_CXX='-library=Cstd -library=Crun'
126932a51b5beSmrg    fi
1269432b578d3Smrg    ;;
1269532b578d3Smrg  esac
1269632b578d3Smrg  ;;
1269732b578d3Smrgesac
1269832b578d3Smrg
1269932b578d3Smrgcase " $postdeps_CXX " in
1270032b578d3Smrg*" -lc "*) archive_cmds_need_lc_CXX=no ;;
1270132b578d3Smrgesac
1270232b578d3Smrg
1270332b578d3Smrglt_prog_compiler_wl_CXX=
1270432b578d3Smrglt_prog_compiler_pic_CXX=
1270532b578d3Smrglt_prog_compiler_static_CXX=
1270632b578d3Smrg
127072a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
127082a51b5beSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1270932b578d3Smrg
1271032b578d3Smrg  # C++ specific cases for pic, static, wl, etc.
1271132b578d3Smrg  if test "$GXX" = yes; then
1271232b578d3Smrg    lt_prog_compiler_wl_CXX='-Wl,'
1271332b578d3Smrg    lt_prog_compiler_static_CXX='-static'
1271432b578d3Smrg
1271532b578d3Smrg    case $host_os in
1271632b578d3Smrg    aix*)
1271732b578d3Smrg      # All AIX code is PIC.
1271832b578d3Smrg      if test "$host_cpu" = ia64; then
1271932b578d3Smrg	# AIX 5 now supports IA64 processor
1272032b578d3Smrg	lt_prog_compiler_static_CXX='-Bstatic'
1272132b578d3Smrg      fi
1272232b578d3Smrg      ;;
1272332b578d3Smrg    amigaos*)
1272432b578d3Smrg      # FIXME: we need at least 68020 code to build shared libraries, but
1272532b578d3Smrg      # adding the `-m68020' flag to GCC prevents building anything better,
1272632b578d3Smrg      # like `-m68040'.
1272732b578d3Smrg      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
1272832b578d3Smrg      ;;
127292a51b5beSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1273032b578d3Smrg      # PIC is the default for these OSes.
1273132b578d3Smrg      ;;
127322a51b5beSmrg    mingw* | cygwin* | os2* | pw32*)
1273332b578d3Smrg      # This hack is so that the source file can tell whether it is being
1273432b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
127352a51b5beSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
127362a51b5beSmrg      # (--disable-auto-import) libraries
1273732b578d3Smrg      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1273832b578d3Smrg      ;;
1273932b578d3Smrg    darwin* | rhapsody*)
1274032b578d3Smrg      # PIC is the default on this platform
1274132b578d3Smrg      # Common symbols not allowed in MH_DYLIB files
1274232b578d3Smrg      lt_prog_compiler_pic_CXX='-fno-common'
1274332b578d3Smrg      ;;
1274432b578d3Smrg    *djgpp*)
1274532b578d3Smrg      # DJGPP does not support shared libraries at all
1274632b578d3Smrg      lt_prog_compiler_pic_CXX=
1274732b578d3Smrg      ;;
127482a51b5beSmrg    interix[3-9]*)
1274932b578d3Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1275032b578d3Smrg      # Instead, we relocate shared libraries at runtime.
1275132b578d3Smrg      ;;
1275232b578d3Smrg    sysv4*MP*)
1275332b578d3Smrg      if test -d /usr/nec; then
1275432b578d3Smrg	lt_prog_compiler_pic_CXX=-Kconform_pic
1275532b578d3Smrg      fi
1275632b578d3Smrg      ;;
1275732b578d3Smrg    hpux*)
1275832b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1275932b578d3Smrg      # not for PA HP-UX.
1276032b578d3Smrg      case $host_cpu in
1276132b578d3Smrg      hppa*64*|ia64*)
1276232b578d3Smrg	;;
1276332b578d3Smrg      *)
1276432b578d3Smrg	lt_prog_compiler_pic_CXX='-fPIC'
1276532b578d3Smrg	;;
1276632b578d3Smrg      esac
1276732b578d3Smrg      ;;
1276832b578d3Smrg    *)
1276932b578d3Smrg      lt_prog_compiler_pic_CXX='-fPIC'
1277032b578d3Smrg      ;;
1277132b578d3Smrg    esac
1277232b578d3Smrg  else
1277332b578d3Smrg    case $host_os in
127742a51b5beSmrg      aix[4-9]*)
1277532b578d3Smrg	# All AIX code is PIC.
1277632b578d3Smrg	if test "$host_cpu" = ia64; then
1277732b578d3Smrg	  # AIX 5 now supports IA64 processor
1277832b578d3Smrg	  lt_prog_compiler_static_CXX='-Bstatic'
1277932b578d3Smrg	else
1278032b578d3Smrg	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
1278132b578d3Smrg	fi
1278232b578d3Smrg	;;
1278332b578d3Smrg      chorus*)
1278432b578d3Smrg	case $cc_basename in
1278532b578d3Smrg	cxch68*)
1278632b578d3Smrg	  # Green Hills C++ Compiler
1278732b578d3Smrg	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1278832b578d3Smrg	  ;;
1278932b578d3Smrg	esac
1279032b578d3Smrg	;;
1279132b578d3Smrg       darwin*)
1279232b578d3Smrg         # PIC is the default on this platform
1279332b578d3Smrg         # Common symbols not allowed in MH_DYLIB files
1279432b578d3Smrg         case $cc_basename in
1279532b578d3Smrg           xlc*)
1279632b578d3Smrg           lt_prog_compiler_pic_CXX='-qnocommon'
1279732b578d3Smrg           lt_prog_compiler_wl_CXX='-Wl,'
1279832b578d3Smrg           ;;
1279932b578d3Smrg         esac
1280032b578d3Smrg       ;;
1280132b578d3Smrg      dgux*)
1280232b578d3Smrg	case $cc_basename in
1280332b578d3Smrg	  ec++*)
1280432b578d3Smrg	    lt_prog_compiler_pic_CXX='-KPIC'
1280532b578d3Smrg	    ;;
1280632b578d3Smrg	  ghcx*)
1280732b578d3Smrg	    # Green Hills C++ Compiler
1280832b578d3Smrg	    lt_prog_compiler_pic_CXX='-pic'
1280932b578d3Smrg	    ;;
1281032b578d3Smrg	  *)
1281132b578d3Smrg	    ;;
1281232b578d3Smrg	esac
1281332b578d3Smrg	;;
128142a51b5beSmrg      freebsd* | dragonfly*)
1281532b578d3Smrg	# FreeBSD uses GNU C++
1281632b578d3Smrg	;;
1281732b578d3Smrg      hpux9* | hpux10* | hpux11*)
1281832b578d3Smrg	case $cc_basename in
1281932b578d3Smrg	  CC*)
1282032b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1282132b578d3Smrg	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1282232b578d3Smrg	    if test "$host_cpu" != ia64; then
1282332b578d3Smrg	      lt_prog_compiler_pic_CXX='+Z'
1282432b578d3Smrg	    fi
1282532b578d3Smrg	    ;;
1282632b578d3Smrg	  aCC*)
1282732b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1282832b578d3Smrg	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1282932b578d3Smrg	    case $host_cpu in
1283032b578d3Smrg	    hppa*64*|ia64*)
1283132b578d3Smrg	      # +Z the default
1283232b578d3Smrg	      ;;
1283332b578d3Smrg	    *)
1283432b578d3Smrg	      lt_prog_compiler_pic_CXX='+Z'
1283532b578d3Smrg	      ;;
1283632b578d3Smrg	    esac
1283732b578d3Smrg	    ;;
1283832b578d3Smrg	  *)
1283932b578d3Smrg	    ;;
1284032b578d3Smrg	esac
1284132b578d3Smrg	;;
1284232b578d3Smrg      interix*)
1284332b578d3Smrg	# This is c89, which is MS Visual C++ (no shared libs)
1284432b578d3Smrg	# Anyone wants to do a port?
1284532b578d3Smrg	;;
1284632b578d3Smrg      irix5* | irix6* | nonstopux*)
1284732b578d3Smrg	case $cc_basename in
1284832b578d3Smrg	  CC*)
1284932b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1285032b578d3Smrg	    lt_prog_compiler_static_CXX='-non_shared'
1285132b578d3Smrg	    # CC pic flag -KPIC is the default.
1285232b578d3Smrg	    ;;
1285332b578d3Smrg	  *)
1285432b578d3Smrg	    ;;
1285532b578d3Smrg	esac
1285632b578d3Smrg	;;
128572a51b5beSmrg      linux* | k*bsd*-gnu)
1285832b578d3Smrg	case $cc_basename in
1285932b578d3Smrg	  KCC*)
1286032b578d3Smrg	    # KAI C++ Compiler
1286132b578d3Smrg	    lt_prog_compiler_wl_CXX='--backend -Wl,'
1286232b578d3Smrg	    lt_prog_compiler_pic_CXX='-fPIC'
1286332b578d3Smrg	    ;;
1286432b578d3Smrg	  icpc* | ecpc*)
1286532b578d3Smrg	    # Intel C++
1286632b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1286732b578d3Smrg	    lt_prog_compiler_pic_CXX='-KPIC'
1286832b578d3Smrg	    lt_prog_compiler_static_CXX='-static'
1286932b578d3Smrg	    ;;
128702a51b5beSmrg	  pgCC* | pgcpp*)
1287132b578d3Smrg	    # Portland Group C++ compiler.
1287232b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1287332b578d3Smrg	    lt_prog_compiler_pic_CXX='-fpic'
1287432b578d3Smrg	    lt_prog_compiler_static_CXX='-Bstatic'
1287532b578d3Smrg	    ;;
1287632b578d3Smrg	  cxx*)
1287732b578d3Smrg	    # Compaq C++
1287832b578d3Smrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
1287932b578d3Smrg	    # Linux and Compaq Tru64 Unix objects are PIC.
1288032b578d3Smrg	    lt_prog_compiler_pic_CXX=
1288132b578d3Smrg	    lt_prog_compiler_static_CXX='-non_shared'
1288232b578d3Smrg	    ;;
1288332b578d3Smrg	  *)
128842a51b5beSmrg	    case `$CC -V 2>&1 | sed 5q` in
128852a51b5beSmrg	    *Sun\ C*)
128862a51b5beSmrg	      # Sun C++ 5.9
128872a51b5beSmrg	      lt_prog_compiler_pic_CXX='-KPIC'
128882a51b5beSmrg	      lt_prog_compiler_static_CXX='-Bstatic'
128892a51b5beSmrg	      lt_prog_compiler_wl_CXX='-Qoption ld '
128902a51b5beSmrg	      ;;
128912a51b5beSmrg	    esac
1289232b578d3Smrg	    ;;
1289332b578d3Smrg	esac
1289432b578d3Smrg	;;
1289532b578d3Smrg      lynxos*)
1289632b578d3Smrg	;;
1289732b578d3Smrg      m88k*)
1289832b578d3Smrg	;;
1289932b578d3Smrg      mvs*)
1290032b578d3Smrg	case $cc_basename in
1290132b578d3Smrg	  cxx*)
1290232b578d3Smrg	    lt_prog_compiler_pic_CXX='-W c,exportall'
1290332b578d3Smrg	    ;;
1290432b578d3Smrg	  *)
1290532b578d3Smrg	    ;;
1290632b578d3Smrg	esac
1290732b578d3Smrg	;;
1290832b578d3Smrg      netbsd*)
1290932b578d3Smrg	;;
1291032b578d3Smrg      osf3* | osf4* | osf5*)
1291132b578d3Smrg	case $cc_basename in
1291232b578d3Smrg	  KCC*)
1291332b578d3Smrg	    lt_prog_compiler_wl_CXX='--backend -Wl,'
1291432b578d3Smrg	    ;;
1291532b578d3Smrg	  RCC*)
1291632b578d3Smrg	    # Rational C++ 2.4.1
1291732b578d3Smrg	    lt_prog_compiler_pic_CXX='-pic'
1291832b578d3Smrg	    ;;
1291932b578d3Smrg	  cxx*)
1292032b578d3Smrg	    # Digital/Compaq C++
1292132b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1292232b578d3Smrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
1292332b578d3Smrg	    # Linux and Compaq Tru64 Unix objects are PIC.
1292432b578d3Smrg	    lt_prog_compiler_pic_CXX=
1292532b578d3Smrg	    lt_prog_compiler_static_CXX='-non_shared'
1292632b578d3Smrg	    ;;
1292732b578d3Smrg	  *)
1292832b578d3Smrg	    ;;
1292932b578d3Smrg	esac
1293032b578d3Smrg	;;
1293132b578d3Smrg      psos*)
1293232b578d3Smrg	;;
1293332b578d3Smrg      solaris*)
1293432b578d3Smrg	case $cc_basename in
1293532b578d3Smrg	  CC*)
1293632b578d3Smrg	    # Sun C++ 4.2, 5.x and Centerline C++
1293732b578d3Smrg	    lt_prog_compiler_pic_CXX='-KPIC'
1293832b578d3Smrg	    lt_prog_compiler_static_CXX='-Bstatic'
1293932b578d3Smrg	    lt_prog_compiler_wl_CXX='-Qoption ld '
1294032b578d3Smrg	    ;;
1294132b578d3Smrg	  gcx*)
1294232b578d3Smrg	    # Green Hills C++ Compiler
1294332b578d3Smrg	    lt_prog_compiler_pic_CXX='-PIC'
1294432b578d3Smrg	    ;;
1294532b578d3Smrg	  *)
1294632b578d3Smrg	    ;;
1294732b578d3Smrg	esac
1294832b578d3Smrg	;;
1294932b578d3Smrg      sunos4*)
1295032b578d3Smrg	case $cc_basename in
1295132b578d3Smrg	  CC*)
1295232b578d3Smrg	    # Sun C++ 4.x
1295332b578d3Smrg	    lt_prog_compiler_pic_CXX='-pic'
1295432b578d3Smrg	    lt_prog_compiler_static_CXX='-Bstatic'
1295532b578d3Smrg	    ;;
1295632b578d3Smrg	  lcc*)
1295732b578d3Smrg	    # Lucid
1295832b578d3Smrg	    lt_prog_compiler_pic_CXX='-pic'
1295932b578d3Smrg	    ;;
1296032b578d3Smrg	  *)
1296132b578d3Smrg	    ;;
1296232b578d3Smrg	esac
1296332b578d3Smrg	;;
1296432b578d3Smrg      tandem*)
1296532b578d3Smrg	case $cc_basename in
1296632b578d3Smrg	  NCC*)
1296732b578d3Smrg	    # NonStop-UX NCC 3.20
1296832b578d3Smrg	    lt_prog_compiler_pic_CXX='-KPIC'
1296932b578d3Smrg	    ;;
1297032b578d3Smrg	  *)
1297132b578d3Smrg	    ;;
1297232b578d3Smrg	esac
1297332b578d3Smrg	;;
1297432b578d3Smrg      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1297532b578d3Smrg	case $cc_basename in
1297632b578d3Smrg	  CC*)
1297732b578d3Smrg	    lt_prog_compiler_wl_CXX='-Wl,'
1297832b578d3Smrg	    lt_prog_compiler_pic_CXX='-KPIC'
1297932b578d3Smrg	    lt_prog_compiler_static_CXX='-Bstatic'
1298032b578d3Smrg	    ;;
1298132b578d3Smrg	esac
1298232b578d3Smrg	;;
1298332b578d3Smrg      vxworks*)
1298432b578d3Smrg	;;
1298532b578d3Smrg      *)
1298632b578d3Smrg	lt_prog_compiler_can_build_shared_CXX=no
1298732b578d3Smrg	;;
1298832b578d3Smrg    esac
1298932b578d3Smrg  fi
1299032b578d3Smrg
129912a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
129922a51b5beSmrg$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
1299332b578d3Smrg
1299432b578d3Smrg#
1299532b578d3Smrg# Check to make sure the PIC flag actually works.
1299632b578d3Smrg#
1299732b578d3Smrgif test -n "$lt_prog_compiler_pic_CXX"; then
1299832b578d3Smrg
129992a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
130002a51b5beSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
130012a51b5beSmrgif test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
130022a51b5beSmrg  $as_echo_n "(cached) " >&6
1300332b578d3Smrgelse
130042a51b5beSmrg  lt_cv_prog_compiler_pic_works_CXX=no
1300532b578d3Smrg  ac_outfile=conftest.$ac_objext
130062a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1300732b578d3Smrg   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
1300832b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1300932b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1301032b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1301132b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1301232b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
1301332b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1301432b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1301532b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1301632b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
130172a51b5beSmrg   (eval echo "\"\$as_me:13017: $lt_compile\"" >&5)
1301832b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
1301932b578d3Smrg   ac_status=$?
1302032b578d3Smrg   cat conftest.err >&5
130212a51b5beSmrg   echo "$as_me:13021: \$? = $ac_status" >&5
1302232b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
1302332b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1302432b578d3Smrg     # So say no if there are warnings other than the usual output.
1302532b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1302632b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1302732b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
130282a51b5beSmrg       lt_cv_prog_compiler_pic_works_CXX=yes
1302932b578d3Smrg     fi
1303032b578d3Smrg   fi
1303132b578d3Smrg   $rm conftest*
1303232b578d3Smrg
1303332b578d3Smrgfi
130342a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
130352a51b5beSmrg$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1303632b578d3Smrg
130372a51b5beSmrgif test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1303832b578d3Smrg    case $lt_prog_compiler_pic_CXX in
1303932b578d3Smrg     "" | " "*) ;;
1304032b578d3Smrg     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1304132b578d3Smrg     esac
1304232b578d3Smrgelse
1304332b578d3Smrg    lt_prog_compiler_pic_CXX=
1304432b578d3Smrg     lt_prog_compiler_can_build_shared_CXX=no
1304532b578d3Smrgfi
1304632b578d3Smrg
1304732b578d3Smrgfi
1304832b578d3Smrgcase $host_os in
1304932b578d3Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
1305032b578d3Smrg  *djgpp*)
1305132b578d3Smrg    lt_prog_compiler_pic_CXX=
1305232b578d3Smrg    ;;
1305332b578d3Smrg  *)
1305432b578d3Smrg    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1305532b578d3Smrg    ;;
1305632b578d3Smrgesac
1305732b578d3Smrg
1305832b578d3Smrg#
1305932b578d3Smrg# Check to make sure the static flag actually works.
1306032b578d3Smrg#
1306132b578d3Smrgwl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
130622a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
130632a51b5beSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
130642a51b5beSmrgif test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
130652a51b5beSmrg  $as_echo_n "(cached) " >&6
1306632b578d3Smrgelse
130672a51b5beSmrg  lt_cv_prog_compiler_static_works_CXX=no
1306832b578d3Smrg   save_LDFLAGS="$LDFLAGS"
1306932b578d3Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
130702a51b5beSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1307132b578d3Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1307232b578d3Smrg     # The linker can only warn and ignore the option if not recognized
1307332b578d3Smrg     # So say no if there are warnings
1307432b578d3Smrg     if test -s conftest.err; then
1307532b578d3Smrg       # Append any errors to the config.log.
1307632b578d3Smrg       cat conftest.err 1>&5
1307732b578d3Smrg       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1307832b578d3Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1307932b578d3Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
130802a51b5beSmrg         lt_cv_prog_compiler_static_works_CXX=yes
1308132b578d3Smrg       fi
1308232b578d3Smrg     else
130832a51b5beSmrg       lt_cv_prog_compiler_static_works_CXX=yes
1308432b578d3Smrg     fi
1308532b578d3Smrg   fi
130862a51b5beSmrg   $rm -r conftest*
1308732b578d3Smrg   LDFLAGS="$save_LDFLAGS"
1308832b578d3Smrg
1308932b578d3Smrgfi
130902a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
130912a51b5beSmrg$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1309232b578d3Smrg
130932a51b5beSmrgif test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1309432b578d3Smrg    :
1309532b578d3Smrgelse
1309632b578d3Smrg    lt_prog_compiler_static_CXX=
1309732b578d3Smrgfi
1309832b578d3Smrg
1309932b578d3Smrg
131002a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
131012a51b5beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1310232b578d3Smrgif test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
131032a51b5beSmrg  $as_echo_n "(cached) " >&6
1310432b578d3Smrgelse
1310532b578d3Smrg  lt_cv_prog_compiler_c_o_CXX=no
1310632b578d3Smrg   $rm -r conftest 2>/dev/null
1310732b578d3Smrg   mkdir conftest
1310832b578d3Smrg   cd conftest
1310932b578d3Smrg   mkdir out
131102a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1311132b578d3Smrg
1311232b578d3Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
1311332b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1311432b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1311532b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1311632b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1311732b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1311832b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1311932b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1312032b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
131212a51b5beSmrg   (eval echo "\"\$as_me:13121: $lt_compile\"" >&5)
1312232b578d3Smrg   (eval "$lt_compile" 2>out/conftest.err)
1312332b578d3Smrg   ac_status=$?
1312432b578d3Smrg   cat out/conftest.err >&5
131252a51b5beSmrg   echo "$as_me:13125: \$? = $ac_status" >&5
1312632b578d3Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1312732b578d3Smrg   then
1312832b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1312932b578d3Smrg     # So say no if there are warnings
1313032b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1313132b578d3Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1313232b578d3Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1313332b578d3Smrg       lt_cv_prog_compiler_c_o_CXX=yes
1313432b578d3Smrg     fi
1313532b578d3Smrg   fi
1313632b578d3Smrg   chmod u+w . 2>&5
1313732b578d3Smrg   $rm conftest*
1313832b578d3Smrg   # SGI C++ compiler will create directory out/ii_files/ for
1313932b578d3Smrg   # template instantiation
1314032b578d3Smrg   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1314132b578d3Smrg   $rm out/* && rmdir out
1314232b578d3Smrg   cd ..
1314332b578d3Smrg   rmdir conftest
1314432b578d3Smrg   $rm conftest*
1314532b578d3Smrg
1314632b578d3Smrgfi
131472a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
131482a51b5beSmrg$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1314932b578d3Smrg
1315032b578d3Smrg
1315132b578d3Smrghard_links="nottested"
1315232b578d3Smrgif test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
1315332b578d3Smrg  # do not overwrite the value of need_locks provided by the user
131542a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
131552a51b5beSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
1315632b578d3Smrg  hard_links=yes
1315732b578d3Smrg  $rm conftest*
1315832b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1315932b578d3Smrg  touch conftest.a
1316032b578d3Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
1316132b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
131622a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
131632a51b5beSmrg$as_echo "$hard_links" >&6; }
1316432b578d3Smrg  if test "$hard_links" = no; then
131652a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
131662a51b5beSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1316732b578d3Smrg    need_locks=warn
1316832b578d3Smrg  fi
1316932b578d3Smrgelse
1317032b578d3Smrg  need_locks=no
1317132b578d3Smrgfi
1317232b578d3Smrg
131732a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
131742a51b5beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1317532b578d3Smrg
1317632b578d3Smrg  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1317732b578d3Smrg  case $host_os in
131782a51b5beSmrg  aix[4-9]*)
1317932b578d3Smrg    # If we're using GNU nm, then we don't want the "-C" option.
1318032b578d3Smrg    # -C means demangle to AIX nm, but means don't demangle with GNU nm
1318132b578d3Smrg    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1318232b578d3Smrg      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1318332b578d3Smrg    else
1318432b578d3Smrg      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1318532b578d3Smrg    fi
1318632b578d3Smrg    ;;
1318732b578d3Smrg  pw32*)
1318832b578d3Smrg    export_symbols_cmds_CXX="$ltdll_cmds"
1318932b578d3Smrg  ;;
1319032b578d3Smrg  cygwin* | mingw*)
131912a51b5beSmrg    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1319232b578d3Smrg  ;;
1319332b578d3Smrg  *)
1319432b578d3Smrg    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1319532b578d3Smrg  ;;
1319632b578d3Smrg  esac
131972a51b5beSmrg  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1319832b578d3Smrg
131992a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
132002a51b5beSmrg$as_echo "$ld_shlibs_CXX" >&6; }
1320132b578d3Smrgtest "$ld_shlibs_CXX" = no && can_build_shared=no
1320232b578d3Smrg
1320332b578d3Smrg#
1320432b578d3Smrg# Do we need to explicitly link libc?
1320532b578d3Smrg#
1320632b578d3Smrgcase "x$archive_cmds_need_lc_CXX" in
1320732b578d3Smrgx|xyes)
1320832b578d3Smrg  # Assume -lc should be added
1320932b578d3Smrg  archive_cmds_need_lc_CXX=yes
1321032b578d3Smrg
1321132b578d3Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
1321232b578d3Smrg    case $archive_cmds_CXX in
1321332b578d3Smrg    *'~'*)
1321432b578d3Smrg      # FIXME: we may have to deal with multi-command sequences.
1321532b578d3Smrg      ;;
1321632b578d3Smrg    '$CC '*)
1321732b578d3Smrg      # Test whether the compiler implicitly links with -lc since on some
1321832b578d3Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
1321932b578d3Smrg      # to ld, don't add -lc before -lgcc.
132202a51b5beSmrg      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
132212a51b5beSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1322232b578d3Smrg      $rm conftest*
132232a51b5beSmrg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1322432b578d3Smrg
1322532b578d3Smrg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1322632b578d3Smrg  (eval $ac_compile) 2>&5
1322732b578d3Smrg  ac_status=$?
132282a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1322932b578d3Smrg  (exit $ac_status); } 2>conftest.err; then
1323032b578d3Smrg        soname=conftest
1323132b578d3Smrg        lib=conftest
1323232b578d3Smrg        libobjs=conftest.$ac_objext
1323332b578d3Smrg        deplibs=
1323432b578d3Smrg        wl=$lt_prog_compiler_wl_CXX
1323532b578d3Smrg	pic_flag=$lt_prog_compiler_pic_CXX
1323632b578d3Smrg        compiler_flags=-v
1323732b578d3Smrg        linker_flags=-v
1323832b578d3Smrg        verstring=
1323932b578d3Smrg        output_objdir=.
1324032b578d3Smrg        libname=conftest
1324132b578d3Smrg        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
1324232b578d3Smrg        allow_undefined_flag_CXX=
1324332b578d3Smrg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1324432b578d3Smrg  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1324532b578d3Smrg  ac_status=$?
132462a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1324732b578d3Smrg  (exit $ac_status); }
1324832b578d3Smrg        then
1324932b578d3Smrg	  archive_cmds_need_lc_CXX=no
1325032b578d3Smrg        else
1325132b578d3Smrg	  archive_cmds_need_lc_CXX=yes
1325232b578d3Smrg        fi
1325332b578d3Smrg        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
1325432b578d3Smrg      else
1325532b578d3Smrg        cat conftest.err 1>&5
1325632b578d3Smrg      fi
1325732b578d3Smrg      $rm conftest*
132582a51b5beSmrg      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
132592a51b5beSmrg$as_echo "$archive_cmds_need_lc_CXX" >&6; }
1326032b578d3Smrg      ;;
1326132b578d3Smrg    esac
1326232b578d3Smrg  fi
1326332b578d3Smrg  ;;
1326432b578d3Smrgesac
1326532b578d3Smrg
132662a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
132672a51b5beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
1326832b578d3Smrglibrary_names_spec=
1326932b578d3Smrglibname_spec='lib$name'
1327032b578d3Smrgsoname_spec=
1327132b578d3Smrgshrext_cmds=".so"
1327232b578d3Smrgpostinstall_cmds=
1327332b578d3Smrgpostuninstall_cmds=
1327432b578d3Smrgfinish_cmds=
1327532b578d3Smrgfinish_eval=
1327632b578d3Smrgshlibpath_var=
1327732b578d3Smrgshlibpath_overrides_runpath=unknown
1327832b578d3Smrgversion_type=none
1327932b578d3Smrgdynamic_linker="$host_os ld.so"
1328032b578d3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
132812a51b5beSmrg
1328232b578d3Smrgneed_lib_prefix=unknown
1328332b578d3Smrghardcode_into_libs=no
1328432b578d3Smrg
1328532b578d3Smrg# when you set need_version to no, make sure it does not cause -set_version
1328632b578d3Smrg# flags to be left without arguments
1328732b578d3Smrgneed_version=unknown
1328832b578d3Smrg
1328932b578d3Smrgcase $host_os in
1329032b578d3Smrgaix3*)
1329132b578d3Smrg  version_type=linux
1329232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1329332b578d3Smrg  shlibpath_var=LIBPATH
1329432b578d3Smrg
1329532b578d3Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
1329632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1329732b578d3Smrg  ;;
1329832b578d3Smrg
132992a51b5beSmrgaix[4-9]*)
1330032b578d3Smrg  version_type=linux
1330132b578d3Smrg  need_lib_prefix=no
1330232b578d3Smrg  need_version=no
1330332b578d3Smrg  hardcode_into_libs=yes
1330432b578d3Smrg  if test "$host_cpu" = ia64; then
1330532b578d3Smrg    # AIX 5 supports IA64
1330632b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1330732b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1330832b578d3Smrg  else
1330932b578d3Smrg    # With GCC up to 2.95.x, collect2 would create an import file
1331032b578d3Smrg    # for dependence libraries.  The import file would start with
1331132b578d3Smrg    # the line `#! .'.  This would cause the generated library to
1331232b578d3Smrg    # depend on `.', always an invalid library.  This was fixed in
1331332b578d3Smrg    # development snapshots of GCC prior to 3.0.
1331432b578d3Smrg    case $host_os in
1331532b578d3Smrg      aix4 | aix4.[01] | aix4.[01].*)
1331632b578d3Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1331732b578d3Smrg	   echo ' yes '
1331832b578d3Smrg	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1331932b578d3Smrg	:
1332032b578d3Smrg      else
1332132b578d3Smrg	can_build_shared=no
1332232b578d3Smrg      fi
1332332b578d3Smrg      ;;
1332432b578d3Smrg    esac
1332532b578d3Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1332632b578d3Smrg    # soname into executable. Probably we can add versioning support to
1332732b578d3Smrg    # collect2, so additional links can be useful in future.
1332832b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
1332932b578d3Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1333032b578d3Smrg      # instead of lib<name>.a to let people know that these are not
1333132b578d3Smrg      # typical AIX shared libraries.
1333232b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1333332b578d3Smrg    else
1333432b578d3Smrg      # We preserve .a as extension for shared libraries through AIX4.2
1333532b578d3Smrg      # and later when we are not doing run time linking.
1333632b578d3Smrg      library_names_spec='${libname}${release}.a $libname.a'
1333732b578d3Smrg      soname_spec='${libname}${release}${shared_ext}$major'
1333832b578d3Smrg    fi
1333932b578d3Smrg    shlibpath_var=LIBPATH
1334032b578d3Smrg  fi
1334132b578d3Smrg  ;;
1334232b578d3Smrg
1334332b578d3Smrgamigaos*)
1334432b578d3Smrg  library_names_spec='$libname.ixlibrary $libname.a'
1334532b578d3Smrg  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1334632b578d3Smrg  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
1334732b578d3Smrg  ;;
1334832b578d3Smrg
1334932b578d3Smrgbeos*)
1335032b578d3Smrg  library_names_spec='${libname}${shared_ext}'
1335132b578d3Smrg  dynamic_linker="$host_os ld.so"
1335232b578d3Smrg  shlibpath_var=LIBRARY_PATH
1335332b578d3Smrg  ;;
1335432b578d3Smrg
1335532b578d3Smrgbsdi[45]*)
1335632b578d3Smrg  version_type=linux
1335732b578d3Smrg  need_version=no
1335832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1335932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1336032b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1336132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1336232b578d3Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1336332b578d3Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1336432b578d3Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
1336532b578d3Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1336632b578d3Smrg  # libtool to hard-code these into programs
1336732b578d3Smrg  ;;
1336832b578d3Smrg
1336932b578d3Smrgcygwin* | mingw* | pw32*)
1337032b578d3Smrg  version_type=windows
1337132b578d3Smrg  shrext_cmds=".dll"
1337232b578d3Smrg  need_version=no
1337332b578d3Smrg  need_lib_prefix=no
1337432b578d3Smrg
1337532b578d3Smrg  case $GCC,$host_os in
1337632b578d3Smrg  yes,cygwin* | yes,mingw* | yes,pw32*)
1337732b578d3Smrg    library_names_spec='$libname.dll.a'
1337832b578d3Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1337932b578d3Smrg    postinstall_cmds='base_file=`basename \${file}`~
1338032b578d3Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1338132b578d3Smrg      dldir=$destdir/`dirname \$dlpath`~
1338232b578d3Smrg      test -d \$dldir || mkdir -p \$dldir~
1338332b578d3Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
1338432b578d3Smrg      chmod a+x \$dldir/$dlname'
1338532b578d3Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1338632b578d3Smrg      dlpath=$dir/\$dldll~
1338732b578d3Smrg       $rm \$dlpath'
1338832b578d3Smrg    shlibpath_overrides_runpath=yes
1338932b578d3Smrg
1339032b578d3Smrg    case $host_os in
1339132b578d3Smrg    cygwin*)
1339232b578d3Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1339332b578d3Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1339432b578d3Smrg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1339532b578d3Smrg      ;;
1339632b578d3Smrg    mingw*)
1339732b578d3Smrg      # MinGW DLLs use traditional 'lib' prefix
1339832b578d3Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1339932b578d3Smrg      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1340032b578d3Smrg      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1340132b578d3Smrg        # It is most probably a Windows format PATH printed by
1340232b578d3Smrg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1340332b578d3Smrg        # path with ; separators, and with drive letters. We can handle the
1340432b578d3Smrg        # drive letters (cygwin fileutils understands them), so leave them,
1340532b578d3Smrg        # especially as we might pass files found there to a mingw objdump,
1340632b578d3Smrg        # which wouldn't understand a cygwinified path. Ahh.
1340732b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1340832b578d3Smrg      else
1340932b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1341032b578d3Smrg      fi
1341132b578d3Smrg      ;;
1341232b578d3Smrg    pw32*)
1341332b578d3Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
1341432b578d3Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1341532b578d3Smrg      ;;
1341632b578d3Smrg    esac
1341732b578d3Smrg    ;;
1341832b578d3Smrg
1341932b578d3Smrg  *)
1342032b578d3Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1342132b578d3Smrg    ;;
1342232b578d3Smrg  esac
1342332b578d3Smrg  dynamic_linker='Win32 ld.exe'
1342432b578d3Smrg  # FIXME: first we should search . and the directory the executable is in
1342532b578d3Smrg  shlibpath_var=PATH
1342632b578d3Smrg  ;;
1342732b578d3Smrg
1342832b578d3Smrgdarwin* | rhapsody*)
1342932b578d3Smrg  dynamic_linker="$host_os dyld"
1343032b578d3Smrg  version_type=darwin
1343132b578d3Smrg  need_lib_prefix=no
1343232b578d3Smrg  need_version=no
1343332b578d3Smrg  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1343432b578d3Smrg  soname_spec='${libname}${release}${major}$shared_ext'
1343532b578d3Smrg  shlibpath_overrides_runpath=yes
1343632b578d3Smrg  shlibpath_var=DYLD_LIBRARY_PATH
1343732b578d3Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
134382a51b5beSmrg
1343932b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1344032b578d3Smrg  ;;
1344132b578d3Smrg
1344232b578d3Smrgdgux*)
1344332b578d3Smrg  version_type=linux
1344432b578d3Smrg  need_lib_prefix=no
1344532b578d3Smrg  need_version=no
1344632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1344732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1344832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1344932b578d3Smrg  ;;
1345032b578d3Smrg
1345132b578d3Smrgfreebsd1*)
1345232b578d3Smrg  dynamic_linker=no
1345332b578d3Smrg  ;;
1345432b578d3Smrg
1345532b578d3Smrgfreebsd* | dragonfly*)
1345632b578d3Smrg  # DragonFly does not have aout.  When/if they implement a new
1345732b578d3Smrg  # versioning mechanism, adjust this.
1345832b578d3Smrg  if test -x /usr/bin/objformat; then
1345932b578d3Smrg    objformat=`/usr/bin/objformat`
1346032b578d3Smrg  else
1346132b578d3Smrg    case $host_os in
1346232b578d3Smrg    freebsd[123]*) objformat=aout ;;
1346332b578d3Smrg    *) objformat=elf ;;
1346432b578d3Smrg    esac
1346532b578d3Smrg  fi
1346632b578d3Smrg  version_type=freebsd-$objformat
1346732b578d3Smrg  case $version_type in
1346832b578d3Smrg    freebsd-elf*)
1346932b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1347032b578d3Smrg      need_version=no
1347132b578d3Smrg      need_lib_prefix=no
1347232b578d3Smrg      ;;
1347332b578d3Smrg    freebsd-*)
1347432b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1347532b578d3Smrg      need_version=yes
1347632b578d3Smrg      ;;
1347732b578d3Smrg  esac
1347832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1347932b578d3Smrg  case $host_os in
1348032b578d3Smrg  freebsd2*)
1348132b578d3Smrg    shlibpath_overrides_runpath=yes
1348232b578d3Smrg    ;;
1348332b578d3Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
1348432b578d3Smrg    shlibpath_overrides_runpath=yes
1348532b578d3Smrg    hardcode_into_libs=yes
1348632b578d3Smrg    ;;
1348732b578d3Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
1348832b578d3Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1348932b578d3Smrg    shlibpath_overrides_runpath=no
1349032b578d3Smrg    hardcode_into_libs=yes
1349132b578d3Smrg    ;;
134922a51b5beSmrg  *) # from 4.6 on, and DragonFly
1349332b578d3Smrg    shlibpath_overrides_runpath=yes
1349432b578d3Smrg    hardcode_into_libs=yes
1349532b578d3Smrg    ;;
1349632b578d3Smrg  esac
1349732b578d3Smrg  ;;
1349832b578d3Smrg
1349932b578d3Smrggnu*)
1350032b578d3Smrg  version_type=linux
1350132b578d3Smrg  need_lib_prefix=no
1350232b578d3Smrg  need_version=no
1350332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1350432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1350532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1350632b578d3Smrg  hardcode_into_libs=yes
1350732b578d3Smrg  ;;
1350832b578d3Smrg
1350932b578d3Smrghpux9* | hpux10* | hpux11*)
1351032b578d3Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1351132b578d3Smrg  # link against other versions.
1351232b578d3Smrg  version_type=sunos
1351332b578d3Smrg  need_lib_prefix=no
1351432b578d3Smrg  need_version=no
1351532b578d3Smrg  case $host_cpu in
1351632b578d3Smrg  ia64*)
1351732b578d3Smrg    shrext_cmds='.so'
1351832b578d3Smrg    hardcode_into_libs=yes
1351932b578d3Smrg    dynamic_linker="$host_os dld.so"
1352032b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1352132b578d3Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1352232b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1352332b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1352432b578d3Smrg    if test "X$HPUX_IA64_MODE" = X32; then
1352532b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1352632b578d3Smrg    else
1352732b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1352832b578d3Smrg    fi
1352932b578d3Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1353032b578d3Smrg    ;;
1353132b578d3Smrg   hppa*64*)
1353232b578d3Smrg     shrext_cmds='.sl'
1353332b578d3Smrg     hardcode_into_libs=yes
1353432b578d3Smrg     dynamic_linker="$host_os dld.sl"
1353532b578d3Smrg     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1353632b578d3Smrg     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1353732b578d3Smrg     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1353832b578d3Smrg     soname_spec='${libname}${release}${shared_ext}$major'
1353932b578d3Smrg     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1354032b578d3Smrg     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1354132b578d3Smrg     ;;
1354232b578d3Smrg   *)
1354332b578d3Smrg    shrext_cmds='.sl'
1354432b578d3Smrg    dynamic_linker="$host_os dld.sl"
1354532b578d3Smrg    shlibpath_var=SHLIB_PATH
1354632b578d3Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1354732b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1354832b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1354932b578d3Smrg    ;;
1355032b578d3Smrg  esac
1355132b578d3Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
1355232b578d3Smrg  postinstall_cmds='chmod 555 $lib'
1355332b578d3Smrg  ;;
1355432b578d3Smrg
135552a51b5beSmrginterix[3-9]*)
1355632b578d3Smrg  version_type=linux
1355732b578d3Smrg  need_lib_prefix=no
1355832b578d3Smrg  need_version=no
1355932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1356032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1356132b578d3Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1356232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1356332b578d3Smrg  shlibpath_overrides_runpath=no
1356432b578d3Smrg  hardcode_into_libs=yes
1356532b578d3Smrg  ;;
1356632b578d3Smrg
1356732b578d3Smrgirix5* | irix6* | nonstopux*)
1356832b578d3Smrg  case $host_os in
1356932b578d3Smrg    nonstopux*) version_type=nonstopux ;;
1357032b578d3Smrg    *)
1357132b578d3Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1357232b578d3Smrg		version_type=linux
1357332b578d3Smrg	else
1357432b578d3Smrg		version_type=irix
1357532b578d3Smrg	fi ;;
1357632b578d3Smrg  esac
1357732b578d3Smrg  need_lib_prefix=no
1357832b578d3Smrg  need_version=no
1357932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1358032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1358132b578d3Smrg  case $host_os in
1358232b578d3Smrg  irix5* | nonstopux*)
1358332b578d3Smrg    libsuff= shlibsuff=
1358432b578d3Smrg    ;;
1358532b578d3Smrg  *)
1358632b578d3Smrg    case $LD in # libtool.m4 will add one of these switches to LD
1358732b578d3Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1358832b578d3Smrg      libsuff= shlibsuff= libmagic=32-bit;;
1358932b578d3Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1359032b578d3Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1359132b578d3Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1359232b578d3Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1359332b578d3Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
1359432b578d3Smrg    esac
1359532b578d3Smrg    ;;
1359632b578d3Smrg  esac
1359732b578d3Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1359832b578d3Smrg  shlibpath_overrides_runpath=no
1359932b578d3Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1360032b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1360132b578d3Smrg  hardcode_into_libs=yes
1360232b578d3Smrg  ;;
1360332b578d3Smrg
1360432b578d3Smrg# No shared lib support for Linux oldld, aout, or coff.
1360532b578d3Smrglinux*oldld* | linux*aout* | linux*coff*)
1360632b578d3Smrg  dynamic_linker=no
1360732b578d3Smrg  ;;
1360832b578d3Smrg
1360932b578d3Smrg# This must be Linux ELF.
136102a51b5beSmrglinux* | k*bsd*-gnu)
1361132b578d3Smrg  version_type=linux
1361232b578d3Smrg  need_lib_prefix=no
1361332b578d3Smrg  need_version=no
1361432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1361532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1361632b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1361732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1361832b578d3Smrg  shlibpath_overrides_runpath=no
1361932b578d3Smrg  # This implies no fast_install, which is unacceptable.
1362032b578d3Smrg  # Some rework will be needed to allow for fast_install
1362132b578d3Smrg  # before this can be enabled.
1362232b578d3Smrg  hardcode_into_libs=yes
136232a51b5beSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
136242a51b5beSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1362532b578d3Smrg
1362632b578d3Smrg  # Append ld.so.conf contents to the search path
1362732b578d3Smrg  if test -f /etc/ld.so.conf; then
136282a51b5beSmrg    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;/^$/d' | tr '\n' ' '`
136292a51b5beSmrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1363032b578d3Smrg  fi
1363132b578d3Smrg
1363232b578d3Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1363332b578d3Smrg  # powerpc, because MkLinux only supported shared libraries with the
1363432b578d3Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1363532b578d3Smrg  # most powerpc-linux boxes support dynamic linking these days and
1363632b578d3Smrg  # people can always --disable-shared, the test was removed, and we
1363732b578d3Smrg  # assume the GNU/Linux dynamic linker is in use.
1363832b578d3Smrg  dynamic_linker='GNU/Linux ld.so'
1363932b578d3Smrg  ;;
1364032b578d3Smrg
1364132b578d3Smrgnetbsd*)
1364232b578d3Smrg  version_type=sunos
1364332b578d3Smrg  need_lib_prefix=no
1364432b578d3Smrg  need_version=no
1364532b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1364632b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1364732b578d3Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1364832b578d3Smrg    dynamic_linker='NetBSD (a.out) ld.so'
1364932b578d3Smrg  else
1365032b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1365132b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1365232b578d3Smrg    dynamic_linker='NetBSD ld.elf_so'
1365332b578d3Smrg  fi
1365432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1365532b578d3Smrg  shlibpath_overrides_runpath=yes
1365632b578d3Smrg  hardcode_into_libs=yes
1365732b578d3Smrg  ;;
1365832b578d3Smrg
1365932b578d3Smrgnewsos6)
1366032b578d3Smrg  version_type=linux
1366132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1366232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1366332b578d3Smrg  shlibpath_overrides_runpath=yes
1366432b578d3Smrg  ;;
1366532b578d3Smrg
1366632b578d3Smrgnto-qnx*)
1366732b578d3Smrg  version_type=linux
1366832b578d3Smrg  need_lib_prefix=no
1366932b578d3Smrg  need_version=no
1367032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1367132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1367232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1367332b578d3Smrg  shlibpath_overrides_runpath=yes
1367432b578d3Smrg  ;;
1367532b578d3Smrg
1367632b578d3Smrgopenbsd*)
1367732b578d3Smrg  version_type=sunos
1367832b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
1367932b578d3Smrg  need_lib_prefix=no
1368032b578d3Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1368132b578d3Smrg  case $host_os in
1368232b578d3Smrg    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1368332b578d3Smrg    *)                         need_version=no  ;;
1368432b578d3Smrg  esac
1368532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1368632b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1368732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1368832b578d3Smrg  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1368932b578d3Smrg    case $host_os in
1369032b578d3Smrg      openbsd2.[89] | openbsd2.[89].*)
1369132b578d3Smrg	shlibpath_overrides_runpath=no
1369232b578d3Smrg	;;
1369332b578d3Smrg      *)
1369432b578d3Smrg	shlibpath_overrides_runpath=yes
1369532b578d3Smrg	;;
1369632b578d3Smrg      esac
1369732b578d3Smrg  else
1369832b578d3Smrg    shlibpath_overrides_runpath=yes
1369932b578d3Smrg  fi
1370032b578d3Smrg  ;;
1370132b578d3Smrg
1370232b578d3Smrgos2*)
1370332b578d3Smrg  libname_spec='$name'
1370432b578d3Smrg  shrext_cmds=".dll"
1370532b578d3Smrg  need_lib_prefix=no
1370632b578d3Smrg  library_names_spec='$libname${shared_ext} $libname.a'
1370732b578d3Smrg  dynamic_linker='OS/2 ld.exe'
1370832b578d3Smrg  shlibpath_var=LIBPATH
1370932b578d3Smrg  ;;
1371032b578d3Smrg
1371132b578d3Smrgosf3* | osf4* | osf5*)
1371232b578d3Smrg  version_type=osf
1371332b578d3Smrg  need_lib_prefix=no
1371432b578d3Smrg  need_version=no
1371532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1371632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1371732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1371832b578d3Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1371932b578d3Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1372032b578d3Smrg  ;;
1372132b578d3Smrg
137222a51b5beSmrgrdos*)
137232a51b5beSmrg  dynamic_linker=no
137242a51b5beSmrg  ;;
137252a51b5beSmrg
1372632b578d3Smrgsolaris*)
1372732b578d3Smrg  version_type=linux
1372832b578d3Smrg  need_lib_prefix=no
1372932b578d3Smrg  need_version=no
1373032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1373132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1373232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1373332b578d3Smrg  shlibpath_overrides_runpath=yes
1373432b578d3Smrg  hardcode_into_libs=yes
1373532b578d3Smrg  # ldd complains unless libraries are executable
1373632b578d3Smrg  postinstall_cmds='chmod +x $lib'
1373732b578d3Smrg  ;;
1373832b578d3Smrg
1373932b578d3Smrgsunos4*)
1374032b578d3Smrg  version_type=sunos
1374132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1374232b578d3Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1374332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1374432b578d3Smrg  shlibpath_overrides_runpath=yes
1374532b578d3Smrg  if test "$with_gnu_ld" = yes; then
1374632b578d3Smrg    need_lib_prefix=no
1374732b578d3Smrg  fi
1374832b578d3Smrg  need_version=yes
1374932b578d3Smrg  ;;
1375032b578d3Smrg
1375132b578d3Smrgsysv4 | sysv4.3*)
1375232b578d3Smrg  version_type=linux
1375332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1375432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1375532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1375632b578d3Smrg  case $host_vendor in
1375732b578d3Smrg    sni)
1375832b578d3Smrg      shlibpath_overrides_runpath=no
1375932b578d3Smrg      need_lib_prefix=no
1376032b578d3Smrg      export_dynamic_flag_spec='${wl}-Blargedynsym'
1376132b578d3Smrg      runpath_var=LD_RUN_PATH
1376232b578d3Smrg      ;;
1376332b578d3Smrg    siemens)
1376432b578d3Smrg      need_lib_prefix=no
1376532b578d3Smrg      ;;
1376632b578d3Smrg    motorola)
1376732b578d3Smrg      need_lib_prefix=no
1376832b578d3Smrg      need_version=no
1376932b578d3Smrg      shlibpath_overrides_runpath=no
1377032b578d3Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1377132b578d3Smrg      ;;
1377232b578d3Smrg  esac
1377332b578d3Smrg  ;;
1377432b578d3Smrg
1377532b578d3Smrgsysv4*MP*)
1377632b578d3Smrg  if test -d /usr/nec ;then
1377732b578d3Smrg    version_type=linux
1377832b578d3Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1377932b578d3Smrg    soname_spec='$libname${shared_ext}.$major'
1378032b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1378132b578d3Smrg  fi
1378232b578d3Smrg  ;;
1378332b578d3Smrg
1378432b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1378532b578d3Smrg  version_type=freebsd-elf
1378632b578d3Smrg  need_lib_prefix=no
1378732b578d3Smrg  need_version=no
1378832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1378932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1379032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1379132b578d3Smrg  hardcode_into_libs=yes
1379232b578d3Smrg  if test "$with_gnu_ld" = yes; then
1379332b578d3Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1379432b578d3Smrg    shlibpath_overrides_runpath=no
1379532b578d3Smrg  else
1379632b578d3Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1379732b578d3Smrg    shlibpath_overrides_runpath=yes
1379832b578d3Smrg    case $host_os in
1379932b578d3Smrg      sco3.2v5*)
1380032b578d3Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1380132b578d3Smrg	;;
1380232b578d3Smrg    esac
1380332b578d3Smrg  fi
1380432b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1380532b578d3Smrg  ;;
1380632b578d3Smrg
1380732b578d3Smrguts4*)
1380832b578d3Smrg  version_type=linux
1380932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1381032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1381132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1381232b578d3Smrg  ;;
1381332b578d3Smrg
1381432b578d3Smrg*)
1381532b578d3Smrg  dynamic_linker=no
1381632b578d3Smrg  ;;
1381732b578d3Smrgesac
138182a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
138192a51b5beSmrg$as_echo "$dynamic_linker" >&6; }
1382032b578d3Smrgtest "$dynamic_linker" = no && can_build_shared=no
1382132b578d3Smrg
138222a51b5beSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
138232a51b5beSmrg  $as_echo_n "(cached) " >&6
138242a51b5beSmrgelse
138252a51b5beSmrg  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
138262a51b5beSmrgfi
138272a51b5beSmrg
138282a51b5beSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
138292a51b5beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
138302a51b5beSmrg  $as_echo_n "(cached) " >&6
138312a51b5beSmrgelse
138322a51b5beSmrg  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
138332a51b5beSmrgfi
138342a51b5beSmrg
138352a51b5beSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
138362a51b5beSmrg
1383732b578d3Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1383832b578d3Smrgif test "$GCC" = yes; then
1383932b578d3Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1384032b578d3Smrgfi
1384132b578d3Smrg
138422a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
138432a51b5beSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1384432b578d3Smrghardcode_action_CXX=
1384532b578d3Smrgif test -n "$hardcode_libdir_flag_spec_CXX" || \
1384632b578d3Smrg   test -n "$runpath_var_CXX" || \
1384732b578d3Smrg   test "X$hardcode_automatic_CXX" = "Xyes" ; then
1384832b578d3Smrg
1384932b578d3Smrg  # We can hardcode non-existant directories.
1385032b578d3Smrg  if test "$hardcode_direct_CXX" != no &&
1385132b578d3Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1385232b578d3Smrg     # have to relink, otherwise we might link with an installed library
1385332b578d3Smrg     # when we should be linking with a yet-to-be-installed one
1385432b578d3Smrg     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
1385532b578d3Smrg     test "$hardcode_minus_L_CXX" != no; then
1385632b578d3Smrg    # Linking always hardcodes the temporary library directory.
1385732b578d3Smrg    hardcode_action_CXX=relink
1385832b578d3Smrg  else
1385932b578d3Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1386032b578d3Smrg    hardcode_action_CXX=immediate
1386132b578d3Smrg  fi
1386232b578d3Smrgelse
1386332b578d3Smrg  # We cannot hardcode anything, or else we can only hardcode existing
1386432b578d3Smrg  # directories.
1386532b578d3Smrg  hardcode_action_CXX=unsupported
1386632b578d3Smrgfi
138672a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
138682a51b5beSmrg$as_echo "$hardcode_action_CXX" >&6; }
1386932b578d3Smrg
1387032b578d3Smrgif test "$hardcode_action_CXX" = relink; then
1387132b578d3Smrg  # Fast installation is not supported
1387232b578d3Smrg  enable_fast_install=no
1387332b578d3Smrgelif test "$shlibpath_overrides_runpath" = yes ||
1387432b578d3Smrg     test "$enable_shared" = no; then
1387532b578d3Smrg  # Fast installation is not necessary
1387632b578d3Smrg  enable_fast_install=needless
1387732b578d3Smrgfi
1387832b578d3Smrg
1387932b578d3Smrg
1388032b578d3Smrg# The else clause should only fire when bootstrapping the
1388132b578d3Smrg# libtool distribution, otherwise you forgot to ship ltmain.sh
1388232b578d3Smrg# with your package, and you will get complaints that there are
1388332b578d3Smrg# no rules to generate ltmain.sh.
1388432b578d3Smrgif test -f "$ltmain"; then
1388532b578d3Smrg  # See if we are running on zsh, and set the options which allow our commands through
1388632b578d3Smrg  # without removal of \ escapes.
1388732b578d3Smrg  if test -n "${ZSH_VERSION+set}" ; then
1388832b578d3Smrg    setopt NO_GLOB_SUBST
1388932b578d3Smrg  fi
1389032b578d3Smrg  # Now quote all the things that may contain metacharacters while being
1389132b578d3Smrg  # careful not to overquote the AC_SUBSTed values.  We take copies of the
1389232b578d3Smrg  # variables and quote the copies for generation of the libtool script.
1389332b578d3Smrg  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1389432b578d3Smrg    SED SHELL STRIP \
1389532b578d3Smrg    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1389632b578d3Smrg    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1389732b578d3Smrg    deplibs_check_method reload_flag reload_cmds need_locks \
1389832b578d3Smrg    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1389932b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address \
1390032b578d3Smrg    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1390132b578d3Smrg    old_postinstall_cmds old_postuninstall_cmds \
1390232b578d3Smrg    compiler_CXX \
1390332b578d3Smrg    CC_CXX \
1390432b578d3Smrg    LD_CXX \
1390532b578d3Smrg    lt_prog_compiler_wl_CXX \
1390632b578d3Smrg    lt_prog_compiler_pic_CXX \
1390732b578d3Smrg    lt_prog_compiler_static_CXX \
1390832b578d3Smrg    lt_prog_compiler_no_builtin_flag_CXX \
1390932b578d3Smrg    export_dynamic_flag_spec_CXX \
1391032b578d3Smrg    thread_safe_flag_spec_CXX \
1391132b578d3Smrg    whole_archive_flag_spec_CXX \
1391232b578d3Smrg    enable_shared_with_static_runtimes_CXX \
1391332b578d3Smrg    old_archive_cmds_CXX \
1391432b578d3Smrg    old_archive_from_new_cmds_CXX \
1391532b578d3Smrg    predep_objects_CXX \
1391632b578d3Smrg    postdep_objects_CXX \
1391732b578d3Smrg    predeps_CXX \
1391832b578d3Smrg    postdeps_CXX \
1391932b578d3Smrg    compiler_lib_search_path_CXX \
139202a51b5beSmrg    compiler_lib_search_dirs_CXX \
1392132b578d3Smrg    archive_cmds_CXX \
1392232b578d3Smrg    archive_expsym_cmds_CXX \
1392332b578d3Smrg    postinstall_cmds_CXX \
1392432b578d3Smrg    postuninstall_cmds_CXX \
1392532b578d3Smrg    old_archive_from_expsyms_cmds_CXX \
1392632b578d3Smrg    allow_undefined_flag_CXX \
1392732b578d3Smrg    no_undefined_flag_CXX \
1392832b578d3Smrg    export_symbols_cmds_CXX \
1392932b578d3Smrg    hardcode_libdir_flag_spec_CXX \
1393032b578d3Smrg    hardcode_libdir_flag_spec_ld_CXX \
1393132b578d3Smrg    hardcode_libdir_separator_CXX \
1393232b578d3Smrg    hardcode_automatic_CXX \
1393332b578d3Smrg    module_cmds_CXX \
1393432b578d3Smrg    module_expsym_cmds_CXX \
1393532b578d3Smrg    lt_cv_prog_compiler_c_o_CXX \
139362a51b5beSmrg    fix_srcfile_path_CXX \
1393732b578d3Smrg    exclude_expsyms_CXX \
1393832b578d3Smrg    include_expsyms_CXX; do
1393932b578d3Smrg
1394032b578d3Smrg    case $var in
1394132b578d3Smrg    old_archive_cmds_CXX | \
1394232b578d3Smrg    old_archive_from_new_cmds_CXX | \
1394332b578d3Smrg    archive_cmds_CXX | \
1394432b578d3Smrg    archive_expsym_cmds_CXX | \
1394532b578d3Smrg    module_cmds_CXX | \
1394632b578d3Smrg    module_expsym_cmds_CXX | \
1394732b578d3Smrg    old_archive_from_expsyms_cmds_CXX | \
1394832b578d3Smrg    export_symbols_cmds_CXX | \
1394932b578d3Smrg    extract_expsyms_cmds | reload_cmds | finish_cmds | \
1395032b578d3Smrg    postinstall_cmds | postuninstall_cmds | \
1395132b578d3Smrg    old_postinstall_cmds | old_postuninstall_cmds | \
1395232b578d3Smrg    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1395332b578d3Smrg      # Double-quote double-evaled strings.
1395432b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1395532b578d3Smrg      ;;
1395632b578d3Smrg    *)
1395732b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1395832b578d3Smrg      ;;
1395932b578d3Smrg    esac
1396032b578d3Smrg  done
1396132b578d3Smrg
1396232b578d3Smrg  case $lt_echo in
1396332b578d3Smrg  *'\$0 --fallback-echo"')
1396432b578d3Smrg    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1396532b578d3Smrg    ;;
1396632b578d3Smrg  esac
1396732b578d3Smrg
1396832b578d3Smrgcfgfile="$ofile"
1396932b578d3Smrg
1397032b578d3Smrg  cat <<__EOF__ >> "$cfgfile"
1397132b578d3Smrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1397232b578d3Smrg
1397332b578d3Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1397432b578d3Smrg
1397532b578d3Smrg# Shell to use when invoking shell scripts.
1397632b578d3SmrgSHELL=$lt_SHELL
1397732b578d3Smrg
1397832b578d3Smrg# Whether or not to build shared libraries.
1397932b578d3Smrgbuild_libtool_libs=$enable_shared
1398032b578d3Smrg
1398132b578d3Smrg# Whether or not to build static libraries.
1398232b578d3Smrgbuild_old_libs=$enable_static
1398332b578d3Smrg
1398432b578d3Smrg# Whether or not to add -lc for building shared libraries.
1398532b578d3Smrgbuild_libtool_need_lc=$archive_cmds_need_lc_CXX
1398632b578d3Smrg
1398732b578d3Smrg# Whether or not to disallow shared libs when runtime libs are static
1398832b578d3Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
1398932b578d3Smrg
1399032b578d3Smrg# Whether or not to optimize for fast installation.
1399132b578d3Smrgfast_install=$enable_fast_install
1399232b578d3Smrg
1399332b578d3Smrg# The host system.
1399432b578d3Smrghost_alias=$host_alias
1399532b578d3Smrghost=$host
1399632b578d3Smrghost_os=$host_os
1399732b578d3Smrg
1399832b578d3Smrg# The build system.
1399932b578d3Smrgbuild_alias=$build_alias
1400032b578d3Smrgbuild=$build
1400132b578d3Smrgbuild_os=$build_os
1400232b578d3Smrg
1400332b578d3Smrg# An echo program that does not interpret backslashes.
1400432b578d3Smrgecho=$lt_echo
1400532b578d3Smrg
1400632b578d3Smrg# The archiver.
1400732b578d3SmrgAR=$lt_AR
1400832b578d3SmrgAR_FLAGS=$lt_AR_FLAGS
1400932b578d3Smrg
1401032b578d3Smrg# A C compiler.
1401132b578d3SmrgLTCC=$lt_LTCC
1401232b578d3Smrg
1401332b578d3Smrg# LTCC compiler flags.
1401432b578d3SmrgLTCFLAGS=$lt_LTCFLAGS
1401532b578d3Smrg
1401632b578d3Smrg# A language-specific compiler.
1401732b578d3SmrgCC=$lt_compiler_CXX
1401832b578d3Smrg
1401932b578d3Smrg# Is the compiler the GNU C compiler?
1402032b578d3Smrgwith_gcc=$GCC_CXX
1402132b578d3Smrg
1402232b578d3Smrg# An ERE matcher.
1402332b578d3SmrgEGREP=$lt_EGREP
1402432b578d3Smrg
1402532b578d3Smrg# The linker used to build libraries.
1402632b578d3SmrgLD=$lt_LD_CXX
1402732b578d3Smrg
1402832b578d3Smrg# Whether we need hard or soft links.
1402932b578d3SmrgLN_S=$lt_LN_S
1403032b578d3Smrg
1403132b578d3Smrg# A BSD-compatible nm program.
1403232b578d3SmrgNM=$lt_NM
1403332b578d3Smrg
1403432b578d3Smrg# A symbol stripping program
1403532b578d3SmrgSTRIP=$lt_STRIP
1403632b578d3Smrg
1403732b578d3Smrg# Used to examine libraries when file_magic_cmd begins "file"
1403832b578d3SmrgMAGIC_CMD=$MAGIC_CMD
1403932b578d3Smrg
1404032b578d3Smrg# Used on cygwin: DLL creation program.
1404132b578d3SmrgDLLTOOL="$DLLTOOL"
1404232b578d3Smrg
1404332b578d3Smrg# Used on cygwin: object dumper.
1404432b578d3SmrgOBJDUMP="$OBJDUMP"
1404532b578d3Smrg
1404632b578d3Smrg# Used on cygwin: assembler.
1404732b578d3SmrgAS="$AS"
1404832b578d3Smrg
1404932b578d3Smrg# The name of the directory that contains temporary libtool files.
1405032b578d3Smrgobjdir=$objdir
1405132b578d3Smrg
1405232b578d3Smrg# How to create reloadable object files.
1405332b578d3Smrgreload_flag=$lt_reload_flag
1405432b578d3Smrgreload_cmds=$lt_reload_cmds
1405532b578d3Smrg
1405632b578d3Smrg# How to pass a linker flag through the compiler.
1405732b578d3Smrgwl=$lt_lt_prog_compiler_wl_CXX
1405832b578d3Smrg
1405932b578d3Smrg# Object file suffix (normally "o").
1406032b578d3Smrgobjext="$ac_objext"
1406132b578d3Smrg
1406232b578d3Smrg# Old archive suffix (normally "a").
1406332b578d3Smrglibext="$libext"
1406432b578d3Smrg
1406532b578d3Smrg# Shared library suffix (normally ".so").
1406632b578d3Smrgshrext_cmds='$shrext_cmds'
1406732b578d3Smrg
1406832b578d3Smrg# Executable file suffix (normally "").
1406932b578d3Smrgexeext="$exeext"
1407032b578d3Smrg
1407132b578d3Smrg# Additional compiler flags for building library objects.
1407232b578d3Smrgpic_flag=$lt_lt_prog_compiler_pic_CXX
1407332b578d3Smrgpic_mode=$pic_mode
1407432b578d3Smrg
1407532b578d3Smrg# What is the maximum length of a command?
1407632b578d3Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1407732b578d3Smrg
1407832b578d3Smrg# Does compiler simultaneously support -c and -o options?
1407932b578d3Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
1408032b578d3Smrg
1408132b578d3Smrg# Must we lock files when doing compilation?
1408232b578d3Smrgneed_locks=$lt_need_locks
1408332b578d3Smrg
1408432b578d3Smrg# Do we need the lib prefix for modules?
1408532b578d3Smrgneed_lib_prefix=$need_lib_prefix
1408632b578d3Smrg
1408732b578d3Smrg# Do we need a version for libraries?
1408832b578d3Smrgneed_version=$need_version
1408932b578d3Smrg
1409032b578d3Smrg# Whether dlopen is supported.
1409132b578d3Smrgdlopen_support=$enable_dlopen
1409232b578d3Smrg
1409332b578d3Smrg# Whether dlopen of programs is supported.
1409432b578d3Smrgdlopen_self=$enable_dlopen_self
1409532b578d3Smrg
1409632b578d3Smrg# Whether dlopen of statically linked programs is supported.
1409732b578d3Smrgdlopen_self_static=$enable_dlopen_self_static
1409832b578d3Smrg
1409932b578d3Smrg# Compiler flag to prevent dynamic linking.
1410032b578d3Smrglink_static_flag=$lt_lt_prog_compiler_static_CXX
1410132b578d3Smrg
1410232b578d3Smrg# Compiler flag to turn off builtin functions.
1410332b578d3Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1410432b578d3Smrg
1410532b578d3Smrg# Compiler flag to allow reflexive dlopens.
1410632b578d3Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
1410732b578d3Smrg
1410832b578d3Smrg# Compiler flag to generate shared objects directly from archives.
1410932b578d3Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
1411032b578d3Smrg
1411132b578d3Smrg# Compiler flag to generate thread-safe objects.
1411232b578d3Smrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
1411332b578d3Smrg
1411432b578d3Smrg# Library versioning type.
1411532b578d3Smrgversion_type=$version_type
1411632b578d3Smrg
1411732b578d3Smrg# Format of library name prefix.
1411832b578d3Smrglibname_spec=$lt_libname_spec
1411932b578d3Smrg
1412032b578d3Smrg# List of archive names.  First name is the real one, the rest are links.
1412132b578d3Smrg# The last name is the one that the linker finds with -lNAME.
1412232b578d3Smrglibrary_names_spec=$lt_library_names_spec
1412332b578d3Smrg
1412432b578d3Smrg# The coded name of the library, if different from the real name.
1412532b578d3Smrgsoname_spec=$lt_soname_spec
1412632b578d3Smrg
1412732b578d3Smrg# Commands used to build and install an old-style archive.
1412832b578d3SmrgRANLIB=$lt_RANLIB
1412932b578d3Smrgold_archive_cmds=$lt_old_archive_cmds_CXX
1413032b578d3Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1413132b578d3Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1413232b578d3Smrg
1413332b578d3Smrg# Create an old-style archive from a shared archive.
1413432b578d3Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
1413532b578d3Smrg
1413632b578d3Smrg# Create a temporary old-style archive to link instead of a shared archive.
1413732b578d3Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
1413832b578d3Smrg
1413932b578d3Smrg# Commands used to build and install a shared archive.
1414032b578d3Smrgarchive_cmds=$lt_archive_cmds_CXX
1414132b578d3Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds_CXX
1414232b578d3Smrgpostinstall_cmds=$lt_postinstall_cmds
1414332b578d3Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1414432b578d3Smrg
1414532b578d3Smrg# Commands used to build a loadable module (assumed same as above if empty)
1414632b578d3Smrgmodule_cmds=$lt_module_cmds_CXX
1414732b578d3Smrgmodule_expsym_cmds=$lt_module_expsym_cmds_CXX
1414832b578d3Smrg
1414932b578d3Smrg# Commands to strip libraries.
1415032b578d3Smrgold_striplib=$lt_old_striplib
1415132b578d3Smrgstriplib=$lt_striplib
1415232b578d3Smrg
1415332b578d3Smrg# Dependencies to place before the objects being linked to create a
1415432b578d3Smrg# shared library.
1415532b578d3Smrgpredep_objects=$lt_predep_objects_CXX
1415632b578d3Smrg
1415732b578d3Smrg# Dependencies to place after the objects being linked to create a
1415832b578d3Smrg# shared library.
1415932b578d3Smrgpostdep_objects=$lt_postdep_objects_CXX
1416032b578d3Smrg
1416132b578d3Smrg# Dependencies to place before the objects being linked to create a
1416232b578d3Smrg# shared library.
1416332b578d3Smrgpredeps=$lt_predeps_CXX
1416432b578d3Smrg
1416532b578d3Smrg# Dependencies to place after the objects being linked to create a
1416632b578d3Smrg# shared library.
1416732b578d3Smrgpostdeps=$lt_postdeps_CXX
1416832b578d3Smrg
141692a51b5beSmrg# The directories searched by this compiler when creating a shared
141702a51b5beSmrg# library
141712a51b5beSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
141722a51b5beSmrg
1417332b578d3Smrg# The library search path used internally by the compiler when linking
1417432b578d3Smrg# a shared library.
1417532b578d3Smrgcompiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1417632b578d3Smrg
1417732b578d3Smrg# Method to check whether dependent libraries are shared objects.
1417832b578d3Smrgdeplibs_check_method=$lt_deplibs_check_method
1417932b578d3Smrg
1418032b578d3Smrg# Command to use when deplibs_check_method == file_magic.
1418132b578d3Smrgfile_magic_cmd=$lt_file_magic_cmd
1418232b578d3Smrg
1418332b578d3Smrg# Flag that allows shared libraries with undefined symbols to be built.
1418432b578d3Smrgallow_undefined_flag=$lt_allow_undefined_flag_CXX
1418532b578d3Smrg
1418632b578d3Smrg# Flag that forces no undefined symbols.
1418732b578d3Smrgno_undefined_flag=$lt_no_undefined_flag_CXX
1418832b578d3Smrg
1418932b578d3Smrg# Commands used to finish a libtool library installation in a directory.
1419032b578d3Smrgfinish_cmds=$lt_finish_cmds
1419132b578d3Smrg
1419232b578d3Smrg# Same as above, but a single script fragment to be evaled but not shown.
1419332b578d3Smrgfinish_eval=$lt_finish_eval
1419432b578d3Smrg
1419532b578d3Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1419632b578d3Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1419732b578d3Smrg
1419832b578d3Smrg# Transform the output of nm in a proper C declaration
1419932b578d3Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1420032b578d3Smrg
1420132b578d3Smrg# Transform the output of nm in a C name address pair
1420232b578d3Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1420332b578d3Smrg
1420432b578d3Smrg# This is the shared library runtime path variable.
1420532b578d3Smrgrunpath_var=$runpath_var
1420632b578d3Smrg
1420732b578d3Smrg# This is the shared library path variable.
1420832b578d3Smrgshlibpath_var=$shlibpath_var
1420932b578d3Smrg
1421032b578d3Smrg# Is shlibpath searched before the hard-coded library search path?
1421132b578d3Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1421232b578d3Smrg
1421332b578d3Smrg# How to hardcode a shared library path into an executable.
1421432b578d3Smrghardcode_action=$hardcode_action_CXX
1421532b578d3Smrg
1421632b578d3Smrg# Whether we should hardcode library paths into libraries.
1421732b578d3Smrghardcode_into_libs=$hardcode_into_libs
1421832b578d3Smrg
1421932b578d3Smrg# Flag to hardcode \$libdir into a binary during linking.
1422032b578d3Smrg# This must work even if \$libdir does not exist.
1422132b578d3Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
1422232b578d3Smrg
1422332b578d3Smrg# If ld is used when linking, flag to hardcode \$libdir into
1422432b578d3Smrg# a binary during linking. This must work even if \$libdir does
1422532b578d3Smrg# not exist.
1422632b578d3Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
1422732b578d3Smrg
1422832b578d3Smrg# Whether we need a single -rpath flag with a separated argument.
1422932b578d3Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1423032b578d3Smrg
1423132b578d3Smrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1423232b578d3Smrg# resulting binary.
1423332b578d3Smrghardcode_direct=$hardcode_direct_CXX
1423432b578d3Smrg
1423532b578d3Smrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1423632b578d3Smrg# resulting binary.
1423732b578d3Smrghardcode_minus_L=$hardcode_minus_L_CXX
1423832b578d3Smrg
1423932b578d3Smrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1424032b578d3Smrg# the resulting binary.
1424132b578d3Smrghardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
1424232b578d3Smrg
1424332b578d3Smrg# Set to yes if building a shared library automatically hardcodes DIR into the library
1424432b578d3Smrg# and all subsequent libraries and executables linked against it.
1424532b578d3Smrghardcode_automatic=$hardcode_automatic_CXX
1424632b578d3Smrg
1424732b578d3Smrg# Variables whose values should be saved in libtool wrapper scripts and
1424832b578d3Smrg# restored at relink time.
1424932b578d3Smrgvariables_saved_for_relink="$variables_saved_for_relink"
1425032b578d3Smrg
1425132b578d3Smrg# Whether libtool must link a program against all its dependency libraries.
1425232b578d3Smrglink_all_deplibs=$link_all_deplibs_CXX
1425332b578d3Smrg
1425432b578d3Smrg# Compile-time system search path for libraries
1425532b578d3Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1425632b578d3Smrg
1425732b578d3Smrg# Run-time system search path for libraries
1425832b578d3Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1425932b578d3Smrg
1426032b578d3Smrg# Fix the shell variable \$srcfile for the compiler.
142612a51b5beSmrgfix_srcfile_path=$lt_fix_srcfile_path
1426232b578d3Smrg
1426332b578d3Smrg# Set to yes if exported symbols are required.
1426432b578d3Smrgalways_export_symbols=$always_export_symbols_CXX
1426532b578d3Smrg
1426632b578d3Smrg# The commands to list exported symbols.
1426732b578d3Smrgexport_symbols_cmds=$lt_export_symbols_cmds_CXX
1426832b578d3Smrg
1426932b578d3Smrg# The commands to extract the exported symbol list from a shared archive.
1427032b578d3Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1427132b578d3Smrg
1427232b578d3Smrg# Symbols that should not be listed in the preloaded symbols.
1427332b578d3Smrgexclude_expsyms=$lt_exclude_expsyms_CXX
1427432b578d3Smrg
1427532b578d3Smrg# Symbols that must always be exported.
1427632b578d3Smrginclude_expsyms=$lt_include_expsyms_CXX
1427732b578d3Smrg
1427832b578d3Smrg# ### END LIBTOOL TAG CONFIG: $tagname
1427932b578d3Smrg
1428032b578d3Smrg__EOF__
1428132b578d3Smrg
1428232b578d3Smrg
1428332b578d3Smrgelse
1428432b578d3Smrg  # If there is no Makefile yet, we rely on a make rule to execute
1428532b578d3Smrg  # `config.status --recheck' to rerun these tests and create the
1428632b578d3Smrg  # libtool script then.
1428732b578d3Smrg  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1428832b578d3Smrg  if test -f "$ltmain_in"; then
1428932b578d3Smrg    test -f Makefile && make "$ltmain"
1429032b578d3Smrg  fi
1429132b578d3Smrgfi
1429232b578d3Smrg
1429332b578d3Smrg
1429432b578d3Smrgac_ext=c
1429532b578d3Smrgac_cpp='$CPP $CPPFLAGS'
1429632b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429732b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429832b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1429932b578d3Smrg
1430032b578d3SmrgCC=$lt_save_CC
1430132b578d3SmrgLDCXX=$LD
1430232b578d3SmrgLD=$lt_save_LD
1430332b578d3SmrgGCC=$lt_save_GCC
1430432b578d3Smrgwith_gnu_ldcxx=$with_gnu_ld
1430532b578d3Smrgwith_gnu_ld=$lt_save_with_gnu_ld
1430632b578d3Smrglt_cv_path_LDCXX=$lt_cv_path_LD
1430732b578d3Smrglt_cv_path_LD=$lt_save_path_LD
1430832b578d3Smrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1430932b578d3Smrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1431032b578d3Smrg
1431132b578d3Smrg	else
1431232b578d3Smrg	  tagname=""
1431332b578d3Smrg	fi
1431432b578d3Smrg	;;
1431532b578d3Smrg
1431632b578d3Smrg      F77)
1431732b578d3Smrg	if test -n "$F77" && test "X$F77" != "Xno"; then
1431832b578d3Smrg
1431932b578d3Smrgac_ext=f
1432032b578d3Smrgac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1432132b578d3Smrgac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432232b578d3Smrgac_compiler_gnu=$ac_cv_f77_compiler_gnu
1432332b578d3Smrg
1432432b578d3Smrg
1432532b578d3Smrgarchive_cmds_need_lc_F77=no
1432632b578d3Smrgallow_undefined_flag_F77=
1432732b578d3Smrgalways_export_symbols_F77=no
1432832b578d3Smrgarchive_expsym_cmds_F77=
1432932b578d3Smrgexport_dynamic_flag_spec_F77=
1433032b578d3Smrghardcode_direct_F77=no
1433132b578d3Smrghardcode_libdir_flag_spec_F77=
1433232b578d3Smrghardcode_libdir_flag_spec_ld_F77=
1433332b578d3Smrghardcode_libdir_separator_F77=
1433432b578d3Smrghardcode_minus_L_F77=no
1433532b578d3Smrghardcode_automatic_F77=no
1433632b578d3Smrgmodule_cmds_F77=
1433732b578d3Smrgmodule_expsym_cmds_F77=
1433832b578d3Smrglink_all_deplibs_F77=unknown
1433932b578d3Smrgold_archive_cmds_F77=$old_archive_cmds
1434032b578d3Smrgno_undefined_flag_F77=
1434132b578d3Smrgwhole_archive_flag_spec_F77=
1434232b578d3Smrgenable_shared_with_static_runtimes_F77=no
1434332b578d3Smrg
1434432b578d3Smrg# Source file extension for f77 test sources.
1434532b578d3Smrgac_ext=f
1434632b578d3Smrg
1434732b578d3Smrg# Object file extension for compiled f77 test sources.
1434832b578d3Smrgobjext=o
1434932b578d3Smrgobjext_F77=$objext
1435032b578d3Smrg
1435132b578d3Smrg# Code to be used in simple compile tests
143522a51b5beSmrglt_simple_compile_test_code="\
143532a51b5beSmrg      subroutine t
143542a51b5beSmrg      return
143552a51b5beSmrg      end
143562a51b5beSmrg"
1435732b578d3Smrg
1435832b578d3Smrg# Code to be used in simple link tests
143592a51b5beSmrglt_simple_link_test_code="\
143602a51b5beSmrg      program t
143612a51b5beSmrg      end
143622a51b5beSmrg"
1436332b578d3Smrg
1436432b578d3Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1436532b578d3Smrg
1436632b578d3Smrg# If no C compiler was specified, use CC.
1436732b578d3SmrgLTCC=${LTCC-"$CC"}
1436832b578d3Smrg
1436932b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
1437032b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1437132b578d3Smrg
1437232b578d3Smrg# Allow CC to be a program name with arguments.
1437332b578d3Smrgcompiler=$CC
1437432b578d3Smrg
1437532b578d3Smrg
1437632b578d3Smrg# save warnings/boilerplate of simple test code
1437732b578d3Smrgac_outfile=conftest.$ac_objext
143782a51b5beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
1437932b578d3Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1438032b578d3Smrg_lt_compiler_boilerplate=`cat conftest.err`
1438132b578d3Smrg$rm conftest*
1438232b578d3Smrg
1438332b578d3Smrgac_outfile=conftest.$ac_objext
143842a51b5beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
1438532b578d3Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1438632b578d3Smrg_lt_linker_boilerplate=`cat conftest.err`
143872a51b5beSmrg$rm -r conftest*
1438832b578d3Smrg
1438932b578d3Smrg
1439032b578d3Smrg# Allow CC to be a program name with arguments.
1439132b578d3Smrglt_save_CC="$CC"
1439232b578d3SmrgCC=${F77-"f77"}
1439332b578d3Smrgcompiler=$CC
1439432b578d3Smrgcompiler_F77=$CC
1439532b578d3Smrgfor cc_temp in $compiler""; do
1439632b578d3Smrg  case $cc_temp in
1439732b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1439832b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1439932b578d3Smrg    \-*) ;;
1440032b578d3Smrg    *) break;;
1440132b578d3Smrg  esac
1440232b578d3Smrgdone
1440332b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1440432b578d3Smrg
1440532b578d3Smrg
144062a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
144072a51b5beSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
144082a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
144092a51b5beSmrg$as_echo "$can_build_shared" >&6; }
1441032b578d3Smrg
144112a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
144122a51b5beSmrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1441332b578d3Smrgtest "$can_build_shared" = "no" && enable_shared=no
1441432b578d3Smrg
1441532b578d3Smrg# On AIX, shared libraries and static libraries use the same namespace, and
1441632b578d3Smrg# are all built from PIC.
1441732b578d3Smrgcase $host_os in
1441832b578d3Smrgaix3*)
1441932b578d3Smrg  test "$enable_shared" = yes && enable_static=no
1442032b578d3Smrg  if test -n "$RANLIB"; then
1442132b578d3Smrg    archive_cmds="$archive_cmds~\$RANLIB \$lib"
1442232b578d3Smrg    postinstall_cmds='$RANLIB $lib'
1442332b578d3Smrg  fi
1442432b578d3Smrg  ;;
144252a51b5beSmrgaix[4-9]*)
1442632b578d3Smrg  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1442732b578d3Smrg    test "$enable_shared" = yes && enable_static=no
1442832b578d3Smrg  fi
1442932b578d3Smrg  ;;
1443032b578d3Smrgesac
144312a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
144322a51b5beSmrg$as_echo "$enable_shared" >&6; }
1443332b578d3Smrg
144342a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
144352a51b5beSmrg$as_echo_n "checking whether to build static libraries... " >&6; }
1443632b578d3Smrg# Make sure either enable_shared or enable_static is yes.
1443732b578d3Smrgtest "$enable_shared" = yes || enable_static=yes
144382a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
144392a51b5beSmrg$as_echo "$enable_static" >&6; }
1444032b578d3Smrg
1444132b578d3SmrgGCC_F77="$G77"
1444232b578d3SmrgLD_F77="$LD"
1444332b578d3Smrg
1444432b578d3Smrglt_prog_compiler_wl_F77=
1444532b578d3Smrglt_prog_compiler_pic_F77=
1444632b578d3Smrglt_prog_compiler_static_F77=
1444732b578d3Smrg
144482a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
144492a51b5beSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1445032b578d3Smrg
1445132b578d3Smrg  if test "$GCC" = yes; then
1445232b578d3Smrg    lt_prog_compiler_wl_F77='-Wl,'
1445332b578d3Smrg    lt_prog_compiler_static_F77='-static'
1445432b578d3Smrg
1445532b578d3Smrg    case $host_os in
1445632b578d3Smrg      aix*)
1445732b578d3Smrg      # All AIX code is PIC.
1445832b578d3Smrg      if test "$host_cpu" = ia64; then
1445932b578d3Smrg	# AIX 5 now supports IA64 processor
1446032b578d3Smrg	lt_prog_compiler_static_F77='-Bstatic'
1446132b578d3Smrg      fi
1446232b578d3Smrg      ;;
1446332b578d3Smrg
1446432b578d3Smrg    amigaos*)
1446532b578d3Smrg      # FIXME: we need at least 68020 code to build shared libraries, but
1446632b578d3Smrg      # adding the `-m68020' flag to GCC prevents building anything better,
1446732b578d3Smrg      # like `-m68040'.
1446832b578d3Smrg      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
1446932b578d3Smrg      ;;
1447032b578d3Smrg
144712a51b5beSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1447232b578d3Smrg      # PIC is the default for these OSes.
1447332b578d3Smrg      ;;
1447432b578d3Smrg
144752a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
1447632b578d3Smrg      # This hack is so that the source file can tell whether it is being
1447732b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
144782a51b5beSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
144792a51b5beSmrg      # (--disable-auto-import) libraries
1448032b578d3Smrg      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
1448132b578d3Smrg      ;;
1448232b578d3Smrg
1448332b578d3Smrg    darwin* | rhapsody*)
1448432b578d3Smrg      # PIC is the default on this platform
1448532b578d3Smrg      # Common symbols not allowed in MH_DYLIB files
1448632b578d3Smrg      lt_prog_compiler_pic_F77='-fno-common'
1448732b578d3Smrg      ;;
1448832b578d3Smrg
144892a51b5beSmrg    interix[3-9]*)
1449032b578d3Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1449132b578d3Smrg      # Instead, we relocate shared libraries at runtime.
1449232b578d3Smrg      ;;
1449332b578d3Smrg
1449432b578d3Smrg    msdosdjgpp*)
1449532b578d3Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
1449632b578d3Smrg      # on systems that don't support them.
1449732b578d3Smrg      lt_prog_compiler_can_build_shared_F77=no
1449832b578d3Smrg      enable_shared=no
1449932b578d3Smrg      ;;
1450032b578d3Smrg
1450132b578d3Smrg    sysv4*MP*)
1450232b578d3Smrg      if test -d /usr/nec; then
1450332b578d3Smrg	lt_prog_compiler_pic_F77=-Kconform_pic
1450432b578d3Smrg      fi
1450532b578d3Smrg      ;;
1450632b578d3Smrg
1450732b578d3Smrg    hpux*)
1450832b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1450932b578d3Smrg      # not for PA HP-UX.
1451032b578d3Smrg      case $host_cpu in
1451132b578d3Smrg      hppa*64*|ia64*)
1451232b578d3Smrg	# +Z the default
1451332b578d3Smrg	;;
1451432b578d3Smrg      *)
1451532b578d3Smrg	lt_prog_compiler_pic_F77='-fPIC'
1451632b578d3Smrg	;;
1451732b578d3Smrg      esac
1451832b578d3Smrg      ;;
1451932b578d3Smrg
1452032b578d3Smrg    *)
1452132b578d3Smrg      lt_prog_compiler_pic_F77='-fPIC'
1452232b578d3Smrg      ;;
1452332b578d3Smrg    esac
1452432b578d3Smrg  else
1452532b578d3Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
1452632b578d3Smrg    case $host_os in
1452732b578d3Smrg    aix*)
1452832b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1452932b578d3Smrg      if test "$host_cpu" = ia64; then
1453032b578d3Smrg	# AIX 5 now supports IA64 processor
1453132b578d3Smrg	lt_prog_compiler_static_F77='-Bstatic'
1453232b578d3Smrg      else
1453332b578d3Smrg	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
1453432b578d3Smrg      fi
1453532b578d3Smrg      ;;
1453632b578d3Smrg      darwin*)
1453732b578d3Smrg        # PIC is the default on this platform
1453832b578d3Smrg        # Common symbols not allowed in MH_DYLIB files
1453932b578d3Smrg       case $cc_basename in
1454032b578d3Smrg         xlc*)
1454132b578d3Smrg         lt_prog_compiler_pic_F77='-qnocommon'
1454232b578d3Smrg         lt_prog_compiler_wl_F77='-Wl,'
1454332b578d3Smrg         ;;
1454432b578d3Smrg       esac
1454532b578d3Smrg       ;;
1454632b578d3Smrg
145472a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
1454832b578d3Smrg      # This hack is so that the source file can tell whether it is being
1454932b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
1455032b578d3Smrg      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
1455132b578d3Smrg      ;;
1455232b578d3Smrg
1455332b578d3Smrg    hpux9* | hpux10* | hpux11*)
1455432b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1455532b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1455632b578d3Smrg      # not for PA HP-UX.
1455732b578d3Smrg      case $host_cpu in
1455832b578d3Smrg      hppa*64*|ia64*)
1455932b578d3Smrg	# +Z the default
1456032b578d3Smrg	;;
1456132b578d3Smrg      *)
1456232b578d3Smrg	lt_prog_compiler_pic_F77='+Z'
1456332b578d3Smrg	;;
1456432b578d3Smrg      esac
1456532b578d3Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
1456632b578d3Smrg      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
1456732b578d3Smrg      ;;
1456832b578d3Smrg
1456932b578d3Smrg    irix5* | irix6* | nonstopux*)
1457032b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1457132b578d3Smrg      # PIC (with -KPIC) is the default.
1457232b578d3Smrg      lt_prog_compiler_static_F77='-non_shared'
1457332b578d3Smrg      ;;
1457432b578d3Smrg
1457532b578d3Smrg    newsos6)
1457632b578d3Smrg      lt_prog_compiler_pic_F77='-KPIC'
1457732b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1457832b578d3Smrg      ;;
1457932b578d3Smrg
145802a51b5beSmrg    linux* | k*bsd*-gnu)
1458132b578d3Smrg      case $cc_basename in
1458232b578d3Smrg      icc* | ecc*)
1458332b578d3Smrg	lt_prog_compiler_wl_F77='-Wl,'
1458432b578d3Smrg	lt_prog_compiler_pic_F77='-KPIC'
1458532b578d3Smrg	lt_prog_compiler_static_F77='-static'
1458632b578d3Smrg        ;;
1458732b578d3Smrg      pgcc* | pgf77* | pgf90* | pgf95*)
1458832b578d3Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
1458932b578d3Smrg	# which looks to be a dead project)
1459032b578d3Smrg	lt_prog_compiler_wl_F77='-Wl,'
1459132b578d3Smrg	lt_prog_compiler_pic_F77='-fpic'
1459232b578d3Smrg	lt_prog_compiler_static_F77='-Bstatic'
1459332b578d3Smrg        ;;
1459432b578d3Smrg      ccc*)
1459532b578d3Smrg        lt_prog_compiler_wl_F77='-Wl,'
1459632b578d3Smrg        # All Alpha code is PIC.
1459732b578d3Smrg        lt_prog_compiler_static_F77='-non_shared'
1459832b578d3Smrg        ;;
145992a51b5beSmrg      *)
146002a51b5beSmrg        case `$CC -V 2>&1 | sed 5q` in
146012a51b5beSmrg	*Sun\ C*)
146022a51b5beSmrg	  # Sun C 5.9
146032a51b5beSmrg	  lt_prog_compiler_pic_F77='-KPIC'
146042a51b5beSmrg	  lt_prog_compiler_static_F77='-Bstatic'
146052a51b5beSmrg	  lt_prog_compiler_wl_F77='-Wl,'
146062a51b5beSmrg	  ;;
146072a51b5beSmrg	*Sun\ F*)
146082a51b5beSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
146092a51b5beSmrg	  lt_prog_compiler_pic_F77='-KPIC'
146102a51b5beSmrg	  lt_prog_compiler_static_F77='-Bstatic'
146112a51b5beSmrg	  lt_prog_compiler_wl_F77=''
146122a51b5beSmrg	  ;;
146132a51b5beSmrg	esac
146142a51b5beSmrg	;;
1461532b578d3Smrg      esac
1461632b578d3Smrg      ;;
1461732b578d3Smrg
1461832b578d3Smrg    osf3* | osf4* | osf5*)
1461932b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1462032b578d3Smrg      # All OSF/1 code is PIC.
1462132b578d3Smrg      lt_prog_compiler_static_F77='-non_shared'
1462232b578d3Smrg      ;;
1462332b578d3Smrg
146242a51b5beSmrg    rdos*)
146252a51b5beSmrg      lt_prog_compiler_static_F77='-non_shared'
146262a51b5beSmrg      ;;
146272a51b5beSmrg
1462832b578d3Smrg    solaris*)
1462932b578d3Smrg      lt_prog_compiler_pic_F77='-KPIC'
1463032b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1463132b578d3Smrg      case $cc_basename in
1463232b578d3Smrg      f77* | f90* | f95*)
1463332b578d3Smrg	lt_prog_compiler_wl_F77='-Qoption ld ';;
1463432b578d3Smrg      *)
1463532b578d3Smrg	lt_prog_compiler_wl_F77='-Wl,';;
1463632b578d3Smrg      esac
1463732b578d3Smrg      ;;
1463832b578d3Smrg
1463932b578d3Smrg    sunos4*)
1464032b578d3Smrg      lt_prog_compiler_wl_F77='-Qoption ld '
1464132b578d3Smrg      lt_prog_compiler_pic_F77='-PIC'
1464232b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1464332b578d3Smrg      ;;
1464432b578d3Smrg
1464532b578d3Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
1464632b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1464732b578d3Smrg      lt_prog_compiler_pic_F77='-KPIC'
1464832b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1464932b578d3Smrg      ;;
1465032b578d3Smrg
1465132b578d3Smrg    sysv4*MP*)
1465232b578d3Smrg      if test -d /usr/nec ;then
1465332b578d3Smrg	lt_prog_compiler_pic_F77='-Kconform_pic'
1465432b578d3Smrg	lt_prog_compiler_static_F77='-Bstatic'
1465532b578d3Smrg      fi
1465632b578d3Smrg      ;;
1465732b578d3Smrg
1465832b578d3Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1465932b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1466032b578d3Smrg      lt_prog_compiler_pic_F77='-KPIC'
1466132b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1466232b578d3Smrg      ;;
1466332b578d3Smrg
1466432b578d3Smrg    unicos*)
1466532b578d3Smrg      lt_prog_compiler_wl_F77='-Wl,'
1466632b578d3Smrg      lt_prog_compiler_can_build_shared_F77=no
1466732b578d3Smrg      ;;
1466832b578d3Smrg
1466932b578d3Smrg    uts4*)
1467032b578d3Smrg      lt_prog_compiler_pic_F77='-pic'
1467132b578d3Smrg      lt_prog_compiler_static_F77='-Bstatic'
1467232b578d3Smrg      ;;
1467332b578d3Smrg
1467432b578d3Smrg    *)
1467532b578d3Smrg      lt_prog_compiler_can_build_shared_F77=no
1467632b578d3Smrg      ;;
1467732b578d3Smrg    esac
1467832b578d3Smrg  fi
1467932b578d3Smrg
146802a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
146812a51b5beSmrg$as_echo "$lt_prog_compiler_pic_F77" >&6; }
1468232b578d3Smrg
1468332b578d3Smrg#
1468432b578d3Smrg# Check to make sure the PIC flag actually works.
1468532b578d3Smrg#
1468632b578d3Smrgif test -n "$lt_prog_compiler_pic_F77"; then
1468732b578d3Smrg
146882a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
146892a51b5beSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
146902a51b5beSmrgif test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
146912a51b5beSmrg  $as_echo_n "(cached) " >&6
1469232b578d3Smrgelse
146932a51b5beSmrg  lt_cv_prog_compiler_pic_works_F77=no
1469432b578d3Smrg  ac_outfile=conftest.$ac_objext
146952a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1469632b578d3Smrg   lt_compiler_flag="$lt_prog_compiler_pic_F77"
1469732b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1469832b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1469932b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1470032b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1470132b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
1470232b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1470332b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1470432b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1470532b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
147062a51b5beSmrg   (eval echo "\"\$as_me:14706: $lt_compile\"" >&5)
1470732b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
1470832b578d3Smrg   ac_status=$?
1470932b578d3Smrg   cat conftest.err >&5
147102a51b5beSmrg   echo "$as_me:14710: \$? = $ac_status" >&5
1471132b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
1471232b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1471332b578d3Smrg     # So say no if there are warnings other than the usual output.
1471432b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1471532b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1471632b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
147172a51b5beSmrg       lt_cv_prog_compiler_pic_works_F77=yes
1471832b578d3Smrg     fi
1471932b578d3Smrg   fi
1472032b578d3Smrg   $rm conftest*
1472132b578d3Smrg
1472232b578d3Smrgfi
147232a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
147242a51b5beSmrg$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
1472532b578d3Smrg
147262a51b5beSmrgif test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
1472732b578d3Smrg    case $lt_prog_compiler_pic_F77 in
1472832b578d3Smrg     "" | " "*) ;;
1472932b578d3Smrg     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
1473032b578d3Smrg     esac
1473132b578d3Smrgelse
1473232b578d3Smrg    lt_prog_compiler_pic_F77=
1473332b578d3Smrg     lt_prog_compiler_can_build_shared_F77=no
1473432b578d3Smrgfi
1473532b578d3Smrg
1473632b578d3Smrgfi
1473732b578d3Smrgcase $host_os in
1473832b578d3Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
1473932b578d3Smrg  *djgpp*)
1474032b578d3Smrg    lt_prog_compiler_pic_F77=
1474132b578d3Smrg    ;;
1474232b578d3Smrg  *)
1474332b578d3Smrg    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
1474432b578d3Smrg    ;;
1474532b578d3Smrgesac
1474632b578d3Smrg
1474732b578d3Smrg#
1474832b578d3Smrg# Check to make sure the static flag actually works.
1474932b578d3Smrg#
1475032b578d3Smrgwl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
147512a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
147522a51b5beSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
147532a51b5beSmrgif test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
147542a51b5beSmrg  $as_echo_n "(cached) " >&6
1475532b578d3Smrgelse
147562a51b5beSmrg  lt_cv_prog_compiler_static_works_F77=no
1475732b578d3Smrg   save_LDFLAGS="$LDFLAGS"
1475832b578d3Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
147592a51b5beSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1476032b578d3Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1476132b578d3Smrg     # The linker can only warn and ignore the option if not recognized
1476232b578d3Smrg     # So say no if there are warnings
1476332b578d3Smrg     if test -s conftest.err; then
1476432b578d3Smrg       # Append any errors to the config.log.
1476532b578d3Smrg       cat conftest.err 1>&5
1476632b578d3Smrg       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1476732b578d3Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1476832b578d3Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
147692a51b5beSmrg         lt_cv_prog_compiler_static_works_F77=yes
1477032b578d3Smrg       fi
1477132b578d3Smrg     else
147722a51b5beSmrg       lt_cv_prog_compiler_static_works_F77=yes
1477332b578d3Smrg     fi
1477432b578d3Smrg   fi
147752a51b5beSmrg   $rm -r conftest*
1477632b578d3Smrg   LDFLAGS="$save_LDFLAGS"
1477732b578d3Smrg
1477832b578d3Smrgfi
147792a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
147802a51b5beSmrg$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
1478132b578d3Smrg
147822a51b5beSmrgif test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
1478332b578d3Smrg    :
1478432b578d3Smrgelse
1478532b578d3Smrg    lt_prog_compiler_static_F77=
1478632b578d3Smrgfi
1478732b578d3Smrg
1478832b578d3Smrg
147892a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
147902a51b5beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1479132b578d3Smrgif test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
147922a51b5beSmrg  $as_echo_n "(cached) " >&6
1479332b578d3Smrgelse
1479432b578d3Smrg  lt_cv_prog_compiler_c_o_F77=no
1479532b578d3Smrg   $rm -r conftest 2>/dev/null
1479632b578d3Smrg   mkdir conftest
1479732b578d3Smrg   cd conftest
1479832b578d3Smrg   mkdir out
147992a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1480032b578d3Smrg
1480132b578d3Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
1480232b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1480332b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1480432b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1480532b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1480632b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1480732b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1480832b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1480932b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
148102a51b5beSmrg   (eval echo "\"\$as_me:14810: $lt_compile\"" >&5)
1481132b578d3Smrg   (eval "$lt_compile" 2>out/conftest.err)
1481232b578d3Smrg   ac_status=$?
1481332b578d3Smrg   cat out/conftest.err >&5
148142a51b5beSmrg   echo "$as_me:14814: \$? = $ac_status" >&5
1481532b578d3Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1481632b578d3Smrg   then
1481732b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1481832b578d3Smrg     # So say no if there are warnings
1481932b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1482032b578d3Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1482132b578d3Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1482232b578d3Smrg       lt_cv_prog_compiler_c_o_F77=yes
1482332b578d3Smrg     fi
1482432b578d3Smrg   fi
1482532b578d3Smrg   chmod u+w . 2>&5
1482632b578d3Smrg   $rm conftest*
1482732b578d3Smrg   # SGI C++ compiler will create directory out/ii_files/ for
1482832b578d3Smrg   # template instantiation
1482932b578d3Smrg   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1483032b578d3Smrg   $rm out/* && rmdir out
1483132b578d3Smrg   cd ..
1483232b578d3Smrg   rmdir conftest
1483332b578d3Smrg   $rm conftest*
1483432b578d3Smrg
1483532b578d3Smrgfi
148362a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
148372a51b5beSmrg$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
1483832b578d3Smrg
1483932b578d3Smrg
1484032b578d3Smrghard_links="nottested"
1484132b578d3Smrgif test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
1484232b578d3Smrg  # do not overwrite the value of need_locks provided by the user
148432a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
148442a51b5beSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
1484532b578d3Smrg  hard_links=yes
1484632b578d3Smrg  $rm conftest*
1484732b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1484832b578d3Smrg  touch conftest.a
1484932b578d3Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
1485032b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
148512a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
148522a51b5beSmrg$as_echo "$hard_links" >&6; }
1485332b578d3Smrg  if test "$hard_links" = no; then
148542a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
148552a51b5beSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1485632b578d3Smrg    need_locks=warn
1485732b578d3Smrg  fi
1485832b578d3Smrgelse
1485932b578d3Smrg  need_locks=no
1486032b578d3Smrgfi
1486132b578d3Smrg
148622a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
148632a51b5beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1486432b578d3Smrg
1486532b578d3Smrg  runpath_var=
1486632b578d3Smrg  allow_undefined_flag_F77=
1486732b578d3Smrg  enable_shared_with_static_runtimes_F77=no
1486832b578d3Smrg  archive_cmds_F77=
1486932b578d3Smrg  archive_expsym_cmds_F77=
1487032b578d3Smrg  old_archive_From_new_cmds_F77=
1487132b578d3Smrg  old_archive_from_expsyms_cmds_F77=
1487232b578d3Smrg  export_dynamic_flag_spec_F77=
1487332b578d3Smrg  whole_archive_flag_spec_F77=
1487432b578d3Smrg  thread_safe_flag_spec_F77=
1487532b578d3Smrg  hardcode_libdir_flag_spec_F77=
1487632b578d3Smrg  hardcode_libdir_flag_spec_ld_F77=
1487732b578d3Smrg  hardcode_libdir_separator_F77=
1487832b578d3Smrg  hardcode_direct_F77=no
1487932b578d3Smrg  hardcode_minus_L_F77=no
1488032b578d3Smrg  hardcode_shlibpath_var_F77=unsupported
1488132b578d3Smrg  link_all_deplibs_F77=unknown
1488232b578d3Smrg  hardcode_automatic_F77=no
1488332b578d3Smrg  module_cmds_F77=
1488432b578d3Smrg  module_expsym_cmds_F77=
1488532b578d3Smrg  always_export_symbols_F77=no
1488632b578d3Smrg  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1488732b578d3Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
1488832b578d3Smrg  # included in the symbol list
1488932b578d3Smrg  include_expsyms_F77=
1489032b578d3Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
1489132b578d3Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
1489232b578d3Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1489332b578d3Smrg  # as well as any symbol that contains `d'.
148942a51b5beSmrg  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1489532b578d3Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1489632b578d3Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
1489732b578d3Smrg  # the symbol is explicitly referenced.  Since portable code cannot
1489832b578d3Smrg  # rely on this symbol name, it's probably fine to never include it in
1489932b578d3Smrg  # preloaded symbol tables.
149002a51b5beSmrg  # Exclude shared library initialization/finalization symbols.
1490132b578d3Smrg  extract_expsyms_cmds=
1490232b578d3Smrg  # Just being paranoid about ensuring that cc_basename is set.
1490332b578d3Smrg  for cc_temp in $compiler""; do
1490432b578d3Smrg  case $cc_temp in
1490532b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1490632b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1490732b578d3Smrg    \-*) ;;
1490832b578d3Smrg    *) break;;
1490932b578d3Smrg  esac
1491032b578d3Smrgdone
1491132b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1491232b578d3Smrg
1491332b578d3Smrg  case $host_os in
1491432b578d3Smrg  cygwin* | mingw* | pw32*)
1491532b578d3Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
1491632b578d3Smrg    # When not using gcc, we currently assume that we are using
1491732b578d3Smrg    # Microsoft Visual C++.
1491832b578d3Smrg    if test "$GCC" != yes; then
1491932b578d3Smrg      with_gnu_ld=no
1492032b578d3Smrg    fi
1492132b578d3Smrg    ;;
1492232b578d3Smrg  interix*)
1492332b578d3Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
1492432b578d3Smrg    with_gnu_ld=yes
1492532b578d3Smrg    ;;
1492632b578d3Smrg  openbsd*)
1492732b578d3Smrg    with_gnu_ld=no
1492832b578d3Smrg    ;;
1492932b578d3Smrg  esac
1493032b578d3Smrg
1493132b578d3Smrg  ld_shlibs_F77=yes
1493232b578d3Smrg  if test "$with_gnu_ld" = yes; then
1493332b578d3Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
1493432b578d3Smrg    wlarc='${wl}'
1493532b578d3Smrg
1493632b578d3Smrg    # Set some defaults for GNU ld with shared library support. These
1493732b578d3Smrg    # are reset later if shared libraries are not supported. Putting them
1493832b578d3Smrg    # here allows them to be overridden if necessary.
1493932b578d3Smrg    runpath_var=LD_RUN_PATH
1494032b578d3Smrg    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
1494132b578d3Smrg    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
1494232b578d3Smrg    # ancient GNU ld didn't support --whole-archive et. al.
1494332b578d3Smrg    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1494432b578d3Smrg	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1494532b578d3Smrg      else
1494632b578d3Smrg  	whole_archive_flag_spec_F77=
1494732b578d3Smrg    fi
1494832b578d3Smrg    supports_anon_versioning=no
1494932b578d3Smrg    case `$LD -v 2>/dev/null` in
1495032b578d3Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1495132b578d3Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1495232b578d3Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1495332b578d3Smrg      *\ 2.11.*) ;; # other 2.11 versions
1495432b578d3Smrg      *) supports_anon_versioning=yes ;;
1495532b578d3Smrg    esac
1495632b578d3Smrg
1495732b578d3Smrg    # See if GNU ld supports shared libraries.
1495832b578d3Smrg    case $host_os in
149592a51b5beSmrg    aix[3-9]*)
1496032b578d3Smrg      # On AIX/PPC, the GNU linker is very broken
1496132b578d3Smrg      if test "$host_cpu" != ia64; then
1496232b578d3Smrg	ld_shlibs_F77=no
1496332b578d3Smrg	cat <<EOF 1>&2
1496432b578d3Smrg
1496532b578d3Smrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1496632b578d3Smrg*** to be unable to reliably create shared libraries on AIX.
1496732b578d3Smrg*** Therefore, libtool is disabling shared libraries support.  If you
1496832b578d3Smrg*** really care for shared libraries, you may want to modify your PATH
1496932b578d3Smrg*** so that a non-GNU linker is found, and then restart.
1497032b578d3Smrg
1497132b578d3SmrgEOF
1497232b578d3Smrg      fi
1497332b578d3Smrg      ;;
1497432b578d3Smrg
1497532b578d3Smrg    amigaos*)
1497632b578d3Smrg      archive_cmds_F77='$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)'
1497732b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1497832b578d3Smrg      hardcode_minus_L_F77=yes
1497932b578d3Smrg
1498032b578d3Smrg      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1498132b578d3Smrg      # that the semantics of dynamic libraries on AmigaOS, at least up
1498232b578d3Smrg      # to version 4, is to share data among multiple programs linked
1498332b578d3Smrg      # with the same dynamic library.  Since this doesn't match the
1498432b578d3Smrg      # behavior of shared libraries on other platforms, we can't use
1498532b578d3Smrg      # them.
1498632b578d3Smrg      ld_shlibs_F77=no
1498732b578d3Smrg      ;;
1498832b578d3Smrg
1498932b578d3Smrg    beos*)
1499032b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1499132b578d3Smrg	allow_undefined_flag_F77=unsupported
1499232b578d3Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1499332b578d3Smrg	# support --undefined.  This deserves some investigation.  FIXME
1499432b578d3Smrg	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1499532b578d3Smrg      else
1499632b578d3Smrg	ld_shlibs_F77=no
1499732b578d3Smrg      fi
1499832b578d3Smrg      ;;
1499932b578d3Smrg
1500032b578d3Smrg    cygwin* | mingw* | pw32*)
1500132b578d3Smrg      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
1500232b578d3Smrg      # as there is no search path for DLLs.
1500332b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1500432b578d3Smrg      allow_undefined_flag_F77=unsupported
1500532b578d3Smrg      always_export_symbols_F77=no
1500632b578d3Smrg      enable_shared_with_static_runtimes_F77=yes
150072a51b5beSmrg      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1500832b578d3Smrg
1500932b578d3Smrg      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1501032b578d3Smrg        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1501132b578d3Smrg	# If the export-symbols file already is a .def file (1st line
1501232b578d3Smrg	# is EXPORTS), use it as is; otherwise, prepend...
1501332b578d3Smrg	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1501432b578d3Smrg	  cp $export_symbols $output_objdir/$soname.def;
1501532b578d3Smrg	else
1501632b578d3Smrg	  echo EXPORTS > $output_objdir/$soname.def;
1501732b578d3Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
1501832b578d3Smrg	fi~
1501932b578d3Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1502032b578d3Smrg      else
1502132b578d3Smrg	ld_shlibs_F77=no
1502232b578d3Smrg      fi
1502332b578d3Smrg      ;;
1502432b578d3Smrg
150252a51b5beSmrg    interix[3-9]*)
1502632b578d3Smrg      hardcode_direct_F77=no
1502732b578d3Smrg      hardcode_shlibpath_var_F77=no
1502832b578d3Smrg      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
1502932b578d3Smrg      export_dynamic_flag_spec_F77='${wl}-E'
1503032b578d3Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1503132b578d3Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
1503232b578d3Smrg      # default) and relocated if they conflict, which is a slow very memory
1503332b578d3Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
1503432b578d3Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1503532b578d3Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1503632b578d3Smrg      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1503732b578d3Smrg      archive_expsym_cmds_F77='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'
1503832b578d3Smrg      ;;
1503932b578d3Smrg
150402a51b5beSmrg    gnu* | linux* | k*bsd*-gnu)
1504132b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1504232b578d3Smrg	tmp_addflag=
1504332b578d3Smrg	case $cc_basename,$host_cpu in
1504432b578d3Smrg	pgcc*)				# Portland Group C compiler
1504532b578d3Smrg	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1504632b578d3Smrg	  tmp_addflag=' $pic_flag'
1504732b578d3Smrg	  ;;
1504832b578d3Smrg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
1504932b578d3Smrg	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1505032b578d3Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
1505132b578d3Smrg	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
1505232b578d3Smrg	  tmp_addflag=' -i_dynamic' ;;
1505332b578d3Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
1505432b578d3Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
1505532b578d3Smrg	ifc* | ifort*)			# Intel Fortran compiler
1505632b578d3Smrg	  tmp_addflag=' -nofor_main' ;;
1505732b578d3Smrg	esac
150582a51b5beSmrg	case `$CC -V 2>&1 | sed 5q` in
150592a51b5beSmrg	*Sun\ C*)			# Sun C 5.9
150602a51b5beSmrg	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
150612a51b5beSmrg	  tmp_sharedflag='-G' ;;
150622a51b5beSmrg	*Sun\ F*)			# Sun Fortran 8.3
150632a51b5beSmrg	  tmp_sharedflag='-G' ;;
150642a51b5beSmrg	*)
150652a51b5beSmrg	  tmp_sharedflag='-shared' ;;
150662a51b5beSmrg	esac
150672a51b5beSmrg	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1506832b578d3Smrg
1506932b578d3Smrg	if test $supports_anon_versioning = yes; then
1507032b578d3Smrg	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
1507132b578d3Smrg  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1507232b578d3Smrg  $echo "local: *; };" >> $output_objdir/$libname.ver~
150732a51b5beSmrg	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1507432b578d3Smrg	fi
1507532b578d3Smrg      else
1507632b578d3Smrg	ld_shlibs_F77=no
1507732b578d3Smrg      fi
1507832b578d3Smrg      ;;
1507932b578d3Smrg
1508032b578d3Smrg    netbsd*)
1508132b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1508232b578d3Smrg	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1508332b578d3Smrg	wlarc=
1508432b578d3Smrg      else
1508532b578d3Smrg	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1508632b578d3Smrg	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1508732b578d3Smrg      fi
1508832b578d3Smrg      ;;
1508932b578d3Smrg
1509032b578d3Smrg    solaris*)
1509132b578d3Smrg      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1509232b578d3Smrg	ld_shlibs_F77=no
1509332b578d3Smrg	cat <<EOF 1>&2
1509432b578d3Smrg
1509532b578d3Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1509632b578d3Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
1509732b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
1509832b578d3Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
1509932b578d3Smrg*** your PATH or compiler configuration so that the native linker is
1510032b578d3Smrg*** used, and then restart.
1510132b578d3Smrg
1510232b578d3SmrgEOF
1510332b578d3Smrg      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1510432b578d3Smrg	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1510532b578d3Smrg	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1510632b578d3Smrg      else
1510732b578d3Smrg	ld_shlibs_F77=no
1510832b578d3Smrg      fi
1510932b578d3Smrg      ;;
1511032b578d3Smrg
1511132b578d3Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1511232b578d3Smrg      case `$LD -v 2>&1` in
1511332b578d3Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
1511432b578d3Smrg	ld_shlibs_F77=no
1511532b578d3Smrg	cat <<_LT_EOF 1>&2
1511632b578d3Smrg
1511732b578d3Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1511832b578d3Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
1511932b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
1512032b578d3Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
1512132b578d3Smrg*** your PATH or compiler configuration so that the native linker is
1512232b578d3Smrg*** used, and then restart.
1512332b578d3Smrg
1512432b578d3Smrg_LT_EOF
1512532b578d3Smrg	;;
1512632b578d3Smrg	*)
1512732b578d3Smrg	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1512832b578d3Smrg	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1512932b578d3Smrg	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1513032b578d3Smrg	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
1513132b578d3Smrg	  else
1513232b578d3Smrg	    ld_shlibs_F77=no
1513332b578d3Smrg	  fi
1513432b578d3Smrg	;;
1513532b578d3Smrg      esac
1513632b578d3Smrg      ;;
1513732b578d3Smrg
1513832b578d3Smrg    sunos4*)
1513932b578d3Smrg      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1514032b578d3Smrg      wlarc=
1514132b578d3Smrg      hardcode_direct_F77=yes
1514232b578d3Smrg      hardcode_shlibpath_var_F77=no
1514332b578d3Smrg      ;;
1514432b578d3Smrg
1514532b578d3Smrg    *)
1514632b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1514732b578d3Smrg	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1514832b578d3Smrg	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1514932b578d3Smrg      else
1515032b578d3Smrg	ld_shlibs_F77=no
1515132b578d3Smrg      fi
1515232b578d3Smrg      ;;
1515332b578d3Smrg    esac
1515432b578d3Smrg
1515532b578d3Smrg    if test "$ld_shlibs_F77" = no; then
1515632b578d3Smrg      runpath_var=
1515732b578d3Smrg      hardcode_libdir_flag_spec_F77=
1515832b578d3Smrg      export_dynamic_flag_spec_F77=
1515932b578d3Smrg      whole_archive_flag_spec_F77=
1516032b578d3Smrg    fi
1516132b578d3Smrg  else
1516232b578d3Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
1516332b578d3Smrg    case $host_os in
1516432b578d3Smrg    aix3*)
1516532b578d3Smrg      allow_undefined_flag_F77=unsupported
1516632b578d3Smrg      always_export_symbols_F77=yes
1516732b578d3Smrg      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1516832b578d3Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
1516932b578d3Smrg      # are no directories specified by -L.
1517032b578d3Smrg      hardcode_minus_L_F77=yes
1517132b578d3Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1517232b578d3Smrg	# Neither direct hardcoding nor static linking is supported with a
1517332b578d3Smrg	# broken collect2.
1517432b578d3Smrg	hardcode_direct_F77=unsupported
1517532b578d3Smrg      fi
1517632b578d3Smrg      ;;
1517732b578d3Smrg
151782a51b5beSmrg    aix[4-9]*)
1517932b578d3Smrg      if test "$host_cpu" = ia64; then
1518032b578d3Smrg	# On IA64, the linker does run time linking by default, so we don't
1518132b578d3Smrg	# have to do anything special.
1518232b578d3Smrg	aix_use_runtimelinking=no
1518332b578d3Smrg	exp_sym_flag='-Bexport'
1518432b578d3Smrg	no_entry_flag=""
1518532b578d3Smrg      else
1518632b578d3Smrg	# If we're using GNU nm, then we don't want the "-C" option.
1518732b578d3Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1518832b578d3Smrg	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1518932b578d3Smrg	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1519032b578d3Smrg	else
1519132b578d3Smrg	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1519232b578d3Smrg	fi
1519332b578d3Smrg	aix_use_runtimelinking=no
1519432b578d3Smrg
1519532b578d3Smrg	# Test if we are trying to use run time linking or normal
1519632b578d3Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
1519732b578d3Smrg	# need to do runtime linking.
151982a51b5beSmrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1519932b578d3Smrg	  for ld_flag in $LDFLAGS; do
1520032b578d3Smrg  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1520132b578d3Smrg  	    aix_use_runtimelinking=yes
1520232b578d3Smrg  	    break
1520332b578d3Smrg  	  fi
1520432b578d3Smrg	  done
1520532b578d3Smrg	  ;;
1520632b578d3Smrg	esac
1520732b578d3Smrg
1520832b578d3Smrg	exp_sym_flag='-bexport'
1520932b578d3Smrg	no_entry_flag='-bnoentry'
1521032b578d3Smrg      fi
1521132b578d3Smrg
1521232b578d3Smrg      # When large executables or shared objects are built, AIX ld can
1521332b578d3Smrg      # have problems creating the table of contents.  If linking a library
1521432b578d3Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
1521532b578d3Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
1521632b578d3Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1521732b578d3Smrg
1521832b578d3Smrg      archive_cmds_F77=''
1521932b578d3Smrg      hardcode_direct_F77=yes
1522032b578d3Smrg      hardcode_libdir_separator_F77=':'
1522132b578d3Smrg      link_all_deplibs_F77=yes
1522232b578d3Smrg
1522332b578d3Smrg      if test "$GCC" = yes; then
1522432b578d3Smrg	case $host_os in aix4.[012]|aix4.[012].*)
1522532b578d3Smrg	# We only want to do this on AIX 4.2 and lower, the check
1522632b578d3Smrg	# below for broken collect2 doesn't work under 4.3+
1522732b578d3Smrg	  collect2name=`${CC} -print-prog-name=collect2`
1522832b578d3Smrg	  if test -f "$collect2name" && \
1522932b578d3Smrg  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
1523032b578d3Smrg	  then
1523132b578d3Smrg  	  # We have reworked collect2
152322a51b5beSmrg  	  :
1523332b578d3Smrg	  else
1523432b578d3Smrg  	  # We have old collect2
1523532b578d3Smrg  	  hardcode_direct_F77=unsupported
1523632b578d3Smrg  	  # It fails to find uninstalled libraries when the uninstalled
1523732b578d3Smrg  	  # path is not listed in the libpath.  Setting hardcode_minus_L
1523832b578d3Smrg  	  # to unsupported forces relinking
1523932b578d3Smrg  	  hardcode_minus_L_F77=yes
1524032b578d3Smrg  	  hardcode_libdir_flag_spec_F77='-L$libdir'
1524132b578d3Smrg  	  hardcode_libdir_separator_F77=
1524232b578d3Smrg	  fi
1524332b578d3Smrg	  ;;
1524432b578d3Smrg	esac
1524532b578d3Smrg	shared_flag='-shared'
1524632b578d3Smrg	if test "$aix_use_runtimelinking" = yes; then
1524732b578d3Smrg	  shared_flag="$shared_flag "'${wl}-G'
1524832b578d3Smrg	fi
1524932b578d3Smrg      else
1525032b578d3Smrg	# not using gcc
1525132b578d3Smrg	if test "$host_cpu" = ia64; then
1525232b578d3Smrg  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1525332b578d3Smrg  	# chokes on -Wl,-G. The following line is correct:
1525432b578d3Smrg	  shared_flag='-G'
1525532b578d3Smrg	else
1525632b578d3Smrg	  if test "$aix_use_runtimelinking" = yes; then
1525732b578d3Smrg	    shared_flag='${wl}-G'
1525832b578d3Smrg	  else
1525932b578d3Smrg	    shared_flag='${wl}-bM:SRE'
1526032b578d3Smrg	  fi
1526132b578d3Smrg	fi
1526232b578d3Smrg      fi
1526332b578d3Smrg
1526432b578d3Smrg      # It seems that -bexpall does not export symbols beginning with
1526532b578d3Smrg      # underscore (_), so it is better to generate a list of symbols to export.
1526632b578d3Smrg      always_export_symbols_F77=yes
1526732b578d3Smrg      if test "$aix_use_runtimelinking" = yes; then
1526832b578d3Smrg	# Warning - without using the other runtime loading flags (-brtl),
1526932b578d3Smrg	# -berok will link without error, but may produce a broken library.
1527032b578d3Smrg	allow_undefined_flag_F77='-berok'
1527132b578d3Smrg       # Determine the default libpath from the value encoded in an empty executable.
1527232b578d3Smrg       cat >conftest.$ac_ext <<_ACEOF
1527332b578d3Smrg      program main
1527432b578d3Smrg
1527532b578d3Smrg      end
1527632b578d3Smrg_ACEOF
1527732b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1527832b578d3Smrgif { (ac_try="$ac_link"
1527932b578d3Smrgcase "(($ac_try" in
1528032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528132b578d3Smrg  *) ac_try_echo=$ac_try;;
1528232b578d3Smrgesac
152832a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
152842a51b5beSmrg$as_echo "$ac_try_echo") >&5
1528532b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1528632b578d3Smrg  ac_status=$?
1528732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1528832b578d3Smrg  rm -f conftest.er1
1528932b578d3Smrg  cat conftest.err >&5
152902a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1529132b578d3Smrg  (exit $ac_status); } && {
1529232b578d3Smrg	 test -z "$ac_f77_werror_flag" ||
1529332b578d3Smrg	 test ! -s conftest.err
152942a51b5beSmrg       } && test -s conftest$ac_exeext && {
152952a51b5beSmrg	 test "$cross_compiling" = yes ||
152962a51b5beSmrg	 $as_test_x conftest$ac_exeext
152972a51b5beSmrg       }; then
1529832b578d3Smrg
152992a51b5beSmrglt_aix_libpath_sed='
153002a51b5beSmrg    /Import File Strings/,/^$/ {
153012a51b5beSmrg	/^0/ {
153022a51b5beSmrg	    s/^0  *\(.*\)$/\1/
153032a51b5beSmrg	    p
153042a51b5beSmrg	}
153052a51b5beSmrg    }'
153062a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1530732b578d3Smrg# Check for a 64-bit object if we didn't find anything.
153082a51b5beSmrgif test -z "$aix_libpath"; then
153092a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
153102a51b5beSmrgfi
1531132b578d3Smrgelse
153122a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1531332b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1531432b578d3Smrg
1531532b578d3Smrg
1531632b578d3Smrgfi
1531732b578d3Smrg
153182a51b5beSmrgrm -rf conftest.dSYM
1531932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1532032b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1532132b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1532232b578d3Smrg
1532332b578d3Smrg       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1532432b578d3Smrg	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1532532b578d3Smrg       else
1532632b578d3Smrg	if test "$host_cpu" = ia64; then
1532732b578d3Smrg	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
1532832b578d3Smrg	  allow_undefined_flag_F77="-z nodefs"
1532932b578d3Smrg	  archive_expsym_cmds_F77="\$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"
1533032b578d3Smrg	else
1533132b578d3Smrg	 # Determine the default libpath from the value encoded in an empty executable.
1533232b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
1533332b578d3Smrg      program main
1533432b578d3Smrg
1533532b578d3Smrg      end
1533632b578d3Smrg_ACEOF
1533732b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1533832b578d3Smrgif { (ac_try="$ac_link"
1533932b578d3Smrgcase "(($ac_try" in
1534032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534132b578d3Smrg  *) ac_try_echo=$ac_try;;
1534232b578d3Smrgesac
153432a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
153442a51b5beSmrg$as_echo "$ac_try_echo") >&5
1534532b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1534632b578d3Smrg  ac_status=$?
1534732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1534832b578d3Smrg  rm -f conftest.er1
1534932b578d3Smrg  cat conftest.err >&5
153502a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1535132b578d3Smrg  (exit $ac_status); } && {
1535232b578d3Smrg	 test -z "$ac_f77_werror_flag" ||
1535332b578d3Smrg	 test ! -s conftest.err
153542a51b5beSmrg       } && test -s conftest$ac_exeext && {
153552a51b5beSmrg	 test "$cross_compiling" = yes ||
153562a51b5beSmrg	 $as_test_x conftest$ac_exeext
153572a51b5beSmrg       }; then
1535832b578d3Smrg
153592a51b5beSmrglt_aix_libpath_sed='
153602a51b5beSmrg    /Import File Strings/,/^$/ {
153612a51b5beSmrg	/^0/ {
153622a51b5beSmrg	    s/^0  *\(.*\)$/\1/
153632a51b5beSmrg	    p
153642a51b5beSmrg	}
153652a51b5beSmrg    }'
153662a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1536732b578d3Smrg# Check for a 64-bit object if we didn't find anything.
153682a51b5beSmrgif test -z "$aix_libpath"; then
153692a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
153702a51b5beSmrgfi
1537132b578d3Smrgelse
153722a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1537332b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1537432b578d3Smrg
1537532b578d3Smrg
1537632b578d3Smrgfi
1537732b578d3Smrg
153782a51b5beSmrgrm -rf conftest.dSYM
1537932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1538032b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1538132b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1538232b578d3Smrg
1538332b578d3Smrg	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1538432b578d3Smrg	  # Warning - without using the other run time loading flags,
1538532b578d3Smrg	  # -berok will link without error, but may produce a broken library.
1538632b578d3Smrg	  no_undefined_flag_F77=' ${wl}-bernotok'
1538732b578d3Smrg	  allow_undefined_flag_F77=' ${wl}-berok'
1538832b578d3Smrg	  # Exported symbols can be pulled into shared objects from archives
1538932b578d3Smrg	  whole_archive_flag_spec_F77='$convenience'
1539032b578d3Smrg	  archive_cmds_need_lc_F77=yes
1539132b578d3Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
1539232b578d3Smrg	  archive_expsym_cmds_F77="\$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'
1539332b578d3Smrg	fi
1539432b578d3Smrg      fi
1539532b578d3Smrg      ;;
1539632b578d3Smrg
1539732b578d3Smrg    amigaos*)
1539832b578d3Smrg      archive_cmds_F77='$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)'
1539932b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1540032b578d3Smrg      hardcode_minus_L_F77=yes
1540132b578d3Smrg      # see comment about different semantics on the GNU ld section
1540232b578d3Smrg      ld_shlibs_F77=no
1540332b578d3Smrg      ;;
1540432b578d3Smrg
1540532b578d3Smrg    bsdi[45]*)
1540632b578d3Smrg      export_dynamic_flag_spec_F77=-rdynamic
1540732b578d3Smrg      ;;
1540832b578d3Smrg
1540932b578d3Smrg    cygwin* | mingw* | pw32*)
1541032b578d3Smrg      # When not using gcc, we currently assume that we are using
1541132b578d3Smrg      # Microsoft Visual C++.
1541232b578d3Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
1541332b578d3Smrg      # no search path for DLLs.
1541432b578d3Smrg      hardcode_libdir_flag_spec_F77=' '
1541532b578d3Smrg      allow_undefined_flag_F77=unsupported
1541632b578d3Smrg      # Tell ltmain to make .lib files, not .a files.
1541732b578d3Smrg      libext=lib
1541832b578d3Smrg      # Tell ltmain to make .dll files, not .so files.
1541932b578d3Smrg      shrext_cmds=".dll"
1542032b578d3Smrg      # FIXME: Setting linknames here is a bad hack.
1542132b578d3Smrg      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1542232b578d3Smrg      # The linker will automatically build a .lib file if we build a DLL.
1542332b578d3Smrg      old_archive_From_new_cmds_F77='true'
1542432b578d3Smrg      # FIXME: Should let the user specify the lib program.
154252a51b5beSmrg      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
1542632b578d3Smrg      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
1542732b578d3Smrg      enable_shared_with_static_runtimes_F77=yes
1542832b578d3Smrg      ;;
1542932b578d3Smrg
1543032b578d3Smrg    darwin* | rhapsody*)
1543132b578d3Smrg      case $host_os in
1543232b578d3Smrg        rhapsody* | darwin1.[012])
1543332b578d3Smrg         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
1543432b578d3Smrg         ;;
1543532b578d3Smrg       *) # Darwin 1.3 on
1543632b578d3Smrg         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1543732b578d3Smrg           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1543832b578d3Smrg         else
1543932b578d3Smrg           case ${MACOSX_DEPLOYMENT_TARGET} in
1544032b578d3Smrg             10.[012])
1544132b578d3Smrg               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1544232b578d3Smrg               ;;
1544332b578d3Smrg             10.*)
1544432b578d3Smrg               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
1544532b578d3Smrg               ;;
1544632b578d3Smrg           esac
1544732b578d3Smrg         fi
1544832b578d3Smrg         ;;
1544932b578d3Smrg      esac
1545032b578d3Smrg      archive_cmds_need_lc_F77=no
1545132b578d3Smrg      hardcode_direct_F77=no
1545232b578d3Smrg      hardcode_automatic_F77=yes
1545332b578d3Smrg      hardcode_shlibpath_var_F77=unsupported
1545432b578d3Smrg      whole_archive_flag_spec_F77=''
1545532b578d3Smrg      link_all_deplibs_F77=yes
1545632b578d3Smrg    if test "$GCC" = yes ; then
1545732b578d3Smrg    	output_verbose_link_cmd='echo'
154582a51b5beSmrg        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
154592a51b5beSmrg        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
154602a51b5beSmrg        archive_expsym_cmds_F77="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}"
154612a51b5beSmrg        module_expsym_cmds_F77="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}"
1546232b578d3Smrg    else
1546332b578d3Smrg      case $cc_basename in
1546432b578d3Smrg        xlc*)
1546532b578d3Smrg         output_verbose_link_cmd='echo'
154662a51b5beSmrg         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1546732b578d3Smrg         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1546832b578d3Smrg          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
154692a51b5beSmrg         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1547032b578d3Smrg          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1547132b578d3Smrg          ;;
1547232b578d3Smrg       *)
1547332b578d3Smrg         ld_shlibs_F77=no
1547432b578d3Smrg          ;;
1547532b578d3Smrg      esac
1547632b578d3Smrg    fi
1547732b578d3Smrg      ;;
1547832b578d3Smrg
1547932b578d3Smrg    dgux*)
1548032b578d3Smrg      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1548132b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1548232b578d3Smrg      hardcode_shlibpath_var_F77=no
1548332b578d3Smrg      ;;
1548432b578d3Smrg
1548532b578d3Smrg    freebsd1*)
1548632b578d3Smrg      ld_shlibs_F77=no
1548732b578d3Smrg      ;;
1548832b578d3Smrg
1548932b578d3Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1549032b578d3Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
1549132b578d3Smrg    # does not break anything, and helps significantly (at the cost of a little
1549232b578d3Smrg    # extra space).
1549332b578d3Smrg    freebsd2.2*)
1549432b578d3Smrg      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1549532b578d3Smrg      hardcode_libdir_flag_spec_F77='-R$libdir'
1549632b578d3Smrg      hardcode_direct_F77=yes
1549732b578d3Smrg      hardcode_shlibpath_var_F77=no
1549832b578d3Smrg      ;;
1549932b578d3Smrg
1550032b578d3Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1550132b578d3Smrg    freebsd2*)
1550232b578d3Smrg      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1550332b578d3Smrg      hardcode_direct_F77=yes
1550432b578d3Smrg      hardcode_minus_L_F77=yes
1550532b578d3Smrg      hardcode_shlibpath_var_F77=no
1550632b578d3Smrg      ;;
1550732b578d3Smrg
1550832b578d3Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
155092a51b5beSmrg    freebsd* | dragonfly*)
1551032b578d3Smrg      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1551132b578d3Smrg      hardcode_libdir_flag_spec_F77='-R$libdir'
1551232b578d3Smrg      hardcode_direct_F77=yes
1551332b578d3Smrg      hardcode_shlibpath_var_F77=no
1551432b578d3Smrg      ;;
1551532b578d3Smrg
1551632b578d3Smrg    hpux9*)
1551732b578d3Smrg      if test "$GCC" = yes; then
1551832b578d3Smrg	archive_cmds_F77='$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'
1551932b578d3Smrg      else
1552032b578d3Smrg	archive_cmds_F77='$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'
1552132b578d3Smrg      fi
1552232b578d3Smrg      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1552332b578d3Smrg      hardcode_libdir_separator_F77=:
1552432b578d3Smrg      hardcode_direct_F77=yes
1552532b578d3Smrg
1552632b578d3Smrg      # hardcode_minus_L: Not really in the search PATH,
1552732b578d3Smrg      # but as the default location of the library.
1552832b578d3Smrg      hardcode_minus_L_F77=yes
1552932b578d3Smrg      export_dynamic_flag_spec_F77='${wl}-E'
1553032b578d3Smrg      ;;
1553132b578d3Smrg
1553232b578d3Smrg    hpux10*)
1553332b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1553432b578d3Smrg	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1553532b578d3Smrg      else
1553632b578d3Smrg	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1553732b578d3Smrg      fi
1553832b578d3Smrg      if test "$with_gnu_ld" = no; then
1553932b578d3Smrg	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1554032b578d3Smrg	hardcode_libdir_separator_F77=:
1554132b578d3Smrg
1554232b578d3Smrg	hardcode_direct_F77=yes
1554332b578d3Smrg	export_dynamic_flag_spec_F77='${wl}-E'
1554432b578d3Smrg
1554532b578d3Smrg	# hardcode_minus_L: Not really in the search PATH,
1554632b578d3Smrg	# but as the default location of the library.
1554732b578d3Smrg	hardcode_minus_L_F77=yes
1554832b578d3Smrg      fi
1554932b578d3Smrg      ;;
1555032b578d3Smrg
1555132b578d3Smrg    hpux11*)
1555232b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1555332b578d3Smrg	case $host_cpu in
1555432b578d3Smrg	hppa*64*)
1555532b578d3Smrg	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1555632b578d3Smrg	  ;;
1555732b578d3Smrg	ia64*)
1555832b578d3Smrg	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1555932b578d3Smrg	  ;;
1556032b578d3Smrg	*)
1556132b578d3Smrg	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1556232b578d3Smrg	  ;;
1556332b578d3Smrg	esac
1556432b578d3Smrg      else
1556532b578d3Smrg	case $host_cpu in
1556632b578d3Smrg	hppa*64*)
1556732b578d3Smrg	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1556832b578d3Smrg	  ;;
1556932b578d3Smrg	ia64*)
1557032b578d3Smrg	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1557132b578d3Smrg	  ;;
1557232b578d3Smrg	*)
1557332b578d3Smrg	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1557432b578d3Smrg	  ;;
1557532b578d3Smrg	esac
1557632b578d3Smrg      fi
1557732b578d3Smrg      if test "$with_gnu_ld" = no; then
1557832b578d3Smrg	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1557932b578d3Smrg	hardcode_libdir_separator_F77=:
1558032b578d3Smrg
1558132b578d3Smrg	case $host_cpu in
1558232b578d3Smrg	hppa*64*|ia64*)
1558332b578d3Smrg	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
1558432b578d3Smrg	  hardcode_direct_F77=no
1558532b578d3Smrg	  hardcode_shlibpath_var_F77=no
1558632b578d3Smrg	  ;;
1558732b578d3Smrg	*)
1558832b578d3Smrg	  hardcode_direct_F77=yes
1558932b578d3Smrg	  export_dynamic_flag_spec_F77='${wl}-E'
1559032b578d3Smrg
1559132b578d3Smrg	  # hardcode_minus_L: Not really in the search PATH,
1559232b578d3Smrg	  # but as the default location of the library.
1559332b578d3Smrg	  hardcode_minus_L_F77=yes
1559432b578d3Smrg	  ;;
1559532b578d3Smrg	esac
1559632b578d3Smrg      fi
1559732b578d3Smrg      ;;
1559832b578d3Smrg
1559932b578d3Smrg    irix5* | irix6* | nonstopux*)
1560032b578d3Smrg      if test "$GCC" = yes; then
1560132b578d3Smrg	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1560232b578d3Smrg      else
1560332b578d3Smrg	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1560432b578d3Smrg	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
1560532b578d3Smrg      fi
1560632b578d3Smrg      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1560732b578d3Smrg      hardcode_libdir_separator_F77=:
1560832b578d3Smrg      link_all_deplibs_F77=yes
1560932b578d3Smrg      ;;
1561032b578d3Smrg
1561132b578d3Smrg    netbsd*)
1561232b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1561332b578d3Smrg	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1561432b578d3Smrg      else
1561532b578d3Smrg	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
1561632b578d3Smrg      fi
1561732b578d3Smrg      hardcode_libdir_flag_spec_F77='-R$libdir'
1561832b578d3Smrg      hardcode_direct_F77=yes
1561932b578d3Smrg      hardcode_shlibpath_var_F77=no
1562032b578d3Smrg      ;;
1562132b578d3Smrg
1562232b578d3Smrg    newsos6)
1562332b578d3Smrg      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1562432b578d3Smrg      hardcode_direct_F77=yes
1562532b578d3Smrg      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1562632b578d3Smrg      hardcode_libdir_separator_F77=:
1562732b578d3Smrg      hardcode_shlibpath_var_F77=no
1562832b578d3Smrg      ;;
1562932b578d3Smrg
1563032b578d3Smrg    openbsd*)
156312a51b5beSmrg      if test -f /usr/libexec/ld.so; then
156322a51b5beSmrg	hardcode_direct_F77=yes
156332a51b5beSmrg	hardcode_shlibpath_var_F77=no
156342a51b5beSmrg	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
156352a51b5beSmrg	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
156362a51b5beSmrg	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
156372a51b5beSmrg	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
156382a51b5beSmrg	  export_dynamic_flag_spec_F77='${wl}-E'
156392a51b5beSmrg	else
156402a51b5beSmrg	  case $host_os in
156412a51b5beSmrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
156422a51b5beSmrg	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
156432a51b5beSmrg	     hardcode_libdir_flag_spec_F77='-R$libdir'
156442a51b5beSmrg	     ;;
156452a51b5beSmrg	   *)
156462a51b5beSmrg	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
156472a51b5beSmrg	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
156482a51b5beSmrg	     ;;
156492a51b5beSmrg	  esac
156502a51b5beSmrg        fi
1565132b578d3Smrg      else
156522a51b5beSmrg	ld_shlibs_F77=no
1565332b578d3Smrg      fi
1565432b578d3Smrg      ;;
1565532b578d3Smrg
1565632b578d3Smrg    os2*)
1565732b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1565832b578d3Smrg      hardcode_minus_L_F77=yes
1565932b578d3Smrg      allow_undefined_flag_F77=unsupported
1566032b578d3Smrg      archive_cmds_F77='$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'
1566132b578d3Smrg      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1566232b578d3Smrg      ;;
1566332b578d3Smrg
1566432b578d3Smrg    osf3*)
1566532b578d3Smrg      if test "$GCC" = yes; then
1566632b578d3Smrg	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
1566732b578d3Smrg	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1566832b578d3Smrg      else
1566932b578d3Smrg	allow_undefined_flag_F77=' -expect_unresolved \*'
1567032b578d3Smrg	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1567132b578d3Smrg      fi
1567232b578d3Smrg      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1567332b578d3Smrg      hardcode_libdir_separator_F77=:
1567432b578d3Smrg      ;;
1567532b578d3Smrg
1567632b578d3Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
1567732b578d3Smrg      if test "$GCC" = yes; then
1567832b578d3Smrg	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
1567932b578d3Smrg	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1568032b578d3Smrg	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1568132b578d3Smrg      else
1568232b578d3Smrg	allow_undefined_flag_F77=' -expect_unresolved \*'
1568332b578d3Smrg	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1568432b578d3Smrg	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1568532b578d3Smrg	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1568632b578d3Smrg
1568732b578d3Smrg	# Both c and cxx compiler support -rpath directly
1568832b578d3Smrg	hardcode_libdir_flag_spec_F77='-rpath $libdir'
1568932b578d3Smrg      fi
1569032b578d3Smrg      hardcode_libdir_separator_F77=:
1569132b578d3Smrg      ;;
1569232b578d3Smrg
1569332b578d3Smrg    solaris*)
1569432b578d3Smrg      no_undefined_flag_F77=' -z text'
1569532b578d3Smrg      if test "$GCC" = yes; then
1569632b578d3Smrg	wlarc='${wl}'
1569732b578d3Smrg	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1569832b578d3Smrg	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1569932b578d3Smrg	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1570032b578d3Smrg      else
1570132b578d3Smrg	wlarc=''
1570232b578d3Smrg	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1570332b578d3Smrg	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1570432b578d3Smrg  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1570532b578d3Smrg      fi
1570632b578d3Smrg      hardcode_libdir_flag_spec_F77='-R$libdir'
1570732b578d3Smrg      hardcode_shlibpath_var_F77=no
1570832b578d3Smrg      case $host_os in
1570932b578d3Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
1571032b578d3Smrg      *)
157112a51b5beSmrg	# The compiler driver will combine and reorder linker options,
157122a51b5beSmrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
157132a51b5beSmrg	# but is careful enough not to reorder.
1571432b578d3Smrg 	# Supported since Solaris 2.6 (maybe 2.5.1?)
157152a51b5beSmrg	if test "$GCC" = yes; then
157162a51b5beSmrg	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
157172a51b5beSmrg	else
157182a51b5beSmrg	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
157192a51b5beSmrg	fi
157202a51b5beSmrg	;;
1572132b578d3Smrg      esac
1572232b578d3Smrg      link_all_deplibs_F77=yes
1572332b578d3Smrg      ;;
1572432b578d3Smrg
1572532b578d3Smrg    sunos4*)
1572632b578d3Smrg      if test "x$host_vendor" = xsequent; then
1572732b578d3Smrg	# Use $CC to link under sequent, because it throws in some extra .o
1572832b578d3Smrg	# files that make .init and .fini sections work.
1572932b578d3Smrg	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1573032b578d3Smrg      else
1573132b578d3Smrg	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1573232b578d3Smrg      fi
1573332b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1573432b578d3Smrg      hardcode_direct_F77=yes
1573532b578d3Smrg      hardcode_minus_L_F77=yes
1573632b578d3Smrg      hardcode_shlibpath_var_F77=no
1573732b578d3Smrg      ;;
1573832b578d3Smrg
1573932b578d3Smrg    sysv4)
1574032b578d3Smrg      case $host_vendor in
1574132b578d3Smrg	sni)
1574232b578d3Smrg	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1574332b578d3Smrg	  hardcode_direct_F77=yes # is this really true???
1574432b578d3Smrg	;;
1574532b578d3Smrg	siemens)
1574632b578d3Smrg	  ## LD is ld it makes a PLAMLIB
1574732b578d3Smrg	  ## CC just makes a GrossModule.
1574832b578d3Smrg	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1574932b578d3Smrg	  reload_cmds_F77='$CC -r -o $output$reload_objs'
1575032b578d3Smrg	  hardcode_direct_F77=no
1575132b578d3Smrg        ;;
1575232b578d3Smrg	motorola)
1575332b578d3Smrg	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1575432b578d3Smrg	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
1575532b578d3Smrg	;;
1575632b578d3Smrg      esac
1575732b578d3Smrg      runpath_var='LD_RUN_PATH'
1575832b578d3Smrg      hardcode_shlibpath_var_F77=no
1575932b578d3Smrg      ;;
1576032b578d3Smrg
1576132b578d3Smrg    sysv4.3*)
1576232b578d3Smrg      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1576332b578d3Smrg      hardcode_shlibpath_var_F77=no
1576432b578d3Smrg      export_dynamic_flag_spec_F77='-Bexport'
1576532b578d3Smrg      ;;
1576632b578d3Smrg
1576732b578d3Smrg    sysv4*MP*)
1576832b578d3Smrg      if test -d /usr/nec; then
1576932b578d3Smrg	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1577032b578d3Smrg	hardcode_shlibpath_var_F77=no
1577132b578d3Smrg	runpath_var=LD_RUN_PATH
1577232b578d3Smrg	hardcode_runpath_var=yes
1577332b578d3Smrg	ld_shlibs_F77=yes
1577432b578d3Smrg      fi
1577532b578d3Smrg      ;;
1577632b578d3Smrg
157772a51b5beSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1577832b578d3Smrg      no_undefined_flag_F77='${wl}-z,text'
1577932b578d3Smrg      archive_cmds_need_lc_F77=no
1578032b578d3Smrg      hardcode_shlibpath_var_F77=no
1578132b578d3Smrg      runpath_var='LD_RUN_PATH'
1578232b578d3Smrg
1578332b578d3Smrg      if test "$GCC" = yes; then
1578432b578d3Smrg	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1578532b578d3Smrg	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1578632b578d3Smrg      else
1578732b578d3Smrg	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1578832b578d3Smrg	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1578932b578d3Smrg      fi
1579032b578d3Smrg      ;;
1579132b578d3Smrg
1579232b578d3Smrg    sysv5* | sco3.2v5* | sco5v6*)
1579332b578d3Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
1579432b578d3Smrg      # link with -lc, and that would cause any symbols used from libc to
1579532b578d3Smrg      # always be unresolved, which means just about no library would
1579632b578d3Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
1579732b578d3Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
1579832b578d3Smrg      # as -z defs.
1579932b578d3Smrg      no_undefined_flag_F77='${wl}-z,text'
1580032b578d3Smrg      allow_undefined_flag_F77='${wl}-z,nodefs'
1580132b578d3Smrg      archive_cmds_need_lc_F77=no
1580232b578d3Smrg      hardcode_shlibpath_var_F77=no
1580332b578d3Smrg      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1580432b578d3Smrg      hardcode_libdir_separator_F77=':'
1580532b578d3Smrg      link_all_deplibs_F77=yes
1580632b578d3Smrg      export_dynamic_flag_spec_F77='${wl}-Bexport'
1580732b578d3Smrg      runpath_var='LD_RUN_PATH'
1580832b578d3Smrg
1580932b578d3Smrg      if test "$GCC" = yes; then
1581032b578d3Smrg	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1581132b578d3Smrg	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1581232b578d3Smrg      else
1581332b578d3Smrg	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1581432b578d3Smrg	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1581532b578d3Smrg      fi
1581632b578d3Smrg      ;;
1581732b578d3Smrg
1581832b578d3Smrg    uts4*)
1581932b578d3Smrg      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1582032b578d3Smrg      hardcode_libdir_flag_spec_F77='-L$libdir'
1582132b578d3Smrg      hardcode_shlibpath_var_F77=no
1582232b578d3Smrg      ;;
1582332b578d3Smrg
1582432b578d3Smrg    *)
1582532b578d3Smrg      ld_shlibs_F77=no
1582632b578d3Smrg      ;;
1582732b578d3Smrg    esac
1582832b578d3Smrg  fi
1582932b578d3Smrg
158302a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
158312a51b5beSmrg$as_echo "$ld_shlibs_F77" >&6; }
1583232b578d3Smrgtest "$ld_shlibs_F77" = no && can_build_shared=no
1583332b578d3Smrg
1583432b578d3Smrg#
1583532b578d3Smrg# Do we need to explicitly link libc?
1583632b578d3Smrg#
1583732b578d3Smrgcase "x$archive_cmds_need_lc_F77" in
1583832b578d3Smrgx|xyes)
1583932b578d3Smrg  # Assume -lc should be added
1584032b578d3Smrg  archive_cmds_need_lc_F77=yes
1584132b578d3Smrg
1584232b578d3Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
1584332b578d3Smrg    case $archive_cmds_F77 in
1584432b578d3Smrg    *'~'*)
1584532b578d3Smrg      # FIXME: we may have to deal with multi-command sequences.
1584632b578d3Smrg      ;;
1584732b578d3Smrg    '$CC '*)
1584832b578d3Smrg      # Test whether the compiler implicitly links with -lc since on some
1584932b578d3Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
1585032b578d3Smrg      # to ld, don't add -lc before -lgcc.
158512a51b5beSmrg      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
158522a51b5beSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1585332b578d3Smrg      $rm conftest*
158542a51b5beSmrg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1585532b578d3Smrg
1585632b578d3Smrg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1585732b578d3Smrg  (eval $ac_compile) 2>&5
1585832b578d3Smrg  ac_status=$?
158592a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1586032b578d3Smrg  (exit $ac_status); } 2>conftest.err; then
1586132b578d3Smrg        soname=conftest
1586232b578d3Smrg        lib=conftest
1586332b578d3Smrg        libobjs=conftest.$ac_objext
1586432b578d3Smrg        deplibs=
1586532b578d3Smrg        wl=$lt_prog_compiler_wl_F77
1586632b578d3Smrg	pic_flag=$lt_prog_compiler_pic_F77
1586732b578d3Smrg        compiler_flags=-v
1586832b578d3Smrg        linker_flags=-v
1586932b578d3Smrg        verstring=
1587032b578d3Smrg        output_objdir=.
1587132b578d3Smrg        libname=conftest
1587232b578d3Smrg        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
1587332b578d3Smrg        allow_undefined_flag_F77=
1587432b578d3Smrg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1587532b578d3Smrg  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1587632b578d3Smrg  ac_status=$?
158772a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1587832b578d3Smrg  (exit $ac_status); }
1587932b578d3Smrg        then
1588032b578d3Smrg	  archive_cmds_need_lc_F77=no
1588132b578d3Smrg        else
1588232b578d3Smrg	  archive_cmds_need_lc_F77=yes
1588332b578d3Smrg        fi
1588432b578d3Smrg        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
1588532b578d3Smrg      else
1588632b578d3Smrg        cat conftest.err 1>&5
1588732b578d3Smrg      fi
1588832b578d3Smrg      $rm conftest*
158892a51b5beSmrg      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
158902a51b5beSmrg$as_echo "$archive_cmds_need_lc_F77" >&6; }
1589132b578d3Smrg      ;;
1589232b578d3Smrg    esac
1589332b578d3Smrg  fi
1589432b578d3Smrg  ;;
1589532b578d3Smrgesac
1589632b578d3Smrg
158972a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
158982a51b5beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
1589932b578d3Smrglibrary_names_spec=
1590032b578d3Smrglibname_spec='lib$name'
1590132b578d3Smrgsoname_spec=
1590232b578d3Smrgshrext_cmds=".so"
1590332b578d3Smrgpostinstall_cmds=
1590432b578d3Smrgpostuninstall_cmds=
1590532b578d3Smrgfinish_cmds=
1590632b578d3Smrgfinish_eval=
1590732b578d3Smrgshlibpath_var=
1590832b578d3Smrgshlibpath_overrides_runpath=unknown
1590932b578d3Smrgversion_type=none
1591032b578d3Smrgdynamic_linker="$host_os ld.so"
1591132b578d3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
159122a51b5beSmrg
1591332b578d3Smrgneed_lib_prefix=unknown
1591432b578d3Smrghardcode_into_libs=no
1591532b578d3Smrg
1591632b578d3Smrg# when you set need_version to no, make sure it does not cause -set_version
1591732b578d3Smrg# flags to be left without arguments
1591832b578d3Smrgneed_version=unknown
1591932b578d3Smrg
1592032b578d3Smrgcase $host_os in
1592132b578d3Smrgaix3*)
1592232b578d3Smrg  version_type=linux
1592332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1592432b578d3Smrg  shlibpath_var=LIBPATH
1592532b578d3Smrg
1592632b578d3Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
1592732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1592832b578d3Smrg  ;;
1592932b578d3Smrg
159302a51b5beSmrgaix[4-9]*)
1593132b578d3Smrg  version_type=linux
1593232b578d3Smrg  need_lib_prefix=no
1593332b578d3Smrg  need_version=no
1593432b578d3Smrg  hardcode_into_libs=yes
1593532b578d3Smrg  if test "$host_cpu" = ia64; then
1593632b578d3Smrg    # AIX 5 supports IA64
1593732b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1593832b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1593932b578d3Smrg  else
1594032b578d3Smrg    # With GCC up to 2.95.x, collect2 would create an import file
1594132b578d3Smrg    # for dependence libraries.  The import file would start with
1594232b578d3Smrg    # the line `#! .'.  This would cause the generated library to
1594332b578d3Smrg    # depend on `.', always an invalid library.  This was fixed in
1594432b578d3Smrg    # development snapshots of GCC prior to 3.0.
1594532b578d3Smrg    case $host_os in
1594632b578d3Smrg      aix4 | aix4.[01] | aix4.[01].*)
1594732b578d3Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1594832b578d3Smrg	   echo ' yes '
1594932b578d3Smrg	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1595032b578d3Smrg	:
1595132b578d3Smrg      else
1595232b578d3Smrg	can_build_shared=no
1595332b578d3Smrg      fi
1595432b578d3Smrg      ;;
1595532b578d3Smrg    esac
1595632b578d3Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1595732b578d3Smrg    # soname into executable. Probably we can add versioning support to
1595832b578d3Smrg    # collect2, so additional links can be useful in future.
1595932b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
1596032b578d3Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1596132b578d3Smrg      # instead of lib<name>.a to let people know that these are not
1596232b578d3Smrg      # typical AIX shared libraries.
1596332b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1596432b578d3Smrg    else
1596532b578d3Smrg      # We preserve .a as extension for shared libraries through AIX4.2
1596632b578d3Smrg      # and later when we are not doing run time linking.
1596732b578d3Smrg      library_names_spec='${libname}${release}.a $libname.a'
1596832b578d3Smrg      soname_spec='${libname}${release}${shared_ext}$major'
1596932b578d3Smrg    fi
1597032b578d3Smrg    shlibpath_var=LIBPATH
1597132b578d3Smrg  fi
1597232b578d3Smrg  ;;
1597332b578d3Smrg
1597432b578d3Smrgamigaos*)
1597532b578d3Smrg  library_names_spec='$libname.ixlibrary $libname.a'
1597632b578d3Smrg  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1597732b578d3Smrg  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
1597832b578d3Smrg  ;;
1597932b578d3Smrg
1598032b578d3Smrgbeos*)
1598132b578d3Smrg  library_names_spec='${libname}${shared_ext}'
1598232b578d3Smrg  dynamic_linker="$host_os ld.so"
1598332b578d3Smrg  shlibpath_var=LIBRARY_PATH
1598432b578d3Smrg  ;;
1598532b578d3Smrg
1598632b578d3Smrgbsdi[45]*)
1598732b578d3Smrg  version_type=linux
1598832b578d3Smrg  need_version=no
1598932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1599032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1599132b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1599232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1599332b578d3Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1599432b578d3Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1599532b578d3Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
1599632b578d3Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1599732b578d3Smrg  # libtool to hard-code these into programs
1599832b578d3Smrg  ;;
1599932b578d3Smrg
1600032b578d3Smrgcygwin* | mingw* | pw32*)
1600132b578d3Smrg  version_type=windows
1600232b578d3Smrg  shrext_cmds=".dll"
1600332b578d3Smrg  need_version=no
1600432b578d3Smrg  need_lib_prefix=no
1600532b578d3Smrg
1600632b578d3Smrg  case $GCC,$host_os in
1600732b578d3Smrg  yes,cygwin* | yes,mingw* | yes,pw32*)
1600832b578d3Smrg    library_names_spec='$libname.dll.a'
1600932b578d3Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1601032b578d3Smrg    postinstall_cmds='base_file=`basename \${file}`~
1601132b578d3Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1601232b578d3Smrg      dldir=$destdir/`dirname \$dlpath`~
1601332b578d3Smrg      test -d \$dldir || mkdir -p \$dldir~
1601432b578d3Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
1601532b578d3Smrg      chmod a+x \$dldir/$dlname'
1601632b578d3Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1601732b578d3Smrg      dlpath=$dir/\$dldll~
1601832b578d3Smrg       $rm \$dlpath'
1601932b578d3Smrg    shlibpath_overrides_runpath=yes
1602032b578d3Smrg
1602132b578d3Smrg    case $host_os in
1602232b578d3Smrg    cygwin*)
1602332b578d3Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1602432b578d3Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1602532b578d3Smrg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1602632b578d3Smrg      ;;
1602732b578d3Smrg    mingw*)
1602832b578d3Smrg      # MinGW DLLs use traditional 'lib' prefix
1602932b578d3Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1603032b578d3Smrg      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1603132b578d3Smrg      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1603232b578d3Smrg        # It is most probably a Windows format PATH printed by
1603332b578d3Smrg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1603432b578d3Smrg        # path with ; separators, and with drive letters. We can handle the
1603532b578d3Smrg        # drive letters (cygwin fileutils understands them), so leave them,
1603632b578d3Smrg        # especially as we might pass files found there to a mingw objdump,
1603732b578d3Smrg        # which wouldn't understand a cygwinified path. Ahh.
1603832b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1603932b578d3Smrg      else
1604032b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1604132b578d3Smrg      fi
1604232b578d3Smrg      ;;
1604332b578d3Smrg    pw32*)
1604432b578d3Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
1604532b578d3Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1604632b578d3Smrg      ;;
1604732b578d3Smrg    esac
1604832b578d3Smrg    ;;
1604932b578d3Smrg
1605032b578d3Smrg  *)
1605132b578d3Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1605232b578d3Smrg    ;;
1605332b578d3Smrg  esac
1605432b578d3Smrg  dynamic_linker='Win32 ld.exe'
1605532b578d3Smrg  # FIXME: first we should search . and the directory the executable is in
1605632b578d3Smrg  shlibpath_var=PATH
1605732b578d3Smrg  ;;
1605832b578d3Smrg
1605932b578d3Smrgdarwin* | rhapsody*)
1606032b578d3Smrg  dynamic_linker="$host_os dyld"
1606132b578d3Smrg  version_type=darwin
1606232b578d3Smrg  need_lib_prefix=no
1606332b578d3Smrg  need_version=no
1606432b578d3Smrg  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1606532b578d3Smrg  soname_spec='${libname}${release}${major}$shared_ext'
1606632b578d3Smrg  shlibpath_overrides_runpath=yes
1606732b578d3Smrg  shlibpath_var=DYLD_LIBRARY_PATH
1606832b578d3Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
160692a51b5beSmrg
1607032b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1607132b578d3Smrg  ;;
1607232b578d3Smrg
1607332b578d3Smrgdgux*)
1607432b578d3Smrg  version_type=linux
1607532b578d3Smrg  need_lib_prefix=no
1607632b578d3Smrg  need_version=no
1607732b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1607832b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1607932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1608032b578d3Smrg  ;;
1608132b578d3Smrg
1608232b578d3Smrgfreebsd1*)
1608332b578d3Smrg  dynamic_linker=no
1608432b578d3Smrg  ;;
1608532b578d3Smrg
1608632b578d3Smrgfreebsd* | dragonfly*)
1608732b578d3Smrg  # DragonFly does not have aout.  When/if they implement a new
1608832b578d3Smrg  # versioning mechanism, adjust this.
1608932b578d3Smrg  if test -x /usr/bin/objformat; then
1609032b578d3Smrg    objformat=`/usr/bin/objformat`
1609132b578d3Smrg  else
1609232b578d3Smrg    case $host_os in
1609332b578d3Smrg    freebsd[123]*) objformat=aout ;;
1609432b578d3Smrg    *) objformat=elf ;;
1609532b578d3Smrg    esac
1609632b578d3Smrg  fi
1609732b578d3Smrg  version_type=freebsd-$objformat
1609832b578d3Smrg  case $version_type in
1609932b578d3Smrg    freebsd-elf*)
1610032b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1610132b578d3Smrg      need_version=no
1610232b578d3Smrg      need_lib_prefix=no
1610332b578d3Smrg      ;;
1610432b578d3Smrg    freebsd-*)
1610532b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1610632b578d3Smrg      need_version=yes
1610732b578d3Smrg      ;;
1610832b578d3Smrg  esac
1610932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1611032b578d3Smrg  case $host_os in
1611132b578d3Smrg  freebsd2*)
1611232b578d3Smrg    shlibpath_overrides_runpath=yes
1611332b578d3Smrg    ;;
1611432b578d3Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
1611532b578d3Smrg    shlibpath_overrides_runpath=yes
1611632b578d3Smrg    hardcode_into_libs=yes
1611732b578d3Smrg    ;;
1611832b578d3Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
1611932b578d3Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1612032b578d3Smrg    shlibpath_overrides_runpath=no
1612132b578d3Smrg    hardcode_into_libs=yes
1612232b578d3Smrg    ;;
161232a51b5beSmrg  *) # from 4.6 on, and DragonFly
1612432b578d3Smrg    shlibpath_overrides_runpath=yes
1612532b578d3Smrg    hardcode_into_libs=yes
1612632b578d3Smrg    ;;
1612732b578d3Smrg  esac
1612832b578d3Smrg  ;;
1612932b578d3Smrg
1613032b578d3Smrggnu*)
1613132b578d3Smrg  version_type=linux
1613232b578d3Smrg  need_lib_prefix=no
1613332b578d3Smrg  need_version=no
1613432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1613532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1613632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1613732b578d3Smrg  hardcode_into_libs=yes
1613832b578d3Smrg  ;;
1613932b578d3Smrg
1614032b578d3Smrghpux9* | hpux10* | hpux11*)
1614132b578d3Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1614232b578d3Smrg  # link against other versions.
1614332b578d3Smrg  version_type=sunos
1614432b578d3Smrg  need_lib_prefix=no
1614532b578d3Smrg  need_version=no
1614632b578d3Smrg  case $host_cpu in
1614732b578d3Smrg  ia64*)
1614832b578d3Smrg    shrext_cmds='.so'
1614932b578d3Smrg    hardcode_into_libs=yes
1615032b578d3Smrg    dynamic_linker="$host_os dld.so"
1615132b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1615232b578d3Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1615332b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1615432b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1615532b578d3Smrg    if test "X$HPUX_IA64_MODE" = X32; then
1615632b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1615732b578d3Smrg    else
1615832b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1615932b578d3Smrg    fi
1616032b578d3Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1616132b578d3Smrg    ;;
1616232b578d3Smrg   hppa*64*)
1616332b578d3Smrg     shrext_cmds='.sl'
1616432b578d3Smrg     hardcode_into_libs=yes
1616532b578d3Smrg     dynamic_linker="$host_os dld.sl"
1616632b578d3Smrg     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1616732b578d3Smrg     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1616832b578d3Smrg     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1616932b578d3Smrg     soname_spec='${libname}${release}${shared_ext}$major'
1617032b578d3Smrg     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1617132b578d3Smrg     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1617232b578d3Smrg     ;;
1617332b578d3Smrg   *)
1617432b578d3Smrg    shrext_cmds='.sl'
1617532b578d3Smrg    dynamic_linker="$host_os dld.sl"
1617632b578d3Smrg    shlibpath_var=SHLIB_PATH
1617732b578d3Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1617832b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1617932b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1618032b578d3Smrg    ;;
1618132b578d3Smrg  esac
1618232b578d3Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
1618332b578d3Smrg  postinstall_cmds='chmod 555 $lib'
1618432b578d3Smrg  ;;
1618532b578d3Smrg
161862a51b5beSmrginterix[3-9]*)
1618732b578d3Smrg  version_type=linux
1618832b578d3Smrg  need_lib_prefix=no
1618932b578d3Smrg  need_version=no
1619032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1619132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1619232b578d3Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1619332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1619432b578d3Smrg  shlibpath_overrides_runpath=no
1619532b578d3Smrg  hardcode_into_libs=yes
1619632b578d3Smrg  ;;
1619732b578d3Smrg
1619832b578d3Smrgirix5* | irix6* | nonstopux*)
1619932b578d3Smrg  case $host_os in
1620032b578d3Smrg    nonstopux*) version_type=nonstopux ;;
1620132b578d3Smrg    *)
1620232b578d3Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1620332b578d3Smrg		version_type=linux
1620432b578d3Smrg	else
1620532b578d3Smrg		version_type=irix
1620632b578d3Smrg	fi ;;
1620732b578d3Smrg  esac
1620832b578d3Smrg  need_lib_prefix=no
1620932b578d3Smrg  need_version=no
1621032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1621132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1621232b578d3Smrg  case $host_os in
1621332b578d3Smrg  irix5* | nonstopux*)
1621432b578d3Smrg    libsuff= shlibsuff=
1621532b578d3Smrg    ;;
1621632b578d3Smrg  *)
1621732b578d3Smrg    case $LD in # libtool.m4 will add one of these switches to LD
1621832b578d3Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1621932b578d3Smrg      libsuff= shlibsuff= libmagic=32-bit;;
1622032b578d3Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1622132b578d3Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1622232b578d3Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1622332b578d3Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1622432b578d3Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
1622532b578d3Smrg    esac
1622632b578d3Smrg    ;;
1622732b578d3Smrg  esac
1622832b578d3Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1622932b578d3Smrg  shlibpath_overrides_runpath=no
1623032b578d3Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1623132b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1623232b578d3Smrg  hardcode_into_libs=yes
1623332b578d3Smrg  ;;
1623432b578d3Smrg
1623532b578d3Smrg# No shared lib support for Linux oldld, aout, or coff.
1623632b578d3Smrglinux*oldld* | linux*aout* | linux*coff*)
1623732b578d3Smrg  dynamic_linker=no
1623832b578d3Smrg  ;;
1623932b578d3Smrg
1624032b578d3Smrg# This must be Linux ELF.
162412a51b5beSmrglinux* | k*bsd*-gnu)
1624232b578d3Smrg  version_type=linux
1624332b578d3Smrg  need_lib_prefix=no
1624432b578d3Smrg  need_version=no
1624532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1624632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1624732b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1624832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1624932b578d3Smrg  shlibpath_overrides_runpath=no
1625032b578d3Smrg  # This implies no fast_install, which is unacceptable.
1625132b578d3Smrg  # Some rework will be needed to allow for fast_install
1625232b578d3Smrg  # before this can be enabled.
1625332b578d3Smrg  hardcode_into_libs=yes
162542a51b5beSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
162552a51b5beSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1625632b578d3Smrg
1625732b578d3Smrg  # Append ld.so.conf contents to the search path
1625832b578d3Smrg  if test -f /etc/ld.so.conf; then
162592a51b5beSmrg    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;/^$/d' | tr '\n' ' '`
162602a51b5beSmrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1626132b578d3Smrg  fi
1626232b578d3Smrg
1626332b578d3Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1626432b578d3Smrg  # powerpc, because MkLinux only supported shared libraries with the
1626532b578d3Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1626632b578d3Smrg  # most powerpc-linux boxes support dynamic linking these days and
1626732b578d3Smrg  # people can always --disable-shared, the test was removed, and we
1626832b578d3Smrg  # assume the GNU/Linux dynamic linker is in use.
1626932b578d3Smrg  dynamic_linker='GNU/Linux ld.so'
1627032b578d3Smrg  ;;
1627132b578d3Smrg
1627232b578d3Smrgnetbsd*)
1627332b578d3Smrg  version_type=sunos
1627432b578d3Smrg  need_lib_prefix=no
1627532b578d3Smrg  need_version=no
1627632b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1627732b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1627832b578d3Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1627932b578d3Smrg    dynamic_linker='NetBSD (a.out) ld.so'
1628032b578d3Smrg  else
1628132b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1628232b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1628332b578d3Smrg    dynamic_linker='NetBSD ld.elf_so'
1628432b578d3Smrg  fi
1628532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1628632b578d3Smrg  shlibpath_overrides_runpath=yes
1628732b578d3Smrg  hardcode_into_libs=yes
1628832b578d3Smrg  ;;
1628932b578d3Smrg
1629032b578d3Smrgnewsos6)
1629132b578d3Smrg  version_type=linux
1629232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1629332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1629432b578d3Smrg  shlibpath_overrides_runpath=yes
1629532b578d3Smrg  ;;
1629632b578d3Smrg
1629732b578d3Smrgnto-qnx*)
1629832b578d3Smrg  version_type=linux
1629932b578d3Smrg  need_lib_prefix=no
1630032b578d3Smrg  need_version=no
1630132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1630232b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1630332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1630432b578d3Smrg  shlibpath_overrides_runpath=yes
1630532b578d3Smrg  ;;
1630632b578d3Smrg
1630732b578d3Smrgopenbsd*)
1630832b578d3Smrg  version_type=sunos
1630932b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
1631032b578d3Smrg  need_lib_prefix=no
1631132b578d3Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1631232b578d3Smrg  case $host_os in
1631332b578d3Smrg    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1631432b578d3Smrg    *)                         need_version=no  ;;
1631532b578d3Smrg  esac
1631632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1631732b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1631832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1631932b578d3Smrg  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1632032b578d3Smrg    case $host_os in
1632132b578d3Smrg      openbsd2.[89] | openbsd2.[89].*)
1632232b578d3Smrg	shlibpath_overrides_runpath=no
1632332b578d3Smrg	;;
1632432b578d3Smrg      *)
1632532b578d3Smrg	shlibpath_overrides_runpath=yes
1632632b578d3Smrg	;;
1632732b578d3Smrg      esac
1632832b578d3Smrg  else
1632932b578d3Smrg    shlibpath_overrides_runpath=yes
1633032b578d3Smrg  fi
1633132b578d3Smrg  ;;
1633232b578d3Smrg
1633332b578d3Smrgos2*)
1633432b578d3Smrg  libname_spec='$name'
1633532b578d3Smrg  shrext_cmds=".dll"
1633632b578d3Smrg  need_lib_prefix=no
1633732b578d3Smrg  library_names_spec='$libname${shared_ext} $libname.a'
1633832b578d3Smrg  dynamic_linker='OS/2 ld.exe'
1633932b578d3Smrg  shlibpath_var=LIBPATH
1634032b578d3Smrg  ;;
1634132b578d3Smrg
1634232b578d3Smrgosf3* | osf4* | osf5*)
1634332b578d3Smrg  version_type=osf
1634432b578d3Smrg  need_lib_prefix=no
1634532b578d3Smrg  need_version=no
1634632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1634732b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1634832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1634932b578d3Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1635032b578d3Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1635132b578d3Smrg  ;;
1635232b578d3Smrg
163532a51b5beSmrgrdos*)
163542a51b5beSmrg  dynamic_linker=no
163552a51b5beSmrg  ;;
163562a51b5beSmrg
1635732b578d3Smrgsolaris*)
1635832b578d3Smrg  version_type=linux
1635932b578d3Smrg  need_lib_prefix=no
1636032b578d3Smrg  need_version=no
1636132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1636232b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1636332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1636432b578d3Smrg  shlibpath_overrides_runpath=yes
1636532b578d3Smrg  hardcode_into_libs=yes
1636632b578d3Smrg  # ldd complains unless libraries are executable
1636732b578d3Smrg  postinstall_cmds='chmod +x $lib'
1636832b578d3Smrg  ;;
1636932b578d3Smrg
1637032b578d3Smrgsunos4*)
1637132b578d3Smrg  version_type=sunos
1637232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1637332b578d3Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1637432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1637532b578d3Smrg  shlibpath_overrides_runpath=yes
1637632b578d3Smrg  if test "$with_gnu_ld" = yes; then
1637732b578d3Smrg    need_lib_prefix=no
1637832b578d3Smrg  fi
1637932b578d3Smrg  need_version=yes
1638032b578d3Smrg  ;;
1638132b578d3Smrg
1638232b578d3Smrgsysv4 | sysv4.3*)
1638332b578d3Smrg  version_type=linux
1638432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1638532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1638632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1638732b578d3Smrg  case $host_vendor in
1638832b578d3Smrg    sni)
1638932b578d3Smrg      shlibpath_overrides_runpath=no
1639032b578d3Smrg      need_lib_prefix=no
1639132b578d3Smrg      export_dynamic_flag_spec='${wl}-Blargedynsym'
1639232b578d3Smrg      runpath_var=LD_RUN_PATH
1639332b578d3Smrg      ;;
1639432b578d3Smrg    siemens)
1639532b578d3Smrg      need_lib_prefix=no
1639632b578d3Smrg      ;;
1639732b578d3Smrg    motorola)
1639832b578d3Smrg      need_lib_prefix=no
1639932b578d3Smrg      need_version=no
1640032b578d3Smrg      shlibpath_overrides_runpath=no
1640132b578d3Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1640232b578d3Smrg      ;;
1640332b578d3Smrg  esac
1640432b578d3Smrg  ;;
1640532b578d3Smrg
1640632b578d3Smrgsysv4*MP*)
1640732b578d3Smrg  if test -d /usr/nec ;then
1640832b578d3Smrg    version_type=linux
1640932b578d3Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1641032b578d3Smrg    soname_spec='$libname${shared_ext}.$major'
1641132b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1641232b578d3Smrg  fi
1641332b578d3Smrg  ;;
1641432b578d3Smrg
1641532b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1641632b578d3Smrg  version_type=freebsd-elf
1641732b578d3Smrg  need_lib_prefix=no
1641832b578d3Smrg  need_version=no
1641932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1642032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1642132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1642232b578d3Smrg  hardcode_into_libs=yes
1642332b578d3Smrg  if test "$with_gnu_ld" = yes; then
1642432b578d3Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1642532b578d3Smrg    shlibpath_overrides_runpath=no
1642632b578d3Smrg  else
1642732b578d3Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1642832b578d3Smrg    shlibpath_overrides_runpath=yes
1642932b578d3Smrg    case $host_os in
1643032b578d3Smrg      sco3.2v5*)
1643132b578d3Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1643232b578d3Smrg	;;
1643332b578d3Smrg    esac
1643432b578d3Smrg  fi
1643532b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1643632b578d3Smrg  ;;
1643732b578d3Smrg
1643832b578d3Smrguts4*)
1643932b578d3Smrg  version_type=linux
1644032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1644132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1644232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1644332b578d3Smrg  ;;
1644432b578d3Smrg
1644532b578d3Smrg*)
1644632b578d3Smrg  dynamic_linker=no
1644732b578d3Smrg  ;;
1644832b578d3Smrgesac
164492a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
164502a51b5beSmrg$as_echo "$dynamic_linker" >&6; }
1645132b578d3Smrgtest "$dynamic_linker" = no && can_build_shared=no
1645232b578d3Smrg
164532a51b5beSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
164542a51b5beSmrg  $as_echo_n "(cached) " >&6
164552a51b5beSmrgelse
164562a51b5beSmrg  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
164572a51b5beSmrgfi
164582a51b5beSmrg
164592a51b5beSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
164602a51b5beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
164612a51b5beSmrg  $as_echo_n "(cached) " >&6
164622a51b5beSmrgelse
164632a51b5beSmrg  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
164642a51b5beSmrgfi
164652a51b5beSmrg
164662a51b5beSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
164672a51b5beSmrg
1646832b578d3Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1646932b578d3Smrgif test "$GCC" = yes; then
1647032b578d3Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1647132b578d3Smrgfi
1647232b578d3Smrg
164732a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
164742a51b5beSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1647532b578d3Smrghardcode_action_F77=
1647632b578d3Smrgif test -n "$hardcode_libdir_flag_spec_F77" || \
1647732b578d3Smrg   test -n "$runpath_var_F77" || \
1647832b578d3Smrg   test "X$hardcode_automatic_F77" = "Xyes" ; then
1647932b578d3Smrg
1648032b578d3Smrg  # We can hardcode non-existant directories.
1648132b578d3Smrg  if test "$hardcode_direct_F77" != no &&
1648232b578d3Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1648332b578d3Smrg     # have to relink, otherwise we might link with an installed library
1648432b578d3Smrg     # when we should be linking with a yet-to-be-installed one
1648532b578d3Smrg     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
1648632b578d3Smrg     test "$hardcode_minus_L_F77" != no; then
1648732b578d3Smrg    # Linking always hardcodes the temporary library directory.
1648832b578d3Smrg    hardcode_action_F77=relink
1648932b578d3Smrg  else
1649032b578d3Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1649132b578d3Smrg    hardcode_action_F77=immediate
1649232b578d3Smrg  fi
1649332b578d3Smrgelse
1649432b578d3Smrg  # We cannot hardcode anything, or else we can only hardcode existing
1649532b578d3Smrg  # directories.
1649632b578d3Smrg  hardcode_action_F77=unsupported
1649732b578d3Smrgfi
164982a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
164992a51b5beSmrg$as_echo "$hardcode_action_F77" >&6; }
1650032b578d3Smrg
1650132b578d3Smrgif test "$hardcode_action_F77" = relink; then
1650232b578d3Smrg  # Fast installation is not supported
1650332b578d3Smrg  enable_fast_install=no
1650432b578d3Smrgelif test "$shlibpath_overrides_runpath" = yes ||
1650532b578d3Smrg     test "$enable_shared" = no; then
1650632b578d3Smrg  # Fast installation is not necessary
1650732b578d3Smrg  enable_fast_install=needless
1650832b578d3Smrgfi
1650932b578d3Smrg
1651032b578d3Smrg
1651132b578d3Smrg# The else clause should only fire when bootstrapping the
1651232b578d3Smrg# libtool distribution, otherwise you forgot to ship ltmain.sh
1651332b578d3Smrg# with your package, and you will get complaints that there are
1651432b578d3Smrg# no rules to generate ltmain.sh.
1651532b578d3Smrgif test -f "$ltmain"; then
1651632b578d3Smrg  # See if we are running on zsh, and set the options which allow our commands through
1651732b578d3Smrg  # without removal of \ escapes.
1651832b578d3Smrg  if test -n "${ZSH_VERSION+set}" ; then
1651932b578d3Smrg    setopt NO_GLOB_SUBST
1652032b578d3Smrg  fi
1652132b578d3Smrg  # Now quote all the things that may contain metacharacters while being
1652232b578d3Smrg  # careful not to overquote the AC_SUBSTed values.  We take copies of the
1652332b578d3Smrg  # variables and quote the copies for generation of the libtool script.
1652432b578d3Smrg  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1652532b578d3Smrg    SED SHELL STRIP \
1652632b578d3Smrg    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1652732b578d3Smrg    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1652832b578d3Smrg    deplibs_check_method reload_flag reload_cmds need_locks \
1652932b578d3Smrg    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1653032b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address \
1653132b578d3Smrg    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1653232b578d3Smrg    old_postinstall_cmds old_postuninstall_cmds \
1653332b578d3Smrg    compiler_F77 \
1653432b578d3Smrg    CC_F77 \
1653532b578d3Smrg    LD_F77 \
1653632b578d3Smrg    lt_prog_compiler_wl_F77 \
1653732b578d3Smrg    lt_prog_compiler_pic_F77 \
1653832b578d3Smrg    lt_prog_compiler_static_F77 \
1653932b578d3Smrg    lt_prog_compiler_no_builtin_flag_F77 \
1654032b578d3Smrg    export_dynamic_flag_spec_F77 \
1654132b578d3Smrg    thread_safe_flag_spec_F77 \
1654232b578d3Smrg    whole_archive_flag_spec_F77 \
1654332b578d3Smrg    enable_shared_with_static_runtimes_F77 \
1654432b578d3Smrg    old_archive_cmds_F77 \
1654532b578d3Smrg    old_archive_from_new_cmds_F77 \
1654632b578d3Smrg    predep_objects_F77 \
1654732b578d3Smrg    postdep_objects_F77 \
1654832b578d3Smrg    predeps_F77 \
1654932b578d3Smrg    postdeps_F77 \
1655032b578d3Smrg    compiler_lib_search_path_F77 \
165512a51b5beSmrg    compiler_lib_search_dirs_F77 \
1655232b578d3Smrg    archive_cmds_F77 \
1655332b578d3Smrg    archive_expsym_cmds_F77 \
1655432b578d3Smrg    postinstall_cmds_F77 \
1655532b578d3Smrg    postuninstall_cmds_F77 \
1655632b578d3Smrg    old_archive_from_expsyms_cmds_F77 \
1655732b578d3Smrg    allow_undefined_flag_F77 \
1655832b578d3Smrg    no_undefined_flag_F77 \
1655932b578d3Smrg    export_symbols_cmds_F77 \
1656032b578d3Smrg    hardcode_libdir_flag_spec_F77 \
1656132b578d3Smrg    hardcode_libdir_flag_spec_ld_F77 \
1656232b578d3Smrg    hardcode_libdir_separator_F77 \
1656332b578d3Smrg    hardcode_automatic_F77 \
1656432b578d3Smrg    module_cmds_F77 \
1656532b578d3Smrg    module_expsym_cmds_F77 \
1656632b578d3Smrg    lt_cv_prog_compiler_c_o_F77 \
165672a51b5beSmrg    fix_srcfile_path_F77 \
1656832b578d3Smrg    exclude_expsyms_F77 \
1656932b578d3Smrg    include_expsyms_F77; do
1657032b578d3Smrg
1657132b578d3Smrg    case $var in
1657232b578d3Smrg    old_archive_cmds_F77 | \
1657332b578d3Smrg    old_archive_from_new_cmds_F77 | \
1657432b578d3Smrg    archive_cmds_F77 | \
1657532b578d3Smrg    archive_expsym_cmds_F77 | \
1657632b578d3Smrg    module_cmds_F77 | \
1657732b578d3Smrg    module_expsym_cmds_F77 | \
1657832b578d3Smrg    old_archive_from_expsyms_cmds_F77 | \
1657932b578d3Smrg    export_symbols_cmds_F77 | \
1658032b578d3Smrg    extract_expsyms_cmds | reload_cmds | finish_cmds | \
1658132b578d3Smrg    postinstall_cmds | postuninstall_cmds | \
1658232b578d3Smrg    old_postinstall_cmds | old_postuninstall_cmds | \
1658332b578d3Smrg    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1658432b578d3Smrg      # Double-quote double-evaled strings.
1658532b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1658632b578d3Smrg      ;;
1658732b578d3Smrg    *)
1658832b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1658932b578d3Smrg      ;;
1659032b578d3Smrg    esac
1659132b578d3Smrg  done
1659232b578d3Smrg
1659332b578d3Smrg  case $lt_echo in
1659432b578d3Smrg  *'\$0 --fallback-echo"')
1659532b578d3Smrg    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1659632b578d3Smrg    ;;
1659732b578d3Smrg  esac
1659832b578d3Smrg
1659932b578d3Smrgcfgfile="$ofile"
1660032b578d3Smrg
1660132b578d3Smrg  cat <<__EOF__ >> "$cfgfile"
1660232b578d3Smrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1660332b578d3Smrg
1660432b578d3Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1660532b578d3Smrg
1660632b578d3Smrg# Shell to use when invoking shell scripts.
1660732b578d3SmrgSHELL=$lt_SHELL
1660832b578d3Smrg
1660932b578d3Smrg# Whether or not to build shared libraries.
1661032b578d3Smrgbuild_libtool_libs=$enable_shared
1661132b578d3Smrg
1661232b578d3Smrg# Whether or not to build static libraries.
1661332b578d3Smrgbuild_old_libs=$enable_static
1661432b578d3Smrg
1661532b578d3Smrg# Whether or not to add -lc for building shared libraries.
1661632b578d3Smrgbuild_libtool_need_lc=$archive_cmds_need_lc_F77
1661732b578d3Smrg
1661832b578d3Smrg# Whether or not to disallow shared libs when runtime libs are static
1661932b578d3Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
1662032b578d3Smrg
1662132b578d3Smrg# Whether or not to optimize for fast installation.
1662232b578d3Smrgfast_install=$enable_fast_install
1662332b578d3Smrg
1662432b578d3Smrg# The host system.
1662532b578d3Smrghost_alias=$host_alias
1662632b578d3Smrghost=$host
1662732b578d3Smrghost_os=$host_os
1662832b578d3Smrg
1662932b578d3Smrg# The build system.
1663032b578d3Smrgbuild_alias=$build_alias
1663132b578d3Smrgbuild=$build
1663232b578d3Smrgbuild_os=$build_os
1663332b578d3Smrg
1663432b578d3Smrg# An echo program that does not interpret backslashes.
1663532b578d3Smrgecho=$lt_echo
1663632b578d3Smrg
1663732b578d3Smrg# The archiver.
1663832b578d3SmrgAR=$lt_AR
1663932b578d3SmrgAR_FLAGS=$lt_AR_FLAGS
1664032b578d3Smrg
1664132b578d3Smrg# A C compiler.
1664232b578d3SmrgLTCC=$lt_LTCC
1664332b578d3Smrg
1664432b578d3Smrg# LTCC compiler flags.
1664532b578d3SmrgLTCFLAGS=$lt_LTCFLAGS
1664632b578d3Smrg
1664732b578d3Smrg# A language-specific compiler.
1664832b578d3SmrgCC=$lt_compiler_F77
1664932b578d3Smrg
1665032b578d3Smrg# Is the compiler the GNU C compiler?
1665132b578d3Smrgwith_gcc=$GCC_F77
1665232b578d3Smrg
1665332b578d3Smrg# An ERE matcher.
1665432b578d3SmrgEGREP=$lt_EGREP
1665532b578d3Smrg
1665632b578d3Smrg# The linker used to build libraries.
1665732b578d3SmrgLD=$lt_LD_F77
1665832b578d3Smrg
1665932b578d3Smrg# Whether we need hard or soft links.
1666032b578d3SmrgLN_S=$lt_LN_S
1666132b578d3Smrg
1666232b578d3Smrg# A BSD-compatible nm program.
1666332b578d3SmrgNM=$lt_NM
1666432b578d3Smrg
1666532b578d3Smrg# A symbol stripping program
1666632b578d3SmrgSTRIP=$lt_STRIP
1666732b578d3Smrg
1666832b578d3Smrg# Used to examine libraries when file_magic_cmd begins "file"
1666932b578d3SmrgMAGIC_CMD=$MAGIC_CMD
1667032b578d3Smrg
1667132b578d3Smrg# Used on cygwin: DLL creation program.
1667232b578d3SmrgDLLTOOL="$DLLTOOL"
1667332b578d3Smrg
1667432b578d3Smrg# Used on cygwin: object dumper.
1667532b578d3SmrgOBJDUMP="$OBJDUMP"
1667632b578d3Smrg
1667732b578d3Smrg# Used on cygwin: assembler.
1667832b578d3SmrgAS="$AS"
1667932b578d3Smrg
1668032b578d3Smrg# The name of the directory that contains temporary libtool files.
1668132b578d3Smrgobjdir=$objdir
1668232b578d3Smrg
1668332b578d3Smrg# How to create reloadable object files.
1668432b578d3Smrgreload_flag=$lt_reload_flag
1668532b578d3Smrgreload_cmds=$lt_reload_cmds
1668632b578d3Smrg
1668732b578d3Smrg# How to pass a linker flag through the compiler.
1668832b578d3Smrgwl=$lt_lt_prog_compiler_wl_F77
1668932b578d3Smrg
1669032b578d3Smrg# Object file suffix (normally "o").
1669132b578d3Smrgobjext="$ac_objext"
1669232b578d3Smrg
1669332b578d3Smrg# Old archive suffix (normally "a").
1669432b578d3Smrglibext="$libext"
1669532b578d3Smrg
1669632b578d3Smrg# Shared library suffix (normally ".so").
1669732b578d3Smrgshrext_cmds='$shrext_cmds'
1669832b578d3Smrg
1669932b578d3Smrg# Executable file suffix (normally "").
1670032b578d3Smrgexeext="$exeext"
1670132b578d3Smrg
1670232b578d3Smrg# Additional compiler flags for building library objects.
1670332b578d3Smrgpic_flag=$lt_lt_prog_compiler_pic_F77
1670432b578d3Smrgpic_mode=$pic_mode
1670532b578d3Smrg
1670632b578d3Smrg# What is the maximum length of a command?
1670732b578d3Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1670832b578d3Smrg
1670932b578d3Smrg# Does compiler simultaneously support -c and -o options?
1671032b578d3Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
1671132b578d3Smrg
1671232b578d3Smrg# Must we lock files when doing compilation?
1671332b578d3Smrgneed_locks=$lt_need_locks
1671432b578d3Smrg
1671532b578d3Smrg# Do we need the lib prefix for modules?
1671632b578d3Smrgneed_lib_prefix=$need_lib_prefix
1671732b578d3Smrg
1671832b578d3Smrg# Do we need a version for libraries?
1671932b578d3Smrgneed_version=$need_version
1672032b578d3Smrg
1672132b578d3Smrg# Whether dlopen is supported.
1672232b578d3Smrgdlopen_support=$enable_dlopen
1672332b578d3Smrg
1672432b578d3Smrg# Whether dlopen of programs is supported.
1672532b578d3Smrgdlopen_self=$enable_dlopen_self
1672632b578d3Smrg
1672732b578d3Smrg# Whether dlopen of statically linked programs is supported.
1672832b578d3Smrgdlopen_self_static=$enable_dlopen_self_static
1672932b578d3Smrg
1673032b578d3Smrg# Compiler flag to prevent dynamic linking.
1673132b578d3Smrglink_static_flag=$lt_lt_prog_compiler_static_F77
1673232b578d3Smrg
1673332b578d3Smrg# Compiler flag to turn off builtin functions.
1673432b578d3Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
1673532b578d3Smrg
1673632b578d3Smrg# Compiler flag to allow reflexive dlopens.
1673732b578d3Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
1673832b578d3Smrg
1673932b578d3Smrg# Compiler flag to generate shared objects directly from archives.
1674032b578d3Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
1674132b578d3Smrg
1674232b578d3Smrg# Compiler flag to generate thread-safe objects.
1674332b578d3Smrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
1674432b578d3Smrg
1674532b578d3Smrg# Library versioning type.
1674632b578d3Smrgversion_type=$version_type
1674732b578d3Smrg
1674832b578d3Smrg# Format of library name prefix.
1674932b578d3Smrglibname_spec=$lt_libname_spec
1675032b578d3Smrg
1675132b578d3Smrg# List of archive names.  First name is the real one, the rest are links.
1675232b578d3Smrg# The last name is the one that the linker finds with -lNAME.
1675332b578d3Smrglibrary_names_spec=$lt_library_names_spec
1675432b578d3Smrg
1675532b578d3Smrg# The coded name of the library, if different from the real name.
1675632b578d3Smrgsoname_spec=$lt_soname_spec
1675732b578d3Smrg
1675832b578d3Smrg# Commands used to build and install an old-style archive.
1675932b578d3SmrgRANLIB=$lt_RANLIB
1676032b578d3Smrgold_archive_cmds=$lt_old_archive_cmds_F77
1676132b578d3Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1676232b578d3Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1676332b578d3Smrg
1676432b578d3Smrg# Create an old-style archive from a shared archive.
1676532b578d3Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
1676632b578d3Smrg
1676732b578d3Smrg# Create a temporary old-style archive to link instead of a shared archive.
1676832b578d3Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
1676932b578d3Smrg
1677032b578d3Smrg# Commands used to build and install a shared archive.
1677132b578d3Smrgarchive_cmds=$lt_archive_cmds_F77
1677232b578d3Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds_F77
1677332b578d3Smrgpostinstall_cmds=$lt_postinstall_cmds
1677432b578d3Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1677532b578d3Smrg
1677632b578d3Smrg# Commands used to build a loadable module (assumed same as above if empty)
1677732b578d3Smrgmodule_cmds=$lt_module_cmds_F77
1677832b578d3Smrgmodule_expsym_cmds=$lt_module_expsym_cmds_F77
1677932b578d3Smrg
1678032b578d3Smrg# Commands to strip libraries.
1678132b578d3Smrgold_striplib=$lt_old_striplib
1678232b578d3Smrgstriplib=$lt_striplib
1678332b578d3Smrg
1678432b578d3Smrg# Dependencies to place before the objects being linked to create a
1678532b578d3Smrg# shared library.
1678632b578d3Smrgpredep_objects=$lt_predep_objects_F77
1678732b578d3Smrg
1678832b578d3Smrg# Dependencies to place after the objects being linked to create a
1678932b578d3Smrg# shared library.
1679032b578d3Smrgpostdep_objects=$lt_postdep_objects_F77
1679132b578d3Smrg
1679232b578d3Smrg# Dependencies to place before the objects being linked to create a
1679332b578d3Smrg# shared library.
1679432b578d3Smrgpredeps=$lt_predeps_F77
1679532b578d3Smrg
1679632b578d3Smrg# Dependencies to place after the objects being linked to create a
1679732b578d3Smrg# shared library.
1679832b578d3Smrgpostdeps=$lt_postdeps_F77
1679932b578d3Smrg
168002a51b5beSmrg# The directories searched by this compiler when creating a shared
168012a51b5beSmrg# library
168022a51b5beSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
168032a51b5beSmrg
1680432b578d3Smrg# The library search path used internally by the compiler when linking
1680532b578d3Smrg# a shared library.
1680632b578d3Smrgcompiler_lib_search_path=$lt_compiler_lib_search_path_F77
1680732b578d3Smrg
1680832b578d3Smrg# Method to check whether dependent libraries are shared objects.
1680932b578d3Smrgdeplibs_check_method=$lt_deplibs_check_method
1681032b578d3Smrg
1681132b578d3Smrg# Command to use when deplibs_check_method == file_magic.
1681232b578d3Smrgfile_magic_cmd=$lt_file_magic_cmd
1681332b578d3Smrg
1681432b578d3Smrg# Flag that allows shared libraries with undefined symbols to be built.
1681532b578d3Smrgallow_undefined_flag=$lt_allow_undefined_flag_F77
1681632b578d3Smrg
1681732b578d3Smrg# Flag that forces no undefined symbols.
1681832b578d3Smrgno_undefined_flag=$lt_no_undefined_flag_F77
1681932b578d3Smrg
1682032b578d3Smrg# Commands used to finish a libtool library installation in a directory.
1682132b578d3Smrgfinish_cmds=$lt_finish_cmds
1682232b578d3Smrg
1682332b578d3Smrg# Same as above, but a single script fragment to be evaled but not shown.
1682432b578d3Smrgfinish_eval=$lt_finish_eval
1682532b578d3Smrg
1682632b578d3Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1682732b578d3Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1682832b578d3Smrg
1682932b578d3Smrg# Transform the output of nm in a proper C declaration
1683032b578d3Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1683132b578d3Smrg
1683232b578d3Smrg# Transform the output of nm in a C name address pair
1683332b578d3Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1683432b578d3Smrg
1683532b578d3Smrg# This is the shared library runtime path variable.
1683632b578d3Smrgrunpath_var=$runpath_var
1683732b578d3Smrg
1683832b578d3Smrg# This is the shared library path variable.
1683932b578d3Smrgshlibpath_var=$shlibpath_var
1684032b578d3Smrg
1684132b578d3Smrg# Is shlibpath searched before the hard-coded library search path?
1684232b578d3Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1684332b578d3Smrg
1684432b578d3Smrg# How to hardcode a shared library path into an executable.
1684532b578d3Smrghardcode_action=$hardcode_action_F77
1684632b578d3Smrg
1684732b578d3Smrg# Whether we should hardcode library paths into libraries.
1684832b578d3Smrghardcode_into_libs=$hardcode_into_libs
1684932b578d3Smrg
1685032b578d3Smrg# Flag to hardcode \$libdir into a binary during linking.
1685132b578d3Smrg# This must work even if \$libdir does not exist.
1685232b578d3Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
1685332b578d3Smrg
1685432b578d3Smrg# If ld is used when linking, flag to hardcode \$libdir into
1685532b578d3Smrg# a binary during linking. This must work even if \$libdir does
1685632b578d3Smrg# not exist.
1685732b578d3Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
1685832b578d3Smrg
1685932b578d3Smrg# Whether we need a single -rpath flag with a separated argument.
1686032b578d3Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
1686132b578d3Smrg
1686232b578d3Smrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1686332b578d3Smrg# resulting binary.
1686432b578d3Smrghardcode_direct=$hardcode_direct_F77
1686532b578d3Smrg
1686632b578d3Smrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1686732b578d3Smrg# resulting binary.
1686832b578d3Smrghardcode_minus_L=$hardcode_minus_L_F77
1686932b578d3Smrg
1687032b578d3Smrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1687132b578d3Smrg# the resulting binary.
1687232b578d3Smrghardcode_shlibpath_var=$hardcode_shlibpath_var_F77
1687332b578d3Smrg
1687432b578d3Smrg# Set to yes if building a shared library automatically hardcodes DIR into the library
1687532b578d3Smrg# and all subsequent libraries and executables linked against it.
1687632b578d3Smrghardcode_automatic=$hardcode_automatic_F77
1687732b578d3Smrg
1687832b578d3Smrg# Variables whose values should be saved in libtool wrapper scripts and
1687932b578d3Smrg# restored at relink time.
1688032b578d3Smrgvariables_saved_for_relink="$variables_saved_for_relink"
1688132b578d3Smrg
1688232b578d3Smrg# Whether libtool must link a program against all its dependency libraries.
1688332b578d3Smrglink_all_deplibs=$link_all_deplibs_F77
1688432b578d3Smrg
1688532b578d3Smrg# Compile-time system search path for libraries
1688632b578d3Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1688732b578d3Smrg
1688832b578d3Smrg# Run-time system search path for libraries
1688932b578d3Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1689032b578d3Smrg
1689132b578d3Smrg# Fix the shell variable \$srcfile for the compiler.
168922a51b5beSmrgfix_srcfile_path=$lt_fix_srcfile_path
1689332b578d3Smrg
1689432b578d3Smrg# Set to yes if exported symbols are required.
1689532b578d3Smrgalways_export_symbols=$always_export_symbols_F77
1689632b578d3Smrg
1689732b578d3Smrg# The commands to list exported symbols.
1689832b578d3Smrgexport_symbols_cmds=$lt_export_symbols_cmds_F77
1689932b578d3Smrg
1690032b578d3Smrg# The commands to extract the exported symbol list from a shared archive.
1690132b578d3Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1690232b578d3Smrg
1690332b578d3Smrg# Symbols that should not be listed in the preloaded symbols.
1690432b578d3Smrgexclude_expsyms=$lt_exclude_expsyms_F77
1690532b578d3Smrg
1690632b578d3Smrg# Symbols that must always be exported.
1690732b578d3Smrginclude_expsyms=$lt_include_expsyms_F77
1690832b578d3Smrg
1690932b578d3Smrg# ### END LIBTOOL TAG CONFIG: $tagname
1691032b578d3Smrg
1691132b578d3Smrg__EOF__
1691232b578d3Smrg
1691332b578d3Smrg
1691432b578d3Smrgelse
1691532b578d3Smrg  # If there is no Makefile yet, we rely on a make rule to execute
1691632b578d3Smrg  # `config.status --recheck' to rerun these tests and create the
1691732b578d3Smrg  # libtool script then.
1691832b578d3Smrg  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1691932b578d3Smrg  if test -f "$ltmain_in"; then
1692032b578d3Smrg    test -f Makefile && make "$ltmain"
1692132b578d3Smrg  fi
1692232b578d3Smrgfi
1692332b578d3Smrg
1692432b578d3Smrg
1692532b578d3Smrgac_ext=c
1692632b578d3Smrgac_cpp='$CPP $CPPFLAGS'
1692732b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692832b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692932b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1693032b578d3Smrg
1693132b578d3SmrgCC="$lt_save_CC"
1693232b578d3Smrg
1693332b578d3Smrg	else
1693432b578d3Smrg	  tagname=""
1693532b578d3Smrg	fi
1693632b578d3Smrg	;;
1693732b578d3Smrg
1693832b578d3Smrg      GCJ)
1693932b578d3Smrg	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1694032b578d3Smrg
1694132b578d3Smrg
1694232b578d3Smrg# Source file extension for Java test sources.
1694332b578d3Smrgac_ext=java
1694432b578d3Smrg
1694532b578d3Smrg# Object file extension for compiled Java test sources.
1694632b578d3Smrgobjext=o
1694732b578d3Smrgobjext_GCJ=$objext
1694832b578d3Smrg
1694932b578d3Smrg# Code to be used in simple compile tests
169502a51b5beSmrglt_simple_compile_test_code="class foo {}"
1695132b578d3Smrg
1695232b578d3Smrg# Code to be used in simple link tests
169532a51b5beSmrglt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
1695432b578d3Smrg
1695532b578d3Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1695632b578d3Smrg
1695732b578d3Smrg# If no C compiler was specified, use CC.
1695832b578d3SmrgLTCC=${LTCC-"$CC"}
1695932b578d3Smrg
1696032b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
1696132b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1696232b578d3Smrg
1696332b578d3Smrg# Allow CC to be a program name with arguments.
1696432b578d3Smrgcompiler=$CC
1696532b578d3Smrg
1696632b578d3Smrg
1696732b578d3Smrg# save warnings/boilerplate of simple test code
1696832b578d3Smrgac_outfile=conftest.$ac_objext
169692a51b5beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
1697032b578d3Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1697132b578d3Smrg_lt_compiler_boilerplate=`cat conftest.err`
1697232b578d3Smrg$rm conftest*
1697332b578d3Smrg
1697432b578d3Smrgac_outfile=conftest.$ac_objext
169752a51b5beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
1697632b578d3Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1697732b578d3Smrg_lt_linker_boilerplate=`cat conftest.err`
169782a51b5beSmrg$rm -r conftest*
1697932b578d3Smrg
1698032b578d3Smrg
1698132b578d3Smrg# Allow CC to be a program name with arguments.
1698232b578d3Smrglt_save_CC="$CC"
1698332b578d3SmrgCC=${GCJ-"gcj"}
1698432b578d3Smrgcompiler=$CC
1698532b578d3Smrgcompiler_GCJ=$CC
1698632b578d3Smrgfor cc_temp in $compiler""; do
1698732b578d3Smrg  case $cc_temp in
1698832b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1698932b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1699032b578d3Smrg    \-*) ;;
1699132b578d3Smrg    *) break;;
1699232b578d3Smrg  esac
1699332b578d3Smrgdone
1699432b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1699532b578d3Smrg
1699632b578d3Smrg
1699732b578d3Smrg# GCJ did not exist at the time GCC didn't implicitly link libc in.
1699832b578d3Smrgarchive_cmds_need_lc_GCJ=no
1699932b578d3Smrg
1700032b578d3Smrgold_archive_cmds_GCJ=$old_archive_cmds
1700132b578d3Smrg
1700232b578d3Smrg
1700332b578d3Smrglt_prog_compiler_no_builtin_flag_GCJ=
1700432b578d3Smrg
1700532b578d3Smrgif test "$GCC" = yes; then
1700632b578d3Smrg  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
1700732b578d3Smrg
1700832b578d3Smrg
170092a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
170102a51b5beSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1701132b578d3Smrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
170122a51b5beSmrg  $as_echo_n "(cached) " >&6
1701332b578d3Smrgelse
1701432b578d3Smrg  lt_cv_prog_compiler_rtti_exceptions=no
1701532b578d3Smrg  ac_outfile=conftest.$ac_objext
170162a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1701732b578d3Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
1701832b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1701932b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1702032b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1702132b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1702232b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
1702332b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1702432b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1702532b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1702632b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
170272a51b5beSmrg   (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
1702832b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
1702932b578d3Smrg   ac_status=$?
1703032b578d3Smrg   cat conftest.err >&5
170312a51b5beSmrg   echo "$as_me:17031: \$? = $ac_status" >&5
1703232b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
1703332b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1703432b578d3Smrg     # So say no if there are warnings other than the usual output.
1703532b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1703632b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1703732b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1703832b578d3Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
1703932b578d3Smrg     fi
1704032b578d3Smrg   fi
1704132b578d3Smrg   $rm conftest*
1704232b578d3Smrg
1704332b578d3Smrgfi
170442a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
170452a51b5beSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1704632b578d3Smrg
1704732b578d3Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
1704832b578d3Smrg    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
1704932b578d3Smrgelse
1705032b578d3Smrg    :
1705132b578d3Smrgfi
1705232b578d3Smrg
1705332b578d3Smrgfi
1705432b578d3Smrg
1705532b578d3Smrglt_prog_compiler_wl_GCJ=
1705632b578d3Smrglt_prog_compiler_pic_GCJ=
1705732b578d3Smrglt_prog_compiler_static_GCJ=
1705832b578d3Smrg
170592a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
170602a51b5beSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1706132b578d3Smrg
1706232b578d3Smrg  if test "$GCC" = yes; then
1706332b578d3Smrg    lt_prog_compiler_wl_GCJ='-Wl,'
1706432b578d3Smrg    lt_prog_compiler_static_GCJ='-static'
1706532b578d3Smrg
1706632b578d3Smrg    case $host_os in
1706732b578d3Smrg      aix*)
1706832b578d3Smrg      # All AIX code is PIC.
1706932b578d3Smrg      if test "$host_cpu" = ia64; then
1707032b578d3Smrg	# AIX 5 now supports IA64 processor
1707132b578d3Smrg	lt_prog_compiler_static_GCJ='-Bstatic'
1707232b578d3Smrg      fi
1707332b578d3Smrg      ;;
1707432b578d3Smrg
1707532b578d3Smrg    amigaos*)
1707632b578d3Smrg      # FIXME: we need at least 68020 code to build shared libraries, but
1707732b578d3Smrg      # adding the `-m68020' flag to GCC prevents building anything better,
1707832b578d3Smrg      # like `-m68040'.
1707932b578d3Smrg      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
1708032b578d3Smrg      ;;
1708132b578d3Smrg
170822a51b5beSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1708332b578d3Smrg      # PIC is the default for these OSes.
1708432b578d3Smrg      ;;
1708532b578d3Smrg
170862a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
1708732b578d3Smrg      # This hack is so that the source file can tell whether it is being
1708832b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
170892a51b5beSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
170902a51b5beSmrg      # (--disable-auto-import) libraries
170912a51b5beSmrg
1709232b578d3Smrg      ;;
1709332b578d3Smrg
1709432b578d3Smrg    darwin* | rhapsody*)
1709532b578d3Smrg      # PIC is the default on this platform
1709632b578d3Smrg      # Common symbols not allowed in MH_DYLIB files
1709732b578d3Smrg      lt_prog_compiler_pic_GCJ='-fno-common'
1709832b578d3Smrg      ;;
1709932b578d3Smrg
171002a51b5beSmrg    interix[3-9]*)
1710132b578d3Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1710232b578d3Smrg      # Instead, we relocate shared libraries at runtime.
1710332b578d3Smrg      ;;
1710432b578d3Smrg
1710532b578d3Smrg    msdosdjgpp*)
1710632b578d3Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
1710732b578d3Smrg      # on systems that don't support them.
1710832b578d3Smrg      lt_prog_compiler_can_build_shared_GCJ=no
1710932b578d3Smrg      enable_shared=no
1711032b578d3Smrg      ;;
1711132b578d3Smrg
1711232b578d3Smrg    sysv4*MP*)
1711332b578d3Smrg      if test -d /usr/nec; then
1711432b578d3Smrg	lt_prog_compiler_pic_GCJ=-Kconform_pic
1711532b578d3Smrg      fi
1711632b578d3Smrg      ;;
1711732b578d3Smrg
1711832b578d3Smrg    hpux*)
1711932b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1712032b578d3Smrg      # not for PA HP-UX.
1712132b578d3Smrg      case $host_cpu in
1712232b578d3Smrg      hppa*64*|ia64*)
1712332b578d3Smrg	# +Z the default
1712432b578d3Smrg	;;
1712532b578d3Smrg      *)
1712632b578d3Smrg	lt_prog_compiler_pic_GCJ='-fPIC'
1712732b578d3Smrg	;;
1712832b578d3Smrg      esac
1712932b578d3Smrg      ;;
1713032b578d3Smrg
1713132b578d3Smrg    *)
1713232b578d3Smrg      lt_prog_compiler_pic_GCJ='-fPIC'
1713332b578d3Smrg      ;;
1713432b578d3Smrg    esac
1713532b578d3Smrg  else
1713632b578d3Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
1713732b578d3Smrg    case $host_os in
1713832b578d3Smrg    aix*)
1713932b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1714032b578d3Smrg      if test "$host_cpu" = ia64; then
1714132b578d3Smrg	# AIX 5 now supports IA64 processor
1714232b578d3Smrg	lt_prog_compiler_static_GCJ='-Bstatic'
1714332b578d3Smrg      else
1714432b578d3Smrg	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
1714532b578d3Smrg      fi
1714632b578d3Smrg      ;;
1714732b578d3Smrg      darwin*)
1714832b578d3Smrg        # PIC is the default on this platform
1714932b578d3Smrg        # Common symbols not allowed in MH_DYLIB files
1715032b578d3Smrg       case $cc_basename in
1715132b578d3Smrg         xlc*)
1715232b578d3Smrg         lt_prog_compiler_pic_GCJ='-qnocommon'
1715332b578d3Smrg         lt_prog_compiler_wl_GCJ='-Wl,'
1715432b578d3Smrg         ;;
1715532b578d3Smrg       esac
1715632b578d3Smrg       ;;
1715732b578d3Smrg
171582a51b5beSmrg    mingw* | cygwin* | pw32* | os2*)
1715932b578d3Smrg      # This hack is so that the source file can tell whether it is being
1716032b578d3Smrg      # built for inclusion in a dll (and should export symbols for example).
171612a51b5beSmrg
1716232b578d3Smrg      ;;
1716332b578d3Smrg
1716432b578d3Smrg    hpux9* | hpux10* | hpux11*)
1716532b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1716632b578d3Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1716732b578d3Smrg      # not for PA HP-UX.
1716832b578d3Smrg      case $host_cpu in
1716932b578d3Smrg      hppa*64*|ia64*)
1717032b578d3Smrg	# +Z the default
1717132b578d3Smrg	;;
1717232b578d3Smrg      *)
1717332b578d3Smrg	lt_prog_compiler_pic_GCJ='+Z'
1717432b578d3Smrg	;;
1717532b578d3Smrg      esac
1717632b578d3Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
1717732b578d3Smrg      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
1717832b578d3Smrg      ;;
1717932b578d3Smrg
1718032b578d3Smrg    irix5* | irix6* | nonstopux*)
1718132b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1718232b578d3Smrg      # PIC (with -KPIC) is the default.
1718332b578d3Smrg      lt_prog_compiler_static_GCJ='-non_shared'
1718432b578d3Smrg      ;;
1718532b578d3Smrg
1718632b578d3Smrg    newsos6)
1718732b578d3Smrg      lt_prog_compiler_pic_GCJ='-KPIC'
1718832b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1718932b578d3Smrg      ;;
1719032b578d3Smrg
171912a51b5beSmrg    linux* | k*bsd*-gnu)
1719232b578d3Smrg      case $cc_basename in
1719332b578d3Smrg      icc* | ecc*)
1719432b578d3Smrg	lt_prog_compiler_wl_GCJ='-Wl,'
1719532b578d3Smrg	lt_prog_compiler_pic_GCJ='-KPIC'
1719632b578d3Smrg	lt_prog_compiler_static_GCJ='-static'
1719732b578d3Smrg        ;;
1719832b578d3Smrg      pgcc* | pgf77* | pgf90* | pgf95*)
1719932b578d3Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
1720032b578d3Smrg	# which looks to be a dead project)
1720132b578d3Smrg	lt_prog_compiler_wl_GCJ='-Wl,'
1720232b578d3Smrg	lt_prog_compiler_pic_GCJ='-fpic'
1720332b578d3Smrg	lt_prog_compiler_static_GCJ='-Bstatic'
1720432b578d3Smrg        ;;
1720532b578d3Smrg      ccc*)
1720632b578d3Smrg        lt_prog_compiler_wl_GCJ='-Wl,'
1720732b578d3Smrg        # All Alpha code is PIC.
1720832b578d3Smrg        lt_prog_compiler_static_GCJ='-non_shared'
1720932b578d3Smrg        ;;
172102a51b5beSmrg      *)
172112a51b5beSmrg        case `$CC -V 2>&1 | sed 5q` in
172122a51b5beSmrg	*Sun\ C*)
172132a51b5beSmrg	  # Sun C 5.9
172142a51b5beSmrg	  lt_prog_compiler_pic_GCJ='-KPIC'
172152a51b5beSmrg	  lt_prog_compiler_static_GCJ='-Bstatic'
172162a51b5beSmrg	  lt_prog_compiler_wl_GCJ='-Wl,'
172172a51b5beSmrg	  ;;
172182a51b5beSmrg	*Sun\ F*)
172192a51b5beSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
172202a51b5beSmrg	  lt_prog_compiler_pic_GCJ='-KPIC'
172212a51b5beSmrg	  lt_prog_compiler_static_GCJ='-Bstatic'
172222a51b5beSmrg	  lt_prog_compiler_wl_GCJ=''
172232a51b5beSmrg	  ;;
172242a51b5beSmrg	esac
172252a51b5beSmrg	;;
1722632b578d3Smrg      esac
1722732b578d3Smrg      ;;
1722832b578d3Smrg
1722932b578d3Smrg    osf3* | osf4* | osf5*)
1723032b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1723132b578d3Smrg      # All OSF/1 code is PIC.
1723232b578d3Smrg      lt_prog_compiler_static_GCJ='-non_shared'
1723332b578d3Smrg      ;;
1723432b578d3Smrg
172352a51b5beSmrg    rdos*)
172362a51b5beSmrg      lt_prog_compiler_static_GCJ='-non_shared'
172372a51b5beSmrg      ;;
172382a51b5beSmrg
1723932b578d3Smrg    solaris*)
1724032b578d3Smrg      lt_prog_compiler_pic_GCJ='-KPIC'
1724132b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1724232b578d3Smrg      case $cc_basename in
1724332b578d3Smrg      f77* | f90* | f95*)
1724432b578d3Smrg	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
1724532b578d3Smrg      *)
1724632b578d3Smrg	lt_prog_compiler_wl_GCJ='-Wl,';;
1724732b578d3Smrg      esac
1724832b578d3Smrg      ;;
1724932b578d3Smrg
1725032b578d3Smrg    sunos4*)
1725132b578d3Smrg      lt_prog_compiler_wl_GCJ='-Qoption ld '
1725232b578d3Smrg      lt_prog_compiler_pic_GCJ='-PIC'
1725332b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1725432b578d3Smrg      ;;
1725532b578d3Smrg
1725632b578d3Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
1725732b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1725832b578d3Smrg      lt_prog_compiler_pic_GCJ='-KPIC'
1725932b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1726032b578d3Smrg      ;;
1726132b578d3Smrg
1726232b578d3Smrg    sysv4*MP*)
1726332b578d3Smrg      if test -d /usr/nec ;then
1726432b578d3Smrg	lt_prog_compiler_pic_GCJ='-Kconform_pic'
1726532b578d3Smrg	lt_prog_compiler_static_GCJ='-Bstatic'
1726632b578d3Smrg      fi
1726732b578d3Smrg      ;;
1726832b578d3Smrg
1726932b578d3Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1727032b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1727132b578d3Smrg      lt_prog_compiler_pic_GCJ='-KPIC'
1727232b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1727332b578d3Smrg      ;;
1727432b578d3Smrg
1727532b578d3Smrg    unicos*)
1727632b578d3Smrg      lt_prog_compiler_wl_GCJ='-Wl,'
1727732b578d3Smrg      lt_prog_compiler_can_build_shared_GCJ=no
1727832b578d3Smrg      ;;
1727932b578d3Smrg
1728032b578d3Smrg    uts4*)
1728132b578d3Smrg      lt_prog_compiler_pic_GCJ='-pic'
1728232b578d3Smrg      lt_prog_compiler_static_GCJ='-Bstatic'
1728332b578d3Smrg      ;;
1728432b578d3Smrg
1728532b578d3Smrg    *)
1728632b578d3Smrg      lt_prog_compiler_can_build_shared_GCJ=no
1728732b578d3Smrg      ;;
1728832b578d3Smrg    esac
1728932b578d3Smrg  fi
1729032b578d3Smrg
172912a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
172922a51b5beSmrg$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
1729332b578d3Smrg
1729432b578d3Smrg#
1729532b578d3Smrg# Check to make sure the PIC flag actually works.
1729632b578d3Smrg#
1729732b578d3Smrgif test -n "$lt_prog_compiler_pic_GCJ"; then
1729832b578d3Smrg
172992a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
173002a51b5beSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
173012a51b5beSmrgif test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
173022a51b5beSmrg  $as_echo_n "(cached) " >&6
1730332b578d3Smrgelse
173042a51b5beSmrg  lt_cv_prog_compiler_pic_works_GCJ=no
1730532b578d3Smrg  ac_outfile=conftest.$ac_objext
173062a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1730732b578d3Smrg   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
1730832b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1730932b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1731032b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1731132b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1731232b578d3Smrg   # The option is referenced via a variable to avoid confusing sed.
1731332b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1731432b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1731532b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1731632b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
173172a51b5beSmrg   (eval echo "\"\$as_me:17317: $lt_compile\"" >&5)
1731832b578d3Smrg   (eval "$lt_compile" 2>conftest.err)
1731932b578d3Smrg   ac_status=$?
1732032b578d3Smrg   cat conftest.err >&5
173212a51b5beSmrg   echo "$as_me:17321: \$? = $ac_status" >&5
1732232b578d3Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
1732332b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1732432b578d3Smrg     # So say no if there are warnings other than the usual output.
1732532b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1732632b578d3Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1732732b578d3Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
173282a51b5beSmrg       lt_cv_prog_compiler_pic_works_GCJ=yes
1732932b578d3Smrg     fi
1733032b578d3Smrg   fi
1733132b578d3Smrg   $rm conftest*
1733232b578d3Smrg
1733332b578d3Smrgfi
173342a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
173352a51b5beSmrg$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
1733632b578d3Smrg
173372a51b5beSmrgif test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
1733832b578d3Smrg    case $lt_prog_compiler_pic_GCJ in
1733932b578d3Smrg     "" | " "*) ;;
1734032b578d3Smrg     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
1734132b578d3Smrg     esac
1734232b578d3Smrgelse
1734332b578d3Smrg    lt_prog_compiler_pic_GCJ=
1734432b578d3Smrg     lt_prog_compiler_can_build_shared_GCJ=no
1734532b578d3Smrgfi
1734632b578d3Smrg
1734732b578d3Smrgfi
1734832b578d3Smrgcase $host_os in
1734932b578d3Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
1735032b578d3Smrg  *djgpp*)
1735132b578d3Smrg    lt_prog_compiler_pic_GCJ=
1735232b578d3Smrg    ;;
1735332b578d3Smrg  *)
1735432b578d3Smrg    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
1735532b578d3Smrg    ;;
1735632b578d3Smrgesac
1735732b578d3Smrg
1735832b578d3Smrg#
1735932b578d3Smrg# Check to make sure the static flag actually works.
1736032b578d3Smrg#
1736132b578d3Smrgwl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
173622a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
173632a51b5beSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
173642a51b5beSmrgif test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
173652a51b5beSmrg  $as_echo_n "(cached) " >&6
1736632b578d3Smrgelse
173672a51b5beSmrg  lt_cv_prog_compiler_static_works_GCJ=no
1736832b578d3Smrg   save_LDFLAGS="$LDFLAGS"
1736932b578d3Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
173702a51b5beSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1737132b578d3Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1737232b578d3Smrg     # The linker can only warn and ignore the option if not recognized
1737332b578d3Smrg     # So say no if there are warnings
1737432b578d3Smrg     if test -s conftest.err; then
1737532b578d3Smrg       # Append any errors to the config.log.
1737632b578d3Smrg       cat conftest.err 1>&5
1737732b578d3Smrg       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1737832b578d3Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1737932b578d3Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
173802a51b5beSmrg         lt_cv_prog_compiler_static_works_GCJ=yes
1738132b578d3Smrg       fi
1738232b578d3Smrg     else
173832a51b5beSmrg       lt_cv_prog_compiler_static_works_GCJ=yes
1738432b578d3Smrg     fi
1738532b578d3Smrg   fi
173862a51b5beSmrg   $rm -r conftest*
1738732b578d3Smrg   LDFLAGS="$save_LDFLAGS"
1738832b578d3Smrg
1738932b578d3Smrgfi
173902a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
173912a51b5beSmrg$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
1739232b578d3Smrg
173932a51b5beSmrgif test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
1739432b578d3Smrg    :
1739532b578d3Smrgelse
1739632b578d3Smrg    lt_prog_compiler_static_GCJ=
1739732b578d3Smrgfi
1739832b578d3Smrg
1739932b578d3Smrg
174002a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
174012a51b5beSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1740232b578d3Smrgif test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
174032a51b5beSmrg  $as_echo_n "(cached) " >&6
1740432b578d3Smrgelse
1740532b578d3Smrg  lt_cv_prog_compiler_c_o_GCJ=no
1740632b578d3Smrg   $rm -r conftest 2>/dev/null
1740732b578d3Smrg   mkdir conftest
1740832b578d3Smrg   cd conftest
1740932b578d3Smrg   mkdir out
174102a51b5beSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1741132b578d3Smrg
1741232b578d3Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
1741332b578d3Smrg   # Insert the option either (1) after the last *FLAGS variable, or
1741432b578d3Smrg   # (2) before a word containing "conftest.", or (3) at the end.
1741532b578d3Smrg   # Note that $ac_compile itself does not contain backslashes and begins
1741632b578d3Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
1741732b578d3Smrg   lt_compile=`echo "$ac_compile" | $SED \
1741832b578d3Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1741932b578d3Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1742032b578d3Smrg   -e 's:$: $lt_compiler_flag:'`
174212a51b5beSmrg   (eval echo "\"\$as_me:17421: $lt_compile\"" >&5)
1742232b578d3Smrg   (eval "$lt_compile" 2>out/conftest.err)
1742332b578d3Smrg   ac_status=$?
1742432b578d3Smrg   cat out/conftest.err >&5
174252a51b5beSmrg   echo "$as_me:17425: \$? = $ac_status" >&5
1742632b578d3Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1742732b578d3Smrg   then
1742832b578d3Smrg     # The compiler can only warn and ignore the option if not recognized
1742932b578d3Smrg     # So say no if there are warnings
1743032b578d3Smrg     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1743132b578d3Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1743232b578d3Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1743332b578d3Smrg       lt_cv_prog_compiler_c_o_GCJ=yes
1743432b578d3Smrg     fi
1743532b578d3Smrg   fi
1743632b578d3Smrg   chmod u+w . 2>&5
1743732b578d3Smrg   $rm conftest*
1743832b578d3Smrg   # SGI C++ compiler will create directory out/ii_files/ for
1743932b578d3Smrg   # template instantiation
1744032b578d3Smrg   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1744132b578d3Smrg   $rm out/* && rmdir out
1744232b578d3Smrg   cd ..
1744332b578d3Smrg   rmdir conftest
1744432b578d3Smrg   $rm conftest*
1744532b578d3Smrg
1744632b578d3Smrgfi
174472a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
174482a51b5beSmrg$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1744932b578d3Smrg
1745032b578d3Smrg
1745132b578d3Smrghard_links="nottested"
1745232b578d3Smrgif test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
1745332b578d3Smrg  # do not overwrite the value of need_locks provided by the user
174542a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
174552a51b5beSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
1745632b578d3Smrg  hard_links=yes
1745732b578d3Smrg  $rm conftest*
1745832b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1745932b578d3Smrg  touch conftest.a
1746032b578d3Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
1746132b578d3Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
174622a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
174632a51b5beSmrg$as_echo "$hard_links" >&6; }
1746432b578d3Smrg  if test "$hard_links" = no; then
174652a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
174662a51b5beSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1746732b578d3Smrg    need_locks=warn
1746832b578d3Smrg  fi
1746932b578d3Smrgelse
1747032b578d3Smrg  need_locks=no
1747132b578d3Smrgfi
1747232b578d3Smrg
174732a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
174742a51b5beSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1747532b578d3Smrg
1747632b578d3Smrg  runpath_var=
1747732b578d3Smrg  allow_undefined_flag_GCJ=
1747832b578d3Smrg  enable_shared_with_static_runtimes_GCJ=no
1747932b578d3Smrg  archive_cmds_GCJ=
1748032b578d3Smrg  archive_expsym_cmds_GCJ=
1748132b578d3Smrg  old_archive_From_new_cmds_GCJ=
1748232b578d3Smrg  old_archive_from_expsyms_cmds_GCJ=
1748332b578d3Smrg  export_dynamic_flag_spec_GCJ=
1748432b578d3Smrg  whole_archive_flag_spec_GCJ=
1748532b578d3Smrg  thread_safe_flag_spec_GCJ=
1748632b578d3Smrg  hardcode_libdir_flag_spec_GCJ=
1748732b578d3Smrg  hardcode_libdir_flag_spec_ld_GCJ=
1748832b578d3Smrg  hardcode_libdir_separator_GCJ=
1748932b578d3Smrg  hardcode_direct_GCJ=no
1749032b578d3Smrg  hardcode_minus_L_GCJ=no
1749132b578d3Smrg  hardcode_shlibpath_var_GCJ=unsupported
1749232b578d3Smrg  link_all_deplibs_GCJ=unknown
1749332b578d3Smrg  hardcode_automatic_GCJ=no
1749432b578d3Smrg  module_cmds_GCJ=
1749532b578d3Smrg  module_expsym_cmds_GCJ=
1749632b578d3Smrg  always_export_symbols_GCJ=no
1749732b578d3Smrg  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1749832b578d3Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
1749932b578d3Smrg  # included in the symbol list
1750032b578d3Smrg  include_expsyms_GCJ=
1750132b578d3Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
1750232b578d3Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
1750332b578d3Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1750432b578d3Smrg  # as well as any symbol that contains `d'.
175052a51b5beSmrg  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1750632b578d3Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1750732b578d3Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
1750832b578d3Smrg  # the symbol is explicitly referenced.  Since portable code cannot
1750932b578d3Smrg  # rely on this symbol name, it's probably fine to never include it in
1751032b578d3Smrg  # preloaded symbol tables.
175112a51b5beSmrg  # Exclude shared library initialization/finalization symbols.
1751232b578d3Smrg  extract_expsyms_cmds=
1751332b578d3Smrg  # Just being paranoid about ensuring that cc_basename is set.
1751432b578d3Smrg  for cc_temp in $compiler""; do
1751532b578d3Smrg  case $cc_temp in
1751632b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1751732b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1751832b578d3Smrg    \-*) ;;
1751932b578d3Smrg    *) break;;
1752032b578d3Smrg  esac
1752132b578d3Smrgdone
1752232b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1752332b578d3Smrg
1752432b578d3Smrg  case $host_os in
1752532b578d3Smrg  cygwin* | mingw* | pw32*)
1752632b578d3Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
1752732b578d3Smrg    # When not using gcc, we currently assume that we are using
1752832b578d3Smrg    # Microsoft Visual C++.
1752932b578d3Smrg    if test "$GCC" != yes; then
1753032b578d3Smrg      with_gnu_ld=no
1753132b578d3Smrg    fi
1753232b578d3Smrg    ;;
1753332b578d3Smrg  interix*)
1753432b578d3Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
1753532b578d3Smrg    with_gnu_ld=yes
1753632b578d3Smrg    ;;
1753732b578d3Smrg  openbsd*)
1753832b578d3Smrg    with_gnu_ld=no
1753932b578d3Smrg    ;;
1754032b578d3Smrg  esac
1754132b578d3Smrg
1754232b578d3Smrg  ld_shlibs_GCJ=yes
1754332b578d3Smrg  if test "$with_gnu_ld" = yes; then
1754432b578d3Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
1754532b578d3Smrg    wlarc='${wl}'
1754632b578d3Smrg
1754732b578d3Smrg    # Set some defaults for GNU ld with shared library support. These
1754832b578d3Smrg    # are reset later if shared libraries are not supported. Putting them
1754932b578d3Smrg    # here allows them to be overridden if necessary.
1755032b578d3Smrg    runpath_var=LD_RUN_PATH
1755132b578d3Smrg    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
1755232b578d3Smrg    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
1755332b578d3Smrg    # ancient GNU ld didn't support --whole-archive et. al.
1755432b578d3Smrg    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1755532b578d3Smrg	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1755632b578d3Smrg      else
1755732b578d3Smrg  	whole_archive_flag_spec_GCJ=
1755832b578d3Smrg    fi
1755932b578d3Smrg    supports_anon_versioning=no
1756032b578d3Smrg    case `$LD -v 2>/dev/null` in
1756132b578d3Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1756232b578d3Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1756332b578d3Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1756432b578d3Smrg      *\ 2.11.*) ;; # other 2.11 versions
1756532b578d3Smrg      *) supports_anon_versioning=yes ;;
1756632b578d3Smrg    esac
1756732b578d3Smrg
1756832b578d3Smrg    # See if GNU ld supports shared libraries.
1756932b578d3Smrg    case $host_os in
175702a51b5beSmrg    aix[3-9]*)
1757132b578d3Smrg      # On AIX/PPC, the GNU linker is very broken
1757232b578d3Smrg      if test "$host_cpu" != ia64; then
1757332b578d3Smrg	ld_shlibs_GCJ=no
1757432b578d3Smrg	cat <<EOF 1>&2
1757532b578d3Smrg
1757632b578d3Smrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1757732b578d3Smrg*** to be unable to reliably create shared libraries on AIX.
1757832b578d3Smrg*** Therefore, libtool is disabling shared libraries support.  If you
1757932b578d3Smrg*** really care for shared libraries, you may want to modify your PATH
1758032b578d3Smrg*** so that a non-GNU linker is found, and then restart.
1758132b578d3Smrg
1758232b578d3SmrgEOF
1758332b578d3Smrg      fi
1758432b578d3Smrg      ;;
1758532b578d3Smrg
1758632b578d3Smrg    amigaos*)
1758732b578d3Smrg      archive_cmds_GCJ='$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)'
1758832b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1758932b578d3Smrg      hardcode_minus_L_GCJ=yes
1759032b578d3Smrg
1759132b578d3Smrg      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1759232b578d3Smrg      # that the semantics of dynamic libraries on AmigaOS, at least up
1759332b578d3Smrg      # to version 4, is to share data among multiple programs linked
1759432b578d3Smrg      # with the same dynamic library.  Since this doesn't match the
1759532b578d3Smrg      # behavior of shared libraries on other platforms, we can't use
1759632b578d3Smrg      # them.
1759732b578d3Smrg      ld_shlibs_GCJ=no
1759832b578d3Smrg      ;;
1759932b578d3Smrg
1760032b578d3Smrg    beos*)
1760132b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1760232b578d3Smrg	allow_undefined_flag_GCJ=unsupported
1760332b578d3Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1760432b578d3Smrg	# support --undefined.  This deserves some investigation.  FIXME
1760532b578d3Smrg	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1760632b578d3Smrg      else
1760732b578d3Smrg	ld_shlibs_GCJ=no
1760832b578d3Smrg      fi
1760932b578d3Smrg      ;;
1761032b578d3Smrg
1761132b578d3Smrg    cygwin* | mingw* | pw32*)
1761232b578d3Smrg      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
1761332b578d3Smrg      # as there is no search path for DLLs.
1761432b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1761532b578d3Smrg      allow_undefined_flag_GCJ=unsupported
1761632b578d3Smrg      always_export_symbols_GCJ=no
1761732b578d3Smrg      enable_shared_with_static_runtimes_GCJ=yes
176182a51b5beSmrg      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1761932b578d3Smrg
1762032b578d3Smrg      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1762132b578d3Smrg        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1762232b578d3Smrg	# If the export-symbols file already is a .def file (1st line
1762332b578d3Smrg	# is EXPORTS), use it as is; otherwise, prepend...
1762432b578d3Smrg	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1762532b578d3Smrg	  cp $export_symbols $output_objdir/$soname.def;
1762632b578d3Smrg	else
1762732b578d3Smrg	  echo EXPORTS > $output_objdir/$soname.def;
1762832b578d3Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
1762932b578d3Smrg	fi~
1763032b578d3Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1763132b578d3Smrg      else
1763232b578d3Smrg	ld_shlibs_GCJ=no
1763332b578d3Smrg      fi
1763432b578d3Smrg      ;;
1763532b578d3Smrg
176362a51b5beSmrg    interix[3-9]*)
1763732b578d3Smrg      hardcode_direct_GCJ=no
1763832b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1763932b578d3Smrg      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1764032b578d3Smrg      export_dynamic_flag_spec_GCJ='${wl}-E'
1764132b578d3Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1764232b578d3Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
1764332b578d3Smrg      # default) and relocated if they conflict, which is a slow very memory
1764432b578d3Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
1764532b578d3Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1764632b578d3Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1764732b578d3Smrg      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1764832b578d3Smrg      archive_expsym_cmds_GCJ='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'
1764932b578d3Smrg      ;;
1765032b578d3Smrg
176512a51b5beSmrg    gnu* | linux* | k*bsd*-gnu)
1765232b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1765332b578d3Smrg	tmp_addflag=
1765432b578d3Smrg	case $cc_basename,$host_cpu in
1765532b578d3Smrg	pgcc*)				# Portland Group C compiler
1765632b578d3Smrg	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1765732b578d3Smrg	  tmp_addflag=' $pic_flag'
1765832b578d3Smrg	  ;;
1765932b578d3Smrg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
1766032b578d3Smrg	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1766132b578d3Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
1766232b578d3Smrg	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
1766332b578d3Smrg	  tmp_addflag=' -i_dynamic' ;;
1766432b578d3Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
1766532b578d3Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
1766632b578d3Smrg	ifc* | ifort*)			# Intel Fortran compiler
1766732b578d3Smrg	  tmp_addflag=' -nofor_main' ;;
1766832b578d3Smrg	esac
176692a51b5beSmrg	case `$CC -V 2>&1 | sed 5q` in
176702a51b5beSmrg	*Sun\ C*)			# Sun C 5.9
176712a51b5beSmrg	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
176722a51b5beSmrg	  tmp_sharedflag='-G' ;;
176732a51b5beSmrg	*Sun\ F*)			# Sun Fortran 8.3
176742a51b5beSmrg	  tmp_sharedflag='-G' ;;
176752a51b5beSmrg	*)
176762a51b5beSmrg	  tmp_sharedflag='-shared' ;;
176772a51b5beSmrg	esac
176782a51b5beSmrg	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1767932b578d3Smrg
1768032b578d3Smrg	if test $supports_anon_versioning = yes; then
1768132b578d3Smrg	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
1768232b578d3Smrg  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1768332b578d3Smrg  $echo "local: *; };" >> $output_objdir/$libname.ver~
176842a51b5beSmrg	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1768532b578d3Smrg	fi
1768632b578d3Smrg      else
1768732b578d3Smrg	ld_shlibs_GCJ=no
1768832b578d3Smrg      fi
1768932b578d3Smrg      ;;
1769032b578d3Smrg
1769132b578d3Smrg    netbsd*)
1769232b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1769332b578d3Smrg	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1769432b578d3Smrg	wlarc=
1769532b578d3Smrg      else
1769632b578d3Smrg	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1769732b578d3Smrg	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1769832b578d3Smrg      fi
1769932b578d3Smrg      ;;
1770032b578d3Smrg
1770132b578d3Smrg    solaris*)
1770232b578d3Smrg      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1770332b578d3Smrg	ld_shlibs_GCJ=no
1770432b578d3Smrg	cat <<EOF 1>&2
1770532b578d3Smrg
1770632b578d3Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1770732b578d3Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
1770832b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
1770932b578d3Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
1771032b578d3Smrg*** your PATH or compiler configuration so that the native linker is
1771132b578d3Smrg*** used, and then restart.
1771232b578d3Smrg
1771332b578d3SmrgEOF
1771432b578d3Smrg      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1771532b578d3Smrg	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1771632b578d3Smrg	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1771732b578d3Smrg      else
1771832b578d3Smrg	ld_shlibs_GCJ=no
1771932b578d3Smrg      fi
1772032b578d3Smrg      ;;
1772132b578d3Smrg
1772232b578d3Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1772332b578d3Smrg      case `$LD -v 2>&1` in
1772432b578d3Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
1772532b578d3Smrg	ld_shlibs_GCJ=no
1772632b578d3Smrg	cat <<_LT_EOF 1>&2
1772732b578d3Smrg
1772832b578d3Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1772932b578d3Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
1773032b578d3Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
1773132b578d3Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
1773232b578d3Smrg*** your PATH or compiler configuration so that the native linker is
1773332b578d3Smrg*** used, and then restart.
1773432b578d3Smrg
1773532b578d3Smrg_LT_EOF
1773632b578d3Smrg	;;
1773732b578d3Smrg	*)
1773832b578d3Smrg	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1773932b578d3Smrg	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1774032b578d3Smrg	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1774132b578d3Smrg	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
1774232b578d3Smrg	  else
1774332b578d3Smrg	    ld_shlibs_GCJ=no
1774432b578d3Smrg	  fi
1774532b578d3Smrg	;;
1774632b578d3Smrg      esac
1774732b578d3Smrg      ;;
1774832b578d3Smrg
1774932b578d3Smrg    sunos4*)
1775032b578d3Smrg      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1775132b578d3Smrg      wlarc=
1775232b578d3Smrg      hardcode_direct_GCJ=yes
1775332b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1775432b578d3Smrg      ;;
1775532b578d3Smrg
1775632b578d3Smrg    *)
1775732b578d3Smrg      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1775832b578d3Smrg	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1775932b578d3Smrg	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1776032b578d3Smrg      else
1776132b578d3Smrg	ld_shlibs_GCJ=no
1776232b578d3Smrg      fi
1776332b578d3Smrg      ;;
1776432b578d3Smrg    esac
1776532b578d3Smrg
1776632b578d3Smrg    if test "$ld_shlibs_GCJ" = no; then
1776732b578d3Smrg      runpath_var=
1776832b578d3Smrg      hardcode_libdir_flag_spec_GCJ=
1776932b578d3Smrg      export_dynamic_flag_spec_GCJ=
1777032b578d3Smrg      whole_archive_flag_spec_GCJ=
1777132b578d3Smrg    fi
1777232b578d3Smrg  else
1777332b578d3Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
1777432b578d3Smrg    case $host_os in
1777532b578d3Smrg    aix3*)
1777632b578d3Smrg      allow_undefined_flag_GCJ=unsupported
1777732b578d3Smrg      always_export_symbols_GCJ=yes
1777832b578d3Smrg      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1777932b578d3Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
1778032b578d3Smrg      # are no directories specified by -L.
1778132b578d3Smrg      hardcode_minus_L_GCJ=yes
1778232b578d3Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1778332b578d3Smrg	# Neither direct hardcoding nor static linking is supported with a
1778432b578d3Smrg	# broken collect2.
1778532b578d3Smrg	hardcode_direct_GCJ=unsupported
1778632b578d3Smrg      fi
1778732b578d3Smrg      ;;
1778832b578d3Smrg
177892a51b5beSmrg    aix[4-9]*)
1779032b578d3Smrg      if test "$host_cpu" = ia64; then
1779132b578d3Smrg	# On IA64, the linker does run time linking by default, so we don't
1779232b578d3Smrg	# have to do anything special.
1779332b578d3Smrg	aix_use_runtimelinking=no
1779432b578d3Smrg	exp_sym_flag='-Bexport'
1779532b578d3Smrg	no_entry_flag=""
1779632b578d3Smrg      else
1779732b578d3Smrg	# If we're using GNU nm, then we don't want the "-C" option.
1779832b578d3Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1779932b578d3Smrg	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1780032b578d3Smrg	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1780132b578d3Smrg	else
1780232b578d3Smrg	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1780332b578d3Smrg	fi
1780432b578d3Smrg	aix_use_runtimelinking=no
1780532b578d3Smrg
1780632b578d3Smrg	# Test if we are trying to use run time linking or normal
1780732b578d3Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
1780832b578d3Smrg	# need to do runtime linking.
178092a51b5beSmrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1781032b578d3Smrg	  for ld_flag in $LDFLAGS; do
1781132b578d3Smrg  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1781232b578d3Smrg  	    aix_use_runtimelinking=yes
1781332b578d3Smrg  	    break
1781432b578d3Smrg  	  fi
1781532b578d3Smrg	  done
1781632b578d3Smrg	  ;;
1781732b578d3Smrg	esac
1781832b578d3Smrg
1781932b578d3Smrg	exp_sym_flag='-bexport'
1782032b578d3Smrg	no_entry_flag='-bnoentry'
1782132b578d3Smrg      fi
1782232b578d3Smrg
1782332b578d3Smrg      # When large executables or shared objects are built, AIX ld can
1782432b578d3Smrg      # have problems creating the table of contents.  If linking a library
1782532b578d3Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
1782632b578d3Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
1782732b578d3Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1782832b578d3Smrg
1782932b578d3Smrg      archive_cmds_GCJ=''
1783032b578d3Smrg      hardcode_direct_GCJ=yes
1783132b578d3Smrg      hardcode_libdir_separator_GCJ=':'
1783232b578d3Smrg      link_all_deplibs_GCJ=yes
1783332b578d3Smrg
1783432b578d3Smrg      if test "$GCC" = yes; then
1783532b578d3Smrg	case $host_os in aix4.[012]|aix4.[012].*)
1783632b578d3Smrg	# We only want to do this on AIX 4.2 and lower, the check
1783732b578d3Smrg	# below for broken collect2 doesn't work under 4.3+
1783832b578d3Smrg	  collect2name=`${CC} -print-prog-name=collect2`
1783932b578d3Smrg	  if test -f "$collect2name" && \
1784032b578d3Smrg  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
1784132b578d3Smrg	  then
1784232b578d3Smrg  	  # We have reworked collect2
178432a51b5beSmrg  	  :
1784432b578d3Smrg	  else
1784532b578d3Smrg  	  # We have old collect2
1784632b578d3Smrg  	  hardcode_direct_GCJ=unsupported
1784732b578d3Smrg  	  # It fails to find uninstalled libraries when the uninstalled
1784832b578d3Smrg  	  # path is not listed in the libpath.  Setting hardcode_minus_L
1784932b578d3Smrg  	  # to unsupported forces relinking
1785032b578d3Smrg  	  hardcode_minus_L_GCJ=yes
1785132b578d3Smrg  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
1785232b578d3Smrg  	  hardcode_libdir_separator_GCJ=
1785332b578d3Smrg	  fi
1785432b578d3Smrg	  ;;
1785532b578d3Smrg	esac
1785632b578d3Smrg	shared_flag='-shared'
1785732b578d3Smrg	if test "$aix_use_runtimelinking" = yes; then
1785832b578d3Smrg	  shared_flag="$shared_flag "'${wl}-G'
1785932b578d3Smrg	fi
1786032b578d3Smrg      else
1786132b578d3Smrg	# not using gcc
1786232b578d3Smrg	if test "$host_cpu" = ia64; then
1786332b578d3Smrg  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1786432b578d3Smrg  	# chokes on -Wl,-G. The following line is correct:
1786532b578d3Smrg	  shared_flag='-G'
1786632b578d3Smrg	else
1786732b578d3Smrg	  if test "$aix_use_runtimelinking" = yes; then
1786832b578d3Smrg	    shared_flag='${wl}-G'
1786932b578d3Smrg	  else
1787032b578d3Smrg	    shared_flag='${wl}-bM:SRE'
1787132b578d3Smrg	  fi
1787232b578d3Smrg	fi
1787332b578d3Smrg      fi
1787432b578d3Smrg
1787532b578d3Smrg      # It seems that -bexpall does not export symbols beginning with
1787632b578d3Smrg      # underscore (_), so it is better to generate a list of symbols to export.
1787732b578d3Smrg      always_export_symbols_GCJ=yes
1787832b578d3Smrg      if test "$aix_use_runtimelinking" = yes; then
1787932b578d3Smrg	# Warning - without using the other runtime loading flags (-brtl),
1788032b578d3Smrg	# -berok will link without error, but may produce a broken library.
1788132b578d3Smrg	allow_undefined_flag_GCJ='-berok'
1788232b578d3Smrg       # Determine the default libpath from the value encoded in an empty executable.
1788332b578d3Smrg       cat >conftest.$ac_ext <<_ACEOF
1788432b578d3Smrg/* confdefs.h.  */
1788532b578d3Smrg_ACEOF
1788632b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1788732b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1788832b578d3Smrg/* end confdefs.h.  */
1788932b578d3Smrg
1789032b578d3Smrgint
1789132b578d3Smrgmain ()
1789232b578d3Smrg{
1789332b578d3Smrg
1789432b578d3Smrg  ;
1789532b578d3Smrg  return 0;
1789632b578d3Smrg}
1789732b578d3Smrg_ACEOF
1789832b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1789932b578d3Smrgif { (ac_try="$ac_link"
1790032b578d3Smrgcase "(($ac_try" in
1790132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790232b578d3Smrg  *) ac_try_echo=$ac_try;;
1790332b578d3Smrgesac
179042a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
179052a51b5beSmrg$as_echo "$ac_try_echo") >&5
1790632b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1790732b578d3Smrg  ac_status=$?
1790832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1790932b578d3Smrg  rm -f conftest.er1
1791032b578d3Smrg  cat conftest.err >&5
179112a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791232b578d3Smrg  (exit $ac_status); } && {
1791332b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1791432b578d3Smrg	 test ! -s conftest.err
179152a51b5beSmrg       } && test -s conftest$ac_exeext && {
179162a51b5beSmrg	 test "$cross_compiling" = yes ||
179172a51b5beSmrg	 $as_test_x conftest$ac_exeext
179182a51b5beSmrg       }; then
1791932b578d3Smrg
179202a51b5beSmrglt_aix_libpath_sed='
179212a51b5beSmrg    /Import File Strings/,/^$/ {
179222a51b5beSmrg	/^0/ {
179232a51b5beSmrg	    s/^0  *\(.*\)$/\1/
179242a51b5beSmrg	    p
179252a51b5beSmrg	}
179262a51b5beSmrg    }'
179272a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1792832b578d3Smrg# Check for a 64-bit object if we didn't find anything.
179292a51b5beSmrgif test -z "$aix_libpath"; then
179302a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
179312a51b5beSmrgfi
1793232b578d3Smrgelse
179332a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1793432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1793532b578d3Smrg
1793632b578d3Smrg
1793732b578d3Smrgfi
1793832b578d3Smrg
179392a51b5beSmrgrm -rf conftest.dSYM
1794032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1794132b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1794232b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1794332b578d3Smrg
1794432b578d3Smrg       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1794532b578d3Smrg	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1794632b578d3Smrg       else
1794732b578d3Smrg	if test "$host_cpu" = ia64; then
1794832b578d3Smrg	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
1794932b578d3Smrg	  allow_undefined_flag_GCJ="-z nodefs"
1795032b578d3Smrg	  archive_expsym_cmds_GCJ="\$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"
1795132b578d3Smrg	else
1795232b578d3Smrg	 # Determine the default libpath from the value encoded in an empty executable.
1795332b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
1795432b578d3Smrg/* confdefs.h.  */
1795532b578d3Smrg_ACEOF
1795632b578d3Smrgcat confdefs.h >>conftest.$ac_ext
1795732b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
1795832b578d3Smrg/* end confdefs.h.  */
1795932b578d3Smrg
1796032b578d3Smrgint
1796132b578d3Smrgmain ()
1796232b578d3Smrg{
1796332b578d3Smrg
1796432b578d3Smrg  ;
1796532b578d3Smrg  return 0;
1796632b578d3Smrg}
1796732b578d3Smrg_ACEOF
1796832b578d3Smrgrm -f conftest.$ac_objext conftest$ac_exeext
1796932b578d3Smrgif { (ac_try="$ac_link"
1797032b578d3Smrgcase "(($ac_try" in
1797132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797232b578d3Smrg  *) ac_try_echo=$ac_try;;
1797332b578d3Smrgesac
179742a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
179752a51b5beSmrg$as_echo "$ac_try_echo") >&5
1797632b578d3Smrg  (eval "$ac_link") 2>conftest.er1
1797732b578d3Smrg  ac_status=$?
1797832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
1797932b578d3Smrg  rm -f conftest.er1
1798032b578d3Smrg  cat conftest.err >&5
179812a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798232b578d3Smrg  (exit $ac_status); } && {
1798332b578d3Smrg	 test -z "$ac_c_werror_flag" ||
1798432b578d3Smrg	 test ! -s conftest.err
179852a51b5beSmrg       } && test -s conftest$ac_exeext && {
179862a51b5beSmrg	 test "$cross_compiling" = yes ||
179872a51b5beSmrg	 $as_test_x conftest$ac_exeext
179882a51b5beSmrg       }; then
1798932b578d3Smrg
179902a51b5beSmrglt_aix_libpath_sed='
179912a51b5beSmrg    /Import File Strings/,/^$/ {
179922a51b5beSmrg	/^0/ {
179932a51b5beSmrg	    s/^0  *\(.*\)$/\1/
179942a51b5beSmrg	    p
179952a51b5beSmrg	}
179962a51b5beSmrg    }'
179972a51b5beSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1799832b578d3Smrg# Check for a 64-bit object if we didn't find anything.
179992a51b5beSmrgif test -z "$aix_libpath"; then
180002a51b5beSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
180012a51b5beSmrgfi
1800232b578d3Smrgelse
180032a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
1800432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
1800532b578d3Smrg
1800632b578d3Smrg
1800732b578d3Smrgfi
1800832b578d3Smrg
180092a51b5beSmrgrm -rf conftest.dSYM
1801032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1801132b578d3Smrg      conftest$ac_exeext conftest.$ac_ext
1801232b578d3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1801332b578d3Smrg
1801432b578d3Smrg	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1801532b578d3Smrg	  # Warning - without using the other run time loading flags,
1801632b578d3Smrg	  # -berok will link without error, but may produce a broken library.
1801732b578d3Smrg	  no_undefined_flag_GCJ=' ${wl}-bernotok'
1801832b578d3Smrg	  allow_undefined_flag_GCJ=' ${wl}-berok'
1801932b578d3Smrg	  # Exported symbols can be pulled into shared objects from archives
1802032b578d3Smrg	  whole_archive_flag_spec_GCJ='$convenience'
1802132b578d3Smrg	  archive_cmds_need_lc_GCJ=yes
1802232b578d3Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
1802332b578d3Smrg	  archive_expsym_cmds_GCJ="\$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'
1802432b578d3Smrg	fi
1802532b578d3Smrg      fi
1802632b578d3Smrg      ;;
1802732b578d3Smrg
1802832b578d3Smrg    amigaos*)
1802932b578d3Smrg      archive_cmds_GCJ='$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)'
1803032b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1803132b578d3Smrg      hardcode_minus_L_GCJ=yes
1803232b578d3Smrg      # see comment about different semantics on the GNU ld section
1803332b578d3Smrg      ld_shlibs_GCJ=no
1803432b578d3Smrg      ;;
1803532b578d3Smrg
1803632b578d3Smrg    bsdi[45]*)
1803732b578d3Smrg      export_dynamic_flag_spec_GCJ=-rdynamic
1803832b578d3Smrg      ;;
1803932b578d3Smrg
1804032b578d3Smrg    cygwin* | mingw* | pw32*)
1804132b578d3Smrg      # When not using gcc, we currently assume that we are using
1804232b578d3Smrg      # Microsoft Visual C++.
1804332b578d3Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
1804432b578d3Smrg      # no search path for DLLs.
1804532b578d3Smrg      hardcode_libdir_flag_spec_GCJ=' '
1804632b578d3Smrg      allow_undefined_flag_GCJ=unsupported
1804732b578d3Smrg      # Tell ltmain to make .lib files, not .a files.
1804832b578d3Smrg      libext=lib
1804932b578d3Smrg      # Tell ltmain to make .dll files, not .so files.
1805032b578d3Smrg      shrext_cmds=".dll"
1805132b578d3Smrg      # FIXME: Setting linknames here is a bad hack.
1805232b578d3Smrg      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1805332b578d3Smrg      # The linker will automatically build a .lib file if we build a DLL.
1805432b578d3Smrg      old_archive_From_new_cmds_GCJ='true'
1805532b578d3Smrg      # FIXME: Should let the user specify the lib program.
180562a51b5beSmrg      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
1805732b578d3Smrg      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
1805832b578d3Smrg      enable_shared_with_static_runtimes_GCJ=yes
1805932b578d3Smrg      ;;
1806032b578d3Smrg
1806132b578d3Smrg    darwin* | rhapsody*)
1806232b578d3Smrg      case $host_os in
1806332b578d3Smrg        rhapsody* | darwin1.[012])
1806432b578d3Smrg         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
1806532b578d3Smrg         ;;
1806632b578d3Smrg       *) # Darwin 1.3 on
1806732b578d3Smrg         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1806832b578d3Smrg           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1806932b578d3Smrg         else
1807032b578d3Smrg           case ${MACOSX_DEPLOYMENT_TARGET} in
1807132b578d3Smrg             10.[012])
1807232b578d3Smrg               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1807332b578d3Smrg               ;;
1807432b578d3Smrg             10.*)
1807532b578d3Smrg               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
1807632b578d3Smrg               ;;
1807732b578d3Smrg           esac
1807832b578d3Smrg         fi
1807932b578d3Smrg         ;;
1808032b578d3Smrg      esac
1808132b578d3Smrg      archive_cmds_need_lc_GCJ=no
1808232b578d3Smrg      hardcode_direct_GCJ=no
1808332b578d3Smrg      hardcode_automatic_GCJ=yes
1808432b578d3Smrg      hardcode_shlibpath_var_GCJ=unsupported
1808532b578d3Smrg      whole_archive_flag_spec_GCJ=''
1808632b578d3Smrg      link_all_deplibs_GCJ=yes
1808732b578d3Smrg    if test "$GCC" = yes ; then
1808832b578d3Smrg    	output_verbose_link_cmd='echo'
180892a51b5beSmrg        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
180902a51b5beSmrg        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
180912a51b5beSmrg        archive_expsym_cmds_GCJ="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}"
180922a51b5beSmrg        module_expsym_cmds_GCJ="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}"
1809332b578d3Smrg    else
1809432b578d3Smrg      case $cc_basename in
1809532b578d3Smrg        xlc*)
1809632b578d3Smrg         output_verbose_link_cmd='echo'
180972a51b5beSmrg         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1809832b578d3Smrg         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1809932b578d3Smrg          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
181002a51b5beSmrg         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1810132b578d3Smrg          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1810232b578d3Smrg          ;;
1810332b578d3Smrg       *)
1810432b578d3Smrg         ld_shlibs_GCJ=no
1810532b578d3Smrg          ;;
1810632b578d3Smrg      esac
1810732b578d3Smrg    fi
1810832b578d3Smrg      ;;
1810932b578d3Smrg
1811032b578d3Smrg    dgux*)
1811132b578d3Smrg      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1811232b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1811332b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1811432b578d3Smrg      ;;
1811532b578d3Smrg
1811632b578d3Smrg    freebsd1*)
1811732b578d3Smrg      ld_shlibs_GCJ=no
1811832b578d3Smrg      ;;
1811932b578d3Smrg
1812032b578d3Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1812132b578d3Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
1812232b578d3Smrg    # does not break anything, and helps significantly (at the cost of a little
1812332b578d3Smrg    # extra space).
1812432b578d3Smrg    freebsd2.2*)
1812532b578d3Smrg      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1812632b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-R$libdir'
1812732b578d3Smrg      hardcode_direct_GCJ=yes
1812832b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1812932b578d3Smrg      ;;
1813032b578d3Smrg
1813132b578d3Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1813232b578d3Smrg    freebsd2*)
1813332b578d3Smrg      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1813432b578d3Smrg      hardcode_direct_GCJ=yes
1813532b578d3Smrg      hardcode_minus_L_GCJ=yes
1813632b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1813732b578d3Smrg      ;;
1813832b578d3Smrg
1813932b578d3Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
181402a51b5beSmrg    freebsd* | dragonfly*)
1814132b578d3Smrg      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1814232b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-R$libdir'
1814332b578d3Smrg      hardcode_direct_GCJ=yes
1814432b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1814532b578d3Smrg      ;;
1814632b578d3Smrg
1814732b578d3Smrg    hpux9*)
1814832b578d3Smrg      if test "$GCC" = yes; then
1814932b578d3Smrg	archive_cmds_GCJ='$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'
1815032b578d3Smrg      else
1815132b578d3Smrg	archive_cmds_GCJ='$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'
1815232b578d3Smrg      fi
1815332b578d3Smrg      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1815432b578d3Smrg      hardcode_libdir_separator_GCJ=:
1815532b578d3Smrg      hardcode_direct_GCJ=yes
1815632b578d3Smrg
1815732b578d3Smrg      # hardcode_minus_L: Not really in the search PATH,
1815832b578d3Smrg      # but as the default location of the library.
1815932b578d3Smrg      hardcode_minus_L_GCJ=yes
1816032b578d3Smrg      export_dynamic_flag_spec_GCJ='${wl}-E'
1816132b578d3Smrg      ;;
1816232b578d3Smrg
1816332b578d3Smrg    hpux10*)
1816432b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1816532b578d3Smrg	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1816632b578d3Smrg      else
1816732b578d3Smrg	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1816832b578d3Smrg      fi
1816932b578d3Smrg      if test "$with_gnu_ld" = no; then
1817032b578d3Smrg	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1817132b578d3Smrg	hardcode_libdir_separator_GCJ=:
1817232b578d3Smrg
1817332b578d3Smrg	hardcode_direct_GCJ=yes
1817432b578d3Smrg	export_dynamic_flag_spec_GCJ='${wl}-E'
1817532b578d3Smrg
1817632b578d3Smrg	# hardcode_minus_L: Not really in the search PATH,
1817732b578d3Smrg	# but as the default location of the library.
1817832b578d3Smrg	hardcode_minus_L_GCJ=yes
1817932b578d3Smrg      fi
1818032b578d3Smrg      ;;
1818132b578d3Smrg
1818232b578d3Smrg    hpux11*)
1818332b578d3Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1818432b578d3Smrg	case $host_cpu in
1818532b578d3Smrg	hppa*64*)
1818632b578d3Smrg	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1818732b578d3Smrg	  ;;
1818832b578d3Smrg	ia64*)
1818932b578d3Smrg	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1819032b578d3Smrg	  ;;
1819132b578d3Smrg	*)
1819232b578d3Smrg	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1819332b578d3Smrg	  ;;
1819432b578d3Smrg	esac
1819532b578d3Smrg      else
1819632b578d3Smrg	case $host_cpu in
1819732b578d3Smrg	hppa*64*)
1819832b578d3Smrg	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1819932b578d3Smrg	  ;;
1820032b578d3Smrg	ia64*)
1820132b578d3Smrg	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1820232b578d3Smrg	  ;;
1820332b578d3Smrg	*)
1820432b578d3Smrg	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1820532b578d3Smrg	  ;;
1820632b578d3Smrg	esac
1820732b578d3Smrg      fi
1820832b578d3Smrg      if test "$with_gnu_ld" = no; then
1820932b578d3Smrg	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1821032b578d3Smrg	hardcode_libdir_separator_GCJ=:
1821132b578d3Smrg
1821232b578d3Smrg	case $host_cpu in
1821332b578d3Smrg	hppa*64*|ia64*)
1821432b578d3Smrg	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
1821532b578d3Smrg	  hardcode_direct_GCJ=no
1821632b578d3Smrg	  hardcode_shlibpath_var_GCJ=no
1821732b578d3Smrg	  ;;
1821832b578d3Smrg	*)
1821932b578d3Smrg	  hardcode_direct_GCJ=yes
1822032b578d3Smrg	  export_dynamic_flag_spec_GCJ='${wl}-E'
1822132b578d3Smrg
1822232b578d3Smrg	  # hardcode_minus_L: Not really in the search PATH,
1822332b578d3Smrg	  # but as the default location of the library.
1822432b578d3Smrg	  hardcode_minus_L_GCJ=yes
1822532b578d3Smrg	  ;;
1822632b578d3Smrg	esac
1822732b578d3Smrg      fi
1822832b578d3Smrg      ;;
1822932b578d3Smrg
1823032b578d3Smrg    irix5* | irix6* | nonstopux*)
1823132b578d3Smrg      if test "$GCC" = yes; then
1823232b578d3Smrg	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1823332b578d3Smrg      else
1823432b578d3Smrg	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1823532b578d3Smrg	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
1823632b578d3Smrg      fi
1823732b578d3Smrg      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1823832b578d3Smrg      hardcode_libdir_separator_GCJ=:
1823932b578d3Smrg      link_all_deplibs_GCJ=yes
1824032b578d3Smrg      ;;
1824132b578d3Smrg
1824232b578d3Smrg    netbsd*)
1824332b578d3Smrg      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1824432b578d3Smrg	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1824532b578d3Smrg      else
1824632b578d3Smrg	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
1824732b578d3Smrg      fi
1824832b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-R$libdir'
1824932b578d3Smrg      hardcode_direct_GCJ=yes
1825032b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1825132b578d3Smrg      ;;
1825232b578d3Smrg
1825332b578d3Smrg    newsos6)
1825432b578d3Smrg      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1825532b578d3Smrg      hardcode_direct_GCJ=yes
1825632b578d3Smrg      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1825732b578d3Smrg      hardcode_libdir_separator_GCJ=:
1825832b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1825932b578d3Smrg      ;;
1826032b578d3Smrg
1826132b578d3Smrg    openbsd*)
182622a51b5beSmrg      if test -f /usr/libexec/ld.so; then
182632a51b5beSmrg	hardcode_direct_GCJ=yes
182642a51b5beSmrg	hardcode_shlibpath_var_GCJ=no
182652a51b5beSmrg	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
182662a51b5beSmrg	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
182672a51b5beSmrg	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
182682a51b5beSmrg	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
182692a51b5beSmrg	  export_dynamic_flag_spec_GCJ='${wl}-E'
182702a51b5beSmrg	else
182712a51b5beSmrg	  case $host_os in
182722a51b5beSmrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
182732a51b5beSmrg	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
182742a51b5beSmrg	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
182752a51b5beSmrg	     ;;
182762a51b5beSmrg	   *)
182772a51b5beSmrg	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
182782a51b5beSmrg	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
182792a51b5beSmrg	     ;;
182802a51b5beSmrg	  esac
182812a51b5beSmrg        fi
1828232b578d3Smrg      else
182832a51b5beSmrg	ld_shlibs_GCJ=no
1828432b578d3Smrg      fi
1828532b578d3Smrg      ;;
1828632b578d3Smrg
1828732b578d3Smrg    os2*)
1828832b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1828932b578d3Smrg      hardcode_minus_L_GCJ=yes
1829032b578d3Smrg      allow_undefined_flag_GCJ=unsupported
1829132b578d3Smrg      archive_cmds_GCJ='$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'
1829232b578d3Smrg      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1829332b578d3Smrg      ;;
1829432b578d3Smrg
1829532b578d3Smrg    osf3*)
1829632b578d3Smrg      if test "$GCC" = yes; then
1829732b578d3Smrg	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
1829832b578d3Smrg	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1829932b578d3Smrg      else
1830032b578d3Smrg	allow_undefined_flag_GCJ=' -expect_unresolved \*'
1830132b578d3Smrg	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1830232b578d3Smrg      fi
1830332b578d3Smrg      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1830432b578d3Smrg      hardcode_libdir_separator_GCJ=:
1830532b578d3Smrg      ;;
1830632b578d3Smrg
1830732b578d3Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
1830832b578d3Smrg      if test "$GCC" = yes; then
1830932b578d3Smrg	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
1831032b578d3Smrg	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1831132b578d3Smrg	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1831232b578d3Smrg      else
1831332b578d3Smrg	allow_undefined_flag_GCJ=' -expect_unresolved \*'
1831432b578d3Smrg	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1831532b578d3Smrg	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1831632b578d3Smrg	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1831732b578d3Smrg
1831832b578d3Smrg	# Both c and cxx compiler support -rpath directly
1831932b578d3Smrg	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
1832032b578d3Smrg      fi
1832132b578d3Smrg      hardcode_libdir_separator_GCJ=:
1832232b578d3Smrg      ;;
1832332b578d3Smrg
1832432b578d3Smrg    solaris*)
1832532b578d3Smrg      no_undefined_flag_GCJ=' -z text'
1832632b578d3Smrg      if test "$GCC" = yes; then
1832732b578d3Smrg	wlarc='${wl}'
1832832b578d3Smrg	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1832932b578d3Smrg	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1833032b578d3Smrg	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1833132b578d3Smrg      else
1833232b578d3Smrg	wlarc=''
1833332b578d3Smrg	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1833432b578d3Smrg	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1833532b578d3Smrg  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1833632b578d3Smrg      fi
1833732b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-R$libdir'
1833832b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1833932b578d3Smrg      case $host_os in
1834032b578d3Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
1834132b578d3Smrg      *)
183422a51b5beSmrg	# The compiler driver will combine and reorder linker options,
183432a51b5beSmrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
183442a51b5beSmrg	# but is careful enough not to reorder.
1834532b578d3Smrg 	# Supported since Solaris 2.6 (maybe 2.5.1?)
183462a51b5beSmrg	if test "$GCC" = yes; then
183472a51b5beSmrg	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
183482a51b5beSmrg	else
183492a51b5beSmrg	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
183502a51b5beSmrg	fi
183512a51b5beSmrg	;;
1835232b578d3Smrg      esac
1835332b578d3Smrg      link_all_deplibs_GCJ=yes
1835432b578d3Smrg      ;;
1835532b578d3Smrg
1835632b578d3Smrg    sunos4*)
1835732b578d3Smrg      if test "x$host_vendor" = xsequent; then
1835832b578d3Smrg	# Use $CC to link under sequent, because it throws in some extra .o
1835932b578d3Smrg	# files that make .init and .fini sections work.
1836032b578d3Smrg	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1836132b578d3Smrg      else
1836232b578d3Smrg	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1836332b578d3Smrg      fi
1836432b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1836532b578d3Smrg      hardcode_direct_GCJ=yes
1836632b578d3Smrg      hardcode_minus_L_GCJ=yes
1836732b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1836832b578d3Smrg      ;;
1836932b578d3Smrg
1837032b578d3Smrg    sysv4)
1837132b578d3Smrg      case $host_vendor in
1837232b578d3Smrg	sni)
1837332b578d3Smrg	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1837432b578d3Smrg	  hardcode_direct_GCJ=yes # is this really true???
1837532b578d3Smrg	;;
1837632b578d3Smrg	siemens)
1837732b578d3Smrg	  ## LD is ld it makes a PLAMLIB
1837832b578d3Smrg	  ## CC just makes a GrossModule.
1837932b578d3Smrg	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1838032b578d3Smrg	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
1838132b578d3Smrg	  hardcode_direct_GCJ=no
1838232b578d3Smrg        ;;
1838332b578d3Smrg	motorola)
1838432b578d3Smrg	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1838532b578d3Smrg	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
1838632b578d3Smrg	;;
1838732b578d3Smrg      esac
1838832b578d3Smrg      runpath_var='LD_RUN_PATH'
1838932b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1839032b578d3Smrg      ;;
1839132b578d3Smrg
1839232b578d3Smrg    sysv4.3*)
1839332b578d3Smrg      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1839432b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1839532b578d3Smrg      export_dynamic_flag_spec_GCJ='-Bexport'
1839632b578d3Smrg      ;;
1839732b578d3Smrg
1839832b578d3Smrg    sysv4*MP*)
1839932b578d3Smrg      if test -d /usr/nec; then
1840032b578d3Smrg	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1840132b578d3Smrg	hardcode_shlibpath_var_GCJ=no
1840232b578d3Smrg	runpath_var=LD_RUN_PATH
1840332b578d3Smrg	hardcode_runpath_var=yes
1840432b578d3Smrg	ld_shlibs_GCJ=yes
1840532b578d3Smrg      fi
1840632b578d3Smrg      ;;
1840732b578d3Smrg
184082a51b5beSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1840932b578d3Smrg      no_undefined_flag_GCJ='${wl}-z,text'
1841032b578d3Smrg      archive_cmds_need_lc_GCJ=no
1841132b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1841232b578d3Smrg      runpath_var='LD_RUN_PATH'
1841332b578d3Smrg
1841432b578d3Smrg      if test "$GCC" = yes; then
1841532b578d3Smrg	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1841632b578d3Smrg	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1841732b578d3Smrg      else
1841832b578d3Smrg	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1841932b578d3Smrg	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1842032b578d3Smrg      fi
1842132b578d3Smrg      ;;
1842232b578d3Smrg
1842332b578d3Smrg    sysv5* | sco3.2v5* | sco5v6*)
1842432b578d3Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
1842532b578d3Smrg      # link with -lc, and that would cause any symbols used from libc to
1842632b578d3Smrg      # always be unresolved, which means just about no library would
1842732b578d3Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
1842832b578d3Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
1842932b578d3Smrg      # as -z defs.
1843032b578d3Smrg      no_undefined_flag_GCJ='${wl}-z,text'
1843132b578d3Smrg      allow_undefined_flag_GCJ='${wl}-z,nodefs'
1843232b578d3Smrg      archive_cmds_need_lc_GCJ=no
1843332b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1843432b578d3Smrg      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1843532b578d3Smrg      hardcode_libdir_separator_GCJ=':'
1843632b578d3Smrg      link_all_deplibs_GCJ=yes
1843732b578d3Smrg      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
1843832b578d3Smrg      runpath_var='LD_RUN_PATH'
1843932b578d3Smrg
1844032b578d3Smrg      if test "$GCC" = yes; then
1844132b578d3Smrg	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1844232b578d3Smrg	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1844332b578d3Smrg      else
1844432b578d3Smrg	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1844532b578d3Smrg	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1844632b578d3Smrg      fi
1844732b578d3Smrg      ;;
1844832b578d3Smrg
1844932b578d3Smrg    uts4*)
1845032b578d3Smrg      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1845132b578d3Smrg      hardcode_libdir_flag_spec_GCJ='-L$libdir'
1845232b578d3Smrg      hardcode_shlibpath_var_GCJ=no
1845332b578d3Smrg      ;;
1845432b578d3Smrg
1845532b578d3Smrg    *)
1845632b578d3Smrg      ld_shlibs_GCJ=no
1845732b578d3Smrg      ;;
1845832b578d3Smrg    esac
1845932b578d3Smrg  fi
1846032b578d3Smrg
184612a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
184622a51b5beSmrg$as_echo "$ld_shlibs_GCJ" >&6; }
1846332b578d3Smrgtest "$ld_shlibs_GCJ" = no && can_build_shared=no
1846432b578d3Smrg
1846532b578d3Smrg#
1846632b578d3Smrg# Do we need to explicitly link libc?
1846732b578d3Smrg#
1846832b578d3Smrgcase "x$archive_cmds_need_lc_GCJ" in
1846932b578d3Smrgx|xyes)
1847032b578d3Smrg  # Assume -lc should be added
1847132b578d3Smrg  archive_cmds_need_lc_GCJ=yes
1847232b578d3Smrg
1847332b578d3Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
1847432b578d3Smrg    case $archive_cmds_GCJ in
1847532b578d3Smrg    *'~'*)
1847632b578d3Smrg      # FIXME: we may have to deal with multi-command sequences.
1847732b578d3Smrg      ;;
1847832b578d3Smrg    '$CC '*)
1847932b578d3Smrg      # Test whether the compiler implicitly links with -lc since on some
1848032b578d3Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
1848132b578d3Smrg      # to ld, don't add -lc before -lgcc.
184822a51b5beSmrg      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
184832a51b5beSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1848432b578d3Smrg      $rm conftest*
184852a51b5beSmrg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1848632b578d3Smrg
1848732b578d3Smrg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1848832b578d3Smrg  (eval $ac_compile) 2>&5
1848932b578d3Smrg  ac_status=$?
184902a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849132b578d3Smrg  (exit $ac_status); } 2>conftest.err; then
1849232b578d3Smrg        soname=conftest
1849332b578d3Smrg        lib=conftest
1849432b578d3Smrg        libobjs=conftest.$ac_objext
1849532b578d3Smrg        deplibs=
1849632b578d3Smrg        wl=$lt_prog_compiler_wl_GCJ
1849732b578d3Smrg	pic_flag=$lt_prog_compiler_pic_GCJ
1849832b578d3Smrg        compiler_flags=-v
1849932b578d3Smrg        linker_flags=-v
1850032b578d3Smrg        verstring=
1850132b578d3Smrg        output_objdir=.
1850232b578d3Smrg        libname=conftest
1850332b578d3Smrg        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
1850432b578d3Smrg        allow_undefined_flag_GCJ=
1850532b578d3Smrg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1850632b578d3Smrg  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1850732b578d3Smrg  ac_status=$?
185082a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850932b578d3Smrg  (exit $ac_status); }
1851032b578d3Smrg        then
1851132b578d3Smrg	  archive_cmds_need_lc_GCJ=no
1851232b578d3Smrg        else
1851332b578d3Smrg	  archive_cmds_need_lc_GCJ=yes
1851432b578d3Smrg        fi
1851532b578d3Smrg        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
1851632b578d3Smrg      else
1851732b578d3Smrg        cat conftest.err 1>&5
1851832b578d3Smrg      fi
1851932b578d3Smrg      $rm conftest*
185202a51b5beSmrg      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
185212a51b5beSmrg$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
1852232b578d3Smrg      ;;
1852332b578d3Smrg    esac
1852432b578d3Smrg  fi
1852532b578d3Smrg  ;;
1852632b578d3Smrgesac
1852732b578d3Smrg
185282a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
185292a51b5beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
1853032b578d3Smrglibrary_names_spec=
1853132b578d3Smrglibname_spec='lib$name'
1853232b578d3Smrgsoname_spec=
1853332b578d3Smrgshrext_cmds=".so"
1853432b578d3Smrgpostinstall_cmds=
1853532b578d3Smrgpostuninstall_cmds=
1853632b578d3Smrgfinish_cmds=
1853732b578d3Smrgfinish_eval=
1853832b578d3Smrgshlibpath_var=
1853932b578d3Smrgshlibpath_overrides_runpath=unknown
1854032b578d3Smrgversion_type=none
1854132b578d3Smrgdynamic_linker="$host_os ld.so"
1854232b578d3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
185432a51b5beSmrg
1854432b578d3Smrgneed_lib_prefix=unknown
1854532b578d3Smrghardcode_into_libs=no
1854632b578d3Smrg
1854732b578d3Smrg# when you set need_version to no, make sure it does not cause -set_version
1854832b578d3Smrg# flags to be left without arguments
1854932b578d3Smrgneed_version=unknown
1855032b578d3Smrg
1855132b578d3Smrgcase $host_os in
1855232b578d3Smrgaix3*)
1855332b578d3Smrg  version_type=linux
1855432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1855532b578d3Smrg  shlibpath_var=LIBPATH
1855632b578d3Smrg
1855732b578d3Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
1855832b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1855932b578d3Smrg  ;;
1856032b578d3Smrg
185612a51b5beSmrgaix[4-9]*)
1856232b578d3Smrg  version_type=linux
1856332b578d3Smrg  need_lib_prefix=no
1856432b578d3Smrg  need_version=no
1856532b578d3Smrg  hardcode_into_libs=yes
1856632b578d3Smrg  if test "$host_cpu" = ia64; then
1856732b578d3Smrg    # AIX 5 supports IA64
1856832b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1856932b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1857032b578d3Smrg  else
1857132b578d3Smrg    # With GCC up to 2.95.x, collect2 would create an import file
1857232b578d3Smrg    # for dependence libraries.  The import file would start with
1857332b578d3Smrg    # the line `#! .'.  This would cause the generated library to
1857432b578d3Smrg    # depend on `.', always an invalid library.  This was fixed in
1857532b578d3Smrg    # development snapshots of GCC prior to 3.0.
1857632b578d3Smrg    case $host_os in
1857732b578d3Smrg      aix4 | aix4.[01] | aix4.[01].*)
1857832b578d3Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1857932b578d3Smrg	   echo ' yes '
1858032b578d3Smrg	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1858132b578d3Smrg	:
1858232b578d3Smrg      else
1858332b578d3Smrg	can_build_shared=no
1858432b578d3Smrg      fi
1858532b578d3Smrg      ;;
1858632b578d3Smrg    esac
1858732b578d3Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1858832b578d3Smrg    # soname into executable. Probably we can add versioning support to
1858932b578d3Smrg    # collect2, so additional links can be useful in future.
1859032b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
1859132b578d3Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1859232b578d3Smrg      # instead of lib<name>.a to let people know that these are not
1859332b578d3Smrg      # typical AIX shared libraries.
1859432b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1859532b578d3Smrg    else
1859632b578d3Smrg      # We preserve .a as extension for shared libraries through AIX4.2
1859732b578d3Smrg      # and later when we are not doing run time linking.
1859832b578d3Smrg      library_names_spec='${libname}${release}.a $libname.a'
1859932b578d3Smrg      soname_spec='${libname}${release}${shared_ext}$major'
1860032b578d3Smrg    fi
1860132b578d3Smrg    shlibpath_var=LIBPATH
1860232b578d3Smrg  fi
1860332b578d3Smrg  ;;
1860432b578d3Smrg
1860532b578d3Smrgamigaos*)
1860632b578d3Smrg  library_names_spec='$libname.ixlibrary $libname.a'
1860732b578d3Smrg  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1860832b578d3Smrg  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
1860932b578d3Smrg  ;;
1861032b578d3Smrg
1861132b578d3Smrgbeos*)
1861232b578d3Smrg  library_names_spec='${libname}${shared_ext}'
1861332b578d3Smrg  dynamic_linker="$host_os ld.so"
1861432b578d3Smrg  shlibpath_var=LIBRARY_PATH
1861532b578d3Smrg  ;;
1861632b578d3Smrg
1861732b578d3Smrgbsdi[45]*)
1861832b578d3Smrg  version_type=linux
1861932b578d3Smrg  need_version=no
1862032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1862132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1862232b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1862332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1862432b578d3Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1862532b578d3Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1862632b578d3Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
1862732b578d3Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1862832b578d3Smrg  # libtool to hard-code these into programs
1862932b578d3Smrg  ;;
1863032b578d3Smrg
1863132b578d3Smrgcygwin* | mingw* | pw32*)
1863232b578d3Smrg  version_type=windows
1863332b578d3Smrg  shrext_cmds=".dll"
1863432b578d3Smrg  need_version=no
1863532b578d3Smrg  need_lib_prefix=no
1863632b578d3Smrg
1863732b578d3Smrg  case $GCC,$host_os in
1863832b578d3Smrg  yes,cygwin* | yes,mingw* | yes,pw32*)
1863932b578d3Smrg    library_names_spec='$libname.dll.a'
1864032b578d3Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1864132b578d3Smrg    postinstall_cmds='base_file=`basename \${file}`~
1864232b578d3Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1864332b578d3Smrg      dldir=$destdir/`dirname \$dlpath`~
1864432b578d3Smrg      test -d \$dldir || mkdir -p \$dldir~
1864532b578d3Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
1864632b578d3Smrg      chmod a+x \$dldir/$dlname'
1864732b578d3Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1864832b578d3Smrg      dlpath=$dir/\$dldll~
1864932b578d3Smrg       $rm \$dlpath'
1865032b578d3Smrg    shlibpath_overrides_runpath=yes
1865132b578d3Smrg
1865232b578d3Smrg    case $host_os in
1865332b578d3Smrg    cygwin*)
1865432b578d3Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1865532b578d3Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1865632b578d3Smrg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1865732b578d3Smrg      ;;
1865832b578d3Smrg    mingw*)
1865932b578d3Smrg      # MinGW DLLs use traditional 'lib' prefix
1866032b578d3Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1866132b578d3Smrg      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1866232b578d3Smrg      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1866332b578d3Smrg        # It is most probably a Windows format PATH printed by
1866432b578d3Smrg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1866532b578d3Smrg        # path with ; separators, and with drive letters. We can handle the
1866632b578d3Smrg        # drive letters (cygwin fileutils understands them), so leave them,
1866732b578d3Smrg        # especially as we might pass files found there to a mingw objdump,
1866832b578d3Smrg        # which wouldn't understand a cygwinified path. Ahh.
1866932b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1867032b578d3Smrg      else
1867132b578d3Smrg        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1867232b578d3Smrg      fi
1867332b578d3Smrg      ;;
1867432b578d3Smrg    pw32*)
1867532b578d3Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
1867632b578d3Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1867732b578d3Smrg      ;;
1867832b578d3Smrg    esac
1867932b578d3Smrg    ;;
1868032b578d3Smrg
1868132b578d3Smrg  *)
1868232b578d3Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1868332b578d3Smrg    ;;
1868432b578d3Smrg  esac
1868532b578d3Smrg  dynamic_linker='Win32 ld.exe'
1868632b578d3Smrg  # FIXME: first we should search . and the directory the executable is in
1868732b578d3Smrg  shlibpath_var=PATH
1868832b578d3Smrg  ;;
1868932b578d3Smrg
1869032b578d3Smrgdarwin* | rhapsody*)
1869132b578d3Smrg  dynamic_linker="$host_os dyld"
1869232b578d3Smrg  version_type=darwin
1869332b578d3Smrg  need_lib_prefix=no
1869432b578d3Smrg  need_version=no
1869532b578d3Smrg  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1869632b578d3Smrg  soname_spec='${libname}${release}${major}$shared_ext'
1869732b578d3Smrg  shlibpath_overrides_runpath=yes
1869832b578d3Smrg  shlibpath_var=DYLD_LIBRARY_PATH
1869932b578d3Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
187002a51b5beSmrg
1870132b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1870232b578d3Smrg  ;;
1870332b578d3Smrg
1870432b578d3Smrgdgux*)
1870532b578d3Smrg  version_type=linux
1870632b578d3Smrg  need_lib_prefix=no
1870732b578d3Smrg  need_version=no
1870832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1870932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1871032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1871132b578d3Smrg  ;;
187122a51b5beSmrg
187132a51b5beSmrgfreebsd1*)
187142a51b5beSmrg  dynamic_linker=no
18715d31dbc53Smrg  ;;
18716d31dbc53Smrg
1871732b578d3Smrgfreebsd* | dragonfly*)
1871832b578d3Smrg  # DragonFly does not have aout.  When/if they implement a new
1871932b578d3Smrg  # versioning mechanism, adjust this.
1872032b578d3Smrg  if test -x /usr/bin/objformat; then
1872132b578d3Smrg    objformat=`/usr/bin/objformat`
1872232b578d3Smrg  else
1872332b578d3Smrg    case $host_os in
1872432b578d3Smrg    freebsd[123]*) objformat=aout ;;
1872532b578d3Smrg    *) objformat=elf ;;
1872632b578d3Smrg    esac
1872732b578d3Smrg  fi
1872832b578d3Smrg  version_type=freebsd-$objformat
1872932b578d3Smrg  case $version_type in
1873032b578d3Smrg    freebsd-elf*)
1873132b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1873232b578d3Smrg      need_version=no
1873332b578d3Smrg      need_lib_prefix=no
1873432b578d3Smrg      ;;
1873532b578d3Smrg    freebsd-*)
1873632b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1873732b578d3Smrg      need_version=yes
1873832b578d3Smrg      ;;
1873932b578d3Smrg  esac
1874032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1874132b578d3Smrg  case $host_os in
1874232b578d3Smrg  freebsd2*)
1874332b578d3Smrg    shlibpath_overrides_runpath=yes
1874432b578d3Smrg    ;;
1874532b578d3Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
1874632b578d3Smrg    shlibpath_overrides_runpath=yes
1874732b578d3Smrg    hardcode_into_libs=yes
1874832b578d3Smrg    ;;
1874932b578d3Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
1875032b578d3Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1875132b578d3Smrg    shlibpath_overrides_runpath=no
1875232b578d3Smrg    hardcode_into_libs=yes
1875332b578d3Smrg    ;;
187542a51b5beSmrg  *) # from 4.6 on, and DragonFly
1875532b578d3Smrg    shlibpath_overrides_runpath=yes
1875632b578d3Smrg    hardcode_into_libs=yes
1875732b578d3Smrg    ;;
1875832b578d3Smrg  esac
1875932b578d3Smrg  ;;
1876032b578d3Smrg
1876132b578d3Smrggnu*)
1876232b578d3Smrg  version_type=linux
1876332b578d3Smrg  need_lib_prefix=no
1876432b578d3Smrg  need_version=no
1876532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1876632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1876732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1876832b578d3Smrg  hardcode_into_libs=yes
1876932b578d3Smrg  ;;
1877032b578d3Smrg
1877132b578d3Smrghpux9* | hpux10* | hpux11*)
1877232b578d3Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1877332b578d3Smrg  # link against other versions.
1877432b578d3Smrg  version_type=sunos
1877532b578d3Smrg  need_lib_prefix=no
1877632b578d3Smrg  need_version=no
1877732b578d3Smrg  case $host_cpu in
1877832b578d3Smrg  ia64*)
1877932b578d3Smrg    shrext_cmds='.so'
1878032b578d3Smrg    hardcode_into_libs=yes
1878132b578d3Smrg    dynamic_linker="$host_os dld.so"
1878232b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1878332b578d3Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1878432b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1878532b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1878632b578d3Smrg    if test "X$HPUX_IA64_MODE" = X32; then
1878732b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1878832b578d3Smrg    else
1878932b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1879032b578d3Smrg    fi
1879132b578d3Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1879232b578d3Smrg    ;;
1879332b578d3Smrg   hppa*64*)
1879432b578d3Smrg     shrext_cmds='.sl'
1879532b578d3Smrg     hardcode_into_libs=yes
1879632b578d3Smrg     dynamic_linker="$host_os dld.sl"
1879732b578d3Smrg     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1879832b578d3Smrg     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1879932b578d3Smrg     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1880032b578d3Smrg     soname_spec='${libname}${release}${shared_ext}$major'
1880132b578d3Smrg     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1880232b578d3Smrg     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1880332b578d3Smrg     ;;
1880432b578d3Smrg   *)
1880532b578d3Smrg    shrext_cmds='.sl'
1880632b578d3Smrg    dynamic_linker="$host_os dld.sl"
1880732b578d3Smrg    shlibpath_var=SHLIB_PATH
1880832b578d3Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1880932b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1881032b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1881132b578d3Smrg    ;;
1881232b578d3Smrg  esac
1881332b578d3Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
1881432b578d3Smrg  postinstall_cmds='chmod 555 $lib'
1881532b578d3Smrg  ;;
1881632b578d3Smrg
188172a51b5beSmrginterix[3-9]*)
1881832b578d3Smrg  version_type=linux
1881932b578d3Smrg  need_lib_prefix=no
1882032b578d3Smrg  need_version=no
1882132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1882232b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1882332b578d3Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1882432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1882532b578d3Smrg  shlibpath_overrides_runpath=no
1882632b578d3Smrg  hardcode_into_libs=yes
1882732b578d3Smrg  ;;
1882832b578d3Smrg
1882932b578d3Smrgirix5* | irix6* | nonstopux*)
1883032b578d3Smrg  case $host_os in
1883132b578d3Smrg    nonstopux*) version_type=nonstopux ;;
1883232b578d3Smrg    *)
1883332b578d3Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1883432b578d3Smrg		version_type=linux
1883532b578d3Smrg	else
1883632b578d3Smrg		version_type=irix
1883732b578d3Smrg	fi ;;
1883832b578d3Smrg  esac
1883932b578d3Smrg  need_lib_prefix=no
1884032b578d3Smrg  need_version=no
1884132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1884232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1884332b578d3Smrg  case $host_os in
1884432b578d3Smrg  irix5* | nonstopux*)
1884532b578d3Smrg    libsuff= shlibsuff=
1884632b578d3Smrg    ;;
1884732b578d3Smrg  *)
1884832b578d3Smrg    case $LD in # libtool.m4 will add one of these switches to LD
1884932b578d3Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1885032b578d3Smrg      libsuff= shlibsuff= libmagic=32-bit;;
1885132b578d3Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1885232b578d3Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1885332b578d3Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1885432b578d3Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1885532b578d3Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
1885632b578d3Smrg    esac
1885732b578d3Smrg    ;;
1885832b578d3Smrg  esac
1885932b578d3Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1886032b578d3Smrg  shlibpath_overrides_runpath=no
1886132b578d3Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1886232b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1886332b578d3Smrg  hardcode_into_libs=yes
1886432b578d3Smrg  ;;
1886532b578d3Smrg
1886632b578d3Smrg# No shared lib support for Linux oldld, aout, or coff.
1886732b578d3Smrglinux*oldld* | linux*aout* | linux*coff*)
1886832b578d3Smrg  dynamic_linker=no
1886932b578d3Smrg  ;;
1887032b578d3Smrg
1887132b578d3Smrg# This must be Linux ELF.
188722a51b5beSmrglinux* | k*bsd*-gnu)
1887332b578d3Smrg  version_type=linux
1887432b578d3Smrg  need_lib_prefix=no
1887532b578d3Smrg  need_version=no
1887632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1887732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1887832b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1887932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1888032b578d3Smrg  shlibpath_overrides_runpath=no
1888132b578d3Smrg  # This implies no fast_install, which is unacceptable.
1888232b578d3Smrg  # Some rework will be needed to allow for fast_install
1888332b578d3Smrg  # before this can be enabled.
1888432b578d3Smrg  hardcode_into_libs=yes
188852a51b5beSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
188862a51b5beSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1888732b578d3Smrg
1888832b578d3Smrg  # Append ld.so.conf contents to the search path
1888932b578d3Smrg  if test -f /etc/ld.so.conf; then
188902a51b5beSmrg    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;/^$/d' | tr '\n' ' '`
188912a51b5beSmrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1889232b578d3Smrg  fi
1889332b578d3Smrg
1889432b578d3Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1889532b578d3Smrg  # powerpc, because MkLinux only supported shared libraries with the
1889632b578d3Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1889732b578d3Smrg  # most powerpc-linux boxes support dynamic linking these days and
1889832b578d3Smrg  # people can always --disable-shared, the test was removed, and we
1889932b578d3Smrg  # assume the GNU/Linux dynamic linker is in use.
1890032b578d3Smrg  dynamic_linker='GNU/Linux ld.so'
1890132b578d3Smrg  ;;
1890232b578d3Smrg
1890332b578d3Smrgnetbsd*)
1890432b578d3Smrg  version_type=sunos
1890532b578d3Smrg  need_lib_prefix=no
1890632b578d3Smrg  need_version=no
1890732b578d3Smrg  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1890832b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1890932b578d3Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1891032b578d3Smrg    dynamic_linker='NetBSD (a.out) ld.so'
1891132b578d3Smrg  else
1891232b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1891332b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1891432b578d3Smrg    dynamic_linker='NetBSD ld.elf_so'
1891532b578d3Smrg  fi
1891632b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1891732b578d3Smrg  shlibpath_overrides_runpath=yes
1891832b578d3Smrg  hardcode_into_libs=yes
1891932b578d3Smrg  ;;
1892032b578d3Smrg
1892132b578d3Smrgnewsos6)
1892232b578d3Smrg  version_type=linux
1892332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1892432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1892532b578d3Smrg  shlibpath_overrides_runpath=yes
1892632b578d3Smrg  ;;
1892732b578d3Smrg
1892832b578d3Smrgnto-qnx*)
1892932b578d3Smrg  version_type=linux
1893032b578d3Smrg  need_lib_prefix=no
1893132b578d3Smrg  need_version=no
1893232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1893332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1893432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1893532b578d3Smrg  shlibpath_overrides_runpath=yes
1893632b578d3Smrg  ;;
1893732b578d3Smrg
1893832b578d3Smrgopenbsd*)
1893932b578d3Smrg  version_type=sunos
1894032b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
1894132b578d3Smrg  need_lib_prefix=no
1894232b578d3Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1894332b578d3Smrg  case $host_os in
1894432b578d3Smrg    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1894532b578d3Smrg    *)                         need_version=no  ;;
1894632b578d3Smrg  esac
1894732b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1894832b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1894932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1895032b578d3Smrg  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1895132b578d3Smrg    case $host_os in
1895232b578d3Smrg      openbsd2.[89] | openbsd2.[89].*)
1895332b578d3Smrg	shlibpath_overrides_runpath=no
1895432b578d3Smrg	;;
1895532b578d3Smrg      *)
1895632b578d3Smrg	shlibpath_overrides_runpath=yes
1895732b578d3Smrg	;;
1895832b578d3Smrg      esac
1895932b578d3Smrg  else
1896032b578d3Smrg    shlibpath_overrides_runpath=yes
1896132b578d3Smrg  fi
1896232b578d3Smrg  ;;
1896332b578d3Smrg
1896432b578d3Smrgos2*)
1896532b578d3Smrg  libname_spec='$name'
1896632b578d3Smrg  shrext_cmds=".dll"
1896732b578d3Smrg  need_lib_prefix=no
1896832b578d3Smrg  library_names_spec='$libname${shared_ext} $libname.a'
1896932b578d3Smrg  dynamic_linker='OS/2 ld.exe'
1897032b578d3Smrg  shlibpath_var=LIBPATH
1897132b578d3Smrg  ;;
1897232b578d3Smrg
1897332b578d3Smrgosf3* | osf4* | osf5*)
1897432b578d3Smrg  version_type=osf
1897532b578d3Smrg  need_lib_prefix=no
1897632b578d3Smrg  need_version=no
1897732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1897832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1897932b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1898032b578d3Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1898132b578d3Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1898232b578d3Smrg  ;;
1898332b578d3Smrg
189842a51b5beSmrgrdos*)
189852a51b5beSmrg  dynamic_linker=no
189862a51b5beSmrg  ;;
189872a51b5beSmrg
1898832b578d3Smrgsolaris*)
1898932b578d3Smrg  version_type=linux
1899032b578d3Smrg  need_lib_prefix=no
1899132b578d3Smrg  need_version=no
1899232b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1899332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1899432b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1899532b578d3Smrg  shlibpath_overrides_runpath=yes
1899632b578d3Smrg  hardcode_into_libs=yes
1899732b578d3Smrg  # ldd complains unless libraries are executable
1899832b578d3Smrg  postinstall_cmds='chmod +x $lib'
1899932b578d3Smrg  ;;
1900032b578d3Smrg
1900132b578d3Smrgsunos4*)
1900232b578d3Smrg  version_type=sunos
1900332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1900432b578d3Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1900532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1900632b578d3Smrg  shlibpath_overrides_runpath=yes
1900732b578d3Smrg  if test "$with_gnu_ld" = yes; then
1900832b578d3Smrg    need_lib_prefix=no
1900932b578d3Smrg  fi
1901032b578d3Smrg  need_version=yes
1901132b578d3Smrg  ;;
1901232b578d3Smrg
1901332b578d3Smrgsysv4 | sysv4.3*)
1901432b578d3Smrg  version_type=linux
1901532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1901632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1901732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1901832b578d3Smrg  case $host_vendor in
1901932b578d3Smrg    sni)
1902032b578d3Smrg      shlibpath_overrides_runpath=no
1902132b578d3Smrg      need_lib_prefix=no
1902232b578d3Smrg      export_dynamic_flag_spec='${wl}-Blargedynsym'
1902332b578d3Smrg      runpath_var=LD_RUN_PATH
1902432b578d3Smrg      ;;
1902532b578d3Smrg    siemens)
1902632b578d3Smrg      need_lib_prefix=no
1902732b578d3Smrg      ;;
1902832b578d3Smrg    motorola)
1902932b578d3Smrg      need_lib_prefix=no
1903032b578d3Smrg      need_version=no
1903132b578d3Smrg      shlibpath_overrides_runpath=no
1903232b578d3Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1903332b578d3Smrg      ;;
1903432b578d3Smrg  esac
1903532b578d3Smrg  ;;
1903632b578d3Smrg
1903732b578d3Smrgsysv4*MP*)
1903832b578d3Smrg  if test -d /usr/nec ;then
1903932b578d3Smrg    version_type=linux
1904032b578d3Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1904132b578d3Smrg    soname_spec='$libname${shared_ext}.$major'
1904232b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1904332b578d3Smrg  fi
1904432b578d3Smrg  ;;
1904532b578d3Smrg
1904632b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1904732b578d3Smrg  version_type=freebsd-elf
1904832b578d3Smrg  need_lib_prefix=no
1904932b578d3Smrg  need_version=no
1905032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1905132b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1905232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1905332b578d3Smrg  hardcode_into_libs=yes
1905432b578d3Smrg  if test "$with_gnu_ld" = yes; then
1905532b578d3Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1905632b578d3Smrg    shlibpath_overrides_runpath=no
1905732b578d3Smrg  else
1905832b578d3Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1905932b578d3Smrg    shlibpath_overrides_runpath=yes
1906032b578d3Smrg    case $host_os in
1906132b578d3Smrg      sco3.2v5*)
1906232b578d3Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1906332b578d3Smrg	;;
1906432b578d3Smrg    esac
1906532b578d3Smrg  fi
1906632b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1906732b578d3Smrg  ;;
1906832b578d3Smrg
1906932b578d3Smrguts4*)
1907032b578d3Smrg  version_type=linux
1907132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1907232b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1907332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1907432b578d3Smrg  ;;
1907532b578d3Smrg
1907632b578d3Smrg*)
1907732b578d3Smrg  dynamic_linker=no
1907832b578d3Smrg  ;;
1907932b578d3Smrgesac
190802a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
190812a51b5beSmrg$as_echo "$dynamic_linker" >&6; }
1908232b578d3Smrgtest "$dynamic_linker" = no && can_build_shared=no
1908332b578d3Smrg
190842a51b5beSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
190852a51b5beSmrg  $as_echo_n "(cached) " >&6
190862a51b5beSmrgelse
190872a51b5beSmrg  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
190882a51b5beSmrgfi
190892a51b5beSmrg
190902a51b5beSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
190912a51b5beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
190922a51b5beSmrg  $as_echo_n "(cached) " >&6
190932a51b5beSmrgelse
190942a51b5beSmrg  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
190952a51b5beSmrgfi
190962a51b5beSmrg
190972a51b5beSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
190982a51b5beSmrg
1909932b578d3Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1910032b578d3Smrgif test "$GCC" = yes; then
1910132b578d3Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1910232b578d3Smrgfi
1910332b578d3Smrg
191042a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
191052a51b5beSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1910632b578d3Smrghardcode_action_GCJ=
1910732b578d3Smrgif test -n "$hardcode_libdir_flag_spec_GCJ" || \
1910832b578d3Smrg   test -n "$runpath_var_GCJ" || \
1910932b578d3Smrg   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
1911032b578d3Smrg
1911132b578d3Smrg  # We can hardcode non-existant directories.
1911232b578d3Smrg  if test "$hardcode_direct_GCJ" != no &&
1911332b578d3Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1911432b578d3Smrg     # have to relink, otherwise we might link with an installed library
1911532b578d3Smrg     # when we should be linking with a yet-to-be-installed one
1911632b578d3Smrg     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
1911732b578d3Smrg     test "$hardcode_minus_L_GCJ" != no; then
1911832b578d3Smrg    # Linking always hardcodes the temporary library directory.
1911932b578d3Smrg    hardcode_action_GCJ=relink
1912032b578d3Smrg  else
1912132b578d3Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1912232b578d3Smrg    hardcode_action_GCJ=immediate
1912332b578d3Smrg  fi
1912432b578d3Smrgelse
1912532b578d3Smrg  # We cannot hardcode anything, or else we can only hardcode existing
1912632b578d3Smrg  # directories.
1912732b578d3Smrg  hardcode_action_GCJ=unsupported
1912832b578d3Smrgfi
191292a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
191302a51b5beSmrg$as_echo "$hardcode_action_GCJ" >&6; }
1913132b578d3Smrg
1913232b578d3Smrgif test "$hardcode_action_GCJ" = relink; then
1913332b578d3Smrg  # Fast installation is not supported
1913432b578d3Smrg  enable_fast_install=no
1913532b578d3Smrgelif test "$shlibpath_overrides_runpath" = yes ||
1913632b578d3Smrg     test "$enable_shared" = no; then
1913732b578d3Smrg  # Fast installation is not necessary
1913832b578d3Smrg  enable_fast_install=needless
1913932b578d3Smrgfi
1914032b578d3Smrg
1914132b578d3Smrg
1914232b578d3Smrg# The else clause should only fire when bootstrapping the
1914332b578d3Smrg# libtool distribution, otherwise you forgot to ship ltmain.sh
1914432b578d3Smrg# with your package, and you will get complaints that there are
1914532b578d3Smrg# no rules to generate ltmain.sh.
1914632b578d3Smrgif test -f "$ltmain"; then
1914732b578d3Smrg  # See if we are running on zsh, and set the options which allow our commands through
1914832b578d3Smrg  # without removal of \ escapes.
1914932b578d3Smrg  if test -n "${ZSH_VERSION+set}" ; then
1915032b578d3Smrg    setopt NO_GLOB_SUBST
1915132b578d3Smrg  fi
1915232b578d3Smrg  # Now quote all the things that may contain metacharacters while being
1915332b578d3Smrg  # careful not to overquote the AC_SUBSTed values.  We take copies of the
1915432b578d3Smrg  # variables and quote the copies for generation of the libtool script.
1915532b578d3Smrg  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1915632b578d3Smrg    SED SHELL STRIP \
1915732b578d3Smrg    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1915832b578d3Smrg    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1915932b578d3Smrg    deplibs_check_method reload_flag reload_cmds need_locks \
1916032b578d3Smrg    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1916132b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address \
1916232b578d3Smrg    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1916332b578d3Smrg    old_postinstall_cmds old_postuninstall_cmds \
1916432b578d3Smrg    compiler_GCJ \
1916532b578d3Smrg    CC_GCJ \
1916632b578d3Smrg    LD_GCJ \
1916732b578d3Smrg    lt_prog_compiler_wl_GCJ \
1916832b578d3Smrg    lt_prog_compiler_pic_GCJ \
1916932b578d3Smrg    lt_prog_compiler_static_GCJ \
1917032b578d3Smrg    lt_prog_compiler_no_builtin_flag_GCJ \
1917132b578d3Smrg    export_dynamic_flag_spec_GCJ \
1917232b578d3Smrg    thread_safe_flag_spec_GCJ \
1917332b578d3Smrg    whole_archive_flag_spec_GCJ \
1917432b578d3Smrg    enable_shared_with_static_runtimes_GCJ \
1917532b578d3Smrg    old_archive_cmds_GCJ \
1917632b578d3Smrg    old_archive_from_new_cmds_GCJ \
1917732b578d3Smrg    predep_objects_GCJ \
1917832b578d3Smrg    postdep_objects_GCJ \
1917932b578d3Smrg    predeps_GCJ \
1918032b578d3Smrg    postdeps_GCJ \
1918132b578d3Smrg    compiler_lib_search_path_GCJ \
191822a51b5beSmrg    compiler_lib_search_dirs_GCJ \
1918332b578d3Smrg    archive_cmds_GCJ \
1918432b578d3Smrg    archive_expsym_cmds_GCJ \
1918532b578d3Smrg    postinstall_cmds_GCJ \
1918632b578d3Smrg    postuninstall_cmds_GCJ \
1918732b578d3Smrg    old_archive_from_expsyms_cmds_GCJ \
1918832b578d3Smrg    allow_undefined_flag_GCJ \
1918932b578d3Smrg    no_undefined_flag_GCJ \
1919032b578d3Smrg    export_symbols_cmds_GCJ \
1919132b578d3Smrg    hardcode_libdir_flag_spec_GCJ \
1919232b578d3Smrg    hardcode_libdir_flag_spec_ld_GCJ \
1919332b578d3Smrg    hardcode_libdir_separator_GCJ \
1919432b578d3Smrg    hardcode_automatic_GCJ \
1919532b578d3Smrg    module_cmds_GCJ \
1919632b578d3Smrg    module_expsym_cmds_GCJ \
1919732b578d3Smrg    lt_cv_prog_compiler_c_o_GCJ \
191982a51b5beSmrg    fix_srcfile_path_GCJ \
1919932b578d3Smrg    exclude_expsyms_GCJ \
1920032b578d3Smrg    include_expsyms_GCJ; do
1920132b578d3Smrg
1920232b578d3Smrg    case $var in
1920332b578d3Smrg    old_archive_cmds_GCJ | \
1920432b578d3Smrg    old_archive_from_new_cmds_GCJ | \
1920532b578d3Smrg    archive_cmds_GCJ | \
1920632b578d3Smrg    archive_expsym_cmds_GCJ | \
1920732b578d3Smrg    module_cmds_GCJ | \
1920832b578d3Smrg    module_expsym_cmds_GCJ | \
1920932b578d3Smrg    old_archive_from_expsyms_cmds_GCJ | \
1921032b578d3Smrg    export_symbols_cmds_GCJ | \
1921132b578d3Smrg    extract_expsyms_cmds | reload_cmds | finish_cmds | \
1921232b578d3Smrg    postinstall_cmds | postuninstall_cmds | \
1921332b578d3Smrg    old_postinstall_cmds | old_postuninstall_cmds | \
1921432b578d3Smrg    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1921532b578d3Smrg      # Double-quote double-evaled strings.
1921632b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1921732b578d3Smrg      ;;
1921832b578d3Smrg    *)
1921932b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1922032b578d3Smrg      ;;
1922132b578d3Smrg    esac
1922232b578d3Smrg  done
1922332b578d3Smrg
1922432b578d3Smrg  case $lt_echo in
1922532b578d3Smrg  *'\$0 --fallback-echo"')
1922632b578d3Smrg    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1922732b578d3Smrg    ;;
1922832b578d3Smrg  esac
1922932b578d3Smrg
1923032b578d3Smrgcfgfile="$ofile"
1923132b578d3Smrg
1923232b578d3Smrg  cat <<__EOF__ >> "$cfgfile"
1923332b578d3Smrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1923432b578d3Smrg
1923532b578d3Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1923632b578d3Smrg
1923732b578d3Smrg# Shell to use when invoking shell scripts.
1923832b578d3SmrgSHELL=$lt_SHELL
1923932b578d3Smrg
1924032b578d3Smrg# Whether or not to build shared libraries.
1924132b578d3Smrgbuild_libtool_libs=$enable_shared
1924232b578d3Smrg
1924332b578d3Smrg# Whether or not to build static libraries.
1924432b578d3Smrgbuild_old_libs=$enable_static
1924532b578d3Smrg
1924632b578d3Smrg# Whether or not to add -lc for building shared libraries.
1924732b578d3Smrgbuild_libtool_need_lc=$archive_cmds_need_lc_GCJ
1924832b578d3Smrg
1924932b578d3Smrg# Whether or not to disallow shared libs when runtime libs are static
1925032b578d3Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
1925132b578d3Smrg
1925232b578d3Smrg# Whether or not to optimize for fast installation.
1925332b578d3Smrgfast_install=$enable_fast_install
1925432b578d3Smrg
1925532b578d3Smrg# The host system.
1925632b578d3Smrghost_alias=$host_alias
1925732b578d3Smrghost=$host
1925832b578d3Smrghost_os=$host_os
1925932b578d3Smrg
1926032b578d3Smrg# The build system.
1926132b578d3Smrgbuild_alias=$build_alias
1926232b578d3Smrgbuild=$build
1926332b578d3Smrgbuild_os=$build_os
1926432b578d3Smrg
1926532b578d3Smrg# An echo program that does not interpret backslashes.
1926632b578d3Smrgecho=$lt_echo
1926732b578d3Smrg
1926832b578d3Smrg# The archiver.
1926932b578d3SmrgAR=$lt_AR
1927032b578d3SmrgAR_FLAGS=$lt_AR_FLAGS
1927132b578d3Smrg
1927232b578d3Smrg# A C compiler.
1927332b578d3SmrgLTCC=$lt_LTCC
1927432b578d3Smrg
1927532b578d3Smrg# LTCC compiler flags.
1927632b578d3SmrgLTCFLAGS=$lt_LTCFLAGS
1927732b578d3Smrg
1927832b578d3Smrg# A language-specific compiler.
1927932b578d3SmrgCC=$lt_compiler_GCJ
1928032b578d3Smrg
1928132b578d3Smrg# Is the compiler the GNU C compiler?
1928232b578d3Smrgwith_gcc=$GCC_GCJ
1928332b578d3Smrg
1928432b578d3Smrg# An ERE matcher.
1928532b578d3SmrgEGREP=$lt_EGREP
1928632b578d3Smrg
1928732b578d3Smrg# The linker used to build libraries.
1928832b578d3SmrgLD=$lt_LD_GCJ
1928932b578d3Smrg
1929032b578d3Smrg# Whether we need hard or soft links.
1929132b578d3SmrgLN_S=$lt_LN_S
1929232b578d3Smrg
1929332b578d3Smrg# A BSD-compatible nm program.
1929432b578d3SmrgNM=$lt_NM
1929532b578d3Smrg
1929632b578d3Smrg# A symbol stripping program
1929732b578d3SmrgSTRIP=$lt_STRIP
1929832b578d3Smrg
1929932b578d3Smrg# Used to examine libraries when file_magic_cmd begins "file"
1930032b578d3SmrgMAGIC_CMD=$MAGIC_CMD
1930132b578d3Smrg
1930232b578d3Smrg# Used on cygwin: DLL creation program.
1930332b578d3SmrgDLLTOOL="$DLLTOOL"
1930432b578d3Smrg
1930532b578d3Smrg# Used on cygwin: object dumper.
1930632b578d3SmrgOBJDUMP="$OBJDUMP"
1930732b578d3Smrg
1930832b578d3Smrg# Used on cygwin: assembler.
1930932b578d3SmrgAS="$AS"
1931032b578d3Smrg
1931132b578d3Smrg# The name of the directory that contains temporary libtool files.
1931232b578d3Smrgobjdir=$objdir
1931332b578d3Smrg
1931432b578d3Smrg# How to create reloadable object files.
1931532b578d3Smrgreload_flag=$lt_reload_flag
1931632b578d3Smrgreload_cmds=$lt_reload_cmds
1931732b578d3Smrg
1931832b578d3Smrg# How to pass a linker flag through the compiler.
1931932b578d3Smrgwl=$lt_lt_prog_compiler_wl_GCJ
1932032b578d3Smrg
1932132b578d3Smrg# Object file suffix (normally "o").
1932232b578d3Smrgobjext="$ac_objext"
1932332b578d3Smrg
1932432b578d3Smrg# Old archive suffix (normally "a").
1932532b578d3Smrglibext="$libext"
1932632b578d3Smrg
1932732b578d3Smrg# Shared library suffix (normally ".so").
1932832b578d3Smrgshrext_cmds='$shrext_cmds'
1932932b578d3Smrg
1933032b578d3Smrg# Executable file suffix (normally "").
1933132b578d3Smrgexeext="$exeext"
1933232b578d3Smrg
1933332b578d3Smrg# Additional compiler flags for building library objects.
1933432b578d3Smrgpic_flag=$lt_lt_prog_compiler_pic_GCJ
1933532b578d3Smrgpic_mode=$pic_mode
1933632b578d3Smrg
1933732b578d3Smrg# What is the maximum length of a command?
1933832b578d3Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1933932b578d3Smrg
1934032b578d3Smrg# Does compiler simultaneously support -c and -o options?
1934132b578d3Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
1934232b578d3Smrg
1934332b578d3Smrg# Must we lock files when doing compilation?
1934432b578d3Smrgneed_locks=$lt_need_locks
1934532b578d3Smrg
1934632b578d3Smrg# Do we need the lib prefix for modules?
1934732b578d3Smrgneed_lib_prefix=$need_lib_prefix
1934832b578d3Smrg
1934932b578d3Smrg# Do we need a version for libraries?
1935032b578d3Smrgneed_version=$need_version
1935132b578d3Smrg
1935232b578d3Smrg# Whether dlopen is supported.
1935332b578d3Smrgdlopen_support=$enable_dlopen
1935432b578d3Smrg
1935532b578d3Smrg# Whether dlopen of programs is supported.
1935632b578d3Smrgdlopen_self=$enable_dlopen_self
1935732b578d3Smrg
1935832b578d3Smrg# Whether dlopen of statically linked programs is supported.
1935932b578d3Smrgdlopen_self_static=$enable_dlopen_self_static
1936032b578d3Smrg
1936132b578d3Smrg# Compiler flag to prevent dynamic linking.
1936232b578d3Smrglink_static_flag=$lt_lt_prog_compiler_static_GCJ
1936332b578d3Smrg
1936432b578d3Smrg# Compiler flag to turn off builtin functions.
1936532b578d3Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
1936632b578d3Smrg
1936732b578d3Smrg# Compiler flag to allow reflexive dlopens.
1936832b578d3Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
1936932b578d3Smrg
1937032b578d3Smrg# Compiler flag to generate shared objects directly from archives.
1937132b578d3Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
1937232b578d3Smrg
1937332b578d3Smrg# Compiler flag to generate thread-safe objects.
1937432b578d3Smrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
1937532b578d3Smrg
1937632b578d3Smrg# Library versioning type.
1937732b578d3Smrgversion_type=$version_type
1937832b578d3Smrg
1937932b578d3Smrg# Format of library name prefix.
1938032b578d3Smrglibname_spec=$lt_libname_spec
1938132b578d3Smrg
1938232b578d3Smrg# List of archive names.  First name is the real one, the rest are links.
1938332b578d3Smrg# The last name is the one that the linker finds with -lNAME.
1938432b578d3Smrglibrary_names_spec=$lt_library_names_spec
1938532b578d3Smrg
1938632b578d3Smrg# The coded name of the library, if different from the real name.
1938732b578d3Smrgsoname_spec=$lt_soname_spec
1938832b578d3Smrg
1938932b578d3Smrg# Commands used to build and install an old-style archive.
1939032b578d3SmrgRANLIB=$lt_RANLIB
1939132b578d3Smrgold_archive_cmds=$lt_old_archive_cmds_GCJ
1939232b578d3Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1939332b578d3Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1939432b578d3Smrg
1939532b578d3Smrg# Create an old-style archive from a shared archive.
1939632b578d3Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
1939732b578d3Smrg
1939832b578d3Smrg# Create a temporary old-style archive to link instead of a shared archive.
1939932b578d3Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
1940032b578d3Smrg
1940132b578d3Smrg# Commands used to build and install a shared archive.
1940232b578d3Smrgarchive_cmds=$lt_archive_cmds_GCJ
1940332b578d3Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
1940432b578d3Smrgpostinstall_cmds=$lt_postinstall_cmds
1940532b578d3Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1940632b578d3Smrg
1940732b578d3Smrg# Commands used to build a loadable module (assumed same as above if empty)
1940832b578d3Smrgmodule_cmds=$lt_module_cmds_GCJ
1940932b578d3Smrgmodule_expsym_cmds=$lt_module_expsym_cmds_GCJ
1941032b578d3Smrg
1941132b578d3Smrg# Commands to strip libraries.
1941232b578d3Smrgold_striplib=$lt_old_striplib
1941332b578d3Smrgstriplib=$lt_striplib
1941432b578d3Smrg
1941532b578d3Smrg# Dependencies to place before the objects being linked to create a
1941632b578d3Smrg# shared library.
1941732b578d3Smrgpredep_objects=$lt_predep_objects_GCJ
1941832b578d3Smrg
1941932b578d3Smrg# Dependencies to place after the objects being linked to create a
1942032b578d3Smrg# shared library.
1942132b578d3Smrgpostdep_objects=$lt_postdep_objects_GCJ
1942232b578d3Smrg
1942332b578d3Smrg# Dependencies to place before the objects being linked to create a
1942432b578d3Smrg# shared library.
1942532b578d3Smrgpredeps=$lt_predeps_GCJ
1942632b578d3Smrg
1942732b578d3Smrg# Dependencies to place after the objects being linked to create a
1942832b578d3Smrg# shared library.
1942932b578d3Smrgpostdeps=$lt_postdeps_GCJ
1943032b578d3Smrg
194312a51b5beSmrg# The directories searched by this compiler when creating a shared
194322a51b5beSmrg# library
194332a51b5beSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
194342a51b5beSmrg
1943532b578d3Smrg# The library search path used internally by the compiler when linking
1943632b578d3Smrg# a shared library.
1943732b578d3Smrgcompiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
1943832b578d3Smrg
1943932b578d3Smrg# Method to check whether dependent libraries are shared objects.
1944032b578d3Smrgdeplibs_check_method=$lt_deplibs_check_method
1944132b578d3Smrg
1944232b578d3Smrg# Command to use when deplibs_check_method == file_magic.
1944332b578d3Smrgfile_magic_cmd=$lt_file_magic_cmd
1944432b578d3Smrg
1944532b578d3Smrg# Flag that allows shared libraries with undefined symbols to be built.
1944632b578d3Smrgallow_undefined_flag=$lt_allow_undefined_flag_GCJ
1944732b578d3Smrg
1944832b578d3Smrg# Flag that forces no undefined symbols.
1944932b578d3Smrgno_undefined_flag=$lt_no_undefined_flag_GCJ
1945032b578d3Smrg
1945132b578d3Smrg# Commands used to finish a libtool library installation in a directory.
1945232b578d3Smrgfinish_cmds=$lt_finish_cmds
1945332b578d3Smrg
1945432b578d3Smrg# Same as above, but a single script fragment to be evaled but not shown.
1945532b578d3Smrgfinish_eval=$lt_finish_eval
1945632b578d3Smrg
1945732b578d3Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1945832b578d3Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1945932b578d3Smrg
1946032b578d3Smrg# Transform the output of nm in a proper C declaration
1946132b578d3Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1946232b578d3Smrg
1946332b578d3Smrg# Transform the output of nm in a C name address pair
1946432b578d3Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1946532b578d3Smrg
1946632b578d3Smrg# This is the shared library runtime path variable.
1946732b578d3Smrgrunpath_var=$runpath_var
1946832b578d3Smrg
1946932b578d3Smrg# This is the shared library path variable.
1947032b578d3Smrgshlibpath_var=$shlibpath_var
1947132b578d3Smrg
1947232b578d3Smrg# Is shlibpath searched before the hard-coded library search path?
1947332b578d3Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1947432b578d3Smrg
1947532b578d3Smrg# How to hardcode a shared library path into an executable.
1947632b578d3Smrghardcode_action=$hardcode_action_GCJ
1947732b578d3Smrg
1947832b578d3Smrg# Whether we should hardcode library paths into libraries.
1947932b578d3Smrghardcode_into_libs=$hardcode_into_libs
1948032b578d3Smrg
1948132b578d3Smrg# Flag to hardcode \$libdir into a binary during linking.
1948232b578d3Smrg# This must work even if \$libdir does not exist.
1948332b578d3Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
1948432b578d3Smrg
1948532b578d3Smrg# If ld is used when linking, flag to hardcode \$libdir into
1948632b578d3Smrg# a binary during linking. This must work even if \$libdir does
1948732b578d3Smrg# not exist.
1948832b578d3Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
1948932b578d3Smrg
1949032b578d3Smrg# Whether we need a single -rpath flag with a separated argument.
1949132b578d3Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
1949232b578d3Smrg
1949332b578d3Smrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1949432b578d3Smrg# resulting binary.
1949532b578d3Smrghardcode_direct=$hardcode_direct_GCJ
1949632b578d3Smrg
1949732b578d3Smrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1949832b578d3Smrg# resulting binary.
1949932b578d3Smrghardcode_minus_L=$hardcode_minus_L_GCJ
1950032b578d3Smrg
1950132b578d3Smrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1950232b578d3Smrg# the resulting binary.
1950332b578d3Smrghardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
1950432b578d3Smrg
1950532b578d3Smrg# Set to yes if building a shared library automatically hardcodes DIR into the library
1950632b578d3Smrg# and all subsequent libraries and executables linked against it.
1950732b578d3Smrghardcode_automatic=$hardcode_automatic_GCJ
1950832b578d3Smrg
1950932b578d3Smrg# Variables whose values should be saved in libtool wrapper scripts and
1951032b578d3Smrg# restored at relink time.
1951132b578d3Smrgvariables_saved_for_relink="$variables_saved_for_relink"
1951232b578d3Smrg
1951332b578d3Smrg# Whether libtool must link a program against all its dependency libraries.
1951432b578d3Smrglink_all_deplibs=$link_all_deplibs_GCJ
1951532b578d3Smrg
1951632b578d3Smrg# Compile-time system search path for libraries
1951732b578d3Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1951832b578d3Smrg
1951932b578d3Smrg# Run-time system search path for libraries
1952032b578d3Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1952132b578d3Smrg
1952232b578d3Smrg# Fix the shell variable \$srcfile for the compiler.
195232a51b5beSmrgfix_srcfile_path=$lt_fix_srcfile_path
1952432b578d3Smrg
1952532b578d3Smrg# Set to yes if exported symbols are required.
1952632b578d3Smrgalways_export_symbols=$always_export_symbols_GCJ
1952732b578d3Smrg
1952832b578d3Smrg# The commands to list exported symbols.
1952932b578d3Smrgexport_symbols_cmds=$lt_export_symbols_cmds_GCJ
1953032b578d3Smrg
1953132b578d3Smrg# The commands to extract the exported symbol list from a shared archive.
1953232b578d3Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1953332b578d3Smrg
1953432b578d3Smrg# Symbols that should not be listed in the preloaded symbols.
1953532b578d3Smrgexclude_expsyms=$lt_exclude_expsyms_GCJ
1953632b578d3Smrg
1953732b578d3Smrg# Symbols that must always be exported.
1953832b578d3Smrginclude_expsyms=$lt_include_expsyms_GCJ
1953932b578d3Smrg
1954032b578d3Smrg# ### END LIBTOOL TAG CONFIG: $tagname
1954132b578d3Smrg
1954232b578d3Smrg__EOF__
1954332b578d3Smrg
1954432b578d3Smrg
1954532b578d3Smrgelse
1954632b578d3Smrg  # If there is no Makefile yet, we rely on a make rule to execute
1954732b578d3Smrg  # `config.status --recheck' to rerun these tests and create the
1954832b578d3Smrg  # libtool script then.
1954932b578d3Smrg  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1955032b578d3Smrg  if test -f "$ltmain_in"; then
1955132b578d3Smrg    test -f Makefile && make "$ltmain"
1955232b578d3Smrg  fi
1955332b578d3Smrgfi
1955432b578d3Smrg
1955532b578d3Smrg
1955632b578d3Smrgac_ext=c
1955732b578d3Smrgac_cpp='$CPP $CPPFLAGS'
1955832b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955932b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956032b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1956132b578d3Smrg
1956232b578d3SmrgCC="$lt_save_CC"
1956332b578d3Smrg
1956432b578d3Smrg	else
1956532b578d3Smrg	  tagname=""
1956632b578d3Smrg	fi
1956732b578d3Smrg	;;
1956832b578d3Smrg
1956932b578d3Smrg      RC)
1957032b578d3Smrg
1957132b578d3Smrg
1957232b578d3Smrg# Source file extension for RC test sources.
1957332b578d3Smrgac_ext=rc
1957432b578d3Smrg
1957532b578d3Smrg# Object file extension for compiled RC test sources.
1957632b578d3Smrgobjext=o
1957732b578d3Smrgobjext_RC=$objext
1957832b578d3Smrg
1957932b578d3Smrg# Code to be used in simple compile tests
195802a51b5beSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
1958132b578d3Smrg
1958232b578d3Smrg# Code to be used in simple link tests
1958332b578d3Smrglt_simple_link_test_code="$lt_simple_compile_test_code"
1958432b578d3Smrg
1958532b578d3Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1958632b578d3Smrg
1958732b578d3Smrg# If no C compiler was specified, use CC.
1958832b578d3SmrgLTCC=${LTCC-"$CC"}
1958932b578d3Smrg
1959032b578d3Smrg# If no C compiler flags were specified, use CFLAGS.
1959132b578d3SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1959232b578d3Smrg
1959332b578d3Smrg# Allow CC to be a program name with arguments.
1959432b578d3Smrgcompiler=$CC
1959532b578d3Smrg
1959632b578d3Smrg
1959732b578d3Smrg# save warnings/boilerplate of simple test code
1959832b578d3Smrgac_outfile=conftest.$ac_objext
195992a51b5beSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
1960032b578d3Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1960132b578d3Smrg_lt_compiler_boilerplate=`cat conftest.err`
1960232b578d3Smrg$rm conftest*
1960332b578d3Smrg
1960432b578d3Smrgac_outfile=conftest.$ac_objext
196052a51b5beSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
1960632b578d3Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1960732b578d3Smrg_lt_linker_boilerplate=`cat conftest.err`
196082a51b5beSmrg$rm -r conftest*
1960932b578d3Smrg
1961032b578d3Smrg
1961132b578d3Smrg# Allow CC to be a program name with arguments.
1961232b578d3Smrglt_save_CC="$CC"
1961332b578d3SmrgCC=${RC-"windres"}
1961432b578d3Smrgcompiler=$CC
1961532b578d3Smrgcompiler_RC=$CC
1961632b578d3Smrgfor cc_temp in $compiler""; do
1961732b578d3Smrg  case $cc_temp in
1961832b578d3Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1961932b578d3Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1962032b578d3Smrg    \-*) ;;
1962132b578d3Smrg    *) break;;
1962232b578d3Smrg  esac
1962332b578d3Smrgdone
1962432b578d3Smrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1962532b578d3Smrg
1962632b578d3Smrglt_cv_prog_compiler_c_o_RC=yes
1962732b578d3Smrg
1962832b578d3Smrg# The else clause should only fire when bootstrapping the
1962932b578d3Smrg# libtool distribution, otherwise you forgot to ship ltmain.sh
1963032b578d3Smrg# with your package, and you will get complaints that there are
1963132b578d3Smrg# no rules to generate ltmain.sh.
1963232b578d3Smrgif test -f "$ltmain"; then
1963332b578d3Smrg  # See if we are running on zsh, and set the options which allow our commands through
1963432b578d3Smrg  # without removal of \ escapes.
1963532b578d3Smrg  if test -n "${ZSH_VERSION+set}" ; then
1963632b578d3Smrg    setopt NO_GLOB_SUBST
1963732b578d3Smrg  fi
1963832b578d3Smrg  # Now quote all the things that may contain metacharacters while being
1963932b578d3Smrg  # careful not to overquote the AC_SUBSTed values.  We take copies of the
1964032b578d3Smrg  # variables and quote the copies for generation of the libtool script.
1964132b578d3Smrg  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1964232b578d3Smrg    SED SHELL STRIP \
1964332b578d3Smrg    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1964432b578d3Smrg    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1964532b578d3Smrg    deplibs_check_method reload_flag reload_cmds need_locks \
1964632b578d3Smrg    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1964732b578d3Smrg    lt_cv_sys_global_symbol_to_c_name_address \
1964832b578d3Smrg    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1964932b578d3Smrg    old_postinstall_cmds old_postuninstall_cmds \
1965032b578d3Smrg    compiler_RC \
1965132b578d3Smrg    CC_RC \
1965232b578d3Smrg    LD_RC \
1965332b578d3Smrg    lt_prog_compiler_wl_RC \
1965432b578d3Smrg    lt_prog_compiler_pic_RC \
1965532b578d3Smrg    lt_prog_compiler_static_RC \
1965632b578d3Smrg    lt_prog_compiler_no_builtin_flag_RC \
1965732b578d3Smrg    export_dynamic_flag_spec_RC \
1965832b578d3Smrg    thread_safe_flag_spec_RC \
1965932b578d3Smrg    whole_archive_flag_spec_RC \
1966032b578d3Smrg    enable_shared_with_static_runtimes_RC \
1966132b578d3Smrg    old_archive_cmds_RC \
1966232b578d3Smrg    old_archive_from_new_cmds_RC \
1966332b578d3Smrg    predep_objects_RC \
1966432b578d3Smrg    postdep_objects_RC \
1966532b578d3Smrg    predeps_RC \
1966632b578d3Smrg    postdeps_RC \
1966732b578d3Smrg    compiler_lib_search_path_RC \
196682a51b5beSmrg    compiler_lib_search_dirs_RC \
1966932b578d3Smrg    archive_cmds_RC \
1967032b578d3Smrg    archive_expsym_cmds_RC \
1967132b578d3Smrg    postinstall_cmds_RC \
1967232b578d3Smrg    postuninstall_cmds_RC \
1967332b578d3Smrg    old_archive_from_expsyms_cmds_RC \
1967432b578d3Smrg    allow_undefined_flag_RC \
1967532b578d3Smrg    no_undefined_flag_RC \
1967632b578d3Smrg    export_symbols_cmds_RC \
1967732b578d3Smrg    hardcode_libdir_flag_spec_RC \
1967832b578d3Smrg    hardcode_libdir_flag_spec_ld_RC \
1967932b578d3Smrg    hardcode_libdir_separator_RC \
1968032b578d3Smrg    hardcode_automatic_RC \
1968132b578d3Smrg    module_cmds_RC \
1968232b578d3Smrg    module_expsym_cmds_RC \
1968332b578d3Smrg    lt_cv_prog_compiler_c_o_RC \
196842a51b5beSmrg    fix_srcfile_path_RC \
1968532b578d3Smrg    exclude_expsyms_RC \
1968632b578d3Smrg    include_expsyms_RC; do
1968732b578d3Smrg
1968832b578d3Smrg    case $var in
1968932b578d3Smrg    old_archive_cmds_RC | \
1969032b578d3Smrg    old_archive_from_new_cmds_RC | \
1969132b578d3Smrg    archive_cmds_RC | \
1969232b578d3Smrg    archive_expsym_cmds_RC | \
1969332b578d3Smrg    module_cmds_RC | \
1969432b578d3Smrg    module_expsym_cmds_RC | \
1969532b578d3Smrg    old_archive_from_expsyms_cmds_RC | \
1969632b578d3Smrg    export_symbols_cmds_RC | \
1969732b578d3Smrg    extract_expsyms_cmds | reload_cmds | finish_cmds | \
1969832b578d3Smrg    postinstall_cmds | postuninstall_cmds | \
1969932b578d3Smrg    old_postinstall_cmds | old_postuninstall_cmds | \
1970032b578d3Smrg    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1970132b578d3Smrg      # Double-quote double-evaled strings.
1970232b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1970332b578d3Smrg      ;;
1970432b578d3Smrg    *)
1970532b578d3Smrg      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1970632b578d3Smrg      ;;
1970732b578d3Smrg    esac
1970832b578d3Smrg  done
1970932b578d3Smrg
1971032b578d3Smrg  case $lt_echo in
1971132b578d3Smrg  *'\$0 --fallback-echo"')
1971232b578d3Smrg    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1971332b578d3Smrg    ;;
1971432b578d3Smrg  esac
1971532b578d3Smrg
1971632b578d3Smrgcfgfile="$ofile"
1971732b578d3Smrg
1971832b578d3Smrg  cat <<__EOF__ >> "$cfgfile"
1971932b578d3Smrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1972032b578d3Smrg
1972132b578d3Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1972232b578d3Smrg
1972332b578d3Smrg# Shell to use when invoking shell scripts.
1972432b578d3SmrgSHELL=$lt_SHELL
1972532b578d3Smrg
1972632b578d3Smrg# Whether or not to build shared libraries.
1972732b578d3Smrgbuild_libtool_libs=$enable_shared
1972832b578d3Smrg
1972932b578d3Smrg# Whether or not to build static libraries.
1973032b578d3Smrgbuild_old_libs=$enable_static
1973132b578d3Smrg
1973232b578d3Smrg# Whether or not to add -lc for building shared libraries.
1973332b578d3Smrgbuild_libtool_need_lc=$archive_cmds_need_lc_RC
1973432b578d3Smrg
1973532b578d3Smrg# Whether or not to disallow shared libs when runtime libs are static
1973632b578d3Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
1973732b578d3Smrg
1973832b578d3Smrg# Whether or not to optimize for fast installation.
1973932b578d3Smrgfast_install=$enable_fast_install
1974032b578d3Smrg
1974132b578d3Smrg# The host system.
1974232b578d3Smrghost_alias=$host_alias
1974332b578d3Smrghost=$host
1974432b578d3Smrghost_os=$host_os
1974532b578d3Smrg
1974632b578d3Smrg# The build system.
1974732b578d3Smrgbuild_alias=$build_alias
1974832b578d3Smrgbuild=$build
1974932b578d3Smrgbuild_os=$build_os
1975032b578d3Smrg
1975132b578d3Smrg# An echo program that does not interpret backslashes.
1975232b578d3Smrgecho=$lt_echo
1975332b578d3Smrg
1975432b578d3Smrg# The archiver.
1975532b578d3SmrgAR=$lt_AR
1975632b578d3SmrgAR_FLAGS=$lt_AR_FLAGS
1975732b578d3Smrg
1975832b578d3Smrg# A C compiler.
1975932b578d3SmrgLTCC=$lt_LTCC
1976032b578d3Smrg
1976132b578d3Smrg# LTCC compiler flags.
1976232b578d3SmrgLTCFLAGS=$lt_LTCFLAGS
1976332b578d3Smrg
1976432b578d3Smrg# A language-specific compiler.
1976532b578d3SmrgCC=$lt_compiler_RC
1976632b578d3Smrg
1976732b578d3Smrg# Is the compiler the GNU C compiler?
1976832b578d3Smrgwith_gcc=$GCC_RC
1976932b578d3Smrg
1977032b578d3Smrg# An ERE matcher.
1977132b578d3SmrgEGREP=$lt_EGREP
1977232b578d3Smrg
1977332b578d3Smrg# The linker used to build libraries.
1977432b578d3SmrgLD=$lt_LD_RC
1977532b578d3Smrg
1977632b578d3Smrg# Whether we need hard or soft links.
1977732b578d3SmrgLN_S=$lt_LN_S
1977832b578d3Smrg
1977932b578d3Smrg# A BSD-compatible nm program.
1978032b578d3SmrgNM=$lt_NM
1978132b578d3Smrg
1978232b578d3Smrg# A symbol stripping program
1978332b578d3SmrgSTRIP=$lt_STRIP
1978432b578d3Smrg
1978532b578d3Smrg# Used to examine libraries when file_magic_cmd begins "file"
1978632b578d3SmrgMAGIC_CMD=$MAGIC_CMD
1978732b578d3Smrg
1978832b578d3Smrg# Used on cygwin: DLL creation program.
1978932b578d3SmrgDLLTOOL="$DLLTOOL"
1979032b578d3Smrg
1979132b578d3Smrg# Used on cygwin: object dumper.
1979232b578d3SmrgOBJDUMP="$OBJDUMP"
1979332b578d3Smrg
1979432b578d3Smrg# Used on cygwin: assembler.
1979532b578d3SmrgAS="$AS"
1979632b578d3Smrg
1979732b578d3Smrg# The name of the directory that contains temporary libtool files.
1979832b578d3Smrgobjdir=$objdir
1979932b578d3Smrg
1980032b578d3Smrg# How to create reloadable object files.
1980132b578d3Smrgreload_flag=$lt_reload_flag
1980232b578d3Smrgreload_cmds=$lt_reload_cmds
1980332b578d3Smrg
1980432b578d3Smrg# How to pass a linker flag through the compiler.
1980532b578d3Smrgwl=$lt_lt_prog_compiler_wl_RC
1980632b578d3Smrg
1980732b578d3Smrg# Object file suffix (normally "o").
1980832b578d3Smrgobjext="$ac_objext"
1980932b578d3Smrg
1981032b578d3Smrg# Old archive suffix (normally "a").
1981132b578d3Smrglibext="$libext"
1981232b578d3Smrg
1981332b578d3Smrg# Shared library suffix (normally ".so").
1981432b578d3Smrgshrext_cmds='$shrext_cmds'
1981532b578d3Smrg
1981632b578d3Smrg# Executable file suffix (normally "").
1981732b578d3Smrgexeext="$exeext"
1981832b578d3Smrg
1981932b578d3Smrg# Additional compiler flags for building library objects.
1982032b578d3Smrgpic_flag=$lt_lt_prog_compiler_pic_RC
1982132b578d3Smrgpic_mode=$pic_mode
1982232b578d3Smrg
1982332b578d3Smrg# What is the maximum length of a command?
1982432b578d3Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1982532b578d3Smrg
1982632b578d3Smrg# Does compiler simultaneously support -c and -o options?
1982732b578d3Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
1982832b578d3Smrg
1982932b578d3Smrg# Must we lock files when doing compilation?
1983032b578d3Smrgneed_locks=$lt_need_locks
1983132b578d3Smrg
1983232b578d3Smrg# Do we need the lib prefix for modules?
1983332b578d3Smrgneed_lib_prefix=$need_lib_prefix
1983432b578d3Smrg
1983532b578d3Smrg# Do we need a version for libraries?
1983632b578d3Smrgneed_version=$need_version
1983732b578d3Smrg
1983832b578d3Smrg# Whether dlopen is supported.
1983932b578d3Smrgdlopen_support=$enable_dlopen
1984032b578d3Smrg
1984132b578d3Smrg# Whether dlopen of programs is supported.
1984232b578d3Smrgdlopen_self=$enable_dlopen_self
1984332b578d3Smrg
1984432b578d3Smrg# Whether dlopen of statically linked programs is supported.
1984532b578d3Smrgdlopen_self_static=$enable_dlopen_self_static
1984632b578d3Smrg
1984732b578d3Smrg# Compiler flag to prevent dynamic linking.
1984832b578d3Smrglink_static_flag=$lt_lt_prog_compiler_static_RC
1984932b578d3Smrg
1985032b578d3Smrg# Compiler flag to turn off builtin functions.
1985132b578d3Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
1985232b578d3Smrg
1985332b578d3Smrg# Compiler flag to allow reflexive dlopens.
1985432b578d3Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
1985532b578d3Smrg
1985632b578d3Smrg# Compiler flag to generate shared objects directly from archives.
1985732b578d3Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
1985832b578d3Smrg
1985932b578d3Smrg# Compiler flag to generate thread-safe objects.
1986032b578d3Smrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
1986132b578d3Smrg
1986232b578d3Smrg# Library versioning type.
1986332b578d3Smrgversion_type=$version_type
1986432b578d3Smrg
1986532b578d3Smrg# Format of library name prefix.
1986632b578d3Smrglibname_spec=$lt_libname_spec
1986732b578d3Smrg
1986832b578d3Smrg# List of archive names.  First name is the real one, the rest are links.
1986932b578d3Smrg# The last name is the one that the linker finds with -lNAME.
1987032b578d3Smrglibrary_names_spec=$lt_library_names_spec
1987132b578d3Smrg
1987232b578d3Smrg# The coded name of the library, if different from the real name.
1987332b578d3Smrgsoname_spec=$lt_soname_spec
1987432b578d3Smrg
1987532b578d3Smrg# Commands used to build and install an old-style archive.
1987632b578d3SmrgRANLIB=$lt_RANLIB
1987732b578d3Smrgold_archive_cmds=$lt_old_archive_cmds_RC
1987832b578d3Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1987932b578d3Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1988032b578d3Smrg
1988132b578d3Smrg# Create an old-style archive from a shared archive.
1988232b578d3Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
1988332b578d3Smrg
1988432b578d3Smrg# Create a temporary old-style archive to link instead of a shared archive.
1988532b578d3Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
1988632b578d3Smrg
1988732b578d3Smrg# Commands used to build and install a shared archive.
1988832b578d3Smrgarchive_cmds=$lt_archive_cmds_RC
1988932b578d3Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds_RC
1989032b578d3Smrgpostinstall_cmds=$lt_postinstall_cmds
1989132b578d3Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1989232b578d3Smrg
1989332b578d3Smrg# Commands used to build a loadable module (assumed same as above if empty)
1989432b578d3Smrgmodule_cmds=$lt_module_cmds_RC
1989532b578d3Smrgmodule_expsym_cmds=$lt_module_expsym_cmds_RC
1989632b578d3Smrg
1989732b578d3Smrg# Commands to strip libraries.
1989832b578d3Smrgold_striplib=$lt_old_striplib
1989932b578d3Smrgstriplib=$lt_striplib
1990032b578d3Smrg
1990132b578d3Smrg# Dependencies to place before the objects being linked to create a
1990232b578d3Smrg# shared library.
1990332b578d3Smrgpredep_objects=$lt_predep_objects_RC
1990432b578d3Smrg
1990532b578d3Smrg# Dependencies to place after the objects being linked to create a
1990632b578d3Smrg# shared library.
1990732b578d3Smrgpostdep_objects=$lt_postdep_objects_RC
1990832b578d3Smrg
1990932b578d3Smrg# Dependencies to place before the objects being linked to create a
1991032b578d3Smrg# shared library.
1991132b578d3Smrgpredeps=$lt_predeps_RC
1991232b578d3Smrg
1991332b578d3Smrg# Dependencies to place after the objects being linked to create a
1991432b578d3Smrg# shared library.
1991532b578d3Smrgpostdeps=$lt_postdeps_RC
1991632b578d3Smrg
199172a51b5beSmrg# The directories searched by this compiler when creating a shared
199182a51b5beSmrg# library
199192a51b5beSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
199202a51b5beSmrg
1992132b578d3Smrg# The library search path used internally by the compiler when linking
1992232b578d3Smrg# a shared library.
1992332b578d3Smrgcompiler_lib_search_path=$lt_compiler_lib_search_path_RC
1992432b578d3Smrg
1992532b578d3Smrg# Method to check whether dependent libraries are shared objects.
1992632b578d3Smrgdeplibs_check_method=$lt_deplibs_check_method
1992732b578d3Smrg
1992832b578d3Smrg# Command to use when deplibs_check_method == file_magic.
1992932b578d3Smrgfile_magic_cmd=$lt_file_magic_cmd
1993032b578d3Smrg
1993132b578d3Smrg# Flag that allows shared libraries with undefined symbols to be built.
1993232b578d3Smrgallow_undefined_flag=$lt_allow_undefined_flag_RC
1993332b578d3Smrg
1993432b578d3Smrg# Flag that forces no undefined symbols.
1993532b578d3Smrgno_undefined_flag=$lt_no_undefined_flag_RC
1993632b578d3Smrg
1993732b578d3Smrg# Commands used to finish a libtool library installation in a directory.
1993832b578d3Smrgfinish_cmds=$lt_finish_cmds
1993932b578d3Smrg
1994032b578d3Smrg# Same as above, but a single script fragment to be evaled but not shown.
1994132b578d3Smrgfinish_eval=$lt_finish_eval
1994232b578d3Smrg
1994332b578d3Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1994432b578d3Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1994532b578d3Smrg
1994632b578d3Smrg# Transform the output of nm in a proper C declaration
1994732b578d3Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1994832b578d3Smrg
1994932b578d3Smrg# Transform the output of nm in a C name address pair
1995032b578d3Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1995132b578d3Smrg
1995232b578d3Smrg# This is the shared library runtime path variable.
1995332b578d3Smrgrunpath_var=$runpath_var
1995432b578d3Smrg
1995532b578d3Smrg# This is the shared library path variable.
1995632b578d3Smrgshlibpath_var=$shlibpath_var
1995732b578d3Smrg
1995832b578d3Smrg# Is shlibpath searched before the hard-coded library search path?
1995932b578d3Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1996032b578d3Smrg
1996132b578d3Smrg# How to hardcode a shared library path into an executable.
1996232b578d3Smrghardcode_action=$hardcode_action_RC
1996332b578d3Smrg
1996432b578d3Smrg# Whether we should hardcode library paths into libraries.
1996532b578d3Smrghardcode_into_libs=$hardcode_into_libs
1996632b578d3Smrg
1996732b578d3Smrg# Flag to hardcode \$libdir into a binary during linking.
1996832b578d3Smrg# This must work even if \$libdir does not exist.
1996932b578d3Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
1997032b578d3Smrg
1997132b578d3Smrg# If ld is used when linking, flag to hardcode \$libdir into
1997232b578d3Smrg# a binary during linking. This must work even if \$libdir does
1997332b578d3Smrg# not exist.
1997432b578d3Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
1997532b578d3Smrg
1997632b578d3Smrg# Whether we need a single -rpath flag with a separated argument.
1997732b578d3Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
1997832b578d3Smrg
1997932b578d3Smrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1998032b578d3Smrg# resulting binary.
1998132b578d3Smrghardcode_direct=$hardcode_direct_RC
1998232b578d3Smrg
1998332b578d3Smrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1998432b578d3Smrg# resulting binary.
1998532b578d3Smrghardcode_minus_L=$hardcode_minus_L_RC
1998632b578d3Smrg
1998732b578d3Smrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1998832b578d3Smrg# the resulting binary.
1998932b578d3Smrghardcode_shlibpath_var=$hardcode_shlibpath_var_RC
1999032b578d3Smrg
1999132b578d3Smrg# Set to yes if building a shared library automatically hardcodes DIR into the library
1999232b578d3Smrg# and all subsequent libraries and executables linked against it.
1999332b578d3Smrghardcode_automatic=$hardcode_automatic_RC
1999432b578d3Smrg
1999532b578d3Smrg# Variables whose values should be saved in libtool wrapper scripts and
1999632b578d3Smrg# restored at relink time.
1999732b578d3Smrgvariables_saved_for_relink="$variables_saved_for_relink"
1999832b578d3Smrg
1999932b578d3Smrg# Whether libtool must link a program against all its dependency libraries.
2000032b578d3Smrglink_all_deplibs=$link_all_deplibs_RC
2000132b578d3Smrg
2000232b578d3Smrg# Compile-time system search path for libraries
2000332b578d3Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
2000432b578d3Smrg
2000532b578d3Smrg# Run-time system search path for libraries
2000632b578d3Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2000732b578d3Smrg
2000832b578d3Smrg# Fix the shell variable \$srcfile for the compiler.
200092a51b5beSmrgfix_srcfile_path=$lt_fix_srcfile_path
2001032b578d3Smrg
2001132b578d3Smrg# Set to yes if exported symbols are required.
2001232b578d3Smrgalways_export_symbols=$always_export_symbols_RC
2001332b578d3Smrg
2001432b578d3Smrg# The commands to list exported symbols.
2001532b578d3Smrgexport_symbols_cmds=$lt_export_symbols_cmds_RC
2001632b578d3Smrg
2001732b578d3Smrg# The commands to extract the exported symbol list from a shared archive.
2001832b578d3Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
2001932b578d3Smrg
2002032b578d3Smrg# Symbols that should not be listed in the preloaded symbols.
2002132b578d3Smrgexclude_expsyms=$lt_exclude_expsyms_RC
2002232b578d3Smrg
2002332b578d3Smrg# Symbols that must always be exported.
2002432b578d3Smrginclude_expsyms=$lt_include_expsyms_RC
2002532b578d3Smrg
2002632b578d3Smrg# ### END LIBTOOL TAG CONFIG: $tagname
2002732b578d3Smrg
2002832b578d3Smrg__EOF__
2002932b578d3Smrg
2003032b578d3Smrg
2003132b578d3Smrgelse
2003232b578d3Smrg  # If there is no Makefile yet, we rely on a make rule to execute
2003332b578d3Smrg  # `config.status --recheck' to rerun these tests and create the
2003432b578d3Smrg  # libtool script then.
2003532b578d3Smrg  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
2003632b578d3Smrg  if test -f "$ltmain_in"; then
2003732b578d3Smrg    test -f Makefile && make "$ltmain"
2003832b578d3Smrg  fi
2003932b578d3Smrgfi
2004032b578d3Smrg
2004132b578d3Smrg
2004232b578d3Smrgac_ext=c
2004332b578d3Smrgac_cpp='$CPP $CPPFLAGS'
2004432b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004532b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004632b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2004732b578d3Smrg
2004832b578d3SmrgCC="$lt_save_CC"
2004932b578d3Smrg
2005032b578d3Smrg	;;
2005132b578d3Smrg
2005232b578d3Smrg      *)
200532a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
200542a51b5beSmrg$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
2005532b578d3Smrg   { (exit 1); exit 1; }; }
2005632b578d3Smrg	;;
2005732b578d3Smrg      esac
2005832b578d3Smrg
2005932b578d3Smrg      # Append the new tag name to the list of available tags.
2006032b578d3Smrg      if test -n "$tagname" ; then
2006132b578d3Smrg      available_tags="$available_tags $tagname"
2006232b578d3Smrg    fi
2006332b578d3Smrg    fi
2006432b578d3Smrg  done
2006532b578d3Smrg  IFS="$lt_save_ifs"
2006632b578d3Smrg
2006732b578d3Smrg  # Now substitute the updated list of available tags.
2006832b578d3Smrg  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2006932b578d3Smrg    mv "${ofile}T" "$ofile"
2007032b578d3Smrg    chmod +x "$ofile"
2007132b578d3Smrg  else
2007232b578d3Smrg    rm -f "${ofile}T"
200732a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
200742a51b5beSmrg$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
2007532b578d3Smrg   { (exit 1); exit 1; }; }
2007632b578d3Smrg  fi
2007732b578d3Smrgfi
2007832b578d3Smrg
2007932b578d3Smrg
2008032b578d3Smrg
2008132b578d3Smrg# This can be used to rebuild libtool when needed
2008232b578d3SmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2008332b578d3Smrg
2008432b578d3Smrg# Always use our own libtool.
2008532b578d3SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
2008632b578d3Smrg
2008732b578d3Smrg# Prevent multiple expansion
2008832b578d3Smrg
2008932b578d3Smrg
2009032b578d3Smrg
2009132b578d3Smrg
2009232b578d3Smrg
2009332b578d3Smrg
2009432b578d3Smrg
2009532b578d3Smrg
2009632b578d3Smrg
2009732b578d3Smrg
2009832b578d3Smrg
2009932b578d3Smrg
2010032b578d3Smrg
2010132b578d3Smrg
2010232b578d3Smrg
2010332b578d3Smrg
2010432b578d3Smrg
2010532b578d3Smrg
2010632b578d3Smrg
2010732b578d3Smrg
2010832b578d3Smrgac_ext=c
2010932b578d3Smrgac_cpp='$CPP $CPPFLAGS'
2011032b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011132b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011232b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2011332b578d3Smrgif test -n "$ac_tool_prefix"; then
2011432b578d3Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011532b578d3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
201162a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
201172a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2011832b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
201192a51b5beSmrg  $as_echo_n "(cached) " >&6
2012032b578d3Smrgelse
2012132b578d3Smrg  if test -n "$CC"; then
2012232b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2012332b578d3Smrgelse
2012432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012532b578d3Smrgfor as_dir in $PATH
2012632b578d3Smrgdo
2012732b578d3Smrg  IFS=$as_save_IFS
2012832b578d3Smrg  test -z "$as_dir" && as_dir=.
2012932b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2013032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013132b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
201322a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013332b578d3Smrg    break 2
2013432b578d3Smrg  fi
2013532b578d3Smrgdone
2013632b578d3Smrgdone
2013732b578d3SmrgIFS=$as_save_IFS
2013832b578d3Smrg
2013932b578d3Smrgfi
2014032b578d3Smrgfi
2014132b578d3SmrgCC=$ac_cv_prog_CC
2014232b578d3Smrgif test -n "$CC"; then
201432a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
201442a51b5beSmrg$as_echo "$CC" >&6; }
2014532b578d3Smrgelse
201462a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
201472a51b5beSmrg$as_echo "no" >&6; }
2014832b578d3Smrgfi
2014932b578d3Smrg
2015032b578d3Smrg
2015132b578d3Smrgfi
2015232b578d3Smrgif test -z "$ac_cv_prog_CC"; then
2015332b578d3Smrg  ac_ct_CC=$CC
2015432b578d3Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2015532b578d3Smrgset dummy gcc; ac_word=$2
201562a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
201572a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2015832b578d3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
201592a51b5beSmrg  $as_echo_n "(cached) " >&6
2016032b578d3Smrgelse
2016132b578d3Smrg  if test -n "$ac_ct_CC"; then
2016232b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016332b578d3Smrgelse
2016432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016532b578d3Smrgfor as_dir in $PATH
2016632b578d3Smrgdo
2016732b578d3Smrg  IFS=$as_save_IFS
2016832b578d3Smrg  test -z "$as_dir" && as_dir=.
2016932b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2017032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2017132b578d3Smrg    ac_cv_prog_ac_ct_CC="gcc"
201722a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017332b578d3Smrg    break 2
2017432b578d3Smrg  fi
2017532b578d3Smrgdone
2017632b578d3Smrgdone
2017732b578d3SmrgIFS=$as_save_IFS
2017832b578d3Smrg
2017932b578d3Smrgfi
2018032b578d3Smrgfi
2018132b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2018232b578d3Smrgif test -n "$ac_ct_CC"; then
201832a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
201842a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
2018532b578d3Smrgelse
201862a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
201872a51b5beSmrg$as_echo "no" >&6; }
2018832b578d3Smrgfi
2018932b578d3Smrg
2019032b578d3Smrg  if test "x$ac_ct_CC" = x; then
2019132b578d3Smrg    CC=""
2019232b578d3Smrg  else
2019332b578d3Smrg    case $cross_compiling:$ac_tool_warned in
2019432b578d3Smrgyes:)
201952a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
201962a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2019732b578d3Smrgac_tool_warned=yes ;;
2019832b578d3Smrgesac
2019932b578d3Smrg    CC=$ac_ct_CC
2020032b578d3Smrg  fi
2020132b578d3Smrgelse
2020232b578d3Smrg  CC="$ac_cv_prog_CC"
2020332b578d3Smrgfi
2020432b578d3Smrg
2020532b578d3Smrgif test -z "$CC"; then
2020632b578d3Smrg          if test -n "$ac_tool_prefix"; then
2020732b578d3Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020832b578d3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
202092a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
202102a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2021132b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
202122a51b5beSmrg  $as_echo_n "(cached) " >&6
2021332b578d3Smrgelse
2021432b578d3Smrg  if test -n "$CC"; then
2021532b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2021632b578d3Smrgelse
2021732b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021832b578d3Smrgfor as_dir in $PATH
2021932b578d3Smrgdo
2022032b578d3Smrg  IFS=$as_save_IFS
2022132b578d3Smrg  test -z "$as_dir" && as_dir=.
2022232b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2022332b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2022432b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
202252a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022632b578d3Smrg    break 2
2022732b578d3Smrg  fi
2022832b578d3Smrgdone
2022932b578d3Smrgdone
2023032b578d3SmrgIFS=$as_save_IFS
2023132b578d3Smrg
2023232b578d3Smrgfi
2023332b578d3Smrgfi
2023432b578d3SmrgCC=$ac_cv_prog_CC
2023532b578d3Smrgif test -n "$CC"; then
202362a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
202372a51b5beSmrg$as_echo "$CC" >&6; }
2023832b578d3Smrgelse
202392a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
202402a51b5beSmrg$as_echo "no" >&6; }
2024132b578d3Smrgfi
2024232b578d3Smrg
2024332b578d3Smrg
2024432b578d3Smrg  fi
2024532b578d3Smrgfi
2024632b578d3Smrgif test -z "$CC"; then
2024732b578d3Smrg  # Extract the first word of "cc", so it can be a program name with args.
2024832b578d3Smrgset dummy cc; ac_word=$2
202492a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
202502a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2025132b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
202522a51b5beSmrg  $as_echo_n "(cached) " >&6
2025332b578d3Smrgelse
2025432b578d3Smrg  if test -n "$CC"; then
2025532b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2025632b578d3Smrgelse
2025732b578d3Smrg  ac_prog_rejected=no
2025832b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025932b578d3Smrgfor as_dir in $PATH
2026032b578d3Smrgdo
2026132b578d3Smrg  IFS=$as_save_IFS
2026232b578d3Smrg  test -z "$as_dir" && as_dir=.
2026332b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2026432b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026532b578d3Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026632b578d3Smrg       ac_prog_rejected=yes
2026732b578d3Smrg       continue
2026832b578d3Smrg     fi
2026932b578d3Smrg    ac_cv_prog_CC="cc"
202702a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027132b578d3Smrg    break 2
2027232b578d3Smrg  fi
2027332b578d3Smrgdone
2027432b578d3Smrgdone
2027532b578d3SmrgIFS=$as_save_IFS
2027632b578d3Smrg
2027732b578d3Smrgif test $ac_prog_rejected = yes; then
2027832b578d3Smrg  # We found a bogon in the path, so make sure we never use it.
2027932b578d3Smrg  set dummy $ac_cv_prog_CC
2028032b578d3Smrg  shift
2028132b578d3Smrg  if test $# != 0; then
2028232b578d3Smrg    # We chose a different compiler from the bogus one.
2028332b578d3Smrg    # However, it has the same basename, so the bogon will be chosen
2028432b578d3Smrg    # first if we set CC to just the basename; use the full file name.
2028532b578d3Smrg    shift
2028632b578d3Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028732b578d3Smrg  fi
2028832b578d3Smrgfi
2028932b578d3Smrgfi
2029032b578d3Smrgfi
2029132b578d3SmrgCC=$ac_cv_prog_CC
2029232b578d3Smrgif test -n "$CC"; then
202932a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
202942a51b5beSmrg$as_echo "$CC" >&6; }
2029532b578d3Smrgelse
202962a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
202972a51b5beSmrg$as_echo "no" >&6; }
2029832b578d3Smrgfi
2029932b578d3Smrg
2030032b578d3Smrg
2030132b578d3Smrgfi
2030232b578d3Smrgif test -z "$CC"; then
2030332b578d3Smrg  if test -n "$ac_tool_prefix"; then
2030432b578d3Smrg  for ac_prog in cl.exe
2030532b578d3Smrg  do
2030632b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030732b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
203082a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
203092a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2031032b578d3Smrgif test "${ac_cv_prog_CC+set}" = set; then
203112a51b5beSmrg  $as_echo_n "(cached) " >&6
2031232b578d3Smrgelse
2031332b578d3Smrg  if test -n "$CC"; then
2031432b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2031532b578d3Smrgelse
2031632b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031732b578d3Smrgfor as_dir in $PATH
2031832b578d3Smrgdo
2031932b578d3Smrg  IFS=$as_save_IFS
2032032b578d3Smrg  test -z "$as_dir" && as_dir=.
2032132b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2032232b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032332b578d3Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
203242a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032532b578d3Smrg    break 2
2032632b578d3Smrg  fi
2032732b578d3Smrgdone
2032832b578d3Smrgdone
2032932b578d3SmrgIFS=$as_save_IFS
2033032b578d3Smrg
2033132b578d3Smrgfi
2033232b578d3Smrgfi
2033332b578d3SmrgCC=$ac_cv_prog_CC
2033432b578d3Smrgif test -n "$CC"; then
203352a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
203362a51b5beSmrg$as_echo "$CC" >&6; }
2033732b578d3Smrgelse
203382a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
203392a51b5beSmrg$as_echo "no" >&6; }
2034032b578d3Smrgfi
2034132b578d3Smrg
2034232b578d3Smrg
2034332b578d3Smrg    test -n "$CC" && break
2034432b578d3Smrg  done
2034532b578d3Smrgfi
2034632b578d3Smrgif test -z "$CC"; then
2034732b578d3Smrg  ac_ct_CC=$CC
2034832b578d3Smrg  for ac_prog in cl.exe
2034932b578d3Smrgdo
2035032b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2035132b578d3Smrgset dummy $ac_prog; ac_word=$2
203522a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
203532a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2035432b578d3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
203552a51b5beSmrg  $as_echo_n "(cached) " >&6
2035632b578d3Smrgelse
2035732b578d3Smrg  if test -n "$ac_ct_CC"; then
2035832b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035932b578d3Smrgelse
2036032b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036132b578d3Smrgfor as_dir in $PATH
2036232b578d3Smrgdo
2036332b578d3Smrg  IFS=$as_save_IFS
2036432b578d3Smrg  test -z "$as_dir" && as_dir=.
2036532b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2036632b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036732b578d3Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
203682a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036932b578d3Smrg    break 2
2037032b578d3Smrg  fi
2037132b578d3Smrgdone
2037232b578d3Smrgdone
2037332b578d3SmrgIFS=$as_save_IFS
2037432b578d3Smrg
2037532b578d3Smrgfi
2037632b578d3Smrgfi
2037732b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2037832b578d3Smrgif test -n "$ac_ct_CC"; then
203792a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
203802a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
2038132b578d3Smrgelse
203822a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
203832a51b5beSmrg$as_echo "no" >&6; }
2038432b578d3Smrgfi
2038532b578d3Smrg
2038632b578d3Smrg
2038732b578d3Smrg  test -n "$ac_ct_CC" && break
2038832b578d3Smrgdone
2038932b578d3Smrg
2039032b578d3Smrg  if test "x$ac_ct_CC" = x; then
2039132b578d3Smrg    CC=""
2039232b578d3Smrg  else
2039332b578d3Smrg    case $cross_compiling:$ac_tool_warned in
2039432b578d3Smrgyes:)
203952a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
203962a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2039732b578d3Smrgac_tool_warned=yes ;;
2039832b578d3Smrgesac
2039932b578d3Smrg    CC=$ac_ct_CC
2040032b578d3Smrg  fi
2040132b578d3Smrgfi
2040232b578d3Smrg
2040332b578d3Smrgfi
2040432b578d3Smrg
2040532b578d3Smrg
204062a51b5beSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
204072a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
204082a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040932b578d3SmrgSee \`config.log' for more details." >&5
204102a51b5beSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2041132b578d3SmrgSee \`config.log' for more details." >&2;}
204122a51b5beSmrg   { (exit 1); exit 1; }; }; }
2041332b578d3Smrg
2041432b578d3Smrg# Provide some information about the compiler.
204152a51b5beSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
204162a51b5beSmrgset X $ac_compile
204172a51b5beSmrgac_compiler=$2
2041832b578d3Smrg{ (ac_try="$ac_compiler --version >&5"
2041932b578d3Smrgcase "(($ac_try" in
2042032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042132b578d3Smrg  *) ac_try_echo=$ac_try;;
2042232b578d3Smrgesac
204232a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
204242a51b5beSmrg$as_echo "$ac_try_echo") >&5
2042532b578d3Smrg  (eval "$ac_compiler --version >&5") 2>&5
2042632b578d3Smrg  ac_status=$?
204272a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042832b578d3Smrg  (exit $ac_status); }
2042932b578d3Smrg{ (ac_try="$ac_compiler -v >&5"
2043032b578d3Smrgcase "(($ac_try" in
2043132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043232b578d3Smrg  *) ac_try_echo=$ac_try;;
2043332b578d3Smrgesac
204342a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
204352a51b5beSmrg$as_echo "$ac_try_echo") >&5
2043632b578d3Smrg  (eval "$ac_compiler -v >&5") 2>&5
2043732b578d3Smrg  ac_status=$?
204382a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043932b578d3Smrg  (exit $ac_status); }
2044032b578d3Smrg{ (ac_try="$ac_compiler -V >&5"
2044132b578d3Smrgcase "(($ac_try" in
2044232b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044332b578d3Smrg  *) ac_try_echo=$ac_try;;
2044432b578d3Smrgesac
204452a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
204462a51b5beSmrg$as_echo "$ac_try_echo") >&5
2044732b578d3Smrg  (eval "$ac_compiler -V >&5") 2>&5
2044832b578d3Smrg  ac_status=$?
204492a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045032b578d3Smrg  (exit $ac_status); }
2045132b578d3Smrg
204522a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
204532a51b5beSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2045432b578d3Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
204552a51b5beSmrg  $as_echo_n "(cached) " >&6
2045632b578d3Smrgelse
2045732b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2045832b578d3Smrg/* confdefs.h.  */
2045932b578d3Smrg_ACEOF
2046032b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2046132b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2046232b578d3Smrg/* end confdefs.h.  */
2046332b578d3Smrg
2046432b578d3Smrgint
2046532b578d3Smrgmain ()
2046632b578d3Smrg{
2046732b578d3Smrg#ifndef __GNUC__
2046832b578d3Smrg       choke me
2046932b578d3Smrg#endif
2047032b578d3Smrg
2047132b578d3Smrg  ;
2047232b578d3Smrg  return 0;
2047332b578d3Smrg}
2047432b578d3Smrg_ACEOF
2047532b578d3Smrgrm -f conftest.$ac_objext
2047632b578d3Smrgif { (ac_try="$ac_compile"
2047732b578d3Smrgcase "(($ac_try" in
2047832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047932b578d3Smrg  *) ac_try_echo=$ac_try;;
2048032b578d3Smrgesac
204812a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
204822a51b5beSmrg$as_echo "$ac_try_echo") >&5
2048332b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2048432b578d3Smrg  ac_status=$?
2048532b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2048632b578d3Smrg  rm -f conftest.er1
2048732b578d3Smrg  cat conftest.err >&5
204882a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048932b578d3Smrg  (exit $ac_status); } && {
2049032b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2049132b578d3Smrg	 test ! -s conftest.err
2049232b578d3Smrg       } && test -s conftest.$ac_objext; then
2049332b578d3Smrg  ac_compiler_gnu=yes
2049432b578d3Smrgelse
204952a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2049632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2049732b578d3Smrg
2049832b578d3Smrg	ac_compiler_gnu=no
2049932b578d3Smrgfi
2050032b578d3Smrg
2050132b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050232b578d3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
2050332b578d3Smrg
2050432b578d3Smrgfi
205052a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
205062a51b5beSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
205072a51b5beSmrgif test $ac_compiler_gnu = yes; then
205082a51b5beSmrg  GCC=yes
205092a51b5beSmrgelse
205102a51b5beSmrg  GCC=
205112a51b5beSmrgfi
2051232b578d3Smrgac_test_CFLAGS=${CFLAGS+set}
2051332b578d3Smrgac_save_CFLAGS=$CFLAGS
205142a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
205152a51b5beSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
2051632b578d3Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
205172a51b5beSmrg  $as_echo_n "(cached) " >&6
2051832b578d3Smrgelse
2051932b578d3Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
2052032b578d3Smrg   ac_c_werror_flag=yes
2052132b578d3Smrg   ac_cv_prog_cc_g=no
2052232b578d3Smrg   CFLAGS="-g"
2052332b578d3Smrg   cat >conftest.$ac_ext <<_ACEOF
2052432b578d3Smrg/* confdefs.h.  */
2052532b578d3Smrg_ACEOF
2052632b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2052732b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2052832b578d3Smrg/* end confdefs.h.  */
2052932b578d3Smrg
2053032b578d3Smrgint
2053132b578d3Smrgmain ()
2053232b578d3Smrg{
2053332b578d3Smrg
2053432b578d3Smrg  ;
2053532b578d3Smrg  return 0;
2053632b578d3Smrg}
2053732b578d3Smrg_ACEOF
2053832b578d3Smrgrm -f conftest.$ac_objext
2053932b578d3Smrgif { (ac_try="$ac_compile"
2054032b578d3Smrgcase "(($ac_try" in
2054132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054232b578d3Smrg  *) ac_try_echo=$ac_try;;
2054332b578d3Smrgesac
205442a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
205452a51b5beSmrg$as_echo "$ac_try_echo") >&5
2054632b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2054732b578d3Smrg  ac_status=$?
2054832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2054932b578d3Smrg  rm -f conftest.er1
2055032b578d3Smrg  cat conftest.err >&5
205512a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055232b578d3Smrg  (exit $ac_status); } && {
2055332b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2055432b578d3Smrg	 test ! -s conftest.err
2055532b578d3Smrg       } && test -s conftest.$ac_objext; then
2055632b578d3Smrg  ac_cv_prog_cc_g=yes
2055732b578d3Smrgelse
205582a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2055932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2056032b578d3Smrg
2056132b578d3Smrg	CFLAGS=""
2056232b578d3Smrg      cat >conftest.$ac_ext <<_ACEOF
2056332b578d3Smrg/* confdefs.h.  */
2056432b578d3Smrg_ACEOF
2056532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2056632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2056732b578d3Smrg/* end confdefs.h.  */
2056832b578d3Smrg
2056932b578d3Smrgint
2057032b578d3Smrgmain ()
2057132b578d3Smrg{
2057232b578d3Smrg
2057332b578d3Smrg  ;
2057432b578d3Smrg  return 0;
2057532b578d3Smrg}
2057632b578d3Smrg_ACEOF
2057732b578d3Smrgrm -f conftest.$ac_objext
2057832b578d3Smrgif { (ac_try="$ac_compile"
2057932b578d3Smrgcase "(($ac_try" in
2058032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058132b578d3Smrg  *) ac_try_echo=$ac_try;;
2058232b578d3Smrgesac
205832a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
205842a51b5beSmrg$as_echo "$ac_try_echo") >&5
2058532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2058632b578d3Smrg  ac_status=$?
2058732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2058832b578d3Smrg  rm -f conftest.er1
2058932b578d3Smrg  cat conftest.err >&5
205902a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059132b578d3Smrg  (exit $ac_status); } && {
2059232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2059332b578d3Smrg	 test ! -s conftest.err
2059432b578d3Smrg       } && test -s conftest.$ac_objext; then
2059532b578d3Smrg  :
2059632b578d3Smrgelse
205972a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2059832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2059932b578d3Smrg
2060032b578d3Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
2060132b578d3Smrg	 CFLAGS="-g"
2060232b578d3Smrg	 cat >conftest.$ac_ext <<_ACEOF
2060332b578d3Smrg/* confdefs.h.  */
2060432b578d3Smrg_ACEOF
2060532b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2060632b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2060732b578d3Smrg/* end confdefs.h.  */
2060832b578d3Smrg
2060932b578d3Smrgint
2061032b578d3Smrgmain ()
2061132b578d3Smrg{
2061232b578d3Smrg
2061332b578d3Smrg  ;
2061432b578d3Smrg  return 0;
2061532b578d3Smrg}
2061632b578d3Smrg_ACEOF
2061732b578d3Smrgrm -f conftest.$ac_objext
2061832b578d3Smrgif { (ac_try="$ac_compile"
2061932b578d3Smrgcase "(($ac_try" in
2062032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062132b578d3Smrg  *) ac_try_echo=$ac_try;;
2062232b578d3Smrgesac
206232a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
206242a51b5beSmrg$as_echo "$ac_try_echo") >&5
2062532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2062632b578d3Smrg  ac_status=$?
2062732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2062832b578d3Smrg  rm -f conftest.er1
2062932b578d3Smrg  cat conftest.err >&5
206302a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063132b578d3Smrg  (exit $ac_status); } && {
2063232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2063332b578d3Smrg	 test ! -s conftest.err
2063432b578d3Smrg       } && test -s conftest.$ac_objext; then
2063532b578d3Smrg  ac_cv_prog_cc_g=yes
2063632b578d3Smrgelse
206372a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2063832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2063932b578d3Smrg
2064032b578d3Smrg
2064132b578d3Smrgfi
2064232b578d3Smrg
2064332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064432b578d3Smrgfi
2064532b578d3Smrg
2064632b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064732b578d3Smrgfi
2064832b578d3Smrg
2064932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065032b578d3Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
2065132b578d3Smrgfi
206522a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
206532a51b5beSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
2065432b578d3Smrgif test "$ac_test_CFLAGS" = set; then
2065532b578d3Smrg  CFLAGS=$ac_save_CFLAGS
2065632b578d3Smrgelif test $ac_cv_prog_cc_g = yes; then
2065732b578d3Smrg  if test "$GCC" = yes; then
2065832b578d3Smrg    CFLAGS="-g -O2"
2065932b578d3Smrg  else
2066032b578d3Smrg    CFLAGS="-g"
2066132b578d3Smrg  fi
2066232b578d3Smrgelse
2066332b578d3Smrg  if test "$GCC" = yes; then
2066432b578d3Smrg    CFLAGS="-O2"
2066532b578d3Smrg  else
2066632b578d3Smrg    CFLAGS=
2066732b578d3Smrg  fi
2066832b578d3Smrgfi
206692a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
206702a51b5beSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2067132b578d3Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
206722a51b5beSmrg  $as_echo_n "(cached) " >&6
2067332b578d3Smrgelse
2067432b578d3Smrg  ac_cv_prog_cc_c89=no
2067532b578d3Smrgac_save_CC=$CC
2067632b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
2067732b578d3Smrg/* confdefs.h.  */
2067832b578d3Smrg_ACEOF
2067932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2068032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2068132b578d3Smrg/* end confdefs.h.  */
2068232b578d3Smrg#include <stdarg.h>
2068332b578d3Smrg#include <stdio.h>
2068432b578d3Smrg#include <sys/types.h>
2068532b578d3Smrg#include <sys/stat.h>
2068632b578d3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2068732b578d3Smrgstruct buf { int x; };
2068832b578d3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
2068932b578d3Smrgstatic char *e (p, i)
2069032b578d3Smrg     char **p;
2069132b578d3Smrg     int i;
2069232b578d3Smrg{
2069332b578d3Smrg  return p[i];
2069432b578d3Smrg}
2069532b578d3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2069632b578d3Smrg{
2069732b578d3Smrg  char *s;
2069832b578d3Smrg  va_list v;
2069932b578d3Smrg  va_start (v,p);
2070032b578d3Smrg  s = g (p, va_arg (v,int));
2070132b578d3Smrg  va_end (v);
2070232b578d3Smrg  return s;
2070332b578d3Smrg}
2070432b578d3Smrg
2070532b578d3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2070632b578d3Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
2070732b578d3Smrg   These don't provoke an error unfortunately, instead are silently treated
2070832b578d3Smrg   as 'x'.  The following induces an error, until -std is added to get
2070932b578d3Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2071032b578d3Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
2071132b578d3Smrg   that's true only with -std.  */
2071232b578d3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2071332b578d3Smrg
2071432b578d3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2071532b578d3Smrg   inside strings and character constants.  */
2071632b578d3Smrg#define FOO(x) 'x'
2071732b578d3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2071832b578d3Smrg
2071932b578d3Smrgint test (int i, double x);
2072032b578d3Smrgstruct s1 {int (*f) (int a);};
2072132b578d3Smrgstruct s2 {int (*f) (double a);};
2072232b578d3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2072332b578d3Smrgint argc;
2072432b578d3Smrgchar **argv;
2072532b578d3Smrgint
2072632b578d3Smrgmain ()
2072732b578d3Smrg{
2072832b578d3Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2072932b578d3Smrg  ;
2073032b578d3Smrg  return 0;
2073132b578d3Smrg}
2073232b578d3Smrg_ACEOF
2073332b578d3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2073432b578d3Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2073532b578d3Smrgdo
2073632b578d3Smrg  CC="$ac_save_CC $ac_arg"
2073732b578d3Smrg  rm -f conftest.$ac_objext
2073832b578d3Smrgif { (ac_try="$ac_compile"
2073932b578d3Smrgcase "(($ac_try" in
2074032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074132b578d3Smrg  *) ac_try_echo=$ac_try;;
2074232b578d3Smrgesac
207432a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
207442a51b5beSmrg$as_echo "$ac_try_echo") >&5
2074532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2074632b578d3Smrg  ac_status=$?
2074732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2074832b578d3Smrg  rm -f conftest.er1
2074932b578d3Smrg  cat conftest.err >&5
207502a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075132b578d3Smrg  (exit $ac_status); } && {
2075232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2075332b578d3Smrg	 test ! -s conftest.err
2075432b578d3Smrg       } && test -s conftest.$ac_objext; then
2075532b578d3Smrg  ac_cv_prog_cc_c89=$ac_arg
2075632b578d3Smrgelse
207572a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2075832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2075932b578d3Smrg
2076032b578d3Smrg
2076132b578d3Smrgfi
2076232b578d3Smrg
2076332b578d3Smrgrm -f core conftest.err conftest.$ac_objext
2076432b578d3Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
2076532b578d3Smrgdone
2076632b578d3Smrgrm -f conftest.$ac_ext
2076732b578d3SmrgCC=$ac_save_CC
2076832b578d3Smrg
2076932b578d3Smrgfi
2077032b578d3Smrg# AC_CACHE_VAL
2077132b578d3Smrgcase "x$ac_cv_prog_cc_c89" in
2077232b578d3Smrg  x)
207732a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
207742a51b5beSmrg$as_echo "none needed" >&6; } ;;
2077532b578d3Smrg  xno)
207762a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
207772a51b5beSmrg$as_echo "unsupported" >&6; } ;;
2077832b578d3Smrg  *)
2077932b578d3Smrg    CC="$CC $ac_cv_prog_cc_c89"
207802a51b5beSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
207812a51b5beSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2078232b578d3Smrgesac
2078332b578d3Smrg
2078432b578d3Smrg
2078532b578d3Smrgac_ext=c
2078632b578d3Smrgac_cpp='$CPP $CPPFLAGS'
2078732b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078832b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078932b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2079032b578d3Smrg
2079132b578d3Smrgdepcc="$CC"   am_compiler_list=
2079232b578d3Smrg
207932a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
207942a51b5beSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
2079532b578d3Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
207962a51b5beSmrg  $as_echo_n "(cached) " >&6
2079732b578d3Smrgelse
2079832b578d3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2079932b578d3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
2080032b578d3Smrg  # making bogus files that we don't know about and never remove.  For
2080132b578d3Smrg  # instance it was reported that on HP-UX the gcc test will end up
2080232b578d3Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
2080332b578d3Smrg  # in D'.
2080432b578d3Smrg  mkdir conftest.dir
2080532b578d3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
2080632b578d3Smrg  # using a relative directory.
2080732b578d3Smrg  cp "$am_depcomp" conftest.dir
2080832b578d3Smrg  cd conftest.dir
2080932b578d3Smrg  # We will build objects and dependencies in a subdirectory because
2081032b578d3Smrg  # it helps to detect inapplicable dependency modes.  For instance
2081132b578d3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
2081232b578d3Smrg  # side effect of compilation, but ICC will put the dependencies in
2081332b578d3Smrg  # the current directory while Tru64 will put them in the object
2081432b578d3Smrg  # directory.
2081532b578d3Smrg  mkdir sub
2081632b578d3Smrg
2081732b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
2081832b578d3Smrg  if test "$am_compiler_list" = ""; then
2081932b578d3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2082032b578d3Smrg  fi
208212a51b5beSmrg  am__universal=false
208222a51b5beSmrg  case " $depcc " in #(
208232a51b5beSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
208242a51b5beSmrg     esac
208252a51b5beSmrg
2082632b578d3Smrg  for depmode in $am_compiler_list; do
2082732b578d3Smrg    # Setup a source with many dependencies, because some compilers
2082832b578d3Smrg    # like to wrap large dependency lists on column 80 (with \), and
2082932b578d3Smrg    # we should not choose a depcomp mode which is confused by this.
2083032b578d3Smrg    #
2083132b578d3Smrg    # We need to recreate these files for each test, as the compiler may
2083232b578d3Smrg    # overwrite some of them when testing with obscure command lines.
2083332b578d3Smrg    # This happens at least with the AIX C compiler.
2083432b578d3Smrg    : > sub/conftest.c
2083532b578d3Smrg    for i in 1 2 3 4 5 6; do
2083632b578d3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2083732b578d3Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2083832b578d3Smrg      # Solaris 8's {/usr,}/bin/sh.
2083932b578d3Smrg      touch sub/conftst$i.h
2084032b578d3Smrg    done
2084132b578d3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2084232b578d3Smrg
208432a51b5beSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
208442a51b5beSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
208452a51b5beSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
208462a51b5beSmrg    # versions had trouble with output in subdirs
208472a51b5beSmrg    am__obj=sub/conftest.${OBJEXT-o}
208482a51b5beSmrg    am__minus_obj="-o $am__obj"
2084932b578d3Smrg    case $depmode in
208502a51b5beSmrg    gcc)
208512a51b5beSmrg      # This depmode causes a compiler race in universal mode.
208522a51b5beSmrg      test "$am__universal" = false || continue
208532a51b5beSmrg      ;;
2085432b578d3Smrg    nosideeffect)
2085532b578d3Smrg      # after this tag, mechanisms are not by side-effect, so they'll
2085632b578d3Smrg      # only be used when explicitly requested
2085732b578d3Smrg      if test "x$enable_dependency_tracking" = xyes; then
2085832b578d3Smrg	continue
2085932b578d3Smrg      else
2086032b578d3Smrg	break
2086132b578d3Smrg      fi
2086232b578d3Smrg      ;;
208632a51b5beSmrg    msvisualcpp | msvcmsys)
208642a51b5beSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
208652a51b5beSmrg      # not run yet.  These depmodes are late enough in the game, and
208662a51b5beSmrg      # so weak that their functioning should not be impacted.
208672a51b5beSmrg      am__obj=conftest.${OBJEXT-o}
208682a51b5beSmrg      am__minus_obj=
208692a51b5beSmrg      ;;
2087032b578d3Smrg    none) break ;;
2087132b578d3Smrg    esac
2087232b578d3Smrg    if depmode=$depmode \
208732a51b5beSmrg       source=sub/conftest.c object=$am__obj \
2087432b578d3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
208752a51b5beSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2087632b578d3Smrg         >/dev/null 2>conftest.err &&
2087732b578d3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2087832b578d3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
208792a51b5beSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2088032b578d3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2088132b578d3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
2088232b578d3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
2088332b578d3Smrg      # that says an option was ignored or not supported.
2088432b578d3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
2088532b578d3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
2088632b578d3Smrg      # The diagnosis changed in icc 8.0:
2088732b578d3Smrg      #   icc: Command line remark: option '-MP' not supported
2088832b578d3Smrg      if (grep 'ignoring option' conftest.err ||
2088932b578d3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2089032b578d3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
2089132b578d3Smrg        break
2089232b578d3Smrg      fi
2089332b578d3Smrg    fi
2089432b578d3Smrg  done
2089532b578d3Smrg
2089632b578d3Smrg  cd ..
2089732b578d3Smrg  rm -rf conftest.dir
2089832b578d3Smrgelse
2089932b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
2090032b578d3Smrgfi
2090132b578d3Smrg
2090232b578d3Smrgfi
209032a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
209042a51b5beSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2090532b578d3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2090632b578d3Smrg
2090732b578d3Smrg if
2090832b578d3Smrg  test "x$enable_dependency_tracking" != xno \
2090932b578d3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2091032b578d3Smrg  am__fastdepCC_TRUE=
2091132b578d3Smrg  am__fastdepCC_FALSE='#'
2091232b578d3Smrgelse
2091332b578d3Smrg  am__fastdepCC_TRUE='#'
2091432b578d3Smrg  am__fastdepCC_FALSE=
2091532b578d3Smrgfi
2091632b578d3Smrg
2091732b578d3Smrg
2091832b578d3Smrg
20919d31dbc53Smrg
20920d31dbc53Smrgif  test "x$GCC" = xyes ; then
20921d31dbc53Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20922d31dbc53Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20923d31dbc53Smrg-Wbad-function-cast"
20924d31dbc53Smrg    case `gcc -dumpversion` in
20925d31dbc53Smrg    3.4.* | 4.*)
209262a51b5beSmrg	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
20927d31dbc53Smrg	;;
20928d31dbc53Smrg    esac
20929d31dbc53Smrgelse
209302a51b5beSmrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
209312a51b5beSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20932d31dbc53Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
209332a51b5beSmrg  $as_echo_n "(cached) " >&6
20934d31dbc53Smrgelse
20935d31dbc53Smrg  cat >conftest.$ac_ext <<_ACEOF
20936d31dbc53Smrg/* confdefs.h.  */
20937d31dbc53Smrg_ACEOF
20938d31dbc53Smrgcat confdefs.h >>conftest.$ac_ext
20939d31dbc53Smrgcat >>conftest.$ac_ext <<_ACEOF
20940d31dbc53Smrg/* end confdefs.h.  */
20941d31dbc53Smrg$ac_includes_default
20942d31dbc53Smrgint
20943d31dbc53Smrgmain ()
20944d31dbc53Smrg{
20945d31dbc53Smrg#ifndef __SUNPRO_C
20946d31dbc53Smrg  (void) __SUNPRO_C;
20947d31dbc53Smrg#endif
20948d31dbc53Smrg
20949d31dbc53Smrg  ;
20950d31dbc53Smrg  return 0;
20951d31dbc53Smrg}
20952d31dbc53Smrg_ACEOF
20953d31dbc53Smrgrm -f conftest.$ac_objext
20954d31dbc53Smrgif { (ac_try="$ac_compile"
20955d31dbc53Smrgcase "(($ac_try" in
20956d31dbc53Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957d31dbc53Smrg  *) ac_try_echo=$ac_try;;
20958d31dbc53Smrgesac
209592a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
209602a51b5beSmrg$as_echo "$ac_try_echo") >&5
20961d31dbc53Smrg  (eval "$ac_compile") 2>conftest.er1
20962d31dbc53Smrg  ac_status=$?
20963d31dbc53Smrg  grep -v '^ *+' conftest.er1 >conftest.err
20964d31dbc53Smrg  rm -f conftest.er1
20965d31dbc53Smrg  cat conftest.err >&5
209662a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967d31dbc53Smrg  (exit $ac_status); } && {
20968d31dbc53Smrg	 test -z "$ac_c_werror_flag" ||
20969d31dbc53Smrg	 test ! -s conftest.err
20970d31dbc53Smrg       } && test -s conftest.$ac_objext; then
20971d31dbc53Smrg  ac_cv_have_decl___SUNPRO_C=yes
20972d31dbc53Smrgelse
209732a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
20974d31dbc53Smrgsed 's/^/| /' conftest.$ac_ext >&5
20975d31dbc53Smrg
20976d31dbc53Smrg	ac_cv_have_decl___SUNPRO_C=no
20977d31dbc53Smrgfi
20978d31dbc53Smrg
20979d31dbc53Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980d31dbc53Smrgfi
209812a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
209822a51b5beSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
209832a51b5beSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20984d31dbc53Smrg  SUNCC="yes"
20985d31dbc53Smrgelse
20986d31dbc53Smrg  SUNCC="no"
20987d31dbc53Smrgfi
20988d31dbc53Smrg
20989d31dbc53Smrg    if test "x$SUNCC" = "xyes"; then
20990d31dbc53Smrg	CWARNFLAGS="-v"
20991d31dbc53Smrg    fi
2099232b578d3Smrgfi
2099332b578d3Smrg
2099432b578d3Smrg
2099532b578d3Smrg
2099632b578d3Smrg
2099732b578d3Smrg
20998d31dbc53Smrg
20999d31dbc53Smrg
2100032b578d3Smrg# Check whether --with-xorg-module-dir was given.
2100132b578d3Smrgif test "${with_xorg_module_dir+set}" = set; then
2100232b578d3Smrg  withval=$with_xorg_module_dir; moduledir="$withval"
2100332b578d3Smrgelse
2100432b578d3Smrg  moduledir="$libdir/xorg/modules"
2100532b578d3Smrgfi
2100632b578d3Smrg
2100732b578d3Smrg
2100832b578d3Smrg# Check whether --enable-dri was given.
2100932b578d3Smrgif test "${enable_dri+set}" = set; then
2101032b578d3Smrg  enableval=$enable_dri; DRI="$enableval"
2101132b578d3Smrgelse
2101232b578d3Smrg  DRI=auto
2101332b578d3Smrgfi
2101432b578d3Smrg
2101532b578d3Smrg
2101632b578d3Smrg# Check whether --enable-exa was given.
2101732b578d3Smrgif test "${enable_exa+set}" = set; then
2101832b578d3Smrg  enableval=$enable_exa; EXA="$enableval"
2101932b578d3Smrgelse
2102032b578d3Smrg  EXA=yes
2102132b578d3Smrgfi
2102232b578d3Smrg
2102332b578d3Smrg
2102432b578d3Smrg# Checks for extensions
2102532b578d3Smrg
2102632b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2102732b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2102832b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2102932b578d3Smrg/* confdefs.h.  */
2103032b578d3Smrg_ACEOF
2103132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2103232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2103332b578d3Smrg/* end confdefs.h.  */
2103432b578d3Smrg
2103532b578d3Smrg#include "xorg-server.h"
2103632b578d3Smrg#if !defined XINERAMA
2103732b578d3Smrg#error XINERAMA not defined
2103832b578d3Smrg#endif
2103932b578d3Smrg
2104032b578d3Smrgint
2104132b578d3Smrgmain ()
2104232b578d3Smrg{
2104332b578d3Smrg
2104432b578d3Smrg  ;
2104532b578d3Smrg  return 0;
2104632b578d3Smrg}
2104732b578d3Smrg_ACEOF
2104832b578d3Smrgrm -f conftest.$ac_objext
2104932b578d3Smrgif { (ac_try="$ac_compile"
2105032b578d3Smrgcase "(($ac_try" in
2105132b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105232b578d3Smrg  *) ac_try_echo=$ac_try;;
2105332b578d3Smrgesac
210542a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
210552a51b5beSmrg$as_echo "$ac_try_echo") >&5
2105632b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2105732b578d3Smrg  ac_status=$?
2105832b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2105932b578d3Smrg  rm -f conftest.er1
2106032b578d3Smrg  cat conftest.err >&5
210612a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106232b578d3Smrg  (exit $ac_status); } && {
2106332b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2106432b578d3Smrg	 test ! -s conftest.err
2106532b578d3Smrg       } && test -s conftest.$ac_objext; then
2106632b578d3Smrg  _EXT_CHECK=yes
2106732b578d3Smrgelse
210682a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2106932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2107032b578d3Smrg
2107132b578d3Smrg	_EXT_CHECK=no
2107232b578d3Smrgfi
2107332b578d3Smrg
2107432b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107532b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
210762a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
210772a51b5beSmrg$as_echo_n "checking if XINERAMA is defined... " >&6; }
210782a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
210792a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2108032b578d3Smrg	if test "$_EXT_CHECK" != no; then
2108132b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
2108232b578d3Smrg	fi
2108332b578d3Smrg
2108432b578d3Smrg
2108532b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2108632b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2108732b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2108832b578d3Smrg/* confdefs.h.  */
2108932b578d3Smrg_ACEOF
2109032b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2109132b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2109232b578d3Smrg/* end confdefs.h.  */
2109332b578d3Smrg
2109432b578d3Smrg#include "xorg-server.h"
2109532b578d3Smrg#if !defined RANDR
2109632b578d3Smrg#error RANDR not defined
2109732b578d3Smrg#endif
2109832b578d3Smrg
2109932b578d3Smrgint
2110032b578d3Smrgmain ()
2110132b578d3Smrg{
2110232b578d3Smrg
2110332b578d3Smrg  ;
2110432b578d3Smrg  return 0;
2110532b578d3Smrg}
2110632b578d3Smrg_ACEOF
2110732b578d3Smrgrm -f conftest.$ac_objext
2110832b578d3Smrgif { (ac_try="$ac_compile"
2110932b578d3Smrgcase "(($ac_try" in
2111032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111132b578d3Smrg  *) ac_try_echo=$ac_try;;
2111232b578d3Smrgesac
211132a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
211142a51b5beSmrg$as_echo "$ac_try_echo") >&5
2111532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2111632b578d3Smrg  ac_status=$?
2111732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2111832b578d3Smrg  rm -f conftest.er1
2111932b578d3Smrg  cat conftest.err >&5
211202a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112132b578d3Smrg  (exit $ac_status); } && {
2112232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2112332b578d3Smrg	 test ! -s conftest.err
2112432b578d3Smrg       } && test -s conftest.$ac_objext; then
2112532b578d3Smrg  _EXT_CHECK=yes
2112632b578d3Smrgelse
211272a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2112832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2112932b578d3Smrg
2113032b578d3Smrg	_EXT_CHECK=no
2113132b578d3Smrgfi
2113232b578d3Smrg
2113332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113432b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
211352a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
211362a51b5beSmrg$as_echo_n "checking if RANDR is defined... " >&6; }
211372a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
211382a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2113932b578d3Smrg	if test "$_EXT_CHECK" != no; then
2114032b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
2114132b578d3Smrg	fi
2114232b578d3Smrg
2114332b578d3Smrg
2114432b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2114532b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2114632b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2114732b578d3Smrg/* confdefs.h.  */
2114832b578d3Smrg_ACEOF
2114932b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2115032b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2115132b578d3Smrg/* end confdefs.h.  */
2115232b578d3Smrg
2115332b578d3Smrg#include "xorg-server.h"
2115432b578d3Smrg#if !defined RENDER
2115532b578d3Smrg#error RENDER not defined
2115632b578d3Smrg#endif
2115732b578d3Smrg
2115832b578d3Smrgint
2115932b578d3Smrgmain ()
2116032b578d3Smrg{
2116132b578d3Smrg
2116232b578d3Smrg  ;
2116332b578d3Smrg  return 0;
2116432b578d3Smrg}
2116532b578d3Smrg_ACEOF
2116632b578d3Smrgrm -f conftest.$ac_objext
2116732b578d3Smrgif { (ac_try="$ac_compile"
2116832b578d3Smrgcase "(($ac_try" in
2116932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117032b578d3Smrg  *) ac_try_echo=$ac_try;;
2117132b578d3Smrgesac
211722a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
211732a51b5beSmrg$as_echo "$ac_try_echo") >&5
2117432b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2117532b578d3Smrg  ac_status=$?
2117632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2117732b578d3Smrg  rm -f conftest.er1
2117832b578d3Smrg  cat conftest.err >&5
211792a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118032b578d3Smrg  (exit $ac_status); } && {
2118132b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2118232b578d3Smrg	 test ! -s conftest.err
2118332b578d3Smrg       } && test -s conftest.$ac_objext; then
2118432b578d3Smrg  _EXT_CHECK=yes
2118532b578d3Smrgelse
211862a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2118732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2118832b578d3Smrg
2118932b578d3Smrg	_EXT_CHECK=no
2119032b578d3Smrgfi
2119132b578d3Smrg
2119232b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119332b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
211942a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
211952a51b5beSmrg$as_echo_n "checking if RENDER is defined... " >&6; }
211962a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
211972a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2119832b578d3Smrg	if test "$_EXT_CHECK" != no; then
2119932b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
2120032b578d3Smrg	fi
2120132b578d3Smrg
2120232b578d3Smrg
2120332b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2120432b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2120532b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2120632b578d3Smrg/* confdefs.h.  */
2120732b578d3Smrg_ACEOF
2120832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2120932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2121032b578d3Smrg/* end confdefs.h.  */
2121132b578d3Smrg
2121232b578d3Smrg#include "xorg-server.h"
2121332b578d3Smrg#if !defined XV
2121432b578d3Smrg#error XV not defined
2121532b578d3Smrg#endif
2121632b578d3Smrg
2121732b578d3Smrgint
2121832b578d3Smrgmain ()
2121932b578d3Smrg{
2122032b578d3Smrg
2122132b578d3Smrg  ;
2122232b578d3Smrg  return 0;
2122332b578d3Smrg}
2122432b578d3Smrg_ACEOF
2122532b578d3Smrgrm -f conftest.$ac_objext
2122632b578d3Smrgif { (ac_try="$ac_compile"
2122732b578d3Smrgcase "(($ac_try" in
2122832b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122932b578d3Smrg  *) ac_try_echo=$ac_try;;
2123032b578d3Smrgesac
212312a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
212322a51b5beSmrg$as_echo "$ac_try_echo") >&5
2123332b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2123432b578d3Smrg  ac_status=$?
2123532b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2123632b578d3Smrg  rm -f conftest.er1
2123732b578d3Smrg  cat conftest.err >&5
212382a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123932b578d3Smrg  (exit $ac_status); } && {
2124032b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2124132b578d3Smrg	 test ! -s conftest.err
2124232b578d3Smrg       } && test -s conftest.$ac_objext; then
2124332b578d3Smrg  _EXT_CHECK=yes
2124432b578d3Smrgelse
212452a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2124632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2124732b578d3Smrg
2124832b578d3Smrg	_EXT_CHECK=no
2124932b578d3Smrgfi
2125032b578d3Smrg
2125132b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125232b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
212532a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
212542a51b5beSmrg$as_echo_n "checking if XV is defined... " >&6; }
212552a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
212562a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2125732b578d3Smrg	if test "$_EXT_CHECK" != no; then
2125832b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
2125932b578d3Smrg	fi
2126032b578d3Smrg
2126132b578d3Smrg
2126232b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2126332b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2126432b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2126532b578d3Smrg/* confdefs.h.  */
2126632b578d3Smrg_ACEOF
2126732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2126832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2126932b578d3Smrg/* end confdefs.h.  */
2127032b578d3Smrg
2127132b578d3Smrg#include "xorg-server.h"
2127232b578d3Smrg#if !defined XF86MISC
2127332b578d3Smrg#error XF86MISC not defined
2127432b578d3Smrg#endif
2127532b578d3Smrg
2127632b578d3Smrgint
2127732b578d3Smrgmain ()
2127832b578d3Smrg{
2127932b578d3Smrg
2128032b578d3Smrg  ;
2128132b578d3Smrg  return 0;
2128232b578d3Smrg}
2128332b578d3Smrg_ACEOF
2128432b578d3Smrgrm -f conftest.$ac_objext
2128532b578d3Smrgif { (ac_try="$ac_compile"
2128632b578d3Smrgcase "(($ac_try" in
2128732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128832b578d3Smrg  *) ac_try_echo=$ac_try;;
2128932b578d3Smrgesac
212902a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
212912a51b5beSmrg$as_echo "$ac_try_echo") >&5
2129232b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2129332b578d3Smrg  ac_status=$?
2129432b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2129532b578d3Smrg  rm -f conftest.er1
2129632b578d3Smrg  cat conftest.err >&5
212972a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129832b578d3Smrg  (exit $ac_status); } && {
2129932b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2130032b578d3Smrg	 test ! -s conftest.err
2130132b578d3Smrg       } && test -s conftest.$ac_objext; then
2130232b578d3Smrg  _EXT_CHECK=yes
2130332b578d3Smrgelse
213042a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2130532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2130632b578d3Smrg
2130732b578d3Smrg	_EXT_CHECK=no
2130832b578d3Smrgfi
2130932b578d3Smrg
2131032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131132b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
213122a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if XF86MISC is defined" >&5
213132a51b5beSmrg$as_echo_n "checking if XF86MISC is defined... " >&6; }
213142a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
213152a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2131632b578d3Smrg	if test "$_EXT_CHECK" != no; then
2131732b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
2131832b578d3Smrg	fi
2131932b578d3Smrg
2132032b578d3Smrg
2132132b578d3Smrg	SAVE_CFLAGS="$CFLAGS"
2132232b578d3Smrg	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
2132332b578d3Smrg	cat >conftest.$ac_ext <<_ACEOF
2132432b578d3Smrg/* confdefs.h.  */
2132532b578d3Smrg_ACEOF
2132632b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2132732b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2132832b578d3Smrg/* end confdefs.h.  */
2132932b578d3Smrg
2133032b578d3Smrg#include "xorg-server.h"
2133132b578d3Smrg#if !defined DPMSExtension
2133232b578d3Smrg#error DPMSExtension not defined
2133332b578d3Smrg#endif
2133432b578d3Smrg
2133532b578d3Smrgint
2133632b578d3Smrgmain ()
2133732b578d3Smrg{
2133832b578d3Smrg
2133932b578d3Smrg  ;
2134032b578d3Smrg  return 0;
2134132b578d3Smrg}
2134232b578d3Smrg_ACEOF
2134332b578d3Smrgrm -f conftest.$ac_objext
2134432b578d3Smrgif { (ac_try="$ac_compile"
2134532b578d3Smrgcase "(($ac_try" in
2134632b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134732b578d3Smrg  *) ac_try_echo=$ac_try;;
2134832b578d3Smrgesac
213492a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
213502a51b5beSmrg$as_echo "$ac_try_echo") >&5
2135132b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2135232b578d3Smrg  ac_status=$?
2135332b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2135432b578d3Smrg  rm -f conftest.er1
2135532b578d3Smrg  cat conftest.err >&5
213562a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135732b578d3Smrg  (exit $ac_status); } && {
2135832b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2135932b578d3Smrg	 test ! -s conftest.err
2136032b578d3Smrg       } && test -s conftest.$ac_objext; then
2136132b578d3Smrg  _EXT_CHECK=yes
2136232b578d3Smrgelse
213632a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2136432b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2136532b578d3Smrg
2136632b578d3Smrg	_EXT_CHECK=no
2136732b578d3Smrgfi
2136832b578d3Smrg
2136932b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137032b578d3Smrg	CFLAGS="$SAVE_CFLAGS"
213712a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
213722a51b5beSmrg$as_echo_n "checking if DPMSExtension is defined... " >&6; }
213732a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
213742a51b5beSmrg$as_echo "$_EXT_CHECK" >&6; }
2137532b578d3Smrg	if test "$_EXT_CHECK" != no; then
2137632b578d3Smrg		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
2137732b578d3Smrg	fi
2137832b578d3Smrg
2137932b578d3Smrg
2138032b578d3Smrg# Checks for pkg-config packages
2138132b578d3Smrg
2138232b578d3Smrg
2138332b578d3Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2138432b578d3Smrg	if test -n "$ac_tool_prefix"; then
2138532b578d3Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2138632b578d3Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
213872a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
213882a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2138932b578d3Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
213902a51b5beSmrg  $as_echo_n "(cached) " >&6
2139132b578d3Smrgelse
2139232b578d3Smrg  case $PKG_CONFIG in
2139332b578d3Smrg  [\\/]* | ?:[\\/]*)
2139432b578d3Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2139532b578d3Smrg  ;;
2139632b578d3Smrg  *)
2139732b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139832b578d3Smrgfor as_dir in $PATH
2139932b578d3Smrgdo
2140032b578d3Smrg  IFS=$as_save_IFS
2140132b578d3Smrg  test -z "$as_dir" && as_dir=.
2140232b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2140332b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140432b578d3Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
214052a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140632b578d3Smrg    break 2
2140732b578d3Smrg  fi
2140832b578d3Smrgdone
2140932b578d3Smrgdone
2141032b578d3SmrgIFS=$as_save_IFS
2141132b578d3Smrg
2141232b578d3Smrg  ;;
2141332b578d3Smrgesac
2141432b578d3Smrgfi
2141532b578d3SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
2141632b578d3Smrgif test -n "$PKG_CONFIG"; then
214172a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
214182a51b5beSmrg$as_echo "$PKG_CONFIG" >&6; }
2141932b578d3Smrgelse
214202a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
214212a51b5beSmrg$as_echo "no" >&6; }
2142232b578d3Smrgfi
2142332b578d3Smrg
2142432b578d3Smrg
2142532b578d3Smrgfi
2142632b578d3Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
2142732b578d3Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
2142832b578d3Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
2142932b578d3Smrgset dummy pkg-config; ac_word=$2
214302a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
214312a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2143232b578d3Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
214332a51b5beSmrg  $as_echo_n "(cached) " >&6
2143432b578d3Smrgelse
2143532b578d3Smrg  case $ac_pt_PKG_CONFIG in
2143632b578d3Smrg  [\\/]* | ?:[\\/]*)
2143732b578d3Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2143832b578d3Smrg  ;;
2143932b578d3Smrg  *)
2144032b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144132b578d3Smrgfor as_dir in $PATH
2144232b578d3Smrgdo
2144332b578d3Smrg  IFS=$as_save_IFS
2144432b578d3Smrg  test -z "$as_dir" && as_dir=.
2144532b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2144632b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144732b578d3Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
214482a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144932b578d3Smrg    break 2
2145032b578d3Smrg  fi
2145132b578d3Smrgdone
2145232b578d3Smrgdone
2145332b578d3SmrgIFS=$as_save_IFS
2145432b578d3Smrg
2145532b578d3Smrg  ;;
2145632b578d3Smrgesac
2145732b578d3Smrgfi
2145832b578d3Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2145932b578d3Smrgif test -n "$ac_pt_PKG_CONFIG"; then
214602a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
214612a51b5beSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
2146232b578d3Smrgelse
214632a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
214642a51b5beSmrg$as_echo "no" >&6; }
2146532b578d3Smrgfi
2146632b578d3Smrg
2146732b578d3Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
2146832b578d3Smrg    PKG_CONFIG=""
2146932b578d3Smrg  else
2147032b578d3Smrg    case $cross_compiling:$ac_tool_warned in
2147132b578d3Smrgyes:)
214722a51b5beSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
214732a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2147432b578d3Smrgac_tool_warned=yes ;;
2147532b578d3Smrgesac
2147632b578d3Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
2147732b578d3Smrg  fi
2147832b578d3Smrgelse
2147932b578d3Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2148032b578d3Smrgfi
2148132b578d3Smrg
2148232b578d3Smrgfi
2148332b578d3Smrgif test -n "$PKG_CONFIG"; then
2148432b578d3Smrg	_pkg_min_version=0.9.0
214852a51b5beSmrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
214862a51b5beSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2148732b578d3Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
214882a51b5beSmrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
214892a51b5beSmrg$as_echo "yes" >&6; }
2149032b578d3Smrg	else
214912a51b5beSmrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
214922a51b5beSmrg$as_echo "no" >&6; }
2149332b578d3Smrg		PKG_CONFIG=""
2149432b578d3Smrg	fi
2149532b578d3Smrg
2149632b578d3Smrgfi
2149732b578d3Smrg
2149832b578d3Smrgpkg_failed=no
214992a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
215002a51b5beSmrg$as_echo_n "checking for XORG... " >&6; }
215012a51b5beSmrg
215022a51b5beSmrgif test -n "$XORG_CFLAGS"; then
215032a51b5beSmrg    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
215042a51b5beSmrg elif test -n "$PKG_CONFIG"; then
215052a51b5beSmrg    if test -n "$PKG_CONFIG" && \
215062a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
2150732b578d3Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
2150832b578d3Smrg  ac_status=$?
215092a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151032b578d3Smrg  (exit $ac_status); }; then
2151132b578d3Smrg  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
2151232b578d3Smrgelse
2151332b578d3Smrg  pkg_failed=yes
2151432b578d3Smrgfi
215152a51b5beSmrg else
215162a51b5beSmrg    pkg_failed=untried
2151732b578d3Smrgfi
215182a51b5beSmrgif test -n "$XORG_LIBS"; then
215192a51b5beSmrg    pkg_cv_XORG_LIBS="$XORG_LIBS"
215202a51b5beSmrg elif test -n "$PKG_CONFIG"; then
215212a51b5beSmrg    if test -n "$PKG_CONFIG" && \
215222a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
2152332b578d3Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
2152432b578d3Smrg  ac_status=$?
215252a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152632b578d3Smrg  (exit $ac_status); }; then
2152732b578d3Smrg  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
2152832b578d3Smrgelse
2152932b578d3Smrg  pkg_failed=yes
2153032b578d3Smrgfi
215312a51b5beSmrg else
215322a51b5beSmrg    pkg_failed=untried
2153332b578d3Smrgfi
2153432b578d3Smrg
215352a51b5beSmrg
215362a51b5beSmrg
2153732b578d3Smrgif test $pkg_failed = yes; then
215382a51b5beSmrg
215392a51b5beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
215402a51b5beSmrg        _pkg_short_errors_supported=yes
215412a51b5beSmrgelse
215422a51b5beSmrg        _pkg_short_errors_supported=no
215432a51b5beSmrgfi
215442a51b5beSmrg        if test $_pkg_short_errors_supported = yes; then
215452a51b5beSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
215462a51b5beSmrg        else
215472a51b5beSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
215482a51b5beSmrg        fi
2154932b578d3Smrg	# Put the nasty error message in config.log where it belongs
215502a51b5beSmrg	echo "$XORG_PKG_ERRORS" >&5
215512a51b5beSmrg
215522a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
215532a51b5beSmrg
215542a51b5beSmrg$XORG_PKG_ERRORS
2155532b578d3Smrg
2155632b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2155732b578d3Smrginstalled software in a non-standard prefix.
2155832b578d3Smrg
215592a51b5beSmrgAlternatively, you may set the environment variables XORG_CFLAGS
215602a51b5beSmrgand XORG_LIBS to avoid the need to call pkg-config.
215612a51b5beSmrgSee the pkg-config man page for more details.
215622a51b5beSmrg" >&5
215632a51b5beSmrg$as_echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
215642a51b5beSmrg
215652a51b5beSmrg$XORG_PKG_ERRORS
215662a51b5beSmrg
2156732b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2156832b578d3Smrginstalled software in a non-standard prefix.
2156932b578d3Smrg
215702a51b5beSmrgAlternatively, you may set the environment variables XORG_CFLAGS
215712a51b5beSmrgand XORG_LIBS to avoid the need to call pkg-config.
215722a51b5beSmrgSee the pkg-config man page for more details.
215732a51b5beSmrg" >&2;}
2157432b578d3Smrg   { (exit 1); exit 1; }; }
2157532b578d3Smrgelif test $pkg_failed = untried; then
215762a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
215772a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
215782a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
2157932b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2158032b578d3Smrgpath to pkg-config.
2158132b578d3Smrg
215822a51b5beSmrgAlternatively, you may set the environment variables XORG_CFLAGS
215832a51b5beSmrgand XORG_LIBS to avoid the need to call pkg-config.
215842a51b5beSmrgSee the pkg-config man page for more details.
2158532b578d3Smrg
215862a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2158732b578d3SmrgSee \`config.log' for more details." >&5
215882a51b5beSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
2158932b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2159032b578d3Smrgpath to pkg-config.
2159132b578d3Smrg
215922a51b5beSmrgAlternatively, you may set the environment variables XORG_CFLAGS
215932a51b5beSmrgand XORG_LIBS to avoid the need to call pkg-config.
215942a51b5beSmrgSee the pkg-config man page for more details.
2159532b578d3Smrg
215962a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2159732b578d3SmrgSee \`config.log' for more details." >&2;}
215982a51b5beSmrg   { (exit 1); exit 1; }; }; }
2159932b578d3Smrgelse
2160032b578d3Smrg	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
2160132b578d3Smrg	XORG_LIBS=$pkg_cv_XORG_LIBS
216022a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
216032a51b5beSmrg$as_echo "yes" >&6; }
2160432b578d3Smrg	:
2160532b578d3Smrgfi
216062a51b5beSmrg
216072a51b5beSmrgpkg_failed=no
216082a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
216092a51b5beSmrg$as_echo_n "checking for XEXT... " >&6; }
216102a51b5beSmrg
216112a51b5beSmrgif test -n "$XEXT_CFLAGS"; then
216122a51b5beSmrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
216132a51b5beSmrg elif test -n "$PKG_CONFIG"; then
216142a51b5beSmrg    if test -n "$PKG_CONFIG" && \
216152a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
216162a51b5beSmrg  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
216172a51b5beSmrg  ac_status=$?
216182a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
216192a51b5beSmrg  (exit $ac_status); }; then
216202a51b5beSmrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
216212a51b5beSmrgelse
216222a51b5beSmrg  pkg_failed=yes
216232a51b5beSmrgfi
216242a51b5beSmrg else
216252a51b5beSmrg    pkg_failed=untried
216262a51b5beSmrgfi
216272a51b5beSmrgif test -n "$XEXT_LIBS"; then
216282a51b5beSmrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
216292a51b5beSmrg elif test -n "$PKG_CONFIG"; then
216302a51b5beSmrg    if test -n "$PKG_CONFIG" && \
216312a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
216322a51b5beSmrg  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
216332a51b5beSmrg  ac_status=$?
216342a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
216352a51b5beSmrg  (exit $ac_status); }; then
216362a51b5beSmrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
216372a51b5beSmrgelse
216382a51b5beSmrg  pkg_failed=yes
216392a51b5beSmrgfi
216402a51b5beSmrg else
216412a51b5beSmrg    pkg_failed=untried
216422a51b5beSmrgfi
216432a51b5beSmrg
216442a51b5beSmrg
216452a51b5beSmrg
216462a51b5beSmrgif test $pkg_failed = yes; then
216472a51b5beSmrg
216482a51b5beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
216492a51b5beSmrg        _pkg_short_errors_supported=yes
216502a51b5beSmrgelse
216512a51b5beSmrg        _pkg_short_errors_supported=no
216522a51b5beSmrgfi
216532a51b5beSmrg        if test $_pkg_short_errors_supported = yes; then
216542a51b5beSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
216552a51b5beSmrg        else
216562a51b5beSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
216572a51b5beSmrg        fi
216582a51b5beSmrg	# Put the nasty error message in config.log where it belongs
216592a51b5beSmrg	echo "$XEXT_PKG_ERRORS" >&5
216602a51b5beSmrg
216612a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: no" >&5
216622a51b5beSmrg$as_echo "no" >&6; }
216632a51b5beSmrg                HAVE_XEXTPROTO_71="no"
216642a51b5beSmrgelif test $pkg_failed = untried; then
216652a51b5beSmrg	HAVE_XEXTPROTO_71="no"
216662a51b5beSmrgelse
216672a51b5beSmrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
216682a51b5beSmrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
216692a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
216702a51b5beSmrg$as_echo "yes" >&6; }
216712a51b5beSmrg	HAVE_XEXTPROTO_71="yes";
216722a51b5beSmrgcat >>confdefs.h <<\_ACEOF
216732a51b5beSmrg#define HAVE_XEXTPROTO_71 1
216742a51b5beSmrg_ACEOF
216752a51b5beSmrg
216762a51b5beSmrgfi
216772a51b5beSmrg if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
216782a51b5beSmrg  HAVE_XEXTPROTO_71_TRUE=
216792a51b5beSmrg  HAVE_XEXTPROTO_71_FALSE='#'
216802a51b5beSmrgelse
216812a51b5beSmrg  HAVE_XEXTPROTO_71_TRUE='#'
216822a51b5beSmrg  HAVE_XEXTPROTO_71_FALSE=
216832a51b5beSmrgfi
216842a51b5beSmrg
2168532b578d3Smrgsdkdir=$(pkg-config --variable=sdkdir xorg-server)
2168632b578d3Smrg
2168732b578d3Smrg# Checks for libraries.
2168832b578d3Smrg
2168932b578d3Smrg# Checks for header files.
216902a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
216912a51b5beSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
2169232b578d3Smrgif test "${ac_cv_header_stdc+set}" = set; then
216932a51b5beSmrg  $as_echo_n "(cached) " >&6
2169432b578d3Smrgelse
2169532b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2169632b578d3Smrg/* confdefs.h.  */
2169732b578d3Smrg_ACEOF
2169832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2169932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2170032b578d3Smrg/* end confdefs.h.  */
2170132b578d3Smrg#include <stdlib.h>
2170232b578d3Smrg#include <stdarg.h>
2170332b578d3Smrg#include <string.h>
2170432b578d3Smrg#include <float.h>
2170532b578d3Smrg
2170632b578d3Smrgint
2170732b578d3Smrgmain ()
2170832b578d3Smrg{
2170932b578d3Smrg
2171032b578d3Smrg  ;
2171132b578d3Smrg  return 0;
2171232b578d3Smrg}
2171332b578d3Smrg_ACEOF
2171432b578d3Smrgrm -f conftest.$ac_objext
2171532b578d3Smrgif { (ac_try="$ac_compile"
2171632b578d3Smrgcase "(($ac_try" in
2171732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171832b578d3Smrg  *) ac_try_echo=$ac_try;;
2171932b578d3Smrgesac
217202a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
217212a51b5beSmrg$as_echo "$ac_try_echo") >&5
2172232b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2172332b578d3Smrg  ac_status=$?
2172432b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2172532b578d3Smrg  rm -f conftest.er1
2172632b578d3Smrg  cat conftest.err >&5
217272a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172832b578d3Smrg  (exit $ac_status); } && {
2172932b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2173032b578d3Smrg	 test ! -s conftest.err
2173132b578d3Smrg       } && test -s conftest.$ac_objext; then
2173232b578d3Smrg  ac_cv_header_stdc=yes
2173332b578d3Smrgelse
217342a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2173532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2173632b578d3Smrg
2173732b578d3Smrg	ac_cv_header_stdc=no
2173832b578d3Smrgfi
2173932b578d3Smrg
2174032b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174132b578d3Smrg
2174232b578d3Smrgif test $ac_cv_header_stdc = yes; then
2174332b578d3Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2174432b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2174532b578d3Smrg/* confdefs.h.  */
2174632b578d3Smrg_ACEOF
2174732b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2174832b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2174932b578d3Smrg/* end confdefs.h.  */
2175032b578d3Smrg#include <string.h>
2175132b578d3Smrg
2175232b578d3Smrg_ACEOF
2175332b578d3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2175432b578d3Smrg  $EGREP "memchr" >/dev/null 2>&1; then
2175532b578d3Smrg  :
2175632b578d3Smrgelse
2175732b578d3Smrg  ac_cv_header_stdc=no
2175832b578d3Smrgfi
2175932b578d3Smrgrm -f conftest*
2176032b578d3Smrg
2176132b578d3Smrgfi
2176232b578d3Smrg
2176332b578d3Smrgif test $ac_cv_header_stdc = yes; then
2176432b578d3Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2176532b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2176632b578d3Smrg/* confdefs.h.  */
2176732b578d3Smrg_ACEOF
2176832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2176932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2177032b578d3Smrg/* end confdefs.h.  */
2177132b578d3Smrg#include <stdlib.h>
2177232b578d3Smrg
2177332b578d3Smrg_ACEOF
2177432b578d3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2177532b578d3Smrg  $EGREP "free" >/dev/null 2>&1; then
2177632b578d3Smrg  :
2177732b578d3Smrgelse
2177832b578d3Smrg  ac_cv_header_stdc=no
2177932b578d3Smrgfi
2178032b578d3Smrgrm -f conftest*
2178132b578d3Smrg
2178232b578d3Smrgfi
2178332b578d3Smrg
2178432b578d3Smrgif test $ac_cv_header_stdc = yes; then
2178532b578d3Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2178632b578d3Smrg  if test "$cross_compiling" = yes; then
2178732b578d3Smrg  :
2178832b578d3Smrgelse
2178932b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2179032b578d3Smrg/* confdefs.h.  */
2179132b578d3Smrg_ACEOF
2179232b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2179332b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2179432b578d3Smrg/* end confdefs.h.  */
2179532b578d3Smrg#include <ctype.h>
2179632b578d3Smrg#include <stdlib.h>
2179732b578d3Smrg#if ((' ' & 0x0FF) == 0x020)
2179832b578d3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2179932b578d3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2180032b578d3Smrg#else
2180132b578d3Smrg# define ISLOWER(c) \
2180232b578d3Smrg		   (('a' <= (c) && (c) <= 'i') \
2180332b578d3Smrg		     || ('j' <= (c) && (c) <= 'r') \
2180432b578d3Smrg		     || ('s' <= (c) && (c) <= 'z'))
2180532b578d3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2180632b578d3Smrg#endif
2180732b578d3Smrg
2180832b578d3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2180932b578d3Smrgint
2181032b578d3Smrgmain ()
2181132b578d3Smrg{
2181232b578d3Smrg  int i;
2181332b578d3Smrg  for (i = 0; i < 256; i++)
2181432b578d3Smrg    if (XOR (islower (i), ISLOWER (i))
2181532b578d3Smrg	|| toupper (i) != TOUPPER (i))
2181632b578d3Smrg      return 2;
2181732b578d3Smrg  return 0;
2181832b578d3Smrg}
2181932b578d3Smrg_ACEOF
2182032b578d3Smrgrm -f conftest$ac_exeext
2182132b578d3Smrgif { (ac_try="$ac_link"
2182232b578d3Smrgcase "(($ac_try" in
2182332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182432b578d3Smrg  *) ac_try_echo=$ac_try;;
2182532b578d3Smrgesac
218262a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
218272a51b5beSmrg$as_echo "$ac_try_echo") >&5
2182832b578d3Smrg  (eval "$ac_link") 2>&5
2182932b578d3Smrg  ac_status=$?
218302a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183132b578d3Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2183232b578d3Smrg  { (case "(($ac_try" in
2183332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183432b578d3Smrg  *) ac_try_echo=$ac_try;;
2183532b578d3Smrgesac
218362a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
218372a51b5beSmrg$as_echo "$ac_try_echo") >&5
2183832b578d3Smrg  (eval "$ac_try") 2>&5
2183932b578d3Smrg  ac_status=$?
218402a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184132b578d3Smrg  (exit $ac_status); }; }; then
2184232b578d3Smrg  :
2184332b578d3Smrgelse
218442a51b5beSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
218452a51b5beSmrg$as_echo "$as_me: failed program was:" >&5
2184632b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2184732b578d3Smrg
2184832b578d3Smrg( exit $ac_status )
2184932b578d3Smrgac_cv_header_stdc=no
2185032b578d3Smrgfi
218512a51b5beSmrgrm -rf conftest.dSYM
2185232b578d3Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2185332b578d3Smrgfi
2185432b578d3Smrg
2185532b578d3Smrg
2185632b578d3Smrgfi
2185732b578d3Smrgfi
218582a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
218592a51b5beSmrg$as_echo "$ac_cv_header_stdc" >&6; }
2186032b578d3Smrgif test $ac_cv_header_stdc = yes; then
2186132b578d3Smrg
2186232b578d3Smrgcat >>confdefs.h <<\_ACEOF
2186332b578d3Smrg#define STDC_HEADERS 1
2186432b578d3Smrg_ACEOF
2186532b578d3Smrg
2186632b578d3Smrgfi
2186732b578d3Smrg
2186832b578d3Smrg
2186932b578d3Smrgif test "$DRI" != no; then
218702a51b5beSmrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
218712a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
218722a51b5beSmrg$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
2187332b578d3Smrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
218742a51b5beSmrg  $as_echo_n "(cached) " >&6
2187532b578d3Smrgelse
2187632b578d3Smrg  test "$cross_compiling" = yes &&
218772a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
218782a51b5beSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2187932b578d3Smrg   { (exit 1); exit 1; }; }
2188032b578d3Smrgif test -r "${sdkdir}/dri.h"; then
2188132b578d3Smrg  eval "$as_ac_File=yes"
2188232b578d3Smrgelse
2188332b578d3Smrg  eval "$as_ac_File=no"
2188432b578d3Smrgfi
2188532b578d3Smrgfi
218862a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_File'}
218872a51b5beSmrg		 $as_echo "$as_val"'`
218882a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
218892a51b5beSmrg$as_echo "$ac_res" >&6; }
218902a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_File'}
218912a51b5beSmrg		 $as_echo "$as_val"'`
218922a51b5beSmrg   if test "x$as_val" = x""yes; then
2189332b578d3Smrg  have_dri_h="yes"
2189432b578d3Smrgelse
2189532b578d3Smrg  have_dri_h="no"
2189632b578d3Smrgfi
2189732b578d3Smrg
218982a51b5beSmrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
218992a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
219002a51b5beSmrg$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
2190132b578d3Smrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
219022a51b5beSmrg  $as_echo_n "(cached) " >&6
2190332b578d3Smrgelse
2190432b578d3Smrg  test "$cross_compiling" = yes &&
219052a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
219062a51b5beSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2190732b578d3Smrg   { (exit 1); exit 1; }; }
2190832b578d3Smrgif test -r "${sdkdir}/sarea.h"; then
2190932b578d3Smrg  eval "$as_ac_File=yes"
2191032b578d3Smrgelse
2191132b578d3Smrg  eval "$as_ac_File=no"
2191232b578d3Smrgfi
2191332b578d3Smrgfi
219142a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_File'}
219152a51b5beSmrg		 $as_echo "$as_val"'`
219162a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
219172a51b5beSmrg$as_echo "$ac_res" >&6; }
219182a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_File'}
219192a51b5beSmrg		 $as_echo "$as_val"'`
219202a51b5beSmrg   if test "x$as_val" = x""yes; then
2192132b578d3Smrg  have_sarea_h="yes"
2192232b578d3Smrgelse
2192332b578d3Smrg  have_sarea_h="no"
2192432b578d3Smrgfi
2192532b578d3Smrg
219262a51b5beSmrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
219272a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
219282a51b5beSmrg$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
2192932b578d3Smrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
219302a51b5beSmrg  $as_echo_n "(cached) " >&6
2193132b578d3Smrgelse
2193232b578d3Smrg  test "$cross_compiling" = yes &&
219332a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
219342a51b5beSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2193532b578d3Smrg   { (exit 1); exit 1; }; }
2193632b578d3Smrgif test -r "${sdkdir}/dristruct.h"; then
2193732b578d3Smrg  eval "$as_ac_File=yes"
2193832b578d3Smrgelse
2193932b578d3Smrg  eval "$as_ac_File=no"
2194032b578d3Smrgfi
2194132b578d3Smrgfi
219422a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_File'}
219432a51b5beSmrg		 $as_echo "$as_val"'`
219442a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
219452a51b5beSmrg$as_echo "$ac_res" >&6; }
219462a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_File'}
219472a51b5beSmrg		 $as_echo "$as_val"'`
219482a51b5beSmrg   if test "x$as_val" = x""yes; then
2194932b578d3Smrg  have_dristruct_h="yes"
2195032b578d3Smrgelse
2195132b578d3Smrg  have_dristruct_h="no"
2195232b578d3Smrgfi
2195332b578d3Smrg
219542a51b5beSmrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
219552a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/damage.h" >&5
219562a51b5beSmrg$as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
2195732b578d3Smrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
219582a51b5beSmrg  $as_echo_n "(cached) " >&6
2195932b578d3Smrgelse
2196032b578d3Smrg  test "$cross_compiling" = yes &&
219612a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
219622a51b5beSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2196332b578d3Smrg   { (exit 1); exit 1; }; }
2196432b578d3Smrgif test -r "${sdkdir}/damage.h"; then
2196532b578d3Smrg  eval "$as_ac_File=yes"
2196632b578d3Smrgelse
2196732b578d3Smrg  eval "$as_ac_File=no"
2196832b578d3Smrgfi
2196932b578d3Smrgfi
219702a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_File'}
219712a51b5beSmrg		 $as_echo "$as_val"'`
219722a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
219732a51b5beSmrg$as_echo "$ac_res" >&6; }
219742a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_File'}
219752a51b5beSmrg		 $as_echo "$as_val"'`
219762a51b5beSmrg   if test "x$as_val" = x""yes; then
2197732b578d3Smrg  have_damage_h="yes"
2197832b578d3Smrgelse
2197932b578d3Smrg  have_damage_h="no"
2198032b578d3Smrgfi
2198132b578d3Smrg
2198232b578d3Smrgfi
2198332b578d3Smrg
219842a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
219852a51b5beSmrg$as_echo_n "checking whether to include DRI support... " >&6; }
2198632b578d3Smrgif test x$DRI = xauto; then
2198732b578d3Smrg	if test "$have_dri_h" = yes -a \
2198832b578d3Smrg                "$have_sarea_h" = yes -a \
2198932b578d3Smrg                "$have_dristruct_h" = yes; then
2199032b578d3Smrg		DRI="yes"
2199132b578d3Smrg	else
2199232b578d3Smrg		DRI="no"
2199332b578d3Smrg	fi
2199432b578d3Smrgfi
219952a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
219962a51b5beSmrg$as_echo "$DRI" >&6; }
2199732b578d3Smrg
2199832b578d3Smrg if test x$DRI = xyes; then
2199932b578d3Smrg  DRI_TRUE=
2200032b578d3Smrg  DRI_FALSE='#'
2200132b578d3Smrgelse
2200232b578d3Smrg  DRI_TRUE='#'
2200332b578d3Smrg  DRI_FALSE=
2200432b578d3Smrgfi
2200532b578d3Smrg
2200632b578d3Smrgif test "$DRI" = yes; then
2200732b578d3Smrg
2200832b578d3Smrgpkg_failed=no
220092a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
220102a51b5beSmrg$as_echo_n "checking for DRI... " >&6; }
220112a51b5beSmrg
220122a51b5beSmrgif test -n "$DRI_CFLAGS"; then
220132a51b5beSmrg    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
220142a51b5beSmrg elif test -n "$PKG_CONFIG"; then
220152a51b5beSmrg    if test -n "$PKG_CONFIG" && \
220162a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
2201732b578d3Smrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
2201832b578d3Smrg  ac_status=$?
220192a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202032b578d3Smrg  (exit $ac_status); }; then
2202132b578d3Smrg  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
2202232b578d3Smrgelse
2202332b578d3Smrg  pkg_failed=yes
2202432b578d3Smrgfi
220252a51b5beSmrg else
220262a51b5beSmrg    pkg_failed=untried
2202732b578d3Smrgfi
220282a51b5beSmrgif test -n "$DRI_LIBS"; then
220292a51b5beSmrg    pkg_cv_DRI_LIBS="$DRI_LIBS"
220302a51b5beSmrg elif test -n "$PKG_CONFIG"; then
220312a51b5beSmrg    if test -n "$PKG_CONFIG" && \
220322a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
2203332b578d3Smrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
2203432b578d3Smrg  ac_status=$?
220352a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203632b578d3Smrg  (exit $ac_status); }; then
2203732b578d3Smrg  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
2203832b578d3Smrgelse
2203932b578d3Smrg  pkg_failed=yes
2204032b578d3Smrgfi
220412a51b5beSmrg else
220422a51b5beSmrg    pkg_failed=untried
2204332b578d3Smrgfi
2204432b578d3Smrg
220452a51b5beSmrg
220462a51b5beSmrg
2204732b578d3Smrgif test $pkg_failed = yes; then
220482a51b5beSmrg
220492a51b5beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
220502a51b5beSmrg        _pkg_short_errors_supported=yes
220512a51b5beSmrgelse
220522a51b5beSmrg        _pkg_short_errors_supported=no
220532a51b5beSmrgfi
220542a51b5beSmrg        if test $_pkg_short_errors_supported = yes; then
220552a51b5beSmrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
220562a51b5beSmrg        else
220572a51b5beSmrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
220582a51b5beSmrg        fi
2205932b578d3Smrg	# Put the nasty error message in config.log where it belongs
220602a51b5beSmrg	echo "$DRI_PKG_ERRORS" >&5
220612a51b5beSmrg
220622a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
220632a51b5beSmrg
220642a51b5beSmrg$DRI_PKG_ERRORS
2206532b578d3Smrg
2206632b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2206732b578d3Smrginstalled software in a non-standard prefix.
2206832b578d3Smrg
220692a51b5beSmrgAlternatively, you may set the environment variables DRI_CFLAGS
220702a51b5beSmrgand DRI_LIBS to avoid the need to call pkg-config.
220712a51b5beSmrgSee the pkg-config man page for more details.
220722a51b5beSmrg" >&5
220732a51b5beSmrg$as_echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
220742a51b5beSmrg
220752a51b5beSmrg$DRI_PKG_ERRORS
220762a51b5beSmrg
2207732b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2207832b578d3Smrginstalled software in a non-standard prefix.
2207932b578d3Smrg
220802a51b5beSmrgAlternatively, you may set the environment variables DRI_CFLAGS
220812a51b5beSmrgand DRI_LIBS to avoid the need to call pkg-config.
220822a51b5beSmrgSee the pkg-config man page for more details.
220832a51b5beSmrg" >&2;}
2208432b578d3Smrg   { (exit 1); exit 1; }; }
2208532b578d3Smrgelif test $pkg_failed = untried; then
220862a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
220872a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
220882a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
2208932b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2209032b578d3Smrgpath to pkg-config.
2209132b578d3Smrg
220922a51b5beSmrgAlternatively, you may set the environment variables DRI_CFLAGS
220932a51b5beSmrgand DRI_LIBS to avoid the need to call pkg-config.
220942a51b5beSmrgSee the pkg-config man page for more details.
2209532b578d3Smrg
220962a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2209732b578d3SmrgSee \`config.log' for more details." >&5
220982a51b5beSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
2209932b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2210032b578d3Smrgpath to pkg-config.
2210132b578d3Smrg
221022a51b5beSmrgAlternatively, you may set the environment variables DRI_CFLAGS
221032a51b5beSmrgand DRI_LIBS to avoid the need to call pkg-config.
221042a51b5beSmrgSee the pkg-config man page for more details.
2210532b578d3Smrg
221062a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2210732b578d3SmrgSee \`config.log' for more details." >&2;}
221082a51b5beSmrg   { (exit 1); exit 1; }; }; }
2210932b578d3Smrgelse
2211032b578d3Smrg	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
2211132b578d3Smrg	DRI_LIBS=$pkg_cv_DRI_LIBS
221122a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
221132a51b5beSmrg$as_echo "yes" >&6; }
2211432b578d3Smrg	:
2211532b578d3Smrgfi
2211632b578d3Smrg
2211732b578d3Smrgcat >>confdefs.h <<\_ACEOF
2211832b578d3Smrg#define XF86DRI 1
2211932b578d3Smrg_ACEOF
2212032b578d3Smrg
2212132b578d3Smrg
2212232b578d3Smrgcat >>confdefs.h <<\_ACEOF
2212332b578d3Smrg#define XF86DRI_DEVEL 1
2212432b578d3Smrg_ACEOF
2212532b578d3Smrg
2212632b578d3Smrgfi
2212732b578d3Smrg
2212832b578d3Smrg# Note that this is sort of inverted from drivers/ati/Imakefile in
2212932b578d3Smrg# the monolith.  We test for foo, not for !foo (i.e. ATMISC_CPIO, not
2213032b578d3Smrg# ATIMISC_AVOID_CPIO), but the defines are negative.  So beware.  Oh yeah,
2213132b578d3Smrg# TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
2213232b578d3Smrg
2213332b578d3Smrg# AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO.  It needs a
2213432b578d3Smrg# little-endian, undirected PIO space of at least 64kB.
2213532b578d3Smrg# AVOID_DGA: ???
2213632b578d3Smrg# ATI_TV_OUT: This only works on x86.
2213732b578d3Smrg
2213832b578d3SmrgATIMISC_CPIO=no
2213932b578d3SmrgATIMISC_DGA=yes
2214032b578d3SmrgATIMISC_TV_OUT=no
2214132b578d3Smrg
2214232b578d3Smrgcase $host_cpu in
2214332b578d3Smrg  i*86)
2214432b578d3Smrg    ATIMISC_TV_OUT=yes
2214532b578d3Smrg    ATIMISC_CPIO=yes
2214632b578d3Smrg    ;;
2214732b578d3Smrg  x86_64|amd64|alpha|ia64)
2214832b578d3Smrg    ATIMISC_CPIO=yes
2214932b578d3Smrg    ;;
2215032b578d3Smrg  sparc)
2215132b578d3Smrg    ATIMISC_DGA=no
2215232b578d3Smrg    ;;
2215332b578d3Smrg  *)
2215432b578d3Smrg    ;;
2215532b578d3Smrgesac
2215632b578d3Smrg
221572a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to include PIO support" >&5
221582a51b5beSmrg$as_echo_n "checking whether to include PIO support... " >&6; }
2215932b578d3Smrg if test "x$ATIMISC_CPIO" = xyes; then
2216032b578d3Smrg  ATIMISC_CPIO_TRUE=
2216132b578d3Smrg  ATIMISC_CPIO_FALSE='#'
2216232b578d3Smrgelse
2216332b578d3Smrg  ATIMISC_CPIO_TRUE='#'
2216432b578d3Smrg  ATIMISC_CPIO_FALSE=
2216532b578d3Smrgfi
2216632b578d3Smrg
2216732b578d3Smrgif test "x$ATIMISC_CPIO" = xyes; then
221682a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: yes, PIO" >&5
221692a51b5beSmrg$as_echo "yes, PIO" >&6; }
2217032b578d3Smrgelse
2217132b578d3Smrg
2217232b578d3Smrgcat >>confdefs.h <<\_ACEOF
2217332b578d3Smrg#define AVOID_CPIO 1
2217432b578d3Smrg_ACEOF
2217532b578d3Smrg
221762a51b5beSmrg	{ $as_echo "$as_me:$LINENO: result: no, MMIO" >&5
221772a51b5beSmrg$as_echo "no, MMIO" >&6; }
2217832b578d3Smrgfi
2217932b578d3Smrg
221802a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to include DGA support" >&5
221812a51b5beSmrg$as_echo_n "checking whether to include DGA support... " >&6; }
221822a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ATIMISC_DGA" >&5
221832a51b5beSmrg$as_echo "$ATIMISC_DGA" >&6; }
2218432b578d3Smrg if test "x$ATIMISC_DGA" = xyes; then
2218532b578d3Smrg  ATIMISC_DGA_TRUE=
2218632b578d3Smrg  ATIMISC_DGA_FALSE='#'
2218732b578d3Smrgelse
2218832b578d3Smrg  ATIMISC_DGA_TRUE='#'
2218932b578d3Smrg  ATIMISC_DGA_FALSE=
2219032b578d3Smrgfi
2219132b578d3Smrg
2219232b578d3Smrgif ! test "x$ATIMISC_DGA" = xyes; then
2219332b578d3Smrg
2219432b578d3Smrgcat >>confdefs.h <<\_ACEOF
2219532b578d3Smrg#define AVOID_DGA 1
2219632b578d3Smrg_ACEOF
2219732b578d3Smrg
2219832b578d3Smrgfi
2219932b578d3Smrg
222002a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to include TV Out support" >&5
222012a51b5beSmrg$as_echo_n "checking whether to include TV Out support... " >&6; }
222022a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ATIMISC_TV_OUT" >&5
222032a51b5beSmrg$as_echo "$ATIMISC_TV_OUT" >&6; }
2220432b578d3Smrg if test "x$ATIMISC_TV_OUT" = xyes; then
2220532b578d3Smrg  ATIMISC_TV_OUT_TRUE=
2220632b578d3Smrg  ATIMISC_TV_OUT_FALSE='#'
2220732b578d3Smrgelse
2220832b578d3Smrg  ATIMISC_TV_OUT_TRUE='#'
2220932b578d3Smrg  ATIMISC_TV_OUT_FALSE=
2221032b578d3Smrgfi
2221132b578d3Smrg
2221232b578d3Smrgif test "x$ATIMISC_TV_OUT" = xyes; then
2221332b578d3Smrg
2221432b578d3Smrgcat >>confdefs.h <<\_ACEOF
2221532b578d3Smrg#define TV_OUT 1
2221632b578d3Smrg_ACEOF
2221732b578d3Smrg
2221832b578d3Smrgfi
2221932b578d3Smrg
2222032b578d3Smrg
2222132b578d3Smrgcat >>confdefs.h <<\_ACEOF
2222232b578d3Smrg#define USE_XAA 1
2222332b578d3Smrg_ACEOF
2222432b578d3Smrg
2222532b578d3Smrg
2222632b578d3Smrg# Properly handle EXA.
222272a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
222282a51b5beSmrg$as_echo_n "checking whether to enable EXA support... " >&6; }
2222932b578d3Smrgif test "x$EXA" = xyes; then
222302a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
222312a51b5beSmrg$as_echo "yes" >&6; }
2223232b578d3Smrg
2223332b578d3Smrg        SAVE_CPPFLAGS="$CPPFLAGS"
2223432b578d3Smrg        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
2223532b578d3Smrg        if test "${ac_cv_header_exa_h+set}" = set; then
222362a51b5beSmrg  { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
222372a51b5beSmrg$as_echo_n "checking for exa.h... " >&6; }
2223832b578d3Smrgif test "${ac_cv_header_exa_h+set}" = set; then
222392a51b5beSmrg  $as_echo_n "(cached) " >&6
2224032b578d3Smrgfi
222412a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
222422a51b5beSmrg$as_echo "$ac_cv_header_exa_h" >&6; }
2224332b578d3Smrgelse
2224432b578d3Smrg  # Is the header compilable?
222452a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
222462a51b5beSmrg$as_echo_n "checking exa.h usability... " >&6; }
2224732b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
2224832b578d3Smrg/* confdefs.h.  */
2224932b578d3Smrg_ACEOF
2225032b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2225132b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2225232b578d3Smrg/* end confdefs.h.  */
2225332b578d3Smrg$ac_includes_default
2225432b578d3Smrg#include <exa.h>
2225532b578d3Smrg_ACEOF
2225632b578d3Smrgrm -f conftest.$ac_objext
2225732b578d3Smrgif { (ac_try="$ac_compile"
2225832b578d3Smrgcase "(($ac_try" in
2225932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226032b578d3Smrg  *) ac_try_echo=$ac_try;;
2226132b578d3Smrgesac
222622a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
222632a51b5beSmrg$as_echo "$ac_try_echo") >&5
2226432b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2226532b578d3Smrg  ac_status=$?
2226632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2226732b578d3Smrg  rm -f conftest.er1
2226832b578d3Smrg  cat conftest.err >&5
222692a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227032b578d3Smrg  (exit $ac_status); } && {
2227132b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2227232b578d3Smrg	 test ! -s conftest.err
2227332b578d3Smrg       } && test -s conftest.$ac_objext; then
2227432b578d3Smrg  ac_header_compiler=yes
2227532b578d3Smrgelse
222762a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2227732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2227832b578d3Smrg
2227932b578d3Smrg	ac_header_compiler=no
2228032b578d3Smrgfi
2228132b578d3Smrg
2228232b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
222832a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
222842a51b5beSmrg$as_echo "$ac_header_compiler" >&6; }
2228532b578d3Smrg
2228632b578d3Smrg# Is the header present?
222872a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
222882a51b5beSmrg$as_echo_n "checking exa.h presence... " >&6; }
2228932b578d3Smrgcat >conftest.$ac_ext <<_ACEOF
2229032b578d3Smrg/* confdefs.h.  */
2229132b578d3Smrg_ACEOF
2229232b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2229332b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2229432b578d3Smrg/* end confdefs.h.  */
2229532b578d3Smrg#include <exa.h>
2229632b578d3Smrg_ACEOF
2229732b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
2229832b578d3Smrgcase "(($ac_try" in
2229932b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230032b578d3Smrg  *) ac_try_echo=$ac_try;;
2230132b578d3Smrgesac
223022a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
223032a51b5beSmrg$as_echo "$ac_try_echo") >&5
2230432b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2230532b578d3Smrg  ac_status=$?
2230632b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2230732b578d3Smrg  rm -f conftest.er1
2230832b578d3Smrg  cat conftest.err >&5
223092a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231032b578d3Smrg  (exit $ac_status); } >/dev/null && {
2231132b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2231232b578d3Smrg	 test ! -s conftest.err
2231332b578d3Smrg       }; then
2231432b578d3Smrg  ac_header_preproc=yes
2231532b578d3Smrgelse
223162a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2231732b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2231832b578d3Smrg
2231932b578d3Smrg  ac_header_preproc=no
2232032b578d3Smrgfi
2232132b578d3Smrg
2232232b578d3Smrgrm -f conftest.err conftest.$ac_ext
223232a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
223242a51b5beSmrg$as_echo "$ac_header_preproc" >&6; }
2232532b578d3Smrg
2232632b578d3Smrg# So?  What about this header?
2232732b578d3Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2232832b578d3Smrg  yes:no: )
223292a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
223302a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
223312a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
223322a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
2233332b578d3Smrg    ac_header_preproc=yes
2233432b578d3Smrg    ;;
2233532b578d3Smrg  no:yes:* )
223362a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
223372a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
223382a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     check for missing prerequisite headers?" >&5
223392a51b5beSmrg$as_echo "$as_me: WARNING: exa.h:     check for missing prerequisite headers?" >&2;}
223402a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
223412a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
223422a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&5
223432a51b5beSmrg$as_echo "$as_me: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
223442a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
223452a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
223462a51b5beSmrg    { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
223472a51b5beSmrg$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
2234832b578d3Smrg    ( cat <<\_ASBOX
2234932b578d3Smrg## ---------------------------------------------------------------------- ##
2235032b578d3Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2235132b578d3Smrg## ---------------------------------------------------------------------- ##
2235232b578d3Smrg_ASBOX
2235332b578d3Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
2235432b578d3Smrg    ;;
2235532b578d3Smrgesac
223562a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5
223572a51b5beSmrg$as_echo_n "checking for exa.h... " >&6; }
2235832b578d3Smrgif test "${ac_cv_header_exa_h+set}" = set; then
223592a51b5beSmrg  $as_echo_n "(cached) " >&6
2236032b578d3Smrgelse
2236132b578d3Smrg  ac_cv_header_exa_h=$ac_header_preproc
2236232b578d3Smrgfi
223632a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
223642a51b5beSmrg$as_echo "$ac_cv_header_exa_h" >&6; }
2236532b578d3Smrg
2236632b578d3Smrgfi
223672a51b5beSmrgif test "x$ac_cv_header_exa_h" = x""yes; then
2236832b578d3Smrg  have_exa_h="yes"
2236932b578d3Smrgelse
2237032b578d3Smrg  have_exa_h="no"
2237132b578d3Smrgfi
2237232b578d3Smrg
2237332b578d3Smrg
2237432b578d3Smrg        CPPFLAGS="$SAVE_CPPFLAGS"
2237532b578d3Smrgelse
223762a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: no" >&5
223772a51b5beSmrg$as_echo "no" >&6; }
2237832b578d3Smrgfi
2237932b578d3Smrg
2238032b578d3SmrgSAVE_CPPFLAGS="$CPPFLAGS"
2238132b578d3SmrgCPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
2238232b578d3Smrgif test "x$have_exa_h" = xyes; then
223832a51b5beSmrg        { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
223842a51b5beSmrg$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
2238532b578d3Smrg        cat >conftest.$ac_ext <<_ACEOF
2238632b578d3Smrg/* confdefs.h.  */
2238732b578d3Smrg_ACEOF
2238832b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2238932b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2239032b578d3Smrg/* end confdefs.h.  */
2239132b578d3Smrg
2239232b578d3Smrg#include "exa.h"
2239332b578d3Smrg#if EXA_VERSION_MAJOR < 2
2239432b578d3Smrg#error OLD EXA!
2239532b578d3Smrg#endif
2239632b578d3Smrg
2239732b578d3Smrgint
2239832b578d3Smrgmain ()
2239932b578d3Smrg{
2240032b578d3Smrg
2240132b578d3Smrg  ;
2240232b578d3Smrg  return 0;
2240332b578d3Smrg}
2240432b578d3Smrg_ACEOF
2240532b578d3Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
2240632b578d3Smrgcase "(($ac_try" in
2240732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240832b578d3Smrg  *) ac_try_echo=$ac_try;;
2240932b578d3Smrgesac
224102a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
224112a51b5beSmrg$as_echo "$ac_try_echo") >&5
2241232b578d3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2241332b578d3Smrg  ac_status=$?
2241432b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2241532b578d3Smrg  rm -f conftest.er1
2241632b578d3Smrg  cat conftest.err >&5
224172a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241832b578d3Smrg  (exit $ac_status); } >/dev/null && {
2241932b578d3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2242032b578d3Smrg	 test ! -s conftest.err
2242132b578d3Smrg       }; then
2242232b578d3Smrg  USE_EXA=yes
2242332b578d3Smrgelse
224242a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2242532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2242632b578d3Smrg
2242732b578d3Smrg  USE_EXA=no
2242832b578d3Smrgfi
2242932b578d3Smrg
2243032b578d3Smrgrm -f conftest.err conftest.$ac_ext
224312a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
224322a51b5beSmrg$as_echo "$USE_EXA" >&6; }
2243332b578d3Smrg
2243432b578d3Smrg        if test "x$USE_EXA" = xyes; then
2243532b578d3Smrg
2243632b578d3Smrgcat >>confdefs.h <<\_ACEOF
2243732b578d3Smrg#define USE_EXA 1
2243832b578d3Smrg_ACEOF
2243932b578d3Smrg
2244032b578d3Smrg        fi
2244132b578d3Smrgfi
2244232b578d3Smrg
224432a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
224442a51b5beSmrg$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
2244532b578d3Smrgif test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
224462a51b5beSmrg  $as_echo_n "(cached) " >&6
2244732b578d3Smrgelse
2244832b578d3Smrg  cat >conftest.$ac_ext <<_ACEOF
2244932b578d3Smrg/* confdefs.h.  */
2245032b578d3Smrg_ACEOF
2245132b578d3Smrgcat confdefs.h >>conftest.$ac_ext
2245232b578d3Smrgcat >>conftest.$ac_ext <<_ACEOF
2245332b578d3Smrg/* end confdefs.h.  */
2245432b578d3Smrg#include "xorg-server.h"
2245532b578d3Smrg
2245632b578d3Smrgint
2245732b578d3Smrgmain ()
2245832b578d3Smrg{
2245932b578d3Smrg#ifndef XSERVER_LIBPCIACCESS
2246032b578d3Smrg  (void) XSERVER_LIBPCIACCESS;
2246132b578d3Smrg#endif
2246232b578d3Smrg
2246332b578d3Smrg  ;
2246432b578d3Smrg  return 0;
2246532b578d3Smrg}
2246632b578d3Smrg_ACEOF
2246732b578d3Smrgrm -f conftest.$ac_objext
2246832b578d3Smrgif { (ac_try="$ac_compile"
2246932b578d3Smrgcase "(($ac_try" in
2247032b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247132b578d3Smrg  *) ac_try_echo=$ac_try;;
2247232b578d3Smrgesac
224732a51b5beSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
224742a51b5beSmrg$as_echo "$ac_try_echo") >&5
2247532b578d3Smrg  (eval "$ac_compile") 2>conftest.er1
2247632b578d3Smrg  ac_status=$?
2247732b578d3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2247832b578d3Smrg  rm -f conftest.er1
2247932b578d3Smrg  cat conftest.err >&5
224802a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248132b578d3Smrg  (exit $ac_status); } && {
2248232b578d3Smrg	 test -z "$ac_c_werror_flag" ||
2248332b578d3Smrg	 test ! -s conftest.err
2248432b578d3Smrg       } && test -s conftest.$ac_objext; then
2248532b578d3Smrg  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
2248632b578d3Smrgelse
224872a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
2248832b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
2248932b578d3Smrg
2249032b578d3Smrg	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
2249132b578d3Smrgfi
2249232b578d3Smrg
2249332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249432b578d3Smrgfi
224952a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
224962a51b5beSmrg$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
224972a51b5beSmrgif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
2249832b578d3Smrg  XSERVER_LIBPCIACCESS=yes
2249932b578d3Smrgelse
2250032b578d3Smrg  XSERVER_LIBPCIACCESS=no
2250132b578d3Smrgfi
2250232b578d3Smrg
2250332b578d3Smrg
2250432b578d3SmrgCPPFLAGS="$SAVE_CPPFLAGS"
2250532b578d3Smrg
2250632b578d3Smrg if test "x$USE_EXA" = xyes; then
2250732b578d3Smrg  USE_EXA_TRUE=
2250832b578d3Smrg  USE_EXA_FALSE='#'
2250932b578d3Smrgelse
2251032b578d3Smrg  USE_EXA_TRUE='#'
2251132b578d3Smrg  USE_EXA_FALSE=
2251232b578d3Smrgfi
2251332b578d3Smrg
2251432b578d3Smrg
2251532b578d3Smrgif test "x$XSERVER_LIBPCIACCESS" = xyes; then
2251632b578d3Smrg
2251732b578d3Smrgpkg_failed=no
225182a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
225192a51b5beSmrg$as_echo_n "checking for PCIACCESS... " >&6; }
225202a51b5beSmrg
225212a51b5beSmrgif test -n "$PCIACCESS_CFLAGS"; then
225222a51b5beSmrg    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
225232a51b5beSmrg elif test -n "$PKG_CONFIG"; then
225242a51b5beSmrg    if test -n "$PKG_CONFIG" && \
225252a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
2252632b578d3Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
2252732b578d3Smrg  ac_status=$?
225282a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252932b578d3Smrg  (exit $ac_status); }; then
2253032b578d3Smrg  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
2253132b578d3Smrgelse
2253232b578d3Smrg  pkg_failed=yes
2253332b578d3Smrgfi
225342a51b5beSmrg else
225352a51b5beSmrg    pkg_failed=untried
2253632b578d3Smrgfi
225372a51b5beSmrgif test -n "$PCIACCESS_LIBS"; then
225382a51b5beSmrg    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
225392a51b5beSmrg elif test -n "$PKG_CONFIG"; then
225402a51b5beSmrg    if test -n "$PKG_CONFIG" && \
225412a51b5beSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
2254232b578d3Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
2254332b578d3Smrg  ac_status=$?
225442a51b5beSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254532b578d3Smrg  (exit $ac_status); }; then
2254632b578d3Smrg  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
2254732b578d3Smrgelse
2254832b578d3Smrg  pkg_failed=yes
2254932b578d3Smrgfi
225502a51b5beSmrg else
225512a51b5beSmrg    pkg_failed=untried
2255232b578d3Smrgfi
2255332b578d3Smrg
225542a51b5beSmrg
225552a51b5beSmrg
2255632b578d3Smrgif test $pkg_failed = yes; then
225572a51b5beSmrg
225582a51b5beSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
225592a51b5beSmrg        _pkg_short_errors_supported=yes
225602a51b5beSmrgelse
225612a51b5beSmrg        _pkg_short_errors_supported=no
225622a51b5beSmrgfi
225632a51b5beSmrg        if test $_pkg_short_errors_supported = yes; then
225642a51b5beSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
225652a51b5beSmrg        else
225662a51b5beSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
225672a51b5beSmrg        fi
2256832b578d3Smrg	# Put the nasty error message in config.log where it belongs
225692a51b5beSmrg	echo "$PCIACCESS_PKG_ERRORS" >&5
225702a51b5beSmrg
225712a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
225722a51b5beSmrg
225732a51b5beSmrg$PCIACCESS_PKG_ERRORS
2257432b578d3Smrg
2257532b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2257632b578d3Smrginstalled software in a non-standard prefix.
2257732b578d3Smrg
225782a51b5beSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
225792a51b5beSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
225802a51b5beSmrgSee the pkg-config man page for more details.
225812a51b5beSmrg" >&5
225822a51b5beSmrg$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
225832a51b5beSmrg
225842a51b5beSmrg$PCIACCESS_PKG_ERRORS
225852a51b5beSmrg
2258632b578d3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
2258732b578d3Smrginstalled software in a non-standard prefix.
2258832b578d3Smrg
225892a51b5beSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
225902a51b5beSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
225912a51b5beSmrgSee the pkg-config man page for more details.
225922a51b5beSmrg" >&2;}
2259332b578d3Smrg   { (exit 1); exit 1; }; }
2259432b578d3Smrgelif test $pkg_failed = untried; then
225952a51b5beSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
225962a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
225972a51b5beSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
2259832b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2259932b578d3Smrgpath to pkg-config.
2260032b578d3Smrg
226012a51b5beSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
226022a51b5beSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
226032a51b5beSmrgSee the pkg-config man page for more details.
2260432b578d3Smrg
226052a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2260632b578d3SmrgSee \`config.log' for more details." >&5
226072a51b5beSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
2260832b578d3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
2260932b578d3Smrgpath to pkg-config.
2261032b578d3Smrg
226112a51b5beSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
226122a51b5beSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
226132a51b5beSmrgSee the pkg-config man page for more details.
2261432b578d3Smrg
226152a51b5beSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
2261632b578d3SmrgSee \`config.log' for more details." >&2;}
226172a51b5beSmrg   { (exit 1); exit 1; }; }; }
2261832b578d3Smrgelse
2261932b578d3Smrg	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
2262032b578d3Smrg	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
226212a51b5beSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
226222a51b5beSmrg$as_echo "yes" >&6; }
2262332b578d3Smrg	:
2262432b578d3Smrgfi
2262532b578d3Smrg    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
2262632b578d3Smrgfi
2262732b578d3Smrg if test "x$XSERVER_LIBPCIACCESS" = xyes; then
2262832b578d3Smrg  XSERVER_LIBPCIACCESS_TRUE=
2262932b578d3Smrg  XSERVER_LIBPCIACCESS_FALSE='#'
2263032b578d3Smrgelse
2263132b578d3Smrg  XSERVER_LIBPCIACCESS_TRUE='#'
2263232b578d3Smrg  XSERVER_LIBPCIACCESS_FALSE=
2263332b578d3Smrgfi
2263432b578d3Smrg
2263532b578d3Smrg
2263632b578d3Smrg
2263732b578d3Smrg
2263832b578d3Smrg
2263932b578d3Smrg
2264032b578d3SmrgDRIVER_NAME=mach64
2264132b578d3Smrg
2264232b578d3Smrg
2264332b578d3Smrg
2264432b578d3Smrg
2264532b578d3Smrg
2264632b578d3Smrgif test x$APP_MAN_SUFFIX = x    ; then
2264732b578d3Smrg    APP_MAN_SUFFIX=1
2264832b578d3Smrgfi
2264932b578d3Smrgif test x$APP_MAN_DIR = x    ; then
2265032b578d3Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
2265132b578d3Smrgfi
2265232b578d3Smrg
2265332b578d3Smrgif test x$LIB_MAN_SUFFIX = x    ; then
2265432b578d3Smrg    LIB_MAN_SUFFIX=3
2265532b578d3Smrgfi
2265632b578d3Smrgif test x$LIB_MAN_DIR = x    ; then
2265732b578d3Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
2265832b578d3Smrgfi
2265932b578d3Smrg
2266032b578d3Smrgif test x$FILE_MAN_SUFFIX = x    ; then
2266132b578d3Smrg    case $host_os in
2266232b578d3Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
2266332b578d3Smrg	*)		FILE_MAN_SUFFIX=5  ;;
2266432b578d3Smrg    esac
2266532b578d3Smrgfi
2266632b578d3Smrgif test x$FILE_MAN_DIR = x    ; then
2266732b578d3Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
2266832b578d3Smrgfi
2266932b578d3Smrg
2267032b578d3Smrgif test x$MISC_MAN_SUFFIX = x    ; then
2267132b578d3Smrg    case $host_os in
2267232b578d3Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
2267332b578d3Smrg	*)		MISC_MAN_SUFFIX=7  ;;
2267432b578d3Smrg    esac
2267532b578d3Smrgfi
2267632b578d3Smrgif test x$MISC_MAN_DIR = x    ; then
2267732b578d3Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
2267832b578d3Smrgfi
2267932b578d3Smrg
2268032b578d3Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
2268132b578d3Smrg    case $host_os in
2268232b578d3Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
2268332b578d3Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
2268432b578d3Smrg    esac
2268532b578d3Smrgfi
2268632b578d3Smrgif test x$DRIVER_MAN_DIR = x    ; then
2268732b578d3Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
2268832b578d3Smrgfi
2268932b578d3Smrg
2269032b578d3Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
2269132b578d3Smrg    case $host_os in
2269232b578d3Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
2269332b578d3Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
2269432b578d3Smrg    esac
2269532b578d3Smrgfi
2269632b578d3Smrgif test x$ADMIN_MAN_DIR = x    ; then
2269732b578d3Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
2269832b578d3Smrgfi
2269932b578d3Smrg
2270032b578d3Smrg
2270132b578d3Smrg
2270232b578d3Smrg
2270332b578d3Smrg
2270432b578d3Smrg
2270532b578d3Smrg
2270632b578d3Smrg
2270732b578d3Smrg
2270832b578d3Smrg
2270932b578d3Smrg
2271032b578d3Smrg
2271132b578d3Smrg
2271232b578d3Smrg
2271332b578d3Smrg
2271432b578d3Smrg
2271532b578d3Smrg
2271632b578d3Smrg# Check whether --with-release-version was given.
2271732b578d3Smrgif test "${with_release_version+set}" = set; then
2271832b578d3Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
2271932b578d3Smrgelse
2272032b578d3Smrg  RELEASE_VERSION=""
2272132b578d3Smrgfi
2272232b578d3Smrg
2272332b578d3Smrg	if test "x$RELEASE_VERSION" != "x"; then
2272432b578d3Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
2272532b578d3Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
227262a51b5beSmrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
227272a51b5beSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
2272832b578d3Smrg	fi
2272932b578d3Smrg
2273032b578d3Smrgcat >>confdefs.h <<_ACEOF
2273132b578d3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
2273232b578d3Smrg_ACEOF
2273332b578d3Smrg
2273432b578d3Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
2273532b578d3Smrg	if test "x$PVM" = "x"; then
2273632b578d3Smrg		PVM="0"
2273732b578d3Smrg	fi
2273832b578d3Smrg
2273932b578d3Smrgcat >>confdefs.h <<_ACEOF
2274032b578d3Smrg#define PACKAGE_VERSION_MINOR $PVM
2274132b578d3Smrg_ACEOF
2274232b578d3Smrg
2274332b578d3Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
2274432b578d3Smrg	if test "x$PVP" = "x"; then
2274532b578d3Smrg		PVP="0"
2274632b578d3Smrg	fi
2274732b578d3Smrg
2274832b578d3Smrgcat >>confdefs.h <<_ACEOF
2274932b578d3Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
2275032b578d3Smrg_ACEOF
2275132b578d3Smrg
2275232b578d3Smrg
2275332b578d3Smrg
22754d31dbc53Smrgif test x$XORG_SGML_PATH = x ; then
22755d31dbc53Smrg    XORG_SGML_PATH=$prefix/share/sgml
22756d31dbc53Smrgfi
2275732b578d3SmrgHAVE_DEFS_ENT=
2275832b578d3Smrg
2275932b578d3Smrgif test x"$cross_compiling" = x"yes" ; then
2276032b578d3Smrg  HAVE_DEFS_ENT=no
2276132b578d3Smrgelse
227622a51b5beSmrg  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
227632a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
227642a51b5beSmrg$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
2276532b578d3Smrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
227662a51b5beSmrg  $as_echo_n "(cached) " >&6
2276732b578d3Smrgelse
2276832b578d3Smrg  test "$cross_compiling" = yes &&
227692a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
227702a51b5beSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2277132b578d3Smrg   { (exit 1); exit 1; }; }
2277232b578d3Smrgif test -r "$XORG_SGML_PATH/X11/defs.ent"; then
2277332b578d3Smrg  eval "$as_ac_File=yes"
2277432b578d3Smrgelse
2277532b578d3Smrg  eval "$as_ac_File=no"
2277632b578d3Smrgfi
2277732b578d3Smrgfi
227782a51b5beSmrgac_res=`eval 'as_val=${'$as_ac_File'}
227792a51b5beSmrg		 $as_echo "$as_val"'`
227802a51b5beSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
227812a51b5beSmrg$as_echo "$ac_res" >&6; }
227822a51b5beSmrgas_val=`eval 'as_val=${'$as_ac_File'}
227832a51b5beSmrg		 $as_echo "$as_val"'`
227842a51b5beSmrg   if test "x$as_val" = x""yes; then
2278532b578d3Smrg  HAVE_DEFS_ENT=yes
2278632b578d3Smrgfi
2278732b578d3Smrg
2278832b578d3Smrgfi
2278932b578d3Smrg
2279032b578d3Smrg# Extract the first word of "linuxdoc", so it can be a program name with args.
2279132b578d3Smrgset dummy linuxdoc; ac_word=$2
227922a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
227932a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2279432b578d3Smrgif test "${ac_cv_path_LINUXDOC+set}" = set; then
227952a51b5beSmrg  $as_echo_n "(cached) " >&6
2279632b578d3Smrgelse
2279732b578d3Smrg  case $LINUXDOC in
2279832b578d3Smrg  [\\/]* | ?:[\\/]*)
2279932b578d3Smrg  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
2280032b578d3Smrg  ;;
2280132b578d3Smrg  *)
2280232b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280332b578d3Smrgfor as_dir in $PATH
2280432b578d3Smrgdo
2280532b578d3Smrg  IFS=$as_save_IFS
2280632b578d3Smrg  test -z "$as_dir" && as_dir=.
2280732b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2280832b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280932b578d3Smrg    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
228102a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281132b578d3Smrg    break 2
2281232b578d3Smrg  fi
2281332b578d3Smrgdone
2281432b578d3Smrgdone
2281532b578d3SmrgIFS=$as_save_IFS
2281632b578d3Smrg
2281732b578d3Smrg  ;;
2281832b578d3Smrgesac
2281932b578d3Smrgfi
2282032b578d3SmrgLINUXDOC=$ac_cv_path_LINUXDOC
2282132b578d3Smrgif test -n "$LINUXDOC"; then
228222a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
228232a51b5beSmrg$as_echo "$LINUXDOC" >&6; }
2282432b578d3Smrgelse
228252a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
228262a51b5beSmrg$as_echo "no" >&6; }
2282732b578d3Smrgfi
2282832b578d3Smrg
2282932b578d3Smrg
2283032b578d3Smrg# Extract the first word of "ps2pdf", so it can be a program name with args.
2283132b578d3Smrgset dummy ps2pdf; ac_word=$2
228322a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
228332a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
2283432b578d3Smrgif test "${ac_cv_path_PS2PDF+set}" = set; then
228352a51b5beSmrg  $as_echo_n "(cached) " >&6
2283632b578d3Smrgelse
2283732b578d3Smrg  case $PS2PDF in
2283832b578d3Smrg  [\\/]* | ?:[\\/]*)
2283932b578d3Smrg  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
2284032b578d3Smrg  ;;
2284132b578d3Smrg  *)
2284232b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284332b578d3Smrgfor as_dir in $PATH
2284432b578d3Smrgdo
2284532b578d3Smrg  IFS=$as_save_IFS
2284632b578d3Smrg  test -z "$as_dir" && as_dir=.
2284732b578d3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2284832b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284932b578d3Smrg    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
228502a51b5beSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285132b578d3Smrg    break 2
2285232b578d3Smrg  fi
2285332b578d3Smrgdone
2285432b578d3Smrgdone
2285532b578d3SmrgIFS=$as_save_IFS
2285632b578d3Smrg
2285732b578d3Smrg  ;;
2285832b578d3Smrgesac
2285932b578d3Smrgfi
2286032b578d3SmrgPS2PDF=$ac_cv_path_PS2PDF
2286132b578d3Smrgif test -n "$PS2PDF"; then
228622a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
228632a51b5beSmrg$as_echo "$PS2PDF" >&6; }
2286432b578d3Smrgelse
228652a51b5beSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
228662a51b5beSmrg$as_echo "no" >&6; }
2286732b578d3Smrgfi
2286832b578d3Smrg
2286932b578d3Smrg
2287032b578d3Smrg
228712a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
228722a51b5beSmrg$as_echo_n "checking Whether to build documentation... " >&6; }
2287332b578d3Smrg
2287432b578d3Smrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
2287532b578d3Smrg   BUILDDOC=yes
2287632b578d3Smrgelse
2287732b578d3Smrg   BUILDDOC=no
2287832b578d3Smrgfi
2287932b578d3Smrg
2288032b578d3Smrg if test x$BUILDDOC = xyes; then
2288132b578d3Smrg  BUILD_LINUXDOC_TRUE=
2288232b578d3Smrg  BUILD_LINUXDOC_FALSE='#'
2288332b578d3Smrgelse
2288432b578d3Smrg  BUILD_LINUXDOC_TRUE='#'
2288532b578d3Smrg  BUILD_LINUXDOC_FALSE=
2288632b578d3Smrgfi
2288732b578d3Smrg
2288832b578d3Smrg
228892a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
228902a51b5beSmrg$as_echo "$BUILDDOC" >&6; }
2289132b578d3Smrg
228922a51b5beSmrg{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
228932a51b5beSmrg$as_echo_n "checking Whether to build pdf documentation... " >&6; }
2289432b578d3Smrg
2289532b578d3Smrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
2289632b578d3Smrg   BUILDPDFDOC=yes
2289732b578d3Smrgelse
2289832b578d3Smrg   BUILDPDFDOC=no
2289932b578d3Smrgfi
2290032b578d3Smrg
2290132b578d3Smrg if test x$BUILDPDFDOC = xyes; then
2290232b578d3Smrg  BUILD_PDFDOC_TRUE=
2290332b578d3Smrg  BUILD_PDFDOC_FALSE='#'
2290432b578d3Smrgelse
2290532b578d3Smrg  BUILD_PDFDOC_TRUE='#'
2290632b578d3Smrg  BUILD_PDFDOC_FALSE=
2290732b578d3Smrgfi
2290832b578d3Smrg
2290932b578d3Smrg
229102a51b5beSmrg{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
229112a51b5beSmrg$as_echo "$BUILDPDFDOC" >&6; }
2291232b578d3Smrg
2291332b578d3SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
2291432b578d3SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
2291532b578d3SmrgMAKE_PDF="$PS2PDF"
2291632b578d3SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
2291732b578d3Smrg
2291832b578d3Smrg
2291932b578d3Smrg
2292032b578d3Smrg
2292132b578d3Smrg
2292232b578d3Smrg
2292332b578d3Smrg
22924d31dbc53SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22925d31dbc53Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22926d31dbc53Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
22927d31dbc53Smrg
22928d31dbc53Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22929d31dbc53Smrg
22930d31dbc53Smrg
22931d31dbc53Smrg
229322a51b5beSmrg{ $as_echo "$as_me:$LINENO: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
22933d31dbc53Smrg or install the ati wrapper as well:
2293432b578d3Smrg    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
2293532b578d3Smrg" >&5
229362a51b5beSmrg$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
22937d31dbc53Smrg or install the ati wrapper as well:
2293832b578d3Smrg    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
2293932b578d3Smrg" >&6;}
2294032b578d3Smrg
2294132b578d3Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
2294232b578d3Smrg
2294332b578d3Smrgcat >confcache <<\_ACEOF
2294432b578d3Smrg# This file is a shell script that caches the results of configure
2294532b578d3Smrg# tests run on this system so they can be shared between configure
2294632b578d3Smrg# scripts and configure runs, see configure's option --config-cache.
2294732b578d3Smrg# It is not useful on other systems.  If it contains results you don't
2294832b578d3Smrg# want to keep, you may remove or edit it.
2294932b578d3Smrg#
2295032b578d3Smrg# config.status only pays attention to the cache file if you give it
2295132b578d3Smrg# the --recheck option to rerun configure.
2295232b578d3Smrg#
2295332b578d3Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
2295432b578d3Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
2295532b578d3Smrg# following values.
2295632b578d3Smrg
2295732b578d3Smrg_ACEOF
2295832b578d3Smrg
2295932b578d3Smrg# The following way of writing the cache mishandles newlines in values,
2296032b578d3Smrg# but we know of no workaround that is simple, portable, and efficient.
2296132b578d3Smrg# So, we kill variables containing newlines.
2296232b578d3Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
2296332b578d3Smrg# and sets the high bit in the cache file unless we assign to the vars.
2296432b578d3Smrg(
2296532b578d3Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2296632b578d3Smrg    eval ac_val=\$$ac_var
2296732b578d3Smrg    case $ac_val in #(
2296832b578d3Smrg    *${as_nl}*)
2296932b578d3Smrg      case $ac_var in #(
229702a51b5beSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
229712a51b5beSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297232b578d3Smrg      esac
2297332b578d3Smrg      case $ac_var in #(
2297432b578d3Smrg      _ | IFS | as_nl) ;; #(
229752a51b5beSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297632b578d3Smrg      *) $as_unset $ac_var ;;
2297732b578d3Smrg      esac ;;
2297832b578d3Smrg    esac
2297932b578d3Smrg  done
2298032b578d3Smrg
2298132b578d3Smrg  (set) 2>&1 |
2298232b578d3Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2298332b578d3Smrg    *${as_nl}ac_space=\ *)
2298432b578d3Smrg      # `set' does not quote correctly, so add quotes (double-quote
2298532b578d3Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
2298632b578d3Smrg      sed -n \
2298732b578d3Smrg	"s/'/'\\\\''/g;
2298832b578d3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2298932b578d3Smrg      ;; #(
2299032b578d3Smrg    *)
2299132b578d3Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
2299232b578d3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299332b578d3Smrg      ;;
2299432b578d3Smrg    esac |
2299532b578d3Smrg    sort
2299632b578d3Smrg) |
2299732b578d3Smrg  sed '
2299832b578d3Smrg     /^ac_cv_env_/b end
2299932b578d3Smrg     t clear
2300032b578d3Smrg     :clear
2300132b578d3Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2300232b578d3Smrg     t end
2300332b578d3Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2300432b578d3Smrg     :end' >>confcache
2300532b578d3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2300632b578d3Smrg  if test -w "$cache_file"; then
2300732b578d3Smrg    test "x$cache_file" != "x/dev/null" &&
230082a51b5beSmrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
230092a51b5beSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
2301032b578d3Smrg    cat confcache >$cache_file
2301132b578d3Smrg  else
230122a51b5beSmrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
230132a51b5beSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2301432b578d3Smrg  fi
2301532b578d3Smrgfi
2301632b578d3Smrgrm -f confcache
2301732b578d3Smrg
2301832b578d3Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
2301932b578d3Smrg# Let make expand exec_prefix.
2302032b578d3Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2302132b578d3Smrg
2302232b578d3SmrgDEFS=-DHAVE_CONFIG_H
2302332b578d3Smrg
2302432b578d3Smrgac_libobjs=
2302532b578d3Smrgac_ltlibobjs=
2302632b578d3Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2302732b578d3Smrg  # 1. Remove the extension, and $U if already installed.
2302832b578d3Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
230292a51b5beSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2303032b578d3Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2303132b578d3Smrg  #    will be set to the directory where LIBOBJS objects are built.
2303232b578d3Smrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2303332b578d3Smrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2303432b578d3Smrgdone
2303532b578d3SmrgLIBOBJS=$ac_libobjs
2303632b578d3Smrg
2303732b578d3SmrgLTLIBOBJS=$ac_ltlibobjs
2303832b578d3Smrg
2303932b578d3Smrg
230402a51b5beSmrg if test -n "$EXEEXT"; then
230412a51b5beSmrg  am__EXEEXT_TRUE=
230422a51b5beSmrg  am__EXEEXT_FALSE='#'
230432a51b5beSmrgelse
230442a51b5beSmrg  am__EXEEXT_TRUE='#'
230452a51b5beSmrg  am__EXEEXT_FALSE=
230462a51b5beSmrgfi
230472a51b5beSmrg
2304832b578d3Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
230492a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
2305032b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230512a51b5beSmrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
2305232b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2305332b578d3Smrg   { (exit 1); exit 1; }; }
2305432b578d3Smrgfi
2305532b578d3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
230562a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2305732b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230582a51b5beSmrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
2305932b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2306032b578d3Smrg   { (exit 1); exit 1; }; }
2306132b578d3Smrgfi
2306232b578d3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
230632a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2306432b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230652a51b5beSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2306632b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2306732b578d3Smrg   { (exit 1); exit 1; }; }
2306832b578d3Smrgfi
2306932b578d3Smrgif test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
230702a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2307132b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230722a51b5beSmrg$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2307332b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2307432b578d3Smrg   { (exit 1); exit 1; }; }
2307532b578d3Smrgfi
2307632b578d3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
230772a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
230782a51b5beSmrgUsually this means the macro was only invoked conditionally." >&5
230792a51b5beSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
230802a51b5beSmrgUsually this means the macro was only invoked conditionally." >&2;}
230812a51b5beSmrg   { (exit 1); exit 1; }; }
230822a51b5beSmrgfi
230832a51b5beSmrgif test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
230842a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
2308532b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230862a51b5beSmrg$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
2308732b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2308832b578d3Smrg   { (exit 1); exit 1; }; }
2308932b578d3Smrgfi
2309032b578d3Smrgif test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
230912a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
2309232b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
230932a51b5beSmrg$as_echo "$as_me: error: conditional \"DRI\" was never defined.
2309432b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2309532b578d3Smrg   { (exit 1); exit 1; }; }
2309632b578d3Smrgfi
2309732b578d3Smrgif test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
230982a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_CPIO\" was never defined.
2309932b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231002a51b5beSmrg$as_echo "$as_me: error: conditional \"ATIMISC_CPIO\" was never defined.
2310132b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2310232b578d3Smrg   { (exit 1); exit 1; }; }
2310332b578d3Smrgfi
2310432b578d3Smrgif test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
231052a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_DGA\" was never defined.
2310632b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231072a51b5beSmrg$as_echo "$as_me: error: conditional \"ATIMISC_DGA\" was never defined.
2310832b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2310932b578d3Smrg   { (exit 1); exit 1; }; }
2311032b578d3Smrgfi
2311132b578d3Smrgif test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
231122a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_TV_OUT\" was never defined.
2311332b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231142a51b5beSmrg$as_echo "$as_me: error: conditional \"ATIMISC_TV_OUT\" was never defined.
2311532b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2311632b578d3Smrg   { (exit 1); exit 1; }; }
2311732b578d3Smrgfi
2311832b578d3Smrgif test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
231192a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
2312032b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231212a51b5beSmrg$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
2312232b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2312332b578d3Smrg   { (exit 1); exit 1; }; }
2312432b578d3Smrgfi
2312532b578d3Smrgif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
231262a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
2312732b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231282a51b5beSmrg$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
2312932b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2313032b578d3Smrg   { (exit 1); exit 1; }; }
2313132b578d3Smrgfi
2313232b578d3Smrgif test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
231332a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
2313432b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231352a51b5beSmrg$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
2313632b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2313732b578d3Smrg   { (exit 1); exit 1; }; }
2313832b578d3Smrgfi
2313932b578d3Smrgif test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
231402a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
2314132b578d3SmrgUsually this means the macro was only invoked conditionally." >&5
231422a51b5beSmrg$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
2314332b578d3SmrgUsually this means the macro was only invoked conditionally." >&2;}
2314432b578d3Smrg   { (exit 1); exit 1; }; }
2314532b578d3Smrgfi
2314632b578d3Smrg
2314732b578d3Smrg: ${CONFIG_STATUS=./config.status}
231482a51b5beSmrgac_write_fail=0
2314932b578d3Smrgac_clean_files_save=$ac_clean_files
2315032b578d3Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
231512a51b5beSmrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
231522a51b5beSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
231532a51b5beSmrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2315432b578d3Smrg#! $SHELL
2315532b578d3Smrg# Generated by $as_me.
2315632b578d3Smrg# Run this file to recreate the current configuration.
2315732b578d3Smrg# Compiler output produced by configure, useful for debugging
2315832b578d3Smrg# configure, is in config.log if it exists.
2315932b578d3Smrg
2316032b578d3Smrgdebug=false
2316132b578d3Smrgac_cs_recheck=false
2316232b578d3Smrgac_cs_silent=false
2316332b578d3SmrgSHELL=\${CONFIG_SHELL-$SHELL}
2316432b578d3Smrg_ACEOF
2316532b578d3Smrg
231662a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2316732b578d3Smrg## --------------------- ##
2316832b578d3Smrg## M4sh Initialization.  ##
2316932b578d3Smrg## --------------------- ##
2317032b578d3Smrg
2317132b578d3Smrg# Be more Bourne compatible
2317232b578d3SmrgDUALCASE=1; export DUALCASE # for MKS sh
2317332b578d3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2317432b578d3Smrg  emulate sh
2317532b578d3Smrg  NULLCMD=:
231762a51b5beSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2317732b578d3Smrg  # is contrary to our usage.  Disable this feature.
2317832b578d3Smrg  alias -g '${1+"$@"}'='"$@"'
2317932b578d3Smrg  setopt NO_GLOB_SUBST
2318032b578d3Smrgelse
2318132b578d3Smrg  case `(set -o) 2>/dev/null` in
2318232b578d3Smrg  *posix*) set -o posix ;;
2318332b578d3Smrgesac
2318432b578d3Smrg
2318532b578d3Smrgfi
2318632b578d3Smrg
2318732b578d3Smrg
2318832b578d3Smrg
2318932b578d3Smrg
2319032b578d3Smrg# PATH needs CR
2319132b578d3Smrg# Avoid depending upon Character Ranges.
2319232b578d3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
2319332b578d3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2319432b578d3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
2319532b578d3Smrgas_cr_digits='0123456789'
2319632b578d3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
2319732b578d3Smrg
231982a51b5beSmrgas_nl='
231992a51b5beSmrg'
232002a51b5beSmrgexport as_nl
232012a51b5beSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
232022a51b5beSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
232032a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
232042a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
232052a51b5beSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
232062a51b5beSmrg  as_echo='printf %s\n'
232072a51b5beSmrg  as_echo_n='printf %s'
232082a51b5beSmrgelse
232092a51b5beSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
232102a51b5beSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
232112a51b5beSmrg    as_echo_n='/usr/ucb/echo -n'
2321232b578d3Smrg  else
232132a51b5beSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
232142a51b5beSmrg    as_echo_n_body='eval
232152a51b5beSmrg      arg=$1;
232162a51b5beSmrg      case $arg in
232172a51b5beSmrg      *"$as_nl"*)
232182a51b5beSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
232192a51b5beSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
232202a51b5beSmrg      esac;
232212a51b5beSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
232222a51b5beSmrg    '
232232a51b5beSmrg    export as_echo_n_body
232242a51b5beSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
2322532b578d3Smrg  fi
232262a51b5beSmrg  export as_echo_body
232272a51b5beSmrg  as_echo='sh -c $as_echo_body as_echo'
232282a51b5beSmrgfi
232292a51b5beSmrg
232302a51b5beSmrg# The user is always right.
232312a51b5beSmrgif test "${PATH_SEPARATOR+set}" != set; then
232322a51b5beSmrg  PATH_SEPARATOR=:
232332a51b5beSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
232342a51b5beSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
232352a51b5beSmrg      PATH_SEPARATOR=';'
232362a51b5beSmrg  }
2323732b578d3Smrgfi
2323832b578d3Smrg
2323932b578d3Smrg# Support unset when possible.
2324032b578d3Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2324132b578d3Smrg  as_unset=unset
2324232b578d3Smrgelse
2324332b578d3Smrg  as_unset=false
2324432b578d3Smrgfi
2324532b578d3Smrg
2324632b578d3Smrg
2324732b578d3Smrg# IFS
2324832b578d3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
2324932b578d3Smrg# there to prevent editors from complaining about space-tab.
2325032b578d3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2325132b578d3Smrg# splitting by setting IFS to empty value.)
2325232b578d3SmrgIFS=" ""	$as_nl"
2325332b578d3Smrg
2325432b578d3Smrg# Find who we are.  Look in the path if we contain no directory separator.
2325532b578d3Smrgcase $0 in
2325632b578d3Smrg  *[\\/]* ) as_myself=$0 ;;
2325732b578d3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325832b578d3Smrgfor as_dir in $PATH
2325932b578d3Smrgdo
2326032b578d3Smrg  IFS=$as_save_IFS
2326132b578d3Smrg  test -z "$as_dir" && as_dir=.
2326232b578d3Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2326332b578d3Smrgdone
2326432b578d3SmrgIFS=$as_save_IFS
2326532b578d3Smrg
2326632b578d3Smrg     ;;
2326732b578d3Smrgesac
2326832b578d3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
2326932b578d3Smrg# in which case we are not to be found in the path.
2327032b578d3Smrgif test "x$as_myself" = x; then
2327132b578d3Smrg  as_myself=$0
2327232b578d3Smrgfi
2327332b578d3Smrgif test ! -f "$as_myself"; then
232742a51b5beSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2327532b578d3Smrg  { (exit 1); exit 1; }
2327632b578d3Smrgfi
2327732b578d3Smrg
2327832b578d3Smrg# Work around bugs in pre-3.0 UWIN ksh.
2327932b578d3Smrgfor as_var in ENV MAIL MAILPATH
2328032b578d3Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2328132b578d3Smrgdone
2328232b578d3SmrgPS1='$ '
2328332b578d3SmrgPS2='> '
2328432b578d3SmrgPS4='+ '
2328532b578d3Smrg
2328632b578d3Smrg# NLS nuisances.
232872a51b5beSmrgLC_ALL=C
232882a51b5beSmrgexport LC_ALL
232892a51b5beSmrgLANGUAGE=C
232902a51b5beSmrgexport LANGUAGE
2329132b578d3Smrg
2329232b578d3Smrg# Required to use basename.
2329332b578d3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
2329432b578d3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2329532b578d3Smrg  as_expr=expr
2329632b578d3Smrgelse
2329732b578d3Smrg  as_expr=false
2329832b578d3Smrgfi
2329932b578d3Smrg
2330032b578d3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2330132b578d3Smrg  as_basename=basename
2330232b578d3Smrgelse
2330332b578d3Smrg  as_basename=false
2330432b578d3Smrgfi
2330532b578d3Smrg
2330632b578d3Smrg
2330732b578d3Smrg# Name of the executable.
2330832b578d3Smrgas_me=`$as_basename -- "$0" ||
2330932b578d3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2331032b578d3Smrg	 X"$0" : 'X\(//\)$' \| \
2331132b578d3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
233122a51b5beSmrg$as_echo X/"$0" |
2331332b578d3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
2331432b578d3Smrg	    s//\1/
2331532b578d3Smrg	    q
2331632b578d3Smrg	  }
2331732b578d3Smrg	  /^X\/\(\/\/\)$/{
2331832b578d3Smrg	    s//\1/
2331932b578d3Smrg	    q
2332032b578d3Smrg	  }
2332132b578d3Smrg	  /^X\/\(\/\).*/{
2332232b578d3Smrg	    s//\1/
2332332b578d3Smrg	    q
2332432b578d3Smrg	  }
2332532b578d3Smrg	  s/.*/./; q'`
2332632b578d3Smrg
2332732b578d3Smrg# CDPATH.
2332832b578d3Smrg$as_unset CDPATH
2332932b578d3Smrg
2333032b578d3Smrg
2333132b578d3Smrg
2333232b578d3Smrg  as_lineno_1=$LINENO
2333332b578d3Smrg  as_lineno_2=$LINENO
2333432b578d3Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
2333532b578d3Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2333632b578d3Smrg
2333732b578d3Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2333832b578d3Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
2333932b578d3Smrg  # line-number line after each line using $LINENO; the second 'sed'
2334032b578d3Smrg  # does the real work.  The second script uses 'N' to pair each
2334132b578d3Smrg  # line-number line with the line containing $LINENO, and appends
2334232b578d3Smrg  # trailing '-' during substitution so that $LINENO is not a special
2334332b578d3Smrg  # case at line end.
2334432b578d3Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2334532b578d3Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
2334632b578d3Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
2334732b578d3Smrg  sed -n '
2334832b578d3Smrg    p
2334932b578d3Smrg    /[$]LINENO/=
2335032b578d3Smrg  ' <$as_myself |
2335132b578d3Smrg    sed '
2335232b578d3Smrg      s/[$]LINENO.*/&-/
2335332b578d3Smrg      t lineno
2335432b578d3Smrg      b
2335532b578d3Smrg      :lineno
2335632b578d3Smrg      N
2335732b578d3Smrg      :loop
2335832b578d3Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2335932b578d3Smrg      t loop
2336032b578d3Smrg      s/-\n.*//
2336132b578d3Smrg    ' >$as_me.lineno &&
2336232b578d3Smrg  chmod +x "$as_me.lineno" ||
233632a51b5beSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2336432b578d3Smrg   { (exit 1); exit 1; }; }
2336532b578d3Smrg
2336632b578d3Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
2336732b578d3Smrg  # (the dirname of $[0] is not the place where we might find the
2336832b578d3Smrg  # original and so on.  Autoconf is especially sensitive to this).
2336932b578d3Smrg  . "./$as_me.lineno"
2337032b578d3Smrg  # Exit status is that of the last command.
2337132b578d3Smrg  exit
2337232b578d3Smrg}
2337332b578d3Smrg
2337432b578d3Smrg
2337532b578d3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2337632b578d3Smrg  as_dirname=dirname
2337732b578d3Smrgelse
2337832b578d3Smrg  as_dirname=false
2337932b578d3Smrgfi
2338032b578d3Smrg
2338132b578d3SmrgECHO_C= ECHO_N= ECHO_T=
2338232b578d3Smrgcase `echo -n x` in
2338332b578d3Smrg-n*)
2338432b578d3Smrg  case `echo 'x\c'` in
2338532b578d3Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
2338632b578d3Smrg  *)   ECHO_C='\c';;
2338732b578d3Smrg  esac;;
2338832b578d3Smrg*)
2338932b578d3Smrg  ECHO_N='-n';;
2339032b578d3Smrgesac
2339132b578d3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
2339232b578d3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2339332b578d3Smrg  as_expr=expr
2339432b578d3Smrgelse
2339532b578d3Smrg  as_expr=false
2339632b578d3Smrgfi
2339732b578d3Smrg
2339832b578d3Smrgrm -f conf$$ conf$$.exe conf$$.file
2339932b578d3Smrgif test -d conf$$.dir; then
2340032b578d3Smrg  rm -f conf$$.dir/conf$$.file
2340132b578d3Smrgelse
2340232b578d3Smrg  rm -f conf$$.dir
234032a51b5beSmrg  mkdir conf$$.dir 2>/dev/null
234042a51b5beSmrgfi
234052a51b5beSmrgif (echo >conf$$.file) 2>/dev/null; then
234062a51b5beSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
234072a51b5beSmrg    as_ln_s='ln -s'
234082a51b5beSmrg    # ... but there are two gotchas:
234092a51b5beSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
234102a51b5beSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
234112a51b5beSmrg    # In both cases, we have to default to `cp -p'.
234122a51b5beSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
234132a51b5beSmrg      as_ln_s='cp -p'
234142a51b5beSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
234152a51b5beSmrg    as_ln_s=ln
234162a51b5beSmrg  else
2341732b578d3Smrg    as_ln_s='cp -p'
234182a51b5beSmrg  fi
2341932b578d3Smrgelse
2342032b578d3Smrg  as_ln_s='cp -p'
2342132b578d3Smrgfi
2342232b578d3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2342332b578d3Smrgrmdir conf$$.dir 2>/dev/null
2342432b578d3Smrg
2342532b578d3Smrgif mkdir -p . 2>/dev/null; then
2342632b578d3Smrg  as_mkdir_p=:
2342732b578d3Smrgelse
2342832b578d3Smrg  test -d ./-p && rmdir ./-p
2342932b578d3Smrg  as_mkdir_p=false
2343032b578d3Smrgfi
2343132b578d3Smrg
2343232b578d3Smrgif test -x / >/dev/null 2>&1; then
2343332b578d3Smrg  as_test_x='test -x'
2343432b578d3Smrgelse
2343532b578d3Smrg  if ls -dL / >/dev/null 2>&1; then
2343632b578d3Smrg    as_ls_L_option=L
2343732b578d3Smrg  else
2343832b578d3Smrg    as_ls_L_option=
2343932b578d3Smrg  fi
2344032b578d3Smrg  as_test_x='
2344132b578d3Smrg    eval sh -c '\''
2344232b578d3Smrg      if test -d "$1"; then
234432a51b5beSmrg	test -d "$1/.";
2344432b578d3Smrg      else
2344532b578d3Smrg	case $1 in
234462a51b5beSmrg	-*)set "./$1";;
2344732b578d3Smrg	esac;
2344832b578d3Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2344932b578d3Smrg	???[sx]*):;;*)false;;esac;fi
2345032b578d3Smrg    '\'' sh
2345132b578d3Smrg  '
2345232b578d3Smrgfi
2345332b578d3Smrgas_executable_p=$as_test_x
2345432b578d3Smrg
2345532b578d3Smrg# Sed expression to map a string onto a valid CPP name.
2345632b578d3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2345732b578d3Smrg
2345832b578d3Smrg# Sed expression to map a string onto a valid variable name.
2345932b578d3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2346032b578d3Smrg
2346132b578d3Smrg
2346232b578d3Smrgexec 6>&1
2346332b578d3Smrg
2346432b578d3Smrg# Save the log message, to keep $[0] and so on meaningful, and to
2346532b578d3Smrg# report actual input values of CONFIG_FILES etc. instead of their
2346632b578d3Smrg# values after options handling.
2346732b578d3Smrgac_log="
234682a51b5beSmrgThis file was extended by xf86-video-mach64 $as_me 6.8.2, which was
234692a51b5beSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
2347032b578d3Smrg
2347132b578d3Smrg  CONFIG_FILES    = $CONFIG_FILES
2347232b578d3Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
2347332b578d3Smrg  CONFIG_LINKS    = $CONFIG_LINKS
2347432b578d3Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
2347532b578d3Smrg  $ $0 $@
2347632b578d3Smrg
2347732b578d3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
2347832b578d3Smrg"
2347932b578d3Smrg
2348032b578d3Smrg_ACEOF
2348132b578d3Smrg
234822a51b5beSmrgcase $ac_config_files in *"
234832a51b5beSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
234842a51b5beSmrgesac
234852a51b5beSmrg
234862a51b5beSmrgcase $ac_config_headers in *"
234872a51b5beSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
234882a51b5beSmrgesac
234892a51b5beSmrg
234902a51b5beSmrg
234912a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2349232b578d3Smrg# Files that config.status was made for.
2349332b578d3Smrgconfig_files="$ac_config_files"
2349432b578d3Smrgconfig_headers="$ac_config_headers"
2349532b578d3Smrgconfig_commands="$ac_config_commands"
2349632b578d3Smrg
2349732b578d3Smrg_ACEOF
2349832b578d3Smrg
234992a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2350032b578d3Smrgac_cs_usage="\
2350132b578d3Smrg\`$as_me' instantiates files from templates according to the
2350232b578d3Smrgcurrent configuration.
2350332b578d3Smrg
235042a51b5beSmrgUsage: $0 [OPTION]... [FILE]...
2350532b578d3Smrg
2350632b578d3Smrg  -h, --help       print this help, then exit
2350732b578d3Smrg  -V, --version    print version number and configuration settings, then exit
235082a51b5beSmrg  -q, --quiet, --silent
235092a51b5beSmrg                   do not print progress messages
2351032b578d3Smrg  -d, --debug      don't remove temporary files
2351132b578d3Smrg      --recheck    update $as_me by reconfiguring in the same conditions
235122a51b5beSmrg      --file=FILE[:TEMPLATE]
235132a51b5beSmrg                   instantiate the configuration file FILE
235142a51b5beSmrg      --header=FILE[:TEMPLATE]
235152a51b5beSmrg                   instantiate the configuration header FILE
2351632b578d3Smrg
2351732b578d3SmrgConfiguration files:
2351832b578d3Smrg$config_files
2351932b578d3Smrg
2352032b578d3SmrgConfiguration headers:
2352132b578d3Smrg$config_headers
2352232b578d3Smrg
2352332b578d3SmrgConfiguration commands:
2352432b578d3Smrg$config_commands
2352532b578d3Smrg
2352632b578d3SmrgReport bugs to <bug-autoconf@gnu.org>."
2352732b578d3Smrg
2352832b578d3Smrg_ACEOF
235292a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2353032b578d3Smrgac_cs_version="\\
235312a51b5beSmrgxf86-video-mach64 config.status 6.8.2
235322a51b5beSmrgconfigured by $0, generated by GNU Autoconf 2.63,
235332a51b5beSmrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2353432b578d3Smrg
235352a51b5beSmrgCopyright (C) 2008 Free Software Foundation, Inc.
2353632b578d3SmrgThis config.status script is free software; the Free Software Foundation
2353732b578d3Smrggives unlimited permission to copy, distribute and modify it."
2353832b578d3Smrg
2353932b578d3Smrgac_pwd='$ac_pwd'
2354032b578d3Smrgsrcdir='$srcdir'
2354132b578d3SmrgINSTALL='$INSTALL'
2354232b578d3SmrgMKDIR_P='$MKDIR_P'
235432a51b5beSmrgAWK='$AWK'
235442a51b5beSmrgtest -n "\$AWK" || AWK=awk
2354532b578d3Smrg_ACEOF
2354632b578d3Smrg
235472a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
235482a51b5beSmrg# The default lists apply if the user does not specify any file.
2354932b578d3Smrgac_need_defaults=:
2355032b578d3Smrgwhile test $# != 0
2355132b578d3Smrgdo
2355232b578d3Smrg  case $1 in
2355332b578d3Smrg  --*=*)
2355432b578d3Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2355532b578d3Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2355632b578d3Smrg    ac_shift=:
2355732b578d3Smrg    ;;
2355832b578d3Smrg  *)
2355932b578d3Smrg    ac_option=$1
2356032b578d3Smrg    ac_optarg=$2
2356132b578d3Smrg    ac_shift=shift
2356232b578d3Smrg    ;;
2356332b578d3Smrg  esac
2356432b578d3Smrg
2356532b578d3Smrg  case $ac_option in
2356632b578d3Smrg  # Handling of the options.
2356732b578d3Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2356832b578d3Smrg    ac_cs_recheck=: ;;
2356932b578d3Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
235702a51b5beSmrg    $as_echo "$ac_cs_version"; exit ;;
2357132b578d3Smrg  --debug | --debu | --deb | --de | --d | -d )
2357232b578d3Smrg    debug=: ;;
2357332b578d3Smrg  --file | --fil | --fi | --f )
2357432b578d3Smrg    $ac_shift
235752a51b5beSmrg    case $ac_optarg in
235762a51b5beSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
235772a51b5beSmrg    esac
235782a51b5beSmrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2357932b578d3Smrg    ac_need_defaults=false;;
2358032b578d3Smrg  --header | --heade | --head | --hea )
2358132b578d3Smrg    $ac_shift
235822a51b5beSmrg    case $ac_optarg in
235832a51b5beSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
235842a51b5beSmrg    esac
235852a51b5beSmrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2358632b578d3Smrg    ac_need_defaults=false;;
2358732b578d3Smrg  --he | --h)
2358832b578d3Smrg    # Conflict between --help and --header
235892a51b5beSmrg    { $as_echo "$as_me: error: ambiguous option: $1
2359032b578d3SmrgTry \`$0 --help' for more information." >&2
2359132b578d3Smrg   { (exit 1); exit 1; }; };;
2359232b578d3Smrg  --help | --hel | -h )
235932a51b5beSmrg    $as_echo "$ac_cs_usage"; exit ;;
2359432b578d3Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2359532b578d3Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
2359632b578d3Smrg    ac_cs_silent=: ;;
2359732b578d3Smrg
2359832b578d3Smrg  # This is an error.
235992a51b5beSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
2360032b578d3SmrgTry \`$0 --help' for more information." >&2
2360132b578d3Smrg   { (exit 1); exit 1; }; } ;;
2360232b578d3Smrg
2360332b578d3Smrg  *) ac_config_targets="$ac_config_targets $1"
2360432b578d3Smrg     ac_need_defaults=false ;;
2360532b578d3Smrg
2360632b578d3Smrg  esac
2360732b578d3Smrg  shift
2360832b578d3Smrgdone
2360932b578d3Smrg
2361032b578d3Smrgac_configure_extra_args=
2361132b578d3Smrg
2361232b578d3Smrgif $ac_cs_silent; then
2361332b578d3Smrg  exec 6>/dev/null
2361432b578d3Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
2361532b578d3Smrgfi
2361632b578d3Smrg
2361732b578d3Smrg_ACEOF
236182a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2361932b578d3Smrgif \$ac_cs_recheck; then
236202a51b5beSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
236212a51b5beSmrg  shift
236222a51b5beSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
236232a51b5beSmrg  CONFIG_SHELL='$SHELL'
2362432b578d3Smrg  export CONFIG_SHELL
236252a51b5beSmrg  exec "\$@"
2362632b578d3Smrgfi
2362732b578d3Smrg
2362832b578d3Smrg_ACEOF
236292a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2363032b578d3Smrgexec 5>>config.log
2363132b578d3Smrg{
2363232b578d3Smrg  echo
2363332b578d3Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2363432b578d3Smrg## Running $as_me. ##
2363532b578d3Smrg_ASBOX
236362a51b5beSmrg  $as_echo "$ac_log"
2363732b578d3Smrg} >&5
2363832b578d3Smrg
2363932b578d3Smrg_ACEOF
236402a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2364132b578d3Smrg#
2364232b578d3Smrg# INIT-COMMANDS
2364332b578d3Smrg#
2364432b578d3SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
2364532b578d3Smrg
2364632b578d3Smrg_ACEOF
2364732b578d3Smrg
236482a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2364932b578d3Smrg
2365032b578d3Smrg# Handling of arguments.
2365132b578d3Smrgfor ac_config_target in $ac_config_targets
2365232b578d3Smrgdo
2365332b578d3Smrg  case $ac_config_target in
2365432b578d3Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2365532b578d3Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
2365632b578d3Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2365732b578d3Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2365832b578d3Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
2365932b578d3Smrg
236602a51b5beSmrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
236612a51b5beSmrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2366232b578d3Smrg   { (exit 1); exit 1; }; };;
2366332b578d3Smrg  esac
2366432b578d3Smrgdone
2366532b578d3Smrg
2366632b578d3Smrg
2366732b578d3Smrg# If the user did not use the arguments to specify the items to instantiate,
2366832b578d3Smrg# then the envvar interface is used.  Set only those that are not.
2366932b578d3Smrg# We use the long form for the default assignment because of an extremely
2367032b578d3Smrg# bizarre bug on SunOS 4.1.3.
2367132b578d3Smrgif $ac_need_defaults; then
2367232b578d3Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2367332b578d3Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2367432b578d3Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2367532b578d3Smrgfi
2367632b578d3Smrg
2367732b578d3Smrg# Have a temporary directory for convenience.  Make it in the build tree
2367832b578d3Smrg# simply because there is no reason against having it here, and in addition,
2367932b578d3Smrg# creating and moving files from /tmp can sometimes cause problems.
2368032b578d3Smrg# Hook for its removal unless debugging.
2368132b578d3Smrg# Note that there is a small window in which the directory will not be cleaned:
2368232b578d3Smrg# after its creation but before its name has been assigned to `$tmp'.
2368332b578d3Smrg$debug ||
2368432b578d3Smrg{
2368532b578d3Smrg  tmp=
2368632b578d3Smrg  trap 'exit_status=$?
2368732b578d3Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2368832b578d3Smrg' 0
2368932b578d3Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
2369032b578d3Smrg}
2369132b578d3Smrg# Create a (secure) tmp directory for tmp files.
2369232b578d3Smrg
2369332b578d3Smrg{
2369432b578d3Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2369532b578d3Smrg  test -n "$tmp" && test -d "$tmp"
2369632b578d3Smrg}  ||
2369732b578d3Smrg{
2369832b578d3Smrg  tmp=./conf$$-$RANDOM
2369932b578d3Smrg  (umask 077 && mkdir "$tmp")
2370032b578d3Smrg} ||
2370132b578d3Smrg{
237022a51b5beSmrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
2370332b578d3Smrg   { (exit 1); exit 1; }
2370432b578d3Smrg}
2370532b578d3Smrg
237062a51b5beSmrg# Set up the scripts for CONFIG_FILES section.
237072a51b5beSmrg# No need to generate them if there are no CONFIG_FILES.
237082a51b5beSmrg# This happens for instance with `./config.status config.h'.
2370932b578d3Smrgif test -n "$CONFIG_FILES"; then
2371032b578d3Smrg
2371132b578d3Smrg
237122a51b5beSmrgac_cr='
237132a51b5beSmrg'
237142a51b5beSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
237152a51b5beSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
237162a51b5beSmrg  ac_cs_awk_cr='\\r'
237172a51b5beSmrgelse
2371832b578d3Smrg  ac_cs_awk_cr=$ac_cr
2371932b578d3Smrgfi
237202a51b5beSmrg
2372132b578d3Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
2372232b578d3Smrg_ACEOF
2372332b578d3Smrg
237242a51b5beSmrg
237252a51b5beSmrg{
237262a51b5beSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
237272a51b5beSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
237282a51b5beSmrg  echo "_ACEOF"
237292a51b5beSmrg} >conf$$subs.sh ||
237302a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
237312a51b5beSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
237322a51b5beSmrg   { (exit 1); exit 1; }; }
2373332b578d3Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
2373432b578d3Smrgac_delim='%!_!# '
237352a51b5beSmrgfor ac_last_try in false false false false false :; do
237362a51b5beSmrg  . ./conf$$subs.sh ||
237372a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
237382a51b5beSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2373932b578d3Smrg   { (exit 1); exit 1; }; }
237402a51b5beSmrg
237412a51b5beSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
2374232b578d3Smrg  if test $ac_delim_n = $ac_delim_num; then
2374332b578d3Smrg    break
237442a51b5beSmrg  elif $ac_last_try; then
237452a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2374632b578d3Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2374732b578d3Smrg   { (exit 1); exit 1; }; }
2374832b578d3Smrg  else
2374932b578d3Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2375032b578d3Smrg  fi
237512a51b5beSmrgdone
2375232b578d3Smrgrm -f conf$$subs.sh
237532a51b5beSmrg
237542a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
237552a51b5beSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
237562a51b5beSmrg_ACEOF
237572a51b5beSmrgsed -n '
237582a51b5beSmrgh
237592a51b5beSmrgs/^/S["/; s/!.*/"]=/
237602a51b5beSmrgp
237612a51b5beSmrgg
237622a51b5beSmrgs/^[^!]*!//
237632a51b5beSmrg:repl
237642a51b5beSmrgt repl
237652a51b5beSmrgs/'"$ac_delim"'$//
237662a51b5beSmrgt delim
237672a51b5beSmrg:nl
237682a51b5beSmrgh
237692a51b5beSmrgs/\(.\{148\}\).*/\1/
237702a51b5beSmrgt more1
237712a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
237722a51b5beSmrgp
237732a51b5beSmrgn
237742a51b5beSmrgb repl
237752a51b5beSmrg:more1
237762a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
237772a51b5beSmrgp
237782a51b5beSmrgg
237792a51b5beSmrgs/.\{148\}//
237802a51b5beSmrgt nl
237812a51b5beSmrg:delim
237822a51b5beSmrgh
237832a51b5beSmrgs/\(.\{148\}\).*/\1/
237842a51b5beSmrgt more2
237852a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
237862a51b5beSmrgp
237872a51b5beSmrgb
237882a51b5beSmrg:more2
237892a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
237902a51b5beSmrgp
237912a51b5beSmrgg
237922a51b5beSmrgs/.\{148\}//
237932a51b5beSmrgt delim
237942a51b5beSmrg' <conf$$subs.awk | sed '
237952a51b5beSmrg/^[^""]/{
237962a51b5beSmrg  N
237972a51b5beSmrg  s/\n//
237982a51b5beSmrg}
237992a51b5beSmrg' >>$CONFIG_STATUS || ac_write_fail=1
238002a51b5beSmrgrm -f conf$$subs.awk
238012a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
238022a51b5beSmrg_ACAWK
238032a51b5beSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
238042a51b5beSmrg  for (key in S) S_is_set[key] = 1
238052a51b5beSmrg  FS = ""
238062a51b5beSmrg
238072a51b5beSmrg}
238082a51b5beSmrg{
238092a51b5beSmrg  line = $ 0
238102a51b5beSmrg  nfields = split(line, field, "@")
238112a51b5beSmrg  substed = 0
238122a51b5beSmrg  len = length(field[1])
238132a51b5beSmrg  for (i = 2; i < nfields; i++) {
238142a51b5beSmrg    key = field[i]
238152a51b5beSmrg    keylen = length(key)
238162a51b5beSmrg    if (S_is_set[key]) {
238172a51b5beSmrg      value = S[key]
238182a51b5beSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
238192a51b5beSmrg      len += length(value) + length(field[++i])
238202a51b5beSmrg      substed = 1
238212a51b5beSmrg    } else
238222a51b5beSmrg      len += 1 + keylen
238232a51b5beSmrg  }
238242a51b5beSmrg
238252a51b5beSmrg  print line
2382632b578d3Smrg}
238272a51b5beSmrg
2382832b578d3Smrg_ACAWK
238292a51b5beSmrg_ACEOF
238302a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
238312a51b5beSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
238322a51b5beSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
238332a51b5beSmrgelse
238342a51b5beSmrg  cat
238352a51b5beSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
238362a51b5beSmrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
238372a51b5beSmrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
2383832b578d3Smrg   { (exit 1); exit 1; }; }
2383932b578d3Smrg_ACEOF
2384032b578d3Smrg
2384132b578d3Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
2384232b578d3Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2384332b578d3Smrg# trailing colons and then remove the whole line if VPATH becomes empty
2384432b578d3Smrg# (actually we leave an empty line to preserve line numbers).
2384532b578d3Smrgif test "x$srcdir" = x.; then
2384632b578d3Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
2384732b578d3Smrgs/:*\$(srcdir):*/:/
2384832b578d3Smrgs/:*\${srcdir}:*/:/
2384932b578d3Smrgs/:*@srcdir@:*/:/
2385032b578d3Smrgs/^\([^=]*=[	 ]*\):*/\1/
2385132b578d3Smrgs/:*$//
2385232b578d3Smrgs/^[^=]*=[	 ]*$//
2385332b578d3Smrg}'
2385432b578d3Smrgfi
238552a51b5beSmrg
2385632b578d3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2385732b578d3Smrgfi # test -n "$CONFIG_FILES"
238582a51b5beSmrg
238592a51b5beSmrg# Set up the scripts for CONFIG_HEADERS section.
238602a51b5beSmrg# No need to generate them if there are no CONFIG_HEADERS.
238612a51b5beSmrg# This happens for instance with `./config.status Makefile'.
238622a51b5beSmrgif test -n "$CONFIG_HEADERS"; then
238632a51b5beSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
238642a51b5beSmrgBEGIN {
238652a51b5beSmrg_ACEOF
238662a51b5beSmrg
238672a51b5beSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
238682a51b5beSmrg# here-document in config.status, that substitutes the proper values into
238692a51b5beSmrg# config.h.in to produce config.h.
238702a51b5beSmrg
238712a51b5beSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
238722a51b5beSmrg# handling of long lines.
238732a51b5beSmrgac_delim='%!_!# '
238742a51b5beSmrgfor ac_last_try in false false :; do
238752a51b5beSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
238762a51b5beSmrg  if test -z "$ac_t"; then
238772a51b5beSmrg    break
238782a51b5beSmrg  elif $ac_last_try; then
238792a51b5beSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
238802a51b5beSmrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
238812a51b5beSmrg   { (exit 1); exit 1; }; }
238822a51b5beSmrg  else
238832a51b5beSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
238842a51b5beSmrg  fi
238852a51b5beSmrgdone
238862a51b5beSmrg
238872a51b5beSmrg# For the awk script, D is an array of macro values keyed by name,
238882a51b5beSmrg# likewise P contains macro parameters if any.  Preserve backslash
238892a51b5beSmrg# newline sequences.
238902a51b5beSmrg
238912a51b5beSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
238922a51b5beSmrgsed -n '
238932a51b5beSmrgs/.\{148\}/&'"$ac_delim"'/g
238942a51b5beSmrgt rset
238952a51b5beSmrg:rset
238962a51b5beSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
238972a51b5beSmrgt def
238982a51b5beSmrgd
238992a51b5beSmrg:def
239002a51b5beSmrgs/\\$//
239012a51b5beSmrgt bsnl
239022a51b5beSmrgs/["\\]/\\&/g
239032a51b5beSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
239042a51b5beSmrgD["\1"]=" \3"/p
239052a51b5beSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
239062a51b5beSmrgd
239072a51b5beSmrg:bsnl
239082a51b5beSmrgs/["\\]/\\&/g
239092a51b5beSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
239102a51b5beSmrgD["\1"]=" \3\\\\\\n"\\/p
239112a51b5beSmrgt cont
239122a51b5beSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
239132a51b5beSmrgt cont
239142a51b5beSmrgd
239152a51b5beSmrg:cont
239162a51b5beSmrgn
239172a51b5beSmrgs/.\{148\}/&'"$ac_delim"'/g
239182a51b5beSmrgt clear
239192a51b5beSmrg:clear
239202a51b5beSmrgs/\\$//
239212a51b5beSmrgt bsnlc
239222a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
239232a51b5beSmrgd
239242a51b5beSmrg:bsnlc
239252a51b5beSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
239262a51b5beSmrgb cont
239272a51b5beSmrg' <confdefs.h | sed '
239282a51b5beSmrgs/'"$ac_delim"'/"\\\
239292a51b5beSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
239302a51b5beSmrg
239312a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
239322a51b5beSmrg  for (key in D) D_is_set[key] = 1
239332a51b5beSmrg  FS = ""
239342a51b5beSmrg}
239352a51b5beSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
239362a51b5beSmrg  line = \$ 0
239372a51b5beSmrg  split(line, arg, " ")
239382a51b5beSmrg  if (arg[1] == "#") {
239392a51b5beSmrg    defundef = arg[2]
239402a51b5beSmrg    mac1 = arg[3]
239412a51b5beSmrg  } else {
239422a51b5beSmrg    defundef = substr(arg[1], 2)
239432a51b5beSmrg    mac1 = arg[2]
239442a51b5beSmrg  }
239452a51b5beSmrg  split(mac1, mac2, "(") #)
239462a51b5beSmrg  macro = mac2[1]
239472a51b5beSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
239482a51b5beSmrg  if (D_is_set[macro]) {
239492a51b5beSmrg    # Preserve the white space surrounding the "#".
239502a51b5beSmrg    print prefix "define", macro P[macro] D[macro]
239512a51b5beSmrg    next
239522a51b5beSmrg  } else {
239532a51b5beSmrg    # Replace #undef with comments.  This is necessary, for example,
239542a51b5beSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
239552a51b5beSmrg    # on some systems where configure will not decide to define it.
239562a51b5beSmrg    if (defundef == "undef") {
239572a51b5beSmrg      print "/*", prefix defundef, macro, "*/"
239582a51b5beSmrg      next
239592a51b5beSmrg    }
239602a51b5beSmrg  }
239612a51b5beSmrg}
239622a51b5beSmrg{ print }
239632a51b5beSmrg_ACAWK
239642a51b5beSmrg_ACEOF
239652a51b5beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
239662a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
239672a51b5beSmrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
239682a51b5beSmrg   { (exit 1); exit 1; }; }
239692a51b5beSmrgfi # test -n "$CONFIG_HEADERS"
2397032b578d3Smrg
239712a51b5beSmrg
239722a51b5beSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
239732a51b5beSmrgshift
2397432b578d3Smrgfor ac_tag
2397532b578d3Smrgdo
2397632b578d3Smrg  case $ac_tag in
2397732b578d3Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
2397832b578d3Smrg  esac
2397932b578d3Smrg  case $ac_mode$ac_tag in
239802a51b5beSmrg  :[FHL]*:*);;
239812a51b5beSmrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
2398232b578d3Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
2398332b578d3Smrg   { (exit 1); exit 1; }; };;
2398432b578d3Smrg  :[FH]-) ac_tag=-:-;;
2398532b578d3Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2398632b578d3Smrg  esac
2398732b578d3Smrg  ac_save_IFS=$IFS
2398832b578d3Smrg  IFS=:
2398932b578d3Smrg  set x $ac_tag
2399032b578d3Smrg  IFS=$ac_save_IFS
2399132b578d3Smrg  shift
2399232b578d3Smrg  ac_file=$1
2399332b578d3Smrg  shift
2399432b578d3Smrg
2399532b578d3Smrg  case $ac_mode in
2399632b578d3Smrg  :L) ac_source=$1;;
2399732b578d3Smrg  :[FH])
2399832b578d3Smrg    ac_file_inputs=
2399932b578d3Smrg    for ac_f
2400032b578d3Smrg    do
2400132b578d3Smrg      case $ac_f in
2400232b578d3Smrg      -) ac_f="$tmp/stdin";;
2400332b578d3Smrg      *) # Look for the file first in the build tree, then in the source tree
2400432b578d3Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
2400532b578d3Smrg	 # because $ac_f cannot contain `:'.
2400632b578d3Smrg	 test -f "$ac_f" ||
2400732b578d3Smrg	   case $ac_f in
2400832b578d3Smrg	   [\\/$]*) false;;
2400932b578d3Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
240102a51b5beSmrg	   esac ||
240112a51b5beSmrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2401232b578d3Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2401332b578d3Smrg   { (exit 1); exit 1; }; };;
240142a51b5beSmrg      esac
240152a51b5beSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
2401632b578d3Smrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
2401732b578d3Smrg    done
2401832b578d3Smrg
2401932b578d3Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
2402032b578d3Smrg    # use $as_me), people would be surprised to read:
240212a51b5beSmrg    #    /* config.h.  Generated by config.status.  */
240222a51b5beSmrg    configure_input='Generated from '`
240232a51b5beSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
2402432b578d3Smrg	`' by configure.'
2402532b578d3Smrg    if test x"$ac_file" != x-; then
240262a51b5beSmrg      configure_input="$ac_file.  $configure_input"
240272a51b5beSmrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
2402832b578d3Smrg$as_echo "$as_me: creating $ac_file" >&6;}
240292a51b5beSmrg    fi
240302a51b5beSmrg    # Neutralize special characters interpreted by sed in replacement strings.
240312a51b5beSmrg    case $configure_input in #(
240322a51b5beSmrg    *\&* | *\|* | *\\* )
240332a51b5beSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
240342a51b5beSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
240352a51b5beSmrg    *) ac_sed_conf_input=$configure_input;;
2403632b578d3Smrg    esac
2403732b578d3Smrg
240382a51b5beSmrg    case $ac_tag in
240392a51b5beSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
240402a51b5beSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
240412a51b5beSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
2404232b578d3Smrg   { (exit 1); exit 1; }; } ;;
2404332b578d3Smrg    esac
2404432b578d3Smrg    ;;
2404532b578d3Smrg  esac
2404632b578d3Smrg
2404732b578d3Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
2404832b578d3Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2404932b578d3Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
2405032b578d3Smrg	 X"$ac_file" : 'X\(//\)$' \| \
240512a51b5beSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2405232b578d3Smrg$as_echo X"$ac_file" |
2405332b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2405432b578d3Smrg	    s//\1/
2405532b578d3Smrg	    q
2405632b578d3Smrg	  }
2405732b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2405832b578d3Smrg	    s//\1/
2405932b578d3Smrg	    q
2406032b578d3Smrg	  }
2406132b578d3Smrg	  /^X\(\/\/\)$/{
2406232b578d3Smrg	    s//\1/
2406332b578d3Smrg	    q
2406432b578d3Smrg	  }
2406532b578d3Smrg	  /^X\(\/\).*/{
2406632b578d3Smrg	    s//\1/
2406732b578d3Smrg	    q
2406832b578d3Smrg	  }
2406932b578d3Smrg	  s/.*/./; q'`
2407032b578d3Smrg  { as_dir="$ac_dir"
2407132b578d3Smrg  case $as_dir in #(
2407232b578d3Smrg  -*) as_dir=./$as_dir;;
2407332b578d3Smrg  esac
2407432b578d3Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2407532b578d3Smrg    as_dirs=
2407632b578d3Smrg    while :; do
240772a51b5beSmrg      case $as_dir in #(
2407832b578d3Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2407932b578d3Smrg      *) as_qdir=$as_dir;;
2408032b578d3Smrg      esac
2408132b578d3Smrg      as_dirs="'$as_qdir' $as_dirs"
2408232b578d3Smrg      as_dir=`$as_dirname -- "$as_dir" ||
2408332b578d3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2408432b578d3Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
2408532b578d3Smrg	 X"$as_dir" : 'X\(//\)$' \| \
240862a51b5beSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2408732b578d3Smrg$as_echo X"$as_dir" |
2408832b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2408932b578d3Smrg	    s//\1/
2409032b578d3Smrg	    q
2409132b578d3Smrg	  }
2409232b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2409332b578d3Smrg	    s//\1/
2409432b578d3Smrg	    q
2409532b578d3Smrg	  }
2409632b578d3Smrg	  /^X\(\/\/\)$/{
2409732b578d3Smrg	    s//\1/
2409832b578d3Smrg	    q
2409932b578d3Smrg	  }
2410032b578d3Smrg	  /^X\(\/\).*/{
2410132b578d3Smrg	    s//\1/
2410232b578d3Smrg	    q
2410332b578d3Smrg	  }
2410432b578d3Smrg	  s/.*/./; q'`
2410532b578d3Smrg      test -d "$as_dir" && break
2410632b578d3Smrg    done
241072a51b5beSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
241082a51b5beSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2410932b578d3Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2411032b578d3Smrg   { (exit 1); exit 1; }; }; }
2411132b578d3Smrg  ac_builddir=.
2411232b578d3Smrg
2411332b578d3Smrgcase "$ac_dir" in
2411432b578d3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
241152a51b5beSmrg*)
2411632b578d3Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
241172a51b5beSmrg  # A ".." for each directory in $ac_dir_suffix.
2411832b578d3Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2411932b578d3Smrg  case $ac_top_builddir_sub in
2412032b578d3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2412132b578d3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2412232b578d3Smrg  esac ;;
2412332b578d3Smrgesac
2412432b578d3Smrgac_abs_top_builddir=$ac_pwd
2412532b578d3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
2412632b578d3Smrg# for backward compatibility:
2412732b578d3Smrgac_top_builddir=$ac_top_build_prefix
2412832b578d3Smrg
2412932b578d3Smrgcase $srcdir in
2413032b578d3Smrg  .)  # We are building in place.
2413132b578d3Smrg    ac_srcdir=.
2413232b578d3Smrg    ac_top_srcdir=$ac_top_builddir_sub
2413332b578d3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
2413432b578d3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
2413532b578d3Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
2413632b578d3Smrg    ac_top_srcdir=$srcdir
2413732b578d3Smrg    ac_abs_top_srcdir=$srcdir ;;
2413832b578d3Smrg  *) # Relative name.
2413932b578d3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2414032b578d3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
2414132b578d3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2414232b578d3Smrgesac
2414332b578d3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2414432b578d3Smrg
2414532b578d3Smrg
2414632b578d3Smrg  case $ac_mode in
2414732b578d3Smrg  :F)
2414832b578d3Smrg  #
2414932b578d3Smrg  # CONFIG_FILE
2415032b578d3Smrg  #
2415132b578d3Smrg
2415232b578d3Smrg  case $INSTALL in
2415332b578d3Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2415432b578d3Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
2415532b578d3Smrg  esac
2415632b578d3Smrg  ac_MKDIR_P=$MKDIR_P
2415732b578d3Smrg  case $MKDIR_P in
2415832b578d3Smrg  [\\/$]* | ?:[\\/]* ) ;;
2415932b578d3Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
2416032b578d3Smrg  esac
2416132b578d3Smrg_ACEOF
241622a51b5beSmrg
2416332b578d3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2416432b578d3Smrg# If the template does not know about datarootdir, expand it.
2416532b578d3Smrg# FIXME: This hack should be removed a few years after 2.60.
2416632b578d3Smrgac_datarootdir_hack=; ac_datarootdir_seen=
241672a51b5beSmrg
241682a51b5beSmrgac_sed_dataroot='
2416932b578d3Smrg/datarootdir/ {
2417032b578d3Smrg  p
2417132b578d3Smrg  q
2417232b578d3Smrg}
2417332b578d3Smrg/@datadir@/p
2417432b578d3Smrg/@docdir@/p
2417532b578d3Smrg/@infodir@/p
2417632b578d3Smrg/@localedir@/p
241772a51b5beSmrg/@mandir@/p
241782a51b5beSmrg'
2417932b578d3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2418032b578d3Smrg*datarootdir*) ac_datarootdir_seen=yes;;
241812a51b5beSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
241822a51b5beSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2418332b578d3Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
241842a51b5beSmrg_ACEOF
2418532b578d3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2418632b578d3Smrg  ac_datarootdir_hack='
2418732b578d3Smrg  s&@datadir@&$datadir&g
2418832b578d3Smrg  s&@docdir@&$docdir&g
2418932b578d3Smrg  s&@infodir@&$infodir&g
2419032b578d3Smrg  s&@localedir@&$localedir&g
2419132b578d3Smrg  s&@mandir@&$mandir&g
2419232b578d3Smrg    s&\\\${datarootdir}&$datarootdir&g' ;;
2419332b578d3Smrgesac
2419432b578d3Smrg_ACEOF
2419532b578d3Smrg
2419632b578d3Smrg# Neutralize VPATH when `$srcdir' = `.'.
2419732b578d3Smrg# Shell code in configure.ac might set extrasub.
241982a51b5beSmrg# FIXME: do we really want to maintain this feature?
241992a51b5beSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2420032b578d3Smrgac_sed_extra="$ac_vpsub
2420132b578d3Smrg$extrasub
242022a51b5beSmrg_ACEOF
2420332b578d3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2420432b578d3Smrg:t
242052a51b5beSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2420632b578d3Smrgs|@configure_input@|$ac_sed_conf_input|;t t
242072a51b5beSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
2420832b578d3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
2420932b578d3Smrgs&@srcdir@&$ac_srcdir&;t t
2421032b578d3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
2421132b578d3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
2421232b578d3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2421332b578d3Smrgs&@builddir@&$ac_builddir&;t t
2421432b578d3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
2421532b578d3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2421632b578d3Smrgs&@INSTALL@&$ac_INSTALL&;t t
2421732b578d3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
242182a51b5beSmrg$ac_datarootdir_hack
242192a51b5beSmrg"
242202a51b5beSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
242212a51b5beSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
242222a51b5beSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
2422332b578d3Smrg   { (exit 1); exit 1; }; }
2422432b578d3Smrg
2422532b578d3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2422632b578d3Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
242272a51b5beSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2422832b578d3Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
242292a51b5beSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
2423032b578d3Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2423132b578d3Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
2423232b578d3Smrg
2423332b578d3Smrg  rm -f "$tmp/stdin"
242342a51b5beSmrg  case $ac_file in
242352a51b5beSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
242362a51b5beSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
242372a51b5beSmrg  esac \
242382a51b5beSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
242392a51b5beSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
2424032b578d3Smrg   { (exit 1); exit 1; }; }
2424132b578d3Smrg ;;
2424232b578d3Smrg  :H)
2424332b578d3Smrg  #
2424432b578d3Smrg  # CONFIG_HEADER
2424532b578d3Smrg  #
242462a51b5beSmrg  if test x"$ac_file" != x-; then
242472a51b5beSmrg    {
242482a51b5beSmrg      $as_echo "/* $configure_input  */" \
242492a51b5beSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
242502a51b5beSmrg    } >"$tmp/config.h" \
242512a51b5beSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
242522a51b5beSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
242532a51b5beSmrg   { (exit 1); exit 1; }; }
242542a51b5beSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
242552a51b5beSmrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
2425632b578d3Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
242572a51b5beSmrg    else
242582a51b5beSmrg      rm -f "$ac_file"
242592a51b5beSmrg      mv "$tmp/config.h" "$ac_file" \
242602a51b5beSmrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
242612a51b5beSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
2426232b578d3Smrg   { (exit 1); exit 1; }; }
2426332b578d3Smrg    fi
242642a51b5beSmrg  else
242652a51b5beSmrg    $as_echo "/* $configure_input  */" \
242662a51b5beSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
242672a51b5beSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
242682a51b5beSmrg$as_echo "$as_me: error: could not create -" >&2;}
2426932b578d3Smrg   { (exit 1); exit 1; }; }
242702a51b5beSmrg  fi
242712a51b5beSmrg# Compute "$ac_file"'s index in $config_headers.
2427232b578d3Smrg_am_arg="$ac_file"
2427332b578d3Smrg_am_stamp_count=1
2427432b578d3Smrgfor _am_header in $config_headers :; do
242752a51b5beSmrg  case $_am_header in
2427632b578d3Smrg    $_am_arg | $_am_arg:* )
2427732b578d3Smrg      break ;;
2427832b578d3Smrg    * )
2427932b578d3Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2428032b578d3Smrg  esac
242812a51b5beSmrgdone
242822a51b5beSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
242832a51b5beSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
242842a51b5beSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
242852a51b5beSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
242862a51b5beSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
2428732b578d3Smrg$as_echo X"$_am_arg" |
2428832b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2428932b578d3Smrg	    s//\1/
2429032b578d3Smrg	    q
2429132b578d3Smrg	  }
2429232b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2429332b578d3Smrg	    s//\1/
2429432b578d3Smrg	    q
2429532b578d3Smrg	  }
2429632b578d3Smrg	  /^X\(\/\/\)$/{
2429732b578d3Smrg	    s//\1/
2429832b578d3Smrg	    q
2429932b578d3Smrg	  }
2430032b578d3Smrg	  /^X\(\/\).*/{
2430132b578d3Smrg	    s//\1/
2430232b578d3Smrg	    q
2430332b578d3Smrg	  }
2430432b578d3Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
2430532b578d3Smrg ;;
243062a51b5beSmrg
243072a51b5beSmrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
2430832b578d3Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
2430932b578d3Smrg ;;
2431032b578d3Smrg  esac
2431132b578d3Smrg
2431232b578d3Smrg
243132a51b5beSmrg  case $ac_file$ac_mode in
243142a51b5beSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
243152a51b5beSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
243162a51b5beSmrg  # are listed without --file.  Let's play safe and only enable the eval
243172a51b5beSmrg  # if we detect the quoting.
243182a51b5beSmrg  case $CONFIG_FILES in
243192a51b5beSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
243202a51b5beSmrg  *)   set x $CONFIG_FILES ;;
243212a51b5beSmrg  esac
243222a51b5beSmrg  shift
243232a51b5beSmrg  for mf
243242a51b5beSmrg  do
243252a51b5beSmrg    # Strip MF so we end up with the name of the file.
243262a51b5beSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
243272a51b5beSmrg    # Check whether this is an Automake generated Makefile or not.
243282a51b5beSmrg    # We used to match only the files named `Makefile.in', but
243292a51b5beSmrg    # some people rename them; so instead we look at the file content.
243302a51b5beSmrg    # Grep'ing the first line is not enough: some people post-process
243312a51b5beSmrg    # each Makefile.in and add a new line on top of each file to say so.
243322a51b5beSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
243332a51b5beSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
243342a51b5beSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2433532b578d3Smrg      dirpart=`$as_dirname -- "$mf" ||
2433632b578d3Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2433732b578d3Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
2433832b578d3Smrg	 X"$mf" : 'X\(//\)$' \| \
243392a51b5beSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
2434032b578d3Smrg$as_echo X"$mf" |
2434132b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2434232b578d3Smrg	    s//\1/
2434332b578d3Smrg	    q
2434432b578d3Smrg	  }
2434532b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2434632b578d3Smrg	    s//\1/
2434732b578d3Smrg	    q
2434832b578d3Smrg	  }
2434932b578d3Smrg	  /^X\(\/\/\)$/{
2435032b578d3Smrg	    s//\1/
2435132b578d3Smrg	    q
2435232b578d3Smrg	  }
2435332b578d3Smrg	  /^X\(\/\).*/{
2435432b578d3Smrg	    s//\1/
2435532b578d3Smrg	    q
2435632b578d3Smrg	  }
243572a51b5beSmrg	  s/.*/./; q'`
243582a51b5beSmrg    else
243592a51b5beSmrg      continue
243602a51b5beSmrg    fi
243612a51b5beSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
243622a51b5beSmrg    # from the Makefile without running `make'.
243632a51b5beSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
243642a51b5beSmrg    test -z "$DEPDIR" && continue
243652a51b5beSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
243662a51b5beSmrg    test -z "am__include" && continue
243672a51b5beSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
243682a51b5beSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
243692a51b5beSmrg    U=`sed -n 's/^U = //p' < "$mf"`
243702a51b5beSmrg    # Find all dependency output files, they are included files with
243712a51b5beSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
243722a51b5beSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
243732a51b5beSmrg    # expansion.
243742a51b5beSmrg    for file in `sed -n "
243752a51b5beSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
243762a51b5beSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
243772a51b5beSmrg      # Make sure the directory exists.
243782a51b5beSmrg      test -f "$dirpart/$file" && continue
2437932b578d3Smrg      fdir=`$as_dirname -- "$file" ||
2438032b578d3Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2438132b578d3Smrg	 X"$file" : 'X\(//\)[^/]' \| \
2438232b578d3Smrg	 X"$file" : 'X\(//\)$' \| \
243832a51b5beSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
2438432b578d3Smrg$as_echo X"$file" |
2438532b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2438632b578d3Smrg	    s//\1/
2438732b578d3Smrg	    q
2438832b578d3Smrg	  }
2438932b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2439032b578d3Smrg	    s//\1/
2439132b578d3Smrg	    q
2439232b578d3Smrg	  }
2439332b578d3Smrg	  /^X\(\/\/\)$/{
2439432b578d3Smrg	    s//\1/
2439532b578d3Smrg	    q
2439632b578d3Smrg	  }
2439732b578d3Smrg	  /^X\(\/\).*/{
2439832b578d3Smrg	    s//\1/
2439932b578d3Smrg	    q
2440032b578d3Smrg	  }
244012a51b5beSmrg	  s/.*/./; q'`
2440232b578d3Smrg      { as_dir=$dirpart/$fdir
2440332b578d3Smrg  case $as_dir in #(
2440432b578d3Smrg  -*) as_dir=./$as_dir;;
2440532b578d3Smrg  esac
2440632b578d3Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2440732b578d3Smrg    as_dirs=
2440832b578d3Smrg    while :; do
244092a51b5beSmrg      case $as_dir in #(
2441032b578d3Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2441132b578d3Smrg      *) as_qdir=$as_dir;;
2441232b578d3Smrg      esac
2441332b578d3Smrg      as_dirs="'$as_qdir' $as_dirs"
2441432b578d3Smrg      as_dir=`$as_dirname -- "$as_dir" ||
2441532b578d3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2441632b578d3Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
2441732b578d3Smrg	 X"$as_dir" : 'X\(//\)$' \| \
244182a51b5beSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2441932b578d3Smrg$as_echo X"$as_dir" |
2442032b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2442132b578d3Smrg	    s//\1/
2442232b578d3Smrg	    q
2442332b578d3Smrg	  }
2442432b578d3Smrg	  /^X\(\/\/\)[^/].*/{
2442532b578d3Smrg	    s//\1/
2442632b578d3Smrg	    q
2442732b578d3Smrg	  }
2442832b578d3Smrg	  /^X\(\/\/\)$/{
2442932b578d3Smrg	    s//\1/
2443032b578d3Smrg	    q
2443132b578d3Smrg	  }
2443232b578d3Smrg	  /^X\(\/\).*/{
2443332b578d3Smrg	    s//\1/
2443432b578d3Smrg	    q
2443532b578d3Smrg	  }
2443632b578d3Smrg	  s/.*/./; q'`
2443732b578d3Smrg      test -d "$as_dir" && break
2443832b578d3Smrg    done
244392a51b5beSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
244402a51b5beSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2444132b578d3Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
244422a51b5beSmrg   { (exit 1); exit 1; }; }; }
244432a51b5beSmrg      # echo "creating $dirpart/$file"
244442a51b5beSmrg      echo '# dummy' > "$dirpart/$file"
2444532b578d3Smrg    done
244462a51b5beSmrg  done
2444732b578d3Smrg}
2444832b578d3Smrg ;;
2444932b578d3Smrg
2445032b578d3Smrg  esac
2445132b578d3Smrgdone # for ac_tag
2445232b578d3Smrg
2445332b578d3Smrg
2445432b578d3Smrg{ (exit 0); exit 0; }
2445532b578d3Smrg_ACEOF
2445632b578d3Smrgchmod +x $CONFIG_STATUS
2445732b578d3Smrgac_clean_files=$ac_clean_files_save
244582a51b5beSmrg
244592a51b5beSmrgtest $ac_write_fail = 0 ||
244602a51b5beSmrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
244612a51b5beSmrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
244622a51b5beSmrg   { (exit 1); exit 1; }; }
2446332b578d3Smrg
2446432b578d3Smrg
2446532b578d3Smrg# configure is writing to config.log, and then calls config.status.
2446632b578d3Smrg# config.status does its own redirection, appending to config.log.
2446732b578d3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
2446832b578d3Smrg# by configure, so config.status won't be able to write to it; its
2446932b578d3Smrg# output is simply discarded.  So we exec the FD to /dev/null,
2447032b578d3Smrg# effectively closing config.log, so it can be properly (re)opened and
2447132b578d3Smrg# appended to by config.status.  When coming back to configure, we
2447232b578d3Smrg# need to make the FD available again.
2447332b578d3Smrgif test "$no_create" != yes; then
2447432b578d3Smrg  ac_cs_success=:
2447532b578d3Smrg  ac_config_status_args=
2447632b578d3Smrg  test "$silent" = yes &&
2447732b578d3Smrg    ac_config_status_args="$ac_config_status_args --quiet"
2447832b578d3Smrg  exec 5>/dev/null
2447932b578d3Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2448032b578d3Smrg  exec 5>>config.log
2448132b578d3Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2448232b578d3Smrg  # would make configure fail if this is the last instruction.
2448332b578d3Smrg  $ac_cs_success || { (exit 1); exit 1; }
244842a51b5beSmrgfi
244852a51b5beSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
244862a51b5beSmrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
244872a51b5beSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2448832b578d3Smrgfi
24489
24490