configure revision ff63a143
14456fccdSmrg#! /bin/sh
24456fccdSmrg# Guess values for system-dependent variables and create Makefiles.
3ff63a143Smrg# Generated by GNU Autoconf 2.66 for libXfixes 5.0.
44456fccdSmrg#
54456fccdSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
64456fccdSmrg#
7521070a0Smrg#
84456fccdSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9ff63a143Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10ff63a143Smrg# Foundation, Inc.
11521070a0Smrg#
12521070a0Smrg#
134456fccdSmrg# This configure script is free software; the Free Software Foundation
144456fccdSmrg# gives unlimited permission to copy, distribute and modify it.
15521070a0Smrg## -------------------- ##
16521070a0Smrg## M4sh Initialization. ##
17521070a0Smrg## -------------------- ##
184456fccdSmrg
1942d69509Smrg# Be more Bourne compatible
2042d69509SmrgDUALCASE=1; export DUALCASE # for MKS sh
21521070a0Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
224456fccdSmrg  emulate sh
234456fccdSmrg  NULLCMD=:
2442d69509Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
254456fccdSmrg  # is contrary to our usage.  Disable this feature.
264456fccdSmrg  alias -g '${1+"$@"}'='"$@"'
274456fccdSmrg  setopt NO_GLOB_SUBST
284456fccdSmrgelse
29521070a0Smrg  case `(set -o) 2>/dev/null` in #(
30521070a0Smrg  *posix*) :
31521070a0Smrg    set -o posix ;; #(
32521070a0Smrg  *) :
33521070a0Smrg     ;;
3442d69509Smrgesac
354456fccdSmrgfi
3642d69509Smrg
3742d69509Smrg
3842d69509Smrgas_nl='
3942d69509Smrg'
4042d69509Smrgexport as_nl
4142d69509Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4242d69509Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4342d69509Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4442d69509Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45521070a0Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46521070a0Smrg# but without wasting forks for bash or zsh.
47521070a0Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48521070a0Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49521070a0Smrg  as_echo='print -r --'
50521070a0Smrg  as_echo_n='print -rn --'
51521070a0Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5242d69509Smrg  as_echo='printf %s\n'
5342d69509Smrg  as_echo_n='printf %s'
5442d69509Smrgelse
5542d69509Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5642d69509Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5742d69509Smrg    as_echo_n='/usr/ucb/echo -n'
584456fccdSmrg  else
5942d69509Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6042d69509Smrg    as_echo_n_body='eval
6142d69509Smrg      arg=$1;
62521070a0Smrg      case $arg in #(
6342d69509Smrg      *"$as_nl"*)
6442d69509Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6542d69509Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6642d69509Smrg      esac;
6742d69509Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6842d69509Smrg    '
6942d69509Smrg    export as_echo_n_body
7042d69509Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
714456fccdSmrg  fi
7242d69509Smrg  export as_echo_body
7342d69509Smrg  as_echo='sh -c $as_echo_body as_echo'
7442d69509Smrgfi
7542d69509Smrg
7642d69509Smrg# The user is always right.
7742d69509Smrgif test "${PATH_SEPARATOR+set}" != set; then
7842d69509Smrg  PATH_SEPARATOR=:
7942d69509Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8042d69509Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8142d69509Smrg      PATH_SEPARATOR=';'
8242d69509Smrg  }
834456fccdSmrgfi
844456fccdSmrg
854456fccdSmrg
864456fccdSmrg# IFS
874456fccdSmrg# We need space, tab and new line, in precisely that order.  Quoting is
884456fccdSmrg# there to prevent editors from complaining about space-tab.
894456fccdSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
904456fccdSmrg# splitting by setting IFS to empty value.)
914456fccdSmrgIFS=" ""	$as_nl"
924456fccdSmrg
934456fccdSmrg# Find who we are.  Look in the path if we contain no directory separator.
94521070a0Smrgcase $0 in #((
954456fccdSmrg  *[\\/]* ) as_myself=$0 ;;
964456fccdSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974456fccdSmrgfor as_dir in $PATH
984456fccdSmrgdo
994456fccdSmrg  IFS=$as_save_IFS
1004456fccdSmrg  test -z "$as_dir" && as_dir=.
101521070a0Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102521070a0Smrg  done
1034456fccdSmrgIFS=$as_save_IFS
1044456fccdSmrg
1054456fccdSmrg     ;;
1064456fccdSmrgesac
1074456fccdSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1084456fccdSmrg# in which case we are not to be found in the path.
1094456fccdSmrgif test "x$as_myself" = x; then
1104456fccdSmrg  as_myself=$0
1114456fccdSmrgfi
1124456fccdSmrgif test ! -f "$as_myself"; then
11342d69509Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114521070a0Smrg  exit 1
1154456fccdSmrgfi
1164456fccdSmrg
117521070a0Smrg# Unset variables that we do not need and which cause bugs (e.g. in
118521070a0Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119521070a0Smrg# suppresses any "Segmentation fault" message there.  '((' could
120521070a0Smrg# trigger a bug in pdksh 5.2.14.
121521070a0Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
122521070a0Smrgdo eval test x\${$as_var+set} = xset \
123521070a0Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1244456fccdSmrgdone
1254456fccdSmrgPS1='$ '
1264456fccdSmrgPS2='> '
1274456fccdSmrgPS4='+ '
1284456fccdSmrg
1294456fccdSmrg# NLS nuisances.
13042d69509SmrgLC_ALL=C
13142d69509Smrgexport LC_ALL
13242d69509SmrgLANGUAGE=C
13342d69509Smrgexport LANGUAGE
1344456fccdSmrg
135521070a0Smrg# CDPATH.
136521070a0Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137521070a0Smrg
138521070a0Smrgif test "x$CONFIG_SHELL" = x; then
139521070a0Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140521070a0Smrg  emulate sh
141521070a0Smrg  NULLCMD=:
142521070a0Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143521070a0Smrg  # is contrary to our usage.  Disable this feature.
144521070a0Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145521070a0Smrg  setopt NO_GLOB_SUBST
146521070a0Smrgelse
147521070a0Smrg  case \`(set -o) 2>/dev/null\` in #(
148521070a0Smrg  *posix*) :
149521070a0Smrg    set -o posix ;; #(
150521070a0Smrg  *) :
151521070a0Smrg     ;;
152521070a0Smrgesac
153521070a0Smrgfi
154521070a0Smrg"
155521070a0Smrg  as_required="as_fn_return () { (exit \$1); }
156521070a0Smrgas_fn_success () { as_fn_return 0; }
157521070a0Smrgas_fn_failure () { as_fn_return 1; }
158521070a0Smrgas_fn_ret_success () { return 0; }
159521070a0Smrgas_fn_ret_failure () { return 1; }
160521070a0Smrg
161521070a0Smrgexitcode=0
162521070a0Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
163521070a0Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164521070a0Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165521070a0Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166521070a0Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167521070a0Smrg
168521070a0Smrgelse
169521070a0Smrg  exitcode=1; echo positional parameters were not saved.
170521070a0Smrgfi
171521070a0Smrgtest x\$exitcode = x0 || exit 1"
172521070a0Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173521070a0Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174521070a0Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175521070a0Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176ff63a143Smrg
177ff63a143Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178ff63a143Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179ff63a143Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180ff63a143Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181ff63a143Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
182ff63a143Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183ff63a143Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184521070a0Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
185521070a0Smrg  if (eval "$as_required") 2>/dev/null; then :
186521070a0Smrg  as_have_required=yes
187521070a0Smrgelse
188521070a0Smrg  as_have_required=no
189521070a0Smrgfi
190521070a0Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191521070a0Smrg
192521070a0Smrgelse
193521070a0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194521070a0Smrgas_found=false
195521070a0Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196521070a0Smrgdo
197521070a0Smrg  IFS=$as_save_IFS
198521070a0Smrg  test -z "$as_dir" && as_dir=.
199521070a0Smrg  as_found=:
200521070a0Smrg  case $as_dir in #(
201521070a0Smrg	 /*)
202521070a0Smrg	   for as_base in sh bash ksh sh5; do
203521070a0Smrg	     # Try only shells that exist, to save several forks.
204521070a0Smrg	     as_shell=$as_dir/$as_base
205521070a0Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206521070a0Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207521070a0Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
208521070a0Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209521070a0Smrg  break 2
210521070a0Smrgfi
211521070a0Smrgfi
212521070a0Smrg	   done;;
213521070a0Smrg       esac
214521070a0Smrg  as_found=false
215521070a0Smrgdone
216521070a0Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217521070a0Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218521070a0Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
219521070a0Smrgfi; }
220521070a0SmrgIFS=$as_save_IFS
221521070a0Smrg
222521070a0Smrg
223521070a0Smrg      if test "x$CONFIG_SHELL" != x; then :
224521070a0Smrg  # We cannot yet assume a decent shell, so we have to provide a
225521070a0Smrg	# neutralization value for shells without unset; and this also
226521070a0Smrg	# works around shells that cannot unset nonexistent variables.
227521070a0Smrg	BASH_ENV=/dev/null
228521070a0Smrg	ENV=/dev/null
229521070a0Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230521070a0Smrg	export CONFIG_SHELL
231521070a0Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232521070a0Smrgfi
233521070a0Smrg
234521070a0Smrg    if test x$as_have_required = xno; then :
235521070a0Smrg  $as_echo "$0: This script requires a shell more modern than all"
236521070a0Smrg  $as_echo "$0: the shells that I found on your system."
237521070a0Smrg  if test x${ZSH_VERSION+set} = xset ; then
238521070a0Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239521070a0Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240521070a0Smrg  else
241521070a0Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242521070a0Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243521070a0Smrg$0: about your system, including any error possibly output
244521070a0Smrg$0: before this message. Then install a modern shell, or
245521070a0Smrg$0: manually run the script under such a shell if you do
246521070a0Smrg$0: have one."
247521070a0Smrg  fi
248521070a0Smrg  exit 1
249521070a0Smrgfi
250521070a0Smrgfi
251521070a0Smrgfi
252521070a0SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253521070a0Smrgexport SHELL
254521070a0Smrg# Unset more variables known to interfere with behavior of common tools.
255521070a0SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256521070a0Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257521070a0Smrg
258521070a0Smrg## --------------------- ##
259521070a0Smrg## M4sh Shell Functions. ##
260521070a0Smrg## --------------------- ##
261521070a0Smrg# as_fn_unset VAR
262521070a0Smrg# ---------------
263521070a0Smrg# Portably unset VAR.
264521070a0Smrgas_fn_unset ()
265521070a0Smrg{
266521070a0Smrg  { eval $1=; unset $1;}
267521070a0Smrg}
268521070a0Smrgas_unset=as_fn_unset
269521070a0Smrg
270521070a0Smrg# as_fn_set_status STATUS
271521070a0Smrg# -----------------------
272521070a0Smrg# Set $? to STATUS, without forking.
273521070a0Smrgas_fn_set_status ()
274521070a0Smrg{
275521070a0Smrg  return $1
276521070a0Smrg} # as_fn_set_status
277521070a0Smrg
278521070a0Smrg# as_fn_exit STATUS
279521070a0Smrg# -----------------
280521070a0Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281521070a0Smrgas_fn_exit ()
282521070a0Smrg{
283521070a0Smrg  set +e
284521070a0Smrg  as_fn_set_status $1
285521070a0Smrg  exit $1
286521070a0Smrg} # as_fn_exit
287521070a0Smrg
288521070a0Smrg# as_fn_mkdir_p
289521070a0Smrg# -------------
290521070a0Smrg# Create "$as_dir" as a directory, including parents if necessary.
291521070a0Smrgas_fn_mkdir_p ()
292521070a0Smrg{
293521070a0Smrg
294521070a0Smrg  case $as_dir in #(
295521070a0Smrg  -*) as_dir=./$as_dir;;
296521070a0Smrg  esac
297521070a0Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298521070a0Smrg    as_dirs=
299521070a0Smrg    while :; do
300521070a0Smrg      case $as_dir in #(
301521070a0Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302521070a0Smrg      *) as_qdir=$as_dir;;
303521070a0Smrg      esac
304521070a0Smrg      as_dirs="'$as_qdir' $as_dirs"
305521070a0Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306521070a0Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307521070a0Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308521070a0Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309521070a0Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310521070a0Smrg$as_echo X"$as_dir" |
311521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312521070a0Smrg	    s//\1/
313521070a0Smrg	    q
314521070a0Smrg	  }
315521070a0Smrg	  /^X\(\/\/\)[^/].*/{
316521070a0Smrg	    s//\1/
317521070a0Smrg	    q
318521070a0Smrg	  }
319521070a0Smrg	  /^X\(\/\/\)$/{
320521070a0Smrg	    s//\1/
321521070a0Smrg	    q
322521070a0Smrg	  }
323521070a0Smrg	  /^X\(\/\).*/{
324521070a0Smrg	    s//\1/
325521070a0Smrg	    q
326521070a0Smrg	  }
327521070a0Smrg	  s/.*/./; q'`
328521070a0Smrg      test -d "$as_dir" && break
329521070a0Smrg    done
330521070a0Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331ff63a143Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332521070a0Smrg
333521070a0Smrg
334521070a0Smrg} # as_fn_mkdir_p
335521070a0Smrg# as_fn_append VAR VALUE
336521070a0Smrg# ----------------------
337521070a0Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338521070a0Smrg# advantage of any shell optimizations that allow amortized linear growth over
339521070a0Smrg# repeated appends, instead of the typical quadratic growth present in naive
340521070a0Smrg# implementations.
341521070a0Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342521070a0Smrg  eval 'as_fn_append ()
343521070a0Smrg  {
344521070a0Smrg    eval $1+=\$2
345521070a0Smrg  }'
346521070a0Smrgelse
347521070a0Smrg  as_fn_append ()
348521070a0Smrg  {
349521070a0Smrg    eval $1=\$$1\$2
350521070a0Smrg  }
351521070a0Smrgfi # as_fn_append
352521070a0Smrg
353521070a0Smrg# as_fn_arith ARG...
354521070a0Smrg# ------------------
355521070a0Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356521070a0Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357521070a0Smrg# must be portable across $(()) and expr.
358521070a0Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359521070a0Smrg  eval 'as_fn_arith ()
360521070a0Smrg  {
361521070a0Smrg    as_val=$(( $* ))
362521070a0Smrg  }'
363521070a0Smrgelse
364521070a0Smrg  as_fn_arith ()
365521070a0Smrg  {
366521070a0Smrg    as_val=`expr "$@" || test $? -eq 1`
367521070a0Smrg  }
368521070a0Smrgfi # as_fn_arith
369521070a0Smrg
370521070a0Smrg
371ff63a143Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372ff63a143Smrg# ----------------------------------------
373521070a0Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374521070a0Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375ff63a143Smrg# script with STATUS, using 1 if that was 0.
376521070a0Smrgas_fn_error ()
377521070a0Smrg{
378ff63a143Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379ff63a143Smrg  if test "$4"; then
380ff63a143Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381ff63a143Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382521070a0Smrg  fi
383ff63a143Smrg  $as_echo "$as_me: error: $2" >&2
384521070a0Smrg  as_fn_exit $as_status
385521070a0Smrg} # as_fn_error
386521070a0Smrg
3874456fccdSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3884456fccdSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3894456fccdSmrg  as_expr=expr
3904456fccdSmrgelse
3914456fccdSmrg  as_expr=false
3924456fccdSmrgfi
3934456fccdSmrg
3944456fccdSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3954456fccdSmrg  as_basename=basename
3964456fccdSmrgelse
3974456fccdSmrg  as_basename=false
3984456fccdSmrgfi
3994456fccdSmrg
400521070a0Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401521070a0Smrg  as_dirname=dirname
402521070a0Smrgelse
403521070a0Smrg  as_dirname=false
404521070a0Smrgfi
4054456fccdSmrg
4064456fccdSmrgas_me=`$as_basename -- "$0" ||
4074456fccdSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4084456fccdSmrg	 X"$0" : 'X\(//\)$' \| \
4094456fccdSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41042d69509Smrg$as_echo X/"$0" |
4114456fccdSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4124456fccdSmrg	    s//\1/
4134456fccdSmrg	    q
4144456fccdSmrg	  }
4154456fccdSmrg	  /^X\/\(\/\/\)$/{
4164456fccdSmrg	    s//\1/
4174456fccdSmrg	    q
4184456fccdSmrg	  }
4194456fccdSmrg	  /^X\/\(\/\).*/{
4204456fccdSmrg	    s//\1/
4214456fccdSmrg	    q
4224456fccdSmrg	  }
4234456fccdSmrg	  s/.*/./; q'`
4244456fccdSmrg
425521070a0Smrg# Avoid depending upon Character Ranges.
426521070a0Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427521070a0Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428521070a0Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429521070a0Smrgas_cr_digits='0123456789'
430521070a0Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4314456fccdSmrg
4324456fccdSmrg
433521070a0Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434521070a0Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435521070a0Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436521070a0Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437521070a0Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438521070a0Smrg  sed -n '
439521070a0Smrg    p
440521070a0Smrg    /[$]LINENO/=
441521070a0Smrg  ' <$as_myself |
442521070a0Smrg    sed '
443521070a0Smrg      s/[$]LINENO.*/&-/
444521070a0Smrg      t lineno
445521070a0Smrg      b
446521070a0Smrg      :lineno
447521070a0Smrg      N
448521070a0Smrg      :loop
449521070a0Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450521070a0Smrg      t loop
451521070a0Smrg      s/-\n.*//
452521070a0Smrg    ' >$as_me.lineno &&
453521070a0Smrg  chmod +x "$as_me.lineno" ||
454521070a0Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4554456fccdSmrg
456521070a0Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457521070a0Smrg  # (the dirname of $[0] is not the place where we might find the
458521070a0Smrg  # original and so on.  Autoconf is especially sensitive to this).
459521070a0Smrg  . "./$as_me.lineno"
460521070a0Smrg  # Exit status is that of the last command.
461521070a0Smrg  exit
4624456fccdSmrg}
4634456fccdSmrg
464521070a0SmrgECHO_C= ECHO_N= ECHO_T=
465521070a0Smrgcase `echo -n x` in #(((((
466521070a0Smrg-n*)
467521070a0Smrg  case `echo 'xy\c'` in
468521070a0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469521070a0Smrg  xy)  ECHO_C='\c';;
470521070a0Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471521070a0Smrg       ECHO_T='	';;
472521070a0Smrg  esac;;
473521070a0Smrg*)
474521070a0Smrg  ECHO_N='-n';;
475521070a0Smrgesac
4764456fccdSmrg
477521070a0Smrgrm -f conf$$ conf$$.exe conf$$.file
478521070a0Smrgif test -d conf$$.dir; then
479521070a0Smrg  rm -f conf$$.dir/conf$$.file
480521070a0Smrgelse
481521070a0Smrg  rm -f conf$$.dir
482521070a0Smrg  mkdir conf$$.dir 2>/dev/null
4834456fccdSmrgfi
484521070a0Smrgif (echo >conf$$.file) 2>/dev/null; then
485521070a0Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486521070a0Smrg    as_ln_s='ln -s'
487521070a0Smrg    # ... but there are two gotchas:
488521070a0Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489521070a0Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490521070a0Smrg    # In both cases, we have to default to `cp -p'.
491521070a0Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492521070a0Smrg      as_ln_s='cp -p'
493521070a0Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494521070a0Smrg    as_ln_s=ln
495521070a0Smrg  else
496521070a0Smrg    as_ln_s='cp -p'
497521070a0Smrg  fi
4984456fccdSmrgelse
499521070a0Smrg  as_ln_s='cp -p'
5004456fccdSmrgfi
501521070a0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502521070a0Smrgrmdir conf$$.dir 2>/dev/null
5034456fccdSmrg
504521070a0Smrgif mkdir -p . 2>/dev/null; then
505521070a0Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506521070a0Smrgelse
507521070a0Smrg  test -d ./-p && rmdir ./-p
508521070a0Smrg  as_mkdir_p=false
5094456fccdSmrgfi
5104456fccdSmrg
511521070a0Smrgif test -x / >/dev/null 2>&1; then
512521070a0Smrg  as_test_x='test -x'
5134456fccdSmrgelse
514521070a0Smrg  if ls -dL / >/dev/null 2>&1; then
515521070a0Smrg    as_ls_L_option=L
516521070a0Smrg  else
517521070a0Smrg    as_ls_L_option=
518521070a0Smrg  fi
519521070a0Smrg  as_test_x='
520521070a0Smrg    eval sh -c '\''
521521070a0Smrg      if test -d "$1"; then
522521070a0Smrg	test -d "$1/.";
523521070a0Smrg      else
524521070a0Smrg	case $1 in #(
525521070a0Smrg	-*)set "./$1";;
526521070a0Smrg	esac;
527521070a0Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528521070a0Smrg	???[sx]*):;;*)false;;esac;fi
529521070a0Smrg    '\'' sh
530521070a0Smrg  '
5314456fccdSmrgfi
532521070a0Smrgas_executable_p=$as_test_x
5334456fccdSmrg
534521070a0Smrg# Sed expression to map a string onto a valid CPP name.
535521070a0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5364456fccdSmrg
537521070a0Smrg# Sed expression to map a string onto a valid variable name.
538521070a0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5394456fccdSmrg
5404456fccdSmrgSHELL=${CONFIG_SHELL-/bin/sh}
5414456fccdSmrg
5424456fccdSmrg
543521070a0Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
544521070a0Smrgexec 6>&1
5454456fccdSmrg
5464456fccdSmrg# Name of the host.
547ff63a143Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5484456fccdSmrg# so uname gets run too.
5494456fccdSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5504456fccdSmrg
5514456fccdSmrg#
5524456fccdSmrg# Initializations.
5534456fccdSmrg#
5544456fccdSmrgac_default_prefix=/usr/local
5554456fccdSmrgac_clean_files=
5564456fccdSmrgac_config_libobj_dir=.
5574456fccdSmrgLIBOBJS=
5584456fccdSmrgcross_compiling=no
5594456fccdSmrgsubdirs=
5604456fccdSmrgMFLAGS=
5614456fccdSmrgMAKEFLAGS=
5624456fccdSmrg
5634456fccdSmrg# Identity of this package.
5644456fccdSmrgPACKAGE_NAME='libXfixes'
5654456fccdSmrgPACKAGE_TARNAME='libXfixes'
566ff63a143SmrgPACKAGE_VERSION='5.0'
567ff63a143SmrgPACKAGE_STRING='libXfixes 5.0'
5684456fccdSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569521070a0SmrgPACKAGE_URL=''
5704456fccdSmrg
571ff63a143Smrgac_unique_file="Makefile.am"
5724456fccdSmrg# Factoring default headers for most tests.
5734456fccdSmrgac_includes_default="\
5744456fccdSmrg#include <stdio.h>
57542d69509Smrg#ifdef HAVE_SYS_TYPES_H
5764456fccdSmrg# include <sys/types.h>
5774456fccdSmrg#endif
57842d69509Smrg#ifdef HAVE_SYS_STAT_H
5794456fccdSmrg# include <sys/stat.h>
5804456fccdSmrg#endif
58142d69509Smrg#ifdef STDC_HEADERS
5824456fccdSmrg# include <stdlib.h>
5834456fccdSmrg# include <stddef.h>
5844456fccdSmrg#else
58542d69509Smrg# ifdef HAVE_STDLIB_H
5864456fccdSmrg#  include <stdlib.h>
5874456fccdSmrg# endif
5884456fccdSmrg#endif
58942d69509Smrg#ifdef HAVE_STRING_H
59042d69509Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5914456fccdSmrg#  include <memory.h>
5924456fccdSmrg# endif
5934456fccdSmrg# include <string.h>
5944456fccdSmrg#endif
59542d69509Smrg#ifdef HAVE_STRINGS_H
5964456fccdSmrg# include <strings.h>
5974456fccdSmrg#endif
59842d69509Smrg#ifdef HAVE_INTTYPES_H
5994456fccdSmrg# include <inttypes.h>
6004456fccdSmrg#endif
60142d69509Smrg#ifdef HAVE_STDINT_H
6024456fccdSmrg# include <stdint.h>
6034456fccdSmrg#endif
60442d69509Smrg#ifdef HAVE_UNISTD_H
6054456fccdSmrg# include <unistd.h>
6064456fccdSmrg#endif"
6074456fccdSmrg
60842d69509Smrgac_subst_vars='am__EXEEXT_FALSE
60942d69509Smrgam__EXEEXT_TRUE
61042d69509SmrgLTLIBOBJS
61142d69509SmrgLIBOBJS
61242d69509SmrgFIXESEXT_LIBS
61342d69509SmrgFIXESEXT_CFLAGS
61442d69509SmrgFIXESEXT_VERSION
615521070a0SmrgAM_BACKSLASH
616521070a0SmrgAM_DEFAULT_VERBOSITY
617521070a0SmrgMAN_SUBSTS
618521070a0SmrgXORG_MAN_PAGE
61942d69509SmrgADMIN_MAN_DIR
62042d69509SmrgDRIVER_MAN_DIR
62142d69509SmrgMISC_MAN_DIR
62242d69509SmrgFILE_MAN_DIR
62342d69509SmrgLIB_MAN_DIR
62442d69509SmrgAPP_MAN_DIR
62542d69509SmrgADMIN_MAN_SUFFIX
62642d69509SmrgDRIVER_MAN_SUFFIX
62742d69509SmrgMISC_MAN_SUFFIX
62842d69509SmrgFILE_MAN_SUFFIX
62942d69509SmrgLIB_MAN_SUFFIX
63042d69509SmrgAPP_MAN_SUFFIX
631521070a0SmrgINSTALL_CMD
632ff63a143SmrgPKG_CONFIG_LIBDIR
633ff63a143SmrgPKG_CONFIG_PATH
634521070a0SmrgPKG_CONFIG
63542d69509SmrgCHANGELOG_CMD
63642d69509SmrgCWARNFLAGS
63742d69509SmrgCPP
638521070a0SmrgOTOOL64
639521070a0SmrgOTOOL
640521070a0SmrgLIPO
64142d69509SmrgNMEDIT
64242d69509SmrgDSYMUTIL
64342d69509SmrgRANLIB
64442d69509SmrgAR
645521070a0SmrgOBJDUMP
64642d69509SmrgLN_S
647521070a0SmrgNM
648521070a0Smrgac_ct_DUMPBIN
649521070a0SmrgDUMPBIN
650521070a0SmrgLD
651521070a0SmrgFGREP
65242d69509SmrgEGREP
65342d69509SmrgGREP
65442d69509SmrgSED
65542d69509Smrgam__fastdepCC_FALSE
65642d69509Smrgam__fastdepCC_TRUE
65742d69509SmrgCCDEPMODE
65842d69509SmrgAMDEPBACKSLASH
65942d69509SmrgAMDEP_FALSE
66042d69509SmrgAMDEP_TRUE
66142d69509Smrgam__quote
66242d69509Smrgam__include
66342d69509SmrgDEPDIR
66442d69509SmrgOBJEXT
66542d69509SmrgEXEEXT
66642d69509Smrgac_ct_CC
66742d69509SmrgCPPFLAGS
66842d69509SmrgLDFLAGS
66942d69509SmrgCFLAGS
67042d69509SmrgCC
671ff63a143Smrghost_os
672ff63a143Smrghost_vendor
673ff63a143Smrghost_cpu
674ff63a143Smrghost
675ff63a143Smrgbuild_os
676ff63a143Smrgbuild_vendor
677ff63a143Smrgbuild_cpu
678ff63a143Smrgbuild
679ff63a143SmrgLIBTOOL
68042d69509SmrgMAINT
68142d69509SmrgMAINTAINER_MODE_FALSE
68242d69509SmrgMAINTAINER_MODE_TRUE
68342d69509Smrgam__untar
68442d69509Smrgam__tar
68542d69509SmrgAMTAR
68642d69509Smrgam__leading_dot
68742d69509SmrgSET_MAKE
68842d69509SmrgAWK
68942d69509Smrgmkdir_p
69042d69509SmrgMKDIR_P
69142d69509SmrgINSTALL_STRIP_PROGRAM
69242d69509SmrgSTRIP
69342d69509Smrginstall_sh
69442d69509SmrgMAKEINFO
69542d69509SmrgAUTOHEADER
69642d69509SmrgAUTOMAKE
69742d69509SmrgAUTOCONF
69842d69509SmrgACLOCAL
69942d69509SmrgVERSION
70042d69509SmrgPACKAGE
70142d69509SmrgCYGPATH_W
70242d69509Smrgam__isrc
70342d69509SmrgINSTALL_DATA
70442d69509SmrgINSTALL_SCRIPT
70542d69509SmrgINSTALL_PROGRAM
70642d69509Smrgtarget_alias
70742d69509Smrghost_alias
7084456fccdSmrgbuild_alias
70942d69509SmrgLIBS
71042d69509SmrgECHO_T
71142d69509SmrgECHO_N
71242d69509SmrgECHO_C
71342d69509SmrgDEFS
71442d69509Smrgmandir
71542d69509Smrglocaledir
71642d69509Smrglibdir
71742d69509Smrgpsdir
71842d69509Smrgpdfdir
71942d69509Smrgdvidir
72042d69509Smrghtmldir
72142d69509Smrginfodir
72242d69509Smrgdocdir
72342d69509Smrgoldincludedir
72442d69509Smrgincludedir
72542d69509Smrglocalstatedir
72642d69509Smrgsharedstatedir
72742d69509Smrgsysconfdir
72842d69509Smrgdatadir
72942d69509Smrgdatarootdir
73042d69509Smrglibexecdir
73142d69509Smrgsbindir
73242d69509Smrgbindir
73342d69509Smrgprogram_transform_name
73442d69509Smrgprefix
73542d69509Smrgexec_prefix
736521070a0SmrgPACKAGE_URL
73742d69509SmrgPACKAGE_BUGREPORT
73842d69509SmrgPACKAGE_STRING
73942d69509SmrgPACKAGE_VERSION
74042d69509SmrgPACKAGE_TARNAME
74142d69509SmrgPACKAGE_NAME
74242d69509SmrgPATH_SEPARATOR
74342d69509SmrgSHELL'
74442d69509Smrgac_subst_files=''
74542d69509Smrgac_user_opts='
74642d69509Smrgenable_option_checking
74742d69509Smrgenable_maintainer_mode
74842d69509Smrgenable_shared
74942d69509Smrgenable_static
750521070a0Smrgwith_pic
75142d69509Smrgenable_fast_install
752ff63a143Smrgenable_dependency_tracking
75342d69509Smrgwith_gnu_ld
75442d69509Smrgenable_libtool_lock
75542d69509Smrgenable_strict_compilation
756521070a0Smrgenable_silent_rules
75742d69509Smrg'
75842d69509Smrg      ac_precious_vars='build_alias
7594456fccdSmrghost_alias
7604456fccdSmrgtarget_alias
7614456fccdSmrgCC
7624456fccdSmrgCFLAGS
7634456fccdSmrgLDFLAGS
76442d69509SmrgLIBS
7654456fccdSmrgCPPFLAGS
7664456fccdSmrgCPP
7674456fccdSmrgPKG_CONFIG
768ff63a143SmrgPKG_CONFIG_PATH
769ff63a143SmrgPKG_CONFIG_LIBDIR
7704456fccdSmrgFIXESEXT_CFLAGS
7714456fccdSmrgFIXESEXT_LIBS'
7724456fccdSmrg
7734456fccdSmrg
7744456fccdSmrg# Initialize some variables set by options.
7754456fccdSmrgac_init_help=
7764456fccdSmrgac_init_version=false
77742d69509Smrgac_unrecognized_opts=
77842d69509Smrgac_unrecognized_sep=
7794456fccdSmrg# The variables have the same names as the options, with
7804456fccdSmrg# dashes changed to underlines.
7814456fccdSmrgcache_file=/dev/null
7824456fccdSmrgexec_prefix=NONE
7834456fccdSmrgno_create=
7844456fccdSmrgno_recursion=
7854456fccdSmrgprefix=NONE
7864456fccdSmrgprogram_prefix=NONE
7874456fccdSmrgprogram_suffix=NONE
7884456fccdSmrgprogram_transform_name=s,x,x,
7894456fccdSmrgsilent=
7904456fccdSmrgsite=
7914456fccdSmrgsrcdir=
7924456fccdSmrgverbose=
7934456fccdSmrgx_includes=NONE
7944456fccdSmrgx_libraries=NONE
7954456fccdSmrg
7964456fccdSmrg# Installation directory options.
7974456fccdSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7984456fccdSmrg# and all the variables that are supposed to be based on exec_prefix
7994456fccdSmrg# by default will actually change.
8004456fccdSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
8014456fccdSmrg# (The list follows the same order as the GNU Coding Standards.)
8024456fccdSmrgbindir='${exec_prefix}/bin'
8034456fccdSmrgsbindir='${exec_prefix}/sbin'
8044456fccdSmrglibexecdir='${exec_prefix}/libexec'
8054456fccdSmrgdatarootdir='${prefix}/share'
8064456fccdSmrgdatadir='${datarootdir}'
8074456fccdSmrgsysconfdir='${prefix}/etc'
8084456fccdSmrgsharedstatedir='${prefix}/com'
8094456fccdSmrglocalstatedir='${prefix}/var'
8104456fccdSmrgincludedir='${prefix}/include'
8114456fccdSmrgoldincludedir='/usr/include'
8124456fccdSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8134456fccdSmrginfodir='${datarootdir}/info'
8144456fccdSmrghtmldir='${docdir}'
8154456fccdSmrgdvidir='${docdir}'
8164456fccdSmrgpdfdir='${docdir}'
8174456fccdSmrgpsdir='${docdir}'
8184456fccdSmrglibdir='${exec_prefix}/lib'
8194456fccdSmrglocaledir='${datarootdir}/locale'
8204456fccdSmrgmandir='${datarootdir}/man'
8214456fccdSmrg
8224456fccdSmrgac_prev=
8234456fccdSmrgac_dashdash=
8244456fccdSmrgfor ac_option
8254456fccdSmrgdo
8264456fccdSmrg  # If the previous option needs an argument, assign it.
8274456fccdSmrg  if test -n "$ac_prev"; then
8284456fccdSmrg    eval $ac_prev=\$ac_option
8294456fccdSmrg    ac_prev=
8304456fccdSmrg    continue
8314456fccdSmrg  fi
8324456fccdSmrg
8334456fccdSmrg  case $ac_option in
8344456fccdSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8354456fccdSmrg  *)	ac_optarg=yes ;;
8364456fccdSmrg  esac
8374456fccdSmrg
8384456fccdSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8394456fccdSmrg
8404456fccdSmrg  case $ac_dashdash$ac_option in
8414456fccdSmrg  --)
8424456fccdSmrg    ac_dashdash=yes ;;
8434456fccdSmrg
8444456fccdSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8454456fccdSmrg    ac_prev=bindir ;;
8464456fccdSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8474456fccdSmrg    bindir=$ac_optarg ;;
8484456fccdSmrg
8494456fccdSmrg  -build | --build | --buil | --bui | --bu)
8504456fccdSmrg    ac_prev=build_alias ;;
8514456fccdSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8524456fccdSmrg    build_alias=$ac_optarg ;;
8534456fccdSmrg
8544456fccdSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8554456fccdSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8564456fccdSmrg    ac_prev=cache_file ;;
8574456fccdSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8584456fccdSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8594456fccdSmrg    cache_file=$ac_optarg ;;
8604456fccdSmrg
8614456fccdSmrg  --config-cache | -C)
8624456fccdSmrg    cache_file=config.cache ;;
8634456fccdSmrg
8644456fccdSmrg  -datadir | --datadir | --datadi | --datad)
8654456fccdSmrg    ac_prev=datadir ;;
8664456fccdSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8674456fccdSmrg    datadir=$ac_optarg ;;
8684456fccdSmrg
8694456fccdSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8704456fccdSmrg  | --dataroo | --dataro | --datar)
8714456fccdSmrg    ac_prev=datarootdir ;;
8724456fccdSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8734456fccdSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8744456fccdSmrg    datarootdir=$ac_optarg ;;
8754456fccdSmrg
8764456fccdSmrg  -disable-* | --disable-*)
87742d69509Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8784456fccdSmrg    # Reject names that are not valid shell variable names.
87942d69509Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880ff63a143Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88142d69509Smrg    ac_useropt_orig=$ac_useropt
88242d69509Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88342d69509Smrg    case $ac_user_opts in
88442d69509Smrg      *"
88542d69509Smrg"enable_$ac_useropt"
88642d69509Smrg"*) ;;
88742d69509Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
88842d69509Smrg	 ac_unrecognized_sep=', ';;
88942d69509Smrg    esac
89042d69509Smrg    eval enable_$ac_useropt=no ;;
8914456fccdSmrg
8924456fccdSmrg  -docdir | --docdir | --docdi | --doc | --do)
8934456fccdSmrg    ac_prev=docdir ;;
8944456fccdSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8954456fccdSmrg    docdir=$ac_optarg ;;
8964456fccdSmrg
8974456fccdSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8984456fccdSmrg    ac_prev=dvidir ;;
8994456fccdSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9004456fccdSmrg    dvidir=$ac_optarg ;;
9014456fccdSmrg
9024456fccdSmrg  -enable-* | --enable-*)
90342d69509Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9044456fccdSmrg    # Reject names that are not valid shell variable names.
90542d69509Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906ff63a143Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
90742d69509Smrg    ac_useropt_orig=$ac_useropt
90842d69509Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
90942d69509Smrg    case $ac_user_opts in
91042d69509Smrg      *"
91142d69509Smrg"enable_$ac_useropt"
91242d69509Smrg"*) ;;
91342d69509Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
91442d69509Smrg	 ac_unrecognized_sep=', ';;
91542d69509Smrg    esac
91642d69509Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9174456fccdSmrg
9184456fccdSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9194456fccdSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9204456fccdSmrg  | --exec | --exe | --ex)
9214456fccdSmrg    ac_prev=exec_prefix ;;
9224456fccdSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9234456fccdSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9244456fccdSmrg  | --exec=* | --exe=* | --ex=*)
9254456fccdSmrg    exec_prefix=$ac_optarg ;;
9264456fccdSmrg
9274456fccdSmrg  -gas | --gas | --ga | --g)
9284456fccdSmrg    # Obsolete; use --with-gas.
9294456fccdSmrg    with_gas=yes ;;
9304456fccdSmrg
9314456fccdSmrg  -help | --help | --hel | --he | -h)
9324456fccdSmrg    ac_init_help=long ;;
9334456fccdSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9344456fccdSmrg    ac_init_help=recursive ;;
9354456fccdSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9364456fccdSmrg    ac_init_help=short ;;
9374456fccdSmrg
9384456fccdSmrg  -host | --host | --hos | --ho)
9394456fccdSmrg    ac_prev=host_alias ;;
9404456fccdSmrg  -host=* | --host=* | --hos=* | --ho=*)
9414456fccdSmrg    host_alias=$ac_optarg ;;
9424456fccdSmrg
9434456fccdSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9444456fccdSmrg    ac_prev=htmldir ;;
9454456fccdSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9464456fccdSmrg  | --ht=*)
9474456fccdSmrg    htmldir=$ac_optarg ;;
9484456fccdSmrg
9494456fccdSmrg  -includedir | --includedir | --includedi | --included | --include \
9504456fccdSmrg  | --includ | --inclu | --incl | --inc)
9514456fccdSmrg    ac_prev=includedir ;;
9524456fccdSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9534456fccdSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9544456fccdSmrg    includedir=$ac_optarg ;;
9554456fccdSmrg
9564456fccdSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9574456fccdSmrg    ac_prev=infodir ;;
9584456fccdSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9594456fccdSmrg    infodir=$ac_optarg ;;
9604456fccdSmrg
9614456fccdSmrg  -libdir | --libdir | --libdi | --libd)
9624456fccdSmrg    ac_prev=libdir ;;
9634456fccdSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9644456fccdSmrg    libdir=$ac_optarg ;;
9654456fccdSmrg
9664456fccdSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9674456fccdSmrg  | --libexe | --libex | --libe)
9684456fccdSmrg    ac_prev=libexecdir ;;
9694456fccdSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9704456fccdSmrg  | --libexe=* | --libex=* | --libe=*)
9714456fccdSmrg    libexecdir=$ac_optarg ;;
9724456fccdSmrg
9734456fccdSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9744456fccdSmrg    ac_prev=localedir ;;
9754456fccdSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9764456fccdSmrg    localedir=$ac_optarg ;;
9774456fccdSmrg
9784456fccdSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9794456fccdSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9804456fccdSmrg    ac_prev=localstatedir ;;
9814456fccdSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9824456fccdSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9834456fccdSmrg    localstatedir=$ac_optarg ;;
9844456fccdSmrg
9854456fccdSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9864456fccdSmrg    ac_prev=mandir ;;
9874456fccdSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9884456fccdSmrg    mandir=$ac_optarg ;;
9894456fccdSmrg
9904456fccdSmrg  -nfp | --nfp | --nf)
9914456fccdSmrg    # Obsolete; use --without-fp.
9924456fccdSmrg    with_fp=no ;;
9934456fccdSmrg
9944456fccdSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9954456fccdSmrg  | --no-cr | --no-c | -n)
9964456fccdSmrg    no_create=yes ;;
9974456fccdSmrg
9984456fccdSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9994456fccdSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10004456fccdSmrg    no_recursion=yes ;;
10014456fccdSmrg
10024456fccdSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10034456fccdSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10044456fccdSmrg  | --oldin | --oldi | --old | --ol | --o)
10054456fccdSmrg    ac_prev=oldincludedir ;;
10064456fccdSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10074456fccdSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10084456fccdSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10094456fccdSmrg    oldincludedir=$ac_optarg ;;
10104456fccdSmrg
10114456fccdSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10124456fccdSmrg    ac_prev=prefix ;;
10134456fccdSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10144456fccdSmrg    prefix=$ac_optarg ;;
10154456fccdSmrg
10164456fccdSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10174456fccdSmrg  | --program-pre | --program-pr | --program-p)
10184456fccdSmrg    ac_prev=program_prefix ;;
10194456fccdSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10204456fccdSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10214456fccdSmrg    program_prefix=$ac_optarg ;;
10224456fccdSmrg
10234456fccdSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10244456fccdSmrg  | --program-suf | --program-su | --program-s)
10254456fccdSmrg    ac_prev=program_suffix ;;
10264456fccdSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10274456fccdSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10284456fccdSmrg    program_suffix=$ac_optarg ;;
10294456fccdSmrg
10304456fccdSmrg  -program-transform-name | --program-transform-name \
10314456fccdSmrg  | --program-transform-nam | --program-transform-na \
10324456fccdSmrg  | --program-transform-n | --program-transform- \
10334456fccdSmrg  | --program-transform | --program-transfor \
10344456fccdSmrg  | --program-transfo | --program-transf \
10354456fccdSmrg  | --program-trans | --program-tran \
10364456fccdSmrg  | --progr-tra | --program-tr | --program-t)
10374456fccdSmrg    ac_prev=program_transform_name ;;
10384456fccdSmrg  -program-transform-name=* | --program-transform-name=* \
10394456fccdSmrg  | --program-transform-nam=* | --program-transform-na=* \
10404456fccdSmrg  | --program-transform-n=* | --program-transform-=* \
10414456fccdSmrg  | --program-transform=* | --program-transfor=* \
10424456fccdSmrg  | --program-transfo=* | --program-transf=* \
10434456fccdSmrg  | --program-trans=* | --program-tran=* \
10444456fccdSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10454456fccdSmrg    program_transform_name=$ac_optarg ;;
10464456fccdSmrg
10474456fccdSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10484456fccdSmrg    ac_prev=pdfdir ;;
10494456fccdSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10504456fccdSmrg    pdfdir=$ac_optarg ;;
10514456fccdSmrg
10524456fccdSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10534456fccdSmrg    ac_prev=psdir ;;
10544456fccdSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10554456fccdSmrg    psdir=$ac_optarg ;;
10564456fccdSmrg
10574456fccdSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10584456fccdSmrg  | -silent | --silent | --silen | --sile | --sil)
10594456fccdSmrg    silent=yes ;;
10604456fccdSmrg
10614456fccdSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10624456fccdSmrg    ac_prev=sbindir ;;
10634456fccdSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10644456fccdSmrg  | --sbi=* | --sb=*)
10654456fccdSmrg    sbindir=$ac_optarg ;;
10664456fccdSmrg
10674456fccdSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10684456fccdSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10694456fccdSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10704456fccdSmrg  | --sha | --sh)
10714456fccdSmrg    ac_prev=sharedstatedir ;;
10724456fccdSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10734456fccdSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10744456fccdSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10754456fccdSmrg  | --sha=* | --sh=*)
10764456fccdSmrg    sharedstatedir=$ac_optarg ;;
10774456fccdSmrg
10784456fccdSmrg  -site | --site | --sit)
10794456fccdSmrg    ac_prev=site ;;
10804456fccdSmrg  -site=* | --site=* | --sit=*)
10814456fccdSmrg    site=$ac_optarg ;;
10824456fccdSmrg
10834456fccdSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10844456fccdSmrg    ac_prev=srcdir ;;
10854456fccdSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10864456fccdSmrg    srcdir=$ac_optarg ;;
10874456fccdSmrg
10884456fccdSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10894456fccdSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10904456fccdSmrg    ac_prev=sysconfdir ;;
10914456fccdSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10924456fccdSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10934456fccdSmrg    sysconfdir=$ac_optarg ;;
10944456fccdSmrg
10954456fccdSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10964456fccdSmrg    ac_prev=target_alias ;;
10974456fccdSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10984456fccdSmrg    target_alias=$ac_optarg ;;
10994456fccdSmrg
11004456fccdSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11014456fccdSmrg    verbose=yes ;;
11024456fccdSmrg
11034456fccdSmrg  -version | --version | --versio | --versi | --vers | -V)
11044456fccdSmrg    ac_init_version=: ;;
11054456fccdSmrg
11064456fccdSmrg  -with-* | --with-*)
110742d69509Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11084456fccdSmrg    # Reject names that are not valid shell variable names.
110942d69509Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110ff63a143Smrg      as_fn_error $? "invalid package name: $ac_useropt"
111142d69509Smrg    ac_useropt_orig=$ac_useropt
111242d69509Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
111342d69509Smrg    case $ac_user_opts in
111442d69509Smrg      *"
111542d69509Smrg"with_$ac_useropt"
111642d69509Smrg"*) ;;
111742d69509Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
111842d69509Smrg	 ac_unrecognized_sep=', ';;
111942d69509Smrg    esac
112042d69509Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11214456fccdSmrg
11224456fccdSmrg  -without-* | --without-*)
112342d69509Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11244456fccdSmrg    # Reject names that are not valid shell variable names.
112542d69509Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126ff63a143Smrg      as_fn_error $? "invalid package name: $ac_useropt"
112742d69509Smrg    ac_useropt_orig=$ac_useropt
112842d69509Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112942d69509Smrg    case $ac_user_opts in
113042d69509Smrg      *"
113142d69509Smrg"with_$ac_useropt"
113242d69509Smrg"*) ;;
113342d69509Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
113442d69509Smrg	 ac_unrecognized_sep=', ';;
113542d69509Smrg    esac
113642d69509Smrg    eval with_$ac_useropt=no ;;
11374456fccdSmrg
11384456fccdSmrg  --x)
11394456fccdSmrg    # Obsolete; use --with-x.
11404456fccdSmrg    with_x=yes ;;
11414456fccdSmrg
11424456fccdSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11434456fccdSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11444456fccdSmrg    ac_prev=x_includes ;;
11454456fccdSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11464456fccdSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11474456fccdSmrg    x_includes=$ac_optarg ;;
11484456fccdSmrg
11494456fccdSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11504456fccdSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11514456fccdSmrg    ac_prev=x_libraries ;;
11524456fccdSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11534456fccdSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11544456fccdSmrg    x_libraries=$ac_optarg ;;
11554456fccdSmrg
1156ff63a143Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157ff63a143SmrgTry \`$0 --help' for more information"
11584456fccdSmrg    ;;
11594456fccdSmrg
11604456fccdSmrg  *=*)
11614456fccdSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11624456fccdSmrg    # Reject names that are not valid shell variable names.
1163521070a0Smrg    case $ac_envvar in #(
1164521070a0Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1165ff63a143Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166521070a0Smrg    esac
11674456fccdSmrg    eval $ac_envvar=\$ac_optarg
11684456fccdSmrg    export $ac_envvar ;;
11694456fccdSmrg
11704456fccdSmrg  *)
11714456fccdSmrg    # FIXME: should be removed in autoconf 3.0.
117242d69509Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11734456fccdSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
117442d69509Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11754456fccdSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11764456fccdSmrg    ;;
11774456fccdSmrg
11784456fccdSmrg  esac
11794456fccdSmrgdone
11804456fccdSmrg
11814456fccdSmrgif test -n "$ac_prev"; then
11824456fccdSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183ff63a143Smrg  as_fn_error $? "missing argument to $ac_option"
11844456fccdSmrgfi
11854456fccdSmrg
118642d69509Smrgif test -n "$ac_unrecognized_opts"; then
118742d69509Smrg  case $enable_option_checking in
118842d69509Smrg    no) ;;
1189ff63a143Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
119042d69509Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
119142d69509Smrg  esac
119242d69509Smrgfi
119342d69509Smrg
119442d69509Smrg# Check all directory arguments for consistency.
11954456fccdSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11964456fccdSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11974456fccdSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11984456fccdSmrg		libdir localedir mandir
11994456fccdSmrgdo
12004456fccdSmrg  eval ac_val=\$$ac_var
120142d69509Smrg  # Remove trailing slashes.
120242d69509Smrg  case $ac_val in
120342d69509Smrg    */ )
120442d69509Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
120542d69509Smrg      eval $ac_var=\$ac_val;;
120642d69509Smrg  esac
120742d69509Smrg  # Be sure to have absolute directory names.
12084456fccdSmrg  case $ac_val in
12094456fccdSmrg    [\\/$]* | ?:[\\/]* )  continue;;
12104456fccdSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12114456fccdSmrg  esac
1212ff63a143Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12134456fccdSmrgdone
12144456fccdSmrg
12154456fccdSmrg# There might be people who depend on the old broken behavior: `$host'
12164456fccdSmrg# used to hold the argument of --host etc.
12174456fccdSmrg# FIXME: To remove some day.
12184456fccdSmrgbuild=$build_alias
12194456fccdSmrghost=$host_alias
12204456fccdSmrgtarget=$target_alias
12214456fccdSmrg
12224456fccdSmrg# FIXME: To remove some day.
12234456fccdSmrgif test "x$host_alias" != x; then
12244456fccdSmrg  if test "x$build_alias" = x; then
12254456fccdSmrg    cross_compiling=maybe
1226ff63a143Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227ff63a143Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
12284456fccdSmrg  elif test "x$build_alias" != "x$host_alias"; then
12294456fccdSmrg    cross_compiling=yes
12304456fccdSmrg  fi
12314456fccdSmrgfi
12324456fccdSmrg
12334456fccdSmrgac_tool_prefix=
12344456fccdSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12354456fccdSmrg
12364456fccdSmrgtest "$silent" = yes && exec 6>/dev/null
12374456fccdSmrg
12384456fccdSmrg
12394456fccdSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12404456fccdSmrgac_ls_di=`ls -di .` &&
12414456fccdSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242ff63a143Smrg  as_fn_error $? "working directory cannot be determined"
12434456fccdSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244ff63a143Smrg  as_fn_error $? "pwd does not report name of working directory"
12454456fccdSmrg
12464456fccdSmrg
12474456fccdSmrg# Find the source files, if location was not specified.
12484456fccdSmrgif test -z "$srcdir"; then
12494456fccdSmrg  ac_srcdir_defaulted=yes
12504456fccdSmrg  # Try the directory containing this script, then the parent directory.
125142d69509Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
125242d69509Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
125342d69509Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
125442d69509Smrg	 X"$as_myself" : 'X\(//\)$' \| \
125542d69509Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
125642d69509Smrg$as_echo X"$as_myself" |
12574456fccdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12584456fccdSmrg	    s//\1/
12594456fccdSmrg	    q
12604456fccdSmrg	  }
12614456fccdSmrg	  /^X\(\/\/\)[^/].*/{
12624456fccdSmrg	    s//\1/
12634456fccdSmrg	    q
12644456fccdSmrg	  }
12654456fccdSmrg	  /^X\(\/\/\)$/{
12664456fccdSmrg	    s//\1/
12674456fccdSmrg	    q
12684456fccdSmrg	  }
12694456fccdSmrg	  /^X\(\/\).*/{
12704456fccdSmrg	    s//\1/
12714456fccdSmrg	    q
12724456fccdSmrg	  }
12734456fccdSmrg	  s/.*/./; q'`
12744456fccdSmrg  srcdir=$ac_confdir
12754456fccdSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12764456fccdSmrg    srcdir=..
12774456fccdSmrg  fi
12784456fccdSmrgelse
12794456fccdSmrg  ac_srcdir_defaulted=no
12804456fccdSmrgfi
12814456fccdSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12824456fccdSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283ff63a143Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12844456fccdSmrgfi
12854456fccdSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12864456fccdSmrgac_abs_confdir=`(
1287ff63a143Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12884456fccdSmrg	pwd)`
12894456fccdSmrg# When building in place, set srcdir=.
12904456fccdSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12914456fccdSmrg  srcdir=.
12924456fccdSmrgfi
12934456fccdSmrg# Remove unnecessary trailing slashes from srcdir.
12944456fccdSmrg# Double slashes in file names in object file debugging info
12954456fccdSmrg# mess up M-x gdb in Emacs.
12964456fccdSmrgcase $srcdir in
12974456fccdSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12984456fccdSmrgesac
12994456fccdSmrgfor ac_var in $ac_precious_vars; do
13004456fccdSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13014456fccdSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
13024456fccdSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13034456fccdSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13044456fccdSmrgdone
13054456fccdSmrg
13064456fccdSmrg#
13074456fccdSmrg# Report the --help message.
13084456fccdSmrg#
13094456fccdSmrgif test "$ac_init_help" = "long"; then
13104456fccdSmrg  # Omit some internal or obsolete options to make the list less imposing.
13114456fccdSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
13124456fccdSmrg  cat <<_ACEOF
1313ff63a143Smrg\`configure' configures libXfixes 5.0 to adapt to many kinds of systems.
13144456fccdSmrg
13154456fccdSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13164456fccdSmrg
13174456fccdSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13184456fccdSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13194456fccdSmrg
13204456fccdSmrgDefaults for the options are specified in brackets.
13214456fccdSmrg
13224456fccdSmrgConfiguration:
13234456fccdSmrg  -h, --help              display this help and exit
13244456fccdSmrg      --help=short        display options specific to this package
13254456fccdSmrg      --help=recursive    display the short help of all the included packages
13264456fccdSmrg  -V, --version           display version information and exit
1327ff63a143Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13284456fccdSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13294456fccdSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13304456fccdSmrg  -n, --no-create         do not create output files
13314456fccdSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13324456fccdSmrg
13334456fccdSmrgInstallation directories:
13344456fccdSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
133542d69509Smrg                          [$ac_default_prefix]
13364456fccdSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
133742d69509Smrg                          [PREFIX]
13384456fccdSmrg
13394456fccdSmrgBy default, \`make install' will install all the files in
13404456fccdSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13414456fccdSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13424456fccdSmrgfor instance \`--prefix=\$HOME'.
13434456fccdSmrg
13444456fccdSmrgFor better control, use the options below.
13454456fccdSmrg
13464456fccdSmrgFine tuning of the installation directories:
134742d69509Smrg  --bindir=DIR            user executables [EPREFIX/bin]
134842d69509Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
134942d69509Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
135042d69509Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
135142d69509Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
135242d69509Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
135342d69509Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
135442d69509Smrg  --includedir=DIR        C header files [PREFIX/include]
135542d69509Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
135642d69509Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
135742d69509Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
135842d69509Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
135942d69509Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
136042d69509Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
136142d69509Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfixes]
136242d69509Smrg  --htmldir=DIR           html documentation [DOCDIR]
136342d69509Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
136442d69509Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
136542d69509Smrg  --psdir=DIR             ps documentation [DOCDIR]
13664456fccdSmrg_ACEOF
13674456fccdSmrg
13684456fccdSmrg  cat <<\_ACEOF
13694456fccdSmrg
13704456fccdSmrgProgram names:
13714456fccdSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13724456fccdSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13734456fccdSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13744456fccdSmrg
13754456fccdSmrgSystem types:
13764456fccdSmrg  --build=BUILD     configure for building on BUILD [guessed]
13774456fccdSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13784456fccdSmrg_ACEOF
13794456fccdSmrgfi
13804456fccdSmrg
13814456fccdSmrgif test -n "$ac_init_help"; then
13824456fccdSmrg  case $ac_init_help in
1383ff63a143Smrg     short | recursive ) echo "Configuration of libXfixes 5.0:";;
13844456fccdSmrg   esac
13854456fccdSmrg  cat <<\_ACEOF
13864456fccdSmrg
13874456fccdSmrgOptional Features:
138842d69509Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
13894456fccdSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13904456fccdSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13914456fccdSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13924456fccdSmrg			  (and sometimes confusing) to the casual installer
13934456fccdSmrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
13944456fccdSmrg  --enable-static[=PKGS]  build static libraries [default=yes]
13954456fccdSmrg  --enable-fast-install[=PKGS]
13964456fccdSmrg                          optimize for fast installation [default=yes]
1397ff63a143Smrg  --disable-dependency-tracking  speeds up one-time build
1398ff63a143Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
13994456fccdSmrg  --disable-libtool-lock  avoid locking (might break parallel builds)
140042d69509Smrg  --enable-strict-compilation
140142d69509Smrg                          Enable all warnings from compiler and make them
140242d69509Smrg                          errors (default: disabled)
1403521070a0Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1404521070a0Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
14054456fccdSmrg
14064456fccdSmrgOptional Packages:
14074456fccdSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14084456fccdSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14094456fccdSmrg  --with-pic              try to use only PIC/non-PIC objects [default=use
14104456fccdSmrg                          both]
1411521070a0Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
14124456fccdSmrg
14134456fccdSmrgSome influential environment variables:
14144456fccdSmrg  CC          C compiler command
14154456fccdSmrg  CFLAGS      C compiler flags
14164456fccdSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14174456fccdSmrg              nonstandard directory <lib dir>
141842d69509Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1419521070a0Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14204456fccdSmrg              you have headers in a nonstandard directory <include dir>
14214456fccdSmrg  CPP         C preprocessor
14224456fccdSmrg  PKG_CONFIG  path to pkg-config utility
1423ff63a143Smrg  PKG_CONFIG_PATH
1424ff63a143Smrg              directories to add to pkg-config's search path
1425ff63a143Smrg  PKG_CONFIG_LIBDIR
1426ff63a143Smrg              path overriding pkg-config's built-in search path
14274456fccdSmrg  FIXESEXT_CFLAGS
14284456fccdSmrg              C compiler flags for FIXESEXT, overriding pkg-config
14294456fccdSmrg  FIXESEXT_LIBS
14304456fccdSmrg              linker flags for FIXESEXT, overriding pkg-config
14314456fccdSmrg
14324456fccdSmrgUse these variables to override the choices made by `configure' or to help
14334456fccdSmrgit to find libraries and programs with nonstandard names/locations.
14344456fccdSmrg
14354456fccdSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14364456fccdSmrg_ACEOF
14374456fccdSmrgac_status=$?
14384456fccdSmrgfi
14394456fccdSmrg
14404456fccdSmrgif test "$ac_init_help" = "recursive"; then
14414456fccdSmrg  # If there are subdirs, report their specific --help.
14424456fccdSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
144342d69509Smrg    test -d "$ac_dir" ||
144442d69509Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
144542d69509Smrg      continue
14464456fccdSmrg    ac_builddir=.
14474456fccdSmrg
14484456fccdSmrgcase "$ac_dir" in
14494456fccdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14504456fccdSmrg*)
145142d69509Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14524456fccdSmrg  # A ".." for each directory in $ac_dir_suffix.
145342d69509Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14544456fccdSmrg  case $ac_top_builddir_sub in
14554456fccdSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14564456fccdSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14574456fccdSmrg  esac ;;
14584456fccdSmrgesac
14594456fccdSmrgac_abs_top_builddir=$ac_pwd
14604456fccdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14614456fccdSmrg# for backward compatibility:
14624456fccdSmrgac_top_builddir=$ac_top_build_prefix
14634456fccdSmrg
14644456fccdSmrgcase $srcdir in
14654456fccdSmrg  .)  # We are building in place.
14664456fccdSmrg    ac_srcdir=.
14674456fccdSmrg    ac_top_srcdir=$ac_top_builddir_sub
14684456fccdSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14694456fccdSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14704456fccdSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14714456fccdSmrg    ac_top_srcdir=$srcdir
14724456fccdSmrg    ac_abs_top_srcdir=$srcdir ;;
14734456fccdSmrg  *) # Relative name.
14744456fccdSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14754456fccdSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14764456fccdSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14774456fccdSmrgesac
14784456fccdSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14794456fccdSmrg
14804456fccdSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14814456fccdSmrg    # Check for guested configure.
14824456fccdSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14834456fccdSmrg      echo &&
14844456fccdSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14854456fccdSmrg    elif test -f "$ac_srcdir/configure"; then
14864456fccdSmrg      echo &&
14874456fccdSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14884456fccdSmrg    else
148942d69509Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14904456fccdSmrg    fi || ac_status=$?
14914456fccdSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14924456fccdSmrg  done
14934456fccdSmrgfi
14944456fccdSmrg
14954456fccdSmrgtest -n "$ac_init_help" && exit $ac_status
14964456fccdSmrgif $ac_init_version; then
14974456fccdSmrg  cat <<\_ACEOF
1498ff63a143SmrglibXfixes configure 5.0
1499ff63a143Smrggenerated by GNU Autoconf 2.66
15004456fccdSmrg
1501ff63a143SmrgCopyright (C) 2010 Free Software Foundation, Inc.
15024456fccdSmrgThis configure script is free software; the Free Software Foundation
15034456fccdSmrggives unlimited permission to copy, distribute and modify it.
15044456fccdSmrg_ACEOF
15054456fccdSmrg  exit
15064456fccdSmrgfi
1507521070a0Smrg
1508521070a0Smrg## ------------------------ ##
1509521070a0Smrg## Autoconf initialization. ##
1510521070a0Smrg## ------------------------ ##
1511521070a0Smrg
1512521070a0Smrg# ac_fn_c_try_compile LINENO
1513521070a0Smrg# --------------------------
1514521070a0Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515521070a0Smrgac_fn_c_try_compile ()
1516521070a0Smrg{
1517521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518521070a0Smrg  rm -f conftest.$ac_objext
1519521070a0Smrg  if { { ac_try="$ac_compile"
1520521070a0Smrgcase "(($ac_try" in
1521521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522521070a0Smrg  *) ac_try_echo=$ac_try;;
1523521070a0Smrgesac
1524521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525521070a0Smrg$as_echo "$ac_try_echo"; } >&5
1526521070a0Smrg  (eval "$ac_compile") 2>conftest.err
1527521070a0Smrg  ac_status=$?
1528521070a0Smrg  if test -s conftest.err; then
1529521070a0Smrg    grep -v '^ *+' conftest.err >conftest.er1
1530521070a0Smrg    cat conftest.er1 >&5
1531521070a0Smrg    mv -f conftest.er1 conftest.err
1532521070a0Smrg  fi
1533521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534521070a0Smrg  test $ac_status = 0; } && {
1535521070a0Smrg	 test -z "$ac_c_werror_flag" ||
1536521070a0Smrg	 test ! -s conftest.err
1537521070a0Smrg       } && test -s conftest.$ac_objext; then :
1538521070a0Smrg  ac_retval=0
1539521070a0Smrgelse
1540521070a0Smrg  $as_echo "$as_me: failed program was:" >&5
1541521070a0Smrgsed 's/^/| /' conftest.$ac_ext >&5
1542521070a0Smrg
1543521070a0Smrg	ac_retval=1
1544521070a0Smrgfi
1545521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546521070a0Smrg  as_fn_set_status $ac_retval
1547521070a0Smrg
1548521070a0Smrg} # ac_fn_c_try_compile
1549521070a0Smrg
1550521070a0Smrg# ac_fn_c_try_link LINENO
1551521070a0Smrg# -----------------------
1552521070a0Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1553521070a0Smrgac_fn_c_try_link ()
1554521070a0Smrg{
1555521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556521070a0Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1557521070a0Smrg  if { { ac_try="$ac_link"
1558521070a0Smrgcase "(($ac_try" in
1559521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560521070a0Smrg  *) ac_try_echo=$ac_try;;
1561521070a0Smrgesac
1562521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563521070a0Smrg$as_echo "$ac_try_echo"; } >&5
1564521070a0Smrg  (eval "$ac_link") 2>conftest.err
1565521070a0Smrg  ac_status=$?
1566521070a0Smrg  if test -s conftest.err; then
1567521070a0Smrg    grep -v '^ *+' conftest.err >conftest.er1
1568521070a0Smrg    cat conftest.er1 >&5
1569521070a0Smrg    mv -f conftest.er1 conftest.err
1570521070a0Smrg  fi
1571521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572521070a0Smrg  test $ac_status = 0; } && {
1573521070a0Smrg	 test -z "$ac_c_werror_flag" ||
1574521070a0Smrg	 test ! -s conftest.err
1575521070a0Smrg       } && test -s conftest$ac_exeext && {
1576521070a0Smrg	 test "$cross_compiling" = yes ||
1577521070a0Smrg	 $as_test_x conftest$ac_exeext
1578521070a0Smrg       }; then :
1579521070a0Smrg  ac_retval=0
1580521070a0Smrgelse
1581521070a0Smrg  $as_echo "$as_me: failed program was:" >&5
1582521070a0Smrgsed 's/^/| /' conftest.$ac_ext >&5
1583521070a0Smrg
1584521070a0Smrg	ac_retval=1
1585521070a0Smrgfi
1586521070a0Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587521070a0Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588521070a0Smrg  # interfere with the next link command; also delete a directory that is
1589521070a0Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1590521070a0Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592521070a0Smrg  as_fn_set_status $ac_retval
1593521070a0Smrg
1594521070a0Smrg} # ac_fn_c_try_link
1595521070a0Smrg
1596521070a0Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597521070a0Smrg# -------------------------------------------------------
1598521070a0Smrg# Tests whether HEADER exists and can be compiled using the include files in
1599521070a0Smrg# INCLUDES, setting the cache variable VAR accordingly.
1600521070a0Smrgac_fn_c_check_header_compile ()
1601521070a0Smrg{
1602521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604521070a0Smrg$as_echo_n "checking for $2... " >&6; }
1605ff63a143Smrgif eval "test \"\${$3+set}\"" = set; then :
1606521070a0Smrg  $as_echo_n "(cached) " >&6
1607521070a0Smrgelse
1608521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609521070a0Smrg/* end confdefs.h.  */
1610521070a0Smrg$4
1611521070a0Smrg#include <$2>
1612521070a0Smrg_ACEOF
1613521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
1614521070a0Smrg  eval "$3=yes"
1615521070a0Smrgelse
1616521070a0Smrg  eval "$3=no"
1617521070a0Smrgfi
1618521070a0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619521070a0Smrgfi
1620521070a0Smrgeval ac_res=\$$3
1621521070a0Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622521070a0Smrg$as_echo "$ac_res" >&6; }
1623521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624521070a0Smrg
1625521070a0Smrg} # ac_fn_c_check_header_compile
1626521070a0Smrg
1627521070a0Smrg# ac_fn_c_try_cpp LINENO
1628521070a0Smrg# ----------------------
1629521070a0Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630521070a0Smrgac_fn_c_try_cpp ()
1631521070a0Smrg{
1632521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633521070a0Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1634521070a0Smrgcase "(($ac_try" in
1635521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636521070a0Smrg  *) ac_try_echo=$ac_try;;
1637521070a0Smrgesac
1638521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639521070a0Smrg$as_echo "$ac_try_echo"; } >&5
1640521070a0Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641521070a0Smrg  ac_status=$?
1642521070a0Smrg  if test -s conftest.err; then
1643521070a0Smrg    grep -v '^ *+' conftest.err >conftest.er1
1644521070a0Smrg    cat conftest.er1 >&5
1645521070a0Smrg    mv -f conftest.er1 conftest.err
1646521070a0Smrg  fi
1647521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648521070a0Smrg  test $ac_status = 0; } >/dev/null && {
1649521070a0Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650521070a0Smrg	 test ! -s conftest.err
1651521070a0Smrg       }; then :
1652521070a0Smrg  ac_retval=0
1653521070a0Smrgelse
1654521070a0Smrg  $as_echo "$as_me: failed program was:" >&5
1655521070a0Smrgsed 's/^/| /' conftest.$ac_ext >&5
1656521070a0Smrg
1657521070a0Smrg    ac_retval=1
1658521070a0Smrgfi
1659521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660521070a0Smrg  as_fn_set_status $ac_retval
1661521070a0Smrg
1662521070a0Smrg} # ac_fn_c_try_cpp
1663521070a0Smrg
1664521070a0Smrg# ac_fn_c_try_run LINENO
1665521070a0Smrg# ----------------------
1666521070a0Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667521070a0Smrg# that executables *can* be run.
1668521070a0Smrgac_fn_c_try_run ()
1669521070a0Smrg{
1670521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671521070a0Smrg  if { { ac_try="$ac_link"
1672521070a0Smrgcase "(($ac_try" in
1673521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674521070a0Smrg  *) ac_try_echo=$ac_try;;
1675521070a0Smrgesac
1676521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677521070a0Smrg$as_echo "$ac_try_echo"; } >&5
1678521070a0Smrg  (eval "$ac_link") 2>&5
1679521070a0Smrg  ac_status=$?
1680521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681521070a0Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682521070a0Smrg  { { case "(($ac_try" in
1683521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684521070a0Smrg  *) ac_try_echo=$ac_try;;
1685521070a0Smrgesac
1686521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687521070a0Smrg$as_echo "$ac_try_echo"; } >&5
1688521070a0Smrg  (eval "$ac_try") 2>&5
1689521070a0Smrg  ac_status=$?
1690521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691521070a0Smrg  test $ac_status = 0; }; }; then :
1692521070a0Smrg  ac_retval=0
1693521070a0Smrgelse
1694521070a0Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1695521070a0Smrg       $as_echo "$as_me: failed program was:" >&5
1696521070a0Smrgsed 's/^/| /' conftest.$ac_ext >&5
1697521070a0Smrg
1698521070a0Smrg       ac_retval=$ac_status
1699521070a0Smrgfi
1700521070a0Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702521070a0Smrg  as_fn_set_status $ac_retval
1703521070a0Smrg
1704521070a0Smrg} # ac_fn_c_try_run
1705521070a0Smrg
1706521070a0Smrg# ac_fn_c_check_func LINENO FUNC VAR
1707521070a0Smrg# ----------------------------------
1708521070a0Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709521070a0Smrgac_fn_c_check_func ()
1710521070a0Smrg{
1711521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713521070a0Smrg$as_echo_n "checking for $2... " >&6; }
1714ff63a143Smrgif eval "test \"\${$3+set}\"" = set; then :
1715521070a0Smrg  $as_echo_n "(cached) " >&6
1716521070a0Smrgelse
1717521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718521070a0Smrg/* end confdefs.h.  */
1719521070a0Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720521070a0Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721521070a0Smrg#define $2 innocuous_$2
1722521070a0Smrg
1723521070a0Smrg/* System header to define __stub macros and hopefully few prototypes,
1724521070a0Smrg    which can conflict with char $2 (); below.
1725521070a0Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726521070a0Smrg    <limits.h> exists even on freestanding compilers.  */
1727521070a0Smrg
1728521070a0Smrg#ifdef __STDC__
1729521070a0Smrg# include <limits.h>
1730521070a0Smrg#else
1731521070a0Smrg# include <assert.h>
1732521070a0Smrg#endif
1733521070a0Smrg
1734521070a0Smrg#undef $2
1735521070a0Smrg
1736521070a0Smrg/* Override any GCC internal prototype to avoid an error.
1737521070a0Smrg   Use char because int might match the return type of a GCC
1738521070a0Smrg   builtin and then its argument prototype would still apply.  */
1739521070a0Smrg#ifdef __cplusplus
1740521070a0Smrgextern "C"
1741521070a0Smrg#endif
1742521070a0Smrgchar $2 ();
1743521070a0Smrg/* The GNU C library defines this for functions which it implements
1744521070a0Smrg    to always fail with ENOSYS.  Some functions are actually named
1745521070a0Smrg    something starting with __ and the normal name is an alias.  */
1746521070a0Smrg#if defined __stub_$2 || defined __stub___$2
1747521070a0Smrgchoke me
1748521070a0Smrg#endif
1749521070a0Smrg
1750521070a0Smrgint
1751521070a0Smrgmain ()
1752521070a0Smrg{
1753521070a0Smrgreturn $2 ();
1754521070a0Smrg  ;
1755521070a0Smrg  return 0;
1756521070a0Smrg}
1757521070a0Smrg_ACEOF
1758521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
1759521070a0Smrg  eval "$3=yes"
1760521070a0Smrgelse
1761521070a0Smrg  eval "$3=no"
1762521070a0Smrgfi
1763521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
1764521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
1765521070a0Smrgfi
1766521070a0Smrgeval ac_res=\$$3
1767521070a0Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768521070a0Smrg$as_echo "$ac_res" >&6; }
1769521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770521070a0Smrg
1771521070a0Smrg} # ac_fn_c_check_func
1772521070a0Smrg
1773ff63a143Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1774ff63a143Smrg# ---------------------------------------------
1775ff63a143Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1776ff63a143Smrg# accordingly.
1777521070a0Smrgac_fn_c_check_decl ()
1778521070a0Smrg{
1779521070a0Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780ff63a143Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1781ff63a143Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782ff63a143Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783ff63a143Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1784ff63a143Smrgif eval "test \"\${$3+set}\"" = set; then :
1785521070a0Smrg  $as_echo_n "(cached) " >&6
1786521070a0Smrgelse
1787521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788521070a0Smrg/* end confdefs.h.  */
1789521070a0Smrg$4
1790521070a0Smrgint
1791521070a0Smrgmain ()
1792521070a0Smrg{
1793ff63a143Smrg#ifndef $as_decl_name
1794ff63a143Smrg#ifdef __cplusplus
1795ff63a143Smrg  (void) $as_decl_use;
1796ff63a143Smrg#else
1797ff63a143Smrg  (void) $as_decl_name;
1798ff63a143Smrg#endif
1799521070a0Smrg#endif
1800521070a0Smrg
1801521070a0Smrg  ;
1802521070a0Smrg  return 0;
1803521070a0Smrg}
1804521070a0Smrg_ACEOF
1805521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
1806521070a0Smrg  eval "$3=yes"
1807521070a0Smrgelse
1808521070a0Smrg  eval "$3=no"
1809521070a0Smrgfi
1810521070a0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811521070a0Smrgfi
1812521070a0Smrgeval ac_res=\$$3
1813521070a0Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814521070a0Smrg$as_echo "$ac_res" >&6; }
1815521070a0Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816521070a0Smrg
1817521070a0Smrg} # ac_fn_c_check_decl
18184456fccdSmrgcat >config.log <<_ACEOF
18194456fccdSmrgThis file contains any messages produced by compilers while
18204456fccdSmrgrunning configure, to aid debugging if configure makes a mistake.
18214456fccdSmrg
1822ff63a143SmrgIt was created by libXfixes $as_me 5.0, which was
1823ff63a143Smrggenerated by GNU Autoconf 2.66.  Invocation command line was
18244456fccdSmrg
18254456fccdSmrg  $ $0 $@
18264456fccdSmrg
18274456fccdSmrg_ACEOF
18284456fccdSmrgexec 5>>config.log
18294456fccdSmrg{
18304456fccdSmrgcat <<_ASUNAME
18314456fccdSmrg## --------- ##
18324456fccdSmrg## Platform. ##
18334456fccdSmrg## --------- ##
18344456fccdSmrg
18354456fccdSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18364456fccdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18374456fccdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18384456fccdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18394456fccdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18404456fccdSmrg
18414456fccdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18424456fccdSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18434456fccdSmrg
18444456fccdSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18454456fccdSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18464456fccdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18474456fccdSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18484456fccdSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18494456fccdSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18504456fccdSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18514456fccdSmrg
18524456fccdSmrg_ASUNAME
18534456fccdSmrg
18544456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18554456fccdSmrgfor as_dir in $PATH
18564456fccdSmrgdo
18574456fccdSmrg  IFS=$as_save_IFS
18584456fccdSmrg  test -z "$as_dir" && as_dir=.
1859521070a0Smrg    $as_echo "PATH: $as_dir"
1860521070a0Smrg  done
18614456fccdSmrgIFS=$as_save_IFS
18624456fccdSmrg
18634456fccdSmrg} >&5
18644456fccdSmrg
18654456fccdSmrgcat >&5 <<_ACEOF
18664456fccdSmrg
18674456fccdSmrg
18684456fccdSmrg## ----------- ##
18694456fccdSmrg## Core tests. ##
18704456fccdSmrg## ----------- ##
18714456fccdSmrg
18724456fccdSmrg_ACEOF
18734456fccdSmrg
18744456fccdSmrg
18754456fccdSmrg# Keep a trace of the command line.
18764456fccdSmrg# Strip out --no-create and --no-recursion so they do not pile up.
18774456fccdSmrg# Strip out --silent because we don't want to record it for future runs.
18784456fccdSmrg# Also quote any args containing shell meta-characters.
18794456fccdSmrg# Make two passes to allow for proper duplicate-argument suppression.
18804456fccdSmrgac_configure_args=
18814456fccdSmrgac_configure_args0=
18824456fccdSmrgac_configure_args1=
18834456fccdSmrgac_must_keep_next=false
18844456fccdSmrgfor ac_pass in 1 2
18854456fccdSmrgdo
18864456fccdSmrg  for ac_arg
18874456fccdSmrg  do
18884456fccdSmrg    case $ac_arg in
18894456fccdSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18904456fccdSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18914456fccdSmrg    | -silent | --silent | --silen | --sile | --sil)
18924456fccdSmrg      continue ;;
18934456fccdSmrg    *\'*)
189442d69509Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18954456fccdSmrg    esac
18964456fccdSmrg    case $ac_pass in
1897521070a0Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18984456fccdSmrg    2)
1899521070a0Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
19004456fccdSmrg      if test $ac_must_keep_next = true; then
19014456fccdSmrg	ac_must_keep_next=false # Got value, back to normal.
19024456fccdSmrg      else
19034456fccdSmrg	case $ac_arg in
19044456fccdSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
19054456fccdSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19064456fccdSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19074456fccdSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
19084456fccdSmrg	    case "$ac_configure_args0 " in
19094456fccdSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19104456fccdSmrg	    esac
19114456fccdSmrg	    ;;
19124456fccdSmrg	  -* ) ac_must_keep_next=true ;;
19134456fccdSmrg	esac
19144456fccdSmrg      fi
1915521070a0Smrg      as_fn_append ac_configure_args " '$ac_arg'"
19164456fccdSmrg      ;;
19174456fccdSmrg    esac
19184456fccdSmrg  done
19194456fccdSmrgdone
1920521070a0Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1921521070a0Smrg{ ac_configure_args1=; unset ac_configure_args1;}
19224456fccdSmrg
19234456fccdSmrg# When interrupted or exit'd, cleanup temporary files, and complete
19244456fccdSmrg# config.log.  We remove comments because anyway the quotes in there
19254456fccdSmrg# would cause problems or look ugly.
19264456fccdSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
19274456fccdSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19284456fccdSmrgtrap 'exit_status=$?
19294456fccdSmrg  # Save into config.log some information that might help in debugging.
19304456fccdSmrg  {
19314456fccdSmrg    echo
19324456fccdSmrg
1933ff63a143Smrg    $as_echo "## ---------------- ##
19344456fccdSmrg## Cache variables. ##
1935ff63a143Smrg## ---------------- ##"
19364456fccdSmrg    echo
19374456fccdSmrg    # The following way of writing the cache mishandles newlines in values,
19384456fccdSmrg(
19394456fccdSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
19404456fccdSmrg    eval ac_val=\$$ac_var
19414456fccdSmrg    case $ac_val in #(
19424456fccdSmrg    *${as_nl}*)
19434456fccdSmrg      case $ac_var in #(
1944521070a0Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
194542d69509Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19464456fccdSmrg      esac
19474456fccdSmrg      case $ac_var in #(
19484456fccdSmrg      _ | IFS | as_nl) ;; #(
194942d69509Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950521070a0Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
19514456fccdSmrg      esac ;;
19524456fccdSmrg    esac
19534456fccdSmrg  done
19544456fccdSmrg  (set) 2>&1 |
19554456fccdSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
19564456fccdSmrg    *${as_nl}ac_space=\ *)
19574456fccdSmrg      sed -n \
19584456fccdSmrg	"s/'\''/'\''\\\\'\'''\''/g;
19594456fccdSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
19604456fccdSmrg      ;; #(
19614456fccdSmrg    *)
19624456fccdSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19634456fccdSmrg      ;;
19644456fccdSmrg    esac |
19654456fccdSmrg    sort
19664456fccdSmrg)
19674456fccdSmrg    echo
19684456fccdSmrg
1969ff63a143Smrg    $as_echo "## ----------------- ##
19704456fccdSmrg## Output variables. ##
1971ff63a143Smrg## ----------------- ##"
19724456fccdSmrg    echo
19734456fccdSmrg    for ac_var in $ac_subst_vars
19744456fccdSmrg    do
19754456fccdSmrg      eval ac_val=\$$ac_var
19764456fccdSmrg      case $ac_val in
197742d69509Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19784456fccdSmrg      esac
197942d69509Smrg      $as_echo "$ac_var='\''$ac_val'\''"
19804456fccdSmrg    done | sort
19814456fccdSmrg    echo
19824456fccdSmrg
19834456fccdSmrg    if test -n "$ac_subst_files"; then
1984ff63a143Smrg      $as_echo "## ------------------- ##
19854456fccdSmrg## File substitutions. ##
1986ff63a143Smrg## ------------------- ##"
19874456fccdSmrg      echo
19884456fccdSmrg      for ac_var in $ac_subst_files
19894456fccdSmrg      do
19904456fccdSmrg	eval ac_val=\$$ac_var
19914456fccdSmrg	case $ac_val in
199242d69509Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19934456fccdSmrg	esac
199442d69509Smrg	$as_echo "$ac_var='\''$ac_val'\''"
19954456fccdSmrg      done | sort
19964456fccdSmrg      echo
19974456fccdSmrg    fi
19984456fccdSmrg
19994456fccdSmrg    if test -s confdefs.h; then
2000ff63a143Smrg      $as_echo "## ----------- ##
20014456fccdSmrg## confdefs.h. ##
2002ff63a143Smrg## ----------- ##"
20034456fccdSmrg      echo
20044456fccdSmrg      cat confdefs.h
20054456fccdSmrg      echo
20064456fccdSmrg    fi
20074456fccdSmrg    test "$ac_signal" != 0 &&
200842d69509Smrg      $as_echo "$as_me: caught signal $ac_signal"
200942d69509Smrg    $as_echo "$as_me: exit $exit_status"
20104456fccdSmrg  } >&5
20114456fccdSmrg  rm -f core *.core core.conftest.* &&
20124456fccdSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20134456fccdSmrg    exit $exit_status
20144456fccdSmrg' 0
20154456fccdSmrgfor ac_signal in 1 2 13 15; do
2016521070a0Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20174456fccdSmrgdone
20184456fccdSmrgac_signal=0
20194456fccdSmrg
20204456fccdSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
20214456fccdSmrgrm -f -r conftest* confdefs.h
20224456fccdSmrg
2023521070a0Smrg$as_echo "/* confdefs.h */" > confdefs.h
2024521070a0Smrg
20254456fccdSmrg# Predefined preprocessor variables.
20264456fccdSmrg
20274456fccdSmrgcat >>confdefs.h <<_ACEOF
20284456fccdSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
20294456fccdSmrg_ACEOF
20304456fccdSmrg
20314456fccdSmrgcat >>confdefs.h <<_ACEOF
20324456fccdSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
20334456fccdSmrg_ACEOF
20344456fccdSmrg
20354456fccdSmrgcat >>confdefs.h <<_ACEOF
20364456fccdSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
20374456fccdSmrg_ACEOF
20384456fccdSmrg
20394456fccdSmrgcat >>confdefs.h <<_ACEOF
20404456fccdSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
20414456fccdSmrg_ACEOF
20424456fccdSmrg
20434456fccdSmrgcat >>confdefs.h <<_ACEOF
20444456fccdSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
20454456fccdSmrg_ACEOF
20464456fccdSmrg
2047521070a0Smrgcat >>confdefs.h <<_ACEOF
2048521070a0Smrg#define PACKAGE_URL "$PACKAGE_URL"
2049521070a0Smrg_ACEOF
2050521070a0Smrg
20514456fccdSmrg
20524456fccdSmrg# Let the site file select an alternate cache file if it wants to.
205342d69509Smrg# Prefer an explicitly selected file to automatically selected ones.
205442d69509Smrgac_site_file1=NONE
205542d69509Smrgac_site_file2=NONE
20564456fccdSmrgif test -n "$CONFIG_SITE"; then
2057ff63a143Smrg  # We do not want a PATH search for config.site.
2058ff63a143Smrg  case $CONFIG_SITE in #((
2059ff63a143Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2060ff63a143Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2061ff63a143Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2062ff63a143Smrg  esac
20634456fccdSmrgelif test "x$prefix" != xNONE; then
206442d69509Smrg  ac_site_file1=$prefix/share/config.site
206542d69509Smrg  ac_site_file2=$prefix/etc/config.site
20664456fccdSmrgelse
206742d69509Smrg  ac_site_file1=$ac_default_prefix/share/config.site
206842d69509Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
20694456fccdSmrgfi
207042d69509Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
20714456fccdSmrgdo
207242d69509Smrg  test "x$ac_site_file" = xNONE && continue
2073521070a0Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
207542d69509Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
20764456fccdSmrg    sed 's/^/| /' "$ac_site_file" >&5
2077ff63a143Smrg    . "$ac_site_file" \
2078ff63a143Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079ff63a143Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080ff63a143Smrgas_fn_error $? "failed to load site script $ac_site_file
2081ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
20824456fccdSmrg  fi
20834456fccdSmrgdone
20844456fccdSmrg
20854456fccdSmrgif test -r "$cache_file"; then
2086521070a0Smrg  # Some versions of bash will fail to source /dev/null (special files
2087521070a0Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2088521070a0Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
209042d69509Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
20914456fccdSmrg    case $cache_file in
20924456fccdSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20934456fccdSmrg      *)                      . "./$cache_file";;
20944456fccdSmrg    esac
20954456fccdSmrg  fi
20964456fccdSmrgelse
2097521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
209842d69509Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
20994456fccdSmrg  >$cache_file
21004456fccdSmrgfi
21014456fccdSmrg
21024456fccdSmrg# Check that the precious variables saved in the cache have kept the same
21034456fccdSmrg# value.
21044456fccdSmrgac_cache_corrupted=false
21054456fccdSmrgfor ac_var in $ac_precious_vars; do
21064456fccdSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
21074456fccdSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
21084456fccdSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
21094456fccdSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
21104456fccdSmrg  case $ac_old_set,$ac_new_set in
21114456fccdSmrg    set,)
2112521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
211342d69509Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21144456fccdSmrg      ac_cache_corrupted=: ;;
21154456fccdSmrg    ,set)
2116521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
211742d69509Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
21184456fccdSmrg      ac_cache_corrupted=: ;;
21194456fccdSmrg    ,);;
21204456fccdSmrg    *)
21214456fccdSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
212242d69509Smrg	# differences in whitespace do not lead to failure.
212342d69509Smrg	ac_old_val_w=`echo x $ac_old_val`
212442d69509Smrg	ac_new_val_w=`echo x $ac_new_val`
212542d69509Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126521070a0Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
212742d69509Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
212842d69509Smrg	  ac_cache_corrupted=:
212942d69509Smrg	else
2130521070a0Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
213142d69509Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
213242d69509Smrg	  eval $ac_var=\$ac_old_val
213342d69509Smrg	fi
2134521070a0Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
213542d69509Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2136521070a0Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
213742d69509Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
21384456fccdSmrg      fi;;
21394456fccdSmrg  esac
21404456fccdSmrg  # Pass precious variables to config.status.
21414456fccdSmrg  if test "$ac_new_set" = set; then
21424456fccdSmrg    case $ac_new_val in
214342d69509Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
21444456fccdSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
21454456fccdSmrg    esac
21464456fccdSmrg    case " $ac_configure_args " in
21474456fccdSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2148521070a0Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
21494456fccdSmrg    esac
21504456fccdSmrg  fi
21514456fccdSmrgdone
21524456fccdSmrgif $ac_cache_corrupted; then
2153521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
215442d69509Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
215642d69509Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157ff63a143Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
21584456fccdSmrgfi
2159521070a0Smrg## -------------------- ##
2160521070a0Smrg## Main body of script. ##
2161521070a0Smrg## -------------------- ##
21624456fccdSmrg
21634456fccdSmrgac_ext=c
21644456fccdSmrgac_cpp='$CPP $CPPFLAGS'
21654456fccdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21664456fccdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21674456fccdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
21684456fccdSmrg
21694456fccdSmrg
2170ff63a143Smrg
2171ff63a143Smrgac_config_headers="$ac_config_headers config.h"
2172ff63a143Smrg
2173ff63a143Smrg
2174ff63a143Smrg# Initialize Automake
217542d69509Smrgam__api_version='1.11'
217642d69509Smrg
21774456fccdSmrgac_aux_dir=
21784456fccdSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179ff63a143Smrg  if test -f "$ac_dir/install-sh"; then
2180ff63a143Smrg    ac_aux_dir=$ac_dir
2181ff63a143Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2182ff63a143Smrg    break
2183ff63a143Smrg  elif test -f "$ac_dir/install.sh"; then
2184ff63a143Smrg    ac_aux_dir=$ac_dir
2185ff63a143Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2186ff63a143Smrg    break
2187ff63a143Smrg  elif test -f "$ac_dir/shtool"; then
2188ff63a143Smrg    ac_aux_dir=$ac_dir
2189ff63a143Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2190ff63a143Smrg    break
2191ff63a143Smrg  fi
21924456fccdSmrgdone
21934456fccdSmrgif test -z "$ac_aux_dir"; then
2194ff63a143Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
21954456fccdSmrgfi
21964456fccdSmrg
21974456fccdSmrg# These three variables are undocumented and unsupported,
21984456fccdSmrg# and are intended to be withdrawn in a future Autoconf release.
21994456fccdSmrg# They can cause serious problems if a builder's source tree is in a directory
22004456fccdSmrg# whose full name contains unusual characters.
22014456fccdSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
22024456fccdSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
22034456fccdSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
22044456fccdSmrg
22054456fccdSmrg
22064456fccdSmrg# Find a good install program.  We prefer a C program (faster),
22074456fccdSmrg# so one script is as good as another.  But avoid the broken or
22084456fccdSmrg# incompatible versions:
22094456fccdSmrg# SysV /etc/install, /usr/sbin/install
22104456fccdSmrg# SunOS /usr/etc/install
22114456fccdSmrg# IRIX /sbin/install
22124456fccdSmrg# AIX /bin/install
22134456fccdSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
22144456fccdSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22154456fccdSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
22164456fccdSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22174456fccdSmrg# OS/2's system install, which has a completely different semantic
22184456fccdSmrg# ./install, which can be erroneously created by make from ./install.sh.
221942d69509Smrg# Reject install programs that cannot install multiple files.
2220521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
222142d69509Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
22224456fccdSmrgif test -z "$INSTALL"; then
2223521070a0Smrgif test "${ac_cv_path_install+set}" = set; then :
222442d69509Smrg  $as_echo_n "(cached) " >&6
22254456fccdSmrgelse
22264456fccdSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22274456fccdSmrgfor as_dir in $PATH
22284456fccdSmrgdo
22294456fccdSmrg  IFS=$as_save_IFS
22304456fccdSmrg  test -z "$as_dir" && as_dir=.
2231521070a0Smrg    # Account for people who put trailing slashes in PATH elements.
2232521070a0Smrgcase $as_dir/ in #((
2233521070a0Smrg  ./ | .// | /[cC]/* | \
22344456fccdSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2235521070a0Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22364456fccdSmrg  /usr/ucb/* ) ;;
22374456fccdSmrg  *)
22384456fccdSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
22394456fccdSmrg    # Don't use installbsd from OSF since it installs stuff as root
22404456fccdSmrg    # by default.
22414456fccdSmrg    for ac_prog in ginstall scoinst install; do
22424456fccdSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
224342d69509Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
22444456fccdSmrg	  if test $ac_prog = install &&
22454456fccdSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22464456fccdSmrg	    # AIX install.  It has an incompatible calling convention.
22474456fccdSmrg	    :
22484456fccdSmrg	  elif test $ac_prog = install &&
22494456fccdSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22504456fccdSmrg	    # program-specific install script used by HP pwplus--don't use.
22514456fccdSmrg	    :
22524456fccdSmrg	  else
225342d69509Smrg	    rm -rf conftest.one conftest.two conftest.dir
225442d69509Smrg	    echo one > conftest.one
225542d69509Smrg	    echo two > conftest.two
225642d69509Smrg	    mkdir conftest.dir
225742d69509Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
225842d69509Smrg	      test -s conftest.one && test -s conftest.two &&
225942d69509Smrg	      test -s conftest.dir/conftest.one &&
226042d69509Smrg	      test -s conftest.dir/conftest.two
226142d69509Smrg	    then
226242d69509Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
226342d69509Smrg	      break 3
226442d69509Smrg	    fi
22654456fccdSmrg	  fi
22664456fccdSmrg	fi
22674456fccdSmrg      done
22684456fccdSmrg    done
22694456fccdSmrg    ;;
22704456fccdSmrgesac
227142d69509Smrg
2272521070a0Smrg  done
22734456fccdSmrgIFS=$as_save_IFS
22744456fccdSmrg
227542d69509Smrgrm -rf conftest.one conftest.two conftest.dir
22764456fccdSmrg
22774456fccdSmrgfi
22784456fccdSmrg  if test "${ac_cv_path_install+set}" = set; then
22794456fccdSmrg    INSTALL=$ac_cv_path_install
22804456fccdSmrg  else
22814456fccdSmrg    # As a last resort, use the slow shell script.  Don't cache a
22824456fccdSmrg    # value for INSTALL within a source directory, because that will
22834456fccdSmrg    # break other packages using the cache if that directory is
22844456fccdSmrg    # removed, or if the value is a relative name.
22854456fccdSmrg    INSTALL=$ac_install_sh
22864456fccdSmrg  fi
22874456fccdSmrgfi
2288521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
228942d69509Smrg$as_echo "$INSTALL" >&6; }
22904456fccdSmrg
22914456fccdSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22924456fccdSmrg# It thinks the first close brace ends the variable substitution.
22934456fccdSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22944456fccdSmrg
22954456fccdSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22964456fccdSmrg
22974456fccdSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22984456fccdSmrg
2299521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
230042d69509Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
23014456fccdSmrg# Just in case
23024456fccdSmrgsleep 1
23034456fccdSmrgecho timestamp > conftest.file
230442d69509Smrg# Reject unsafe characters in $srcdir or the absolute working directory
230542d69509Smrg# name.  Accept space and tab only in the latter.
230642d69509Smrgam_lf='
230742d69509Smrg'
230842d69509Smrgcase `pwd` in
230942d69509Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2310ff63a143Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
231142d69509Smrgesac
231242d69509Smrgcase $srcdir in
231342d69509Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2314ff63a143Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
231542d69509Smrgesac
231642d69509Smrg
23174456fccdSmrg# Do `set' in a subshell so we don't clobber the current shell's
23184456fccdSmrg# arguments.  Must try -L first in case configure is actually a
23194456fccdSmrg# symlink; some systems play weird games with the mod time of symlinks
23204456fccdSmrg# (eg FreeBSD returns the mod time of the symlink's containing
23214456fccdSmrg# directory).
23224456fccdSmrgif (
232342d69509Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
23244456fccdSmrg   if test "$*" = "X"; then
23254456fccdSmrg      # -L didn't work.
232642d69509Smrg      set X `ls -t "$srcdir/configure" conftest.file`
23274456fccdSmrg   fi
23284456fccdSmrg   rm -f conftest.file
23294456fccdSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
23304456fccdSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
23314456fccdSmrg
23324456fccdSmrg      # If neither matched, then we have a broken ls.  This can happen
23334456fccdSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
23344456fccdSmrg      # broken ls alias from the environment.  This has actually
23354456fccdSmrg      # happened.  Such a system could not be considered "sane".
2336ff63a143Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2337521070a0Smrgalias in your environment" "$LINENO" 5
23384456fccdSmrg   fi
23394456fccdSmrg
23404456fccdSmrg   test "$2" = conftest.file
23414456fccdSmrg   )
23424456fccdSmrgthen
23434456fccdSmrg   # Ok.
23444456fccdSmrg   :
23454456fccdSmrgelse
2346ff63a143Smrg   as_fn_error $? "newly created file is older than distributed files!
2347521070a0SmrgCheck your system clock" "$LINENO" 5
23484456fccdSmrgfi
2349521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
235042d69509Smrg$as_echo "yes" >&6; }
23514456fccdSmrgtest "$program_prefix" != NONE &&
23524456fccdSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
23534456fccdSmrg# Use a double $ so make ignores it.
23544456fccdSmrgtest "$program_suffix" != NONE &&
23554456fccdSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
235642d69509Smrg# Double any \ or $.
23574456fccdSmrg# By default was `s,x,x', remove it if useless.
235842d69509Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
235942d69509Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
23604456fccdSmrg
23614456fccdSmrg# expand $ac_aux_dir to an absolute path
23624456fccdSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
23634456fccdSmrg
236442d69509Smrgif test x"${MISSING+set}" != xset; then
236542d69509Smrg  case $am_aux_dir in
236642d69509Smrg  *\ * | *\	*)
236742d69509Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
236842d69509Smrg  *)
236942d69509Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
237042d69509Smrg  esac
237142d69509Smrgfi
23724456fccdSmrg# Use eval to expand $SHELL
23734456fccdSmrgif eval "$MISSING --run true"; then
23744456fccdSmrg  am_missing_run="$MISSING --run "
23754456fccdSmrgelse
23764456fccdSmrg  am_missing_run=
2377521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
237842d69509Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
237942d69509Smrgfi
238042d69509Smrg
238142d69509Smrgif test x"${install_sh}" != xset; then
238242d69509Smrg  case $am_aux_dir in
238342d69509Smrg  *\ * | *\	*)
238442d69509Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
238542d69509Smrg  *)
238642d69509Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
238742d69509Smrg  esac
238842d69509Smrgfi
238942d69509Smrg
239042d69509Smrg# Installed binaries are usually stripped using `strip' when the user
239142d69509Smrg# run `make install-strip'.  However `strip' might not be the right
239242d69509Smrg# tool to use in cross-compilation environments, therefore Automake
239342d69509Smrg# will honor the `STRIP' environment variable to overrule this program.
239442d69509Smrgif test "$cross_compiling" != no; then
239542d69509Smrg  if test -n "$ac_tool_prefix"; then
239642d69509Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
239742d69509Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2398521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
239942d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
2400521070a0Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
240142d69509Smrg  $as_echo_n "(cached) " >&6
240242d69509Smrgelse
240342d69509Smrg  if test -n "$STRIP"; then
240442d69509Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
240542d69509Smrgelse
240642d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240742d69509Smrgfor as_dir in $PATH
240842d69509Smrgdo
240942d69509Smrg  IFS=$as_save_IFS
241042d69509Smrg  test -z "$as_dir" && as_dir=.
2411521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
241242d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
241342d69509Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
241542d69509Smrg    break 2
241642d69509Smrg  fi
241742d69509Smrgdone
2418521070a0Smrg  done
241942d69509SmrgIFS=$as_save_IFS
242042d69509Smrg
242142d69509Smrgfi
242242d69509Smrgfi
242342d69509SmrgSTRIP=$ac_cv_prog_STRIP
242442d69509Smrgif test -n "$STRIP"; then
2425521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
242642d69509Smrg$as_echo "$STRIP" >&6; }
242742d69509Smrgelse
2428521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
242942d69509Smrg$as_echo "no" >&6; }
243042d69509Smrgfi
243142d69509Smrg
243242d69509Smrg
243342d69509Smrgfi
243442d69509Smrgif test -z "$ac_cv_prog_STRIP"; then
243542d69509Smrg  ac_ct_STRIP=$STRIP
243642d69509Smrg  # Extract the first word of "strip", so it can be a program name with args.
243742d69509Smrgset dummy strip; ac_word=$2
2438521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
243942d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
2440521070a0Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
244142d69509Smrg  $as_echo_n "(cached) " >&6
244242d69509Smrgelse
244342d69509Smrg  if test -n "$ac_ct_STRIP"; then
244442d69509Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
244542d69509Smrgelse
244642d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244742d69509Smrgfor as_dir in $PATH
244842d69509Smrgdo
244942d69509Smrg  IFS=$as_save_IFS
245042d69509Smrg  test -z "$as_dir" && as_dir=.
2451521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
245242d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
245342d69509Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2454521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
245542d69509Smrg    break 2
245642d69509Smrg  fi
245742d69509Smrgdone
2458521070a0Smrg  done
245942d69509SmrgIFS=$as_save_IFS
246042d69509Smrg
246142d69509Smrgfi
246242d69509Smrgfi
246342d69509Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
246442d69509Smrgif test -n "$ac_ct_STRIP"; then
2465521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
246642d69509Smrg$as_echo "$ac_ct_STRIP" >&6; }
246742d69509Smrgelse
2468521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
246942d69509Smrg$as_echo "no" >&6; }
247042d69509Smrgfi
247142d69509Smrg
247242d69509Smrg  if test "x$ac_ct_STRIP" = x; then
247342d69509Smrg    STRIP=":"
247442d69509Smrg  else
247542d69509Smrg    case $cross_compiling:$ac_tool_warned in
247642d69509Smrgyes:)
2477521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
247842d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
247942d69509Smrgac_tool_warned=yes ;;
248042d69509Smrgesac
248142d69509Smrg    STRIP=$ac_ct_STRIP
248242d69509Smrg  fi
248342d69509Smrgelse
248442d69509Smrg  STRIP="$ac_cv_prog_STRIP"
248542d69509Smrgfi
248642d69509Smrg
248742d69509Smrgfi
248842d69509SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
248942d69509Smrg
2490521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
249142d69509Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
249242d69509Smrgif test -z "$MKDIR_P"; then
2493521070a0Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
249442d69509Smrg  $as_echo_n "(cached) " >&6
249542d69509Smrgelse
249642d69509Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
249742d69509Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
249842d69509Smrgdo
249942d69509Smrg  IFS=$as_save_IFS
250042d69509Smrg  test -z "$as_dir" && as_dir=.
2501521070a0Smrg    for ac_prog in mkdir gmkdir; do
250242d69509Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
250342d69509Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
250442d69509Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
250542d69509Smrg	     'mkdir (GNU coreutils) '* | \
250642d69509Smrg	     'mkdir (coreutils) '* | \
250742d69509Smrg	     'mkdir (fileutils) '4.1*)
250842d69509Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
250942d69509Smrg	       break 3;;
251042d69509Smrg	   esac
251142d69509Smrg	 done
251242d69509Smrg       done
2513521070a0Smrg  done
251442d69509SmrgIFS=$as_save_IFS
251542d69509Smrg
251642d69509Smrgfi
251742d69509Smrg
2518521070a0Smrg  test -d ./--version && rmdir ./--version
251942d69509Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
252042d69509Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
25214456fccdSmrg  else
252242d69509Smrg    # As a last resort, use the slow shell script.  Don't cache a
252342d69509Smrg    # value for MKDIR_P within a source directory, because that will
252442d69509Smrg    # break other packages using the cache if that directory is
252542d69509Smrg    # removed, or if the value is a relative name.
252642d69509Smrg    MKDIR_P="$ac_install_sh -d"
25274456fccdSmrg  fi
25284456fccdSmrgfi
2529521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
253042d69509Smrg$as_echo "$MKDIR_P" >&6; }
253142d69509Smrg
253242d69509Smrgmkdir_p="$MKDIR_P"
253342d69509Smrgcase $mkdir_p in
253442d69509Smrg  [\\/$]* | ?:[\\/]*) ;;
253542d69509Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
253642d69509Smrgesac
25374456fccdSmrg
25384456fccdSmrgfor ac_prog in gawk mawk nawk awk
25394456fccdSmrgdo
25404456fccdSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
25414456fccdSmrgset dummy $ac_prog; ac_word=$2
2542521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
254342d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
2544521070a0Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
254542d69509Smrg  $as_echo_n "(cached) " >&6
25464456fccdSmrgelse
25474456fccdSmrg  if test -n "$AWK"; then
25484456fccdSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
25494456fccdSmrgelse
25504456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25514456fccdSmrgfor as_dir in $PATH
25524456fccdSmrgdo
25534456fccdSmrg  IFS=$as_save_IFS
25544456fccdSmrg  test -z "$as_dir" && as_dir=.
2555521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
255642d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25574456fccdSmrg    ac_cv_prog_AWK="$ac_prog"
2558521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25594456fccdSmrg    break 2
25604456fccdSmrg  fi
25614456fccdSmrgdone
2562521070a0Smrg  done
25634456fccdSmrgIFS=$as_save_IFS
25644456fccdSmrg
25654456fccdSmrgfi
25664456fccdSmrgfi
25674456fccdSmrgAWK=$ac_cv_prog_AWK
25684456fccdSmrgif test -n "$AWK"; then
2569521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
257042d69509Smrg$as_echo "$AWK" >&6; }
25714456fccdSmrgelse
2572521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
257342d69509Smrg$as_echo "no" >&6; }
25744456fccdSmrgfi
25754456fccdSmrg
25764456fccdSmrg
25774456fccdSmrg  test -n "$AWK" && break
25784456fccdSmrgdone
25794456fccdSmrg
2580521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
258142d69509Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
258242d69509Smrgset x ${MAKE-make}
258342d69509Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584ff63a143Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
258542d69509Smrg  $as_echo_n "(cached) " >&6
25864456fccdSmrgelse
25874456fccdSmrg  cat >conftest.make <<\_ACEOF
25884456fccdSmrgSHELL = /bin/sh
25894456fccdSmrgall:
25904456fccdSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
25914456fccdSmrg_ACEOF
2592ff63a143Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25934456fccdSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
25944456fccdSmrg  *@@@%%%=?*=@@@%%%*)
25954456fccdSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
25964456fccdSmrg  *)
25974456fccdSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
25984456fccdSmrgesac
25994456fccdSmrgrm -f conftest.make
26004456fccdSmrgfi
26014456fccdSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
260342d69509Smrg$as_echo "yes" >&6; }
26044456fccdSmrg  SET_MAKE=
26054456fccdSmrgelse
2606521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
260742d69509Smrg$as_echo "no" >&6; }
26084456fccdSmrg  SET_MAKE="MAKE=${MAKE-make}"
26094456fccdSmrgfi
26104456fccdSmrg
26114456fccdSmrgrm -rf .tst 2>/dev/null
26124456fccdSmrgmkdir .tst 2>/dev/null
26134456fccdSmrgif test -d .tst; then
26144456fccdSmrg  am__leading_dot=.
26154456fccdSmrgelse
26164456fccdSmrg  am__leading_dot=_
26174456fccdSmrgfi
26184456fccdSmrgrmdir .tst 2>/dev/null
26194456fccdSmrg
262042d69509Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
262142d69509Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
262242d69509Smrg  # is not polluted with repeated "-I."
262342d69509Smrg  am__isrc=' -I$(srcdir)'
262442d69509Smrg  # test to see if srcdir already configured
262542d69509Smrg  if test -f $srcdir/config.status; then
2626ff63a143Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
262742d69509Smrg  fi
26284456fccdSmrgfi
26294456fccdSmrg
26304456fccdSmrg# test whether we have cygpath
26314456fccdSmrgif test -z "$CYGPATH_W"; then
26324456fccdSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
26334456fccdSmrg    CYGPATH_W='cygpath -w'
26344456fccdSmrg  else
26354456fccdSmrg    CYGPATH_W=echo
26364456fccdSmrg  fi
26374456fccdSmrgfi
26384456fccdSmrg
26394456fccdSmrg
26404456fccdSmrg# Define the identity of the package.
26414456fccdSmrg PACKAGE='libXfixes'
2642ff63a143Smrg VERSION='5.0'
26434456fccdSmrg
26444456fccdSmrg
26454456fccdSmrgcat >>confdefs.h <<_ACEOF
26464456fccdSmrg#define PACKAGE "$PACKAGE"
26474456fccdSmrg_ACEOF
26484456fccdSmrg
26494456fccdSmrg
26504456fccdSmrgcat >>confdefs.h <<_ACEOF
26514456fccdSmrg#define VERSION "$VERSION"
26524456fccdSmrg_ACEOF
26534456fccdSmrg
26544456fccdSmrg# Some tools Automake needs.
26554456fccdSmrg
26564456fccdSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26574456fccdSmrg
26584456fccdSmrg
26594456fccdSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26604456fccdSmrg
26614456fccdSmrg
26624456fccdSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26634456fccdSmrg
26644456fccdSmrg
26654456fccdSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26664456fccdSmrg
26674456fccdSmrg
26684456fccdSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26694456fccdSmrg
26704456fccdSmrg# We need awk for the "check" target.  The system "awk" is bad on
26714456fccdSmrg# some platforms.
26724456fccdSmrg# Always define AMTAR for backward compatibility.
26734456fccdSmrg
26744456fccdSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
26754456fccdSmrg
26764456fccdSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
26774456fccdSmrg
26784456fccdSmrg
26794456fccdSmrg
26804456fccdSmrg
26814456fccdSmrg
26824456fccdSmrg
2683521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
268442d69509Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26854456fccdSmrg    # Check whether --enable-maintainer-mode was given.
2686521070a0Smrgif test "${enable_maintainer_mode+set}" = set; then :
26874456fccdSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26884456fccdSmrgelse
26894456fccdSmrg  USE_MAINTAINER_MODE=no
26904456fccdSmrgfi
26914456fccdSmrg
2692521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
269342d69509Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
269442d69509Smrg   if test $USE_MAINTAINER_MODE = yes; then
26954456fccdSmrg  MAINTAINER_MODE_TRUE=
26964456fccdSmrg  MAINTAINER_MODE_FALSE='#'
26974456fccdSmrgelse
26984456fccdSmrg  MAINTAINER_MODE_TRUE='#'
26994456fccdSmrg  MAINTAINER_MODE_FALSE=
27004456fccdSmrgfi
27014456fccdSmrg
27024456fccdSmrg  MAINT=$MAINTAINER_MODE_TRUE
27034456fccdSmrg
27044456fccdSmrg
27054456fccdSmrg
2706ff63a143Smrg# Initialize libtool
2707ff63a143Smrgcase `pwd` in
2708ff63a143Smrg  *\ * | *\	*)
2709ff63a143Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2710ff63a143Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2711ff63a143Smrgesac
27124456fccdSmrg
27134456fccdSmrg
271442d69509Smrg
2715ff63a143Smrgmacro_version='2.2.10'
2716ff63a143Smrgmacro_revision='1.3175'
271742d69509Smrg
271842d69509Smrg
271942d69509Smrg
272042d69509Smrg
272142d69509Smrg
272242d69509Smrg
272342d69509Smrg
272442d69509Smrg
272542d69509Smrg
272642d69509Smrg
2727ff63a143Smrg
2728ff63a143Smrg
2729ff63a143Smrg
2730ff63a143Smrgltmain="$ac_aux_dir/ltmain.sh"
2731ff63a143Smrg
2732ff63a143Smrg# Make sure we can run config.sub.
2733ff63a143Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2734ff63a143Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2735ff63a143Smrg
2736ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2737ff63a143Smrg$as_echo_n "checking build system type... " >&6; }
2738ff63a143Smrgif test "${ac_cv_build+set}" = set; then :
2739ff63a143Smrg  $as_echo_n "(cached) " >&6
2740ff63a143Smrgelse
2741ff63a143Smrg  ac_build_alias=$build_alias
2742ff63a143Smrgtest "x$ac_build_alias" = x &&
2743ff63a143Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2744ff63a143Smrgtest "x$ac_build_alias" = x &&
2745ff63a143Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2746ff63a143Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2747ff63a143Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2748ff63a143Smrg
2749ff63a143Smrgfi
2750ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2751ff63a143Smrg$as_echo "$ac_cv_build" >&6; }
2752ff63a143Smrgcase $ac_cv_build in
2753ff63a143Smrg*-*-*) ;;
2754ff63a143Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2755ff63a143Smrgesac
2756ff63a143Smrgbuild=$ac_cv_build
2757ff63a143Smrgac_save_IFS=$IFS; IFS='-'
2758ff63a143Smrgset x $ac_cv_build
2759ff63a143Smrgshift
2760ff63a143Smrgbuild_cpu=$1
2761ff63a143Smrgbuild_vendor=$2
2762ff63a143Smrgshift; shift
2763ff63a143Smrg# Remember, the first character of IFS is used to create $*,
2764ff63a143Smrg# except with old shells:
2765ff63a143Smrgbuild_os=$*
2766ff63a143SmrgIFS=$ac_save_IFS
2767ff63a143Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2768ff63a143Smrg
2769ff63a143Smrg
2770ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2771ff63a143Smrg$as_echo_n "checking host system type... " >&6; }
2772ff63a143Smrgif test "${ac_cv_host+set}" = set; then :
2773ff63a143Smrg  $as_echo_n "(cached) " >&6
2774ff63a143Smrgelse
2775ff63a143Smrg  if test "x$host_alias" = x; then
2776ff63a143Smrg  ac_cv_host=$ac_cv_build
2777ff63a143Smrgelse
2778ff63a143Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2779ff63a143Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2780ff63a143Smrgfi
2781ff63a143Smrg
2782ff63a143Smrgfi
2783ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2784ff63a143Smrg$as_echo "$ac_cv_host" >&6; }
2785ff63a143Smrgcase $ac_cv_host in
2786ff63a143Smrg*-*-*) ;;
2787ff63a143Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2788ff63a143Smrgesac
2789ff63a143Smrghost=$ac_cv_host
2790ff63a143Smrgac_save_IFS=$IFS; IFS='-'
2791ff63a143Smrgset x $ac_cv_host
2792ff63a143Smrgshift
2793ff63a143Smrghost_cpu=$1
2794ff63a143Smrghost_vendor=$2
2795ff63a143Smrgshift; shift
2796ff63a143Smrg# Remember, the first character of IFS is used to create $*,
2797ff63a143Smrg# except with old shells:
2798ff63a143Smrghost_os=$*
2799ff63a143SmrgIFS=$ac_save_IFS
2800ff63a143Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801ff63a143Smrg
2802ff63a143Smrg
2803ff63a143Smrg# Backslashify metacharacters that are still active within
2804ff63a143Smrg# double-quoted strings.
2805ff63a143Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2806ff63a143Smrg
2807ff63a143Smrg# Same as above, but do not quote variable references.
2808ff63a143Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
2809ff63a143Smrg
2810ff63a143Smrg# Sed substitution to delay expansion of an escaped shell variable in a
2811ff63a143Smrg# double_quote_subst'ed string.
2812ff63a143Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2813ff63a143Smrg
2814ff63a143Smrg# Sed substitution to delay expansion of an escaped single quote.
2815ff63a143Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2816ff63a143Smrg
2817ff63a143Smrg# Sed substitution to avoid accidental globbing in evaled expressions
2818ff63a143Smrgno_glob_subst='s/\*/\\\*/g'
2819ff63a143Smrg
2820ff63a143SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2821ff63a143SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2822ff63a143SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2823ff63a143Smrg
2824ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2825ff63a143Smrg$as_echo_n "checking how to print strings... " >&6; }
2826ff63a143Smrg# Test print first, because it will be a builtin if present.
2827ff63a143Smrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \
2828ff63a143Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2829ff63a143Smrg  ECHO='print -r --'
2830ff63a143Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2831ff63a143Smrg  ECHO='printf %s\n'
2832ff63a143Smrgelse
2833ff63a143Smrg  # Use this function as a fallback that always works.
2834ff63a143Smrg  func_fallback_echo ()
2835ff63a143Smrg  {
2836ff63a143Smrg    eval 'cat <<_LTECHO_EOF
2837ff63a143Smrg$1
2838ff63a143Smrg_LTECHO_EOF'
2839ff63a143Smrg  }
2840ff63a143Smrg  ECHO='func_fallback_echo'
2841ff63a143Smrgfi
2842ff63a143Smrg
2843ff63a143Smrg# func_echo_all arg...
2844ff63a143Smrg# Invoke $ECHO with all args, space-separated.
2845ff63a143Smrgfunc_echo_all ()
2846ff63a143Smrg{
2847ff63a143Smrg    $ECHO ""
2848ff63a143Smrg}
2849ff63a143Smrg
2850ff63a143Smrgcase "$ECHO" in
2851ff63a143Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2852ff63a143Smrg$as_echo "printf" >&6; } ;;
2853ff63a143Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2854ff63a143Smrg$as_echo "print -r" >&6; } ;;
2855ff63a143Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2856ff63a143Smrg$as_echo "cat" >&6; } ;;
2857ff63a143Smrgesac
2858ff63a143Smrg
2859ff63a143Smrg
2860ff63a143Smrg
2861ff63a143Smrg
2862ff63a143Smrg
2863ff63a143Smrg
2864ff63a143Smrg
2865ff63a143Smrg
2866ff63a143Smrg
2867ff63a143Smrg
2868ff63a143Smrg
2869ff63a143Smrg
2870ff63a143Smrg
2871ff63a143Smrg
2872ff63a143SmrgDEPDIR="${am__leading_dot}deps"
2873ff63a143Smrg
2874ff63a143Smrgac_config_commands="$ac_config_commands depfiles"
2875ff63a143Smrg
2876ff63a143Smrg
2877ff63a143Smrgam_make=${MAKE-make}
2878ff63a143Smrgcat > confinc << 'END'
2879ff63a143Smrgam__doit:
2880ff63a143Smrg	@echo this is the am__doit target
2881ff63a143Smrg.PHONY: am__doit
2882ff63a143SmrgEND
2883ff63a143Smrg# If we don't find an include directive, just comment out the code.
2884ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2885ff63a143Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2886ff63a143Smrgam__include="#"
2887ff63a143Smrgam__quote=
2888ff63a143Smrg_am_result=none
2889ff63a143Smrg# First try GNU make style include.
2890ff63a143Smrgecho "include confinc" > confmf
2891ff63a143Smrg# Ignore all kinds of additional output from `make'.
2892ff63a143Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2893ff63a143Smrg*the\ am__doit\ target*)
2894ff63a143Smrg  am__include=include
2895ff63a143Smrg  am__quote=
2896ff63a143Smrg  _am_result=GNU
2897ff63a143Smrg  ;;
2898ff63a143Smrgesac
2899ff63a143Smrg# Now try BSD make style include.
2900ff63a143Smrgif test "$am__include" = "#"; then
2901ff63a143Smrg   echo '.include "confinc"' > confmf
2902ff63a143Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2903ff63a143Smrg   *the\ am__doit\ target*)
2904ff63a143Smrg     am__include=.include
2905ff63a143Smrg     am__quote="\""
2906ff63a143Smrg     _am_result=BSD
2907ff63a143Smrg     ;;
2908ff63a143Smrg   esac
2909ff63a143Smrgfi
2910ff63a143Smrg
2911ff63a143Smrg
2912ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2913ff63a143Smrg$as_echo "$_am_result" >&6; }
2914ff63a143Smrgrm -f confinc confmf
2915ff63a143Smrg
2916ff63a143Smrg# Check whether --enable-dependency-tracking was given.
2917ff63a143Smrgif test "${enable_dependency_tracking+set}" = set; then :
2918ff63a143Smrg  enableval=$enable_dependency_tracking;
2919ff63a143Smrgfi
2920ff63a143Smrg
2921ff63a143Smrgif test "x$enable_dependency_tracking" != xno; then
2922ff63a143Smrg  am_depcomp="$ac_aux_dir/depcomp"
2923ff63a143Smrg  AMDEPBACKSLASH='\'
2924ff63a143Smrgfi
2925ff63a143Smrg if test "x$enable_dependency_tracking" != xno; then
2926ff63a143Smrg  AMDEP_TRUE=
2927ff63a143Smrg  AMDEP_FALSE='#'
2928ff63a143Smrgelse
2929ff63a143Smrg  AMDEP_TRUE='#'
2930ff63a143Smrg  AMDEP_FALSE=
2931ff63a143Smrgfi
2932ff63a143Smrg
2933ff63a143Smrg
293442d69509Smrgac_ext=c
293542d69509Smrgac_cpp='$CPP $CPPFLAGS'
293642d69509Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
293742d69509Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29384456fccdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
29394456fccdSmrgif test -n "$ac_tool_prefix"; then
29404456fccdSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29414456fccdSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2942521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
294342d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
2944521070a0Smrgif test "${ac_cv_prog_CC+set}" = set; then :
294542d69509Smrg  $as_echo_n "(cached) " >&6
29464456fccdSmrgelse
29474456fccdSmrg  if test -n "$CC"; then
29484456fccdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29494456fccdSmrgelse
29504456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29514456fccdSmrgfor as_dir in $PATH
29524456fccdSmrgdo
29534456fccdSmrg  IFS=$as_save_IFS
29544456fccdSmrg  test -z "$as_dir" && as_dir=.
2955521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
295642d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29574456fccdSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29594456fccdSmrg    break 2
29604456fccdSmrg  fi
29614456fccdSmrgdone
2962521070a0Smrg  done
29634456fccdSmrgIFS=$as_save_IFS
29644456fccdSmrg
29654456fccdSmrgfi
29664456fccdSmrgfi
29674456fccdSmrgCC=$ac_cv_prog_CC
29684456fccdSmrgif test -n "$CC"; then
2969521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
297042d69509Smrg$as_echo "$CC" >&6; }
29714456fccdSmrgelse
2972521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
297342d69509Smrg$as_echo "no" >&6; }
29744456fccdSmrgfi
29754456fccdSmrg
29764456fccdSmrg
29774456fccdSmrgfi
29784456fccdSmrgif test -z "$ac_cv_prog_CC"; then
29794456fccdSmrg  ac_ct_CC=$CC
29804456fccdSmrg  # Extract the first word of "gcc", so it can be a program name with args.
29814456fccdSmrgset dummy gcc; ac_word=$2
2982521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
298342d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
2984521070a0Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
298542d69509Smrg  $as_echo_n "(cached) " >&6
29864456fccdSmrgelse
29874456fccdSmrg  if test -n "$ac_ct_CC"; then
29884456fccdSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29894456fccdSmrgelse
29904456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914456fccdSmrgfor as_dir in $PATH
29924456fccdSmrgdo
29934456fccdSmrg  IFS=$as_save_IFS
29944456fccdSmrg  test -z "$as_dir" && as_dir=.
2995521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
299642d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29974456fccdSmrg    ac_cv_prog_ac_ct_CC="gcc"
2998521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29994456fccdSmrg    break 2
30004456fccdSmrg  fi
30014456fccdSmrgdone
3002521070a0Smrg  done
30034456fccdSmrgIFS=$as_save_IFS
30044456fccdSmrg
30054456fccdSmrgfi
30064456fccdSmrgfi
30074456fccdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30084456fccdSmrgif test -n "$ac_ct_CC"; then
3009521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
301042d69509Smrg$as_echo "$ac_ct_CC" >&6; }
30114456fccdSmrgelse
3012521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
301342d69509Smrg$as_echo "no" >&6; }
30144456fccdSmrgfi
30154456fccdSmrg
30164456fccdSmrg  if test "x$ac_ct_CC" = x; then
30174456fccdSmrg    CC=""
30184456fccdSmrg  else
30194456fccdSmrg    case $cross_compiling:$ac_tool_warned in
30204456fccdSmrgyes:)
3021521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
302242d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30234456fccdSmrgac_tool_warned=yes ;;
30244456fccdSmrgesac
30254456fccdSmrg    CC=$ac_ct_CC
30264456fccdSmrg  fi
30274456fccdSmrgelse
30284456fccdSmrg  CC="$ac_cv_prog_CC"
30294456fccdSmrgfi
30304456fccdSmrg
30314456fccdSmrgif test -z "$CC"; then
30324456fccdSmrg          if test -n "$ac_tool_prefix"; then
30334456fccdSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30344456fccdSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3035521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
303642d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
3037521070a0Smrgif test "${ac_cv_prog_CC+set}" = set; then :
303842d69509Smrg  $as_echo_n "(cached) " >&6
30394456fccdSmrgelse
30404456fccdSmrg  if test -n "$CC"; then
30414456fccdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30424456fccdSmrgelse
30434456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30444456fccdSmrgfor as_dir in $PATH
30454456fccdSmrgdo
30464456fccdSmrg  IFS=$as_save_IFS
30474456fccdSmrg  test -z "$as_dir" && as_dir=.
3048521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
304942d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504456fccdSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3051521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30524456fccdSmrg    break 2
30534456fccdSmrg  fi
30544456fccdSmrgdone
3055521070a0Smrg  done
30564456fccdSmrgIFS=$as_save_IFS
30574456fccdSmrg
30584456fccdSmrgfi
30594456fccdSmrgfi
30604456fccdSmrgCC=$ac_cv_prog_CC
30614456fccdSmrgif test -n "$CC"; then
3062521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
306342d69509Smrg$as_echo "$CC" >&6; }
30644456fccdSmrgelse
3065521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
306642d69509Smrg$as_echo "no" >&6; }
30674456fccdSmrgfi
30684456fccdSmrg
30694456fccdSmrg
30704456fccdSmrg  fi
30714456fccdSmrgfi
30724456fccdSmrgif test -z "$CC"; then
30734456fccdSmrg  # Extract the first word of "cc", so it can be a program name with args.
30744456fccdSmrgset dummy cc; ac_word=$2
3075521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
307642d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
3077521070a0Smrgif test "${ac_cv_prog_CC+set}" = set; then :
307842d69509Smrg  $as_echo_n "(cached) " >&6
30794456fccdSmrgelse
30804456fccdSmrg  if test -n "$CC"; then
30814456fccdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30824456fccdSmrgelse
30834456fccdSmrg  ac_prog_rejected=no
30844456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30854456fccdSmrgfor as_dir in $PATH
30864456fccdSmrgdo
30874456fccdSmrg  IFS=$as_save_IFS
30884456fccdSmrg  test -z "$as_dir" && as_dir=.
3089521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
309042d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914456fccdSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30924456fccdSmrg       ac_prog_rejected=yes
30934456fccdSmrg       continue
30944456fccdSmrg     fi
30954456fccdSmrg    ac_cv_prog_CC="cc"
3096521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30974456fccdSmrg    break 2
30984456fccdSmrg  fi
30994456fccdSmrgdone
3100521070a0Smrg  done
31014456fccdSmrgIFS=$as_save_IFS
31024456fccdSmrg
31034456fccdSmrgif test $ac_prog_rejected = yes; then
31044456fccdSmrg  # We found a bogon in the path, so make sure we never use it.
31054456fccdSmrg  set dummy $ac_cv_prog_CC
31064456fccdSmrg  shift
31074456fccdSmrg  if test $# != 0; then
31084456fccdSmrg    # We chose a different compiler from the bogus one.
31094456fccdSmrg    # However, it has the same basename, so the bogon will be chosen
31104456fccdSmrg    # first if we set CC to just the basename; use the full file name.
31114456fccdSmrg    shift
31124456fccdSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31134456fccdSmrg  fi
31144456fccdSmrgfi
31154456fccdSmrgfi
31164456fccdSmrgfi
31174456fccdSmrgCC=$ac_cv_prog_CC
31184456fccdSmrgif test -n "$CC"; then
3119521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
312042d69509Smrg$as_echo "$CC" >&6; }
31214456fccdSmrgelse
3122521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
312342d69509Smrg$as_echo "no" >&6; }
31244456fccdSmrgfi
31254456fccdSmrg
31264456fccdSmrg
31274456fccdSmrgfi
31284456fccdSmrgif test -z "$CC"; then
31294456fccdSmrg  if test -n "$ac_tool_prefix"; then
31304456fccdSmrg  for ac_prog in cl.exe
31314456fccdSmrg  do
31324456fccdSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31334456fccdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
313542d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
3136521070a0Smrgif test "${ac_cv_prog_CC+set}" = set; then :
313742d69509Smrg  $as_echo_n "(cached) " >&6
31384456fccdSmrgelse
31394456fccdSmrg  if test -n "$CC"; then
31404456fccdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31414456fccdSmrgelse
31424456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31434456fccdSmrgfor as_dir in $PATH
31444456fccdSmrgdo
31454456fccdSmrg  IFS=$as_save_IFS
31464456fccdSmrg  test -z "$as_dir" && as_dir=.
3147521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
314842d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31494456fccdSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31514456fccdSmrg    break 2
31524456fccdSmrg  fi
31534456fccdSmrgdone
3154521070a0Smrg  done
31554456fccdSmrgIFS=$as_save_IFS
31564456fccdSmrg
31574456fccdSmrgfi
31584456fccdSmrgfi
31594456fccdSmrgCC=$ac_cv_prog_CC
31604456fccdSmrgif test -n "$CC"; then
3161521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
316242d69509Smrg$as_echo "$CC" >&6; }
31634456fccdSmrgelse
3164521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
316542d69509Smrg$as_echo "no" >&6; }
31664456fccdSmrgfi
31674456fccdSmrg
31684456fccdSmrg
31694456fccdSmrg    test -n "$CC" && break
31704456fccdSmrg  done
31714456fccdSmrgfi
31724456fccdSmrgif test -z "$CC"; then
31734456fccdSmrg  ac_ct_CC=$CC
31744456fccdSmrg  for ac_prog in cl.exe
31754456fccdSmrgdo
31764456fccdSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
31774456fccdSmrgset dummy $ac_prog; ac_word=$2
3178521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
317942d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
3180521070a0Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
318142d69509Smrg  $as_echo_n "(cached) " >&6
31824456fccdSmrgelse
31834456fccdSmrg  if test -n "$ac_ct_CC"; then
31844456fccdSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31854456fccdSmrgelse
31864456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31874456fccdSmrgfor as_dir in $PATH
31884456fccdSmrgdo
31894456fccdSmrg  IFS=$as_save_IFS
31904456fccdSmrg  test -z "$as_dir" && as_dir=.
3191521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
319242d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31934456fccdSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3194521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31954456fccdSmrg    break 2
31964456fccdSmrg  fi
31974456fccdSmrgdone
3198521070a0Smrg  done
31994456fccdSmrgIFS=$as_save_IFS
32004456fccdSmrg
32014456fccdSmrgfi
32024456fccdSmrgfi
32034456fccdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32044456fccdSmrgif test -n "$ac_ct_CC"; then
3205521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
320642d69509Smrg$as_echo "$ac_ct_CC" >&6; }
32074456fccdSmrgelse
3208521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
320942d69509Smrg$as_echo "no" >&6; }
32104456fccdSmrgfi
32114456fccdSmrg
32124456fccdSmrg
32134456fccdSmrg  test -n "$ac_ct_CC" && break
32144456fccdSmrgdone
32154456fccdSmrg
32164456fccdSmrg  if test "x$ac_ct_CC" = x; then
32174456fccdSmrg    CC=""
32184456fccdSmrg  else
32194456fccdSmrg    case $cross_compiling:$ac_tool_warned in
32204456fccdSmrgyes:)
3221521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
322242d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32234456fccdSmrgac_tool_warned=yes ;;
32244456fccdSmrgesac
32254456fccdSmrg    CC=$ac_ct_CC
32264456fccdSmrg  fi
32274456fccdSmrgfi
32284456fccdSmrg
32294456fccdSmrgfi
32304456fccdSmrg
32314456fccdSmrg
3232521070a0Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
323342d69509Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234ff63a143Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3235ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
32364456fccdSmrg
32374456fccdSmrg# Provide some information about the compiler.
3238521070a0Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
323942d69509Smrgset X $ac_compile
324042d69509Smrgac_compiler=$2
3241521070a0Smrgfor ac_option in --version -v -V -qversion; do
3242521070a0Smrg  { { ac_try="$ac_compiler $ac_option >&5"
32434456fccdSmrgcase "(($ac_try" in
32444456fccdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454456fccdSmrg  *) ac_try_echo=$ac_try;;
32464456fccdSmrgesac
3247521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248521070a0Smrg$as_echo "$ac_try_echo"; } >&5
3249521070a0Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32504456fccdSmrg  ac_status=$?
3251521070a0Smrg  if test -s conftest.err; then
3252521070a0Smrg    sed '10a\
3253521070a0Smrg... rest of stderr output deleted ...
3254521070a0Smrg         10q' conftest.err >conftest.er1
3255521070a0Smrg    cat conftest.er1 >&5
3256521070a0Smrg  fi
3257521070a0Smrg  rm -f conftest.er1 conftest.err
3258521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259521070a0Smrg  test $ac_status = 0; }
3260521070a0Smrgdone
32614456fccdSmrg
3262521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32634456fccdSmrg/* end confdefs.h.  */
32644456fccdSmrg
32654456fccdSmrgint
32664456fccdSmrgmain ()
32674456fccdSmrg{
32684456fccdSmrg
32694456fccdSmrg  ;
32704456fccdSmrg  return 0;
32714456fccdSmrg}
32724456fccdSmrg_ACEOF
32734456fccdSmrgac_clean_files_save=$ac_clean_files
327442d69509Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
32754456fccdSmrg# Try to create an executable without -o first, disregard a.out.
32764456fccdSmrg# It will help us diagnose broken compilers, and finding out an intuition
32774456fccdSmrg# of exeext.
3278521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279521070a0Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
328042d69509Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
328142d69509Smrg
328242d69509Smrg# The possible output files:
328342d69509Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
328442d69509Smrg
32854456fccdSmrgac_rmfiles=
32864456fccdSmrgfor ac_file in $ac_files
32874456fccdSmrgdo
32884456fccdSmrg  case $ac_file in
328942d69509Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
32904456fccdSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
32914456fccdSmrg  esac
32924456fccdSmrgdone
32934456fccdSmrgrm -f $ac_rmfiles
32944456fccdSmrg
3295521070a0Smrgif { { ac_try="$ac_link_default"
32964456fccdSmrgcase "(($ac_try" in
32974456fccdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984456fccdSmrg  *) ac_try_echo=$ac_try;;
32994456fccdSmrgesac
3300521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301521070a0Smrg$as_echo "$ac_try_echo"; } >&5
33024456fccdSmrg  (eval "$ac_link_default") 2>&5
33034456fccdSmrg  ac_status=$?
3304521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305521070a0Smrg  test $ac_status = 0; }; then :
33064456fccdSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
33074456fccdSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
33084456fccdSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
33094456fccdSmrg# so that the user can short-circuit this test for compilers unknown to
33104456fccdSmrg# Autoconf.
331142d69509Smrgfor ac_file in $ac_files ''
33124456fccdSmrgdo
33134456fccdSmrg  test -f "$ac_file" || continue
33144456fccdSmrg  case $ac_file in
331542d69509Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
33164456fccdSmrg	;;
33174456fccdSmrg    [ab].out )
33184456fccdSmrg	# We found the default executable, but exeext='' is most
33194456fccdSmrg	# certainly right.
33204456fccdSmrg	break;;
33214456fccdSmrg    *.* )
3322521070a0Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
33234456fccdSmrg	then :; else
33244456fccdSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
33254456fccdSmrg	fi
33264456fccdSmrg	# We set ac_cv_exeext here because the later test for it is not
33274456fccdSmrg	# safe: cross compilers may not add the suffix if given an `-o'
33284456fccdSmrg	# argument, so we may need to know it at that point already.
33294456fccdSmrg	# Even if this section looks crufty: it has the advantage of
33304456fccdSmrg	# actually working.
33314456fccdSmrg	break;;
33324456fccdSmrg    * )
33334456fccdSmrg	break;;
33344456fccdSmrg  esac
33354456fccdSmrgdone
33364456fccdSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
33374456fccdSmrg
33384456fccdSmrgelse
333942d69509Smrg  ac_file=''
334042d69509Smrgfi
3341521070a0Smrgif test -z "$ac_file"; then :
3342521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343521070a0Smrg$as_echo "no" >&6; }
3344521070a0Smrg$as_echo "$as_me: failed program was:" >&5
33454456fccdSmrgsed 's/^/| /' conftest.$ac_ext >&5
33464456fccdSmrg
3347521070a0Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
334842d69509Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349ff63a143Smrgas_fn_error 77 "C compiler cannot create executables
3350ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
3351521070a0Smrgelse
3352521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353521070a0Smrg$as_echo "yes" >&6; }
33544456fccdSmrgfi
3355521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356521070a0Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3357521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358521070a0Smrg$as_echo "$ac_file" >&6; }
33594456fccdSmrgac_exeext=$ac_cv_exeext
33604456fccdSmrg
336142d69509Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
33624456fccdSmrgac_clean_files=$ac_clean_files_save
3363521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
336442d69509Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3365521070a0Smrgif { { ac_try="$ac_link"
33664456fccdSmrgcase "(($ac_try" in
33674456fccdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33684456fccdSmrg  *) ac_try_echo=$ac_try;;
33694456fccdSmrgesac
3370521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371521070a0Smrg$as_echo "$ac_try_echo"; } >&5
33724456fccdSmrg  (eval "$ac_link") 2>&5
33734456fccdSmrg  ac_status=$?
3374521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375521070a0Smrg  test $ac_status = 0; }; then :
33764456fccdSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
33774456fccdSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
33784456fccdSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
33794456fccdSmrg# `rm'.
33804456fccdSmrgfor ac_file in conftest.exe conftest conftest.*; do
33814456fccdSmrg  test -f "$ac_file" || continue
33824456fccdSmrg  case $ac_file in
338342d69509Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
33844456fccdSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
33854456fccdSmrg	  break;;
33864456fccdSmrg    * ) break;;
33874456fccdSmrg  esac
33884456fccdSmrgdone
33894456fccdSmrgelse
3390521070a0Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
339142d69509Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392ff63a143Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
33944456fccdSmrgfi
3395521070a0Smrgrm -f conftest conftest$ac_cv_exeext
3396521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
339742d69509Smrg$as_echo "$ac_cv_exeext" >&6; }
33984456fccdSmrg
33994456fccdSmrgrm -f conftest.$ac_ext
34004456fccdSmrgEXEEXT=$ac_cv_exeext
34014456fccdSmrgac_exeext=$EXEEXT
3402521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403521070a0Smrg/* end confdefs.h.  */
3404521070a0Smrg#include <stdio.h>
3405521070a0Smrgint
3406521070a0Smrgmain ()
3407521070a0Smrg{
3408521070a0SmrgFILE *f = fopen ("conftest.out", "w");
3409521070a0Smrg return ferror (f) || fclose (f) != 0;
3410521070a0Smrg
3411521070a0Smrg  ;
3412521070a0Smrg  return 0;
3413521070a0Smrg}
3414521070a0Smrg_ACEOF
3415521070a0Smrgac_clean_files="$ac_clean_files conftest.out"
3416521070a0Smrg# Check that the compiler produces executables we can run.  If not, either
3417521070a0Smrg# the compiler is broken, or we cross compile.
3418521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419521070a0Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3420521070a0Smrgif test "$cross_compiling" != yes; then
3421521070a0Smrg  { { ac_try="$ac_link"
3422521070a0Smrgcase "(($ac_try" in
3423521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424521070a0Smrg  *) ac_try_echo=$ac_try;;
3425521070a0Smrgesac
3426521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427521070a0Smrg$as_echo "$ac_try_echo"; } >&5
3428521070a0Smrg  (eval "$ac_link") 2>&5
3429521070a0Smrg  ac_status=$?
3430521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431521070a0Smrg  test $ac_status = 0; }
3432521070a0Smrg  if { ac_try='./conftest$ac_cv_exeext'
3433521070a0Smrg  { { case "(($ac_try" in
3434521070a0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435521070a0Smrg  *) ac_try_echo=$ac_try;;
3436521070a0Smrgesac
3437521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438521070a0Smrg$as_echo "$ac_try_echo"; } >&5
3439521070a0Smrg  (eval "$ac_try") 2>&5
3440521070a0Smrg  ac_status=$?
3441521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442521070a0Smrg  test $ac_status = 0; }; }; then
3443521070a0Smrg    cross_compiling=no
3444521070a0Smrg  else
3445521070a0Smrg    if test "$cross_compiling" = maybe; then
3446521070a0Smrg	cross_compiling=yes
3447521070a0Smrg    else
3448521070a0Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449521070a0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450ff63a143Smrgas_fn_error $? "cannot run C compiled programs.
3451521070a0SmrgIf you meant to cross compile, use \`--host'.
3452ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
3453521070a0Smrg    fi
3454521070a0Smrg  fi
3455521070a0Smrgfi
3456521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457521070a0Smrg$as_echo "$cross_compiling" >&6; }
3458521070a0Smrg
3459521070a0Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460521070a0Smrgac_clean_files=$ac_clean_files_save
3461521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
346242d69509Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3463521070a0Smrgif test "${ac_cv_objext+set}" = set; then :
346442d69509Smrg  $as_echo_n "(cached) " >&6
34654456fccdSmrgelse
3466521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674456fccdSmrg/* end confdefs.h.  */
34684456fccdSmrg
34694456fccdSmrgint
34704456fccdSmrgmain ()
34714456fccdSmrg{
34724456fccdSmrg
34734456fccdSmrg  ;
34744456fccdSmrg  return 0;
34754456fccdSmrg}
34764456fccdSmrg_ACEOF
34774456fccdSmrgrm -f conftest.o conftest.obj
3478521070a0Smrgif { { ac_try="$ac_compile"
34794456fccdSmrgcase "(($ac_try" in
34804456fccdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814456fccdSmrg  *) ac_try_echo=$ac_try;;
34824456fccdSmrgesac
3483521070a0Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484521070a0Smrg$as_echo "$ac_try_echo"; } >&5
34854456fccdSmrg  (eval "$ac_compile") 2>&5
34864456fccdSmrg  ac_status=$?
3487521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488521070a0Smrg  test $ac_status = 0; }; then :
34894456fccdSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
34904456fccdSmrg  test -f "$ac_file" || continue;
34914456fccdSmrg  case $ac_file in
349242d69509Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
34934456fccdSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
34944456fccdSmrg       break;;
34954456fccdSmrg  esac
34964456fccdSmrgdone
34974456fccdSmrgelse
349842d69509Smrg  $as_echo "$as_me: failed program was:" >&5
34994456fccdSmrgsed 's/^/| /' conftest.$ac_ext >&5
35004456fccdSmrg
3501521070a0Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
350242d69509Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503ff63a143Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3504ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
35054456fccdSmrgfi
35064456fccdSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
35074456fccdSmrgfi
3508521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
350942d69509Smrg$as_echo "$ac_cv_objext" >&6; }
35104456fccdSmrgOBJEXT=$ac_cv_objext
35114456fccdSmrgac_objext=$OBJEXT
3512521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
351342d69509Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514521070a0Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
351542d69509Smrg  $as_echo_n "(cached) " >&6
35164456fccdSmrgelse
3517521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35184456fccdSmrg/* end confdefs.h.  */
35194456fccdSmrg
35204456fccdSmrgint
35214456fccdSmrgmain ()
35224456fccdSmrg{
35234456fccdSmrg#ifndef __GNUC__
35244456fccdSmrg       choke me
35254456fccdSmrg#endif
35264456fccdSmrg
35274456fccdSmrg  ;
35284456fccdSmrg  return 0;
35294456fccdSmrg}
35304456fccdSmrg_ACEOF
3531521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
35324456fccdSmrg  ac_compiler_gnu=yes
35334456fccdSmrgelse
3534521070a0Smrg  ac_compiler_gnu=no
35354456fccdSmrgfi
35364456fccdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35374456fccdSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
35384456fccdSmrg
35394456fccdSmrgfi
3540521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
354142d69509Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
354242d69509Smrgif test $ac_compiler_gnu = yes; then
354342d69509Smrg  GCC=yes
354442d69509Smrgelse
354542d69509Smrg  GCC=
354642d69509Smrgfi
35474456fccdSmrgac_test_CFLAGS=${CFLAGS+set}
35484456fccdSmrgac_save_CFLAGS=$CFLAGS
3549521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
355042d69509Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3551521070a0Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
355242d69509Smrg  $as_echo_n "(cached) " >&6
35534456fccdSmrgelse
35544456fccdSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
35554456fccdSmrg   ac_c_werror_flag=yes
35564456fccdSmrg   ac_cv_prog_cc_g=no
35574456fccdSmrg   CFLAGS="-g"
3558521070a0Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35594456fccdSmrg/* end confdefs.h.  */
35604456fccdSmrg
35614456fccdSmrgint
35624456fccdSmrgmain ()
35634456fccdSmrg{
35644456fccdSmrg
35654456fccdSmrg  ;
35664456fccdSmrg  return 0;
35674456fccdSmrg}
35684456fccdSmrg_ACEOF
3569521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
35704456fccdSmrg  ac_cv_prog_cc_g=yes
35714456fccdSmrgelse
3572521070a0Smrg  CFLAGS=""
3573521070a0Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35744456fccdSmrg/* end confdefs.h.  */
35754456fccdSmrg
35764456fccdSmrgint
35774456fccdSmrgmain ()
35784456fccdSmrg{
35794456fccdSmrg
35804456fccdSmrg  ;
35814456fccdSmrg  return 0;
35824456fccdSmrg}
35834456fccdSmrg_ACEOF
3584521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
35854456fccdSmrg
3586521070a0Smrgelse
3587521070a0Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
35884456fccdSmrg	 CFLAGS="-g"
3589521070a0Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35904456fccdSmrg/* end confdefs.h.  */
35914456fccdSmrg
35924456fccdSmrgint
35934456fccdSmrgmain ()
35944456fccdSmrg{
35954456fccdSmrg
35964456fccdSmrg  ;
35974456fccdSmrg  return 0;
35984456fccdSmrg}
35994456fccdSmrg_ACEOF
3600521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
36014456fccdSmrg  ac_cv_prog_cc_g=yes
36024456fccdSmrgfi
36034456fccdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044456fccdSmrgfi
36054456fccdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36064456fccdSmrgfi
36074456fccdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36084456fccdSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
36094456fccdSmrgfi
3610521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
361142d69509Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
36124456fccdSmrgif test "$ac_test_CFLAGS" = set; then
36134456fccdSmrg  CFLAGS=$ac_save_CFLAGS
36144456fccdSmrgelif test $ac_cv_prog_cc_g = yes; then
36154456fccdSmrg  if test "$GCC" = yes; then
36164456fccdSmrg    CFLAGS="-g -O2"
36174456fccdSmrg  else
36184456fccdSmrg    CFLAGS="-g"
36194456fccdSmrg  fi
36204456fccdSmrgelse
36214456fccdSmrg  if test "$GCC" = yes; then
36224456fccdSmrg    CFLAGS="-O2"
36234456fccdSmrg  else
36244456fccdSmrg    CFLAGS=
36254456fccdSmrg  fi
36264456fccdSmrgfi
3627521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
362842d69509Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629521070a0Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
363042d69509Smrg  $as_echo_n "(cached) " >&6
36314456fccdSmrgelse
36324456fccdSmrg  ac_cv_prog_cc_c89=no
36334456fccdSmrgac_save_CC=$CC
3634521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36354456fccdSmrg/* end confdefs.h.  */
36364456fccdSmrg#include <stdarg.h>
36374456fccdSmrg#include <stdio.h>
36384456fccdSmrg#include <sys/types.h>
36394456fccdSmrg#include <sys/stat.h>
36404456fccdSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
36414456fccdSmrgstruct buf { int x; };
36424456fccdSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
36434456fccdSmrgstatic char *e (p, i)
36444456fccdSmrg     char **p;
36454456fccdSmrg     int i;
36464456fccdSmrg{
36474456fccdSmrg  return p[i];
36484456fccdSmrg}
36494456fccdSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
36504456fccdSmrg{
36514456fccdSmrg  char *s;
36524456fccdSmrg  va_list v;
36534456fccdSmrg  va_start (v,p);
36544456fccdSmrg  s = g (p, va_arg (v,int));
36554456fccdSmrg  va_end (v);
36564456fccdSmrg  return s;
36574456fccdSmrg}
36584456fccdSmrg
36594456fccdSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
36604456fccdSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
36614456fccdSmrg   These don't provoke an error unfortunately, instead are silently treated
36624456fccdSmrg   as 'x'.  The following induces an error, until -std is added to get
36634456fccdSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
36644456fccdSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
36654456fccdSmrg   that's true only with -std.  */
36664456fccdSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
36674456fccdSmrg
36684456fccdSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
36694456fccdSmrg   inside strings and character constants.  */
36704456fccdSmrg#define FOO(x) 'x'
36714456fccdSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
36724456fccdSmrg
36734456fccdSmrgint test (int i, double x);
36744456fccdSmrgstruct s1 {int (*f) (int a);};
36754456fccdSmrgstruct s2 {int (*f) (double a);};
36764456fccdSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
36774456fccdSmrgint argc;
36784456fccdSmrgchar **argv;
36794456fccdSmrgint
36804456fccdSmrgmain ()
36814456fccdSmrg{
36824456fccdSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
36834456fccdSmrg  ;
36844456fccdSmrg  return 0;
36854456fccdSmrg}
36864456fccdSmrg_ACEOF
36874456fccdSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
36884456fccdSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
36894456fccdSmrgdo
36904456fccdSmrg  CC="$ac_save_CC $ac_arg"
3691521070a0Smrg  if ac_fn_c_try_compile "$LINENO"; then :
36924456fccdSmrg  ac_cv_prog_cc_c89=$ac_arg
36934456fccdSmrgfi
36944456fccdSmrgrm -f core conftest.err conftest.$ac_objext
36954456fccdSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
36964456fccdSmrgdone
36974456fccdSmrgrm -f conftest.$ac_ext
36984456fccdSmrgCC=$ac_save_CC
36994456fccdSmrg
37004456fccdSmrgfi
37014456fccdSmrg# AC_CACHE_VAL
37024456fccdSmrgcase "x$ac_cv_prog_cc_c89" in
37034456fccdSmrg  x)
3704521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
370542d69509Smrg$as_echo "none needed" >&6; } ;;
37064456fccdSmrg  xno)
3707521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
370842d69509Smrg$as_echo "unsupported" >&6; } ;;
37094456fccdSmrg  *)
37104456fccdSmrg    CC="$CC $ac_cv_prog_cc_c89"
3711521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
371242d69509Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
37134456fccdSmrgesac
3714521070a0Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
37154456fccdSmrg
3716521070a0Smrgfi
37174456fccdSmrg
37184456fccdSmrgac_ext=c
37194456fccdSmrgac_cpp='$CPP $CPPFLAGS'
37204456fccdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37214456fccdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37224456fccdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37234456fccdSmrg
37244456fccdSmrgdepcc="$CC"   am_compiler_list=
37254456fccdSmrg
3726521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
372742d69509Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3728521070a0Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
372942d69509Smrg  $as_echo_n "(cached) " >&6
37304456fccdSmrgelse
37314456fccdSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37324456fccdSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
37334456fccdSmrg  # making bogus files that we don't know about and never remove.  For
37344456fccdSmrg  # instance it was reported that on HP-UX the gcc test will end up
37354456fccdSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
37364456fccdSmrg  # in D'.
37374456fccdSmrg  mkdir conftest.dir
37384456fccdSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
37394456fccdSmrg  # using a relative directory.
37404456fccdSmrg  cp "$am_depcomp" conftest.dir
37414456fccdSmrg  cd conftest.dir
37424456fccdSmrg  # We will build objects and dependencies in a subdirectory because
37434456fccdSmrg  # it helps to detect inapplicable dependency modes.  For instance
37444456fccdSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
37454456fccdSmrg  # side effect of compilation, but ICC will put the dependencies in
37464456fccdSmrg  # the current directory while Tru64 will put them in the object
37474456fccdSmrg  # directory.
37484456fccdSmrg  mkdir sub
37494456fccdSmrg
37504456fccdSmrg  am_cv_CC_dependencies_compiler_type=none
37514456fccdSmrg  if test "$am_compiler_list" = ""; then
37524456fccdSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37534456fccdSmrg  fi
375442d69509Smrg  am__universal=false
375542d69509Smrg  case " $depcc " in #(
375642d69509Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
375742d69509Smrg     esac
375842d69509Smrg
37594456fccdSmrg  for depmode in $am_compiler_list; do
37604456fccdSmrg    # Setup a source with many dependencies, because some compilers
37614456fccdSmrg    # like to wrap large dependency lists on column 80 (with \), and
37624456fccdSmrg    # we should not choose a depcomp mode which is confused by this.
37634456fccdSmrg    #
37644456fccdSmrg    # We need to recreate these files for each test, as the compiler may
37654456fccdSmrg    # overwrite some of them when testing with obscure command lines.
37664456fccdSmrg    # This happens at least with the AIX C compiler.
37674456fccdSmrg    : > sub/conftest.c
37684456fccdSmrg    for i in 1 2 3 4 5 6; do
37694456fccdSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
37704456fccdSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
37714456fccdSmrg      # Solaris 8's {/usr,}/bin/sh.
37724456fccdSmrg      touch sub/conftst$i.h
37734456fccdSmrg    done
37744456fccdSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37754456fccdSmrg
377642d69509Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
377742d69509Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
377842d69509Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
377942d69509Smrg    # versions had trouble with output in subdirs
378042d69509Smrg    am__obj=sub/conftest.${OBJEXT-o}
378142d69509Smrg    am__minus_obj="-o $am__obj"
37824456fccdSmrg    case $depmode in
378342d69509Smrg    gcc)
378442d69509Smrg      # This depmode causes a compiler race in universal mode.
378542d69509Smrg      test "$am__universal" = false || continue
378642d69509Smrg      ;;
37874456fccdSmrg    nosideeffect)
37884456fccdSmrg      # after this tag, mechanisms are not by side-effect, so they'll
37894456fccdSmrg      # only be used when explicitly requested
37904456fccdSmrg      if test "x$enable_dependency_tracking" = xyes; then
37914456fccdSmrg	continue
37924456fccdSmrg      else
37934456fccdSmrg	break
37944456fccdSmrg      fi
37954456fccdSmrg      ;;
379642d69509Smrg    msvisualcpp | msvcmsys)
379742d69509Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
379842d69509Smrg      # not run yet.  These depmodes are late enough in the game, and
379942d69509Smrg      # so weak that their functioning should not be impacted.
380042d69509Smrg      am__obj=conftest.${OBJEXT-o}
380142d69509Smrg      am__minus_obj=
380242d69509Smrg      ;;
38034456fccdSmrg    none) break ;;
38044456fccdSmrg    esac
38054456fccdSmrg    if depmode=$depmode \
380642d69509Smrg       source=sub/conftest.c object=$am__obj \
38074456fccdSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
380842d69509Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
38094456fccdSmrg         >/dev/null 2>conftest.err &&
381042d69509Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
38114456fccdSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
381242d69509Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
38134456fccdSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
38144456fccdSmrg      # icc doesn't choke on unknown options, it will just issue warnings
38154456fccdSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
38164456fccdSmrg      # that says an option was ignored or not supported.
38174456fccdSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
38184456fccdSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
38194456fccdSmrg      # The diagnosis changed in icc 8.0:
38204456fccdSmrg      #   icc: Command line remark: option '-MP' not supported
38214456fccdSmrg      if (grep 'ignoring option' conftest.err ||
38224456fccdSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
38234456fccdSmrg        am_cv_CC_dependencies_compiler_type=$depmode
38244456fccdSmrg        break
38254456fccdSmrg      fi
38264456fccdSmrg    fi
38274456fccdSmrg  done
38284456fccdSmrg
38294456fccdSmrg  cd ..
38304456fccdSmrg  rm -rf conftest.dir
38314456fccdSmrgelse
38324456fccdSmrg  am_cv_CC_dependencies_compiler_type=none
38334456fccdSmrgfi
38344456fccdSmrg
38354456fccdSmrgfi
3836521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
383742d69509Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
38384456fccdSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
38394456fccdSmrg
3840ff63a143Smrg if
3841ff63a143Smrg  test "x$enable_dependency_tracking" != xno \
3842ff63a143Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843ff63a143Smrg  am__fastdepCC_TRUE=
3844ff63a143Smrg  am__fastdepCC_FALSE='#'
3845ff63a143Smrgelse
3846ff63a143Smrg  am__fastdepCC_TRUE='#'
3847ff63a143Smrg  am__fastdepCC_FALSE=
3848ff63a143Smrgfi
3849ff63a143Smrg
38504456fccdSmrg
3851521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
385242d69509Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3853521070a0Smrgif test "${ac_cv_path_SED+set}" = set; then :
385442d69509Smrg  $as_echo_n "(cached) " >&6
38554456fccdSmrgelse
3856521070a0Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3857521070a0Smrg     for ac_i in 1 2 3 4 5 6 7; do
3858521070a0Smrg       ac_script="$ac_script$as_nl$ac_script"
3859521070a0Smrg     done
3860521070a0Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3861521070a0Smrg     { ac_script=; unset ac_script;}
3862521070a0Smrg     if test -z "$SED"; then
3863521070a0Smrg  ac_path_SED_found=false
3864521070a0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3865521070a0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38664456fccdSmrgfor as_dir in $PATH
38674456fccdSmrgdo
38684456fccdSmrg  IFS=$as_save_IFS
38694456fccdSmrg  test -z "$as_dir" && as_dir=.
3870521070a0Smrg    for ac_prog in sed gsed; do
38714456fccdSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3872521070a0Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3873521070a0Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3874521070a0Smrg# Check for GNU ac_path_SED and select it if it is found.
3875521070a0Smrg  # Check for GNU $ac_path_SED
3876521070a0Smrgcase `"$ac_path_SED" --version 2>&1` in
3877521070a0Smrg*GNU*)
3878521070a0Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3879521070a0Smrg*)
3880521070a0Smrg  ac_count=0
3881521070a0Smrg  $as_echo_n 0123456789 >"conftest.in"
3882521070a0Smrg  while :
3883521070a0Smrg  do
3884521070a0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3885521070a0Smrg    mv "conftest.tmp" "conftest.in"
3886521070a0Smrg    cp "conftest.in" "conftest.nl"
3887521070a0Smrg    $as_echo '' >> "conftest.nl"
3888521070a0Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889521070a0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890521070a0Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3891521070a0Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
3892521070a0Smrg      # Best one so far, save it but keep looking for a better one
3893521070a0Smrg      ac_cv_path_SED="$ac_path_SED"
3894521070a0Smrg      ac_path_SED_max=$ac_count
3895521070a0Smrg    fi
3896521070a0Smrg    # 10*(2^10) chars as input seems more than enough
3897521070a0Smrg    test $ac_count -gt 10 && break
3898521070a0Smrg  done
3899521070a0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900521070a0Smrgesac
3901521070a0Smrg
3902521070a0Smrg      $ac_path_SED_found && break 3
39034456fccdSmrg    done
39044456fccdSmrg  done
3905521070a0Smrg  done
390642d69509SmrgIFS=$as_save_IFS
3907521070a0Smrg  if test -z "$ac_cv_path_SED"; then
3908ff63a143Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
39094456fccdSmrg  fi
3910521070a0Smrgelse
3911521070a0Smrg  ac_cv_path_SED=$SED
3912521070a0Smrgfi
39134456fccdSmrg
39144456fccdSmrgfi
3915521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3916521070a0Smrg$as_echo "$ac_cv_path_SED" >&6; }
3917521070a0Smrg SED="$ac_cv_path_SED"
3918521070a0Smrg  rm -f conftest.sed
3919521070a0Smrg
3920521070a0Smrgtest -z "$SED" && SED=sed
3921521070a0SmrgXsed="$SED -e 1s/^X//"
3922521070a0Smrg
3923521070a0Smrg
3924521070a0Smrg
3925521070a0Smrg
3926521070a0Smrg
3927521070a0Smrg
3928521070a0Smrg
3929521070a0Smrg
39304456fccdSmrg
39314456fccdSmrg
393242d69509Smrg
3933521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
393442d69509Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3935521070a0Smrgif test "${ac_cv_path_GREP+set}" = set; then :
393642d69509Smrg  $as_echo_n "(cached) " >&6
39374456fccdSmrgelse
393842d69509Smrg  if test -z "$GREP"; then
39394456fccdSmrg  ac_path_GREP_found=false
394042d69509Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
394142d69509Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39424456fccdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39434456fccdSmrgdo
39444456fccdSmrg  IFS=$as_save_IFS
39454456fccdSmrg  test -z "$as_dir" && as_dir=.
3946521070a0Smrg    for ac_prog in grep ggrep; do
394742d69509Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
394842d69509Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
394942d69509Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
395042d69509Smrg# Check for GNU ac_path_GREP and select it if it is found.
39514456fccdSmrg  # Check for GNU $ac_path_GREP
39524456fccdSmrgcase `"$ac_path_GREP" --version 2>&1` in
39534456fccdSmrg*GNU*)
39544456fccdSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39554456fccdSmrg*)
39564456fccdSmrg  ac_count=0
395742d69509Smrg  $as_echo_n 0123456789 >"conftest.in"
39584456fccdSmrg  while :
39594456fccdSmrg  do
39604456fccdSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39614456fccdSmrg    mv "conftest.tmp" "conftest.in"
39624456fccdSmrg    cp "conftest.in" "conftest.nl"
396342d69509Smrg    $as_echo 'GREP' >> "conftest.nl"
39644456fccdSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39654456fccdSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966521070a0Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
39674456fccdSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
39684456fccdSmrg      # Best one so far, save it but keep looking for a better one
39694456fccdSmrg      ac_cv_path_GREP="$ac_path_GREP"
39704456fccdSmrg      ac_path_GREP_max=$ac_count
39714456fccdSmrg    fi
39724456fccdSmrg    # 10*(2^10) chars as input seems more than enough
39734456fccdSmrg    test $ac_count -gt 10 && break
39744456fccdSmrg  done
39754456fccdSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39764456fccdSmrgesac
39774456fccdSmrg
397842d69509Smrg      $ac_path_GREP_found && break 3
397942d69509Smrg    done
39804456fccdSmrg  done
3981521070a0Smrg  done
39824456fccdSmrgIFS=$as_save_IFS
398342d69509Smrg  if test -z "$ac_cv_path_GREP"; then
3984ff63a143Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
398542d69509Smrg  fi
39864456fccdSmrgelse
39874456fccdSmrg  ac_cv_path_GREP=$GREP
39884456fccdSmrgfi
39894456fccdSmrg
39904456fccdSmrgfi
3991521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
399242d69509Smrg$as_echo "$ac_cv_path_GREP" >&6; }
39934456fccdSmrg GREP="$ac_cv_path_GREP"
39944456fccdSmrg
39954456fccdSmrg
3996521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
399742d69509Smrg$as_echo_n "checking for egrep... " >&6; }
3998521070a0Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
399942d69509Smrg  $as_echo_n "(cached) " >&6
40004456fccdSmrgelse
40014456fccdSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40024456fccdSmrg   then ac_cv_path_EGREP="$GREP -E"
40034456fccdSmrg   else
400442d69509Smrg     if test -z "$EGREP"; then
40054456fccdSmrg  ac_path_EGREP_found=false
400642d69509Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
400742d69509Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40084456fccdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40094456fccdSmrgdo
40104456fccdSmrg  IFS=$as_save_IFS
40114456fccdSmrg  test -z "$as_dir" && as_dir=.
4012521070a0Smrg    for ac_prog in egrep; do
401342d69509Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
401442d69509Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
401542d69509Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
401642d69509Smrg# Check for GNU ac_path_EGREP and select it if it is found.
40174456fccdSmrg  # Check for GNU $ac_path_EGREP
40184456fccdSmrgcase `"$ac_path_EGREP" --version 2>&1` in
40194456fccdSmrg*GNU*)
40204456fccdSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
40214456fccdSmrg*)
40224456fccdSmrg  ac_count=0
402342d69509Smrg  $as_echo_n 0123456789 >"conftest.in"
40244456fccdSmrg  while :
40254456fccdSmrg  do
40264456fccdSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40274456fccdSmrg    mv "conftest.tmp" "conftest.in"
40284456fccdSmrg    cp "conftest.in" "conftest.nl"
402942d69509Smrg    $as_echo 'EGREP' >> "conftest.nl"
40304456fccdSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40314456fccdSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032521070a0Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40334456fccdSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40344456fccdSmrg      # Best one so far, save it but keep looking for a better one
40354456fccdSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40364456fccdSmrg      ac_path_EGREP_max=$ac_count
40374456fccdSmrg    fi
40384456fccdSmrg    # 10*(2^10) chars as input seems more than enough
40394456fccdSmrg    test $ac_count -gt 10 && break
40404456fccdSmrg  done
40414456fccdSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40424456fccdSmrgesac
40434456fccdSmrg
404442d69509Smrg      $ac_path_EGREP_found && break 3
404542d69509Smrg    done
40464456fccdSmrg  done
4047521070a0Smrg  done
40484456fccdSmrgIFS=$as_save_IFS
404942d69509Smrg  if test -z "$ac_cv_path_EGREP"; then
4050ff63a143Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
405142d69509Smrg  fi
40524456fccdSmrgelse
40534456fccdSmrg  ac_cv_path_EGREP=$EGREP
40544456fccdSmrgfi
40554456fccdSmrg
40564456fccdSmrg   fi
40574456fccdSmrgfi
4058521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
405942d69509Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
40604456fccdSmrg EGREP="$ac_cv_path_EGREP"
40614456fccdSmrg
40624456fccdSmrg
4063521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4064521070a0Smrg$as_echo_n "checking for fgrep... " >&6; }
4065521070a0Smrgif test "${ac_cv_path_FGREP+set}" = set; then :
4066521070a0Smrg  $as_echo_n "(cached) " >&6
4067521070a0Smrgelse
4068521070a0Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4069521070a0Smrg   then ac_cv_path_FGREP="$GREP -F"
4070521070a0Smrg   else
4071521070a0Smrg     if test -z "$FGREP"; then
4072521070a0Smrg  ac_path_FGREP_found=false
4073521070a0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4074521070a0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075521070a0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076521070a0Smrgdo
4077521070a0Smrg  IFS=$as_save_IFS
4078521070a0Smrg  test -z "$as_dir" && as_dir=.
4079521070a0Smrg    for ac_prog in fgrep; do
4080521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4081521070a0Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4082521070a0Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4083521070a0Smrg# Check for GNU ac_path_FGREP and select it if it is found.
4084521070a0Smrg  # Check for GNU $ac_path_FGREP
4085521070a0Smrgcase `"$ac_path_FGREP" --version 2>&1` in
4086521070a0Smrg*GNU*)
4087521070a0Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4088521070a0Smrg*)
4089521070a0Smrg  ac_count=0
4090521070a0Smrg  $as_echo_n 0123456789 >"conftest.in"
4091521070a0Smrg  while :
4092521070a0Smrg  do
4093521070a0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4094521070a0Smrg    mv "conftest.tmp" "conftest.in"
4095521070a0Smrg    cp "conftest.in" "conftest.nl"
4096521070a0Smrg    $as_echo 'FGREP' >> "conftest.nl"
4097521070a0Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098521070a0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099521070a0Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4100521070a0Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4101521070a0Smrg      # Best one so far, save it but keep looking for a better one
4102521070a0Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
4103521070a0Smrg      ac_path_FGREP_max=$ac_count
4104521070a0Smrg    fi
4105521070a0Smrg    # 10*(2^10) chars as input seems more than enough
4106521070a0Smrg    test $ac_count -gt 10 && break
4107521070a0Smrg  done
4108521070a0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109521070a0Smrgesac
4110521070a0Smrg
4111521070a0Smrg      $ac_path_FGREP_found && break 3
4112521070a0Smrg    done
4113521070a0Smrg  done
4114521070a0Smrg  done
4115521070a0SmrgIFS=$as_save_IFS
4116521070a0Smrg  if test -z "$ac_cv_path_FGREP"; then
4117ff63a143Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118521070a0Smrg  fi
4119521070a0Smrgelse
4120521070a0Smrg  ac_cv_path_FGREP=$FGREP
4121521070a0Smrgfi
4122521070a0Smrg
4123521070a0Smrg   fi
4124521070a0Smrgfi
4125521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4126521070a0Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
4127521070a0Smrg FGREP="$ac_cv_path_FGREP"
4128521070a0Smrg
4129521070a0Smrg
4130521070a0Smrgtest -z "$GREP" && GREP=grep
4131521070a0Smrg
4132521070a0Smrg
4133521070a0Smrg
4134521070a0Smrg
4135521070a0Smrg
4136521070a0Smrg
4137521070a0Smrg
4138521070a0Smrg
4139521070a0Smrg
4140521070a0Smrg
4141521070a0Smrg
4142521070a0Smrg
4143521070a0Smrg
4144521070a0Smrg
4145521070a0Smrg
4146521070a0Smrg
4147521070a0Smrg
4148521070a0Smrg
41494456fccdSmrg
41504456fccdSmrg# Check whether --with-gnu-ld was given.
4151521070a0Smrgif test "${with_gnu_ld+set}" = set; then :
41524456fccdSmrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
41534456fccdSmrgelse
41544456fccdSmrg  with_gnu_ld=no
41554456fccdSmrgfi
41564456fccdSmrg
41574456fccdSmrgac_prog=ld
41584456fccdSmrgif test "$GCC" = yes; then
41594456fccdSmrg  # Check if gcc -print-prog-name=ld gives a path.
4160521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
416142d69509Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
41624456fccdSmrg  case $host in
41634456fccdSmrg  *-*-mingw*)
41644456fccdSmrg    # gcc leaves a trailing carriage return which upsets mingw
41654456fccdSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
41664456fccdSmrg  *)
41674456fccdSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
41684456fccdSmrg  esac
41694456fccdSmrg  case $ac_prog in
41704456fccdSmrg    # Accept absolute paths.
41714456fccdSmrg    [\\/]* | ?:[\\/]*)
41724456fccdSmrg      re_direlt='/[^/][^/]*/\.\./'
41734456fccdSmrg      # Canonicalize the pathname of ld
4174521070a0Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4175521070a0Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4176521070a0Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
41774456fccdSmrg      done
41784456fccdSmrg      test -z "$LD" && LD="$ac_prog"
41794456fccdSmrg      ;;
41804456fccdSmrg  "")
41814456fccdSmrg    # If it fails, then pretend we aren't using GCC.
41824456fccdSmrg    ac_prog=ld
41834456fccdSmrg    ;;
41844456fccdSmrg  *)
41854456fccdSmrg    # If it is relative, then search for the first ld in PATH.
41864456fccdSmrg    with_gnu_ld=unknown
41874456fccdSmrg    ;;
41884456fccdSmrg  esac
41894456fccdSmrgelif test "$with_gnu_ld" = yes; then
4190521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
419142d69509Smrg$as_echo_n "checking for GNU ld... " >&6; }
41924456fccdSmrgelse
4193521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
419442d69509Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
41954456fccdSmrgfi
4196521070a0Smrgif test "${lt_cv_path_LD+set}" = set; then :
419742d69509Smrg  $as_echo_n "(cached) " >&6
41984456fccdSmrgelse
41994456fccdSmrg  if test -z "$LD"; then
42004456fccdSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42014456fccdSmrg  for ac_dir in $PATH; do
42024456fccdSmrg    IFS="$lt_save_ifs"
42034456fccdSmrg    test -z "$ac_dir" && ac_dir=.
42044456fccdSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
42054456fccdSmrg      lt_cv_path_LD="$ac_dir/$ac_prog"
42064456fccdSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
42074456fccdSmrg      # but apparently some variants of GNU ld only accept -v.
42084456fccdSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
42094456fccdSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42104456fccdSmrg      *GNU* | *'with BFD'*)
42114456fccdSmrg	test "$with_gnu_ld" != no && break
42124456fccdSmrg	;;
42134456fccdSmrg      *)
42144456fccdSmrg	test "$with_gnu_ld" != yes && break
42154456fccdSmrg	;;
42164456fccdSmrg      esac
42174456fccdSmrg    fi
42184456fccdSmrg  done
42194456fccdSmrg  IFS="$lt_save_ifs"
42204456fccdSmrgelse
42214456fccdSmrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
42224456fccdSmrgfi
42234456fccdSmrgfi
42244456fccdSmrg
42254456fccdSmrgLD="$lt_cv_path_LD"
42264456fccdSmrgif test -n "$LD"; then
4227521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
422842d69509Smrg$as_echo "$LD" >&6; }
42294456fccdSmrgelse
4230521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
423142d69509Smrg$as_echo "no" >&6; }
42324456fccdSmrgfi
4233ff63a143Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4234521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
423542d69509Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4236521070a0Smrgif test "${lt_cv_prog_gnu_ld+set}" = set; then :
423742d69509Smrg  $as_echo_n "(cached) " >&6
42384456fccdSmrgelse
42394456fccdSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
42404456fccdSmrgcase `$LD -v 2>&1 </dev/null` in
42414456fccdSmrg*GNU* | *'with BFD'*)
42424456fccdSmrg  lt_cv_prog_gnu_ld=yes
42434456fccdSmrg  ;;
42444456fccdSmrg*)
42454456fccdSmrg  lt_cv_prog_gnu_ld=no
42464456fccdSmrg  ;;
42474456fccdSmrgesac
42484456fccdSmrgfi
4249521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
425042d69509Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
42514456fccdSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
42524456fccdSmrg
42534456fccdSmrg
42544456fccdSmrg
4255521070a0Smrg
4256521070a0Smrg
4257521070a0Smrg
4258521070a0Smrg
4259521070a0Smrg
4260521070a0Smrg
4261521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4262521070a0Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4263521070a0Smrgif test "${lt_cv_path_NM+set}" = set; then :
426442d69509Smrg  $as_echo_n "(cached) " >&6
42654456fccdSmrgelse
42664456fccdSmrg  if test -n "$NM"; then
42674456fccdSmrg  # Let the user override the test.
42684456fccdSmrg  lt_cv_path_NM="$NM"
42694456fccdSmrgelse
42704456fccdSmrg  lt_nm_to_check="${ac_tool_prefix}nm"
42714456fccdSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
42724456fccdSmrg    lt_nm_to_check="$lt_nm_to_check nm"
42734456fccdSmrg  fi
42744456fccdSmrg  for lt_tmp_nm in $lt_nm_to_check; do
42754456fccdSmrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42764456fccdSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
42774456fccdSmrg      IFS="$lt_save_ifs"
42784456fccdSmrg      test -z "$ac_dir" && ac_dir=.
42794456fccdSmrg      tmp_nm="$ac_dir/$lt_tmp_nm"
42804456fccdSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
42814456fccdSmrg	# Check to see if the nm accepts a BSD-compat flag.
42824456fccdSmrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
42834456fccdSmrg	#   nm: unknown option "B" ignored
42844456fccdSmrg	# Tru64's nm complains that /dev/null is an invalid object file
42854456fccdSmrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
42864456fccdSmrg	*/dev/null* | *'Invalid file or object type'*)
42874456fccdSmrg	  lt_cv_path_NM="$tmp_nm -B"
42884456fccdSmrg	  break
42894456fccdSmrg	  ;;
42904456fccdSmrg	*)
42914456fccdSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
42924456fccdSmrg	  */dev/null*)
42934456fccdSmrg	    lt_cv_path_NM="$tmp_nm -p"
42944456fccdSmrg	    break
42954456fccdSmrg	    ;;
42964456fccdSmrg	  *)
42974456fccdSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
42984456fccdSmrg	    continue # so that we can try to find one that supports BSD flags
42994456fccdSmrg	    ;;
43004456fccdSmrg	  esac
43014456fccdSmrg	  ;;
43024456fccdSmrg	esac
43034456fccdSmrg      fi
43044456fccdSmrg    done
43054456fccdSmrg    IFS="$lt_save_ifs"
43064456fccdSmrg  done
4307521070a0Smrg  : ${lt_cv_path_NM=no}
43084456fccdSmrgfi
43094456fccdSmrgfi
4310521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
431142d69509Smrg$as_echo "$lt_cv_path_NM" >&6; }
4312521070a0Smrgif test "$lt_cv_path_NM" != "no"; then
4313521070a0Smrg  NM="$lt_cv_path_NM"
4314521070a0Smrgelse
4315521070a0Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
4316ff63a143Smrg  if test -n "$DUMPBIN"; then :
4317ff63a143Smrg    # Let the user override the test.
4318ff63a143Smrg  else
4319ff63a143Smrg    if test -n "$ac_tool_prefix"; then
4320ff63a143Smrg  for ac_prog in dumpbin "link -dump"
4321521070a0Smrg  do
4322521070a0Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323521070a0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
4326521070a0Smrgif test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4327521070a0Smrg  $as_echo_n "(cached) " >&6
4328521070a0Smrgelse
4329521070a0Smrg  if test -n "$DUMPBIN"; then
4330521070a0Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4331521070a0Smrgelse
4332521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333521070a0Smrgfor as_dir in $PATH
4334521070a0Smrgdo
4335521070a0Smrg  IFS=$as_save_IFS
4336521070a0Smrg  test -z "$as_dir" && as_dir=.
4337521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4338521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339521070a0Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4340521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341521070a0Smrg    break 2
4342521070a0Smrg  fi
4343521070a0Smrgdone
4344521070a0Smrg  done
4345521070a0SmrgIFS=$as_save_IFS
43464456fccdSmrg
4347521070a0Smrgfi
4348521070a0Smrgfi
4349521070a0SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
4350521070a0Smrgif test -n "$DUMPBIN"; then
4351521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4352521070a0Smrg$as_echo "$DUMPBIN" >&6; }
43534456fccdSmrgelse
4354521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355521070a0Smrg$as_echo "no" >&6; }
43564456fccdSmrgfi
43574456fccdSmrg
4358521070a0Smrg
4359521070a0Smrg    test -n "$DUMPBIN" && break
4360521070a0Smrg  done
4361521070a0Smrgfi
4362521070a0Smrgif test -z "$DUMPBIN"; then
4363521070a0Smrg  ac_ct_DUMPBIN=$DUMPBIN
4364ff63a143Smrg  for ac_prog in dumpbin "link -dump"
4365521070a0Smrgdo
4366521070a0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4367521070a0Smrgset dummy $ac_prog; ac_word=$2
4368521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
4370521070a0Smrgif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
437142d69509Smrg  $as_echo_n "(cached) " >&6
43724456fccdSmrgelse
4373521070a0Smrg  if test -n "$ac_ct_DUMPBIN"; then
4374521070a0Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4375521070a0Smrgelse
4376521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377521070a0Smrgfor as_dir in $PATH
4378521070a0Smrgdo
4379521070a0Smrg  IFS=$as_save_IFS
4380521070a0Smrg  test -z "$as_dir" && as_dir=.
4381521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4382521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383521070a0Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4384521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385521070a0Smrg    break 2
4386521070a0Smrg  fi
4387521070a0Smrgdone
4388521070a0Smrg  done
4389521070a0SmrgIFS=$as_save_IFS
43904456fccdSmrg
4391521070a0Smrgfi
4392521070a0Smrgfi
4393521070a0Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4394521070a0Smrgif test -n "$ac_ct_DUMPBIN"; then
4395521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4396521070a0Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
4397521070a0Smrgelse
4398521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399521070a0Smrg$as_echo "no" >&6; }
4400521070a0Smrgfi
44014456fccdSmrg
44024456fccdSmrg
4403521070a0Smrg  test -n "$ac_ct_DUMPBIN" && break
4404521070a0Smrgdone
44054456fccdSmrg
4406521070a0Smrg  if test "x$ac_ct_DUMPBIN" = x; then
4407521070a0Smrg    DUMPBIN=":"
440842d69509Smrg  else
4409521070a0Smrg    case $cross_compiling:$ac_tool_warned in
4410521070a0Smrgyes:)
4411521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413521070a0Smrgac_tool_warned=yes ;;
4414521070a0Smrgesac
4415521070a0Smrg    DUMPBIN=$ac_ct_DUMPBIN
441642d69509Smrg  fi
4417521070a0Smrgfi
44184456fccdSmrg
4419ff63a143Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4420ff63a143Smrg    *COFF*)
4421ff63a143Smrg      DUMPBIN="$DUMPBIN -symbols"
4422ff63a143Smrg      ;;
4423ff63a143Smrg    *)
4424ff63a143Smrg      DUMPBIN=:
4425ff63a143Smrg      ;;
4426ff63a143Smrg    esac
4427ff63a143Smrg  fi
44284456fccdSmrg
4429521070a0Smrg  if test "$DUMPBIN" != ":"; then
4430521070a0Smrg    NM="$DUMPBIN"
44314456fccdSmrg  fi
4432521070a0Smrgfi
4433521070a0Smrgtest -z "$NM" && NM=nm
44344456fccdSmrg
44354456fccdSmrg
44364456fccdSmrg
44374456fccdSmrg
44384456fccdSmrg
44394456fccdSmrg
4440521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4441521070a0Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4442521070a0Smrgif test "${lt_cv_nm_interface+set}" = set; then :
4443521070a0Smrg  $as_echo_n "(cached) " >&6
4444521070a0Smrgelse
4445521070a0Smrg  lt_cv_nm_interface="BSD nm"
4446521070a0Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
4447ff63a143Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4448521070a0Smrg  (eval "$ac_compile" 2>conftest.err)
4449521070a0Smrg  cat conftest.err >&5
4450ff63a143Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4451521070a0Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4452521070a0Smrg  cat conftest.err >&5
4453ff63a143Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4454521070a0Smrg  cat conftest.out >&5
4455521070a0Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4456521070a0Smrg    lt_cv_nm_interface="MS dumpbin"
44574456fccdSmrg  fi
4458521070a0Smrg  rm -f conftest*
4459521070a0Smrgfi
4460521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4461521070a0Smrg$as_echo "$lt_cv_nm_interface" >&6; }
44624456fccdSmrg
4463521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4464521070a0Smrg$as_echo_n "checking whether ln -s works... " >&6; }
4465521070a0SmrgLN_S=$as_ln_s
4466521070a0Smrgif test "$LN_S" = "ln -s"; then
4467521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468521070a0Smrg$as_echo "yes" >&6; }
4469521070a0Smrgelse
4470521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4471521070a0Smrg$as_echo "no, using $LN_S" >&6; }
4472521070a0Smrgfi
44734456fccdSmrg
4474521070a0Smrg# find the maximum length of command line arguments
4475521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4476521070a0Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4477521070a0Smrgif test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4478521070a0Smrg  $as_echo_n "(cached) " >&6
4479521070a0Smrgelse
4480521070a0Smrg    i=0
4481521070a0Smrg  teststring="ABCD"
44824456fccdSmrg
4483521070a0Smrg  case $build_os in
4484521070a0Smrg  msdosdjgpp*)
4485521070a0Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
4486521070a0Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
4487521070a0Smrg    # during glob expansion).  Even if it were fixed, the result of this
4488521070a0Smrg    # check would be larger than it should be.
4489521070a0Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4490521070a0Smrg    ;;
44914456fccdSmrg
4492521070a0Smrg  gnu*)
4493521070a0Smrg    # Under GNU Hurd, this test is not required because there is
4494521070a0Smrg    # no limit to the length of command line arguments.
4495521070a0Smrg    # Libtool will interpret -1 as no limit whatsoever
4496521070a0Smrg    lt_cv_sys_max_cmd_len=-1;
4497521070a0Smrg    ;;
44984456fccdSmrg
4499521070a0Smrg  cygwin* | mingw* | cegcc*)
4500521070a0Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
4501521070a0Smrg    # about 5 minutes as the teststring grows exponentially.
4502521070a0Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
4503521070a0Smrg    # you end up with a "frozen" computer, even though with patience
4504521070a0Smrg    # the test eventually succeeds (with a max line length of 256k).
4505521070a0Smrg    # Instead, let's just punt: use the minimum linelength reported by
4506521070a0Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
4507521070a0Smrg    lt_cv_sys_max_cmd_len=8192;
4508521070a0Smrg    ;;
450942d69509Smrg
4510ff63a143Smrg  mint*)
4511ff63a143Smrg    # On MiNT this can take a long time and run out of memory.
4512ff63a143Smrg    lt_cv_sys_max_cmd_len=8192;
4513ff63a143Smrg    ;;
4514ff63a143Smrg
4515521070a0Smrg  amigaos*)
4516521070a0Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
4517521070a0Smrg    # So we just punt and use a minimum line length of 8192.
4518521070a0Smrg    lt_cv_sys_max_cmd_len=8192;
4519521070a0Smrg    ;;
45204456fccdSmrg
4521521070a0Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4522521070a0Smrg    # This has been around since 386BSD, at least.  Likely further.
4523521070a0Smrg    if test -x /sbin/sysctl; then
4524521070a0Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4525521070a0Smrg    elif test -x /usr/sbin/sysctl; then
4526521070a0Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4527521070a0Smrg    else
4528521070a0Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4529521070a0Smrg    fi
4530521070a0Smrg    # And add a safety zone
4531521070a0Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4532521070a0Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
45334456fccdSmrg    ;;
4534521070a0Smrg
4535521070a0Smrg  interix*)
4536521070a0Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4537521070a0Smrg    lt_cv_sys_max_cmd_len=196608
45384456fccdSmrg    ;;
4539521070a0Smrg
4540521070a0Smrg  osf*)
4541521070a0Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4542521070a0Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4543521070a0Smrg    # nice to cause kernel panics so lets avoid the loop below.
4544521070a0Smrg    # First set a reasonable default.
4545521070a0Smrg    lt_cv_sys_max_cmd_len=16384
4546521070a0Smrg    #
4547521070a0Smrg    if test -x /sbin/sysconfig; then
4548521070a0Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4549521070a0Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4550521070a0Smrg      esac
4551521070a0Smrg    fi
45524456fccdSmrg    ;;
4553521070a0Smrg  sco3.2v5*)
4554521070a0Smrg    lt_cv_sys_max_cmd_len=102400
45554456fccdSmrg    ;;
4556521070a0Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
4557521070a0Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4558521070a0Smrg    if test -n "$kargmax"; then
4559521070a0Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4560521070a0Smrg    else
4561521070a0Smrg      lt_cv_sys_max_cmd_len=32768
4562521070a0Smrg    fi
45634456fccdSmrg    ;;
4564521070a0Smrg  *)
4565521070a0Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4566521070a0Smrg    if test -n "$lt_cv_sys_max_cmd_len"; then
4567521070a0Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4568521070a0Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4569521070a0Smrg    else
4570521070a0Smrg      # Make teststring a little bigger before we do anything with it.
4571521070a0Smrg      # a 1K string should be a reasonable start.
4572521070a0Smrg      for i in 1 2 3 4 5 6 7 8 ; do
4573521070a0Smrg        teststring=$teststring$teststring
4574521070a0Smrg      done
4575521070a0Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4576521070a0Smrg      # If test is not a shell built-in, we'll probably end up computing a
4577521070a0Smrg      # maximum length that is only half of the actual maximum length, but
4578521070a0Smrg      # we can't tell.
4579ff63a143Smrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4580ff63a143Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4581521070a0Smrg	      test $i != 17 # 1/2 MB should be enough
4582521070a0Smrg      do
4583521070a0Smrg        i=`expr $i + 1`
4584521070a0Smrg        teststring=$teststring$teststring
4585521070a0Smrg      done
4586521070a0Smrg      # Only check the string length outside the loop.
4587521070a0Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4588521070a0Smrg      teststring=
4589521070a0Smrg      # Add a significant safety factor because C++ compilers can tack on
4590521070a0Smrg      # massive amounts of additional arguments before passing them to the
4591521070a0Smrg      # linker.  It appears as though 1/2 is a usable value.
4592521070a0Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4593521070a0Smrg    fi
45944456fccdSmrg    ;;
45954456fccdSmrg  esac
45964456fccdSmrg
4597521070a0Smrgfi
45984456fccdSmrg
4599521070a0Smrgif test -n $lt_cv_sys_max_cmd_len ; then
4600521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4601521070a0Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4602521070a0Smrgelse
4603521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4604521070a0Smrg$as_echo "none" >&6; }
46054456fccdSmrgfi
4606521070a0Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
46074456fccdSmrg
46084456fccdSmrg
46094456fccdSmrg
46104456fccdSmrg
46114456fccdSmrg
46124456fccdSmrg
4613521070a0Smrg: ${CP="cp -f"}
4614521070a0Smrg: ${MV="mv -f"}
4615521070a0Smrg: ${RM="rm -f"}
46164456fccdSmrg
4617521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4618521070a0Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4619521070a0Smrg# Try some XSI features
4620521070a0Smrgxsi_shell=no
4621521070a0Smrg( _lt_dummy="a/b/c"
4622521070a0Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4623521070a0Smrg      = c,a/b,, \
4624521070a0Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
4625521070a0Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4626521070a0Smrg  && xsi_shell=yes
4627521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4628521070a0Smrg$as_echo "$xsi_shell" >&6; }
46294456fccdSmrg
4630521070a0Smrg
4631521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4632521070a0Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4633521070a0Smrglt_shell_append=no
4634521070a0Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4635521070a0Smrg    >/dev/null 2>&1 \
4636521070a0Smrg  && lt_shell_append=yes
4637521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4638521070a0Smrg$as_echo "$lt_shell_append" >&6; }
4639521070a0Smrg
4640521070a0Smrg
4641521070a0Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4642521070a0Smrg  lt_unset=unset
4643521070a0Smrgelse
4644521070a0Smrg  lt_unset=false
46454456fccdSmrgfi
46464456fccdSmrg
46474456fccdSmrg
4648521070a0Smrg
4649521070a0Smrg
4650521070a0Smrg
4651521070a0Smrg# test EBCDIC or ASCII
4652521070a0Smrgcase `echo X|tr X '\101'` in
4653521070a0Smrg A) # ASCII based system
4654521070a0Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4655521070a0Smrg  lt_SP2NL='tr \040 \012'
4656521070a0Smrg  lt_NL2SP='tr \015\012 \040\040'
46574456fccdSmrg  ;;
4658521070a0Smrg *) # EBCDIC based system
4659521070a0Smrg  lt_SP2NL='tr \100 \n'
4660521070a0Smrg  lt_NL2SP='tr \r\n \100\100'
46614456fccdSmrg  ;;
4662521070a0Smrgesac
46634456fccdSmrg
46644456fccdSmrg
46654456fccdSmrg
46664456fccdSmrg
46674456fccdSmrg
46684456fccdSmrg
46694456fccdSmrg
46704456fccdSmrg
4671521070a0Smrg
4672521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4673521070a0Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
4674521070a0Smrgif test "${lt_cv_ld_reload_flag+set}" = set; then :
4675521070a0Smrg  $as_echo_n "(cached) " >&6
4676521070a0Smrgelse
4677521070a0Smrg  lt_cv_ld_reload_flag='-r'
46784456fccdSmrgfi
4679521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4680521070a0Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
4681521070a0Smrgreload_flag=$lt_cv_ld_reload_flag
4682521070a0Smrgcase $reload_flag in
4683521070a0Smrg"" | " "*) ;;
4684521070a0Smrg*) reload_flag=" $reload_flag" ;;
4685521070a0Smrgesac
4686521070a0Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
4687521070a0Smrgcase $host_os in
4688521070a0Smrg  darwin*)
4689521070a0Smrg    if test "$GCC" = yes; then
4690521070a0Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4691521070a0Smrg    else
4692521070a0Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4693521070a0Smrg    fi
4694521070a0Smrg    ;;
4695521070a0Smrgesac
46964456fccdSmrg
46974456fccdSmrg
46984456fccdSmrg
46994456fccdSmrg
47004456fccdSmrg
4701521070a0Smrg
4702521070a0Smrg
4703521070a0Smrg
4704521070a0Smrg
4705521070a0Smrgif test -n "$ac_tool_prefix"; then
4706521070a0Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4707521070a0Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
4708521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
4710521070a0Smrgif test "${ac_cv_prog_OBJDUMP+set}" = set; then :
471142d69509Smrg  $as_echo_n "(cached) " >&6
47124456fccdSmrgelse
4713521070a0Smrg  if test -n "$OBJDUMP"; then
4714521070a0Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
47154456fccdSmrgelse
4716521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717521070a0Smrgfor as_dir in $PATH
4718521070a0Smrgdo
4719521070a0Smrg  IFS=$as_save_IFS
4720521070a0Smrg  test -z "$as_dir" && as_dir=.
4721521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4722521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723521070a0Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4724521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725521070a0Smrg    break 2
4726521070a0Smrg  fi
4727521070a0Smrgdone
4728521070a0Smrg  done
4729521070a0SmrgIFS=$as_save_IFS
47304456fccdSmrg
47314456fccdSmrgfi
4732521070a0Smrgfi
4733521070a0SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
4734521070a0Smrgif test -n "$OBJDUMP"; then
4735521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4736521070a0Smrg$as_echo "$OBJDUMP" >&6; }
47374456fccdSmrgelse
4738521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739521070a0Smrg$as_echo "no" >&6; }
47404456fccdSmrgfi
47414456fccdSmrg
47424456fccdSmrg
47434456fccdSmrgfi
4744521070a0Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
4745521070a0Smrg  ac_ct_OBJDUMP=$OBJDUMP
4746521070a0Smrg  # Extract the first word of "objdump", so it can be a program name with args.
4747521070a0Smrgset dummy objdump; ac_word=$2
4748521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
4750521070a0Smrgif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4751521070a0Smrg  $as_echo_n "(cached) " >&6
4752521070a0Smrgelse
4753521070a0Smrg  if test -n "$ac_ct_OBJDUMP"; then
4754521070a0Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4755521070a0Smrgelse
4756521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757521070a0Smrgfor as_dir in $PATH
4758521070a0Smrgdo
4759521070a0Smrg  IFS=$as_save_IFS
4760521070a0Smrg  test -z "$as_dir" && as_dir=.
4761521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4762521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763521070a0Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4764521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765521070a0Smrg    break 2
4766521070a0Smrg  fi
4767521070a0Smrgdone
4768521070a0Smrg  done
4769521070a0SmrgIFS=$as_save_IFS
47704456fccdSmrg
47714456fccdSmrgfi
4772521070a0Smrgfi
4773521070a0Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4774521070a0Smrgif test -n "$ac_ct_OBJDUMP"; then
4775521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4776521070a0Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
47774456fccdSmrgelse
4778521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779521070a0Smrg$as_echo "no" >&6; }
47804456fccdSmrgfi
4781521070a0Smrg
4782521070a0Smrg  if test "x$ac_ct_OBJDUMP" = x; then
4783521070a0Smrg    OBJDUMP="false"
4784521070a0Smrg  else
4785521070a0Smrg    case $cross_compiling:$ac_tool_warned in
4786521070a0Smrgyes:)
4787521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789521070a0Smrgac_tool_warned=yes ;;
47904456fccdSmrgesac
4791521070a0Smrg    OBJDUMP=$ac_ct_OBJDUMP
4792521070a0Smrg  fi
47934456fccdSmrgelse
4794521070a0Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
47954456fccdSmrgfi
47964456fccdSmrg
4797521070a0Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
47984456fccdSmrg
47994456fccdSmrg
48004456fccdSmrg
48014456fccdSmrg
48024456fccdSmrg
48034456fccdSmrg
48044456fccdSmrg
4805521070a0Smrg
4806521070a0Smrg
4807521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4808521070a0Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4809521070a0Smrgif test "${lt_cv_deplibs_check_method+set}" = set; then :
481042d69509Smrg  $as_echo_n "(cached) " >&6
48114456fccdSmrgelse
4812521070a0Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
4813521070a0Smrglt_cv_file_magic_test_file=
4814521070a0Smrglt_cv_deplibs_check_method='unknown'
4815521070a0Smrg# Need to set the preceding variable on all platforms that support
4816521070a0Smrg# interlibrary dependencies.
4817521070a0Smrg# 'none' -- dependencies not supported.
4818521070a0Smrg# `unknown' -- same as none, but documents that we really don't know.
4819521070a0Smrg# 'pass_all' -- all dependencies passed with no checks.
4820521070a0Smrg# 'test_compile' -- check by making test program.
4821521070a0Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
4822521070a0Smrg# which responds to the $file_magic_cmd with a given extended regex.
4823521070a0Smrg# If you have `file' or equivalent on your system and you're not sure
4824521070a0Smrg# whether `pass_all' will *always* work, you probably want this one.
48254456fccdSmrg
4826521070a0Smrgcase $host_os in
4827521070a0Smrgaix[4-9]*)
4828521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4829521070a0Smrg  ;;
48304456fccdSmrg
4831521070a0Smrgbeos*)
4832521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4833521070a0Smrg  ;;
48344456fccdSmrg
4835521070a0Smrgbsdi[45]*)
4836521070a0Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4837521070a0Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
4838521070a0Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
4839521070a0Smrg  ;;
48404456fccdSmrg
4841521070a0Smrgcygwin*)
4842521070a0Smrg  # func_win32_libid is a shell function defined in ltmain.sh
4843521070a0Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4844521070a0Smrg  lt_cv_file_magic_cmd='func_win32_libid'
4845521070a0Smrg  ;;
48464456fccdSmrg
4847521070a0Smrgmingw* | pw32*)
4848521070a0Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
4849521070a0Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4850521070a0Smrg  # unless we find 'file', for example because we are cross-compiling.
4851ff63a143Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4852ff63a143Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4853521070a0Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4854521070a0Smrg    lt_cv_file_magic_cmd='func_win32_libid'
4855521070a0Smrg  else
4856ff63a143Smrg    # Keep this pattern in sync with the one in func_win32_libid.
4857ff63a143Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4858521070a0Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
4859521070a0Smrg  fi
4860521070a0Smrg  ;;
48614456fccdSmrg
4862ff63a143Smrgcegcc*)
4863521070a0Smrg  # use the weaker test based on 'objdump'. See mingw*.
4864521070a0Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4865521070a0Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
4866521070a0Smrg  ;;
48674456fccdSmrg
4868521070a0Smrgdarwin* | rhapsody*)
4869521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4870521070a0Smrg  ;;
48714456fccdSmrg
4872521070a0Smrgfreebsd* | dragonfly*)
4873521070a0Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4874521070a0Smrg    case $host_cpu in
4875521070a0Smrg    i*86 )
4876521070a0Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
4877521070a0Smrg      # Let's accept both of them until this is cleared up.
4878521070a0Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4879521070a0Smrg      lt_cv_file_magic_cmd=/usr/bin/file
4880521070a0Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4881521070a0Smrg      ;;
4882521070a0Smrg    esac
4883521070a0Smrg  else
4884521070a0Smrg    lt_cv_deplibs_check_method=pass_all
4885521070a0Smrg  fi
4886521070a0Smrg  ;;
48874456fccdSmrg
4888521070a0Smrggnu*)
4889521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4890521070a0Smrg  ;;
48914456fccdSmrg
4892ff63a143Smrghaiku*)
4893ff63a143Smrg  lt_cv_deplibs_check_method=pass_all
4894ff63a143Smrg  ;;
4895ff63a143Smrg
4896521070a0Smrghpux10.20* | hpux11*)
4897521070a0Smrg  lt_cv_file_magic_cmd=/usr/bin/file
4898521070a0Smrg  case $host_cpu in
4899521070a0Smrg  ia64*)
4900521070a0Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901521070a0Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4902521070a0Smrg    ;;
4903521070a0Smrg  hppa*64*)
4904ff63a143Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4905521070a0Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4906521070a0Smrg    ;;
4907521070a0Smrg  *)
4908ff63a143Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4909521070a0Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910521070a0Smrg    ;;
4911521070a0Smrg  esac
4912521070a0Smrg  ;;
49134456fccdSmrg
4914521070a0Smrginterix[3-9]*)
4915521070a0Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916521070a0Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4917521070a0Smrg  ;;
49184456fccdSmrg
4919521070a0Smrgirix5* | irix6* | nonstopux*)
4920521070a0Smrg  case $LD in
4921521070a0Smrg  *-32|*"-32 ") libmagic=32-bit;;
4922521070a0Smrg  *-n32|*"-n32 ") libmagic=N32;;
4923521070a0Smrg  *-64|*"-64 ") libmagic=64-bit;;
4924521070a0Smrg  *) libmagic=never-match;;
4925521070a0Smrg  esac
4926521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4927521070a0Smrg  ;;
49284456fccdSmrg
4929521070a0Smrg# This must be Linux ELF.
4930ff63a143Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
4931521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4932521070a0Smrg  ;;
49334456fccdSmrg
4934521070a0Smrgnetbsd*)
4935521070a0Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4936521070a0Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4937521070a0Smrg  else
4938521070a0Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4939521070a0Smrg  fi
4940521070a0Smrg  ;;
49414456fccdSmrg
4942521070a0Smrgnewos6*)
4943521070a0Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944521070a0Smrg  lt_cv_file_magic_cmd=/usr/bin/file
4945521070a0Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4946521070a0Smrg  ;;
49474456fccdSmrg
4948521070a0Smrg*nto* | *qnx*)
4949521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4950521070a0Smrg  ;;
49514456fccdSmrg
4952521070a0Smrgopenbsd*)
4953521070a0Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4954521070a0Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4955521070a0Smrg  else
4956521070a0Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957521070a0Smrg  fi
4958521070a0Smrg  ;;
49594456fccdSmrg
4960521070a0Smrgosf3* | osf4* | osf5*)
4961521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4962521070a0Smrg  ;;
49634456fccdSmrg
4964521070a0Smrgrdos*)
4965521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4966521070a0Smrg  ;;
49674456fccdSmrg
4968521070a0Smrgsolaris*)
4969521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4970521070a0Smrg  ;;
49714456fccdSmrg
4972521070a0Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4973521070a0Smrg  lt_cv_deplibs_check_method=pass_all
4974521070a0Smrg  ;;
49754456fccdSmrg
4976521070a0Smrgsysv4 | sysv4.3*)
4977521070a0Smrg  case $host_vendor in
4978521070a0Smrg  motorola)
4979521070a0Smrg    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]'
4980521070a0Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4981521070a0Smrg    ;;
4982521070a0Smrg  ncr)
4983521070a0Smrg    lt_cv_deplibs_check_method=pass_all
4984521070a0Smrg    ;;
4985521070a0Smrg  sequent)
4986521070a0Smrg    lt_cv_file_magic_cmd='/bin/file'
4987521070a0Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4988521070a0Smrg    ;;
4989521070a0Smrg  sni)
4990521070a0Smrg    lt_cv_file_magic_cmd='/bin/file'
4991521070a0Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4992521070a0Smrg    lt_cv_file_magic_test_file=/lib/libc.so
4993521070a0Smrg    ;;
4994521070a0Smrg  siemens)
4995521070a0Smrg    lt_cv_deplibs_check_method=pass_all
4996521070a0Smrg    ;;
4997521070a0Smrg  pc)
4998521070a0Smrg    lt_cv_deplibs_check_method=pass_all
4999521070a0Smrg    ;;
5000521070a0Smrg  esac
5001521070a0Smrg  ;;
50024456fccdSmrg
5003521070a0Smrgtpf*)
5004521070a0Smrg  lt_cv_deplibs_check_method=pass_all
5005521070a0Smrg  ;;
5006521070a0Smrgesac
50074456fccdSmrg
50084456fccdSmrgfi
5009521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5010521070a0Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
5011521070a0Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
5012521070a0Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
5013521070a0Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
50144456fccdSmrg
50154456fccdSmrg
50164456fccdSmrg
50174456fccdSmrg
50184456fccdSmrg
50194456fccdSmrg
50204456fccdSmrg
50214456fccdSmrg
50224456fccdSmrg
50234456fccdSmrg
50244456fccdSmrg
50254456fccdSmrg
5026521070a0Smrgif test -n "$ac_tool_prefix"; then
5027521070a0Smrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5028521070a0Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2
5029521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
503042d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
5031521070a0Smrgif test "${ac_cv_prog_AR+set}" = set; then :
503242d69509Smrg  $as_echo_n "(cached) " >&6
50334456fccdSmrgelse
5034521070a0Smrg  if test -n "$AR"; then
5035521070a0Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
50364456fccdSmrgelse
50374456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50384456fccdSmrgfor as_dir in $PATH
50394456fccdSmrgdo
50404456fccdSmrg  IFS=$as_save_IFS
50414456fccdSmrg  test -z "$as_dir" && as_dir=.
5042521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
504342d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044521070a0Smrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
5045521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50464456fccdSmrg    break 2
50474456fccdSmrg  fi
50484456fccdSmrgdone
5049521070a0Smrg  done
50504456fccdSmrgIFS=$as_save_IFS
50514456fccdSmrg
50524456fccdSmrgfi
50534456fccdSmrgfi
5054521070a0SmrgAR=$ac_cv_prog_AR
5055521070a0Smrgif test -n "$AR"; then
5056521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5057521070a0Smrg$as_echo "$AR" >&6; }
50584456fccdSmrgelse
5059521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
506042d69509Smrg$as_echo "no" >&6; }
50614456fccdSmrgfi
50624456fccdSmrg
50634456fccdSmrg
50644456fccdSmrgfi
5065521070a0Smrgif test -z "$ac_cv_prog_AR"; then
5066521070a0Smrg  ac_ct_AR=$AR
5067521070a0Smrg  # Extract the first word of "ar", so it can be a program name with args.
5068521070a0Smrgset dummy ar; ac_word=$2
5069521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
507042d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
5071521070a0Smrgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
507242d69509Smrg  $as_echo_n "(cached) " >&6
50734456fccdSmrgelse
5074521070a0Smrg  if test -n "$ac_ct_AR"; then
5075521070a0Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50764456fccdSmrgelse
50774456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50784456fccdSmrgfor as_dir in $PATH
50794456fccdSmrgdo
50804456fccdSmrg  IFS=$as_save_IFS
50814456fccdSmrg  test -z "$as_dir" && as_dir=.
5082521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
508342d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084521070a0Smrg    ac_cv_prog_ac_ct_AR="ar"
5085521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50864456fccdSmrg    break 2
50874456fccdSmrg  fi
50884456fccdSmrgdone
5089521070a0Smrg  done
50904456fccdSmrgIFS=$as_save_IFS
50914456fccdSmrg
50924456fccdSmrgfi
50934456fccdSmrgfi
5094521070a0Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
5095521070a0Smrgif test -n "$ac_ct_AR"; then
5096521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5097521070a0Smrg$as_echo "$ac_ct_AR" >&6; }
50984456fccdSmrgelse
5099521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
510042d69509Smrg$as_echo "no" >&6; }
51014456fccdSmrgfi
51024456fccdSmrg
5103521070a0Smrg  if test "x$ac_ct_AR" = x; then
5104521070a0Smrg    AR="false"
51054456fccdSmrg  else
51064456fccdSmrg    case $cross_compiling:$ac_tool_warned in
51074456fccdSmrgyes:)
5108521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
510942d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
51104456fccdSmrgac_tool_warned=yes ;;
51114456fccdSmrgesac
5112521070a0Smrg    AR=$ac_ct_AR
51134456fccdSmrg  fi
5114521070a0Smrgelse
5115521070a0Smrg  AR="$ac_cv_prog_AR"
51164456fccdSmrgfi
51174456fccdSmrg
5118521070a0Smrgtest -z "$AR" && AR=ar
5119521070a0Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
51204456fccdSmrg
51214456fccdSmrg
51224456fccdSmrg
51234456fccdSmrg
51244456fccdSmrg
51254456fccdSmrg
51264456fccdSmrg
51274456fccdSmrg
51284456fccdSmrg
51294456fccdSmrg
51304456fccdSmrg
5131521070a0Smrgif test -n "$ac_tool_prefix"; then
5132521070a0Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5133521070a0Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
5134521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
5136521070a0Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
5137521070a0Smrg  $as_echo_n "(cached) " >&6
51384456fccdSmrgelse
5139521070a0Smrg  if test -n "$STRIP"; then
5140521070a0Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5141521070a0Smrgelse
5142521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143521070a0Smrgfor as_dir in $PATH
5144521070a0Smrgdo
5145521070a0Smrg  IFS=$as_save_IFS
5146521070a0Smrg  test -z "$as_dir" && as_dir=.
5147521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5148521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149521070a0Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5150521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151521070a0Smrg    break 2
5152521070a0Smrg  fi
5153521070a0Smrgdone
5154521070a0Smrg  done
5155521070a0SmrgIFS=$as_save_IFS
51564456fccdSmrg
5157521070a0Smrgfi
5158521070a0Smrgfi
5159521070a0SmrgSTRIP=$ac_cv_prog_STRIP
5160521070a0Smrgif test -n "$STRIP"; then
5161521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5162521070a0Smrg$as_echo "$STRIP" >&6; }
51634456fccdSmrgelse
5164521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165521070a0Smrg$as_echo "no" >&6; }
5166521070a0Smrgfi
51674456fccdSmrg
51684456fccdSmrg
51694456fccdSmrgfi
5170521070a0Smrgif test -z "$ac_cv_prog_STRIP"; then
5171521070a0Smrg  ac_ct_STRIP=$STRIP
5172521070a0Smrg  # Extract the first word of "strip", so it can be a program name with args.
5173521070a0Smrgset dummy strip; ac_word=$2
5174521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
5176521070a0Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5177521070a0Smrg  $as_echo_n "(cached) " >&6
5178521070a0Smrgelse
5179521070a0Smrg  if test -n "$ac_ct_STRIP"; then
5180521070a0Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5181521070a0Smrgelse
5182521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183521070a0Smrgfor as_dir in $PATH
5184521070a0Smrgdo
5185521070a0Smrg  IFS=$as_save_IFS
5186521070a0Smrg  test -z "$as_dir" && as_dir=.
5187521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5188521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189521070a0Smrg    ac_cv_prog_ac_ct_STRIP="strip"
5190521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191521070a0Smrg    break 2
5192521070a0Smrg  fi
5193521070a0Smrgdone
5194521070a0Smrg  done
5195521070a0SmrgIFS=$as_save_IFS
51964456fccdSmrg
51974456fccdSmrgfi
5198521070a0Smrgfi
5199521070a0Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5200521070a0Smrgif test -n "$ac_ct_STRIP"; then
5201521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5202521070a0Smrg$as_echo "$ac_ct_STRIP" >&6; }
5203521070a0Smrgelse
5204521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205521070a0Smrg$as_echo "no" >&6; }
52064456fccdSmrgfi
52074456fccdSmrg
5208521070a0Smrg  if test "x$ac_ct_STRIP" = x; then
5209521070a0Smrg    STRIP=":"
52104456fccdSmrg  else
5211521070a0Smrg    case $cross_compiling:$ac_tool_warned in
5212521070a0Smrgyes:)
5213521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215521070a0Smrgac_tool_warned=yes ;;
5216521070a0Smrgesac
5217521070a0Smrg    STRIP=$ac_ct_STRIP
52184456fccdSmrg  fi
52194456fccdSmrgelse
5220521070a0Smrg  STRIP="$ac_cv_prog_STRIP"
52214456fccdSmrgfi
52224456fccdSmrg
5223521070a0Smrgtest -z "$STRIP" && STRIP=:
52244456fccdSmrg
52254456fccdSmrg
522642d69509Smrg
52274456fccdSmrg
52284456fccdSmrg
5229521070a0Smrg
5230521070a0Smrgif test -n "$ac_tool_prefix"; then
5231521070a0Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5232521070a0Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5233521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
5235521070a0Smrgif test "${ac_cv_prog_RANLIB+set}" = set; then :
5236521070a0Smrg  $as_echo_n "(cached) " >&6
52374456fccdSmrgelse
5238521070a0Smrg  if test -n "$RANLIB"; then
5239521070a0Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5240521070a0Smrgelse
5241521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242521070a0Smrgfor as_dir in $PATH
5243521070a0Smrgdo
5244521070a0Smrg  IFS=$as_save_IFS
5245521070a0Smrg  test -z "$as_dir" && as_dir=.
5246521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5247521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248521070a0Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5249521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250521070a0Smrg    break 2
5251521070a0Smrg  fi
5252521070a0Smrgdone
5253521070a0Smrg  done
5254521070a0SmrgIFS=$as_save_IFS
52554456fccdSmrg
52564456fccdSmrgfi
5257521070a0Smrgfi
5258521070a0SmrgRANLIB=$ac_cv_prog_RANLIB
5259521070a0Smrgif test -n "$RANLIB"; then
5260521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5261521070a0Smrg$as_echo "$RANLIB" >&6; }
52624456fccdSmrgelse
5263521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264521070a0Smrg$as_echo "no" >&6; }
52654456fccdSmrgfi
52664456fccdSmrg
52674456fccdSmrg
5268521070a0Smrgfi
5269521070a0Smrgif test -z "$ac_cv_prog_RANLIB"; then
5270521070a0Smrg  ac_ct_RANLIB=$RANLIB
5271521070a0Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
5272521070a0Smrgset dummy ranlib; ac_word=$2
5273521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
5275521070a0Smrgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
527642d69509Smrg  $as_echo_n "(cached) " >&6
52774456fccdSmrgelse
5278521070a0Smrg  if test -n "$ac_ct_RANLIB"; then
5279521070a0Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
52804456fccdSmrgelse
5281521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282521070a0Smrgfor as_dir in $PATH
5283521070a0Smrgdo
5284521070a0Smrg  IFS=$as_save_IFS
5285521070a0Smrg  test -z "$as_dir" && as_dir=.
5286521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5287521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288521070a0Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
5289521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290521070a0Smrg    break 2
5291521070a0Smrg  fi
5292521070a0Smrgdone
5293521070a0Smrg  done
5294521070a0SmrgIFS=$as_save_IFS
52954456fccdSmrg
5296521070a0Smrgfi
5297521070a0Smrgfi
5298521070a0Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299521070a0Smrgif test -n "$ac_ct_RANLIB"; then
5300521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5301521070a0Smrg$as_echo "$ac_ct_RANLIB" >&6; }
5302521070a0Smrgelse
5303521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304521070a0Smrg$as_echo "no" >&6; }
53054456fccdSmrgfi
53064456fccdSmrg
5307521070a0Smrg  if test "x$ac_ct_RANLIB" = x; then
5308521070a0Smrg    RANLIB=":"
5309521070a0Smrg  else
5310521070a0Smrg    case $cross_compiling:$ac_tool_warned in
5311521070a0Smrgyes:)
5312521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314521070a0Smrgac_tool_warned=yes ;;
53154456fccdSmrgesac
5316521070a0Smrg    RANLIB=$ac_ct_RANLIB
5317521070a0Smrg  fi
53184456fccdSmrgelse
5319521070a0Smrg  RANLIB="$ac_cv_prog_RANLIB"
53204456fccdSmrgfi
53214456fccdSmrg
5322521070a0Smrgtest -z "$RANLIB" && RANLIB=:
53234456fccdSmrg
53244456fccdSmrg
53254456fccdSmrg
53264456fccdSmrg
53274456fccdSmrg
53284456fccdSmrg
5329521070a0Smrg# Determine commands to create old-style static archives.
5330521070a0Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5331521070a0Smrgold_postinstall_cmds='chmod 644 $oldlib'
5332521070a0Smrgold_postuninstall_cmds=
53334456fccdSmrg
5334521070a0Smrgif test -n "$RANLIB"; then
5335521070a0Smrg  case $host_os in
5336521070a0Smrg  openbsd*)
5337521070a0Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5338521070a0Smrg    ;;
5339521070a0Smrg  *)
5340521070a0Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5341521070a0Smrg    ;;
5342521070a0Smrg  esac
5343521070a0Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
53444456fccdSmrgfi
53454456fccdSmrg
5346ff63a143Smrgcase $host_os in
5347ff63a143Smrg  darwin*)
5348ff63a143Smrg    lock_old_archive_extraction=yes ;;
5349ff63a143Smrg  *)
5350ff63a143Smrg    lock_old_archive_extraction=no ;;
5351ff63a143Smrgesac
5352ff63a143Smrg
5353ff63a143Smrg
5354ff63a143Smrg
5355ff63a143Smrg
5356ff63a143Smrg
5357ff63a143Smrg
53584456fccdSmrg
53594456fccdSmrg
53604456fccdSmrg
53614456fccdSmrg
53624456fccdSmrg
53634456fccdSmrg
53644456fccdSmrg
53654456fccdSmrg
53664456fccdSmrg
53674456fccdSmrg
53684456fccdSmrg
53694456fccdSmrg
53704456fccdSmrg
53714456fccdSmrg
53724456fccdSmrg
53734456fccdSmrg
53744456fccdSmrg
53754456fccdSmrg
53764456fccdSmrg
53774456fccdSmrg
53784456fccdSmrg
53794456fccdSmrg
53804456fccdSmrg
53814456fccdSmrg
53824456fccdSmrg
53834456fccdSmrg
53844456fccdSmrg
53854456fccdSmrg
53864456fccdSmrg
53874456fccdSmrg
53884456fccdSmrg
53894456fccdSmrg
53904456fccdSmrg
5391521070a0Smrg# If no C compiler was specified, use CC.
5392521070a0SmrgLTCC=${LTCC-"$CC"}
53934456fccdSmrg
5394521070a0Smrg# If no C compiler flags were specified, use CFLAGS.
5395521070a0SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
53964456fccdSmrg
5397521070a0Smrg# Allow CC to be a program name with arguments.
5398521070a0Smrgcompiler=$CC
53994456fccdSmrg
540042d69509Smrg
54014456fccdSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
5402521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
540342d69509Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5404521070a0Smrgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
540542d69509Smrg  $as_echo_n "(cached) " >&6
54064456fccdSmrgelse
54074456fccdSmrg
54084456fccdSmrg# These are sane defaults that work on at least a few old systems.
54094456fccdSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
54104456fccdSmrg
54114456fccdSmrg# Character class describing NM global symbol codes.
54124456fccdSmrgsymcode='[BCDEGRST]'
54134456fccdSmrg
54144456fccdSmrg# Regexp to match symbols that can be accessed directly from C.
54154456fccdSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
54164456fccdSmrg
54174456fccdSmrg# Define system-specific variables.
54184456fccdSmrgcase $host_os in
54194456fccdSmrgaix*)
54204456fccdSmrg  symcode='[BCDT]'
54214456fccdSmrg  ;;
5422521070a0Smrgcygwin* | mingw* | pw32* | cegcc*)
54234456fccdSmrg  symcode='[ABCDGISTW]'
54244456fccdSmrg  ;;
5425521070a0Smrghpux*)
54264456fccdSmrg  if test "$host_cpu" = ia64; then
54274456fccdSmrg    symcode='[ABCDEGRST]'
54284456fccdSmrg  fi
54294456fccdSmrg  ;;
54304456fccdSmrgirix* | nonstopux*)
54314456fccdSmrg  symcode='[BCDEGRST]'
54324456fccdSmrg  ;;
54334456fccdSmrgosf*)
54344456fccdSmrg  symcode='[BCDEGQRST]'
54354456fccdSmrg  ;;
54364456fccdSmrgsolaris*)
54374456fccdSmrg  symcode='[BDRT]'
54384456fccdSmrg  ;;
54394456fccdSmrgsco3.2v5*)
54404456fccdSmrg  symcode='[DT]'
54414456fccdSmrg  ;;
54424456fccdSmrgsysv4.2uw2*)
54434456fccdSmrg  symcode='[DT]'
54444456fccdSmrg  ;;
54454456fccdSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
54464456fccdSmrg  symcode='[ABDT]'
54474456fccdSmrg  ;;
54484456fccdSmrgsysv4)
54494456fccdSmrg  symcode='[DFNSTU]'
54504456fccdSmrg  ;;
54514456fccdSmrgesac
54524456fccdSmrg
5453521070a0Smrg# If we're using GNU nm, then use its standard symbol codes.
5454521070a0Smrgcase `$NM -V 2>&1` in
5455521070a0Smrg*GNU* | *'with BFD'*)
5456521070a0Smrg  symcode='[ABCDGIRSTW]' ;;
5457521070a0Smrgesac
5458521070a0Smrg
5459521070a0Smrg# Transform an extracted symbol line into a proper C declaration.
5460521070a0Smrg# Some systems (esp. on ia64) link data and code symbols differently,
5461521070a0Smrg# so use this general approach.
5462521070a0Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5463521070a0Smrg
5464521070a0Smrg# Transform an extracted symbol line into symbol name and symbol address
5465521070a0Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5466521070a0Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5467521070a0Smrg
54684456fccdSmrg# Handle CRLF in mingw tool chain
54694456fccdSmrgopt_cr=
54704456fccdSmrgcase $build_os in
54714456fccdSmrgmingw*)
5472521070a0Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
54734456fccdSmrg  ;;
54744456fccdSmrgesac
54754456fccdSmrg
5476521070a0Smrg# Try without a prefix underscore, then with it.
54774456fccdSmrgfor ac_symprfx in "" "_"; do
54784456fccdSmrg
54794456fccdSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
54804456fccdSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
54814456fccdSmrg
54824456fccdSmrg  # Write the raw and C identifiers.
5483521070a0Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5484521070a0Smrg    # Fake it for dumpbin and say T for any non-static function
5485521070a0Smrg    # and D for any global variable.
5486521070a0Smrg    # Also find C++ and __fastcall symbols from MSVC++,
5487521070a0Smrg    # which start with @ or ?.
5488521070a0Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
5489521070a0Smrg"     {last_section=section; section=\$ 3};"\
5490521070a0Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5491521070a0Smrg"     \$ 0!~/External *\|/{next};"\
5492521070a0Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5493521070a0Smrg"     {if(hide[section]) next};"\
5494521070a0Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5495521070a0Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5496521070a0Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5497521070a0Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5498521070a0Smrg"     ' prfx=^$ac_symprfx"
5499521070a0Smrg  else
5500521070a0Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5501521070a0Smrg  fi
55024456fccdSmrg
55034456fccdSmrg  # Check to see that the pipe works correctly.
55044456fccdSmrg  pipe_works=no
55054456fccdSmrg
55064456fccdSmrg  rm -f conftest*
5507521070a0Smrg  cat > conftest.$ac_ext <<_LT_EOF
55084456fccdSmrg#ifdef __cplusplus
55094456fccdSmrgextern "C" {
55104456fccdSmrg#endif
55114456fccdSmrgchar nm_test_var;
5512521070a0Smrgvoid nm_test_func(void);
5513521070a0Smrgvoid nm_test_func(void){}
55144456fccdSmrg#ifdef __cplusplus
55154456fccdSmrg}
55164456fccdSmrg#endif
55174456fccdSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
5518521070a0Smrg_LT_EOF
55194456fccdSmrg
5520521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
55214456fccdSmrg  (eval $ac_compile) 2>&5
55224456fccdSmrg  ac_status=$?
5523521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524521070a0Smrg  test $ac_status = 0; }; then
55254456fccdSmrg    # Now try to grab the symbols.
55264456fccdSmrg    nlist=conftest.nm
5527ff63a143Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5528ff63a143Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
55294456fccdSmrg  ac_status=$?
5530521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531521070a0Smrg  test $ac_status = 0; } && test -s "$nlist"; then
55324456fccdSmrg      # Try sorting and uniquifying the output.
55334456fccdSmrg      if sort "$nlist" | uniq > "$nlist"T; then
55344456fccdSmrg	mv -f "$nlist"T "$nlist"
55354456fccdSmrg      else
55364456fccdSmrg	rm -f "$nlist"T
55374456fccdSmrg      fi
55384456fccdSmrg
55394456fccdSmrg      # Make sure that we snagged all the symbols we need.
5540521070a0Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5541521070a0Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5542521070a0Smrg	  cat <<_LT_EOF > conftest.$ac_ext
55434456fccdSmrg#ifdef __cplusplus
55444456fccdSmrgextern "C" {
55454456fccdSmrg#endif
55464456fccdSmrg
5547521070a0Smrg_LT_EOF
55484456fccdSmrg	  # Now generate the symbol file.
5549521070a0Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
55504456fccdSmrg
5551521070a0Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
55524456fccdSmrg
5553521070a0Smrg/* The mapping between symbol names and symbols.  */
55544456fccdSmrgconst struct {
55554456fccdSmrg  const char *name;
5556521070a0Smrg  void       *address;
55574456fccdSmrg}
5558521070a0Smrglt__PROGRAM__LTX_preloaded_symbols[] =
55594456fccdSmrg{
5560521070a0Smrg  { "@PROGRAM@", (void *) 0 },
5561521070a0Smrg_LT_EOF
5562521070a0Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5563521070a0Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
5564521070a0Smrg  {0, (void *) 0}
55654456fccdSmrg};
55664456fccdSmrg
5567521070a0Smrg/* This works around a problem in FreeBSD linker */
5568521070a0Smrg#ifdef FREEBSD_WORKAROUND
5569521070a0Smrgstatic const void *lt_preloaded_setup() {
5570521070a0Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
5571521070a0Smrg}
5572521070a0Smrg#endif
5573521070a0Smrg
55744456fccdSmrg#ifdef __cplusplus
55754456fccdSmrg}
55764456fccdSmrg#endif
5577521070a0Smrg_LT_EOF
55784456fccdSmrg	  # Now try linking the two files.
55794456fccdSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
55804456fccdSmrg	  lt_save_LIBS="$LIBS"
55814456fccdSmrg	  lt_save_CFLAGS="$CFLAGS"
55824456fccdSmrg	  LIBS="conftstm.$ac_objext"
55834456fccdSmrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5584521070a0Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55854456fccdSmrg  (eval $ac_link) 2>&5
55864456fccdSmrg  ac_status=$?
5587521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588521070a0Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
55894456fccdSmrg	    pipe_works=yes
55904456fccdSmrg	  fi
55914456fccdSmrg	  LIBS="$lt_save_LIBS"
55924456fccdSmrg	  CFLAGS="$lt_save_CFLAGS"
55934456fccdSmrg	else
55944456fccdSmrg	  echo "cannot find nm_test_func in $nlist" >&5
55954456fccdSmrg	fi
55964456fccdSmrg      else
55974456fccdSmrg	echo "cannot find nm_test_var in $nlist" >&5
55984456fccdSmrg      fi
55994456fccdSmrg    else
56004456fccdSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
56014456fccdSmrg    fi
56024456fccdSmrg  else
56034456fccdSmrg    echo "$progname: failed program was:" >&5
56044456fccdSmrg    cat conftest.$ac_ext >&5
56054456fccdSmrg  fi
560642d69509Smrg  rm -rf conftest* conftst*
56074456fccdSmrg
56084456fccdSmrg  # Do not use the global_symbol_pipe unless it works.
56094456fccdSmrg  if test "$pipe_works" = yes; then
56104456fccdSmrg    break
56114456fccdSmrg  else
56124456fccdSmrg    lt_cv_sys_global_symbol_pipe=
56134456fccdSmrg  fi
56144456fccdSmrgdone
56154456fccdSmrg
56164456fccdSmrgfi
56174456fccdSmrg
56184456fccdSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
56194456fccdSmrg  lt_cv_sys_global_symbol_to_cdecl=
56204456fccdSmrgfi
56214456fccdSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5622521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
562342d69509Smrg$as_echo "failed" >&6; }
56244456fccdSmrgelse
5625521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
562642d69509Smrg$as_echo "ok" >&6; }
56274456fccdSmrgfi
56284456fccdSmrg
56294456fccdSmrg
56304456fccdSmrg
56314456fccdSmrg
56324456fccdSmrg
56334456fccdSmrg
56344456fccdSmrg
56354456fccdSmrg
56364456fccdSmrg
56374456fccdSmrg
56384456fccdSmrg
56394456fccdSmrg
56404456fccdSmrg
56414456fccdSmrg
56424456fccdSmrg
56434456fccdSmrg
56444456fccdSmrg
56454456fccdSmrg
56464456fccdSmrg
5647521070a0Smrg
5648521070a0Smrg
5649521070a0Smrg
5650521070a0Smrg
5651521070a0Smrg# Check whether --enable-libtool-lock was given.
5652521070a0Smrgif test "${enable_libtool_lock+set}" = set; then :
5653521070a0Smrg  enableval=$enable_libtool_lock;
56544456fccdSmrgfi
56554456fccdSmrg
5656521070a0Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5657521070a0Smrg
5658521070a0Smrg# Some flags need to be propagated to the compiler or linker for good
5659521070a0Smrg# libtool support.
5660521070a0Smrgcase $host in
5661521070a0Smrgia64-*-hpux*)
5662521070a0Smrg  # Find out which ABI we are using.
5663521070a0Smrg  echo 'int i;' > conftest.$ac_ext
5664521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5665521070a0Smrg  (eval $ac_compile) 2>&5
5666521070a0Smrg  ac_status=$?
5667521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668521070a0Smrg  test $ac_status = 0; }; then
5669521070a0Smrg    case `/usr/bin/file conftest.$ac_objext` in
5670521070a0Smrg      *ELF-32*)
5671521070a0Smrg	HPUX_IA64_MODE="32"
5672521070a0Smrg	;;
5673521070a0Smrg      *ELF-64*)
5674521070a0Smrg	HPUX_IA64_MODE="64"
5675521070a0Smrg	;;
5676521070a0Smrg    esac
5677521070a0Smrg  fi
5678521070a0Smrg  rm -rf conftest*
5679521070a0Smrg  ;;
5680521070a0Smrg*-*-irix6*)
5681521070a0Smrg  # Find out which ABI we are using.
5682ff63a143Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5683521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684521070a0Smrg  (eval $ac_compile) 2>&5
5685521070a0Smrg  ac_status=$?
5686521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687521070a0Smrg  test $ac_status = 0; }; then
5688521070a0Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
5689521070a0Smrg      case `/usr/bin/file conftest.$ac_objext` in
5690521070a0Smrg	*32-bit*)
5691521070a0Smrg	  LD="${LD-ld} -melf32bsmip"
5692521070a0Smrg	  ;;
5693521070a0Smrg	*N32*)
5694521070a0Smrg	  LD="${LD-ld} -melf32bmipn32"
5695521070a0Smrg	  ;;
5696521070a0Smrg	*64-bit*)
5697521070a0Smrg	  LD="${LD-ld} -melf64bmip"
5698521070a0Smrg	;;
5699521070a0Smrg      esac
5700521070a0Smrg    else
5701521070a0Smrg      case `/usr/bin/file conftest.$ac_objext` in
5702521070a0Smrg	*32-bit*)
5703521070a0Smrg	  LD="${LD-ld} -32"
5704521070a0Smrg	  ;;
5705521070a0Smrg	*N32*)
5706521070a0Smrg	  LD="${LD-ld} -n32"
5707521070a0Smrg	  ;;
5708521070a0Smrg	*64-bit*)
5709521070a0Smrg	  LD="${LD-ld} -64"
5710521070a0Smrg	  ;;
5711521070a0Smrg      esac
5712521070a0Smrg    fi
5713521070a0Smrg  fi
5714521070a0Smrg  rm -rf conftest*
5715521070a0Smrg  ;;
5716521070a0Smrg
5717521070a0Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5718521070a0Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5719521070a0Smrg  # Find out which ABI we are using.
5720521070a0Smrg  echo 'int i;' > conftest.$ac_ext
5721521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5722521070a0Smrg  (eval $ac_compile) 2>&5
5723521070a0Smrg  ac_status=$?
5724521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725521070a0Smrg  test $ac_status = 0; }; then
5726521070a0Smrg    case `/usr/bin/file conftest.o` in
5727521070a0Smrg      *32-bit*)
5728521070a0Smrg	case $host in
5729521070a0Smrg	  x86_64-*kfreebsd*-gnu)
5730521070a0Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
5731521070a0Smrg	    ;;
5732521070a0Smrg	  x86_64-*linux*)
5733521070a0Smrg	    LD="${LD-ld} -m elf_i386"
5734521070a0Smrg	    ;;
5735521070a0Smrg	  ppc64-*linux*|powerpc64-*linux*)
5736521070a0Smrg	    LD="${LD-ld} -m elf32ppclinux"
5737521070a0Smrg	    ;;
5738521070a0Smrg	  s390x-*linux*)
5739521070a0Smrg	    LD="${LD-ld} -m elf_s390"
5740521070a0Smrg	    ;;
5741521070a0Smrg	  sparc64-*linux*)
5742521070a0Smrg	    LD="${LD-ld} -m elf32_sparc"
5743521070a0Smrg	    ;;
5744521070a0Smrg	esac
5745521070a0Smrg	;;
5746521070a0Smrg      *64-bit*)
5747521070a0Smrg	case $host in
5748521070a0Smrg	  x86_64-*kfreebsd*-gnu)
5749521070a0Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
5750521070a0Smrg	    ;;
5751521070a0Smrg	  x86_64-*linux*)
5752521070a0Smrg	    LD="${LD-ld} -m elf_x86_64"
5753521070a0Smrg	    ;;
5754521070a0Smrg	  ppc*-*linux*|powerpc*-*linux*)
5755521070a0Smrg	    LD="${LD-ld} -m elf64ppc"
5756521070a0Smrg	    ;;
5757521070a0Smrg	  s390*-*linux*|s390*-*tpf*)
5758521070a0Smrg	    LD="${LD-ld} -m elf64_s390"
5759521070a0Smrg	    ;;
5760521070a0Smrg	  sparc*-*linux*)
5761521070a0Smrg	    LD="${LD-ld} -m elf64_sparc"
5762521070a0Smrg	    ;;
5763521070a0Smrg	esac
5764521070a0Smrg	;;
5765521070a0Smrg    esac
5766521070a0Smrg  fi
5767521070a0Smrg  rm -rf conftest*
5768521070a0Smrg  ;;
5769521070a0Smrg
5770521070a0Smrg*-*-sco3.2v5*)
5771521070a0Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772521070a0Smrg  SAVE_CFLAGS="$CFLAGS"
5773521070a0Smrg  CFLAGS="$CFLAGS -belf"
5774521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5775521070a0Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5776521070a0Smrgif test "${lt_cv_cc_needs_belf+set}" = set; then :
5777521070a0Smrg  $as_echo_n "(cached) " >&6
5778521070a0Smrgelse
5779521070a0Smrg  ac_ext=c
5780521070a0Smrgac_cpp='$CPP $CPPFLAGS'
5781521070a0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782521070a0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783521070a0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5784521070a0Smrg
5785521070a0Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786521070a0Smrg/* end confdefs.h.  */
5787521070a0Smrg
5788521070a0Smrgint
5789521070a0Smrgmain ()
5790521070a0Smrg{
5791521070a0Smrg
5792521070a0Smrg  ;
5793521070a0Smrg  return 0;
5794521070a0Smrg}
5795521070a0Smrg_ACEOF
5796521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
5797521070a0Smrg  lt_cv_cc_needs_belf=yes
5798521070a0Smrgelse
5799521070a0Smrg  lt_cv_cc_needs_belf=no
5800521070a0Smrgfi
5801521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
5802521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
5803521070a0Smrg     ac_ext=c
5804521070a0Smrgac_cpp='$CPP $CPPFLAGS'
5805521070a0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806521070a0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807521070a0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5808521070a0Smrg
5809521070a0Smrgfi
5810521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5811521070a0Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
5812521070a0Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5813521070a0Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5814521070a0Smrg    CFLAGS="$SAVE_CFLAGS"
5815521070a0Smrg  fi
5816521070a0Smrg  ;;
5817521070a0Smrgsparc*-*solaris*)
5818521070a0Smrg  # Find out which ABI we are using.
5819521070a0Smrg  echo 'int i;' > conftest.$ac_ext
5820521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821521070a0Smrg  (eval $ac_compile) 2>&5
5822521070a0Smrg  ac_status=$?
5823521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824521070a0Smrg  test $ac_status = 0; }; then
5825521070a0Smrg    case `/usr/bin/file conftest.o` in
5826521070a0Smrg    *64-bit*)
5827521070a0Smrg      case $lt_cv_prog_gnu_ld in
5828521070a0Smrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5829521070a0Smrg      *)
5830521070a0Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5831521070a0Smrg	  LD="${LD-ld} -64"
5832521070a0Smrg	fi
5833521070a0Smrg	;;
5834521070a0Smrg      esac
5835521070a0Smrg      ;;
5836521070a0Smrg    esac
5837521070a0Smrg  fi
5838521070a0Smrg  rm -rf conftest*
5839521070a0Smrg  ;;
5840521070a0Smrgesac
5841521070a0Smrg
5842521070a0Smrgneed_locks="$enable_libtool_lock"
5843521070a0Smrg
5844521070a0Smrg
5845521070a0Smrg  case $host_os in
5846521070a0Smrg    rhapsody* | darwin*)
5847521070a0Smrg    if test -n "$ac_tool_prefix"; then
5848521070a0Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5849521070a0Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5850521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
5852521070a0Smrgif test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5853521070a0Smrg  $as_echo_n "(cached) " >&6
5854521070a0Smrgelse
5855521070a0Smrg  if test -n "$DSYMUTIL"; then
5856521070a0Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5857521070a0Smrgelse
5858521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859521070a0Smrgfor as_dir in $PATH
58604456fccdSmrgdo
58614456fccdSmrg  IFS=$as_save_IFS
58624456fccdSmrg  test -z "$as_dir" && as_dir=.
5863521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
586442d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865521070a0Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5866521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58674456fccdSmrg    break 2
58684456fccdSmrg  fi
58694456fccdSmrgdone
5870521070a0Smrg  done
58714456fccdSmrgIFS=$as_save_IFS
58724456fccdSmrg
58734456fccdSmrgfi
58744456fccdSmrgfi
5875521070a0SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
5876521070a0Smrgif test -n "$DSYMUTIL"; then
5877521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5878521070a0Smrg$as_echo "$DSYMUTIL" >&6; }
58794456fccdSmrgelse
5880521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
588142d69509Smrg$as_echo "no" >&6; }
58824456fccdSmrgfi
58834456fccdSmrg
58844456fccdSmrg
58854456fccdSmrgfi
5886521070a0Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
5887521070a0Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
5888521070a0Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
5889521070a0Smrgset dummy dsymutil; ac_word=$2
5890521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
589142d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
5892521070a0Smrgif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
589342d69509Smrg  $as_echo_n "(cached) " >&6
58944456fccdSmrgelse
5895521070a0Smrg  if test -n "$ac_ct_DSYMUTIL"; then
5896521070a0Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
58974456fccdSmrgelse
58984456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58994456fccdSmrgfor as_dir in $PATH
59004456fccdSmrgdo
59014456fccdSmrg  IFS=$as_save_IFS
59024456fccdSmrg  test -z "$as_dir" && as_dir=.
5903521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
590442d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905521070a0Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5906521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59074456fccdSmrg    break 2
59084456fccdSmrg  fi
59094456fccdSmrgdone
5910521070a0Smrg  done
59114456fccdSmrgIFS=$as_save_IFS
59124456fccdSmrg
59134456fccdSmrgfi
59144456fccdSmrgfi
5915521070a0Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5916521070a0Smrgif test -n "$ac_ct_DSYMUTIL"; then
5917521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5918521070a0Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
59194456fccdSmrgelse
5920521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
592142d69509Smrg$as_echo "no" >&6; }
59224456fccdSmrgfi
59234456fccdSmrg
5924521070a0Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
5925521070a0Smrg    DSYMUTIL=":"
59264456fccdSmrg  else
59274456fccdSmrg    case $cross_compiling:$ac_tool_warned in
59284456fccdSmrgyes:)
5929521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
593042d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
59314456fccdSmrgac_tool_warned=yes ;;
59324456fccdSmrgesac
5933521070a0Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
59344456fccdSmrg  fi
59354456fccdSmrgelse
5936521070a0Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
59374456fccdSmrgfi
59384456fccdSmrg
5939521070a0Smrg    if test -n "$ac_tool_prefix"; then
5940521070a0Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5941521070a0Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
5942521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
594342d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
5944521070a0Smrgif test "${ac_cv_prog_NMEDIT+set}" = set; then :
594542d69509Smrg  $as_echo_n "(cached) " >&6
59464456fccdSmrgelse
5947521070a0Smrg  if test -n "$NMEDIT"; then
5948521070a0Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
59494456fccdSmrgelse
59504456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59514456fccdSmrgfor as_dir in $PATH
59524456fccdSmrgdo
59534456fccdSmrg  IFS=$as_save_IFS
59544456fccdSmrg  test -z "$as_dir" && as_dir=.
5955521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
595642d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957521070a0Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5958521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59594456fccdSmrg    break 2
59604456fccdSmrg  fi
59614456fccdSmrgdone
5962521070a0Smrg  done
59634456fccdSmrgIFS=$as_save_IFS
59644456fccdSmrg
59654456fccdSmrgfi
59664456fccdSmrgfi
5967521070a0SmrgNMEDIT=$ac_cv_prog_NMEDIT
5968521070a0Smrgif test -n "$NMEDIT"; then
5969521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5970521070a0Smrg$as_echo "$NMEDIT" >&6; }
59714456fccdSmrgelse
5972521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
597342d69509Smrg$as_echo "no" >&6; }
59744456fccdSmrgfi
59754456fccdSmrg
59764456fccdSmrg
59774456fccdSmrgfi
5978521070a0Smrgif test -z "$ac_cv_prog_NMEDIT"; then
5979521070a0Smrg  ac_ct_NMEDIT=$NMEDIT
5980521070a0Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
5981521070a0Smrgset dummy nmedit; ac_word=$2
5982521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
598342d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
5984521070a0Smrgif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
598542d69509Smrg  $as_echo_n "(cached) " >&6
59864456fccdSmrgelse
5987521070a0Smrg  if test -n "$ac_ct_NMEDIT"; then
5988521070a0Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
59894456fccdSmrgelse
59904456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59914456fccdSmrgfor as_dir in $PATH
59924456fccdSmrgdo
59934456fccdSmrg  IFS=$as_save_IFS
59944456fccdSmrg  test -z "$as_dir" && as_dir=.
5995521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
599642d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997521070a0Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5998521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59994456fccdSmrg    break 2
60004456fccdSmrg  fi
60014456fccdSmrgdone
6002521070a0Smrg  done
60034456fccdSmrgIFS=$as_save_IFS
60044456fccdSmrg
60054456fccdSmrgfi
60064456fccdSmrgfi
6007521070a0Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6008521070a0Smrgif test -n "$ac_ct_NMEDIT"; then
6009521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6010521070a0Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
60114456fccdSmrgelse
6012521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
601342d69509Smrg$as_echo "no" >&6; }
60144456fccdSmrgfi
60154456fccdSmrg
6016521070a0Smrg  if test "x$ac_ct_NMEDIT" = x; then
6017521070a0Smrg    NMEDIT=":"
60184456fccdSmrg  else
60194456fccdSmrg    case $cross_compiling:$ac_tool_warned in
60204456fccdSmrgyes:)
6021521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
602242d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
60234456fccdSmrgac_tool_warned=yes ;;
60244456fccdSmrgesac
6025521070a0Smrg    NMEDIT=$ac_ct_NMEDIT
60264456fccdSmrg  fi
60274456fccdSmrgelse
6028521070a0Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
60294456fccdSmrgfi
60304456fccdSmrg
6031521070a0Smrg    if test -n "$ac_tool_prefix"; then
6032521070a0Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6033521070a0Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
6034521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
6036521070a0Smrgif test "${ac_cv_prog_LIPO+set}" = set; then :
6037521070a0Smrg  $as_echo_n "(cached) " >&6
6038521070a0Smrgelse
6039521070a0Smrg  if test -n "$LIPO"; then
6040521070a0Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6041521070a0Smrgelse
6042521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043521070a0Smrgfor as_dir in $PATH
6044521070a0Smrgdo
6045521070a0Smrg  IFS=$as_save_IFS
6046521070a0Smrg  test -z "$as_dir" && as_dir=.
6047521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6048521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049521070a0Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6050521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051521070a0Smrg    break 2
6052521070a0Smrg  fi
6053521070a0Smrgdone
6054521070a0Smrg  done
6055521070a0SmrgIFS=$as_save_IFS
60564456fccdSmrg
6057521070a0Smrgfi
6058521070a0Smrgfi
6059521070a0SmrgLIPO=$ac_cv_prog_LIPO
6060521070a0Smrgif test -n "$LIPO"; then
6061521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6062521070a0Smrg$as_echo "$LIPO" >&6; }
6063521070a0Smrgelse
6064521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065521070a0Smrg$as_echo "no" >&6; }
6066521070a0Smrgfi
60674456fccdSmrg
60684456fccdSmrg
60694456fccdSmrgfi
6070521070a0Smrgif test -z "$ac_cv_prog_LIPO"; then
6071521070a0Smrg  ac_ct_LIPO=$LIPO
6072521070a0Smrg  # Extract the first word of "lipo", so it can be a program name with args.
6073521070a0Smrgset dummy lipo; ac_word=$2
6074521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
6076521070a0Smrgif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
607742d69509Smrg  $as_echo_n "(cached) " >&6
60784456fccdSmrgelse
6079521070a0Smrg  if test -n "$ac_ct_LIPO"; then
6080521070a0Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6081521070a0Smrgelse
6082521070a0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083521070a0Smrgfor as_dir in $PATH
6084521070a0Smrgdo
6085521070a0Smrg  IFS=$as_save_IFS
6086521070a0Smrg  test -z "$as_dir" && as_dir=.
6087521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6088521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089521070a0Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
6090521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091521070a0Smrg    break 2
6092521070a0Smrg  fi
6093521070a0Smrgdone
60944456fccdSmrg  done
6095521070a0SmrgIFS=$as_save_IFS
60964456fccdSmrg
60974456fccdSmrgfi
60984456fccdSmrgfi
6099521070a0Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6100521070a0Smrgif test -n "$ac_ct_LIPO"; then
6101521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6102521070a0Smrg$as_echo "$ac_ct_LIPO" >&6; }
61034456fccdSmrgelse
6104521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
610542d69509Smrg$as_echo "no" >&6; }
61064456fccdSmrgfi
61074456fccdSmrg
6108521070a0Smrg  if test "x$ac_ct_LIPO" = x; then
6109521070a0Smrg    LIPO=":"
61104456fccdSmrg  else
6111521070a0Smrg    case $cross_compiling:$ac_tool_warned in
6112521070a0Smrgyes:)
6113521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115521070a0Smrgac_tool_warned=yes ;;
6116521070a0Smrgesac
6117521070a0Smrg    LIPO=$ac_ct_LIPO
61184456fccdSmrg  fi
6119521070a0Smrgelse
6120521070a0Smrg  LIPO="$ac_cv_prog_LIPO"
61214456fccdSmrgfi
61224456fccdSmrg
612342d69509Smrg    if test -n "$ac_tool_prefix"; then
6124521070a0Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6125521070a0Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
6126521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
612742d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
6128521070a0Smrgif test "${ac_cv_prog_OTOOL+set}" = set; then :
612942d69509Smrg  $as_echo_n "(cached) " >&6
613042d69509Smrgelse
6131521070a0Smrg  if test -n "$OTOOL"; then
6132521070a0Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
613342d69509Smrgelse
613442d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
613542d69509Smrgfor as_dir in $PATH
613642d69509Smrgdo
613742d69509Smrg  IFS=$as_save_IFS
613842d69509Smrg  test -z "$as_dir" && as_dir=.
6139521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
614042d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141521070a0Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6142521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
614342d69509Smrg    break 2
614442d69509Smrg  fi
614542d69509Smrgdone
6146521070a0Smrg  done
614742d69509SmrgIFS=$as_save_IFS
614842d69509Smrg
614942d69509Smrgfi
615042d69509Smrgfi
6151521070a0SmrgOTOOL=$ac_cv_prog_OTOOL
6152521070a0Smrgif test -n "$OTOOL"; then
6153521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6154521070a0Smrg$as_echo "$OTOOL" >&6; }
615542d69509Smrgelse
6156521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
615742d69509Smrg$as_echo "no" >&6; }
61584456fccdSmrgfi
61594456fccdSmrg
61604456fccdSmrg
616142d69509Smrgfi
6162521070a0Smrgif test -z "$ac_cv_prog_OTOOL"; then
6163521070a0Smrg  ac_ct_OTOOL=$OTOOL
6164521070a0Smrg  # Extract the first word of "otool", so it can be a program name with args.
6165521070a0Smrgset dummy otool; ac_word=$2
6166521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
616742d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
6168521070a0Smrgif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
616942d69509Smrg  $as_echo_n "(cached) " >&6
617042d69509Smrgelse
6171521070a0Smrg  if test -n "$ac_ct_OTOOL"; then
6172521070a0Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
617342d69509Smrgelse
617442d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
617542d69509Smrgfor as_dir in $PATH
617642d69509Smrgdo
617742d69509Smrg  IFS=$as_save_IFS
617842d69509Smrg  test -z "$as_dir" && as_dir=.
6179521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
618042d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181521070a0Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
6182521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
618342d69509Smrg    break 2
618442d69509Smrg  fi
618542d69509Smrgdone
6186521070a0Smrg  done
618742d69509SmrgIFS=$as_save_IFS
61884456fccdSmrg
618942d69509Smrgfi
619042d69509Smrgfi
6191521070a0Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6192521070a0Smrgif test -n "$ac_ct_OTOOL"; then
6193521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6194521070a0Smrg$as_echo "$ac_ct_OTOOL" >&6; }
61954456fccdSmrgelse
6196521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
619742d69509Smrg$as_echo "no" >&6; }
61984456fccdSmrgfi
61994456fccdSmrg
6200521070a0Smrg  if test "x$ac_ct_OTOOL" = x; then
6201521070a0Smrg    OTOOL=":"
620242d69509Smrg  else
620342d69509Smrg    case $cross_compiling:$ac_tool_warned in
620442d69509Smrgyes:)
6205521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
620642d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
620742d69509Smrgac_tool_warned=yes ;;
620842d69509Smrgesac
6209521070a0Smrg    OTOOL=$ac_ct_OTOOL
621042d69509Smrg  fi
621142d69509Smrgelse
6212521070a0Smrg  OTOOL="$ac_cv_prog_OTOOL"
621342d69509Smrgfi
62144456fccdSmrg
621542d69509Smrg    if test -n "$ac_tool_prefix"; then
6216521070a0Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6217521070a0Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
6218521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
621942d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
6220521070a0Smrgif test "${ac_cv_prog_OTOOL64+set}" = set; then :
622142d69509Smrg  $as_echo_n "(cached) " >&6
622242d69509Smrgelse
6223521070a0Smrg  if test -n "$OTOOL64"; then
6224521070a0Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
622542d69509Smrgelse
622642d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
622742d69509Smrgfor as_dir in $PATH
622842d69509Smrgdo
622942d69509Smrg  IFS=$as_save_IFS
623042d69509Smrg  test -z "$as_dir" && as_dir=.
6231521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
623242d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233521070a0Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6234521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
623542d69509Smrg    break 2
623642d69509Smrg  fi
623742d69509Smrgdone
6238521070a0Smrg  done
623942d69509SmrgIFS=$as_save_IFS
62404456fccdSmrg
624142d69509Smrgfi
624242d69509Smrgfi
6243521070a0SmrgOTOOL64=$ac_cv_prog_OTOOL64
6244521070a0Smrgif test -n "$OTOOL64"; then
6245521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6246521070a0Smrg$as_echo "$OTOOL64" >&6; }
624742d69509Smrgelse
6248521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
624942d69509Smrg$as_echo "no" >&6; }
625042d69509Smrgfi
62514456fccdSmrg
62524456fccdSmrg
625342d69509Smrgfi
6254521070a0Smrgif test -z "$ac_cv_prog_OTOOL64"; then
6255521070a0Smrg  ac_ct_OTOOL64=$OTOOL64
6256521070a0Smrg  # Extract the first word of "otool64", so it can be a program name with args.
6257521070a0Smrgset dummy otool64; ac_word=$2
6258521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
625942d69509Smrg$as_echo_n "checking for $ac_word... " >&6; }
6260521070a0Smrgif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
626142d69509Smrg  $as_echo_n "(cached) " >&6
626242d69509Smrgelse
6263521070a0Smrg  if test -n "$ac_ct_OTOOL64"; then
6264521070a0Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
626542d69509Smrgelse
626642d69509Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
626742d69509Smrgfor as_dir in $PATH
626842d69509Smrgdo
626942d69509Smrg  IFS=$as_save_IFS
627042d69509Smrg  test -z "$as_dir" && as_dir=.
6271521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
627242d69509Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273521070a0Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
6274521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
627542d69509Smrg    break 2
627642d69509Smrg  fi
627742d69509Smrgdone
6278521070a0Smrg  done
627942d69509SmrgIFS=$as_save_IFS
62804456fccdSmrg
628142d69509Smrgfi
628242d69509Smrgfi
6283521070a0Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6284521070a0Smrgif test -n "$ac_ct_OTOOL64"; then
6285521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6286521070a0Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
628742d69509Smrgelse
6288521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
628942d69509Smrg$as_echo "no" >&6; }
629042d69509Smrgfi
62914456fccdSmrg
6292521070a0Smrg  if test "x$ac_ct_OTOOL64" = x; then
6293521070a0Smrg    OTOOL64=":"
629442d69509Smrg  else
629542d69509Smrg    case $cross_compiling:$ac_tool_warned in
629642d69509Smrgyes:)
6297521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
629842d69509Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
629942d69509Smrgac_tool_warned=yes ;;
630042d69509Smrgesac
6301521070a0Smrg    OTOOL64=$ac_ct_OTOOL64
630242d69509Smrg  fi
630342d69509Smrgelse
6304521070a0Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
630542d69509Smrgfi
63064456fccdSmrg
63074456fccdSmrg
6308521070a0Smrg
6309521070a0Smrg
6310521070a0Smrg
6311521070a0Smrg
6312521070a0Smrg
6313521070a0Smrg
6314521070a0Smrg
6315521070a0Smrg
6316521070a0Smrg
6317521070a0Smrg
6318521070a0Smrg
6319521070a0Smrg
6320521070a0Smrg
6321521070a0Smrg
6322521070a0Smrg
6323521070a0Smrg
6324521070a0Smrg
6325521070a0Smrg
6326521070a0Smrg
6327521070a0Smrg
6328521070a0Smrg
6329521070a0Smrg
6330521070a0Smrg
6331521070a0Smrg
6332521070a0Smrg
6333521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
633442d69509Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
6335521070a0Smrgif test "${lt_cv_apple_cc_single_mod+set}" = set; then :
633642d69509Smrg  $as_echo_n "(cached) " >&6
633742d69509Smrgelse
633842d69509Smrg  lt_cv_apple_cc_single_mod=no
633942d69509Smrg      if test -z "${LT_MULTI_MODULE}"; then
6340521070a0Smrg	# By default we will add the -single_module flag. You can override
6341521070a0Smrg	# by either setting the environment variable LT_MULTI_MODULE
6342521070a0Smrg	# non-empty at configure time, or by adding -multi_module to the
6343521070a0Smrg	# link flags.
6344521070a0Smrg	rm -rf libconftest.dylib*
6345521070a0Smrg	echo "int foo(void){return 1;}" > conftest.c
6346521070a0Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6347521070a0Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
6348521070a0Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6349521070a0Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6350521070a0Smrg        _lt_result=$?
6351521070a0Smrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6352521070a0Smrg	  lt_cv_apple_cc_single_mod=yes
6353521070a0Smrg	else
6354521070a0Smrg	  cat conftest.err >&5
6355521070a0Smrg	fi
6356521070a0Smrg	rm -rf libconftest.dylib*
6357521070a0Smrg	rm -f conftest.*
635842d69509Smrg      fi
635942d69509Smrgfi
6360521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
636142d69509Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6362521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
636342d69509Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6364521070a0Smrgif test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
636542d69509Smrg  $as_echo_n "(cached) " >&6
636642d69509Smrgelse
636742d69509Smrg  lt_cv_ld_exported_symbols_list=no
636842d69509Smrg      save_LDFLAGS=$LDFLAGS
636942d69509Smrg      echo "_main" > conftest.sym
637042d69509Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6371521070a0Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
637242d69509Smrg/* end confdefs.h.  */
63734456fccdSmrg
637442d69509Smrgint
637542d69509Smrgmain ()
637642d69509Smrg{
63774456fccdSmrg
637842d69509Smrg  ;
637942d69509Smrg  return 0;
638042d69509Smrg}
638142d69509Smrg_ACEOF
6382521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
638342d69509Smrg  lt_cv_ld_exported_symbols_list=yes
638442d69509Smrgelse
6385521070a0Smrg  lt_cv_ld_exported_symbols_list=no
638642d69509Smrgfi
6387521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
6388521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
6389521070a0Smrg	LDFLAGS="$save_LDFLAGS"
639042d69509Smrg
639142d69509Smrgfi
6392521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
639342d69509Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6394ff63a143Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6395ff63a143Smrg$as_echo_n "checking for -force_load linker flag... " >&6; }
6396ff63a143Smrgif test "${lt_cv_ld_force_load+set}" = set; then :
6397ff63a143Smrg  $as_echo_n "(cached) " >&6
6398ff63a143Smrgelse
6399ff63a143Smrg  lt_cv_ld_force_load=no
6400ff63a143Smrg      cat > conftest.c << _LT_EOF
6401ff63a143Smrgint forced_loaded() { return 2;}
6402ff63a143Smrg_LT_EOF
6403ff63a143Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6404ff63a143Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6405ff63a143Smrg      echo "$AR cru libconftest.a conftest.o" >&5
6406ff63a143Smrg      $AR cru libconftest.a conftest.o 2>&5
6407ff63a143Smrg      echo "$RANLIB libconftest.a" >&5
6408ff63a143Smrg      $RANLIB libconftest.a 2>&5
6409ff63a143Smrg      cat > conftest.c << _LT_EOF
6410ff63a143Smrgint main() { return 0;}
6411ff63a143Smrg_LT_EOF
6412ff63a143Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6413ff63a143Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6414ff63a143Smrg      _lt_result=$?
6415ff63a143Smrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6416ff63a143Smrg	lt_cv_ld_force_load=yes
6417ff63a143Smrg      else
6418ff63a143Smrg	cat conftest.err >&5
6419ff63a143Smrg      fi
6420ff63a143Smrg        rm -f conftest.err libconftest.a conftest conftest.c
6421ff63a143Smrg        rm -rf conftest.dSYM
6422ff63a143Smrg
6423ff63a143Smrgfi
6424ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6425ff63a143Smrg$as_echo "$lt_cv_ld_force_load" >&6; }
642642d69509Smrg    case $host_os in
6427521070a0Smrg    rhapsody* | darwin1.[012])
642842d69509Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
642942d69509Smrg    darwin1.*)
6430521070a0Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6431521070a0Smrg    darwin*) # darwin 5.x on
643242d69509Smrg      # if running on 10.5 or later, the deployment target defaults
643342d69509Smrg      # to the OS version, if on x86, and 10.4, the deployment
643442d69509Smrg      # target defaults to 10.4. Don't you love it?
643542d69509Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6436521070a0Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6437521070a0Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6438521070a0Smrg	10.[012]*)
6439521070a0Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6440521070a0Smrg	10.*)
6441521070a0Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
644242d69509Smrg      esac
644342d69509Smrg    ;;
644442d69509Smrg  esac
644542d69509Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
644642d69509Smrg      _lt_dar_single_mod='$single_module'
644742d69509Smrg    fi
644842d69509Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
644942d69509Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
645042d69509Smrg    else
6451521070a0Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
645242d69509Smrg    fi
6453ff63a143Smrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6454521070a0Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
645542d69509Smrg    else
645642d69509Smrg      _lt_dsymutil=
645742d69509Smrg    fi
645842d69509Smrg    ;;
645942d69509Smrg  esac
646042d69509Smrg
6461521070a0Smrgac_ext=c
6462521070a0Smrgac_cpp='$CPP $CPPFLAGS'
6463521070a0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464521070a0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465521070a0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6466521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6467521070a0Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
6468521070a0Smrg# On Suns, sometimes $CPP names a directory.
6469521070a0Smrgif test -n "$CPP" && test -d "$CPP"; then
6470521070a0Smrg  CPP=
6471521070a0Smrgfi
6472521070a0Smrgif test -z "$CPP"; then
6473521070a0Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
6474521070a0Smrg  $as_echo_n "(cached) " >&6
6475521070a0Smrgelse
6476521070a0Smrg      # Double quotes because CPP needs to be expanded
6477521070a0Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6478521070a0Smrg    do
6479521070a0Smrg      ac_preproc_ok=false
6480521070a0Smrgfor ac_c_preproc_warn_flag in '' yes
6481521070a0Smrgdo
6482521070a0Smrg  # Use a header file that comes with gcc, so configuring glibc
6483521070a0Smrg  # with a fresh cross-compiler works.
6484521070a0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6485521070a0Smrg  # <limits.h> exists even on freestanding compilers.
6486521070a0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
6487521070a0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
6488521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489521070a0Smrg/* end confdefs.h.  */
6490521070a0Smrg#ifdef __STDC__
6491521070a0Smrg# include <limits.h>
6492521070a0Smrg#else
6493521070a0Smrg# include <assert.h>
6494521070a0Smrg#endif
6495521070a0Smrg		     Syntax error
6496521070a0Smrg_ACEOF
6497521070a0Smrgif ac_fn_c_try_cpp "$LINENO"; then :
649842d69509Smrg
6499521070a0Smrgelse
6500521070a0Smrg  # Broken: fails on valid input.
6501521070a0Smrgcontinue
6502521070a0Smrgfi
6503521070a0Smrgrm -f conftest.err conftest.$ac_ext
650442d69509Smrg
6505521070a0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
6506521070a0Smrg  # can be detected and how.
6507521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508521070a0Smrg/* end confdefs.h.  */
6509521070a0Smrg#include <ac_nonexistent.h>
6510521070a0Smrg_ACEOF
6511521070a0Smrgif ac_fn_c_try_cpp "$LINENO"; then :
6512521070a0Smrg  # Broken: success on invalid input.
6513521070a0Smrgcontinue
6514521070a0Smrgelse
6515521070a0Smrg  # Passes both tests.
6516521070a0Smrgac_preproc_ok=:
6517521070a0Smrgbreak
651842d69509Smrgfi
6519521070a0Smrgrm -f conftest.err conftest.$ac_ext
652042d69509Smrg
6521521070a0Smrgdone
6522521070a0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523521070a0Smrgrm -f conftest.err conftest.$ac_ext
6524521070a0Smrgif $ac_preproc_ok; then :
6525521070a0Smrg  break
6526521070a0Smrgfi
652742d69509Smrg
6528521070a0Smrg    done
6529521070a0Smrg    ac_cv_prog_CPP=$CPP
653042d69509Smrg
6531521070a0Smrgfi
6532521070a0Smrg  CPP=$ac_cv_prog_CPP
653342d69509Smrgelse
6534521070a0Smrg  ac_cv_prog_CPP=$CPP
6535521070a0Smrgfi
6536521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6537521070a0Smrg$as_echo "$CPP" >&6; }
6538521070a0Smrgac_preproc_ok=false
6539521070a0Smrgfor ac_c_preproc_warn_flag in '' yes
6540521070a0Smrgdo
6541521070a0Smrg  # Use a header file that comes with gcc, so configuring glibc
6542521070a0Smrg  # with a fresh cross-compiler works.
6543521070a0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6544521070a0Smrg  # <limits.h> exists even on freestanding compilers.
6545521070a0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
6546521070a0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
6547521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548521070a0Smrg/* end confdefs.h.  */
6549521070a0Smrg#ifdef __STDC__
6550521070a0Smrg# include <limits.h>
6551521070a0Smrg#else
6552521070a0Smrg# include <assert.h>
6553521070a0Smrg#endif
6554521070a0Smrg		     Syntax error
6555521070a0Smrg_ACEOF
6556521070a0Smrgif ac_fn_c_try_cpp "$LINENO"; then :
6557521070a0Smrg
6558521070a0Smrgelse
6559521070a0Smrg  # Broken: fails on valid input.
6560521070a0Smrgcontinue
656142d69509Smrgfi
6562521070a0Smrgrm -f conftest.err conftest.$ac_ext
656342d69509Smrg
6564521070a0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
6565521070a0Smrg  # can be detected and how.
6566521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567521070a0Smrg/* end confdefs.h.  */
6568521070a0Smrg#include <ac_nonexistent.h>
6569521070a0Smrg_ACEOF
6570521070a0Smrgif ac_fn_c_try_cpp "$LINENO"; then :
6571521070a0Smrg  # Broken: success on invalid input.
6572521070a0Smrgcontinue
6573521070a0Smrgelse
6574521070a0Smrg  # Passes both tests.
6575521070a0Smrgac_preproc_ok=:
6576521070a0Smrgbreak
6577521070a0Smrgfi
6578521070a0Smrgrm -f conftest.err conftest.$ac_ext
6579521070a0Smrg
6580521070a0Smrgdone
6581521070a0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6582521070a0Smrgrm -f conftest.err conftest.$ac_ext
6583521070a0Smrgif $ac_preproc_ok; then :
6584521070a0Smrg
6585521070a0Smrgelse
6586521070a0Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6587521070a0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6588ff63a143Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6589ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
6590521070a0Smrgfi
659142d69509Smrg
659242d69509Smrgac_ext=c
659342d69509Smrgac_cpp='$CPP $CPPFLAGS'
659442d69509Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
659542d69509Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
659642d69509Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
659742d69509Smrg
659842d69509Smrg
6599521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6600521070a0Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
6601521070a0Smrgif test "${ac_cv_header_stdc+set}" = set; then :
6602521070a0Smrg  $as_echo_n "(cached) " >&6
6603521070a0Smrgelse
6604521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605521070a0Smrg/* end confdefs.h.  */
6606521070a0Smrg#include <stdlib.h>
6607521070a0Smrg#include <stdarg.h>
6608521070a0Smrg#include <string.h>
6609521070a0Smrg#include <float.h>
661042d69509Smrg
6611521070a0Smrgint
6612521070a0Smrgmain ()
6613521070a0Smrg{
661442d69509Smrg
6615521070a0Smrg  ;
6616521070a0Smrg  return 0;
6617521070a0Smrg}
6618521070a0Smrg_ACEOF
6619521070a0Smrgif ac_fn_c_try_compile "$LINENO"; then :
6620521070a0Smrg  ac_cv_header_stdc=yes
6621521070a0Smrgelse
6622521070a0Smrg  ac_cv_header_stdc=no
6623521070a0Smrgfi
6624521070a0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
662542d69509Smrg
6626521070a0Smrgif test $ac_cv_header_stdc = yes; then
6627521070a0Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6628521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629521070a0Smrg/* end confdefs.h.  */
6630521070a0Smrg#include <string.h>
663142d69509Smrg
6632521070a0Smrg_ACEOF
6633521070a0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634521070a0Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
663542d69509Smrg
6636521070a0Smrgelse
6637521070a0Smrg  ac_cv_header_stdc=no
6638521070a0Smrgfi
6639521070a0Smrgrm -f conftest*
664042d69509Smrg
6641521070a0Smrgfi
664242d69509Smrg
6643521070a0Smrgif test $ac_cv_header_stdc = yes; then
6644521070a0Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6645521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646521070a0Smrg/* end confdefs.h.  */
6647521070a0Smrg#include <stdlib.h>
664842d69509Smrg
6649521070a0Smrg_ACEOF
6650521070a0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651521070a0Smrg  $EGREP "free" >/dev/null 2>&1; then :
665242d69509Smrg
6653521070a0Smrgelse
6654521070a0Smrg  ac_cv_header_stdc=no
6655521070a0Smrgfi
6656521070a0Smrgrm -f conftest*
66574456fccdSmrg
6658521070a0Smrgfi
66594456fccdSmrg
6660521070a0Smrgif test $ac_cv_header_stdc = yes; then
6661521070a0Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662521070a0Smrg  if test "$cross_compiling" = yes; then :
6663521070a0Smrg  :
6664521070a0Smrgelse
6665521070a0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666521070a0Smrg/* end confdefs.h.  */
6667521070a0Smrg#include <ctype.h>
6668521070a0Smrg#include <stdlib.h>
6669521070a0Smrg#if ((' ' & 0x0FF) == 0x020)
6670521070a0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6671521070a0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672521070a0Smrg#else
6673521070a0Smrg# define ISLOWER(c) \
6674521070a0Smrg		   (('a' <= (c) && (c) <= 'i') \
6675521070a0Smrg		     || ('j' <= (c) && (c) <= 'r') \
6676521070a0Smrg		     || ('s' <= (c) && (c) <= 'z'))
6677521070a0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6678521070a0Smrg#endif
66794456fccdSmrg
6680521070a0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6681521070a0Smrgint
6682521070a0Smrgmain ()
6683521070a0Smrg{
6684521070a0Smrg  int i;
6685521070a0Smrg  for (i = 0; i < 256; i++)
6686521070a0Smrg    if (XOR (islower (i), ISLOWER (i))
6687521070a0Smrg	|| toupper (i) != TOUPPER (i))
6688521070a0Smrg      return 2;
6689521070a0Smrg  return 0;
6690521070a0Smrg}
6691521070a0Smrg_ACEOF
6692521070a0Smrgif ac_fn_c_try_run "$LINENO"; then :
66934456fccdSmrg
6694521070a0Smrgelse
6695521070a0Smrg  ac_cv_header_stdc=no
6696521070a0Smrgfi
6697521070a0Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6698521070a0Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
6699521070a0Smrgfi
67004456fccdSmrg
6701521070a0Smrgfi
6702521070a0Smrgfi
6703521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6704521070a0Smrg$as_echo "$ac_cv_header_stdc" >&6; }
6705521070a0Smrgif test $ac_cv_header_stdc = yes; then
67064456fccdSmrg
6707521070a0Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
67084456fccdSmrg
67094456fccdSmrgfi
67104456fccdSmrg
6711521070a0Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6712521070a0Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6713521070a0Smrg		  inttypes.h stdint.h unistd.h
6714521070a0Smrgdo :
6715521070a0Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716521070a0Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6717521070a0Smrg"
6718ff63a143Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6719521070a0Smrg  cat >>confdefs.h <<_ACEOF
6720521070a0Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6721521070a0Smrg_ACEOF
67224456fccdSmrg
67234456fccdSmrgfi
67244456fccdSmrg
6725521070a0Smrgdone
67264456fccdSmrg
67274456fccdSmrg
6728521070a0Smrgfor ac_header in dlfcn.h
6729521070a0Smrgdo :
6730521070a0Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6731521070a0Smrg"
6732521070a0Smrgif test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6733521070a0Smrg  cat >>confdefs.h <<_ACEOF
6734521070a0Smrg#define HAVE_DLFCN_H 1
6735521070a0Smrg_ACEOF
67364456fccdSmrg
6737521070a0Smrgfi
67384456fccdSmrg
6739521070a0Smrgdone
67404456fccdSmrg
67414456fccdSmrg
67424456fccdSmrg
6743ff63a143Smrg
6744ff63a143Smrg
6745521070a0Smrg# Set options
67464456fccdSmrg
67474456fccdSmrg
67484456fccdSmrg
6749521070a0Smrg        enable_dlopen=no
67504456fccdSmrg
67514456fccdSmrg
6752521070a0Smrg  enable_win32_dll=no
6753521070a0Smrg
6754521070a0Smrg
6755521070a0Smrg            # Check whether --enable-shared was given.
6756521070a0Smrgif test "${enable_shared+set}" = set; then :
6757521070a0Smrg  enableval=$enable_shared; p=${PACKAGE-default}
6758521070a0Smrg    case $enableval in
6759521070a0Smrg    yes) enable_shared=yes ;;
6760521070a0Smrg    no) enable_shared=no ;;
67614456fccdSmrg    *)
6762521070a0Smrg      enable_shared=no
6763521070a0Smrg      # Look at the argument we got.  We use all the common list separators.
6764521070a0Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6765521070a0Smrg      for pkg in $enableval; do
6766521070a0Smrg	IFS="$lt_save_ifs"
6767521070a0Smrg	if test "X$pkg" = "X$p"; then
6768521070a0Smrg	  enable_shared=yes
6769521070a0Smrg	fi
6770521070a0Smrg      done
6771521070a0Smrg      IFS="$lt_save_ifs"
67724456fccdSmrg      ;;
67734456fccdSmrg    esac
6774521070a0Smrgelse
6775521070a0Smrg  enable_shared=yes
6776521070a0Smrgfi
67774456fccdSmrg
67784456fccdSmrg
67794456fccdSmrg
67804456fccdSmrg
67814456fccdSmrg
67824456fccdSmrg
67834456fccdSmrg
678442d69509Smrg
67854456fccdSmrg
6786521070a0Smrg  # Check whether --enable-static was given.
6787521070a0Smrgif test "${enable_static+set}" = set; then :
6788521070a0Smrg  enableval=$enable_static; p=${PACKAGE-default}
6789521070a0Smrg    case $enableval in
6790521070a0Smrg    yes) enable_static=yes ;;
6791521070a0Smrg    no) enable_static=no ;;
6792521070a0Smrg    *)
6793521070a0Smrg     enable_static=no
6794521070a0Smrg      # Look at the argument we got.  We use all the common list separators.
6795521070a0Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6796521070a0Smrg      for pkg in $enableval; do
6797521070a0Smrg	IFS="$lt_save_ifs"
6798521070a0Smrg	if test "X$pkg" = "X$p"; then
6799521070a0Smrg	  enable_static=yes
6800521070a0Smrg	fi
6801521070a0Smrg      done
6802521070a0Smrg      IFS="$lt_save_ifs"
68034456fccdSmrg      ;;
6804521070a0Smrg    esac
6805521070a0Smrgelse
6806521070a0Smrg  enable_static=yes
6807521070a0Smrgfi
68084456fccdSmrg
68094456fccdSmrg
68104456fccdSmrg
68114456fccdSmrg
68124456fccdSmrg
68134456fccdSmrg
68144456fccdSmrg
68154456fccdSmrg
68164456fccdSmrg
68174456fccdSmrg
6818521070a0Smrg# Check whether --with-pic was given.
6819521070a0Smrgif test "${with_pic+set}" = set; then :
6820521070a0Smrg  withval=$with_pic; pic_mode="$withval"
68214456fccdSmrgelse
6822521070a0Smrg  pic_mode=default
68234456fccdSmrgfi
68244456fccdSmrg
68254456fccdSmrg
6826521070a0Smrgtest -z "$pic_mode" && pic_mode=default
68274456fccdSmrg
68284456fccdSmrg
6829521070a0Smrg
6830521070a0Smrg
6831521070a0Smrg
6832521070a0Smrg
6833521070a0Smrg
6834521070a0Smrg  # Check whether --enable-fast-install was given.
6835521070a0Smrgif test "${enable_fast_install+set}" = set; then :
6836521070a0Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
6837521070a0Smrg    case $enableval in
6838521070a0Smrg    yes) enable_fast_install=yes ;;
6839521070a0Smrg    no) enable_fast_install=no ;;
6840521070a0Smrg    *)
6841521070a0Smrg      enable_fast_install=no
6842521070a0Smrg      # Look at the argument we got.  We use all the common list separators.
6843521070a0Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6844521070a0Smrg      for pkg in $enableval; do
6845521070a0Smrg	IFS="$lt_save_ifs"
6846521070a0Smrg	if test "X$pkg" = "X$p"; then
6847521070a0Smrg	  enable_fast_install=yes
6848521070a0Smrg	fi
6849521070a0Smrg      done
6850521070a0Smrg      IFS="$lt_save_ifs"
6851521070a0Smrg      ;;
6852521070a0Smrg    esac
68534456fccdSmrgelse
6854521070a0Smrg  enable_fast_install=yes
68554456fccdSmrgfi
68564456fccdSmrg
68574456fccdSmrg
68584456fccdSmrg
68594456fccdSmrg
68604456fccdSmrg
68614456fccdSmrg
68624456fccdSmrg
68634456fccdSmrg
68644456fccdSmrg
68654456fccdSmrg
68664456fccdSmrg
6867521070a0Smrg# This can be used to rebuild libtool when needed
6868521070a0SmrgLIBTOOL_DEPS="$ltmain"
68694456fccdSmrg
6870521070a0Smrg# Always use our own libtool.
6871521070a0SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
68724456fccdSmrg
68734456fccdSmrg
68744456fccdSmrg
68754456fccdSmrg
68764456fccdSmrg
68774456fccdSmrg
68784456fccdSmrg
68794456fccdSmrg
68804456fccdSmrg
68814456fccdSmrg
68824456fccdSmrg
68834456fccdSmrg
68844456fccdSmrg
68854456fccdSmrg
68864456fccdSmrg
68874456fccdSmrg
68884456fccdSmrg
68894456fccdSmrg
68904456fccdSmrg
68914456fccdSmrg
68924456fccdSmrg
68934456fccdSmrg
68944456fccdSmrg
6895ff63a143Smrg
68964456fccdSmrg
68974456fccdSmrg
6898521070a0Smrgtest -z "$LN_S" && LN_S="ln -s"
68994456fccdSmrg
69004456fccdSmrg
69014456fccdSmrg
69024456fccdSmrg
690342d69509Smrg
69044456fccdSmrg
69054456fccdSmrg
69064456fccdSmrg
69074456fccdSmrg
69084456fccdSmrg
69094456fccdSmrg
691042d69509Smrg
6911521070a0Smrg
6912521070a0Smrg
6913521070a0Smrgif test -n "${ZSH_VERSION+set}" ; then
6914521070a0Smrg   setopt NO_GLOB_SUBST
691542d69509Smrgfi
6916521070a0Smrg
6917521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6918521070a0Smrg$as_echo_n "checking for objdir... " >&6; }
6919521070a0Smrgif test "${lt_cv_objdir+set}" = set; then :
6920521070a0Smrg  $as_echo_n "(cached) " >&6
69214456fccdSmrgelse
6922521070a0Smrg  rm -f .libs 2>/dev/null
6923521070a0Smrgmkdir .libs 2>/dev/null
6924521070a0Smrgif test -d .libs; then
6925521070a0Smrg  lt_cv_objdir=.libs
6926521070a0Smrgelse
6927521070a0Smrg  # MS-DOS does not allow filenames that begin with a dot.
6928521070a0Smrg  lt_cv_objdir=_libs
6929521070a0Smrgfi
6930521070a0Smrgrmdir .libs 2>/dev/null
6931521070a0Smrgfi
6932521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6933521070a0Smrg$as_echo "$lt_cv_objdir" >&6; }
6934521070a0Smrgobjdir=$lt_cv_objdir
69354456fccdSmrg
69364456fccdSmrg
69374456fccdSmrg
69384456fccdSmrg
69394456fccdSmrg
6940521070a0Smrgcat >>confdefs.h <<_ACEOF
6941521070a0Smrg#define LT_OBJDIR "$lt_cv_objdir/"
6942521070a0Smrg_ACEOF
69434456fccdSmrg
69444456fccdSmrg
69454456fccdSmrg
69464456fccdSmrg
6947521070a0Smrgcase $host_os in
6948521070a0Smrgaix3*)
6949521070a0Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
6950521070a0Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
6951521070a0Smrg  # vanish in a puff of smoke.
6952521070a0Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
6953521070a0Smrg    COLLECT_NAMES=
6954521070a0Smrg    export COLLECT_NAMES
6955521070a0Smrg  fi
6956521070a0Smrg  ;;
6957521070a0Smrgesac
69584456fccdSmrg
6959521070a0Smrg# Global variables:
6960521070a0Smrgofile=libtool
6961521070a0Smrgcan_build_shared=yes
69624456fccdSmrg
6963521070a0Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
6964521070a0Smrg# which needs '.lib').
6965521070a0Smrglibext=a
69664456fccdSmrg
6967521070a0Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
69684456fccdSmrg
6969521070a0Smrgold_CC="$CC"
6970521070a0Smrgold_CFLAGS="$CFLAGS"
69714456fccdSmrg
6972521070a0Smrg# Set sane defaults for various variables
6973521070a0Smrgtest -z "$CC" && CC=cc
6974521070a0Smrgtest -z "$LTCC" && LTCC=$CC
6975521070a0Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976521070a0Smrgtest -z "$LD" && LD=ld
6977521070a0Smrgtest -z "$ac_objext" && ac_objext=o
69784456fccdSmrg
6979521070a0Smrgfor cc_temp in $compiler""; do
6980521070a0Smrg  case $cc_temp in
6981521070a0Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6982521070a0Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6983521070a0Smrg    \-*) ;;
6984521070a0Smrg    *) break;;
6985521070a0Smrg  esac
6986521070a0Smrgdone
6987ff63a143Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
69884456fccdSmrg
69894456fccdSmrg
6990521070a0Smrg# Only perform the check for file, if the check method requires it
6991521070a0Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
6992521070a0Smrgcase $deplibs_check_method in
6993521070a0Smrgfile_magic*)
6994521070a0Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6995521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6996521070a0Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6997521070a0Smrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6998521070a0Smrg  $as_echo_n "(cached) " >&6
6999521070a0Smrgelse
7000521070a0Smrg  case $MAGIC_CMD in
7001521070a0Smrg[\\/*] |  ?:[\\/]*)
7002521070a0Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7003521070a0Smrg  ;;
7004521070a0Smrg*)
7005521070a0Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7006521070a0Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7007521070a0Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7008521070a0Smrg  for ac_dir in $ac_dummy; do
7009521070a0Smrg    IFS="$lt_save_ifs"
7010521070a0Smrg    test -z "$ac_dir" && ac_dir=.
7011521070a0Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
7012521070a0Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7013521070a0Smrg      if test -n "$file_magic_test_file"; then
7014521070a0Smrg	case $deplibs_check_method in
7015521070a0Smrg	"file_magic "*)
7016521070a0Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7017521070a0Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018521070a0Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7019521070a0Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
7020521070a0Smrg	    :
7021521070a0Smrg	  else
7022521070a0Smrg	    cat <<_LT_EOF 1>&2
70234456fccdSmrg
7024521070a0Smrg*** Warning: the command libtool uses to detect shared libraries,
7025521070a0Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7026521070a0Smrg*** The result is that libtool may fail to recognize shared libraries
7027521070a0Smrg*** as such.  This will affect the creation of libtool libraries that
7028521070a0Smrg*** depend on shared libraries, but programs linked with such libtool
7029521070a0Smrg*** libraries will work regardless of this problem.  Nevertheless, you
7030521070a0Smrg*** may want to report the problem to your system manager and/or to
7031521070a0Smrg*** bug-libtool@gnu.org
70324456fccdSmrg
7033521070a0Smrg_LT_EOF
7034521070a0Smrg	  fi ;;
7035521070a0Smrg	esac
70364456fccdSmrg      fi
7037521070a0Smrg      break
7038521070a0Smrg    fi
7039521070a0Smrg  done
7040521070a0Smrg  IFS="$lt_save_ifs"
7041521070a0Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7042521070a0Smrg  ;;
7043521070a0Smrgesac
7044521070a0Smrgfi
70454456fccdSmrg
7046521070a0SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047521070a0Smrgif test -n "$MAGIC_CMD"; then
7048521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7049521070a0Smrg$as_echo "$MAGIC_CMD" >&6; }
7050521070a0Smrgelse
7051521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052521070a0Smrg$as_echo "no" >&6; }
7053521070a0Smrgfi
70544456fccdSmrg
70554456fccdSmrg
70564456fccdSmrg
70574456fccdSmrg
70584456fccdSmrg
7059521070a0Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
7060521070a0Smrg  if test -n "$ac_tool_prefix"; then
7061521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7062521070a0Smrg$as_echo_n "checking for file... " >&6; }
7063521070a0Smrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7064521070a0Smrg  $as_echo_n "(cached) " >&6
7065521070a0Smrgelse
7066521070a0Smrg  case $MAGIC_CMD in
7067521070a0Smrg[\\/*] |  ?:[\\/]*)
7068521070a0Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
70694456fccdSmrg  ;;
7070521070a0Smrg*)
7071521070a0Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7072521070a0Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7073521070a0Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7074521070a0Smrg  for ac_dir in $ac_dummy; do
7075521070a0Smrg    IFS="$lt_save_ifs"
7076521070a0Smrg    test -z "$ac_dir" && ac_dir=.
7077521070a0Smrg    if test -f $ac_dir/file; then
7078521070a0Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7079521070a0Smrg      if test -n "$file_magic_test_file"; then
7080521070a0Smrg	case $deplibs_check_method in
7081521070a0Smrg	"file_magic "*)
7082521070a0Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7083521070a0Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084521070a0Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7085521070a0Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
7086521070a0Smrg	    :
7087521070a0Smrg	  else
7088521070a0Smrg	    cat <<_LT_EOF 1>&2
70894456fccdSmrg
7090521070a0Smrg*** Warning: the command libtool uses to detect shared libraries,
7091521070a0Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7092521070a0Smrg*** The result is that libtool may fail to recognize shared libraries
7093521070a0Smrg*** as such.  This will affect the creation of libtool libraries that
7094521070a0Smrg*** depend on shared libraries, but programs linked with such libtool
7095521070a0Smrg*** libraries will work regardless of this problem.  Nevertheless, you
7096521070a0Smrg*** may want to report the problem to your system manager and/or to
7097521070a0Smrg*** bug-libtool@gnu.org
709842d69509Smrg
7099521070a0Smrg_LT_EOF
7100521070a0Smrg	  fi ;;
7101521070a0Smrg	esac
7102521070a0Smrg      fi
7103521070a0Smrg      break
710442d69509Smrg    fi
710542d69509Smrg  done
7106521070a0Smrg  IFS="$lt_save_ifs"
7107521070a0Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7108521070a0Smrg  ;;
7109521070a0Smrgesac
71104456fccdSmrgfi
71114456fccdSmrg
7112521070a0SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7113521070a0Smrgif test -n "$MAGIC_CMD"; then
7114521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7115521070a0Smrg$as_echo "$MAGIC_CMD" >&6; }
7116521070a0Smrgelse
7117521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118521070a0Smrg$as_echo "no" >&6; }
7119521070a0Smrgfi
71204456fccdSmrg
71214456fccdSmrg
71224456fccdSmrg  else
7123521070a0Smrg    MAGIC_CMD=:
71244456fccdSmrg  fi
7125521070a0Smrgfi
71264456fccdSmrg
7127521070a0Smrg  fi
71284456fccdSmrg  ;;
7129521070a0Smrgesac
71304456fccdSmrg
7131521070a0Smrg# Use C for the default configuration in the libtool script
71324456fccdSmrg
7133521070a0Smrglt_save_CC="$CC"
7134521070a0Smrgac_ext=c
7135521070a0Smrgac_cpp='$CPP $CPPFLAGS'
7136521070a0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7137521070a0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7138521070a0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
71394456fccdSmrg
71404456fccdSmrg
7141521070a0Smrg# Source file extension for C test sources.
7142521070a0Smrgac_ext=c
71434456fccdSmrg
7144521070a0Smrg# Object file extension for compiled C test sources.
7145521070a0Smrgobjext=o
7146521070a0Smrgobjext=$objext
71474456fccdSmrg
7148521070a0Smrg# Code to be used in simple compile tests
7149521070a0Smrglt_simple_compile_test_code="int some_variable = 0;"
71504456fccdSmrg
7151521070a0Smrg# Code to be used in simple link tests
7152521070a0Smrglt_simple_link_test_code='int main(){return(0);}'
715342d69509Smrg
71544456fccdSmrg
71554456fccdSmrg
71564456fccdSmrg
71574456fccdSmrg
71584456fccdSmrg
71594456fccdSmrg
7160521070a0Smrg# If no C compiler was specified, use CC.
7161521070a0SmrgLTCC=${LTCC-"$CC"}
71624456fccdSmrg
7163521070a0Smrg# If no C compiler flags were specified, use CFLAGS.
7164521070a0SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
71654456fccdSmrg
7166521070a0Smrg# Allow CC to be a program name with arguments.
7167521070a0Smrgcompiler=$CC
71684456fccdSmrg
7169521070a0Smrg# Save the default compiler, since it gets overwritten when the other
7170521070a0Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7171521070a0Smrgcompiler_DEFAULT=$CC
71724456fccdSmrg
7173521070a0Smrg# save warnings/boilerplate of simple test code
7174521070a0Smrgac_outfile=conftest.$ac_objext
7175521070a0Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7176521070a0Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7177521070a0Smrg_lt_compiler_boilerplate=`cat conftest.err`
7178521070a0Smrg$RM conftest*
71794456fccdSmrg
7180521070a0Smrgac_outfile=conftest.$ac_objext
7181521070a0Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
7182521070a0Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7183521070a0Smrg_lt_linker_boilerplate=`cat conftest.err`
7184521070a0Smrg$RM -r conftest*
71854456fccdSmrg
71864456fccdSmrg
7187521070a0Smrgif test -n "$compiler"; then
71884456fccdSmrg
7189521070a0Smrglt_prog_compiler_no_builtin_flag=
71904456fccdSmrg
7191521070a0Smrgif test "$GCC" = yes; then
7192ff63a143Smrg  case $cc_basename in
7193ff63a143Smrg  nvcc*)
7194ff63a143Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7195ff63a143Smrg  *)
7196ff63a143Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7197ff63a143Smrg  esac
71984456fccdSmrg
7199521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7200521070a0Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7201521070a0Smrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
720242d69509Smrg  $as_echo_n "(cached) " >&6
720342d69509Smrgelse
7204521070a0Smrg  lt_cv_prog_compiler_rtti_exceptions=no
7205521070a0Smrg   ac_outfile=conftest.$ac_objext
7206521070a0Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7207521070a0Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
7208521070a0Smrg   # Insert the option either (1) after the last *FLAGS variable, or
7209521070a0Smrg   # (2) before a word containing "conftest.", or (3) at the end.
7210521070a0Smrg   # Note that $ac_compile itself does not contain backslashes and begins
7211521070a0Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7212521070a0Smrg   # The option is referenced via a variable to avoid confusing sed.
7213521070a0Smrg   lt_compile=`echo "$ac_compile" | $SED \
7214521070a0Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7215521070a0Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7216521070a0Smrg   -e 's:$: $lt_compiler_flag:'`
7217ff63a143Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7218521070a0Smrg   (eval "$lt_compile" 2>conftest.err)
7219521070a0Smrg   ac_status=$?
7220521070a0Smrg   cat conftest.err >&5
7221ff63a143Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222521070a0Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
7223521070a0Smrg     # The compiler can only warn and ignore the option if not recognized
7224521070a0Smrg     # So say no if there are warnings other than the usual output.
7225ff63a143Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7226521070a0Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227521070a0Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7228521070a0Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
7229521070a0Smrg     fi
7230521070a0Smrg   fi
7231521070a0Smrg   $RM conftest*
7232521070a0Smrg
723342d69509Smrgfi
7234521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7235521070a0Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
723642d69509Smrg
7237521070a0Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7238521070a0Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
723942d69509Smrgelse
7240521070a0Smrg    :
724142d69509Smrgfi
724242d69509Smrg
72434456fccdSmrgfi
72444456fccdSmrg
72454456fccdSmrg
72464456fccdSmrg
72474456fccdSmrg
72484456fccdSmrg
72494456fccdSmrg
7250521070a0Smrg  lt_prog_compiler_wl=
7251521070a0Smrglt_prog_compiler_pic=
7252521070a0Smrglt_prog_compiler_static=
72534456fccdSmrg
7254521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7255521070a0Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
72564456fccdSmrg
7257521070a0Smrg  if test "$GCC" = yes; then
7258521070a0Smrg    lt_prog_compiler_wl='-Wl,'
7259521070a0Smrg    lt_prog_compiler_static='-static'
72604456fccdSmrg
7261521070a0Smrg    case $host_os in
7262521070a0Smrg      aix*)
7263521070a0Smrg      # All AIX code is PIC.
7264521070a0Smrg      if test "$host_cpu" = ia64; then
7265521070a0Smrg	# AIX 5 now supports IA64 processor
7266521070a0Smrg	lt_prog_compiler_static='-Bstatic'
7267521070a0Smrg      fi
7268521070a0Smrg      ;;
72694456fccdSmrg
7270521070a0Smrg    amigaos*)
7271521070a0Smrg      case $host_cpu in
7272521070a0Smrg      powerpc)
7273521070a0Smrg            # see comment about AmigaOS4 .so support
7274521070a0Smrg            lt_prog_compiler_pic='-fPIC'
7275521070a0Smrg        ;;
7276521070a0Smrg      m68k)
7277521070a0Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
7278521070a0Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
7279521070a0Smrg            # like `-m68040'.
7280521070a0Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7281521070a0Smrg        ;;
7282521070a0Smrg      esac
7283521070a0Smrg      ;;
72844456fccdSmrg
7285521070a0Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7286521070a0Smrg      # PIC is the default for these OSes.
7287521070a0Smrg      ;;
72884456fccdSmrg
7289521070a0Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7290521070a0Smrg      # This hack is so that the source file can tell whether it is being
7291521070a0Smrg      # built for inclusion in a dll (and should export symbols for example).
7292521070a0Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7293521070a0Smrg      # (--disable-auto-import) libraries
7294521070a0Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7295521070a0Smrg      ;;
72964456fccdSmrg
7297521070a0Smrg    darwin* | rhapsody*)
7298521070a0Smrg      # PIC is the default on this platform
7299521070a0Smrg      # Common symbols not allowed in MH_DYLIB files
7300521070a0Smrg      lt_prog_compiler_pic='-fno-common'
7301521070a0Smrg      ;;
73024456fccdSmrg
7303ff63a143Smrg    haiku*)
7304ff63a143Smrg      # PIC is the default for Haiku.
7305ff63a143Smrg      # The "-static" flag exists, but is broken.
7306ff63a143Smrg      lt_prog_compiler_static=
7307ff63a143Smrg      ;;
7308ff63a143Smrg
7309521070a0Smrg    hpux*)
7310521070a0Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7311521070a0Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7312521070a0Smrg      # sets the default TLS model and affects inlining.
7313521070a0Smrg      case $host_cpu in
7314521070a0Smrg      hppa*64*)
7315521070a0Smrg	# +Z the default
7316521070a0Smrg	;;
7317521070a0Smrg      *)
7318521070a0Smrg	lt_prog_compiler_pic='-fPIC'
7319521070a0Smrg	;;
7320521070a0Smrg      esac
7321521070a0Smrg      ;;
73224456fccdSmrg
7323521070a0Smrg    interix[3-9]*)
7324521070a0Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7325521070a0Smrg      # Instead, we relocate shared libraries at runtime.
7326521070a0Smrg      ;;
73274456fccdSmrg
7328521070a0Smrg    msdosdjgpp*)
7329521070a0Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
7330521070a0Smrg      # on systems that don't support them.
7331521070a0Smrg      lt_prog_compiler_can_build_shared=no
7332521070a0Smrg      enable_shared=no
7333521070a0Smrg      ;;
73344456fccdSmrg
7335521070a0Smrg    *nto* | *qnx*)
7336521070a0Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
7337521070a0Smrg      # it will coredump.
7338521070a0Smrg      lt_prog_compiler_pic='-fPIC -shared'
7339521070a0Smrg      ;;
73404456fccdSmrg
7341521070a0Smrg    sysv4*MP*)
7342521070a0Smrg      if test -d /usr/nec; then
7343521070a0Smrg	lt_prog_compiler_pic=-Kconform_pic
7344521070a0Smrg      fi
7345521070a0Smrg      ;;
73464456fccdSmrg
7347521070a0Smrg    *)
7348521070a0Smrg      lt_prog_compiler_pic='-fPIC'
7349521070a0Smrg      ;;
7350521070a0Smrg    esac
7351ff63a143Smrg
7352ff63a143Smrg    case $cc_basename in
7353ff63a143Smrg    nvcc*) # Cuda Compiler Driver 2.2
7354ff63a143Smrg      lt_prog_compiler_wl='-Xlinker '
7355ff63a143Smrg      lt_prog_compiler_pic='-Xcompiler -fPIC'
7356ff63a143Smrg      ;;
7357ff63a143Smrg    esac
7358521070a0Smrg  else
7359521070a0Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
7360521070a0Smrg    case $host_os in
7361521070a0Smrg    aix*)
7362521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7363521070a0Smrg      if test "$host_cpu" = ia64; then
7364521070a0Smrg	# AIX 5 now supports IA64 processor
7365521070a0Smrg	lt_prog_compiler_static='-Bstatic'
7366521070a0Smrg      else
7367521070a0Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7368521070a0Smrg      fi
7369521070a0Smrg      ;;
73704456fccdSmrg
7371521070a0Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7372521070a0Smrg      # This hack is so that the source file can tell whether it is being
7373521070a0Smrg      # built for inclusion in a dll (and should export symbols for example).
7374521070a0Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7375521070a0Smrg      ;;
73764456fccdSmrg
7377521070a0Smrg    hpux9* | hpux10* | hpux11*)
7378521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7379521070a0Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7380521070a0Smrg      # not for PA HP-UX.
7381521070a0Smrg      case $host_cpu in
7382521070a0Smrg      hppa*64*|ia64*)
7383521070a0Smrg	# +Z the default
7384521070a0Smrg	;;
7385521070a0Smrg      *)
7386521070a0Smrg	lt_prog_compiler_pic='+Z'
7387521070a0Smrg	;;
7388521070a0Smrg      esac
7389521070a0Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7390521070a0Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
7391521070a0Smrg      ;;
73924456fccdSmrg
7393521070a0Smrg    irix5* | irix6* | nonstopux*)
7394521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7395521070a0Smrg      # PIC (with -KPIC) is the default.
7396521070a0Smrg      lt_prog_compiler_static='-non_shared'
7397521070a0Smrg      ;;
73984456fccdSmrg
7399ff63a143Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7400521070a0Smrg      case $cc_basename in
7401521070a0Smrg      # old Intel for x86_64 which still supported -KPIC.
7402521070a0Smrg      ecc*)
7403521070a0Smrg	lt_prog_compiler_wl='-Wl,'
7404521070a0Smrg	lt_prog_compiler_pic='-KPIC'
7405521070a0Smrg	lt_prog_compiler_static='-static'
7406521070a0Smrg        ;;
7407521070a0Smrg      # icc used to be incompatible with GCC.
7408521070a0Smrg      # ICC 10 doesn't accept -KPIC any more.
7409521070a0Smrg      icc* | ifort*)
7410521070a0Smrg	lt_prog_compiler_wl='-Wl,'
7411521070a0Smrg	lt_prog_compiler_pic='-fPIC'
7412521070a0Smrg	lt_prog_compiler_static='-static'
7413521070a0Smrg        ;;
7414521070a0Smrg      # Lahey Fortran 8.1.
7415521070a0Smrg      lf95*)
7416521070a0Smrg	lt_prog_compiler_wl='-Wl,'
7417521070a0Smrg	lt_prog_compiler_pic='--shared'
7418521070a0Smrg	lt_prog_compiler_static='--static'
7419521070a0Smrg	;;
7420ff63a143Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7421521070a0Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
7422521070a0Smrg	# which looks to be a dead project)
7423521070a0Smrg	lt_prog_compiler_wl='-Wl,'
7424521070a0Smrg	lt_prog_compiler_pic='-fpic'
7425521070a0Smrg	lt_prog_compiler_static='-Bstatic'
7426521070a0Smrg        ;;
7427521070a0Smrg      ccc*)
7428521070a0Smrg        lt_prog_compiler_wl='-Wl,'
7429521070a0Smrg        # All Alpha code is PIC.
7430521070a0Smrg        lt_prog_compiler_static='-non_shared'
7431521070a0Smrg        ;;
7432ff63a143Smrg      xl* | bgxl* | bgf* | mpixl*)
7433ff63a143Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7434521070a0Smrg	lt_prog_compiler_wl='-Wl,'
7435521070a0Smrg	lt_prog_compiler_pic='-qpic'
7436521070a0Smrg	lt_prog_compiler_static='-qstaticlink'
7437521070a0Smrg	;;
7438521070a0Smrg      *)
7439521070a0Smrg	case `$CC -V 2>&1 | sed 5q` in
7440ff63a143Smrg	*Sun\ F* | *Sun*Fortran*)
7441ff63a143Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7442521070a0Smrg	  lt_prog_compiler_pic='-KPIC'
7443521070a0Smrg	  lt_prog_compiler_static='-Bstatic'
7444ff63a143Smrg	  lt_prog_compiler_wl=''
7445521070a0Smrg	  ;;
7446ff63a143Smrg	*Sun\ C*)
7447ff63a143Smrg	  # Sun C 5.9
7448521070a0Smrg	  lt_prog_compiler_pic='-KPIC'
7449521070a0Smrg	  lt_prog_compiler_static='-Bstatic'
7450ff63a143Smrg	  lt_prog_compiler_wl='-Wl,'
7451521070a0Smrg	  ;;
7452521070a0Smrg	esac
7453521070a0Smrg	;;
7454521070a0Smrg      esac
7455521070a0Smrg      ;;
74564456fccdSmrg
7457521070a0Smrg    newsos6)
7458521070a0Smrg      lt_prog_compiler_pic='-KPIC'
7459521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7460521070a0Smrg      ;;
74614456fccdSmrg
7462521070a0Smrg    *nto* | *qnx*)
7463521070a0Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
7464521070a0Smrg      # it will coredump.
7465521070a0Smrg      lt_prog_compiler_pic='-fPIC -shared'
7466521070a0Smrg      ;;
74674456fccdSmrg
7468521070a0Smrg    osf3* | osf4* | osf5*)
7469521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7470521070a0Smrg      # All OSF/1 code is PIC.
7471521070a0Smrg      lt_prog_compiler_static='-non_shared'
7472521070a0Smrg      ;;
74734456fccdSmrg
7474521070a0Smrg    rdos*)
7475521070a0Smrg      lt_prog_compiler_static='-non_shared'
7476521070a0Smrg      ;;
74774456fccdSmrg
7478521070a0Smrg    solaris*)
7479521070a0Smrg      lt_prog_compiler_pic='-KPIC'
7480521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7481521070a0Smrg      case $cc_basename in
7482ff63a143Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7483521070a0Smrg	lt_prog_compiler_wl='-Qoption ld ';;
7484521070a0Smrg      *)
7485521070a0Smrg	lt_prog_compiler_wl='-Wl,';;
7486521070a0Smrg      esac
7487521070a0Smrg      ;;
74884456fccdSmrg
7489521070a0Smrg    sunos4*)
7490521070a0Smrg      lt_prog_compiler_wl='-Qoption ld '
7491521070a0Smrg      lt_prog_compiler_pic='-PIC'
7492521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7493521070a0Smrg      ;;
74944456fccdSmrg
7495521070a0Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
7496521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7497521070a0Smrg      lt_prog_compiler_pic='-KPIC'
7498521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7499521070a0Smrg      ;;
75004456fccdSmrg
7501521070a0Smrg    sysv4*MP*)
7502521070a0Smrg      if test -d /usr/nec ;then
7503521070a0Smrg	lt_prog_compiler_pic='-Kconform_pic'
7504521070a0Smrg	lt_prog_compiler_static='-Bstatic'
7505521070a0Smrg      fi
7506521070a0Smrg      ;;
75074456fccdSmrg
7508521070a0Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7509521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7510521070a0Smrg      lt_prog_compiler_pic='-KPIC'
7511521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7512521070a0Smrg      ;;
75134456fccdSmrg
7514521070a0Smrg    unicos*)
7515521070a0Smrg      lt_prog_compiler_wl='-Wl,'
7516521070a0Smrg      lt_prog_compiler_can_build_shared=no
7517521070a0Smrg      ;;
75184456fccdSmrg
7519521070a0Smrg    uts4*)
7520521070a0Smrg      lt_prog_compiler_pic='-pic'
7521521070a0Smrg      lt_prog_compiler_static='-Bstatic'
7522521070a0Smrg      ;;
7523521070a0Smrg
7524521070a0Smrg    *)
7525521070a0Smrg      lt_prog_compiler_can_build_shared=no
7526521070a0Smrg      ;;
7527521070a0Smrg    esac
7528521070a0Smrg  fi
7529521070a0Smrg
7530521070a0Smrgcase $host_os in
7531521070a0Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
7532521070a0Smrg  *djgpp*)
7533521070a0Smrg    lt_prog_compiler_pic=
7534521070a0Smrg    ;;
7535521070a0Smrg  *)
7536521070a0Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7537521070a0Smrg    ;;
75384456fccdSmrgesac
7539521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7540521070a0Smrg$as_echo "$lt_prog_compiler_pic" >&6; }
75414456fccdSmrg
75424456fccdSmrg
7543521070a0Smrg
7544521070a0Smrg
7545521070a0Smrg
7546521070a0Smrg
7547521070a0Smrg#
7548521070a0Smrg# Check to make sure the PIC flag actually works.
7549521070a0Smrg#
7550521070a0Smrgif test -n "$lt_prog_compiler_pic"; then
7551521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7552521070a0Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7553521070a0Smrgif test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
755442d69509Smrg  $as_echo_n "(cached) " >&6
75554456fccdSmrgelse
7556521070a0Smrg  lt_cv_prog_compiler_pic_works=no
7557521070a0Smrg   ac_outfile=conftest.$ac_objext
7558521070a0Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7559521070a0Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7560521070a0Smrg   # Insert the option either (1) after the last *FLAGS variable, or
7561521070a0Smrg   # (2) before a word containing "conftest.", or (3) at the end.
7562521070a0Smrg   # Note that $ac_compile itself does not contain backslashes and begins
7563521070a0Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7564521070a0Smrg   # The option is referenced via a variable to avoid confusing sed.
7565521070a0Smrg   lt_compile=`echo "$ac_compile" | $SED \
7566521070a0Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7567521070a0Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7568521070a0Smrg   -e 's:$: $lt_compiler_flag:'`
7569ff63a143Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7570521070a0Smrg   (eval "$lt_compile" 2>conftest.err)
7571521070a0Smrg   ac_status=$?
7572521070a0Smrg   cat conftest.err >&5
7573ff63a143Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574521070a0Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
7575521070a0Smrg     # The compiler can only warn and ignore the option if not recognized
7576521070a0Smrg     # So say no if there are warnings other than the usual output.
7577ff63a143Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7578521070a0Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7579521070a0Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7580521070a0Smrg       lt_cv_prog_compiler_pic_works=yes
7581521070a0Smrg     fi
7582521070a0Smrg   fi
7583521070a0Smrg   $RM conftest*
75844456fccdSmrg
7585521070a0Smrgfi
7586521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7587521070a0Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
75884456fccdSmrg
7589521070a0Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7590521070a0Smrg    case $lt_prog_compiler_pic in
7591521070a0Smrg     "" | " "*) ;;
7592521070a0Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7593521070a0Smrg     esac
7594521070a0Smrgelse
7595521070a0Smrg    lt_prog_compiler_pic=
7596521070a0Smrg     lt_prog_compiler_can_build_shared=no
75974456fccdSmrgfi
75984456fccdSmrg
75994456fccdSmrgfi
7600521070a0Smrg
7601521070a0Smrg
7602521070a0Smrg
7603521070a0Smrg
7604521070a0Smrg
7605521070a0Smrg
7606521070a0Smrg#
7607521070a0Smrg# Check to make sure the static flag actually works.
7608521070a0Smrg#
7609521070a0Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7610521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7611521070a0Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7612521070a0Smrgif test "${lt_cv_prog_compiler_static_works+set}" = set; then :
761342d69509Smrg  $as_echo_n "(cached) " >&6
76144456fccdSmrgelse
7615521070a0Smrg  lt_cv_prog_compiler_static_works=no
7616521070a0Smrg   save_LDFLAGS="$LDFLAGS"
7617521070a0Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7618521070a0Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7619521070a0Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7620521070a0Smrg     # The linker can only warn and ignore the option if not recognized
7621521070a0Smrg     # So say no if there are warnings
7622521070a0Smrg     if test -s conftest.err; then
7623521070a0Smrg       # Append any errors to the config.log.
7624521070a0Smrg       cat conftest.err 1>&5
7625ff63a143Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7626521070a0Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7627521070a0Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
7628521070a0Smrg         lt_cv_prog_compiler_static_works=yes
7629521070a0Smrg       fi
7630521070a0Smrg     else
7631521070a0Smrg       lt_cv_prog_compiler_static_works=yes
7632521070a0Smrg     fi
7633521070a0Smrg   fi
7634521070a0Smrg   $RM -r conftest*
7635521070a0Smrg   LDFLAGS="$save_LDFLAGS"
76364456fccdSmrg
76374456fccdSmrgfi
7638521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7639521070a0Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
76404456fccdSmrg
7641521070a0Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
7642521070a0Smrg    :
7643521070a0Smrgelse
7644521070a0Smrg    lt_prog_compiler_static=
76454456fccdSmrgfi
76464456fccdSmrg
76474456fccdSmrg
76484456fccdSmrg
76494456fccdSmrg
76504456fccdSmrg
76514456fccdSmrg
76524456fccdSmrg
7653521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7654521070a0Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7655521070a0Smrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7656521070a0Smrg  $as_echo_n "(cached) " >&6
7657521070a0Smrgelse
7658521070a0Smrg  lt_cv_prog_compiler_c_o=no
7659521070a0Smrg   $RM -r conftest 2>/dev/null
7660521070a0Smrg   mkdir conftest
7661521070a0Smrg   cd conftest
7662521070a0Smrg   mkdir out
7663521070a0Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76644456fccdSmrg
7665521070a0Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
7666521070a0Smrg   # Insert the option either (1) after the last *FLAGS variable, or
7667521070a0Smrg   # (2) before a word containing "conftest.", or (3) at the end.
7668521070a0Smrg   # Note that $ac_compile itself does not contain backslashes and begins
7669521070a0Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7670521070a0Smrg   lt_compile=`echo "$ac_compile" | $SED \
7671521070a0Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7672521070a0Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7673521070a0Smrg   -e 's:$: $lt_compiler_flag:'`
7674ff63a143Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7675521070a0Smrg   (eval "$lt_compile" 2>out/conftest.err)
7676521070a0Smrg   ac_status=$?
7677521070a0Smrg   cat out/conftest.err >&5
7678ff63a143Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679521070a0Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7680521070a0Smrg   then
7681521070a0Smrg     # The compiler can only warn and ignore the option if not recognized
7682521070a0Smrg     # So say no if there are warnings
7683ff63a143Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7684521070a0Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7685521070a0Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7686521070a0Smrg       lt_cv_prog_compiler_c_o=yes
7687521070a0Smrg     fi
7688521070a0Smrg   fi
7689521070a0Smrg   chmod u+w . 2>&5
7690521070a0Smrg   $RM conftest*
7691521070a0Smrg   # SGI C++ compiler will create directory out/ii_files/ for
7692521070a0Smrg   # template instantiation
7693521070a0Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7694521070a0Smrg   $RM out/* && rmdir out
7695521070a0Smrg   cd ..
7696521070a0Smrg   $RM -r conftest
7697521070a0Smrg   $RM conftest*
76984456fccdSmrg
76994456fccdSmrgfi
7700521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7701521070a0Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
77024456fccdSmrg
77034456fccdSmrg
77044456fccdSmrg
77054456fccdSmrg
77064456fccdSmrg
77074456fccdSmrg
7708521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7709521070a0Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7710521070a0Smrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
771142d69509Smrg  $as_echo_n "(cached) " >&6
77124456fccdSmrgelse
7713521070a0Smrg  lt_cv_prog_compiler_c_o=no
7714521070a0Smrg   $RM -r conftest 2>/dev/null
7715521070a0Smrg   mkdir conftest
7716521070a0Smrg   cd conftest
7717521070a0Smrg   mkdir out
7718521070a0Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
77194456fccdSmrg
7720521070a0Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
7721521070a0Smrg   # Insert the option either (1) after the last *FLAGS variable, or
7722521070a0Smrg   # (2) before a word containing "conftest.", or (3) at the end.
7723521070a0Smrg   # Note that $ac_compile itself does not contain backslashes and begins
7724521070a0Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7725521070a0Smrg   lt_compile=`echo "$ac_compile" | $SED \
7726521070a0Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727521070a0Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728521070a0Smrg   -e 's:$: $lt_compiler_flag:'`
7729ff63a143Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7730521070a0Smrg   (eval "$lt_compile" 2>out/conftest.err)
7731521070a0Smrg   ac_status=$?
7732521070a0Smrg   cat out/conftest.err >&5
7733ff63a143Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734521070a0Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7735521070a0Smrg   then
7736521070a0Smrg     # The compiler can only warn and ignore the option if not recognized
7737521070a0Smrg     # So say no if there are warnings
7738ff63a143Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7739521070a0Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7740521070a0Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7741521070a0Smrg       lt_cv_prog_compiler_c_o=yes
7742521070a0Smrg     fi
7743521070a0Smrg   fi
7744521070a0Smrg   chmod u+w . 2>&5
7745521070a0Smrg   $RM conftest*
7746521070a0Smrg   # SGI C++ compiler will create directory out/ii_files/ for
7747521070a0Smrg   # template instantiation
7748521070a0Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7749521070a0Smrg   $RM out/* && rmdir out
7750521070a0Smrg   cd ..
7751521070a0Smrg   $RM -r conftest
7752521070a0Smrg   $RM conftest*
77534456fccdSmrg
7754521070a0Smrgfi
7755521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7756521070a0Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
77574456fccdSmrg
77584456fccdSmrg
77594456fccdSmrg
77604456fccdSmrg
7761521070a0Smrghard_links="nottested"
7762521070a0Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7763521070a0Smrg  # do not overwrite the value of need_locks provided by the user
7764521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7765521070a0Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
7766521070a0Smrg  hard_links=yes
7767521070a0Smrg  $RM conftest*
7768521070a0Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7769521070a0Smrg  touch conftest.a
7770521070a0Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
7771521070a0Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7772521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7773521070a0Smrg$as_echo "$hard_links" >&6; }
7774521070a0Smrg  if test "$hard_links" = no; then
7775521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7776521070a0Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7777521070a0Smrg    need_locks=warn
77784456fccdSmrg  fi
7779521070a0Smrgelse
7780521070a0Smrg  need_locks=no
77814456fccdSmrgfi
77824456fccdSmrg
77834456fccdSmrg
77844456fccdSmrg
77854456fccdSmrg
77864456fccdSmrg
77874456fccdSmrg
7788521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7789521070a0Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
77904456fccdSmrg
7791521070a0Smrg  runpath_var=
7792521070a0Smrg  allow_undefined_flag=
7793521070a0Smrg  always_export_symbols=no
7794521070a0Smrg  archive_cmds=
7795521070a0Smrg  archive_expsym_cmds=
7796521070a0Smrg  compiler_needs_object=no
7797521070a0Smrg  enable_shared_with_static_runtimes=no
7798521070a0Smrg  export_dynamic_flag_spec=
7799521070a0Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800521070a0Smrg  hardcode_automatic=no
7801521070a0Smrg  hardcode_direct=no
7802521070a0Smrg  hardcode_direct_absolute=no
7803521070a0Smrg  hardcode_libdir_flag_spec=
7804521070a0Smrg  hardcode_libdir_flag_spec_ld=
7805521070a0Smrg  hardcode_libdir_separator=
7806521070a0Smrg  hardcode_minus_L=no
7807521070a0Smrg  hardcode_shlibpath_var=unsupported
7808521070a0Smrg  inherit_rpath=no
7809521070a0Smrg  link_all_deplibs=unknown
7810521070a0Smrg  module_cmds=
7811521070a0Smrg  module_expsym_cmds=
7812521070a0Smrg  old_archive_from_new_cmds=
7813521070a0Smrg  old_archive_from_expsyms_cmds=
7814521070a0Smrg  thread_safe_flag_spec=
7815521070a0Smrg  whole_archive_flag_spec=
7816521070a0Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
7817521070a0Smrg  # included in the symbol list
7818521070a0Smrg  include_expsyms=
7819521070a0Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
7820521070a0Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7821521070a0Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7822521070a0Smrg  # as well as any symbol that contains `d'.
7823521070a0Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7824521070a0Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7825521070a0Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
7826521070a0Smrg  # the symbol is explicitly referenced.  Since portable code cannot
7827521070a0Smrg  # rely on this symbol name, it's probably fine to never include it in
7828521070a0Smrg  # preloaded symbol tables.
7829521070a0Smrg  # Exclude shared library initialization/finalization symbols.
7830521070a0Smrg  extract_expsyms_cmds=
78314456fccdSmrg
7832521070a0Smrg  case $host_os in
7833521070a0Smrg  cygwin* | mingw* | pw32* | cegcc*)
7834521070a0Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7835521070a0Smrg    # When not using gcc, we currently assume that we are using
7836521070a0Smrg    # Microsoft Visual C++.
7837521070a0Smrg    if test "$GCC" != yes; then
7838521070a0Smrg      with_gnu_ld=no
78394456fccdSmrg    fi
7840521070a0Smrg    ;;
7841521070a0Smrg  interix*)
7842521070a0Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
7843521070a0Smrg    with_gnu_ld=yes
7844521070a0Smrg    ;;
7845521070a0Smrg  openbsd*)
7846521070a0Smrg    with_gnu_ld=no
78474456fccdSmrg    ;;
78484456fccdSmrg  esac
78494456fccdSmrg
7850521070a0Smrg  ld_shlibs=yes
7851ff63a143Smrg
7852ff63a143Smrg  # On some targets, GNU ld is compatible enough with the native linker
7853ff63a143Smrg  # that we're better off using the native interface for both.
7854ff63a143Smrg  lt_use_gnu_ld_interface=no
7855521070a0Smrg  if test "$with_gnu_ld" = yes; then
7856ff63a143Smrg    case $host_os in
7857ff63a143Smrg      aix*)
7858ff63a143Smrg	# The AIX port of GNU ld has always aspired to compatibility
7859ff63a143Smrg	# with the native linker.  However, as the warning in the GNU ld
7860ff63a143Smrg	# block says, versions before 2.19.5* couldn't really create working
7861ff63a143Smrg	# shared libraries, regardless of the interface used.
7862ff63a143Smrg	case `$LD -v 2>&1` in
7863ff63a143Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7864ff63a143Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7865ff63a143Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7866ff63a143Smrg	  *)
7867ff63a143Smrg	    lt_use_gnu_ld_interface=yes
7868ff63a143Smrg	    ;;
7869ff63a143Smrg	esac
7870ff63a143Smrg	;;
7871ff63a143Smrg      *)
7872ff63a143Smrg	lt_use_gnu_ld_interface=yes
7873ff63a143Smrg	;;
7874ff63a143Smrg    esac
7875ff63a143Smrg  fi
7876ff63a143Smrg
7877ff63a143Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
7878521070a0Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
7879521070a0Smrg    wlarc='${wl}'
78804456fccdSmrg
7881521070a0Smrg    # Set some defaults for GNU ld with shared library support. These
7882521070a0Smrg    # are reset later if shared libraries are not supported. Putting them
7883521070a0Smrg    # here allows them to be overridden if necessary.
7884521070a0Smrg    runpath_var=LD_RUN_PATH
7885521070a0Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7886521070a0Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
7887521070a0Smrg    # ancient GNU ld didn't support --whole-archive et. al.
7888521070a0Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7889521070a0Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7890521070a0Smrg    else
7891521070a0Smrg      whole_archive_flag_spec=
7892521070a0Smrg    fi
7893521070a0Smrg    supports_anon_versioning=no
7894521070a0Smrg    case `$LD -v 2>&1` in
7895ff63a143Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
7896521070a0Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7897521070a0Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7898521070a0Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7899521070a0Smrg      *\ 2.11.*) ;; # other 2.11 versions
7900521070a0Smrg      *) supports_anon_versioning=yes ;;
7901521070a0Smrg    esac
79024456fccdSmrg
7903521070a0Smrg    # See if GNU ld supports shared libraries.
7904521070a0Smrg    case $host_os in
7905521070a0Smrg    aix[3-9]*)
7906521070a0Smrg      # On AIX/PPC, the GNU linker is very broken
7907521070a0Smrg      if test "$host_cpu" != ia64; then
7908521070a0Smrg	ld_shlibs=no
7909521070a0Smrg	cat <<_LT_EOF 1>&2
79104456fccdSmrg
7911ff63a143Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
7912521070a0Smrg*** to be unable to reliably create shared libraries on AIX.
7913521070a0Smrg*** Therefore, libtool is disabling shared libraries support.  If you
7914ff63a143Smrg*** really care for shared libraries, you may want to install binutils
7915ff63a143Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7916ff63a143Smrg*** You will then need to restart the configuration process.
79174456fccdSmrg
7918521070a0Smrg_LT_EOF
7919521070a0Smrg      fi
7920521070a0Smrg      ;;
79214456fccdSmrg
7922521070a0Smrg    amigaos*)
7923521070a0Smrg      case $host_cpu in
7924521070a0Smrg      powerpc)
7925521070a0Smrg            # see comment about AmigaOS4 .so support
7926521070a0Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927521070a0Smrg            archive_expsym_cmds=''
7928521070a0Smrg        ;;
7929521070a0Smrg      m68k)
7930521070a0Smrg            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)'
7931521070a0Smrg            hardcode_libdir_flag_spec='-L$libdir'
7932521070a0Smrg            hardcode_minus_L=yes
7933521070a0Smrg        ;;
7934521070a0Smrg      esac
7935521070a0Smrg      ;;
79364456fccdSmrg
7937521070a0Smrg    beos*)
7938521070a0Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7939521070a0Smrg	allow_undefined_flag=unsupported
7940521070a0Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7941521070a0Smrg	# support --undefined.  This deserves some investigation.  FIXME
7942521070a0Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943521070a0Smrg      else
7944521070a0Smrg	ld_shlibs=no
7945521070a0Smrg      fi
7946521070a0Smrg      ;;
79474456fccdSmrg
7948521070a0Smrg    cygwin* | mingw* | pw32* | cegcc*)
7949521070a0Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7950521070a0Smrg      # as there is no search path for DLLs.
7951521070a0Smrg      hardcode_libdir_flag_spec='-L$libdir'
7952ff63a143Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
7953521070a0Smrg      allow_undefined_flag=unsupported
7954521070a0Smrg      always_export_symbols=no
7955521070a0Smrg      enable_shared_with_static_runtimes=yes
7956521070a0Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
79574456fccdSmrg
7958521070a0Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7959521070a0Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7960521070a0Smrg	# If the export-symbols file already is a .def file (1st line
7961521070a0Smrg	# is EXPORTS), use it as is; otherwise, prepend...
7962521070a0Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7963521070a0Smrg	  cp $export_symbols $output_objdir/$soname.def;
7964521070a0Smrg	else
7965521070a0Smrg	  echo EXPORTS > $output_objdir/$soname.def;
7966521070a0Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
7967521070a0Smrg	fi~
7968521070a0Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7969521070a0Smrg      else
7970521070a0Smrg	ld_shlibs=no
7971521070a0Smrg      fi
79724456fccdSmrg      ;;
79734456fccdSmrg
7974ff63a143Smrg    haiku*)
7975ff63a143Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976ff63a143Smrg      link_all_deplibs=yes
7977ff63a143Smrg      ;;
7978ff63a143Smrg
7979521070a0Smrg    interix[3-9]*)
7980521070a0Smrg      hardcode_direct=no
7981521070a0Smrg      hardcode_shlibpath_var=no
7982521070a0Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7983521070a0Smrg      export_dynamic_flag_spec='${wl}-E'
7984521070a0Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7985521070a0Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
7986521070a0Smrg      # default) and relocated if they conflict, which is a slow very memory
7987521070a0Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
7988521070a0Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7989521070a0Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7990521070a0Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7991521070a0Smrg      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'
7992521070a0Smrg      ;;
79934456fccdSmrg
7994ff63a143Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7995521070a0Smrg      tmp_diet=no
7996521070a0Smrg      if test "$host_os" = linux-dietlibc; then
7997521070a0Smrg	case $cc_basename in
7998521070a0Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7999521070a0Smrg	esac
8000521070a0Smrg      fi
8001521070a0Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8002521070a0Smrg	 && test "$tmp_diet" = no
8003521070a0Smrg      then
8004521070a0Smrg	tmp_addflag=
8005521070a0Smrg	tmp_sharedflag='-shared'
8006521070a0Smrg	case $cc_basename,$host_cpu in
8007521070a0Smrg        pgcc*)				# Portland Group C compiler
8008ff63a143Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8009521070a0Smrg	  tmp_addflag=' $pic_flag'
8010521070a0Smrg	  ;;
8011ff63a143Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
8012ff63a143Smrg					# Portland Group f77 and f90 compilers
8013ff63a143Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8014521070a0Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
8015521070a0Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8016521070a0Smrg	  tmp_addflag=' -i_dynamic' ;;
8017521070a0Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8018521070a0Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8019521070a0Smrg	ifc* | ifort*)			# Intel Fortran compiler
8020521070a0Smrg	  tmp_addflag=' -nofor_main' ;;
8021521070a0Smrg	lf95*)				# Lahey Fortran 8.1
8022521070a0Smrg	  whole_archive_flag_spec=
8023521070a0Smrg	  tmp_sharedflag='--shared' ;;
8024ff63a143Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8025521070a0Smrg	  tmp_sharedflag='-qmkshrobj'
8026521070a0Smrg	  tmp_addflag= ;;
8027ff63a143Smrg	nvcc*)	# Cuda Compiler Driver 2.2
8028ff63a143Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8029ff63a143Smrg	  compiler_needs_object=yes
8030ff63a143Smrg	  ;;
8031521070a0Smrg	esac
8032521070a0Smrg	case `$CC -V 2>&1 | sed 5q` in
8033521070a0Smrg	*Sun\ C*)			# Sun C 5.9
8034ff63a143Smrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8035521070a0Smrg	  compiler_needs_object=yes
8036521070a0Smrg	  tmp_sharedflag='-G' ;;
8037521070a0Smrg	*Sun\ F*)			# Sun Fortran 8.3
8038521070a0Smrg	  tmp_sharedflag='-G' ;;
8039521070a0Smrg	esac
8040521070a0Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
80414456fccdSmrg
8042521070a0Smrg        if test "x$supports_anon_versioning" = xyes; then
8043521070a0Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8044521070a0Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8045521070a0Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
8046521070a0Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8047521070a0Smrg        fi
80484456fccdSmrg
8049521070a0Smrg	case $cc_basename in
8050ff63a143Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
8051521070a0Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8052521070a0Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8053521070a0Smrg	  hardcode_libdir_flag_spec=
8054521070a0Smrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8055ff63a143Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8056521070a0Smrg	  if test "x$supports_anon_versioning" = xyes; then
8057521070a0Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8058521070a0Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059521070a0Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
8060ff63a143Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8061521070a0Smrg	  fi
8062521070a0Smrg	  ;;
8063521070a0Smrg	esac
8064521070a0Smrg      else
8065521070a0Smrg        ld_shlibs=no
8066521070a0Smrg      fi
8067521070a0Smrg      ;;
80684456fccdSmrg
8069521070a0Smrg    netbsd*)
8070521070a0Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8071521070a0Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8072521070a0Smrg	wlarc=
8073521070a0Smrg      else
8074521070a0Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075521070a0Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076521070a0Smrg      fi
8077521070a0Smrg      ;;
80784456fccdSmrg
8079521070a0Smrg    solaris*)
8080521070a0Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8081521070a0Smrg	ld_shlibs=no
8082521070a0Smrg	cat <<_LT_EOF 1>&2
80834456fccdSmrg
8084521070a0Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8085521070a0Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
8086521070a0Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8087521070a0Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
8088521070a0Smrg*** your PATH or compiler configuration so that the native linker is
8089521070a0Smrg*** used, and then restart.
80904456fccdSmrg
8091521070a0Smrg_LT_EOF
8092521070a0Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8093521070a0Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094521070a0Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8095521070a0Smrg      else
8096521070a0Smrg	ld_shlibs=no
8097521070a0Smrg      fi
8098521070a0Smrg      ;;
80994456fccdSmrg
8100521070a0Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8101521070a0Smrg      case `$LD -v 2>&1` in
8102521070a0Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8103521070a0Smrg	ld_shlibs=no
8104521070a0Smrg	cat <<_LT_EOF 1>&2
81054456fccdSmrg
8106521070a0Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8107521070a0Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
8108521070a0Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8109521070a0Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8110521070a0Smrg*** your PATH or compiler configuration so that the native linker is
8111521070a0Smrg*** used, and then restart.
81124456fccdSmrg
8113521070a0Smrg_LT_EOF
8114521070a0Smrg	;;
8115521070a0Smrg	*)
8116521070a0Smrg	  # For security reasons, it is highly recommended that you always
8117521070a0Smrg	  # use absolute paths for naming shared libraries, and exclude the
8118521070a0Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
8119521070a0Smrg	  # requires that you compile everything twice, which is a pain.
8120521070a0Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8121521070a0Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8122521070a0Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123521070a0Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8124521070a0Smrg	  else
8125521070a0Smrg	    ld_shlibs=no
8126521070a0Smrg	  fi
8127521070a0Smrg	;;
8128521070a0Smrg      esac
8129521070a0Smrg      ;;
81304456fccdSmrg
8131521070a0Smrg    sunos4*)
8132521070a0Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8133521070a0Smrg      wlarc=
8134521070a0Smrg      hardcode_direct=yes
8135521070a0Smrg      hardcode_shlibpath_var=no
8136521070a0Smrg      ;;
81374456fccdSmrg
8138521070a0Smrg    *)
8139521070a0Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8140521070a0Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141521070a0Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142521070a0Smrg      else
8143521070a0Smrg	ld_shlibs=no
8144521070a0Smrg      fi
8145521070a0Smrg      ;;
8146521070a0Smrg    esac
81474456fccdSmrg
8148521070a0Smrg    if test "$ld_shlibs" = no; then
8149521070a0Smrg      runpath_var=
8150521070a0Smrg      hardcode_libdir_flag_spec=
8151521070a0Smrg      export_dynamic_flag_spec=
8152521070a0Smrg      whole_archive_flag_spec=
8153521070a0Smrg    fi
8154521070a0Smrg  else
8155521070a0Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
8156521070a0Smrg    case $host_os in
8157521070a0Smrg    aix3*)
8158521070a0Smrg      allow_undefined_flag=unsupported
8159521070a0Smrg      always_export_symbols=yes
8160521070a0Smrg      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'
8161521070a0Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
8162521070a0Smrg      # are no directories specified by -L.
8163521070a0Smrg      hardcode_minus_L=yes
8164521070a0Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8165521070a0Smrg	# Neither direct hardcoding nor static linking is supported with a
8166521070a0Smrg	# broken collect2.
8167521070a0Smrg	hardcode_direct=unsupported
8168521070a0Smrg      fi
8169521070a0Smrg      ;;
81704456fccdSmrg
8171521070a0Smrg    aix[4-9]*)
8172521070a0Smrg      if test "$host_cpu" = ia64; then
8173521070a0Smrg	# On IA64, the linker does run time linking by default, so we don't
8174521070a0Smrg	# have to do anything special.
8175521070a0Smrg	aix_use_runtimelinking=no
8176521070a0Smrg	exp_sym_flag='-Bexport'
8177521070a0Smrg	no_entry_flag=""
8178521070a0Smrg      else
8179521070a0Smrg	# If we're using GNU nm, then we don't want the "-C" option.
8180521070a0Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8181ff63a143Smrg	# Also, AIX nm treats weak defined symbols like other global
8182ff63a143Smrg	# defined symbols, whereas GNU nm marks them as "W".
8183521070a0Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8184ff63a143Smrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8185521070a0Smrg	else
8186521070a0Smrg	  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'
8187521070a0Smrg	fi
8188521070a0Smrg	aix_use_runtimelinking=no
81894456fccdSmrg
8190521070a0Smrg	# Test if we are trying to use run time linking or normal
8191521070a0Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8192521070a0Smrg	# need to do runtime linking.
8193521070a0Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8194521070a0Smrg	  for ld_flag in $LDFLAGS; do
8195521070a0Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8196521070a0Smrg	    aix_use_runtimelinking=yes
8197521070a0Smrg	    break
8198521070a0Smrg	  fi
8199521070a0Smrg	  done
8200521070a0Smrg	  ;;
8201521070a0Smrg	esac
82024456fccdSmrg
8203521070a0Smrg	exp_sym_flag='-bexport'
8204521070a0Smrg	no_entry_flag='-bnoentry'
8205521070a0Smrg      fi
82064456fccdSmrg
8207521070a0Smrg      # When large executables or shared objects are built, AIX ld can
8208521070a0Smrg      # have problems creating the table of contents.  If linking a library
8209521070a0Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
8210521070a0Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8211521070a0Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
82124456fccdSmrg
8213521070a0Smrg      archive_cmds=''
8214521070a0Smrg      hardcode_direct=yes
8215521070a0Smrg      hardcode_direct_absolute=yes
8216521070a0Smrg      hardcode_libdir_separator=':'
8217521070a0Smrg      link_all_deplibs=yes
8218521070a0Smrg      file_list_spec='${wl}-f,'
82194456fccdSmrg
8220521070a0Smrg      if test "$GCC" = yes; then
8221521070a0Smrg	case $host_os in aix4.[012]|aix4.[012].*)
8222521070a0Smrg	# We only want to do this on AIX 4.2 and lower, the check
8223521070a0Smrg	# below for broken collect2 doesn't work under 4.3+
8224521070a0Smrg	  collect2name=`${CC} -print-prog-name=collect2`
8225521070a0Smrg	  if test -f "$collect2name" &&
8226521070a0Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8227521070a0Smrg	  then
8228521070a0Smrg	  # We have reworked collect2
8229521070a0Smrg	  :
8230521070a0Smrg	  else
8231521070a0Smrg	  # We have old collect2
8232521070a0Smrg	  hardcode_direct=unsupported
8233521070a0Smrg	  # It fails to find uninstalled libraries when the uninstalled
8234521070a0Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
8235521070a0Smrg	  # to unsupported forces relinking
8236521070a0Smrg	  hardcode_minus_L=yes
8237521070a0Smrg	  hardcode_libdir_flag_spec='-L$libdir'
8238521070a0Smrg	  hardcode_libdir_separator=
8239521070a0Smrg	  fi
8240521070a0Smrg	  ;;
8241521070a0Smrg	esac
8242521070a0Smrg	shared_flag='-shared'
8243521070a0Smrg	if test "$aix_use_runtimelinking" = yes; then
8244521070a0Smrg	  shared_flag="$shared_flag "'${wl}-G'
8245521070a0Smrg	fi
8246521070a0Smrg      else
8247521070a0Smrg	# not using gcc
8248521070a0Smrg	if test "$host_cpu" = ia64; then
8249521070a0Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8250521070a0Smrg	# chokes on -Wl,-G. The following line is correct:
8251521070a0Smrg	  shared_flag='-G'
8252521070a0Smrg	else
8253521070a0Smrg	  if test "$aix_use_runtimelinking" = yes; then
8254521070a0Smrg	    shared_flag='${wl}-G'
8255521070a0Smrg	  else
8256521070a0Smrg	    shared_flag='${wl}-bM:SRE'
8257521070a0Smrg	  fi
8258521070a0Smrg	fi
8259521070a0Smrg      fi
82604456fccdSmrg
8261521070a0Smrg      export_dynamic_flag_spec='${wl}-bexpall'
8262521070a0Smrg      # It seems that -bexpall does not export symbols beginning with
8263521070a0Smrg      # underscore (_), so it is better to generate a list of symbols to export.
8264521070a0Smrg      always_export_symbols=yes
8265521070a0Smrg      if test "$aix_use_runtimelinking" = yes; then
8266521070a0Smrg	# Warning - without using the other runtime loading flags (-brtl),
8267521070a0Smrg	# -berok will link without error, but may produce a broken library.
8268521070a0Smrg	allow_undefined_flag='-berok'
8269521070a0Smrg        # Determine the default libpath from the value encoded in an
8270521070a0Smrg        # empty executable.
8271521070a0Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272521070a0Smrg/* end confdefs.h.  */
82734456fccdSmrg
8274521070a0Smrgint
8275521070a0Smrgmain ()
8276521070a0Smrg{
82774456fccdSmrg
8278521070a0Smrg  ;
8279521070a0Smrg  return 0;
8280521070a0Smrg}
8281521070a0Smrg_ACEOF
8282521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
82834456fccdSmrg
8284521070a0Smrglt_aix_libpath_sed='
8285521070a0Smrg    /Import File Strings/,/^$/ {
8286521070a0Smrg	/^0/ {
8287521070a0Smrg	    s/^0  *\(.*\)$/\1/
8288521070a0Smrg	    p
8289521070a0Smrg	}
8290521070a0Smrg    }'
8291521070a0Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8292521070a0Smrg# Check for a 64-bit object if we didn't find anything.
8293521070a0Smrgif test -z "$aix_libpath"; then
8294521070a0Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8295521070a0Smrgfi
8296521070a0Smrgfi
8297521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
8298521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
8299521070a0Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
83004456fccdSmrg
8301521070a0Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8302ff63a143Smrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8303521070a0Smrg      else
8304521070a0Smrg	if test "$host_cpu" = ia64; then
8305521070a0Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8306521070a0Smrg	  allow_undefined_flag="-z nodefs"
8307521070a0Smrg	  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"
8308521070a0Smrg	else
8309521070a0Smrg	 # Determine the default libpath from the value encoded in an
8310521070a0Smrg	 # empty executable.
8311521070a0Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312521070a0Smrg/* end confdefs.h.  */
83134456fccdSmrg
8314521070a0Smrgint
8315521070a0Smrgmain ()
8316521070a0Smrg{
83174456fccdSmrg
8318521070a0Smrg  ;
8319521070a0Smrg  return 0;
8320521070a0Smrg}
8321521070a0Smrg_ACEOF
8322521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
83234456fccdSmrg
8324521070a0Smrglt_aix_libpath_sed='
8325521070a0Smrg    /Import File Strings/,/^$/ {
8326521070a0Smrg	/^0/ {
8327521070a0Smrg	    s/^0  *\(.*\)$/\1/
8328521070a0Smrg	    p
8329521070a0Smrg	}
8330521070a0Smrg    }'
8331521070a0Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332521070a0Smrg# Check for a 64-bit object if we didn't find anything.
8333521070a0Smrgif test -z "$aix_libpath"; then
8334521070a0Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8335521070a0Smrgfi
8336521070a0Smrgfi
8337521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
8338521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
8339521070a0Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
83404456fccdSmrg
8341521070a0Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8342521070a0Smrg	  # Warning - without using the other run time loading flags,
8343521070a0Smrg	  # -berok will link without error, but may produce a broken library.
8344521070a0Smrg	  no_undefined_flag=' ${wl}-bernotok'
8345521070a0Smrg	  allow_undefined_flag=' ${wl}-berok'
8346ff63a143Smrg	  if test "$with_gnu_ld" = yes; then
8347ff63a143Smrg	    # We only use this code for GNU lds that support --whole-archive.
8348ff63a143Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8349ff63a143Smrg	  else
8350ff63a143Smrg	    # Exported symbols can be pulled into shared objects from archives
8351ff63a143Smrg	    whole_archive_flag_spec='$convenience'
8352ff63a143Smrg	  fi
8353521070a0Smrg	  archive_cmds_need_lc=yes
8354521070a0Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
8355521070a0Smrg	  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'
8356521070a0Smrg	fi
8357521070a0Smrg      fi
8358521070a0Smrg      ;;
83594456fccdSmrg
8360521070a0Smrg    amigaos*)
8361521070a0Smrg      case $host_cpu in
8362521070a0Smrg      powerpc)
8363521070a0Smrg            # see comment about AmigaOS4 .so support
8364521070a0Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365521070a0Smrg            archive_expsym_cmds=''
8366521070a0Smrg        ;;
8367521070a0Smrg      m68k)
8368521070a0Smrg            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)'
8369521070a0Smrg            hardcode_libdir_flag_spec='-L$libdir'
8370521070a0Smrg            hardcode_minus_L=yes
8371521070a0Smrg        ;;
8372521070a0Smrg      esac
8373521070a0Smrg      ;;
83744456fccdSmrg
8375521070a0Smrg    bsdi[45]*)
8376521070a0Smrg      export_dynamic_flag_spec=-rdynamic
8377521070a0Smrg      ;;
83784456fccdSmrg
8379521070a0Smrg    cygwin* | mingw* | pw32* | cegcc*)
8380521070a0Smrg      # When not using gcc, we currently assume that we are using
8381521070a0Smrg      # Microsoft Visual C++.
8382521070a0Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
8383521070a0Smrg      # no search path for DLLs.
8384521070a0Smrg      hardcode_libdir_flag_spec=' '
8385521070a0Smrg      allow_undefined_flag=unsupported
8386521070a0Smrg      # Tell ltmain to make .lib files, not .a files.
8387521070a0Smrg      libext=lib
8388521070a0Smrg      # Tell ltmain to make .dll files, not .so files.
8389521070a0Smrg      shrext_cmds=".dll"
8390521070a0Smrg      # FIXME: Setting linknames here is a bad hack.
8391ff63a143Smrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8392521070a0Smrg      # The linker will automatically build a .lib file if we build a DLL.
8393521070a0Smrg      old_archive_from_new_cmds='true'
8394521070a0Smrg      # FIXME: Should let the user specify the lib program.
8395521070a0Smrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8396521070a0Smrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
8397521070a0Smrg      enable_shared_with_static_runtimes=yes
8398521070a0Smrg      ;;
83994456fccdSmrg
8400521070a0Smrg    darwin* | rhapsody*)
84014456fccdSmrg
84024456fccdSmrg
8403521070a0Smrg  archive_cmds_need_lc=no
8404521070a0Smrg  hardcode_direct=no
8405521070a0Smrg  hardcode_automatic=yes
8406521070a0Smrg  hardcode_shlibpath_var=unsupported
8407ff63a143Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
8408ff63a143Smrg    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8409ff63a143Smrg  else
8410ff63a143Smrg    whole_archive_flag_spec=''
8411ff63a143Smrg  fi
8412521070a0Smrg  link_all_deplibs=yes
8413521070a0Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
8414521070a0Smrg  case $cc_basename in
8415521070a0Smrg     ifort*) _lt_dar_can_shared=yes ;;
8416521070a0Smrg     *) _lt_dar_can_shared=$GCC ;;
8417521070a0Smrg  esac
8418521070a0Smrg  if test "$_lt_dar_can_shared" = "yes"; then
8419ff63a143Smrg    output_verbose_link_cmd=func_echo_all
8420521070a0Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8421521070a0Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8422521070a0Smrg    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}"
8423521070a0Smrg    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}"
84244456fccdSmrg
8425521070a0Smrg  else
8426521070a0Smrg  ld_shlibs=no
8427521070a0Smrg  fi
84284456fccdSmrg
8429521070a0Smrg      ;;
84304456fccdSmrg
8431521070a0Smrg    dgux*)
8432521070a0Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433521070a0Smrg      hardcode_libdir_flag_spec='-L$libdir'
8434521070a0Smrg      hardcode_shlibpath_var=no
8435521070a0Smrg      ;;
84364456fccdSmrg
8437521070a0Smrg    freebsd1*)
8438521070a0Smrg      ld_shlibs=no
8439521070a0Smrg      ;;
84404456fccdSmrg
8441521070a0Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8442521070a0Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
8443521070a0Smrg    # does not break anything, and helps significantly (at the cost of a little
8444521070a0Smrg    # extra space).
8445521070a0Smrg    freebsd2.2*)
8446521070a0Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8447521070a0Smrg      hardcode_libdir_flag_spec='-R$libdir'
8448521070a0Smrg      hardcode_direct=yes
8449521070a0Smrg      hardcode_shlibpath_var=no
8450521070a0Smrg      ;;
84514456fccdSmrg
8452521070a0Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8453521070a0Smrg    freebsd2*)
8454521070a0Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455521070a0Smrg      hardcode_direct=yes
8456521070a0Smrg      hardcode_minus_L=yes
8457521070a0Smrg      hardcode_shlibpath_var=no
8458521070a0Smrg      ;;
84594456fccdSmrg
8460521070a0Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8461521070a0Smrg    freebsd* | dragonfly*)
8462521070a0Smrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8463521070a0Smrg      hardcode_libdir_flag_spec='-R$libdir'
8464521070a0Smrg      hardcode_direct=yes
8465521070a0Smrg      hardcode_shlibpath_var=no
8466521070a0Smrg      ;;
84674456fccdSmrg
8468521070a0Smrg    hpux9*)
8469521070a0Smrg      if test "$GCC" = yes; then
8470521070a0Smrg	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'
8471521070a0Smrg      else
8472521070a0Smrg	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'
8473521070a0Smrg      fi
8474521070a0Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8475521070a0Smrg      hardcode_libdir_separator=:
8476521070a0Smrg      hardcode_direct=yes
84774456fccdSmrg
8478521070a0Smrg      # hardcode_minus_L: Not really in the search PATH,
8479521070a0Smrg      # but as the default location of the library.
8480521070a0Smrg      hardcode_minus_L=yes
8481521070a0Smrg      export_dynamic_flag_spec='${wl}-E'
8482521070a0Smrg      ;;
84834456fccdSmrg
8484521070a0Smrg    hpux10*)
8485ff63a143Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8486521070a0Smrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8487521070a0Smrg      else
8488521070a0Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8489521070a0Smrg      fi
8490521070a0Smrg      if test "$with_gnu_ld" = no; then
8491521070a0Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492521070a0Smrg	hardcode_libdir_flag_spec_ld='+b $libdir'
8493521070a0Smrg	hardcode_libdir_separator=:
8494521070a0Smrg	hardcode_direct=yes
8495521070a0Smrg	hardcode_direct_absolute=yes
8496521070a0Smrg	export_dynamic_flag_spec='${wl}-E'
8497521070a0Smrg	# hardcode_minus_L: Not really in the search PATH,
8498521070a0Smrg	# but as the default location of the library.
8499521070a0Smrg	hardcode_minus_L=yes
8500521070a0Smrg      fi
8501521070a0Smrg      ;;
85024456fccdSmrg
8503521070a0Smrg    hpux11*)
8504ff63a143Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8505521070a0Smrg	case $host_cpu in
8506521070a0Smrg	hppa*64*)
8507521070a0Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508521070a0Smrg	  ;;
8509521070a0Smrg	ia64*)
8510521070a0Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8511521070a0Smrg	  ;;
8512521070a0Smrg	*)
8513521070a0Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8514521070a0Smrg	  ;;
8515521070a0Smrg	esac
8516521070a0Smrg      else
8517521070a0Smrg	case $host_cpu in
8518521070a0Smrg	hppa*64*)
8519521070a0Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520521070a0Smrg	  ;;
8521521070a0Smrg	ia64*)
8522521070a0Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8523521070a0Smrg	  ;;
8524521070a0Smrg	*)
8525ff63a143Smrg
8526ff63a143Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
8527ff63a143Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8528ff63a143Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8529ff63a143Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
8530ff63a143Smrgif test "${lt_cv_prog_compiler__b+set}" = set; then :
8531ff63a143Smrg  $as_echo_n "(cached) " >&6
8532ff63a143Smrgelse
8533ff63a143Smrg  lt_cv_prog_compiler__b=no
8534ff63a143Smrg   save_LDFLAGS="$LDFLAGS"
8535ff63a143Smrg   LDFLAGS="$LDFLAGS -b"
8536ff63a143Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8537ff63a143Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8538ff63a143Smrg     # The linker can only warn and ignore the option if not recognized
8539ff63a143Smrg     # So say no if there are warnings
8540ff63a143Smrg     if test -s conftest.err; then
8541ff63a143Smrg       # Append any errors to the config.log.
8542ff63a143Smrg       cat conftest.err 1>&5
8543ff63a143Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8544ff63a143Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8545ff63a143Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
8546ff63a143Smrg         lt_cv_prog_compiler__b=yes
8547ff63a143Smrg       fi
8548ff63a143Smrg     else
8549ff63a143Smrg       lt_cv_prog_compiler__b=yes
8550ff63a143Smrg     fi
8551ff63a143Smrg   fi
8552ff63a143Smrg   $RM -r conftest*
8553ff63a143Smrg   LDFLAGS="$save_LDFLAGS"
8554ff63a143Smrg
8555ff63a143Smrgfi
8556ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8557ff63a143Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
8558ff63a143Smrg
8559ff63a143Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
8560ff63a143Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8561ff63a143Smrgelse
8562ff63a143Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8563ff63a143Smrgfi
8564ff63a143Smrg
8565521070a0Smrg	  ;;
8566521070a0Smrg	esac
8567521070a0Smrg      fi
8568521070a0Smrg      if test "$with_gnu_ld" = no; then
8569521070a0Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8570521070a0Smrg	hardcode_libdir_separator=:
85714456fccdSmrg
8572521070a0Smrg	case $host_cpu in
8573521070a0Smrg	hppa*64*|ia64*)
8574521070a0Smrg	  hardcode_direct=no
8575521070a0Smrg	  hardcode_shlibpath_var=no
8576521070a0Smrg	  ;;
8577521070a0Smrg	*)
8578521070a0Smrg	  hardcode_direct=yes
8579521070a0Smrg	  hardcode_direct_absolute=yes
8580521070a0Smrg	  export_dynamic_flag_spec='${wl}-E'
85814456fccdSmrg
8582521070a0Smrg	  # hardcode_minus_L: Not really in the search PATH,
8583521070a0Smrg	  # but as the default location of the library.
8584521070a0Smrg	  hardcode_minus_L=yes
8585521070a0Smrg	  ;;
8586521070a0Smrg	esac
8587521070a0Smrg      fi
8588521070a0Smrg      ;;
85894456fccdSmrg
8590521070a0Smrg    irix5* | irix6* | nonstopux*)
8591521070a0Smrg      if test "$GCC" = yes; then
8592ff63a143Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8593521070a0Smrg	# Try to use the -exported_symbol ld option, if it does not
8594521070a0Smrg	# work, assume that -exports_file does not work either and
8595521070a0Smrg	# implicitly export all symbols.
8596521070a0Smrg        save_LDFLAGS="$LDFLAGS"
8597521070a0Smrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8598521070a0Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599521070a0Smrg/* end confdefs.h.  */
8600521070a0Smrgint foo(void) {}
8601521070a0Smrg_ACEOF
8602521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
8603ff63a143Smrg  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
86044456fccdSmrg
8605521070a0Smrgfi
8606521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
8607521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
8608521070a0Smrg        LDFLAGS="$save_LDFLAGS"
8609521070a0Smrg      else
8610ff63a143Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8611ff63a143Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8612521070a0Smrg      fi
8613521070a0Smrg      archive_cmds_need_lc='no'
8614521070a0Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8615521070a0Smrg      hardcode_libdir_separator=:
8616521070a0Smrg      inherit_rpath=yes
8617521070a0Smrg      link_all_deplibs=yes
8618521070a0Smrg      ;;
86194456fccdSmrg
8620521070a0Smrg    netbsd*)
8621521070a0Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8622521070a0Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8623521070a0Smrg      else
8624521070a0Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8625521070a0Smrg      fi
8626521070a0Smrg      hardcode_libdir_flag_spec='-R$libdir'
8627521070a0Smrg      hardcode_direct=yes
8628521070a0Smrg      hardcode_shlibpath_var=no
8629521070a0Smrg      ;;
86304456fccdSmrg
8631521070a0Smrg    newsos6)
8632521070a0Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633521070a0Smrg      hardcode_direct=yes
8634521070a0Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635521070a0Smrg      hardcode_libdir_separator=:
8636521070a0Smrg      hardcode_shlibpath_var=no
8637521070a0Smrg      ;;
86384456fccdSmrg
8639521070a0Smrg    *nto* | *qnx*)
8640521070a0Smrg      ;;
86414456fccdSmrg
8642521070a0Smrg    openbsd*)
8643521070a0Smrg      if test -f /usr/libexec/ld.so; then
8644521070a0Smrg	hardcode_direct=yes
8645521070a0Smrg	hardcode_shlibpath_var=no
8646521070a0Smrg	hardcode_direct_absolute=yes
8647521070a0Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8648521070a0Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8649521070a0Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8650521070a0Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8651521070a0Smrg	  export_dynamic_flag_spec='${wl}-E'
8652521070a0Smrg	else
8653521070a0Smrg	  case $host_os in
8654521070a0Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8655521070a0Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8656521070a0Smrg	     hardcode_libdir_flag_spec='-R$libdir'
8657521070a0Smrg	     ;;
8658521070a0Smrg	   *)
8659521070a0Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8660521070a0Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661521070a0Smrg	     ;;
8662521070a0Smrg	  esac
8663521070a0Smrg	fi
8664521070a0Smrg      else
8665521070a0Smrg	ld_shlibs=no
8666521070a0Smrg      fi
8667521070a0Smrg      ;;
86684456fccdSmrg
8669521070a0Smrg    os2*)
8670521070a0Smrg      hardcode_libdir_flag_spec='-L$libdir'
8671521070a0Smrg      hardcode_minus_L=yes
8672521070a0Smrg      allow_undefined_flag=unsupported
8673ff63a143Smrg      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'
8674521070a0Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8675521070a0Smrg      ;;
86764456fccdSmrg
8677521070a0Smrg    osf3*)
8678521070a0Smrg      if test "$GCC" = yes; then
8679521070a0Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8680ff63a143Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8681521070a0Smrg      else
8682521070a0Smrg	allow_undefined_flag=' -expect_unresolved \*'
8683ff63a143Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8684521070a0Smrg      fi
8685521070a0Smrg      archive_cmds_need_lc='no'
8686521070a0Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8687521070a0Smrg      hardcode_libdir_separator=:
8688521070a0Smrg      ;;
86894456fccdSmrg
8690521070a0Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8691521070a0Smrg      if test "$GCC" = yes; then
8692521070a0Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693ff63a143Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8694521070a0Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695521070a0Smrg      else
8696521070a0Smrg	allow_undefined_flag=' -expect_unresolved \*'
8697ff63a143Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8698521070a0Smrg	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8699ff63a143Smrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
87004456fccdSmrg
8701521070a0Smrg	# Both c and cxx compiler support -rpath directly
8702521070a0Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
8703521070a0Smrg      fi
8704521070a0Smrg      archive_cmds_need_lc='no'
8705521070a0Smrg      hardcode_libdir_separator=:
8706521070a0Smrg      ;;
87074456fccdSmrg
8708521070a0Smrg    solaris*)
8709521070a0Smrg      no_undefined_flag=' -z defs'
8710521070a0Smrg      if test "$GCC" = yes; then
8711521070a0Smrg	wlarc='${wl}'
8712521070a0Smrg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713521070a0Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8714521070a0Smrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8715521070a0Smrg      else
8716521070a0Smrg	case `$CC -V 2>&1` in
8717521070a0Smrg	*"Compilers 5.0"*)
8718521070a0Smrg	  wlarc=''
8719521070a0Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720521070a0Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8721521070a0Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8722521070a0Smrg	  ;;
8723521070a0Smrg	*)
8724521070a0Smrg	  wlarc='${wl}'
8725521070a0Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8726521070a0Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8727521070a0Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8728521070a0Smrg	  ;;
8729521070a0Smrg	esac
8730521070a0Smrg      fi
8731521070a0Smrg      hardcode_libdir_flag_spec='-R$libdir'
8732521070a0Smrg      hardcode_shlibpath_var=no
8733521070a0Smrg      case $host_os in
8734521070a0Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
8735521070a0Smrg      *)
8736521070a0Smrg	# The compiler driver will combine and reorder linker options,
8737521070a0Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8738521070a0Smrg	# but is careful enough not to reorder.
8739521070a0Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
8740521070a0Smrg	if test "$GCC" = yes; then
8741521070a0Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8742521070a0Smrg	else
8743521070a0Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8744521070a0Smrg	fi
8745521070a0Smrg	;;
8746521070a0Smrg      esac
8747521070a0Smrg      link_all_deplibs=yes
8748521070a0Smrg      ;;
87494456fccdSmrg
8750521070a0Smrg    sunos4*)
8751521070a0Smrg      if test "x$host_vendor" = xsequent; then
8752521070a0Smrg	# Use $CC to link under sequent, because it throws in some extra .o
8753521070a0Smrg	# files that make .init and .fini sections work.
8754521070a0Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8755521070a0Smrg      else
8756521070a0Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8757521070a0Smrg      fi
8758521070a0Smrg      hardcode_libdir_flag_spec='-L$libdir'
8759521070a0Smrg      hardcode_direct=yes
8760521070a0Smrg      hardcode_minus_L=yes
8761521070a0Smrg      hardcode_shlibpath_var=no
8762521070a0Smrg      ;;
87634456fccdSmrg
8764521070a0Smrg    sysv4)
8765521070a0Smrg      case $host_vendor in
8766521070a0Smrg	sni)
8767521070a0Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768521070a0Smrg	  hardcode_direct=yes # is this really true???
8769521070a0Smrg	;;
8770521070a0Smrg	siemens)
8771521070a0Smrg	  ## LD is ld it makes a PLAMLIB
8772521070a0Smrg	  ## CC just makes a GrossModule.
8773521070a0Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8774521070a0Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
8775521070a0Smrg	  hardcode_direct=no
8776521070a0Smrg        ;;
8777521070a0Smrg	motorola)
8778521070a0Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779521070a0Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8780521070a0Smrg	;;
8781521070a0Smrg      esac
8782521070a0Smrg      runpath_var='LD_RUN_PATH'
8783521070a0Smrg      hardcode_shlibpath_var=no
8784521070a0Smrg      ;;
87854456fccdSmrg
8786521070a0Smrg    sysv4.3*)
8787521070a0Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788521070a0Smrg      hardcode_shlibpath_var=no
8789521070a0Smrg      export_dynamic_flag_spec='-Bexport'
8790521070a0Smrg      ;;
87914456fccdSmrg
8792521070a0Smrg    sysv4*MP*)
8793521070a0Smrg      if test -d /usr/nec; then
8794521070a0Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795521070a0Smrg	hardcode_shlibpath_var=no
8796521070a0Smrg	runpath_var=LD_RUN_PATH
8797521070a0Smrg	hardcode_runpath_var=yes
8798521070a0Smrg	ld_shlibs=yes
8799521070a0Smrg      fi
8800521070a0Smrg      ;;
88014456fccdSmrg
8802521070a0Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8803521070a0Smrg      no_undefined_flag='${wl}-z,text'
8804521070a0Smrg      archive_cmds_need_lc=no
8805521070a0Smrg      hardcode_shlibpath_var=no
8806521070a0Smrg      runpath_var='LD_RUN_PATH'
88074456fccdSmrg
8808521070a0Smrg      if test "$GCC" = yes; then
8809521070a0Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810521070a0Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8811521070a0Smrg      else
8812521070a0Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813521070a0Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814521070a0Smrg      fi
8815521070a0Smrg      ;;
88164456fccdSmrg
8817521070a0Smrg    sysv5* | sco3.2v5* | sco5v6*)
8818521070a0Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
8819521070a0Smrg      # link with -lc, and that would cause any symbols used from libc to
8820521070a0Smrg      # always be unresolved, which means just about no library would
8821521070a0Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
8822521070a0Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
8823521070a0Smrg      # as -z defs.
8824521070a0Smrg      no_undefined_flag='${wl}-z,text'
8825521070a0Smrg      allow_undefined_flag='${wl}-z,nodefs'
8826521070a0Smrg      archive_cmds_need_lc=no
8827521070a0Smrg      hardcode_shlibpath_var=no
8828521070a0Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8829521070a0Smrg      hardcode_libdir_separator=':'
8830521070a0Smrg      link_all_deplibs=yes
8831521070a0Smrg      export_dynamic_flag_spec='${wl}-Bexport'
8832521070a0Smrg      runpath_var='LD_RUN_PATH'
8833521070a0Smrg
8834521070a0Smrg      if test "$GCC" = yes; then
8835521070a0Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836521070a0Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837521070a0Smrg      else
8838521070a0Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839521070a0Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840521070a0Smrg      fi
8841521070a0Smrg      ;;
8842521070a0Smrg
8843521070a0Smrg    uts4*)
8844521070a0Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845521070a0Smrg      hardcode_libdir_flag_spec='-L$libdir'
8846521070a0Smrg      hardcode_shlibpath_var=no
8847521070a0Smrg      ;;
8848521070a0Smrg
8849521070a0Smrg    *)
8850521070a0Smrg      ld_shlibs=no
8851521070a0Smrg      ;;
8852521070a0Smrg    esac
8853521070a0Smrg
8854521070a0Smrg    if test x$host_vendor = xsni; then
8855521070a0Smrg      case $host in
8856521070a0Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8857521070a0Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
8858521070a0Smrg	;;
8859521070a0Smrg      esac
8860521070a0Smrg    fi
8861521070a0Smrg  fi
8862521070a0Smrg
8863521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8864521070a0Smrg$as_echo "$ld_shlibs" >&6; }
8865521070a0Smrgtest "$ld_shlibs" = no && can_build_shared=no
8866521070a0Smrg
8867521070a0Smrgwith_gnu_ld=$with_gnu_ld
8868521070a0Smrg
8869521070a0Smrg
8870521070a0Smrg
8871521070a0Smrg
8872521070a0Smrg
8873521070a0Smrg
8874521070a0Smrg
8875521070a0Smrg
8876521070a0Smrg
8877521070a0Smrg
8878521070a0Smrg
8879521070a0Smrg
8880521070a0Smrg
8881521070a0Smrg
8882521070a0Smrg
8883521070a0Smrg#
8884521070a0Smrg# Do we need to explicitly link libc?
8885521070a0Smrg#
8886521070a0Smrgcase "x$archive_cmds_need_lc" in
8887521070a0Smrgx|xyes)
8888521070a0Smrg  # Assume -lc should be added
8889521070a0Smrg  archive_cmds_need_lc=yes
8890521070a0Smrg
8891521070a0Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
8892521070a0Smrg    case $archive_cmds in
8893521070a0Smrg    *'~'*)
8894521070a0Smrg      # FIXME: we may have to deal with multi-command sequences.
8895521070a0Smrg      ;;
8896521070a0Smrg    '$CC '*)
8897521070a0Smrg      # Test whether the compiler implicitly links with -lc since on some
8898521070a0Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8899521070a0Smrg      # to ld, don't add -lc before -lgcc.
8900521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8901521070a0Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8902ff63a143Smrgif test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8903ff63a143Smrg  $as_echo_n "(cached) " >&6
8904ff63a143Smrgelse
8905ff63a143Smrg  $RM conftest*
8906ff63a143Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907521070a0Smrg
8908ff63a143Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909521070a0Smrg  (eval $ac_compile) 2>&5
8910521070a0Smrg  ac_status=$?
8911521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912521070a0Smrg  test $ac_status = 0; } 2>conftest.err; then
8913ff63a143Smrg	  soname=conftest
8914ff63a143Smrg	  lib=conftest
8915ff63a143Smrg	  libobjs=conftest.$ac_objext
8916ff63a143Smrg	  deplibs=
8917ff63a143Smrg	  wl=$lt_prog_compiler_wl
8918ff63a143Smrg	  pic_flag=$lt_prog_compiler_pic
8919ff63a143Smrg	  compiler_flags=-v
8920ff63a143Smrg	  linker_flags=-v
8921ff63a143Smrg	  verstring=
8922ff63a143Smrg	  output_objdir=.
8923ff63a143Smrg	  libname=conftest
8924ff63a143Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
8925ff63a143Smrg	  allow_undefined_flag=
8926ff63a143Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8927521070a0Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8928521070a0Smrg  ac_status=$?
8929521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8930521070a0Smrg  test $ac_status = 0; }
8931ff63a143Smrg	  then
8932ff63a143Smrg	    lt_cv_archive_cmds_need_lc=no
8933ff63a143Smrg	  else
8934ff63a143Smrg	    lt_cv_archive_cmds_need_lc=yes
8935ff63a143Smrg	  fi
8936ff63a143Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
8937ff63a143Smrg	else
8938ff63a143Smrg	  cat conftest.err 1>&5
8939ff63a143Smrg	fi
8940ff63a143Smrg	$RM conftest*
8941ff63a143Smrg
8942ff63a143Smrgfi
8943ff63a143Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8944ff63a143Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8945ff63a143Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8946521070a0Smrg      ;;
8947521070a0Smrg    esac
8948521070a0Smrg  fi
8949521070a0Smrg  ;;
8950521070a0Smrgesac
89514456fccdSmrg
89524456fccdSmrg
89534456fccdSmrg
89544456fccdSmrg
89554456fccdSmrg
89564456fccdSmrg
89574456fccdSmrg
89584456fccdSmrg
89594456fccdSmrg
89604456fccdSmrg
89614456fccdSmrg
89624456fccdSmrg
89634456fccdSmrg
89644456fccdSmrg
89654456fccdSmrg
89664456fccdSmrg
89674456fccdSmrg
89684456fccdSmrg
89694456fccdSmrg
89704456fccdSmrg
89714456fccdSmrg
89724456fccdSmrg
89734456fccdSmrg
89744456fccdSmrg
89754456fccdSmrg
89764456fccdSmrg
89774456fccdSmrg
89784456fccdSmrg
89794456fccdSmrg
89804456fccdSmrg
89814456fccdSmrg
89824456fccdSmrg
89834456fccdSmrg
89844456fccdSmrg
89854456fccdSmrg
89864456fccdSmrg
89874456fccdSmrg
89884456fccdSmrg
89894456fccdSmrg
89904456fccdSmrg
89914456fccdSmrg
89924456fccdSmrg
89934456fccdSmrg
89944456fccdSmrg
89954456fccdSmrg
89964456fccdSmrg
89974456fccdSmrg
89984456fccdSmrg
89994456fccdSmrg
90004456fccdSmrg
90014456fccdSmrg
90024456fccdSmrg
90034456fccdSmrg
90044456fccdSmrg
90054456fccdSmrg
90064456fccdSmrg
90074456fccdSmrg
90084456fccdSmrg
90094456fccdSmrg
90104456fccdSmrg
90114456fccdSmrg
90124456fccdSmrg
90134456fccdSmrg
90144456fccdSmrg
90154456fccdSmrg
90164456fccdSmrg
90174456fccdSmrg
90184456fccdSmrg
90194456fccdSmrg
90204456fccdSmrg
902142d69509Smrg
90224456fccdSmrg
90234456fccdSmrg
90244456fccdSmrg
90254456fccdSmrg
90264456fccdSmrg
90274456fccdSmrg
90284456fccdSmrg
902942d69509Smrg
90304456fccdSmrg
90314456fccdSmrg
90324456fccdSmrg
90334456fccdSmrg
90344456fccdSmrg
90354456fccdSmrg
90364456fccdSmrg
90374456fccdSmrg
90384456fccdSmrg
90394456fccdSmrg
90404456fccdSmrg
90414456fccdSmrg
90424456fccdSmrg
90434456fccdSmrg
90444456fccdSmrg
90454456fccdSmrg
90464456fccdSmrg
90474456fccdSmrg
90484456fccdSmrg
90494456fccdSmrg
90504456fccdSmrg
90514456fccdSmrg
90524456fccdSmrg
90534456fccdSmrg
90544456fccdSmrg
90554456fccdSmrg
90564456fccdSmrg
90574456fccdSmrg
90584456fccdSmrg
90594456fccdSmrg
90604456fccdSmrg
90614456fccdSmrg
90624456fccdSmrg
90634456fccdSmrg
90644456fccdSmrg
906542d69509Smrg
90664456fccdSmrg
906742d69509Smrg
906842d69509Smrg
90694456fccdSmrg
90704456fccdSmrg
90714456fccdSmrg
90724456fccdSmrg
90734456fccdSmrg
90744456fccdSmrg
90754456fccdSmrg
90764456fccdSmrg
90774456fccdSmrg
90784456fccdSmrg
90794456fccdSmrg
90804456fccdSmrg
90814456fccdSmrg
90824456fccdSmrg
90834456fccdSmrg
90844456fccdSmrg
90854456fccdSmrg
90864456fccdSmrg
90874456fccdSmrg
90884456fccdSmrg
90894456fccdSmrg
90904456fccdSmrg
90914456fccdSmrg
90924456fccdSmrg
90934456fccdSmrg
90944456fccdSmrg
90954456fccdSmrg
9096521070a0Smrg
9097521070a0Smrg
9098521070a0Smrg
9099521070a0Smrg
9100521070a0Smrg
9101521070a0Smrg
9102521070a0Smrg
9103521070a0Smrg
9104521070a0Smrg
9105521070a0Smrg
9106521070a0Smrg
9107521070a0Smrg
9108521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
910942d69509Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
9110521070a0Smrg
9111521070a0Smrgif test "$GCC" = yes; then
9112521070a0Smrg  case $host_os in
9113521070a0Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9114521070a0Smrg    *) lt_awk_arg="/^libraries:/" ;;
9115521070a0Smrg  esac
9116ff63a143Smrg  case $host_os in
9117ff63a143Smrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9118ff63a143Smrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
9119ff63a143Smrg  esac
9120ff63a143Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9121ff63a143Smrg  case $lt_search_path_spec in
9122ff63a143Smrg  *\;*)
9123521070a0Smrg    # if the path contains ";" then we assume it to be the separator
9124521070a0Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
9125521070a0Smrg    # assumed that no part of a normal pathname contains ";" but that should
9126521070a0Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
9127ff63a143Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9128ff63a143Smrg    ;;
9129ff63a143Smrg  *)
9130ff63a143Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9131ff63a143Smrg    ;;
9132ff63a143Smrg  esac
9133521070a0Smrg  # Ok, now we have the path, separated by spaces, we can step through it
9134521070a0Smrg  # and add multilib dir if necessary.
9135521070a0Smrg  lt_tmp_lt_search_path_spec=
9136521070a0Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9137521070a0Smrg  for lt_sys_path in $lt_search_path_spec; do
9138521070a0Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9139521070a0Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9140521070a0Smrg    else
9141521070a0Smrg      test -d "$lt_sys_path" && \
9142521070a0Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9143521070a0Smrg    fi
9144521070a0Smrg  done
9145ff63a143Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9146521070a0SmrgBEGIN {RS=" "; FS="/|\n";} {
9147521070a0Smrg  lt_foo="";
9148521070a0Smrg  lt_count=0;
9149521070a0Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
9150521070a0Smrg    if ($lt_i != "" && $lt_i != ".") {
9151521070a0Smrg      if ($lt_i == "..") {
9152521070a0Smrg        lt_count++;
9153521070a0Smrg      } else {
9154521070a0Smrg        if (lt_count == 0) {
9155521070a0Smrg          lt_foo="/" $lt_i lt_foo;
9156521070a0Smrg        } else {
9157521070a0Smrg          lt_count--;
9158521070a0Smrg        }
9159521070a0Smrg      }
9160521070a0Smrg    }
9161521070a0Smrg  }
9162521070a0Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
9163521070a0Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9164521070a0Smrg}'`
9165ff63a143Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
9166ff63a143Smrg  # for these hosts.
9167ff63a143Smrg  case $host_os in
9168ff63a143Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9169ff63a143Smrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9170ff63a143Smrg  esac
9171ff63a143Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9172521070a0Smrgelse
9173521070a0Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9174521070a0Smrgfi
91754456fccdSmrglibrary_names_spec=
91764456fccdSmrglibname_spec='lib$name'
91774456fccdSmrgsoname_spec=
91784456fccdSmrgshrext_cmds=".so"
91794456fccdSmrgpostinstall_cmds=
91804456fccdSmrgpostuninstall_cmds=
91814456fccdSmrgfinish_cmds=
91824456fccdSmrgfinish_eval=
91834456fccdSmrgshlibpath_var=
91844456fccdSmrgshlibpath_overrides_runpath=unknown
91854456fccdSmrgversion_type=none
91864456fccdSmrgdynamic_linker="$host_os ld.so"
91874456fccdSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
91884456fccdSmrgneed_lib_prefix=unknown
91894456fccdSmrghardcode_into_libs=no
91904456fccdSmrg
91914456fccdSmrg# when you set need_version to no, make sure it does not cause -set_version
91924456fccdSmrg# flags to be left without arguments
91934456fccdSmrgneed_version=unknown
91944456fccdSmrg
91954456fccdSmrgcase $host_os in
91964456fccdSmrgaix3*)
91974456fccdSmrg  version_type=linux
91984456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
91994456fccdSmrg  shlibpath_var=LIBPATH
92004456fccdSmrg
92014456fccdSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
92024456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
92034456fccdSmrg  ;;
92044456fccdSmrg
920542d69509Smrgaix[4-9]*)
92064456fccdSmrg  version_type=linux
92074456fccdSmrg  need_lib_prefix=no
92084456fccdSmrg  need_version=no
92094456fccdSmrg  hardcode_into_libs=yes
92104456fccdSmrg  if test "$host_cpu" = ia64; then
92114456fccdSmrg    # AIX 5 supports IA64
92124456fccdSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
92134456fccdSmrg    shlibpath_var=LD_LIBRARY_PATH
92144456fccdSmrg  else
92154456fccdSmrg    # With GCC up to 2.95.x, collect2 would create an import file
92164456fccdSmrg    # for dependence libraries.  The import file would start with
92174456fccdSmrg    # the line `#! .'.  This would cause the generated library to
92184456fccdSmrg    # depend on `.', always an invalid library.  This was fixed in
92194456fccdSmrg    # development snapshots of GCC prior to 3.0.
92204456fccdSmrg    case $host_os in
92214456fccdSmrg      aix4 | aix4.[01] | aix4.[01].*)
92224456fccdSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
92234456fccdSmrg	   echo ' yes '
9224521070a0Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
92254456fccdSmrg	:
92264456fccdSmrg      else
92274456fccdSmrg	can_build_shared=no
92284456fccdSmrg      fi
92294456fccdSmrg      ;;
92304456fccdSmrg    esac
92314456fccdSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
92324456fccdSmrg    # soname into executable. Probably we can add versioning support to
92334456fccdSmrg    # collect2, so additional links can be useful in future.
92344456fccdSmrg    if test "$aix_use_runtimelinking" = yes; then
92354456fccdSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
92364456fccdSmrg      # instead of lib<name>.a to let people know that these are not
92374456fccdSmrg      # typical AIX shared libraries.
92384456fccdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
92394456fccdSmrg    else
92404456fccdSmrg      # We preserve .a as extension for shared libraries through AIX4.2
92414456fccdSmrg      # and later when we are not doing run time linking.
92424456fccdSmrg      library_names_spec='${libname}${release}.a $libname.a'
92434456fccdSmrg      soname_spec='${libname}${release}${shared_ext}$major'
92444456fccdSmrg    fi
92454456fccdSmrg    shlibpath_var=LIBPATH
92464456fccdSmrg  fi
92474456fccdSmrg  ;;
92484456fccdSmrg
92494456fccdSmrgamigaos*)
9250521070a0Smrg  case $host_cpu in
9251521070a0Smrg  powerpc)
9252521070a0Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
9253521070a0Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9254521070a0Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255521070a0Smrg    ;;
9256521070a0Smrg  m68k)
9257521070a0Smrg    library_names_spec='$libname.ixlibrary $libname.a'
9258521070a0Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9259ff63a143Smrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9260521070a0Smrg    ;;
9261521070a0Smrg  esac
92624456fccdSmrg  ;;
92634456fccdSmrg
92644456fccdSmrgbeos*)
92654456fccdSmrg  library_names_spec='${libname}${shared_ext}'
92664456fccdSmrg  dynamic_linker="$host_os ld.so"
92674456fccdSmrg  shlibpath_var=LIBRARY_PATH
92684456fccdSmrg  ;;
92694456fccdSmrg
92704456fccdSmrgbsdi[45]*)
92714456fccdSmrg  version_type=linux
92724456fccdSmrg  need_version=no
92734456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
92744456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
92754456fccdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
92764456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
92774456fccdSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
92784456fccdSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
92794456fccdSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
92804456fccdSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
92814456fccdSmrg  # libtool to hard-code these into programs
92824456fccdSmrg  ;;
92834456fccdSmrg
9284521070a0Smrgcygwin* | mingw* | pw32* | cegcc*)
92854456fccdSmrg  version_type=windows
92864456fccdSmrg  shrext_cmds=".dll"
92874456fccdSmrg  need_version=no
92884456fccdSmrg  need_lib_prefix=no
92894456fccdSmrg
92904456fccdSmrg  case $GCC,$host_os in
9291521070a0Smrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
92924456fccdSmrg    library_names_spec='$libname.dll.a'
92934456fccdSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
92944456fccdSmrg    postinstall_cmds='base_file=`basename \${file}`~
9295521070a0Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
92964456fccdSmrg      dldir=$destdir/`dirname \$dlpath`~
92974456fccdSmrg      test -d \$dldir || mkdir -p \$dldir~
92984456fccdSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
9299521070a0Smrg      chmod a+x \$dldir/$dlname~
9300521070a0Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9301521070a0Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9302521070a0Smrg      fi'
93034456fccdSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
93044456fccdSmrg      dlpath=$dir/\$dldll~
9305521070a0Smrg       $RM \$dlpath'
93064456fccdSmrg    shlibpath_overrides_runpath=yes
93074456fccdSmrg
93084456fccdSmrg    case $host_os in
93094456fccdSmrg    cygwin*)
93104456fccdSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
93114456fccdSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312ff63a143Smrg
9313ff63a143Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
93144456fccdSmrg      ;;
9315521070a0Smrg    mingw* | cegcc*)
93164456fccdSmrg      # MinGW DLLs use traditional 'lib' prefix
93174456fccdSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
93184456fccdSmrg      ;;
93194456fccdSmrg    pw32*)
93204456fccdSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
93214456fccdSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
93224456fccdSmrg      ;;
93234456fccdSmrg    esac
93244456fccdSmrg    ;;
93254456fccdSmrg
93264456fccdSmrg  *)
93274456fccdSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
93284456fccdSmrg    ;;
93294456fccdSmrg  esac
93304456fccdSmrg  dynamic_linker='Win32 ld.exe'
93314456fccdSmrg  # FIXME: first we should search . and the directory the executable is in
93324456fccdSmrg  shlibpath_var=PATH
93334456fccdSmrg  ;;
93344456fccdSmrg
93354456fccdSmrgdarwin* | rhapsody*)
93364456fccdSmrg  dynamic_linker="$host_os dyld"
93374456fccdSmrg  version_type=darwin
93384456fccdSmrg  need_lib_prefix=no
93394456fccdSmrg  need_version=no
9340521070a0Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
93414456fccdSmrg  soname_spec='${libname}${release}${major}$shared_ext'
93424456fccdSmrg  shlibpath_overrides_runpath=yes
93434456fccdSmrg  shlibpath_var=DYLD_LIBRARY_PATH
93444456fccdSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
934542d69509Smrg
9346521070a0Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
93474456fccdSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
93484456fccdSmrg  ;;
93494456fccdSmrg
93504456fccdSmrgdgux*)
93514456fccdSmrg  version_type=linux
93524456fccdSmrg  need_lib_prefix=no
93534456fccdSmrg  need_version=no
93544456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
93554456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
93564456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
93574456fccdSmrg  ;;
93584456fccdSmrg
93594456fccdSmrgfreebsd1*)
93604456fccdSmrg  dynamic_linker=no
93614456fccdSmrg  ;;
93624456fccdSmrg
93634456fccdSmrgfreebsd* | dragonfly*)
93644456fccdSmrg  # DragonFly does not have aout.  When/if they implement a new
93654456fccdSmrg  # versioning mechanism, adjust this.
93664456fccdSmrg  if test -x /usr/bin/objformat; then
93674456fccdSmrg    objformat=`/usr/bin/objformat`
93684456fccdSmrg  else
93694456fccdSmrg    case $host_os in
93704456fccdSmrg    freebsd[123]*) objformat=aout ;;
93714456fccdSmrg    *) objformat=elf ;;
93724456fccdSmrg    esac
93734456fccdSmrg  fi
93744456fccdSmrg  version_type=freebsd-$objformat
93754456fccdSmrg  case $version_type in
93764456fccdSmrg    freebsd-elf*)
93774456fccdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
93784456fccdSmrg      need_version=no
93794456fccdSmrg      need_lib_prefix=no
93804456fccdSmrg      ;;
93814456fccdSmrg    freebsd-*)
93824456fccdSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
93834456fccdSmrg      need_version=yes
93844456fccdSmrg      ;;
93854456fccdSmrg  esac
93864456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
93874456fccdSmrg  case $host_os in
93884456fccdSmrg  freebsd2*)
93894456fccdSmrg    shlibpath_overrides_runpath=yes
93904456fccdSmrg    ;;
93914456fccdSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
93924456fccdSmrg    shlibpath_overrides_runpath=yes
93934456fccdSmrg    hardcode_into_libs=yes
93944456fccdSmrg    ;;
93954456fccdSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
93964456fccdSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
93974456fccdSmrg    shlibpath_overrides_runpath=no
93984456fccdSmrg    hardcode_into_libs=yes
93994456fccdSmrg    ;;
940042d69509Smrg  *) # from 4.6 on, and DragonFly
94014456fccdSmrg    shlibpath_overrides_runpath=yes
94024456fccdSmrg    hardcode_into_libs=yes
94034456fccdSmrg    ;;
94044456fccdSmrg  esac
94054456fccdSmrg  ;;
94064456fccdSmrg
94074456fccdSmrggnu*)
94084456fccdSmrg  version_type=linux
94094456fccdSmrg  need_lib_prefix=no
94104456fccdSmrg  need_version=no
94114456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
94124456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
94134456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
94144456fccdSmrg  hardcode_into_libs=yes
94154456fccdSmrg  ;;
94164456fccdSmrg
9417ff63a143Smrghaiku*)
9418ff63a143Smrg  version_type=linux
9419ff63a143Smrg  need_lib_prefix=no
9420ff63a143Smrg  need_version=no
9421ff63a143Smrg  dynamic_linker="$host_os runtime_loader"
9422ff63a143Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9423ff63a143Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9424ff63a143Smrg  shlibpath_var=LIBRARY_PATH
9425ff63a143Smrg  shlibpath_overrides_runpath=yes
9426ff63a143Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9427ff63a143Smrg  hardcode_into_libs=yes
9428ff63a143Smrg  ;;
9429ff63a143Smrg
94304456fccdSmrghpux9* | hpux10* | hpux11*)
94314456fccdSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
94324456fccdSmrg  # link against other versions.
94334456fccdSmrg  version_type=sunos
94344456fccdSmrg  need_lib_prefix=no
94354456fccdSmrg  need_version=no
94364456fccdSmrg  case $host_cpu in
94374456fccdSmrg  ia64*)
94384456fccdSmrg    shrext_cmds='.so'
94394456fccdSmrg    hardcode_into_libs=yes
94404456fccdSmrg    dynamic_linker="$host_os dld.so"
94414456fccdSmrg    shlibpath_var=LD_LIBRARY_PATH
94424456fccdSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
94434456fccdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
94444456fccdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
94454456fccdSmrg    if test "X$HPUX_IA64_MODE" = X32; then
94464456fccdSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
94474456fccdSmrg    else
94484456fccdSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
94494456fccdSmrg    fi
94504456fccdSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
94514456fccdSmrg    ;;
9452521070a0Smrg  hppa*64*)
9453521070a0Smrg    shrext_cmds='.sl'
9454521070a0Smrg    hardcode_into_libs=yes
9455521070a0Smrg    dynamic_linker="$host_os dld.sl"
9456521070a0Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9457521070a0Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9458521070a0Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459521070a0Smrg    soname_spec='${libname}${release}${shared_ext}$major'
9460521070a0Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9461521070a0Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9462521070a0Smrg    ;;
9463521070a0Smrg  *)
94644456fccdSmrg    shrext_cmds='.sl'
94654456fccdSmrg    dynamic_linker="$host_os dld.sl"
94664456fccdSmrg    shlibpath_var=SHLIB_PATH
94674456fccdSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
94684456fccdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
94694456fccdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
94704456fccdSmrg    ;;
94714456fccdSmrg  esac
9472ff63a143Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
94734456fccdSmrg  postinstall_cmds='chmod 555 $lib'
9474ff63a143Smrg  # or fails outright, so override atomically:
9475ff63a143Smrg  install_override_mode=555
94764456fccdSmrg  ;;
94774456fccdSmrg
947842d69509Smrginterix[3-9]*)
94794456fccdSmrg  version_type=linux
94804456fccdSmrg  need_lib_prefix=no
94814456fccdSmrg  need_version=no
94824456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
94834456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
94844456fccdSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
94854456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
94864456fccdSmrg  shlibpath_overrides_runpath=no
94874456fccdSmrg  hardcode_into_libs=yes
94884456fccdSmrg  ;;
94894456fccdSmrg
94904456fccdSmrgirix5* | irix6* | nonstopux*)
94914456fccdSmrg  case $host_os in
94924456fccdSmrg    nonstopux*) version_type=nonstopux ;;
94934456fccdSmrg    *)
94944456fccdSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
94954456fccdSmrg		version_type=linux
94964456fccdSmrg	else
94974456fccdSmrg		version_type=irix
94984456fccdSmrg	fi ;;
94994456fccdSmrg  esac
95004456fccdSmrg  need_lib_prefix=no
95014456fccdSmrg  need_version=no
95024456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
95034456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
95044456fccdSmrg  case $host_os in
95054456fccdSmrg  irix5* | nonstopux*)
95064456fccdSmrg    libsuff= shlibsuff=
95074456fccdSmrg    ;;
95084456fccdSmrg  *)
95094456fccdSmrg    case $LD in # libtool.m4 will add one of these switches to LD
95104456fccdSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
95114456fccdSmrg      libsuff= shlibsuff= libmagic=32-bit;;
95124456fccdSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
95134456fccdSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
95144456fccdSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
95154456fccdSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
95164456fccdSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
95174456fccdSmrg    esac
95184456fccdSmrg    ;;
95194456fccdSmrg  esac
95204456fccdSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
95214456fccdSmrg  shlibpath_overrides_runpath=no
95224456fccdSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
95234456fccdSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
95244456fccdSmrg  hardcode_into_libs=yes
95254456fccdSmrg  ;;
95264456fccdSmrg
95274456fccdSmrg# No shared lib support for Linux oldld, aout, or coff.
95284456fccdSmrglinux*oldld* | linux*aout* | linux*coff*)
95294456fccdSmrg  dynamic_linker=no
95304456fccdSmrg  ;;
95314456fccdSmrg
95324456fccdSmrg# This must be Linux ELF.
9533ff63a143Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
95344456fccdSmrg  version_type=linux
95354456fccdSmrg  need_lib_prefix=no
95364456fccdSmrg  need_version=no
95374456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
95384456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
95394456fccdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
95404456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
95414456fccdSmrg  shlibpath_overrides_runpath=no
9542ff63a143Smrg
9543521070a0Smrg  # Some binutils ld are patched to set DT_RUNPATH
9544ff63a143Smrg  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9545ff63a143Smrg  $as_echo_n "(cached) " >&6
9546ff63a143Smrgelse
9547ff63a143Smrg  lt_cv_shlibpath_overrides_runpath=no
9548ff63a143Smrg    save_LDFLAGS=$LDFLAGS
9549ff63a143Smrg    save_libdir=$libdir
9550ff63a143Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9551ff63a143Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9552ff63a143Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553521070a0Smrg/* end confdefs.h.  */
9554521070a0Smrg
9555521070a0Smrgint
9556521070a0Smrgmain ()
9557521070a0Smrg{
9558521070a0Smrg
9559521070a0Smrg  ;
9560521070a0Smrg  return 0;
9561521070a0Smrg}
9562521070a0Smrg_ACEOF
9563521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
9564521070a0Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9565ff63a143Smrg  lt_cv_shlibpath_overrides_runpath=yes
9566521070a0Smrgfi
9567521070a0Smrgfi
9568521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
9569521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
9570ff63a143Smrg    LDFLAGS=$save_LDFLAGS
9571ff63a143Smrg    libdir=$save_libdir
9572ff63a143Smrg
9573ff63a143Smrgfi
9574ff63a143Smrg
9575ff63a143Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9576521070a0Smrg
95774456fccdSmrg  # This implies no fast_install, which is unacceptable.
95784456fccdSmrg  # Some rework will be needed to allow for fast_install
95794456fccdSmrg  # before this can be enabled.
95804456fccdSmrg  hardcode_into_libs=yes
95814456fccdSmrg
9582ff63a143Smrg  # Add ABI-specific directories to the system library path.
9583ff63a143Smrg  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9584ff63a143Smrg
95854456fccdSmrg  # Append ld.so.conf contents to the search path
95864456fccdSmrg  if test -f /etc/ld.so.conf; then
9587ff63a143Smrg    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9588ff63a143Smrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9589ff63a143Smrg
95904456fccdSmrg  fi
95914456fccdSmrg
95924456fccdSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
95934456fccdSmrg  # powerpc, because MkLinux only supported shared libraries with the
95944456fccdSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
95954456fccdSmrg  # most powerpc-linux boxes support dynamic linking these days and
95964456fccdSmrg  # people can always --disable-shared, the test was removed, and we
95974456fccdSmrg  # assume the GNU/Linux dynamic linker is in use.
95984456fccdSmrg  dynamic_linker='GNU/Linux ld.so'
95994456fccdSmrg  ;;
96004456fccdSmrg
96014456fccdSmrgnetbsd*)
96024456fccdSmrg  version_type=sunos
96034456fccdSmrg  need_lib_prefix=no
96044456fccdSmrg  need_version=no
9605521070a0Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
96064456fccdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
96074456fccdSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
96084456fccdSmrg    dynamic_linker='NetBSD (a.out) ld.so'
96094456fccdSmrg  else
96104456fccdSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
96114456fccdSmrg    soname_spec='${libname}${release}${shared_ext}$major'
96124456fccdSmrg    dynamic_linker='NetBSD ld.elf_so'
96134456fccdSmrg  fi
96144456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
96154456fccdSmrg  shlibpath_overrides_runpath=yes
96164456fccdSmrg  hardcode_into_libs=yes
96174456fccdSmrg  ;;
96184456fccdSmrg
96194456fccdSmrgnewsos6)
96204456fccdSmrg  version_type=linux
96214456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
96224456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
96234456fccdSmrg  shlibpath_overrides_runpath=yes
96244456fccdSmrg  ;;
96254456fccdSmrg
9626521070a0Smrg*nto* | *qnx*)
9627521070a0Smrg  version_type=qnx
96284456fccdSmrg  need_lib_prefix=no
96294456fccdSmrg  need_version=no
96304456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
96314456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
96324456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
9633521070a0Smrg  shlibpath_overrides_runpath=no
9634521070a0Smrg  hardcode_into_libs=yes
9635521070a0Smrg  dynamic_linker='ldqnx.so'
96364456fccdSmrg  ;;
96374456fccdSmrg
96384456fccdSmrgopenbsd*)
96394456fccdSmrg  version_type=sunos
96404456fccdSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
96414456fccdSmrg  need_lib_prefix=no
96424456fccdSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
96434456fccdSmrg  case $host_os in
9644521070a0Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9645521070a0Smrg    *)				need_version=no  ;;
96464456fccdSmrg  esac
96474456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
96484456fccdSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
96494456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
9650521070a0Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
96514456fccdSmrg    case $host_os in
96524456fccdSmrg      openbsd2.[89] | openbsd2.[89].*)
96534456fccdSmrg	shlibpath_overrides_runpath=no
96544456fccdSmrg	;;
96554456fccdSmrg      *)
96564456fccdSmrg	shlibpath_overrides_runpath=yes
96574456fccdSmrg	;;
96584456fccdSmrg      esac
96594456fccdSmrg  else
96604456fccdSmrg    shlibpath_overrides_runpath=yes
96614456fccdSmrg  fi
96624456fccdSmrg  ;;
96634456fccdSmrg
96644456fccdSmrgos2*)
96654456fccdSmrg  libname_spec='$name'
96664456fccdSmrg  shrext_cmds=".dll"
96674456fccdSmrg  need_lib_prefix=no
96684456fccdSmrg  library_names_spec='$libname${shared_ext} $libname.a'
96694456fccdSmrg  dynamic_linker='OS/2 ld.exe'
96704456fccdSmrg  shlibpath_var=LIBPATH
96714456fccdSmrg  ;;
96724456fccdSmrg
96734456fccdSmrgosf3* | osf4* | osf5*)
96744456fccdSmrg  version_type=osf
96754456fccdSmrg  need_lib_prefix=no
96764456fccdSmrg  need_version=no
96774456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
96784456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
96794456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
96804456fccdSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
96814456fccdSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
96824456fccdSmrg  ;;
96834456fccdSmrg
968442d69509Smrgrdos*)
968542d69509Smrg  dynamic_linker=no
968642d69509Smrg  ;;
968742d69509Smrg
96884456fccdSmrgsolaris*)
96894456fccdSmrg  version_type=linux
96904456fccdSmrg  need_lib_prefix=no
96914456fccdSmrg  need_version=no
96924456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
96934456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
96944456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
96954456fccdSmrg  shlibpath_overrides_runpath=yes
96964456fccdSmrg  hardcode_into_libs=yes
96974456fccdSmrg  # ldd complains unless libraries are executable
96984456fccdSmrg  postinstall_cmds='chmod +x $lib'
96994456fccdSmrg  ;;
97004456fccdSmrg
97014456fccdSmrgsunos4*)
97024456fccdSmrg  version_type=sunos
97034456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
97044456fccdSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
97054456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
97064456fccdSmrg  shlibpath_overrides_runpath=yes
97074456fccdSmrg  if test "$with_gnu_ld" = yes; then
97084456fccdSmrg    need_lib_prefix=no
97094456fccdSmrg  fi
97104456fccdSmrg  need_version=yes
97114456fccdSmrg  ;;
97124456fccdSmrg
97134456fccdSmrgsysv4 | sysv4.3*)
97144456fccdSmrg  version_type=linux
97154456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
97164456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
97174456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
97184456fccdSmrg  case $host_vendor in
97194456fccdSmrg    sni)
97204456fccdSmrg      shlibpath_overrides_runpath=no
97214456fccdSmrg      need_lib_prefix=no
97224456fccdSmrg      runpath_var=LD_RUN_PATH
97234456fccdSmrg      ;;
97244456fccdSmrg    siemens)
97254456fccdSmrg      need_lib_prefix=no
97264456fccdSmrg      ;;
97274456fccdSmrg    motorola)
97284456fccdSmrg      need_lib_prefix=no
97294456fccdSmrg      need_version=no
97304456fccdSmrg      shlibpath_overrides_runpath=no
97314456fccdSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
97324456fccdSmrg      ;;
97334456fccdSmrg  esac
97344456fccdSmrg  ;;
97354456fccdSmrg
97364456fccdSmrgsysv4*MP*)
97374456fccdSmrg  if test -d /usr/nec ;then
97384456fccdSmrg    version_type=linux
97394456fccdSmrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
97404456fccdSmrg    soname_spec='$libname${shared_ext}.$major'
97414456fccdSmrg    shlibpath_var=LD_LIBRARY_PATH
97424456fccdSmrg  fi
97434456fccdSmrg  ;;
97444456fccdSmrg
97454456fccdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
97464456fccdSmrg  version_type=freebsd-elf
97474456fccdSmrg  need_lib_prefix=no
97484456fccdSmrg  need_version=no
97494456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
97504456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
97514456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
9752521070a0Smrg  shlibpath_overrides_runpath=yes
97534456fccdSmrg  hardcode_into_libs=yes
97544456fccdSmrg  if test "$with_gnu_ld" = yes; then
97554456fccdSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
97564456fccdSmrg  else
97574456fccdSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
97584456fccdSmrg    case $host_os in
97594456fccdSmrg      sco3.2v5*)
97604456fccdSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
97614456fccdSmrg	;;
97624456fccdSmrg    esac
97634456fccdSmrg  fi
97644456fccdSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
97654456fccdSmrg  ;;
97664456fccdSmrg
9767521070a0Smrgtpf*)
9768521070a0Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9769521070a0Smrg  version_type=linux
9770521070a0Smrg  need_lib_prefix=no
9771521070a0Smrg  need_version=no
9772521070a0Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773521070a0Smrg  shlibpath_var=LD_LIBRARY_PATH
9774521070a0Smrg  shlibpath_overrides_runpath=no
9775521070a0Smrg  hardcode_into_libs=yes
9776521070a0Smrg  ;;
9777521070a0Smrg
97784456fccdSmrguts4*)
97794456fccdSmrg  version_type=linux
97804456fccdSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
97814456fccdSmrg  soname_spec='${libname}${release}${shared_ext}$major'
97824456fccdSmrg  shlibpath_var=LD_LIBRARY_PATH
97834456fccdSmrg  ;;
97844456fccdSmrg
97854456fccdSmrg*)
97864456fccdSmrg  dynamic_linker=no
97874456fccdSmrg  ;;
97884456fccdSmrgesac
9789521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
979042d69509Smrg$as_echo "$dynamic_linker" >&6; }
97914456fccdSmrgtest "$dynamic_linker" = no && can_build_shared=no
97924456fccdSmrg
9793521070a0Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9794521070a0Smrgif test "$GCC" = yes; then
9795521070a0Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
979642d69509Smrgfi
979742d69509Smrg
9798521070a0Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9799521070a0Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9800521070a0Smrgfi
980142d69509Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9802521070a0Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
980342d69509Smrgfi
980442d69509Smrg
980542d69509Smrg
98064456fccdSmrg
98074456fccdSmrg
98084456fccdSmrg
98094456fccdSmrg
98104456fccdSmrg
98114456fccdSmrg
98124456fccdSmrg
98134456fccdSmrg
98144456fccdSmrg
98154456fccdSmrg
98164456fccdSmrg
98174456fccdSmrg
98184456fccdSmrg
98194456fccdSmrg
98204456fccdSmrg
98214456fccdSmrg
98224456fccdSmrg
98234456fccdSmrg
98244456fccdSmrg
98254456fccdSmrg
98264456fccdSmrg
98274456fccdSmrg
98284456fccdSmrg
98294456fccdSmrg
98304456fccdSmrg
98314456fccdSmrg
98324456fccdSmrg
98334456fccdSmrg
98344456fccdSmrg
98354456fccdSmrg
98364456fccdSmrg
98374456fccdSmrg
98384456fccdSmrg
98394456fccdSmrg
98404456fccdSmrg
98414456fccdSmrg
98424456fccdSmrg
98434456fccdSmrg
98444456fccdSmrg
98454456fccdSmrg
98464456fccdSmrg
98474456fccdSmrg
98484456fccdSmrg
98494456fccdSmrg
98504456fccdSmrg
98514456fccdSmrg
98524456fccdSmrg
98534456fccdSmrg
98544456fccdSmrg
98554456fccdSmrg
98564456fccdSmrg
98574456fccdSmrg
98584456fccdSmrg
98594456fccdSmrg
98604456fccdSmrg
98614456fccdSmrg
98624456fccdSmrg
98634456fccdSmrg
98644456fccdSmrg
98654456fccdSmrg
98664456fccdSmrg
98674456fccdSmrg
98684456fccdSmrg
98694456fccdSmrg
98704456fccdSmrg
98714456fccdSmrg
98724456fccdSmrg
987342d69509Smrg
98744456fccdSmrg
98754456fccdSmrg
98764456fccdSmrg
98774456fccdSmrg
98784456fccdSmrg
98794456fccdSmrg
98804456fccdSmrg
98814456fccdSmrg
98824456fccdSmrg
98834456fccdSmrg
98844456fccdSmrg
9885ff63a143Smrg
9886ff63a143Smrg
9887ff63a143Smrg
9888ff63a143Smrg
9889ff63a143Smrg
98904456fccdSmrg
98914456fccdSmrg
98924456fccdSmrg
98934456fccdSmrg
98944456fccdSmrg
98954456fccdSmrg
9896521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9897521070a0Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9898521070a0Smrghardcode_action=
9899521070a0Smrgif test -n "$hardcode_libdir_flag_spec" ||
9900521070a0Smrg   test -n "$runpath_var" ||
9901521070a0Smrg   test "X$hardcode_automatic" = "Xyes" ; then
99024456fccdSmrg
9903521070a0Smrg  # We can hardcode non-existent directories.
9904521070a0Smrg  if test "$hardcode_direct" != no &&
9905521070a0Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9906521070a0Smrg     # have to relink, otherwise we might link with an installed library
9907521070a0Smrg     # when we should be linking with a yet-to-be-installed one
9908521070a0Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9909521070a0Smrg     test "$hardcode_minus_L" != no; then
9910521070a0Smrg    # Linking always hardcodes the temporary library directory.
9911521070a0Smrg    hardcode_action=relink
9912521070a0Smrg  else
9913521070a0Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9914521070a0Smrg    hardcode_action=immediate
9915521070a0Smrg  fi
9916521070a0Smrgelse
9917521070a0Smrg  # We cannot hardcode anything, or else we can only hardcode existing
9918521070a0Smrg  # directories.
9919521070a0Smrg  hardcode_action=unsupported
9920521070a0Smrgfi
9921521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9922521070a0Smrg$as_echo "$hardcode_action" >&6; }
99234456fccdSmrg
9924521070a0Smrgif test "$hardcode_action" = relink ||
9925521070a0Smrg   test "$inherit_rpath" = yes; then
9926521070a0Smrg  # Fast installation is not supported
9927521070a0Smrg  enable_fast_install=no
9928521070a0Smrgelif test "$shlibpath_overrides_runpath" = yes ||
9929521070a0Smrg     test "$enable_shared" = no; then
9930521070a0Smrg  # Fast installation is not necessary
9931521070a0Smrg  enable_fast_install=needless
9932521070a0Smrgfi
99334456fccdSmrg
99344456fccdSmrg
99354456fccdSmrg
99364456fccdSmrg
99374456fccdSmrg
99384456fccdSmrg
9939521070a0Smrg  if test "x$enable_dlopen" != xyes; then
9940521070a0Smrg  enable_dlopen=unknown
9941521070a0Smrg  enable_dlopen_self=unknown
9942521070a0Smrg  enable_dlopen_self_static=unknown
9943521070a0Smrgelse
9944521070a0Smrg  lt_cv_dlopen=no
9945521070a0Smrg  lt_cv_dlopen_libs=
99464456fccdSmrg
9947521070a0Smrg  case $host_os in
9948521070a0Smrg  beos*)
9949521070a0Smrg    lt_cv_dlopen="load_add_on"
9950521070a0Smrg    lt_cv_dlopen_libs=
9951521070a0Smrg    lt_cv_dlopen_self=yes
9952521070a0Smrg    ;;
99534456fccdSmrg
9954521070a0Smrg  mingw* | pw32* | cegcc*)
9955521070a0Smrg    lt_cv_dlopen="LoadLibrary"
9956521070a0Smrg    lt_cv_dlopen_libs=
9957521070a0Smrg    ;;
99584456fccdSmrg
9959521070a0Smrg  cygwin*)
9960521070a0Smrg    lt_cv_dlopen="dlopen"
9961521070a0Smrg    lt_cv_dlopen_libs=
9962521070a0Smrg    ;;
99634456fccdSmrg
9964521070a0Smrg  darwin*)
9965521070a0Smrg  # if libdl is installed we need to link against it
9966521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9967521070a0Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
9968521070a0Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9969521070a0Smrg  $as_echo_n "(cached) " >&6
9970521070a0Smrgelse
9971521070a0Smrg  ac_check_lib_save_LIBS=$LIBS
9972521070a0SmrgLIBS="-ldl  $LIBS"
9973521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974521070a0Smrg/* end confdefs.h.  */
99754456fccdSmrg
9976521070a0Smrg/* Override any GCC internal prototype to avoid an error.
9977521070a0Smrg   Use char because int might match the return type of a GCC
9978521070a0Smrg   builtin and then its argument prototype would still apply.  */
9979521070a0Smrg#ifdef __cplusplus
9980521070a0Smrgextern "C"
9981521070a0Smrg#endif
9982521070a0Smrgchar dlopen ();
9983521070a0Smrgint
9984521070a0Smrgmain ()
9985521070a0Smrg{
9986521070a0Smrgreturn dlopen ();
9987521070a0Smrg  ;
9988521070a0Smrg  return 0;
9989521070a0Smrg}
9990521070a0Smrg_ACEOF
9991521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
9992521070a0Smrg  ac_cv_lib_dl_dlopen=yes
9993521070a0Smrgelse
9994521070a0Smrg  ac_cv_lib_dl_dlopen=no
9995521070a0Smrgfi
9996521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
9997521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
9998521070a0SmrgLIBS=$ac_check_lib_save_LIBS
9999521070a0Smrgfi
10000521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10001521070a0Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10002521070a0Smrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10003521070a0Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10004521070a0Smrgelse
100054456fccdSmrg
10006521070a0Smrg    lt_cv_dlopen="dyld"
10007521070a0Smrg    lt_cv_dlopen_libs=
10008521070a0Smrg    lt_cv_dlopen_self=yes
100094456fccdSmrg
10010521070a0Smrgfi
100114456fccdSmrg
10012521070a0Smrg    ;;
100134456fccdSmrg
10014521070a0Smrg  *)
10015521070a0Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10016521070a0Smrgif test "x$ac_cv_func_shl_load" = x""yes; then :
10017521070a0Smrg  lt_cv_dlopen="shl_load"
10018521070a0Smrgelse
10019521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10020521070a0Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
10021521070a0Smrgif test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10022521070a0Smrg  $as_echo_n "(cached) " >&6
10023521070a0Smrgelse
10024521070a0Smrg  ac_check_lib_save_LIBS=$LIBS
10025521070a0SmrgLIBS="-ldld  $LIBS"
10026521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027521070a0Smrg/* end confdefs.h.  */
100284456fccdSmrg
10029521070a0Smrg/* Override any GCC internal prototype to avoid an error.
10030521070a0Smrg   Use char because int might match the return type of a GCC
10031521070a0Smrg   builtin and then its argument prototype would still apply.  */
10032521070a0Smrg#ifdef __cplusplus
10033521070a0Smrgextern "C"
10034521070a0Smrg#endif
10035521070a0Smrgchar shl_load ();
10036521070a0Smrgint
10037521070a0Smrgmain ()
10038521070a0Smrg{
10039521070a0Smrgreturn shl_load ();
10040521070a0Smrg  ;
10041521070a0Smrg  return 0;
10042521070a0Smrg}
10043521070a0Smrg_ACEOF
10044521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
10045521070a0Smrg  ac_cv_lib_dld_shl_load=yes
100464456fccdSmrgelse
10047521070a0Smrg  ac_cv_lib_dld_shl_load=no
100484456fccdSmrgfi
10049521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
10050521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
10051521070a0SmrgLIBS=$ac_check_lib_save_LIBS
10052521070a0Smrgfi
10053521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10054521070a0Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10055521070a0Smrgif test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10056521070a0Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10057521070a0Smrgelse
10058521070a0Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10059521070a0Smrgif test "x$ac_cv_func_dlopen" = x""yes; then :
10060521070a0Smrg  lt_cv_dlopen="dlopen"
10061521070a0Smrgelse
10062521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10063521070a0Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
10064521070a0Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10065521070a0Smrg  $as_echo_n "(cached) " >&6
10066521070a0Smrgelse
10067521070a0Smrg  ac_check_lib_save_LIBS=$LIBS
10068521070a0SmrgLIBS="-ldl  $LIBS"
10069521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070521070a0Smrg/* end confdefs.h.  */
100714456fccdSmrg
10072521070a0Smrg/* Override any GCC internal prototype to avoid an error.
10073521070a0Smrg   Use char because int might match the return type of a GCC
10074521070a0Smrg   builtin and then its argument prototype would still apply.  */
10075521070a0Smrg#ifdef __cplusplus
10076521070a0Smrgextern "C"
10077521070a0Smrg#endif
10078521070a0Smrgchar dlopen ();
10079521070a0Smrgint
10080521070a0Smrgmain ()
10081521070a0Smrg{
10082521070a0Smrgreturn dlopen ();
10083521070a0Smrg  ;
10084521070a0Smrg  return 0;
10085521070a0Smrg}
10086521070a0Smrg_ACEOF
10087521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
10088521070a0Smrg  ac_cv_lib_dl_dlopen=yes
10089521070a0Smrgelse
10090521070a0Smrg  ac_cv_lib_dl_dlopen=no
10091521070a0Smrgfi
10092521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
10093521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
10094521070a0SmrgLIBS=$ac_check_lib_save_LIBS
10095521070a0Smrgfi
10096521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10097521070a0Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10098521070a0Smrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10099521070a0Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10100521070a0Smrgelse
10101521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10102521070a0Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10103521070a0Smrgif test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10104521070a0Smrg  $as_echo_n "(cached) " >&6
10105521070a0Smrgelse
10106521070a0Smrg  ac_check_lib_save_LIBS=$LIBS
10107521070a0SmrgLIBS="-lsvld  $LIBS"
10108521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109521070a0Smrg/* end confdefs.h.  */
101104456fccdSmrg
10111521070a0Smrg/* Override any GCC internal prototype to avoid an error.
10112521070a0Smrg   Use char because int might match the return type of a GCC
10113521070a0Smrg   builtin and then its argument prototype would still apply.  */
10114521070a0Smrg#ifdef __cplusplus
10115521070a0Smrgextern "C"
10116521070a0Smrg#endif
10117521070a0Smrgchar dlopen ();
10118521070a0Smrgint
10119521070a0Smrgmain ()
10120521070a0Smrg{
10121521070a0Smrgreturn dlopen ();
10122521070a0Smrg  ;
10123521070a0Smrg  return 0;
10124521070a0Smrg}
10125521070a0Smrg_ACEOF
10126521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
10127521070a0Smrg  ac_cv_lib_svld_dlopen=yes
10128521070a0Smrgelse
10129521070a0Smrg  ac_cv_lib_svld_dlopen=no
10130521070a0Smrgfi
10131521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
10132521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
10133521070a0SmrgLIBS=$ac_check_lib_save_LIBS
10134521070a0Smrgfi
10135521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10136521070a0Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10137521070a0Smrgif test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10138521070a0Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10139521070a0Smrgelse
10140521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10141521070a0Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
10142521070a0Smrgif test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10143521070a0Smrg  $as_echo_n "(cached) " >&6
10144521070a0Smrgelse
10145521070a0Smrg  ac_check_lib_save_LIBS=$LIBS
10146521070a0SmrgLIBS="-ldld  $LIBS"
10147521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148521070a0Smrg/* end confdefs.h.  */
101494456fccdSmrg
10150521070a0Smrg/* Override any GCC internal prototype to avoid an error.
10151521070a0Smrg   Use char because int might match the return type of a GCC
10152521070a0Smrg   builtin and then its argument prototype would still apply.  */
10153521070a0Smrg#ifdef __cplusplus
10154521070a0Smrgextern "C"
10155521070a0Smrg#endif
10156521070a0Smrgchar dld_link ();
10157521070a0Smrgint
10158521070a0Smrgmain ()
10159521070a0Smrg{
10160521070a0Smrgreturn dld_link ();
10161521070a0Smrg  ;
10162521070a0Smrg  return 0;
10163521070a0Smrg}
10164521070a0Smrg_ACEOF
10165521070a0Smrgif ac_fn_c_try_link "$LINENO"; then :
10166521070a0Smrg  ac_cv_lib_dld_dld_link=yes
10167521070a0Smrgelse
10168521070a0Smrg  ac_cv_lib_dld_dld_link=no
10169521070a0Smrgfi
10170521070a0Smrgrm -f core conftest.err conftest.$ac_objext \
10171521070a0Smrg    conftest$ac_exeext conftest.$ac_ext
10172521070a0SmrgLIBS=$ac_check_lib_save_LIBS
10173521070a0Smrgfi
10174521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10175521070a0Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10176521070a0Smrgif test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10177521070a0Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10178521070a0Smrgfi
101794456fccdSmrg
101804456fccdSmrg
10181521070a0Smrgfi
101824456fccdSmrg
101834456fccdSmrg
10184521070a0Smrgfi
101854456fccdSmrg
101864456fccdSmrg
10187521070a0Smrgfi
101884456fccdSmrg
101894456fccdSmrg
10190521070a0Smrgfi
101914456fccdSmrg
101924456fccdSmrg
10193521070a0Smrgfi
101944456fccdSmrg
10195521070a0Smrg    ;;
101964456fccdSmrg  esac
101974456fccdSmrg
10198521070a0Smrg  if test "x$lt_cv_dlopen" != xno; then
10199521070a0Smrg    enable_dlopen=yes
10200521070a0Smrg  else
10201521070a0Smrg    enable_dlopen=no
102024456fccdSmrg  fi
102034456fccdSmrg
10204521070a0Smrg  case $lt_cv_dlopen in
10205521070a0Smrg  dlopen)
10206521070a0Smrg    save_CPPFLAGS="$CPPFLAGS"
10207521070a0Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
102084456fccdSmrg
10209521070a0Smrg    save_LDFLAGS="$LDFLAGS"
10210521070a0Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
102114456fccdSmrg
10212521070a0Smrg    save_LIBS="$LIBS"
10213521070a0Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
102144456fccdSmrg
10215521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10216521070a0Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10217521070a0Smrgif test "${lt_cv_dlopen_self+set}" = set; then :
10218521070a0Smrg  $as_echo_n "(cached) " >&6
10219521070a0Smrgelse
10220521070a0Smrg  	  if test "$cross_compiling" = yes; then :
10221521070a0Smrg  lt_cv_dlopen_self=cross
10222521070a0Smrgelse
10223521070a0Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224521070a0Smrg  lt_status=$lt_dlunknown
10225521070a0Smrg  cat > conftest.$ac_ext <<_LT_EOF
10226ff63a143Smrg#line $LINENO "configure"
10227521070a0Smrg#include "confdefs.h"
102284456fccdSmrg
10229521070a0Smrg#if HAVE_DLFCN_H
10230521070a0Smrg#include <dlfcn.h>
10231521070a0Smrg#endif
102324456fccdSmrg
10233521070a0Smrg#include <stdio.h>
102344456fccdSmrg
10235521070a0Smrg#ifdef RTLD_GLOBAL
10236521070a0Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
10237521070a0Smrg#else
10238521070a0Smrg#  ifdef DL_GLOBAL
10239521070a0Smrg#    define LT_DLGLOBAL		DL_GLOBAL
10240521070a0Smrg#  else
10241521070a0Smrg#    define LT_DLGLOBAL		0
10242521070a0Smrg#  endif
10243521070a0Smrg#endif
102444456fccdSmrg
10245521070a0Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246521070a0Smrg   find out it does not work in some platform. */
10247521070a0Smrg#ifndef LT_DLLAZY_OR_NOW
10248521070a0Smrg#  ifdef RTLD_LAZY
10249521070a0Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10250521070a0Smrg#  else
10251521070a0Smrg#    ifdef DL_LAZY
10252521070a0Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
10253521070a0Smrg#    else
10254521070a0Smrg#      ifdef RTLD_NOW
10255521070a0Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10256521070a0Smrg#      else
10257521070a0Smrg#        ifdef DL_NOW
10258521070a0Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
10259521070a0Smrg#        else
10260521070a0Smrg#          define LT_DLLAZY_OR_NOW	0
10261521070a0Smrg#        endif
10262521070a0Smrg#      endif
10263521070a0Smrg#    endif
10264521070a0Smrg#  endif
10265521070a0Smrg#endif
102664456fccdSmrg
10267ff63a143Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
10268ff63a143Smrg   correspondingly for the symbols needed.  */
10269ff63a143Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10270ff63a143Smrgvoid fnord () __attribute__((visibility("default")));
10271ff63a143Smrg#endif
10272ff63a143Smrg
10273ff63a143Smrgvoid fnord () { int i=42; }
10274521070a0Smrgint main ()
10275521070a0Smrg{
10276521070a0Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10277521070a0Smrg  int status = $lt_dlunknown;
102784456fccdSmrg
10279521070a0Smrg  if (self)
10280521070a0Smrg    {
10281521070a0Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10282ff63a143Smrg      else
10283ff63a143Smrg        {
10284ff63a143Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10285ff63a143Smrg          else puts (dlerror ());
10286ff63a143Smrg	}
10287521070a0Smrg      /* dlclose (self); */
10288521070a0Smrg    }
10289521070a0Smrg  else
10290521070a0Smrg    puts (dlerror ());
102914456fccdSmrg
10292521070a0Smrg  return status;
10293521070a0Smrg}
10294521070a0Smrg_LT_EOF
10295521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10296521070a0Smrg  (eval $ac_link) 2>&5
10297521070a0Smrg  ac_status=$?
10298521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299521070a0Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10300521070a0Smrg    (./conftest; exit; ) >&5 2>/dev/null
10301521070a0Smrg    lt_status=$?
10302521070a0Smrg    case x$lt_status in
10303521070a0Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10304521070a0Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10305521070a0Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10306521070a0Smrg    esac
10307521070a0Smrg  else :
10308521070a0Smrg    # compilation failed
10309521070a0Smrg    lt_cv_dlopen_self=no
10310521070a0Smrg  fi
10311521070a0Smrgfi
10312521070a0Smrgrm -fr conftest*
103134456fccdSmrg
103144456fccdSmrg
10315521070a0Smrgfi
10316521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10317521070a0Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
103184456fccdSmrg
10319521070a0Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
10320521070a0Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10321521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10322521070a0Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10323521070a0Smrgif test "${lt_cv_dlopen_self_static+set}" = set; then :
10324521070a0Smrg  $as_echo_n "(cached) " >&6
10325521070a0Smrgelse
10326521070a0Smrg  	  if test "$cross_compiling" = yes; then :
10327521070a0Smrg  lt_cv_dlopen_self_static=cross
10328521070a0Smrgelse
10329521070a0Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10330521070a0Smrg  lt_status=$lt_dlunknown
10331521070a0Smrg  cat > conftest.$ac_ext <<_LT_EOF
10332ff63a143Smrg#line $LINENO "configure"
10333521070a0Smrg#include "confdefs.h"
103344456fccdSmrg
10335521070a0Smrg#if HAVE_DLFCN_H
10336521070a0Smrg#include <dlfcn.h>
10337521070a0Smrg#endif
103384456fccdSmrg
10339521070a0Smrg#include <stdio.h>
103404456fccdSmrg
10341521070a0Smrg#ifdef RTLD_GLOBAL
10342521070a0Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
10343521070a0Smrg#else
10344521070a0Smrg#  ifdef DL_GLOBAL
10345521070a0Smrg#    define LT_DLGLOBAL		DL_GLOBAL
10346521070a0Smrg#  else
10347521070a0Smrg#    define LT_DLGLOBAL		0
10348521070a0Smrg#  endif
10349521070a0Smrg#endif
103504456fccdSmrg
10351521070a0Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10352521070a0Smrg   find out it does not work in some platform. */
10353521070a0Smrg#ifndef LT_DLLAZY_OR_NOW
10354521070a0Smrg#  ifdef RTLD_LAZY
10355521070a0Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10356521070a0Smrg#  else
10357521070a0Smrg#    ifdef DL_LAZY
10358521070a0Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
10359521070a0Smrg#    else
10360521070a0Smrg#      ifdef RTLD_NOW
10361521070a0Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10362521070a0Smrg#      else
10363521070a0Smrg#        ifdef DL_NOW
10364521070a0Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
10365521070a0Smrg#        else
10366521070a0Smrg#          define LT_DLLAZY_OR_NOW	0
10367521070a0Smrg#        endif
10368521070a0Smrg#      endif
10369521070a0Smrg#    endif
10370521070a0Smrg#  endif
10371521070a0Smrg#endif
103724456fccdSmrg
10373ff63a143Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
10374ff63a143Smrg   correspondingly for the symbols needed.  */
10375ff63a143Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10376ff63a143Smrgvoid fnord () __attribute__((visibility("default")));
10377ff63a143Smrg#endif
10378ff63a143Smrg
10379ff63a143Smrgvoid fnord () { int i=42; }
10380521070a0Smrgint main ()
10381521070a0Smrg{
10382521070a0Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10383521070a0Smrg  int status = $lt_dlunknown;
103844456fccdSmrg
10385521070a0Smrg  if (self)
10386521070a0Smrg    {
10387521070a0Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10388ff63a143Smrg      else
10389ff63a143Smrg        {
10390ff63a143Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10391ff63a143Smrg          else puts (dlerror ());
10392ff63a143Smrg	}
10393521070a0Smrg      /* dlclose (self); */
10394521070a0Smrg    }
10395521070a0Smrg  else
10396521070a0Smrg    puts (dlerror ());
103974456fccdSmrg
10398521070a0Smrg  return status;
10399521070a0Smrg}
10400521070a0Smrg_LT_EOF
10401521070a0Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10402521070a0Smrg  (eval $ac_link) 2>&5
10403521070a0Smrg  ac_status=$?
10404521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405521070a0Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10406521070a0Smrg    (./conftest; exit; ) >&5 2>/dev/null
10407521070a0Smrg    lt_status=$?
10408521070a0Smrg    case x$lt_status in
10409521070a0Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10410521070a0Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10411521070a0Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10412521070a0Smrg    esac
10413521070a0Smrg  else :
10414521070a0Smrg    # compilation failed
10415521070a0Smrg    lt_cv_dlopen_self_static=no
10416521070a0Smrg  fi
10417521070a0Smrgfi
10418521070a0Smrgrm -fr conftest*
1041942d69509Smrg
104204456fccdSmrg
10421521070a0Smrgfi
10422521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10423521070a0Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
10424521070a0Smrg    fi
104254456fccdSmrg
10426521070a0Smrg    CPPFLAGS="$save_CPPFLAGS"
10427521070a0Smrg    LDFLAGS="$save_LDFLAGS"
10428521070a0Smrg    LIBS="$save_LIBS"
10429521070a0Smrg    ;;
10430521070a0Smrg  esac
104314456fccdSmrg
10432521070a0Smrg  case $lt_cv_dlopen_self in
10433521070a0Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10434521070a0Smrg  *) enable_dlopen_self=unknown ;;
10435521070a0Smrg  esac
104364456fccdSmrg
10437521070a0Smrg  case $lt_cv_dlopen_self_static in
10438521070a0Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10439521070a0Smrg  *) enable_dlopen_self_static=unknown ;;
10440521070a0Smrg  esac
10441521070a0Smrgfi
104424456fccdSmrg
104434456fccdSmrg
104444456fccdSmrg
104454456fccdSmrg
104464456fccdSmrg
104474456fccdSmrg
104484456fccdSmrg
104494456fccdSmrg
104504456fccdSmrg
10451521070a0Smrg
10452521070a0Smrg
10453521070a0Smrg
10454521070a0Smrg
10455521070a0Smrg
10456521070a0Smrg
10457521070a0Smrg
10458521070a0Smrg
10459521070a0Smrgstriplib=
10460521070a0Smrgold_striplib=
10461521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10462521070a0Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10463521070a0Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10464521070a0Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10465521070a0Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10466521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10467521070a0Smrg$as_echo "yes" >&6; }
10468521070a0Smrgelse
10469521070a0Smrg# FIXME - insert some real tests, host_os isn't really good enough
10470521070a0Smrg  case $host_os in
10471521070a0Smrg  darwin*)
10472521070a0Smrg    if test -n "$STRIP" ; then
10473521070a0Smrg      striplib="$STRIP -x"
10474521070a0Smrg      old_striplib="$STRIP -S"
10475521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10476521070a0Smrg$as_echo "yes" >&6; }
10477521070a0Smrg    else
10478521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479521070a0Smrg$as_echo "no" >&6; }
10480521070a0Smrg    fi
104814456fccdSmrg    ;;
104824456fccdSmrg  *)
10483521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484521070a0Smrg$as_echo "no" >&6; }
104854456fccdSmrg    ;;
10486521070a0Smrg  esac
10487521070a0Smrgfi
104884456fccdSmrg
104894456fccdSmrg
104904456fccdSmrg
104914456fccdSmrg
104924456fccdSmrg
104934456fccdSmrg
104944456fccdSmrg
104954456fccdSmrg
104964456fccdSmrg
104974456fccdSmrg
104984456fccdSmrg
104994456fccdSmrg
10500521070a0Smrg  # Report which library types will actually be built
10501521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10502521070a0Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10503521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10504521070a0Smrg$as_echo "$can_build_shared" >&6; }
10505521070a0Smrg
10506521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10507521070a0Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
10508521070a0Smrg  test "$can_build_shared" = "no" && enable_shared=no
10509521070a0Smrg
10510521070a0Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
10511521070a0Smrg  # are all built from PIC.
105124456fccdSmrg  case $host_os in
10513521070a0Smrg  aix3*)
10514521070a0Smrg    test "$enable_shared" = yes && enable_static=no
10515521070a0Smrg    if test -n "$RANLIB"; then
10516521070a0Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10517521070a0Smrg      postinstall_cmds='$RANLIB $lib'
105184456fccdSmrg    fi
105194456fccdSmrg    ;;
10520521070a0Smrg
10521521070a0Smrg  aix[4-9]*)
10522521070a0Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10523521070a0Smrg      test "$enable_shared" = yes && enable_static=no
10524521070a0Smrg    fi
105254456fccdSmrg    ;;
105264456fccdSmrg  esac
10527521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10528521070a0Smrg$as_echo "$enable_shared" >&6; }
105294456fccdSmrg
10530521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10531521070a0Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
10532521070a0Smrg  # Make sure either enable_shared or enable_static is yes.
10533521070a0Smrg  test "$enable_shared" = yes || enable_static=yes
10534521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10535521070a0Smrg$as_echo "$enable_static" >&6; }
105364456fccdSmrg
105374456fccdSmrg
105384456fccdSmrg
105394456fccdSmrg
10540521070a0Smrgfi
10541521070a0Smrgac_ext=c
10542521070a0Smrgac_cpp='$CPP $CPPFLAGS'
10543521070a0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544521070a0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545521070a0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
105464456fccdSmrg
10547521070a0SmrgCC="$lt_save_CC"
105484456fccdSmrg
105494456fccdSmrg
105504456fccdSmrg
105514456fccdSmrg
105524456fccdSmrg
105534456fccdSmrg
105544456fccdSmrg
105554456fccdSmrg
105564456fccdSmrg
105574456fccdSmrg
105584456fccdSmrg
105594456fccdSmrg
105604456fccdSmrg
10561521070a0Smrg        ac_config_commands="$ac_config_commands libtool"
105624456fccdSmrg
105634456fccdSmrg
105644456fccdSmrg
105654456fccdSmrg
10566521070a0Smrg# Only expand once:
105674456fccdSmrg
105684456fccdSmrg
105694456fccdSmrg
10570ff63a143Smrg# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10571ff63a143Smrg
10572ff63a143Smrg
10573ff63a143Smrg
10574ff63a143Smrg
10575ff63a143Smrg
10576ff63a143Smrg
10577ff63a143Smrg
10578ff63a143Smrg
10579ff63a143Smrg
10580ff63a143Smrg
10581ff63a143Smrg
10582521070a0Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10583521070a0Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10584521070a0Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
10585521070a0Smrg  $as_echo_n "(cached) " >&6
10586521070a0Smrgelse
10587521070a0Smrg  ac_cv_prog_cc_c99=no
10588521070a0Smrgac_save_CC=$CC
10589521070a0Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590521070a0Smrg/* end confdefs.h.  */
10591521070a0Smrg#include <stdarg.h>
10592521070a0Smrg#include <stdbool.h>
10593521070a0Smrg#include <stdlib.h>
10594521070a0Smrg#include <wchar.h>
10595521070a0Smrg#include <stdio.h>
105964456fccdSmrg
10597521070a0Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10598521070a0Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
10599521070a0Smrg#define showlist(...) puts (#__VA_ARGS__)
10600521070a0Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10601521070a0Smrgstatic void
10602521070a0Smrgtest_varargs_macros (void)
10603521070a0Smrg{
10604521070a0Smrg  int x = 1234;
10605521070a0Smrg  int y = 5678;
10606521070a0Smrg  debug ("Flag");
10607521070a0Smrg  debug ("X = %d\n", x);
10608521070a0Smrg  showlist (The first, second, and third items.);
10609521070a0Smrg  report (x>y, "x is %d but y is %d", x, y);
10610521070a0Smrg}
106114456fccdSmrg
10612521070a0Smrg// Check long long types.
10613521070a0Smrg#define BIG64 18446744073709551615ull
10614521070a0Smrg#define BIG32 4294967295ul
10615521070a0Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10616521070a0Smrg#if !BIG_OK
10617521070a0Smrg  your preprocessor is broken;
10618521070a0Smrg#endif
10619521070a0Smrg#if BIG_OK
10620521070a0Smrg#else
10621521070a0Smrg  your preprocessor is broken;
10622521070a0Smrg#endif
10623521070a0Smrgstatic long long int bignum = -9223372036854775807LL;
10624521070a0Smrgstatic unsigned long long int ubignum = BIG64;
1062542d69509Smrg
10626521070a0Smrgstruct incomplete_array
10627521070a0Smrg{
10628521070a0Smrg  int datasize;
10629521070a0Smrg  double data[];
10630521070a0Smrg};
106314456fccdSmrg
10632521070a0Smrgstruct named_init {
10633521070a0Smrg  int number;
10634521070a0Smrg  const wchar_t *name;
10635521070a0Smrg  double average;
10636521070a0Smrg};
106374456fccdSmrg
10638521070a0Smrgtypedef const char *ccp;
106394456fccdSmrg
10640521070a0Smrgstatic inline int
10641521070a0Smrgtest_restrict (ccp restrict text)
10642521070a0Smrg{
10643521070a0Smrg  // See if C++-style comments work.
10644521070a0Smrg  // Iterate through items via the restricted pointer.
10645521070a0Smrg  // Also check for declarations in for loops.
10646521070a0Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10647521070a0Smrg    continue;
10648521070a0Smrg  return 0;
10649521070a0Smrg}
106504456fccdSmrg
10651521070a0Smrg// Check varargs and va_copy.
10652521070a0Smrgstatic void
10653521070a0Smrgtest_varargs (const char *format, ...)
10654521070a0Smrg{
10655521070a0Smrg  va_list args;
10656521070a0Smrg  va_start (args, format);
10657521070a0Smrg  va_list args_copy;
10658521070a0Smrg  va_copy (args_copy, args);
106594456fccdSmrg
10660521070a0Smrg  const char *str;
10661521070a0Smrg  int number;
10662521070a0Smrg  float fnumber;
1066342d69509Smrg
10664521070a0Smrg  while (*format)
10665521070a0Smrg    {
10666521070a0Smrg      switch (*format++)
10667521070a0Smrg	{
10668521070a0Smrg	case 's': // string
10669521070a0Smrg	  str = va_arg (args_copy, const char *);
10670521070a0Smrg	  break;
10671521070a0Smrg	case 'd': // int
10672521070a0Smrg	  number = va_arg (args_copy, int);
10673521070a0Smrg	  break;
10674521070a0Smrg	case 'f': // float
10675521070a0Smrg	  fnumber = va_arg (args_copy, double);
10676521070a0Smrg	  break;
10677521070a0Smrg	default:
10678521070a0Smrg	  break;
1067942d69509Smrg	}
10680521070a0Smrg    }
10681521070a0Smrg  va_end (args_copy);
10682521070a0Smrg  va_end (args);
10683521070a0Smrg}
106844456fccdSmrg
10685521070a0Smrgint
10686521070a0Smrgmain ()
10687521070a0Smrg{
106884456fccdSmrg
10689521070a0Smrg  // Check bool.
10690521070a0Smrg  _Bool success = false;
106914456fccdSmrg
10692521070a0Smrg  // Check restrict.
10693521070a0Smrg  if (test_restrict ("String literal") == 0)
10694521070a0Smrg    success = true;
10695521070a0Smrg  char *restrict newvar = "Another string";
106964456fccdSmrg
10697521070a0Smrg  // Check varargs.
10698521070a0Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
10699521070a0Smrg  test_varargs_macros ();
107004456fccdSmrg
10701521070a0Smrg  // Check flexible array members.
10702521070a0Smrg  struct incomplete_array *ia =
10703521070a0Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10704521070a0Smrg  ia->datasize = 10;
10705521070a0Smrg  for (int i = 0; i < ia->datasize; ++i)
10706521070a0Smrg    ia->data[i] = i * 1.234;
107074456fccdSmrg
10708521070a0Smrg  // Check named initializers.
10709521070a0Smrg  struct named_init ni = {
10710521070a0Smrg    .number = 34,
10711521070a0Smrg    .name = L"Test wide string",
10712521070a0Smrg    .average = 543.34343,
10713521070a0Smrg  };
107144456fccdSmrg
10715521070a0Smrg  ni.number = 58;
107164456fccdSmrg
10717521070a0Smrg  int dynamic_array[ni.number];
10718521070a0Smrg  dynamic_array[ni.number - 1] = 543;
107194456fccdSmrg
10720521070a0Smrg  // work around unused variable warnings
10721521070a0Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10722521070a0Smrg	  || dynamic_array[ni.number - 1] != 543);
107234456fccdSmrg
10724521070a0Smrg  ;
10725521070a0Smrg  return 0;
10726521070a0Smrg}
10727521070a0Smrg_ACEOF
10728521070a0Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10729521070a0Smrgdo
10730521070a0Smrg  CC="$ac_save_CC $ac_arg"
10731521070a0Smrg  if ac_fn_c_try_compile "$LINENO"; then :
10732521070a0Smrg  ac_cv_prog_cc_c99=$ac_arg
10733521070a0Smrgfi
10734521070a0Smrgrm -f core conftest.err conftest.$ac_objext
10735521070a0Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
10736521070a0Smrgdone
10737521070a0Smrgrm -f conftest.$ac_ext
10738521070a0SmrgCC=$ac_save_CC
107394456fccdSmrg
10740521070a0Smrgfi
10741521070a0Smrg# AC_CACHE_VAL
10742521070a0Smrgcase "x$ac_cv_prog_cc_c99" in
10743521070a0Smrg  x)
10744521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10745521070a0Smrg$as_echo "none needed" >&6; } ;;
10746521070a0Smrg  xno)
10747521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10748521070a0Smrg$as_echo "unsupported" >&6; } ;;
10749521070a0Smrg  *)
10750521070a0Smrg    CC="$CC $ac_cv_prog_cc_c99"
10751521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10752521070a0Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10753521070a0Smrgesac
10754521070a0Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
107554456fccdSmrg
10756521070a0Smrgfi
107574456fccdSmrg
107584456fccdSmrg
107594456fccdSmrg
107604456fccdSmrg
10761ff63a143Smrg
10762ff63a143Smrg
10763ff63a143Smrg
10764ff63a143Smrg
10765521070a0Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10766521070a0Smrg	if test -n "$ac_tool_prefix"; then
10767521070a0Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10768521070a0Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10769521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
10771521070a0Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10772521070a0Smrg  $as_echo_n "(cached) " >&6
10773521070a0Smrgelse
10774521070a0Smrg  case $PKG_CONFIG in
10775521070a0Smrg  [\\/]* | ?:[\\/]*)
10776521070a0Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10777521070a0Smrg  ;;
10778521070a0Smrg  *)
10779521070a0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780521070a0Smrgfor as_dir in $PATH
10781521070a0Smrgdo
10782521070a0Smrg  IFS=$as_save_IFS
10783521070a0Smrg  test -z "$as_dir" && as_dir=.
10784521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10785521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786521070a0Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10787521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788521070a0Smrg    break 2
10789521070a0Smrg  fi
10790521070a0Smrgdone
10791521070a0Smrg  done
10792521070a0SmrgIFS=$as_save_IFS
107934456fccdSmrg
10794521070a0Smrg  ;;
10795521070a0Smrgesac
10796521070a0Smrgfi
10797521070a0SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
10798521070a0Smrgif test -n "$PKG_CONFIG"; then
10799521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10800521070a0Smrg$as_echo "$PKG_CONFIG" >&6; }
10801521070a0Smrgelse
10802521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803521070a0Smrg$as_echo "no" >&6; }
10804521070a0Smrgfi
108054456fccdSmrg
108064456fccdSmrg
10807521070a0Smrgfi
10808521070a0Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
10809521070a0Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
10810521070a0Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
10811521070a0Smrgset dummy pkg-config; ac_word=$2
10812521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813521070a0Smrg$as_echo_n "checking for $ac_word... " >&6; }
10814521070a0Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10815521070a0Smrg  $as_echo_n "(cached) " >&6
10816521070a0Smrgelse
10817521070a0Smrg  case $ac_pt_PKG_CONFIG in
10818521070a0Smrg  [\\/]* | ?:[\\/]*)
10819521070a0Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10820521070a0Smrg  ;;
10821521070a0Smrg  *)
10822521070a0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823521070a0Smrgfor as_dir in $PATH
10824521070a0Smrgdo
10825521070a0Smrg  IFS=$as_save_IFS
10826521070a0Smrg  test -z "$as_dir" && as_dir=.
10827521070a0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10828521070a0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829521070a0Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10830521070a0Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831521070a0Smrg    break 2
10832521070a0Smrg  fi
10833521070a0Smrgdone
10834521070a0Smrg  done
10835521070a0SmrgIFS=$as_save_IFS
108364456fccdSmrg
10837521070a0Smrg  ;;
10838521070a0Smrgesac
10839521070a0Smrgfi
10840521070a0Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10841521070a0Smrgif test -n "$ac_pt_PKG_CONFIG"; then
10842521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10843521070a0Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10844521070a0Smrgelse
10845521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846521070a0Smrg$as_echo "no" >&6; }
10847521070a0Smrgfi
108484456fccdSmrg
10849521070a0Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
10850521070a0Smrg    PKG_CONFIG=""
10851521070a0Smrg  else
10852521070a0Smrg    case $cross_compiling:$ac_tool_warned in
10853521070a0Smrgyes:)
10854521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10855521070a0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10856521070a0Smrgac_tool_warned=yes ;;
10857521070a0Smrgesac
10858521070a0Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
10859521070a0Smrg  fi
10860521070a0Smrgelse
10861521070a0Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10862521070a0Smrgfi
108634456fccdSmrg
10864521070a0Smrgfi
10865521070a0Smrgif test -n "$PKG_CONFIG"; then
10866521070a0Smrg	_pkg_min_version=0.9.0
10867521070a0Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10868521070a0Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10869521070a0Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10870521070a0Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871521070a0Smrg$as_echo "yes" >&6; }
1087242d69509Smrg	else
10873521070a0Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874521070a0Smrg$as_echo "no" >&6; }
10875521070a0Smrg		PKG_CONFIG=""
10876521070a0Smrg	fi
10877521070a0Smrgfi
108784456fccdSmrg
108794456fccdSmrg
108804456fccdSmrg
108814456fccdSmrg
10882521070a0Smrgif  test "x$GCC" = xyes ; then
10883521070a0Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10884521070a0Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10885521070a0Smrg-Wbad-function-cast -Wformat=2"
10886521070a0Smrg    case `$CC -dumpversion` in
10887521070a0Smrg    3.4.* | 4.*)
10888521070a0Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
1088942d69509Smrg	;;
10890521070a0Smrg    esac
10891521070a0Smrgelse
10892521070a0Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10893521070a0Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10894521070a0Smrg  SUNCC="yes"
10895521070a0Smrgelse
10896521070a0Smrg  SUNCC="no"
10897521070a0Smrgfi
108984456fccdSmrg
10899521070a0Smrg    if test "x$SUNCC" = "xyes"; then
10900521070a0Smrg	CWARNFLAGS="-v"
10901521070a0Smrg    fi
10902521070a0Smrgfi
109034456fccdSmrg
109044456fccdSmrg
109054456fccdSmrg
10906521070a0Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
109074456fccdSmrg
109084456fccdSmrg
109094456fccdSmrg
10910521070a0Smrg# Check whether --enable-strict-compilation was given.
10911521070a0Smrgif test "${enable_strict_compilation+set}" = set; then :
10912521070a0Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10913521070a0Smrgelse
10914521070a0Smrg  STRICT_COMPILE=no
10915521070a0Smrgfi
109164456fccdSmrg
10917521070a0Smrgif test "x$STRICT_COMPILE" = "xyes"; then
10918521070a0Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10919521070a0Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10920521070a0Smrg  SUNCC="yes"
10921521070a0Smrgelse
10922521070a0Smrg  SUNCC="no"
10923521070a0Smrgfi
109244456fccdSmrg
10925521070a0Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10926521070a0Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10927521070a0Smrg  INTELCC="yes"
10928521070a0Smrgelse
10929521070a0Smrg  INTELCC="no"
10930521070a0Smrgfi
109314456fccdSmrg
10932521070a0Smrg	if test "x$GCC" = xyes ; then
10933521070a0Smrg		STRICT_CFLAGS="-pedantic -Werror"
10934521070a0Smrg	elif test "x$SUNCC" = "xyes"; then
10935521070a0Smrg		STRICT_CFLAGS="-errwarn"
10936521070a0Smrg    elif test "x$INTELCC" = "xyes"; then
10937521070a0Smrg		STRICT_CFLAGS="-Werror"
10938521070a0Smrg	fi
10939521070a0Smrgfi
10940521070a0SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
109414456fccdSmrg
109424456fccdSmrg
109434456fccdSmrg
109444456fccdSmrg
10945521070a0Smrgcat >>confdefs.h <<_ACEOF
10946521070a0Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10947521070a0Smrg_ACEOF
1094842d69509Smrg
10949521070a0Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10950521070a0Smrg	if test "x$PVM" = "x"; then
10951521070a0Smrg		PVM="0"
10952521070a0Smrg	fi
109534456fccdSmrg
10954521070a0Smrgcat >>confdefs.h <<_ACEOF
10955521070a0Smrg#define PACKAGE_VERSION_MINOR $PVM
10956521070a0Smrg_ACEOF
109574456fccdSmrg
10958521070a0Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10959521070a0Smrg	if test "x$PVP" = "x"; then
10960521070a0Smrg		PVP="0"
10961521070a0Smrg	fi
109624456fccdSmrg
10963521070a0Smrgcat >>confdefs.h <<_ACEOF
10964521070a0Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
10965521070a0Smrg_ACEOF
109664456fccdSmrg
109674456fccdSmrg
109684456fccdSmrg
10969521070a0SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10970521070a0Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10971521070a0Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10972521070a0Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
109734456fccdSmrg
109744456fccdSmrg
109754456fccdSmrg
109764456fccdSmrg
10977521070a0Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10978521070a0SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10979521070a0Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10980521070a0Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10981521070a0Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
109824456fccdSmrg
109834456fccdSmrg
1098442d69509Smrg
109854456fccdSmrg
109864456fccdSmrg
109874456fccdSmrg
10988521070a0Smrgif test x$APP_MAN_SUFFIX = x    ; then
10989521070a0Smrg    APP_MAN_SUFFIX=1
10990521070a0Smrgfi
10991521070a0Smrgif test x$APP_MAN_DIR = x    ; then
10992521070a0Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10993521070a0Smrgfi
10994521070a0Smrg
10995521070a0Smrgif test x$LIB_MAN_SUFFIX = x    ; then
10996521070a0Smrg    LIB_MAN_SUFFIX=3
10997521070a0Smrgfi
10998521070a0Smrgif test x$LIB_MAN_DIR = x    ; then
10999521070a0Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11000521070a0Smrgfi
11001521070a0Smrg
11002521070a0Smrgif test x$FILE_MAN_SUFFIX = x    ; then
110034456fccdSmrg    case $host_os in
11004521070a0Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
11005521070a0Smrg	*)		FILE_MAN_SUFFIX=5  ;;
110064456fccdSmrg    esac
11007521070a0Smrgfi
11008521070a0Smrgif test x$FILE_MAN_DIR = x    ; then
11009521070a0Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11010521070a0Smrgfi
110114456fccdSmrg
11012521070a0Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11013521070a0Smrg    case $host_os in
11014521070a0Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
11015521070a0Smrg	*)		MISC_MAN_SUFFIX=7  ;;
11016521070a0Smrg    esac
11017521070a0Smrgfi
11018521070a0Smrgif test x$MISC_MAN_DIR = x    ; then
11019521070a0Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11020521070a0Smrgfi
110214456fccdSmrg
11022521070a0Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11023521070a0Smrg    case $host_os in
11024521070a0Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11025521070a0Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
11026521070a0Smrg    esac
11027521070a0Smrgfi
11028521070a0Smrgif test x$DRIVER_MAN_DIR = x    ; then
11029521070a0Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11030521070a0Smrgfi
110314456fccdSmrg
11032521070a0Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11033521070a0Smrg    case $host_os in
11034521070a0Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11035521070a0Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
110364456fccdSmrg    esac
11037521070a0Smrgfi
11038521070a0Smrgif test x$ADMIN_MAN_DIR = x    ; then
11039521070a0Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11040521070a0Smrgfi
110414456fccdSmrg
110424456fccdSmrg
110434456fccdSmrg
110444456fccdSmrg
110454456fccdSmrg
110464456fccdSmrg
110474456fccdSmrg
110484456fccdSmrg
110494456fccdSmrg
110504456fccdSmrg
110514456fccdSmrg
1105242d69509Smrg
110534456fccdSmrg
110544456fccdSmrg
110554456fccdSmrg
11056521070a0SmrgXORG_MAN_PAGE="X Version 11"
110574456fccdSmrg
11058521070a0SmrgMAN_SUBSTS="\
11059521070a0Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11060521070a0Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11061521070a0Smrg	-e 's|__xservername__|Xorg|g' \
11062521070a0Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
11063521070a0Smrg	-e 's|__projectroot__|\$(prefix)|g' \
11064521070a0Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11065521070a0Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11066521070a0Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11067521070a0Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11068521070a0Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11069521070a0Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
110704456fccdSmrg
110714456fccdSmrg
110724456fccdSmrg
11073521070a0Smrg# Check whether --enable-silent-rules was given.
11074521070a0Smrgif test "${enable_silent_rules+set}" = set; then :
11075521070a0Smrg  enableval=$enable_silent_rules;
1107642d69509Smrgfi
1107742d69509Smrg
11078521070a0Smrgcase $enable_silent_rules in
11079521070a0Smrgyes) AM_DEFAULT_VERBOSITY=0;;
11080521070a0Smrgno)  AM_DEFAULT_VERBOSITY=1;;
11081521070a0Smrg*)   AM_DEFAULT_VERBOSITY=0;;
11082521070a0Smrgesac
11083521070a0SmrgAM_BACKSLASH='\'
1108442d69509Smrg
1108542d69509Smrg
110864456fccdSmrg
11087521070a0Smrg# Check fixesext configuration, strip extra digits from package version to
11088521070a0Smrg# find the required protocol version
11089521070a0SmrgFIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11090521070a0Smrg
11091521070a0Smrg
11092ff63a143Smrg# Obtain compiler/linker options for depedencies
11093ff63a143Smrg
11094521070a0Smrgpkg_failed=no
11095521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5
11096521070a0Smrg$as_echo_n "checking for FIXESEXT... " >&6; }
11097521070a0Smrg
11098521070a0Smrgif test -n "$FIXESEXT_CFLAGS"; then
11099521070a0Smrg    pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
11100521070a0Smrg elif test -n "$PKG_CONFIG"; then
11101521070a0Smrg    if test -n "$PKG_CONFIG" && \
11102521070a0Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5
11103521070a0Smrg  ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5
11104521070a0Smrg  ac_status=$?
11105521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106521070a0Smrg  test $ac_status = 0; }; then
11107521070a0Smrg  pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null`
111084456fccdSmrgelse
11109521070a0Smrg  pkg_failed=yes
111104456fccdSmrgfi
11111521070a0Smrg else
11112521070a0Smrg    pkg_failed=untried
11113521070a0Smrgfi
11114521070a0Smrgif test -n "$FIXESEXT_LIBS"; then
11115521070a0Smrg    pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
11116521070a0Smrg elif test -n "$PKG_CONFIG"; then
11117521070a0Smrg    if test -n "$PKG_CONFIG" && \
11118521070a0Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5
11119521070a0Smrg  ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5
11120521070a0Smrg  ac_status=$?
11121521070a0Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122521070a0Smrg  test $ac_status = 0; }; then
11123521070a0Smrg  pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null`
11124521070a0Smrgelse
11125521070a0Smrg  pkg_failed=yes
11126521070a0Smrgfi
11127521070a0Smrg else
11128521070a0Smrg    pkg_failed=untried
111294456fccdSmrgfi
111304456fccdSmrg
111314456fccdSmrg
111324456fccdSmrg
11133521070a0Smrgif test $pkg_failed = yes; then
11134ff63a143Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135ff63a143Smrg$as_echo "no" >&6; }
111364456fccdSmrg
11137521070a0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11138521070a0Smrg        _pkg_short_errors_supported=yes
11139521070a0Smrgelse
11140521070a0Smrg        _pkg_short_errors_supported=no
11141521070a0Smrgfi
11142521070a0Smrg        if test $_pkg_short_errors_supported = yes; then
11143521070a0Smrg	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1`
11144521070a0Smrg        else
11145521070a0Smrg	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1`
11146521070a0Smrg        fi
11147521070a0Smrg	# Put the nasty error message in config.log where it belongs
11148521070a0Smrg	echo "$FIXESEXT_PKG_ERRORS" >&5
111494456fccdSmrg
11150ff63a143Smrg	as_fn_error $? "Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto x11) were not met:
111514456fccdSmrg
11152521070a0Smrg$FIXESEXT_PKG_ERRORS
111534456fccdSmrg
11154521070a0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11155521070a0Smrginstalled software in a non-standard prefix.
111564456fccdSmrg
11157521070a0SmrgAlternatively, you may set the environment variables FIXESEXT_CFLAGS
11158521070a0Smrgand FIXESEXT_LIBS to avoid the need to call pkg-config.
11159ff63a143SmrgSee the pkg-config man page for more details." "$LINENO" 5
11160ff63a143Smrg
11161521070a0Smrgelif test $pkg_failed = untried; then
11162ff63a143Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163ff63a143Smrg$as_echo "no" >&6; }
11164521070a0Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11165521070a0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11166ff63a143Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11167521070a0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11168521070a0Smrgpath to pkg-config.
111694456fccdSmrg
11170521070a0SmrgAlternatively, you may set the environment variables FIXESEXT_CFLAGS
11171521070a0Smrgand FIXESEXT_LIBS to avoid the need to call pkg-config.
11172521070a0SmrgSee the pkg-config man page for more details.
111734456fccdSmrg
11174521070a0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11175ff63a143SmrgSee \`config.log' for more details" "$LINENO" 5; }
11176ff63a143Smrg
11177521070a0Smrgelse
11178521070a0Smrg	FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
11179521070a0Smrg	FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
11180521070a0Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11181521070a0Smrg$as_echo "yes" >&6; }
111824456fccdSmrg
11183ff63a143Smrgfi
111844456fccdSmrg
11185521070a0Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
111864456fccdSmrg
11187521070a0Smrgcat >confcache <<\_ACEOF
11188521070a0Smrg# This file is a shell script that caches the results of configure
11189521070a0Smrg# tests run on this system so they can be shared between configure
11190521070a0Smrg# scripts and configure runs, see configure's option --config-cache.
11191521070a0Smrg# It is not useful on other systems.  If it contains results you don't
11192521070a0Smrg# want to keep, you may remove or edit it.
11193521070a0Smrg#
11194521070a0Smrg# config.status only pays attention to the cache file if you give it
11195521070a0Smrg# the --recheck option to rerun configure.
11196521070a0Smrg#
11197521070a0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11198521070a0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11199521070a0Smrg# following values.
112004456fccdSmrg
11201521070a0Smrg_ACEOF
112024456fccdSmrg
11203521070a0Smrg# The following way of writing the cache mishandles newlines in values,
11204521070a0Smrg# but we know of no workaround that is simple, portable, and efficient.
11205521070a0Smrg# So, we kill variables containing newlines.
11206521070a0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
11207521070a0Smrg# and sets the high bit in the cache file unless we assign to the vars.
11208521070a0Smrg(
11209521070a0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11210521070a0Smrg    eval ac_val=\$$ac_var
11211521070a0Smrg    case $ac_val in #(
11212521070a0Smrg    *${as_nl}*)
11213521070a0Smrg      case $ac_var in #(
11214521070a0Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11215521070a0Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11216521070a0Smrg      esac
11217521070a0Smrg      case $ac_var in #(
11218521070a0Smrg      _ | IFS | as_nl) ;; #(
11219521070a0Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11220521070a0Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11221521070a0Smrg      esac ;;
11222521070a0Smrg    esac
11223521070a0Smrg  done
112244456fccdSmrg
11225521070a0Smrg  (set) 2>&1 |
11226521070a0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11227521070a0Smrg    *${as_nl}ac_space=\ *)
11228521070a0Smrg      # `set' does not quote correctly, so add quotes: double-quote
11229521070a0Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11230521070a0Smrg      sed -n \
11231521070a0Smrg	"s/'/'\\\\''/g;
11232521070a0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11233521070a0Smrg      ;; #(
11234521070a0Smrg    *)
11235521070a0Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11236521070a0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11237521070a0Smrg      ;;
11238521070a0Smrg    esac |
11239521070a0Smrg    sort
11240521070a0Smrg) |
11241521070a0Smrg  sed '
11242521070a0Smrg     /^ac_cv_env_/b end
11243521070a0Smrg     t clear
11244521070a0Smrg     :clear
11245521070a0Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11246521070a0Smrg     t end
11247521070a0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11248521070a0Smrg     :end' >>confcache
11249521070a0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11250521070a0Smrg  if test -w "$cache_file"; then
11251521070a0Smrg    test "x$cache_file" != "x/dev/null" &&
11252521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11253521070a0Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
11254521070a0Smrg    cat confcache >$cache_file
11255521070a0Smrg  else
11256521070a0Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11257521070a0Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11258521070a0Smrg  fi
11259521070a0Smrgfi
11260521070a0Smrgrm -f confcache
112614456fccdSmrg
11262521070a0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11263521070a0Smrg# Let make expand exec_prefix.
11264521070a0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
112654456fccdSmrg
11266521070a0SmrgDEFS=-DHAVE_CONFIG_H
112674456fccdSmrg
11268521070a0Smrgac_libobjs=
11269521070a0Smrgac_ltlibobjs=
11270ff63a143SmrgU=
11271521070a0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11272521070a0Smrg  # 1. Remove the extension, and $U if already installed.
11273521070a0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11274521070a0Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11275521070a0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11276521070a0Smrg  #    will be set to the directory where LIBOBJS objects are built.
11277521070a0Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11278521070a0Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11279521070a0Smrgdone
11280521070a0SmrgLIBOBJS=$ac_libobjs
112814456fccdSmrg
11282521070a0SmrgLTLIBOBJS=$ac_ltlibobjs
112834456fccdSmrg
112844456fccdSmrg
11285521070a0Smrg if test -n "$EXEEXT"; then
11286521070a0Smrg  am__EXEEXT_TRUE=
11287521070a0Smrg  am__EXEEXT_FALSE='#'
11288521070a0Smrgelse
11289521070a0Smrg  am__EXEEXT_TRUE='#'
11290521070a0Smrg  am__EXEEXT_FALSE=
11291521070a0Smrgfi
112924456fccdSmrg
11293521070a0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11294ff63a143Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11295521070a0SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11296521070a0Smrgfi
11297521070a0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11298ff63a143Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11299521070a0SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11300521070a0Smrgfi
11301521070a0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11302ff63a143Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11303521070a0SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11304521070a0Smrgfi
113054456fccdSmrg
11306521070a0Smrg: ${CONFIG_STATUS=./config.status}
11307521070a0Smrgac_write_fail=0
11308521070a0Smrgac_clean_files_save=$ac_clean_files
11309521070a0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11310521070a0Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11311521070a0Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11312521070a0Smrgas_write_fail=0
11313521070a0Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11314521070a0Smrg#! $SHELL
11315521070a0Smrg# Generated by $as_me.
11316521070a0Smrg# Run this file to recreate the current configuration.
11317521070a0Smrg# Compiler output produced by configure, useful for debugging
11318521070a0Smrg# configure, is in config.log if it exists.
113194456fccdSmrg
11320521070a0Smrgdebug=false
11321521070a0Smrgac_cs_recheck=false
11322521070a0Smrgac_cs_silent=false
113234456fccdSmrg
11324521070a0SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11325521070a0Smrgexport SHELL
11326521070a0Smrg_ASEOF
11327521070a0Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11328521070a0Smrg## -------------------- ##
11329521070a0Smrg## M4sh Initialization. ##
11330521070a0Smrg## -------------------- ##
113314456fccdSmrg
11332521070a0Smrg# Be more Bourne compatible
11333521070a0SmrgDUALCASE=1; export DUALCASE # for MKS sh
11334521070a0Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11335521070a0Smrg  emulate sh
11336521070a0Smrg  NULLCMD=:
11337521070a0Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11338521070a0Smrg  # is contrary to our usage.  Disable this feature.
11339521070a0Smrg  alias -g '${1+"$@"}'='"$@"'
11340521070a0Smrg  setopt NO_GLOB_SUBST
11341521070a0Smrgelse
11342521070a0Smrg  case `(set -o) 2>/dev/null` in #(
11343521070a0Smrg  *posix*) :
11344521070a0Smrg    set -o posix ;; #(
11345521070a0Smrg  *) :
11346521070a0Smrg     ;;
11347521070a0Smrgesac
11348521070a0Smrgfi
113494456fccdSmrg
113504456fccdSmrg
11351521070a0Smrgas_nl='
11352521070a0Smrg'
11353521070a0Smrgexport as_nl
11354521070a0Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
11355521070a0Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11356521070a0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11357521070a0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11358521070a0Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
11359521070a0Smrg# but without wasting forks for bash or zsh.
11360521070a0Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
11361521070a0Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11362521070a0Smrg  as_echo='print -r --'
11363521070a0Smrg  as_echo_n='print -rn --'
11364521070a0Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11365521070a0Smrg  as_echo='printf %s\n'
11366521070a0Smrg  as_echo_n='printf %s'
11367521070a0Smrgelse
11368521070a0Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11369521070a0Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11370521070a0Smrg    as_echo_n='/usr/ucb/echo -n'
11371521070a0Smrg  else
11372521070a0Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11373521070a0Smrg    as_echo_n_body='eval
11374521070a0Smrg      arg=$1;
11375521070a0Smrg      case $arg in #(
11376521070a0Smrg      *"$as_nl"*)
11377521070a0Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
11378521070a0Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11379521070a0Smrg      esac;
11380521070a0Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11381521070a0Smrg    '
11382521070a0Smrg    export as_echo_n_body
11383521070a0Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11384521070a0Smrg  fi
11385521070a0Smrg  export as_echo_body
11386521070a0Smrg  as_echo='sh -c $as_echo_body as_echo'
11387521070a0Smrgfi
113884456fccdSmrg
11389521070a0Smrg# The user is always right.
11390521070a0Smrgif test "${PATH_SEPARATOR+set}" != set; then
11391521070a0Smrg  PATH_SEPARATOR=:
11392521070a0Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11393521070a0Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11394521070a0Smrg      PATH_SEPARATOR=';'
11395521070a0Smrg  }
11396521070a0Smrgfi
113974456fccdSmrg
113984456fccdSmrg
11399521070a0Smrg# IFS
11400521070a0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
11401521070a0Smrg# there to prevent editors from complaining about space-tab.
11402521070a0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11403521070a0Smrg# splitting by setting IFS to empty value.)
11404521070a0SmrgIFS=" ""	$as_nl"
114054456fccdSmrg
11406521070a0Smrg# Find who we are.  Look in the path if we contain no directory separator.
11407521070a0Smrgcase $0 in #((
11408521070a0Smrg  *[\\/]* ) as_myself=$0 ;;
11409521070a0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410521070a0Smrgfor as_dir in $PATH
11411521070a0Smrgdo
11412521070a0Smrg  IFS=$as_save_IFS
11413521070a0Smrg  test -z "$as_dir" && as_dir=.
11414521070a0Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11415521070a0Smrg  done
11416521070a0SmrgIFS=$as_save_IFS
114174456fccdSmrg
11418521070a0Smrg     ;;
11419521070a0Smrgesac
11420521070a0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11421521070a0Smrg# in which case we are not to be found in the path.
11422521070a0Smrgif test "x$as_myself" = x; then
11423521070a0Smrg  as_myself=$0
11424521070a0Smrgfi
11425521070a0Smrgif test ! -f "$as_myself"; then
11426521070a0Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11427521070a0Smrg  exit 1
11428521070a0Smrgfi
114294456fccdSmrg
11430521070a0Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11431521070a0Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11432521070a0Smrg# suppresses any "Segmentation fault" message there.  '((' could
11433521070a0Smrg# trigger a bug in pdksh 5.2.14.
11434521070a0Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
11435521070a0Smrgdo eval test x\${$as_var+set} = xset \
11436521070a0Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11437521070a0Smrgdone
11438521070a0SmrgPS1='$ '
11439521070a0SmrgPS2='> '
11440521070a0SmrgPS4='+ '
114414456fccdSmrg
11442521070a0Smrg# NLS nuisances.
11443521070a0SmrgLC_ALL=C
11444521070a0Smrgexport LC_ALL
11445521070a0SmrgLANGUAGE=C
11446521070a0Smrgexport LANGUAGE
114474456fccdSmrg
11448521070a0Smrg# CDPATH.
11449521070a0Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
114504456fccdSmrg
114514456fccdSmrg
11452ff63a143Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11453ff63a143Smrg# ----------------------------------------
11454521070a0Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11455521070a0Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11456ff63a143Smrg# script with STATUS, using 1 if that was 0.
11457521070a0Smrgas_fn_error ()
11458521070a0Smrg{
11459ff63a143Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11460ff63a143Smrg  if test "$4"; then
11461ff63a143Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11462ff63a143Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11463521070a0Smrg  fi
11464ff63a143Smrg  $as_echo "$as_me: error: $2" >&2
11465521070a0Smrg  as_fn_exit $as_status
11466521070a0Smrg} # as_fn_error
114674456fccdSmrg
114684456fccdSmrg
11469521070a0Smrg# as_fn_set_status STATUS
11470521070a0Smrg# -----------------------
11471521070a0Smrg# Set $? to STATUS, without forking.
11472521070a0Smrgas_fn_set_status ()
11473521070a0Smrg{
11474521070a0Smrg  return $1
11475521070a0Smrg} # as_fn_set_status
114764456fccdSmrg
11477521070a0Smrg# as_fn_exit STATUS
11478521070a0Smrg# -----------------
11479521070a0Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11480521070a0Smrgas_fn_exit ()
11481521070a0Smrg{
11482521070a0Smrg  set +e
11483521070a0Smrg  as_fn_set_status $1
11484521070a0Smrg  exit $1
11485521070a0Smrg} # as_fn_exit
11486521070a0Smrg
11487521070a0Smrg# as_fn_unset VAR
11488521070a0Smrg# ---------------
11489521070a0Smrg# Portably unset VAR.
11490521070a0Smrgas_fn_unset ()
11491521070a0Smrg{
11492521070a0Smrg  { eval $1=; unset $1;}
11493521070a0Smrg}
11494521070a0Smrgas_unset=as_fn_unset
11495521070a0Smrg# as_fn_append VAR VALUE
11496521070a0Smrg# ----------------------
11497521070a0Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11498521070a0Smrg# advantage of any shell optimizations that allow amortized linear growth over
11499521070a0Smrg# repeated appends, instead of the typical quadratic growth present in naive
11500521070a0Smrg# implementations.
11501521070a0Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11502521070a0Smrg  eval 'as_fn_append ()
11503521070a0Smrg  {
11504521070a0Smrg    eval $1+=\$2
11505521070a0Smrg  }'
11506521070a0Smrgelse
11507521070a0Smrg  as_fn_append ()
11508521070a0Smrg  {
11509521070a0Smrg    eval $1=\$$1\$2
11510521070a0Smrg  }
11511521070a0Smrgfi # as_fn_append
11512521070a0Smrg
11513521070a0Smrg# as_fn_arith ARG...
11514521070a0Smrg# ------------------
11515521070a0Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11516521070a0Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11517521070a0Smrg# must be portable across $(()) and expr.
11518521070a0Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11519521070a0Smrg  eval 'as_fn_arith ()
11520521070a0Smrg  {
11521521070a0Smrg    as_val=$(( $* ))
11522521070a0Smrg  }'
11523521070a0Smrgelse
11524521070a0Smrg  as_fn_arith ()
11525521070a0Smrg  {
11526521070a0Smrg    as_val=`expr "$@" || test $? -eq 1`
11527521070a0Smrg  }
11528521070a0Smrgfi # as_fn_arith
115294456fccdSmrg
115304456fccdSmrg
11531521070a0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11532521070a0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11533521070a0Smrg  as_expr=expr
11534521070a0Smrgelse
11535521070a0Smrg  as_expr=false
11536521070a0Smrgfi
115374456fccdSmrg
11538521070a0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11539521070a0Smrg  as_basename=basename
11540521070a0Smrgelse
11541521070a0Smrg  as_basename=false
11542521070a0Smrgfi
115434456fccdSmrg
11544521070a0Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11545521070a0Smrg  as_dirname=dirname
11546521070a0Smrgelse
11547521070a0Smrg  as_dirname=false
11548521070a0Smrgfi
115494456fccdSmrg
11550521070a0Smrgas_me=`$as_basename -- "$0" ||
11551521070a0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11552521070a0Smrg	 X"$0" : 'X\(//\)$' \| \
11553521070a0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11554521070a0Smrg$as_echo X/"$0" |
11555521070a0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11556521070a0Smrg	    s//\1/
11557521070a0Smrg	    q
11558521070a0Smrg	  }
11559521070a0Smrg	  /^X\/\(\/\/\)$/{
11560521070a0Smrg	    s//\1/
11561521070a0Smrg	    q
11562521070a0Smrg	  }
11563521070a0Smrg	  /^X\/\(\/\).*/{
11564521070a0Smrg	    s//\1/
11565521070a0Smrg	    q
11566521070a0Smrg	  }
11567521070a0Smrg	  s/.*/./; q'`
115684456fccdSmrg
11569521070a0Smrg# Avoid depending upon Character Ranges.
11570521070a0Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11571521070a0Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11572521070a0Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11573521070a0Smrgas_cr_digits='0123456789'
11574521070a0Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
115754456fccdSmrg
11576521070a0SmrgECHO_C= ECHO_N= ECHO_T=
11577521070a0Smrgcase `echo -n x` in #(((((
11578521070a0Smrg-n*)
11579521070a0Smrg  case `echo 'xy\c'` in
11580521070a0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11581521070a0Smrg  xy)  ECHO_C='\c';;
11582521070a0Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11583521070a0Smrg       ECHO_T='	';;
11584521070a0Smrg  esac;;
11585521070a0Smrg*)
11586521070a0Smrg  ECHO_N='-n';;
11587521070a0Smrgesac
115884456fccdSmrg
11589521070a0Smrgrm -f conf$$ conf$$.exe conf$$.file
11590521070a0Smrgif test -d conf$$.dir; then
11591521070a0Smrg  rm -f conf$$.dir/conf$$.file
11592521070a0Smrgelse
11593521070a0Smrg  rm -f conf$$.dir
11594521070a0Smrg  mkdir conf$$.dir 2>/dev/null
11595521070a0Smrgfi
11596521070a0Smrgif (echo >conf$$.file) 2>/dev/null; then
11597521070a0Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
11598521070a0Smrg    as_ln_s='ln -s'
11599521070a0Smrg    # ... but there are two gotchas:
11600521070a0Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11601521070a0Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11602521070a0Smrg    # In both cases, we have to default to `cp -p'.
11603521070a0Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11604521070a0Smrg      as_ln_s='cp -p'
11605521070a0Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11606521070a0Smrg    as_ln_s=ln
11607521070a0Smrg  else
11608521070a0Smrg    as_ln_s='cp -p'
11609521070a0Smrg  fi
11610521070a0Smrgelse
11611521070a0Smrg  as_ln_s='cp -p'
11612521070a0Smrgfi
11613521070a0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11614521070a0Smrgrmdir conf$$.dir 2>/dev/null
116154456fccdSmrg
116164456fccdSmrg
11617521070a0Smrg# as_fn_mkdir_p
11618521070a0Smrg# -------------
11619521070a0Smrg# Create "$as_dir" as a directory, including parents if necessary.
11620521070a0Smrgas_fn_mkdir_p ()
11621521070a0Smrg{
116224456fccdSmrg
11623521070a0Smrg  case $as_dir in #(
11624521070a0Smrg  -*) as_dir=./$as_dir;;
11625521070a0Smrg  esac
11626521070a0Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
11627521070a0Smrg    as_dirs=
11628521070a0Smrg    while :; do
11629521070a0Smrg      case $as_dir in #(
11630521070a0Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11631521070a0Smrg      *) as_qdir=$as_dir;;
11632521070a0Smrg      esac
11633521070a0Smrg      as_dirs="'$as_qdir' $as_dirs"
11634521070a0Smrg      as_dir=`$as_dirname -- "$as_dir" ||
11635521070a0Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636521070a0Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11637521070a0Smrg	 X"$as_dir" : 'X\(//\)$' \| \
11638521070a0Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11639521070a0Smrg$as_echo X"$as_dir" |
11640521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11641521070a0Smrg	    s//\1/
11642521070a0Smrg	    q
11643521070a0Smrg	  }
11644521070a0Smrg	  /^X\(\/\/\)[^/].*/{
11645521070a0Smrg	    s//\1/
11646521070a0Smrg	    q
11647521070a0Smrg	  }
11648521070a0Smrg	  /^X\(\/\/\)$/{
11649521070a0Smrg	    s//\1/
11650521070a0Smrg	    q
11651521070a0Smrg	  }
11652521070a0Smrg	  /^X\(\/\).*/{
11653521070a0Smrg	    s//\1/
11654521070a0Smrg	    q
11655521070a0Smrg	  }
11656521070a0Smrg	  s/.*/./; q'`
11657521070a0Smrg      test -d "$as_dir" && break
11658521070a0Smrg    done
11659521070a0Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11660ff63a143Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
116614456fccdSmrg
116624456fccdSmrg
11663521070a0Smrg} # as_fn_mkdir_p
11664521070a0Smrgif mkdir -p . 2>/dev/null; then
11665521070a0Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11666521070a0Smrgelse
11667521070a0Smrg  test -d ./-p && rmdir ./-p
11668521070a0Smrg  as_mkdir_p=false
11669521070a0Smrgfi
116704456fccdSmrg
11671521070a0Smrgif test -x / >/dev/null 2>&1; then
11672521070a0Smrg  as_test_x='test -x'
11673521070a0Smrgelse
11674521070a0Smrg  if ls -dL / >/dev/null 2>&1; then
11675521070a0Smrg    as_ls_L_option=L
11676521070a0Smrg  else
11677521070a0Smrg    as_ls_L_option=
11678521070a0Smrg  fi
11679521070a0Smrg  as_test_x='
11680521070a0Smrg    eval sh -c '\''
11681521070a0Smrg      if test -d "$1"; then
11682521070a0Smrg	test -d "$1/.";
11683521070a0Smrg      else
11684521070a0Smrg	case $1 in #(
11685521070a0Smrg	-*)set "./$1";;
11686521070a0Smrg	esac;
11687521070a0Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11688521070a0Smrg	???[sx]*):;;*)false;;esac;fi
11689521070a0Smrg    '\'' sh
11690521070a0Smrg  '
11691521070a0Smrgfi
11692521070a0Smrgas_executable_p=$as_test_x
116934456fccdSmrg
11694521070a0Smrg# Sed expression to map a string onto a valid CPP name.
11695521070a0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1169642d69509Smrg
11697521070a0Smrg# Sed expression to map a string onto a valid variable name.
11698521070a0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
116994456fccdSmrg
117004456fccdSmrg
11701521070a0Smrgexec 6>&1
11702521070a0Smrg## ----------------------------------- ##
11703521070a0Smrg## Main body of $CONFIG_STATUS script. ##
11704521070a0Smrg## ----------------------------------- ##
11705521070a0Smrg_ASEOF
11706521070a0Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
117074456fccdSmrg
11708521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709521070a0Smrg# Save the log message, to keep $0 and so on meaningful, and to
11710521070a0Smrg# report actual input values of CONFIG_FILES etc. instead of their
11711521070a0Smrg# values after options handling.
11712521070a0Smrgac_log="
11713ff63a143SmrgThis file was extended by libXfixes $as_me 5.0, which was
11714ff63a143Smrggenerated by GNU Autoconf 2.66.  Invocation command line was
117154456fccdSmrg
11716521070a0Smrg  CONFIG_FILES    = $CONFIG_FILES
11717521070a0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11718521070a0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11719521070a0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11720521070a0Smrg  $ $0 $@
117214456fccdSmrg
11722521070a0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11723521070a0Smrg"
117244456fccdSmrg
11725521070a0Smrg_ACEOF
117264456fccdSmrg
11727521070a0Smrgcase $ac_config_files in *"
11728521070a0Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11729521070a0Smrgesac
117304456fccdSmrg
11731521070a0Smrgcase $ac_config_headers in *"
11732521070a0Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11733521070a0Smrgesac
117344456fccdSmrg
117354456fccdSmrg
11736521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11737521070a0Smrg# Files that config.status was made for.
11738521070a0Smrgconfig_files="$ac_config_files"
11739521070a0Smrgconfig_headers="$ac_config_headers"
11740521070a0Smrgconfig_commands="$ac_config_commands"
117414456fccdSmrg
11742521070a0Smrg_ACEOF
117434456fccdSmrg
11744521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11745521070a0Smrgac_cs_usage="\
11746521070a0Smrg\`$as_me' instantiates files and other configuration actions
11747521070a0Smrgfrom templates according to the current configuration.  Unless the files
11748521070a0Smrgand actions are specified as TAGs, all are instantiated by default.
117494456fccdSmrg
11750521070a0SmrgUsage: $0 [OPTION]... [TAG]...
117514456fccdSmrg
11752521070a0Smrg  -h, --help       print this help, then exit
11753521070a0Smrg  -V, --version    print version number and configuration settings, then exit
11754521070a0Smrg      --config     print configuration, then exit
11755521070a0Smrg  -q, --quiet, --silent
11756521070a0Smrg                   do not print progress messages
11757521070a0Smrg  -d, --debug      don't remove temporary files
11758521070a0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11759521070a0Smrg      --file=FILE[:TEMPLATE]
11760521070a0Smrg                   instantiate the configuration file FILE
11761521070a0Smrg      --header=FILE[:TEMPLATE]
11762521070a0Smrg                   instantiate the configuration header FILE
117634456fccdSmrg
11764521070a0SmrgConfiguration files:
11765521070a0Smrg$config_files
117664456fccdSmrg
11767521070a0SmrgConfiguration headers:
11768521070a0Smrg$config_headers
117694456fccdSmrg
11770521070a0SmrgConfiguration commands:
11771521070a0Smrg$config_commands
117724456fccdSmrg
11773521070a0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
117744456fccdSmrg
11775521070a0Smrg_ACEOF
11776521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777521070a0Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11778521070a0Smrgac_cs_version="\\
11779ff63a143SmrglibXfixes config.status 5.0
11780ff63a143Smrgconfigured by $0, generated by GNU Autoconf 2.66,
11781521070a0Smrg  with options \\"\$ac_cs_config\\"
117824456fccdSmrg
11783ff63a143SmrgCopyright (C) 2010 Free Software Foundation, Inc.
11784521070a0SmrgThis config.status script is free software; the Free Software Foundation
11785521070a0Smrggives unlimited permission to copy, distribute and modify it."
117864456fccdSmrg
11787521070a0Smrgac_pwd='$ac_pwd'
11788521070a0Smrgsrcdir='$srcdir'
11789521070a0SmrgINSTALL='$INSTALL'
11790521070a0SmrgMKDIR_P='$MKDIR_P'
11791521070a0SmrgAWK='$AWK'
11792521070a0Smrgtest -n "\$AWK" || AWK=awk
11793521070a0Smrg_ACEOF
117944456fccdSmrg
11795521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796521070a0Smrg# The default lists apply if the user does not specify any file.
11797521070a0Smrgac_need_defaults=:
11798521070a0Smrgwhile test $# != 0
11799521070a0Smrgdo
11800521070a0Smrg  case $1 in
11801521070a0Smrg  --*=*)
11802521070a0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11803521070a0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11804521070a0Smrg    ac_shift=:
11805521070a0Smrg    ;;
11806521070a0Smrg  *)
11807521070a0Smrg    ac_option=$1
11808521070a0Smrg    ac_optarg=$2
11809521070a0Smrg    ac_shift=shift
11810521070a0Smrg    ;;
11811521070a0Smrg  esac
118124456fccdSmrg
11813521070a0Smrg  case $ac_option in
11814521070a0Smrg  # Handling of the options.
11815521070a0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11816521070a0Smrg    ac_cs_recheck=: ;;
11817521070a0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11818521070a0Smrg    $as_echo "$ac_cs_version"; exit ;;
11819521070a0Smrg  --config | --confi | --conf | --con | --co | --c )
11820521070a0Smrg    $as_echo "$ac_cs_config"; exit ;;
11821521070a0Smrg  --debug | --debu | --deb | --de | --d | -d )
11822521070a0Smrg    debug=: ;;
11823521070a0Smrg  --file | --fil | --fi | --f )
11824521070a0Smrg    $ac_shift
11825521070a0Smrg    case $ac_optarg in
11826521070a0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11827521070a0Smrg    esac
11828521070a0Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11829521070a0Smrg    ac_need_defaults=false;;
11830521070a0Smrg  --header | --heade | --head | --hea )
11831521070a0Smrg    $ac_shift
11832521070a0Smrg    case $ac_optarg in
11833521070a0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11834521070a0Smrg    esac
11835521070a0Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11836521070a0Smrg    ac_need_defaults=false;;
11837521070a0Smrg  --he | --h)
11838521070a0Smrg    # Conflict between --help and --header
11839ff63a143Smrg    as_fn_error $? "ambiguous option: \`$1'
11840521070a0SmrgTry \`$0 --help' for more information.";;
11841521070a0Smrg  --help | --hel | -h )
11842521070a0Smrg    $as_echo "$ac_cs_usage"; exit ;;
11843521070a0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11844521070a0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11845521070a0Smrg    ac_cs_silent=: ;;
118464456fccdSmrg
11847521070a0Smrg  # This is an error.
11848ff63a143Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
11849521070a0SmrgTry \`$0 --help' for more information." ;;
118504456fccdSmrg
11851521070a0Smrg  *) as_fn_append ac_config_targets " $1"
11852521070a0Smrg     ac_need_defaults=false ;;
118534456fccdSmrg
11854521070a0Smrg  esac
11855521070a0Smrg  shift
11856521070a0Smrgdone
118574456fccdSmrg
11858521070a0Smrgac_configure_extra_args=
118594456fccdSmrg
11860521070a0Smrgif $ac_cs_silent; then
11861521070a0Smrg  exec 6>/dev/null
11862521070a0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11863521070a0Smrgfi
118644456fccdSmrg
11865521070a0Smrg_ACEOF
11866521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11867521070a0Smrgif \$ac_cs_recheck; then
11868521070a0Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11869521070a0Smrg  shift
11870521070a0Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11871521070a0Smrg  CONFIG_SHELL='$SHELL'
11872521070a0Smrg  export CONFIG_SHELL
11873521070a0Smrg  exec "\$@"
118744456fccdSmrgfi
118754456fccdSmrg
11876521070a0Smrg_ACEOF
11877521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11878521070a0Smrgexec 5>>config.log
11879521070a0Smrg{
11880521070a0Smrg  echo
11881521070a0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11882521070a0Smrg## Running $as_me. ##
11883521070a0Smrg_ASBOX
11884521070a0Smrg  $as_echo "$ac_log"
11885521070a0Smrg} >&5
118864456fccdSmrg
11887521070a0Smrg_ACEOF
11888521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889521070a0Smrg#
11890521070a0Smrg# INIT-COMMANDS
11891521070a0Smrg#
11892521070a0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
118934456fccdSmrg
118944456fccdSmrg
11895521070a0Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
11896521070a0Smrg# if CDPATH is set.
11897521070a0Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
118984456fccdSmrg
11899521070a0Smrgsed_quote_subst='$sed_quote_subst'
11900521070a0Smrgdouble_quote_subst='$double_quote_subst'
11901521070a0Smrgdelay_variable_subst='$delay_variable_subst'
11902ff63a143Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11903ff63a143Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11904ff63a143Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11905ff63a143Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11906ff63a143Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11907ff63a143Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11908ff63a143SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11909ff63a143SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11910ff63a143Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11911ff63a143Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11912ff63a143Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11913ff63a143Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11914ff63a143Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11915ff63a143Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11916ff63a143SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11917ff63a143SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11918ff63a143SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11919ff63a143SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11920ff63a143SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11921ff63a143SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11922ff63a143SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11923ff63a143SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11924ff63a143Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11925ff63a143Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11926ff63a143Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11927ff63a143Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11928ff63a143Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11929ff63a143Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11930ff63a143Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11931ff63a143Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11932ff63a143SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11933ff63a143Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11934ff63a143Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11935ff63a143SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11936ff63a143SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11937ff63a143SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11938ff63a143SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11939ff63a143Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11940ff63a143Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11941ff63a143Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11942ff63a143Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11943ff63a143SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11944ff63a143SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11945ff63a143Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11946ff63a143SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11947ff63a143Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11948ff63a143Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11949ff63a143Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11950ff63a143Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
11951ff63a143Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11952ff63a143SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11953ff63a143Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11954ff63a143Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11955ff63a143Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11956ff63a143Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11957ff63a143Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11958ff63a143Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11959ff63a143SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11960ff63a143SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11961ff63a143SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11962ff63a143SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11963ff63a143SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11964ff63a143Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11965ff63a143Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11966ff63a143Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11967ff63a143Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11968ff63a143Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11969ff63a143Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11970ff63a143Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11971ff63a143Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11972ff63a143Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11973ff63a143Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11974ff63a143Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11975ff63a143Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11976ff63a143Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11977ff63a143Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11978ff63a143Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11979ff63a143Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11980ff63a143Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11981ff63a143Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11982ff63a143Smrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11983ff63a143Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11984ff63a143Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11985ff63a143Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11986ff63a143Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11987ff63a143Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11988ff63a143Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11989ff63a143Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11990ff63a143Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11991ff63a143Smrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11992ff63a143Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11993ff63a143Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11994ff63a143Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11995ff63a143Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11996ff63a143Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11997ff63a143Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11998ff63a143Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11999ff63a143Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12000ff63a143Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12001ff63a143Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12002ff63a143Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12003ff63a143Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12004ff63a143Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12005ff63a143Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12006ff63a143Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12007ff63a143Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12008ff63a143Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12009ff63a143Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12010ff63a143Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12011ff63a143Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12012ff63a143Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12013ff63a143Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12014ff63a143Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12015ff63a143Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12016ff63a143Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12017ff63a143Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12018ff63a143Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12019ff63a143Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12020ff63a143Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12021ff63a143Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12022521070a0Smrg
12023521070a0SmrgLTCC='$LTCC'
12024521070a0SmrgLTCFLAGS='$LTCFLAGS'
12025521070a0Smrgcompiler='$compiler_DEFAULT'
12026521070a0Smrg
12027ff63a143Smrg# A function that is used when there is no print builtin or printf.
12028ff63a143Smrgfunc_fallback_echo ()
12029ff63a143Smrg{
12030ff63a143Smrg  eval 'cat <<_LTECHO_EOF
12031ff63a143Smrg\$1
12032ff63a143Smrg_LTECHO_EOF'
12033ff63a143Smrg}
12034ff63a143Smrg
12035521070a0Smrg# Quote evaled strings.
12036ff63a143Smrgfor var in SHELL \
12037ff63a143SmrgECHO \
12038ff63a143SmrgSED \
12039521070a0SmrgGREP \
12040521070a0SmrgEGREP \
12041521070a0SmrgFGREP \
12042521070a0SmrgLD \
12043521070a0SmrgNM \
12044521070a0SmrgLN_S \
12045521070a0Smrglt_SP2NL \
12046521070a0Smrglt_NL2SP \
12047521070a0Smrgreload_flag \
12048521070a0SmrgOBJDUMP \
12049521070a0Smrgdeplibs_check_method \
12050521070a0Smrgfile_magic_cmd \
12051521070a0SmrgAR \
12052521070a0SmrgAR_FLAGS \
12053521070a0SmrgSTRIP \
12054521070a0SmrgRANLIB \
12055521070a0SmrgCC \
12056521070a0SmrgCFLAGS \
12057521070a0Smrgcompiler \
12058521070a0Smrglt_cv_sys_global_symbol_pipe \
12059521070a0Smrglt_cv_sys_global_symbol_to_cdecl \
12060521070a0Smrglt_cv_sys_global_symbol_to_c_name_address \
12061521070a0Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12062521070a0Smrglt_prog_compiler_no_builtin_flag \
12063521070a0Smrglt_prog_compiler_wl \
12064521070a0Smrglt_prog_compiler_pic \
12065521070a0Smrglt_prog_compiler_static \
12066521070a0Smrglt_cv_prog_compiler_c_o \
12067521070a0Smrgneed_locks \
12068521070a0SmrgDSYMUTIL \
12069521070a0SmrgNMEDIT \
12070521070a0SmrgLIPO \
12071521070a0SmrgOTOOL \
12072521070a0SmrgOTOOL64 \
12073521070a0Smrgshrext_cmds \
12074521070a0Smrgexport_dynamic_flag_spec \
12075521070a0Smrgwhole_archive_flag_spec \
12076521070a0Smrgcompiler_needs_object \
12077521070a0Smrgwith_gnu_ld \
12078521070a0Smrgallow_undefined_flag \
12079521070a0Smrgno_undefined_flag \
12080521070a0Smrghardcode_libdir_flag_spec \
12081521070a0Smrghardcode_libdir_flag_spec_ld \
12082521070a0Smrghardcode_libdir_separator \
12083521070a0Smrgfix_srcfile_path \
12084521070a0Smrgexclude_expsyms \
12085521070a0Smrginclude_expsyms \
12086521070a0Smrgfile_list_spec \
12087521070a0Smrgvariables_saved_for_relink \
12088521070a0Smrglibname_spec \
12089521070a0Smrglibrary_names_spec \
12090521070a0Smrgsoname_spec \
12091ff63a143Smrginstall_override_mode \
12092521070a0Smrgfinish_eval \
12093521070a0Smrgold_striplib \
12094521070a0Smrgstriplib; do
12095ff63a143Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12096521070a0Smrg    *[\\\\\\\`\\"\\\$]*)
12097ff63a143Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12098521070a0Smrg      ;;
12099521070a0Smrg    *)
12100521070a0Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12101521070a0Smrg      ;;
12102521070a0Smrg    esac
12103521070a0Smrgdone
121044456fccdSmrg
12105521070a0Smrg# Double-quote double-evaled strings.
12106521070a0Smrgfor var in reload_cmds \
12107521070a0Smrgold_postinstall_cmds \
12108521070a0Smrgold_postuninstall_cmds \
12109521070a0Smrgold_archive_cmds \
12110521070a0Smrgextract_expsyms_cmds \
12111521070a0Smrgold_archive_from_new_cmds \
12112521070a0Smrgold_archive_from_expsyms_cmds \
12113521070a0Smrgarchive_cmds \
12114521070a0Smrgarchive_expsym_cmds \
12115521070a0Smrgmodule_cmds \
12116521070a0Smrgmodule_expsym_cmds \
12117521070a0Smrgexport_symbols_cmds \
12118521070a0Smrgprelink_cmds \
12119521070a0Smrgpostinstall_cmds \
12120521070a0Smrgpostuninstall_cmds \
12121521070a0Smrgfinish_cmds \
12122521070a0Smrgsys_lib_search_path_spec \
12123521070a0Smrgsys_lib_dlsearch_path_spec; do
12124ff63a143Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12125521070a0Smrg    *[\\\\\\\`\\"\\\$]*)
12126ff63a143Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12127521070a0Smrg      ;;
12128521070a0Smrg    *)
12129521070a0Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12130521070a0Smrg      ;;
12131521070a0Smrg    esac
12132521070a0Smrgdone
121334456fccdSmrg
12134521070a0Smrgac_aux_dir='$ac_aux_dir'
12135521070a0Smrgxsi_shell='$xsi_shell'
12136521070a0Smrglt_shell_append='$lt_shell_append'
121374456fccdSmrg
12138521070a0Smrg# See if we are running on zsh, and set the options which allow our
12139521070a0Smrg# commands through without removal of \ escapes INIT.
12140521070a0Smrgif test -n "\${ZSH_VERSION+set}" ; then
12141521070a0Smrg   setopt NO_GLOB_SUBST
12142521070a0Smrgfi
121434456fccdSmrg
121444456fccdSmrg
12145521070a0Smrg    PACKAGE='$PACKAGE'
12146521070a0Smrg    VERSION='$VERSION'
12147521070a0Smrg    TIMESTAMP='$TIMESTAMP'
12148521070a0Smrg    RM='$RM'
12149521070a0Smrg    ofile='$ofile'
121504456fccdSmrg
121514456fccdSmrg
121524456fccdSmrg
121534456fccdSmrg
12154521070a0Smrg_ACEOF
121554456fccdSmrg
12156521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121574456fccdSmrg
12158521070a0Smrg# Handling of arguments.
12159521070a0Smrgfor ac_config_target in $ac_config_targets
12160521070a0Smrgdo
12161521070a0Smrg  case $ac_config_target in
12162521070a0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12163521070a0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12164521070a0Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12165521070a0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12166521070a0Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12167521070a0Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12168521070a0Smrg    "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
121694456fccdSmrg
12170ff63a143Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
121714456fccdSmrg  esac
121724456fccdSmrgdone
121734456fccdSmrg
121744456fccdSmrg
12175521070a0Smrg# If the user did not use the arguments to specify the items to instantiate,
12176521070a0Smrg# then the envvar interface is used.  Set only those that are not.
12177521070a0Smrg# We use the long form for the default assignment because of an extremely
12178521070a0Smrg# bizarre bug on SunOS 4.1.3.
12179521070a0Smrgif $ac_need_defaults; then
12180521070a0Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12181521070a0Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12182521070a0Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12183521070a0Smrgfi
121844456fccdSmrg
12185521070a0Smrg# Have a temporary directory for convenience.  Make it in the build tree
12186521070a0Smrg# simply because there is no reason against having it here, and in addition,
12187521070a0Smrg# creating and moving files from /tmp can sometimes cause problems.
12188521070a0Smrg# Hook for its removal unless debugging.
12189521070a0Smrg# Note that there is a small window in which the directory will not be cleaned:
12190521070a0Smrg# after its creation but before its name has been assigned to `$tmp'.
12191521070a0Smrg$debug ||
12192521070a0Smrg{
12193521070a0Smrg  tmp=
12194521070a0Smrg  trap 'exit_status=$?
12195521070a0Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12196521070a0Smrg' 0
12197521070a0Smrg  trap 'as_fn_exit 1' 1 2 13 15
12198521070a0Smrg}
12199521070a0Smrg# Create a (secure) tmp directory for tmp files.
122004456fccdSmrg
12201521070a0Smrg{
12202521070a0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12203521070a0Smrg  test -n "$tmp" && test -d "$tmp"
12204521070a0Smrg}  ||
12205521070a0Smrg{
12206521070a0Smrg  tmp=./conf$$-$RANDOM
12207521070a0Smrg  (umask 077 && mkdir "$tmp")
12208ff63a143Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
122094456fccdSmrg
12210521070a0Smrg# Set up the scripts for CONFIG_FILES section.
12211521070a0Smrg# No need to generate them if there are no CONFIG_FILES.
12212521070a0Smrg# This happens for instance with `./config.status config.h'.
12213521070a0Smrgif test -n "$CONFIG_FILES"; then
122144456fccdSmrg
122154456fccdSmrg
12216521070a0Smrgac_cr=`echo X | tr X '\015'`
12217521070a0Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12218521070a0Smrg# But we know of no other shell where ac_cr would be empty at this
12219521070a0Smrg# point, so we can use a bashism as a fallback.
12220521070a0Smrgif test "x$ac_cr" = x; then
12221521070a0Smrg  eval ac_cr=\$\'\\r\'
122224456fccdSmrgfi
12223521070a0Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12224521070a0Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12225ff63a143Smrg  ac_cs_awk_cr='\\r'
122264456fccdSmrgelse
12227521070a0Smrg  ac_cs_awk_cr=$ac_cr
122284456fccdSmrgfi
122294456fccdSmrg
12230521070a0Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
12231521070a0Smrg_ACEOF
122324456fccdSmrg
122334456fccdSmrg
12234521070a0Smrg{
12235521070a0Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12236521070a0Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12237521070a0Smrg  echo "_ACEOF"
12238521070a0Smrg} >conf$$subs.sh ||
12239ff63a143Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12240ff63a143Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12241521070a0Smrgac_delim='%!_!# '
12242521070a0Smrgfor ac_last_try in false false false false false :; do
12243521070a0Smrg  . ./conf$$subs.sh ||
12244ff63a143Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
122454456fccdSmrg
12246521070a0Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12247521070a0Smrg  if test $ac_delim_n = $ac_delim_num; then
12248521070a0Smrg    break
12249521070a0Smrg  elif $ac_last_try; then
12250ff63a143Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12251521070a0Smrg  else
12252521070a0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12253521070a0Smrg  fi
12254521070a0Smrgdone
12255521070a0Smrgrm -f conf$$subs.sh
122564456fccdSmrg
12257521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258521070a0Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12259521070a0Smrg_ACEOF
12260521070a0Smrgsed -n '
12261521070a0Smrgh
12262521070a0Smrgs/^/S["/; s/!.*/"]=/
12263521070a0Smrgp
12264521070a0Smrgg
12265521070a0Smrgs/^[^!]*!//
12266521070a0Smrg:repl
12267521070a0Smrgt repl
12268521070a0Smrgs/'"$ac_delim"'$//
12269521070a0Smrgt delim
12270521070a0Smrg:nl
12271521070a0Smrgh
12272521070a0Smrgs/\(.\{148\}\)..*/\1/
12273521070a0Smrgt more1
12274521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12275521070a0Smrgp
12276521070a0Smrgn
12277521070a0Smrgb repl
12278521070a0Smrg:more1
12279521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12280521070a0Smrgp
12281521070a0Smrgg
12282521070a0Smrgs/.\{148\}//
12283521070a0Smrgt nl
12284521070a0Smrg:delim
12285521070a0Smrgh
12286521070a0Smrgs/\(.\{148\}\)..*/\1/
12287521070a0Smrgt more2
12288521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12289521070a0Smrgp
12290521070a0Smrgb
12291521070a0Smrg:more2
12292521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12293521070a0Smrgp
12294521070a0Smrgg
12295521070a0Smrgs/.\{148\}//
12296521070a0Smrgt delim
12297521070a0Smrg' <conf$$subs.awk | sed '
12298521070a0Smrg/^[^""]/{
12299521070a0Smrg  N
12300521070a0Smrg  s/\n//
12301521070a0Smrg}
12302521070a0Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12303521070a0Smrgrm -f conf$$subs.awk
12304521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305521070a0Smrg_ACAWK
12306521070a0Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
12307521070a0Smrg  for (key in S) S_is_set[key] = 1
12308521070a0Smrg  FS = ""
123094456fccdSmrg
12310521070a0Smrg}
12311521070a0Smrg{
12312521070a0Smrg  line = $ 0
12313521070a0Smrg  nfields = split(line, field, "@")
12314521070a0Smrg  substed = 0
12315521070a0Smrg  len = length(field[1])
12316521070a0Smrg  for (i = 2; i < nfields; i++) {
12317521070a0Smrg    key = field[i]
12318521070a0Smrg    keylen = length(key)
12319521070a0Smrg    if (S_is_set[key]) {
12320521070a0Smrg      value = S[key]
12321521070a0Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12322521070a0Smrg      len += length(value) + length(field[++i])
12323521070a0Smrg      substed = 1
12324521070a0Smrg    } else
12325521070a0Smrg      len += 1 + keylen
12326521070a0Smrg  }
1232742d69509Smrg
12328521070a0Smrg  print line
12329521070a0Smrg}
123304456fccdSmrg
12331521070a0Smrg_ACAWK
12332521070a0Smrg_ACEOF
12333521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334521070a0Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12335521070a0Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12336521070a0Smrgelse
12337521070a0Smrg  cat
12338521070a0Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12339ff63a143Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12340521070a0Smrg_ACEOF
123414456fccdSmrg
12342ff63a143Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12343ff63a143Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12344521070a0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12345521070a0Smrg# (actually we leave an empty line to preserve line numbers).
12346521070a0Smrgif test "x$srcdir" = x.; then
12347ff63a143Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12348ff63a143Smrgh
12349ff63a143Smrgs///
12350ff63a143Smrgs/^/:/
12351ff63a143Smrgs/[	 ]*$/:/
12352ff63a143Smrgs/:\$(srcdir):/:/g
12353ff63a143Smrgs/:\${srcdir}:/:/g
12354ff63a143Smrgs/:@srcdir@:/:/g
12355ff63a143Smrgs/^:*//
12356521070a0Smrgs/:*$//
12357ff63a143Smrgx
12358ff63a143Smrgs/\(=[	 ]*\).*/\1/
12359ff63a143SmrgG
12360ff63a143Smrgs/\n//
12361521070a0Smrgs/^[^=]*=[	 ]*$//
12362521070a0Smrg}'
12363521070a0Smrgfi
123644456fccdSmrg
12365521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366521070a0Smrgfi # test -n "$CONFIG_FILES"
123674456fccdSmrg
12368521070a0Smrg# Set up the scripts for CONFIG_HEADERS section.
12369521070a0Smrg# No need to generate them if there are no CONFIG_HEADERS.
12370521070a0Smrg# This happens for instance with `./config.status Makefile'.
12371521070a0Smrgif test -n "$CONFIG_HEADERS"; then
12372521070a0Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
12373521070a0SmrgBEGIN {
12374521070a0Smrg_ACEOF
123754456fccdSmrg
12376521070a0Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12377521070a0Smrg# here-document in config.status, that substitutes the proper values into
12378521070a0Smrg# config.h.in to produce config.h.
123794456fccdSmrg
12380521070a0Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12381521070a0Smrg# handling of long lines.
12382521070a0Smrgac_delim='%!_!# '
12383521070a0Smrgfor ac_last_try in false false :; do
12384521070a0Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12385521070a0Smrg  if test -z "$ac_t"; then
12386521070a0Smrg    break
12387521070a0Smrg  elif $ac_last_try; then
12388ff63a143Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
123894456fccdSmrg  else
12390521070a0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12391521070a0Smrg  fi
12392521070a0Smrgdone
123934456fccdSmrg
12394521070a0Smrg# For the awk script, D is an array of macro values keyed by name,
12395521070a0Smrg# likewise P contains macro parameters if any.  Preserve backslash
12396521070a0Smrg# newline sequences.
123974456fccdSmrg
12398521070a0Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12399521070a0Smrgsed -n '
12400521070a0Smrgs/.\{148\}/&'"$ac_delim"'/g
12401521070a0Smrgt rset
12402521070a0Smrg:rset
12403521070a0Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12404521070a0Smrgt def
12405521070a0Smrgd
12406521070a0Smrg:def
12407521070a0Smrgs/\\$//
12408521070a0Smrgt bsnl
12409521070a0Smrgs/["\\]/\\&/g
12410521070a0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12411521070a0SmrgD["\1"]=" \3"/p
12412521070a0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12413521070a0Smrgd
12414521070a0Smrg:bsnl
12415521070a0Smrgs/["\\]/\\&/g
12416521070a0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12417521070a0SmrgD["\1"]=" \3\\\\\\n"\\/p
12418521070a0Smrgt cont
12419521070a0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12420521070a0Smrgt cont
12421521070a0Smrgd
12422521070a0Smrg:cont
12423521070a0Smrgn
12424521070a0Smrgs/.\{148\}/&'"$ac_delim"'/g
12425521070a0Smrgt clear
12426521070a0Smrg:clear
12427521070a0Smrgs/\\$//
12428521070a0Smrgt bsnlc
12429521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12430521070a0Smrgd
12431521070a0Smrg:bsnlc
12432521070a0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12433521070a0Smrgb cont
12434521070a0Smrg' <confdefs.h | sed '
12435521070a0Smrgs/'"$ac_delim"'/"\\\
12436521070a0Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
124374456fccdSmrg
12438521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12439521070a0Smrg  for (key in D) D_is_set[key] = 1
12440521070a0Smrg  FS = ""
12441521070a0Smrg}
12442521070a0Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12443521070a0Smrg  line = \$ 0
12444521070a0Smrg  split(line, arg, " ")
12445521070a0Smrg  if (arg[1] == "#") {
12446521070a0Smrg    defundef = arg[2]
12447521070a0Smrg    mac1 = arg[3]
12448521070a0Smrg  } else {
12449521070a0Smrg    defundef = substr(arg[1], 2)
12450521070a0Smrg    mac1 = arg[2]
12451521070a0Smrg  }
12452521070a0Smrg  split(mac1, mac2, "(") #)
12453521070a0Smrg  macro = mac2[1]
12454521070a0Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12455521070a0Smrg  if (D_is_set[macro]) {
12456521070a0Smrg    # Preserve the white space surrounding the "#".
12457521070a0Smrg    print prefix "define", macro P[macro] D[macro]
12458521070a0Smrg    next
12459521070a0Smrg  } else {
12460521070a0Smrg    # Replace #undef with comments.  This is necessary, for example,
12461521070a0Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12462521070a0Smrg    # on some systems where configure will not decide to define it.
12463521070a0Smrg    if (defundef == "undef") {
12464521070a0Smrg      print "/*", prefix defundef, macro, "*/"
12465521070a0Smrg      next
12466521070a0Smrg    }
12467521070a0Smrg  }
12468521070a0Smrg}
12469521070a0Smrg{ print }
12470521070a0Smrg_ACAWK
12471521070a0Smrg_ACEOF
12472521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12473ff63a143Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12474521070a0Smrgfi # test -n "$CONFIG_HEADERS"
124754456fccdSmrg
124764456fccdSmrg
12477521070a0Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12478521070a0Smrgshift
12479521070a0Smrgfor ac_tag
12480521070a0Smrgdo
12481521070a0Smrg  case $ac_tag in
12482521070a0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12483521070a0Smrg  esac
12484521070a0Smrg  case $ac_mode$ac_tag in
12485521070a0Smrg  :[FHL]*:*);;
12486ff63a143Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12487521070a0Smrg  :[FH]-) ac_tag=-:-;;
12488521070a0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12489521070a0Smrg  esac
12490521070a0Smrg  ac_save_IFS=$IFS
12491521070a0Smrg  IFS=:
12492521070a0Smrg  set x $ac_tag
12493521070a0Smrg  IFS=$ac_save_IFS
12494521070a0Smrg  shift
12495521070a0Smrg  ac_file=$1
12496521070a0Smrg  shift
124974456fccdSmrg
12498521070a0Smrg  case $ac_mode in
12499521070a0Smrg  :L) ac_source=$1;;
12500521070a0Smrg  :[FH])
12501521070a0Smrg    ac_file_inputs=
12502521070a0Smrg    for ac_f
12503521070a0Smrg    do
12504521070a0Smrg      case $ac_f in
12505521070a0Smrg      -) ac_f="$tmp/stdin";;
12506521070a0Smrg      *) # Look for the file first in the build tree, then in the source tree
12507521070a0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12508521070a0Smrg	 # because $ac_f cannot contain `:'.
12509521070a0Smrg	 test -f "$ac_f" ||
12510521070a0Smrg	   case $ac_f in
12511521070a0Smrg	   [\\/$]*) false;;
12512521070a0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12513521070a0Smrg	   esac ||
12514ff63a143Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
125154456fccdSmrg      esac
12516521070a0Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12517521070a0Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12518521070a0Smrg    done
125194456fccdSmrg
12520521070a0Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12521521070a0Smrg    # use $as_me), people would be surprised to read:
12522521070a0Smrg    #    /* config.h.  Generated by config.status.  */
12523521070a0Smrg    configure_input='Generated from '`
12524521070a0Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12525521070a0Smrg	`' by configure.'
12526521070a0Smrg    if test x"$ac_file" != x-; then
12527521070a0Smrg      configure_input="$ac_file.  $configure_input"
12528521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12529521070a0Smrg$as_echo "$as_me: creating $ac_file" >&6;}
12530521070a0Smrg    fi
12531521070a0Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12532521070a0Smrg    case $configure_input in #(
12533521070a0Smrg    *\&* | *\|* | *\\* )
12534521070a0Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
12535521070a0Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12536521070a0Smrg    *) ac_sed_conf_input=$configure_input;;
12537521070a0Smrg    esac
125384456fccdSmrg
12539521070a0Smrg    case $ac_tag in
12540521070a0Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
12541ff63a143Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
125424456fccdSmrg    esac
12543521070a0Smrg    ;;
12544521070a0Smrg  esac
125454456fccdSmrg
12546521070a0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12547521070a0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548521070a0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12549521070a0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12550521070a0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12551521070a0Smrg$as_echo X"$ac_file" |
12552521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12553521070a0Smrg	    s//\1/
12554521070a0Smrg	    q
12555521070a0Smrg	  }
12556521070a0Smrg	  /^X\(\/\/\)[^/].*/{
12557521070a0Smrg	    s//\1/
12558521070a0Smrg	    q
12559521070a0Smrg	  }
12560521070a0Smrg	  /^X\(\/\/\)$/{
12561521070a0Smrg	    s//\1/
12562521070a0Smrg	    q
12563521070a0Smrg	  }
12564521070a0Smrg	  /^X\(\/\).*/{
12565521070a0Smrg	    s//\1/
12566521070a0Smrg	    q
12567521070a0Smrg	  }
12568521070a0Smrg	  s/.*/./; q'`
12569521070a0Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
12570521070a0Smrg  ac_builddir=.
125714456fccdSmrg
12572521070a0Smrgcase "$ac_dir" in
12573521070a0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12574521070a0Smrg*)
12575521070a0Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12576521070a0Smrg  # A ".." for each directory in $ac_dir_suffix.
12577521070a0Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12578521070a0Smrg  case $ac_top_builddir_sub in
12579521070a0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12580521070a0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12581521070a0Smrg  esac ;;
12582521070a0Smrgesac
12583521070a0Smrgac_abs_top_builddir=$ac_pwd
12584521070a0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12585521070a0Smrg# for backward compatibility:
12586521070a0Smrgac_top_builddir=$ac_top_build_prefix
125874456fccdSmrg
12588521070a0Smrgcase $srcdir in
12589521070a0Smrg  .)  # We are building in place.
12590521070a0Smrg    ac_srcdir=.
12591521070a0Smrg    ac_top_srcdir=$ac_top_builddir_sub
12592521070a0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12593521070a0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12594521070a0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12595521070a0Smrg    ac_top_srcdir=$srcdir
12596521070a0Smrg    ac_abs_top_srcdir=$srcdir ;;
12597521070a0Smrg  *) # Relative name.
12598521070a0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12599521070a0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12600521070a0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12601521070a0Smrgesac
12602521070a0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
126034456fccdSmrg
126044456fccdSmrg
12605521070a0Smrg  case $ac_mode in
12606521070a0Smrg  :F)
12607521070a0Smrg  #
12608521070a0Smrg  # CONFIG_FILE
12609521070a0Smrg  #
126104456fccdSmrg
12611521070a0Smrg  case $INSTALL in
12612521070a0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12613521070a0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12614521070a0Smrg  esac
12615521070a0Smrg  ac_MKDIR_P=$MKDIR_P
12616521070a0Smrg  case $MKDIR_P in
12617521070a0Smrg  [\\/$]* | ?:[\\/]* ) ;;
12618521070a0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12619521070a0Smrg  esac
12620521070a0Smrg_ACEOF
12621521070a0Smrg
12622521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623521070a0Smrg# If the template does not know about datarootdir, expand it.
12624521070a0Smrg# FIXME: This hack should be removed a few years after 2.60.
12625521070a0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12626521070a0Smrgac_sed_dataroot='
12627521070a0Smrg/datarootdir/ {
12628521070a0Smrg  p
12629521070a0Smrg  q
12630521070a0Smrg}
12631521070a0Smrg/@datadir@/p
12632521070a0Smrg/@docdir@/p
12633521070a0Smrg/@infodir@/p
12634521070a0Smrg/@localedir@/p
12635521070a0Smrg/@mandir@/p'
12636521070a0Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12637521070a0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12638521070a0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12639521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12640521070a0Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12641521070a0Smrg_ACEOF
12642521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12643521070a0Smrg  ac_datarootdir_hack='
12644521070a0Smrg  s&@datadir@&$datadir&g
12645521070a0Smrg  s&@docdir@&$docdir&g
12646521070a0Smrg  s&@infodir@&$infodir&g
12647521070a0Smrg  s&@localedir@&$localedir&g
12648521070a0Smrg  s&@mandir@&$mandir&g
12649521070a0Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
126504456fccdSmrgesac
12651521070a0Smrg_ACEOF
126524456fccdSmrg
12653521070a0Smrg# Neutralize VPATH when `$srcdir' = `.'.
12654521070a0Smrg# Shell code in configure.ac might set extrasub.
12655521070a0Smrg# FIXME: do we really want to maintain this feature?
12656521070a0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12657521070a0Smrgac_sed_extra="$ac_vpsub
12658521070a0Smrg$extrasub
12659521070a0Smrg_ACEOF
12660521070a0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661521070a0Smrg:t
12662521070a0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12663521070a0Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12664521070a0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12665521070a0Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12666521070a0Smrgs&@srcdir@&$ac_srcdir&;t t
12667521070a0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12668521070a0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12669521070a0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12670521070a0Smrgs&@builddir@&$ac_builddir&;t t
12671521070a0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12672521070a0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12673521070a0Smrgs&@INSTALL@&$ac_INSTALL&;t t
12674521070a0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12675521070a0Smrg$ac_datarootdir_hack
12676521070a0Smrg"
12677521070a0Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12678ff63a143Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
126794456fccdSmrg
12680521070a0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12681521070a0Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12682521070a0Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12683521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12684ff63a143Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
12685521070a0Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12686ff63a143Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
126874456fccdSmrg
12688521070a0Smrg  rm -f "$tmp/stdin"
12689521070a0Smrg  case $ac_file in
12690521070a0Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
12691521070a0Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12692521070a0Smrg  esac \
12693ff63a143Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12694521070a0Smrg ;;
12695521070a0Smrg  :H)
12696521070a0Smrg  #
12697521070a0Smrg  # CONFIG_HEADER
12698521070a0Smrg  #
12699521070a0Smrg  if test x"$ac_file" != x-; then
12700521070a0Smrg    {
12701521070a0Smrg      $as_echo "/* $configure_input  */" \
12702521070a0Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12703521070a0Smrg    } >"$tmp/config.h" \
12704ff63a143Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12705521070a0Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12706521070a0Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12707521070a0Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12708521070a0Smrg    else
12709521070a0Smrg      rm -f "$ac_file"
12710521070a0Smrg      mv "$tmp/config.h" "$ac_file" \
12711ff63a143Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12712521070a0Smrg    fi
127134456fccdSmrg  else
12714521070a0Smrg    $as_echo "/* $configure_input  */" \
12715521070a0Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12716ff63a143Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1271742d69509Smrg  fi
12718521070a0Smrg# Compute "$ac_file"'s index in $config_headers.
12719521070a0Smrg_am_arg="$ac_file"
12720521070a0Smrg_am_stamp_count=1
12721521070a0Smrgfor _am_header in $config_headers :; do
12722521070a0Smrg  case $_am_header in
12723521070a0Smrg    $_am_arg | $_am_arg:* )
12724521070a0Smrg      break ;;
12725521070a0Smrg    * )
12726521070a0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12727521070a0Smrg  esac
12728521070a0Smrgdone
12729521070a0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12730521070a0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12731521070a0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12732521070a0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12733521070a0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12734521070a0Smrg$as_echo X"$_am_arg" |
12735521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12736521070a0Smrg	    s//\1/
12737521070a0Smrg	    q
12738521070a0Smrg	  }
12739521070a0Smrg	  /^X\(\/\/\)[^/].*/{
12740521070a0Smrg	    s//\1/
12741521070a0Smrg	    q
12742521070a0Smrg	  }
12743521070a0Smrg	  /^X\(\/\/\)$/{
12744521070a0Smrg	    s//\1/
12745521070a0Smrg	    q
12746521070a0Smrg	  }
12747521070a0Smrg	  /^X\(\/\).*/{
12748521070a0Smrg	    s//\1/
12749521070a0Smrg	    q
12750521070a0Smrg	  }
12751521070a0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12752521070a0Smrg ;;
127534456fccdSmrg
12754521070a0Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12755521070a0Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12756521070a0Smrg ;;
12757521070a0Smrg  esac
127584456fccdSmrg
127594456fccdSmrg
12760521070a0Smrg  case $ac_file$ac_mode in
12761521070a0Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12762521070a0Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12763521070a0Smrg  # are listed without --file.  Let's play safe and only enable the eval
12764521070a0Smrg  # if we detect the quoting.
12765521070a0Smrg  case $CONFIG_FILES in
12766521070a0Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
12767521070a0Smrg  *)   set x $CONFIG_FILES ;;
12768521070a0Smrg  esac
12769521070a0Smrg  shift
12770521070a0Smrg  for mf
12771521070a0Smrg  do
12772521070a0Smrg    # Strip MF so we end up with the name of the file.
12773521070a0Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
12774521070a0Smrg    # Check whether this is an Automake generated Makefile or not.
12775521070a0Smrg    # We used to match only the files named `Makefile.in', but
12776521070a0Smrg    # some people rename them; so instead we look at the file content.
12777521070a0Smrg    # Grep'ing the first line is not enough: some people post-process
12778521070a0Smrg    # each Makefile.in and add a new line on top of each file to say so.
12779521070a0Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
12780521070a0Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12781521070a0Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12782521070a0Smrg      dirpart=`$as_dirname -- "$mf" ||
12783521070a0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12784521070a0Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
12785521070a0Smrg	 X"$mf" : 'X\(//\)$' \| \
12786521070a0Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12787521070a0Smrg$as_echo X"$mf" |
12788521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12789521070a0Smrg	    s//\1/
12790521070a0Smrg	    q
12791521070a0Smrg	  }
12792521070a0Smrg	  /^X\(\/\/\)[^/].*/{
12793521070a0Smrg	    s//\1/
12794521070a0Smrg	    q
12795521070a0Smrg	  }
12796521070a0Smrg	  /^X\(\/\/\)$/{
12797521070a0Smrg	    s//\1/
12798521070a0Smrg	    q
12799521070a0Smrg	  }
12800521070a0Smrg	  /^X\(\/\).*/{
12801521070a0Smrg	    s//\1/
12802521070a0Smrg	    q
12803521070a0Smrg	  }
12804521070a0Smrg	  s/.*/./; q'`
12805521070a0Smrg    else
12806521070a0Smrg      continue
12807521070a0Smrg    fi
12808521070a0Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
12809521070a0Smrg    # from the Makefile without running `make'.
12810521070a0Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12811521070a0Smrg    test -z "$DEPDIR" && continue
12812521070a0Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12813521070a0Smrg    test -z "am__include" && continue
12814521070a0Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12815521070a0Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
12816521070a0Smrg    U=`sed -n 's/^U = //p' < "$mf"`
12817521070a0Smrg    # Find all dependency output files, they are included files with
12818521070a0Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12819521070a0Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
12820521070a0Smrg    # expansion.
12821521070a0Smrg    for file in `sed -n "
12822521070a0Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12823521070a0Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12824521070a0Smrg      # Make sure the directory exists.
12825521070a0Smrg      test -f "$dirpart/$file" && continue
12826521070a0Smrg      fdir=`$as_dirname -- "$file" ||
12827521070a0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12828521070a0Smrg	 X"$file" : 'X\(//\)[^/]' \| \
12829521070a0Smrg	 X"$file" : 'X\(//\)$' \| \
12830521070a0Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12831521070a0Smrg$as_echo X"$file" |
12832521070a0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12833521070a0Smrg	    s//\1/
12834521070a0Smrg	    q
12835521070a0Smrg	  }
12836521070a0Smrg	  /^X\(\/\/\)[^/].*/{
12837521070a0Smrg	    s//\1/
12838521070a0Smrg	    q
12839521070a0Smrg	  }
12840521070a0Smrg	  /^X\(\/\/\)$/{
12841521070a0Smrg	    s//\1/
12842521070a0Smrg	    q
12843521070a0Smrg	  }
12844521070a0Smrg	  /^X\(\/\).*/{
12845521070a0Smrg	    s//\1/
12846521070a0Smrg	    q
12847521070a0Smrg	  }
12848521070a0Smrg	  s/.*/./; q'`
12849521070a0Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12850521070a0Smrg      # echo "creating $dirpart/$file"
12851521070a0Smrg      echo '# dummy' > "$dirpart/$file"
12852521070a0Smrg    done
12853521070a0Smrg  done
12854521070a0Smrg}
12855521070a0Smrg ;;
12856521070a0Smrg    "libtool":C)
128574456fccdSmrg
12858521070a0Smrg    # See if we are running on zsh, and set the options which allow our
12859521070a0Smrg    # commands through without removal of \ escapes.
12860521070a0Smrg    if test -n "${ZSH_VERSION+set}" ; then
12861521070a0Smrg      setopt NO_GLOB_SUBST
12862521070a0Smrg    fi
128634456fccdSmrg
12864521070a0Smrg    cfgfile="${ofile}T"
12865521070a0Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12866521070a0Smrg    $RM "$cfgfile"
128674456fccdSmrg
12868521070a0Smrg    cat <<_LT_EOF >> "$cfgfile"
12869521070a0Smrg#! $SHELL
128704456fccdSmrg
12871521070a0Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12872521070a0Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12873521070a0Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12874521070a0Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
128754456fccdSmrg#
12876521070a0Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12877ff63a143Smrg#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12878ff63a143Smrg#                 Inc.
12879521070a0Smrg#   Written by Gordon Matzigkeit, 1996
128804456fccdSmrg#
12881521070a0Smrg#   This file is part of GNU Libtool.
12882521070a0Smrg#
12883521070a0Smrg# GNU Libtool is free software; you can redistribute it and/or
12884521070a0Smrg# modify it under the terms of the GNU General Public License as
12885521070a0Smrg# published by the Free Software Foundation; either version 2 of
12886521070a0Smrg# the License, or (at your option) any later version.
12887521070a0Smrg#
12888521070a0Smrg# As a special exception to the GNU General Public License,
12889521070a0Smrg# if you distribute this file as part of a program or library that
12890521070a0Smrg# is built using GNU Libtool, you may include this file under the
12891521070a0Smrg# same distribution terms that you use for the rest of that program.
12892521070a0Smrg#
12893521070a0Smrg# GNU Libtool is distributed in the hope that it will be useful,
12894521070a0Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
12895521070a0Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12896521070a0Smrg# GNU General Public License for more details.
12897521070a0Smrg#
12898521070a0Smrg# You should have received a copy of the GNU General Public License
12899521070a0Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
12900521070a0Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12901521070a0Smrg# obtained by writing to the Free Software Foundation, Inc.,
12902521070a0Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
129034456fccdSmrg
129044456fccdSmrg
12905521070a0Smrg# The names of the tagged configurations supported by this script.
12906521070a0Smrgavailable_tags=""
129074456fccdSmrg
12908521070a0Smrg# ### BEGIN LIBTOOL CONFIG
129094456fccdSmrg
12910521070a0Smrg# Which release of libtool.m4 was used?
12911521070a0Smrgmacro_version=$macro_version
12912521070a0Smrgmacro_revision=$macro_revision
129134456fccdSmrg
12914521070a0Smrg# Whether or not to build shared libraries.
12915521070a0Smrgbuild_libtool_libs=$enable_shared
129164456fccdSmrg
12917521070a0Smrg# Whether or not to build static libraries.
12918521070a0Smrgbuild_old_libs=$enable_static
1291942d69509Smrg
12920521070a0Smrg# What type of objects to build.
12921521070a0Smrgpic_mode=$pic_mode
129224456fccdSmrg
12923521070a0Smrg# Whether or not to optimize for fast installation.
12924521070a0Smrgfast_install=$enable_fast_install
129254456fccdSmrg
12926ff63a143Smrg# Shell to use when invoking shell scripts.
12927ff63a143SmrgSHELL=$lt_SHELL
12928ff63a143Smrg
12929ff63a143Smrg# An echo program that protects backslashes.
12930ff63a143SmrgECHO=$lt_ECHO
12931ff63a143Smrg
12932521070a0Smrg# The host system.
12933521070a0Smrghost_alias=$host_alias
12934521070a0Smrghost=$host
12935521070a0Smrghost_os=$host_os
129364456fccdSmrg
12937521070a0Smrg# The build system.
12938521070a0Smrgbuild_alias=$build_alias
12939521070a0Smrgbuild=$build
12940521070a0Smrgbuild_os=$build_os
129414456fccdSmrg
12942521070a0Smrg# A sed program that does not truncate output.
12943521070a0SmrgSED=$lt_SED
1294442d69509Smrg
12945521070a0Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12946521070a0SmrgXsed="\$SED -e 1s/^X//"
1294742d69509Smrg
12948521070a0Smrg# A grep program that handles long lines.
12949521070a0SmrgGREP=$lt_GREP
1295042d69509Smrg
12951521070a0Smrg# An ERE matcher.
12952521070a0SmrgEGREP=$lt_EGREP
129534456fccdSmrg
12954521070a0Smrg# A literal string matcher.
12955521070a0SmrgFGREP=$lt_FGREP
129564456fccdSmrg
12957521070a0Smrg# A BSD- or MS-compatible name lister.
12958521070a0SmrgNM=$lt_NM
129594456fccdSmrg
12960521070a0Smrg# Whether we need soft or hard links.
12961521070a0SmrgLN_S=$lt_LN_S
1296242d69509Smrg
12963521070a0Smrg# What is the maximum length of a command?
12964521070a0Smrgmax_cmd_len=$max_cmd_len
129654456fccdSmrg
12966521070a0Smrg# Object file suffix (normally "o").
12967521070a0Smrgobjext=$ac_objext
129684456fccdSmrg
12969521070a0Smrg# Executable file suffix (normally "").
12970521070a0Smrgexeext=$exeext
129714456fccdSmrg
12972521070a0Smrg# whether the shell understands "unset".
12973521070a0Smrglt_unset=$lt_unset
129744456fccdSmrg
12975521070a0Smrg# turn spaces into newlines.
12976521070a0SmrgSP2NL=$lt_lt_SP2NL
129774456fccdSmrg
12978521070a0Smrg# turn newlines into spaces.
12979521070a0SmrgNL2SP=$lt_lt_NL2SP
129804456fccdSmrg
12981521070a0Smrg# An object symbol dumper.
12982521070a0SmrgOBJDUMP=$lt_OBJDUMP
129834456fccdSmrg
12984521070a0Smrg# Method to check whether dependent libraries are shared objects.
12985521070a0Smrgdeplibs_check_method=$lt_deplibs_check_method
129864456fccdSmrg
12987521070a0Smrg# Command to use when deplibs_check_method == "file_magic".
12988521070a0Smrgfile_magic_cmd=$lt_file_magic_cmd
129894456fccdSmrg
12990521070a0Smrg# The archiver.
12991521070a0SmrgAR=$lt_AR
12992521070a0SmrgAR_FLAGS=$lt_AR_FLAGS
129934456fccdSmrg
12994521070a0Smrg# A symbol stripping program.
12995521070a0SmrgSTRIP=$lt_STRIP
129964456fccdSmrg
12997521070a0Smrg# Commands used to install an old-style archive.
12998521070a0SmrgRANLIB=$lt_RANLIB
12999521070a0Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
13000521070a0Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
130014456fccdSmrg
13002ff63a143Smrg# Whether to use a lock for old archive extraction.
13003ff63a143Smrglock_old_archive_extraction=$lock_old_archive_extraction
13004ff63a143Smrg
13005521070a0Smrg# A C compiler.
13006521070a0SmrgLTCC=$lt_CC
130074456fccdSmrg
13008521070a0Smrg# LTCC compiler flags.
13009521070a0SmrgLTCFLAGS=$lt_CFLAGS
130104456fccdSmrg
13011521070a0Smrg# Take the output of nm and produce a listing of raw symbols and C names.
13012521070a0Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
130134456fccdSmrg
13014521070a0Smrg# Transform the output of nm in a proper C declaration.
13015521070a0Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
130164456fccdSmrg
13017521070a0Smrg# Transform the output of nm in a C name address pair.
13018521070a0Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
130194456fccdSmrg
13020521070a0Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
13021521070a0Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
130224456fccdSmrg
13023521070a0Smrg# The name of the directory that contains temporary libtool files.
13024521070a0Smrgobjdir=$objdir
130254456fccdSmrg
13026521070a0Smrg# Used to examine libraries when file_magic_cmd begins with "file".
13027521070a0SmrgMAGIC_CMD=$MAGIC_CMD
130284456fccdSmrg
13029521070a0Smrg# Must we lock files when doing compilation?
13030521070a0Smrgneed_locks=$lt_need_locks
130314456fccdSmrg
13032521070a0Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13033521070a0SmrgDSYMUTIL=$lt_DSYMUTIL
130344456fccdSmrg
13035521070a0Smrg# Tool to change global to local symbols on Mac OS X.
13036521070a0SmrgNMEDIT=$lt_NMEDIT
130374456fccdSmrg
13038521070a0Smrg# Tool to manipulate fat objects and archives on Mac OS X.
13039521070a0SmrgLIPO=$lt_LIPO
130404456fccdSmrg
13041521070a0Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13042521070a0SmrgOTOOL=$lt_OTOOL
130434456fccdSmrg
13044521070a0Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13045521070a0SmrgOTOOL64=$lt_OTOOL64
130464456fccdSmrg
13047521070a0Smrg# Old archive suffix (normally "a").
13048521070a0Smrglibext=$libext
130494456fccdSmrg
13050521070a0Smrg# Shared library suffix (normally ".so").
13051521070a0Smrgshrext_cmds=$lt_shrext_cmds
130524456fccdSmrg
13053521070a0Smrg# The commands to extract the exported symbol list from a shared archive.
13054521070a0Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
130554456fccdSmrg
13056521070a0Smrg# Variables whose values should be saved in libtool wrapper scripts and
13057521070a0Smrg# restored at link time.
13058521070a0Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
1305942d69509Smrg
13060521070a0Smrg# Do we need the "lib" prefix for modules?
13061521070a0Smrgneed_lib_prefix=$need_lib_prefix
1306242d69509Smrg
13063521070a0Smrg# Do we need a version for libraries?
13064521070a0Smrgneed_version=$need_version
1306542d69509Smrg
13066521070a0Smrg# Library versioning type.
13067521070a0Smrgversion_type=$version_type
130684456fccdSmrg
13069521070a0Smrg# Shared library runtime path variable.
13070521070a0Smrgrunpath_var=$runpath_var
130714456fccdSmrg
13072521070a0Smrg# Shared library path variable.
13073521070a0Smrgshlibpath_var=$shlibpath_var
130744456fccdSmrg
13075521070a0Smrg# Is shlibpath searched before the hard-coded library search path?
13076521070a0Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
130774456fccdSmrg
13078521070a0Smrg# Format of library name prefix.
13079521070a0Smrglibname_spec=$lt_libname_spec
130804456fccdSmrg
13081521070a0Smrg# List of archive names.  First name is the real one, the rest are links.
13082521070a0Smrg# The last name is the one that the linker finds with -lNAME
13083521070a0Smrglibrary_names_spec=$lt_library_names_spec
130844456fccdSmrg
13085521070a0Smrg# The coded name of the library, if different from the real name.
13086521070a0Smrgsoname_spec=$lt_soname_spec
130874456fccdSmrg
13088ff63a143Smrg# Permission mode override for installation of shared libraries.
13089ff63a143Smrginstall_override_mode=$lt_install_override_mode
13090ff63a143Smrg
13091521070a0Smrg# Command to use after installation of a shared archive.
13092521070a0Smrgpostinstall_cmds=$lt_postinstall_cmds
130934456fccdSmrg
13094521070a0Smrg# Command to use after uninstallation of a shared archive.
13095521070a0Smrgpostuninstall_cmds=$lt_postuninstall_cmds
130964456fccdSmrg
13097521070a0Smrg# Commands used to finish a libtool library installation in a directory.
13098521070a0Smrgfinish_cmds=$lt_finish_cmds
130994456fccdSmrg
13100521070a0Smrg# As "finish_cmds", except a single script fragment to be evaled but
13101521070a0Smrg# not shown.
13102521070a0Smrgfinish_eval=$lt_finish_eval
131034456fccdSmrg
13104521070a0Smrg# Whether we should hardcode library paths into libraries.
13105521070a0Smrghardcode_into_libs=$hardcode_into_libs
131064456fccdSmrg
13107521070a0Smrg# Compile-time system search path for libraries.
13108521070a0Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
131094456fccdSmrg
13110521070a0Smrg# Run-time system search path for libraries.
13111521070a0Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
131124456fccdSmrg
13113521070a0Smrg# Whether dlopen is supported.
13114521070a0Smrgdlopen_support=$enable_dlopen
131154456fccdSmrg
13116521070a0Smrg# Whether dlopen of programs is supported.
13117521070a0Smrgdlopen_self=$enable_dlopen_self
131184456fccdSmrg
13119521070a0Smrg# Whether dlopen of statically linked programs is supported.
13120521070a0Smrgdlopen_self_static=$enable_dlopen_self_static
131214456fccdSmrg
13122521070a0Smrg# Commands to strip libraries.
13123521070a0Smrgold_striplib=$lt_old_striplib
13124521070a0Smrgstriplib=$lt_striplib
131254456fccdSmrg
131264456fccdSmrg
13127521070a0Smrg# The linker used to build libraries.
13128521070a0SmrgLD=$lt_LD
131294456fccdSmrg
13130ff63a143Smrg# How to create reloadable object files.
13131ff63a143Smrgreload_flag=$lt_reload_flag
13132ff63a143Smrgreload_cmds=$lt_reload_cmds
13133ff63a143Smrg
13134521070a0Smrg# Commands used to build an old-style archive.
13135521070a0Smrgold_archive_cmds=$lt_old_archive_cmds
131364456fccdSmrg
13137521070a0Smrg# A language specific compiler.
13138521070a0SmrgCC=$lt_compiler
131394456fccdSmrg
13140521070a0Smrg# Is the compiler the GNU compiler?
13141521070a0Smrgwith_gcc=$GCC
131424456fccdSmrg
13143521070a0Smrg# Compiler flag to turn off builtin functions.
13144521070a0Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
131454456fccdSmrg
13146521070a0Smrg# How to pass a linker flag through the compiler.
13147521070a0Smrgwl=$lt_lt_prog_compiler_wl
131484456fccdSmrg
13149521070a0Smrg# Additional compiler flags for building library objects.
13150521070a0Smrgpic_flag=$lt_lt_prog_compiler_pic
13151521070a0Smrg
13152521070a0Smrg# Compiler flag to prevent dynamic linking.
13153521070a0Smrglink_static_flag=$lt_lt_prog_compiler_static
131544456fccdSmrg
13155521070a0Smrg# Does compiler simultaneously support -c and -o options?
13156521070a0Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
131574456fccdSmrg
13158521070a0Smrg# Whether or not to add -lc for building shared libraries.
13159521070a0Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
131604456fccdSmrg
13161521070a0Smrg# Whether or not to disallow shared libs when runtime libs are static.
13162521070a0Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13163521070a0Smrg
13164521070a0Smrg# Compiler flag to allow reflexive dlopens.
13165521070a0Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
131664456fccdSmrg
13167521070a0Smrg# Compiler flag to generate shared objects directly from archives.
13168521070a0Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
131694456fccdSmrg
13170521070a0Smrg# Whether the compiler copes with passing no objects directly.
13171521070a0Smrgcompiler_needs_object=$lt_compiler_needs_object
131724456fccdSmrg
13173521070a0Smrg# Create an old-style archive from a shared archive.
13174521070a0Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
131754456fccdSmrg
13176521070a0Smrg# Create a temporary old-style archive to link instead of a shared archive.
13177521070a0Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
131784456fccdSmrg
13179521070a0Smrg# Commands used to build a shared archive.
13180521070a0Smrgarchive_cmds=$lt_archive_cmds
13181521070a0Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
131824456fccdSmrg
13183521070a0Smrg# Commands used to build a loadable module if different from building
13184521070a0Smrg# a shared archive.
13185521070a0Smrgmodule_cmds=$lt_module_cmds
13186521070a0Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
131874456fccdSmrg
13188521070a0Smrg# Whether we are building with GNU ld or not.
13189521070a0Smrgwith_gnu_ld=$lt_with_gnu_ld
131904456fccdSmrg
13191521070a0Smrg# Flag that allows shared libraries with undefined symbols to be built.
13192521070a0Smrgallow_undefined_flag=$lt_allow_undefined_flag
131934456fccdSmrg
13194521070a0Smrg# Flag that enforces no undefined symbols.
13195521070a0Smrgno_undefined_flag=$lt_no_undefined_flag
131964456fccdSmrg
13197521070a0Smrg# Flag to hardcode \$libdir into a binary during linking.
13198521070a0Smrg# This must work even if \$libdir does not exist
13199521070a0Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1320042d69509Smrg
13201521070a0Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary
13202521070a0Smrg# during linking.  This must work even if \$libdir does not exist.
13203521070a0Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1320442d69509Smrg
13205521070a0Smrg# Whether we need a single "-rpath" flag with a separated argument.
13206521070a0Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
132074456fccdSmrg
13208521070a0Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13209521070a0Smrg# DIR into the resulting binary.
13210521070a0Smrghardcode_direct=$hardcode_direct
132114456fccdSmrg
13212521070a0Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13213521070a0Smrg# DIR into the resulting binary and the resulting library dependency is
13214521070a0Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13215521070a0Smrg# library is relocated.
13216521070a0Smrghardcode_direct_absolute=$hardcode_direct_absolute
132174456fccdSmrg
13218521070a0Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13219521070a0Smrg# into the resulting binary.
13220521070a0Smrghardcode_minus_L=$hardcode_minus_L
1322142d69509Smrg
13222521070a0Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13223521070a0Smrg# into the resulting binary.
13224521070a0Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
1322542d69509Smrg
13226521070a0Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
13227521070a0Smrg# into the library and all subsequent libraries and executables linked
13228521070a0Smrg# against it.
13229521070a0Smrghardcode_automatic=$hardcode_automatic
1323042d69509Smrg
13231521070a0Smrg# Set to yes if linker adds runtime paths of dependent libraries
13232521070a0Smrg# to runtime path list.
13233521070a0Smrginherit_rpath=$inherit_rpath
1323442d69509Smrg
13235521070a0Smrg# Whether libtool must link a program against all its dependency libraries.
13236521070a0Smrglink_all_deplibs=$link_all_deplibs
1323742d69509Smrg
13238521070a0Smrg# Fix the shell variable \$srcfile for the compiler.
13239521070a0Smrgfix_srcfile_path=$lt_fix_srcfile_path
1324042d69509Smrg
13241521070a0Smrg# Set to "yes" if exported symbols are required.
13242521070a0Smrgalways_export_symbols=$always_export_symbols
132434456fccdSmrg
13244521070a0Smrg# The commands to list exported symbols.
13245521070a0Smrgexport_symbols_cmds=$lt_export_symbols_cmds
132464456fccdSmrg
13247521070a0Smrg# Symbols that should not be listed in the preloaded symbols.
13248521070a0Smrgexclude_expsyms=$lt_exclude_expsyms
132494456fccdSmrg
13250521070a0Smrg# Symbols that must always be exported.
13251521070a0Smrginclude_expsyms=$lt_include_expsyms
132524456fccdSmrg
13253521070a0Smrg# Commands necessary for linking programs (against libraries) with templates.
13254521070a0Smrgprelink_cmds=$lt_prelink_cmds
13255521070a0Smrg
13256521070a0Smrg# Specify filename containing input files.
13257521070a0Smrgfile_list_spec=$lt_file_list_spec
13258521070a0Smrg
13259521070a0Smrg# How to hardcode a shared library path into an executable.
13260521070a0Smrghardcode_action=$hardcode_action
13261521070a0Smrg
13262521070a0Smrg# ### END LIBTOOL CONFIG
13263521070a0Smrg
13264521070a0Smrg_LT_EOF
13265521070a0Smrg
13266521070a0Smrg  case $host_os in
13267521070a0Smrg  aix3*)
13268521070a0Smrg    cat <<\_LT_EOF >> "$cfgfile"
13269521070a0Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
13270521070a0Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
13271521070a0Smrg# vanish in a puff of smoke.
13272521070a0Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
13273521070a0Smrg  COLLECT_NAMES=
13274521070a0Smrg  export COLLECT_NAMES
13275521070a0Smrgfi
13276521070a0Smrg_LT_EOF
132774456fccdSmrg    ;;
132784456fccdSmrg  esac
132794456fccdSmrg
132804456fccdSmrg
13281521070a0Smrgltmain="$ac_aux_dir/ltmain.sh"
132824456fccdSmrg
132834456fccdSmrg
13284521070a0Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
13285521070a0Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13286521070a0Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
13287521070a0Smrg  # is reportedly fixed, but why not run on old versions too?
13288521070a0Smrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13289521070a0Smrg    || (rm -f "$cfgfile"; exit 1)
132904456fccdSmrg
13291521070a0Smrg  case $xsi_shell in
13292521070a0Smrg  yes)
13293521070a0Smrg    cat << \_LT_EOF >> "$cfgfile"
132944456fccdSmrg
13295521070a0Smrg# func_dirname file append nondir_replacement
13296521070a0Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13297521070a0Smrg# otherwise set result to NONDIR_REPLACEMENT.
13298521070a0Smrgfunc_dirname ()
13299521070a0Smrg{
13300521070a0Smrg  case ${1} in
13301521070a0Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
13302521070a0Smrg    *  ) func_dirname_result="${3}" ;;
1330342d69509Smrg  esac
13304521070a0Smrg}
133054456fccdSmrg
13306521070a0Smrg# func_basename file
13307521070a0Smrgfunc_basename ()
13308521070a0Smrg{
13309521070a0Smrg  func_basename_result="${1##*/}"
13310521070a0Smrg}
133114456fccdSmrg
13312521070a0Smrg# func_dirname_and_basename file append nondir_replacement
13313521070a0Smrg# perform func_basename and func_dirname in a single function
13314521070a0Smrg# call:
13315521070a0Smrg#   dirname:  Compute the dirname of FILE.  If nonempty,
13316521070a0Smrg#             add APPEND to the result, otherwise set result
13317521070a0Smrg#             to NONDIR_REPLACEMENT.
13318521070a0Smrg#             value returned in "$func_dirname_result"
13319521070a0Smrg#   basename: Compute filename of FILE.
13320521070a0Smrg#             value retuned in "$func_basename_result"
13321521070a0Smrg# Implementation must be kept synchronized with func_dirname
13322521070a0Smrg# and func_basename. For efficiency, we do not delegate to
13323521070a0Smrg# those functions but instead duplicate the functionality here.
13324521070a0Smrgfunc_dirname_and_basename ()
13325521070a0Smrg{
13326521070a0Smrg  case ${1} in
13327521070a0Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
13328521070a0Smrg    *  ) func_dirname_result="${3}" ;;
13329521070a0Smrg  esac
13330521070a0Smrg  func_basename_result="${1##*/}"
133314456fccdSmrg}
133324456fccdSmrg
13333521070a0Smrg# func_stripname prefix suffix name
13334521070a0Smrg# strip PREFIX and SUFFIX off of NAME.
13335521070a0Smrg# PREFIX and SUFFIX must not contain globbing or regex special
13336521070a0Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
13337521070a0Smrg# dot (in which case that matches only a dot).
13338521070a0Smrgfunc_stripname ()
13339521070a0Smrg{
13340521070a0Smrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13341521070a0Smrg  # positional parameters, so assign one to ordinary parameter first.
13342521070a0Smrg  func_stripname_result=${3}
13343521070a0Smrg  func_stripname_result=${func_stripname_result#"${1}"}
13344521070a0Smrg  func_stripname_result=${func_stripname_result%"${2}"}
13345521070a0Smrg}
13346521070a0Smrg
13347521070a0Smrg# func_opt_split
13348521070a0Smrgfunc_opt_split ()
13349521070a0Smrg{
13350521070a0Smrg  func_opt_split_opt=${1%%=*}
13351521070a0Smrg  func_opt_split_arg=${1#*=}
13352521070a0Smrg}
133534456fccdSmrg
13354521070a0Smrg# func_lo2o object
13355521070a0Smrgfunc_lo2o ()
13356521070a0Smrg{
13357521070a0Smrg  case ${1} in
13358521070a0Smrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13359521070a0Smrg    *)    func_lo2o_result=${1} ;;
13360521070a0Smrg  esac
13361521070a0Smrg}
133624456fccdSmrg
13363521070a0Smrg# func_xform libobj-or-source
13364521070a0Smrgfunc_xform ()
13365521070a0Smrg{
13366521070a0Smrg  func_xform_result=${1%.*}.lo
13367521070a0Smrg}
13368521070a0Smrg
13369521070a0Smrg# func_arith arithmetic-term...
13370521070a0Smrgfunc_arith ()
13371521070a0Smrg{
13372521070a0Smrg  func_arith_result=$(( $* ))
13373521070a0Smrg}
13374521070a0Smrg
13375521070a0Smrg# func_len string
13376521070a0Smrg# STRING may not start with a hyphen.
13377521070a0Smrgfunc_len ()
13378521070a0Smrg{
13379521070a0Smrg  func_len_result=${#1}
13380521070a0Smrg}
13381521070a0Smrg
13382521070a0Smrg_LT_EOF
13383521070a0Smrg    ;;
13384521070a0Smrg  *) # Bourne compatible functions.
13385521070a0Smrg    cat << \_LT_EOF >> "$cfgfile"
13386521070a0Smrg
13387521070a0Smrg# func_dirname file append nondir_replacement
13388521070a0Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13389521070a0Smrg# otherwise set result to NONDIR_REPLACEMENT.
13390521070a0Smrgfunc_dirname ()
13391521070a0Smrg{
13392521070a0Smrg  # Extract subdirectory from the argument.
13393ff63a143Smrg  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13394521070a0Smrg  if test "X$func_dirname_result" = "X${1}"; then
13395521070a0Smrg    func_dirname_result="${3}"
133964456fccdSmrg  else
13397521070a0Smrg    func_dirname_result="$func_dirname_result${2}"
133984456fccdSmrg  fi
13399521070a0Smrg}
134004456fccdSmrg
13401521070a0Smrg# func_basename file
13402521070a0Smrgfunc_basename ()
13403521070a0Smrg{
13404ff63a143Smrg  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13405521070a0Smrg}
134064456fccdSmrg
134074456fccdSmrg
13408521070a0Smrg# func_stripname prefix suffix name
13409521070a0Smrg# strip PREFIX and SUFFIX off of NAME.
13410521070a0Smrg# PREFIX and SUFFIX must not contain globbing or regex special
13411521070a0Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
13412521070a0Smrg# dot (in which case that matches only a dot).
13413521070a0Smrg# func_strip_suffix prefix name
13414521070a0Smrgfunc_stripname ()
13415521070a0Smrg{
13416521070a0Smrg  case ${2} in
13417ff63a143Smrg    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13418ff63a143Smrg    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
134194456fccdSmrg  esac
1342042d69509Smrg}
13421521070a0Smrg
13422521070a0Smrg# sed scripts:
13423521070a0Smrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13424521070a0Smrgmy_sed_long_arg='1s/^-[^=]*=//'
13425521070a0Smrg
13426521070a0Smrg# func_opt_split
13427521070a0Smrgfunc_opt_split ()
13428521070a0Smrg{
13429ff63a143Smrg  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13430ff63a143Smrg  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13431521070a0Smrg}
13432521070a0Smrg
13433521070a0Smrg# func_lo2o object
13434521070a0Smrgfunc_lo2o ()
13435521070a0Smrg{
13436ff63a143Smrg  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13437521070a0Smrg}
13438521070a0Smrg
13439521070a0Smrg# func_xform libobj-or-source
13440521070a0Smrgfunc_xform ()
13441521070a0Smrg{
13442ff63a143Smrg  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13443521070a0Smrg}
13444521070a0Smrg
13445521070a0Smrg# func_arith arithmetic-term...
13446521070a0Smrgfunc_arith ()
13447521070a0Smrg{
13448521070a0Smrg  func_arith_result=`expr "$@"`
13449521070a0Smrg}
13450521070a0Smrg
13451521070a0Smrg# func_len string
13452521070a0Smrg# STRING may not start with a hyphen.
13453521070a0Smrgfunc_len ()
13454521070a0Smrg{
13455521070a0Smrg  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13456521070a0Smrg}
13457521070a0Smrg
13458521070a0Smrg_LT_EOF
13459521070a0Smrgesac
13460521070a0Smrg
13461521070a0Smrgcase $lt_shell_append in
13462521070a0Smrg  yes)
13463521070a0Smrg    cat << \_LT_EOF >> "$cfgfile"
13464521070a0Smrg
13465521070a0Smrg# func_append var value
13466521070a0Smrg# Append VALUE to the end of shell variable VAR.
13467521070a0Smrgfunc_append ()
13468521070a0Smrg{
13469521070a0Smrg  eval "$1+=\$2"
13470521070a0Smrg}
13471521070a0Smrg_LT_EOF
13472521070a0Smrg    ;;
13473521070a0Smrg  *)
13474521070a0Smrg    cat << \_LT_EOF >> "$cfgfile"
13475521070a0Smrg
13476521070a0Smrg# func_append var value
13477521070a0Smrg# Append VALUE to the end of shell variable VAR.
13478521070a0Smrgfunc_append ()
13479521070a0Smrg{
13480521070a0Smrg  eval "$1=\$$1\$2"
13481521070a0Smrg}
13482521070a0Smrg
13483521070a0Smrg_LT_EOF
13484521070a0Smrg    ;;
13485521070a0Smrg  esac
13486521070a0Smrg
13487521070a0Smrg
13488521070a0Smrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13489521070a0Smrg    || (rm -f "$cfgfile"; exit 1)
13490521070a0Smrg
13491521070a0Smrg  mv -f "$cfgfile" "$ofile" ||
13492521070a0Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13493521070a0Smrg  chmod +x "$ofile"
13494521070a0Smrg
134954456fccdSmrg ;;
134964456fccdSmrg
134974456fccdSmrg  esac
134984456fccdSmrgdone # for ac_tag
134994456fccdSmrg
135004456fccdSmrg
13501521070a0Smrgas_fn_exit 0
135024456fccdSmrg_ACEOF
135034456fccdSmrgac_clean_files=$ac_clean_files_save
135044456fccdSmrg
1350542d69509Smrgtest $ac_write_fail = 0 ||
13506ff63a143Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1350742d69509Smrg
135084456fccdSmrg
135094456fccdSmrg# configure is writing to config.log, and then calls config.status.
135104456fccdSmrg# config.status does its own redirection, appending to config.log.
135114456fccdSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
135124456fccdSmrg# by configure, so config.status won't be able to write to it; its
135134456fccdSmrg# output is simply discarded.  So we exec the FD to /dev/null,
135144456fccdSmrg# effectively closing config.log, so it can be properly (re)opened and
135154456fccdSmrg# appended to by config.status.  When coming back to configure, we
135164456fccdSmrg# need to make the FD available again.
135174456fccdSmrgif test "$no_create" != yes; then
135184456fccdSmrg  ac_cs_success=:
135194456fccdSmrg  ac_config_status_args=
135204456fccdSmrg  test "$silent" = yes &&
135214456fccdSmrg    ac_config_status_args="$ac_config_status_args --quiet"
135224456fccdSmrg  exec 5>/dev/null
135234456fccdSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
135244456fccdSmrg  exec 5>>config.log
135254456fccdSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
135264456fccdSmrg  # would make configure fail if this is the last instruction.
13527ff63a143Smrg  $ac_cs_success || as_fn_exit 1
135284456fccdSmrgfi
1352942d69509Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13530521070a0Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1353142d69509Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1353242d69509Smrgfi
135334456fccdSmrg
13534