1169695Skan#! /bin/sh
2169695Skan# Guess values for system-dependent variables and create Makefiles.
3169695Skan# Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4169695Skan#
5169695Skan# Copyright (C) 2003 Free Software Foundation, Inc.
6169695Skan# This configure script is free software; the Free Software Foundation
7169695Skan# gives unlimited permission to copy, distribute and modify it.
8169695Skan## --------------------- ##
9169695Skan## M4sh Initialization.  ##
10169695Skan## --------------------- ##
11169695Skan
12169695Skan# Be Bourne compatible
13169695Skanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14169695Skan  emulate sh
15169695Skan  NULLCMD=:
16169695Skan  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17169695Skan  # is contrary to our usage.  Disable this feature.
18169695Skan  alias -g '${1+"$@"}'='"$@"'
19169695Skanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20169695Skan  set -o posix
21169695Skanfi
22169695SkanDUALCASE=1; export DUALCASE # for MKS sh
23169695Skan
24169695Skan# Support unset when possible.
25169695Skanif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26169695Skan  as_unset=unset
27169695Skanelse
28169695Skan  as_unset=false
29169695Skanfi
30169695Skan
31169695Skan
32169695Skan# Work around bugs in pre-3.0 UWIN ksh.
33169695Skan$as_unset ENV MAIL MAILPATH
34169695SkanPS1='$ '
35169695SkanPS2='> '
36169695SkanPS4='+ '
37169695Skan
38169695Skan# NLS nuisances.
39169695Skanfor as_var in \
40169695Skan  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41169695Skan  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42169695Skan  LC_TELEPHONE LC_TIME
43169695Skando
44169695Skan  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45169695Skan    eval $as_var=C; export $as_var
46169695Skan  else
47169695Skan    $as_unset $as_var
48169695Skan  fi
49169695Skandone
50169695Skan
51169695Skan# Required to use basename.
52169695Skanif expr a : '\(a\)' >/dev/null 2>&1; then
53169695Skan  as_expr=expr
54169695Skanelse
55169695Skan  as_expr=false
56169695Skanfi
57169695Skan
58169695Skanif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59169695Skan  as_basename=basename
60169695Skanelse
61169695Skan  as_basename=false
62169695Skanfi
63169695Skan
64169695Skan
65169695Skan# Name of the executable.
66169695Skanas_me=`$as_basename "$0" ||
67169695Skan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68169695Skan	 X"$0" : 'X\(//\)$' \| \
69169695Skan	 X"$0" : 'X\(/\)$' \| \
70169695Skan	 .     : '\(.\)' 2>/dev/null ||
71169695Skanecho X/"$0" |
72169695Skan    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73169695Skan  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74169695Skan  	  /^X\/\(\/\).*/{ s//\1/; q; }
75169695Skan  	  s/.*/./; q'`
76169695Skan
77169695Skan
78169695Skan# PATH needs CR, and LINENO needs CR and PATH.
79169695Skan# Avoid depending upon Character Ranges.
80169695Skanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
81169695Skanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82169695Skanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
83169695Skanas_cr_digits='0123456789'
84169695Skanas_cr_alnum=$as_cr_Letters$as_cr_digits
85169695Skan
86169695Skan# The user is always right.
87169695Skanif test "${PATH_SEPARATOR+set}" != set; then
88169695Skan  echo "#! /bin/sh" >conf$$.sh
89169695Skan  echo  "exit 0"   >>conf$$.sh
90169695Skan  chmod +x conf$$.sh
91169695Skan  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92169695Skan    PATH_SEPARATOR=';'
93169695Skan  else
94169695Skan    PATH_SEPARATOR=:
95169695Skan  fi
96169695Skan  rm -f conf$$.sh
97169695Skanfi
98169695Skan
99169695Skan
100169695Skan  as_lineno_1=$LINENO
101169695Skan  as_lineno_2=$LINENO
102169695Skan  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103169695Skan  test "x$as_lineno_1" != "x$as_lineno_2" &&
104169695Skan  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105169695Skan  # Find who we are.  Look in the path if we contain no path at all
106169695Skan  # relative or not.
107169695Skan  case $0 in
108169695Skan    *[\\/]* ) as_myself=$0 ;;
109169695Skan    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110169695Skanfor as_dir in $PATH
111169695Skando
112169695Skan  IFS=$as_save_IFS
113169695Skan  test -z "$as_dir" && as_dir=.
114169695Skan  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115169695Skandone
116169695Skan
117169695Skan       ;;
118169695Skan  esac
119169695Skan  # We did not find ourselves, most probably we were run as `sh COMMAND'
120169695Skan  # in which case we are not to be found in the path.
121169695Skan  if test "x$as_myself" = x; then
122169695Skan    as_myself=$0
123169695Skan  fi
124169695Skan  if test ! -f "$as_myself"; then
125169695Skan    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126169695Skan   { (exit 1); exit 1; }; }
127169695Skan  fi
128169695Skan  case $CONFIG_SHELL in
129169695Skan  '')
130169695Skan    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131169695Skanfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132169695Skando
133169695Skan  IFS=$as_save_IFS
134169695Skan  test -z "$as_dir" && as_dir=.
135169695Skan  for as_base in sh bash ksh sh5; do
136169695Skan	 case $as_dir in
137169695Skan	 /*)
138169695Skan	   if ("$as_dir/$as_base" -c '
139169695Skan  as_lineno_1=$LINENO
140169695Skan  as_lineno_2=$LINENO
141169695Skan  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142169695Skan  test "x$as_lineno_1" != "x$as_lineno_2" &&
143169695Skan  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144169695Skan	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145169695Skan	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146169695Skan	     CONFIG_SHELL=$as_dir/$as_base
147169695Skan	     export CONFIG_SHELL
148169695Skan	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149169695Skan	   fi;;
150169695Skan	 esac
151169695Skan       done
152169695Skandone
153169695Skan;;
154169695Skan  esac
155169695Skan
156169695Skan  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157169695Skan  # uniformly replaced by the line number.  The first 'sed' inserts a
158169695Skan  # line-number line before each line; the second 'sed' does the real
159169695Skan  # work.  The second script uses 'N' to pair each line-number line
160169695Skan  # with the numbered line, and appends trailing '-' during
161169695Skan  # substitution so that $LINENO is not a special case at line end.
162169695Skan  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163169695Skan  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164169695Skan  sed '=' <$as_myself |
165169695Skan    sed '
166169695Skan      N
167169695Skan      s,$,-,
168169695Skan      : loop
169169695Skan      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170169695Skan      t loop
171169695Skan      s,-$,,
172169695Skan      s,^['$as_cr_digits']*\n,,
173169695Skan    ' >$as_me.lineno &&
174169695Skan  chmod +x $as_me.lineno ||
175169695Skan    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176169695Skan   { (exit 1); exit 1; }; }
177169695Skan
178169695Skan  # Don't try to exec as it changes $[0], causing all sort of problems
179169695Skan  # (the dirname of $[0] is not the place where we might find the
180169695Skan  # original and so on.  Autoconf is especially sensible to this).
181169695Skan  . ./$as_me.lineno
182169695Skan  # Exit status is that of the last command.
183169695Skan  exit
184169695Skan}
185169695Skan
186169695Skan
187169695Skancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188169695Skan  *c*,-n*) ECHO_N= ECHO_C='
189169695Skan' ECHO_T='	' ;;
190169695Skan  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191169695Skan  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192169695Skanesac
193169695Skan
194169695Skanif expr a : '\(a\)' >/dev/null 2>&1; then
195169695Skan  as_expr=expr
196169695Skanelse
197169695Skan  as_expr=false
198169695Skanfi
199169695Skan
200169695Skanrm -f conf$$ conf$$.exe conf$$.file
201169695Skanecho >conf$$.file
202169695Skanif ln -s conf$$.file conf$$ 2>/dev/null; then
203169695Skan  # We could just check for DJGPP; but this test a) works b) is more generic
204169695Skan  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205169695Skan  if test -f conf$$.exe; then
206169695Skan    # Don't use ln at all; we don't have any links
207169695Skan    as_ln_s='cp -p'
208169695Skan  else
209169695Skan    as_ln_s='ln -s'
210169695Skan  fi
211169695Skanelif ln conf$$.file conf$$ 2>/dev/null; then
212169695Skan  as_ln_s=ln
213169695Skanelse
214169695Skan  as_ln_s='cp -p'
215169695Skanfi
216169695Skanrm -f conf$$ conf$$.exe conf$$.file
217169695Skan
218169695Skanif mkdir -p . 2>/dev/null; then
219169695Skan  as_mkdir_p=:
220169695Skanelse
221169695Skan  test -d ./-p && rmdir ./-p
222169695Skan  as_mkdir_p=false
223169695Skanfi
224169695Skan
225169695Skanas_executable_p="test -f"
226169695Skan
227169695Skan# Sed expression to map a string onto a valid CPP name.
228169695Skanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229169695Skan
230169695Skan# Sed expression to map a string onto a valid variable name.
231169695Skanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232169695Skan
233169695Skan
234169695Skan# IFS
235169695Skan# We need space, tab and new line, in precisely that order.
236169695Skanas_nl='
237169695Skan'
238169695SkanIFS=" 	$as_nl"
239169695Skan
240169695Skan# CDPATH.
241169695Skan$as_unset CDPATH
242169695Skan
243169695Skan
244282152Spfg
245282152Spfg# Check that we are running under the correct shell.
246282152SpfgSHELL=${CONFIG_SHELL-/bin/sh}
247282152Spfg
248282152Spfgcase X$lt_ECHO in
249282152SpfgX*--fallback-echo)
250282152Spfg  # Remove one level of quotation (which was required for Make).
251282152Spfg  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252282152Spfg  ;;
253282152Spfgesac
254282152Spfg
255282152SpfgECHO=${lt_ECHO-echo}
256282152Spfgif test "X$1" = X--no-reexec; then
257282152Spfg  # Discard the --no-reexec flag, and continue.
258282152Spfg  shift
259282152Spfgelif test "X$1" = X--fallback-echo; then
260282152Spfg  # Avoid inline document here, it may be left over
261282152Spfg  :
262282152Spfgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263282152Spfg  # Yippee, $ECHO works!
264282152Spfg  :
265282152Spfgelse
266282152Spfg  # Restart under the correct shell.
267282152Spfg  exec $SHELL "$0" --no-reexec ${1+"$@"}
268282152Spfgfi
269282152Spfg
270282152Spfgif test "X$1" = X--fallback-echo; then
271282152Spfg  # used as fallback echo
272282152Spfg  shift
273282152Spfg  cat <<_LT_EOF
274282152Spfg$*
275282152Spfg_LT_EOF
276282152Spfg  exit 0
277282152Spfgfi
278282152Spfg
279282152Spfg# The HP-UX ksh and POSIX shell print the target directory to stdout
280282152Spfg# if CDPATH is set.
281282152Spfg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282282152Spfg
283282152Spfgif test -z "$lt_ECHO"; then
284282152Spfg  if test "X${echo_test_string+set}" != Xset; then
285282152Spfg    # find a string as large as possible, as long as the shell can cope with it
286282152Spfg    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287282152Spfg      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288282152Spfg      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289282152Spfg	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290282152Spfg      then
291282152Spfg        break
292282152Spfg      fi
293282152Spfg    done
294282152Spfg  fi
295282152Spfg
296282152Spfg  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297282152Spfg     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298282152Spfg     test "X$echo_testing_string" = "X$echo_test_string"; then
299282152Spfg    :
300282152Spfg  else
301282152Spfg    # The Solaris, AIX, and Digital Unix default echo programs unquote
302282152Spfg    # backslashes.  This makes it impossible to quote backslashes using
303282152Spfg    #   echo "$something" | sed 's/\\/\\\\/g'
304282152Spfg    #
305282152Spfg    # So, first we look for a working echo in the user's PATH.
306282152Spfg
307282152Spfg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308282152Spfg    for dir in $PATH /usr/ucb; do
309282152Spfg      IFS="$lt_save_ifs"
310282152Spfg      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311282152Spfg         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312282152Spfg         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313282152Spfg         test "X$echo_testing_string" = "X$echo_test_string"; then
314282152Spfg        ECHO="$dir/echo"
315282152Spfg        break
316282152Spfg      fi
317282152Spfg    done
318282152Spfg    IFS="$lt_save_ifs"
319282152Spfg
320282152Spfg    if test "X$ECHO" = Xecho; then
321282152Spfg      # We didn't find a better echo, so look for alternatives.
322282152Spfg      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323282152Spfg         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324282152Spfg         test "X$echo_testing_string" = "X$echo_test_string"; then
325282152Spfg        # This shell has a builtin print -r that does the trick.
326282152Spfg        ECHO='print -r'
327282152Spfg      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328282152Spfg	   test "X$CONFIG_SHELL" != X/bin/ksh; then
329282152Spfg        # If we have ksh, try running configure again with it.
330282152Spfg        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331282152Spfg        export ORIGINAL_CONFIG_SHELL
332282152Spfg        CONFIG_SHELL=/bin/ksh
333282152Spfg        export CONFIG_SHELL
334282152Spfg        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335282152Spfg      else
336282152Spfg        # Try using printf.
337282152Spfg        ECHO='printf %s\n'
338282152Spfg        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339282152Spfg	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340282152Spfg	   test "X$echo_testing_string" = "X$echo_test_string"; then
341282152Spfg	  # Cool, printf works
342282152Spfg	  :
343282152Spfg        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344282152Spfg	     test "X$echo_testing_string" = 'X\t' &&
345282152Spfg	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346282152Spfg	     test "X$echo_testing_string" = "X$echo_test_string"; then
347282152Spfg	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348282152Spfg	  export CONFIG_SHELL
349282152Spfg	  SHELL="$CONFIG_SHELL"
350282152Spfg	  export SHELL
351282152Spfg	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
352282152Spfg        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353282152Spfg	     test "X$echo_testing_string" = 'X\t' &&
354282152Spfg	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355282152Spfg	     test "X$echo_testing_string" = "X$echo_test_string"; then
356282152Spfg	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
357282152Spfg        else
358282152Spfg	  # maybe with a smaller string...
359282152Spfg	  prev=:
360282152Spfg
361282152Spfg	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362282152Spfg	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363282152Spfg	    then
364282152Spfg	      break
365282152Spfg	    fi
366282152Spfg	    prev="$cmd"
367282152Spfg	  done
368282152Spfg
369282152Spfg	  if test "$prev" != 'sed 50q "$0"'; then
370282152Spfg	    echo_test_string=`eval $prev`
371282152Spfg	    export echo_test_string
372282152Spfg	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373282152Spfg	  else
374282152Spfg	    # Oops.  We lost completely, so just stick with echo.
375282152Spfg	    ECHO=echo
376282152Spfg	  fi
377282152Spfg        fi
378282152Spfg      fi
379282152Spfg    fi
380282152Spfg  fi
381282152Spfgfi
382282152Spfg
383282152Spfg# Copy echo and quote the copy suitably for passing to libtool from
384282152Spfg# the Makefile, instead of quoting the original, which is used later.
385282152Spfglt_ECHO=$ECHO
386282152Spfgif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387282152Spfg   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388282152Spfgfi
389282152Spfg
390282152Spfg
391282152Spfg
392282152Spfg
393169695Skan# Name of the host.
394169695Skan# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395169695Skan# so uname gets run too.
396169695Skanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397169695Skan
398169695Skanexec 6>&1
399169695Skan
400169695Skan#
401169695Skan# Initializations.
402169695Skan#
403169695Skanac_default_prefix=/usr/local
404169695Skanac_config_libobj_dir=.
405169695Skancross_compiling=no
406169695Skansubdirs=
407169695SkanMFLAGS=
408169695SkanMAKEFLAGS=
409169695SkanSHELL=${CONFIG_SHELL-/bin/sh}
410169695Skan
411169695Skan# Maximum number of lines to put in a shell here document.
412169695Skan# This variable seems obsolete.  It should probably be removed, and
413169695Skan# only ac_max_sed_lines should be used.
414169695Skan: ${ac_max_here_lines=38}
415169695Skan
416169695Skan# Identity of this package.
417169695SkanPACKAGE_NAME='GNU OpenMP Runtime Library'
418169695SkanPACKAGE_TARNAME='libgomp'
419169695SkanPACKAGE_VERSION='1.0'
420169695SkanPACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421169695SkanPACKAGE_BUGREPORT=''
422169695Skan
423169695Skan# Factoring default headers for most tests.
424169695Skanac_includes_default="\
425169695Skan#include <stdio.h>
426169695Skan#if HAVE_SYS_TYPES_H
427169695Skan# include <sys/types.h>
428169695Skan#endif
429169695Skan#if HAVE_SYS_STAT_H
430169695Skan# include <sys/stat.h>
431169695Skan#endif
432169695Skan#if STDC_HEADERS
433169695Skan# include <stdlib.h>
434169695Skan# include <stddef.h>
435169695Skan#else
436169695Skan# if HAVE_STDLIB_H
437169695Skan#  include <stdlib.h>
438169695Skan# endif
439169695Skan#endif
440169695Skan#if HAVE_STRING_H
441169695Skan# if !STDC_HEADERS && HAVE_MEMORY_H
442169695Skan#  include <memory.h>
443169695Skan# endif
444169695Skan# include <string.h>
445169695Skan#endif
446169695Skan#if HAVE_STRINGS_H
447169695Skan# include <strings.h>
448169695Skan#endif
449169695Skan#if HAVE_INTTYPES_H
450169695Skan# include <inttypes.h>
451169695Skan#else
452169695Skan# if HAVE_STDINT_H
453169695Skan#  include <stdint.h>
454169695Skan# endif
455169695Skan#endif
456169695Skan#if HAVE_UNISTD_H
457169695Skan# include <unistd.h>
458169695Skan#endif"
459169695Skan
460282152Spfgac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
461169695Skanac_subst_files=''
462169695Skan
463169695Skan# Initialize some variables set by options.
464169695Skanac_init_help=
465169695Skanac_init_version=false
466169695Skan# The variables have the same names as the options, with
467169695Skan# dashes changed to underlines.
468169695Skancache_file=/dev/null
469169695Skanexec_prefix=NONE
470169695Skanno_create=
471169695Skanno_recursion=
472169695Skanprefix=NONE
473169695Skanprogram_prefix=NONE
474169695Skanprogram_suffix=NONE
475169695Skanprogram_transform_name=s,x,x,
476169695Skansilent=
477169695Skansite=
478169695Skansrcdir=
479169695Skanverbose=
480169695Skanx_includes=NONE
481169695Skanx_libraries=NONE
482169695Skan
483169695Skan# Installation directory options.
484169695Skan# These are left unexpanded so users can "make install exec_prefix=/foo"
485169695Skan# and all the variables that are supposed to be based on exec_prefix
486169695Skan# by default will actually change.
487169695Skan# Use braces instead of parens because sh, perl, etc. also accept them.
488169695Skanbindir='${exec_prefix}/bin'
489169695Skansbindir='${exec_prefix}/sbin'
490169695Skanlibexecdir='${exec_prefix}/libexec'
491169695Skandatadir='${prefix}/share'
492169695Skansysconfdir='${prefix}/etc'
493169695Skansharedstatedir='${prefix}/com'
494169695Skanlocalstatedir='${prefix}/var'
495169695Skanlibdir='${exec_prefix}/lib'
496169695Skanincludedir='${prefix}/include'
497169695Skanoldincludedir='/usr/include'
498169695Skaninfodir='${prefix}/info'
499169695Skanmandir='${prefix}/man'
500169695Skan
501169695Skanac_prev=
502169695Skanfor ac_option
503169695Skando
504169695Skan  # If the previous option needs an argument, assign it.
505169695Skan  if test -n "$ac_prev"; then
506169695Skan    eval "$ac_prev=\$ac_option"
507169695Skan    ac_prev=
508169695Skan    continue
509169695Skan  fi
510169695Skan
511169695Skan  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512169695Skan
513169695Skan  # Accept the important Cygnus configure options, so we can diagnose typos.
514169695Skan
515169695Skan  case $ac_option in
516169695Skan
517169695Skan  -bindir | --bindir | --bindi | --bind | --bin | --bi)
518169695Skan    ac_prev=bindir ;;
519169695Skan  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520169695Skan    bindir=$ac_optarg ;;
521169695Skan
522169695Skan  -build | --build | --buil | --bui | --bu)
523169695Skan    ac_prev=build_alias ;;
524169695Skan  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525169695Skan    build_alias=$ac_optarg ;;
526169695Skan
527169695Skan  -cache-file | --cache-file | --cache-fil | --cache-fi \
528169695Skan  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529169695Skan    ac_prev=cache_file ;;
530169695Skan  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531169695Skan  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532169695Skan    cache_file=$ac_optarg ;;
533169695Skan
534169695Skan  --config-cache | -C)
535169695Skan    cache_file=config.cache ;;
536169695Skan
537169695Skan  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538169695Skan    ac_prev=datadir ;;
539169695Skan  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540169695Skan  | --da=*)
541169695Skan    datadir=$ac_optarg ;;
542169695Skan
543169695Skan  -disable-* | --disable-*)
544169695Skan    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545169695Skan    # Reject names that are not valid shell variable names.
546169695Skan    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547169695Skan      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548169695Skan   { (exit 1); exit 1; }; }
549169695Skan    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550169695Skan    eval "enable_$ac_feature=no" ;;
551169695Skan
552169695Skan  -enable-* | --enable-*)
553169695Skan    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554169695Skan    # Reject names that are not valid shell variable names.
555169695Skan    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556169695Skan      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557169695Skan   { (exit 1); exit 1; }; }
558169695Skan    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559169695Skan    case $ac_option in
560169695Skan      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561169695Skan      *) ac_optarg=yes ;;
562169695Skan    esac
563169695Skan    eval "enable_$ac_feature='$ac_optarg'" ;;
564169695Skan
565169695Skan  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566169695Skan  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567169695Skan  | --exec | --exe | --ex)
568169695Skan    ac_prev=exec_prefix ;;
569169695Skan  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570169695Skan  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571169695Skan  | --exec=* | --exe=* | --ex=*)
572169695Skan    exec_prefix=$ac_optarg ;;
573169695Skan
574169695Skan  -gas | --gas | --ga | --g)
575169695Skan    # Obsolete; use --with-gas.
576169695Skan    with_gas=yes ;;
577169695Skan
578169695Skan  -help | --help | --hel | --he | -h)
579169695Skan    ac_init_help=long ;;
580169695Skan  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581169695Skan    ac_init_help=recursive ;;
582169695Skan  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583169695Skan    ac_init_help=short ;;
584169695Skan
585169695Skan  -host | --host | --hos | --ho)
586169695Skan    ac_prev=host_alias ;;
587169695Skan  -host=* | --host=* | --hos=* | --ho=*)
588169695Skan    host_alias=$ac_optarg ;;
589169695Skan
590169695Skan  -includedir | --includedir | --includedi | --included | --include \
591169695Skan  | --includ | --inclu | --incl | --inc)
592169695Skan    ac_prev=includedir ;;
593169695Skan  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594169695Skan  | --includ=* | --inclu=* | --incl=* | --inc=*)
595169695Skan    includedir=$ac_optarg ;;
596169695Skan
597169695Skan  -infodir | --infodir | --infodi | --infod | --info | --inf)
598169695Skan    ac_prev=infodir ;;
599169695Skan  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600169695Skan    infodir=$ac_optarg ;;
601169695Skan
602169695Skan  -libdir | --libdir | --libdi | --libd)
603169695Skan    ac_prev=libdir ;;
604169695Skan  -libdir=* | --libdir=* | --libdi=* | --libd=*)
605169695Skan    libdir=$ac_optarg ;;
606169695Skan
607169695Skan  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608169695Skan  | --libexe | --libex | --libe)
609169695Skan    ac_prev=libexecdir ;;
610169695Skan  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611169695Skan  | --libexe=* | --libex=* | --libe=*)
612169695Skan    libexecdir=$ac_optarg ;;
613169695Skan
614169695Skan  -localstatedir | --localstatedir | --localstatedi | --localstated \
615169695Skan  | --localstate | --localstat | --localsta | --localst \
616169695Skan  | --locals | --local | --loca | --loc | --lo)
617169695Skan    ac_prev=localstatedir ;;
618169695Skan  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619169695Skan  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620169695Skan  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621169695Skan    localstatedir=$ac_optarg ;;
622169695Skan
623169695Skan  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624169695Skan    ac_prev=mandir ;;
625169695Skan  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626169695Skan    mandir=$ac_optarg ;;
627169695Skan
628169695Skan  -nfp | --nfp | --nf)
629169695Skan    # Obsolete; use --without-fp.
630169695Skan    with_fp=no ;;
631169695Skan
632169695Skan  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633169695Skan  | --no-cr | --no-c | -n)
634169695Skan    no_create=yes ;;
635169695Skan
636169695Skan  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637169695Skan  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638169695Skan    no_recursion=yes ;;
639169695Skan
640169695Skan  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641169695Skan  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642169695Skan  | --oldin | --oldi | --old | --ol | --o)
643169695Skan    ac_prev=oldincludedir ;;
644169695Skan  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645169695Skan  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646169695Skan  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647169695Skan    oldincludedir=$ac_optarg ;;
648169695Skan
649169695Skan  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650169695Skan    ac_prev=prefix ;;
651169695Skan  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652169695Skan    prefix=$ac_optarg ;;
653169695Skan
654169695Skan  -program-prefix | --program-prefix | --program-prefi | --program-pref \
655169695Skan  | --program-pre | --program-pr | --program-p)
656169695Skan    ac_prev=program_prefix ;;
657169695Skan  -program-prefix=* | --program-prefix=* | --program-prefi=* \
658169695Skan  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659169695Skan    program_prefix=$ac_optarg ;;
660169695Skan
661169695Skan  -program-suffix | --program-suffix | --program-suffi | --program-suff \
662169695Skan  | --program-suf | --program-su | --program-s)
663169695Skan    ac_prev=program_suffix ;;
664169695Skan  -program-suffix=* | --program-suffix=* | --program-suffi=* \
665169695Skan  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666169695Skan    program_suffix=$ac_optarg ;;
667169695Skan
668169695Skan  -program-transform-name | --program-transform-name \
669169695Skan  | --program-transform-nam | --program-transform-na \
670169695Skan  | --program-transform-n | --program-transform- \
671169695Skan  | --program-transform | --program-transfor \
672169695Skan  | --program-transfo | --program-transf \
673169695Skan  | --program-trans | --program-tran \
674169695Skan  | --progr-tra | --program-tr | --program-t)
675169695Skan    ac_prev=program_transform_name ;;
676169695Skan  -program-transform-name=* | --program-transform-name=* \
677169695Skan  | --program-transform-nam=* | --program-transform-na=* \
678169695Skan  | --program-transform-n=* | --program-transform-=* \
679169695Skan  | --program-transform=* | --program-transfor=* \
680169695Skan  | --program-transfo=* | --program-transf=* \
681169695Skan  | --program-trans=* | --program-tran=* \
682169695Skan  | --progr-tra=* | --program-tr=* | --program-t=*)
683169695Skan    program_transform_name=$ac_optarg ;;
684169695Skan
685169695Skan  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686169695Skan  | -silent | --silent | --silen | --sile | --sil)
687169695Skan    silent=yes ;;
688169695Skan
689169695Skan  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690169695Skan    ac_prev=sbindir ;;
691169695Skan  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692169695Skan  | --sbi=* | --sb=*)
693169695Skan    sbindir=$ac_optarg ;;
694169695Skan
695169695Skan  -sharedstatedir | --sharedstatedir | --sharedstatedi \
696169695Skan  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697169695Skan  | --sharedst | --shareds | --shared | --share | --shar \
698169695Skan  | --sha | --sh)
699169695Skan    ac_prev=sharedstatedir ;;
700169695Skan  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701169695Skan  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702169695Skan  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703169695Skan  | --sha=* | --sh=*)
704169695Skan    sharedstatedir=$ac_optarg ;;
705169695Skan
706169695Skan  -site | --site | --sit)
707169695Skan    ac_prev=site ;;
708169695Skan  -site=* | --site=* | --sit=*)
709169695Skan    site=$ac_optarg ;;
710169695Skan
711169695Skan  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712169695Skan    ac_prev=srcdir ;;
713169695Skan  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714169695Skan    srcdir=$ac_optarg ;;
715169695Skan
716169695Skan  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717169695Skan  | --syscon | --sysco | --sysc | --sys | --sy)
718169695Skan    ac_prev=sysconfdir ;;
719169695Skan  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720169695Skan  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721169695Skan    sysconfdir=$ac_optarg ;;
722169695Skan
723169695Skan  -target | --target | --targe | --targ | --tar | --ta | --t)
724169695Skan    ac_prev=target_alias ;;
725169695Skan  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726169695Skan    target_alias=$ac_optarg ;;
727169695Skan
728169695Skan  -v | -verbose | --verbose | --verbos | --verbo | --verb)
729169695Skan    verbose=yes ;;
730169695Skan
731169695Skan  -version | --version | --versio | --versi | --vers | -V)
732169695Skan    ac_init_version=: ;;
733169695Skan
734169695Skan  -with-* | --with-*)
735169695Skan    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736169695Skan    # Reject names that are not valid shell variable names.
737169695Skan    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738169695Skan      { echo "$as_me: error: invalid package name: $ac_package" >&2
739169695Skan   { (exit 1); exit 1; }; }
740169695Skan    ac_package=`echo $ac_package| sed 's/-/_/g'`
741169695Skan    case $ac_option in
742169695Skan      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743169695Skan      *) ac_optarg=yes ;;
744169695Skan    esac
745169695Skan    eval "with_$ac_package='$ac_optarg'" ;;
746169695Skan
747169695Skan  -without-* | --without-*)
748169695Skan    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749169695Skan    # Reject names that are not valid shell variable names.
750169695Skan    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751169695Skan      { echo "$as_me: error: invalid package name: $ac_package" >&2
752169695Skan   { (exit 1); exit 1; }; }
753169695Skan    ac_package=`echo $ac_package | sed 's/-/_/g'`
754169695Skan    eval "with_$ac_package=no" ;;
755169695Skan
756169695Skan  --x)
757169695Skan    # Obsolete; use --with-x.
758169695Skan    with_x=yes ;;
759169695Skan
760169695Skan  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761169695Skan  | --x-incl | --x-inc | --x-in | --x-i)
762169695Skan    ac_prev=x_includes ;;
763169695Skan  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764169695Skan  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765169695Skan    x_includes=$ac_optarg ;;
766169695Skan
767169695Skan  -x-libraries | --x-libraries | --x-librarie | --x-librari \
768169695Skan  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769169695Skan    ac_prev=x_libraries ;;
770169695Skan  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771169695Skan  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772169695Skan    x_libraries=$ac_optarg ;;
773169695Skan
774169695Skan  -*) { echo "$as_me: error: unrecognized option: $ac_option
775169695SkanTry \`$0 --help' for more information." >&2
776169695Skan   { (exit 1); exit 1; }; }
777169695Skan    ;;
778169695Skan
779169695Skan  *=*)
780169695Skan    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781169695Skan    # Reject names that are not valid shell variable names.
782169695Skan    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783169695Skan      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784169695Skan   { (exit 1); exit 1; }; }
785169695Skan    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786169695Skan    eval "$ac_envvar='$ac_optarg'"
787169695Skan    export $ac_envvar ;;
788169695Skan
789169695Skan  *)
790169695Skan    # FIXME: should be removed in autoconf 3.0.
791169695Skan    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792169695Skan    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793169695Skan      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794169695Skan    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795169695Skan    ;;
796169695Skan
797169695Skan  esac
798169695Skandone
799169695Skan
800169695Skanif test -n "$ac_prev"; then
801169695Skan  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802169695Skan  { echo "$as_me: error: missing argument to $ac_option" >&2
803169695Skan   { (exit 1); exit 1; }; }
804169695Skanfi
805169695Skan
806169695Skan# Be sure to have absolute paths.
807169695Skanfor ac_var in exec_prefix prefix
808169695Skando
809169695Skan  eval ac_val=$`echo $ac_var`
810169695Skan  case $ac_val in
811169695Skan    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812169695Skan    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813169695Skan   { (exit 1); exit 1; }; };;
814169695Skan  esac
815169695Skandone
816169695Skan
817169695Skan# Be sure to have absolute paths.
818169695Skanfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819169695Skan	      localstatedir libdir includedir oldincludedir infodir mandir
820169695Skando
821169695Skan  eval ac_val=$`echo $ac_var`
822169695Skan  case $ac_val in
823169695Skan    [\\/$]* | ?:[\\/]* ) ;;
824169695Skan    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825169695Skan   { (exit 1); exit 1; }; };;
826169695Skan  esac
827169695Skandone
828169695Skan
829169695Skan# There might be people who depend on the old broken behavior: `$host'
830169695Skan# used to hold the argument of --host etc.
831169695Skan# FIXME: To remove some day.
832169695Skanbuild=$build_alias
833169695Skanhost=$host_alias
834169695Skantarget=$target_alias
835169695Skan
836169695Skan# FIXME: To remove some day.
837169695Skanif test "x$host_alias" != x; then
838169695Skan  if test "x$build_alias" = x; then
839169695Skan    cross_compiling=maybe
840169695Skan    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841169695Skan    If a cross compiler is detected then cross compile mode will be used." >&2
842169695Skan  elif test "x$build_alias" != "x$host_alias"; then
843169695Skan    cross_compiling=yes
844169695Skan  fi
845169695Skanfi
846169695Skan
847169695Skanac_tool_prefix=
848169695Skantest -n "$host_alias" && ac_tool_prefix=$host_alias-
849169695Skan
850169695Skantest "$silent" = yes && exec 6>/dev/null
851169695Skan
852169695Skan
853169695Skan# Find the source files, if location was not specified.
854169695Skanif test -z "$srcdir"; then
855169695Skan  ac_srcdir_defaulted=yes
856169695Skan  # Try the directory containing this script, then its parent.
857169695Skan  ac_confdir=`(dirname "$0") 2>/dev/null ||
858169695Skan$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859169695Skan	 X"$0" : 'X\(//\)[^/]' \| \
860169695Skan	 X"$0" : 'X\(//\)$' \| \
861169695Skan	 X"$0" : 'X\(/\)' \| \
862169695Skan	 .     : '\(.\)' 2>/dev/null ||
863169695Skanecho X"$0" |
864169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
867169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
868169695Skan  	  s/.*/./; q'`
869169695Skan  srcdir=$ac_confdir
870282152Spfg  if test ! -r $srcdir/$ac_unique_file; then
871169695Skan    srcdir=..
872169695Skan  fi
873169695Skanelse
874169695Skan  ac_srcdir_defaulted=no
875169695Skanfi
876282152Spfgif test ! -r $srcdir/$ac_unique_file; then
877169695Skan  if test "$ac_srcdir_defaulted" = yes; then
878169695Skan    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879169695Skan   { (exit 1); exit 1; }; }
880169695Skan  else
881169695Skan    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882169695Skan   { (exit 1); exit 1; }; }
883169695Skan  fi
884169695Skanfi
885282152Spfg(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886169695Skan  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887169695Skan   { (exit 1); exit 1; }; }
888169695Skansrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889169695Skanac_env_build_alias_set=${build_alias+set}
890169695Skanac_env_build_alias_value=$build_alias
891169695Skanac_cv_env_build_alias_set=${build_alias+set}
892169695Skanac_cv_env_build_alias_value=$build_alias
893169695Skanac_env_host_alias_set=${host_alias+set}
894169695Skanac_env_host_alias_value=$host_alias
895169695Skanac_cv_env_host_alias_set=${host_alias+set}
896169695Skanac_cv_env_host_alias_value=$host_alias
897169695Skanac_env_target_alias_set=${target_alias+set}
898169695Skanac_env_target_alias_value=$target_alias
899169695Skanac_cv_env_target_alias_set=${target_alias+set}
900169695Skanac_cv_env_target_alias_value=$target_alias
901282152Spfgac_env_CPP_set=${CPP+set}
902282152Spfgac_env_CPP_value=$CPP
903282152Spfgac_cv_env_CPP_set=${CPP+set}
904282152Spfgac_cv_env_CPP_value=$CPP
905282152Spfgac_env_CPPFLAGS_set=${CPPFLAGS+set}
906282152Spfgac_env_CPPFLAGS_value=$CPPFLAGS
907282152Spfgac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908282152Spfgac_cv_env_CPPFLAGS_value=$CPPFLAGS
909169695Skanac_env_FC_set=${FC+set}
910169695Skanac_env_FC_value=$FC
911169695Skanac_cv_env_FC_set=${FC+set}
912169695Skanac_cv_env_FC_value=$FC
913169695Skanac_env_FCFLAGS_set=${FCFLAGS+set}
914169695Skanac_env_FCFLAGS_value=$FCFLAGS
915169695Skanac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916169695Skanac_cv_env_FCFLAGS_value=$FCFLAGS
917169695Skanac_env_LDFLAGS_set=${LDFLAGS+set}
918169695Skanac_env_LDFLAGS_value=$LDFLAGS
919169695Skanac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920169695Skanac_cv_env_LDFLAGS_value=$LDFLAGS
921169695Skan
922169695Skan#
923169695Skan# Report the --help message.
924169695Skan#
925169695Skanif test "$ac_init_help" = "long"; then
926169695Skan  # Omit some internal or obsolete options to make the list less imposing.
927169695Skan  # This message is too long to be a string in the A/UX 3.1 sh.
928169695Skan  cat <<_ACEOF
929169695Skan\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930169695Skan
931169695SkanUsage: $0 [OPTION]... [VAR=VALUE]...
932169695Skan
933169695SkanTo assign environment variables (e.g., CC, CFLAGS...), specify them as
934169695SkanVAR=VALUE.  See below for descriptions of some of the useful variables.
935169695Skan
936169695SkanDefaults for the options are specified in brackets.
937169695Skan
938169695SkanConfiguration:
939169695Skan  -h, --help              display this help and exit
940169695Skan      --help=short        display options specific to this package
941169695Skan      --help=recursive    display the short help of all the included packages
942169695Skan  -V, --version           display version information and exit
943169695Skan  -q, --quiet, --silent   do not print \`checking...' messages
944169695Skan      --cache-file=FILE   cache test results in FILE [disabled]
945169695Skan  -C, --config-cache      alias for \`--cache-file=config.cache'
946169695Skan  -n, --no-create         do not create output files
947169695Skan      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
948169695Skan
949169695Skan_ACEOF
950169695Skan
951169695Skan  cat <<_ACEOF
952169695SkanInstallation directories:
953169695Skan  --prefix=PREFIX         install architecture-independent files in PREFIX
954169695Skan			  [$ac_default_prefix]
955169695Skan  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
956169695Skan			  [PREFIX]
957169695Skan
958169695SkanBy default, \`make install' will install all the files in
959169695Skan\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
960169695Skanan installation prefix other than \`$ac_default_prefix' using \`--prefix',
961169695Skanfor instance \`--prefix=\$HOME'.
962169695Skan
963169695SkanFor better control, use the options below.
964169695Skan
965169695SkanFine tuning of the installation directories:
966169695Skan  --bindir=DIR           user executables [EPREFIX/bin]
967169695Skan  --sbindir=DIR          system admin executables [EPREFIX/sbin]
968169695Skan  --libexecdir=DIR       program executables [EPREFIX/libexec]
969169695Skan  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
970169695Skan  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
971169695Skan  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
972169695Skan  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
973169695Skan  --libdir=DIR           object code libraries [EPREFIX/lib]
974169695Skan  --includedir=DIR       C header files [PREFIX/include]
975169695Skan  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
976169695Skan  --infodir=DIR          info documentation [PREFIX/info]
977169695Skan  --mandir=DIR           man documentation [PREFIX/man]
978169695Skan_ACEOF
979169695Skan
980169695Skan  cat <<\_ACEOF
981169695Skan
982169695SkanProgram names:
983169695Skan  --program-prefix=PREFIX            prepend PREFIX to installed program names
984169695Skan  --program-suffix=SUFFIX            append SUFFIX to installed program names
985169695Skan  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
986169695Skan
987169695SkanSystem types:
988169695Skan  --build=BUILD     configure for building on BUILD [guessed]
989169695Skan  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
990169695Skan  --target=TARGET   configure for building compilers for TARGET [HOST]
991169695Skan_ACEOF
992169695Skanfi
993169695Skan
994169695Skanif test -n "$ac_init_help"; then
995169695Skan  case $ac_init_help in
996169695Skan     short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997169695Skan   esac
998169695Skan  cat <<\_ACEOF
999169695Skan
1000169695SkanOptional Features:
1001169695Skan  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002169695Skan  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003169695Skan  --enable-version-specific-runtime-libs
1004169695Skan                          Specify that runtime libraries should be installed
1005169695Skan                          in a compiler-specific directory [default=no]
1006169695Skan  --enable-generated-files-in-srcdir
1007169695Skan                          put copies of generated files in source dir intended
1008169695Skan                          for creating source tarballs for users without
1009169695Skan                          texinfo bison or flex. [default=no]
1010169695Skan  --enable-multilib       build many library versions (default)
1011169695Skan  --disable-dependency-tracking  speeds up one-time build
1012169695Skan  --enable-dependency-tracking   do not reject slow dependency extractors
1013282152Spfg  --enable-shared[=PKGS]
1014282152Spfg                          build shared libraries [default=yes]
1015282152Spfg  --enable-static[=PKGS]
1016282152Spfg                          build static libraries [default=yes]
1017282152Spfg  --enable-fast-install[=PKGS]
1018282152Spfg                          optimize for fast installation [default=yes]
1019169695Skan  --disable-libtool-lock  avoid locking (might break parallel builds)
1020169695Skan  --enable-maintainer-mode  enable make rules and dependencies not useful
1021169695Skan			  (and sometimes confusing) to the casual installer
1022282152Spfg  --enable-linux-futex    use the Linux futex system call
1023282152Spfg                          [default=default]
1024169695Skan  --enable-tls            Use thread-local storage [default=yes]
1025169695Skan  --enable-symvers=STYLE  enables symbol versioning of the shared library
1026169695Skan                          [default=yes]
1027169695Skan
1028169695SkanOptional Packages:
1029169695Skan  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1030169695Skan  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1031282152Spfg  --with-pic              try to use only PIC/non-PIC objects [default=use
1032282152Spfg                          both]
1033282152Spfg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1034169695Skan
1035169695SkanSome influential environment variables:
1036169695Skan  CC          C compiler command
1037169695Skan  CFLAGS      C compiler flags
1038169695Skan  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1039169695Skan              nonstandard directory <lib dir>
1040169695Skan  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041169695Skan              headers in a nonstandard directory <include dir>
1042282152Spfg  CPP         C preprocessor
1043169695Skan  FC          Fortran compiler command
1044169695Skan  FCFLAGS     Fortran compiler flags
1045169695Skan
1046169695SkanUse these variables to override the choices made by `configure' or to help
1047169695Skanit to find libraries and programs with nonstandard names/locations.
1048169695Skan
1049169695Skan_ACEOF
1050169695Skanfi
1051169695Skan
1052169695Skanif test "$ac_init_help" = "recursive"; then
1053169695Skan  # If there are subdirs, report their specific --help.
1054169695Skan  ac_popdir=`pwd`
1055169695Skan  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056169695Skan    test -d $ac_dir || continue
1057169695Skan    ac_builddir=.
1058169695Skan
1059169695Skanif test "$ac_dir" != .; then
1060169695Skan  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061169695Skan  # A "../" for each directory in $ac_dir_suffix.
1062169695Skan  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063169695Skanelse
1064169695Skan  ac_dir_suffix= ac_top_builddir=
1065169695Skanfi
1066169695Skan
1067169695Skancase $srcdir in
1068169695Skan  .)  # No --srcdir option.  We are building in place.
1069169695Skan    ac_srcdir=.
1070169695Skan    if test -z "$ac_top_builddir"; then
1071169695Skan       ac_top_srcdir=.
1072169695Skan    else
1073169695Skan       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074169695Skan    fi ;;
1075169695Skan  [\\/]* | ?:[\\/]* )  # Absolute path.
1076169695Skan    ac_srcdir=$srcdir$ac_dir_suffix;
1077169695Skan    ac_top_srcdir=$srcdir ;;
1078169695Skan  *) # Relative path.
1079169695Skan    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080169695Skan    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081169695Skanesac
1082169695Skan
1083169695Skan# Do not use `cd foo && pwd` to compute absolute paths, because
1084169695Skan# the directories may not exist.
1085169695Skancase `pwd` in
1086169695Skan.) ac_abs_builddir="$ac_dir";;
1087169695Skan*)
1088169695Skan  case "$ac_dir" in
1089169695Skan  .) ac_abs_builddir=`pwd`;;
1090169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091169695Skan  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092169695Skan  esac;;
1093169695Skanesac
1094169695Skancase $ac_abs_builddir in
1095169695Skan.) ac_abs_top_builddir=${ac_top_builddir}.;;
1096169695Skan*)
1097169695Skan  case ${ac_top_builddir}. in
1098169695Skan  .) ac_abs_top_builddir=$ac_abs_builddir;;
1099169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100169695Skan  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101169695Skan  esac;;
1102169695Skanesac
1103169695Skancase $ac_abs_builddir in
1104169695Skan.) ac_abs_srcdir=$ac_srcdir;;
1105169695Skan*)
1106169695Skan  case $ac_srcdir in
1107169695Skan  .) ac_abs_srcdir=$ac_abs_builddir;;
1108169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109169695Skan  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110169695Skan  esac;;
1111169695Skanesac
1112169695Skancase $ac_abs_builddir in
1113169695Skan.) ac_abs_top_srcdir=$ac_top_srcdir;;
1114169695Skan*)
1115169695Skan  case $ac_top_srcdir in
1116169695Skan  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118169695Skan  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119169695Skan  esac;;
1120169695Skanesac
1121169695Skan
1122169695Skan    cd $ac_dir
1123169695Skan    # Check for guested configure; otherwise get Cygnus style configure.
1124169695Skan    if test -f $ac_srcdir/configure.gnu; then
1125169695Skan      echo
1126169695Skan      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127169695Skan    elif test -f $ac_srcdir/configure; then
1128169695Skan      echo
1129169695Skan      $SHELL $ac_srcdir/configure  --help=recursive
1130169695Skan    elif test -f $ac_srcdir/configure.ac ||
1131169695Skan	   test -f $ac_srcdir/configure.in; then
1132169695Skan      echo
1133169695Skan      $ac_configure --help
1134169695Skan    else
1135169695Skan      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136169695Skan    fi
1137169695Skan    cd $ac_popdir
1138169695Skan  done
1139169695Skanfi
1140169695Skan
1141169695Skantest -n "$ac_init_help" && exit 0
1142169695Skanif $ac_init_version; then
1143169695Skan  cat <<\_ACEOF
1144169695SkanGNU OpenMP Runtime Library configure 1.0
1145169695Skangenerated by GNU Autoconf 2.59
1146169695Skan
1147169695SkanCopyright (C) 2003 Free Software Foundation, Inc.
1148169695SkanThis configure script is free software; the Free Software Foundation
1149169695Skangives unlimited permission to copy, distribute and modify it.
1150169695Skan_ACEOF
1151169695Skan  exit 0
1152169695Skanfi
1153169695Skanexec 5>config.log
1154169695Skancat >&5 <<_ACEOF
1155169695SkanThis file contains any messages produced by compilers while
1156169695Skanrunning configure, to aid debugging if configure makes a mistake.
1157169695Skan
1158169695SkanIt was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159169695Skangenerated by GNU Autoconf 2.59.  Invocation command line was
1160169695Skan
1161169695Skan  $ $0 $@
1162169695Skan
1163169695Skan_ACEOF
1164169695Skan{
1165169695Skancat <<_ASUNAME
1166169695Skan## --------- ##
1167169695Skan## Platform. ##
1168169695Skan## --------- ##
1169169695Skan
1170169695Skanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171169695Skanuname -m = `(uname -m) 2>/dev/null || echo unknown`
1172169695Skanuname -r = `(uname -r) 2>/dev/null || echo unknown`
1173169695Skanuname -s = `(uname -s) 2>/dev/null || echo unknown`
1174169695Skanuname -v = `(uname -v) 2>/dev/null || echo unknown`
1175169695Skan
1176169695Skan/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177169695Skan/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178169695Skan
1179169695Skan/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180169695Skan/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181169695Skan/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182169695Skanhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183169695Skan/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184169695Skan/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185169695Skan/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186169695Skan
1187169695Skan_ASUNAME
1188169695Skan
1189169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190169695Skanfor as_dir in $PATH
1191169695Skando
1192169695Skan  IFS=$as_save_IFS
1193169695Skan  test -z "$as_dir" && as_dir=.
1194169695Skan  echo "PATH: $as_dir"
1195169695Skandone
1196169695Skan
1197169695Skan} >&5
1198169695Skan
1199169695Skancat >&5 <<_ACEOF
1200169695Skan
1201169695Skan
1202169695Skan## ----------- ##
1203169695Skan## Core tests. ##
1204169695Skan## ----------- ##
1205169695Skan
1206169695Skan_ACEOF
1207169695Skan
1208169695Skan
1209169695Skan# Keep a trace of the command line.
1210169695Skan# Strip out --no-create and --no-recursion so they do not pile up.
1211169695Skan# Strip out --silent because we don't want to record it for future runs.
1212169695Skan# Also quote any args containing shell meta-characters.
1213169695Skan# Make two passes to allow for proper duplicate-argument suppression.
1214169695Skanac_configure_args=
1215169695Skanac_configure_args0=
1216169695Skanac_configure_args1=
1217169695Skanac_sep=
1218169695Skanac_must_keep_next=false
1219169695Skanfor ac_pass in 1 2
1220169695Skando
1221169695Skan  for ac_arg
1222169695Skan  do
1223169695Skan    case $ac_arg in
1224169695Skan    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225169695Skan    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226169695Skan    | -silent | --silent | --silen | --sile | --sil)
1227169695Skan      continue ;;
1228169695Skan    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229169695Skan      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230169695Skan    esac
1231169695Skan    case $ac_pass in
1232169695Skan    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233169695Skan    2)
1234169695Skan      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235169695Skan      if test $ac_must_keep_next = true; then
1236169695Skan	ac_must_keep_next=false # Got value, back to normal.
1237169695Skan      else
1238169695Skan	case $ac_arg in
1239169695Skan	  *=* | --config-cache | -C | -disable-* | --disable-* \
1240169695Skan	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241169695Skan	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242169695Skan	  | -with-* | --with-* | -without-* | --without-* | --x)
1243169695Skan	    case "$ac_configure_args0 " in
1244169695Skan	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245169695Skan	    esac
1246169695Skan	    ;;
1247169695Skan	  -* ) ac_must_keep_next=true ;;
1248169695Skan	esac
1249169695Skan      fi
1250169695Skan      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251169695Skan      # Get rid of the leading space.
1252169695Skan      ac_sep=" "
1253169695Skan      ;;
1254169695Skan    esac
1255169695Skan  done
1256169695Skandone
1257169695Skan$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258169695Skan$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259169695Skan
1260169695Skan# When interrupted or exit'd, cleanup temporary files, and complete
1261169695Skan# config.log.  We remove comments because anyway the quotes in there
1262169695Skan# would cause problems or look ugly.
1263169695Skan# WARNING: Be sure not to use single quotes in there, as some shells,
1264169695Skan# such as our DU 5.0 friend, will then `close' the trap.
1265169695Skantrap 'exit_status=$?
1266169695Skan  # Save into config.log some information that might help in debugging.
1267169695Skan  {
1268169695Skan    echo
1269169695Skan
1270169695Skan    cat <<\_ASBOX
1271169695Skan## ---------------- ##
1272169695Skan## Cache variables. ##
1273169695Skan## ---------------- ##
1274169695Skan_ASBOX
1275169695Skan    echo
1276169695Skan    # The following way of writing the cache mishandles newlines in values,
1277169695Skan{
1278169695Skan  (set) 2>&1 |
1279169695Skan    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280169695Skan    *ac_space=\ *)
1281169695Skan      sed -n \
1282169695Skan	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283169695Skan	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284169695Skan      ;;
1285169695Skan    *)
1286169695Skan      sed -n \
1287169695Skan	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288169695Skan      ;;
1289169695Skan    esac;
1290169695Skan}
1291169695Skan    echo
1292169695Skan
1293169695Skan    cat <<\_ASBOX
1294169695Skan## ----------------- ##
1295169695Skan## Output variables. ##
1296169695Skan## ----------------- ##
1297169695Skan_ASBOX
1298169695Skan    echo
1299169695Skan    for ac_var in $ac_subst_vars
1300169695Skan    do
1301169695Skan      eval ac_val=$`echo $ac_var`
1302169695Skan      echo "$ac_var='"'"'$ac_val'"'"'"
1303169695Skan    done | sort
1304169695Skan    echo
1305169695Skan
1306169695Skan    if test -n "$ac_subst_files"; then
1307169695Skan      cat <<\_ASBOX
1308169695Skan## ------------- ##
1309169695Skan## Output files. ##
1310169695Skan## ------------- ##
1311169695Skan_ASBOX
1312169695Skan      echo
1313169695Skan      for ac_var in $ac_subst_files
1314169695Skan      do
1315169695Skan	eval ac_val=$`echo $ac_var`
1316169695Skan	echo "$ac_var='"'"'$ac_val'"'"'"
1317169695Skan      done | sort
1318169695Skan      echo
1319169695Skan    fi
1320169695Skan
1321169695Skan    if test -s confdefs.h; then
1322169695Skan      cat <<\_ASBOX
1323169695Skan## ----------- ##
1324169695Skan## confdefs.h. ##
1325169695Skan## ----------- ##
1326169695Skan_ASBOX
1327169695Skan      echo
1328169695Skan      sed "/^$/d" confdefs.h | sort
1329169695Skan      echo
1330169695Skan    fi
1331169695Skan    test "$ac_signal" != 0 &&
1332169695Skan      echo "$as_me: caught signal $ac_signal"
1333169695Skan    echo "$as_me: exit $exit_status"
1334169695Skan  } >&5
1335169695Skan  rm -f core *.core &&
1336169695Skan  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337169695Skan    exit $exit_status
1338169695Skan     ' 0
1339169695Skanfor ac_signal in 1 2 13 15; do
1340169695Skan  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341169695Skandone
1342169695Skanac_signal=0
1343169695Skan
1344169695Skan# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345169695Skanrm -rf conftest* confdefs.h
1346169695Skan# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347169695Skanecho >confdefs.h
1348169695Skan
1349169695Skan# Predefined preprocessor variables.
1350169695Skan
1351169695Skancat >>confdefs.h <<_ACEOF
1352169695Skan#define PACKAGE_NAME "$PACKAGE_NAME"
1353169695Skan_ACEOF
1354169695Skan
1355169695Skan
1356169695Skancat >>confdefs.h <<_ACEOF
1357169695Skan#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358169695Skan_ACEOF
1359169695Skan
1360169695Skan
1361169695Skancat >>confdefs.h <<_ACEOF
1362169695Skan#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363169695Skan_ACEOF
1364169695Skan
1365169695Skan
1366169695Skancat >>confdefs.h <<_ACEOF
1367169695Skan#define PACKAGE_STRING "$PACKAGE_STRING"
1368169695Skan_ACEOF
1369169695Skan
1370169695Skan
1371169695Skancat >>confdefs.h <<_ACEOF
1372169695Skan#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373169695Skan_ACEOF
1374169695Skan
1375169695Skan
1376169695Skan# Let the site file select an alternate cache file if it wants to.
1377169695Skan# Prefer explicitly selected file to automatically selected ones.
1378169695Skanif test -z "$CONFIG_SITE"; then
1379169695Skan  if test "x$prefix" != xNONE; then
1380169695Skan    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381169695Skan  else
1382169695Skan    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383169695Skan  fi
1384169695Skanfi
1385169695Skanfor ac_site_file in $CONFIG_SITE; do
1386169695Skan  if test -r "$ac_site_file"; then
1387169695Skan    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388169695Skanecho "$as_me: loading site script $ac_site_file" >&6;}
1389169695Skan    sed 's/^/| /' "$ac_site_file" >&5
1390169695Skan    . "$ac_site_file"
1391169695Skan  fi
1392169695Skandone
1393169695Skan
1394169695Skanif test -r "$cache_file"; then
1395169695Skan  # Some versions of bash will fail to source /dev/null (special
1396169695Skan  # files actually), so we avoid doing that.
1397169695Skan  if test -f "$cache_file"; then
1398169695Skan    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399169695Skanecho "$as_me: loading cache $cache_file" >&6;}
1400169695Skan    case $cache_file in
1401169695Skan      [\\/]* | ?:[\\/]* ) . $cache_file;;
1402169695Skan      *)                      . ./$cache_file;;
1403169695Skan    esac
1404169695Skan  fi
1405169695Skanelse
1406169695Skan  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407169695Skanecho "$as_me: creating cache $cache_file" >&6;}
1408169695Skan  >$cache_file
1409169695Skanfi
1410169695Skan
1411169695Skan# Check that the precious variables saved in the cache have kept the same
1412169695Skan# value.
1413169695Skanac_cache_corrupted=false
1414169695Skanfor ac_var in `(set) 2>&1 |
1415169695Skan	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416169695Skan  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417169695Skan  eval ac_new_set=\$ac_env_${ac_var}_set
1418169695Skan  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419169695Skan  eval ac_new_val="\$ac_env_${ac_var}_value"
1420169695Skan  case $ac_old_set,$ac_new_set in
1421169695Skan    set,)
1422169695Skan      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423169695Skanecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424169695Skan      ac_cache_corrupted=: ;;
1425169695Skan    ,set)
1426169695Skan      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427169695Skanecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428169695Skan      ac_cache_corrupted=: ;;
1429169695Skan    ,);;
1430169695Skan    *)
1431169695Skan      if test "x$ac_old_val" != "x$ac_new_val"; then
1432169695Skan	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433169695Skanecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434169695Skan	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1435169695Skanecho "$as_me:   former value:  $ac_old_val" >&2;}
1436169695Skan	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1437169695Skanecho "$as_me:   current value: $ac_new_val" >&2;}
1438169695Skan	ac_cache_corrupted=:
1439169695Skan      fi;;
1440169695Skan  esac
1441169695Skan  # Pass precious variables to config.status.
1442169695Skan  if test "$ac_new_set" = set; then
1443169695Skan    case $ac_new_val in
1444169695Skan    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445169695Skan      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446169695Skan    *) ac_arg=$ac_var=$ac_new_val ;;
1447169695Skan    esac
1448169695Skan    case " $ac_configure_args " in
1449169695Skan      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450169695Skan      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451169695Skan    esac
1452169695Skan  fi
1453169695Skandone
1454169695Skanif $ac_cache_corrupted; then
1455169695Skan  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456169695Skanecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1457169695Skan  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458169695Skanecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459169695Skan   { (exit 1); exit 1; }; }
1460169695Skanfi
1461169695Skan
1462169695Skanac_ext=c
1463169695Skanac_cpp='$CPP $CPPFLAGS'
1464169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
1467169695Skan
1468169695Skan
1469169695Skan
1470169695Skan
1471169695Skan
1472169695Skan
1473169695Skan
1474169695Skan
1475169695Skan
1476169695Skan
1477169695Skan
1478169695Skan
1479169695Skan
1480169695Skan
1481169695Skan
1482169695Skan
1483169695Skan
1484169695Skan
1485169695Skan
1486169695Skan
1487169695Skan
1488169695Skan
1489169695Skan
1490169695Skan
1491169695Skan
1492169695Skan
1493169695Skan
1494169695Skan          ac_config_headers="$ac_config_headers config.h"
1495169695Skan
1496169695Skan
1497169695Skan# -------
1498169695Skan# Options
1499169695Skan# -------
1500169695Skan
1501169695Skanecho "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502169695Skanecho $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503169695Skan # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504169695Skanif test "${enable_version_specific_runtime_libs+set}" = set; then
1505169695Skan  enableval="$enable_version_specific_runtime_libs"
1506169695Skan
1507169695Skan      case "$enableval" in
1508169695Skan       yes|no) ;;
1509169695Skan       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510169695Skanecho "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511169695Skan   { (exit 1); exit 1; }; } ;;
1512169695Skan                          esac
1513169695Skan
1514169695Skanelse
1515169695Skan  enable_version_specific_runtime_libs=no
1516169695Skanfi;
1517169695Skan
1518169695Skanecho "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519169695Skanecho "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1520169695Skan
1521169695Skan# We would like our source tree to be readonly. However when releases or
1522169695Skan# pre-releases are generated, the flex/bison generated files as well as the
1523169695Skan# various formats of manuals need to be included along with the rest of the
1524169695Skan# sources.  Therefore we have --enable-generated-files-in-srcdir to do
1525169695Skan# just that.
1526169695Skanecho "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527169695Skanecho $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528169695Skan # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529169695Skanif test "${enable_generated_files_in_srcdir+set}" = set; then
1530169695Skan  enableval="$enable_generated_files_in_srcdir"
1531169695Skan
1532169695Skan      case "$enableval" in
1533169695Skan       yes|no) ;;
1534169695Skan       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535169695Skanecho "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536169695Skan   { (exit 1); exit 1; }; } ;;
1537169695Skan                          esac
1538169695Skan
1539169695Skanelse
1540169695Skan  enable_generated_files_in_srcdir=no
1541169695Skanfi;
1542169695Skan
1543169695Skanecho "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544169695Skanecho "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1545169695Skan
1546169695Skan
1547169695Skanif test "$enable_generated_files_in_srcdir" = yes; then
1548169695Skan  GENINSRC_TRUE=
1549169695Skan  GENINSRC_FALSE='#'
1550169695Skanelse
1551169695Skan  GENINSRC_TRUE='#'
1552169695Skan  GENINSRC_FALSE=
1553169695Skanfi
1554169695Skan
1555169695Skan
1556169695Skan
1557169695Skan# -------
1558169695Skan# -------
1559169695Skan
1560169695Skan# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1561169695Skan#
1562169695Skan# You will slowly go insane if you do not grok the following fact:  when
1563169695Skan# building this library, the top-level /target/ becomes the library's /host/.
1564169695Skan#
1565169695Skan# configure then causes --target to default to --host, exactly like any
1566169695Skan# other package using autoconf.  Therefore, 'target' and 'host' will
1567169695Skan# always be the same.  This makes sense both for native and cross compilers
1568169695Skan# just think about it for a little while.  :-)
1569169695Skan#
1570169695Skan# Also, if this library is being configured as part of a cross compiler, the
1571169695Skan# top-level configure script will pass the "real" host as $with_cross_host.
1572169695Skan#
1573169695Skan# Do not delete or change the following two lines.  For why, see
1574169695Skan# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1575169695Skanac_aux_dir=
1576169695Skanfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577169695Skan  if test -f $ac_dir/install-sh; then
1578169695Skan    ac_aux_dir=$ac_dir
1579169695Skan    ac_install_sh="$ac_aux_dir/install-sh -c"
1580169695Skan    break
1581169695Skan  elif test -f $ac_dir/install.sh; then
1582169695Skan    ac_aux_dir=$ac_dir
1583169695Skan    ac_install_sh="$ac_aux_dir/install.sh -c"
1584169695Skan    break
1585169695Skan  elif test -f $ac_dir/shtool; then
1586169695Skan    ac_aux_dir=$ac_dir
1587169695Skan    ac_install_sh="$ac_aux_dir/shtool install -c"
1588169695Skan    break
1589169695Skan  fi
1590169695Skandone
1591169695Skanif test -z "$ac_aux_dir"; then
1592169695Skan  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593169695Skanecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594169695Skan   { (exit 1); exit 1; }; }
1595169695Skanfi
1596169695Skanac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597169695Skanac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598169695Skanac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599169695Skan
1600169695Skan# Make sure we can run config.sub.
1601169695Skan$ac_config_sub sun4 >/dev/null 2>&1 ||
1602169695Skan  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603169695Skanecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1604169695Skan   { (exit 1); exit 1; }; }
1605169695Skan
1606169695Skanecho "$as_me:$LINENO: checking build system type" >&5
1607169695Skanecho $ECHO_N "checking build system type... $ECHO_C" >&6
1608169695Skanif test "${ac_cv_build+set}" = set; then
1609169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1610169695Skanelse
1611169695Skan  ac_cv_build_alias=$build_alias
1612169695Skantest -z "$ac_cv_build_alias" &&
1613169695Skan  ac_cv_build_alias=`$ac_config_guess`
1614169695Skantest -z "$ac_cv_build_alias" &&
1615169695Skan  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616169695Skanecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617169695Skan   { (exit 1); exit 1; }; }
1618169695Skanac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619169695Skan  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620169695Skanecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621169695Skan   { (exit 1); exit 1; }; }
1622169695Skan
1623169695Skanfi
1624169695Skanecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1625169695Skanecho "${ECHO_T}$ac_cv_build" >&6
1626169695Skanbuild=$ac_cv_build
1627169695Skanbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628169695Skanbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629169695Skanbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630169695Skan
1631169695Skan
1632169695Skanecho "$as_me:$LINENO: checking host system type" >&5
1633169695Skanecho $ECHO_N "checking host system type... $ECHO_C" >&6
1634169695Skanif test "${ac_cv_host+set}" = set; then
1635169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1636169695Skanelse
1637169695Skan  ac_cv_host_alias=$host_alias
1638169695Skantest -z "$ac_cv_host_alias" &&
1639169695Skan  ac_cv_host_alias=$ac_cv_build_alias
1640169695Skanac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641169695Skan  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642169695Skanecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643169695Skan   { (exit 1); exit 1; }; }
1644169695Skan
1645169695Skanfi
1646169695Skanecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1647169695Skanecho "${ECHO_T}$ac_cv_host" >&6
1648169695Skanhost=$ac_cv_host
1649169695Skanhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650169695Skanhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651169695Skanhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652169695Skan
1653169695Skan
1654169695Skanecho "$as_me:$LINENO: checking target system type" >&5
1655169695Skanecho $ECHO_N "checking target system type... $ECHO_C" >&6
1656169695Skanif test "${ac_cv_target+set}" = set; then
1657169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1658169695Skanelse
1659169695Skan  ac_cv_target_alias=$target_alias
1660169695Skantest "x$ac_cv_target_alias" = "x" &&
1661169695Skan  ac_cv_target_alias=$ac_cv_host_alias
1662169695Skanac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663169695Skan  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664169695Skanecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665169695Skan   { (exit 1); exit 1; }; }
1666169695Skan
1667169695Skanfi
1668169695Skanecho "$as_me:$LINENO: result: $ac_cv_target" >&5
1669169695Skanecho "${ECHO_T}$ac_cv_target" >&6
1670169695Skantarget=$ac_cv_target
1671169695Skantarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672169695Skantarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673169695Skantarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674169695Skan
1675169695Skan
1676169695Skan# The aliases save the names the user supplied, while $host etc.
1677169695Skan# will get canonicalized.
1678169695Skantest -n "$target_alias" &&
1679169695Skan  test "$program_prefix$program_suffix$program_transform_name" = \
1680169695Skan    NONENONEs,x,x, &&
1681169695Skan  program_prefix=${target_alias}-
1682169695Skantarget_alias=${target_alias-$host_alias}
1683169695Skan
1684169695Skan# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1685169695Skan# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686169695Skan#  1.9.0:  minimum required version
1687169695Skan#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688169695Skan#              of other PACKAGE_* variables will, however, and there's nothing
1689169695Skan#              we can do about that; they come from AC_INIT).
1690169695Skan#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1691169695Skan#            file in the top srcdir, etc, etc), so stop complaining.
1692282152Spfg#  no-dist:  we don't want 'dist' and related rules.
1693169695Skan#  -Wall:  turns on all automake warnings...
1694169695Skan#  -Wno-portability:  ...except this one, since GNU make is required.
1695169695Skan#  -Wno-override: ... and this one, since we do want this in testsuite.
1696169695Skanam__api_version="1.9"
1697169695Skan# Find a good install program.  We prefer a C program (faster),
1698169695Skan# so one script is as good as another.  But avoid the broken or
1699169695Skan# incompatible versions:
1700169695Skan# SysV /etc/install, /usr/sbin/install
1701169695Skan# SunOS /usr/etc/install
1702169695Skan# IRIX /sbin/install
1703169695Skan# AIX /bin/install
1704169695Skan# AmigaOS /C/install, which installs bootblocks on floppy discs
1705169695Skan# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706169695Skan# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707169695Skan# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708169695Skan# OS/2's system install, which has a completely different semantic
1709169695Skan# ./install, which can be erroneously created by make from ./install.sh.
1710169695Skanecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711169695Skanecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712169695Skanif test -z "$INSTALL"; then
1713169695Skanif test "${ac_cv_path_install+set}" = set; then
1714169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1715169695Skanelse
1716169695Skan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717169695Skanfor as_dir in $PATH
1718169695Skando
1719169695Skan  IFS=$as_save_IFS
1720169695Skan  test -z "$as_dir" && as_dir=.
1721169695Skan  # Account for people who put trailing slashes in PATH elements.
1722169695Skancase $as_dir/ in
1723169695Skan  ./ | .// | /cC/* | \
1724169695Skan  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725169695Skan  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726169695Skan  /usr/ucb/* ) ;;
1727169695Skan  *)
1728169695Skan    # OSF1 and SCO ODT 3.0 have their own names for install.
1729169695Skan    # Don't use installbsd from OSF since it installs stuff as root
1730169695Skan    # by default.
1731169695Skan    for ac_prog in ginstall scoinst install; do
1732169695Skan      for ac_exec_ext in '' $ac_executable_extensions; do
1733169695Skan	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734169695Skan	  if test $ac_prog = install &&
1735169695Skan	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736169695Skan	    # AIX install.  It has an incompatible calling convention.
1737169695Skan	    :
1738169695Skan	  elif test $ac_prog = install &&
1739169695Skan	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740169695Skan	    # program-specific install script used by HP pwplus--don't use.
1741169695Skan	    :
1742169695Skan	  else
1743169695Skan	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1744169695Skan	    break 3
1745169695Skan	  fi
1746169695Skan	fi
1747169695Skan      done
1748169695Skan    done
1749169695Skan    ;;
1750169695Skanesac
1751169695Skandone
1752169695Skan
1753169695Skan
1754169695Skanfi
1755169695Skan  if test "${ac_cv_path_install+set}" = set; then
1756169695Skan    INSTALL=$ac_cv_path_install
1757169695Skan  else
1758169695Skan    # As a last resort, use the slow shell script.  We don't cache a
1759169695Skan    # path for INSTALL within a source directory, because that will
1760169695Skan    # break other packages using the cache if that directory is
1761169695Skan    # removed, or if the path is relative.
1762169695Skan    INSTALL=$ac_install_sh
1763169695Skan  fi
1764169695Skanfi
1765169695Skanecho "$as_me:$LINENO: result: $INSTALL" >&5
1766169695Skanecho "${ECHO_T}$INSTALL" >&6
1767169695Skan
1768169695Skan# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769169695Skan# It thinks the first close brace ends the variable substitution.
1770169695Skantest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771169695Skan
1772169695Skantest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773169695Skan
1774169695Skantest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775169695Skan
1776169695Skanecho "$as_me:$LINENO: checking whether build environment is sane" >&5
1777169695Skanecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778169695Skan# Just in case
1779169695Skansleep 1
1780169695Skanecho timestamp > conftest.file
1781169695Skan# Do `set' in a subshell so we don't clobber the current shell's
1782169695Skan# arguments.  Must try -L first in case configure is actually a
1783169695Skan# symlink; some systems play weird games with the mod time of symlinks
1784169695Skan# (eg FreeBSD returns the mod time of the symlink's containing
1785169695Skan# directory).
1786169695Skanif (
1787169695Skan   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1788169695Skan   if test "$*" = "X"; then
1789169695Skan      # -L didn't work.
1790169695Skan      set X `ls -t $srcdir/configure conftest.file`
1791169695Skan   fi
1792169695Skan   rm -f conftest.file
1793169695Skan   if test "$*" != "X $srcdir/configure conftest.file" \
1794169695Skan      && test "$*" != "X conftest.file $srcdir/configure"; then
1795169695Skan
1796169695Skan      # If neither matched, then we have a broken ls.  This can happen
1797169695Skan      # if, for instance, CONFIG_SHELL is bash and it inherits a
1798169695Skan      # broken ls alias from the environment.  This has actually
1799169695Skan      # happened.  Such a system could not be considered "sane".
1800169695Skan      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1801169695Skanalias in your environment" >&5
1802169695Skanecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1803169695Skanalias in your environment" >&2;}
1804169695Skan   { (exit 1); exit 1; }; }
1805169695Skan   fi
1806169695Skan
1807169695Skan   test "$2" = conftest.file
1808169695Skan   )
1809169695Skanthen
1810169695Skan   # Ok.
1811169695Skan   :
1812169695Skanelse
1813169695Skan   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1814169695SkanCheck your system clock" >&5
1815169695Skanecho "$as_me: error: newly created file is older than distributed files!
1816169695SkanCheck your system clock" >&2;}
1817169695Skan   { (exit 1); exit 1; }; }
1818169695Skanfi
1819169695Skanecho "$as_me:$LINENO: result: yes" >&5
1820169695Skanecho "${ECHO_T}yes" >&6
1821169695Skantest "$program_prefix" != NONE &&
1822169695Skan  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1823169695Skan# Use a double $ so make ignores it.
1824169695Skantest "$program_suffix" != NONE &&
1825169695Skan  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1826169695Skan# Double any \ or $.  echo might interpret backslashes.
1827169695Skan# By default was `s,x,x', remove it if useless.
1828169695Skancat <<\_ACEOF >conftest.sed
1829169695Skans/[\\$]/&&/g;s/;s,x,x,$//
1830169695Skan_ACEOF
1831169695Skanprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832169695Skanrm conftest.sed
1833169695Skan
1834169695Skan# expand $ac_aux_dir to an absolute path
1835169695Skanam_aux_dir=`cd $ac_aux_dir && pwd`
1836169695Skan
1837169695Skantest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1838169695Skan# Use eval to expand $SHELL
1839169695Skanif eval "$MISSING --run true"; then
1840169695Skan  am_missing_run="$MISSING --run "
1841169695Skanelse
1842169695Skan  am_missing_run=
1843169695Skan  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1844169695Skanecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845169695Skanfi
1846169695Skan
1847169695Skanif mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1848169695Skan  # We used to keeping the `.' as first argument, in order to
1849169695Skan  # allow $(mkdir_p) to be used without argument.  As in
1850169695Skan  #   $(mkdir_p) $(somedir)
1851169695Skan  # where $(somedir) is conditionally defined.  However this is wrong
1852169695Skan  # for two reasons:
1853169695Skan  #  1. if the package is installed by a user who cannot write `.'
1854169695Skan  #     make install will fail,
1855169695Skan  #  2. the above comment should most certainly read
1856169695Skan  #     $(mkdir_p) $(DESTDIR)$(somedir)
1857169695Skan  #     so it does not work when $(somedir) is undefined and
1858169695Skan  #     $(DESTDIR) is not.
1859169695Skan  #  To support the latter case, we have to write
1860169695Skan  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1861169695Skan  #  so the `.' trick is pointless.
1862169695Skan  mkdir_p='mkdir -p --'
1863169695Skanelse
1864169695Skan  # On NextStep and OpenStep, the `mkdir' command does not
1865169695Skan  # recognize any option.  It will interpret all options as
1866169695Skan  # directories to create, and then abort because `.' already
1867169695Skan  # exists.
1868169695Skan  for d in ./-p ./--version;
1869169695Skan  do
1870169695Skan    test -d $d && rmdir $d
1871169695Skan  done
1872169695Skan  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873169695Skan  if test -f "$ac_aux_dir/mkinstalldirs"; then
1874169695Skan    mkdir_p='$(mkinstalldirs)'
1875169695Skan  else
1876169695Skan    mkdir_p='$(install_sh) -d'
1877169695Skan  fi
1878169695Skanfi
1879169695Skan
1880169695Skanfor ac_prog in gawk mawk nawk awk
1881169695Skando
1882169695Skan  # Extract the first word of "$ac_prog", so it can be a program name with args.
1883169695Skanset dummy $ac_prog; ac_word=$2
1884169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
1885169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886169695Skanif test "${ac_cv_prog_AWK+set}" = set; then
1887169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1888169695Skanelse
1889169695Skan  if test -n "$AWK"; then
1890169695Skan  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891169695Skanelse
1892169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893169695Skanfor as_dir in $PATH
1894169695Skando
1895169695Skan  IFS=$as_save_IFS
1896169695Skan  test -z "$as_dir" && as_dir=.
1897169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
1898169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899169695Skan    ac_cv_prog_AWK="$ac_prog"
1900169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901169695Skan    break 2
1902169695Skan  fi
1903169695Skandone
1904169695Skandone
1905169695Skan
1906169695Skanfi
1907169695Skanfi
1908169695SkanAWK=$ac_cv_prog_AWK
1909169695Skanif test -n "$AWK"; then
1910169695Skan  echo "$as_me:$LINENO: result: $AWK" >&5
1911169695Skanecho "${ECHO_T}$AWK" >&6
1912169695Skanelse
1913169695Skan  echo "$as_me:$LINENO: result: no" >&5
1914169695Skanecho "${ECHO_T}no" >&6
1915169695Skanfi
1916169695Skan
1917169695Skan  test -n "$AWK" && break
1918169695Skandone
1919169695Skan
1920169695Skanecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921169695Skanecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922169695Skanset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923169695Skanif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
1925169695Skanelse
1926169695Skan  cat >conftest.make <<\_ACEOF
1927169695Skanall:
1928169695Skan	@echo 'ac_maketemp="$(MAKE)"'
1929169695Skan_ACEOF
1930169695Skan# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931169695Skaneval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932169695Skanif test -n "$ac_maketemp"; then
1933169695Skan  eval ac_cv_prog_make_${ac_make}_set=yes
1934169695Skanelse
1935169695Skan  eval ac_cv_prog_make_${ac_make}_set=no
1936169695Skanfi
1937169695Skanrm -f conftest.make
1938169695Skanfi
1939169695Skanif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940169695Skan  echo "$as_me:$LINENO: result: yes" >&5
1941169695Skanecho "${ECHO_T}yes" >&6
1942169695Skan  SET_MAKE=
1943169695Skanelse
1944169695Skan  echo "$as_me:$LINENO: result: no" >&5
1945169695Skanecho "${ECHO_T}no" >&6
1946169695Skan  SET_MAKE="MAKE=${MAKE-make}"
1947169695Skanfi
1948169695Skan
1949169695Skanrm -rf .tst 2>/dev/null
1950169695Skanmkdir .tst 2>/dev/null
1951169695Skanif test -d .tst; then
1952169695Skan  am__leading_dot=.
1953169695Skanelse
1954169695Skan  am__leading_dot=_
1955169695Skanfi
1956169695Skanrmdir .tst 2>/dev/null
1957169695Skan
1958169695Skan# test to see if srcdir already configured
1959169695Skanif test "`cd $srcdir && pwd`" != "`pwd`" &&
1960169695Skan   test -f $srcdir/config.status; then
1961169695Skan  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962169695Skanecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963169695Skan   { (exit 1); exit 1; }; }
1964169695Skanfi
1965169695Skan
1966169695Skan# test whether we have cygpath
1967169695Skanif test -z "$CYGPATH_W"; then
1968169695Skan  if (cygpath --version) >/dev/null 2>/dev/null; then
1969169695Skan    CYGPATH_W='cygpath -w'
1970169695Skan  else
1971169695Skan    CYGPATH_W=echo
1972169695Skan  fi
1973169695Skanfi
1974169695Skan
1975169695Skan
1976169695Skan# Define the identity of the package.
1977169695Skan PACKAGE='libgomp'
1978169695Skan VERSION='1.0'
1979169695Skan
1980169695Skan
1981169695Skancat >>confdefs.h <<_ACEOF
1982169695Skan#define PACKAGE "$PACKAGE"
1983169695Skan_ACEOF
1984169695Skan
1985169695Skan
1986169695Skancat >>confdefs.h <<_ACEOF
1987169695Skan#define VERSION "$VERSION"
1988169695Skan_ACEOF
1989169695Skan
1990169695Skan# Some tools Automake needs.
1991169695Skan
1992169695SkanACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1993169695Skan
1994169695Skan
1995169695SkanAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1996169695Skan
1997169695Skan
1998169695SkanAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1999169695Skan
2000169695Skan
2001169695SkanAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2002169695Skan
2003169695Skan
2004169695SkanMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2005169695Skan
2006169695Skaninstall_sh=${install_sh-"$am_aux_dir/install-sh"}
2007169695Skan
2008169695Skan# Installed binaries are usually stripped using `strip' when the user
2009169695Skan# run `make install-strip'.  However `strip' might not be the right
2010169695Skan# tool to use in cross-compilation environments, therefore Automake
2011169695Skan# will honor the `STRIP' environment variable to overrule this program.
2012169695Skanif test "$cross_compiling" != no; then
2013169695Skan  if test -n "$ac_tool_prefix"; then
2014169695Skan  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2015169695Skanset dummy ${ac_tool_prefix}strip; ac_word=$2
2016169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2017169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018169695Skanif test "${ac_cv_prog_STRIP+set}" = set; then
2019169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2020169695Skanelse
2021169695Skan  if test -n "$STRIP"; then
2022169695Skan  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2023169695Skanelse
2024169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025169695Skanfor as_dir in $PATH
2026169695Skando
2027169695Skan  IFS=$as_save_IFS
2028169695Skan  test -z "$as_dir" && as_dir=.
2029169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2030169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031169695Skan    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2032169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033169695Skan    break 2
2034169695Skan  fi
2035169695Skandone
2036169695Skandone
2037169695Skan
2038169695Skanfi
2039169695Skanfi
2040169695SkanSTRIP=$ac_cv_prog_STRIP
2041169695Skanif test -n "$STRIP"; then
2042169695Skan  echo "$as_me:$LINENO: result: $STRIP" >&5
2043169695Skanecho "${ECHO_T}$STRIP" >&6
2044169695Skanelse
2045169695Skan  echo "$as_me:$LINENO: result: no" >&5
2046169695Skanecho "${ECHO_T}no" >&6
2047169695Skanfi
2048169695Skan
2049169695Skanfi
2050169695Skanif test -z "$ac_cv_prog_STRIP"; then
2051169695Skan  ac_ct_STRIP=$STRIP
2052169695Skan  # Extract the first word of "strip", so it can be a program name with args.
2053169695Skanset dummy strip; ac_word=$2
2054169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2055169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056169695Skanif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2057169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2058169695Skanelse
2059169695Skan  if test -n "$ac_ct_STRIP"; then
2060169695Skan  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2061169695Skanelse
2062169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063169695Skanfor as_dir in $PATH
2064169695Skando
2065169695Skan  IFS=$as_save_IFS
2066169695Skan  test -z "$as_dir" && as_dir=.
2067169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2068169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069169695Skan    ac_cv_prog_ac_ct_STRIP="strip"
2070169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071169695Skan    break 2
2072169695Skan  fi
2073169695Skandone
2074169695Skandone
2075169695Skan
2076169695Skan  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2077169695Skanfi
2078169695Skanfi
2079169695Skanac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2080169695Skanif test -n "$ac_ct_STRIP"; then
2081169695Skan  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2082169695Skanecho "${ECHO_T}$ac_ct_STRIP" >&6
2083169695Skanelse
2084169695Skan  echo "$as_me:$LINENO: result: no" >&5
2085169695Skanecho "${ECHO_T}no" >&6
2086169695Skanfi
2087169695Skan
2088169695Skan  STRIP=$ac_ct_STRIP
2089169695Skanelse
2090169695Skan  STRIP="$ac_cv_prog_STRIP"
2091169695Skanfi
2092169695Skan
2093169695Skanfi
2094169695SkanINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2095169695Skan
2096169695Skan# We need awk for the "check" target.  The system "awk" is bad on
2097169695Skan# some platforms.
2098169695Skan# Always define AMTAR for backward compatibility.
2099169695Skan
2100169695SkanAMTAR=${AMTAR-"${am_missing_run}tar"}
2101169695Skan
2102169695Skanam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2103169695Skan
2104169695Skan
2105169695Skan
2106169695Skan
2107169695Skan
2108169695Skan# Default to --enable-multilib
2109169695Skan# Check whether --enable-multilib or --disable-multilib was given.
2110169695Skanif test "${enable_multilib+set}" = set; then
2111169695Skan  enableval="$enable_multilib"
2112169695Skan  case "$enableval" in
2113169695Skan  yes) multilib=yes ;;
2114169695Skan  no)  multilib=no ;;
2115169695Skan  *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2116169695Skanecho "$as_me: error: bad value $enableval for multilib option" >&2;}
2117169695Skan   { (exit 1); exit 1; }; } ;;
2118169695Skan esac
2119169695Skanelse
2120169695Skan  multilib=yes
2121169695Skanfi;
2122169695Skan
2123169695Skan# We may get other options which we leave undocumented:
2124169695Skan# --with-target-subdir, --with-multisrctop, --with-multisubdir
2125169695Skan# See config-ml.in if you want the gory details.
2126169695Skan
2127169695Skanif test "$srcdir" = "."; then
2128169695Skan  if test "$with_target_subdir" != "."; then
2129169695Skan    multi_basedir="$srcdir/$with_multisrctop../.."
2130169695Skan  else
2131169695Skan    multi_basedir="$srcdir/$with_multisrctop.."
2132169695Skan  fi
2133169695Skanelse
2134169695Skan  multi_basedir="$srcdir/.."
2135169695Skanfi
2136169695Skan
2137169695Skan
2138169695Skan# Even if the default multilib is not a cross compilation,
2139169695Skan# it may be that some of the other multilibs are.
2140169695Skanif test $cross_compiling = no && test $multilib = yes \
2141169695Skan   && test "x${with_multisubdir}" != x ; then
2142169695Skan   cross_compiling=maybe
2143169695Skanfi
2144169695Skan
2145169695Skan          ac_config_commands="$ac_config_commands default-1"
2146169695Skan
2147169695Skan
2148169695Skan# Calculate toolexeclibdir
2149169695Skan# Also toolexecdir, though it's only used in toolexeclibdir
2150169695Skancase ${enable_version_specific_runtime_libs} in
2151169695Skan  yes)
2152169695Skan    # Need the gcc compiler version to know where to install libraries
2153169695Skan    # and header files if --enable-version-specific-runtime-libs option
2154169695Skan    # is selected.
2155169695Skan    toolexecdir='$(libdir)/gcc/$(target_alias)'
2156169695Skan    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2157169695Skan    ;;
2158169695Skan  no)
2159169695Skan    if test -n "$with_cross_host" &&
2160169695Skan       test x"$with_cross_host" != x"no"; then
2161169695Skan      # Install a library built with a cross compiler in tooldir, not libdir.
2162169695Skan      toolexecdir='$(exec_prefix)/$(target_alias)'
2163169695Skan      toolexeclibdir='$(toolexecdir)/lib'
2164169695Skan    else
2165169695Skan      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2166169695Skan      toolexeclibdir='$(libdir)'
2167169695Skan    fi
2168169695Skan    multi_os_directory=`$CC -print-multi-os-directory`
2169169695Skan    case $multi_os_directory in
2170169695Skan      .) ;; # Avoid trailing /.
2171169695Skan      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2172169695Skan    esac
2173169695Skan    ;;
2174169695Skanesac
2175169695Skan
2176169695Skan
2177169695Skan
2178169695Skan# Check the compiler.
2179169695Skan# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2180169695Skan# We must force CC to /not/ be precious variables; otherwise
2181169695Skan# the wrong, non-multilib-adjusted value will be used in multilibs.
2182169695Skan# As a side effect, we have to subst CFLAGS ourselves.
2183169695Skan
2184169695Skan
2185169695Skan
2186169695Skanac_ext=c
2187169695Skanac_cpp='$CPP $CPPFLAGS'
2188169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
2191169695Skanif test -n "$ac_tool_prefix"; then
2192169695Skan  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193169695Skanset dummy ${ac_tool_prefix}gcc; ac_word=$2
2194169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2195169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196169695Skanif test "${ac_cv_prog_CC+set}" = set; then
2197169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2198169695Skanelse
2199169695Skan  if test -n "$CC"; then
2200169695Skan  ac_cv_prog_CC="$CC" # Let the user override the test.
2201169695Skanelse
2202169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203169695Skanfor as_dir in $PATH
2204169695Skando
2205169695Skan  IFS=$as_save_IFS
2206169695Skan  test -z "$as_dir" && as_dir=.
2207169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2208169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209169695Skan    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211169695Skan    break 2
2212169695Skan  fi
2213169695Skandone
2214169695Skandone
2215169695Skan
2216169695Skanfi
2217169695Skanfi
2218169695SkanCC=$ac_cv_prog_CC
2219169695Skanif test -n "$CC"; then
2220169695Skan  echo "$as_me:$LINENO: result: $CC" >&5
2221169695Skanecho "${ECHO_T}$CC" >&6
2222169695Skanelse
2223169695Skan  echo "$as_me:$LINENO: result: no" >&5
2224169695Skanecho "${ECHO_T}no" >&6
2225169695Skanfi
2226169695Skan
2227169695Skanfi
2228169695Skanif test -z "$ac_cv_prog_CC"; then
2229169695Skan  ac_ct_CC=$CC
2230169695Skan  # Extract the first word of "gcc", so it can be a program name with args.
2231169695Skanset dummy gcc; ac_word=$2
2232169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2233169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234169695Skanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2236169695Skanelse
2237169695Skan  if test -n "$ac_ct_CC"; then
2238169695Skan  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239169695Skanelse
2240169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241169695Skanfor as_dir in $PATH
2242169695Skando
2243169695Skan  IFS=$as_save_IFS
2244169695Skan  test -z "$as_dir" && as_dir=.
2245169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2246169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247169695Skan    ac_cv_prog_ac_ct_CC="gcc"
2248169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249169695Skan    break 2
2250169695Skan  fi
2251169695Skandone
2252169695Skandone
2253169695Skan
2254169695Skanfi
2255169695Skanfi
2256169695Skanac_ct_CC=$ac_cv_prog_ac_ct_CC
2257169695Skanif test -n "$ac_ct_CC"; then
2258169695Skan  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259169695Skanecho "${ECHO_T}$ac_ct_CC" >&6
2260169695Skanelse
2261169695Skan  echo "$as_me:$LINENO: result: no" >&5
2262169695Skanecho "${ECHO_T}no" >&6
2263169695Skanfi
2264169695Skan
2265169695Skan  CC=$ac_ct_CC
2266169695Skanelse
2267169695Skan  CC="$ac_cv_prog_CC"
2268169695Skanfi
2269169695Skan
2270169695Skanif test -z "$CC"; then
2271169695Skan  if test -n "$ac_tool_prefix"; then
2272169695Skan  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273169695Skanset dummy ${ac_tool_prefix}cc; ac_word=$2
2274169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2275169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276169695Skanif test "${ac_cv_prog_CC+set}" = set; then
2277169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2278169695Skanelse
2279169695Skan  if test -n "$CC"; then
2280169695Skan  ac_cv_prog_CC="$CC" # Let the user override the test.
2281169695Skanelse
2282169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283169695Skanfor as_dir in $PATH
2284169695Skando
2285169695Skan  IFS=$as_save_IFS
2286169695Skan  test -z "$as_dir" && as_dir=.
2287169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2288169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289169695Skan    ac_cv_prog_CC="${ac_tool_prefix}cc"
2290169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291169695Skan    break 2
2292169695Skan  fi
2293169695Skandone
2294169695Skandone
2295169695Skan
2296169695Skanfi
2297169695Skanfi
2298169695SkanCC=$ac_cv_prog_CC
2299169695Skanif test -n "$CC"; then
2300169695Skan  echo "$as_me:$LINENO: result: $CC" >&5
2301169695Skanecho "${ECHO_T}$CC" >&6
2302169695Skanelse
2303169695Skan  echo "$as_me:$LINENO: result: no" >&5
2304169695Skanecho "${ECHO_T}no" >&6
2305169695Skanfi
2306169695Skan
2307169695Skanfi
2308169695Skanif test -z "$ac_cv_prog_CC"; then
2309169695Skan  ac_ct_CC=$CC
2310169695Skan  # Extract the first word of "cc", so it can be a program name with args.
2311169695Skanset dummy cc; ac_word=$2
2312169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2313169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314169695Skanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2316169695Skanelse
2317169695Skan  if test -n "$ac_ct_CC"; then
2318169695Skan  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319169695Skanelse
2320169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321169695Skanfor as_dir in $PATH
2322169695Skando
2323169695Skan  IFS=$as_save_IFS
2324169695Skan  test -z "$as_dir" && as_dir=.
2325169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2326169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327169695Skan    ac_cv_prog_ac_ct_CC="cc"
2328169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329169695Skan    break 2
2330169695Skan  fi
2331169695Skandone
2332169695Skandone
2333169695Skan
2334169695Skanfi
2335169695Skanfi
2336169695Skanac_ct_CC=$ac_cv_prog_ac_ct_CC
2337169695Skanif test -n "$ac_ct_CC"; then
2338169695Skan  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339169695Skanecho "${ECHO_T}$ac_ct_CC" >&6
2340169695Skanelse
2341169695Skan  echo "$as_me:$LINENO: result: no" >&5
2342169695Skanecho "${ECHO_T}no" >&6
2343169695Skanfi
2344169695Skan
2345169695Skan  CC=$ac_ct_CC
2346169695Skanelse
2347169695Skan  CC="$ac_cv_prog_CC"
2348169695Skanfi
2349169695Skan
2350169695Skanfi
2351169695Skanif test -z "$CC"; then
2352169695Skan  # Extract the first word of "cc", so it can be a program name with args.
2353169695Skanset dummy cc; ac_word=$2
2354169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2355169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356169695Skanif test "${ac_cv_prog_CC+set}" = set; then
2357169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2358169695Skanelse
2359169695Skan  if test -n "$CC"; then
2360169695Skan  ac_cv_prog_CC="$CC" # Let the user override the test.
2361169695Skanelse
2362169695Skan  ac_prog_rejected=no
2363169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364169695Skanfor as_dir in $PATH
2365169695Skando
2366169695Skan  IFS=$as_save_IFS
2367169695Skan  test -z "$as_dir" && as_dir=.
2368169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2369169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370169695Skan    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371169695Skan       ac_prog_rejected=yes
2372169695Skan       continue
2373169695Skan     fi
2374169695Skan    ac_cv_prog_CC="cc"
2375169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376169695Skan    break 2
2377169695Skan  fi
2378169695Skandone
2379169695Skandone
2380169695Skan
2381169695Skanif test $ac_prog_rejected = yes; then
2382169695Skan  # We found a bogon in the path, so make sure we never use it.
2383169695Skan  set dummy $ac_cv_prog_CC
2384169695Skan  shift
2385169695Skan  if test $# != 0; then
2386169695Skan    # We chose a different compiler from the bogus one.
2387169695Skan    # However, it has the same basename, so the bogon will be chosen
2388169695Skan    # first if we set CC to just the basename; use the full file name.
2389169695Skan    shift
2390169695Skan    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391169695Skan  fi
2392169695Skanfi
2393169695Skanfi
2394169695Skanfi
2395169695SkanCC=$ac_cv_prog_CC
2396169695Skanif test -n "$CC"; then
2397169695Skan  echo "$as_me:$LINENO: result: $CC" >&5
2398169695Skanecho "${ECHO_T}$CC" >&6
2399169695Skanelse
2400169695Skan  echo "$as_me:$LINENO: result: no" >&5
2401169695Skanecho "${ECHO_T}no" >&6
2402169695Skanfi
2403169695Skan
2404169695Skanfi
2405169695Skanif test -z "$CC"; then
2406169695Skan  if test -n "$ac_tool_prefix"; then
2407169695Skan  for ac_prog in cl
2408169695Skan  do
2409169695Skan    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410169695Skanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2412169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413169695Skanif test "${ac_cv_prog_CC+set}" = set; then
2414169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2415169695Skanelse
2416169695Skan  if test -n "$CC"; then
2417169695Skan  ac_cv_prog_CC="$CC" # Let the user override the test.
2418169695Skanelse
2419169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420169695Skanfor as_dir in $PATH
2421169695Skando
2422169695Skan  IFS=$as_save_IFS
2423169695Skan  test -z "$as_dir" && as_dir=.
2424169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2425169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426169695Skan    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428169695Skan    break 2
2429169695Skan  fi
2430169695Skandone
2431169695Skandone
2432169695Skan
2433169695Skanfi
2434169695Skanfi
2435169695SkanCC=$ac_cv_prog_CC
2436169695Skanif test -n "$CC"; then
2437169695Skan  echo "$as_me:$LINENO: result: $CC" >&5
2438169695Skanecho "${ECHO_T}$CC" >&6
2439169695Skanelse
2440169695Skan  echo "$as_me:$LINENO: result: no" >&5
2441169695Skanecho "${ECHO_T}no" >&6
2442169695Skanfi
2443169695Skan
2444169695Skan    test -n "$CC" && break
2445169695Skan  done
2446169695Skanfi
2447169695Skanif test -z "$CC"; then
2448169695Skan  ac_ct_CC=$CC
2449169695Skan  for ac_prog in cl
2450169695Skando
2451169695Skan  # Extract the first word of "$ac_prog", so it can be a program name with args.
2452169695Skanset dummy $ac_prog; ac_word=$2
2453169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
2454169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455169695Skanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2457169695Skanelse
2458169695Skan  if test -n "$ac_ct_CC"; then
2459169695Skan  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460169695Skanelse
2461169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462169695Skanfor as_dir in $PATH
2463169695Skando
2464169695Skan  IFS=$as_save_IFS
2465169695Skan  test -z "$as_dir" && as_dir=.
2466169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
2467169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468169695Skan    ac_cv_prog_ac_ct_CC="$ac_prog"
2469169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470169695Skan    break 2
2471169695Skan  fi
2472169695Skandone
2473169695Skandone
2474169695Skan
2475169695Skanfi
2476169695Skanfi
2477169695Skanac_ct_CC=$ac_cv_prog_ac_ct_CC
2478169695Skanif test -n "$ac_ct_CC"; then
2479169695Skan  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480169695Skanecho "${ECHO_T}$ac_ct_CC" >&6
2481169695Skanelse
2482169695Skan  echo "$as_me:$LINENO: result: no" >&5
2483169695Skanecho "${ECHO_T}no" >&6
2484169695Skanfi
2485169695Skan
2486169695Skan  test -n "$ac_ct_CC" && break
2487169695Skandone
2488169695Skan
2489169695Skan  CC=$ac_ct_CC
2490169695Skanfi
2491169695Skan
2492169695Skanfi
2493169695Skan
2494169695Skan
2495169695Skantest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496169695SkanSee \`config.log' for more details." >&5
2497169695Skanecho "$as_me: error: no acceptable C compiler found in \$PATH
2498169695SkanSee \`config.log' for more details." >&2;}
2499169695Skan   { (exit 1); exit 1; }; }
2500169695Skan
2501169695Skan# Provide some information about the compiler.
2502169695Skanecho "$as_me:$LINENO:" \
2503169695Skan     "checking for C compiler version" >&5
2504169695Skanac_compiler=`set X $ac_compile; echo $2`
2505169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506169695Skan  (eval $ac_compiler --version </dev/null >&5) 2>&5
2507169695Skan  ac_status=$?
2508169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509169695Skan  (exit $ac_status); }
2510169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511169695Skan  (eval $ac_compiler -v </dev/null >&5) 2>&5
2512169695Skan  ac_status=$?
2513169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514169695Skan  (exit $ac_status); }
2515169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516169695Skan  (eval $ac_compiler -V </dev/null >&5) 2>&5
2517169695Skan  ac_status=$?
2518169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519169695Skan  (exit $ac_status); }
2520169695Skan
2521169695Skancat >conftest.$ac_ext <<_ACEOF
2522169695Skan/* confdefs.h.  */
2523169695Skan_ACEOF
2524169695Skancat confdefs.h >>conftest.$ac_ext
2525169695Skancat >>conftest.$ac_ext <<_ACEOF
2526169695Skan/* end confdefs.h.  */
2527169695Skan
2528169695Skanint
2529169695Skanmain ()
2530169695Skan{
2531169695Skan
2532169695Skan  ;
2533169695Skan  return 0;
2534169695Skan}
2535169695Skan_ACEOF
2536169695Skanac_clean_files_save=$ac_clean_files
2537169695Skanac_clean_files="$ac_clean_files a.out a.exe b.out"
2538169695Skan# Try to create an executable without -o first, disregard a.out.
2539169695Skan# It will help us diagnose broken compilers, and finding out an intuition
2540169695Skan# of exeext.
2541169695Skanecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542169695Skanecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543169695Skanac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545169695Skan  (eval $ac_link_default) 2>&5
2546169695Skan  ac_status=$?
2547169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548169695Skan  (exit $ac_status); }; then
2549169695Skan  # Find the output, starting from the most likely.  This scheme is
2550169695Skan# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551169695Skan# resort.
2552169695Skan
2553169695Skan# Be careful to initialize this variable, since it used to be cached.
2554169695Skan# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555169695Skanac_cv_exeext=
2556169695Skan# b.out is created by i960 compilers.
2557169695Skanfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558169695Skando
2559169695Skan  test -f "$ac_file" || continue
2560169695Skan  case $ac_file in
2561169695Skan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562169695Skan	;;
2563169695Skan    conftest.$ac_ext )
2564169695Skan	# This is the source file.
2565169695Skan	;;
2566169695Skan    [ab].out )
2567169695Skan	# We found the default executable, but exeext='' is most
2568169695Skan	# certainly right.
2569169695Skan	break;;
2570169695Skan    *.* )
2571169695Skan	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572169695Skan	# FIXME: I believe we export ac_cv_exeext for Libtool,
2573169695Skan	# but it would be cool to find out if it's true.  Does anybody
2574169695Skan	# maintain Libtool? --akim.
2575169695Skan	export ac_cv_exeext
2576169695Skan	break;;
2577169695Skan    * )
2578169695Skan	break;;
2579169695Skan  esac
2580169695Skandone
2581169695Skanelse
2582169695Skan  echo "$as_me: failed program was:" >&5
2583169695Skansed 's/^/| /' conftest.$ac_ext >&5
2584169695Skan
2585169695Skan{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586169695SkanSee \`config.log' for more details." >&5
2587169695Skanecho "$as_me: error: C compiler cannot create executables
2588169695SkanSee \`config.log' for more details." >&2;}
2589169695Skan   { (exit 77); exit 77; }; }
2590169695Skanfi
2591169695Skan
2592169695Skanac_exeext=$ac_cv_exeext
2593169695Skanecho "$as_me:$LINENO: result: $ac_file" >&5
2594169695Skanecho "${ECHO_T}$ac_file" >&6
2595169695Skan
2596169695Skan# Check the compiler produces executables we can run.  If not, either
2597169695Skan# the compiler is broken, or we cross compile.
2598169695Skanecho "$as_me:$LINENO: checking whether the C compiler works" >&5
2599169695Skanecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600169695Skan# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601169695Skan# If not cross compiling, check that we can run a simple program.
2602169695Skanif test "$cross_compiling" != yes; then
2603169695Skan  if { ac_try='./$ac_file'
2604169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605169695Skan  (eval $ac_try) 2>&5
2606169695Skan  ac_status=$?
2607169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608169695Skan  (exit $ac_status); }; }; then
2609169695Skan    cross_compiling=no
2610169695Skan  else
2611169695Skan    if test "$cross_compiling" = maybe; then
2612169695Skan	cross_compiling=yes
2613169695Skan    else
2614169695Skan	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615169695SkanIf you meant to cross compile, use \`--host'.
2616169695SkanSee \`config.log' for more details." >&5
2617169695Skanecho "$as_me: error: cannot run C compiled programs.
2618169695SkanIf you meant to cross compile, use \`--host'.
2619169695SkanSee \`config.log' for more details." >&2;}
2620169695Skan   { (exit 1); exit 1; }; }
2621169695Skan    fi
2622169695Skan  fi
2623169695Skanfi
2624169695Skanecho "$as_me:$LINENO: result: yes" >&5
2625169695Skanecho "${ECHO_T}yes" >&6
2626169695Skan
2627169695Skanrm -f a.out a.exe conftest$ac_cv_exeext b.out
2628169695Skanac_clean_files=$ac_clean_files_save
2629169695Skan# Check the compiler produces executables we can run.  If not, either
2630169695Skan# the compiler is broken, or we cross compile.
2631169695Skanecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632169695Skanecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633169695Skanecho "$as_me:$LINENO: result: $cross_compiling" >&5
2634169695Skanecho "${ECHO_T}$cross_compiling" >&6
2635169695Skan
2636169695Skanecho "$as_me:$LINENO: checking for suffix of executables" >&5
2637169695Skanecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639169695Skan  (eval $ac_link) 2>&5
2640169695Skan  ac_status=$?
2641169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642169695Skan  (exit $ac_status); }; then
2643169695Skan  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644169695Skan# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645169695Skan# work properly (i.e., refer to `conftest.exe'), while it won't with
2646169695Skan# `rm'.
2647169695Skanfor ac_file in conftest.exe conftest conftest.*; do
2648169695Skan  test -f "$ac_file" || continue
2649169695Skan  case $ac_file in
2650169695Skan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651169695Skan    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652169695Skan	  export ac_cv_exeext
2653169695Skan	  break;;
2654169695Skan    * ) break;;
2655169695Skan  esac
2656169695Skandone
2657169695Skanelse
2658169695Skan  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659169695SkanSee \`config.log' for more details." >&5
2660169695Skanecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661169695SkanSee \`config.log' for more details." >&2;}
2662169695Skan   { (exit 1); exit 1; }; }
2663169695Skanfi
2664169695Skan
2665169695Skanrm -f conftest$ac_cv_exeext
2666169695Skanecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667169695Skanecho "${ECHO_T}$ac_cv_exeext" >&6
2668169695Skan
2669169695Skanrm -f conftest.$ac_ext
2670169695SkanEXEEXT=$ac_cv_exeext
2671169695Skanac_exeext=$EXEEXT
2672169695Skanecho "$as_me:$LINENO: checking for suffix of object files" >&5
2673169695Skanecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674169695Skanif test "${ac_cv_objext+set}" = set; then
2675169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2676169695Skanelse
2677169695Skan  cat >conftest.$ac_ext <<_ACEOF
2678169695Skan/* confdefs.h.  */
2679169695Skan_ACEOF
2680169695Skancat confdefs.h >>conftest.$ac_ext
2681169695Skancat >>conftest.$ac_ext <<_ACEOF
2682169695Skan/* end confdefs.h.  */
2683169695Skan
2684169695Skanint
2685169695Skanmain ()
2686169695Skan{
2687169695Skan
2688169695Skan  ;
2689169695Skan  return 0;
2690169695Skan}
2691169695Skan_ACEOF
2692169695Skanrm -f conftest.o conftest.obj
2693169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694169695Skan  (eval $ac_compile) 2>&5
2695169695Skan  ac_status=$?
2696169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697169695Skan  (exit $ac_status); }; then
2698169695Skan  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699169695Skan  case $ac_file in
2700169695Skan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701169695Skan    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702169695Skan       break;;
2703169695Skan  esac
2704169695Skandone
2705169695Skanelse
2706169695Skan  echo "$as_me: failed program was:" >&5
2707169695Skansed 's/^/| /' conftest.$ac_ext >&5
2708169695Skan
2709169695Skan{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710169695SkanSee \`config.log' for more details." >&5
2711169695Skanecho "$as_me: error: cannot compute suffix of object files: cannot compile
2712169695SkanSee \`config.log' for more details." >&2;}
2713169695Skan   { (exit 1); exit 1; }; }
2714169695Skanfi
2715169695Skan
2716169695Skanrm -f conftest.$ac_cv_objext conftest.$ac_ext
2717169695Skanfi
2718169695Skanecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719169695Skanecho "${ECHO_T}$ac_cv_objext" >&6
2720169695SkanOBJEXT=$ac_cv_objext
2721169695Skanac_objext=$OBJEXT
2722169695Skanecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723169695Skanecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724169695Skanif test "${ac_cv_c_compiler_gnu+set}" = set; then
2725169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2726169695Skanelse
2727169695Skan  cat >conftest.$ac_ext <<_ACEOF
2728169695Skan/* confdefs.h.  */
2729169695Skan_ACEOF
2730169695Skancat confdefs.h >>conftest.$ac_ext
2731169695Skancat >>conftest.$ac_ext <<_ACEOF
2732169695Skan/* end confdefs.h.  */
2733169695Skan
2734169695Skanint
2735169695Skanmain ()
2736169695Skan{
2737169695Skan#ifndef __GNUC__
2738169695Skan       choke me
2739169695Skan#endif
2740169695Skan
2741169695Skan  ;
2742169695Skan  return 0;
2743169695Skan}
2744169695Skan_ACEOF
2745169695Skanrm -f conftest.$ac_objext
2746169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747169695Skan  (eval $ac_compile) 2>conftest.er1
2748169695Skan  ac_status=$?
2749169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
2750169695Skan  rm -f conftest.er1
2751169695Skan  cat conftest.err >&5
2752169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753169695Skan  (exit $ac_status); } &&
2754169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
2755169695Skan			 || test ! -s conftest.err'
2756169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757169695Skan  (eval $ac_try) 2>&5
2758169695Skan  ac_status=$?
2759169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760169695Skan  (exit $ac_status); }; } &&
2761169695Skan	 { ac_try='test -s conftest.$ac_objext'
2762169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763169695Skan  (eval $ac_try) 2>&5
2764169695Skan  ac_status=$?
2765169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766169695Skan  (exit $ac_status); }; }; then
2767169695Skan  ac_compiler_gnu=yes
2768169695Skanelse
2769169695Skan  echo "$as_me: failed program was:" >&5
2770169695Skansed 's/^/| /' conftest.$ac_ext >&5
2771169695Skan
2772169695Skanac_compiler_gnu=no
2773169695Skanfi
2774169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775169695Skanac_cv_c_compiler_gnu=$ac_compiler_gnu
2776169695Skan
2777169695Skanfi
2778169695Skanecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779169695Skanecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2780169695SkanGCC=`test $ac_compiler_gnu = yes && echo yes`
2781169695Skanac_test_CFLAGS=${CFLAGS+set}
2782169695Skanac_save_CFLAGS=$CFLAGS
2783169695SkanCFLAGS="-g"
2784169695Skanecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785169695Skanecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2786169695Skanif test "${ac_cv_prog_cc_g+set}" = set; then
2787169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2788169695Skanelse
2789169695Skan  cat >conftest.$ac_ext <<_ACEOF
2790169695Skan/* confdefs.h.  */
2791169695Skan_ACEOF
2792169695Skancat confdefs.h >>conftest.$ac_ext
2793169695Skancat >>conftest.$ac_ext <<_ACEOF
2794169695Skan/* end confdefs.h.  */
2795169695Skan
2796169695Skanint
2797169695Skanmain ()
2798169695Skan{
2799169695Skan
2800169695Skan  ;
2801169695Skan  return 0;
2802169695Skan}
2803169695Skan_ACEOF
2804169695Skanrm -f conftest.$ac_objext
2805169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806169695Skan  (eval $ac_compile) 2>conftest.er1
2807169695Skan  ac_status=$?
2808169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
2809169695Skan  rm -f conftest.er1
2810169695Skan  cat conftest.err >&5
2811169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812169695Skan  (exit $ac_status); } &&
2813169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
2814169695Skan			 || test ! -s conftest.err'
2815169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816169695Skan  (eval $ac_try) 2>&5
2817169695Skan  ac_status=$?
2818169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819169695Skan  (exit $ac_status); }; } &&
2820169695Skan	 { ac_try='test -s conftest.$ac_objext'
2821169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822169695Skan  (eval $ac_try) 2>&5
2823169695Skan  ac_status=$?
2824169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825169695Skan  (exit $ac_status); }; }; then
2826169695Skan  ac_cv_prog_cc_g=yes
2827169695Skanelse
2828169695Skan  echo "$as_me: failed program was:" >&5
2829169695Skansed 's/^/| /' conftest.$ac_ext >&5
2830169695Skan
2831169695Skanac_cv_prog_cc_g=no
2832169695Skanfi
2833169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834169695Skanfi
2835169695Skanecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2836169695Skanecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2837169695Skanif test "$ac_test_CFLAGS" = set; then
2838169695Skan  CFLAGS=$ac_save_CFLAGS
2839169695Skanelif test $ac_cv_prog_cc_g = yes; then
2840169695Skan  if test "$GCC" = yes; then
2841169695Skan    CFLAGS="-g -O2"
2842169695Skan  else
2843169695Skan    CFLAGS="-g"
2844169695Skan  fi
2845169695Skanelse
2846169695Skan  if test "$GCC" = yes; then
2847169695Skan    CFLAGS="-O2"
2848169695Skan  else
2849169695Skan    CFLAGS=
2850169695Skan  fi
2851169695Skanfi
2852169695Skanecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2853169695Skanecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2854169695Skanif test "${ac_cv_prog_cc_stdc+set}" = set; then
2855169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
2856169695Skanelse
2857169695Skan  ac_cv_prog_cc_stdc=no
2858169695Skanac_save_CC=$CC
2859169695Skancat >conftest.$ac_ext <<_ACEOF
2860169695Skan/* confdefs.h.  */
2861169695Skan_ACEOF
2862169695Skancat confdefs.h >>conftest.$ac_ext
2863169695Skancat >>conftest.$ac_ext <<_ACEOF
2864169695Skan/* end confdefs.h.  */
2865169695Skan#include <stdarg.h>
2866169695Skan#include <stdio.h>
2867169695Skan#include <sys/types.h>
2868169695Skan#include <sys/stat.h>
2869169695Skan/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2870169695Skanstruct buf { int x; };
2871169695SkanFILE * (*rcsopen) (struct buf *, struct stat *, int);
2872169695Skanstatic char *e (p, i)
2873169695Skan     char **p;
2874169695Skan     int i;
2875169695Skan{
2876169695Skan  return p[i];
2877169695Skan}
2878169695Skanstatic char *f (char * (*g) (char **, int), char **p, ...)
2879169695Skan{
2880169695Skan  char *s;
2881169695Skan  va_list v;
2882169695Skan  va_start (v,p);
2883169695Skan  s = g (p, va_arg (v,int));
2884169695Skan  va_end (v);
2885169695Skan  return s;
2886169695Skan}
2887169695Skan
2888169695Skan/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2889169695Skan   function prototypes and stuff, but not '\xHH' hex character constants.
2890169695Skan   These don't provoke an error unfortunately, instead are silently treated
2891169695Skan   as 'x'.  The following induces an error, until -std1 is added to get
2892169695Skan   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2893169695Skan   array size at least.  It's necessary to write '\x00'==0 to get something
2894169695Skan   that's true only with -std1.  */
2895169695Skanint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2896169695Skan
2897169695Skanint test (int i, double x);
2898169695Skanstruct s1 {int (*f) (int a);};
2899169695Skanstruct s2 {int (*f) (double a);};
2900169695Skanint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901169695Skanint argc;
2902169695Skanchar **argv;
2903169695Skanint
2904169695Skanmain ()
2905169695Skan{
2906169695Skanreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2907169695Skan  ;
2908169695Skan  return 0;
2909169695Skan}
2910169695Skan_ACEOF
2911169695Skan# Don't try gcc -ansi; that turns off useful extensions and
2912169695Skan# breaks some systems' header files.
2913169695Skan# AIX			-qlanglvl=ansi
2914169695Skan# Ultrix and OSF/1	-std1
2915169695Skan# HP-UX 10.20 and later	-Ae
2916169695Skan# HP-UX older versions	-Aa -D_HPUX_SOURCE
2917169695Skan# SVR4			-Xc -D__EXTENSIONS__
2918169695Skanfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919169695Skando
2920169695Skan  CC="$ac_save_CC $ac_arg"
2921169695Skan  rm -f conftest.$ac_objext
2922169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923169695Skan  (eval $ac_compile) 2>conftest.er1
2924169695Skan  ac_status=$?
2925169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
2926169695Skan  rm -f conftest.er1
2927169695Skan  cat conftest.err >&5
2928169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929169695Skan  (exit $ac_status); } &&
2930169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
2931169695Skan			 || test ! -s conftest.err'
2932169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933169695Skan  (eval $ac_try) 2>&5
2934169695Skan  ac_status=$?
2935169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936169695Skan  (exit $ac_status); }; } &&
2937169695Skan	 { ac_try='test -s conftest.$ac_objext'
2938169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939169695Skan  (eval $ac_try) 2>&5
2940169695Skan  ac_status=$?
2941169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942169695Skan  (exit $ac_status); }; }; then
2943169695Skan  ac_cv_prog_cc_stdc=$ac_arg
2944169695Skanbreak
2945169695Skanelse
2946169695Skan  echo "$as_me: failed program was:" >&5
2947169695Skansed 's/^/| /' conftest.$ac_ext >&5
2948169695Skan
2949169695Skanfi
2950169695Skanrm -f conftest.err conftest.$ac_objext
2951169695Skandone
2952169695Skanrm -f conftest.$ac_ext conftest.$ac_objext
2953169695SkanCC=$ac_save_CC
2954169695Skan
2955169695Skanfi
2956169695Skan
2957169695Skancase "x$ac_cv_prog_cc_stdc" in
2958169695Skan  x|xno)
2959169695Skan    echo "$as_me:$LINENO: result: none needed" >&5
2960169695Skanecho "${ECHO_T}none needed" >&6 ;;
2961169695Skan  *)
2962169695Skan    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2963169695Skanecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2964169695Skan    CC="$CC $ac_cv_prog_cc_stdc" ;;
2965169695Skanesac
2966169695Skan
2967169695Skan# Some people use a C++ compiler to compile C.  Since we use `exit',
2968169695Skan# in C++ we need to declare it.  In case someone uses the same compiler
2969169695Skan# for both compiling C and C++ we need to have the C++ compiler decide
2970169695Skan# the declaration of exit, since it's the most demanding environment.
2971169695Skancat >conftest.$ac_ext <<_ACEOF
2972169695Skan#ifndef __cplusplus
2973169695Skan  choke me
2974169695Skan#endif
2975169695Skan_ACEOF
2976169695Skanrm -f conftest.$ac_objext
2977169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978169695Skan  (eval $ac_compile) 2>conftest.er1
2979169695Skan  ac_status=$?
2980169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
2981169695Skan  rm -f conftest.er1
2982169695Skan  cat conftest.err >&5
2983169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984169695Skan  (exit $ac_status); } &&
2985169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
2986169695Skan			 || test ! -s conftest.err'
2987169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988169695Skan  (eval $ac_try) 2>&5
2989169695Skan  ac_status=$?
2990169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991169695Skan  (exit $ac_status); }; } &&
2992169695Skan	 { ac_try='test -s conftest.$ac_objext'
2993169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994169695Skan  (eval $ac_try) 2>&5
2995169695Skan  ac_status=$?
2996169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997169695Skan  (exit $ac_status); }; }; then
2998169695Skan  for ac_declaration in \
2999169695Skan   '' \
3000169695Skan   'extern "C" void std::exit (int) throw (); using std::exit;' \
3001169695Skan   'extern "C" void std::exit (int); using std::exit;' \
3002169695Skan   'extern "C" void exit (int) throw ();' \
3003169695Skan   'extern "C" void exit (int);' \
3004169695Skan   'void exit (int);'
3005169695Skando
3006169695Skan  cat >conftest.$ac_ext <<_ACEOF
3007169695Skan/* confdefs.h.  */
3008169695Skan_ACEOF
3009169695Skancat confdefs.h >>conftest.$ac_ext
3010169695Skancat >>conftest.$ac_ext <<_ACEOF
3011169695Skan/* end confdefs.h.  */
3012169695Skan$ac_declaration
3013169695Skan#include <stdlib.h>
3014169695Skanint
3015169695Skanmain ()
3016169695Skan{
3017169695Skanexit (42);
3018169695Skan  ;
3019169695Skan  return 0;
3020169695Skan}
3021169695Skan_ACEOF
3022169695Skanrm -f conftest.$ac_objext
3023169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024169695Skan  (eval $ac_compile) 2>conftest.er1
3025169695Skan  ac_status=$?
3026169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
3027169695Skan  rm -f conftest.er1
3028169695Skan  cat conftest.err >&5
3029169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030169695Skan  (exit $ac_status); } &&
3031169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
3032169695Skan			 || test ! -s conftest.err'
3033169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034169695Skan  (eval $ac_try) 2>&5
3035169695Skan  ac_status=$?
3036169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037169695Skan  (exit $ac_status); }; } &&
3038169695Skan	 { ac_try='test -s conftest.$ac_objext'
3039169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040169695Skan  (eval $ac_try) 2>&5
3041169695Skan  ac_status=$?
3042169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043169695Skan  (exit $ac_status); }; }; then
3044169695Skan  :
3045169695Skanelse
3046169695Skan  echo "$as_me: failed program was:" >&5
3047169695Skansed 's/^/| /' conftest.$ac_ext >&5
3048169695Skan
3049169695Skancontinue
3050169695Skanfi
3051169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052169695Skan  cat >conftest.$ac_ext <<_ACEOF
3053169695Skan/* confdefs.h.  */
3054169695Skan_ACEOF
3055169695Skancat confdefs.h >>conftest.$ac_ext
3056169695Skancat >>conftest.$ac_ext <<_ACEOF
3057169695Skan/* end confdefs.h.  */
3058169695Skan$ac_declaration
3059169695Skanint
3060169695Skanmain ()
3061169695Skan{
3062169695Skanexit (42);
3063169695Skan  ;
3064169695Skan  return 0;
3065169695Skan}
3066169695Skan_ACEOF
3067169695Skanrm -f conftest.$ac_objext
3068169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069169695Skan  (eval $ac_compile) 2>conftest.er1
3070169695Skan  ac_status=$?
3071169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
3072169695Skan  rm -f conftest.er1
3073169695Skan  cat conftest.err >&5
3074169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075169695Skan  (exit $ac_status); } &&
3076169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
3077169695Skan			 || test ! -s conftest.err'
3078169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079169695Skan  (eval $ac_try) 2>&5
3080169695Skan  ac_status=$?
3081169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082169695Skan  (exit $ac_status); }; } &&
3083169695Skan	 { ac_try='test -s conftest.$ac_objext'
3084169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085169695Skan  (eval $ac_try) 2>&5
3086169695Skan  ac_status=$?
3087169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088169695Skan  (exit $ac_status); }; }; then
3089169695Skan  break
3090169695Skanelse
3091169695Skan  echo "$as_me: failed program was:" >&5
3092169695Skansed 's/^/| /' conftest.$ac_ext >&5
3093169695Skan
3094169695Skanfi
3095169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096169695Skandone
3097169695Skanrm -f conftest*
3098169695Skanif test -n "$ac_declaration"; then
3099169695Skan  echo '#ifdef __cplusplus' >>confdefs.h
3100169695Skan  echo $ac_declaration      >>confdefs.h
3101169695Skan  echo '#endif'             >>confdefs.h
3102169695Skanfi
3103169695Skan
3104169695Skanelse
3105169695Skan  echo "$as_me: failed program was:" >&5
3106169695Skansed 's/^/| /' conftest.$ac_ext >&5
3107169695Skan
3108169695Skanfi
3109169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110169695Skanac_ext=c
3111169695Skanac_cpp='$CPP $CPPFLAGS'
3112169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
3115169695SkanDEPDIR="${am__leading_dot}deps"
3116169695Skan
3117169695Skan          ac_config_commands="$ac_config_commands depfiles"
3118169695Skan
3119169695Skan
3120169695Skanam_make=${MAKE-make}
3121169695Skancat > confinc << 'END'
3122169695Skanam__doit:
3123169695Skan	@echo done
3124169695Skan.PHONY: am__doit
3125169695SkanEND
3126169695Skan# If we don't find an include directive, just comment out the code.
3127169695Skanecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3128169695Skanecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3129169695Skanam__include="#"
3130169695Skanam__quote=
3131169695Skan_am_result=none
3132169695Skan# First try GNU make style include.
3133169695Skanecho "include confinc" > confmf
3134169695Skan# We grep out `Entering directory' and `Leaving directory'
3135169695Skan# messages which can occur if `w' ends up in MAKEFLAGS.
3136169695Skan# In particular we don't look at `^make:' because GNU make might
3137169695Skan# be invoked under some other name (usually "gmake"), in which
3138169695Skan# case it prints its new name instead of `make'.
3139169695Skanif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3140169695Skan   am__include=include
3141169695Skan   am__quote=
3142169695Skan   _am_result=GNU
3143169695Skanfi
3144169695Skan# Now try BSD make style include.
3145169695Skanif test "$am__include" = "#"; then
3146169695Skan   echo '.include "confinc"' > confmf
3147169695Skan   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3148169695Skan      am__include=.include
3149169695Skan      am__quote="\""
3150169695Skan      _am_result=BSD
3151169695Skan   fi
3152169695Skanfi
3153169695Skan
3154169695Skan
3155169695Skanecho "$as_me:$LINENO: result: $_am_result" >&5
3156169695Skanecho "${ECHO_T}$_am_result" >&6
3157169695Skanrm -f confinc confmf
3158169695Skan
3159169695Skan# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3160169695Skanif test "${enable_dependency_tracking+set}" = set; then
3161169695Skan  enableval="$enable_dependency_tracking"
3162169695Skan
3163169695Skanfi;
3164169695Skanif test "x$enable_dependency_tracking" != xno; then
3165169695Skan  am_depcomp="$ac_aux_dir/depcomp"
3166169695Skan  AMDEPBACKSLASH='\'
3167169695Skanfi
3168169695Skan
3169169695Skan
3170169695Skanif test "x$enable_dependency_tracking" != xno; then
3171169695Skan  AMDEP_TRUE=
3172169695Skan  AMDEP_FALSE='#'
3173169695Skanelse
3174169695Skan  AMDEP_TRUE='#'
3175169695Skan  AMDEP_FALSE=
3176169695Skanfi
3177169695Skan
3178169695Skan
3179169695Skan
3180169695Skan
3181169695Skandepcc="$CC"   am_compiler_list=
3182169695Skan
3183169695Skanecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
3184169695Skanecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3185169695Skanif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3186169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3187169695Skanelse
3188169695Skan  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3189169695Skan  # We make a subdir and do the tests there.  Otherwise we can end up
3190169695Skan  # making bogus files that we don't know about and never remove.  For
3191169695Skan  # instance it was reported that on HP-UX the gcc test will end up
3192169695Skan  # making a dummy file named `D' -- because `-MD' means `put the output
3193169695Skan  # in D'.
3194169695Skan  mkdir conftest.dir
3195169695Skan  # Copy depcomp to subdir because otherwise we won't find it if we're
3196169695Skan  # using a relative directory.
3197169695Skan  cp "$am_depcomp" conftest.dir
3198169695Skan  cd conftest.dir
3199169695Skan  # We will build objects and dependencies in a subdirectory because
3200169695Skan  # it helps to detect inapplicable dependency modes.  For instance
3201169695Skan  # both Tru64's cc and ICC support -MD to output dependencies as a
3202169695Skan  # side effect of compilation, but ICC will put the dependencies in
3203169695Skan  # the current directory while Tru64 will put them in the object
3204169695Skan  # directory.
3205169695Skan  mkdir sub
3206169695Skan
3207169695Skan  am_cv_CC_dependencies_compiler_type=none
3208169695Skan  if test "$am_compiler_list" = ""; then
3209169695Skan     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210169695Skan  fi
3211169695Skan  for depmode in $am_compiler_list; do
3212169695Skan    # Setup a source with many dependencies, because some compilers
3213169695Skan    # like to wrap large dependency lists on column 80 (with \), and
3214169695Skan    # we should not choose a depcomp mode which is confused by this.
3215169695Skan    #
3216169695Skan    # We need to recreate these files for each test, as the compiler may
3217169695Skan    # overwrite some of them when testing with obscure command lines.
3218169695Skan    # This happens at least with the AIX C compiler.
3219169695Skan    : > sub/conftest.c
3220169695Skan    for i in 1 2 3 4 5 6; do
3221169695Skan      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3222169695Skan      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3223169695Skan      # Solaris 8's {/usr,}/bin/sh.
3224169695Skan      touch sub/conftst$i.h
3225169695Skan    done
3226169695Skan    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3227169695Skan
3228169695Skan    case $depmode in
3229169695Skan    nosideeffect)
3230169695Skan      # after this tag, mechanisms are not by side-effect, so they'll
3231169695Skan      # only be used when explicitly requested
3232169695Skan      if test "x$enable_dependency_tracking" = xyes; then
3233169695Skan	continue
3234169695Skan      else
3235169695Skan	break
3236169695Skan      fi
3237169695Skan      ;;
3238169695Skan    none) break ;;
3239169695Skan    esac
3240169695Skan    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3241169695Skan    # mode.  It turns out that the SunPro C++ compiler does not properly
3242169695Skan    # handle `-M -o', and we need to detect this.
3243169695Skan    if depmode=$depmode \
3244169695Skan       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3245169695Skan       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3246169695Skan       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3247169695Skan         >/dev/null 2>conftest.err &&
3248169695Skan       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3249169695Skan       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3250169695Skan       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3251169695Skan      # icc doesn't choke on unknown options, it will just issue warnings
3252169695Skan      # or remarks (even with -Werror).  So we grep stderr for any message
3253169695Skan      # that says an option was ignored or not supported.
3254169695Skan      # When given -MP, icc 7.0 and 7.1 complain thusly:
3255169695Skan      #   icc: Command line warning: ignoring option '-M'; no argument required
3256169695Skan      # The diagnosis changed in icc 8.0:
3257169695Skan      #   icc: Command line remark: option '-MP' not supported
3258169695Skan      if (grep 'ignoring option' conftest.err ||
3259169695Skan          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3260169695Skan        am_cv_CC_dependencies_compiler_type=$depmode
3261169695Skan        break
3262169695Skan      fi
3263169695Skan    fi
3264169695Skan  done
3265169695Skan
3266169695Skan  cd ..
3267169695Skan  rm -rf conftest.dir
3268169695Skanelse
3269169695Skan  am_cv_CC_dependencies_compiler_type=none
3270169695Skanfi
3271169695Skan
3272169695Skanfi
3273169695Skanecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3274169695Skanecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3275169695SkanCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3276169695Skan
3277169695Skan
3278169695Skan
3279169695Skanif
3280169695Skan  test "x$enable_dependency_tracking" != xno \
3281169695Skan  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3282169695Skan  am__fastdepCC_TRUE=
3283169695Skan  am__fastdepCC_FALSE='#'
3284169695Skanelse
3285169695Skan  am__fastdepCC_TRUE='#'
3286169695Skan  am__fastdepCC_FALSE=
3287169695Skanfi
3288169695Skan
3289169695Skan
3290169695Skan
3291169695Skan
3292169695Skan
3293169695Skan
3294169695Skan# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3295169695Skan# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3296169695Skan# in both places for now and restore CFLAGS at the end of config.
3297169695Skansave_CFLAGS="$CFLAGS"
3298169695Skan
3299169695Skan# Add -Wall -Werror if we are using GCC.
3300169695Skanif test "x$GCC" = "xyes"; then
3301169695Skan  XCFLAGS="$XCFLAGS -Wall -Werror"
3302169695Skanfi
3303169695Skan
3304169695Skan# Find other programs we need.
3305169695Skanif test -n "$ac_tool_prefix"; then
3306169695Skan  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3307169695Skanset dummy ${ac_tool_prefix}ar; ac_word=$2
3308169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3309169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310169695Skanif test "${ac_cv_prog_AR+set}" = set; then
3311169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3312169695Skanelse
3313169695Skan  if test -n "$AR"; then
3314169695Skan  ac_cv_prog_AR="$AR" # Let the user override the test.
3315169695Skanelse
3316169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317169695Skanfor as_dir in $PATH
3318169695Skando
3319169695Skan  IFS=$as_save_IFS
3320169695Skan  test -z "$as_dir" && as_dir=.
3321169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3322169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323169695Skan    ac_cv_prog_AR="${ac_tool_prefix}ar"
3324169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325169695Skan    break 2
3326169695Skan  fi
3327169695Skandone
3328169695Skandone
3329169695Skan
3330169695Skanfi
3331169695Skanfi
3332169695SkanAR=$ac_cv_prog_AR
3333169695Skanif test -n "$AR"; then
3334169695Skan  echo "$as_me:$LINENO: result: $AR" >&5
3335169695Skanecho "${ECHO_T}$AR" >&6
3336169695Skanelse
3337169695Skan  echo "$as_me:$LINENO: result: no" >&5
3338169695Skanecho "${ECHO_T}no" >&6
3339169695Skanfi
3340169695Skan
3341169695Skanfi
3342169695Skanif test -z "$ac_cv_prog_AR"; then
3343169695Skan  ac_ct_AR=$AR
3344169695Skan  # Extract the first word of "ar", so it can be a program name with args.
3345169695Skanset dummy ar; ac_word=$2
3346169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3347169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348169695Skanif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3349169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3350169695Skanelse
3351169695Skan  if test -n "$ac_ct_AR"; then
3352169695Skan  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3353169695Skanelse
3354169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355169695Skanfor as_dir in $PATH
3356169695Skando
3357169695Skan  IFS=$as_save_IFS
3358169695Skan  test -z "$as_dir" && as_dir=.
3359169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3360169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361169695Skan    ac_cv_prog_ac_ct_AR="ar"
3362169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363169695Skan    break 2
3364169695Skan  fi
3365169695Skandone
3366169695Skandone
3367169695Skan
3368169695Skanfi
3369169695Skanfi
3370169695Skanac_ct_AR=$ac_cv_prog_ac_ct_AR
3371169695Skanif test -n "$ac_ct_AR"; then
3372169695Skan  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3373169695Skanecho "${ECHO_T}$ac_ct_AR" >&6
3374169695Skanelse
3375169695Skan  echo "$as_me:$LINENO: result: no" >&5
3376169695Skanecho "${ECHO_T}no" >&6
3377169695Skanfi
3378169695Skan
3379169695Skan  AR=$ac_ct_AR
3380169695Skanelse
3381169695Skan  AR="$ac_cv_prog_AR"
3382169695Skanfi
3383169695Skan
3384169695Skanif test -n "$ac_tool_prefix"; then
3385169695Skan  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3386169695Skanset dummy ${ac_tool_prefix}ranlib; ac_word=$2
3387169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3388169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389169695Skanif test "${ac_cv_prog_RANLIB+set}" = set; then
3390169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3391169695Skanelse
3392169695Skan  if test -n "$RANLIB"; then
3393169695Skan  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3394169695Skanelse
3395169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396169695Skanfor as_dir in $PATH
3397169695Skando
3398169695Skan  IFS=$as_save_IFS
3399169695Skan  test -z "$as_dir" && as_dir=.
3400169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3401169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402169695Skan    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3403169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404169695Skan    break 2
3405169695Skan  fi
3406169695Skandone
3407169695Skandone
3408169695Skan
3409169695Skanfi
3410169695Skanfi
3411169695SkanRANLIB=$ac_cv_prog_RANLIB
3412169695Skanif test -n "$RANLIB"; then
3413169695Skan  echo "$as_me:$LINENO: result: $RANLIB" >&5
3414169695Skanecho "${ECHO_T}$RANLIB" >&6
3415169695Skanelse
3416169695Skan  echo "$as_me:$LINENO: result: no" >&5
3417169695Skanecho "${ECHO_T}no" >&6
3418169695Skanfi
3419169695Skan
3420169695Skanfi
3421169695Skanif test -z "$ac_cv_prog_RANLIB"; then
3422169695Skan  ac_ct_RANLIB=$RANLIB
3423169695Skan  # Extract the first word of "ranlib", so it can be a program name with args.
3424169695Skanset dummy ranlib; ac_word=$2
3425169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3426169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427169695Skanif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3428169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3429169695Skanelse
3430169695Skan  if test -n "$ac_ct_RANLIB"; then
3431169695Skan  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3432169695Skanelse
3433169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434169695Skanfor as_dir in $PATH
3435169695Skando
3436169695Skan  IFS=$as_save_IFS
3437169695Skan  test -z "$as_dir" && as_dir=.
3438169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3439169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440169695Skan    ac_cv_prog_ac_ct_RANLIB="ranlib"
3441169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442169695Skan    break 2
3443169695Skan  fi
3444169695Skandone
3445169695Skandone
3446169695Skan
3447169695Skan  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3448169695Skanfi
3449169695Skanfi
3450169695Skanac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3451169695Skanif test -n "$ac_ct_RANLIB"; then
3452169695Skan  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3453169695Skanecho "${ECHO_T}$ac_ct_RANLIB" >&6
3454169695Skanelse
3455169695Skan  echo "$as_me:$LINENO: result: no" >&5
3456169695Skanecho "${ECHO_T}no" >&6
3457169695Skanfi
3458169695Skan
3459169695Skan  RANLIB=$ac_ct_RANLIB
3460169695Skanelse
3461169695Skan  RANLIB="$ac_cv_prog_RANLIB"
3462169695Skanfi
3463169695Skan
3464169695Skan# Extract the first word of "perl", so it can be a program name with args.
3465169695Skanset dummy perl; ac_word=$2
3466169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3467169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468169695Skanif test "${ac_cv_path_PERL+set}" = set; then
3469169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3470169695Skanelse
3471169695Skan  case $PERL in
3472169695Skan  [\\/]* | ?:[\\/]*)
3473169695Skan  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3474169695Skan  ;;
3475169695Skan  *)
3476169695Skan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477169695Skanfor as_dir in $PATH
3478169695Skando
3479169695Skan  IFS=$as_save_IFS
3480169695Skan  test -z "$as_dir" && as_dir=.
3481169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3482169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483169695Skan    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3484169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485169695Skan    break 2
3486169695Skan  fi
3487169695Skandone
3488169695Skandone
3489169695Skan
3490169695Skan  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3491169695Skan  ;;
3492169695Skanesac
3493169695Skanfi
3494169695SkanPERL=$ac_cv_path_PERL
3495169695Skan
3496169695Skanif test -n "$PERL"; then
3497169695Skan  echo "$as_me:$LINENO: result: $PERL" >&5
3498169695Skanecho "${ECHO_T}$PERL" >&6
3499169695Skanelse
3500169695Skan  echo "$as_me:$LINENO: result: no" >&5
3501169695Skanecho "${ECHO_T}no" >&6
3502169695Skanfi
3503169695Skan
3504169695Skanecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3505169695Skanecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3506169695Skanset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3507169695Skanif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3508169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3509169695Skanelse
3510169695Skan  cat >conftest.make <<\_ACEOF
3511169695Skanall:
3512169695Skan	@echo 'ac_maketemp="$(MAKE)"'
3513169695Skan_ACEOF
3514169695Skan# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3515169695Skaneval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3516169695Skanif test -n "$ac_maketemp"; then
3517169695Skan  eval ac_cv_prog_make_${ac_make}_set=yes
3518169695Skanelse
3519169695Skan  eval ac_cv_prog_make_${ac_make}_set=no
3520169695Skanfi
3521169695Skanrm -f conftest.make
3522169695Skanfi
3523169695Skanif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3524169695Skan  echo "$as_me:$LINENO: result: yes" >&5
3525169695Skanecho "${ECHO_T}yes" >&6
3526169695Skan  SET_MAKE=
3527169695Skanelse
3528169695Skan  echo "$as_me:$LINENO: result: no" >&5
3529169695Skanecho "${ECHO_T}no" >&6
3530169695Skan  SET_MAKE="MAKE=${MAKE-make}"
3531169695Skanfi
3532169695Skan
3533169695Skan# Find a good install program.  We prefer a C program (faster),
3534169695Skan# so one script is as good as another.  But avoid the broken or
3535169695Skan# incompatible versions:
3536169695Skan# SysV /etc/install, /usr/sbin/install
3537169695Skan# SunOS /usr/etc/install
3538169695Skan# IRIX /sbin/install
3539169695Skan# AIX /bin/install
3540169695Skan# AmigaOS /C/install, which installs bootblocks on floppy discs
3541169695Skan# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3542169695Skan# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3543169695Skan# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3544169695Skan# OS/2's system install, which has a completely different semantic
3545169695Skan# ./install, which can be erroneously created by make from ./install.sh.
3546169695Skanecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3547169695Skanecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3548169695Skanif test -z "$INSTALL"; then
3549169695Skanif test "${ac_cv_path_install+set}" = set; then
3550169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3551169695Skanelse
3552169695Skan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553169695Skanfor as_dir in $PATH
3554169695Skando
3555169695Skan  IFS=$as_save_IFS
3556169695Skan  test -z "$as_dir" && as_dir=.
3557169695Skan  # Account for people who put trailing slashes in PATH elements.
3558169695Skancase $as_dir/ in
3559169695Skan  ./ | .// | /cC/* | \
3560169695Skan  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3561169695Skan  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3562169695Skan  /usr/ucb/* ) ;;
3563169695Skan  *)
3564169695Skan    # OSF1 and SCO ODT 3.0 have their own names for install.
3565169695Skan    # Don't use installbsd from OSF since it installs stuff as root
3566169695Skan    # by default.
3567169695Skan    for ac_prog in ginstall scoinst install; do
3568169695Skan      for ac_exec_ext in '' $ac_executable_extensions; do
3569169695Skan	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3570169695Skan	  if test $ac_prog = install &&
3571169695Skan	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3572169695Skan	    # AIX install.  It has an incompatible calling convention.
3573169695Skan	    :
3574169695Skan	  elif test $ac_prog = install &&
3575169695Skan	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576169695Skan	    # program-specific install script used by HP pwplus--don't use.
3577169695Skan	    :
3578169695Skan	  else
3579169695Skan	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3580169695Skan	    break 3
3581169695Skan	  fi
3582169695Skan	fi
3583169695Skan      done
3584169695Skan    done
3585169695Skan    ;;
3586169695Skanesac
3587169695Skandone
3588169695Skan
3589169695Skan
3590169695Skanfi
3591169695Skan  if test "${ac_cv_path_install+set}" = set; then
3592169695Skan    INSTALL=$ac_cv_path_install
3593169695Skan  else
3594169695Skan    # As a last resort, use the slow shell script.  We don't cache a
3595169695Skan    # path for INSTALL within a source directory, because that will
3596169695Skan    # break other packages using the cache if that directory is
3597169695Skan    # removed, or if the path is relative.
3598169695Skan    INSTALL=$ac_install_sh
3599169695Skan  fi
3600169695Skanfi
3601169695Skanecho "$as_me:$LINENO: result: $INSTALL" >&5
3602169695Skanecho "${ECHO_T}$INSTALL" >&6
3603169695Skan
3604169695Skan# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3605169695Skan# It thinks the first close brace ends the variable substitution.
3606169695Skantest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607169695Skan
3608169695Skantest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609169695Skan
3610169695Skantest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3611169695Skan
3612169695Skan
3613169695Skan# See if makeinfo has been installed and is modern enough
3614169695Skan# that we can use it.
3615169695Skan
3616169695Skan  # Extract the first word of "makeinfo", so it can be a program name with args.
3617169695Skanset dummy makeinfo; ac_word=$2
3618169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
3619169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620169695Skanif test "${ac_cv_prog_MAKEINFO+set}" = set; then
3621169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3622169695Skanelse
3623169695Skan  if test -n "$MAKEINFO"; then
3624169695Skan  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3625169695Skanelse
3626169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627169695Skanfor as_dir in $PATH
3628169695Skando
3629169695Skan  IFS=$as_save_IFS
3630169695Skan  test -z "$as_dir" && as_dir=.
3631169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
3632169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633169695Skan    ac_cv_prog_MAKEINFO="makeinfo"
3634169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635169695Skan    break 2
3636169695Skan  fi
3637169695Skandone
3638169695Skandone
3639169695Skan
3640169695Skanfi
3641169695Skanfi
3642169695SkanMAKEINFO=$ac_cv_prog_MAKEINFO
3643169695Skanif test -n "$MAKEINFO"; then
3644169695Skan  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3645169695Skanecho "${ECHO_T}$MAKEINFO" >&6
3646169695Skanelse
3647169695Skan  echo "$as_me:$LINENO: result: no" >&5
3648169695Skanecho "${ECHO_T}no" >&6
3649169695Skanfi
3650169695Skan
3651169695Skan  if test -n "$MAKEINFO"; then
3652169695Skan    # Found it, now check the version.
3653169695Skan    echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3654169695Skanecho $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3655169695Skanif test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3656169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3657169695Skanelse
3658169695Skan  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3659169695Skan                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3660169695Skan
3661169695Skan                    case $ac_prog_version in
3662282152Spfg                      '')  gcc_cv_prog_makeinfo_modern=no;;
3663282152Spfg                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3664282152Spfg                      *)   gcc_cv_prog_makeinfo_modern=no;;
3665282152Spfg                    esac
3666169695Skan
3667169695Skanfi
3668169695Skanecho "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3669169695Skanecho "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3670169695Skan  else
3671169695Skan    gcc_cv_prog_makeinfo_modern=no
3672169695Skan  fi
3673282152Spfg  if test $gcc_cv_prog_makeinfo_modern = no; then
3674282152Spfg    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3675282152Spfg  fi
3676169695Skan
3677169695Skan
3678169695Skan
3679169695Skanif test $gcc_cv_prog_makeinfo_modern = "yes"; then
3680169695Skan  BUILD_INFO_TRUE=
3681169695Skan  BUILD_INFO_FALSE='#'
3682169695Skanelse
3683169695Skan  BUILD_INFO_TRUE='#'
3684169695Skan  BUILD_INFO_FALSE=
3685169695Skanfi
3686169695Skan
3687169695Skan
3688169695Skan
3689169695Skan# Configure libtool
3690282152Spfg
3691282152Spfg
3692282152Spfgmacro_version='2.1a'
3693282152Spfgmacro_revision='1.2435'
3694282152Spfg
3695282152Spfg
3696282152Spfg
3697282152Spfg
3698282152Spfg
3699282152Spfg
3700282152Spfg
3701282152Spfg
3702282152Spfg
3703282152Spfg
3704282152Spfg
3705282152Spfg
3706282152Spfgltmain="$ac_aux_dir/ltmain.sh"
3707282152Spfg
3708282152Spfg# Set options
3709282152Spfg
3710282152Spfgenable_dlopen=no
3711282152Spfg
3712282152Spfg
3713282152Spfgenable_win32_dll=no
3714282152Spfg
3715282152Spfg
3716169695Skan# Check whether --enable-shared or --disable-shared was given.
3717169695Skanif test "${enable_shared+set}" = set; then
3718169695Skan  enableval="$enable_shared"
3719169695Skan  p=${PACKAGE-default}
3720282152Spfg    case $enableval in
3721282152Spfg    yes) enable_shared=yes ;;
3722282152Spfg    no) enable_shared=no ;;
3723282152Spfg    *)
3724282152Spfg      enable_shared=no
3725282152Spfg      # Look at the argument we got.  We use all the common list separators.
3726282152Spfg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3727282152Spfg      for pkg in $enableval; do
3728282152Spfg	IFS="$lt_save_ifs"
3729282152Spfg	if test "X$pkg" = "X$p"; then
3730282152Spfg	  enable_shared=yes
3731282152Spfg	fi
3732282152Spfg      done
3733282152Spfg      IFS="$lt_save_ifs"
3734282152Spfg      ;;
3735282152Spfg    esac
3736169695Skanelse
3737169695Skan  enable_shared=yes
3738169695Skanfi;
3739282152Spfg
3740282152Spfg
3741282152Spfg
3742282152Spfg
3743282152Spfg
3744282152Spfg
3745282152Spfg
3746282152Spfg
3747169695Skan# Check whether --enable-static or --disable-static was given.
3748169695Skanif test "${enable_static+set}" = set; then
3749169695Skan  enableval="$enable_static"
3750169695Skan  p=${PACKAGE-default}
3751282152Spfg    case $enableval in
3752282152Spfg    yes) enable_static=yes ;;
3753282152Spfg    no) enable_static=no ;;
3754282152Spfg    *)
3755282152Spfg     enable_static=no
3756282152Spfg      # Look at the argument we got.  We use all the common list separators.
3757282152Spfg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758282152Spfg      for pkg in $enableval; do
3759282152Spfg	IFS="$lt_save_ifs"
3760282152Spfg	if test "X$pkg" = "X$p"; then
3761282152Spfg	  enable_static=yes
3762282152Spfg	fi
3763282152Spfg      done
3764282152Spfg      IFS="$lt_save_ifs"
3765282152Spfg      ;;
3766282152Spfg    esac
3767169695Skanelse
3768169695Skan  enable_static=yes
3769169695Skanfi;
3770282152Spfg
3771282152Spfg
3772282152Spfg
3773282152Spfg
3774282152Spfg
3775282152Spfg
3776282152Spfg
3777282152Spfg
3778282152Spfg
3779282152Spfg# Check whether --with-pic or --without-pic was given.
3780282152Spfgif test "${with_pic+set}" = set; then
3781282152Spfg  withval="$with_pic"
3782282152Spfg  pic_mode="$withval"
3783282152Spfgelse
3784282152Spfg  pic_mode=default
3785282152Spfgfi;
3786282152Spfg
3787282152Spfgtest -z "$pic_mode" && pic_mode=default
3788282152Spfg
3789282152Spfg
3790282152Spfg
3791282152Spfg
3792282152Spfg
3793282152Spfg
3794282152Spfg
3795169695Skan# Check whether --enable-fast-install or --disable-fast-install was given.
3796169695Skanif test "${enable_fast_install+set}" = set; then
3797169695Skan  enableval="$enable_fast_install"
3798169695Skan  p=${PACKAGE-default}
3799282152Spfg    case $enableval in
3800282152Spfg    yes) enable_fast_install=yes ;;
3801282152Spfg    no) enable_fast_install=no ;;
3802282152Spfg    *)
3803282152Spfg      enable_fast_install=no
3804282152Spfg      # Look at the argument we got.  We use all the common list separators.
3805282152Spfg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806282152Spfg      for pkg in $enableval; do
3807282152Spfg	IFS="$lt_save_ifs"
3808282152Spfg	if test "X$pkg" = "X$p"; then
3809282152Spfg	  enable_fast_install=yes
3810282152Spfg	fi
3811282152Spfg      done
3812282152Spfg      IFS="$lt_save_ifs"
3813282152Spfg      ;;
3814282152Spfg    esac
3815169695Skanelse
3816169695Skan  enable_fast_install=yes
3817169695Skanfi;
3818169695Skan
3819282152Spfg
3820282152Spfg
3821282152Spfg
3822282152Spfg
3823282152Spfg
3824282152Spfg
3825282152Spfg
3826282152Spfgecho "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3827282152Spfgecho $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3828282152Spfgif test "${lt_cv_path_SED+set}" = set; then
3829282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
3830282152Spfgelse
3831282152Spfg  # Loop through the user's path and test for sed and gsed.
3832282152Spfg# Then use that list of sed's as ones to test for truncation.
3833282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834282152Spfgfor as_dir in $PATH
3835282152Spfgdo
3836282152Spfg  IFS=$as_save_IFS
3837282152Spfg  test -z "$as_dir" && as_dir=.
3838282152Spfg  for lt_ac_prog in sed gsed; do
3839282152Spfg    for ac_exec_ext in '' $ac_executable_extensions; do
3840282152Spfg      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3841282152Spfg        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3842282152Spfg      fi
3843282152Spfg    done
3844282152Spfg  done
3845282152Spfgdone
3846282152SpfgIFS=$as_save_IFS
3847282152Spfglt_ac_max=0
3848282152Spfglt_ac_count=0
3849282152Spfg# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3850282152Spfg# along with /bin/sed that truncates output.
3851282152Spfgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3852282152Spfg  test ! -f $lt_ac_sed && continue
3853282152Spfg  cat /dev/null > conftest.in
3854282152Spfg  lt_ac_count=0
3855282152Spfg  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3856282152Spfg  # Check for GNU sed and select it if it is found.
3857282152Spfg  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3858282152Spfg    lt_cv_path_SED=$lt_ac_sed
3859282152Spfg    break
3860282152Spfg  fi
3861282152Spfg  while true; do
3862282152Spfg    cat conftest.in conftest.in >conftest.tmp
3863282152Spfg    mv conftest.tmp conftest.in
3864282152Spfg    cp conftest.in conftest.nl
3865282152Spfg    echo >>conftest.nl
3866282152Spfg    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3867282152Spfg    cmp -s conftest.out conftest.nl || break
3868282152Spfg    # 10000 chars as input seems more than enough
3869282152Spfg    test $lt_ac_count -gt 10 && break
3870282152Spfg    lt_ac_count=`expr $lt_ac_count + 1`
3871282152Spfg    if test $lt_ac_count -gt $lt_ac_max; then
3872282152Spfg      lt_ac_max=$lt_ac_count
3873282152Spfg      lt_cv_path_SED=$lt_ac_sed
3874282152Spfg    fi
3875282152Spfg  done
3876282152Spfgdone
3877282152Spfg
3878282152Spfgfi
3879282152Spfg
3880282152SpfgSED=$lt_cv_path_SED
3881282152Spfg
3882282152Spfgecho "$as_me:$LINENO: result: $SED" >&5
3883282152Spfgecho "${ECHO_T}$SED" >&6
3884282152Spfg
3885282152Spfgtest -z "$SED" && SED=sed
3886282152SpfgXsed="$SED -e 1s/^X//"
3887282152Spfg
3888282152Spfg
3889282152Spfg
3890282152Spfg
3891282152Spfg
3892282152Spfg
3893282152Spfg
3894282152Spfg
3895282152Spfg
3896282152Spfg
3897282152Spfg
3898282152Spfgecho "$as_me:$LINENO: checking for egrep" >&5
3899282152Spfgecho $ECHO_N "checking for egrep... $ECHO_C" >&6
3900282152Spfgif test "${ac_cv_prog_egrep+set}" = set; then
3901282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
3902282152Spfgelse
3903282152Spfg  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3904282152Spfg    then ac_cv_prog_egrep='grep -E'
3905282152Spfg    else ac_cv_prog_egrep='egrep'
3906282152Spfg    fi
3907282152Spfgfi
3908282152Spfgecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3909282152Spfgecho "${ECHO_T}$ac_cv_prog_egrep" >&6
3910282152Spfg EGREP=$ac_cv_prog_egrep
3911282152Spfg
3912282152Spfg
3913282152Spfgecho "$as_me:$LINENO: checking for fgrep" >&5
3914282152Spfgecho $ECHO_N "checking for fgrep... $ECHO_C" >&6
3915282152Spfgif test "${ac_cv_prog_fgrep+set}" = set; then
3916282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
3917282152Spfgelse
3918282152Spfg  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3919282152Spfg    then ac_cv_prog_fgrep='grep -F'
3920282152Spfg    else ac_cv_prog_fgrep='fgrep'
3921282152Spfg    fi
3922282152Spfgfi
3923282152Spfgecho "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3924282152Spfgecho "${ECHO_T}$ac_cv_prog_fgrep" >&6
3925282152Spfg FGREP=$ac_cv_prog_fgrep
3926282152Spfg
3927282152Spfg
3928282152Spfgtest -z "$GREP" && GREP=grep
3929282152Spfg
3930282152Spfg
3931282152Spfg
3932282152Spfg
3933282152Spfg
3934282152Spfg
3935282152Spfg
3936282152Spfg
3937282152Spfg
3938282152Spfg
3939282152Spfg
3940282152Spfg
3941282152Spfg
3942282152Spfg
3943282152Spfg
3944282152Spfg
3945282152Spfg
3946282152Spfg
3947282152Spfg
3948169695Skan# Check whether --with-gnu-ld or --without-gnu-ld was given.
3949169695Skanif test "${with_gnu_ld+set}" = set; then
3950169695Skan  withval="$with_gnu_ld"
3951169695Skan  test "$withval" = no || with_gnu_ld=yes
3952169695Skanelse
3953169695Skan  with_gnu_ld=no
3954169695Skanfi;
3955169695Skanac_prog=ld
3956169695Skanif test "$GCC" = yes; then
3957169695Skan  # Check if gcc -print-prog-name=ld gives a path.
3958282152Spfg  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3959282152Spfgecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3960169695Skan  case $host in
3961169695Skan  *-*-mingw*)
3962169695Skan    # gcc leaves a trailing carriage return which upsets mingw
3963169695Skan    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3964169695Skan  *)
3965169695Skan    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3966169695Skan  esac
3967169695Skan  case $ac_prog in
3968169695Skan    # Accept absolute paths.
3969282152Spfg    [\\/]* | ?:[\\/]*)
3970169695Skan      re_direlt='/[^/][^/]*/\.\./'
3971282152Spfg      # Canonicalize the pathname of ld
3972282152Spfg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3973282152Spfg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3974282152Spfg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3975169695Skan      done
3976169695Skan      test -z "$LD" && LD="$ac_prog"
3977169695Skan      ;;
3978169695Skan  "")
3979169695Skan    # If it fails, then pretend we aren't using GCC.
3980169695Skan    ac_prog=ld
3981169695Skan    ;;
3982169695Skan  *)
3983169695Skan    # If it is relative, then search for the first ld in PATH.
3984169695Skan    with_gnu_ld=unknown
3985169695Skan    ;;
3986169695Skan  esac
3987169695Skanelif test "$with_gnu_ld" = yes; then
3988169695Skan  echo "$as_me:$LINENO: checking for GNU ld" >&5
3989169695Skanecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3990169695Skanelse
3991169695Skan  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3992169695Skanecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3993169695Skanfi
3994169695Skanif test "${lt_cv_path_LD+set}" = set; then
3995169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
3996169695Skanelse
3997169695Skan  if test -z "$LD"; then
3998282152Spfg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3999169695Skan  for ac_dir in $PATH; do
4000282152Spfg    IFS="$lt_save_ifs"
4001169695Skan    test -z "$ac_dir" && ac_dir=.
4002169695Skan    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4003169695Skan      lt_cv_path_LD="$ac_dir/$ac_prog"
4004169695Skan      # Check to see if the program is GNU ld.  I'd rather use --version,
4005282152Spfg      # but apparently some variants of GNU ld only accept -v.
4006169695Skan      # Break only if it was the GNU/non-GNU ld that we prefer.
4007282152Spfg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4008282152Spfg      *GNU* | *'with BFD'*)
4009169695Skan	test "$with_gnu_ld" != no && break
4010282152Spfg	;;
4011282152Spfg      *)
4012169695Skan	test "$with_gnu_ld" != yes && break
4013282152Spfg	;;
4014282152Spfg      esac
4015169695Skan    fi
4016169695Skan  done
4017282152Spfg  IFS="$lt_save_ifs"
4018169695Skanelse
4019169695Skan  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4020169695Skanfi
4021169695Skanfi
4022169695Skan
4023169695SkanLD="$lt_cv_path_LD"
4024169695Skanif test -n "$LD"; then
4025169695Skan  echo "$as_me:$LINENO: result: $LD" >&5
4026169695Skanecho "${ECHO_T}$LD" >&6
4027169695Skanelse
4028169695Skan  echo "$as_me:$LINENO: result: no" >&5
4029169695Skanecho "${ECHO_T}no" >&6
4030169695Skanfi
4031169695Skantest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4032169695Skanecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4033169695Skan   { (exit 1); exit 1; }; }
4034169695Skanecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4035169695Skanecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4036169695Skanif test "${lt_cv_prog_gnu_ld+set}" = set; then
4037169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4038169695Skanelse
4039282152Spfg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4040282152Spfgcase `$LD -v 2>&1 </dev/null` in
4041282152Spfg*GNU* | *'with BFD'*)
4042169695Skan  lt_cv_prog_gnu_ld=yes
4043282152Spfg  ;;
4044282152Spfg*)
4045169695Skan  lt_cv_prog_gnu_ld=no
4046282152Spfg  ;;
4047282152Spfgesac
4048169695Skanfi
4049169695Skanecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4050169695Skanecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4051169695Skanwith_gnu_ld=$lt_cv_prog_gnu_ld
4052169695Skan
4053169695Skan
4054169695Skan
4055282152Spfg
4056282152Spfg
4057282152Spfg
4058282152Spfg
4059282152Spfg
4060282152Spfg
4061282152Spfg
4062282152Spfgecho "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4063282152Spfgecho $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4064169695Skanif test "${lt_cv_path_NM+set}" = set; then
4065169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4066169695Skanelse
4067169695Skan  if test -n "$NM"; then
4068169695Skan  # Let the user override the test.
4069169695Skan  lt_cv_path_NM="$NM"
4070169695Skanelse
4071282152Spfg  lt_nm_to_check="${ac_tool_prefix}nm"
4072282152Spfg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4073282152Spfg    lt_nm_to_check="$lt_nm_to_check nm"
4074282152Spfg  fi
4075282152Spfg  for lt_tmp_nm in $lt_nm_to_check; do
4076282152Spfg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4077282152Spfg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4078282152Spfg      IFS="$lt_save_ifs"
4079282152Spfg      test -z "$ac_dir" && ac_dir=.
4080282152Spfg      tmp_nm="$ac_dir/$lt_tmp_nm"
4081282152Spfg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4082282152Spfg	# Check to see if the nm accepts a BSD-compat flag.
4083282152Spfg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4084282152Spfg	#   nm: unknown option "B" ignored
4085282152Spfg	# Tru64's nm complains that /dev/null is an invalid object file
4086282152Spfg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4087282152Spfg	*/dev/null* | *'Invalid file or object type'*)
4088282152Spfg	  lt_cv_path_NM="$tmp_nm -B"
4089282152Spfg	  break
4090282152Spfg	  ;;
4091282152Spfg	*)
4092282152Spfg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4093282152Spfg	  */dev/null*)
4094282152Spfg	    lt_cv_path_NM="$tmp_nm -p"
4095282152Spfg	    break
4096282152Spfg	    ;;
4097282152Spfg	  *)
4098282152Spfg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4099282152Spfg	    continue # so that we can try to find one that supports BSD flags
4100282152Spfg	    ;;
4101282152Spfg	  esac
4102282152Spfg	  ;;
4103282152Spfg	esac
4104169695Skan      fi
4105282152Spfg    done
4106282152Spfg    IFS="$lt_save_ifs"
4107169695Skan  done
4108282152Spfg  : ${lt_cv_path_NM=no}
4109169695Skanfi
4110169695Skanfi
4111282152Spfgecho "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4112282152Spfgecho "${ECHO_T}$lt_cv_path_NM" >&6
4113282152Spfgif test "$lt_cv_path_NM" != "no"; then
4114282152Spfg  NM="$lt_cv_path_NM"
4115282152Spfgelse
4116282152Spfg  # Didn't find any BSD compatible name lister, look for dumpbin.
4117282152Spfg  if test -n "$ac_tool_prefix"; then
4118282152Spfg  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4119282152Spfg  do
4120282152Spfg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121282152Spfgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
4123282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124282152Spfgif test "${ac_cv_prog_DUMPBIN+set}" = set; then
4125282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4126282152Spfgelse
4127282152Spfg  if test -n "$DUMPBIN"; then
4128282152Spfg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4129282152Spfgelse
4130282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131282152Spfgfor as_dir in $PATH
4132282152Spfgdo
4133282152Spfg  IFS=$as_save_IFS
4134282152Spfg  test -z "$as_dir" && as_dir=.
4135282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
4136282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137282152Spfg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4138282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139282152Spfg    break 2
4140282152Spfg  fi
4141282152Spfgdone
4142282152Spfgdone
4143169695Skan
4144282152Spfgfi
4145282152Spfgfi
4146282152SpfgDUMPBIN=$ac_cv_prog_DUMPBIN
4147282152Spfgif test -n "$DUMPBIN"; then
4148282152Spfg  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4149282152Spfgecho "${ECHO_T}$DUMPBIN" >&6
4150282152Spfgelse
4151282152Spfg  echo "$as_me:$LINENO: result: no" >&5
4152282152Spfgecho "${ECHO_T}no" >&6
4153282152Spfgfi
4154169695Skan
4155282152Spfg    test -n "$DUMPBIN" && break
4156282152Spfg  done
4157282152Spfgfi
4158282152Spfgif test -z "$DUMPBIN"; then
4159282152Spfg  ac_ct_DUMPBIN=$DUMPBIN
4160282152Spfg  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4161282152Spfgdo
4162282152Spfg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4163282152Spfgset dummy $ac_prog; ac_word=$2
4164282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
4165282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166282152Spfgif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4167282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4168282152Spfgelse
4169282152Spfg  if test -n "$ac_ct_DUMPBIN"; then
4170282152Spfg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4171282152Spfgelse
4172282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173282152Spfgfor as_dir in $PATH
4174282152Spfgdo
4175282152Spfg  IFS=$as_save_IFS
4176282152Spfg  test -z "$as_dir" && as_dir=.
4177282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
4178282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179282152Spfg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4180282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181282152Spfg    break 2
4182282152Spfg  fi
4183282152Spfgdone
4184282152Spfgdone
4185282152Spfg
4186282152Spfgfi
4187282152Spfgfi
4188282152Spfgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4189282152Spfgif test -n "$ac_ct_DUMPBIN"; then
4190282152Spfg  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4191282152Spfgecho "${ECHO_T}$ac_ct_DUMPBIN" >&6
4192282152Spfgelse
4193282152Spfg  echo "$as_me:$LINENO: result: no" >&5
4194282152Spfgecho "${ECHO_T}no" >&6
4195282152Spfgfi
4196282152Spfg
4197282152Spfg  test -n "$ac_ct_DUMPBIN" && break
4198282152Spfgdone
4199282152Spfgtest -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4200282152Spfg
4201282152Spfg  DUMPBIN=$ac_ct_DUMPBIN
4202282152Spfgfi
4203282152Spfg
4204282152Spfg
4205282152Spfg  if test "$DUMPBIN" != ":"; then
4206282152Spfg    NM="$DUMPBIN"
4207282152Spfg  fi
4208282152Spfgfi
4209282152Spfgtest -z "$NM" && NM=nm
4210282152Spfg
4211282152Spfg
4212282152Spfg
4213282152Spfg
4214282152Spfg
4215282152Spfg
4216282152Spfgecho "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4217282152Spfgecho $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4218282152Spfgif test "${lt_cv_nm_interface+set}" = set; then
4219282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4220282152Spfgelse
4221282152Spfg  lt_cv_nm_interface="BSD nm"
4222282152Spfg  echo "int some_variable = 0;" > conftest.$ac_ext
4223282152Spfg  (eval echo "\"\$as_me:4223: $ac_compile\"" >&5)
4224282152Spfg  (eval "$ac_compile" 2>conftest.err)
4225282152Spfg  cat conftest.err >&5
4226282152Spfg  (eval echo "\"\$as_me:4226: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4227282152Spfg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4228282152Spfg  cat conftest.err >&5
4229282152Spfg  (eval echo "\"\$as_me:4229: output\"" >&5)
4230282152Spfg  cat conftest.out >&5
4231282152Spfg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4232282152Spfg    lt_cv_nm_interface="MS dumpbin"
4233282152Spfg  fi
4234282152Spfg  rm -f conftest*
4235282152Spfgfi
4236282152Spfgecho "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4237282152Spfgecho "${ECHO_T}$lt_cv_nm_interface" >&6
4238282152Spfg
4239169695Skanecho "$as_me:$LINENO: checking whether ln -s works" >&5
4240169695Skanecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4241169695SkanLN_S=$as_ln_s
4242169695Skanif test "$LN_S" = "ln -s"; then
4243169695Skan  echo "$as_me:$LINENO: result: yes" >&5
4244169695Skanecho "${ECHO_T}yes" >&6
4245169695Skanelse
4246169695Skan  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4247169695Skanecho "${ECHO_T}no, using $LN_S" >&6
4248169695Skanfi
4249169695Skan
4250282152Spfg# find the maximum length of command line arguments
4251282152Spfgecho "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4252282152Spfgecho $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4253282152Spfgif test "${lt_cv_sys_max_cmd_len+set}" = set; then
4254282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4255282152Spfgelse
4256282152Spfg    i=0
4257282152Spfg  teststring="ABCD"
4258282152Spfg
4259282152Spfg  case $build_os in
4260282152Spfg  msdosdjgpp*)
4261282152Spfg    # On DJGPP, this test can blow up pretty badly due to problems in libc
4262282152Spfg    # (any single argument exceeding 2000 bytes causes a buffer overrun
4263282152Spfg    # during glob expansion).  Even if it were fixed, the result of this
4264282152Spfg    # check would be larger than it should be.
4265282152Spfg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4266282152Spfg    ;;
4267282152Spfg
4268282152Spfg  gnu*)
4269282152Spfg    # Under GNU Hurd, this test is not required because there is
4270282152Spfg    # no limit to the length of command line arguments.
4271282152Spfg    # Libtool will interpret -1 as no limit whatsoever
4272282152Spfg    lt_cv_sys_max_cmd_len=-1;
4273282152Spfg    ;;
4274282152Spfg
4275282152Spfg  cygwin* | mingw*)
4276282152Spfg    # On Win9x/ME, this test blows up -- it succeeds, but takes
4277282152Spfg    # about 5 minutes as the teststring grows exponentially.
4278282152Spfg    # Worse, since 9x/ME are not pre-emptively multitasking,
4279282152Spfg    # you end up with a "frozen" computer, even though with patience
4280282152Spfg    # the test eventually succeeds (with a max line length of 256k).
4281282152Spfg    # Instead, let's just punt: use the minimum linelength reported by
4282282152Spfg    # all of the supported platforms: 8192 (on NT/2K/XP).
4283282152Spfg    lt_cv_sys_max_cmd_len=8192;
4284282152Spfg    ;;
4285282152Spfg
4286282152Spfg  amigaos*)
4287282152Spfg    # On AmigaOS with pdksh, this test takes hours, literally.
4288282152Spfg    # So we just punt and use a minimum line length of 8192.
4289282152Spfg    lt_cv_sys_max_cmd_len=8192;
4290282152Spfg    ;;
4291282152Spfg
4292282152Spfg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4293282152Spfg    # This has been around since 386BSD, at least.  Likely further.
4294282152Spfg    if test -x /sbin/sysctl; then
4295282152Spfg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4296282152Spfg    elif test -x /usr/sbin/sysctl; then
4297282152Spfg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4298282152Spfg    else
4299282152Spfg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4300282152Spfg    fi
4301282152Spfg    # And add a safety zone
4302282152Spfg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4303282152Spfg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4304282152Spfg    ;;
4305282152Spfg
4306282152Spfg  interix*)
4307282152Spfg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4308282152Spfg    lt_cv_sys_max_cmd_len=196608
4309282152Spfg    ;;
4310282152Spfg
4311282152Spfg  osf*)
4312282152Spfg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4313282152Spfg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4314282152Spfg    # nice to cause kernel panics so lets avoid the loop below.
4315282152Spfg    # First set a reasonable default.
4316282152Spfg    lt_cv_sys_max_cmd_len=16384
4317282152Spfg    #
4318282152Spfg    if test -x /sbin/sysconfig; then
4319282152Spfg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4320282152Spfg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4321282152Spfg      esac
4322282152Spfg    fi
4323282152Spfg    ;;
4324282152Spfg  sco3.2v5*)
4325282152Spfg    lt_cv_sys_max_cmd_len=102400
4326282152Spfg    ;;
4327282152Spfg  sysv5* | sco5v6* | sysv4.2uw2*)
4328282152Spfg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4329282152Spfg    if test -n "$kargmax"; then
4330282152Spfg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4331282152Spfg    else
4332282152Spfg      lt_cv_sys_max_cmd_len=32768
4333282152Spfg    fi
4334282152Spfg    ;;
4335282152Spfg  *)
4336282152Spfg    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4337282152Spfg    if test -n $lt_cv_sys_max_cmd_len; then
4338282152Spfg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4339282152Spfg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4340282152Spfg    else
4341282152Spfg      # Make teststring a little bigger before we do anything with it.
4342282152Spfg      # a 1K string should be a reasonable start.
4343282152Spfg      for i in 1 2 3 4 5 6 7 8 ; do
4344282152Spfg        teststring=$teststring$teststring
4345282152Spfg      done
4346282152Spfg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4347282152Spfg      # If test is not a shell built-in, we'll probably end up computing a
4348282152Spfg      # maximum length that is only half of the actual maximum length, but
4349282152Spfg      # we can't tell.
4350282152Spfg      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4351282152Spfg	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4352282152Spfg	      test $i != 17 # 1/2 MB should be enough
4353282152Spfg      do
4354282152Spfg        i=`expr $i + 1`
4355282152Spfg        teststring=$teststring$teststring
4356282152Spfg      done
4357282152Spfg      # Only check the string length outside the loop.
4358282152Spfg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4359282152Spfg      teststring=
4360282152Spfg      # Add a significant safety factor because C++ compilers can tack on
4361282152Spfg      # massive amounts of additional arguments before passing them to the
4362282152Spfg      # linker.  It appears as though 1/2 is a usable value.
4363282152Spfg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4364282152Spfg    fi
4365282152Spfg    ;;
4366282152Spfg  esac
4367282152Spfg
4368282152Spfgfi
4369282152Spfg
4370282152Spfgif test -n $lt_cv_sys_max_cmd_len ; then
4371282152Spfg  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4372282152Spfgecho "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4373282152Spfgelse
4374282152Spfg  echo "$as_me:$LINENO: result: none" >&5
4375282152Spfgecho "${ECHO_T}none" >&6
4376282152Spfgfi
4377282152Spfgmax_cmd_len=$lt_cv_sys_max_cmd_len
4378282152Spfg
4379282152Spfg
4380282152Spfg
4381282152Spfg
4382282152Spfg
4383282152Spfg
4384282152Spfg
4385282152Spfg: ${CP="cp -f"}
4386282152Spfg: ${MV="mv -f"}
4387282152Spfg: ${RM="rm -f"}
4388282152Spfg
4389282152Spfgecho "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4390282152Spfgecho $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4391282152Spfg# Try some XSI features
4392282152Spfgxsi_shell=no
4393282152Spfg( _lt_dummy="a/b/c"
4394282152Spfg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4395282152Spfg      = c,a/b,, ) >/dev/null 2>&1 \
4396282152Spfg  && xsi_shell=yes
4397282152Spfgecho "$as_me:$LINENO: result: $xsi_shell" >&5
4398282152Spfgecho "${ECHO_T}$xsi_shell" >&6
4399282152Spfg
4400282152Spfg
4401282152Spfgecho "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4402282152Spfgecho $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4403282152Spfglt_shell_append=no
4404282152Spfg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4405282152Spfg    >/dev/null 2>&1 \
4406282152Spfg  && lt_shell_append=yes
4407282152Spfgecho "$as_me:$LINENO: result: $lt_shell_append" >&5
4408282152Spfgecho "${ECHO_T}$lt_shell_append" >&6
4409282152Spfg
4410282152Spfg
4411282152Spfgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4412282152Spfg  lt_unset=unset
4413282152Spfgelse
4414282152Spfg  lt_unset=false
4415282152Spfgfi
4416282152Spfg
4417282152Spfg
4418282152Spfg
4419282152Spfg
4420282152Spfg
4421282152Spfg# test EBCDIC or ASCII
4422282152Spfgcase `echo X|tr X '\101'` in
4423282152Spfg A) # ASCII based system
4424282152Spfg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4425282152Spfg  lt_SP2NL='tr \040 \012'
4426282152Spfg  lt_NL2SP='tr \015\012 \040\040'
4427282152Spfg  ;;
4428282152Spfg *) # EBCDIC based system
4429282152Spfg  lt_SP2NL='tr \100 \n'
4430282152Spfg  lt_NL2SP='tr \r\n \100\100'
4431282152Spfg  ;;
4432282152Spfgesac
4433282152Spfg
4434282152Spfg
4435282152Spfg
4436282152Spfg
4437282152Spfg
4438282152Spfg
4439282152Spfg
4440282152Spfg
4441282152Spfg
4442282152Spfgecho "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4443282152Spfgecho $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4444282152Spfgif test "${lt_cv_ld_reload_flag+set}" = set; then
4445282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4446282152Spfgelse
4447282152Spfg  lt_cv_ld_reload_flag='-r'
4448282152Spfgfi
4449282152Spfgecho "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4450282152Spfgecho "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4451282152Spfgreload_flag=$lt_cv_ld_reload_flag
4452282152Spfgcase $reload_flag in
4453282152Spfg"" | " "*) ;;
4454282152Spfg*) reload_flag=" $reload_flag" ;;
4455282152Spfgesac
4456282152Spfgreload_cmds='$LD$reload_flag -o $output$reload_objs'
4457282152Spfgcase $host_os in
4458282152Spfg  darwin*)
4459282152Spfg    if test "$GCC" = yes; then
4460282152Spfg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4461282152Spfg    else
4462282152Spfg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4463282152Spfg    fi
4464282152Spfg    ;;
4465282152Spfgesac
4466282152Spfg
4467282152Spfg
4468282152Spfg
4469282152Spfg
4470282152Spfg
4471282152Spfg
4472282152Spfg
4473282152Spfg
4474282152Spfg
4475282152Spfg
4476282152Spfgecho "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4477282152Spfgecho $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4478169695Skanif test "${lt_cv_deplibs_check_method+set}" = set; then
4479169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4480169695Skanelse
4481169695Skan  lt_cv_file_magic_cmd='$MAGIC_CMD'
4482169695Skanlt_cv_file_magic_test_file=
4483169695Skanlt_cv_deplibs_check_method='unknown'
4484169695Skan# Need to set the preceding variable on all platforms that support
4485169695Skan# interlibrary dependencies.
4486169695Skan# 'none' -- dependencies not supported.
4487169695Skan# `unknown' -- same as none, but documents that we really don't know.
4488169695Skan# 'pass_all' -- all dependencies passed with no checks.
4489169695Skan# 'test_compile' -- check by making test program.
4490282152Spfg# 'file_magic [[regex]]' -- check by looking for files in library path
4491282152Spfg# which responds to the $file_magic_cmd with a given extended regex.
4492169695Skan# If you have `file' or equivalent on your system and you're not sure
4493169695Skan# whether `pass_all' will *always* work, you probably want this one.
4494169695Skan
4495169695Skancase $host_os in
4496282152Spfgaix[4-9]*)
4497169695Skan  lt_cv_deplibs_check_method=pass_all
4498169695Skan  ;;
4499169695Skan
4500169695Skanbeos*)
4501169695Skan  lt_cv_deplibs_check_method=pass_all
4502169695Skan  ;;
4503169695Skan
4504282152Spfgbsdi[45]*)
4505169695Skan  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4506169695Skan  lt_cv_file_magic_cmd='/usr/bin/file -L'
4507169695Skan  lt_cv_file_magic_test_file=/shlib/libc.so
4508169695Skan  ;;
4509169695Skan
4510282152Spfgcygwin*)
4511282152Spfg  # func_win32_libid is a shell function defined in ltmain.sh
4512282152Spfg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4513282152Spfg  lt_cv_file_magic_cmd='func_win32_libid'
4514169695Skan  ;;
4515169695Skan
4516282152Spfgmingw* | pw32*)
4517282152Spfg  # Base MSYS/MinGW do not provide the 'file' command needed by
4518282152Spfg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4519282152Spfg  # unless we find 'file', for example because we are cross-compiling.
4520282152Spfg  if ( file / ) >/dev/null 2>&1; then
4521282152Spfg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522282152Spfg    lt_cv_file_magic_cmd='func_win32_libid'
4523282152Spfg  else
4524282152Spfg    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4525282152Spfg    lt_cv_file_magic_cmd='$OBJDUMP -f'
4526282152Spfg  fi
4527282152Spfg  ;;
4528282152Spfg
4529169695Skandarwin* | rhapsody*)
4530169695Skan  lt_cv_deplibs_check_method=pass_all
4531169695Skan  ;;
4532169695Skan
4533282152Spfgfreebsd* | dragonfly*)
4534282152Spfg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4535169695Skan    case $host_cpu in
4536169695Skan    i*86 )
4537169695Skan      # Not sure whether the presence of OpenBSD here was a mistake.
4538169695Skan      # Let's accept both of them until this is cleared up.
4539282152Spfg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4540169695Skan      lt_cv_file_magic_cmd=/usr/bin/file
4541169695Skan      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4542169695Skan      ;;
4543169695Skan    esac
4544169695Skan  else
4545169695Skan    lt_cv_deplibs_check_method=pass_all
4546169695Skan  fi
4547169695Skan  ;;
4548169695Skan
4549169695Skangnu*)
4550169695Skan  lt_cv_deplibs_check_method=pass_all
4551169695Skan  ;;
4552169695Skan
4553282152Spfghpux10.20* | hpux11*)
4554282152Spfg  lt_cv_file_magic_cmd=/usr/bin/file
4555169695Skan  case $host_cpu in
4556169695Skan  ia64*)
4557169695Skan    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4558169695Skan    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4559169695Skan    ;;
4560282152Spfg  hppa*64*)
4561282152Spfg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4562282152Spfg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4563169695Skan    ;;
4564169695Skan  *)
4565282152Spfg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4566282152Spfg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4567169695Skan    ;;
4568169695Skan  esac
4569282152Spfg  ;;
4570282152Spfg
4571282152Spfginterix[3-9]*)
4572282152Spfg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4573282152Spfg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4574282152Spfg  ;;
4575282152Spfg
4576282152Spfgirix5* | irix6* | nonstopux*)
4577282152Spfg  case $LD in
4578282152Spfg  *-32|*"-32 ") libmagic=32-bit;;
4579282152Spfg  *-n32|*"-n32 ") libmagic=N32;;
4580282152Spfg  *-64|*"-64 ") libmagic=64-bit;;
4581282152Spfg  *) libmagic=never-match;;
4582282152Spfg  esac
4583169695Skan  lt_cv_deplibs_check_method=pass_all
4584169695Skan  ;;
4585169695Skan
4586169695Skan# This must be Linux ELF.
4587282152Spfglinux* | k*bsd*-gnu)
4588169695Skan  lt_cv_deplibs_check_method=pass_all
4589169695Skan  ;;
4590169695Skan
4591282152Spfgnetbsd*)
4592282152Spfg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4593282152Spfg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4594169695Skan  else
4595282152Spfg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4596169695Skan  fi
4597169695Skan  ;;
4598169695Skan
4599282152Spfgnewos6*)
4600169695Skan  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4601169695Skan  lt_cv_file_magic_cmd=/usr/bin/file
4602169695Skan  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4603169695Skan  ;;
4604169695Skan
4605282152Spfg*nto* | *qnx*)
4606282152Spfg  lt_cv_deplibs_check_method=pass_all
4607282152Spfg  ;;
4608282152Spfg
4609282152Spfgopenbsd*)
4610282152Spfg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611282152Spfg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4612282152Spfg  else
4613282152Spfg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4614282152Spfg  fi
4615282152Spfg  ;;
4616282152Spfg
4617169695Skanosf3* | osf4* | osf5*)
4618169695Skan  lt_cv_deplibs_check_method=pass_all
4619169695Skan  ;;
4620169695Skan
4621282152Spfgrdos*)
4622169695Skan  lt_cv_deplibs_check_method=pass_all
4623169695Skan  ;;
4624169695Skan
4625169695Skansolaris*)
4626169695Skan  lt_cv_deplibs_check_method=pass_all
4627169695Skan  ;;
4628169695Skan
4629282152Spfgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4630169695Skan  lt_cv_deplibs_check_method=pass_all
4631169695Skan  ;;
4632169695Skan
4633282152Spfgsysv4 | sysv4.3*)
4634169695Skan  case $host_vendor in
4635169695Skan  motorola)
4636169695Skan    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]'
4637169695Skan    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4638169695Skan    ;;
4639282152Spfg  ncr)
4640282152Spfg    lt_cv_deplibs_check_method=pass_all
4641282152Spfg    ;;
4642282152Spfg  sequent)
4643282152Spfg    lt_cv_file_magic_cmd='/bin/file'
4644282152Spfg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4645282152Spfg    ;;
4646282152Spfg  sni)
4647282152Spfg    lt_cv_file_magic_cmd='/bin/file'
4648282152Spfg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4649282152Spfg    lt_cv_file_magic_test_file=/lib/libc.so
4650282152Spfg    ;;
4651282152Spfg  siemens)
4652282152Spfg    lt_cv_deplibs_check_method=pass_all
4653282152Spfg    ;;
4654282152Spfg  pc)
4655282152Spfg    lt_cv_deplibs_check_method=pass_all
4656282152Spfg    ;;
4657169695Skan  esac
4658169695Skan  ;;
4659282152Spfg
4660282152Spfgtpf*)
4661282152Spfg  lt_cv_deplibs_check_method=pass_all
4662282152Spfg  ;;
4663169695Skanesac
4664169695Skan
4665169695Skanfi
4666169695Skanecho "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4667169695Skanecho "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4668169695Skanfile_magic_cmd=$lt_cv_file_magic_cmd
4669169695Skandeplibs_check_method=$lt_cv_deplibs_check_method
4670282152Spfgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
4671169695Skan
4672169695Skan
4673169695Skan
4674169695Skan
4675169695Skan
4676169695Skan
4677169695Skan
4678169695Skan
4679169695Skan
4680169695Skan
4681169695Skan
4682169695Skan
4683169695Skanif test -n "$ac_tool_prefix"; then
4684282152Spfg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4685282152Spfgset dummy ${ac_tool_prefix}ar; ac_word=$2
4686169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
4687169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688282152Spfgif test "${ac_cv_prog_AR+set}" = set; then
4689169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4690169695Skanelse
4691282152Spfg  if test -n "$AR"; then
4692282152Spfg  ac_cv_prog_AR="$AR" # Let the user override the test.
4693169695Skanelse
4694169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695169695Skanfor as_dir in $PATH
4696169695Skando
4697169695Skan  IFS=$as_save_IFS
4698169695Skan  test -z "$as_dir" && as_dir=.
4699169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
4700169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701282152Spfg    ac_cv_prog_AR="${ac_tool_prefix}ar"
4702169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703169695Skan    break 2
4704169695Skan  fi
4705169695Skandone
4706169695Skandone
4707169695Skan
4708169695Skanfi
4709169695Skanfi
4710282152SpfgAR=$ac_cv_prog_AR
4711282152Spfgif test -n "$AR"; then
4712282152Spfg  echo "$as_me:$LINENO: result: $AR" >&5
4713282152Spfgecho "${ECHO_T}$AR" >&6
4714169695Skanelse
4715169695Skan  echo "$as_me:$LINENO: result: no" >&5
4716169695Skanecho "${ECHO_T}no" >&6
4717169695Skanfi
4718169695Skan
4719169695Skanfi
4720282152Spfgif test -z "$ac_cv_prog_AR"; then
4721282152Spfg  ac_ct_AR=$AR
4722282152Spfg  # Extract the first word of "ar", so it can be a program name with args.
4723282152Spfgset dummy ar; ac_word=$2
4724169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
4725169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726282152Spfgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4727169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4728169695Skanelse
4729282152Spfg  if test -n "$ac_ct_AR"; then
4730282152Spfg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4731169695Skanelse
4732169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733169695Skanfor as_dir in $PATH
4734169695Skando
4735169695Skan  IFS=$as_save_IFS
4736169695Skan  test -z "$as_dir" && as_dir=.
4737169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
4738169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739282152Spfg    ac_cv_prog_ac_ct_AR="ar"
4740169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741169695Skan    break 2
4742169695Skan  fi
4743169695Skandone
4744169695Skandone
4745169695Skan
4746282152Spfg  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4747169695Skanfi
4748169695Skanfi
4749282152Spfgac_ct_AR=$ac_cv_prog_ac_ct_AR
4750282152Spfgif test -n "$ac_ct_AR"; then
4751282152Spfg  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4752282152Spfgecho "${ECHO_T}$ac_ct_AR" >&6
4753169695Skanelse
4754169695Skan  echo "$as_me:$LINENO: result: no" >&5
4755169695Skanecho "${ECHO_T}no" >&6
4756169695Skanfi
4757169695Skan
4758282152Spfg  AR=$ac_ct_AR
4759169695Skanelse
4760282152Spfg  AR="$ac_cv_prog_AR"
4761169695Skanfi
4762169695Skan
4763282152Spfgtest -z "$AR" && AR=ar
4764282152Spfgtest -z "$AR_FLAGS" && AR_FLAGS=cru
4765282152Spfg
4766282152Spfg
4767282152Spfg
4768282152Spfg
4769282152Spfg
4770282152Spfg
4771282152Spfg
4772282152Spfg
4773282152Spfg
4774282152Spfg
4775282152Spfg
4776169695Skanif test -n "$ac_tool_prefix"; then
4777169695Skan  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4778169695Skanset dummy ${ac_tool_prefix}strip; ac_word=$2
4779169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
4780169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781169695Skanif test "${ac_cv_prog_STRIP+set}" = set; then
4782169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4783169695Skanelse
4784169695Skan  if test -n "$STRIP"; then
4785169695Skan  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4786169695Skanelse
4787169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788169695Skanfor as_dir in $PATH
4789169695Skando
4790169695Skan  IFS=$as_save_IFS
4791169695Skan  test -z "$as_dir" && as_dir=.
4792169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
4793169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794169695Skan    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4795169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796169695Skan    break 2
4797169695Skan  fi
4798169695Skandone
4799169695Skandone
4800169695Skan
4801169695Skanfi
4802169695Skanfi
4803169695SkanSTRIP=$ac_cv_prog_STRIP
4804169695Skanif test -n "$STRIP"; then
4805169695Skan  echo "$as_me:$LINENO: result: $STRIP" >&5
4806169695Skanecho "${ECHO_T}$STRIP" >&6
4807169695Skanelse
4808169695Skan  echo "$as_me:$LINENO: result: no" >&5
4809169695Skanecho "${ECHO_T}no" >&6
4810169695Skanfi
4811169695Skan
4812169695Skanfi
4813169695Skanif test -z "$ac_cv_prog_STRIP"; then
4814169695Skan  ac_ct_STRIP=$STRIP
4815169695Skan  # Extract the first word of "strip", so it can be a program name with args.
4816169695Skanset dummy strip; ac_word=$2
4817169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
4818169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819169695Skanif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4820169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
4821169695Skanelse
4822169695Skan  if test -n "$ac_ct_STRIP"; then
4823169695Skan  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4824169695Skanelse
4825169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826169695Skanfor as_dir in $PATH
4827169695Skando
4828169695Skan  IFS=$as_save_IFS
4829169695Skan  test -z "$as_dir" && as_dir=.
4830169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
4831169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832169695Skan    ac_cv_prog_ac_ct_STRIP="strip"
4833169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834169695Skan    break 2
4835169695Skan  fi
4836169695Skandone
4837169695Skandone
4838169695Skan
4839169695Skan  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4840169695Skanfi
4841169695Skanfi
4842169695Skanac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4843169695Skanif test -n "$ac_ct_STRIP"; then
4844169695Skan  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4845169695Skanecho "${ECHO_T}$ac_ct_STRIP" >&6
4846169695Skanelse
4847169695Skan  echo "$as_me:$LINENO: result: no" >&5
4848169695Skanecho "${ECHO_T}no" >&6
4849169695Skanfi
4850169695Skan
4851169695Skan  STRIP=$ac_ct_STRIP
4852169695Skanelse
4853169695Skan  STRIP="$ac_cv_prog_STRIP"
4854169695Skanfi
4855169695Skan
4856282152Spfgtest -z "$STRIP" && STRIP=:
4857169695Skan
4858169695Skan
4859169695Skan
4860282152Spfg
4861282152Spfg
4862282152Spfg
4863282152Spfgif test -n "$ac_tool_prefix"; then
4864282152Spfg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865282152Spfgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
4867282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868282152Spfgif test "${ac_cv_prog_RANLIB+set}" = set; then
4869282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4870282152Spfgelse
4871282152Spfg  if test -n "$RANLIB"; then
4872282152Spfg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873282152Spfgelse
4874282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875282152Spfgfor as_dir in $PATH
4876282152Spfgdo
4877282152Spfg  IFS=$as_save_IFS
4878282152Spfg  test -z "$as_dir" && as_dir=.
4879282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
4880282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881282152Spfg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883282152Spfg    break 2
4884282152Spfg  fi
4885282152Spfgdone
4886282152Spfgdone
4887282152Spfg
4888282152Spfgfi
4889282152Spfgfi
4890282152SpfgRANLIB=$ac_cv_prog_RANLIB
4891282152Spfgif test -n "$RANLIB"; then
4892282152Spfg  echo "$as_me:$LINENO: result: $RANLIB" >&5
4893282152Spfgecho "${ECHO_T}$RANLIB" >&6
4894282152Spfgelse
4895282152Spfg  echo "$as_me:$LINENO: result: no" >&5
4896282152Spfgecho "${ECHO_T}no" >&6
4897282152Spfgfi
4898282152Spfg
4899282152Spfgfi
4900282152Spfgif test -z "$ac_cv_prog_RANLIB"; then
4901282152Spfg  ac_ct_RANLIB=$RANLIB
4902282152Spfg  # Extract the first word of "ranlib", so it can be a program name with args.
4903282152Spfgset dummy ranlib; ac_word=$2
4904282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
4905282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906282152Spfgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
4908282152Spfgelse
4909282152Spfg  if test -n "$ac_ct_RANLIB"; then
4910282152Spfg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911282152Spfgelse
4912282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913282152Spfgfor as_dir in $PATH
4914282152Spfgdo
4915282152Spfg  IFS=$as_save_IFS
4916282152Spfg  test -z "$as_dir" && as_dir=.
4917282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
4918282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919282152Spfg    ac_cv_prog_ac_ct_RANLIB="ranlib"
4920282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921282152Spfg    break 2
4922282152Spfg  fi
4923282152Spfgdone
4924282152Spfgdone
4925282152Spfg
4926282152Spfg  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927282152Spfgfi
4928282152Spfgfi
4929282152Spfgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930282152Spfgif test -n "$ac_ct_RANLIB"; then
4931282152Spfg  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932282152Spfgecho "${ECHO_T}$ac_ct_RANLIB" >&6
4933282152Spfgelse
4934282152Spfg  echo "$as_me:$LINENO: result: no" >&5
4935282152Spfgecho "${ECHO_T}no" >&6
4936282152Spfgfi
4937282152Spfg
4938282152Spfg  RANLIB=$ac_ct_RANLIB
4939282152Spfgelse
4940282152Spfg  RANLIB="$ac_cv_prog_RANLIB"
4941282152Spfgfi
4942282152Spfg
4943282152Spfgtest -z "$RANLIB" && RANLIB=:
4944282152Spfg
4945282152Spfg
4946282152Spfg
4947282152Spfg
4948282152Spfg
4949282152Spfg
4950282152Spfg# Determine commands to create old-style static archives.
4951282152Spfgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4952282152Spfgold_postinstall_cmds='chmod 644 $oldlib'
4953282152Spfgold_postuninstall_cmds=
4954282152Spfg
4955282152Spfgif test -n "$RANLIB"; then
4956282152Spfg  case $host_os in
4957282152Spfg  openbsd*)
4958282152Spfg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4959282152Spfg    ;;
4960282152Spfg  *)
4961282152Spfg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4962282152Spfg    ;;
4963282152Spfg  esac
4964282152Spfg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4965282152Spfgfi
4966282152Spfg
4967282152Spfg
4968282152Spfg
4969282152Spfg
4970282152Spfg
4971282152Spfg
4972282152Spfg
4973282152Spfg
4974282152Spfg
4975282152Spfg
4976282152Spfg
4977282152Spfg
4978282152Spfg
4979282152Spfg
4980282152Spfg
4981282152Spfg
4982282152Spfg
4983282152Spfg
4984282152Spfg
4985282152Spfg
4986282152Spfg
4987282152Spfg
4988282152Spfg
4989282152Spfg
4990282152Spfg
4991282152Spfg
4992282152Spfg
4993282152Spfg
4994282152Spfg
4995282152Spfg
4996282152Spfg
4997282152Spfg
4998282152Spfg
4999282152Spfg
5000282152Spfg# If no C compiler was specified, use CC.
5001282152SpfgLTCC=${LTCC-"$CC"}
5002282152Spfg
5003282152Spfg# If no C compiler flags were specified, use CFLAGS.
5004282152SpfgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5005282152Spfg
5006282152Spfg# Allow CC to be a program name with arguments.
5007282152Spfgcompiler=$CC
5008282152Spfg
5009282152Spfg
5010282152Spfg# Check for command to grab the raw symbol name followed by C symbol from nm.
5011282152Spfgecho "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5012282152Spfgecho $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5013282152Spfgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5014282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
5015282152Spfgelse
5016282152Spfg
5017282152Spfg# These are sane defaults that work on at least a few old systems.
5018282152Spfg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5019282152Spfg
5020282152Spfg# Character class describing NM global symbol codes.
5021282152Spfgsymcode='[BCDEGRST]'
5022282152Spfg
5023282152Spfg# Regexp to match symbols that can be accessed directly from C.
5024282152Spfgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5025282152Spfg
5026282152Spfg# Define system-specific variables.
5027282152Spfgcase $host_os in
5028282152Spfgaix*)
5029282152Spfg  symcode='[BCDT]'
5030282152Spfg  ;;
5031282152Spfgcygwin* | mingw* | pw32*)
5032282152Spfg  symcode='[ABCDGISTW]'
5033282152Spfg  ;;
5034282152Spfghpux*)
5035282152Spfg  if test "$host_cpu" = ia64; then
5036282152Spfg    symcode='[ABCDEGRST]'
5037282152Spfg  fi
5038282152Spfg  ;;
5039282152Spfgirix* | nonstopux*)
5040282152Spfg  symcode='[BCDEGRST]'
5041282152Spfg  ;;
5042282152Spfgosf*)
5043282152Spfg  symcode='[BCDEGQRST]'
5044282152Spfg  ;;
5045282152Spfgsolaris*)
5046282152Spfg  symcode='[BDRT]'
5047282152Spfg  ;;
5048282152Spfgsco3.2v5*)
5049282152Spfg  symcode='[DT]'
5050282152Spfg  ;;
5051282152Spfgsysv4.2uw2*)
5052282152Spfg  symcode='[DT]'
5053282152Spfg  ;;
5054282152Spfgsysv5* | sco5v6* | unixware* | OpenUNIX*)
5055282152Spfg  symcode='[ABDT]'
5056282152Spfg  ;;
5057282152Spfgsysv4)
5058282152Spfg  symcode='[DFNSTU]'
5059282152Spfg  ;;
5060282152Spfgesac
5061282152Spfg
5062282152Spfg# If we're using GNU nm, then use its standard symbol codes.
5063282152Spfgcase `$NM -V 2>&1` in
5064282152Spfg*GNU* | *'with BFD'*)
5065282152Spfg  symcode='[ABCDGIRSTW]' ;;
5066282152Spfgesac
5067282152Spfg
5068282152Spfg# Transform an extracted symbol line into a proper C declaration.
5069282152Spfg# Some systems (esp. on ia64) link data and code symbols differently,
5070282152Spfg# so use this general approach.
5071282152Spfglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5072282152Spfg
5073282152Spfg# Transform an extracted symbol line into symbol name and symbol address
5074282152Spfglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5075282152Spfg
5076282152Spfg# Handle CRLF in mingw tool chain
5077282152Spfgopt_cr=
5078282152Spfgcase $build_os in
5079282152Spfgmingw*)
5080282152Spfg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5081282152Spfg  ;;
5082282152Spfgesac
5083282152Spfg
5084282152Spfg# Try without a prefix underscore, then with it.
5085282152Spfgfor ac_symprfx in "" "_"; do
5086282152Spfg
5087282152Spfg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5088282152Spfg  symxfrm="\\1 $ac_symprfx\\2 \\2"
5089282152Spfg
5090282152Spfg  # Write the raw and C identifiers.
5091282152Spfg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5092282152Spfg    # Fake it for dumpbin and say T for any non-static function
5093282152Spfg    # and D for any global variable.
5094282152Spfg    # Also find C++ and __fastcall symbols from MSVC++,
5095282152Spfg    # which start with @ or ?.
5096282152Spfg    lt_cv_sys_global_symbol_pipe="$AWK '"\
5097282152Spfg"     {last_section=section; section=\$ 3};"\
5098282152Spfg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5099282152Spfg"     \$ 0!~/External *\|/{next};"\
5100282152Spfg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5101282152Spfg"     {if(hide[section]) next};"\
5102282152Spfg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5103282152Spfg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5104282152Spfg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5105282152Spfg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5106282152Spfg"     ' prfx=^$ac_symprfx"
5107282152Spfg  else
5108282152Spfg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5109282152Spfg  fi
5110282152Spfg
5111282152Spfg  # Check to see that the pipe works correctly.
5112282152Spfg  pipe_works=no
5113282152Spfg
5114282152Spfg  rm -f conftest*
5115282152Spfg  cat > conftest.$ac_ext <<_LT_EOF
5116282152Spfg#ifdef __cplusplus
5117282152Spfgextern "C" {
5118282152Spfg#endif
5119282152Spfgchar nm_test_var;
5120282152Spfgvoid nm_test_func(void);
5121282152Spfgvoid nm_test_func(void){}
5122282152Spfg#ifdef __cplusplus
5123282152Spfg}
5124282152Spfg#endif
5125282152Spfgint main(){nm_test_var='a';nm_test_func();return(0);}
5126282152Spfg_LT_EOF
5127282152Spfg
5128282152Spfg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129282152Spfg  (eval $ac_compile) 2>&5
5130282152Spfg  ac_status=$?
5131282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132282152Spfg  (exit $ac_status); }; then
5133282152Spfg    # Now try to grab the symbols.
5134282152Spfg    nlist=conftest.nm
5135282152Spfg    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5136282152Spfg  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5137282152Spfg  ac_status=$?
5138282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139282152Spfg  (exit $ac_status); } && test -s "$nlist"; then
5140282152Spfg      # Try sorting and uniquifying the output.
5141282152Spfg      if sort "$nlist" | uniq > "$nlist"T; then
5142282152Spfg	mv -f "$nlist"T "$nlist"
5143282152Spfg      else
5144282152Spfg	rm -f "$nlist"T
5145282152Spfg      fi
5146282152Spfg
5147282152Spfg      # Make sure that we snagged all the symbols we need.
5148282152Spfg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5149282152Spfg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5150282152Spfg	  cat <<_LT_EOF > conftest.$ac_ext
5151282152Spfg#ifdef __cplusplus
5152282152Spfgextern "C" {
5153282152Spfg#endif
5154282152Spfg
5155282152Spfg_LT_EOF
5156282152Spfg	  # Now generate the symbol file.
5157282152Spfg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5158282152Spfg
5159282152Spfg	  cat <<_LT_EOF >> conftest.$ac_ext
5160282152Spfg
5161282152Spfg/* The mapping between symbol names and symbols.  */
5162282152Spfgconst struct {
5163282152Spfg  const char *name;
5164282152Spfg  void       *address;
5165282152Spfg}
5166282152Spfglt__PROGRAM__LTX_preloaded_symbols[] =
5167282152Spfg{
5168282152Spfg  { "@PROGRAM@", (void *) 0 },
5169282152Spfg_LT_EOF
5170282152Spfg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5171282152Spfg	  cat <<\_LT_EOF >> conftest.$ac_ext
5172282152Spfg  {0, (void *) 0}
5173282152Spfg};
5174282152Spfg
5175282152Spfg/* This works around a problem in FreeBSD linker */
5176282152Spfg#ifdef FREEBSD_WORKAROUND
5177282152Spfgstatic const void *lt_preloaded_setup() {
5178282152Spfg  return lt__PROGRAM__LTX_preloaded_symbols;
5179282152Spfg}
5180282152Spfg#endif
5181282152Spfg
5182282152Spfg#ifdef __cplusplus
5183282152Spfg}
5184282152Spfg#endif
5185282152Spfg_LT_EOF
5186282152Spfg	  # Now try linking the two files.
5187282152Spfg	  mv conftest.$ac_objext conftstm.$ac_objext
5188282152Spfg	  lt_save_LIBS="$LIBS"
5189282152Spfg	  lt_save_CFLAGS="$CFLAGS"
5190282152Spfg	  LIBS="conftstm.$ac_objext"
5191282152Spfg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5192282152Spfg	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193282152Spfg  (eval $ac_link) 2>&5
5194282152Spfg  ac_status=$?
5195282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196282152Spfg  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5197282152Spfg	    pipe_works=yes
5198282152Spfg	  fi
5199282152Spfg	  LIBS="$lt_save_LIBS"
5200282152Spfg	  CFLAGS="$lt_save_CFLAGS"
5201282152Spfg	else
5202282152Spfg	  echo "cannot find nm_test_func in $nlist" >&5
5203282152Spfg	fi
5204282152Spfg      else
5205282152Spfg	echo "cannot find nm_test_var in $nlist" >&5
5206282152Spfg      fi
5207282152Spfg    else
5208282152Spfg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5209282152Spfg    fi
5210282152Spfg  else
5211282152Spfg    echo "$progname: failed program was:" >&5
5212282152Spfg    cat conftest.$ac_ext >&5
5213282152Spfg  fi
5214282152Spfg  rm -f conftest* conftst*
5215282152Spfg
5216282152Spfg  # Do not use the global_symbol_pipe unless it works.
5217282152Spfg  if test "$pipe_works" = yes; then
5218282152Spfg    break
5219282152Spfg  else
5220282152Spfg    lt_cv_sys_global_symbol_pipe=
5221282152Spfg  fi
5222282152Spfgdone
5223282152Spfg
5224282152Spfgfi
5225282152Spfg
5226282152Spfgif test -z "$lt_cv_sys_global_symbol_pipe"; then
5227282152Spfg  lt_cv_sys_global_symbol_to_cdecl=
5228282152Spfgfi
5229282152Spfgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5230282152Spfg  echo "$as_me:$LINENO: result: failed" >&5
5231282152Spfgecho "${ECHO_T}failed" >&6
5232282152Spfgelse
5233282152Spfg  echo "$as_me:$LINENO: result: ok" >&5
5234282152Spfgecho "${ECHO_T}ok" >&6
5235282152Spfgfi
5236282152Spfg
5237282152Spfg
5238282152Spfg
5239282152Spfg
5240282152Spfg
5241282152Spfg
5242282152Spfg
5243282152Spfg
5244282152Spfg
5245282152Spfg
5246282152Spfg
5247282152Spfg
5248282152Spfg
5249282152Spfg
5250282152Spfg
5251282152Spfg
5252282152Spfg
5253282152Spfg
5254169695Skan# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5255169695Skanif test "${enable_libtool_lock+set}" = set; then
5256169695Skan  enableval="$enable_libtool_lock"
5257169695Skan
5258169695Skanfi;
5259282152Spfgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5260169695Skan
5261169695Skan# Some flags need to be propagated to the compiler or linker for good
5262169695Skan# libtool support.
5263169695Skancase $host in
5264282152Spfgia64-*-hpux*)
5265169695Skan  # Find out which ABI we are using.
5266282152Spfg  echo 'int i;' > conftest.$ac_ext
5267169695Skan  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268169695Skan  (eval $ac_compile) 2>&5
5269169695Skan  ac_status=$?
5270169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271169695Skan  (exit $ac_status); }; then
5272169695Skan    case `/usr/bin/file conftest.$ac_objext` in
5273282152Spfg      *ELF-32*)
5274282152Spfg	HPUX_IA64_MODE="32"
5275282152Spfg	;;
5276282152Spfg      *ELF-64*)
5277282152Spfg	HPUX_IA64_MODE="64"
5278282152Spfg	;;
5279169695Skan    esac
5280169695Skan  fi
5281169695Skan  rm -rf conftest*
5282169695Skan  ;;
5283282152Spfg*-*-irix6*)
5284169695Skan  # Find out which ABI we are using.
5285282152Spfg  echo '#line 5285 "configure"' > conftest.$ac_ext
5286169695Skan  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287169695Skan  (eval $ac_compile) 2>&5
5288169695Skan  ac_status=$?
5289169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290169695Skan  (exit $ac_status); }; then
5291282152Spfg    if test "$lt_cv_prog_gnu_ld" = yes; then
5292282152Spfg      case `/usr/bin/file conftest.$ac_objext` in
5293282152Spfg	*32-bit*)
5294282152Spfg	  LD="${LD-ld} -melf32bsmip"
5295282152Spfg	  ;;
5296282152Spfg	*N32*)
5297282152Spfg	  LD="${LD-ld} -melf32bmipn32"
5298282152Spfg	  ;;
5299282152Spfg	*64-bit*)
5300282152Spfg	  LD="${LD-ld} -melf64bmip"
5301282152Spfg	;;
5302282152Spfg      esac
5303282152Spfg    else
5304282152Spfg      case `/usr/bin/file conftest.$ac_objext` in
5305282152Spfg	*32-bit*)
5306282152Spfg	  LD="${LD-ld} -32"
5307282152Spfg	  ;;
5308282152Spfg	*N32*)
5309282152Spfg	  LD="${LD-ld} -n32"
5310282152Spfg	  ;;
5311282152Spfg	*64-bit*)
5312282152Spfg	  LD="${LD-ld} -64"
5313282152Spfg	  ;;
5314282152Spfg      esac
5315282152Spfg    fi
5316169695Skan  fi
5317169695Skan  rm -rf conftest*
5318169695Skan  ;;
5319169695Skan
5320282152Spfgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5321282152Spfgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5322169695Skan  # Find out which ABI we are using.
5323169695Skan  echo 'int i;' > conftest.$ac_ext
5324169695Skan  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325169695Skan  (eval $ac_compile) 2>&5
5326169695Skan  ac_status=$?
5327169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328169695Skan  (exit $ac_status); }; then
5329282152Spfg    case `/usr/bin/file conftest.o` in
5330282152Spfg      *32-bit*)
5331282152Spfg	case $host in
5332282152Spfg	  x86_64-*kfreebsd*-gnu)
5333282152Spfg	    LD="${LD-ld} -m elf_i386_fbsd"
5334282152Spfg	    ;;
5335282152Spfg	  x86_64-*linux*)
5336282152Spfg	    LD="${LD-ld} -m elf_i386"
5337282152Spfg	    ;;
5338282152Spfg	  ppc64-*linux*|powerpc64-*linux*)
5339282152Spfg	    LD="${LD-ld} -m elf32ppclinux"
5340282152Spfg	    ;;
5341282152Spfg	  s390x-*linux*)
5342282152Spfg	    LD="${LD-ld} -m elf_s390"
5343282152Spfg	    ;;
5344282152Spfg	  sparc64-*linux*)
5345282152Spfg	    LD="${LD-ld} -m elf32_sparc"
5346282152Spfg	    ;;
5347282152Spfg	esac
5348282152Spfg	;;
5349282152Spfg      *64-bit*)
5350282152Spfg	case $host in
5351282152Spfg	  x86_64-*kfreebsd*-gnu)
5352282152Spfg	    LD="${LD-ld} -m elf_x86_64_fbsd"
5353282152Spfg	    ;;
5354282152Spfg	  x86_64-*linux*)
5355282152Spfg	    LD="${LD-ld} -m elf_x86_64"
5356282152Spfg	    ;;
5357282152Spfg	  ppc*-*linux*|powerpc*-*linux*)
5358282152Spfg	    LD="${LD-ld} -m elf64ppc"
5359282152Spfg	    ;;
5360282152Spfg	  s390*-*linux*|s390*-*tpf*)
5361282152Spfg	    LD="${LD-ld} -m elf64_s390"
5362282152Spfg	    ;;
5363282152Spfg	  sparc*-*linux*)
5364282152Spfg	    LD="${LD-ld} -m elf64_sparc"
5365282152Spfg	    ;;
5366282152Spfg	esac
5367282152Spfg	;;
5368169695Skan    esac
5369169695Skan  fi
5370169695Skan  rm -rf conftest*
5371169695Skan  ;;
5372169695Skan
5373169695Skan*-*-sco3.2v5*)
5374169695Skan  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5375169695Skan  SAVE_CFLAGS="$CFLAGS"
5376169695Skan  CFLAGS="$CFLAGS -belf"
5377169695Skan  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5378169695Skanecho $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5379169695Skanif test "${lt_cv_cc_needs_belf+set}" = set; then
5380169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
5381169695Skanelse
5382282152Spfg  ac_ext=c
5383169695Skanac_cpp='$CPP $CPPFLAGS'
5384169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
5387169695Skan
5388169695Skan     cat >conftest.$ac_ext <<_ACEOF
5389169695Skan/* confdefs.h.  */
5390169695Skan_ACEOF
5391169695Skancat confdefs.h >>conftest.$ac_ext
5392169695Skancat >>conftest.$ac_ext <<_ACEOF
5393169695Skan/* end confdefs.h.  */
5394169695Skan
5395169695Skanint
5396169695Skanmain ()
5397169695Skan{
5398169695Skan
5399169695Skan  ;
5400169695Skan  return 0;
5401169695Skan}
5402169695Skan_ACEOF
5403169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
5404169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405169695Skan  (eval $ac_link) 2>conftest.er1
5406169695Skan  ac_status=$?
5407169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
5408169695Skan  rm -f conftest.er1
5409169695Skan  cat conftest.err >&5
5410169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411169695Skan  (exit $ac_status); } &&
5412169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
5413169695Skan			 || test ! -s conftest.err'
5414169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415169695Skan  (eval $ac_try) 2>&5
5416169695Skan  ac_status=$?
5417169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418169695Skan  (exit $ac_status); }; } &&
5419169695Skan	 { ac_try='test -s conftest$ac_exeext'
5420169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421169695Skan  (eval $ac_try) 2>&5
5422169695Skan  ac_status=$?
5423169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424169695Skan  (exit $ac_status); }; }; then
5425169695Skan  lt_cv_cc_needs_belf=yes
5426169695Skanelse
5427169695Skan  echo "$as_me: failed program was:" >&5
5428169695Skansed 's/^/| /' conftest.$ac_ext >&5
5429169695Skan
5430169695Skanlt_cv_cc_needs_belf=no
5431169695Skanfi
5432169695Skanrm -f conftest.err conftest.$ac_objext \
5433169695Skan      conftest$ac_exeext conftest.$ac_ext
5434169695Skan     ac_ext=c
5435169695Skanac_cpp='$CPP $CPPFLAGS'
5436169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
5439169695Skan
5440169695Skanfi
5441169695Skanecho "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5442169695Skanecho "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5443169695Skan  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5444169695Skan    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5445169695Skan    CFLAGS="$SAVE_CFLAGS"
5446169695Skan  fi
5447169695Skan  ;;
5448282152Spfgsparc*-*solaris*)
5449282152Spfg  # Find out which ABI we are using.
5450282152Spfg  echo 'int i;' > conftest.$ac_ext
5451282152Spfg  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452282152Spfg  (eval $ac_compile) 2>&5
5453282152Spfg  ac_status=$?
5454282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455282152Spfg  (exit $ac_status); }; then
5456282152Spfg    case `/usr/bin/file conftest.o` in
5457282152Spfg    *64-bit*)
5458282152Spfg      case $lt_cv_prog_gnu_ld in
5459282152Spfg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5460282152Spfg      *)    LD="${LD-ld} -64" ;;
5461282152Spfg      esac
5462282152Spfg      ;;
5463282152Spfg    esac
5464282152Spfg  fi
5465282152Spfg  rm -rf conftest*
5466282152Spfg  ;;
5467282152Spfgesac
5468169695Skan
5469282152Spfgneed_locks="$enable_libtool_lock"
5470169695Skan
5471282152Spfgac_ext=c
5472282152Spfgac_cpp='$CPP $CPPFLAGS'
5473282152Spfgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474282152Spfgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475282152Spfgac_compiler_gnu=$ac_cv_c_compiler_gnu
5476282152Spfgecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5477282152Spfgecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5478282152Spfg# On Suns, sometimes $CPP names a directory.
5479282152Spfgif test -n "$CPP" && test -d "$CPP"; then
5480282152Spfg  CPP=
5481282152Spfgfi
5482282152Spfgif test -z "$CPP"; then
5483282152Spfg  if test "${ac_cv_prog_CPP+set}" = set; then
5484282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
5485282152Spfgelse
5486282152Spfg      # Double quotes because CPP needs to be expanded
5487282152Spfg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5488282152Spfg    do
5489282152Spfg      ac_preproc_ok=false
5490282152Spfgfor ac_c_preproc_warn_flag in '' yes
5491282152Spfgdo
5492282152Spfg  # Use a header file that comes with gcc, so configuring glibc
5493282152Spfg  # with a fresh cross-compiler works.
5494282152Spfg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495282152Spfg  # <limits.h> exists even on freestanding compilers.
5496282152Spfg  # On the NeXT, cc -E runs the code through the compiler's parser,
5497282152Spfg  # not just through cpp. "Syntax error" is here to catch this case.
5498282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5499282152Spfg/* confdefs.h.  */
5500282152Spfg_ACEOF
5501282152Spfgcat confdefs.h >>conftest.$ac_ext
5502282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5503282152Spfg/* end confdefs.h.  */
5504282152Spfg#ifdef __STDC__
5505282152Spfg# include <limits.h>
5506282152Spfg#else
5507282152Spfg# include <assert.h>
5508282152Spfg#endif
5509282152Spfg		     Syntax error
5510282152Spfg_ACEOF
5511282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512282152Spfg  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513282152Spfg  ac_status=$?
5514282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5515282152Spfg  rm -f conftest.er1
5516282152Spfg  cat conftest.err >&5
5517282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518282152Spfg  (exit $ac_status); } >/dev/null; then
5519282152Spfg  if test -s conftest.err; then
5520282152Spfg    ac_cpp_err=$ac_c_preproc_warn_flag
5521282152Spfg    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5522282152Spfg  else
5523282152Spfg    ac_cpp_err=
5524282152Spfg  fi
5525282152Spfgelse
5526282152Spfg  ac_cpp_err=yes
5527282152Spfgfi
5528282152Spfgif test -z "$ac_cpp_err"; then
5529282152Spfg  :
5530282152Spfgelse
5531282152Spfg  echo "$as_me: failed program was:" >&5
5532282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5533282152Spfg
5534282152Spfg  # Broken: fails on valid input.
5535282152Spfgcontinue
5536282152Spfgfi
5537282152Spfgrm -f conftest.err conftest.$ac_ext
5538282152Spfg
5539282152Spfg  # OK, works on sane cases.  Now check whether non-existent headers
5540282152Spfg  # can be detected and how.
5541282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5542282152Spfg/* confdefs.h.  */
5543282152Spfg_ACEOF
5544282152Spfgcat confdefs.h >>conftest.$ac_ext
5545282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5546282152Spfg/* end confdefs.h.  */
5547282152Spfg#include <ac_nonexistent.h>
5548282152Spfg_ACEOF
5549282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550282152Spfg  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551282152Spfg  ac_status=$?
5552282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5553282152Spfg  rm -f conftest.er1
5554282152Spfg  cat conftest.err >&5
5555282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556282152Spfg  (exit $ac_status); } >/dev/null; then
5557282152Spfg  if test -s conftest.err; then
5558282152Spfg    ac_cpp_err=$ac_c_preproc_warn_flag
5559282152Spfg    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560282152Spfg  else
5561282152Spfg    ac_cpp_err=
5562282152Spfg  fi
5563282152Spfgelse
5564282152Spfg  ac_cpp_err=yes
5565282152Spfgfi
5566282152Spfgif test -z "$ac_cpp_err"; then
5567282152Spfg  # Broken: success on invalid input.
5568282152Spfgcontinue
5569282152Spfgelse
5570282152Spfg  echo "$as_me: failed program was:" >&5
5571282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5572282152Spfg
5573282152Spfg  # Passes both tests.
5574282152Spfgac_preproc_ok=:
5575282152Spfgbreak
5576282152Spfgfi
5577282152Spfgrm -f conftest.err conftest.$ac_ext
5578282152Spfg
5579282152Spfgdone
5580282152Spfg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581282152Spfgrm -f conftest.err conftest.$ac_ext
5582282152Spfgif $ac_preproc_ok; then
5583282152Spfg  break
5584282152Spfgfi
5585282152Spfg
5586282152Spfg    done
5587282152Spfg    ac_cv_prog_CPP=$CPP
5588282152Spfg
5589282152Spfgfi
5590282152Spfg  CPP=$ac_cv_prog_CPP
5591282152Spfgelse
5592282152Spfg  ac_cv_prog_CPP=$CPP
5593282152Spfgfi
5594282152Spfgecho "$as_me:$LINENO: result: $CPP" >&5
5595282152Spfgecho "${ECHO_T}$CPP" >&6
5596282152Spfgac_preproc_ok=false
5597282152Spfgfor ac_c_preproc_warn_flag in '' yes
5598282152Spfgdo
5599282152Spfg  # Use a header file that comes with gcc, so configuring glibc
5600282152Spfg  # with a fresh cross-compiler works.
5601282152Spfg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602282152Spfg  # <limits.h> exists even on freestanding compilers.
5603282152Spfg  # On the NeXT, cc -E runs the code through the compiler's parser,
5604282152Spfg  # not just through cpp. "Syntax error" is here to catch this case.
5605282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5606282152Spfg/* confdefs.h.  */
5607282152Spfg_ACEOF
5608282152Spfgcat confdefs.h >>conftest.$ac_ext
5609282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5610282152Spfg/* end confdefs.h.  */
5611282152Spfg#ifdef __STDC__
5612282152Spfg# include <limits.h>
5613282152Spfg#else
5614282152Spfg# include <assert.h>
5615282152Spfg#endif
5616282152Spfg		     Syntax error
5617282152Spfg_ACEOF
5618282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5619282152Spfg  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5620282152Spfg  ac_status=$?
5621282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5622282152Spfg  rm -f conftest.er1
5623282152Spfg  cat conftest.err >&5
5624282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625282152Spfg  (exit $ac_status); } >/dev/null; then
5626282152Spfg  if test -s conftest.err; then
5627282152Spfg    ac_cpp_err=$ac_c_preproc_warn_flag
5628282152Spfg    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5629282152Spfg  else
5630282152Spfg    ac_cpp_err=
5631282152Spfg  fi
5632282152Spfgelse
5633282152Spfg  ac_cpp_err=yes
5634282152Spfgfi
5635282152Spfgif test -z "$ac_cpp_err"; then
5636282152Spfg  :
5637282152Spfgelse
5638282152Spfg  echo "$as_me: failed program was:" >&5
5639282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5640282152Spfg
5641282152Spfg  # Broken: fails on valid input.
5642282152Spfgcontinue
5643282152Spfgfi
5644282152Spfgrm -f conftest.err conftest.$ac_ext
5645282152Spfg
5646282152Spfg  # OK, works on sane cases.  Now check whether non-existent headers
5647282152Spfg  # can be detected and how.
5648282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5649282152Spfg/* confdefs.h.  */
5650282152Spfg_ACEOF
5651282152Spfgcat confdefs.h >>conftest.$ac_ext
5652282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5653282152Spfg/* end confdefs.h.  */
5654282152Spfg#include <ac_nonexistent.h>
5655282152Spfg_ACEOF
5656282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657282152Spfg  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658282152Spfg  ac_status=$?
5659282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5660282152Spfg  rm -f conftest.er1
5661282152Spfg  cat conftest.err >&5
5662282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663282152Spfg  (exit $ac_status); } >/dev/null; then
5664282152Spfg  if test -s conftest.err; then
5665282152Spfg    ac_cpp_err=$ac_c_preproc_warn_flag
5666282152Spfg    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5667282152Spfg  else
5668282152Spfg    ac_cpp_err=
5669282152Spfg  fi
5670282152Spfgelse
5671282152Spfg  ac_cpp_err=yes
5672282152Spfgfi
5673282152Spfgif test -z "$ac_cpp_err"; then
5674282152Spfg  # Broken: success on invalid input.
5675282152Spfgcontinue
5676282152Spfgelse
5677282152Spfg  echo "$as_me: failed program was:" >&5
5678282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5679282152Spfg
5680282152Spfg  # Passes both tests.
5681282152Spfgac_preproc_ok=:
5682282152Spfgbreak
5683282152Spfgfi
5684282152Spfgrm -f conftest.err conftest.$ac_ext
5685282152Spfg
5686282152Spfgdone
5687282152Spfg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688282152Spfgrm -f conftest.err conftest.$ac_ext
5689282152Spfgif $ac_preproc_ok; then
5690282152Spfg  :
5691282152Spfgelse
5692282152Spfg  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5693282152SpfgSee \`config.log' for more details." >&5
5694282152Spfgecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5695282152SpfgSee \`config.log' for more details." >&2;}
5696282152Spfg   { (exit 1); exit 1; }; }
5697282152Spfgfi
5698282152Spfg
5699282152Spfgac_ext=c
5700282152Spfgac_cpp='$CPP $CPPFLAGS'
5701282152Spfgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702282152Spfgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703282152Spfgac_compiler_gnu=$ac_cv_c_compiler_gnu
5704282152Spfg
5705282152Spfg
5706282152Spfgecho "$as_me:$LINENO: checking for ANSI C header files" >&5
5707282152Spfgecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5708282152Spfgif test "${ac_cv_header_stdc+set}" = set; then
5709282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
5710282152Spfgelse
5711282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5712282152Spfg/* confdefs.h.  */
5713282152Spfg_ACEOF
5714282152Spfgcat confdefs.h >>conftest.$ac_ext
5715282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5716282152Spfg/* end confdefs.h.  */
5717282152Spfg#include <stdlib.h>
5718282152Spfg#include <stdarg.h>
5719282152Spfg#include <string.h>
5720282152Spfg#include <float.h>
5721282152Spfg
5722282152Spfgint
5723282152Spfgmain ()
5724282152Spfg{
5725282152Spfg
5726282152Spfg  ;
5727282152Spfg  return 0;
5728282152Spfg}
5729282152Spfg_ACEOF
5730282152Spfgrm -f conftest.$ac_objext
5731282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732282152Spfg  (eval $ac_compile) 2>conftest.er1
5733282152Spfg  ac_status=$?
5734282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5735282152Spfg  rm -f conftest.er1
5736282152Spfg  cat conftest.err >&5
5737282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738282152Spfg  (exit $ac_status); } &&
5739282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
5740282152Spfg			 || test ! -s conftest.err'
5741282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742282152Spfg  (eval $ac_try) 2>&5
5743282152Spfg  ac_status=$?
5744282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745282152Spfg  (exit $ac_status); }; } &&
5746282152Spfg	 { ac_try='test -s conftest.$ac_objext'
5747282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748282152Spfg  (eval $ac_try) 2>&5
5749282152Spfg  ac_status=$?
5750282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751282152Spfg  (exit $ac_status); }; }; then
5752282152Spfg  ac_cv_header_stdc=yes
5753282152Spfgelse
5754282152Spfg  echo "$as_me: failed program was:" >&5
5755282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5756282152Spfg
5757282152Spfgac_cv_header_stdc=no
5758282152Spfgfi
5759282152Spfgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760282152Spfg
5761282152Spfgif test $ac_cv_header_stdc = yes; then
5762282152Spfg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5764282152Spfg/* confdefs.h.  */
5765282152Spfg_ACEOF
5766282152Spfgcat confdefs.h >>conftest.$ac_ext
5767282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5768282152Spfg/* end confdefs.h.  */
5769282152Spfg#include <string.h>
5770282152Spfg
5771282152Spfg_ACEOF
5772282152Spfgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5773282152Spfg  $EGREP "memchr" >/dev/null 2>&1; then
5774282152Spfg  :
5775282152Spfgelse
5776282152Spfg  ac_cv_header_stdc=no
5777282152Spfgfi
5778282152Spfgrm -f conftest*
5779282152Spfg
5780282152Spfgfi
5781282152Spfg
5782282152Spfgif test $ac_cv_header_stdc = yes; then
5783282152Spfg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5784282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5785282152Spfg/* confdefs.h.  */
5786282152Spfg_ACEOF
5787282152Spfgcat confdefs.h >>conftest.$ac_ext
5788282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5789282152Spfg/* end confdefs.h.  */
5790282152Spfg#include <stdlib.h>
5791282152Spfg
5792282152Spfg_ACEOF
5793282152Spfgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794282152Spfg  $EGREP "free" >/dev/null 2>&1; then
5795282152Spfg  :
5796282152Spfgelse
5797282152Spfg  ac_cv_header_stdc=no
5798282152Spfgfi
5799282152Spfgrm -f conftest*
5800282152Spfg
5801282152Spfgfi
5802282152Spfg
5803282152Spfgif test $ac_cv_header_stdc = yes; then
5804282152Spfg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5805282152Spfg  if test "$cross_compiling" = yes; then
5806282152Spfg  :
5807282152Spfgelse
5808282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5809282152Spfg/* confdefs.h.  */
5810282152Spfg_ACEOF
5811282152Spfgcat confdefs.h >>conftest.$ac_ext
5812282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5813282152Spfg/* end confdefs.h.  */
5814282152Spfg#include <ctype.h>
5815282152Spfg#if ((' ' & 0x0FF) == 0x020)
5816282152Spfg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5817282152Spfg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5818282152Spfg#else
5819282152Spfg# define ISLOWER(c) \
5820282152Spfg		   (('a' <= (c) && (c) <= 'i') \
5821282152Spfg		     || ('j' <= (c) && (c) <= 'r') \
5822282152Spfg		     || ('s' <= (c) && (c) <= 'z'))
5823282152Spfg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5824282152Spfg#endif
5825282152Spfg
5826282152Spfg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5827282152Spfgint
5828282152Spfgmain ()
5829282152Spfg{
5830282152Spfg  int i;
5831282152Spfg  for (i = 0; i < 256; i++)
5832282152Spfg    if (XOR (islower (i), ISLOWER (i))
5833282152Spfg	|| toupper (i) != TOUPPER (i))
5834282152Spfg      exit(2);
5835282152Spfg  exit (0);
5836282152Spfg}
5837282152Spfg_ACEOF
5838282152Spfgrm -f conftest$ac_exeext
5839282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840282152Spfg  (eval $ac_link) 2>&5
5841282152Spfg  ac_status=$?
5842282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843282152Spfg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5844282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845282152Spfg  (eval $ac_try) 2>&5
5846282152Spfg  ac_status=$?
5847282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848282152Spfg  (exit $ac_status); }; }; then
5849282152Spfg  :
5850282152Spfgelse
5851282152Spfg  echo "$as_me: program exited with status $ac_status" >&5
5852282152Spfgecho "$as_me: failed program was:" >&5
5853282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5854282152Spfg
5855282152Spfg( exit $ac_status )
5856282152Spfgac_cv_header_stdc=no
5857282152Spfgfi
5858282152Spfgrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5859282152Spfgfi
5860282152Spfgfi
5861282152Spfgfi
5862282152Spfgecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5863282152Spfgecho "${ECHO_T}$ac_cv_header_stdc" >&6
5864282152Spfgif test $ac_cv_header_stdc = yes; then
5865282152Spfg
5866282152Spfgcat >>confdefs.h <<\_ACEOF
5867282152Spfg#define STDC_HEADERS 1
5868282152Spfg_ACEOF
5869282152Spfg
5870282152Spfgfi
5871282152Spfg
5872282152Spfg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5873282152Spfg
5874282152Spfg
5875282152Spfg
5876282152Spfg
5877282152Spfg
5878282152Spfg
5879282152Spfg
5880282152Spfg
5881282152Spfg
5882282152Spfgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5883282152Spfg		  inttypes.h stdint.h unistd.h
5884282152Spfgdo
5885282152Spfgas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886282152Spfgecho "$as_me:$LINENO: checking for $ac_header" >&5
5887282152Spfgecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5888282152Spfgif eval "test \"\${$as_ac_Header+set}\" = set"; then
5889282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
5890282152Spfgelse
5891282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5892282152Spfg/* confdefs.h.  */
5893282152Spfg_ACEOF
5894282152Spfgcat confdefs.h >>conftest.$ac_ext
5895282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5896282152Spfg/* end confdefs.h.  */
5897282152Spfg$ac_includes_default
5898282152Spfg
5899282152Spfg#include <$ac_header>
5900282152Spfg_ACEOF
5901282152Spfgrm -f conftest.$ac_objext
5902282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903282152Spfg  (eval $ac_compile) 2>conftest.er1
5904282152Spfg  ac_status=$?
5905282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5906282152Spfg  rm -f conftest.er1
5907282152Spfg  cat conftest.err >&5
5908282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909282152Spfg  (exit $ac_status); } &&
5910282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
5911282152Spfg			 || test ! -s conftest.err'
5912282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913282152Spfg  (eval $ac_try) 2>&5
5914282152Spfg  ac_status=$?
5915282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916282152Spfg  (exit $ac_status); }; } &&
5917282152Spfg	 { ac_try='test -s conftest.$ac_objext'
5918282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919282152Spfg  (eval $ac_try) 2>&5
5920282152Spfg  ac_status=$?
5921282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922282152Spfg  (exit $ac_status); }; }; then
5923282152Spfg  eval "$as_ac_Header=yes"
5924282152Spfgelse
5925282152Spfg  echo "$as_me: failed program was:" >&5
5926282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5927282152Spfg
5928282152Spfgeval "$as_ac_Header=no"
5929282152Spfgfi
5930282152Spfgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931282152Spfgfi
5932282152Spfgecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933282152Spfgecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934282152Spfgif test `eval echo '${'$as_ac_Header'}'` = yes; then
5935282152Spfg  cat >>confdefs.h <<_ACEOF
5936282152Spfg#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937282152Spfg_ACEOF
5938282152Spfg
5939282152Spfgfi
5940282152Spfg
5941282152Spfgdone
5942282152Spfg
5943282152Spfg
5944282152Spfg
5945282152Spfgfor ac_header in dlfcn.h
5946282152Spfgdo
5947282152Spfgas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948282152Spfgecho "$as_me:$LINENO: checking for $ac_header" >&5
5949282152Spfgecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950282152Spfgif eval "test \"\${$as_ac_Header+set}\" = set"; then
5951282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
5952282152Spfgelse
5953282152Spfg  cat >conftest.$ac_ext <<_ACEOF
5954282152Spfg/* confdefs.h.  */
5955282152Spfg_ACEOF
5956282152Spfgcat confdefs.h >>conftest.$ac_ext
5957282152Spfgcat >>conftest.$ac_ext <<_ACEOF
5958282152Spfg/* end confdefs.h.  */
5959282152Spfg$ac_includes_default
5960282152Spfg
5961282152Spfg#include <$ac_header>
5962282152Spfg_ACEOF
5963282152Spfgrm -f conftest.$ac_objext
5964282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965282152Spfg  (eval $ac_compile) 2>conftest.er1
5966282152Spfg  ac_status=$?
5967282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
5968282152Spfg  rm -f conftest.er1
5969282152Spfg  cat conftest.err >&5
5970282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971282152Spfg  (exit $ac_status); } &&
5972282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
5973282152Spfg			 || test ! -s conftest.err'
5974282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975282152Spfg  (eval $ac_try) 2>&5
5976282152Spfg  ac_status=$?
5977282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978282152Spfg  (exit $ac_status); }; } &&
5979282152Spfg	 { ac_try='test -s conftest.$ac_objext'
5980282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981282152Spfg  (eval $ac_try) 2>&5
5982282152Spfg  ac_status=$?
5983282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984282152Spfg  (exit $ac_status); }; }; then
5985282152Spfg  eval "$as_ac_Header=yes"
5986282152Spfgelse
5987282152Spfg  echo "$as_me: failed program was:" >&5
5988282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
5989282152Spfg
5990282152Spfgeval "$as_ac_Header=no"
5991282152Spfgfi
5992282152Spfgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993282152Spfgfi
5994282152Spfgecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5995282152Spfgecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996282152Spfgif test `eval echo '${'$as_ac_Header'}'` = yes; then
5997282152Spfg  cat >>confdefs.h <<_ACEOF
5998282152Spfg#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5999282152Spfg_ACEOF
6000282152Spfg
6001282152Spfgfi
6002282152Spfg
6003282152Spfgdone
6004282152Spfg
6005282152Spfg
6006282152Spfg
6007282152Spfg# This can be used to rebuild libtool when needed
6008282152SpfgLIBTOOL_DEPS="$ltmain"
6009282152Spfg
6010282152Spfg# Always use our own libtool.
6011282152SpfgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6012282152Spfg
6013282152Spfg
6014282152Spfg
6015282152Spfg
6016282152Spfg
6017282152Spfg
6018282152Spfg
6019282152Spfg
6020282152Spfg
6021282152Spfg
6022282152Spfg
6023282152Spfg
6024282152Spfg
6025282152Spfg
6026282152Spfg
6027282152Spfg
6028282152Spfg
6029282152Spfg
6030282152Spfg
6031282152Spfg
6032282152Spfg
6033282152Spfg
6034282152Spfg
6035282152Spfg
6036282152Spfg
6037282152Spfgtest -z "$LN_S" && LN_S="ln -s"
6038282152Spfg
6039282152Spfg
6040282152Spfg
6041282152Spfg
6042282152Spfg
6043282152Spfg
6044282152Spfg
6045282152Spfg
6046282152Spfg
6047282152Spfg
6048282152Spfg
6049282152Spfg
6050282152Spfg
6051282152Spfg
6052282152Spfgif test -n "${ZSH_VERSION+set}" ; then
6053282152Spfg   setopt NO_GLOB_SUBST
6054282152Spfgfi
6055282152Spfg
6056282152Spfgecho "$as_me:$LINENO: checking for objdir" >&5
6057282152Spfgecho $ECHO_N "checking for objdir... $ECHO_C" >&6
6058282152Spfgif test "${lt_cv_objdir+set}" = set; then
6059282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6060282152Spfgelse
6061282152Spfg  rm -f .libs 2>/dev/null
6062282152Spfgmkdir .libs 2>/dev/null
6063282152Spfgif test -d .libs; then
6064282152Spfg  lt_cv_objdir=.libs
6065282152Spfgelse
6066282152Spfg  # MS-DOS does not allow filenames that begin with a dot.
6067282152Spfg  lt_cv_objdir=_libs
6068282152Spfgfi
6069282152Spfgrmdir .libs 2>/dev/null
6070282152Spfgfi
6071282152Spfgecho "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6072282152Spfgecho "${ECHO_T}$lt_cv_objdir" >&6
6073282152Spfgobjdir=$lt_cv_objdir
6074282152Spfg
6075282152Spfg
6076282152Spfg
6077282152Spfg
6078282152Spfg
6079282152Spfgcat >>confdefs.h <<_ACEOF
6080282152Spfg#define LT_OBJDIR "$lt_cv_objdir/"
6081282152Spfg_ACEOF
6082282152Spfg
6083282152Spfg
6084282152Spfg
6085282152Spfg
6086282152Spfg
6087282152Spfg
6088282152Spfg
6089282152Spfg
6090282152Spfg
6091282152Spfg
6092282152Spfg
6093282152Spfg
6094282152Spfg
6095282152Spfg
6096282152Spfg
6097282152Spfg
6098282152Spfg
6099282152Spfgcase $host_os in
6100282152Spfgaix3*)
6101282152Spfg  # AIX sometimes has problems with the GCC collect2 program.  For some
6102282152Spfg  # reason, if we set the COLLECT_NAMES environment variable, the problems
6103282152Spfg  # vanish in a puff of smoke.
6104282152Spfg  if test "X${COLLECT_NAMES+set}" != Xset; then
6105282152Spfg    COLLECT_NAMES=
6106282152Spfg    export COLLECT_NAMES
6107282152Spfg  fi
6108282152Spfg  ;;
6109169695Skanesac
6110169695Skan
6111282152Spfg# Sed substitution that helps us do robust quoting.  It backslashifies
6112282152Spfg# metacharacters that are still active within double-quoted strings.
6113282152Spfgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6114169695Skan
6115282152Spfg# Same as above, but do not quote variable references.
6116282152Spfgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
6117282152Spfg
6118282152Spfg# Sed substitution to delay expansion of an escaped shell variable in a
6119282152Spfg# double_quote_subst'ed string.
6120282152Spfgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6121282152Spfg
6122282152Spfg# Sed substitution to delay expansion of an escaped single quote.
6123282152Spfgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6124282152Spfg
6125282152Spfg# Sed substitution to avoid accidental globbing in evaled expressions
6126282152Spfgno_glob_subst='s/\*/\\\*/g'
6127282152Spfg
6128282152Spfg# Global variables:
6129282152Spfgofile=libtool
6130282152Spfgcan_build_shared=yes
6131282152Spfg
6132282152Spfg# All known linkers require a `.a' archive for static linking (except MSVC,
6133282152Spfg# which needs '.lib').
6134282152Spfglibext=a
6135282152Spfg
6136282152Spfgwith_gnu_ld="$lt_cv_prog_gnu_ld"
6137282152Spfg
6138282152Spfgold_CC="$CC"
6139282152Spfgold_CFLAGS="$CFLAGS"
6140282152Spfg
6141282152Spfg# Set sane defaults for various variables
6142282152Spfgtest -z "$CC" && CC=cc
6143282152Spfgtest -z "$LTCC" && LTCC=$CC
6144282152Spfgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6145282152Spfgtest -z "$LD" && LD=ld
6146282152Spfgtest -z "$ac_objext" && ac_objext=o
6147282152Spfg
6148282152Spfgfor cc_temp in $compiler""; do
6149282152Spfg  case $cc_temp in
6150282152Spfg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6151282152Spfg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6152282152Spfg    \-*) ;;
6153282152Spfg    *) break;;
6154282152Spfg  esac
6155282152Spfgdone
6156282152Spfgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6157282152Spfg
6158282152Spfg
6159282152Spfg# Only perform the check for file, if the check method requires it
6160282152Spfgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
6161282152Spfgcase $deplibs_check_method in
6162282152Spfgfile_magic*)
6163282152Spfg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6164282152Spfg    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6165282152Spfgecho $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6166282152Spfgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6167282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6168282152Spfgelse
6169282152Spfg  case $MAGIC_CMD in
6170282152Spfg[\\/*] |  ?:[\\/]*)
6171282152Spfg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6172282152Spfg  ;;
6173282152Spfg*)
6174282152Spfg  lt_save_MAGIC_CMD="$MAGIC_CMD"
6175282152Spfg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6176282152Spfg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6177282152Spfg  for ac_dir in $ac_dummy; do
6178282152Spfg    IFS="$lt_save_ifs"
6179282152Spfg    test -z "$ac_dir" && ac_dir=.
6180282152Spfg    if test -f $ac_dir/${ac_tool_prefix}file; then
6181282152Spfg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6182282152Spfg      if test -n "$file_magic_test_file"; then
6183282152Spfg	case $deplibs_check_method in
6184282152Spfg	"file_magic "*)
6185282152Spfg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6186282152Spfg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187282152Spfg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6188282152Spfg	    $EGREP "$file_magic_regex" > /dev/null; then
6189282152Spfg	    :
6190282152Spfg	  else
6191282152Spfg	    cat <<_LT_EOF 1>&2
6192282152Spfg
6193282152Spfg*** Warning: the command libtool uses to detect shared libraries,
6194282152Spfg*** $file_magic_cmd, produces output that libtool cannot recognize.
6195282152Spfg*** The result is that libtool may fail to recognize shared libraries
6196282152Spfg*** as such.  This will affect the creation of libtool libraries that
6197282152Spfg*** depend on shared libraries, but programs linked with such libtool
6198282152Spfg*** libraries will work regardless of this problem.  Nevertheless, you
6199282152Spfg*** may want to report the problem to your system manager and/or to
6200282152Spfg*** bug-libtool@gnu.org
6201282152Spfg
6202282152Spfg_LT_EOF
6203282152Spfg	  fi ;;
6204282152Spfg	esac
6205282152Spfg      fi
6206282152Spfg      break
6207282152Spfg    fi
6208282152Spfg  done
6209282152Spfg  IFS="$lt_save_ifs"
6210282152Spfg  MAGIC_CMD="$lt_save_MAGIC_CMD"
6211282152Spfg  ;;
6212282152Spfgesac
6213282152Spfgfi
6214282152Spfg
6215282152SpfgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216282152Spfgif test -n "$MAGIC_CMD"; then
6217282152Spfg  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6218282152Spfgecho "${ECHO_T}$MAGIC_CMD" >&6
6219282152Spfgelse
6220282152Spfg  echo "$as_me:$LINENO: result: no" >&5
6221282152Spfgecho "${ECHO_T}no" >&6
6222282152Spfgfi
6223282152Spfg
6224282152Spfg
6225282152Spfg
6226282152Spfg
6227282152Spfg
6228282152Spfgif test -z "$lt_cv_path_MAGIC_CMD"; then
6229282152Spfg  if test -n "$ac_tool_prefix"; then
6230282152Spfg    echo "$as_me:$LINENO: checking for file" >&5
6231282152Spfgecho $ECHO_N "checking for file... $ECHO_C" >&6
6232282152Spfgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6233282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6234282152Spfgelse
6235282152Spfg  case $MAGIC_CMD in
6236282152Spfg[\\/*] |  ?:[\\/]*)
6237282152Spfg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6238282152Spfg  ;;
6239282152Spfg*)
6240282152Spfg  lt_save_MAGIC_CMD="$MAGIC_CMD"
6241282152Spfg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242282152Spfg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6243282152Spfg  for ac_dir in $ac_dummy; do
6244282152Spfg    IFS="$lt_save_ifs"
6245282152Spfg    test -z "$ac_dir" && ac_dir=.
6246282152Spfg    if test -f $ac_dir/file; then
6247282152Spfg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6248282152Spfg      if test -n "$file_magic_test_file"; then
6249282152Spfg	case $deplibs_check_method in
6250282152Spfg	"file_magic "*)
6251282152Spfg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6252282152Spfg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253282152Spfg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6254282152Spfg	    $EGREP "$file_magic_regex" > /dev/null; then
6255282152Spfg	    :
6256282152Spfg	  else
6257282152Spfg	    cat <<_LT_EOF 1>&2
6258282152Spfg
6259282152Spfg*** Warning: the command libtool uses to detect shared libraries,
6260282152Spfg*** $file_magic_cmd, produces output that libtool cannot recognize.
6261282152Spfg*** The result is that libtool may fail to recognize shared libraries
6262282152Spfg*** as such.  This will affect the creation of libtool libraries that
6263282152Spfg*** depend on shared libraries, but programs linked with such libtool
6264282152Spfg*** libraries will work regardless of this problem.  Nevertheless, you
6265282152Spfg*** may want to report the problem to your system manager and/or to
6266282152Spfg*** bug-libtool@gnu.org
6267282152Spfg
6268282152Spfg_LT_EOF
6269282152Spfg	  fi ;;
6270282152Spfg	esac
6271282152Spfg      fi
6272282152Spfg      break
6273282152Spfg    fi
6274282152Spfg  done
6275282152Spfg  IFS="$lt_save_ifs"
6276282152Spfg  MAGIC_CMD="$lt_save_MAGIC_CMD"
6277282152Spfg  ;;
6278282152Spfgesac
6279282152Spfgfi
6280282152Spfg
6281282152SpfgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282282152Spfgif test -n "$MAGIC_CMD"; then
6283282152Spfg  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6284282152Spfgecho "${ECHO_T}$MAGIC_CMD" >&6
6285282152Spfgelse
6286282152Spfg  echo "$as_me:$LINENO: result: no" >&5
6287282152Spfgecho "${ECHO_T}no" >&6
6288282152Spfgfi
6289282152Spfg
6290282152Spfg
6291282152Spfg  else
6292282152Spfg    MAGIC_CMD=:
6293282152Spfg  fi
6294282152Spfgfi
6295282152Spfg
6296282152Spfg  fi
6297282152Spfg  ;;
6298282152Spfgesac
6299282152Spfg
6300282152Spfg# Use C for the default configuration in the libtool script
6301282152Spfg
6302282152Spfglt_save_CC="$CC"
6303282152Spfgac_ext=c
6304282152Spfgac_cpp='$CPP $CPPFLAGS'
6305282152Spfgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306282152Spfgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307282152Spfgac_compiler_gnu=$ac_cv_c_compiler_gnu
6308282152Spfg
6309282152Spfg
6310282152Spfg# Source file extension for C test sources.
6311282152Spfgac_ext=c
6312282152Spfg
6313282152Spfg# Object file extension for compiled C test sources.
6314282152Spfgobjext=o
6315282152Spfgobjext=$objext
6316282152Spfg
6317282152Spfg# Code to be used in simple compile tests
6318282152Spfglt_simple_compile_test_code="int some_variable = 0;"
6319282152Spfg
6320282152Spfg# Code to be used in simple link tests
6321282152Spfglt_simple_link_test_code='int main(){return(0);}'
6322282152Spfg
6323282152Spfg
6324282152Spfg
6325282152Spfg
6326282152Spfg
6327282152Spfg
6328282152Spfg
6329282152Spfg# If no C compiler was specified, use CC.
6330282152SpfgLTCC=${LTCC-"$CC"}
6331282152Spfg
6332282152Spfg# If no C compiler flags were specified, use CFLAGS.
6333282152SpfgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334282152Spfg
6335282152Spfg# Allow CC to be a program name with arguments.
6336282152Spfgcompiler=$CC
6337282152Spfg
6338282152Spfg# Save the default compiler, since it gets overwritten when the other
6339282152Spfg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6340282152Spfgcompiler_DEFAULT=$CC
6341282152Spfg
6342282152Spfg# save warnings/boilerplate of simple test code
6343282152Spfgac_outfile=conftest.$ac_objext
6344282152Spfgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
6345282152Spfgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6346282152Spfg_lt_compiler_boilerplate=`cat conftest.err`
6347282152Spfg$RM conftest*
6348282152Spfg
6349282152Spfgac_outfile=conftest.$ac_objext
6350282152Spfgecho "$lt_simple_link_test_code" >conftest.$ac_ext
6351282152Spfgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6352282152Spfg_lt_linker_boilerplate=`cat conftest.err`
6353282152Spfg$RM conftest*
6354282152Spfg
6355282152Spfg
6356282152Spfg## CAVEAT EMPTOR:
6357282152Spfg## There is no encapsulation within the following macros, do not change
6358282152Spfg## the running order or otherwise move them around unless you know exactly
6359282152Spfg## what you are doing...
6360282152Spfgif test -n "$compiler"; then
6361282152Spfg
6362282152Spfglt_prog_compiler_no_builtin_flag=
6363282152Spfg
6364282152Spfgif test "$GCC" = yes; then
6365282152Spfg  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6366282152Spfg
6367282152Spfg  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6368282152Spfgecho $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6369282152Spfgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6370282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6371282152Spfgelse
6372282152Spfg  lt_cv_prog_compiler_rtti_exceptions=no
6373282152Spfg   ac_outfile=conftest.$ac_objext
6374282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6375282152Spfg   lt_compiler_flag="-fno-rtti -fno-exceptions"
6376282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
6377282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
6378282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
6379282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
6380282152Spfg   # The option is referenced via a variable to avoid confusing sed.
6381282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
6382282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6383282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6384282152Spfg   -e 's:$: $lt_compiler_flag:'`
6385282152Spfg   (eval echo "\"\$as_me:6385: $lt_compile\"" >&5)
6386282152Spfg   (eval "$lt_compile" 2>conftest.err)
6387282152Spfg   ac_status=$?
6388282152Spfg   cat conftest.err >&5
6389282152Spfg   echo "$as_me:6389: \$? = $ac_status" >&5
6390282152Spfg   if (exit $ac_status) && test -s "$ac_outfile"; then
6391282152Spfg     # The compiler can only warn and ignore the option if not recognized
6392282152Spfg     # So say no if there are warnings other than the usual output.
6393282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6394282152Spfg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6395282152Spfg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6396282152Spfg       lt_cv_prog_compiler_rtti_exceptions=yes
6397282152Spfg     fi
6398282152Spfg   fi
6399282152Spfg   $RM conftest*
6400282152Spfg
6401282152Spfgfi
6402282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6403282152Spfgecho "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6404282152Spfg
6405282152Spfgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6406282152Spfg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6407282152Spfgelse
6408282152Spfg    :
6409282152Spfgfi
6410282152Spfg
6411282152Spfgfi
6412282152Spfg
6413282152Spfg
6414282152Spfg
6415282152Spfg
6416282152Spfg
6417282152Spfg
6418282152Spfg  lt_prog_compiler_wl=
6419282152Spfglt_prog_compiler_pic=
6420282152Spfglt_prog_compiler_static=
6421282152Spfg
6422282152Spfgecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6423282152Spfgecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6424282152Spfg
6425282152Spfg  if test "$GCC" = yes; then
6426282152Spfg    lt_prog_compiler_wl='-Wl,'
6427282152Spfg    lt_prog_compiler_static='-static'
6428282152Spfg
6429282152Spfg    case $host_os in
6430282152Spfg      aix*)
6431282152Spfg      # All AIX code is PIC.
6432282152Spfg      if test "$host_cpu" = ia64; then
6433282152Spfg	# AIX 5 now supports IA64 processor
6434282152Spfg	lt_prog_compiler_static='-Bstatic'
6435282152Spfg      fi
6436282152Spfg      ;;
6437282152Spfg
6438282152Spfg    amigaos*)
6439282152Spfg      if test "$host_cpu" = m68k; then
6440282152Spfg        # FIXME: we need at least 68020 code to build shared libraries, but
6441282152Spfg        # adding the `-m68020' flag to GCC prevents building anything better,
6442282152Spfg        # like `-m68040'.
6443282152Spfg        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6444282152Spfg      fi
6445282152Spfg      ;;
6446282152Spfg
6447282152Spfg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6448282152Spfg      # PIC is the default for these OSes.
6449282152Spfg      ;;
6450282152Spfg
6451282152Spfg    mingw* | cygwin* | pw32* | os2*)
6452282152Spfg      # This hack is so that the source file can tell whether it is being
6453282152Spfg      # built for inclusion in a dll (and should export symbols for example).
6454282152Spfg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6455282152Spfg      # (--disable-auto-import) libraries
6456282152Spfg      lt_prog_compiler_pic='-DDLL_EXPORT'
6457282152Spfg      ;;
6458282152Spfg
6459282152Spfg    darwin* | rhapsody*)
6460282152Spfg      # PIC is the default on this platform
6461282152Spfg      # Common symbols not allowed in MH_DYLIB files
6462282152Spfg      lt_prog_compiler_pic='-fno-common'
6463282152Spfg      ;;
6464282152Spfg
6465282152Spfg    hpux*)
6466282152Spfg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6467282152Spfg      # not for PA HP-UX.
6468282152Spfg      case $host_cpu in
6469282152Spfg      hppa*64*|ia64*)
6470282152Spfg	# +Z the default
6471282152Spfg	;;
6472282152Spfg      *)
6473282152Spfg	lt_prog_compiler_pic='-fPIC'
6474282152Spfg	;;
6475282152Spfg      esac
6476282152Spfg      ;;
6477282152Spfg
6478282152Spfg    interix[3-9]*)
6479282152Spfg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6480282152Spfg      # Instead, we relocate shared libraries at runtime.
6481282152Spfg      ;;
6482282152Spfg
6483282152Spfg    msdosdjgpp*)
6484282152Spfg      # Just because we use GCC doesn't mean we suddenly get shared libraries
6485282152Spfg      # on systems that don't support them.
6486282152Spfg      lt_prog_compiler_can_build_shared=no
6487282152Spfg      enable_shared=no
6488282152Spfg      ;;
6489282152Spfg
6490282152Spfg    *nto* | *qnx*)
6491282152Spfg      # QNX uses GNU C++, but need to define -shared option too, otherwise
6492282152Spfg      # it will coredump.
6493282152Spfg      lt_prog_compiler_pic='-fPIC -shared'
6494282152Spfg      ;;
6495282152Spfg
6496282152Spfg    sysv4*MP*)
6497282152Spfg      if test -d /usr/nec; then
6498282152Spfg	lt_prog_compiler_pic=-Kconform_pic
6499282152Spfg      fi
6500282152Spfg      ;;
6501282152Spfg
6502282152Spfg    *)
6503282152Spfg      lt_prog_compiler_pic='-fPIC'
6504282152Spfg      ;;
6505282152Spfg    esac
6506282152Spfg  else
6507282152Spfg    # PORTME Check for flag to pass linker flags through the system compiler.
6508282152Spfg    case $host_os in
6509282152Spfg    aix*)
6510282152Spfg      lt_prog_compiler_wl='-Wl,'
6511282152Spfg      if test "$host_cpu" = ia64; then
6512282152Spfg	# AIX 5 now supports IA64 processor
6513282152Spfg	lt_prog_compiler_static='-Bstatic'
6514282152Spfg      else
6515282152Spfg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6516282152Spfg      fi
6517282152Spfg      ;;
6518282152Spfg    darwin*)
6519282152Spfg      # PIC is the default on this platform
6520282152Spfg      # Common symbols not allowed in MH_DYLIB files
6521282152Spfg      case $cc_basename in
6522282152Spfg      xlc*)
6523282152Spfg        lt_prog_compiler_pic='-qnocommon'
6524282152Spfg        lt_prog_compiler_wl='-Wl,'
6525282152Spfg        ;;
6526282152Spfg      esac
6527282152Spfg      ;;
6528282152Spfg
6529282152Spfg    mingw* | cygwin* | pw32* | os2*)
6530282152Spfg      # This hack is so that the source file can tell whether it is being
6531282152Spfg      # built for inclusion in a dll (and should export symbols for example).
6532282152Spfg      lt_prog_compiler_pic='-DDLL_EXPORT'
6533282152Spfg      ;;
6534282152Spfg
6535282152Spfg    hpux9* | hpux10* | hpux11*)
6536282152Spfg      lt_prog_compiler_wl='-Wl,'
6537282152Spfg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6538282152Spfg      # not for PA HP-UX.
6539282152Spfg      case $host_cpu in
6540282152Spfg      hppa*64*|ia64*)
6541282152Spfg	# +Z the default
6542282152Spfg	;;
6543282152Spfg      *)
6544282152Spfg	lt_prog_compiler_pic='+Z'
6545282152Spfg	;;
6546282152Spfg      esac
6547282152Spfg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6548282152Spfg      lt_prog_compiler_static='${wl}-a ${wl}archive'
6549282152Spfg      ;;
6550282152Spfg
6551282152Spfg    irix5* | irix6* | nonstopux*)
6552282152Spfg      lt_prog_compiler_wl='-Wl,'
6553282152Spfg      # PIC (with -KPIC) is the default.
6554282152Spfg      lt_prog_compiler_static='-non_shared'
6555282152Spfg      ;;
6556282152Spfg
6557282152Spfg    linux* | k*bsd*-gnu)
6558282152Spfg      case $cc_basename in
6559282152Spfg      icc* | ecc*)
6560282152Spfg	lt_prog_compiler_wl='-Wl,'
6561282152Spfg	lt_prog_compiler_pic='-KPIC'
6562282152Spfg	lt_prog_compiler_static='-static'
6563282152Spfg        ;;
6564282152Spfg      pgcc* | pgf77* | pgf90* | pgf95*)
6565282152Spfg        # Portland Group compilers (*not* the Pentium gcc compiler,
6566282152Spfg	# which looks to be a dead project)
6567282152Spfg	lt_prog_compiler_wl='-Wl,'
6568282152Spfg	lt_prog_compiler_pic='-fpic'
6569282152Spfg	lt_prog_compiler_static='-Bstatic'
6570282152Spfg        ;;
6571282152Spfg      ccc*)
6572282152Spfg        lt_prog_compiler_wl='-Wl,'
6573282152Spfg        # All Alpha code is PIC.
6574282152Spfg        lt_prog_compiler_static='-non_shared'
6575282152Spfg        ;;
6576282152Spfg      *)
6577282152Spfg	case `$CC -V 2>&1 | sed 5q` in
6578282152Spfg	*Sun\ C*)
6579282152Spfg	  # Sun C 5.9
6580282152Spfg	  lt_prog_compiler_pic='-KPIC'
6581282152Spfg	  lt_prog_compiler_static='-Bstatic'
6582282152Spfg	  lt_prog_compiler_wl='-Wl,'
6583282152Spfg	  ;;
6584282152Spfg	*Sun\ F*)
6585282152Spfg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6586282152Spfg	  lt_prog_compiler_pic='-KPIC'
6587282152Spfg	  lt_prog_compiler_static='-Bstatic'
6588282152Spfg	  lt_prog_compiler_wl=''
6589282152Spfg	  ;;
6590282152Spfg	esac
6591282152Spfg	;;
6592282152Spfg      esac
6593282152Spfg      ;;
6594282152Spfg
6595282152Spfg    newsos6)
6596282152Spfg      lt_prog_compiler_pic='-KPIC'
6597282152Spfg      lt_prog_compiler_static='-Bstatic'
6598282152Spfg      ;;
6599282152Spfg
6600282152Spfg    *nto* | *qnx*)
6601282152Spfg      # QNX uses GNU C++, but need to define -shared option too, otherwise
6602282152Spfg      # it will coredump.
6603282152Spfg      lt_prog_compiler_pic='-fPIC -shared'
6604282152Spfg      ;;
6605282152Spfg
6606282152Spfg    osf3* | osf4* | osf5*)
6607282152Spfg      lt_prog_compiler_wl='-Wl,'
6608282152Spfg      # All OSF/1 code is PIC.
6609282152Spfg      lt_prog_compiler_static='-non_shared'
6610282152Spfg      ;;
6611282152Spfg
6612282152Spfg    rdos*)
6613282152Spfg      lt_prog_compiler_static='-non_shared'
6614282152Spfg      ;;
6615282152Spfg
6616282152Spfg    solaris*)
6617282152Spfg      lt_prog_compiler_pic='-KPIC'
6618282152Spfg      lt_prog_compiler_static='-Bstatic'
6619282152Spfg      case $cc_basename in
6620282152Spfg      f77* | f90* | f95*)
6621282152Spfg	lt_prog_compiler_wl='-Qoption ld ';;
6622282152Spfg      *)
6623282152Spfg	lt_prog_compiler_wl='-Wl,';;
6624282152Spfg      esac
6625282152Spfg      ;;
6626282152Spfg
6627282152Spfg    sunos4*)
6628282152Spfg      lt_prog_compiler_wl='-Qoption ld '
6629282152Spfg      lt_prog_compiler_pic='-PIC'
6630282152Spfg      lt_prog_compiler_static='-Bstatic'
6631282152Spfg      ;;
6632282152Spfg
6633282152Spfg    sysv4 | sysv4.2uw2* | sysv4.3*)
6634282152Spfg      lt_prog_compiler_wl='-Wl,'
6635282152Spfg      lt_prog_compiler_pic='-KPIC'
6636282152Spfg      lt_prog_compiler_static='-Bstatic'
6637282152Spfg      ;;
6638282152Spfg
6639282152Spfg    sysv4*MP*)
6640282152Spfg      if test -d /usr/nec ;then
6641282152Spfg	lt_prog_compiler_pic='-Kconform_pic'
6642282152Spfg	lt_prog_compiler_static='-Bstatic'
6643282152Spfg      fi
6644282152Spfg      ;;
6645282152Spfg
6646282152Spfg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6647282152Spfg      lt_prog_compiler_wl='-Wl,'
6648282152Spfg      lt_prog_compiler_pic='-KPIC'
6649282152Spfg      lt_prog_compiler_static='-Bstatic'
6650282152Spfg      ;;
6651282152Spfg
6652282152Spfg    unicos*)
6653282152Spfg      lt_prog_compiler_wl='-Wl,'
6654282152Spfg      lt_prog_compiler_can_build_shared=no
6655282152Spfg      ;;
6656282152Spfg
6657282152Spfg    uts4*)
6658282152Spfg      lt_prog_compiler_pic='-pic'
6659282152Spfg      lt_prog_compiler_static='-Bstatic'
6660282152Spfg      ;;
6661282152Spfg
6662282152Spfg    *)
6663282152Spfg      lt_prog_compiler_can_build_shared=no
6664282152Spfg      ;;
6665282152Spfg    esac
6666282152Spfg  fi
6667282152Spfg
6668282152Spfgcase $host_os in
6669282152Spfg  # For platforms which do not support PIC, -DPIC is meaningless:
6670282152Spfg  *djgpp*)
6671282152Spfg    lt_prog_compiler_pic=
6672282152Spfg    ;;
6673282152Spfg  *)
6674282152Spfg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6675282152Spfg    ;;
6676282152Spfgesac
6677282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6678282152Spfgecho "${ECHO_T}$lt_prog_compiler_pic" >&6
6679282152Spfg
6680282152Spfg
6681282152Spfg
6682282152Spfg
6683282152Spfg
6684282152Spfg
6685169695Skan#
6686282152Spfg# Check to make sure the PIC flag actually works.
6687169695Skan#
6688282152Spfgif test -n "$lt_prog_compiler_pic"; then
6689282152Spfg  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6690282152Spfgecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6691282152Spfgif test "${lt_prog_compiler_pic_works+set}" = set; then
6692282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6693282152Spfgelse
6694282152Spfg  lt_prog_compiler_pic_works=no
6695282152Spfg   ac_outfile=conftest.$ac_objext
6696282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6697282152Spfg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6698282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
6699282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
6700282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
6701282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
6702282152Spfg   # The option is referenced via a variable to avoid confusing sed.
6703282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
6704282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6705282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6706282152Spfg   -e 's:$: $lt_compiler_flag:'`
6707282152Spfg   (eval echo "\"\$as_me:6707: $lt_compile\"" >&5)
6708282152Spfg   (eval "$lt_compile" 2>conftest.err)
6709282152Spfg   ac_status=$?
6710282152Spfg   cat conftest.err >&5
6711282152Spfg   echo "$as_me:6711: \$? = $ac_status" >&5
6712282152Spfg   if (exit $ac_status) && test -s "$ac_outfile"; then
6713282152Spfg     # The compiler can only warn and ignore the option if not recognized
6714282152Spfg     # So say no if there are warnings other than the usual output.
6715282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6716282152Spfg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6717282152Spfg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6718282152Spfg       lt_prog_compiler_pic_works=yes
6719282152Spfg     fi
6720282152Spfg   fi
6721282152Spfg   $RM conftest*
6722169695Skan
6723282152Spfgfi
6724282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6725282152Spfgecho "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6726282152Spfg
6727282152Spfgif test x"$lt_prog_compiler_pic_works" = xyes; then
6728282152Spfg    case $lt_prog_compiler_pic in
6729282152Spfg     "" | " "*) ;;
6730282152Spfg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6731282152Spfg     esac
6732282152Spfgelse
6733282152Spfg    lt_prog_compiler_pic=
6734282152Spfg     lt_prog_compiler_can_build_shared=no
6735282152Spfgfi
6736282152Spfg
6737282152Spfgfi
6738282152Spfg
6739282152Spfg
6740282152Spfg
6741282152Spfg
6742282152Spfg
6743282152Spfg
6744282152Spfg#
6745282152Spfg# Check to make sure the static flag actually works.
6746282152Spfg#
6747282152Spfgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6748282152Spfgecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6749282152Spfgecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6750282152Spfgif test "${lt_prog_compiler_static_works+set}" = set; then
6751282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6752282152Spfgelse
6753282152Spfg  lt_prog_compiler_static_works=no
6754282152Spfg   save_LDFLAGS="$LDFLAGS"
6755282152Spfg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6756282152Spfg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6757282152Spfg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6758282152Spfg     # The linker can only warn and ignore the option if not recognized
6759282152Spfg     # So say no if there are warnings
6760282152Spfg     if test -s conftest.err; then
6761282152Spfg       # Append any errors to the config.log.
6762282152Spfg       cat conftest.err 1>&5
6763282152Spfg       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6764282152Spfg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6765282152Spfg       if diff conftest.exp conftest.er2 >/dev/null; then
6766282152Spfg         lt_prog_compiler_static_works=yes
6767282152Spfg       fi
6768282152Spfg     else
6769282152Spfg       lt_prog_compiler_static_works=yes
6770282152Spfg     fi
6771282152Spfg   fi
6772282152Spfg   $RM conftest*
6773282152Spfg   LDFLAGS="$save_LDFLAGS"
6774282152Spfg
6775282152Spfgfi
6776282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6777282152Spfgecho "${ECHO_T}$lt_prog_compiler_static_works" >&6
6778282152Spfg
6779282152Spfgif test x"$lt_prog_compiler_static_works" = xyes; then
6780282152Spfg    :
6781282152Spfgelse
6782282152Spfg    lt_prog_compiler_static=
6783282152Spfgfi
6784282152Spfg
6785282152Spfg
6786282152Spfg
6787282152Spfg
6788282152Spfg
6789282152Spfg
6790282152Spfg
6791282152Spfg  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6792282152Spfgecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6793282152Spfgif test "${lt_cv_prog_compiler_c_o+set}" = set; then
6794282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6795282152Spfgelse
6796282152Spfg  lt_cv_prog_compiler_c_o=no
6797282152Spfg   $RM -r conftest 2>/dev/null
6798282152Spfg   mkdir conftest
6799282152Spfg   cd conftest
6800282152Spfg   mkdir out
6801282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6802282152Spfg
6803282152Spfg   lt_compiler_flag="-o out/conftest2.$ac_objext"
6804282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
6805282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
6806282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
6807282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
6808282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
6809282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6810282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6811282152Spfg   -e 's:$: $lt_compiler_flag:'`
6812282152Spfg   (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6813282152Spfg   (eval "$lt_compile" 2>out/conftest.err)
6814282152Spfg   ac_status=$?
6815282152Spfg   cat out/conftest.err >&5
6816282152Spfg   echo "$as_me:6816: \$? = $ac_status" >&5
6817282152Spfg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6818282152Spfg   then
6819282152Spfg     # The compiler can only warn and ignore the option if not recognized
6820282152Spfg     # So say no if there are warnings
6821282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6822282152Spfg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6823282152Spfg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6824282152Spfg       lt_cv_prog_compiler_c_o=yes
6825282152Spfg     fi
6826282152Spfg   fi
6827282152Spfg   chmod u+w . 2>&5
6828282152Spfg   $RM conftest*
6829282152Spfg   # SGI C++ compiler will create directory out/ii_files/ for
6830282152Spfg   # template instantiation
6831282152Spfg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6832282152Spfg   $RM out/* && rmdir out
6833282152Spfg   cd ..
6834282152Spfg   $RM -r conftest
6835282152Spfg   $RM conftest*
6836282152Spfg
6837282152Spfgfi
6838282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6839282152Spfgecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6840282152Spfg
6841282152Spfg
6842282152Spfg
6843282152Spfg
6844282152Spfg
6845282152Spfg
6846282152Spfg  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6847282152Spfgecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6848282152Spfgif test "${lt_cv_prog_compiler_c_o+set}" = set; then
6849282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
6850282152Spfgelse
6851282152Spfg  lt_cv_prog_compiler_c_o=no
6852282152Spfg   $RM -r conftest 2>/dev/null
6853282152Spfg   mkdir conftest
6854282152Spfg   cd conftest
6855282152Spfg   mkdir out
6856282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6857282152Spfg
6858282152Spfg   lt_compiler_flag="-o out/conftest2.$ac_objext"
6859282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
6860282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
6861282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
6862282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
6863282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
6864282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866282152Spfg   -e 's:$: $lt_compiler_flag:'`
6867282152Spfg   (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868282152Spfg   (eval "$lt_compile" 2>out/conftest.err)
6869282152Spfg   ac_status=$?
6870282152Spfg   cat out/conftest.err >&5
6871282152Spfg   echo "$as_me:6871: \$? = $ac_status" >&5
6872282152Spfg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6873282152Spfg   then
6874282152Spfg     # The compiler can only warn and ignore the option if not recognized
6875282152Spfg     # So say no if there are warnings
6876282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6877282152Spfg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6878282152Spfg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6879282152Spfg       lt_cv_prog_compiler_c_o=yes
6880282152Spfg     fi
6881282152Spfg   fi
6882282152Spfg   chmod u+w . 2>&5
6883282152Spfg   $RM conftest*
6884282152Spfg   # SGI C++ compiler will create directory out/ii_files/ for
6885282152Spfg   # template instantiation
6886282152Spfg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6887282152Spfg   $RM out/* && rmdir out
6888282152Spfg   cd ..
6889282152Spfg   $RM -r conftest
6890282152Spfg   $RM conftest*
6891282152Spfg
6892282152Spfgfi
6893282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6894282152Spfgecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6895282152Spfg
6896282152Spfg
6897282152Spfg
6898282152Spfg
6899282152Spfghard_links="nottested"
6900282152Spfgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6901282152Spfg  # do not overwrite the value of need_locks provided by the user
6902282152Spfg  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6903282152Spfgecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6904282152Spfg  hard_links=yes
6905282152Spfg  $RM conftest*
6906282152Spfg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6907282152Spfg  touch conftest.a
6908282152Spfg  ln conftest.a conftest.b 2>&5 || hard_links=no
6909282152Spfg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6910282152Spfg  echo "$as_me:$LINENO: result: $hard_links" >&5
6911282152Spfgecho "${ECHO_T}$hard_links" >&6
6912282152Spfg  if test "$hard_links" = no; then
6913282152Spfg    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6914282152Spfgecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6915282152Spfg    need_locks=warn
6916282152Spfg  fi
6917282152Spfgelse
6918282152Spfg  need_locks=no
6919282152Spfgfi
6920282152Spfg
6921282152Spfg
6922282152Spfg
6923282152Spfg
6924282152Spfg
6925282152Spfg
6926282152Spfg  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6927282152Spfgecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6928282152Spfg
6929282152Spfg  runpath_var=
6930282152Spfg  allow_undefined_flag=
6931282152Spfg  always_export_symbols=no
6932282152Spfg  archive_cmds=
6933282152Spfg  archive_expsym_cmds=
6934282152Spfg  compiler_needs_object=no
6935282152Spfg  enable_shared_with_static_runtimes=no
6936282152Spfg  export_dynamic_flag_spec=
6937282152Spfg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6938282152Spfg  hardcode_automatic=no
6939282152Spfg  hardcode_direct=no
6940282152Spfg  hardcode_direct_absolute=no
6941282152Spfg  hardcode_libdir_flag_spec=
6942282152Spfg  hardcode_libdir_flag_spec_ld=
6943282152Spfg  hardcode_libdir_separator=
6944282152Spfg  hardcode_minus_L=no
6945282152Spfg  hardcode_shlibpath_var=unsupported
6946282152Spfg  inherit_rpath=no
6947282152Spfg  link_all_deplibs=unknown
6948282152Spfg  module_cmds=
6949282152Spfg  module_expsym_cmds=
6950282152Spfg  old_archive_from_new_cmds=
6951282152Spfg  old_archive_from_expsyms_cmds=
6952282152Spfg  thread_safe_flag_spec=
6953282152Spfg  whole_archive_flag_spec=
6954282152Spfg  # include_expsyms should be a list of space-separated symbols to be *always*
6955282152Spfg  # included in the symbol list
6956282152Spfg  include_expsyms=
6957282152Spfg  # exclude_expsyms can be an extended regexp of symbols to exclude
6958282152Spfg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6959282152Spfg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6960282152Spfg  # as well as any symbol that contains `d'.
6961282152Spfg  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6962282152Spfg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6963282152Spfg  # platforms (ab)use it in PIC code, but their linkers get confused if
6964282152Spfg  # the symbol is explicitly referenced.  Since portable code cannot
6965282152Spfg  # rely on this symbol name, it's probably fine to never include it in
6966282152Spfg  # preloaded symbol tables.
6967282152Spfg  extract_expsyms_cmds=
6968282152Spfg
6969282152Spfg  case $host_os in
6970282152Spfg  cygwin* | mingw* | pw32*)
6971282152Spfg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972282152Spfg    # When not using gcc, we currently assume that we are using
6973282152Spfg    # Microsoft Visual C++.
6974282152Spfg    if test "$GCC" != yes; then
6975282152Spfg      with_gnu_ld=no
6976282152Spfg    fi
6977282152Spfg    ;;
6978282152Spfg  interix*)
6979282152Spfg    # we just hope/assume this is gcc and not c89 (= MSVC++)
6980282152Spfg    with_gnu_ld=yes
6981282152Spfg    ;;
6982282152Spfg  openbsd*)
6983282152Spfg    with_gnu_ld=no
6984282152Spfg    ;;
6985282152Spfg  esac
6986282152Spfg
6987282152Spfg  ld_shlibs=yes
6988282152Spfg  if test "$with_gnu_ld" = yes; then
6989282152Spfg    # If archive_cmds runs LD, not CC, wlarc should be empty
6990282152Spfg    wlarc='${wl}'
6991282152Spfg
6992282152Spfg    # Set some defaults for GNU ld with shared library support. These
6993282152Spfg    # are reset later if shared libraries are not supported. Putting them
6994282152Spfg    # here allows them to be overridden if necessary.
6995282152Spfg    runpath_var=LD_RUN_PATH
6996282152Spfg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6997282152Spfg    export_dynamic_flag_spec='${wl}--export-dynamic'
6998282152Spfg    # ancient GNU ld didn't support --whole-archive et. al.
6999282152Spfg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7000282152Spfg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7001282152Spfg    else
7002282152Spfg      whole_archive_flag_spec=
7003282152Spfg    fi
7004282152Spfg    supports_anon_versioning=no
7005282152Spfg    case `$LD -v 2>&1` in
7006282152Spfg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7007282152Spfg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7008282152Spfg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7009282152Spfg      *\ 2.11.*) ;; # other 2.11 versions
7010282152Spfg      *) supports_anon_versioning=yes ;;
7011282152Spfg    esac
7012282152Spfg
7013282152Spfg    # See if GNU ld supports shared libraries.
7014282152Spfg    case $host_os in
7015282152Spfg    aix[3-9]*)
7016282152Spfg      # On AIX/PPC, the GNU linker is very broken
7017282152Spfg      if test "$host_cpu" != ia64; then
7018282152Spfg	ld_shlibs=no
7019282152Spfg	cat <<_LT_EOF 1>&2
7020282152Spfg
7021282152Spfg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7022282152Spfg*** to be unable to reliably create shared libraries on AIX.
7023282152Spfg*** Therefore, libtool is disabling shared libraries support.  If you
7024282152Spfg*** really care for shared libraries, you may want to modify your PATH
7025282152Spfg*** so that a non-GNU linker is found, and then restart.
7026282152Spfg
7027282152Spfg_LT_EOF
7028282152Spfg      fi
7029282152Spfg      ;;
7030282152Spfg
7031282152Spfg    amigaos*)
7032282152Spfg      if test "$host_cpu" = m68k; then
7033282152Spfg        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)'
7034282152Spfg        hardcode_libdir_flag_spec='-L$libdir'
7035282152Spfg        hardcode_minus_L=yes
7036282152Spfg      fi
7037282152Spfg
7038282152Spfg      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7039282152Spfg      # that the semantics of dynamic libraries on AmigaOS, at least up
7040282152Spfg      # to version 4, is to share data among multiple programs linked
7041282152Spfg      # with the same dynamic library.  Since this doesn't match the
7042282152Spfg      # behavior of shared libraries on other platforms, we can't use
7043282152Spfg      # them.
7044282152Spfg      ld_shlibs=no
7045282152Spfg      ;;
7046282152Spfg
7047282152Spfg    beos*)
7048282152Spfg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7049282152Spfg	allow_undefined_flag=unsupported
7050282152Spfg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7051282152Spfg	# support --undefined.  This deserves some investigation.  FIXME
7052282152Spfg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7053282152Spfg      else
7054282152Spfg	ld_shlibs=no
7055282152Spfg      fi
7056282152Spfg      ;;
7057282152Spfg
7058282152Spfg    cygwin* | mingw* | pw32*)
7059282152Spfg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7060282152Spfg      # as there is no search path for DLLs.
7061282152Spfg      hardcode_libdir_flag_spec='-L$libdir'
7062282152Spfg      allow_undefined_flag=unsupported
7063282152Spfg      always_export_symbols=no
7064282152Spfg      enable_shared_with_static_runtimes=yes
7065282152Spfg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7066282152Spfg
7067282152Spfg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7068282152Spfg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7069282152Spfg	# If the export-symbols file already is a .def file (1st line
7070282152Spfg	# is EXPORTS), use it as is; otherwise, prepend...
7071282152Spfg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7072282152Spfg	  cp $export_symbols $output_objdir/$soname.def;
7073282152Spfg	else
7074282152Spfg	  echo EXPORTS > $output_objdir/$soname.def;
7075282152Spfg	  cat $export_symbols >> $output_objdir/$soname.def;
7076282152Spfg	fi~
7077282152Spfg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7078282152Spfg      else
7079282152Spfg	ld_shlibs=no
7080282152Spfg      fi
7081282152Spfg      ;;
7082282152Spfg
7083282152Spfg    interix[3-9]*)
7084282152Spfg      hardcode_direct=no
7085282152Spfg      hardcode_shlibpath_var=no
7086282152Spfg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7087282152Spfg      export_dynamic_flag_spec='${wl}-E'
7088282152Spfg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7089282152Spfg      # Instead, shared libraries are loaded at an image base (0x10000000 by
7090282152Spfg      # default) and relocated if they conflict, which is a slow very memory
7091282152Spfg      # consuming and fragmenting process.  To avoid this, we pick a random,
7092282152Spfg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7093282152Spfg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7094282152Spfg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7095282152Spfg      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'
7096282152Spfg      ;;
7097282152Spfg
7098282152Spfg    gnu* | linux* | tpf* | k*bsd*-gnu)
7099282152Spfg      tmp_diet=no
7100282152Spfg      if test "$host_os" = linux-dietlibc; then
7101282152Spfg	case $cc_basename in
7102282152Spfg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7103282152Spfg	esac
7104282152Spfg      fi
7105282152Spfg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7106282152Spfg	 && test "$tmp_diet" = no
7107282152Spfg      then
7108282152Spfg	tmp_addflag=
7109282152Spfg	case $cc_basename,$host_cpu in
7110282152Spfg        pgcc*)				# Portland Group C compiler
7111282152Spfg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7112282152Spfg	  tmp_addflag=' $pic_flag'
7113282152Spfg	  ;;
7114282152Spfg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7115282152Spfg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7116282152Spfg	  tmp_addflag=' $pic_flag -Mnomain' ;;
7117282152Spfg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7118282152Spfg	  tmp_addflag=' -i_dynamic' ;;
7119282152Spfg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7120282152Spfg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7121282152Spfg	ifc* | ifort*)			# Intel Fortran compiler
7122282152Spfg	  tmp_addflag=' -nofor_main' ;;
7123282152Spfg	esac
7124282152Spfg	case `$CC -V 2>&1 | sed 5q` in
7125282152Spfg	*Sun\ C*)			# Sun C 5.9
7126282152Spfg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7127282152Spfg	  compiler_needs_object=yes
7128282152Spfg	  tmp_sharedflag='-G' ;;
7129282152Spfg	*Sun\ F*)			# Sun Fortran 8.3
7130282152Spfg	  tmp_sharedflag='-G' ;;
7131282152Spfg	*)
7132282152Spfg	  tmp_sharedflag='-shared' ;;
7133282152Spfg	esac
7134282152Spfg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135282152Spfg
7136282152Spfg        if test "x$supports_anon_versioning" = xyes; then
7137282152Spfg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7138282152Spfg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7139282152Spfg	    echo "local: *; };" >> $output_objdir/$libname.ver~
7140282152Spfg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7141282152Spfg        fi
7142282152Spfg      else
7143282152Spfg        ld_shlibs=no
7144282152Spfg      fi
7145282152Spfg      ;;
7146282152Spfg
7147282152Spfg    netbsd*)
7148282152Spfg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7149282152Spfg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7150282152Spfg	wlarc=
7151282152Spfg      else
7152282152Spfg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7153282152Spfg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7154282152Spfg      fi
7155282152Spfg      ;;
7156282152Spfg
7157282152Spfg    solaris*)
7158282152Spfg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7159282152Spfg	ld_shlibs=no
7160282152Spfg	cat <<_LT_EOF 1>&2
7161282152Spfg
7162282152Spfg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7163282152Spfg*** create shared libraries on Solaris systems.  Therefore, libtool
7164282152Spfg*** is disabling shared libraries support.  We urge you to upgrade GNU
7165282152Spfg*** binutils to release 2.9.1 or newer.  Another option is to modify
7166282152Spfg*** your PATH or compiler configuration so that the native linker is
7167282152Spfg*** used, and then restart.
7168282152Spfg
7169282152Spfg_LT_EOF
7170282152Spfg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7171282152Spfg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7172282152Spfg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7173282152Spfg      else
7174282152Spfg	ld_shlibs=no
7175282152Spfg      fi
7176282152Spfg      ;;
7177282152Spfg
7178282152Spfg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7179282152Spfg      case `$LD -v 2>&1` in
7180282152Spfg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7181282152Spfg	ld_shlibs=no
7182282152Spfg	cat <<_LT_EOF 1>&2
7183282152Spfg
7184282152Spfg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7185282152Spfg*** reliably create shared libraries on SCO systems.  Therefore, libtool
7186282152Spfg*** is disabling shared libraries support.  We urge you to upgrade GNU
7187282152Spfg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7188282152Spfg*** your PATH or compiler configuration so that the native linker is
7189282152Spfg*** used, and then restart.
7190282152Spfg
7191282152Spfg_LT_EOF
7192282152Spfg	;;
7193282152Spfg	*)
7194282152Spfg	  # For security reasons, it is highly recommended that you always
7195282152Spfg	  # use absolute paths for naming shared libraries, and exclude the
7196282152Spfg	  # DT_RUNPATH tag from executables and libraries.  But doing so
7197282152Spfg	  # requires that you compile everything twice, which is a pain.
7198282152Spfg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7199282152Spfg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200282152Spfg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7201282152Spfg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7202282152Spfg	  else
7203282152Spfg	    ld_shlibs=no
7204282152Spfg	  fi
7205282152Spfg	;;
7206282152Spfg      esac
7207282152Spfg      ;;
7208282152Spfg
7209282152Spfg    sunos4*)
7210282152Spfg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211282152Spfg      wlarc=
7212282152Spfg      hardcode_direct=yes
7213282152Spfg      hardcode_shlibpath_var=no
7214282152Spfg      ;;
7215282152Spfg
7216282152Spfg    *)
7217282152Spfg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7218282152Spfg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219282152Spfg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7220282152Spfg      else
7221282152Spfg	ld_shlibs=no
7222282152Spfg      fi
7223282152Spfg      ;;
7224282152Spfg    esac
7225282152Spfg
7226282152Spfg    if test "$ld_shlibs" = no; then
7227282152Spfg      runpath_var=
7228282152Spfg      hardcode_libdir_flag_spec=
7229282152Spfg      export_dynamic_flag_spec=
7230282152Spfg      whole_archive_flag_spec=
7231282152Spfg    fi
7232282152Spfg  else
7233282152Spfg    # PORTME fill in a description of your system's linker (not GNU ld)
7234282152Spfg    case $host_os in
7235282152Spfg    aix3*)
7236282152Spfg      allow_undefined_flag=unsupported
7237282152Spfg      always_export_symbols=yes
7238282152Spfg      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'
7239282152Spfg      # Note: this linker hardcodes the directories in LIBPATH if there
7240282152Spfg      # are no directories specified by -L.
7241282152Spfg      hardcode_minus_L=yes
7242282152Spfg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7243282152Spfg	# Neither direct hardcoding nor static linking is supported with a
7244282152Spfg	# broken collect2.
7245282152Spfg	hardcode_direct=unsupported
7246282152Spfg      fi
7247282152Spfg      ;;
7248282152Spfg
7249282152Spfg    aix[4-9]*)
7250282152Spfg      if test "$host_cpu" = ia64; then
7251282152Spfg	# On IA64, the linker does run time linking by default, so we don't
7252282152Spfg	# have to do anything special.
7253282152Spfg	aix_use_runtimelinking=no
7254282152Spfg	exp_sym_flag='-Bexport'
7255282152Spfg	no_entry_flag=""
7256282152Spfg      else
7257282152Spfg	# If we're using GNU nm, then we don't want the "-C" option.
7258282152Spfg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7259282152Spfg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7260282152Spfg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7261282152Spfg	else
7262282152Spfg	  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'
7263282152Spfg	fi
7264282152Spfg	aix_use_runtimelinking=no
7265282152Spfg
7266282152Spfg	# Test if we are trying to use run time linking or normal
7267282152Spfg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7268282152Spfg	# need to do runtime linking.
7269282152Spfg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7270282152Spfg	  for ld_flag in $LDFLAGS; do
7271282152Spfg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7272282152Spfg	    aix_use_runtimelinking=yes
7273282152Spfg	    break
7274282152Spfg	  fi
7275282152Spfg	  done
7276282152Spfg	  ;;
7277282152Spfg	esac
7278282152Spfg
7279282152Spfg	exp_sym_flag='-bexport'
7280282152Spfg	no_entry_flag='-bnoentry'
7281282152Spfg      fi
7282282152Spfg
7283282152Spfg      # When large executables or shared objects are built, AIX ld can
7284282152Spfg      # have problems creating the table of contents.  If linking a library
7285282152Spfg      # or program results in "error TOC overflow" add -mminimal-toc to
7286282152Spfg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7287282152Spfg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7288282152Spfg
7289282152Spfg      archive_cmds=''
7290282152Spfg      hardcode_direct=yes
7291282152Spfg      hardcode_direct_absolute=yes
7292282152Spfg      hardcode_libdir_separator=':'
7293282152Spfg      link_all_deplibs=yes
7294282152Spfg      file_list_spec='${wl}-f,'
7295282152Spfg
7296282152Spfg      if test "$GCC" = yes; then
7297282152Spfg	case $host_os in aix4.[012]|aix4.[012].*)
7298282152Spfg	# We only want to do this on AIX 4.2 and lower, the check
7299282152Spfg	# below for broken collect2 doesn't work under 4.3+
7300282152Spfg	  collect2name=`${CC} -print-prog-name=collect2`
7301282152Spfg	  if test -f "$collect2name" &&
7302282152Spfg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7303282152Spfg	  then
7304282152Spfg	  # We have reworked collect2
7305282152Spfg	  :
7306282152Spfg	  else
7307282152Spfg	  # We have old collect2
7308282152Spfg	  hardcode_direct=unsupported
7309282152Spfg	  # It fails to find uninstalled libraries when the uninstalled
7310282152Spfg	  # path is not listed in the libpath.  Setting hardcode_minus_L
7311282152Spfg	  # to unsupported forces relinking
7312282152Spfg	  hardcode_minus_L=yes
7313282152Spfg	  hardcode_libdir_flag_spec='-L$libdir'
7314282152Spfg	  hardcode_libdir_separator=
7315282152Spfg	  fi
7316282152Spfg	  ;;
7317282152Spfg	esac
7318282152Spfg	shared_flag='-shared'
7319282152Spfg	if test "$aix_use_runtimelinking" = yes; then
7320282152Spfg	  shared_flag="$shared_flag "'${wl}-G'
7321282152Spfg	fi
7322282152Spfg      else
7323282152Spfg	# not using gcc
7324282152Spfg	if test "$host_cpu" = ia64; then
7325282152Spfg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7326282152Spfg	# chokes on -Wl,-G. The following line is correct:
7327282152Spfg	  shared_flag='-G'
7328282152Spfg	else
7329282152Spfg	  if test "$aix_use_runtimelinking" = yes; then
7330282152Spfg	    shared_flag='${wl}-G'
7331282152Spfg	  else
7332282152Spfg	    shared_flag='${wl}-bM:SRE'
7333282152Spfg	  fi
7334282152Spfg	fi
7335282152Spfg      fi
7336282152Spfg
7337282152Spfg      # It seems that -bexpall does not export symbols beginning with
7338282152Spfg      # underscore (_), so it is better to generate a list of symbols to export.
7339282152Spfg      always_export_symbols=yes
7340282152Spfg      if test "$aix_use_runtimelinking" = yes; then
7341282152Spfg	# Warning - without using the other runtime loading flags (-brtl),
7342282152Spfg	# -berok will link without error, but may produce a broken library.
7343282152Spfg	allow_undefined_flag='-berok'
7344282152Spfg        # Determine the default libpath from the value encoded in an
7345282152Spfg        # empty executable.
7346282152Spfg        cat >conftest.$ac_ext <<_ACEOF
7347282152Spfg/* confdefs.h.  */
7348169695Skan_ACEOF
7349282152Spfgcat confdefs.h >>conftest.$ac_ext
7350282152Spfgcat >>conftest.$ac_ext <<_ACEOF
7351282152Spfg/* end confdefs.h.  */
7352169695Skan
7353282152Spfgint
7354282152Spfgmain ()
7355169695Skan{
7356282152Spfg
7357282152Spfg  ;
7358282152Spfg  return 0;
7359282152Spfg}
7360282152Spfg_ACEOF
7361282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
7362282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363282152Spfg  (eval $ac_link) 2>conftest.er1
7364282152Spfg  ac_status=$?
7365282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
7366282152Spfg  rm -f conftest.er1
7367282152Spfg  cat conftest.err >&5
7368282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369282152Spfg  (exit $ac_status); } &&
7370282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
7371282152Spfg			 || test ! -s conftest.err'
7372282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373282152Spfg  (eval $ac_try) 2>&5
7374282152Spfg  ac_status=$?
7375282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376282152Spfg  (exit $ac_status); }; } &&
7377282152Spfg	 { ac_try='test -s conftest$ac_exeext'
7378282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379282152Spfg  (eval $ac_try) 2>&5
7380282152Spfg  ac_status=$?
7381282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382282152Spfg  (exit $ac_status); }; }; then
7383282152Spfg
7384282152Spfglt_aix_libpath_sed='
7385282152Spfg    /Import File Strings/,/^$/ {
7386282152Spfg	/^0/ {
7387282152Spfg	    s/^0  *\(.*\)$/\1/
7388282152Spfg	    p
7389282152Spfg	}
7390282152Spfg    }'
7391282152Spfgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7392282152Spfg# Check for a 64-bit object if we didn't find anything.
7393282152Spfgif test -z "$aix_libpath"; then
7394282152Spfg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7395282152Spfgfi
7396282152Spfgelse
7397282152Spfg  echo "$as_me: failed program was:" >&5
7398282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
7399282152Spfg
7400282152Spfgfi
7401282152Spfgrm -f conftest.err conftest.$ac_objext \
7402282152Spfg      conftest$ac_exeext conftest.$ac_ext
7403282152Spfgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7404282152Spfg
7405282152Spfg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7406282152Spfg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7407282152Spfg      else
7408282152Spfg	if test "$host_cpu" = ia64; then
7409282152Spfg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7410282152Spfg	  allow_undefined_flag="-z nodefs"
7411282152Spfg	  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"
7412282152Spfg	else
7413282152Spfg	 # Determine the default libpath from the value encoded in an
7414282152Spfg	 # empty executable.
7415282152Spfg	 cat >conftest.$ac_ext <<_ACEOF
7416282152Spfg/* confdefs.h.  */
7417282152Spfg_ACEOF
7418282152Spfgcat confdefs.h >>conftest.$ac_ext
7419282152Spfgcat >>conftest.$ac_ext <<_ACEOF
7420282152Spfg/* end confdefs.h.  */
7421282152Spfg
7422282152Spfgint
7423282152Spfgmain ()
7424282152Spfg{
7425282152Spfg
7426282152Spfg  ;
7427282152Spfg  return 0;
7428282152Spfg}
7429282152Spfg_ACEOF
7430282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
7431282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432282152Spfg  (eval $ac_link) 2>conftest.er1
7433282152Spfg  ac_status=$?
7434282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
7435282152Spfg  rm -f conftest.er1
7436282152Spfg  cat conftest.err >&5
7437282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438282152Spfg  (exit $ac_status); } &&
7439282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
7440282152Spfg			 || test ! -s conftest.err'
7441282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442282152Spfg  (eval $ac_try) 2>&5
7443282152Spfg  ac_status=$?
7444282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445282152Spfg  (exit $ac_status); }; } &&
7446282152Spfg	 { ac_try='test -s conftest$ac_exeext'
7447282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448282152Spfg  (eval $ac_try) 2>&5
7449282152Spfg  ac_status=$?
7450282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451282152Spfg  (exit $ac_status); }; }; then
7452282152Spfg
7453282152Spfglt_aix_libpath_sed='
7454282152Spfg    /Import File Strings/,/^$/ {
7455282152Spfg	/^0/ {
7456282152Spfg	    s/^0  *\(.*\)$/\1/
7457282152Spfg	    p
7458282152Spfg	}
7459282152Spfg    }'
7460282152Spfgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7461282152Spfg# Check for a 64-bit object if we didn't find anything.
7462282152Spfgif test -z "$aix_libpath"; then
7463282152Spfg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7464282152Spfgfi
7465282152Spfgelse
7466282152Spfg  echo "$as_me: failed program was:" >&5
7467282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
7468282152Spfg
7469282152Spfgfi
7470282152Spfgrm -f conftest.err conftest.$ac_objext \
7471282152Spfg      conftest$ac_exeext conftest.$ac_ext
7472282152Spfgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7473282152Spfg
7474282152Spfg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7475282152Spfg	  # Warning - without using the other run time loading flags,
7476282152Spfg	  # -berok will link without error, but may produce a broken library.
7477282152Spfg	  no_undefined_flag=' ${wl}-bernotok'
7478282152Spfg	  allow_undefined_flag=' ${wl}-berok'
7479282152Spfg	  # Exported symbols can be pulled into shared objects from archives
7480282152Spfg	  whole_archive_flag_spec='$convenience'
7481282152Spfg	  archive_cmds_need_lc=yes
7482282152Spfg	  # This is similar to how AIX traditionally builds its shared libraries.
7483282152Spfg	  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'
7484282152Spfg	fi
7485282152Spfg      fi
7486169695Skan      ;;
7487282152Spfg
7488282152Spfg    amigaos*)
7489282152Spfg      if test "$host_cpu" = m68k; then
7490282152Spfg        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)'
7491282152Spfg        hardcode_libdir_flag_spec='-L$libdir'
7492282152Spfg        hardcode_minus_L=yes
7493282152Spfg      fi
7494282152Spfg      # see comment about different semantics on the GNU ld section
7495282152Spfg      ld_shlibs=no
7496282152Spfg      ;;
7497282152Spfg
7498282152Spfg    bsdi[45]*)
7499282152Spfg      export_dynamic_flag_spec=-rdynamic
7500282152Spfg      ;;
7501282152Spfg
7502282152Spfg    cygwin* | mingw* | pw32*)
7503282152Spfg      # When not using gcc, we currently assume that we are using
7504282152Spfg      # Microsoft Visual C++.
7505282152Spfg      # hardcode_libdir_flag_spec is actually meaningless, as there is
7506282152Spfg      # no search path for DLLs.
7507282152Spfg      hardcode_libdir_flag_spec=' '
7508282152Spfg      allow_undefined_flag=unsupported
7509282152Spfg      # Tell ltmain to make .lib files, not .a files.
7510282152Spfg      libext=lib
7511282152Spfg      # Tell ltmain to make .dll files, not .so files.
7512282152Spfg      shrext_cmds=".dll"
7513282152Spfg      # FIXME: Setting linknames here is a bad hack.
7514282152Spfg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7515282152Spfg      # The linker will automatically build a .lib file if we build a DLL.
7516282152Spfg      old_archive_from_new_cmds='true'
7517282152Spfg      # FIXME: Should let the user specify the lib program.
7518282152Spfg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7519282152Spfg      fix_srcfile_path='`cygpath -w "$srcfile"`'
7520282152Spfg      enable_shared_with_static_runtimes=yes
7521282152Spfg      ;;
7522282152Spfg
7523282152Spfg    darwin* | rhapsody*)
7524282152Spfg      case $host_os in
7525282152Spfg      rhapsody* | darwin1.[012])
7526282152Spfg	allow_undefined_flag='${wl}-undefined ${wl}suppress'
7527282152Spfg	;;
7528282152Spfg      *) # Darwin 1.3 on
7529282152Spfg	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7530282152Spfg	10.[012])
7531282152Spfg	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7532282152Spfg	  ;;
7533282152Spfg	10.*)
7534282152Spfg	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7535282152Spfg	  ;;
7536282152Spfg	esac
7537282152Spfg	;;
7538282152Spfg      esac
7539282152Spfg      archive_cmds_need_lc=no
7540282152Spfg      hardcode_direct=no
7541282152Spfg      hardcode_automatic=yes
7542282152Spfg      hardcode_shlibpath_var=unsupported
7543282152Spfg      whole_archive_flag_spec=''
7544282152Spfg      link_all_deplibs=yes
7545282152Spfg      if test "$GCC" = yes ; then
7546282152Spfg	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7547282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
7548282152Spfgelse
7549282152Spfg  lt_cv_apple_cc_single_mod=no
7550282152Spfg	if test -z "${LT_MULTI_MODULE}"; then
7551282152Spfg	  # By default we will add the -single_module flag. You can override
7552282152Spfg	  # by either setting the environment variable LT_MULTI_MODULE
7553282152Spfg	  # non-empty at configure time, or by adding -multi-module to the
7554282152Spfg	  # link flags.
7555282152Spfg	  echo "int foo(void){return 1;}" > conftest.c
7556282152Spfg	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557282152Spfg	      -dynamiclib ${wl}-single_module conftest.c
7558282152Spfg	  if test -f libconftest.dylib; then
7559282152Spfg	      lt_cv_apple_cc_single_mod=yes
7560282152Spfg	      rm libconftest.dylib
7561282152Spfg	  fi
7562282152Spfg	  rm conftest.$ac_ext
7563282152Spfg	fi
7564282152Spfgfi
7565282152Spfg
7566282152Spfg	output_verbose_link_cmd=echo
7567282152Spfg	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7568282152Spfg	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7569282152Spfg	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570282152Spfg	else
7571282152Spfg	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7572282152Spfg	  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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7573282152Spfg	fi
7574282152Spfg	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7575282152Spfg	module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7576282152Spfg      else
7577282152Spfg	case $cc_basename in
7578282152Spfg	xlc*)
7579282152Spfg	  output_verbose_link_cmd=echo
7580282152Spfg	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7581282152Spfg	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7582282152Spfg	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7583282152Spfg	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7584282152Spfg	  module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7585282152Spfg	  ;;
7586282152Spfg	*)
7587282152Spfg	  ld_shlibs=no
7588282152Spfg	  ;;
7589282152Spfg	esac
7590282152Spfg      fi
7591282152Spfg      ;;
7592282152Spfg
7593282152Spfg    dgux*)
7594282152Spfg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595282152Spfg      hardcode_libdir_flag_spec='-L$libdir'
7596282152Spfg      hardcode_shlibpath_var=no
7597282152Spfg      ;;
7598282152Spfg
7599282152Spfg    freebsd1*)
7600282152Spfg      ld_shlibs=no
7601282152Spfg      ;;
7602282152Spfg
7603282152Spfg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7604282152Spfg    # support.  Future versions do this automatically, but an explicit c++rt0.o
7605282152Spfg    # does not break anything, and helps significantly (at the cost of a little
7606282152Spfg    # extra space).
7607282152Spfg    freebsd2.2*)
7608282152Spfg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7609282152Spfg      hardcode_libdir_flag_spec='-R$libdir'
7610282152Spfg      hardcode_direct=yes
7611282152Spfg      hardcode_shlibpath_var=no
7612282152Spfg      ;;
7613282152Spfg
7614282152Spfg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7615282152Spfg    freebsd2*)
7616282152Spfg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7617282152Spfg      hardcode_direct=yes
7618282152Spfg      hardcode_minus_L=yes
7619282152Spfg      hardcode_shlibpath_var=no
7620282152Spfg      ;;
7621282152Spfg
7622282152Spfg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7623282152Spfg    freebsd* | dragonfly*)
7624282152Spfg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7625282152Spfg      hardcode_libdir_flag_spec='-R$libdir'
7626282152Spfg      hardcode_direct=yes
7627282152Spfg      hardcode_shlibpath_var=no
7628282152Spfg      ;;
7629282152Spfg
7630282152Spfg    hpux9*)
7631282152Spfg      if test "$GCC" = yes; then
7632282152Spfg	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'
7633282152Spfg      else
7634282152Spfg	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'
7635282152Spfg      fi
7636282152Spfg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7637282152Spfg      hardcode_libdir_separator=:
7638282152Spfg      hardcode_direct=yes
7639282152Spfg
7640282152Spfg      # hardcode_minus_L: Not really in the search PATH,
7641282152Spfg      # but as the default location of the library.
7642282152Spfg      hardcode_minus_L=yes
7643282152Spfg      export_dynamic_flag_spec='${wl}-E'
7644282152Spfg      ;;
7645282152Spfg
7646282152Spfg    hpux10*)
7647282152Spfg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7648282152Spfg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7649282152Spfg      else
7650282152Spfg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7651282152Spfg      fi
7652282152Spfg      if test "$with_gnu_ld" = no; then
7653282152Spfg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654282152Spfg	hardcode_libdir_flag_spec_ld='+b $libdir'
7655282152Spfg	hardcode_libdir_separator=:
7656282152Spfg	hardcode_direct=yes
7657282152Spfg	hardcode_direct_absolute=yes
7658282152Spfg	export_dynamic_flag_spec='${wl}-E'
7659282152Spfg	# hardcode_minus_L: Not really in the search PATH,
7660282152Spfg	# but as the default location of the library.
7661282152Spfg	hardcode_minus_L=yes
7662282152Spfg      fi
7663282152Spfg      ;;
7664282152Spfg
7665282152Spfg    hpux11*)
7666282152Spfg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7667282152Spfg	case $host_cpu in
7668282152Spfg	hppa*64*)
7669282152Spfg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7670282152Spfg	  ;;
7671282152Spfg	ia64*)
7672282152Spfg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7673282152Spfg	  ;;
7674282152Spfg	*)
7675282152Spfg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7676282152Spfg	  ;;
7677282152Spfg	esac
7678282152Spfg      else
7679282152Spfg	case $host_cpu in
7680282152Spfg	hppa*64*)
7681282152Spfg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7682282152Spfg	  ;;
7683282152Spfg	ia64*)
7684282152Spfg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7685282152Spfg	  ;;
7686282152Spfg	*)
7687282152Spfg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7688282152Spfg	  ;;
7689282152Spfg	esac
7690282152Spfg      fi
7691282152Spfg      if test "$with_gnu_ld" = no; then
7692282152Spfg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7693282152Spfg	hardcode_libdir_separator=:
7694282152Spfg
7695282152Spfg	case $host_cpu in
7696282152Spfg	hppa*64*|ia64*)
7697282152Spfg	  hardcode_direct=no
7698282152Spfg	  hardcode_shlibpath_var=no
7699282152Spfg	  ;;
7700282152Spfg	*)
7701282152Spfg	  hardcode_direct=yes
7702282152Spfg	  hardcode_direct_absolute=yes
7703282152Spfg	  export_dynamic_flag_spec='${wl}-E'
7704282152Spfg
7705282152Spfg	  # hardcode_minus_L: Not really in the search PATH,
7706282152Spfg	  # but as the default location of the library.
7707282152Spfg	  hardcode_minus_L=yes
7708282152Spfg	  ;;
7709282152Spfg	esac
7710282152Spfg      fi
7711282152Spfg      ;;
7712282152Spfg
7713282152Spfg    irix5* | irix6* | nonstopux*)
7714282152Spfg      if test "$GCC" = yes; then
7715282152Spfg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7716282152Spfg	# Try to use the -exported_symbol ld option, if it does not
7717282152Spfg	# work, assume that -exports_file does not work either and
7718282152Spfg	# implicitly export all symbols.
7719282152Spfg        save_LDFLAGS="$LDFLAGS"
7720282152Spfg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7721282152Spfg        cat >conftest.$ac_ext <<_ACEOF
7722282152Spfgint foo(void) {}
7723282152Spfg_ACEOF
7724282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
7725282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726282152Spfg  (eval $ac_link) 2>conftest.er1
7727282152Spfg  ac_status=$?
7728282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
7729282152Spfg  rm -f conftest.er1
7730282152Spfg  cat conftest.err >&5
7731282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732282152Spfg  (exit $ac_status); } &&
7733282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
7734282152Spfg			 || test ! -s conftest.err'
7735282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736282152Spfg  (eval $ac_try) 2>&5
7737282152Spfg  ac_status=$?
7738282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739282152Spfg  (exit $ac_status); }; } &&
7740282152Spfg	 { ac_try='test -s conftest$ac_exeext'
7741282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742282152Spfg  (eval $ac_try) 2>&5
7743282152Spfg  ac_status=$?
7744282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745282152Spfg  (exit $ac_status); }; }; then
7746282152Spfg  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7747282152Spfg
7748282152Spfgelse
7749282152Spfg  echo "$as_me: failed program was:" >&5
7750282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
7751282152Spfg
7752282152Spfgfi
7753282152Spfgrm -f conftest.err conftest.$ac_objext \
7754282152Spfg      conftest$ac_exeext conftest.$ac_ext
7755282152Spfg        LDFLAGS="$save_LDFLAGS"
7756282152Spfg      else
7757282152Spfg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7758282152Spfg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7759282152Spfg      fi
7760282152Spfg      archive_cmds_need_lc='no'
7761282152Spfg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7762282152Spfg      hardcode_libdir_separator=:
7763282152Spfg      inherit_rpath=yes
7764282152Spfg      link_all_deplibs=yes
7765282152Spfg      ;;
7766282152Spfg
7767282152Spfg    netbsd*)
7768282152Spfg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7769282152Spfg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7770282152Spfg      else
7771282152Spfg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7772282152Spfg      fi
7773282152Spfg      hardcode_libdir_flag_spec='-R$libdir'
7774282152Spfg      hardcode_direct=yes
7775282152Spfg      hardcode_shlibpath_var=no
7776282152Spfg      ;;
7777282152Spfg
7778282152Spfg    newsos6)
7779282152Spfg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7780282152Spfg      hardcode_direct=yes
7781282152Spfg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7782282152Spfg      hardcode_libdir_separator=:
7783282152Spfg      hardcode_shlibpath_var=no
7784282152Spfg      ;;
7785282152Spfg
7786282152Spfg    *nto* | *qnx*)
7787282152Spfg      ;;
7788282152Spfg
7789282152Spfg    openbsd*)
7790282152Spfg      hardcode_direct=yes
7791282152Spfg      hardcode_shlibpath_var=no
7792282152Spfg      hardcode_direct_absolute=yes
7793282152Spfg      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7794282152Spfg	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7795282152Spfg	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7796282152Spfg	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7797282152Spfg	export_dynamic_flag_spec='${wl}-E'
7798282152Spfg      else
7799282152Spfg        case $host_os in
7800282152Spfg	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7801282152Spfg	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7802282152Spfg	  hardcode_libdir_flag_spec='-R$libdir'
7803282152Spfg	  ;;
7804282152Spfg	*)
7805282152Spfg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7806282152Spfg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7807282152Spfg	  ;;
7808282152Spfg        esac
7809282152Spfg      fi
7810282152Spfg      ;;
7811282152Spfg
7812282152Spfg    os2*)
7813282152Spfg      hardcode_libdir_flag_spec='-L$libdir'
7814282152Spfg      hardcode_minus_L=yes
7815282152Spfg      allow_undefined_flag=unsupported
7816282152Spfg      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'
7817282152Spfg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7818282152Spfg      ;;
7819282152Spfg
7820282152Spfg    osf3*)
7821282152Spfg      if test "$GCC" = yes; then
7822282152Spfg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7823282152Spfg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7824282152Spfg      else
7825282152Spfg	allow_undefined_flag=' -expect_unresolved \*'
7826282152Spfg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7827282152Spfg      fi
7828282152Spfg      archive_cmds_need_lc='no'
7829282152Spfg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830282152Spfg      hardcode_libdir_separator=:
7831282152Spfg      ;;
7832282152Spfg
7833282152Spfg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7834282152Spfg      if test "$GCC" = yes; then
7835282152Spfg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836282152Spfg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7837282152Spfg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838282152Spfg      else
7839282152Spfg	allow_undefined_flag=' -expect_unresolved \*'
7840282152Spfg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7841282152Spfg	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~
7842282152Spfg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7843282152Spfg
7844282152Spfg	# Both c and cxx compiler support -rpath directly
7845282152Spfg	hardcode_libdir_flag_spec='-rpath $libdir'
7846282152Spfg      fi
7847282152Spfg      archive_cmds_need_lc='no'
7848282152Spfg      hardcode_libdir_separator=:
7849282152Spfg      ;;
7850282152Spfg
7851282152Spfg    solaris*)
7852282152Spfg      no_undefined_flag=' -z defs'
7853282152Spfg      if test "$GCC" = yes; then
7854282152Spfg	wlarc='${wl}'
7855282152Spfg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856282152Spfg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7857282152Spfg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7858282152Spfg      else
7859282152Spfg	case `$CC -V 2>&1` in
7860282152Spfg	*"Compilers 5.0"*)
7861282152Spfg	  wlarc=''
7862282152Spfg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863282152Spfg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7864282152Spfg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7865282152Spfg	  ;;
7866282152Spfg	*)
7867282152Spfg	  wlarc='${wl}'
7868282152Spfg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7869282152Spfg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7870282152Spfg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7871282152Spfg	  ;;
7872282152Spfg	esac
7873282152Spfg      fi
7874282152Spfg      hardcode_libdir_flag_spec='-R$libdir'
7875282152Spfg      hardcode_shlibpath_var=no
7876282152Spfg      case $host_os in
7877282152Spfg      solaris2.[0-5] | solaris2.[0-5].*) ;;
7878282152Spfg      *)
7879282152Spfg	# The compiler driver will combine and reorder linker options,
7880282152Spfg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7881282152Spfg	# but is careful enough not to reorder.
7882282152Spfg	# Supported since Solaris 2.6 (maybe 2.5.1?)
7883282152Spfg	if test "$GCC" = yes; then
7884282152Spfg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7885282152Spfg	else
7886282152Spfg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7887282152Spfg	fi
7888282152Spfg	;;
7889282152Spfg      esac
7890282152Spfg      link_all_deplibs=yes
7891282152Spfg      ;;
7892282152Spfg
7893282152Spfg    sunos4*)
7894282152Spfg      if test "x$host_vendor" = xsequent; then
7895282152Spfg	# Use $CC to link under sequent, because it throws in some extra .o
7896282152Spfg	# files that make .init and .fini sections work.
7897282152Spfg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7898282152Spfg      else
7899282152Spfg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7900282152Spfg      fi
7901282152Spfg      hardcode_libdir_flag_spec='-L$libdir'
7902282152Spfg      hardcode_direct=yes
7903282152Spfg      hardcode_minus_L=yes
7904282152Spfg      hardcode_shlibpath_var=no
7905282152Spfg      ;;
7906282152Spfg
7907282152Spfg    sysv4)
7908282152Spfg      case $host_vendor in
7909282152Spfg	sni)
7910282152Spfg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911282152Spfg	  hardcode_direct=yes # is this really true???
7912282152Spfg	;;
7913282152Spfg	siemens)
7914282152Spfg	  ## LD is ld it makes a PLAMLIB
7915282152Spfg	  ## CC just makes a GrossModule.
7916282152Spfg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7917282152Spfg	  reload_cmds='$CC -r -o $output$reload_objs'
7918282152Spfg	  hardcode_direct=no
7919282152Spfg        ;;
7920282152Spfg	motorola)
7921282152Spfg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7922282152Spfg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7923282152Spfg	;;
7924282152Spfg      esac
7925282152Spfg      runpath_var='LD_RUN_PATH'
7926282152Spfg      hardcode_shlibpath_var=no
7927282152Spfg      ;;
7928282152Spfg
7929282152Spfg    sysv4.3*)
7930282152Spfg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931282152Spfg      hardcode_shlibpath_var=no
7932282152Spfg      export_dynamic_flag_spec='-Bexport'
7933282152Spfg      ;;
7934282152Spfg
7935282152Spfg    sysv4*MP*)
7936282152Spfg      if test -d /usr/nec; then
7937282152Spfg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938282152Spfg	hardcode_shlibpath_var=no
7939282152Spfg	runpath_var=LD_RUN_PATH
7940282152Spfg	hardcode_runpath_var=yes
7941282152Spfg	ld_shlibs=yes
7942282152Spfg      fi
7943282152Spfg      ;;
7944282152Spfg
7945282152Spfg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7946282152Spfg      no_undefined_flag='${wl}-z,text'
7947282152Spfg      archive_cmds_need_lc=no
7948282152Spfg      hardcode_shlibpath_var=no
7949282152Spfg      runpath_var='LD_RUN_PATH'
7950282152Spfg
7951282152Spfg      if test "$GCC" = yes; then
7952282152Spfg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7953282152Spfg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7954282152Spfg      else
7955282152Spfg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7956282152Spfg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7957282152Spfg      fi
7958282152Spfg      ;;
7959282152Spfg
7960282152Spfg    sysv5* | sco3.2v5* | sco5v6*)
7961282152Spfg      # Note: We can NOT use -z defs as we might desire, because we do not
7962282152Spfg      # link with -lc, and that would cause any symbols used from libc to
7963282152Spfg      # always be unresolved, which means just about no library would
7964282152Spfg      # ever link correctly.  If we're not using GNU ld we use -z text
7965282152Spfg      # though, which does catch some bad symbols but isn't as heavy-handed
7966282152Spfg      # as -z defs.
7967282152Spfg      no_undefined_flag='${wl}-z,text'
7968282152Spfg      allow_undefined_flag='${wl}-z,nodefs'
7969282152Spfg      archive_cmds_need_lc=no
7970282152Spfg      hardcode_shlibpath_var=no
7971282152Spfg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
7972282152Spfg      hardcode_libdir_separator=':'
7973282152Spfg      link_all_deplibs=yes
7974282152Spfg      export_dynamic_flag_spec='${wl}-Bexport'
7975282152Spfg      runpath_var='LD_RUN_PATH'
7976282152Spfg
7977282152Spfg      if test "$GCC" = yes; then
7978282152Spfg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979282152Spfg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980282152Spfg      else
7981282152Spfg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982282152Spfg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7983282152Spfg      fi
7984282152Spfg      ;;
7985282152Spfg
7986282152Spfg    uts4*)
7987282152Spfg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988282152Spfg      hardcode_libdir_flag_spec='-L$libdir'
7989282152Spfg      hardcode_shlibpath_var=no
7990282152Spfg      ;;
7991282152Spfg
7992169695Skan    *)
7993282152Spfg      ld_shlibs=no
7994169695Skan      ;;
7995282152Spfg    esac
7996282152Spfg
7997282152Spfg    if test x$host_vendor = xsni; then
7998282152Spfg      case $host in
7999282152Spfg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8000282152Spfg	export_dynamic_flag_spec='${wl}-Blargedynsym'
8001282152Spfg	;;
8002282152Spfg      esac
8003282152Spfg    fi
8004282152Spfg  fi
8005282152Spfg
8006282152Spfgecho "$as_me:$LINENO: result: $ld_shlibs" >&5
8007282152Spfgecho "${ECHO_T}$ld_shlibs" >&6
8008282152Spfgtest "$ld_shlibs" = no && can_build_shared=no
8009282152Spfg
8010282152Spfgwith_gnu_ld=$with_gnu_ld
8011282152Spfg
8012282152Spfg
8013282152Spfg
8014282152Spfg
8015282152Spfg
8016282152Spfg
8017282152Spfg
8018282152Spfg
8019282152Spfg
8020282152Spfg
8021282152Spfg
8022282152Spfg
8023282152Spfg
8024282152Spfg
8025282152Spfg
8026282152Spfg#
8027282152Spfg# Do we need to explicitly link libc?
8028282152Spfg#
8029282152Spfgcase "x$archive_cmds_need_lc" in
8030282152Spfgx|xyes)
8031282152Spfg  # Assume -lc should be added
8032282152Spfg  archive_cmds_need_lc=yes
8033282152Spfg
8034282152Spfg  if test "$enable_shared" = yes && test "$GCC" = yes; then
8035282152Spfg    case $archive_cmds in
8036282152Spfg    *'~'*)
8037282152Spfg      # FIXME: we may have to deal with multi-command sequences.
8038282152Spfg      ;;
8039282152Spfg    '$CC '*)
8040282152Spfg      # Test whether the compiler implicitly links with -lc since on some
8041282152Spfg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8042282152Spfg      # to ld, don't add -lc before -lgcc.
8043282152Spfg      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8044282152Spfgecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8045282152Spfg      $RM conftest*
8046282152Spfg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047282152Spfg
8048282152Spfg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049282152Spfg  (eval $ac_compile) 2>&5
8050282152Spfg  ac_status=$?
8051282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052282152Spfg  (exit $ac_status); } 2>conftest.err; then
8053282152Spfg        soname=conftest
8054282152Spfg        lib=conftest
8055282152Spfg        libobjs=conftest.$ac_objext
8056282152Spfg        deplibs=
8057282152Spfg        wl=$lt_prog_compiler_wl
8058282152Spfg	pic_flag=$lt_prog_compiler_pic
8059282152Spfg        compiler_flags=-v
8060282152Spfg        linker_flags=-v
8061282152Spfg        verstring=
8062282152Spfg        output_objdir=.
8063282152Spfg        libname=conftest
8064282152Spfg        lt_save_allow_undefined_flag=$allow_undefined_flag
8065282152Spfg        allow_undefined_flag=
8066282152Spfg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8067282152Spfg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8068282152Spfg  ac_status=$?
8069282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070282152Spfg  (exit $ac_status); }
8071282152Spfg        then
8072282152Spfg	  archive_cmds_need_lc=no
8073282152Spfg        else
8074282152Spfg	  archive_cmds_need_lc=yes
8075282152Spfg        fi
8076282152Spfg        allow_undefined_flag=$lt_save_allow_undefined_flag
8077282152Spfg      else
8078282152Spfg        cat conftest.err 1>&5
8079282152Spfg      fi
8080282152Spfg      $RM conftest*
8081282152Spfg      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8082282152Spfgecho "${ECHO_T}$archive_cmds_need_lc" >&6
8083282152Spfg      ;;
8084282152Spfg    esac
8085282152Spfg  fi
8086282152Spfg  ;;
8087282152Spfgesac
8088282152Spfg
8089282152Spfg
8090282152Spfg
8091282152Spfg
8092282152Spfg
8093282152Spfg
8094282152Spfg
8095282152Spfg
8096282152Spfg
8097282152Spfg
8098282152Spfg
8099282152Spfg
8100282152Spfg
8101282152Spfg
8102282152Spfg
8103282152Spfg
8104282152Spfg
8105282152Spfg
8106282152Spfg
8107282152Spfg
8108282152Spfg
8109282152Spfg
8110282152Spfg
8111282152Spfg
8112282152Spfg
8113282152Spfg
8114282152Spfg
8115282152Spfg
8116282152Spfg
8117282152Spfg
8118282152Spfg
8119282152Spfg
8120282152Spfg
8121282152Spfg
8122282152Spfg
8123282152Spfg
8124282152Spfg
8125282152Spfg
8126282152Spfg
8127282152Spfg
8128282152Spfg
8129282152Spfg
8130282152Spfg
8131282152Spfg
8132282152Spfg
8133282152Spfg
8134282152Spfg
8135282152Spfg
8136282152Spfg
8137282152Spfg
8138282152Spfg
8139282152Spfg
8140282152Spfg
8141282152Spfg
8142282152Spfg
8143282152Spfg
8144282152Spfg
8145282152Spfg
8146282152Spfg
8147282152Spfg
8148282152Spfg
8149282152Spfg
8150282152Spfg
8151282152Spfg
8152282152Spfg
8153282152Spfg
8154282152Spfg
8155282152Spfg
8156282152Spfg
8157282152Spfg
8158282152Spfg
8159282152Spfg
8160282152Spfg
8161282152Spfg
8162282152Spfg
8163282152Spfg
8164282152Spfg
8165282152Spfg
8166282152Spfg
8167282152Spfg
8168282152Spfg
8169282152Spfg
8170282152Spfg
8171282152Spfg
8172282152Spfg
8173282152Spfg
8174282152Spfg
8175282152Spfg
8176282152Spfg
8177282152Spfg
8178282152Spfg
8179282152Spfg
8180282152Spfg
8181282152Spfg
8182282152Spfg
8183282152Spfg
8184282152Spfg
8185282152Spfg
8186282152Spfg
8187282152Spfg
8188282152Spfg
8189282152Spfg
8190282152Spfg
8191282152Spfg
8192282152Spfg
8193282152Spfg
8194282152Spfg
8195282152Spfg
8196282152Spfg
8197282152Spfg
8198282152Spfg
8199282152Spfg
8200282152Spfg
8201282152Spfg
8202282152Spfg
8203282152Spfg
8204282152Spfg
8205282152Spfg
8206282152Spfg
8207282152Spfg
8208282152Spfg
8209282152Spfg
8210282152Spfg
8211282152Spfg
8212282152Spfg
8213282152Spfg
8214282152Spfg
8215282152Spfg
8216282152Spfg
8217282152Spfg
8218282152Spfg
8219282152Spfg
8220282152Spfg
8221282152Spfg
8222282152Spfg
8223282152Spfg
8224282152Spfg
8225282152Spfg
8226282152Spfg
8227282152Spfg
8228282152Spfg
8229282152Spfg
8230282152Spfg
8231282152Spfg
8232282152Spfg
8233282152Spfg
8234282152Spfg
8235282152Spfg
8236282152Spfg
8237282152Spfg
8238282152Spfg
8239282152Spfg
8240282152Spfg
8241282152Spfg
8242282152Spfg
8243282152Spfg
8244282152Spfg
8245282152Spfg  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246282152Spfgecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8247282152SpfgwithGCC=$GCC
8248282152Spfgif test "$withGCC" = yes; then
8249282152Spfg  case $host_os in
8250282152Spfg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8251282152Spfg    *) lt_awk_arg="/^libraries:/" ;;
8252282152Spfg  esac
8253282152Spfg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8254282152Spfg  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8255282152Spfg    # if the path contains ";" then we assume it to be the separator
8256282152Spfg    # otherwise default to the standard path separator (i.e. ":") - it is
8257282152Spfg    # assumed that no part of a normal pathname contains ";" but that should
8258282152Spfg    # okay in the real world where ";" in dirpaths is itself problematic.
8259282152Spfg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8260169695Skan  else
8261282152Spfg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8262169695Skan  fi
8263282152Spfg  # Ok, now we have the path, separated by spaces, we can step through it
8264282152Spfg  # and add multilib dir if necessary.
8265282152Spfg  lt_tmp_lt_search_path_spec=
8266282152Spfg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8267282152Spfg  for lt_sys_path in $lt_search_path_spec; do
8268282152Spfg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8269282152Spfg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8270282152Spfg    else
8271282152Spfg      test -d "$lt_sys_path" && \
8272282152Spfg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8273282152Spfg    fi
8274282152Spfg  done
8275282152Spfg  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8276282152SpfgBEGIN {RS=" "; FS="/|\n";} {
8277282152Spfg  lt_foo="";
8278282152Spfg  lt_count=0;
8279282152Spfg  for (lt_i = NF; lt_i > 0; lt_i--) {
8280282152Spfg    if ($lt_i != "" && $lt_i != ".") {
8281282152Spfg      if ($lt_i == "..") {
8282282152Spfg        lt_count++;
8283282152Spfg      } else {
8284282152Spfg        if (lt_count == 0) {
8285282152Spfg          lt_foo="/" $lt_i lt_foo;
8286282152Spfg        } else {
8287282152Spfg          lt_count--;
8288282152Spfg        }
8289282152Spfg      }
8290282152Spfg    }
8291282152Spfg  }
8292282152Spfg  if (lt_foo != "") { lt_freq[lt_foo]++; }
8293282152Spfg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8294282152Spfg}'`
8295282152Spfg  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8296282152Spfgelse
8297282152Spfg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8298169695Skanfi
8299282152Spfglibrary_names_spec=
8300282152Spfglibname_spec='lib$name'
8301282152Spfgsoname_spec=
8302282152Spfgshrext_cmds=".so"
8303282152Spfgpostinstall_cmds=
8304282152Spfgpostuninstall_cmds=
8305282152Spfgfinish_cmds=
8306282152Spfgfinish_eval=
8307282152Spfgshlibpath_var=
8308282152Spfgshlibpath_overrides_runpath=unknown
8309282152Spfgversion_type=none
8310282152Spfgdynamic_linker="$host_os ld.so"
8311282152Spfgsys_lib_dlsearch_path_spec="/lib /usr/lib"
8312282152Spfgneed_lib_prefix=unknown
8313282152Spfghardcode_into_libs=no
8314169695Skan
8315282152Spfg# when you set need_version to no, make sure it does not cause -set_version
8316282152Spfg# flags to be left without arguments
8317282152Spfgneed_version=unknown
8318169695Skan
8319282152Spfgcase $host_os in
8320282152Spfgaix3*)
8321282152Spfg  version_type=linux
8322282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8323282152Spfg  shlibpath_var=LIBPATH
8324282152Spfg
8325282152Spfg  # AIX 3 has no versioning support, so we append a major version to the name.
8326282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8327282152Spfg  ;;
8328282152Spfg
8329282152Spfgaix[4-9]*)
8330282152Spfg  version_type=linux
8331282152Spfg  need_lib_prefix=no
8332282152Spfg  need_version=no
8333282152Spfg  hardcode_into_libs=yes
8334282152Spfg  if test "$host_cpu" = ia64; then
8335282152Spfg    # AIX 5 supports IA64
8336282152Spfg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8337282152Spfg    shlibpath_var=LD_LIBRARY_PATH
8338282152Spfg  else
8339282152Spfg    # With GCC up to 2.95.x, collect2 would create an import file
8340282152Spfg    # for dependence libraries.  The import file would start with
8341282152Spfg    # the line `#! .'.  This would cause the generated library to
8342282152Spfg    # depend on `.', always an invalid library.  This was fixed in
8343282152Spfg    # development snapshots of GCC prior to 3.0.
8344282152Spfg    case $host_os in
8345282152Spfg      aix4 | aix4.[01] | aix4.[01].*)
8346282152Spfg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8347282152Spfg	   echo ' yes '
8348282152Spfg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8349282152Spfg	:
8350282152Spfg      else
8351282152Spfg	can_build_shared=no
8352282152Spfg      fi
8353282152Spfg      ;;
8354169695Skan    esac
8355282152Spfg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8356282152Spfg    # soname into executable. Probably we can add versioning support to
8357282152Spfg    # collect2, so additional links can be useful in future.
8358282152Spfg    if test "$aix_use_runtimelinking" = yes; then
8359282152Spfg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8360282152Spfg      # instead of lib<name>.a to let people know that these are not
8361282152Spfg      # typical AIX shared libraries.
8362282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363282152Spfg    else
8364282152Spfg      # We preserve .a as extension for shared libraries through AIX4.2
8365282152Spfg      # and later when we are not doing run time linking.
8366282152Spfg      library_names_spec='${libname}${release}.a $libname.a'
8367282152Spfg      soname_spec='${libname}${release}${shared_ext}$major'
8368282152Spfg    fi
8369282152Spfg    shlibpath_var=LIBPATH
8370169695Skan  fi
8371282152Spfg  ;;
8372282152Spfg
8373282152Spfgamigaos*)
8374282152Spfg  if test "$host_cpu" = m68k; then
8375282152Spfg    library_names_spec='$libname.ixlibrary $libname.a'
8376282152Spfg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8377282152Spfg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8378282152Spfg  else
8379282152Spfg    dynamic_linker=no
8380282152Spfg  fi
8381282152Spfg  ;;
8382282152Spfg
8383282152Spfgbeos*)
8384282152Spfg  library_names_spec='${libname}${shared_ext}'
8385282152Spfg  dynamic_linker="$host_os ld.so"
8386282152Spfg  shlibpath_var=LIBRARY_PATH
8387282152Spfg  ;;
8388282152Spfg
8389282152Spfgbsdi[45]*)
8390282152Spfg  version_type=linux
8391282152Spfg  need_version=no
8392282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8394282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8395282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8396282152Spfg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8397282152Spfg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8398282152Spfg  # the default ld.so.conf also contains /usr/contrib/lib and
8399282152Spfg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8400282152Spfg  # libtool to hard-code these into programs
8401282152Spfg  ;;
8402282152Spfg
8403282152Spfgcygwin* | mingw* | pw32*)
8404282152Spfg  version_type=windows
8405282152Spfg  shrext_cmds=".dll"
8406282152Spfg  need_version=no
8407282152Spfg  need_lib_prefix=no
8408282152Spfg
8409282152Spfg  case $withGCC,$host_os in
8410282152Spfg  yes,cygwin* | yes,mingw* | yes,pw32*)
8411282152Spfg    library_names_spec='$libname.dll.a'
8412282152Spfg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8413282152Spfg    postinstall_cmds='base_file=`basename \${file}`~
8414282152Spfg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8415282152Spfg      dldir=$destdir/`dirname \$dlpath`~
8416282152Spfg      test -d \$dldir || mkdir -p \$dldir~
8417282152Spfg      $install_prog $dir/$dlname \$dldir/$dlname~
8418282152Spfg      chmod a+x \$dldir/$dlname~
8419282152Spfg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8420282152Spfg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8421282152Spfg      fi'
8422282152Spfg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8423282152Spfg      dlpath=$dir/\$dldll~
8424282152Spfg       $RM \$dlpath'
8425282152Spfg    shlibpath_overrides_runpath=yes
8426282152Spfg
8427282152Spfg    case $host_os in
8428282152Spfg    cygwin*)
8429282152Spfg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8430282152Spfg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8431282152Spfg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8432282152Spfg      ;;
8433282152Spfg    mingw*)
8434282152Spfg      # MinGW DLLs use traditional 'lib' prefix
8435282152Spfg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8436282152Spfg      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8437282152Spfg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8438282152Spfg        # It is most probably a Windows format PATH printed by
8439282152Spfg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8440282152Spfg        # path with ; separators, and with drive letters. We can handle the
8441282152Spfg        # drive letters (cygwin fileutils understands them), so leave them,
8442282152Spfg        # especially as we might pass files found there to a mingw objdump,
8443282152Spfg        # which wouldn't understand a cygwinified path. Ahh.
8444282152Spfg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8445282152Spfg      else
8446282152Spfg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8447282152Spfg      fi
8448282152Spfg      ;;
8449282152Spfg    pw32*)
8450282152Spfg      # pw32 DLLs use 'pw' prefix rather than 'lib'
8451282152Spfg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8452282152Spfg      ;;
8453282152Spfg    esac
8454282152Spfg    ;;
8455282152Spfg
8456282152Spfg  *)
8457282152Spfg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8458282152Spfg    ;;
8459282152Spfg  esac
8460282152Spfg  dynamic_linker='Win32 ld.exe'
8461282152Spfg  # FIXME: first we should search . and the directory the executable is in
8462282152Spfg  shlibpath_var=PATH
8463282152Spfg  ;;
8464282152Spfg
8465282152Spfgdarwin* | rhapsody*)
8466282152Spfg  dynamic_linker="$host_os dyld"
8467282152Spfg  version_type=darwin
8468282152Spfg  need_lib_prefix=no
8469282152Spfg  need_version=no
8470282152Spfg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8471282152Spfg  soname_spec='${libname}${release}${major}$shared_ext'
8472282152Spfg  shlibpath_overrides_runpath=yes
8473282152Spfg  shlibpath_var=DYLD_LIBRARY_PATH
8474282152Spfg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8475282152Spfg
8476282152Spfg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8477282152Spfg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8478282152Spfg  ;;
8479282152Spfg
8480282152Spfgdgux*)
8481282152Spfg  version_type=linux
8482282152Spfg  need_lib_prefix=no
8483282152Spfg  need_version=no
8484282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8485282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8486282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8487282152Spfg  ;;
8488282152Spfg
8489282152Spfgfreebsd1*)
8490282152Spfg  dynamic_linker=no
8491282152Spfg  ;;
8492282152Spfg
8493282152Spfgfreebsd* | dragonfly*)
8494282152Spfg  # DragonFly does not have aout.  When/if they implement a new
8495282152Spfg  # versioning mechanism, adjust this.
8496282152Spfg  if test -x /usr/bin/objformat; then
8497282152Spfg    objformat=`/usr/bin/objformat`
8498282152Spfg  else
8499282152Spfg    case $host_os in
8500282152Spfg    freebsd[123]*) objformat=aout ;;
8501282152Spfg    *) objformat=elf ;;
8502282152Spfg    esac
8503282152Spfg  fi
8504282152Spfg  version_type=freebsd-$objformat
8505282152Spfg  case $version_type in
8506282152Spfg    freebsd-elf*)
8507282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8508282152Spfg      need_version=no
8509282152Spfg      need_lib_prefix=no
8510282152Spfg      ;;
8511282152Spfg    freebsd-*)
8512282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8513282152Spfg      need_version=yes
8514282152Spfg      ;;
8515282152Spfg  esac
8516282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8517282152Spfg  case $host_os in
8518282152Spfg  freebsd2*)
8519282152Spfg    shlibpath_overrides_runpath=yes
8520282152Spfg    ;;
8521282152Spfg  freebsd3.[01]* | freebsdelf3.[01]*)
8522282152Spfg    shlibpath_overrides_runpath=yes
8523282152Spfg    hardcode_into_libs=yes
8524282152Spfg    ;;
8525282152Spfg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8526282152Spfg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8527282152Spfg    shlibpath_overrides_runpath=no
8528282152Spfg    hardcode_into_libs=yes
8529282152Spfg    ;;
8530282152Spfg  *) # from 4.6 on, and DragonFly
8531282152Spfg    shlibpath_overrides_runpath=yes
8532282152Spfg    hardcode_into_libs=yes
8533282152Spfg    ;;
8534282152Spfg  esac
8535282152Spfg  ;;
8536282152Spfg
8537282152Spfggnu*)
8538282152Spfg  version_type=linux
8539282152Spfg  need_lib_prefix=no
8540282152Spfg  need_version=no
8541282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8542282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8543282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8544282152Spfg  hardcode_into_libs=yes
8545282152Spfg  ;;
8546282152Spfg
8547282152Spfghpux9* | hpux10* | hpux11*)
8548282152Spfg  # Give a soname corresponding to the major version so that dld.sl refuses to
8549282152Spfg  # link against other versions.
8550282152Spfg  version_type=sunos
8551282152Spfg  need_lib_prefix=no
8552282152Spfg  need_version=no
8553282152Spfg  case $host_cpu in
8554282152Spfg  ia64*)
8555282152Spfg    shrext_cmds='.so'
8556282152Spfg    hardcode_into_libs=yes
8557282152Spfg    dynamic_linker="$host_os dld.so"
8558282152Spfg    shlibpath_var=LD_LIBRARY_PATH
8559282152Spfg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8560282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
8562282152Spfg    if test "X$HPUX_IA64_MODE" = X32; then
8563282152Spfg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8564282152Spfg    else
8565282152Spfg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8566282152Spfg    fi
8567282152Spfg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8568282152Spfg    ;;
8569282152Spfg  hppa*64*)
8570282152Spfg    shrext_cmds='.sl'
8571282152Spfg    hardcode_into_libs=yes
8572282152Spfg    dynamic_linker="$host_os dld.sl"
8573282152Spfg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8574282152Spfg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8575282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
8577282152Spfg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8578282152Spfg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8579282152Spfg    ;;
8580282152Spfg  *)
8581282152Spfg    shrext_cmds='.sl'
8582282152Spfg    dynamic_linker="$host_os dld.sl"
8583282152Spfg    shlibpath_var=SHLIB_PATH
8584282152Spfg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8585282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
8587282152Spfg    ;;
8588282152Spfg  esac
8589282152Spfg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8590282152Spfg  postinstall_cmds='chmod 555 $lib'
8591282152Spfg  ;;
8592282152Spfg
8593282152Spfginterix[3-9]*)
8594282152Spfg  version_type=linux
8595282152Spfg  need_lib_prefix=no
8596282152Spfg  need_version=no
8597282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8598282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8599282152Spfg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8600282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8601282152Spfg  shlibpath_overrides_runpath=no
8602282152Spfg  hardcode_into_libs=yes
8603282152Spfg  ;;
8604282152Spfg
8605282152Spfgirix5* | irix6* | nonstopux*)
8606282152Spfg  case $host_os in
8607282152Spfg    nonstopux*) version_type=nonstopux ;;
8608282152Spfg    *)
8609282152Spfg	if test "$lt_cv_prog_gnu_ld" = yes; then
8610282152Spfg		version_type=linux
8611282152Spfg	else
8612282152Spfg		version_type=irix
8613282152Spfg	fi ;;
8614282152Spfg  esac
8615282152Spfg  need_lib_prefix=no
8616282152Spfg  need_version=no
8617282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8618282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8619282152Spfg  case $host_os in
8620282152Spfg  irix5* | nonstopux*)
8621282152Spfg    libsuff= shlibsuff=
8622282152Spfg    ;;
8623282152Spfg  *)
8624282152Spfg    case $LD in # libtool.m4 will add one of these switches to LD
8625282152Spfg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8626282152Spfg      libsuff= shlibsuff= libmagic=32-bit;;
8627282152Spfg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8628282152Spfg      libsuff=32 shlibsuff=N32 libmagic=N32;;
8629282152Spfg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8630282152Spfg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8631282152Spfg    *) libsuff= shlibsuff= libmagic=never-match;;
8632282152Spfg    esac
8633282152Spfg    ;;
8634282152Spfg  esac
8635282152Spfg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8636282152Spfg  shlibpath_overrides_runpath=no
8637282152Spfg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8638282152Spfg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8639282152Spfg  hardcode_into_libs=yes
8640282152Spfg  ;;
8641282152Spfg
8642282152Spfg# No shared lib support for Linux oldld, aout, or coff.
8643282152Spfglinux*oldld* | linux*aout* | linux*coff*)
8644282152Spfg  dynamic_linker=no
8645282152Spfg  ;;
8646282152Spfg
8647282152Spfg# This must be Linux ELF.
8648282152Spfglinux* | k*bsd*-gnu)
8649282152Spfg  version_type=linux
8650282152Spfg  need_lib_prefix=no
8651282152Spfg  need_version=no
8652282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8654282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8655282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8656282152Spfg  shlibpath_overrides_runpath=no
8657282152Spfg  # Some binutils ld are patched to set DT_RUNPATH
8658282152Spfg  save_LDFLAGS=$LDFLAGS
8659282152Spfg  save_libdir=$libdir
8660282152Spfg  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8661282152Spfg       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8662282152Spfg  cat >conftest.$ac_ext <<_ACEOF
8663282152Spfg/* confdefs.h.  */
8664282152Spfg_ACEOF
8665282152Spfgcat confdefs.h >>conftest.$ac_ext
8666282152Spfgcat >>conftest.$ac_ext <<_ACEOF
8667282152Spfg/* end confdefs.h.  */
8668282152Spfg
8669282152Spfgint
8670282152Spfgmain ()
8671282152Spfg{
8672282152Spfg
8673282152Spfg  ;
8674282152Spfg  return 0;
8675282152Spfg}
8676282152Spfg_ACEOF
8677282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
8678282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679282152Spfg  (eval $ac_link) 2>conftest.er1
8680282152Spfg  ac_status=$?
8681282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
8682282152Spfg  rm -f conftest.er1
8683282152Spfg  cat conftest.err >&5
8684282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685282152Spfg  (exit $ac_status); } &&
8686282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
8687282152Spfg			 || test ! -s conftest.err'
8688282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689282152Spfg  (eval $ac_try) 2>&5
8690282152Spfg  ac_status=$?
8691282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692282152Spfg  (exit $ac_status); }; } &&
8693282152Spfg	 { ac_try='test -s conftest$ac_exeext'
8694282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695282152Spfg  (eval $ac_try) 2>&5
8696282152Spfg  ac_status=$?
8697282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698282152Spfg  (exit $ac_status); }; }; then
8699282152Spfg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8700282152Spfg  shlibpath_overrides_runpath=yes
8701282152Spfgfi
8702282152Spfg
8703169695Skanelse
8704282152Spfg  echo "$as_me: failed program was:" >&5
8705282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
8706282152Spfg
8707169695Skanfi
8708282152Spfgrm -f conftest.err conftest.$ac_objext \
8709282152Spfg      conftest$ac_exeext conftest.$ac_ext
8710282152Spfg  LDFLAGS=$save_LDFLAGS
8711282152Spfg  libdir=$save_libdir
8712169695Skan
8713282152Spfg  # This implies no fast_install, which is unacceptable.
8714282152Spfg  # Some rework will be needed to allow for fast_install
8715282152Spfg  # before this can be enabled.
8716282152Spfg  hardcode_into_libs=yes
8717169695Skan
8718282152Spfg  # Append ld.so.conf contents to the search path
8719282152Spfg  if test -f /etc/ld.so.conf; then
8720282152Spfg    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8721282152Spfg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8722282152Spfg  fi
8723169695Skan
8724282152Spfg  # We used to test for /lib/ld.so.1 and disable shared libraries on
8725282152Spfg  # powerpc, because MkLinux only supported shared libraries with the
8726282152Spfg  # GNU dynamic linker.  Since this was broken with cross compilers,
8727282152Spfg  # most powerpc-linux boxes support dynamic linking these days and
8728282152Spfg  # people can always --disable-shared, the test was removed, and we
8729282152Spfg  # assume the GNU/Linux dynamic linker is in use.
8730282152Spfg  dynamic_linker='GNU/Linux ld.so'
8731282152Spfg  ;;
8732169695Skan
8733282152Spfgnetbsd*)
8734282152Spfg  version_type=sunos
8735282152Spfg  need_lib_prefix=no
8736282152Spfg  need_version=no
8737282152Spfg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8738282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8739282152Spfg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8740282152Spfg    dynamic_linker='NetBSD (a.out) ld.so'
8741282152Spfg  else
8742282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8743282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
8744282152Spfg    dynamic_linker='NetBSD ld.elf_so'
8745282152Spfg  fi
8746282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8747282152Spfg  shlibpath_overrides_runpath=yes
8748282152Spfg  hardcode_into_libs=yes
8749282152Spfg  ;;
8750169695Skan
8751282152Spfgnewsos6)
8752282152Spfg  version_type=linux
8753282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8755282152Spfg  shlibpath_overrides_runpath=yes
8756282152Spfg  ;;
8757169695Skan
8758282152Spfg*nto* | *qnx*)
8759282152Spfg  version_type=qnx
8760282152Spfg  need_lib_prefix=no
8761282152Spfg  need_version=no
8762282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8764282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8765282152Spfg  shlibpath_overrides_runpath=no
8766282152Spfg  hardcode_into_libs=yes
8767282152Spfg  dynamic_linker='ldqnx.so'
8768282152Spfg  ;;
8769169695Skan
8770282152Spfgopenbsd*)
8771282152Spfg  version_type=sunos
8772282152Spfg  sys_lib_dlsearch_path_spec="/usr/lib"
8773282152Spfg  need_lib_prefix=no
8774282152Spfg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8775282152Spfg  case $host_os in
8776282152Spfg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8777282152Spfg    *)				need_version=no  ;;
8778282152Spfg  esac
8779282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8780282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8781282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8782282152Spfg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8783282152Spfg    case $host_os in
8784282152Spfg      openbsd2.[89] | openbsd2.[89].*)
8785282152Spfg	shlibpath_overrides_runpath=no
8786282152Spfg	;;
8787282152Spfg      *)
8788282152Spfg	shlibpath_overrides_runpath=yes
8789282152Spfg	;;
8790282152Spfg      esac
8791282152Spfg  else
8792282152Spfg    shlibpath_overrides_runpath=yes
8793282152Spfg  fi
8794282152Spfg  ;;
8795169695Skan
8796282152Spfgos2*)
8797282152Spfg  libname_spec='$name'
8798282152Spfg  shrext_cmds=".dll"
8799282152Spfg  need_lib_prefix=no
8800282152Spfg  library_names_spec='$libname${shared_ext} $libname.a'
8801282152Spfg  dynamic_linker='OS/2 ld.exe'
8802282152Spfg  shlibpath_var=LIBPATH
8803282152Spfg  ;;
8804169695Skan
8805282152Spfgosf3* | osf4* | osf5*)
8806282152Spfg  version_type=osf
8807282152Spfg  need_lib_prefix=no
8808282152Spfg  need_version=no
8809282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8810282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8812282152Spfg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8813282152Spfg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8814282152Spfg  ;;
8815169695Skan
8816282152Spfgrdos*)
8817282152Spfg  dynamic_linker=no
8818282152Spfg  ;;
8819169695Skan
8820282152Spfgsolaris*)
8821282152Spfg  version_type=linux
8822282152Spfg  need_lib_prefix=no
8823282152Spfg  need_version=no
8824282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8826282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8827282152Spfg  shlibpath_overrides_runpath=yes
8828282152Spfg  hardcode_into_libs=yes
8829282152Spfg  # ldd complains unless libraries are executable
8830282152Spfg  postinstall_cmds='chmod +x $lib'
8831282152Spfg  ;;
8832169695Skan
8833282152Spfgsunos4*)
8834282152Spfg  version_type=sunos
8835282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8836282152Spfg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8837282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8838282152Spfg  shlibpath_overrides_runpath=yes
8839282152Spfg  if test "$with_gnu_ld" = yes; then
8840282152Spfg    need_lib_prefix=no
8841282152Spfg  fi
8842282152Spfg  need_version=yes
8843282152Spfg  ;;
8844169695Skan
8845282152Spfgsysv4 | sysv4.3*)
8846282152Spfg  version_type=linux
8847282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8849282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8850282152Spfg  case $host_vendor in
8851282152Spfg    sni)
8852282152Spfg      shlibpath_overrides_runpath=no
8853282152Spfg      need_lib_prefix=no
8854282152Spfg      runpath_var=LD_RUN_PATH
8855282152Spfg      ;;
8856282152Spfg    siemens)
8857282152Spfg      need_lib_prefix=no
8858282152Spfg      ;;
8859282152Spfg    motorola)
8860282152Spfg      need_lib_prefix=no
8861282152Spfg      need_version=no
8862282152Spfg      shlibpath_overrides_runpath=no
8863282152Spfg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8864282152Spfg      ;;
8865282152Spfg  esac
8866282152Spfg  ;;
8867282152Spfg
8868282152Spfgsysv4*MP*)
8869282152Spfg  if test -d /usr/nec ;then
8870282152Spfg    version_type=linux
8871282152Spfg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8872282152Spfg    soname_spec='$libname${shared_ext}.$major'
8873282152Spfg    shlibpath_var=LD_LIBRARY_PATH
8874282152Spfg  fi
8875282152Spfg  ;;
8876282152Spfg
8877282152Spfgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8878282152Spfg  version_type=freebsd-elf
8879282152Spfg  need_lib_prefix=no
8880282152Spfg  need_version=no
8881282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8882282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8883282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8884282152Spfg  shlibpath_overrides_runpath=yes
8885282152Spfg  hardcode_into_libs=yes
8886282152Spfg  if test "$with_gnu_ld" = yes; then
8887282152Spfg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8888282152Spfg  else
8889282152Spfg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8890282152Spfg    case $host_os in
8891282152Spfg      sco3.2v5*)
8892282152Spfg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8893282152Spfg	;;
8894282152Spfg    esac
8895282152Spfg  fi
8896282152Spfg  sys_lib_dlsearch_path_spec='/usr/lib'
8897282152Spfg  ;;
8898282152Spfg
8899282152Spfgtpf*)
8900282152Spfg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8901282152Spfg  version_type=linux
8902282152Spfg  need_lib_prefix=no
8903282152Spfg  need_version=no
8904282152Spfg  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8906282152Spfg  shlibpath_overrides_runpath=no
8907282152Spfg  hardcode_into_libs=yes
8908282152Spfg  ;;
8909282152Spfg
8910282152Spfguts4*)
8911282152Spfg  version_type=linux
8912282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
8914282152Spfg  shlibpath_var=LD_LIBRARY_PATH
8915282152Spfg  ;;
8916282152Spfg
8917282152Spfg*)
8918282152Spfg  dynamic_linker=no
8919282152Spfg  ;;
8920282152Spfgesac
8921282152Spfgecho "$as_me:$LINENO: result: $dynamic_linker" >&5
8922282152Spfgecho "${ECHO_T}$dynamic_linker" >&6
8923282152Spfgtest "$dynamic_linker" = no && can_build_shared=no
8924282152Spfg
8925282152Spfgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8926282152Spfgif test "$GCC" = yes; then
8927282152Spfg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8928282152Spfgfi
8929282152Spfg
8930282152Spfg
8931282152Spfg
8932282152Spfg
8933282152Spfg
8934282152Spfg
8935282152Spfg
8936282152Spfg
8937282152Spfg
8938282152Spfg
8939282152Spfg
8940282152Spfg
8941282152Spfg
8942282152Spfg
8943282152Spfg
8944282152Spfg
8945282152Spfg
8946282152Spfg
8947282152Spfg
8948282152Spfg
8949282152Spfg
8950282152Spfg
8951282152Spfg
8952282152Spfg
8953282152Spfg
8954282152Spfg
8955282152Spfg
8956282152Spfg
8957282152Spfg
8958282152Spfg
8959282152Spfg
8960282152Spfg
8961282152Spfg
8962282152Spfg
8963282152Spfg
8964282152Spfg
8965282152Spfg
8966282152Spfg
8967282152Spfg
8968282152Spfg
8969282152Spfg
8970282152Spfg
8971282152Spfg
8972282152Spfg
8973282152Spfg
8974282152Spfg
8975282152Spfg
8976282152Spfg
8977282152Spfg
8978282152Spfg
8979282152Spfg
8980282152Spfg
8981282152Spfg
8982282152Spfg
8983282152Spfg
8984282152Spfg
8985282152Spfg
8986282152Spfg
8987282152Spfg
8988282152Spfg
8989282152Spfg
8990282152Spfg
8991282152Spfg
8992282152Spfg
8993282152Spfg
8994282152Spfg
8995282152Spfg
8996282152Spfg
8997282152Spfg
8998282152Spfg
8999282152Spfg
9000282152Spfg
9001282152Spfg
9002282152Spfg
9003282152Spfg
9004282152Spfg
9005282152Spfg
9006282152Spfg
9007282152Spfg
9008282152Spfg
9009282152Spfg
9010282152Spfg
9011282152Spfg
9012282152Spfg
9013282152Spfg
9014282152Spfg
9015282152Spfg
9016282152Spfg  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9017282152Spfgecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9018282152Spfghardcode_action=
9019282152Spfgif test -n "$hardcode_libdir_flag_spec" ||
9020282152Spfg   test -n "$runpath_var" ||
9021282152Spfg   test "X$hardcode_automatic" = "Xyes" ; then
9022282152Spfg
9023282152Spfg  # We can hardcode non-existent directories.
9024282152Spfg  if test "$hardcode_direct" != no &&
9025282152Spfg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9026282152Spfg     # have to relink, otherwise we might link with an installed library
9027282152Spfg     # when we should be linking with a yet-to-be-installed one
9028282152Spfg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9029282152Spfg     test "$hardcode_minus_L" != no; then
9030282152Spfg    # Linking always hardcodes the temporary library directory.
9031282152Spfg    hardcode_action=relink
9032282152Spfg  else
9033282152Spfg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9034282152Spfg    hardcode_action=immediate
9035282152Spfg  fi
9036282152Spfgelse
9037282152Spfg  # We cannot hardcode anything, or else we can only hardcode existing
9038282152Spfg  # directories.
9039282152Spfg  hardcode_action=unsupported
9040282152Spfgfi
9041282152Spfgecho "$as_me:$LINENO: result: $hardcode_action" >&5
9042282152Spfgecho "${ECHO_T}$hardcode_action" >&6
9043282152Spfg
9044282152Spfgif test "$hardcode_action" = relink ||
9045282152Spfg   test "$inherit_rpath" = yes; then
9046282152Spfg  # Fast installation is not supported
9047282152Spfg  enable_fast_install=no
9048282152Spfgelif test "$shlibpath_overrides_runpath" = yes ||
9049282152Spfg     test "$enable_shared" = no; then
9050282152Spfg  # Fast installation is not necessary
9051282152Spfg  enable_fast_install=needless
9052282152Spfgfi
9053282152Spfg
9054282152Spfg
9055282152Spfg
9056282152Spfg
9057282152Spfg
9058282152Spfg
9059282152Spfg  if test "x$enable_dlopen" != xyes; then
9060282152Spfg  enable_dlopen=unknown
9061282152Spfg  enable_dlopen_self=unknown
9062282152Spfg  enable_dlopen_self_static=unknown
9063282152Spfgelse
9064282152Spfg  lt_cv_dlopen=no
9065282152Spfg  lt_cv_dlopen_libs=
9066282152Spfg
9067282152Spfg  case $host_os in
9068282152Spfg  beos*)
9069282152Spfg    lt_cv_dlopen="load_add_on"
9070282152Spfg    lt_cv_dlopen_libs=
9071282152Spfg    lt_cv_dlopen_self=yes
9072282152Spfg    ;;
9073282152Spfg
9074282152Spfg  mingw* | pw32*)
9075282152Spfg    lt_cv_dlopen="LoadLibrary"
9076282152Spfg    lt_cv_dlopen_libs=
9077282152Spfg    ;;
9078282152Spfg
9079282152Spfg  cygwin*)
9080282152Spfg    lt_cv_dlopen="dlopen"
9081282152Spfg    lt_cv_dlopen_libs=
9082282152Spfg    ;;
9083282152Spfg
9084282152Spfg  darwin*)
9085282152Spfg  # if libdl is installed we need to link against it
9086282152Spfg    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9087282152Spfgecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9088282152Spfgif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9089282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9090282152Spfgelse
9091282152Spfg  ac_check_lib_save_LIBS=$LIBS
9092282152SpfgLIBS="-ldl  $LIBS"
9093282152Spfgcat >conftest.$ac_ext <<_ACEOF
9094282152Spfg/* confdefs.h.  */
9095282152Spfg_ACEOF
9096282152Spfgcat confdefs.h >>conftest.$ac_ext
9097282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9098282152Spfg/* end confdefs.h.  */
9099282152Spfg
9100282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9101282152Spfg#ifdef __cplusplus
9102282152Spfgextern "C"
9103282152Spfg#endif
9104282152Spfg/* We use char because int might match the return type of a gcc2
9105282152Spfg   builtin and then its argument prototype would still apply.  */
9106282152Spfgchar dlopen ();
9107282152Spfgint
9108282152Spfgmain ()
9109282152Spfg{
9110282152Spfgdlopen ();
9111282152Spfg  ;
9112282152Spfg  return 0;
9113282152Spfg}
9114282152Spfg_ACEOF
9115282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9116282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117282152Spfg  (eval $ac_link) 2>conftest.er1
9118282152Spfg  ac_status=$?
9119282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9120282152Spfg  rm -f conftest.er1
9121282152Spfg  cat conftest.err >&5
9122282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123282152Spfg  (exit $ac_status); } &&
9124282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9125282152Spfg			 || test ! -s conftest.err'
9126282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127282152Spfg  (eval $ac_try) 2>&5
9128282152Spfg  ac_status=$?
9129282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130282152Spfg  (exit $ac_status); }; } &&
9131282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9132282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133282152Spfg  (eval $ac_try) 2>&5
9134282152Spfg  ac_status=$?
9135282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136282152Spfg  (exit $ac_status); }; }; then
9137282152Spfg  ac_cv_lib_dl_dlopen=yes
9138282152Spfgelse
9139282152Spfg  echo "$as_me: failed program was:" >&5
9140282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9141282152Spfg
9142282152Spfgac_cv_lib_dl_dlopen=no
9143282152Spfgfi
9144282152Spfgrm -f conftest.err conftest.$ac_objext \
9145282152Spfg      conftest$ac_exeext conftest.$ac_ext
9146282152SpfgLIBS=$ac_check_lib_save_LIBS
9147282152Spfgfi
9148282152Spfgecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9149282152Spfgecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9150282152Spfgif test $ac_cv_lib_dl_dlopen = yes; then
9151282152Spfg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9152282152Spfgelse
9153282152Spfg
9154282152Spfg    lt_cv_dlopen="dyld"
9155282152Spfg    lt_cv_dlopen_libs=
9156282152Spfg    lt_cv_dlopen_self=yes
9157282152Spfg
9158282152Spfgfi
9159282152Spfg
9160282152Spfg    ;;
9161282152Spfg
9162282152Spfg  *)
9163282152Spfg    echo "$as_me:$LINENO: checking for shl_load" >&5
9164282152Spfgecho $ECHO_N "checking for shl_load... $ECHO_C" >&6
9165282152Spfgif test "${ac_cv_func_shl_load+set}" = set; then
9166282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9167282152Spfgelse
9168282152Spfg  cat >conftest.$ac_ext <<_ACEOF
9169282152Spfg/* confdefs.h.  */
9170282152Spfg_ACEOF
9171282152Spfgcat confdefs.h >>conftest.$ac_ext
9172282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9173282152Spfg/* end confdefs.h.  */
9174282152Spfg/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9175282152Spfg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9176282152Spfg#define shl_load innocuous_shl_load
9177282152Spfg
9178282152Spfg/* System header to define __stub macros and hopefully few prototypes,
9179282152Spfg    which can conflict with char shl_load (); below.
9180282152Spfg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181282152Spfg    <limits.h> exists even on freestanding compilers.  */
9182282152Spfg
9183282152Spfg#ifdef __STDC__
9184282152Spfg# include <limits.h>
9185282152Spfg#else
9186282152Spfg# include <assert.h>
9187282152Spfg#endif
9188282152Spfg
9189282152Spfg#undef shl_load
9190282152Spfg
9191282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9192282152Spfg#ifdef __cplusplus
9193282152Spfgextern "C"
9194282152Spfg{
9195282152Spfg#endif
9196282152Spfg/* We use char because int might match the return type of a gcc2
9197282152Spfg   builtin and then its argument prototype would still apply.  */
9198282152Spfgchar shl_load ();
9199282152Spfg/* The GNU C library defines this for functions which it implements
9200282152Spfg    to always fail with ENOSYS.  Some functions are actually named
9201282152Spfg    something starting with __ and the normal name is an alias.  */
9202282152Spfg#if defined (__stub_shl_load) || defined (__stub___shl_load)
9203282152Spfgchoke me
9204282152Spfg#else
9205282152Spfgchar (*f) () = shl_load;
9206282152Spfg#endif
9207282152Spfg#ifdef __cplusplus
9208282152Spfg}
9209282152Spfg#endif
9210282152Spfg
9211282152Spfgint
9212282152Spfgmain ()
9213282152Spfg{
9214282152Spfgreturn f != shl_load;
9215282152Spfg  ;
9216282152Spfg  return 0;
9217282152Spfg}
9218282152Spfg_ACEOF
9219282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9220282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221282152Spfg  (eval $ac_link) 2>conftest.er1
9222282152Spfg  ac_status=$?
9223282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9224282152Spfg  rm -f conftest.er1
9225282152Spfg  cat conftest.err >&5
9226282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227282152Spfg  (exit $ac_status); } &&
9228282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9229282152Spfg			 || test ! -s conftest.err'
9230282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231282152Spfg  (eval $ac_try) 2>&5
9232282152Spfg  ac_status=$?
9233282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234282152Spfg  (exit $ac_status); }; } &&
9235282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9236282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237282152Spfg  (eval $ac_try) 2>&5
9238282152Spfg  ac_status=$?
9239282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240282152Spfg  (exit $ac_status); }; }; then
9241282152Spfg  ac_cv_func_shl_load=yes
9242282152Spfgelse
9243282152Spfg  echo "$as_me: failed program was:" >&5
9244282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9245282152Spfg
9246282152Spfgac_cv_func_shl_load=no
9247282152Spfgfi
9248282152Spfgrm -f conftest.err conftest.$ac_objext \
9249282152Spfg      conftest$ac_exeext conftest.$ac_ext
9250282152Spfgfi
9251282152Spfgecho "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9252282152Spfgecho "${ECHO_T}$ac_cv_func_shl_load" >&6
9253282152Spfgif test $ac_cv_func_shl_load = yes; then
9254282152Spfg  lt_cv_dlopen="shl_load"
9255282152Spfgelse
9256282152Spfg  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9257282152Spfgecho $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9258282152Spfgif test "${ac_cv_lib_dld_shl_load+set}" = set; then
9259282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9260282152Spfgelse
9261282152Spfg  ac_check_lib_save_LIBS=$LIBS
9262282152SpfgLIBS="-ldld  $LIBS"
9263282152Spfgcat >conftest.$ac_ext <<_ACEOF
9264282152Spfg/* confdefs.h.  */
9265282152Spfg_ACEOF
9266282152Spfgcat confdefs.h >>conftest.$ac_ext
9267282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9268282152Spfg/* end confdefs.h.  */
9269282152Spfg
9270282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9271282152Spfg#ifdef __cplusplus
9272282152Spfgextern "C"
9273282152Spfg#endif
9274282152Spfg/* We use char because int might match the return type of a gcc2
9275282152Spfg   builtin and then its argument prototype would still apply.  */
9276282152Spfgchar shl_load ();
9277282152Spfgint
9278282152Spfgmain ()
9279282152Spfg{
9280282152Spfgshl_load ();
9281282152Spfg  ;
9282282152Spfg  return 0;
9283282152Spfg}
9284282152Spfg_ACEOF
9285282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9286282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287282152Spfg  (eval $ac_link) 2>conftest.er1
9288282152Spfg  ac_status=$?
9289282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9290282152Spfg  rm -f conftest.er1
9291282152Spfg  cat conftest.err >&5
9292282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293282152Spfg  (exit $ac_status); } &&
9294282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9295282152Spfg			 || test ! -s conftest.err'
9296282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297282152Spfg  (eval $ac_try) 2>&5
9298282152Spfg  ac_status=$?
9299282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300282152Spfg  (exit $ac_status); }; } &&
9301282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9302282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303282152Spfg  (eval $ac_try) 2>&5
9304282152Spfg  ac_status=$?
9305282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306282152Spfg  (exit $ac_status); }; }; then
9307282152Spfg  ac_cv_lib_dld_shl_load=yes
9308282152Spfgelse
9309282152Spfg  echo "$as_me: failed program was:" >&5
9310282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9311282152Spfg
9312282152Spfgac_cv_lib_dld_shl_load=no
9313282152Spfgfi
9314282152Spfgrm -f conftest.err conftest.$ac_objext \
9315282152Spfg      conftest$ac_exeext conftest.$ac_ext
9316282152SpfgLIBS=$ac_check_lib_save_LIBS
9317282152Spfgfi
9318282152Spfgecho "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9319282152Spfgecho "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9320282152Spfgif test $ac_cv_lib_dld_shl_load = yes; then
9321282152Spfg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9322282152Spfgelse
9323282152Spfg  echo "$as_me:$LINENO: checking for dlopen" >&5
9324282152Spfgecho $ECHO_N "checking for dlopen... $ECHO_C" >&6
9325282152Spfgif test "${ac_cv_func_dlopen+set}" = set; then
9326282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9327282152Spfgelse
9328282152Spfg  cat >conftest.$ac_ext <<_ACEOF
9329282152Spfg/* confdefs.h.  */
9330282152Spfg_ACEOF
9331282152Spfgcat confdefs.h >>conftest.$ac_ext
9332282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9333282152Spfg/* end confdefs.h.  */
9334282152Spfg/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9335282152Spfg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9336282152Spfg#define dlopen innocuous_dlopen
9337282152Spfg
9338282152Spfg/* System header to define __stub macros and hopefully few prototypes,
9339282152Spfg    which can conflict with char dlopen (); below.
9340282152Spfg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341282152Spfg    <limits.h> exists even on freestanding compilers.  */
9342282152Spfg
9343282152Spfg#ifdef __STDC__
9344282152Spfg# include <limits.h>
9345282152Spfg#else
9346282152Spfg# include <assert.h>
9347282152Spfg#endif
9348282152Spfg
9349282152Spfg#undef dlopen
9350282152Spfg
9351282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9352282152Spfg#ifdef __cplusplus
9353282152Spfgextern "C"
9354282152Spfg{
9355282152Spfg#endif
9356282152Spfg/* We use char because int might match the return type of a gcc2
9357282152Spfg   builtin and then its argument prototype would still apply.  */
9358282152Spfgchar dlopen ();
9359282152Spfg/* The GNU C library defines this for functions which it implements
9360282152Spfg    to always fail with ENOSYS.  Some functions are actually named
9361282152Spfg    something starting with __ and the normal name is an alias.  */
9362282152Spfg#if defined (__stub_dlopen) || defined (__stub___dlopen)
9363282152Spfgchoke me
9364282152Spfg#else
9365282152Spfgchar (*f) () = dlopen;
9366282152Spfg#endif
9367282152Spfg#ifdef __cplusplus
9368282152Spfg}
9369282152Spfg#endif
9370282152Spfg
9371282152Spfgint
9372282152Spfgmain ()
9373282152Spfg{
9374282152Spfgreturn f != dlopen;
9375282152Spfg  ;
9376282152Spfg  return 0;
9377282152Spfg}
9378282152Spfg_ACEOF
9379282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9380282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381282152Spfg  (eval $ac_link) 2>conftest.er1
9382282152Spfg  ac_status=$?
9383282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9384282152Spfg  rm -f conftest.er1
9385282152Spfg  cat conftest.err >&5
9386282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387282152Spfg  (exit $ac_status); } &&
9388282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9389282152Spfg			 || test ! -s conftest.err'
9390282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391282152Spfg  (eval $ac_try) 2>&5
9392282152Spfg  ac_status=$?
9393282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394282152Spfg  (exit $ac_status); }; } &&
9395282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9396282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397282152Spfg  (eval $ac_try) 2>&5
9398282152Spfg  ac_status=$?
9399282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400282152Spfg  (exit $ac_status); }; }; then
9401282152Spfg  ac_cv_func_dlopen=yes
9402282152Spfgelse
9403282152Spfg  echo "$as_me: failed program was:" >&5
9404282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9405282152Spfg
9406282152Spfgac_cv_func_dlopen=no
9407282152Spfgfi
9408282152Spfgrm -f conftest.err conftest.$ac_objext \
9409282152Spfg      conftest$ac_exeext conftest.$ac_ext
9410282152Spfgfi
9411282152Spfgecho "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9412282152Spfgecho "${ECHO_T}$ac_cv_func_dlopen" >&6
9413282152Spfgif test $ac_cv_func_dlopen = yes; then
9414282152Spfg  lt_cv_dlopen="dlopen"
9415282152Spfgelse
9416282152Spfg  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9417282152Spfgecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9418282152Spfgif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9419282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9420282152Spfgelse
9421282152Spfg  ac_check_lib_save_LIBS=$LIBS
9422282152SpfgLIBS="-ldl  $LIBS"
9423282152Spfgcat >conftest.$ac_ext <<_ACEOF
9424282152Spfg/* confdefs.h.  */
9425282152Spfg_ACEOF
9426282152Spfgcat confdefs.h >>conftest.$ac_ext
9427282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9428282152Spfg/* end confdefs.h.  */
9429282152Spfg
9430282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9431282152Spfg#ifdef __cplusplus
9432282152Spfgextern "C"
9433282152Spfg#endif
9434282152Spfg/* We use char because int might match the return type of a gcc2
9435282152Spfg   builtin and then its argument prototype would still apply.  */
9436282152Spfgchar dlopen ();
9437282152Spfgint
9438282152Spfgmain ()
9439282152Spfg{
9440282152Spfgdlopen ();
9441282152Spfg  ;
9442282152Spfg  return 0;
9443282152Spfg}
9444282152Spfg_ACEOF
9445282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9446282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447282152Spfg  (eval $ac_link) 2>conftest.er1
9448282152Spfg  ac_status=$?
9449282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9450282152Spfg  rm -f conftest.er1
9451282152Spfg  cat conftest.err >&5
9452282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453282152Spfg  (exit $ac_status); } &&
9454282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9455282152Spfg			 || test ! -s conftest.err'
9456282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457282152Spfg  (eval $ac_try) 2>&5
9458282152Spfg  ac_status=$?
9459282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460282152Spfg  (exit $ac_status); }; } &&
9461282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9462282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463282152Spfg  (eval $ac_try) 2>&5
9464282152Spfg  ac_status=$?
9465282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466282152Spfg  (exit $ac_status); }; }; then
9467282152Spfg  ac_cv_lib_dl_dlopen=yes
9468282152Spfgelse
9469282152Spfg  echo "$as_me: failed program was:" >&5
9470282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9471282152Spfg
9472282152Spfgac_cv_lib_dl_dlopen=no
9473282152Spfgfi
9474282152Spfgrm -f conftest.err conftest.$ac_objext \
9475282152Spfg      conftest$ac_exeext conftest.$ac_ext
9476282152SpfgLIBS=$ac_check_lib_save_LIBS
9477282152Spfgfi
9478282152Spfgecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479282152Spfgecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9480282152Spfgif test $ac_cv_lib_dl_dlopen = yes; then
9481282152Spfg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9482282152Spfgelse
9483282152Spfg  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9484282152Spfgecho $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9485282152Spfgif test "${ac_cv_lib_svld_dlopen+set}" = set; then
9486282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9487282152Spfgelse
9488282152Spfg  ac_check_lib_save_LIBS=$LIBS
9489282152SpfgLIBS="-lsvld  $LIBS"
9490282152Spfgcat >conftest.$ac_ext <<_ACEOF
9491282152Spfg/* confdefs.h.  */
9492282152Spfg_ACEOF
9493282152Spfgcat confdefs.h >>conftest.$ac_ext
9494282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9495282152Spfg/* end confdefs.h.  */
9496282152Spfg
9497282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9498282152Spfg#ifdef __cplusplus
9499282152Spfgextern "C"
9500282152Spfg#endif
9501282152Spfg/* We use char because int might match the return type of a gcc2
9502282152Spfg   builtin and then its argument prototype would still apply.  */
9503282152Spfgchar dlopen ();
9504282152Spfgint
9505282152Spfgmain ()
9506282152Spfg{
9507282152Spfgdlopen ();
9508282152Spfg  ;
9509282152Spfg  return 0;
9510282152Spfg}
9511282152Spfg_ACEOF
9512282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9513282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514282152Spfg  (eval $ac_link) 2>conftest.er1
9515282152Spfg  ac_status=$?
9516282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9517282152Spfg  rm -f conftest.er1
9518282152Spfg  cat conftest.err >&5
9519282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520282152Spfg  (exit $ac_status); } &&
9521282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9522282152Spfg			 || test ! -s conftest.err'
9523282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524282152Spfg  (eval $ac_try) 2>&5
9525282152Spfg  ac_status=$?
9526282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527282152Spfg  (exit $ac_status); }; } &&
9528282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9529282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530282152Spfg  (eval $ac_try) 2>&5
9531282152Spfg  ac_status=$?
9532282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533282152Spfg  (exit $ac_status); }; }; then
9534282152Spfg  ac_cv_lib_svld_dlopen=yes
9535282152Spfgelse
9536282152Spfg  echo "$as_me: failed program was:" >&5
9537282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9538282152Spfg
9539282152Spfgac_cv_lib_svld_dlopen=no
9540282152Spfgfi
9541282152Spfgrm -f conftest.err conftest.$ac_objext \
9542282152Spfg      conftest$ac_exeext conftest.$ac_ext
9543282152SpfgLIBS=$ac_check_lib_save_LIBS
9544282152Spfgfi
9545282152Spfgecho "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9546282152Spfgecho "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9547282152Spfgif test $ac_cv_lib_svld_dlopen = yes; then
9548282152Spfg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9549282152Spfgelse
9550282152Spfg  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9551282152Spfgecho $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9552282152Spfgif test "${ac_cv_lib_dld_dld_link+set}" = set; then
9553282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9554282152Spfgelse
9555282152Spfg  ac_check_lib_save_LIBS=$LIBS
9556282152SpfgLIBS="-ldld  $LIBS"
9557282152Spfgcat >conftest.$ac_ext <<_ACEOF
9558282152Spfg/* confdefs.h.  */
9559282152Spfg_ACEOF
9560282152Spfgcat confdefs.h >>conftest.$ac_ext
9561282152Spfgcat >>conftest.$ac_ext <<_ACEOF
9562282152Spfg/* end confdefs.h.  */
9563282152Spfg
9564282152Spfg/* Override any gcc2 internal prototype to avoid an error.  */
9565282152Spfg#ifdef __cplusplus
9566282152Spfgextern "C"
9567282152Spfg#endif
9568282152Spfg/* We use char because int might match the return type of a gcc2
9569282152Spfg   builtin and then its argument prototype would still apply.  */
9570282152Spfgchar dld_link ();
9571282152Spfgint
9572282152Spfgmain ()
9573282152Spfg{
9574282152Spfgdld_link ();
9575282152Spfg  ;
9576282152Spfg  return 0;
9577282152Spfg}
9578282152Spfg_ACEOF
9579282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
9580282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581282152Spfg  (eval $ac_link) 2>conftest.er1
9582282152Spfg  ac_status=$?
9583282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
9584282152Spfg  rm -f conftest.er1
9585282152Spfg  cat conftest.err >&5
9586282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587282152Spfg  (exit $ac_status); } &&
9588282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
9589282152Spfg			 || test ! -s conftest.err'
9590282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591282152Spfg  (eval $ac_try) 2>&5
9592282152Spfg  ac_status=$?
9593282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594282152Spfg  (exit $ac_status); }; } &&
9595282152Spfg	 { ac_try='test -s conftest$ac_exeext'
9596282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597282152Spfg  (eval $ac_try) 2>&5
9598282152Spfg  ac_status=$?
9599282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600282152Spfg  (exit $ac_status); }; }; then
9601282152Spfg  ac_cv_lib_dld_dld_link=yes
9602282152Spfgelse
9603282152Spfg  echo "$as_me: failed program was:" >&5
9604282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
9605282152Spfg
9606282152Spfgac_cv_lib_dld_dld_link=no
9607282152Spfgfi
9608282152Spfgrm -f conftest.err conftest.$ac_objext \
9609282152Spfg      conftest$ac_exeext conftest.$ac_ext
9610282152SpfgLIBS=$ac_check_lib_save_LIBS
9611282152Spfgfi
9612282152Spfgecho "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613282152Spfgecho "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9614282152Spfgif test $ac_cv_lib_dld_dld_link = yes; then
9615282152Spfg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9616282152Spfgfi
9617282152Spfg
9618282152Spfg
9619282152Spfgfi
9620282152Spfg
9621282152Spfg
9622282152Spfgfi
9623282152Spfg
9624282152Spfg
9625282152Spfgfi
9626282152Spfg
9627282152Spfg
9628282152Spfgfi
9629282152Spfg
9630282152Spfg
9631282152Spfgfi
9632282152Spfg
9633282152Spfg    ;;
9634282152Spfg  esac
9635282152Spfg
9636282152Spfg  if test "x$lt_cv_dlopen" != xno; then
9637282152Spfg    enable_dlopen=yes
9638282152Spfg  else
9639282152Spfg    enable_dlopen=no
9640282152Spfg  fi
9641282152Spfg
9642282152Spfg  case $lt_cv_dlopen in
9643282152Spfg  dlopen)
9644282152Spfg    save_CPPFLAGS="$CPPFLAGS"
9645282152Spfg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646282152Spfg
9647282152Spfg    save_LDFLAGS="$LDFLAGS"
9648282152Spfg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9649282152Spfg
9650282152Spfg    save_LIBS="$LIBS"
9651282152Spfg    LIBS="$lt_cv_dlopen_libs $LIBS"
9652282152Spfg
9653282152Spfg    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654282152Spfgecho $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9655282152Spfgif test "${lt_cv_dlopen_self+set}" = set; then
9656282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9657282152Spfgelse
9658282152Spfg  	  if test "$cross_compiling" = yes; then :
9659282152Spfg  lt_cv_dlopen_self=cross
9660282152Spfgelse
9661282152Spfg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662282152Spfg  lt_status=$lt_dlunknown
9663282152Spfg  cat > conftest.$ac_ext <<_LT_EOF
9664282152Spfg#line 9664 "configure"
9665282152Spfg#include "confdefs.h"
9666282152Spfg
9667282152Spfg#if HAVE_DLFCN_H
9668282152Spfg#include <dlfcn.h>
9669282152Spfg#endif
9670282152Spfg
9671282152Spfg#include <stdio.h>
9672282152Spfg
9673282152Spfg#ifdef RTLD_GLOBAL
9674282152Spfg#  define LT_DLGLOBAL		RTLD_GLOBAL
9675282152Spfg#else
9676282152Spfg#  ifdef DL_GLOBAL
9677282152Spfg#    define LT_DLGLOBAL		DL_GLOBAL
9678282152Spfg#  else
9679282152Spfg#    define LT_DLGLOBAL		0
9680282152Spfg#  endif
9681282152Spfg#endif
9682282152Spfg
9683282152Spfg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684282152Spfg   find out it does not work in some platform. */
9685282152Spfg#ifndef LT_DLLAZY_OR_NOW
9686282152Spfg#  ifdef RTLD_LAZY
9687282152Spfg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9688282152Spfg#  else
9689282152Spfg#    ifdef DL_LAZY
9690282152Spfg#      define LT_DLLAZY_OR_NOW		DL_LAZY
9691282152Spfg#    else
9692282152Spfg#      ifdef RTLD_NOW
9693282152Spfg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9694282152Spfg#      else
9695282152Spfg#        ifdef DL_NOW
9696282152Spfg#          define LT_DLLAZY_OR_NOW	DL_NOW
9697282152Spfg#        else
9698282152Spfg#          define LT_DLLAZY_OR_NOW	0
9699282152Spfg#        endif
9700282152Spfg#      endif
9701282152Spfg#    endif
9702282152Spfg#  endif
9703282152Spfg#endif
9704282152Spfg
9705282152Spfg#ifdef __cplusplus
9706282152Spfgextern "C" void exit (int);
9707282152Spfg#endif
9708282152Spfg
9709282152Spfgvoid fnord() { int i=42;}
9710282152Spfgint main ()
9711282152Spfg{
9712282152Spfg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713282152Spfg  int status = $lt_dlunknown;
9714282152Spfg
9715282152Spfg  if (self)
9716282152Spfg    {
9717282152Spfg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9718282152Spfg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719282152Spfg      /* dlclose (self); */
9720282152Spfg    }
9721282152Spfg  else
9722282152Spfg    puts (dlerror ());
9723282152Spfg
9724282152Spfg    exit (status);
9725282152Spfg}
9726282152Spfg_LT_EOF
9727282152Spfg  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728282152Spfg  (eval $ac_link) 2>&5
9729282152Spfg  ac_status=$?
9730282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731282152Spfg  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732282152Spfg    (./conftest; exit; ) >&5 2>/dev/null
9733282152Spfg    lt_status=$?
9734282152Spfg    case x$lt_status in
9735282152Spfg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736282152Spfg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737282152Spfg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9738282152Spfg    esac
9739282152Spfg  else :
9740282152Spfg    # compilation failed
9741282152Spfg    lt_cv_dlopen_self=no
9742282152Spfg  fi
9743282152Spfgfi
9744282152Spfgrm -fr conftest*
9745282152Spfg
9746282152Spfg
9747282152Spfgfi
9748282152Spfgecho "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749282152Spfgecho "${ECHO_T}$lt_cv_dlopen_self" >&6
9750282152Spfg
9751282152Spfg    if test "x$lt_cv_dlopen_self" = xyes; then
9752282152Spfg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753282152Spfg      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754282152Spfgecho $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9755282152Spfgif test "${lt_cv_dlopen_self_static+set}" = set; then
9756282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
9757282152Spfgelse
9758282152Spfg  	  if test "$cross_compiling" = yes; then :
9759282152Spfg  lt_cv_dlopen_self_static=cross
9760282152Spfgelse
9761282152Spfg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762282152Spfg  lt_status=$lt_dlunknown
9763282152Spfg  cat > conftest.$ac_ext <<_LT_EOF
9764282152Spfg#line 9764 "configure"
9765282152Spfg#include "confdefs.h"
9766282152Spfg
9767282152Spfg#if HAVE_DLFCN_H
9768282152Spfg#include <dlfcn.h>
9769282152Spfg#endif
9770282152Spfg
9771282152Spfg#include <stdio.h>
9772282152Spfg
9773282152Spfg#ifdef RTLD_GLOBAL
9774282152Spfg#  define LT_DLGLOBAL		RTLD_GLOBAL
9775282152Spfg#else
9776282152Spfg#  ifdef DL_GLOBAL
9777282152Spfg#    define LT_DLGLOBAL		DL_GLOBAL
9778282152Spfg#  else
9779282152Spfg#    define LT_DLGLOBAL		0
9780282152Spfg#  endif
9781282152Spfg#endif
9782282152Spfg
9783282152Spfg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784282152Spfg   find out it does not work in some platform. */
9785282152Spfg#ifndef LT_DLLAZY_OR_NOW
9786282152Spfg#  ifdef RTLD_LAZY
9787282152Spfg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9788282152Spfg#  else
9789282152Spfg#    ifdef DL_LAZY
9790282152Spfg#      define LT_DLLAZY_OR_NOW		DL_LAZY
9791282152Spfg#    else
9792282152Spfg#      ifdef RTLD_NOW
9793282152Spfg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9794282152Spfg#      else
9795282152Spfg#        ifdef DL_NOW
9796282152Spfg#          define LT_DLLAZY_OR_NOW	DL_NOW
9797282152Spfg#        else
9798282152Spfg#          define LT_DLLAZY_OR_NOW	0
9799282152Spfg#        endif
9800282152Spfg#      endif
9801282152Spfg#    endif
9802282152Spfg#  endif
9803282152Spfg#endif
9804282152Spfg
9805282152Spfg#ifdef __cplusplus
9806282152Spfgextern "C" void exit (int);
9807282152Spfg#endif
9808282152Spfg
9809282152Spfgvoid fnord() { int i=42;}
9810282152Spfgint main ()
9811282152Spfg{
9812282152Spfg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813282152Spfg  int status = $lt_dlunknown;
9814282152Spfg
9815282152Spfg  if (self)
9816282152Spfg    {
9817282152Spfg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9818282152Spfg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819282152Spfg      /* dlclose (self); */
9820282152Spfg    }
9821282152Spfg  else
9822282152Spfg    puts (dlerror ());
9823282152Spfg
9824282152Spfg    exit (status);
9825282152Spfg}
9826282152Spfg_LT_EOF
9827282152Spfg  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828282152Spfg  (eval $ac_link) 2>&5
9829282152Spfg  ac_status=$?
9830282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831282152Spfg  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832282152Spfg    (./conftest; exit; ) >&5 2>/dev/null
9833282152Spfg    lt_status=$?
9834282152Spfg    case x$lt_status in
9835282152Spfg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836282152Spfg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837282152Spfg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9838282152Spfg    esac
9839282152Spfg  else :
9840282152Spfg    # compilation failed
9841282152Spfg    lt_cv_dlopen_self_static=no
9842282152Spfg  fi
9843282152Spfgfi
9844282152Spfgrm -fr conftest*
9845282152Spfg
9846282152Spfg
9847282152Spfgfi
9848282152Spfgecho "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849282152Spfgecho "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9850282152Spfg    fi
9851282152Spfg
9852282152Spfg    CPPFLAGS="$save_CPPFLAGS"
9853282152Spfg    LDFLAGS="$save_LDFLAGS"
9854282152Spfg    LIBS="$save_LIBS"
9855282152Spfg    ;;
9856282152Spfg  esac
9857282152Spfg
9858282152Spfg  case $lt_cv_dlopen_self in
9859282152Spfg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860282152Spfg  *) enable_dlopen_self=unknown ;;
9861282152Spfg  esac
9862282152Spfg
9863282152Spfg  case $lt_cv_dlopen_self_static in
9864282152Spfg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865282152Spfg  *) enable_dlopen_self_static=unknown ;;
9866282152Spfg  esac
9867282152Spfgfi
9868282152Spfg
9869282152Spfg
9870282152Spfg
9871282152Spfg
9872282152Spfg
9873282152Spfg
9874282152Spfg
9875282152Spfg
9876282152Spfg
9877282152Spfg
9878282152Spfg
9879282152Spfg
9880282152Spfg
9881282152Spfg
9882282152Spfg
9883282152Spfg
9884282152Spfg
9885282152Spfgstriplib=
9886282152Spfgold_striplib=
9887282152Spfgecho "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9888282152Spfgecho $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9889282152Spfgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9890282152Spfg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9891282152Spfg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9892282152Spfg  echo "$as_me:$LINENO: result: yes" >&5
9893282152Spfgecho "${ECHO_T}yes" >&6
9894282152Spfgelse
9895282152Spfg# FIXME - insert some real tests, host_os isn't really good enough
9896282152Spfg  case $host_os in
9897282152Spfg  darwin*)
9898282152Spfg    if test -n "$STRIP" ; then
9899282152Spfg      striplib="$STRIP -x"
9900282152Spfg      old_striplib="$STRIP -S"
9901282152Spfg      echo "$as_me:$LINENO: result: yes" >&5
9902282152Spfgecho "${ECHO_T}yes" >&6
9903282152Spfg    else
9904282152Spfg      echo "$as_me:$LINENO: result: no" >&5
9905282152Spfgecho "${ECHO_T}no" >&6
9906282152Spfg    fi
9907282152Spfg    ;;
9908282152Spfg  *)
9909282152Spfg    echo "$as_me:$LINENO: result: no" >&5
9910282152Spfgecho "${ECHO_T}no" >&6
9911282152Spfg    ;;
9912282152Spfg  esac
9913282152Spfgfi
9914282152Spfg
9915282152Spfg
9916282152Spfg
9917282152Spfg
9918282152Spfg
9919282152Spfg
9920282152Spfg
9921282152Spfg
9922282152Spfg
9923282152Spfg
9924282152Spfg
9925282152Spfg
9926282152Spfg  # Report which library types will actually be built
9927282152Spfg  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9928282152Spfgecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9929282152Spfg  echo "$as_me:$LINENO: result: $can_build_shared" >&5
9930282152Spfgecho "${ECHO_T}$can_build_shared" >&6
9931282152Spfg
9932282152Spfg  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9933282152Spfgecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9934282152Spfg  test "$can_build_shared" = "no" && enable_shared=no
9935282152Spfg
9936282152Spfg  # On AIX, shared libraries and static libraries use the same namespace, and
9937282152Spfg  # are all built from PIC.
9938282152Spfg  case $host_os in
9939282152Spfg  aix3*)
9940282152Spfg    test "$enable_shared" = yes && enable_static=no
9941282152Spfg    if test -n "$RANLIB"; then
9942282152Spfg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9943282152Spfg      postinstall_cmds='$RANLIB $lib'
9944282152Spfg    fi
9945282152Spfg    ;;
9946282152Spfg
9947282152Spfg  aix[4-9]*)
9948282152Spfg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9949282152Spfg      test "$enable_shared" = yes && enable_static=no
9950282152Spfg    fi
9951282152Spfg    ;;
9952282152Spfg  esac
9953282152Spfg  echo "$as_me:$LINENO: result: $enable_shared" >&5
9954282152Spfgecho "${ECHO_T}$enable_shared" >&6
9955282152Spfg
9956282152Spfg  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9957282152Spfgecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9958282152Spfg  # Make sure either enable_shared or enable_static is yes.
9959282152Spfg  test "$enable_shared" = yes || enable_static=yes
9960282152Spfg  echo "$as_me:$LINENO: result: $enable_static" >&5
9961282152Spfgecho "${ECHO_T}$enable_static" >&6
9962282152Spfg
9963282152Spfg
9964282152Spfg
9965282152Spfg
9966282152Spfgfi
9967282152Spfgac_ext=c
9968282152Spfgac_cpp='$CPP $CPPFLAGS'
9969282152Spfgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9970282152Spfgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9971282152Spfgac_compiler_gnu=$ac_cv_c_compiler_gnu
9972282152Spfg
9973282152SpfgCC="$lt_save_CC"
9974282152Spfg
9975282152Spfg
9976282152Spfg
9977282152Spfg
9978282152Spfg
9979282152Spfg
9980282152Spfg
9981282152Spfg
9982282152Spfg
9983282152Spfg
9984282152Spfg
9985282152Spfg
9986282152Spfg
9987282152Spfg                  ac_config_commands="$ac_config_commands libtool"
9988282152Spfg
9989282152Spfg
9990282152Spfg
9991282152Spfg
9992282152Spfg# Only expand once:
9993282152Spfg
9994282152Spfg
9995282152Spfg
9996282152Spfg
9997282152Spfg
9998169695Skanecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9999169695Skanecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10000169695Skan    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10001169695Skanif test "${enable_maintainer_mode+set}" = set; then
10002169695Skan  enableval="$enable_maintainer_mode"
10003169695Skan  USE_MAINTAINER_MODE=$enableval
10004169695Skanelse
10005169695Skan  USE_MAINTAINER_MODE=no
10006169695Skanfi;
10007169695Skan  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10008169695Skanecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10009169695Skan
10010169695Skan
10011169695Skanif test $USE_MAINTAINER_MODE = yes; then
10012169695Skan  MAINTAINER_MODE_TRUE=
10013169695Skan  MAINTAINER_MODE_FALSE='#'
10014169695Skanelse
10015169695Skan  MAINTAINER_MODE_TRUE='#'
10016169695Skan  MAINTAINER_MODE_FALSE=
10017169695Skanfi
10018169695Skan
10019169695Skan  MAINT=$MAINTAINER_MODE_TRUE
10020169695Skan
10021169695Skan
10022169695Skan
10023169695Skan# We need gfortran to compile parts of the library
10024169695Skan# We can't use AC_PROG_FC because it expects a fully working gfortran.
10025169695Skan#AC_PROG_FC(gfortran)
10026169695SkanFC="$GFORTRAN"
10027169695Skanac_ext=${FC_SRCEXT-f}
10028169695Skanac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10029169695Skanac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10030169695Skanac_compiler_gnu=$ac_cv_fc_compiler_gnu
10031169695Skanif test -n "$ac_tool_prefix"; then
10032169695Skan  for ac_prog in gfortran
10033169695Skan  do
10034169695Skan    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10035169695Skanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
10036169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
10037169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10038169695Skanif test "${ac_cv_prog_FC+set}" = set; then
10039169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
10040169695Skanelse
10041169695Skan  if test -n "$FC"; then
10042169695Skan  ac_cv_prog_FC="$FC" # Let the user override the test.
10043169695Skanelse
10044169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045169695Skanfor as_dir in $PATH
10046169695Skando
10047169695Skan  IFS=$as_save_IFS
10048169695Skan  test -z "$as_dir" && as_dir=.
10049169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
10050169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10051169695Skan    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10052169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10053169695Skan    break 2
10054169695Skan  fi
10055169695Skandone
10056169695Skandone
10057169695Skan
10058169695Skanfi
10059169695Skanfi
10060169695SkanFC=$ac_cv_prog_FC
10061169695Skanif test -n "$FC"; then
10062169695Skan  echo "$as_me:$LINENO: result: $FC" >&5
10063169695Skanecho "${ECHO_T}$FC" >&6
10064169695Skanelse
10065169695Skan  echo "$as_me:$LINENO: result: no" >&5
10066169695Skanecho "${ECHO_T}no" >&6
10067169695Skanfi
10068169695Skan
10069169695Skan    test -n "$FC" && break
10070169695Skan  done
10071169695Skanfi
10072169695Skanif test -z "$FC"; then
10073169695Skan  ac_ct_FC=$FC
10074169695Skan  for ac_prog in gfortran
10075169695Skando
10076169695Skan  # Extract the first word of "$ac_prog", so it can be a program name with args.
10077169695Skanset dummy $ac_prog; ac_word=$2
10078169695Skanecho "$as_me:$LINENO: checking for $ac_word" >&5
10079169695Skanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10080169695Skanif test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10081169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
10082169695Skanelse
10083169695Skan  if test -n "$ac_ct_FC"; then
10084169695Skan  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10085169695Skanelse
10086169695Skanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087169695Skanfor as_dir in $PATH
10088169695Skando
10089169695Skan  IFS=$as_save_IFS
10090169695Skan  test -z "$as_dir" && as_dir=.
10091169695Skan  for ac_exec_ext in '' $ac_executable_extensions; do
10092169695Skan  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093169695Skan    ac_cv_prog_ac_ct_FC="$ac_prog"
10094169695Skan    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095169695Skan    break 2
10096169695Skan  fi
10097169695Skandone
10098169695Skandone
10099169695Skan
10100169695Skanfi
10101169695Skanfi
10102169695Skanac_ct_FC=$ac_cv_prog_ac_ct_FC
10103169695Skanif test -n "$ac_ct_FC"; then
10104169695Skan  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10105169695Skanecho "${ECHO_T}$ac_ct_FC" >&6
10106169695Skanelse
10107169695Skan  echo "$as_me:$LINENO: result: no" >&5
10108169695Skanecho "${ECHO_T}no" >&6
10109169695Skanfi
10110169695Skan
10111169695Skan  test -n "$ac_ct_FC" && break
10112169695Skandone
10113169695Skan
10114169695Skan  FC=$ac_ct_FC
10115169695Skanfi
10116169695Skan
10117169695Skan
10118169695Skan# Provide some information about the compiler.
10119282152Spfgecho "$as_me:10119:" \
10120169695Skan     "checking for Fortran compiler version" >&5
10121169695Skanac_compiler=`set X $ac_compile; echo $2`
10122169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10123169695Skan  (eval $ac_compiler --version </dev/null >&5) 2>&5
10124169695Skan  ac_status=$?
10125169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126169695Skan  (exit $ac_status); }
10127169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10128169695Skan  (eval $ac_compiler -v </dev/null >&5) 2>&5
10129169695Skan  ac_status=$?
10130169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131169695Skan  (exit $ac_status); }
10132169695Skan{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10133169695Skan  (eval $ac_compiler -V </dev/null >&5) 2>&5
10134169695Skan  ac_status=$?
10135169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136169695Skan  (exit $ac_status); }
10137169695Skanrm -f a.out
10138169695Skan
10139169695Skan# If we don't use `.F' as extension, the preprocessor is not run on the
10140169695Skan# input file.  (Note that this only needs to work for GNU compilers.)
10141169695Skanac_save_ext=$ac_ext
10142169695Skanac_ext=F
10143169695Skanecho "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10144169695Skanecho $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10145169695Skanif test "${ac_cv_fc_compiler_gnu+set}" = set; then
10146169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
10147169695Skanelse
10148169695Skan  cat >conftest.$ac_ext <<_ACEOF
10149169695Skan      program main
10150169695Skan#ifndef __GNUC__
10151169695Skan       choke me
10152169695Skan#endif
10153169695Skan
10154169695Skan      end
10155169695Skan_ACEOF
10156169695Skanrm -f conftest.$ac_objext
10157169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158169695Skan  (eval $ac_compile) 2>conftest.er1
10159169695Skan  ac_status=$?
10160169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
10161169695Skan  rm -f conftest.er1
10162169695Skan  cat conftest.err >&5
10163169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164169695Skan  (exit $ac_status); } &&
10165169695Skan	 { ac_try='test -z "$ac_fc_werror_flag"
10166169695Skan			 || test ! -s conftest.err'
10167169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168169695Skan  (eval $ac_try) 2>&5
10169169695Skan  ac_status=$?
10170169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171169695Skan  (exit $ac_status); }; } &&
10172169695Skan	 { ac_try='test -s conftest.$ac_objext'
10173169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174169695Skan  (eval $ac_try) 2>&5
10175169695Skan  ac_status=$?
10176169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177169695Skan  (exit $ac_status); }; }; then
10178169695Skan  ac_compiler_gnu=yes
10179169695Skanelse
10180169695Skan  echo "$as_me: failed program was:" >&5
10181169695Skansed 's/^/| /' conftest.$ac_ext >&5
10182169695Skan
10183169695Skanac_compiler_gnu=no
10184169695Skanfi
10185169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10186169695Skanac_cv_fc_compiler_gnu=$ac_compiler_gnu
10187169695Skan
10188169695Skanfi
10189169695Skanecho "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10190169695Skanecho "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10191169695Skanac_ext=$ac_save_ext
10192169695Skanac_test_FFLAGS=${FCFLAGS+set}
10193169695Skanac_save_FFLAGS=$FCFLAGS
10194169695SkanFCFLAGS=
10195169695Skanecho "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10196169695Skanecho $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10197169695Skanif test "${ac_cv_prog_fc_g+set}" = set; then
10198169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
10199169695Skanelse
10200169695Skan  FCFLAGS=-g
10201169695Skancat >conftest.$ac_ext <<_ACEOF
10202169695Skan      program main
10203169695Skan
10204169695Skan      end
10205169695Skan_ACEOF
10206169695Skanrm -f conftest.$ac_objext
10207169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208169695Skan  (eval $ac_compile) 2>conftest.er1
10209169695Skan  ac_status=$?
10210169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
10211169695Skan  rm -f conftest.er1
10212169695Skan  cat conftest.err >&5
10213169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214169695Skan  (exit $ac_status); } &&
10215169695Skan	 { ac_try='test -z "$ac_fc_werror_flag"
10216169695Skan			 || test ! -s conftest.err'
10217169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218169695Skan  (eval $ac_try) 2>&5
10219169695Skan  ac_status=$?
10220169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221169695Skan  (exit $ac_status); }; } &&
10222169695Skan	 { ac_try='test -s conftest.$ac_objext'
10223169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224169695Skan  (eval $ac_try) 2>&5
10225169695Skan  ac_status=$?
10226169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227169695Skan  (exit $ac_status); }; }; then
10228169695Skan  ac_cv_prog_fc_g=yes
10229169695Skanelse
10230169695Skan  echo "$as_me: failed program was:" >&5
10231169695Skansed 's/^/| /' conftest.$ac_ext >&5
10232169695Skan
10233169695Skanac_cv_prog_fc_g=no
10234169695Skanfi
10235169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236169695Skan
10237169695Skanfi
10238169695Skanecho "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10239169695Skanecho "${ECHO_T}$ac_cv_prog_fc_g" >&6
10240169695Skanif test "$ac_test_FFLAGS" = set; then
10241169695Skan  FCFLAGS=$ac_save_FFLAGS
10242169695Skanelif test $ac_cv_prog_fc_g = yes; then
10243169695Skan  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10244169695Skan    FCFLAGS="-g -O2"
10245169695Skan  else
10246169695Skan    FCFLAGS="-g"
10247169695Skan  fi
10248169695Skanelse
10249169695Skan  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10250169695Skan    FCFLAGS="-O2"
10251169695Skan  else
10252169695Skan    FCFLAGS=
10253169695Skan  fi
10254169695Skanfi
10255169695Skan
10256169695Skanac_ext=c
10257169695Skanac_cpp='$CPP $CPPFLAGS'
10258169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
10261169695Skan
10262169695Skan
10263282152Spfgac_ext=${FC_SRCEXT-f}
10264282152Spfgac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10265282152Spfgac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10266282152Spfgac_compiler_gnu=$ac_cv_fc_compiler_gnu
10267282152Spfgif test -n "$ac_tool_prefix"; then
10268282152Spfg  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10269282152Spfg  do
10270282152Spfg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10271282152Spfgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
10272282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
10273282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10274282152Spfgif test "${ac_cv_prog_FC+set}" = set; then
10275282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
10276282152Spfgelse
10277282152Spfg  if test -n "$FC"; then
10278282152Spfg  ac_cv_prog_FC="$FC" # Let the user override the test.
10279282152Spfgelse
10280282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281282152Spfgfor as_dir in $PATH
10282282152Spfgdo
10283282152Spfg  IFS=$as_save_IFS
10284282152Spfg  test -z "$as_dir" && as_dir=.
10285282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
10286282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287282152Spfg    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10288282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10289282152Spfg    break 2
10290282152Spfg  fi
10291282152Spfgdone
10292282152Spfgdone
10293169695Skan
10294282152Spfgfi
10295282152Spfgfi
10296282152SpfgFC=$ac_cv_prog_FC
10297282152Spfgif test -n "$FC"; then
10298282152Spfg  echo "$as_me:$LINENO: result: $FC" >&5
10299282152Spfgecho "${ECHO_T}$FC" >&6
10300282152Spfgelse
10301282152Spfg  echo "$as_me:$LINENO: result: no" >&5
10302282152Spfgecho "${ECHO_T}no" >&6
10303282152Spfgfi
10304169695Skan
10305282152Spfg    test -n "$FC" && break
10306282152Spfg  done
10307169695Skanfi
10308282152Spfgif test -z "$FC"; then
10309282152Spfg  ac_ct_FC=$FC
10310282152Spfg  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10311282152Spfgdo
10312282152Spfg  # Extract the first word of "$ac_prog", so it can be a program name with args.
10313282152Spfgset dummy $ac_prog; ac_word=$2
10314282152Spfgecho "$as_me:$LINENO: checking for $ac_word" >&5
10315282152Spfgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316282152Spfgif test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10317169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
10318169695Skanelse
10319282152Spfg  if test -n "$ac_ct_FC"; then
10320282152Spfg  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10321282152Spfgelse
10322282152Spfgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323282152Spfgfor as_dir in $PATH
10324169695Skando
10325282152Spfg  IFS=$as_save_IFS
10326282152Spfg  test -z "$as_dir" && as_dir=.
10327282152Spfg  for ac_exec_ext in '' $ac_executable_extensions; do
10328282152Spfg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329282152Spfg    ac_cv_prog_ac_ct_FC="$ac_prog"
10330282152Spfg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331282152Spfg    break 2
10332282152Spfg  fi
10333282152Spfgdone
10334282152Spfgdone
10335282152Spfg
10336282152Spfgfi
10337282152Spfgfi
10338282152Spfgac_ct_FC=$ac_cv_prog_ac_ct_FC
10339282152Spfgif test -n "$ac_ct_FC"; then
10340282152Spfg  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10341282152Spfgecho "${ECHO_T}$ac_ct_FC" >&6
10342282152Spfgelse
10343282152Spfg  echo "$as_me:$LINENO: result: no" >&5
10344282152Spfgecho "${ECHO_T}no" >&6
10345282152Spfgfi
10346282152Spfg
10347282152Spfg  test -n "$ac_ct_FC" && break
10348282152Spfgdone
10349282152Spfg
10350282152Spfg  FC=$ac_ct_FC
10351282152Spfgfi
10352282152Spfg
10353282152Spfg
10354282152Spfg# Provide some information about the compiler.
10355282152Spfgecho "$as_me:10355:" \
10356282152Spfg     "checking for Fortran compiler version" >&5
10357282152Spfgac_compiler=`set X $ac_compile; echo $2`
10358282152Spfg{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10359282152Spfg  (eval $ac_compiler --version </dev/null >&5) 2>&5
10360282152Spfg  ac_status=$?
10361282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362282152Spfg  (exit $ac_status); }
10363282152Spfg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10364282152Spfg  (eval $ac_compiler -v </dev/null >&5) 2>&5
10365282152Spfg  ac_status=$?
10366282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367282152Spfg  (exit $ac_status); }
10368282152Spfg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10369282152Spfg  (eval $ac_compiler -V </dev/null >&5) 2>&5
10370282152Spfg  ac_status=$?
10371282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372282152Spfg  (exit $ac_status); }
10373282152Spfgrm -f a.out
10374282152Spfg
10375282152Spfg# If we don't use `.F' as extension, the preprocessor is not run on the
10376282152Spfg# input file.  (Note that this only needs to work for GNU compilers.)
10377282152Spfgac_save_ext=$ac_ext
10378282152Spfgac_ext=F
10379282152Spfgecho "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10380282152Spfgecho $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10381282152Spfgif test "${ac_cv_fc_compiler_gnu+set}" = set; then
10382282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
10383282152Spfgelse
10384169695Skan  cat >conftest.$ac_ext <<_ACEOF
10385282152Spfg      program main
10386282152Spfg#ifndef __GNUC__
10387282152Spfg       choke me
10388169695Skan#endif
10389282152Spfg
10390282152Spfg      end
10391169695Skan_ACEOF
10392282152Spfgrm -f conftest.$ac_objext
10393282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394282152Spfg  (eval $ac_compile) 2>conftest.er1
10395169695Skan  ac_status=$?
10396169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
10397169695Skan  rm -f conftest.er1
10398169695Skan  cat conftest.err >&5
10399169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400282152Spfg  (exit $ac_status); } &&
10401282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
10402282152Spfg			 || test ! -s conftest.err'
10403282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404282152Spfg  (eval $ac_try) 2>&5
10405282152Spfg  ac_status=$?
10406282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407282152Spfg  (exit $ac_status); }; } &&
10408282152Spfg	 { ac_try='test -s conftest.$ac_objext'
10409282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410282152Spfg  (eval $ac_try) 2>&5
10411282152Spfg  ac_status=$?
10412282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413282152Spfg  (exit $ac_status); }; }; then
10414282152Spfg  ac_compiler_gnu=yes
10415169695Skanelse
10416169695Skan  echo "$as_me: failed program was:" >&5
10417169695Skansed 's/^/| /' conftest.$ac_ext >&5
10418169695Skan
10419282152Spfgac_compiler_gnu=no
10420169695Skanfi
10421282152Spfgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422282152Spfgac_cv_fc_compiler_gnu=$ac_compiler_gnu
10423169695Skan
10424282152Spfgfi
10425282152Spfgecho "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10426282152Spfgecho "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10427282152Spfgac_ext=$ac_save_ext
10428282152Spfgac_test_FFLAGS=${FCFLAGS+set}
10429282152Spfgac_save_FFLAGS=$FCFLAGS
10430282152SpfgFCFLAGS=
10431282152Spfgecho "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10432282152Spfgecho $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10433282152Spfgif test "${ac_cv_prog_fc_g+set}" = set; then
10434282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
10435282152Spfgelse
10436282152Spfg  FCFLAGS=-g
10437282152Spfgcat >conftest.$ac_ext <<_ACEOF
10438282152Spfg      program main
10439282152Spfg
10440282152Spfg      end
10441169695Skan_ACEOF
10442282152Spfgrm -f conftest.$ac_objext
10443282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444282152Spfg  (eval $ac_compile) 2>conftest.er1
10445169695Skan  ac_status=$?
10446169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
10447169695Skan  rm -f conftest.er1
10448169695Skan  cat conftest.err >&5
10449169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450282152Spfg  (exit $ac_status); } &&
10451282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
10452282152Spfg			 || test ! -s conftest.err'
10453282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454282152Spfg  (eval $ac_try) 2>&5
10455282152Spfg  ac_status=$?
10456282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457282152Spfg  (exit $ac_status); }; } &&
10458282152Spfg	 { ac_try='test -s conftest.$ac_objext'
10459282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460282152Spfg  (eval $ac_try) 2>&5
10461282152Spfg  ac_status=$?
10462282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463282152Spfg  (exit $ac_status); }; }; then
10464282152Spfg  ac_cv_prog_fc_g=yes
10465282152Spfgelse
10466282152Spfg  echo "$as_me: failed program was:" >&5
10467282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
10468282152Spfg
10469282152Spfgac_cv_prog_fc_g=no
10470282152Spfgfi
10471282152Spfgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472282152Spfg
10473282152Spfgfi
10474282152Spfgecho "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10475282152Spfgecho "${ECHO_T}$ac_cv_prog_fc_g" >&6
10476282152Spfgif test "$ac_test_FFLAGS" = set; then
10477282152Spfg  FCFLAGS=$ac_save_FFLAGS
10478282152Spfgelif test $ac_cv_prog_fc_g = yes; then
10479282152Spfg  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10480282152Spfg    FCFLAGS="-g -O2"
10481169695Skan  else
10482282152Spfg    FCFLAGS="-g"
10483169695Skan  fi
10484169695Skanelse
10485282152Spfg  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10486282152Spfg    FCFLAGS="-O2"
10487282152Spfg  else
10488282152Spfg    FCFLAGS=
10489282152Spfg  fi
10490169695Skanfi
10491169695Skan
10492282152Spfgac_ext=c
10493282152Spfgac_cpp='$CPP $CPPFLAGS'
10494282152Spfgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495282152Spfgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496282152Spfgac_compiler_gnu=$ac_cv_c_compiler_gnu
10497282152Spfg
10498282152Spfgif test -z "$FC" || test "X$FC" = "Xno"; then
10499282152Spfg  _lt_disable_FC=yes
10500169695Skanfi
10501169695Skan
10502282152Spfg
10503282152Spfg
10504282152Spfg      ac_ext=${FC_SRCEXT-f}
10505282152Spfgac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10506282152Spfgac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10507282152Spfgac_compiler_gnu=$ac_cv_fc_compiler_gnu
10508282152Spfg
10509282152Spfg
10510282152Spfgarchive_cmds_need_lc_FC=no
10511282152Spfgallow_undefined_flag_FC=
10512282152Spfgalways_export_symbols_FC=no
10513282152Spfgarchive_expsym_cmds_FC=
10514282152Spfgexport_dynamic_flag_spec_FC=
10515282152Spfghardcode_direct_FC=no
10516282152Spfghardcode_direct_absolute_FC=no
10517282152Spfghardcode_libdir_flag_spec_FC=
10518282152Spfghardcode_libdir_flag_spec_ld_FC=
10519282152Spfghardcode_libdir_separator_FC=
10520282152Spfghardcode_minus_L_FC=no
10521282152Spfghardcode_automatic_FC=no
10522282152Spfginherit_rpath_FC=no
10523282152Spfgmodule_cmds_FC=
10524282152Spfgmodule_expsym_cmds_FC=
10525282152Spfglink_all_deplibs_FC=unknown
10526282152Spfgold_archive_cmds_FC=$old_archive_cmds
10527282152Spfgno_undefined_flag_FC=
10528282152Spfgwhole_archive_flag_spec_FC=
10529282152Spfgenable_shared_with_static_runtimes_FC=no
10530282152Spfg
10531282152Spfg# Source file extension for fc test sources.
10532282152Spfgac_ext=${ac_fc_srcext-f}
10533282152Spfg
10534282152Spfg# Object file extension for compiled fc test sources.
10535282152Spfgobjext=o
10536282152Spfgobjext_FC=$objext
10537282152Spfg
10538282152Spfg# No sense in running all these tests if we already determined that
10539282152Spfg# the FC compiler isn't working.  Some variables (like enable_shared)
10540282152Spfg# are currently assumed to apply to all compilers on this platform,
10541282152Spfg# and will be corrupted by setting them based on a non-working compiler.
10542282152Spfgif test "$_lt_disable_FC" != yes; then
10543282152Spfg  # Code to be used in simple compile tests
10544282152Spfg  lt_simple_compile_test_code="\
10545282152Spfg      subroutine t
10546282152Spfg      return
10547282152Spfg      end
10548282152Spfg"
10549282152Spfg
10550282152Spfg  # Code to be used in simple link tests
10551282152Spfg  lt_simple_link_test_code="\
10552282152Spfg      program t
10553282152Spfg      end
10554282152Spfg"
10555282152Spfg
10556282152Spfg  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10557282152Spfg
10558282152Spfg
10559282152Spfg
10560282152Spfg
10561282152Spfg
10562282152Spfg
10563282152Spfg# If no C compiler was specified, use CC.
10564282152SpfgLTCC=${LTCC-"$CC"}
10565282152Spfg
10566282152Spfg# If no C compiler flags were specified, use CFLAGS.
10567282152SpfgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10568282152Spfg
10569282152Spfg# Allow CC to be a program name with arguments.
10570282152Spfgcompiler=$CC
10571282152Spfg
10572282152Spfg
10573282152Spfg  # save warnings/boilerplate of simple test code
10574282152Spfg  ac_outfile=conftest.$ac_objext
10575282152Spfgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
10576282152Spfgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10577282152Spfg_lt_compiler_boilerplate=`cat conftest.err`
10578282152Spfg$RM conftest*
10579282152Spfg
10580282152Spfg  ac_outfile=conftest.$ac_objext
10581282152Spfgecho "$lt_simple_link_test_code" >conftest.$ac_ext
10582282152Spfgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10583282152Spfg_lt_linker_boilerplate=`cat conftest.err`
10584282152Spfg$RM conftest*
10585282152Spfg
10586282152Spfg
10587282152Spfg  # Allow CC to be a program name with arguments.
10588282152Spfg  lt_save_CC="$CC"
10589282152Spfg  CC=${FC-"f95"}
10590282152Spfg  compiler=$CC
10591282152Spfg  compiler_FC=$CC
10592282152Spfg  for cc_temp in $compiler""; do
10593282152Spfg  case $cc_temp in
10594282152Spfg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10595282152Spfg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10596282152Spfg    \-*) ;;
10597282152Spfg    *) break;;
10598282152Spfg  esac
10599169695Skandone
10600282152Spfgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10601282152Spfg
10602282152Spfg
10603282152Spfg  if test -n "$compiler"; then
10604282152Spfg    echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10605282152Spfgecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10606282152Spfg    echo "$as_me:$LINENO: result: $can_build_shared" >&5
10607282152Spfgecho "${ECHO_T}$can_build_shared" >&6
10608282152Spfg
10609282152Spfg    echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10610282152Spfgecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10611282152Spfg    test "$can_build_shared" = "no" && enable_shared=no
10612282152Spfg
10613282152Spfg    # On AIX, shared libraries and static libraries use the same namespace, and
10614282152Spfg    # are all built from PIC.
10615282152Spfg    case $host_os in
10616282152Spfg      aix3*)
10617282152Spfg        test "$enable_shared" = yes && enable_static=no
10618282152Spfg        if test -n "$RANLIB"; then
10619282152Spfg          archive_cmds="$archive_cmds~\$RANLIB \$lib"
10620282152Spfg          postinstall_cmds='$RANLIB $lib'
10621282152Spfg        fi
10622282152Spfg        ;;
10623282152Spfg      aix[4-9]*)
10624282152Spfg	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10625282152Spfg	  test "$enable_shared" = yes && enable_static=no
10626282152Spfg	fi
10627282152Spfg        ;;
10628282152Spfg    esac
10629282152Spfg    echo "$as_me:$LINENO: result: $enable_shared" >&5
10630282152Spfgecho "${ECHO_T}$enable_shared" >&6
10631282152Spfg
10632282152Spfg    echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10633282152Spfgecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10634282152Spfg    # Make sure either enable_shared or enable_static is yes.
10635282152Spfg    test "$enable_shared" = yes || enable_static=yes
10636282152Spfg    echo "$as_me:$LINENO: result: $enable_static" >&5
10637282152Spfgecho "${ECHO_T}$enable_static" >&6
10638282152Spfg
10639282152Spfg    GCC_FC="$ac_cv_fc_compiler_gnu"
10640282152Spfg    LD_FC="$LD"
10641282152Spfg
10642282152Spfg    ## CAVEAT EMPTOR:
10643282152Spfg    ## There is no encapsulation within the following macros, do not change
10644282152Spfg    ## the running order or otherwise move them around unless you know exactly
10645282152Spfg    ## what you are doing...
10646282152Spfg    # Dependencies to place before and after the object being linked:
10647282152Spfgpredep_objects_FC=
10648282152Spfgpostdep_objects_FC=
10649282152Spfgpredeps_FC=
10650282152Spfgpostdeps_FC=
10651282152Spfgcompiler_lib_search_path_FC=
10652282152Spfg
10653282152Spfgcat > conftest.$ac_ext <<_LT_EOF
10654282152Spfg      subroutine foo
10655282152Spfg      implicit none
10656282152Spfg      integer a
10657282152Spfg      a=0
10658282152Spfg      return
10659282152Spfg      end
10660282152Spfg_LT_EOF
10661282152Spfg
10662282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663282152Spfg  (eval $ac_compile) 2>&5
10664282152Spfg  ac_status=$?
10665282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666282152Spfg  (exit $ac_status); }; then
10667282152Spfg  # Parse the compiler output and extract the necessary
10668282152Spfg  # objects, libraries and library flags.
10669282152Spfg
10670282152Spfg  # Sentinel used to keep track of whether or not we are before
10671282152Spfg  # the conftest object file.
10672282152Spfg  pre_test_object_deps_done=no
10673282152Spfg
10674282152Spfg  # The `*' in the case matches for architectures that use `case' in
10675282152Spfg  # $output_verbose_cmd can trigger glob expansion during the loop
10676282152Spfg  # eval without this substitution.
10677282152Spfg  output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10678282152Spfg
10679282152Spfg  for p in `eval $output_verbose_link_cmd`; do
10680282152Spfg    case $p in
10681282152Spfg
10682282152Spfg    -L* | -R* | -l*)
10683282152Spfg       # Some compilers place space between "-{L,R}" and the path.
10684282152Spfg       # Remove the space.
10685282152Spfg       if test $p = "-L" ||
10686282152Spfg          test $p = "-R"; then
10687282152Spfg	 prev=$p
10688282152Spfg	 continue
10689282152Spfg       else
10690282152Spfg	 prev=
10691282152Spfg       fi
10692282152Spfg
10693282152Spfg       if test "$pre_test_object_deps_done" = no; then
10694282152Spfg	 case $p in
10695282152Spfg	 -L* | -R*)
10696282152Spfg	   # Internal compiler library paths should come after those
10697282152Spfg	   # provided the user.  The postdeps already come after the
10698282152Spfg	   # user supplied libs so there is no need to process them.
10699282152Spfg	   if test -z "$compiler_lib_search_path_FC"; then
10700282152Spfg	     compiler_lib_search_path_FC="${prev}${p}"
10701282152Spfg	   else
10702282152Spfg	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10703282152Spfg	   fi
10704282152Spfg	   ;;
10705282152Spfg	 # The "-l" case would never come before the object being
10706282152Spfg	 # linked, so don't bother handling this case.
10707282152Spfg	 esac
10708282152Spfg       else
10709282152Spfg	 if test -z "$postdeps_FC"; then
10710282152Spfg	   postdeps_FC="${prev}${p}"
10711282152Spfg	 else
10712282152Spfg	   postdeps_FC="${postdeps_FC} ${prev}${p}"
10713282152Spfg	 fi
10714282152Spfg       fi
10715282152Spfg       ;;
10716282152Spfg
10717282152Spfg    *.$objext)
10718282152Spfg       # This assumes that the test object file only shows up
10719282152Spfg       # once in the compiler output.
10720282152Spfg       if test "$p" = "conftest.$objext"; then
10721282152Spfg	 pre_test_object_deps_done=yes
10722282152Spfg	 continue
10723282152Spfg       fi
10724282152Spfg
10725282152Spfg       if test "$pre_test_object_deps_done" = no; then
10726282152Spfg	 if test -z "$predep_objects_FC"; then
10727282152Spfg	   predep_objects_FC="$p"
10728282152Spfg	 else
10729282152Spfg	   predep_objects_FC="$predep_objects_FC $p"
10730282152Spfg	 fi
10731282152Spfg       else
10732282152Spfg	 if test -z "$postdep_objects_FC"; then
10733282152Spfg	   postdep_objects_FC="$p"
10734282152Spfg	 else
10735282152Spfg	   postdep_objects_FC="$postdep_objects_FC $p"
10736282152Spfg	 fi
10737282152Spfg       fi
10738282152Spfg       ;;
10739282152Spfg
10740282152Spfg    *) ;; # Ignore the rest.
10741282152Spfg
10742282152Spfg    esac
10743282152Spfg  done
10744282152Spfg
10745282152Spfg  # Clean up.
10746282152Spfg  rm -f a.out a.exe
10747282152Spfgelse
10748282152Spfg  echo "libtool.m4: error: problem compiling FC test program"
10749169695Skanfi
10750169695Skan
10751282152Spfg$RM -f confest.$objext
10752169695Skan
10753282152Spfg# PORTME: override above test on systems where it is broken
10754282152Spfg
10755282152Spfg
10756282152Spfgcase " $postdeps_FC " in
10757282152Spfg*" -lc "*) archive_cmds_need_lc_FC=no ;;
10758282152Spfgesac
10759282152Spfg
10760282152Spfg
10761282152Spfg
10762282152Spfg
10763282152Spfg
10764282152Spfg
10765282152Spfg
10766282152Spfg
10767282152Spfg
10768282152Spfg
10769282152Spfg
10770282152Spfg
10771282152Spfg
10772282152Spfg
10773282152Spfg
10774282152Spfg
10775282152Spfg
10776282152Spfg
10777282152Spfg
10778282152Spfg
10779282152Spfg
10780282152Spfg
10781282152Spfg
10782282152Spfg
10783282152Spfg
10784282152Spfg
10785282152Spfg    lt_prog_compiler_wl_FC=
10786282152Spfglt_prog_compiler_pic_FC=
10787282152Spfglt_prog_compiler_static_FC=
10788282152Spfg
10789282152Spfgecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10790282152Spfgecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10791282152Spfg
10792282152Spfg  if test "$GCC" = yes; then
10793282152Spfg    lt_prog_compiler_wl_FC='-Wl,'
10794282152Spfg    lt_prog_compiler_static_FC='-static'
10795282152Spfg
10796282152Spfg    case $host_os in
10797282152Spfg      aix*)
10798282152Spfg      # All AIX code is PIC.
10799282152Spfg      if test "$host_cpu" = ia64; then
10800282152Spfg	# AIX 5 now supports IA64 processor
10801282152Spfg	lt_prog_compiler_static_FC='-Bstatic'
10802282152Spfg      fi
10803282152Spfg      ;;
10804282152Spfg
10805282152Spfg    amigaos*)
10806282152Spfg      if test "$host_cpu" = m68k; then
10807282152Spfg        # FIXME: we need at least 68020 code to build shared libraries, but
10808282152Spfg        # adding the `-m68020' flag to GCC prevents building anything better,
10809282152Spfg        # like `-m68040'.
10810282152Spfg        lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10811282152Spfg      fi
10812282152Spfg      ;;
10813282152Spfg
10814282152Spfg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10815282152Spfg      # PIC is the default for these OSes.
10816282152Spfg      ;;
10817282152Spfg
10818282152Spfg    mingw* | cygwin* | pw32* | os2*)
10819282152Spfg      # This hack is so that the source file can tell whether it is being
10820282152Spfg      # built for inclusion in a dll (and should export symbols for example).
10821282152Spfg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10822282152Spfg      # (--disable-auto-import) libraries
10823282152Spfg      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10824282152Spfg      ;;
10825282152Spfg
10826282152Spfg    darwin* | rhapsody*)
10827282152Spfg      # PIC is the default on this platform
10828282152Spfg      # Common symbols not allowed in MH_DYLIB files
10829282152Spfg      lt_prog_compiler_pic_FC='-fno-common'
10830282152Spfg      ;;
10831282152Spfg
10832282152Spfg    hpux*)
10833282152Spfg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10834282152Spfg      # not for PA HP-UX.
10835282152Spfg      case $host_cpu in
10836282152Spfg      hppa*64*|ia64*)
10837282152Spfg	# +Z the default
10838282152Spfg	;;
10839282152Spfg      *)
10840282152Spfg	lt_prog_compiler_pic_FC='-fPIC'
10841282152Spfg	;;
10842282152Spfg      esac
10843282152Spfg      ;;
10844282152Spfg
10845282152Spfg    interix[3-9]*)
10846282152Spfg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10847282152Spfg      # Instead, we relocate shared libraries at runtime.
10848282152Spfg      ;;
10849282152Spfg
10850282152Spfg    msdosdjgpp*)
10851282152Spfg      # Just because we use GCC doesn't mean we suddenly get shared libraries
10852282152Spfg      # on systems that don't support them.
10853282152Spfg      lt_prog_compiler_can_build_shared_FC=no
10854282152Spfg      enable_shared=no
10855282152Spfg      ;;
10856282152Spfg
10857282152Spfg    *nto* | *qnx*)
10858282152Spfg      # QNX uses GNU C++, but need to define -shared option too, otherwise
10859282152Spfg      # it will coredump.
10860282152Spfg      lt_prog_compiler_pic_FC='-fPIC -shared'
10861282152Spfg      ;;
10862282152Spfg
10863282152Spfg    sysv4*MP*)
10864282152Spfg      if test -d /usr/nec; then
10865282152Spfg	lt_prog_compiler_pic_FC=-Kconform_pic
10866282152Spfg      fi
10867282152Spfg      ;;
10868282152Spfg
10869282152Spfg    *)
10870282152Spfg      lt_prog_compiler_pic_FC='-fPIC'
10871282152Spfg      ;;
10872282152Spfg    esac
10873282152Spfg  else
10874282152Spfg    # PORTME Check for flag to pass linker flags through the system compiler.
10875282152Spfg    case $host_os in
10876282152Spfg    aix*)
10877282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
10878282152Spfg      if test "$host_cpu" = ia64; then
10879282152Spfg	# AIX 5 now supports IA64 processor
10880282152Spfg	lt_prog_compiler_static_FC='-Bstatic'
10881282152Spfg      else
10882282152Spfg	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10883282152Spfg      fi
10884282152Spfg      ;;
10885282152Spfg    darwin*)
10886282152Spfg      # PIC is the default on this platform
10887282152Spfg      # Common symbols not allowed in MH_DYLIB files
10888282152Spfg      case $cc_basename in
10889282152Spfg      xlc*)
10890282152Spfg        lt_prog_compiler_pic_FC='-qnocommon'
10891282152Spfg        lt_prog_compiler_wl_FC='-Wl,'
10892282152Spfg        ;;
10893282152Spfg      esac
10894282152Spfg      ;;
10895282152Spfg
10896282152Spfg    mingw* | cygwin* | pw32* | os2*)
10897282152Spfg      # This hack is so that the source file can tell whether it is being
10898282152Spfg      # built for inclusion in a dll (and should export symbols for example).
10899282152Spfg      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10900282152Spfg      ;;
10901282152Spfg
10902282152Spfg    hpux9* | hpux10* | hpux11*)
10903282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
10904282152Spfg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10905282152Spfg      # not for PA HP-UX.
10906282152Spfg      case $host_cpu in
10907282152Spfg      hppa*64*|ia64*)
10908282152Spfg	# +Z the default
10909282152Spfg	;;
10910282152Spfg      *)
10911282152Spfg	lt_prog_compiler_pic_FC='+Z'
10912282152Spfg	;;
10913282152Spfg      esac
10914282152Spfg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10915282152Spfg      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10916282152Spfg      ;;
10917282152Spfg
10918282152Spfg    irix5* | irix6* | nonstopux*)
10919282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
10920282152Spfg      # PIC (with -KPIC) is the default.
10921282152Spfg      lt_prog_compiler_static_FC='-non_shared'
10922282152Spfg      ;;
10923282152Spfg
10924282152Spfg    linux* | k*bsd*-gnu)
10925282152Spfg      case $cc_basename in
10926282152Spfg      icc* | ecc*)
10927282152Spfg	lt_prog_compiler_wl_FC='-Wl,'
10928282152Spfg	lt_prog_compiler_pic_FC='-KPIC'
10929282152Spfg	lt_prog_compiler_static_FC='-static'
10930282152Spfg        ;;
10931282152Spfg      pgcc* | pgf77* | pgf90* | pgf95*)
10932282152Spfg        # Portland Group compilers (*not* the Pentium gcc compiler,
10933282152Spfg	# which looks to be a dead project)
10934282152Spfg	lt_prog_compiler_wl_FC='-Wl,'
10935282152Spfg	lt_prog_compiler_pic_FC='-fpic'
10936282152Spfg	lt_prog_compiler_static_FC='-Bstatic'
10937282152Spfg        ;;
10938282152Spfg      ccc*)
10939282152Spfg        lt_prog_compiler_wl_FC='-Wl,'
10940282152Spfg        # All Alpha code is PIC.
10941282152Spfg        lt_prog_compiler_static_FC='-non_shared'
10942282152Spfg        ;;
10943282152Spfg      *)
10944282152Spfg	case `$CC -V 2>&1 | sed 5q` in
10945282152Spfg	*Sun\ C*)
10946282152Spfg	  # Sun C 5.9
10947282152Spfg	  lt_prog_compiler_pic_FC='-KPIC'
10948282152Spfg	  lt_prog_compiler_static_FC='-Bstatic'
10949282152Spfg	  lt_prog_compiler_wl_FC='-Wl,'
10950282152Spfg	  ;;
10951282152Spfg	*Sun\ F*)
10952282152Spfg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10953282152Spfg	  lt_prog_compiler_pic_FC='-KPIC'
10954282152Spfg	  lt_prog_compiler_static_FC='-Bstatic'
10955282152Spfg	  lt_prog_compiler_wl_FC=''
10956282152Spfg	  ;;
10957282152Spfg	esac
10958282152Spfg	;;
10959282152Spfg      esac
10960282152Spfg      ;;
10961282152Spfg
10962282152Spfg    newsos6)
10963282152Spfg      lt_prog_compiler_pic_FC='-KPIC'
10964282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
10965282152Spfg      ;;
10966282152Spfg
10967282152Spfg    *nto* | *qnx*)
10968282152Spfg      # QNX uses GNU C++, but need to define -shared option too, otherwise
10969282152Spfg      # it will coredump.
10970282152Spfg      lt_prog_compiler_pic_FC='-fPIC -shared'
10971282152Spfg      ;;
10972282152Spfg
10973282152Spfg    osf3* | osf4* | osf5*)
10974282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
10975282152Spfg      # All OSF/1 code is PIC.
10976282152Spfg      lt_prog_compiler_static_FC='-non_shared'
10977282152Spfg      ;;
10978282152Spfg
10979282152Spfg    rdos*)
10980282152Spfg      lt_prog_compiler_static_FC='-non_shared'
10981282152Spfg      ;;
10982282152Spfg
10983282152Spfg    solaris*)
10984282152Spfg      lt_prog_compiler_pic_FC='-KPIC'
10985282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
10986282152Spfg      case $cc_basename in
10987282152Spfg      f77* | f90* | f95*)
10988282152Spfg	lt_prog_compiler_wl_FC='-Qoption ld ';;
10989282152Spfg      *)
10990282152Spfg	lt_prog_compiler_wl_FC='-Wl,';;
10991282152Spfg      esac
10992282152Spfg      ;;
10993282152Spfg
10994282152Spfg    sunos4*)
10995282152Spfg      lt_prog_compiler_wl_FC='-Qoption ld '
10996282152Spfg      lt_prog_compiler_pic_FC='-PIC'
10997282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
10998282152Spfg      ;;
10999282152Spfg
11000282152Spfg    sysv4 | sysv4.2uw2* | sysv4.3*)
11001282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
11002282152Spfg      lt_prog_compiler_pic_FC='-KPIC'
11003282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
11004282152Spfg      ;;
11005282152Spfg
11006282152Spfg    sysv4*MP*)
11007282152Spfg      if test -d /usr/nec ;then
11008282152Spfg	lt_prog_compiler_pic_FC='-Kconform_pic'
11009282152Spfg	lt_prog_compiler_static_FC='-Bstatic'
11010282152Spfg      fi
11011282152Spfg      ;;
11012282152Spfg
11013282152Spfg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11014282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
11015282152Spfg      lt_prog_compiler_pic_FC='-KPIC'
11016282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
11017282152Spfg      ;;
11018282152Spfg
11019282152Spfg    unicos*)
11020282152Spfg      lt_prog_compiler_wl_FC='-Wl,'
11021282152Spfg      lt_prog_compiler_can_build_shared_FC=no
11022282152Spfg      ;;
11023282152Spfg
11024282152Spfg    uts4*)
11025282152Spfg      lt_prog_compiler_pic_FC='-pic'
11026282152Spfg      lt_prog_compiler_static_FC='-Bstatic'
11027282152Spfg      ;;
11028282152Spfg
11029282152Spfg    *)
11030282152Spfg      lt_prog_compiler_can_build_shared_FC=no
11031282152Spfg      ;;
11032282152Spfg    esac
11033282152Spfg  fi
11034282152Spfg
11035282152Spfgcase $host_os in
11036282152Spfg  # For platforms which do not support PIC, -DPIC is meaningless:
11037282152Spfg  *djgpp*)
11038282152Spfg    lt_prog_compiler_pic_FC=
11039282152Spfg    ;;
11040282152Spfg  *)
11041282152Spfg    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11042282152Spfg    ;;
11043282152Spfgesac
11044282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11045282152Spfgecho "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11046282152Spfg
11047282152Spfg
11048282152Spfg
11049282152Spfg#
11050282152Spfg# Check to make sure the PIC flag actually works.
11051282152Spfg#
11052282152Spfgif test -n "$lt_prog_compiler_pic_FC"; then
11053282152Spfg  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11054282152Spfgecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11055282152Spfgif test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11056282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
11057282152Spfgelse
11058282152Spfg  lt_prog_compiler_pic_works_FC=no
11059282152Spfg   ac_outfile=conftest.$ac_objext
11060282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11061282152Spfg   lt_compiler_flag="$lt_prog_compiler_pic_FC"
11062282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
11063282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
11064282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
11065282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
11066282152Spfg   # The option is referenced via a variable to avoid confusing sed.
11067282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
11068282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11069282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070282152Spfg   -e 's:$: $lt_compiler_flag:'`
11071282152Spfg   (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072282152Spfg   (eval "$lt_compile" 2>conftest.err)
11073282152Spfg   ac_status=$?
11074282152Spfg   cat conftest.err >&5
11075282152Spfg   echo "$as_me:11075: \$? = $ac_status" >&5
11076282152Spfg   if (exit $ac_status) && test -s "$ac_outfile"; then
11077282152Spfg     # The compiler can only warn and ignore the option if not recognized
11078282152Spfg     # So say no if there are warnings other than the usual output.
11079282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11080282152Spfg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11081282152Spfg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11082282152Spfg       lt_prog_compiler_pic_works_FC=yes
11083282152Spfg     fi
11084282152Spfg   fi
11085282152Spfg   $RM conftest*
11086282152Spfg
11087169695Skanfi
11088282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11089282152Spfgecho "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11090282152Spfg
11091282152Spfgif test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11092282152Spfg    case $lt_prog_compiler_pic_FC in
11093282152Spfg     "" | " "*) ;;
11094282152Spfg     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11095282152Spfg     esac
11096169695Skanelse
11097282152Spfg    lt_prog_compiler_pic_FC=
11098282152Spfg     lt_prog_compiler_can_build_shared_FC=no
11099169695Skanfi
11100282152Spfg
11101282152Spfgfi
11102282152Spfg
11103282152Spfg
11104282152Spfg
11105282152Spfg#
11106282152Spfg# Check to make sure the static flag actually works.
11107282152Spfg#
11108282152Spfgwl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11109282152Spfgecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11110282152Spfgecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11111282152Spfgif test "${lt_prog_compiler_static_works_FC+set}" = set; then
11112282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
11113282152Spfgelse
11114282152Spfg  lt_prog_compiler_static_works_FC=no
11115282152Spfg   save_LDFLAGS="$LDFLAGS"
11116282152Spfg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11117282152Spfg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11118282152Spfg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11119282152Spfg     # The linker can only warn and ignore the option if not recognized
11120282152Spfg     # So say no if there are warnings
11121282152Spfg     if test -s conftest.err; then
11122282152Spfg       # Append any errors to the config.log.
11123282152Spfg       cat conftest.err 1>&5
11124282152Spfg       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11125282152Spfg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11126282152Spfg       if diff conftest.exp conftest.er2 >/dev/null; then
11127282152Spfg         lt_prog_compiler_static_works_FC=yes
11128282152Spfg       fi
11129282152Spfg     else
11130282152Spfg       lt_prog_compiler_static_works_FC=yes
11131282152Spfg     fi
11132282152Spfg   fi
11133282152Spfg   $RM conftest*
11134282152Spfg   LDFLAGS="$save_LDFLAGS"
11135282152Spfg
11136282152Spfgfi
11137282152Spfgecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11138282152Spfgecho "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11139282152Spfg
11140282152Spfgif test x"$lt_prog_compiler_static_works_FC" = xyes; then
11141282152Spfg    :
11142282152Spfgelse
11143282152Spfg    lt_prog_compiler_static_FC=
11144282152Spfgfi
11145282152Spfg
11146282152Spfg
11147282152Spfg
11148282152Spfg
11149282152Spfg    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11150282152Spfgecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11151282152Spfgif test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11152282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
11153282152Spfgelse
11154282152Spfg  lt_cv_prog_compiler_c_o_FC=no
11155282152Spfg   $RM -r conftest 2>/dev/null
11156282152Spfg   mkdir conftest
11157282152Spfg   cd conftest
11158282152Spfg   mkdir out
11159282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11160282152Spfg
11161282152Spfg   lt_compiler_flag="-o out/conftest2.$ac_objext"
11162282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
11163282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
11164282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
11165282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
11166282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
11167282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11168282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11169282152Spfg   -e 's:$: $lt_compiler_flag:'`
11170282152Spfg   (eval echo "\"\$as_me:11170: $lt_compile\"" >&5)
11171282152Spfg   (eval "$lt_compile" 2>out/conftest.err)
11172282152Spfg   ac_status=$?
11173282152Spfg   cat out/conftest.err >&5
11174282152Spfg   echo "$as_me:11174: \$? = $ac_status" >&5
11175282152Spfg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11176282152Spfg   then
11177282152Spfg     # The compiler can only warn and ignore the option if not recognized
11178282152Spfg     # So say no if there are warnings
11179282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11180282152Spfg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11181282152Spfg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11182282152Spfg       lt_cv_prog_compiler_c_o_FC=yes
11183282152Spfg     fi
11184282152Spfg   fi
11185282152Spfg   chmod u+w . 2>&5
11186282152Spfg   $RM conftest*
11187282152Spfg   # SGI C++ compiler will create directory out/ii_files/ for
11188282152Spfg   # template instantiation
11189282152Spfg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11190282152Spfg   $RM out/* && rmdir out
11191282152Spfg   cd ..
11192282152Spfg   $RM -r conftest
11193282152Spfg   $RM conftest*
11194282152Spfg
11195282152Spfgfi
11196282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11197282152Spfgecho "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11198282152Spfg
11199282152Spfg
11200282152Spfg
11201282152Spfg    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11202282152Spfgecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11203282152Spfgif test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11204282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
11205282152Spfgelse
11206282152Spfg  lt_cv_prog_compiler_c_o_FC=no
11207282152Spfg   $RM -r conftest 2>/dev/null
11208282152Spfg   mkdir conftest
11209282152Spfg   cd conftest
11210282152Spfg   mkdir out
11211282152Spfg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11212282152Spfg
11213282152Spfg   lt_compiler_flag="-o out/conftest2.$ac_objext"
11214282152Spfg   # Insert the option either (1) after the last *FLAGS variable, or
11215282152Spfg   # (2) before a word containing "conftest.", or (3) at the end.
11216282152Spfg   # Note that $ac_compile itself does not contain backslashes and begins
11217282152Spfg   # with a dollar sign (not a hyphen), so the echo should work correctly.
11218282152Spfg   lt_compile=`echo "$ac_compile" | $SED \
11219282152Spfg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11220282152Spfg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11221282152Spfg   -e 's:$: $lt_compiler_flag:'`
11222282152Spfg   (eval echo "\"\$as_me:11222: $lt_compile\"" >&5)
11223282152Spfg   (eval "$lt_compile" 2>out/conftest.err)
11224282152Spfg   ac_status=$?
11225282152Spfg   cat out/conftest.err >&5
11226282152Spfg   echo "$as_me:11226: \$? = $ac_status" >&5
11227282152Spfg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11228282152Spfg   then
11229282152Spfg     # The compiler can only warn and ignore the option if not recognized
11230282152Spfg     # So say no if there are warnings
11231282152Spfg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11232282152Spfg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11233282152Spfg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11234282152Spfg       lt_cv_prog_compiler_c_o_FC=yes
11235282152Spfg     fi
11236282152Spfg   fi
11237282152Spfg   chmod u+w . 2>&5
11238282152Spfg   $RM conftest*
11239282152Spfg   # SGI C++ compiler will create directory out/ii_files/ for
11240282152Spfg   # template instantiation
11241282152Spfg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11242282152Spfg   $RM out/* && rmdir out
11243282152Spfg   cd ..
11244282152Spfg   $RM -r conftest
11245282152Spfg   $RM conftest*
11246282152Spfg
11247282152Spfgfi
11248282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11249282152Spfgecho "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11250282152Spfg
11251282152Spfg
11252282152Spfg
11253282152Spfg
11254282152Spfghard_links="nottested"
11255282152Spfgif test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11256282152Spfg  # do not overwrite the value of need_locks provided by the user
11257282152Spfg  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11258282152Spfgecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11259282152Spfg  hard_links=yes
11260282152Spfg  $RM conftest*
11261282152Spfg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11262282152Spfg  touch conftest.a
11263282152Spfg  ln conftest.a conftest.b 2>&5 || hard_links=no
11264282152Spfg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11265282152Spfg  echo "$as_me:$LINENO: result: $hard_links" >&5
11266282152Spfgecho "${ECHO_T}$hard_links" >&6
11267282152Spfg  if test "$hard_links" = no; then
11268282152Spfg    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11269282152Spfgecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11270282152Spfg    need_locks=warn
11271282152Spfg  fi
11272282152Spfgelse
11273282152Spfg  need_locks=no
11274282152Spfgfi
11275282152Spfg
11276282152Spfg
11277282152Spfg
11278282152Spfg    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11279282152Spfgecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11280282152Spfg
11281282152Spfg  runpath_var=
11282282152Spfg  allow_undefined_flag_FC=
11283282152Spfg  always_export_symbols_FC=no
11284282152Spfg  archive_cmds_FC=
11285282152Spfg  archive_expsym_cmds_FC=
11286282152Spfg  compiler_needs_object_FC=no
11287282152Spfg  enable_shared_with_static_runtimes_FC=no
11288282152Spfg  export_dynamic_flag_spec_FC=
11289282152Spfg  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11290282152Spfg  hardcode_automatic_FC=no
11291282152Spfg  hardcode_direct_FC=no
11292282152Spfg  hardcode_direct_absolute_FC=no
11293282152Spfg  hardcode_libdir_flag_spec_FC=
11294282152Spfg  hardcode_libdir_flag_spec_ld_FC=
11295282152Spfg  hardcode_libdir_separator_FC=
11296282152Spfg  hardcode_minus_L_FC=no
11297282152Spfg  hardcode_shlibpath_var_FC=unsupported
11298282152Spfg  inherit_rpath_FC=no
11299282152Spfg  link_all_deplibs_FC=unknown
11300282152Spfg  module_cmds_FC=
11301282152Spfg  module_expsym_cmds_FC=
11302282152Spfg  old_archive_from_new_cmds_FC=
11303282152Spfg  old_archive_from_expsyms_cmds_FC=
11304282152Spfg  thread_safe_flag_spec_FC=
11305282152Spfg  whole_archive_flag_spec_FC=
11306282152Spfg  # include_expsyms should be a list of space-separated symbols to be *always*
11307282152Spfg  # included in the symbol list
11308282152Spfg  include_expsyms_FC=
11309282152Spfg  # exclude_expsyms can be an extended regexp of symbols to exclude
11310282152Spfg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11311282152Spfg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11312282152Spfg  # as well as any symbol that contains `d'.
11313282152Spfg  exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11314282152Spfg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11315282152Spfg  # platforms (ab)use it in PIC code, but their linkers get confused if
11316282152Spfg  # the symbol is explicitly referenced.  Since portable code cannot
11317282152Spfg  # rely on this symbol name, it's probably fine to never include it in
11318282152Spfg  # preloaded symbol tables.
11319282152Spfg  extract_expsyms_cmds=
11320282152Spfg
11321282152Spfg  case $host_os in
11322282152Spfg  cygwin* | mingw* | pw32*)
11323282152Spfg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11324282152Spfg    # When not using gcc, we currently assume that we are using
11325282152Spfg    # Microsoft Visual C++.
11326282152Spfg    if test "$GCC" != yes; then
11327282152Spfg      with_gnu_ld=no
11328282152Spfg    fi
11329282152Spfg    ;;
11330282152Spfg  interix*)
11331282152Spfg    # we just hope/assume this is gcc and not c89 (= MSVC++)
11332282152Spfg    with_gnu_ld=yes
11333282152Spfg    ;;
11334282152Spfg  openbsd*)
11335282152Spfg    with_gnu_ld=no
11336282152Spfg    ;;
11337282152Spfg  esac
11338282152Spfg
11339282152Spfg  ld_shlibs_FC=yes
11340282152Spfg  if test "$with_gnu_ld" = yes; then
11341282152Spfg    # If archive_cmds runs LD, not CC, wlarc should be empty
11342282152Spfg    wlarc='${wl}'
11343282152Spfg
11344282152Spfg    # Set some defaults for GNU ld with shared library support. These
11345282152Spfg    # are reset later if shared libraries are not supported. Putting them
11346282152Spfg    # here allows them to be overridden if necessary.
11347282152Spfg    runpath_var=LD_RUN_PATH
11348282152Spfg    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11349282152Spfg    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11350282152Spfg    # ancient GNU ld didn't support --whole-archive et. al.
11351282152Spfg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11352282152Spfg      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11353282152Spfg    else
11354282152Spfg      whole_archive_flag_spec_FC=
11355282152Spfg    fi
11356282152Spfg    supports_anon_versioning=no
11357282152Spfg    case `$LD -v 2>&1` in
11358282152Spfg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11359282152Spfg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11360282152Spfg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11361282152Spfg      *\ 2.11.*) ;; # other 2.11 versions
11362282152Spfg      *) supports_anon_versioning=yes ;;
11363282152Spfg    esac
11364282152Spfg
11365282152Spfg    # See if GNU ld supports shared libraries.
11366282152Spfg    case $host_os in
11367282152Spfg    aix[3-9]*)
11368282152Spfg      # On AIX/PPC, the GNU linker is very broken
11369282152Spfg      if test "$host_cpu" != ia64; then
11370282152Spfg	ld_shlibs_FC=no
11371282152Spfg	cat <<_LT_EOF 1>&2
11372282152Spfg
11373282152Spfg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11374282152Spfg*** to be unable to reliably create shared libraries on AIX.
11375282152Spfg*** Therefore, libtool is disabling shared libraries support.  If you
11376282152Spfg*** really care for shared libraries, you may want to modify your PATH
11377282152Spfg*** so that a non-GNU linker is found, and then restart.
11378282152Spfg
11379282152Spfg_LT_EOF
11380282152Spfg      fi
11381282152Spfg      ;;
11382282152Spfg
11383282152Spfg    amigaos*)
11384282152Spfg      if test "$host_cpu" = m68k; then
11385282152Spfg        archive_cmds_FC='$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)'
11386282152Spfg        hardcode_libdir_flag_spec_FC='-L$libdir'
11387282152Spfg        hardcode_minus_L_FC=yes
11388282152Spfg      fi
11389282152Spfg
11390282152Spfg      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11391282152Spfg      # that the semantics of dynamic libraries on AmigaOS, at least up
11392282152Spfg      # to version 4, is to share data among multiple programs linked
11393282152Spfg      # with the same dynamic library.  Since this doesn't match the
11394282152Spfg      # behavior of shared libraries on other platforms, we can't use
11395282152Spfg      # them.
11396282152Spfg      ld_shlibs_FC=no
11397282152Spfg      ;;
11398282152Spfg
11399282152Spfg    beos*)
11400282152Spfg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11401282152Spfg	allow_undefined_flag_FC=unsupported
11402282152Spfg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11403282152Spfg	# support --undefined.  This deserves some investigation.  FIXME
11404282152Spfg	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405282152Spfg      else
11406282152Spfg	ld_shlibs_FC=no
11407282152Spfg      fi
11408282152Spfg      ;;
11409282152Spfg
11410282152Spfg    cygwin* | mingw* | pw32*)
11411282152Spfg      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11412282152Spfg      # as there is no search path for DLLs.
11413282152Spfg      hardcode_libdir_flag_spec_FC='-L$libdir'
11414282152Spfg      allow_undefined_flag_FC=unsupported
11415282152Spfg      always_export_symbols_FC=no
11416282152Spfg      enable_shared_with_static_runtimes_FC=yes
11417282152Spfg      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11418282152Spfg
11419282152Spfg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11420282152Spfg        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11421282152Spfg	# If the export-symbols file already is a .def file (1st line
11422282152Spfg	# is EXPORTS), use it as is; otherwise, prepend...
11423282152Spfg	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11424282152Spfg	  cp $export_symbols $output_objdir/$soname.def;
11425282152Spfg	else
11426282152Spfg	  echo EXPORTS > $output_objdir/$soname.def;
11427282152Spfg	  cat $export_symbols >> $output_objdir/$soname.def;
11428282152Spfg	fi~
11429282152Spfg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11430282152Spfg      else
11431282152Spfg	ld_shlibs_FC=no
11432282152Spfg      fi
11433282152Spfg      ;;
11434282152Spfg
11435282152Spfg    interix[3-9]*)
11436282152Spfg      hardcode_direct_FC=no
11437282152Spfg      hardcode_shlibpath_var_FC=no
11438282152Spfg      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11439282152Spfg      export_dynamic_flag_spec_FC='${wl}-E'
11440282152Spfg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11441282152Spfg      # Instead, shared libraries are loaded at an image base (0x10000000 by
11442282152Spfg      # default) and relocated if they conflict, which is a slow very memory
11443282152Spfg      # consuming and fragmenting process.  To avoid this, we pick a random,
11444282152Spfg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11445282152Spfg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11446282152Spfg      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11447282152Spfg      archive_expsym_cmds_FC='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'
11448282152Spfg      ;;
11449282152Spfg
11450282152Spfg    gnu* | linux* | tpf* | k*bsd*-gnu)
11451282152Spfg      tmp_diet=no
11452282152Spfg      if test "$host_os" = linux-dietlibc; then
11453282152Spfg	case $cc_basename in
11454282152Spfg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11455282152Spfg	esac
11456282152Spfg      fi
11457282152Spfg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11458282152Spfg	 && test "$tmp_diet" = no
11459282152Spfg      then
11460282152Spfg	tmp_addflag=
11461282152Spfg	case $cc_basename,$host_cpu in
11462282152Spfg        pgcc*)				# Portland Group C compiler
11463282152Spfg	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11464282152Spfg	  tmp_addflag=' $pic_flag'
11465282152Spfg	  ;;
11466282152Spfg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11467282152Spfg	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11468282152Spfg	  tmp_addflag=' $pic_flag -Mnomain' ;;
11469282152Spfg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11470282152Spfg	  tmp_addflag=' -i_dynamic' ;;
11471282152Spfg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11472282152Spfg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11473282152Spfg	ifc* | ifort*)			# Intel Fortran compiler
11474282152Spfg	  tmp_addflag=' -nofor_main' ;;
11475282152Spfg	esac
11476282152Spfg	case `$CC -V 2>&1 | sed 5q` in
11477282152Spfg	*Sun\ C*)			# Sun C 5.9
11478282152Spfg	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11479282152Spfg	  compiler_needs_object_FC=yes
11480282152Spfg	  tmp_sharedflag='-G' ;;
11481282152Spfg	*Sun\ F*)			# Sun Fortran 8.3
11482282152Spfg	  tmp_sharedflag='-G' ;;
11483282152Spfg	*)
11484282152Spfg	  tmp_sharedflag='-shared' ;;
11485282152Spfg	esac
11486282152Spfg	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11487282152Spfg
11488282152Spfg        if test "x$supports_anon_versioning" = xyes; then
11489282152Spfg          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11490282152Spfg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11491282152Spfg	    echo "local: *; };" >> $output_objdir/$libname.ver~
11492282152Spfg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11493282152Spfg        fi
11494282152Spfg      else
11495282152Spfg        ld_shlibs_FC=no
11496282152Spfg      fi
11497282152Spfg      ;;
11498282152Spfg
11499282152Spfg    netbsd*)
11500282152Spfg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11501282152Spfg	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11502282152Spfg	wlarc=
11503282152Spfg      else
11504282152Spfg	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505282152Spfg	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11506282152Spfg      fi
11507282152Spfg      ;;
11508282152Spfg
11509282152Spfg    solaris*)
11510282152Spfg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11511282152Spfg	ld_shlibs_FC=no
11512282152Spfg	cat <<_LT_EOF 1>&2
11513282152Spfg
11514282152Spfg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11515282152Spfg*** create shared libraries on Solaris systems.  Therefore, libtool
11516282152Spfg*** is disabling shared libraries support.  We urge you to upgrade GNU
11517282152Spfg*** binutils to release 2.9.1 or newer.  Another option is to modify
11518282152Spfg*** your PATH or compiler configuration so that the native linker is
11519282152Spfg*** used, and then restart.
11520282152Spfg
11521282152Spfg_LT_EOF
11522282152Spfg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11523282152Spfg	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524282152Spfg	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11525282152Spfg      else
11526282152Spfg	ld_shlibs_FC=no
11527282152Spfg      fi
11528282152Spfg      ;;
11529282152Spfg
11530282152Spfg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11531282152Spfg      case `$LD -v 2>&1` in
11532282152Spfg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11533282152Spfg	ld_shlibs_FC=no
11534282152Spfg	cat <<_LT_EOF 1>&2
11535282152Spfg
11536282152Spfg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11537282152Spfg*** reliably create shared libraries on SCO systems.  Therefore, libtool
11538282152Spfg*** is disabling shared libraries support.  We urge you to upgrade GNU
11539282152Spfg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11540282152Spfg*** your PATH or compiler configuration so that the native linker is
11541282152Spfg*** used, and then restart.
11542282152Spfg
11543282152Spfg_LT_EOF
11544282152Spfg	;;
11545282152Spfg	*)
11546282152Spfg	  # For security reasons, it is highly recommended that you always
11547282152Spfg	  # use absolute paths for naming shared libraries, and exclude the
11548282152Spfg	  # DT_RUNPATH tag from executables and libraries.  But doing so
11549282152Spfg	  # requires that you compile everything twice, which is a pain.
11550282152Spfg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11551282152Spfg	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11552282152Spfg	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11553282152Spfg	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11554282152Spfg	  else
11555282152Spfg	    ld_shlibs_FC=no
11556282152Spfg	  fi
11557282152Spfg	;;
11558282152Spfg      esac
11559282152Spfg      ;;
11560282152Spfg
11561282152Spfg    sunos4*)
11562282152Spfg      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11563282152Spfg      wlarc=
11564282152Spfg      hardcode_direct_FC=yes
11565282152Spfg      hardcode_shlibpath_var_FC=no
11566282152Spfg      ;;
11567282152Spfg
11568282152Spfg    *)
11569282152Spfg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570282152Spfg	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11571282152Spfg	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11572282152Spfg      else
11573282152Spfg	ld_shlibs_FC=no
11574282152Spfg      fi
11575282152Spfg      ;;
11576282152Spfg    esac
11577282152Spfg
11578282152Spfg    if test "$ld_shlibs_FC" = no; then
11579282152Spfg      runpath_var=
11580282152Spfg      hardcode_libdir_flag_spec_FC=
11581282152Spfg      export_dynamic_flag_spec_FC=
11582282152Spfg      whole_archive_flag_spec_FC=
11583282152Spfg    fi
11584282152Spfg  else
11585282152Spfg    # PORTME fill in a description of your system's linker (not GNU ld)
11586282152Spfg    case $host_os in
11587282152Spfg    aix3*)
11588282152Spfg      allow_undefined_flag_FC=unsupported
11589282152Spfg      always_export_symbols_FC=yes
11590282152Spfg      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11591282152Spfg      # Note: this linker hardcodes the directories in LIBPATH if there
11592282152Spfg      # are no directories specified by -L.
11593282152Spfg      hardcode_minus_L_FC=yes
11594282152Spfg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11595282152Spfg	# Neither direct hardcoding nor static linking is supported with a
11596282152Spfg	# broken collect2.
11597282152Spfg	hardcode_direct_FC=unsupported
11598282152Spfg      fi
11599282152Spfg      ;;
11600282152Spfg
11601282152Spfg    aix[4-9]*)
11602282152Spfg      if test "$host_cpu" = ia64; then
11603282152Spfg	# On IA64, the linker does run time linking by default, so we don't
11604282152Spfg	# have to do anything special.
11605282152Spfg	aix_use_runtimelinking=no
11606282152Spfg	exp_sym_flag='-Bexport'
11607282152Spfg	no_entry_flag=""
11608282152Spfg      else
11609282152Spfg	# If we're using GNU nm, then we don't want the "-C" option.
11610282152Spfg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11611282152Spfg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11612282152Spfg	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11613282152Spfg	else
11614282152Spfg	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11615282152Spfg	fi
11616282152Spfg	aix_use_runtimelinking=no
11617282152Spfg
11618282152Spfg	# Test if we are trying to use run time linking or normal
11619282152Spfg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11620282152Spfg	# need to do runtime linking.
11621282152Spfg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11622282152Spfg	  for ld_flag in $LDFLAGS; do
11623282152Spfg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11624282152Spfg	    aix_use_runtimelinking=yes
11625282152Spfg	    break
11626282152Spfg	  fi
11627282152Spfg	  done
11628282152Spfg	  ;;
11629282152Spfg	esac
11630282152Spfg
11631282152Spfg	exp_sym_flag='-bexport'
11632282152Spfg	no_entry_flag='-bnoentry'
11633282152Spfg      fi
11634282152Spfg
11635282152Spfg      # When large executables or shared objects are built, AIX ld can
11636282152Spfg      # have problems creating the table of contents.  If linking a library
11637282152Spfg      # or program results in "error TOC overflow" add -mminimal-toc to
11638282152Spfg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11639282152Spfg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11640282152Spfg
11641282152Spfg      archive_cmds_FC=''
11642282152Spfg      hardcode_direct_FC=yes
11643282152Spfg      hardcode_direct_absolute_FC=yes
11644282152Spfg      hardcode_libdir_separator_FC=':'
11645282152Spfg      link_all_deplibs_FC=yes
11646282152Spfg      file_list_spec_FC='${wl}-f,'
11647282152Spfg
11648282152Spfg      if test "$GCC" = yes; then
11649282152Spfg	case $host_os in aix4.[012]|aix4.[012].*)
11650282152Spfg	# We only want to do this on AIX 4.2 and lower, the check
11651282152Spfg	# below for broken collect2 doesn't work under 4.3+
11652282152Spfg	  collect2name=`${CC} -print-prog-name=collect2`
11653282152Spfg	  if test -f "$collect2name" &&
11654282152Spfg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11655282152Spfg	  then
11656282152Spfg	  # We have reworked collect2
11657282152Spfg	  :
11658282152Spfg	  else
11659282152Spfg	  # We have old collect2
11660282152Spfg	  hardcode_direct_FC=unsupported
11661282152Spfg	  # It fails to find uninstalled libraries when the uninstalled
11662282152Spfg	  # path is not listed in the libpath.  Setting hardcode_minus_L
11663282152Spfg	  # to unsupported forces relinking
11664282152Spfg	  hardcode_minus_L_FC=yes
11665282152Spfg	  hardcode_libdir_flag_spec_FC='-L$libdir'
11666282152Spfg	  hardcode_libdir_separator_FC=
11667282152Spfg	  fi
11668282152Spfg	  ;;
11669282152Spfg	esac
11670282152Spfg	shared_flag='-shared'
11671282152Spfg	if test "$aix_use_runtimelinking" = yes; then
11672282152Spfg	  shared_flag="$shared_flag "'${wl}-G'
11673282152Spfg	fi
11674282152Spfg      else
11675282152Spfg	# not using gcc
11676282152Spfg	if test "$host_cpu" = ia64; then
11677282152Spfg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11678282152Spfg	# chokes on -Wl,-G. The following line is correct:
11679282152Spfg	  shared_flag='-G'
11680282152Spfg	else
11681282152Spfg	  if test "$aix_use_runtimelinking" = yes; then
11682282152Spfg	    shared_flag='${wl}-G'
11683282152Spfg	  else
11684282152Spfg	    shared_flag='${wl}-bM:SRE'
11685282152Spfg	  fi
11686282152Spfg	fi
11687282152Spfg      fi
11688282152Spfg
11689282152Spfg      # It seems that -bexpall does not export symbols beginning with
11690282152Spfg      # underscore (_), so it is better to generate a list of symbols to export.
11691282152Spfg      always_export_symbols_FC=yes
11692282152Spfg      if test "$aix_use_runtimelinking" = yes; then
11693282152Spfg	# Warning - without using the other runtime loading flags (-brtl),
11694282152Spfg	# -berok will link without error, but may produce a broken library.
11695282152Spfg	allow_undefined_flag_FC='-berok'
11696282152Spfg        # Determine the default libpath from the value encoded in an
11697282152Spfg        # empty executable.
11698282152Spfg        cat >conftest.$ac_ext <<_ACEOF
11699282152Spfg      program main
11700282152Spfg
11701282152Spfg      end
11702169695Skan_ACEOF
11703282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
11704282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705282152Spfg  (eval $ac_link) 2>conftest.er1
11706282152Spfg  ac_status=$?
11707282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
11708282152Spfg  rm -f conftest.er1
11709282152Spfg  cat conftest.err >&5
11710282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711282152Spfg  (exit $ac_status); } &&
11712282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
11713282152Spfg			 || test ! -s conftest.err'
11714282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715282152Spfg  (eval $ac_try) 2>&5
11716282152Spfg  ac_status=$?
11717282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718282152Spfg  (exit $ac_status); }; } &&
11719282152Spfg	 { ac_try='test -s conftest$ac_exeext'
11720282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721282152Spfg  (eval $ac_try) 2>&5
11722282152Spfg  ac_status=$?
11723282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724282152Spfg  (exit $ac_status); }; }; then
11725282152Spfg
11726282152Spfglt_aix_libpath_sed='
11727282152Spfg    /Import File Strings/,/^$/ {
11728282152Spfg	/^0/ {
11729282152Spfg	    s/^0  *\(.*\)$/\1/
11730282152Spfg	    p
11731282152Spfg	}
11732282152Spfg    }'
11733282152Spfgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734282152Spfg# Check for a 64-bit object if we didn't find anything.
11735282152Spfgif test -z "$aix_libpath"; then
11736282152Spfg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737282152Spfgfi
11738282152Spfgelse
11739282152Spfg  echo "$as_me: failed program was:" >&5
11740282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
11741282152Spfg
11742282152Spfgfi
11743282152Spfgrm -f conftest.err conftest.$ac_objext \
11744282152Spfg      conftest$ac_exeext conftest.$ac_ext
11745282152Spfgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746282152Spfg
11747282152Spfg        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11748282152Spfg        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11749282152Spfg      else
11750282152Spfg	if test "$host_cpu" = ia64; then
11751282152Spfg	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11752282152Spfg	  allow_undefined_flag_FC="-z nodefs"
11753282152Spfg	  archive_expsym_cmds_FC="\$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"
11754282152Spfg	else
11755282152Spfg	 # Determine the default libpath from the value encoded in an
11756282152Spfg	 # empty executable.
11757282152Spfg	 cat >conftest.$ac_ext <<_ACEOF
11758282152Spfg      program main
11759282152Spfg
11760282152Spfg      end
11761169695Skan_ACEOF
11762282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
11763282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764282152Spfg  (eval $ac_link) 2>conftest.er1
11765169695Skan  ac_status=$?
11766169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
11767169695Skan  rm -f conftest.er1
11768169695Skan  cat conftest.err >&5
11769169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770282152Spfg  (exit $ac_status); } &&
11771282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
11772282152Spfg			 || test ! -s conftest.err'
11773282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774282152Spfg  (eval $ac_try) 2>&5
11775282152Spfg  ac_status=$?
11776282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777282152Spfg  (exit $ac_status); }; } &&
11778282152Spfg	 { ac_try='test -s conftest$ac_exeext'
11779282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780282152Spfg  (eval $ac_try) 2>&5
11781282152Spfg  ac_status=$?
11782282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783282152Spfg  (exit $ac_status); }; }; then
11784282152Spfg
11785282152Spfglt_aix_libpath_sed='
11786282152Spfg    /Import File Strings/,/^$/ {
11787282152Spfg	/^0/ {
11788282152Spfg	    s/^0  *\(.*\)$/\1/
11789282152Spfg	    p
11790282152Spfg	}
11791282152Spfg    }'
11792282152Spfgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11793282152Spfg# Check for a 64-bit object if we didn't find anything.
11794282152Spfgif test -z "$aix_libpath"; then
11795282152Spfg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11796282152Spfgfi
11797169695Skanelse
11798282152Spfg  echo "$as_me: failed program was:" >&5
11799282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
11800282152Spfg
11801169695Skanfi
11802282152Spfgrm -f conftest.err conftest.$ac_objext \
11803282152Spfg      conftest$ac_exeext conftest.$ac_ext
11804282152Spfgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11805282152Spfg
11806282152Spfg	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11807282152Spfg	  # Warning - without using the other run time loading flags,
11808282152Spfg	  # -berok will link without error, but may produce a broken library.
11809282152Spfg	  no_undefined_flag_FC=' ${wl}-bernotok'
11810282152Spfg	  allow_undefined_flag_FC=' ${wl}-berok'
11811282152Spfg	  # Exported symbols can be pulled into shared objects from archives
11812282152Spfg	  whole_archive_flag_spec_FC='$convenience'
11813282152Spfg	  archive_cmds_need_lc_FC=yes
11814282152Spfg	  # This is similar to how AIX traditionally builds its shared libraries.
11815282152Spfg	  archive_expsym_cmds_FC="\$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'
11816282152Spfg	fi
11817282152Spfg      fi
11818282152Spfg      ;;
11819282152Spfg
11820282152Spfg    amigaos*)
11821282152Spfg      if test "$host_cpu" = m68k; then
11822282152Spfg        archive_cmds_FC='$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)'
11823282152Spfg        hardcode_libdir_flag_spec_FC='-L$libdir'
11824282152Spfg        hardcode_minus_L_FC=yes
11825282152Spfg      fi
11826282152Spfg      # see comment about different semantics on the GNU ld section
11827282152Spfg      ld_shlibs_FC=no
11828282152Spfg      ;;
11829282152Spfg
11830282152Spfg    bsdi[45]*)
11831282152Spfg      export_dynamic_flag_spec_FC=-rdynamic
11832282152Spfg      ;;
11833282152Spfg
11834282152Spfg    cygwin* | mingw* | pw32*)
11835282152Spfg      # When not using gcc, we currently assume that we are using
11836282152Spfg      # Microsoft Visual C++.
11837282152Spfg      # hardcode_libdir_flag_spec is actually meaningless, as there is
11838282152Spfg      # no search path for DLLs.
11839282152Spfg      hardcode_libdir_flag_spec_FC=' '
11840282152Spfg      allow_undefined_flag_FC=unsupported
11841282152Spfg      # Tell ltmain to make .lib files, not .a files.
11842282152Spfg      libext=lib
11843282152Spfg      # Tell ltmain to make .dll files, not .so files.
11844282152Spfg      shrext_cmds=".dll"
11845282152Spfg      # FIXME: Setting linknames here is a bad hack.
11846282152Spfg      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11847282152Spfg      # The linker will automatically build a .lib file if we build a DLL.
11848282152Spfg      old_archive_from_new_cmds_FC='true'
11849282152Spfg      # FIXME: Should let the user specify the lib program.
11850282152Spfg      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11851282152Spfg      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11852282152Spfg      enable_shared_with_static_runtimes_FC=yes
11853282152Spfg      ;;
11854282152Spfg
11855282152Spfg    darwin* | rhapsody*)
11856282152Spfg      case $host_os in
11857282152Spfg      rhapsody* | darwin1.[012])
11858282152Spfg	allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11859282152Spfg	;;
11860282152Spfg      *) # Darwin 1.3 on
11861282152Spfg	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11862282152Spfg	10.[012])
11863282152Spfg	  allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11864282152Spfg	  ;;
11865282152Spfg	10.*)
11866282152Spfg	  allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11867282152Spfg	  ;;
11868282152Spfg	esac
11869282152Spfg	;;
11870282152Spfg      esac
11871282152Spfg      archive_cmds_need_lc_FC=no
11872282152Spfg      hardcode_direct_FC=no
11873282152Spfg      hardcode_automatic_FC=yes
11874282152Spfg      hardcode_shlibpath_var_FC=unsupported
11875282152Spfg      whole_archive_flag_spec_FC=''
11876282152Spfg      link_all_deplibs_FC=yes
11877282152Spfg      if test "$GCC" = yes ; then
11878282152Spfg	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11879282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
11880169695Skanelse
11881282152Spfg  lt_cv_apple_cc_single_mod=no
11882282152Spfg	if test -z "${LT_MULTI_MODULE}"; then
11883282152Spfg	  # By default we will add the -single_module flag. You can override
11884282152Spfg	  # by either setting the environment variable LT_MULTI_MODULE
11885282152Spfg	  # non-empty at configure time, or by adding -multi-module to the
11886282152Spfg	  # link flags.
11887282152Spfg	  echo "int foo(void){return 1;}" > conftest.c
11888282152Spfg	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11889282152Spfg	      -dynamiclib ${wl}-single_module conftest.c
11890282152Spfg	  if test -f libconftest.dylib; then
11891282152Spfg	      lt_cv_apple_cc_single_mod=yes
11892282152Spfg	      rm libconftest.dylib
11893282152Spfg	  fi
11894282152Spfg	  rm conftest.$ac_ext
11895282152Spfg	fi
11896282152Spfgfi
11897282152Spfg
11898282152Spfg	output_verbose_link_cmd=echo
11899282152Spfg	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11900282152Spfg	  archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11901282152Spfg	  archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11902282152Spfg	else
11903282152Spfg	  archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11904282152Spfg	  archive_expsym_cmds_FC='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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11905282152Spfg	fi
11906282152Spfg	module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11907282152Spfg	module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11908282152Spfg      else
11909282152Spfg	case $cc_basename in
11910282152Spfg	xlc*)
11911282152Spfg	  output_verbose_link_cmd=echo
11912282152Spfg	  archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11913282152Spfg	  module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11914282152Spfg	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11915282152Spfg	  archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11916282152Spfg	  module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11917282152Spfg	  ;;
11918282152Spfg	*)
11919282152Spfg	  ld_shlibs_FC=no
11920282152Spfg	  ;;
11921282152Spfg	esac
11922282152Spfg      fi
11923282152Spfg      ;;
11924282152Spfg
11925282152Spfg    dgux*)
11926282152Spfg      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11927282152Spfg      hardcode_libdir_flag_spec_FC='-L$libdir'
11928282152Spfg      hardcode_shlibpath_var_FC=no
11929282152Spfg      ;;
11930282152Spfg
11931282152Spfg    freebsd1*)
11932282152Spfg      ld_shlibs_FC=no
11933282152Spfg      ;;
11934282152Spfg
11935282152Spfg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11936282152Spfg    # support.  Future versions do this automatically, but an explicit c++rt0.o
11937282152Spfg    # does not break anything, and helps significantly (at the cost of a little
11938282152Spfg    # extra space).
11939282152Spfg    freebsd2.2*)
11940282152Spfg      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11941282152Spfg      hardcode_libdir_flag_spec_FC='-R$libdir'
11942282152Spfg      hardcode_direct_FC=yes
11943282152Spfg      hardcode_shlibpath_var_FC=no
11944282152Spfg      ;;
11945282152Spfg
11946282152Spfg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11947282152Spfg    freebsd2*)
11948282152Spfg      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11949282152Spfg      hardcode_direct_FC=yes
11950282152Spfg      hardcode_minus_L_FC=yes
11951282152Spfg      hardcode_shlibpath_var_FC=no
11952282152Spfg      ;;
11953282152Spfg
11954282152Spfg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11955282152Spfg    freebsd* | dragonfly*)
11956282152Spfg      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11957282152Spfg      hardcode_libdir_flag_spec_FC='-R$libdir'
11958282152Spfg      hardcode_direct_FC=yes
11959282152Spfg      hardcode_shlibpath_var_FC=no
11960282152Spfg      ;;
11961282152Spfg
11962282152Spfg    hpux9*)
11963282152Spfg      if test "$GCC" = yes; then
11964282152Spfg	archive_cmds_FC='$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'
11965282152Spfg      else
11966282152Spfg	archive_cmds_FC='$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'
11967282152Spfg      fi
11968282152Spfg      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11969282152Spfg      hardcode_libdir_separator_FC=:
11970282152Spfg      hardcode_direct_FC=yes
11971282152Spfg
11972282152Spfg      # hardcode_minus_L: Not really in the search PATH,
11973282152Spfg      # but as the default location of the library.
11974282152Spfg      hardcode_minus_L_FC=yes
11975282152Spfg      export_dynamic_flag_spec_FC='${wl}-E'
11976282152Spfg      ;;
11977282152Spfg
11978282152Spfg    hpux10*)
11979282152Spfg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11980282152Spfg	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11981282152Spfg      else
11982282152Spfg	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11983282152Spfg      fi
11984282152Spfg      if test "$with_gnu_ld" = no; then
11985282152Spfg	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11986282152Spfg	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11987282152Spfg	hardcode_libdir_separator_FC=:
11988282152Spfg	hardcode_direct_FC=yes
11989282152Spfg	hardcode_direct_absolute_FC=yes
11990282152Spfg	export_dynamic_flag_spec_FC='${wl}-E'
11991282152Spfg	# hardcode_minus_L: Not really in the search PATH,
11992282152Spfg	# but as the default location of the library.
11993282152Spfg	hardcode_minus_L_FC=yes
11994282152Spfg      fi
11995282152Spfg      ;;
11996282152Spfg
11997282152Spfg    hpux11*)
11998282152Spfg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11999282152Spfg	case $host_cpu in
12000282152Spfg	hppa*64*)
12001282152Spfg	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12002282152Spfg	  ;;
12003282152Spfg	ia64*)
12004282152Spfg	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12005282152Spfg	  ;;
12006282152Spfg	*)
12007282152Spfg	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12008282152Spfg	  ;;
12009282152Spfg	esac
12010282152Spfg      else
12011282152Spfg	case $host_cpu in
12012282152Spfg	hppa*64*)
12013282152Spfg	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12014282152Spfg	  ;;
12015282152Spfg	ia64*)
12016282152Spfg	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12017282152Spfg	  ;;
12018282152Spfg	*)
12019282152Spfg	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12020282152Spfg	  ;;
12021282152Spfg	esac
12022282152Spfg      fi
12023282152Spfg      if test "$with_gnu_ld" = no; then
12024282152Spfg	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12025282152Spfg	hardcode_libdir_separator_FC=:
12026282152Spfg
12027282152Spfg	case $host_cpu in
12028282152Spfg	hppa*64*|ia64*)
12029282152Spfg	  hardcode_direct_FC=no
12030282152Spfg	  hardcode_shlibpath_var_FC=no
12031282152Spfg	  ;;
12032282152Spfg	*)
12033282152Spfg	  hardcode_direct_FC=yes
12034282152Spfg	  hardcode_direct_absolute_FC=yes
12035282152Spfg	  export_dynamic_flag_spec_FC='${wl}-E'
12036282152Spfg
12037282152Spfg	  # hardcode_minus_L: Not really in the search PATH,
12038282152Spfg	  # but as the default location of the library.
12039282152Spfg	  hardcode_minus_L_FC=yes
12040282152Spfg	  ;;
12041282152Spfg	esac
12042282152Spfg      fi
12043282152Spfg      ;;
12044282152Spfg
12045282152Spfg    irix5* | irix6* | nonstopux*)
12046282152Spfg      if test "$GCC" = yes; then
12047282152Spfg	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12048282152Spfg	# Try to use the -exported_symbol ld option, if it does not
12049282152Spfg	# work, assume that -exports_file does not work either and
12050282152Spfg	# implicitly export all symbols.
12051282152Spfg        save_LDFLAGS="$LDFLAGS"
12052282152Spfg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12053282152Spfg        cat >conftest.$ac_ext <<_ACEOF
12054282152Spfgint foo(void) {}
12055282152Spfg_ACEOF
12056282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
12057282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058282152Spfg  (eval $ac_link) 2>conftest.er1
12059282152Spfg  ac_status=$?
12060282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
12061282152Spfg  rm -f conftest.er1
12062282152Spfg  cat conftest.err >&5
12063282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064282152Spfg  (exit $ac_status); } &&
12065282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
12066282152Spfg			 || test ! -s conftest.err'
12067282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068282152Spfg  (eval $ac_try) 2>&5
12069282152Spfg  ac_status=$?
12070282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071282152Spfg  (exit $ac_status); }; } &&
12072282152Spfg	 { ac_try='test -s conftest$ac_exeext'
12073282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074282152Spfg  (eval $ac_try) 2>&5
12075282152Spfg  ac_status=$?
12076282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077282152Spfg  (exit $ac_status); }; }; then
12078282152Spfg  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12079282152Spfg
12080282152Spfgelse
12081169695Skan  echo "$as_me: failed program was:" >&5
12082169695Skansed 's/^/| /' conftest.$ac_ext >&5
12083169695Skan
12084169695Skanfi
12085282152Spfgrm -f conftest.err conftest.$ac_objext \
12086282152Spfg      conftest$ac_exeext conftest.$ac_ext
12087282152Spfg        LDFLAGS="$save_LDFLAGS"
12088282152Spfg      else
12089282152Spfg	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12090282152Spfg	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12091282152Spfg      fi
12092282152Spfg      archive_cmds_need_lc_FC='no'
12093282152Spfg      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12094282152Spfg      hardcode_libdir_separator_FC=:
12095282152Spfg      inherit_rpath_FC=yes
12096282152Spfg      link_all_deplibs_FC=yes
12097282152Spfg      ;;
12098169695Skan
12099282152Spfg    netbsd*)
12100282152Spfg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12101282152Spfg	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12102282152Spfg      else
12103282152Spfg	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12104282152Spfg      fi
12105282152Spfg      hardcode_libdir_flag_spec_FC='-R$libdir'
12106282152Spfg      hardcode_direct_FC=yes
12107282152Spfg      hardcode_shlibpath_var_FC=no
12108282152Spfg      ;;
12109282152Spfg
12110282152Spfg    newsos6)
12111282152Spfg      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12112282152Spfg      hardcode_direct_FC=yes
12113282152Spfg      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12114282152Spfg      hardcode_libdir_separator_FC=:
12115282152Spfg      hardcode_shlibpath_var_FC=no
12116282152Spfg      ;;
12117282152Spfg
12118282152Spfg    *nto* | *qnx*)
12119282152Spfg      ;;
12120282152Spfg
12121282152Spfg    openbsd*)
12122282152Spfg      hardcode_direct_FC=yes
12123282152Spfg      hardcode_shlibpath_var_FC=no
12124282152Spfg      hardcode_direct_absolute_FC=yes
12125282152Spfg      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12126282152Spfg	archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12127282152Spfg	archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12128282152Spfg	hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12129282152Spfg	export_dynamic_flag_spec_FC='${wl}-E'
12130282152Spfg      else
12131282152Spfg        case $host_os in
12132282152Spfg	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12133282152Spfg	  archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12134282152Spfg	  hardcode_libdir_flag_spec_FC='-R$libdir'
12135282152Spfg	  ;;
12136282152Spfg	*)
12137282152Spfg	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12138282152Spfg	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12139282152Spfg	  ;;
12140282152Spfg        esac
12141282152Spfg      fi
12142282152Spfg      ;;
12143282152Spfg
12144282152Spfg    os2*)
12145282152Spfg      hardcode_libdir_flag_spec_FC='-L$libdir'
12146282152Spfg      hardcode_minus_L_FC=yes
12147282152Spfg      allow_undefined_flag_FC=unsupported
12148282152Spfg      archive_cmds_FC='$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'
12149282152Spfg      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12150282152Spfg      ;;
12151282152Spfg
12152282152Spfg    osf3*)
12153282152Spfg      if test "$GCC" = yes; then
12154282152Spfg	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12155282152Spfg	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12156282152Spfg      else
12157282152Spfg	allow_undefined_flag_FC=' -expect_unresolved \*'
12158282152Spfg	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12159282152Spfg      fi
12160282152Spfg      archive_cmds_need_lc_FC='no'
12161282152Spfg      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12162282152Spfg      hardcode_libdir_separator_FC=:
12163282152Spfg      ;;
12164282152Spfg
12165282152Spfg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12166282152Spfg      if test "$GCC" = yes; then
12167282152Spfg	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12168282152Spfg	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12169282152Spfg	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12170282152Spfg      else
12171282152Spfg	allow_undefined_flag_FC=' -expect_unresolved \*'
12172282152Spfg	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12173282152Spfg	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12174282152Spfg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12175282152Spfg
12176282152Spfg	# Both c and cxx compiler support -rpath directly
12177282152Spfg	hardcode_libdir_flag_spec_FC='-rpath $libdir'
12178282152Spfg      fi
12179282152Spfg      archive_cmds_need_lc_FC='no'
12180282152Spfg      hardcode_libdir_separator_FC=:
12181282152Spfg      ;;
12182282152Spfg
12183282152Spfg    solaris*)
12184282152Spfg      no_undefined_flag_FC=' -z defs'
12185282152Spfg      if test "$GCC" = yes; then
12186282152Spfg	wlarc='${wl}'
12187282152Spfg	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188282152Spfg	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12189282152Spfg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12190282152Spfg      else
12191282152Spfg	case `$CC -V 2>&1` in
12192282152Spfg	*"Compilers 5.0"*)
12193282152Spfg	  wlarc=''
12194282152Spfg	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12195282152Spfg	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12196282152Spfg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12197282152Spfg	  ;;
12198282152Spfg	*)
12199282152Spfg	  wlarc='${wl}'
12200282152Spfg	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12201282152Spfg	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12202282152Spfg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12203282152Spfg	  ;;
12204282152Spfg	esac
12205282152Spfg      fi
12206282152Spfg      hardcode_libdir_flag_spec_FC='-R$libdir'
12207282152Spfg      hardcode_shlibpath_var_FC=no
12208282152Spfg      case $host_os in
12209282152Spfg      solaris2.[0-5] | solaris2.[0-5].*) ;;
12210282152Spfg      *)
12211282152Spfg	# The compiler driver will combine and reorder linker options,
12212282152Spfg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12213282152Spfg	# but is careful enough not to reorder.
12214282152Spfg	# Supported since Solaris 2.6 (maybe 2.5.1?)
12215282152Spfg	if test "$GCC" = yes; then
12216282152Spfg	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12217282152Spfg	else
12218282152Spfg	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12219282152Spfg	fi
12220282152Spfg	;;
12221282152Spfg      esac
12222282152Spfg      link_all_deplibs_FC=yes
12223282152Spfg      ;;
12224282152Spfg
12225282152Spfg    sunos4*)
12226282152Spfg      if test "x$host_vendor" = xsequent; then
12227282152Spfg	# Use $CC to link under sequent, because it throws in some extra .o
12228282152Spfg	# files that make .init and .fini sections work.
12229282152Spfg	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12230282152Spfg      else
12231282152Spfg	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12232282152Spfg      fi
12233282152Spfg      hardcode_libdir_flag_spec_FC='-L$libdir'
12234282152Spfg      hardcode_direct_FC=yes
12235282152Spfg      hardcode_minus_L_FC=yes
12236282152Spfg      hardcode_shlibpath_var_FC=no
12237282152Spfg      ;;
12238282152Spfg
12239282152Spfg    sysv4)
12240282152Spfg      case $host_vendor in
12241282152Spfg	sni)
12242282152Spfg	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243282152Spfg	  hardcode_direct_FC=yes # is this really true???
12244282152Spfg	;;
12245282152Spfg	siemens)
12246282152Spfg	  ## LD is ld it makes a PLAMLIB
12247282152Spfg	  ## CC just makes a GrossModule.
12248282152Spfg	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12249282152Spfg	  reload_cmds_FC='$CC -r -o $output$reload_objs'
12250282152Spfg	  hardcode_direct_FC=no
12251282152Spfg        ;;
12252282152Spfg	motorola)
12253282152Spfg	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254282152Spfg	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12255282152Spfg	;;
12256282152Spfg      esac
12257282152Spfg      runpath_var='LD_RUN_PATH'
12258282152Spfg      hardcode_shlibpath_var_FC=no
12259282152Spfg      ;;
12260282152Spfg
12261282152Spfg    sysv4.3*)
12262282152Spfg      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263282152Spfg      hardcode_shlibpath_var_FC=no
12264282152Spfg      export_dynamic_flag_spec_FC='-Bexport'
12265282152Spfg      ;;
12266282152Spfg
12267282152Spfg    sysv4*MP*)
12268282152Spfg      if test -d /usr/nec; then
12269282152Spfg	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270282152Spfg	hardcode_shlibpath_var_FC=no
12271282152Spfg	runpath_var=LD_RUN_PATH
12272282152Spfg	hardcode_runpath_var=yes
12273282152Spfg	ld_shlibs_FC=yes
12274282152Spfg      fi
12275282152Spfg      ;;
12276282152Spfg
12277282152Spfg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12278282152Spfg      no_undefined_flag_FC='${wl}-z,text'
12279282152Spfg      archive_cmds_need_lc_FC=no
12280282152Spfg      hardcode_shlibpath_var_FC=no
12281282152Spfg      runpath_var='LD_RUN_PATH'
12282282152Spfg
12283282152Spfg      if test "$GCC" = yes; then
12284282152Spfg	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285282152Spfg	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286282152Spfg      else
12287282152Spfg	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288282152Spfg	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12289282152Spfg      fi
12290282152Spfg      ;;
12291282152Spfg
12292282152Spfg    sysv5* | sco3.2v5* | sco5v6*)
12293282152Spfg      # Note: We can NOT use -z defs as we might desire, because we do not
12294282152Spfg      # link with -lc, and that would cause any symbols used from libc to
12295282152Spfg      # always be unresolved, which means just about no library would
12296282152Spfg      # ever link correctly.  If we're not using GNU ld we use -z text
12297282152Spfg      # though, which does catch some bad symbols but isn't as heavy-handed
12298282152Spfg      # as -z defs.
12299282152Spfg      no_undefined_flag_FC='${wl}-z,text'
12300282152Spfg      allow_undefined_flag_FC='${wl}-z,nodefs'
12301282152Spfg      archive_cmds_need_lc_FC=no
12302282152Spfg      hardcode_shlibpath_var_FC=no
12303282152Spfg      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12304282152Spfg      hardcode_libdir_separator_FC=':'
12305282152Spfg      link_all_deplibs_FC=yes
12306282152Spfg      export_dynamic_flag_spec_FC='${wl}-Bexport'
12307282152Spfg      runpath_var='LD_RUN_PATH'
12308282152Spfg
12309282152Spfg      if test "$GCC" = yes; then
12310282152Spfg	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311282152Spfg	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312282152Spfg      else
12313282152Spfg	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314282152Spfg	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315282152Spfg      fi
12316282152Spfg      ;;
12317282152Spfg
12318282152Spfg    uts4*)
12319282152Spfg      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320282152Spfg      hardcode_libdir_flag_spec_FC='-L$libdir'
12321282152Spfg      hardcode_shlibpath_var_FC=no
12322282152Spfg      ;;
12323282152Spfg
12324282152Spfg    *)
12325282152Spfg      ld_shlibs_FC=no
12326282152Spfg      ;;
12327282152Spfg    esac
12328282152Spfg
12329282152Spfg    if test x$host_vendor = xsni; then
12330282152Spfg      case $host in
12331282152Spfg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12332282152Spfg	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12333282152Spfg	;;
12334282152Spfg      esac
12335282152Spfg    fi
12336282152Spfg  fi
12337282152Spfg
12338282152Spfgecho "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12339282152Spfgecho "${ECHO_T}$ld_shlibs_FC" >&6
12340282152Spfgtest "$ld_shlibs_FC" = no && can_build_shared=no
12341282152Spfg
12342282152Spfgwith_gnu_ld_FC=$with_gnu_ld
12343282152Spfg
12344282152Spfg
12345282152Spfg
12346282152Spfg
12347282152Spfg
12348282152Spfg
12349282152Spfg#
12350282152Spfg# Do we need to explicitly link libc?
12351282152Spfg#
12352282152Spfgcase "x$archive_cmds_need_lc_FC" in
12353282152Spfgx|xyes)
12354282152Spfg  # Assume -lc should be added
12355282152Spfg  archive_cmds_need_lc_FC=yes
12356282152Spfg
12357282152Spfg  if test "$enable_shared" = yes && test "$GCC" = yes; then
12358282152Spfg    case $archive_cmds_FC in
12359282152Spfg    *'~'*)
12360282152Spfg      # FIXME: we may have to deal with multi-command sequences.
12361282152Spfg      ;;
12362282152Spfg    '$CC '*)
12363282152Spfg      # Test whether the compiler implicitly links with -lc since on some
12364282152Spfg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12365282152Spfg      # to ld, don't add -lc before -lgcc.
12366282152Spfg      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12367282152Spfgecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12368282152Spfg      $RM conftest*
12369282152Spfg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12370282152Spfg
12371282152Spfg      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372282152Spfg  (eval $ac_compile) 2>&5
12373282152Spfg  ac_status=$?
12374282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375282152Spfg  (exit $ac_status); } 2>conftest.err; then
12376282152Spfg        soname=conftest
12377282152Spfg        lib=conftest
12378282152Spfg        libobjs=conftest.$ac_objext
12379282152Spfg        deplibs=
12380282152Spfg        wl=$lt_prog_compiler_wl_FC
12381282152Spfg	pic_flag=$lt_prog_compiler_pic_FC
12382282152Spfg        compiler_flags=-v
12383282152Spfg        linker_flags=-v
12384282152Spfg        verstring=
12385282152Spfg        output_objdir=.
12386282152Spfg        libname=conftest
12387282152Spfg        lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12388282152Spfg        allow_undefined_flag_FC=
12389282152Spfg        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12390282152Spfg  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12391282152Spfg  ac_status=$?
12392282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393282152Spfg  (exit $ac_status); }
12394282152Spfg        then
12395282152Spfg	  archive_cmds_need_lc_FC=no
12396282152Spfg        else
12397282152Spfg	  archive_cmds_need_lc_FC=yes
12398282152Spfg        fi
12399282152Spfg        allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12400282152Spfg      else
12401282152Spfg        cat conftest.err 1>&5
12402282152Spfg      fi
12403282152Spfg      $RM conftest*
12404282152Spfg      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12405282152Spfgecho "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12406282152Spfg      ;;
12407282152Spfg    esac
12408282152Spfg  fi
12409282152Spfg  ;;
12410282152Spfgesac
12411282152Spfg
12412282152Spfg
12413282152Spfg
12414282152Spfg
12415282152Spfg
12416282152Spfg
12417282152Spfg
12418282152Spfg
12419282152Spfg
12420282152Spfg
12421282152Spfg
12422282152Spfg
12423282152Spfg
12424282152Spfg
12425282152Spfg
12426282152Spfg
12427282152Spfg
12428282152Spfg
12429282152Spfg
12430282152Spfg
12431282152Spfg
12432282152Spfg
12433282152Spfg
12434282152Spfg
12435282152Spfg
12436282152Spfg
12437282152Spfg
12438282152Spfg
12439282152Spfg
12440282152Spfg
12441282152Spfg
12442282152Spfg
12443282152Spfg
12444282152Spfg
12445282152Spfg
12446282152Spfg
12447282152Spfg
12448282152Spfg
12449282152Spfg
12450282152Spfg
12451282152Spfg
12452282152Spfg
12453282152Spfg
12454282152Spfg
12455282152Spfg
12456282152Spfg
12457282152Spfg
12458282152Spfg
12459282152Spfg
12460282152Spfg
12461282152Spfg
12462282152Spfg
12463282152Spfg
12464282152Spfg
12465282152Spfg
12466282152Spfg
12467282152Spfg
12468282152Spfg
12469282152Spfg
12470282152Spfg
12471282152Spfg
12472282152Spfg
12473282152Spfg
12474282152Spfg
12475282152Spfg    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12476282152Spfgecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12477282152SpfgwithGCC=$ac_cv_fc_compiler_gnu
12478282152Spfglibrary_names_spec=
12479282152Spfglibname_spec='lib$name'
12480282152Spfgsoname_spec=
12481282152Spfgshrext_cmds=".so"
12482282152Spfgpostinstall_cmds=
12483282152Spfgpostuninstall_cmds=
12484282152Spfgfinish_cmds=
12485282152Spfgfinish_eval=
12486282152Spfgshlibpath_var=
12487282152Spfgshlibpath_overrides_runpath=unknown
12488282152Spfgversion_type=none
12489282152Spfgdynamic_linker="$host_os ld.so"
12490282152Spfgsys_lib_dlsearch_path_spec="/lib /usr/lib"
12491282152Spfgneed_lib_prefix=unknown
12492282152Spfghardcode_into_libs=no
12493282152Spfg
12494282152Spfg# when you set need_version to no, make sure it does not cause -set_version
12495282152Spfg# flags to be left without arguments
12496282152Spfgneed_version=unknown
12497282152Spfg
12498282152Spfgcase $host_os in
12499282152Spfgaix3*)
12500282152Spfg  version_type=linux
12501282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12502282152Spfg  shlibpath_var=LIBPATH
12503282152Spfg
12504282152Spfg  # AIX 3 has no versioning support, so we append a major version to the name.
12505282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12506282152Spfg  ;;
12507282152Spfg
12508282152Spfgaix[4-9]*)
12509282152Spfg  version_type=linux
12510282152Spfg  need_lib_prefix=no
12511282152Spfg  need_version=no
12512282152Spfg  hardcode_into_libs=yes
12513282152Spfg  if test "$host_cpu" = ia64; then
12514282152Spfg    # AIX 5 supports IA64
12515282152Spfg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12516282152Spfg    shlibpath_var=LD_LIBRARY_PATH
12517282152Spfg  else
12518282152Spfg    # With GCC up to 2.95.x, collect2 would create an import file
12519282152Spfg    # for dependence libraries.  The import file would start with
12520282152Spfg    # the line `#! .'.  This would cause the generated library to
12521282152Spfg    # depend on `.', always an invalid library.  This was fixed in
12522282152Spfg    # development snapshots of GCC prior to 3.0.
12523282152Spfg    case $host_os in
12524282152Spfg      aix4 | aix4.[01] | aix4.[01].*)
12525282152Spfg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12526282152Spfg	   echo ' yes '
12527282152Spfg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12528282152Spfg	:
12529282152Spfg      else
12530282152Spfg	can_build_shared=no
12531282152Spfg      fi
12532282152Spfg      ;;
12533282152Spfg    esac
12534282152Spfg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12535282152Spfg    # soname into executable. Probably we can add versioning support to
12536282152Spfg    # collect2, so additional links can be useful in future.
12537282152Spfg    if test "$aix_use_runtimelinking" = yes; then
12538282152Spfg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12539282152Spfg      # instead of lib<name>.a to let people know that these are not
12540282152Spfg      # typical AIX shared libraries.
12541282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542282152Spfg    else
12543282152Spfg      # We preserve .a as extension for shared libraries through AIX4.2
12544282152Spfg      # and later when we are not doing run time linking.
12545282152Spfg      library_names_spec='${libname}${release}.a $libname.a'
12546282152Spfg      soname_spec='${libname}${release}${shared_ext}$major'
12547282152Spfg    fi
12548282152Spfg    shlibpath_var=LIBPATH
12549282152Spfg  fi
12550282152Spfg  ;;
12551282152Spfg
12552282152Spfgamigaos*)
12553282152Spfg  if test "$host_cpu" = m68k; then
12554282152Spfg    library_names_spec='$libname.ixlibrary $libname.a'
12555282152Spfg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12556282152Spfg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12557282152Spfg  else
12558282152Spfg    dynamic_linker=no
12559282152Spfg  fi
12560282152Spfg  ;;
12561282152Spfg
12562282152Spfgbeos*)
12563282152Spfg  library_names_spec='${libname}${shared_ext}'
12564282152Spfg  dynamic_linker="$host_os ld.so"
12565282152Spfg  shlibpath_var=LIBRARY_PATH
12566282152Spfg  ;;
12567282152Spfg
12568282152Spfgbsdi[45]*)
12569282152Spfg  version_type=linux
12570282152Spfg  need_version=no
12571282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12573282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12574282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12575282152Spfg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12576282152Spfg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12577282152Spfg  # the default ld.so.conf also contains /usr/contrib/lib and
12578282152Spfg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12579282152Spfg  # libtool to hard-code these into programs
12580282152Spfg  ;;
12581282152Spfg
12582282152Spfgcygwin* | mingw* | pw32*)
12583282152Spfg  version_type=windows
12584282152Spfg  shrext_cmds=".dll"
12585282152Spfg  need_version=no
12586282152Spfg  need_lib_prefix=no
12587282152Spfg
12588282152Spfg  case $withGCC,$host_os in
12589282152Spfg  yes,cygwin* | yes,mingw* | yes,pw32*)
12590282152Spfg    library_names_spec='$libname.dll.a'
12591282152Spfg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12592282152Spfg    postinstall_cmds='base_file=`basename \${file}`~
12593282152Spfg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12594282152Spfg      dldir=$destdir/`dirname \$dlpath`~
12595282152Spfg      test -d \$dldir || mkdir -p \$dldir~
12596282152Spfg      $install_prog $dir/$dlname \$dldir/$dlname~
12597282152Spfg      chmod a+x \$dldir/$dlname~
12598282152Spfg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12599282152Spfg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12600282152Spfg      fi'
12601282152Spfg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12602282152Spfg      dlpath=$dir/\$dldll~
12603282152Spfg       $RM \$dlpath'
12604282152Spfg    shlibpath_overrides_runpath=yes
12605282152Spfg
12606282152Spfg    case $host_os in
12607282152Spfg    cygwin*)
12608282152Spfg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12609282152Spfg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12610282152Spfg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12611282152Spfg      ;;
12612282152Spfg    mingw*)
12613282152Spfg      # MinGW DLLs use traditional 'lib' prefix
12614282152Spfg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12615282152Spfg      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12616282152Spfg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12617282152Spfg        # It is most probably a Windows format PATH printed by
12618282152Spfg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12619282152Spfg        # path with ; separators, and with drive letters. We can handle the
12620282152Spfg        # drive letters (cygwin fileutils understands them), so leave them,
12621282152Spfg        # especially as we might pass files found there to a mingw objdump,
12622282152Spfg        # which wouldn't understand a cygwinified path. Ahh.
12623282152Spfg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12624282152Spfg      else
12625282152Spfg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12626282152Spfg      fi
12627282152Spfg      ;;
12628282152Spfg    pw32*)
12629282152Spfg      # pw32 DLLs use 'pw' prefix rather than 'lib'
12630282152Spfg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631282152Spfg      ;;
12632282152Spfg    esac
12633282152Spfg    ;;
12634282152Spfg
12635282152Spfg  *)
12636282152Spfg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12637282152Spfg    ;;
12638282152Spfg  esac
12639282152Spfg  dynamic_linker='Win32 ld.exe'
12640282152Spfg  # FIXME: first we should search . and the directory the executable is in
12641282152Spfg  shlibpath_var=PATH
12642282152Spfg  ;;
12643282152Spfg
12644282152Spfgdarwin* | rhapsody*)
12645282152Spfg  dynamic_linker="$host_os dyld"
12646282152Spfg  version_type=darwin
12647282152Spfg  need_lib_prefix=no
12648282152Spfg  need_version=no
12649282152Spfg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12650282152Spfg  soname_spec='${libname}${release}${major}$shared_ext'
12651282152Spfg  shlibpath_overrides_runpath=yes
12652282152Spfg  shlibpath_var=DYLD_LIBRARY_PATH
12653282152Spfg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12654282152Spfg
12655282152Spfg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12656282152Spfg  ;;
12657282152Spfg
12658282152Spfgdgux*)
12659282152Spfg  version_type=linux
12660282152Spfg  need_lib_prefix=no
12661282152Spfg  need_version=no
12662282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12663282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12664282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12665282152Spfg  ;;
12666282152Spfg
12667282152Spfgfreebsd1*)
12668282152Spfg  dynamic_linker=no
12669282152Spfg  ;;
12670282152Spfg
12671282152Spfgfreebsd* | dragonfly*)
12672282152Spfg  # DragonFly does not have aout.  When/if they implement a new
12673282152Spfg  # versioning mechanism, adjust this.
12674282152Spfg  if test -x /usr/bin/objformat; then
12675282152Spfg    objformat=`/usr/bin/objformat`
12676282152Spfg  else
12677282152Spfg    case $host_os in
12678282152Spfg    freebsd[123]*) objformat=aout ;;
12679282152Spfg    *) objformat=elf ;;
12680282152Spfg    esac
12681282152Spfg  fi
12682282152Spfg  version_type=freebsd-$objformat
12683282152Spfg  case $version_type in
12684282152Spfg    freebsd-elf*)
12685282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12686282152Spfg      need_version=no
12687282152Spfg      need_lib_prefix=no
12688282152Spfg      ;;
12689282152Spfg    freebsd-*)
12690282152Spfg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12691282152Spfg      need_version=yes
12692282152Spfg      ;;
12693282152Spfg  esac
12694282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12695282152Spfg  case $host_os in
12696282152Spfg  freebsd2*)
12697282152Spfg    shlibpath_overrides_runpath=yes
12698282152Spfg    ;;
12699282152Spfg  freebsd3.[01]* | freebsdelf3.[01]*)
12700282152Spfg    shlibpath_overrides_runpath=yes
12701282152Spfg    hardcode_into_libs=yes
12702282152Spfg    ;;
12703282152Spfg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12704282152Spfg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12705282152Spfg    shlibpath_overrides_runpath=no
12706282152Spfg    hardcode_into_libs=yes
12707282152Spfg    ;;
12708282152Spfg  *) # from 4.6 on, and DragonFly
12709282152Spfg    shlibpath_overrides_runpath=yes
12710282152Spfg    hardcode_into_libs=yes
12711282152Spfg    ;;
12712282152Spfg  esac
12713282152Spfg  ;;
12714282152Spfg
12715282152Spfggnu*)
12716282152Spfg  version_type=linux
12717282152Spfg  need_lib_prefix=no
12718282152Spfg  need_version=no
12719282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12720282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12721282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12722282152Spfg  hardcode_into_libs=yes
12723282152Spfg  ;;
12724282152Spfg
12725282152Spfghpux9* | hpux10* | hpux11*)
12726282152Spfg  # Give a soname corresponding to the major version so that dld.sl refuses to
12727282152Spfg  # link against other versions.
12728282152Spfg  version_type=sunos
12729282152Spfg  need_lib_prefix=no
12730282152Spfg  need_version=no
12731282152Spfg  case $host_cpu in
12732282152Spfg  ia64*)
12733282152Spfg    shrext_cmds='.so'
12734282152Spfg    hardcode_into_libs=yes
12735282152Spfg    dynamic_linker="$host_os dld.so"
12736282152Spfg    shlibpath_var=LD_LIBRARY_PATH
12737282152Spfg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12738282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
12740282152Spfg    if test "X$HPUX_IA64_MODE" = X32; then
12741282152Spfg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12742282152Spfg    else
12743282152Spfg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12744282152Spfg    fi
12745282152Spfg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12746282152Spfg    ;;
12747282152Spfg  hppa*64*)
12748282152Spfg    shrext_cmds='.sl'
12749282152Spfg    hardcode_into_libs=yes
12750282152Spfg    dynamic_linker="$host_os dld.sl"
12751282152Spfg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12752282152Spfg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12753282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
12755282152Spfg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12756282152Spfg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12757282152Spfg    ;;
12758282152Spfg  *)
12759282152Spfg    shrext_cmds='.sl'
12760282152Spfg    dynamic_linker="$host_os dld.sl"
12761282152Spfg    shlibpath_var=SHLIB_PATH
12762282152Spfg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12763282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
12765282152Spfg    ;;
12766282152Spfg  esac
12767282152Spfg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12768282152Spfg  postinstall_cmds='chmod 555 $lib'
12769282152Spfg  ;;
12770282152Spfg
12771282152Spfginterix[3-9]*)
12772282152Spfg  version_type=linux
12773282152Spfg  need_lib_prefix=no
12774282152Spfg  need_version=no
12775282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12776282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12777282152Spfg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12778282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12779282152Spfg  shlibpath_overrides_runpath=no
12780282152Spfg  hardcode_into_libs=yes
12781282152Spfg  ;;
12782282152Spfg
12783282152Spfgirix5* | irix6* | nonstopux*)
12784282152Spfg  case $host_os in
12785282152Spfg    nonstopux*) version_type=nonstopux ;;
12786282152Spfg    *)
12787282152Spfg	if test "$lt_cv_prog_gnu_ld" = yes; then
12788282152Spfg		version_type=linux
12789282152Spfg	else
12790282152Spfg		version_type=irix
12791282152Spfg	fi ;;
12792282152Spfg  esac
12793282152Spfg  need_lib_prefix=no
12794282152Spfg  need_version=no
12795282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12796282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12797282152Spfg  case $host_os in
12798282152Spfg  irix5* | nonstopux*)
12799282152Spfg    libsuff= shlibsuff=
12800282152Spfg    ;;
12801282152Spfg  *)
12802282152Spfg    case $LD in # libtool.m4 will add one of these switches to LD
12803282152Spfg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12804282152Spfg      libsuff= shlibsuff= libmagic=32-bit;;
12805282152Spfg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12806282152Spfg      libsuff=32 shlibsuff=N32 libmagic=N32;;
12807282152Spfg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12808282152Spfg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12809282152Spfg    *) libsuff= shlibsuff= libmagic=never-match;;
12810282152Spfg    esac
12811282152Spfg    ;;
12812282152Spfg  esac
12813282152Spfg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12814282152Spfg  shlibpath_overrides_runpath=no
12815282152Spfg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12816282152Spfg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12817282152Spfg  hardcode_into_libs=yes
12818282152Spfg  ;;
12819282152Spfg
12820282152Spfg# No shared lib support for Linux oldld, aout, or coff.
12821282152Spfglinux*oldld* | linux*aout* | linux*coff*)
12822282152Spfg  dynamic_linker=no
12823282152Spfg  ;;
12824282152Spfg
12825282152Spfg# This must be Linux ELF.
12826282152Spfglinux* | k*bsd*-gnu)
12827282152Spfg  version_type=linux
12828282152Spfg  need_lib_prefix=no
12829282152Spfg  need_version=no
12830282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12832282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12833282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12834282152Spfg  shlibpath_overrides_runpath=no
12835282152Spfg  # Some binutils ld are patched to set DT_RUNPATH
12836282152Spfg  save_LDFLAGS=$LDFLAGS
12837282152Spfg  save_libdir=$libdir
12838282152Spfg  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12839282152Spfg       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12840169695Skan  cat >conftest.$ac_ext <<_ACEOF
12841282152Spfg      program main
12842282152Spfg
12843282152Spfg      end
12844169695Skan_ACEOF
12845282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
12846282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847282152Spfg  (eval $ac_link) 2>conftest.er1
12848169695Skan  ac_status=$?
12849169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
12850169695Skan  rm -f conftest.er1
12851169695Skan  cat conftest.err >&5
12852169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853282152Spfg  (exit $ac_status); } &&
12854282152Spfg	 { ac_try='test -z "$ac_fc_werror_flag"
12855282152Spfg			 || test ! -s conftest.err'
12856282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857282152Spfg  (eval $ac_try) 2>&5
12858282152Spfg  ac_status=$?
12859282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860282152Spfg  (exit $ac_status); }; } &&
12861282152Spfg	 { ac_try='test -s conftest$ac_exeext'
12862282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863282152Spfg  (eval $ac_try) 2>&5
12864282152Spfg  ac_status=$?
12865282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866282152Spfg  (exit $ac_status); }; }; then
12867282152Spfg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12868282152Spfg  shlibpath_overrides_runpath=yes
12869169695Skanfi
12870282152Spfg
12871169695Skanelse
12872169695Skan  echo "$as_me: failed program was:" >&5
12873169695Skansed 's/^/| /' conftest.$ac_ext >&5
12874169695Skan
12875169695Skanfi
12876282152Spfgrm -f conftest.err conftest.$ac_objext \
12877282152Spfg      conftest$ac_exeext conftest.$ac_ext
12878282152Spfg  LDFLAGS=$save_LDFLAGS
12879282152Spfg  libdir=$save_libdir
12880169695Skan
12881282152Spfg  # This implies no fast_install, which is unacceptable.
12882282152Spfg  # Some rework will be needed to allow for fast_install
12883282152Spfg  # before this can be enabled.
12884282152Spfg  hardcode_into_libs=yes
12885282152Spfg
12886282152Spfg  # Append ld.so.conf contents to the search path
12887282152Spfg  if test -f /etc/ld.so.conf; then
12888282152Spfg    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12889282152Spfg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12890282152Spfg  fi
12891282152Spfg
12892282152Spfg  # We used to test for /lib/ld.so.1 and disable shared libraries on
12893282152Spfg  # powerpc, because MkLinux only supported shared libraries with the
12894282152Spfg  # GNU dynamic linker.  Since this was broken with cross compilers,
12895282152Spfg  # most powerpc-linux boxes support dynamic linking these days and
12896282152Spfg  # people can always --disable-shared, the test was removed, and we
12897282152Spfg  # assume the GNU/Linux dynamic linker is in use.
12898282152Spfg  dynamic_linker='GNU/Linux ld.so'
12899282152Spfg  ;;
12900282152Spfg
12901282152Spfgnetbsd*)
12902282152Spfg  version_type=sunos
12903282152Spfg  need_lib_prefix=no
12904282152Spfg  need_version=no
12905282152Spfg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12906282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12907282152Spfg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12908282152Spfg    dynamic_linker='NetBSD (a.out) ld.so'
12909282152Spfg  else
12910282152Spfg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12911282152Spfg    soname_spec='${libname}${release}${shared_ext}$major'
12912282152Spfg    dynamic_linker='NetBSD ld.elf_so'
12913282152Spfg  fi
12914282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12915282152Spfg  shlibpath_overrides_runpath=yes
12916282152Spfg  hardcode_into_libs=yes
12917282152Spfg  ;;
12918282152Spfg
12919282152Spfgnewsos6)
12920282152Spfg  version_type=linux
12921282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12923282152Spfg  shlibpath_overrides_runpath=yes
12924282152Spfg  ;;
12925282152Spfg
12926282152Spfg*nto* | *qnx*)
12927282152Spfg  version_type=qnx
12928282152Spfg  need_lib_prefix=no
12929282152Spfg  need_version=no
12930282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12932282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12933282152Spfg  shlibpath_overrides_runpath=no
12934282152Spfg  hardcode_into_libs=yes
12935282152Spfg  dynamic_linker='ldqnx.so'
12936282152Spfg  ;;
12937282152Spfg
12938282152Spfgopenbsd*)
12939282152Spfg  version_type=sunos
12940282152Spfg  sys_lib_dlsearch_path_spec="/usr/lib"
12941282152Spfg  need_lib_prefix=no
12942282152Spfg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12943282152Spfg  case $host_os in
12944282152Spfg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12945282152Spfg    *)				need_version=no  ;;
12946282152Spfg  esac
12947282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12948282152Spfg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12949282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12950282152Spfg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951282152Spfg    case $host_os in
12952282152Spfg      openbsd2.[89] | openbsd2.[89].*)
12953282152Spfg	shlibpath_overrides_runpath=no
12954282152Spfg	;;
12955282152Spfg      *)
12956282152Spfg	shlibpath_overrides_runpath=yes
12957282152Spfg	;;
12958282152Spfg      esac
12959282152Spfg  else
12960282152Spfg    shlibpath_overrides_runpath=yes
12961282152Spfg  fi
12962282152Spfg  ;;
12963282152Spfg
12964282152Spfgos2*)
12965282152Spfg  libname_spec='$name'
12966282152Spfg  shrext_cmds=".dll"
12967282152Spfg  need_lib_prefix=no
12968282152Spfg  library_names_spec='$libname${shared_ext} $libname.a'
12969282152Spfg  dynamic_linker='OS/2 ld.exe'
12970282152Spfg  shlibpath_var=LIBPATH
12971282152Spfg  ;;
12972282152Spfg
12973282152Spfgosf3* | osf4* | osf5*)
12974282152Spfg  version_type=osf
12975282152Spfg  need_lib_prefix=no
12976282152Spfg  need_version=no
12977282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12978282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12980282152Spfg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12981282152Spfg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12982282152Spfg  ;;
12983282152Spfg
12984282152Spfgrdos*)
12985282152Spfg  dynamic_linker=no
12986282152Spfg  ;;
12987282152Spfg
12988282152Spfgsolaris*)
12989282152Spfg  version_type=linux
12990282152Spfg  need_lib_prefix=no
12991282152Spfg  need_version=no
12992282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
12994282152Spfg  shlibpath_var=LD_LIBRARY_PATH
12995282152Spfg  shlibpath_overrides_runpath=yes
12996282152Spfg  hardcode_into_libs=yes
12997282152Spfg  # ldd complains unless libraries are executable
12998282152Spfg  postinstall_cmds='chmod +x $lib'
12999282152Spfg  ;;
13000282152Spfg
13001282152Spfgsunos4*)
13002282152Spfg  version_type=sunos
13003282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13004282152Spfg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13005282152Spfg  shlibpath_var=LD_LIBRARY_PATH
13006282152Spfg  shlibpath_overrides_runpath=yes
13007282152Spfg  if test "$with_gnu_ld" = yes; then
13008282152Spfg    need_lib_prefix=no
13009282152Spfg  fi
13010282152Spfg  need_version=yes
13011282152Spfg  ;;
13012282152Spfg
13013282152Spfgsysv4 | sysv4.3*)
13014282152Spfg  version_type=linux
13015282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
13017282152Spfg  shlibpath_var=LD_LIBRARY_PATH
13018282152Spfg  case $host_vendor in
13019282152Spfg    sni)
13020282152Spfg      shlibpath_overrides_runpath=no
13021282152Spfg      need_lib_prefix=no
13022282152Spfg      runpath_var=LD_RUN_PATH
13023282152Spfg      ;;
13024282152Spfg    siemens)
13025282152Spfg      need_lib_prefix=no
13026282152Spfg      ;;
13027282152Spfg    motorola)
13028282152Spfg      need_lib_prefix=no
13029282152Spfg      need_version=no
13030282152Spfg      shlibpath_overrides_runpath=no
13031282152Spfg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13032282152Spfg      ;;
13033282152Spfg  esac
13034282152Spfg  ;;
13035282152Spfg
13036282152Spfgsysv4*MP*)
13037282152Spfg  if test -d /usr/nec ;then
13038282152Spfg    version_type=linux
13039282152Spfg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13040282152Spfg    soname_spec='$libname${shared_ext}.$major'
13041282152Spfg    shlibpath_var=LD_LIBRARY_PATH
13042282152Spfg  fi
13043282152Spfg  ;;
13044282152Spfg
13045282152Spfgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13046282152Spfg  version_type=freebsd-elf
13047282152Spfg  need_lib_prefix=no
13048282152Spfg  need_version=no
13049282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13050282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
13051282152Spfg  shlibpath_var=LD_LIBRARY_PATH
13052282152Spfg  shlibpath_overrides_runpath=yes
13053282152Spfg  hardcode_into_libs=yes
13054282152Spfg  if test "$with_gnu_ld" = yes; then
13055282152Spfg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13056282152Spfg  else
13057282152Spfg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13058282152Spfg    case $host_os in
13059282152Spfg      sco3.2v5*)
13060282152Spfg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13061282152Spfg	;;
13062282152Spfg    esac
13063282152Spfg  fi
13064282152Spfg  sys_lib_dlsearch_path_spec='/usr/lib'
13065282152Spfg  ;;
13066282152Spfg
13067282152Spfgtpf*)
13068282152Spfg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13069282152Spfg  version_type=linux
13070282152Spfg  need_lib_prefix=no
13071282152Spfg  need_version=no
13072282152Spfg  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073282152Spfg  shlibpath_var=LD_LIBRARY_PATH
13074282152Spfg  shlibpath_overrides_runpath=no
13075282152Spfg  hardcode_into_libs=yes
13076282152Spfg  ;;
13077282152Spfg
13078282152Spfguts4*)
13079282152Spfg  version_type=linux
13080282152Spfg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081282152Spfg  soname_spec='${libname}${release}${shared_ext}$major'
13082282152Spfg  shlibpath_var=LD_LIBRARY_PATH
13083282152Spfg  ;;
13084282152Spfg
13085282152Spfg*)
13086282152Spfg  dynamic_linker=no
13087282152Spfg  ;;
13088282152Spfgesac
13089282152Spfgecho "$as_me:$LINENO: result: $dynamic_linker" >&5
13090282152Spfgecho "${ECHO_T}$dynamic_linker" >&6
13091282152Spfgtest "$dynamic_linker" = no && can_build_shared=no
13092282152Spfg
13093282152Spfgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13094282152Spfgif test "$GCC" = yes; then
13095282152Spfg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13096282152Spfgfi
13097282152Spfg
13098282152Spfg
13099282152Spfg
13100282152Spfg
13101282152Spfg
13102282152Spfg
13103282152Spfg
13104282152Spfg
13105282152Spfg
13106282152Spfg
13107282152Spfg
13108282152Spfg
13109282152Spfg
13110282152Spfg
13111282152Spfg
13112282152Spfg
13113282152Spfg
13114282152Spfg
13115282152Spfg
13116282152Spfg
13117282152Spfg
13118282152Spfg
13119282152Spfg
13120282152Spfg
13121282152Spfg
13122282152Spfg
13123282152Spfg
13124282152Spfg
13125282152Spfg
13126282152Spfg
13127282152Spfg
13128282152Spfg
13129282152Spfg
13130282152Spfg
13131282152Spfg
13132282152Spfg
13133282152Spfg    echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13134282152Spfgecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13135282152Spfghardcode_action_FC=
13136282152Spfgif test -n "$hardcode_libdir_flag_spec_FC" ||
13137282152Spfg   test -n "$runpath_var_FC" ||
13138282152Spfg   test "X$hardcode_automatic_FC" = "Xyes" ; then
13139282152Spfg
13140282152Spfg  # We can hardcode non-existent directories.
13141282152Spfg  if test "$hardcode_direct_FC" != no &&
13142282152Spfg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13143282152Spfg     # have to relink, otherwise we might link with an installed library
13144282152Spfg     # when we should be linking with a yet-to-be-installed one
13145282152Spfg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13146282152Spfg     test "$hardcode_minus_L_FC" != no; then
13147282152Spfg    # Linking always hardcodes the temporary library directory.
13148282152Spfg    hardcode_action_FC=relink
13149282152Spfg  else
13150282152Spfg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13151282152Spfg    hardcode_action_FC=immediate
13152282152Spfg  fi
13153169695Skanelse
13154282152Spfg  # We cannot hardcode anything, or else we can only hardcode existing
13155282152Spfg  # directories.
13156282152Spfg  hardcode_action_FC=unsupported
13157169695Skanfi
13158282152Spfgecho "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13159282152Spfgecho "${ECHO_T}$hardcode_action_FC" >&6
13160169695Skan
13161282152Spfgif test "$hardcode_action_FC" = relink ||
13162282152Spfg   test "$inherit_rpath_FC" = yes; then
13163282152Spfg  # Fast installation is not supported
13164282152Spfg  enable_fast_install=no
13165282152Spfgelif test "$shlibpath_overrides_runpath" = yes ||
13166282152Spfg     test "$enable_shared" = no; then
13167282152Spfg  # Fast installation is not necessary
13168282152Spfg  enable_fast_install=needless
13169282152Spfgfi
13170282152Spfg
13171282152Spfg
13172282152Spfg
13173282152Spfg
13174282152Spfg
13175282152Spfg
13176282152Spfg
13177282152Spfg  fi # test -n "$compiler"
13178282152Spfg
13179282152Spfg  CC="$lt_save_CC"
13180282152Spfgfi # test "$_lt_disable_FC" != yes
13181282152Spfg
13182169695Skanac_ext=c
13183169695Skanac_cpp='$CPP $CPPFLAGS'
13184169695Skanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185169695Skanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186169695Skanac_compiler_gnu=$ac_cv_c_compiler_gnu
13187169695Skan
13188169695Skan
13189282152SpfgFCFLAGS="$FCFLAGS -Wall"
13190169695Skan
13191282152Spfg# For libtool versioning info, format is CURRENT:REVISION:AGE
13192282152Spfglibtool_VERSION=1:0:0
13193169695Skan
13194282152Spfg
13195282152Spfg# Check header files.
13196169695Skanecho "$as_me:$LINENO: checking for ANSI C header files" >&5
13197169695Skanecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13198169695Skanif test "${ac_cv_header_stdc+set}" = set; then
13199169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13200169695Skanelse
13201169695Skan  cat >conftest.$ac_ext <<_ACEOF
13202169695Skan/* confdefs.h.  */
13203169695Skan_ACEOF
13204169695Skancat confdefs.h >>conftest.$ac_ext
13205169695Skancat >>conftest.$ac_ext <<_ACEOF
13206169695Skan/* end confdefs.h.  */
13207169695Skan#include <stdlib.h>
13208169695Skan#include <stdarg.h>
13209169695Skan#include <string.h>
13210169695Skan#include <float.h>
13211169695Skan
13212169695Skanint
13213169695Skanmain ()
13214169695Skan{
13215169695Skan
13216169695Skan  ;
13217169695Skan  return 0;
13218169695Skan}
13219169695Skan_ACEOF
13220169695Skanrm -f conftest.$ac_objext
13221169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222169695Skan  (eval $ac_compile) 2>conftest.er1
13223169695Skan  ac_status=$?
13224169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13225169695Skan  rm -f conftest.er1
13226169695Skan  cat conftest.err >&5
13227169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228169695Skan  (exit $ac_status); } &&
13229169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13230169695Skan			 || test ! -s conftest.err'
13231169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232169695Skan  (eval $ac_try) 2>&5
13233169695Skan  ac_status=$?
13234169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235169695Skan  (exit $ac_status); }; } &&
13236169695Skan	 { ac_try='test -s conftest.$ac_objext'
13237169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238169695Skan  (eval $ac_try) 2>&5
13239169695Skan  ac_status=$?
13240169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241169695Skan  (exit $ac_status); }; }; then
13242169695Skan  ac_cv_header_stdc=yes
13243169695Skanelse
13244169695Skan  echo "$as_me: failed program was:" >&5
13245169695Skansed 's/^/| /' conftest.$ac_ext >&5
13246169695Skan
13247169695Skanac_cv_header_stdc=no
13248169695Skanfi
13249169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250169695Skan
13251169695Skanif test $ac_cv_header_stdc = yes; then
13252169695Skan  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13253169695Skan  cat >conftest.$ac_ext <<_ACEOF
13254169695Skan/* confdefs.h.  */
13255169695Skan_ACEOF
13256169695Skancat confdefs.h >>conftest.$ac_ext
13257169695Skancat >>conftest.$ac_ext <<_ACEOF
13258169695Skan/* end confdefs.h.  */
13259169695Skan#include <string.h>
13260169695Skan
13261169695Skan_ACEOF
13262169695Skanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263169695Skan  $EGREP "memchr" >/dev/null 2>&1; then
13264169695Skan  :
13265169695Skanelse
13266169695Skan  ac_cv_header_stdc=no
13267169695Skanfi
13268169695Skanrm -f conftest*
13269169695Skan
13270169695Skanfi
13271169695Skan
13272169695Skanif test $ac_cv_header_stdc = yes; then
13273169695Skan  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13274169695Skan  cat >conftest.$ac_ext <<_ACEOF
13275169695Skan/* confdefs.h.  */
13276169695Skan_ACEOF
13277169695Skancat confdefs.h >>conftest.$ac_ext
13278169695Skancat >>conftest.$ac_ext <<_ACEOF
13279169695Skan/* end confdefs.h.  */
13280169695Skan#include <stdlib.h>
13281169695Skan
13282169695Skan_ACEOF
13283169695Skanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284169695Skan  $EGREP "free" >/dev/null 2>&1; then
13285169695Skan  :
13286169695Skanelse
13287169695Skan  ac_cv_header_stdc=no
13288169695Skanfi
13289169695Skanrm -f conftest*
13290169695Skan
13291169695Skanfi
13292169695Skan
13293169695Skanif test $ac_cv_header_stdc = yes; then
13294169695Skan  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13295169695Skan  if test "$cross_compiling" = yes; then
13296169695Skan  :
13297169695Skanelse
13298169695Skan  cat >conftest.$ac_ext <<_ACEOF
13299169695Skan/* confdefs.h.  */
13300169695Skan_ACEOF
13301169695Skancat confdefs.h >>conftest.$ac_ext
13302169695Skancat >>conftest.$ac_ext <<_ACEOF
13303169695Skan/* end confdefs.h.  */
13304169695Skan#include <ctype.h>
13305169695Skan#if ((' ' & 0x0FF) == 0x020)
13306169695Skan# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13307169695Skan# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13308169695Skan#else
13309169695Skan# define ISLOWER(c) \
13310169695Skan		   (('a' <= (c) && (c) <= 'i') \
13311169695Skan		     || ('j' <= (c) && (c) <= 'r') \
13312169695Skan		     || ('s' <= (c) && (c) <= 'z'))
13313169695Skan# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13314169695Skan#endif
13315169695Skan
13316169695Skan#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13317169695Skanint
13318169695Skanmain ()
13319169695Skan{
13320169695Skan  int i;
13321169695Skan  for (i = 0; i < 256; i++)
13322169695Skan    if (XOR (islower (i), ISLOWER (i))
13323169695Skan	|| toupper (i) != TOUPPER (i))
13324169695Skan      exit(2);
13325169695Skan  exit (0);
13326169695Skan}
13327169695Skan_ACEOF
13328169695Skanrm -f conftest$ac_exeext
13329169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330169695Skan  (eval $ac_link) 2>&5
13331169695Skan  ac_status=$?
13332169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335169695Skan  (eval $ac_try) 2>&5
13336169695Skan  ac_status=$?
13337169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338169695Skan  (exit $ac_status); }; }; then
13339169695Skan  :
13340169695Skanelse
13341169695Skan  echo "$as_me: program exited with status $ac_status" >&5
13342169695Skanecho "$as_me: failed program was:" >&5
13343169695Skansed 's/^/| /' conftest.$ac_ext >&5
13344169695Skan
13345169695Skan( exit $ac_status )
13346169695Skanac_cv_header_stdc=no
13347169695Skanfi
13348169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13349169695Skanfi
13350169695Skanfi
13351169695Skanfi
13352169695Skanecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13353169695Skanecho "${ECHO_T}$ac_cv_header_stdc" >&6
13354169695Skanif test $ac_cv_header_stdc = yes; then
13355169695Skan
13356169695Skancat >>confdefs.h <<\_ACEOF
13357169695Skan#define STDC_HEADERS 1
13358169695Skan_ACEOF
13359169695Skan
13360169695Skanfi
13361169695Skan
13362169695Skanecho "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13363169695Skanecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13364169695Skanif test "${ac_cv_header_time+set}" = set; then
13365169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13366169695Skanelse
13367169695Skan  cat >conftest.$ac_ext <<_ACEOF
13368169695Skan/* confdefs.h.  */
13369169695Skan_ACEOF
13370169695Skancat confdefs.h >>conftest.$ac_ext
13371169695Skancat >>conftest.$ac_ext <<_ACEOF
13372169695Skan/* end confdefs.h.  */
13373169695Skan#include <sys/types.h>
13374169695Skan#include <sys/time.h>
13375169695Skan#include <time.h>
13376169695Skan
13377169695Skanint
13378169695Skanmain ()
13379169695Skan{
13380169695Skanif ((struct tm *) 0)
13381169695Skanreturn 0;
13382169695Skan  ;
13383169695Skan  return 0;
13384169695Skan}
13385169695Skan_ACEOF
13386169695Skanrm -f conftest.$ac_objext
13387169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388169695Skan  (eval $ac_compile) 2>conftest.er1
13389169695Skan  ac_status=$?
13390169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13391169695Skan  rm -f conftest.er1
13392169695Skan  cat conftest.err >&5
13393169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394169695Skan  (exit $ac_status); } &&
13395169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13396169695Skan			 || test ! -s conftest.err'
13397169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398169695Skan  (eval $ac_try) 2>&5
13399169695Skan  ac_status=$?
13400169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401169695Skan  (exit $ac_status); }; } &&
13402169695Skan	 { ac_try='test -s conftest.$ac_objext'
13403169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404169695Skan  (eval $ac_try) 2>&5
13405169695Skan  ac_status=$?
13406169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407169695Skan  (exit $ac_status); }; }; then
13408169695Skan  ac_cv_header_time=yes
13409169695Skanelse
13410169695Skan  echo "$as_me: failed program was:" >&5
13411169695Skansed 's/^/| /' conftest.$ac_ext >&5
13412169695Skan
13413169695Skanac_cv_header_time=no
13414169695Skanfi
13415169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416169695Skanfi
13417169695Skanecho "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13418169695Skanecho "${ECHO_T}$ac_cv_header_time" >&6
13419169695Skanif test $ac_cv_header_time = yes; then
13420169695Skan
13421169695Skancat >>confdefs.h <<\_ACEOF
13422169695Skan#define TIME_WITH_SYS_TIME 1
13423169695Skan_ACEOF
13424169695Skan
13425169695Skanfi
13426169695Skan
13427169695Skan
13428169695Skan
13429169695Skan
13430169695Skan
13431282201Spfgfor ac_header in unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
13432169695Skando
13433169695Skanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434169695Skanif eval "test \"\${$as_ac_Header+set}\" = set"; then
13435169695Skan  echo "$as_me:$LINENO: checking for $ac_header" >&5
13436169695Skanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437169695Skanif eval "test \"\${$as_ac_Header+set}\" = set"; then
13438169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13439169695Skanfi
13440169695Skanecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441169695Skanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13442169695Skanelse
13443169695Skan  # Is the header compilable?
13444169695Skanecho "$as_me:$LINENO: checking $ac_header usability" >&5
13445169695Skanecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13446169695Skancat >conftest.$ac_ext <<_ACEOF
13447169695Skan/* confdefs.h.  */
13448169695Skan_ACEOF
13449169695Skancat confdefs.h >>conftest.$ac_ext
13450169695Skancat >>conftest.$ac_ext <<_ACEOF
13451169695Skan/* end confdefs.h.  */
13452169695Skan$ac_includes_default
13453169695Skan#include <$ac_header>
13454169695Skan_ACEOF
13455169695Skanrm -f conftest.$ac_objext
13456169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457169695Skan  (eval $ac_compile) 2>conftest.er1
13458169695Skan  ac_status=$?
13459169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13460169695Skan  rm -f conftest.er1
13461169695Skan  cat conftest.err >&5
13462169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463169695Skan  (exit $ac_status); } &&
13464169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13465169695Skan			 || test ! -s conftest.err'
13466169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467169695Skan  (eval $ac_try) 2>&5
13468169695Skan  ac_status=$?
13469169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470169695Skan  (exit $ac_status); }; } &&
13471169695Skan	 { ac_try='test -s conftest.$ac_objext'
13472169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473169695Skan  (eval $ac_try) 2>&5
13474169695Skan  ac_status=$?
13475169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476169695Skan  (exit $ac_status); }; }; then
13477169695Skan  ac_header_compiler=yes
13478169695Skanelse
13479169695Skan  echo "$as_me: failed program was:" >&5
13480169695Skansed 's/^/| /' conftest.$ac_ext >&5
13481169695Skan
13482169695Skanac_header_compiler=no
13483169695Skanfi
13484169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13485169695Skanecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486169695Skanecho "${ECHO_T}$ac_header_compiler" >&6
13487169695Skan
13488169695Skan# Is the header present?
13489169695Skanecho "$as_me:$LINENO: checking $ac_header presence" >&5
13490169695Skanecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13491169695Skancat >conftest.$ac_ext <<_ACEOF
13492169695Skan/* confdefs.h.  */
13493169695Skan_ACEOF
13494169695Skancat confdefs.h >>conftest.$ac_ext
13495169695Skancat >>conftest.$ac_ext <<_ACEOF
13496169695Skan/* end confdefs.h.  */
13497169695Skan#include <$ac_header>
13498169695Skan_ACEOF
13499169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13500169695Skan  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13501169695Skan  ac_status=$?
13502169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13503169695Skan  rm -f conftest.er1
13504169695Skan  cat conftest.err >&5
13505169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506169695Skan  (exit $ac_status); } >/dev/null; then
13507169695Skan  if test -s conftest.err; then
13508169695Skan    ac_cpp_err=$ac_c_preproc_warn_flag
13509169695Skan    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13510169695Skan  else
13511169695Skan    ac_cpp_err=
13512169695Skan  fi
13513169695Skanelse
13514169695Skan  ac_cpp_err=yes
13515169695Skanfi
13516169695Skanif test -z "$ac_cpp_err"; then
13517169695Skan  ac_header_preproc=yes
13518169695Skanelse
13519169695Skan  echo "$as_me: failed program was:" >&5
13520169695Skansed 's/^/| /' conftest.$ac_ext >&5
13521169695Skan
13522169695Skan  ac_header_preproc=no
13523169695Skanfi
13524169695Skanrm -f conftest.err conftest.$ac_ext
13525169695Skanecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526169695Skanecho "${ECHO_T}$ac_header_preproc" >&6
13527169695Skan
13528169695Skan# So?  What about this header?
13529169695Skancase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530169695Skan  yes:no: )
13531169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532169695Skanecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534169695Skanecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535169695Skan    ac_header_preproc=yes
13536169695Skan    ;;
13537169695Skan  no:yes:* )
13538169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539169695Skanecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13541169695Skanecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13542169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543169695Skanecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13545169695Skanecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13546169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547169695Skanecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548169695Skan    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549169695Skanecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13550169695Skan    (
13551169695Skan      cat <<\_ASBOX
13552169695Skan## ----------------------------------------------------- ##
13553169695Skan## Report this to the GNU OpenMP Runtime Library lists.  ##
13554169695Skan## ----------------------------------------------------- ##
13555169695Skan_ASBOX
13556169695Skan    ) |
13557169695Skan      sed "s/^/$as_me: WARNING:     /" >&2
13558169695Skan    ;;
13559169695Skanesac
13560169695Skanecho "$as_me:$LINENO: checking for $ac_header" >&5
13561169695Skanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13562169695Skanif eval "test \"\${$as_ac_Header+set}\" = set"; then
13563169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13564169695Skanelse
13565169695Skan  eval "$as_ac_Header=\$ac_header_preproc"
13566169695Skanfi
13567169695Skanecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568169695Skanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13569169695Skan
13570169695Skanfi
13571169695Skanif test `eval echo '${'$as_ac_Header'}'` = yes; then
13572169695Skan  cat >>confdefs.h <<_ACEOF
13573169695Skan#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574169695Skan_ACEOF
13575169695Skan
13576169695Skanfi
13577169695Skan
13578169695Skandone
13579169695Skan
13580169695Skan
13581169695Skan
13582169695Skan
13583169695Skaninttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13584169695Skan
13585169695Skanacx_cv_header_stdint=stddef.h
13586169695Skanacx_cv_header_stdint_kind="(already complete)"
13587169695Skanfor i in stdint.h $inttype_headers; do
13588169695Skan  unset ac_cv_type_uintptr_t
13589169695Skan  unset ac_cv_type_uintmax_t
13590169695Skan  unset ac_cv_type_int_least32_t
13591169695Skan  unset ac_cv_type_int_fast32_t
13592169695Skan  unset ac_cv_type_uint64_t
13593169695Skan  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13594169695Skan  echo "$as_me:$LINENO: checking for uintmax_t" >&5
13595169695Skanecho $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13596169695Skanif test "${ac_cv_type_uintmax_t+set}" = set; then
13597169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13598169695Skanelse
13599169695Skan  cat >conftest.$ac_ext <<_ACEOF
13600169695Skan/* confdefs.h.  */
13601169695Skan_ACEOF
13602169695Skancat confdefs.h >>conftest.$ac_ext
13603169695Skancat >>conftest.$ac_ext <<_ACEOF
13604169695Skan/* end confdefs.h.  */
13605169695Skan#include <sys/types.h>
13606169695Skan#include <$i>
13607169695Skan
13608169695Skanint
13609169695Skanmain ()
13610169695Skan{
13611169695Skanif ((uintmax_t *) 0)
13612169695Skan  return 0;
13613169695Skanif (sizeof (uintmax_t))
13614169695Skan  return 0;
13615169695Skan  ;
13616169695Skan  return 0;
13617169695Skan}
13618169695Skan_ACEOF
13619169695Skanrm -f conftest.$ac_objext
13620169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621169695Skan  (eval $ac_compile) 2>conftest.er1
13622169695Skan  ac_status=$?
13623169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13624169695Skan  rm -f conftest.er1
13625169695Skan  cat conftest.err >&5
13626169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627169695Skan  (exit $ac_status); } &&
13628169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13629169695Skan			 || test ! -s conftest.err'
13630169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631169695Skan  (eval $ac_try) 2>&5
13632169695Skan  ac_status=$?
13633169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634169695Skan  (exit $ac_status); }; } &&
13635169695Skan	 { ac_try='test -s conftest.$ac_objext'
13636169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637169695Skan  (eval $ac_try) 2>&5
13638169695Skan  ac_status=$?
13639169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640169695Skan  (exit $ac_status); }; }; then
13641169695Skan  ac_cv_type_uintmax_t=yes
13642169695Skanelse
13643169695Skan  echo "$as_me: failed program was:" >&5
13644169695Skansed 's/^/| /' conftest.$ac_ext >&5
13645169695Skan
13646169695Skanac_cv_type_uintmax_t=no
13647169695Skanfi
13648169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13649169695Skanfi
13650169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13651169695Skanecho "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13652169695Skanif test $ac_cv_type_uintmax_t = yes; then
13653169695Skan  acx_cv_header_stdint=$i
13654169695Skanelse
13655169695Skan  continue
13656169695Skanfi
13657169695Skan
13658169695Skan  echo "$as_me:$LINENO: checking for uintptr_t" >&5
13659169695Skanecho $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13660169695Skanif test "${ac_cv_type_uintptr_t+set}" = set; then
13661169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13662169695Skanelse
13663169695Skan  cat >conftest.$ac_ext <<_ACEOF
13664169695Skan/* confdefs.h.  */
13665169695Skan_ACEOF
13666169695Skancat confdefs.h >>conftest.$ac_ext
13667169695Skancat >>conftest.$ac_ext <<_ACEOF
13668169695Skan/* end confdefs.h.  */
13669169695Skan#include <sys/types.h>
13670169695Skan#include <$i>
13671169695Skan
13672169695Skanint
13673169695Skanmain ()
13674169695Skan{
13675169695Skanif ((uintptr_t *) 0)
13676169695Skan  return 0;
13677169695Skanif (sizeof (uintptr_t))
13678169695Skan  return 0;
13679169695Skan  ;
13680169695Skan  return 0;
13681169695Skan}
13682169695Skan_ACEOF
13683169695Skanrm -f conftest.$ac_objext
13684169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685169695Skan  (eval $ac_compile) 2>conftest.er1
13686169695Skan  ac_status=$?
13687169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13688169695Skan  rm -f conftest.er1
13689169695Skan  cat conftest.err >&5
13690169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691169695Skan  (exit $ac_status); } &&
13692169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13693169695Skan			 || test ! -s conftest.err'
13694169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695169695Skan  (eval $ac_try) 2>&5
13696169695Skan  ac_status=$?
13697169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698169695Skan  (exit $ac_status); }; } &&
13699169695Skan	 { ac_try='test -s conftest.$ac_objext'
13700169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701169695Skan  (eval $ac_try) 2>&5
13702169695Skan  ac_status=$?
13703169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704169695Skan  (exit $ac_status); }; }; then
13705169695Skan  ac_cv_type_uintptr_t=yes
13706169695Skanelse
13707169695Skan  echo "$as_me: failed program was:" >&5
13708169695Skansed 's/^/| /' conftest.$ac_ext >&5
13709169695Skan
13710169695Skanac_cv_type_uintptr_t=no
13711169695Skanfi
13712169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713169695Skanfi
13714169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13715169695Skanecho "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13716169695Skanif test $ac_cv_type_uintptr_t = yes; then
13717169695Skan  :
13718169695Skanelse
13719169695Skan  acx_cv_header_stdint_kind="(mostly complete)"
13720169695Skanfi
13721169695Skan
13722169695Skan  echo "$as_me:$LINENO: checking for int_least32_t" >&5
13723169695Skanecho $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13724169695Skanif test "${ac_cv_type_int_least32_t+set}" = set; then
13725169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13726169695Skanelse
13727169695Skan  cat >conftest.$ac_ext <<_ACEOF
13728169695Skan/* confdefs.h.  */
13729169695Skan_ACEOF
13730169695Skancat confdefs.h >>conftest.$ac_ext
13731169695Skancat >>conftest.$ac_ext <<_ACEOF
13732169695Skan/* end confdefs.h.  */
13733169695Skan#include <sys/types.h>
13734169695Skan#include <$i>
13735169695Skan
13736169695Skanint
13737169695Skanmain ()
13738169695Skan{
13739169695Skanif ((int_least32_t *) 0)
13740169695Skan  return 0;
13741169695Skanif (sizeof (int_least32_t))
13742169695Skan  return 0;
13743169695Skan  ;
13744169695Skan  return 0;
13745169695Skan}
13746169695Skan_ACEOF
13747169695Skanrm -f conftest.$ac_objext
13748169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749169695Skan  (eval $ac_compile) 2>conftest.er1
13750169695Skan  ac_status=$?
13751169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13752169695Skan  rm -f conftest.er1
13753169695Skan  cat conftest.err >&5
13754169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755169695Skan  (exit $ac_status); } &&
13756169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13757169695Skan			 || test ! -s conftest.err'
13758169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759169695Skan  (eval $ac_try) 2>&5
13760169695Skan  ac_status=$?
13761169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762169695Skan  (exit $ac_status); }; } &&
13763169695Skan	 { ac_try='test -s conftest.$ac_objext'
13764169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765169695Skan  (eval $ac_try) 2>&5
13766169695Skan  ac_status=$?
13767169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768169695Skan  (exit $ac_status); }; }; then
13769169695Skan  ac_cv_type_int_least32_t=yes
13770169695Skanelse
13771169695Skan  echo "$as_me: failed program was:" >&5
13772169695Skansed 's/^/| /' conftest.$ac_ext >&5
13773169695Skan
13774169695Skanac_cv_type_int_least32_t=no
13775169695Skanfi
13776169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13777169695Skanfi
13778169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13779169695Skanecho "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13780169695Skanif test $ac_cv_type_int_least32_t = yes; then
13781169695Skan  :
13782169695Skanelse
13783169695Skan  acx_cv_header_stdint_kind="(mostly complete)"
13784169695Skanfi
13785169695Skan
13786169695Skan  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13787169695Skanecho $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13788169695Skanif test "${ac_cv_type_int_fast32_t+set}" = set; then
13789169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13790169695Skanelse
13791169695Skan  cat >conftest.$ac_ext <<_ACEOF
13792169695Skan/* confdefs.h.  */
13793169695Skan_ACEOF
13794169695Skancat confdefs.h >>conftest.$ac_ext
13795169695Skancat >>conftest.$ac_ext <<_ACEOF
13796169695Skan/* end confdefs.h.  */
13797169695Skan#include <sys/types.h>
13798169695Skan#include <$i>
13799169695Skan
13800169695Skanint
13801169695Skanmain ()
13802169695Skan{
13803169695Skanif ((int_fast32_t *) 0)
13804169695Skan  return 0;
13805169695Skanif (sizeof (int_fast32_t))
13806169695Skan  return 0;
13807169695Skan  ;
13808169695Skan  return 0;
13809169695Skan}
13810169695Skan_ACEOF
13811169695Skanrm -f conftest.$ac_objext
13812169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813169695Skan  (eval $ac_compile) 2>conftest.er1
13814169695Skan  ac_status=$?
13815169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13816169695Skan  rm -f conftest.er1
13817169695Skan  cat conftest.err >&5
13818169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819169695Skan  (exit $ac_status); } &&
13820169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13821169695Skan			 || test ! -s conftest.err'
13822169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823169695Skan  (eval $ac_try) 2>&5
13824169695Skan  ac_status=$?
13825169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826169695Skan  (exit $ac_status); }; } &&
13827169695Skan	 { ac_try='test -s conftest.$ac_objext'
13828169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829169695Skan  (eval $ac_try) 2>&5
13830169695Skan  ac_status=$?
13831169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832169695Skan  (exit $ac_status); }; }; then
13833169695Skan  ac_cv_type_int_fast32_t=yes
13834169695Skanelse
13835169695Skan  echo "$as_me: failed program was:" >&5
13836169695Skansed 's/^/| /' conftest.$ac_ext >&5
13837169695Skan
13838169695Skanac_cv_type_int_fast32_t=no
13839169695Skanfi
13840169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841169695Skanfi
13842169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13843169695Skanecho "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13844169695Skanif test $ac_cv_type_int_fast32_t = yes; then
13845169695Skan  :
13846169695Skanelse
13847169695Skan  acx_cv_header_stdint_kind="(mostly complete)"
13848169695Skanfi
13849169695Skan
13850169695Skan  echo "$as_me:$LINENO: checking for uint64_t" >&5
13851169695Skanecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13852169695Skanif test "${ac_cv_type_uint64_t+set}" = set; then
13853169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13854169695Skanelse
13855169695Skan  cat >conftest.$ac_ext <<_ACEOF
13856169695Skan/* confdefs.h.  */
13857169695Skan_ACEOF
13858169695Skancat confdefs.h >>conftest.$ac_ext
13859169695Skancat >>conftest.$ac_ext <<_ACEOF
13860169695Skan/* end confdefs.h.  */
13861169695Skan#include <sys/types.h>
13862169695Skan#include <$i>
13863169695Skan
13864169695Skanint
13865169695Skanmain ()
13866169695Skan{
13867169695Skanif ((uint64_t *) 0)
13868169695Skan  return 0;
13869169695Skanif (sizeof (uint64_t))
13870169695Skan  return 0;
13871169695Skan  ;
13872169695Skan  return 0;
13873169695Skan}
13874169695Skan_ACEOF
13875169695Skanrm -f conftest.$ac_objext
13876169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877169695Skan  (eval $ac_compile) 2>conftest.er1
13878169695Skan  ac_status=$?
13879169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13880169695Skan  rm -f conftest.er1
13881169695Skan  cat conftest.err >&5
13882169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883169695Skan  (exit $ac_status); } &&
13884169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13885169695Skan			 || test ! -s conftest.err'
13886169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887169695Skan  (eval $ac_try) 2>&5
13888169695Skan  ac_status=$?
13889169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890169695Skan  (exit $ac_status); }; } &&
13891169695Skan	 { ac_try='test -s conftest.$ac_objext'
13892169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893169695Skan  (eval $ac_try) 2>&5
13894169695Skan  ac_status=$?
13895169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896169695Skan  (exit $ac_status); }; }; then
13897169695Skan  ac_cv_type_uint64_t=yes
13898169695Skanelse
13899169695Skan  echo "$as_me: failed program was:" >&5
13900169695Skansed 's/^/| /' conftest.$ac_ext >&5
13901169695Skan
13902169695Skanac_cv_type_uint64_t=no
13903169695Skanfi
13904169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13905169695Skanfi
13906169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13907169695Skanecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
13908169695Skanif test $ac_cv_type_uint64_t = yes; then
13909169695Skan  :
13910169695Skanelse
13911169695Skan  acx_cv_header_stdint_kind="(lacks uint64_t)"
13912169695Skanfi
13913169695Skan
13914169695Skan  break
13915169695Skandone
13916169695Skanif test "$acx_cv_header_stdint" = stddef.h; then
13917169695Skan  acx_cv_header_stdint_kind="(lacks uintmax_t)"
13918169695Skan  for i in stdint.h $inttype_headers; do
13919169695Skan    unset ac_cv_type_uintptr_t
13920169695Skan    unset ac_cv_type_uint32_t
13921169695Skan    unset ac_cv_type_uint64_t
13922169695Skan    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13923169695Skan    echo "$as_me:$LINENO: checking for uint32_t" >&5
13924169695Skanecho $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13925169695Skanif test "${ac_cv_type_uint32_t+set}" = set; then
13926169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13927169695Skanelse
13928169695Skan  cat >conftest.$ac_ext <<_ACEOF
13929169695Skan/* confdefs.h.  */
13930169695Skan_ACEOF
13931169695Skancat confdefs.h >>conftest.$ac_ext
13932169695Skancat >>conftest.$ac_ext <<_ACEOF
13933169695Skan/* end confdefs.h.  */
13934169695Skan#include <sys/types.h>
13935169695Skan#include <$i>
13936169695Skan
13937169695Skanint
13938169695Skanmain ()
13939169695Skan{
13940169695Skanif ((uint32_t *) 0)
13941169695Skan  return 0;
13942169695Skanif (sizeof (uint32_t))
13943169695Skan  return 0;
13944169695Skan  ;
13945169695Skan  return 0;
13946169695Skan}
13947169695Skan_ACEOF
13948169695Skanrm -f conftest.$ac_objext
13949169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950169695Skan  (eval $ac_compile) 2>conftest.er1
13951169695Skan  ac_status=$?
13952169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
13953169695Skan  rm -f conftest.er1
13954169695Skan  cat conftest.err >&5
13955169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956169695Skan  (exit $ac_status); } &&
13957169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
13958169695Skan			 || test ! -s conftest.err'
13959169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960169695Skan  (eval $ac_try) 2>&5
13961169695Skan  ac_status=$?
13962169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963169695Skan  (exit $ac_status); }; } &&
13964169695Skan	 { ac_try='test -s conftest.$ac_objext'
13965169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966169695Skan  (eval $ac_try) 2>&5
13967169695Skan  ac_status=$?
13968169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969169695Skan  (exit $ac_status); }; }; then
13970169695Skan  ac_cv_type_uint32_t=yes
13971169695Skanelse
13972169695Skan  echo "$as_me: failed program was:" >&5
13973169695Skansed 's/^/| /' conftest.$ac_ext >&5
13974169695Skan
13975169695Skanac_cv_type_uint32_t=no
13976169695Skanfi
13977169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13978169695Skanfi
13979169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13980169695Skanecho "${ECHO_T}$ac_cv_type_uint32_t" >&6
13981169695Skanif test $ac_cv_type_uint32_t = yes; then
13982169695Skan  acx_cv_header_stdint=$i
13983169695Skanelse
13984169695Skan  continue
13985169695Skanfi
13986169695Skan
13987169695Skan    echo "$as_me:$LINENO: checking for uint64_t" >&5
13988169695Skanecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13989169695Skanif test "${ac_cv_type_uint64_t+set}" = set; then
13990169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
13991169695Skanelse
13992169695Skan  cat >conftest.$ac_ext <<_ACEOF
13993169695Skan/* confdefs.h.  */
13994169695Skan_ACEOF
13995169695Skancat confdefs.h >>conftest.$ac_ext
13996169695Skancat >>conftest.$ac_ext <<_ACEOF
13997169695Skan/* end confdefs.h.  */
13998169695Skan#include <sys/types.h>
13999169695Skan#include <$i>
14000169695Skan
14001169695Skanint
14002169695Skanmain ()
14003169695Skan{
14004169695Skanif ((uint64_t *) 0)
14005169695Skan  return 0;
14006169695Skanif (sizeof (uint64_t))
14007169695Skan  return 0;
14008169695Skan  ;
14009169695Skan  return 0;
14010169695Skan}
14011169695Skan_ACEOF
14012169695Skanrm -f conftest.$ac_objext
14013169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014169695Skan  (eval $ac_compile) 2>conftest.er1
14015169695Skan  ac_status=$?
14016169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14017169695Skan  rm -f conftest.er1
14018169695Skan  cat conftest.err >&5
14019169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020169695Skan  (exit $ac_status); } &&
14021169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14022169695Skan			 || test ! -s conftest.err'
14023169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024169695Skan  (eval $ac_try) 2>&5
14025169695Skan  ac_status=$?
14026169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027169695Skan  (exit $ac_status); }; } &&
14028169695Skan	 { ac_try='test -s conftest.$ac_objext'
14029169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030169695Skan  (eval $ac_try) 2>&5
14031169695Skan  ac_status=$?
14032169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033169695Skan  (exit $ac_status); }; }; then
14034169695Skan  ac_cv_type_uint64_t=yes
14035169695Skanelse
14036169695Skan  echo "$as_me: failed program was:" >&5
14037169695Skansed 's/^/| /' conftest.$ac_ext >&5
14038169695Skan
14039169695Skanac_cv_type_uint64_t=no
14040169695Skanfi
14041169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14042169695Skanfi
14043169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14044169695Skanecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
14045169695Skan
14046169695Skan    echo "$as_me:$LINENO: checking for uintptr_t" >&5
14047169695Skanecho $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14048169695Skanif test "${ac_cv_type_uintptr_t+set}" = set; then
14049169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14050169695Skanelse
14051169695Skan  cat >conftest.$ac_ext <<_ACEOF
14052169695Skan/* confdefs.h.  */
14053169695Skan_ACEOF
14054169695Skancat confdefs.h >>conftest.$ac_ext
14055169695Skancat >>conftest.$ac_ext <<_ACEOF
14056169695Skan/* end confdefs.h.  */
14057169695Skan#include <sys/types.h>
14058169695Skan#include <$i>
14059169695Skan
14060169695Skanint
14061169695Skanmain ()
14062169695Skan{
14063169695Skanif ((uintptr_t *) 0)
14064169695Skan  return 0;
14065169695Skanif (sizeof (uintptr_t))
14066169695Skan  return 0;
14067169695Skan  ;
14068169695Skan  return 0;
14069169695Skan}
14070169695Skan_ACEOF
14071169695Skanrm -f conftest.$ac_objext
14072169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073169695Skan  (eval $ac_compile) 2>conftest.er1
14074169695Skan  ac_status=$?
14075169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14076169695Skan  rm -f conftest.er1
14077169695Skan  cat conftest.err >&5
14078169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079169695Skan  (exit $ac_status); } &&
14080169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14081169695Skan			 || test ! -s conftest.err'
14082169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083169695Skan  (eval $ac_try) 2>&5
14084169695Skan  ac_status=$?
14085169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086169695Skan  (exit $ac_status); }; } &&
14087169695Skan	 { ac_try='test -s conftest.$ac_objext'
14088169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089169695Skan  (eval $ac_try) 2>&5
14090169695Skan  ac_status=$?
14091169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092169695Skan  (exit $ac_status); }; }; then
14093169695Skan  ac_cv_type_uintptr_t=yes
14094169695Skanelse
14095169695Skan  echo "$as_me: failed program was:" >&5
14096169695Skansed 's/^/| /' conftest.$ac_ext >&5
14097169695Skan
14098169695Skanac_cv_type_uintptr_t=no
14099169695Skanfi
14100169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14101169695Skanfi
14102169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14103169695Skanecho "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14104169695Skan
14105169695Skan    break
14106169695Skan  done
14107169695Skanfi
14108169695Skanif test "$acx_cv_header_stdint" = stddef.h; then
14109169695Skan  acx_cv_header_stdint_kind="(u_intXX_t style)"
14110169695Skan  for i in sys/types.h $inttype_headers; do
14111169695Skan    unset ac_cv_type_u_int32_t
14112169695Skan    unset ac_cv_type_u_int64_t
14113169695Skan    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14114169695Skan    echo "$as_me:$LINENO: checking for u_int32_t" >&5
14115169695Skanecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14116169695Skanif test "${ac_cv_type_u_int32_t+set}" = set; then
14117169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14118169695Skanelse
14119169695Skan  cat >conftest.$ac_ext <<_ACEOF
14120169695Skan/* confdefs.h.  */
14121169695Skan_ACEOF
14122169695Skancat confdefs.h >>conftest.$ac_ext
14123169695Skancat >>conftest.$ac_ext <<_ACEOF
14124169695Skan/* end confdefs.h.  */
14125169695Skan#include <sys/types.h>
14126169695Skan#include <$i>
14127169695Skan
14128169695Skanint
14129169695Skanmain ()
14130169695Skan{
14131169695Skanif ((u_int32_t *) 0)
14132169695Skan  return 0;
14133169695Skanif (sizeof (u_int32_t))
14134169695Skan  return 0;
14135169695Skan  ;
14136169695Skan  return 0;
14137169695Skan}
14138169695Skan_ACEOF
14139169695Skanrm -f conftest.$ac_objext
14140169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141169695Skan  (eval $ac_compile) 2>conftest.er1
14142169695Skan  ac_status=$?
14143169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14144169695Skan  rm -f conftest.er1
14145169695Skan  cat conftest.err >&5
14146169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147169695Skan  (exit $ac_status); } &&
14148169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14149169695Skan			 || test ! -s conftest.err'
14150169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151169695Skan  (eval $ac_try) 2>&5
14152169695Skan  ac_status=$?
14153169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154169695Skan  (exit $ac_status); }; } &&
14155169695Skan	 { ac_try='test -s conftest.$ac_objext'
14156169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157169695Skan  (eval $ac_try) 2>&5
14158169695Skan  ac_status=$?
14159169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160169695Skan  (exit $ac_status); }; }; then
14161169695Skan  ac_cv_type_u_int32_t=yes
14162169695Skanelse
14163169695Skan  echo "$as_me: failed program was:" >&5
14164169695Skansed 's/^/| /' conftest.$ac_ext >&5
14165169695Skan
14166169695Skanac_cv_type_u_int32_t=no
14167169695Skanfi
14168169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169169695Skanfi
14170169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14171169695Skanecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14172169695Skanif test $ac_cv_type_u_int32_t = yes; then
14173169695Skan  acx_cv_header_stdint=$i
14174169695Skanelse
14175169695Skan  continue
14176169695Skanfi
14177169695Skan
14178169695Skan    echo "$as_me:$LINENO: checking for u_int64_t" >&5
14179169695Skanecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14180169695Skanif test "${ac_cv_type_u_int64_t+set}" = set; then
14181169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14182169695Skanelse
14183169695Skan  cat >conftest.$ac_ext <<_ACEOF
14184169695Skan/* confdefs.h.  */
14185169695Skan_ACEOF
14186169695Skancat confdefs.h >>conftest.$ac_ext
14187169695Skancat >>conftest.$ac_ext <<_ACEOF
14188169695Skan/* end confdefs.h.  */
14189169695Skan#include <sys/types.h>
14190169695Skan#include <$i>
14191169695Skan
14192169695Skanint
14193169695Skanmain ()
14194169695Skan{
14195169695Skanif ((u_int64_t *) 0)
14196169695Skan  return 0;
14197169695Skanif (sizeof (u_int64_t))
14198169695Skan  return 0;
14199169695Skan  ;
14200169695Skan  return 0;
14201169695Skan}
14202169695Skan_ACEOF
14203169695Skanrm -f conftest.$ac_objext
14204169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205169695Skan  (eval $ac_compile) 2>conftest.er1
14206169695Skan  ac_status=$?
14207169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14208169695Skan  rm -f conftest.er1
14209169695Skan  cat conftest.err >&5
14210169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211169695Skan  (exit $ac_status); } &&
14212169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14213169695Skan			 || test ! -s conftest.err'
14214169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215169695Skan  (eval $ac_try) 2>&5
14216169695Skan  ac_status=$?
14217169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218169695Skan  (exit $ac_status); }; } &&
14219169695Skan	 { ac_try='test -s conftest.$ac_objext'
14220169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221169695Skan  (eval $ac_try) 2>&5
14222169695Skan  ac_status=$?
14223169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224169695Skan  (exit $ac_status); }; }; then
14225169695Skan  ac_cv_type_u_int64_t=yes
14226169695Skanelse
14227169695Skan  echo "$as_me: failed program was:" >&5
14228169695Skansed 's/^/| /' conftest.$ac_ext >&5
14229169695Skan
14230169695Skanac_cv_type_u_int64_t=no
14231169695Skanfi
14232169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233169695Skanfi
14234169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14235169695Skanecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14236169695Skan
14237169695Skan    break
14238169695Skan  done
14239169695Skanfi
14240169695Skanif test "$acx_cv_header_stdint" = stddef.h; then
14241169695Skan  acx_cv_header_stdint_kind="(using manual detection)"
14242169695Skanfi
14243169695Skan
14244169695Skantest -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14245169695Skantest -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14246169695Skantest -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14247169695Skantest -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14248169695Skantest -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14249169695Skan
14250169695Skan# ----------------- Summarize what we found so far
14251169695Skan
14252169695Skanecho "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14253169695Skanecho $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14254169695Skan
14255169695Skancase `$as_basename gstdint.h ||
14256169695Skan$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14257169695Skan	 Xgstdint.h : 'X\(//\)$' \| \
14258169695Skan	 Xgstdint.h : 'X\(/\)$' \| \
14259169695Skan	 .     : '\(.\)' 2>/dev/null ||
14260169695Skanecho X/gstdint.h |
14261169695Skan    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14262169695Skan  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
14263169695Skan  	  /^X\/\(\/\).*/{ s//\1/; q; }
14264169695Skan  	  s/.*/./; q'` in
14265169695Skan  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14266169695Skanecho "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14267169695Skan  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14268169695Skanecho "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14269169695Skan  *) ;;
14270169695Skanesac
14271169695Skan
14272169695Skanecho "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14273169695Skanecho "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14274169695Skan
14275169695Skan# ----------------- done included file, check C basic types --------
14276169695Skan
14277169695Skan# Lacking an uintptr_t?  Test size of void *
14278169695Skancase "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14279169695Skan  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14280169695Skanecho $ECHO_N "checking for void *... $ECHO_C" >&6
14281169695Skanif test "${ac_cv_type_void_p+set}" = set; then
14282169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14283169695Skanelse
14284169695Skan  cat >conftest.$ac_ext <<_ACEOF
14285169695Skan/* confdefs.h.  */
14286169695Skan_ACEOF
14287169695Skancat confdefs.h >>conftest.$ac_ext
14288169695Skancat >>conftest.$ac_ext <<_ACEOF
14289169695Skan/* end confdefs.h.  */
14290169695Skan$ac_includes_default
14291169695Skanint
14292169695Skanmain ()
14293169695Skan{
14294169695Skanif ((void * *) 0)
14295169695Skan  return 0;
14296169695Skanif (sizeof (void *))
14297169695Skan  return 0;
14298169695Skan  ;
14299169695Skan  return 0;
14300169695Skan}
14301169695Skan_ACEOF
14302169695Skanrm -f conftest.$ac_objext
14303169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304169695Skan  (eval $ac_compile) 2>conftest.er1
14305169695Skan  ac_status=$?
14306169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14307169695Skan  rm -f conftest.er1
14308169695Skan  cat conftest.err >&5
14309169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310169695Skan  (exit $ac_status); } &&
14311169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14312169695Skan			 || test ! -s conftest.err'
14313169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314169695Skan  (eval $ac_try) 2>&5
14315169695Skan  ac_status=$?
14316169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317169695Skan  (exit $ac_status); }; } &&
14318169695Skan	 { ac_try='test -s conftest.$ac_objext'
14319169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320169695Skan  (eval $ac_try) 2>&5
14321169695Skan  ac_status=$?
14322169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323169695Skan  (exit $ac_status); }; }; then
14324169695Skan  ac_cv_type_void_p=yes
14325169695Skanelse
14326169695Skan  echo "$as_me: failed program was:" >&5
14327169695Skansed 's/^/| /' conftest.$ac_ext >&5
14328169695Skan
14329169695Skanac_cv_type_void_p=no
14330169695Skanfi
14331169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332169695Skanfi
14333169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14334169695Skanecho "${ECHO_T}$ac_cv_type_void_p" >&6
14335169695Skan
14336169695Skanecho "$as_me:$LINENO: checking size of void *" >&5
14337169695Skanecho $ECHO_N "checking size of void *... $ECHO_C" >&6
14338169695Skanif test "${ac_cv_sizeof_void_p+set}" = set; then
14339169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14340169695Skanelse
14341169695Skan  if test "$ac_cv_type_void_p" = yes; then
14342169695Skan  # The cast to unsigned long works around a bug in the HP C Compiler
14343169695Skan  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14344169695Skan  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14345169695Skan  # This bug is HP SR number 8606223364.
14346169695Skan  if test "$cross_compiling" = yes; then
14347169695Skan  # Depending upon the size, compute the lo and hi bounds.
14348169695Skancat >conftest.$ac_ext <<_ACEOF
14349169695Skan/* confdefs.h.  */
14350169695Skan_ACEOF
14351169695Skancat confdefs.h >>conftest.$ac_ext
14352169695Skancat >>conftest.$ac_ext <<_ACEOF
14353169695Skan/* end confdefs.h.  */
14354169695Skan$ac_includes_default
14355169695Skanint
14356169695Skanmain ()
14357169695Skan{
14358169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14359169695Skantest_array [0] = 0
14360169695Skan
14361169695Skan  ;
14362169695Skan  return 0;
14363169695Skan}
14364169695Skan_ACEOF
14365169695Skanrm -f conftest.$ac_objext
14366169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367169695Skan  (eval $ac_compile) 2>conftest.er1
14368169695Skan  ac_status=$?
14369169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14370169695Skan  rm -f conftest.er1
14371169695Skan  cat conftest.err >&5
14372169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373169695Skan  (exit $ac_status); } &&
14374169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14375169695Skan			 || test ! -s conftest.err'
14376169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377169695Skan  (eval $ac_try) 2>&5
14378169695Skan  ac_status=$?
14379169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380169695Skan  (exit $ac_status); }; } &&
14381169695Skan	 { ac_try='test -s conftest.$ac_objext'
14382169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383169695Skan  (eval $ac_try) 2>&5
14384169695Skan  ac_status=$?
14385169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386169695Skan  (exit $ac_status); }; }; then
14387169695Skan  ac_lo=0 ac_mid=0
14388169695Skan  while :; do
14389169695Skan    cat >conftest.$ac_ext <<_ACEOF
14390169695Skan/* confdefs.h.  */
14391169695Skan_ACEOF
14392169695Skancat confdefs.h >>conftest.$ac_ext
14393169695Skancat >>conftest.$ac_ext <<_ACEOF
14394169695Skan/* end confdefs.h.  */
14395169695Skan$ac_includes_default
14396169695Skanint
14397169695Skanmain ()
14398169695Skan{
14399169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14400169695Skantest_array [0] = 0
14401169695Skan
14402169695Skan  ;
14403169695Skan  return 0;
14404169695Skan}
14405169695Skan_ACEOF
14406169695Skanrm -f conftest.$ac_objext
14407169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408169695Skan  (eval $ac_compile) 2>conftest.er1
14409169695Skan  ac_status=$?
14410169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14411169695Skan  rm -f conftest.er1
14412169695Skan  cat conftest.err >&5
14413169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414169695Skan  (exit $ac_status); } &&
14415169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14416169695Skan			 || test ! -s conftest.err'
14417169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418169695Skan  (eval $ac_try) 2>&5
14419169695Skan  ac_status=$?
14420169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421169695Skan  (exit $ac_status); }; } &&
14422169695Skan	 { ac_try='test -s conftest.$ac_objext'
14423169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424169695Skan  (eval $ac_try) 2>&5
14425169695Skan  ac_status=$?
14426169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427169695Skan  (exit $ac_status); }; }; then
14428169695Skan  ac_hi=$ac_mid; break
14429169695Skanelse
14430169695Skan  echo "$as_me: failed program was:" >&5
14431169695Skansed 's/^/| /' conftest.$ac_ext >&5
14432169695Skan
14433169695Skanac_lo=`expr $ac_mid + 1`
14434169695Skan		    if test $ac_lo -le $ac_mid; then
14435169695Skan		      ac_lo= ac_hi=
14436169695Skan		      break
14437169695Skan		    fi
14438169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
14439169695Skanfi
14440169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441169695Skan  done
14442169695Skanelse
14443169695Skan  echo "$as_me: failed program was:" >&5
14444169695Skansed 's/^/| /' conftest.$ac_ext >&5
14445169695Skan
14446169695Skancat >conftest.$ac_ext <<_ACEOF
14447169695Skan/* confdefs.h.  */
14448169695Skan_ACEOF
14449169695Skancat confdefs.h >>conftest.$ac_ext
14450169695Skancat >>conftest.$ac_ext <<_ACEOF
14451169695Skan/* end confdefs.h.  */
14452169695Skan$ac_includes_default
14453169695Skanint
14454169695Skanmain ()
14455169695Skan{
14456169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14457169695Skantest_array [0] = 0
14458169695Skan
14459169695Skan  ;
14460169695Skan  return 0;
14461169695Skan}
14462169695Skan_ACEOF
14463169695Skanrm -f conftest.$ac_objext
14464169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465169695Skan  (eval $ac_compile) 2>conftest.er1
14466169695Skan  ac_status=$?
14467169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14468169695Skan  rm -f conftest.er1
14469169695Skan  cat conftest.err >&5
14470169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471169695Skan  (exit $ac_status); } &&
14472169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14473169695Skan			 || test ! -s conftest.err'
14474169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475169695Skan  (eval $ac_try) 2>&5
14476169695Skan  ac_status=$?
14477169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478169695Skan  (exit $ac_status); }; } &&
14479169695Skan	 { ac_try='test -s conftest.$ac_objext'
14480169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481169695Skan  (eval $ac_try) 2>&5
14482169695Skan  ac_status=$?
14483169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484169695Skan  (exit $ac_status); }; }; then
14485169695Skan  ac_hi=-1 ac_mid=-1
14486169695Skan  while :; do
14487169695Skan    cat >conftest.$ac_ext <<_ACEOF
14488169695Skan/* confdefs.h.  */
14489169695Skan_ACEOF
14490169695Skancat confdefs.h >>conftest.$ac_ext
14491169695Skancat >>conftest.$ac_ext <<_ACEOF
14492169695Skan/* end confdefs.h.  */
14493169695Skan$ac_includes_default
14494169695Skanint
14495169695Skanmain ()
14496169695Skan{
14497169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14498169695Skantest_array [0] = 0
14499169695Skan
14500169695Skan  ;
14501169695Skan  return 0;
14502169695Skan}
14503169695Skan_ACEOF
14504169695Skanrm -f conftest.$ac_objext
14505169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506169695Skan  (eval $ac_compile) 2>conftest.er1
14507169695Skan  ac_status=$?
14508169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14509169695Skan  rm -f conftest.er1
14510169695Skan  cat conftest.err >&5
14511169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512169695Skan  (exit $ac_status); } &&
14513169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14514169695Skan			 || test ! -s conftest.err'
14515169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516169695Skan  (eval $ac_try) 2>&5
14517169695Skan  ac_status=$?
14518169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519169695Skan  (exit $ac_status); }; } &&
14520169695Skan	 { ac_try='test -s conftest.$ac_objext'
14521169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522169695Skan  (eval $ac_try) 2>&5
14523169695Skan  ac_status=$?
14524169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525169695Skan  (exit $ac_status); }; }; then
14526169695Skan  ac_lo=$ac_mid; break
14527169695Skanelse
14528169695Skan  echo "$as_me: failed program was:" >&5
14529169695Skansed 's/^/| /' conftest.$ac_ext >&5
14530169695Skan
14531169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
14532169695Skan		       if test $ac_mid -le $ac_hi; then
14533169695Skan			 ac_lo= ac_hi=
14534169695Skan			 break
14535169695Skan		       fi
14536169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
14537169695Skanfi
14538169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539169695Skan  done
14540169695Skanelse
14541169695Skan  echo "$as_me: failed program was:" >&5
14542169695Skansed 's/^/| /' conftest.$ac_ext >&5
14543169695Skan
14544169695Skanac_lo= ac_hi=
14545169695Skanfi
14546169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547169695Skanfi
14548169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14549169695Skan# Binary search between lo and hi bounds.
14550169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
14551169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14552169695Skan  cat >conftest.$ac_ext <<_ACEOF
14553169695Skan/* confdefs.h.  */
14554169695Skan_ACEOF
14555169695Skancat confdefs.h >>conftest.$ac_ext
14556169695Skancat >>conftest.$ac_ext <<_ACEOF
14557169695Skan/* end confdefs.h.  */
14558169695Skan$ac_includes_default
14559169695Skanint
14560169695Skanmain ()
14561169695Skan{
14562169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14563169695Skantest_array [0] = 0
14564169695Skan
14565169695Skan  ;
14566169695Skan  return 0;
14567169695Skan}
14568169695Skan_ACEOF
14569169695Skanrm -f conftest.$ac_objext
14570169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571169695Skan  (eval $ac_compile) 2>conftest.er1
14572169695Skan  ac_status=$?
14573169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14574169695Skan  rm -f conftest.er1
14575169695Skan  cat conftest.err >&5
14576169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577169695Skan  (exit $ac_status); } &&
14578169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14579169695Skan			 || test ! -s conftest.err'
14580169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581169695Skan  (eval $ac_try) 2>&5
14582169695Skan  ac_status=$?
14583169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584169695Skan  (exit $ac_status); }; } &&
14585169695Skan	 { ac_try='test -s conftest.$ac_objext'
14586169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587169695Skan  (eval $ac_try) 2>&5
14588169695Skan  ac_status=$?
14589169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590169695Skan  (exit $ac_status); }; }; then
14591169695Skan  ac_hi=$ac_mid
14592169695Skanelse
14593169695Skan  echo "$as_me: failed program was:" >&5
14594169695Skansed 's/^/| /' conftest.$ac_ext >&5
14595169695Skan
14596169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
14597169695Skanfi
14598169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14599169695Skandone
14600169695Skancase $ac_lo in
14601169695Skan?*) ac_cv_sizeof_void_p=$ac_lo;;
14602169695Skan'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14603169695SkanSee \`config.log' for more details." >&5
14604169695Skanecho "$as_me: error: cannot compute sizeof (void *), 77
14605169695SkanSee \`config.log' for more details." >&2;}
14606169695Skan   { (exit 1); exit 1; }; } ;;
14607169695Skanesac
14608169695Skanelse
14609169695Skan  if test "$cross_compiling" = yes; then
14610169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14611169695SkanSee \`config.log' for more details." >&5
14612169695Skanecho "$as_me: error: cannot run test program while cross compiling
14613169695SkanSee \`config.log' for more details." >&2;}
14614169695Skan   { (exit 1); exit 1; }; }
14615169695Skanelse
14616169695Skan  cat >conftest.$ac_ext <<_ACEOF
14617169695Skan/* confdefs.h.  */
14618169695Skan_ACEOF
14619169695Skancat confdefs.h >>conftest.$ac_ext
14620169695Skancat >>conftest.$ac_ext <<_ACEOF
14621169695Skan/* end confdefs.h.  */
14622169695Skan$ac_includes_default
14623169695Skanlong longval () { return (long) (sizeof (void *)); }
14624169695Skanunsigned long ulongval () { return (long) (sizeof (void *)); }
14625169695Skan#include <stdio.h>
14626169695Skan#include <stdlib.h>
14627169695Skanint
14628169695Skanmain ()
14629169695Skan{
14630169695Skan
14631169695Skan  FILE *f = fopen ("conftest.val", "w");
14632169695Skan  if (! f)
14633169695Skan    exit (1);
14634169695Skan  if (((long) (sizeof (void *))) < 0)
14635169695Skan    {
14636169695Skan      long i = longval ();
14637169695Skan      if (i != ((long) (sizeof (void *))))
14638169695Skan	exit (1);
14639169695Skan      fprintf (f, "%ld\n", i);
14640169695Skan    }
14641169695Skan  else
14642169695Skan    {
14643169695Skan      unsigned long i = ulongval ();
14644169695Skan      if (i != ((long) (sizeof (void *))))
14645169695Skan	exit (1);
14646169695Skan      fprintf (f, "%lu\n", i);
14647169695Skan    }
14648169695Skan  exit (ferror (f) || fclose (f) != 0);
14649169695Skan
14650169695Skan  ;
14651169695Skan  return 0;
14652169695Skan}
14653169695Skan_ACEOF
14654169695Skanrm -f conftest$ac_exeext
14655169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656169695Skan  (eval $ac_link) 2>&5
14657169695Skan  ac_status=$?
14658169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14660169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661169695Skan  (eval $ac_try) 2>&5
14662169695Skan  ac_status=$?
14663169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664169695Skan  (exit $ac_status); }; }; then
14665169695Skan  ac_cv_sizeof_void_p=`cat conftest.val`
14666169695Skanelse
14667169695Skan  echo "$as_me: program exited with status $ac_status" >&5
14668169695Skanecho "$as_me: failed program was:" >&5
14669169695Skansed 's/^/| /' conftest.$ac_ext >&5
14670169695Skan
14671169695Skan( exit $ac_status )
14672169695Skan{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14673169695SkanSee \`config.log' for more details." >&5
14674169695Skanecho "$as_me: error: cannot compute sizeof (void *), 77
14675169695SkanSee \`config.log' for more details." >&2;}
14676169695Skan   { (exit 1); exit 1; }; }
14677169695Skanfi
14678169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14679169695Skanfi
14680169695Skanfi
14681169695Skanrm -f conftest.val
14682169695Skanelse
14683169695Skan  ac_cv_sizeof_void_p=0
14684169695Skanfi
14685169695Skanfi
14686169695Skanecho "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14687169695Skanecho "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14688169695Skancat >>confdefs.h <<_ACEOF
14689169695Skan#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14690169695Skan_ACEOF
14691169695Skan
14692169695Skan ;;
14693169695Skanesac
14694169695Skan
14695169695Skan# Lacking an uint64_t?  Test size of long
14696169695Skancase "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14697169695Skan  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14698169695Skanecho $ECHO_N "checking for long... $ECHO_C" >&6
14699169695Skanif test "${ac_cv_type_long+set}" = set; then
14700169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14701169695Skanelse
14702169695Skan  cat >conftest.$ac_ext <<_ACEOF
14703169695Skan/* confdefs.h.  */
14704169695Skan_ACEOF
14705169695Skancat confdefs.h >>conftest.$ac_ext
14706169695Skancat >>conftest.$ac_ext <<_ACEOF
14707169695Skan/* end confdefs.h.  */
14708169695Skan$ac_includes_default
14709169695Skanint
14710169695Skanmain ()
14711169695Skan{
14712169695Skanif ((long *) 0)
14713169695Skan  return 0;
14714169695Skanif (sizeof (long))
14715169695Skan  return 0;
14716169695Skan  ;
14717169695Skan  return 0;
14718169695Skan}
14719169695Skan_ACEOF
14720169695Skanrm -f conftest.$ac_objext
14721169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722169695Skan  (eval $ac_compile) 2>conftest.er1
14723169695Skan  ac_status=$?
14724169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14725169695Skan  rm -f conftest.er1
14726169695Skan  cat conftest.err >&5
14727169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728169695Skan  (exit $ac_status); } &&
14729169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14730169695Skan			 || test ! -s conftest.err'
14731169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732169695Skan  (eval $ac_try) 2>&5
14733169695Skan  ac_status=$?
14734169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735169695Skan  (exit $ac_status); }; } &&
14736169695Skan	 { ac_try='test -s conftest.$ac_objext'
14737169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738169695Skan  (eval $ac_try) 2>&5
14739169695Skan  ac_status=$?
14740169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741169695Skan  (exit $ac_status); }; }; then
14742169695Skan  ac_cv_type_long=yes
14743169695Skanelse
14744169695Skan  echo "$as_me: failed program was:" >&5
14745169695Skansed 's/^/| /' conftest.$ac_ext >&5
14746169695Skan
14747169695Skanac_cv_type_long=no
14748169695Skanfi
14749169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750169695Skanfi
14751169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14752169695Skanecho "${ECHO_T}$ac_cv_type_long" >&6
14753169695Skan
14754169695Skanecho "$as_me:$LINENO: checking size of long" >&5
14755169695Skanecho $ECHO_N "checking size of long... $ECHO_C" >&6
14756169695Skanif test "${ac_cv_sizeof_long+set}" = set; then
14757169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
14758169695Skanelse
14759169695Skan  if test "$ac_cv_type_long" = yes; then
14760169695Skan  # The cast to unsigned long works around a bug in the HP C Compiler
14761169695Skan  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14762169695Skan  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14763169695Skan  # This bug is HP SR number 8606223364.
14764169695Skan  if test "$cross_compiling" = yes; then
14765169695Skan  # Depending upon the size, compute the lo and hi bounds.
14766169695Skancat >conftest.$ac_ext <<_ACEOF
14767169695Skan/* confdefs.h.  */
14768169695Skan_ACEOF
14769169695Skancat confdefs.h >>conftest.$ac_ext
14770169695Skancat >>conftest.$ac_ext <<_ACEOF
14771169695Skan/* end confdefs.h.  */
14772169695Skan$ac_includes_default
14773169695Skanint
14774169695Skanmain ()
14775169695Skan{
14776169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14777169695Skantest_array [0] = 0
14778169695Skan
14779169695Skan  ;
14780169695Skan  return 0;
14781169695Skan}
14782169695Skan_ACEOF
14783169695Skanrm -f conftest.$ac_objext
14784169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785169695Skan  (eval $ac_compile) 2>conftest.er1
14786169695Skan  ac_status=$?
14787169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14788169695Skan  rm -f conftest.er1
14789169695Skan  cat conftest.err >&5
14790169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791169695Skan  (exit $ac_status); } &&
14792169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14793169695Skan			 || test ! -s conftest.err'
14794169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795169695Skan  (eval $ac_try) 2>&5
14796169695Skan  ac_status=$?
14797169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798169695Skan  (exit $ac_status); }; } &&
14799169695Skan	 { ac_try='test -s conftest.$ac_objext'
14800169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801169695Skan  (eval $ac_try) 2>&5
14802169695Skan  ac_status=$?
14803169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804169695Skan  (exit $ac_status); }; }; then
14805169695Skan  ac_lo=0 ac_mid=0
14806169695Skan  while :; do
14807169695Skan    cat >conftest.$ac_ext <<_ACEOF
14808169695Skan/* confdefs.h.  */
14809169695Skan_ACEOF
14810169695Skancat confdefs.h >>conftest.$ac_ext
14811169695Skancat >>conftest.$ac_ext <<_ACEOF
14812169695Skan/* end confdefs.h.  */
14813169695Skan$ac_includes_default
14814169695Skanint
14815169695Skanmain ()
14816169695Skan{
14817169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14818169695Skantest_array [0] = 0
14819169695Skan
14820169695Skan  ;
14821169695Skan  return 0;
14822169695Skan}
14823169695Skan_ACEOF
14824169695Skanrm -f conftest.$ac_objext
14825169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826169695Skan  (eval $ac_compile) 2>conftest.er1
14827169695Skan  ac_status=$?
14828169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14829169695Skan  rm -f conftest.er1
14830169695Skan  cat conftest.err >&5
14831169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832169695Skan  (exit $ac_status); } &&
14833169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14834169695Skan			 || test ! -s conftest.err'
14835169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836169695Skan  (eval $ac_try) 2>&5
14837169695Skan  ac_status=$?
14838169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839169695Skan  (exit $ac_status); }; } &&
14840169695Skan	 { ac_try='test -s conftest.$ac_objext'
14841169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842169695Skan  (eval $ac_try) 2>&5
14843169695Skan  ac_status=$?
14844169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845169695Skan  (exit $ac_status); }; }; then
14846169695Skan  ac_hi=$ac_mid; break
14847169695Skanelse
14848169695Skan  echo "$as_me: failed program was:" >&5
14849169695Skansed 's/^/| /' conftest.$ac_ext >&5
14850169695Skan
14851169695Skanac_lo=`expr $ac_mid + 1`
14852169695Skan		    if test $ac_lo -le $ac_mid; then
14853169695Skan		      ac_lo= ac_hi=
14854169695Skan		      break
14855169695Skan		    fi
14856169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
14857169695Skanfi
14858169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14859169695Skan  done
14860169695Skanelse
14861169695Skan  echo "$as_me: failed program was:" >&5
14862169695Skansed 's/^/| /' conftest.$ac_ext >&5
14863169695Skan
14864169695Skancat >conftest.$ac_ext <<_ACEOF
14865169695Skan/* confdefs.h.  */
14866169695Skan_ACEOF
14867169695Skancat confdefs.h >>conftest.$ac_ext
14868169695Skancat >>conftest.$ac_ext <<_ACEOF
14869169695Skan/* end confdefs.h.  */
14870169695Skan$ac_includes_default
14871169695Skanint
14872169695Skanmain ()
14873169695Skan{
14874169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14875169695Skantest_array [0] = 0
14876169695Skan
14877169695Skan  ;
14878169695Skan  return 0;
14879169695Skan}
14880169695Skan_ACEOF
14881169695Skanrm -f conftest.$ac_objext
14882169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883169695Skan  (eval $ac_compile) 2>conftest.er1
14884169695Skan  ac_status=$?
14885169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14886169695Skan  rm -f conftest.er1
14887169695Skan  cat conftest.err >&5
14888169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889169695Skan  (exit $ac_status); } &&
14890169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14891169695Skan			 || test ! -s conftest.err'
14892169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893169695Skan  (eval $ac_try) 2>&5
14894169695Skan  ac_status=$?
14895169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896169695Skan  (exit $ac_status); }; } &&
14897169695Skan	 { ac_try='test -s conftest.$ac_objext'
14898169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899169695Skan  (eval $ac_try) 2>&5
14900169695Skan  ac_status=$?
14901169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902169695Skan  (exit $ac_status); }; }; then
14903169695Skan  ac_hi=-1 ac_mid=-1
14904169695Skan  while :; do
14905169695Skan    cat >conftest.$ac_ext <<_ACEOF
14906169695Skan/* confdefs.h.  */
14907169695Skan_ACEOF
14908169695Skancat confdefs.h >>conftest.$ac_ext
14909169695Skancat >>conftest.$ac_ext <<_ACEOF
14910169695Skan/* end confdefs.h.  */
14911169695Skan$ac_includes_default
14912169695Skanint
14913169695Skanmain ()
14914169695Skan{
14915169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14916169695Skantest_array [0] = 0
14917169695Skan
14918169695Skan  ;
14919169695Skan  return 0;
14920169695Skan}
14921169695Skan_ACEOF
14922169695Skanrm -f conftest.$ac_objext
14923169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924169695Skan  (eval $ac_compile) 2>conftest.er1
14925169695Skan  ac_status=$?
14926169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14927169695Skan  rm -f conftest.er1
14928169695Skan  cat conftest.err >&5
14929169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930169695Skan  (exit $ac_status); } &&
14931169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14932169695Skan			 || test ! -s conftest.err'
14933169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934169695Skan  (eval $ac_try) 2>&5
14935169695Skan  ac_status=$?
14936169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937169695Skan  (exit $ac_status); }; } &&
14938169695Skan	 { ac_try='test -s conftest.$ac_objext'
14939169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940169695Skan  (eval $ac_try) 2>&5
14941169695Skan  ac_status=$?
14942169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943169695Skan  (exit $ac_status); }; }; then
14944169695Skan  ac_lo=$ac_mid; break
14945169695Skanelse
14946169695Skan  echo "$as_me: failed program was:" >&5
14947169695Skansed 's/^/| /' conftest.$ac_ext >&5
14948169695Skan
14949169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
14950169695Skan		       if test $ac_mid -le $ac_hi; then
14951169695Skan			 ac_lo= ac_hi=
14952169695Skan			 break
14953169695Skan		       fi
14954169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
14955169695Skanfi
14956169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14957169695Skan  done
14958169695Skanelse
14959169695Skan  echo "$as_me: failed program was:" >&5
14960169695Skansed 's/^/| /' conftest.$ac_ext >&5
14961169695Skan
14962169695Skanac_lo= ac_hi=
14963169695Skanfi
14964169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14965169695Skanfi
14966169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967169695Skan# Binary search between lo and hi bounds.
14968169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
14969169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14970169695Skan  cat >conftest.$ac_ext <<_ACEOF
14971169695Skan/* confdefs.h.  */
14972169695Skan_ACEOF
14973169695Skancat confdefs.h >>conftest.$ac_ext
14974169695Skancat >>conftest.$ac_ext <<_ACEOF
14975169695Skan/* end confdefs.h.  */
14976169695Skan$ac_includes_default
14977169695Skanint
14978169695Skanmain ()
14979169695Skan{
14980169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14981169695Skantest_array [0] = 0
14982169695Skan
14983169695Skan  ;
14984169695Skan  return 0;
14985169695Skan}
14986169695Skan_ACEOF
14987169695Skanrm -f conftest.$ac_objext
14988169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14989169695Skan  (eval $ac_compile) 2>conftest.er1
14990169695Skan  ac_status=$?
14991169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
14992169695Skan  rm -f conftest.er1
14993169695Skan  cat conftest.err >&5
14994169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995169695Skan  (exit $ac_status); } &&
14996169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
14997169695Skan			 || test ! -s conftest.err'
14998169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999169695Skan  (eval $ac_try) 2>&5
15000169695Skan  ac_status=$?
15001169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002169695Skan  (exit $ac_status); }; } &&
15003169695Skan	 { ac_try='test -s conftest.$ac_objext'
15004169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005169695Skan  (eval $ac_try) 2>&5
15006169695Skan  ac_status=$?
15007169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008169695Skan  (exit $ac_status); }; }; then
15009169695Skan  ac_hi=$ac_mid
15010169695Skanelse
15011169695Skan  echo "$as_me: failed program was:" >&5
15012169695Skansed 's/^/| /' conftest.$ac_ext >&5
15013169695Skan
15014169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
15015169695Skanfi
15016169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017169695Skandone
15018169695Skancase $ac_lo in
15019169695Skan?*) ac_cv_sizeof_long=$ac_lo;;
15020169695Skan'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15021169695SkanSee \`config.log' for more details." >&5
15022169695Skanecho "$as_me: error: cannot compute sizeof (long), 77
15023169695SkanSee \`config.log' for more details." >&2;}
15024169695Skan   { (exit 1); exit 1; }; } ;;
15025169695Skanesac
15026169695Skanelse
15027169695Skan  if test "$cross_compiling" = yes; then
15028169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15029169695SkanSee \`config.log' for more details." >&5
15030169695Skanecho "$as_me: error: cannot run test program while cross compiling
15031169695SkanSee \`config.log' for more details." >&2;}
15032169695Skan   { (exit 1); exit 1; }; }
15033169695Skanelse
15034169695Skan  cat >conftest.$ac_ext <<_ACEOF
15035169695Skan/* confdefs.h.  */
15036169695Skan_ACEOF
15037169695Skancat confdefs.h >>conftest.$ac_ext
15038169695Skancat >>conftest.$ac_ext <<_ACEOF
15039169695Skan/* end confdefs.h.  */
15040169695Skan$ac_includes_default
15041169695Skanlong longval () { return (long) (sizeof (long)); }
15042169695Skanunsigned long ulongval () { return (long) (sizeof (long)); }
15043169695Skan#include <stdio.h>
15044169695Skan#include <stdlib.h>
15045169695Skanint
15046169695Skanmain ()
15047169695Skan{
15048169695Skan
15049169695Skan  FILE *f = fopen ("conftest.val", "w");
15050169695Skan  if (! f)
15051169695Skan    exit (1);
15052169695Skan  if (((long) (sizeof (long))) < 0)
15053169695Skan    {
15054169695Skan      long i = longval ();
15055169695Skan      if (i != ((long) (sizeof (long))))
15056169695Skan	exit (1);
15057169695Skan      fprintf (f, "%ld\n", i);
15058169695Skan    }
15059169695Skan  else
15060169695Skan    {
15061169695Skan      unsigned long i = ulongval ();
15062169695Skan      if (i != ((long) (sizeof (long))))
15063169695Skan	exit (1);
15064169695Skan      fprintf (f, "%lu\n", i);
15065169695Skan    }
15066169695Skan  exit (ferror (f) || fclose (f) != 0);
15067169695Skan
15068169695Skan  ;
15069169695Skan  return 0;
15070169695Skan}
15071169695Skan_ACEOF
15072169695Skanrm -f conftest$ac_exeext
15073169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074169695Skan  (eval $ac_link) 2>&5
15075169695Skan  ac_status=$?
15076169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15078169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079169695Skan  (eval $ac_try) 2>&5
15080169695Skan  ac_status=$?
15081169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082169695Skan  (exit $ac_status); }; }; then
15083169695Skan  ac_cv_sizeof_long=`cat conftest.val`
15084169695Skanelse
15085169695Skan  echo "$as_me: program exited with status $ac_status" >&5
15086169695Skanecho "$as_me: failed program was:" >&5
15087169695Skansed 's/^/| /' conftest.$ac_ext >&5
15088169695Skan
15089169695Skan( exit $ac_status )
15090169695Skan{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15091169695SkanSee \`config.log' for more details." >&5
15092169695Skanecho "$as_me: error: cannot compute sizeof (long), 77
15093169695SkanSee \`config.log' for more details." >&2;}
15094169695Skan   { (exit 1); exit 1; }; }
15095169695Skanfi
15096169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15097169695Skanfi
15098169695Skanfi
15099169695Skanrm -f conftest.val
15100169695Skanelse
15101169695Skan  ac_cv_sizeof_long=0
15102169695Skanfi
15103169695Skanfi
15104169695Skanecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15105169695Skanecho "${ECHO_T}$ac_cv_sizeof_long" >&6
15106169695Skancat >>confdefs.h <<_ACEOF
15107169695Skan#define SIZEOF_LONG $ac_cv_sizeof_long
15108169695Skan_ACEOF
15109169695Skan
15110169695Skan ;;
15111169695Skanesac
15112169695Skan
15113169695Skanif test $acx_cv_header_stdint = stddef.h; then
15114169695Skan  # Lacking a good header?  Test size of everything and deduce all types.
15115169695Skan  echo "$as_me:$LINENO: checking for int" >&5
15116169695Skanecho $ECHO_N "checking for int... $ECHO_C" >&6
15117169695Skanif test "${ac_cv_type_int+set}" = set; then
15118169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
15119169695Skanelse
15120169695Skan  cat >conftest.$ac_ext <<_ACEOF
15121169695Skan/* confdefs.h.  */
15122169695Skan_ACEOF
15123169695Skancat confdefs.h >>conftest.$ac_ext
15124169695Skancat >>conftest.$ac_ext <<_ACEOF
15125169695Skan/* end confdefs.h.  */
15126169695Skan$ac_includes_default
15127169695Skanint
15128169695Skanmain ()
15129169695Skan{
15130169695Skanif ((int *) 0)
15131169695Skan  return 0;
15132169695Skanif (sizeof (int))
15133169695Skan  return 0;
15134169695Skan  ;
15135169695Skan  return 0;
15136169695Skan}
15137169695Skan_ACEOF
15138169695Skanrm -f conftest.$ac_objext
15139169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140169695Skan  (eval $ac_compile) 2>conftest.er1
15141169695Skan  ac_status=$?
15142169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15143169695Skan  rm -f conftest.er1
15144169695Skan  cat conftest.err >&5
15145169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146169695Skan  (exit $ac_status); } &&
15147169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15148169695Skan			 || test ! -s conftest.err'
15149169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150169695Skan  (eval $ac_try) 2>&5
15151169695Skan  ac_status=$?
15152169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153169695Skan  (exit $ac_status); }; } &&
15154169695Skan	 { ac_try='test -s conftest.$ac_objext'
15155169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156169695Skan  (eval $ac_try) 2>&5
15157169695Skan  ac_status=$?
15158169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159169695Skan  (exit $ac_status); }; }; then
15160169695Skan  ac_cv_type_int=yes
15161169695Skanelse
15162169695Skan  echo "$as_me: failed program was:" >&5
15163169695Skansed 's/^/| /' conftest.$ac_ext >&5
15164169695Skan
15165169695Skanac_cv_type_int=no
15166169695Skanfi
15167169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15168169695Skanfi
15169169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15170169695Skanecho "${ECHO_T}$ac_cv_type_int" >&6
15171169695Skan
15172169695Skanecho "$as_me:$LINENO: checking size of int" >&5
15173169695Skanecho $ECHO_N "checking size of int... $ECHO_C" >&6
15174169695Skanif test "${ac_cv_sizeof_int+set}" = set; then
15175169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
15176169695Skanelse
15177169695Skan  if test "$ac_cv_type_int" = yes; then
15178169695Skan  # The cast to unsigned long works around a bug in the HP C Compiler
15179169695Skan  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15180169695Skan  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15181169695Skan  # This bug is HP SR number 8606223364.
15182169695Skan  if test "$cross_compiling" = yes; then
15183169695Skan  # Depending upon the size, compute the lo and hi bounds.
15184169695Skancat >conftest.$ac_ext <<_ACEOF
15185169695Skan/* confdefs.h.  */
15186169695Skan_ACEOF
15187169695Skancat confdefs.h >>conftest.$ac_ext
15188169695Skancat >>conftest.$ac_ext <<_ACEOF
15189169695Skan/* end confdefs.h.  */
15190169695Skan$ac_includes_default
15191169695Skanint
15192169695Skanmain ()
15193169695Skan{
15194169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15195169695Skantest_array [0] = 0
15196169695Skan
15197169695Skan  ;
15198169695Skan  return 0;
15199169695Skan}
15200169695Skan_ACEOF
15201169695Skanrm -f conftest.$ac_objext
15202169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203169695Skan  (eval $ac_compile) 2>conftest.er1
15204169695Skan  ac_status=$?
15205169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15206169695Skan  rm -f conftest.er1
15207169695Skan  cat conftest.err >&5
15208169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209169695Skan  (exit $ac_status); } &&
15210169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15211169695Skan			 || test ! -s conftest.err'
15212169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213169695Skan  (eval $ac_try) 2>&5
15214169695Skan  ac_status=$?
15215169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216169695Skan  (exit $ac_status); }; } &&
15217169695Skan	 { ac_try='test -s conftest.$ac_objext'
15218169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219169695Skan  (eval $ac_try) 2>&5
15220169695Skan  ac_status=$?
15221169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222169695Skan  (exit $ac_status); }; }; then
15223169695Skan  ac_lo=0 ac_mid=0
15224169695Skan  while :; do
15225169695Skan    cat >conftest.$ac_ext <<_ACEOF
15226169695Skan/* confdefs.h.  */
15227169695Skan_ACEOF
15228169695Skancat confdefs.h >>conftest.$ac_ext
15229169695Skancat >>conftest.$ac_ext <<_ACEOF
15230169695Skan/* end confdefs.h.  */
15231169695Skan$ac_includes_default
15232169695Skanint
15233169695Skanmain ()
15234169695Skan{
15235169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15236169695Skantest_array [0] = 0
15237169695Skan
15238169695Skan  ;
15239169695Skan  return 0;
15240169695Skan}
15241169695Skan_ACEOF
15242169695Skanrm -f conftest.$ac_objext
15243169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244169695Skan  (eval $ac_compile) 2>conftest.er1
15245169695Skan  ac_status=$?
15246169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15247169695Skan  rm -f conftest.er1
15248169695Skan  cat conftest.err >&5
15249169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250169695Skan  (exit $ac_status); } &&
15251169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15252169695Skan			 || test ! -s conftest.err'
15253169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254169695Skan  (eval $ac_try) 2>&5
15255169695Skan  ac_status=$?
15256169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257169695Skan  (exit $ac_status); }; } &&
15258169695Skan	 { ac_try='test -s conftest.$ac_objext'
15259169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260169695Skan  (eval $ac_try) 2>&5
15261169695Skan  ac_status=$?
15262169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263169695Skan  (exit $ac_status); }; }; then
15264169695Skan  ac_hi=$ac_mid; break
15265169695Skanelse
15266169695Skan  echo "$as_me: failed program was:" >&5
15267169695Skansed 's/^/| /' conftest.$ac_ext >&5
15268169695Skan
15269169695Skanac_lo=`expr $ac_mid + 1`
15270169695Skan		    if test $ac_lo -le $ac_mid; then
15271169695Skan		      ac_lo= ac_hi=
15272169695Skan		      break
15273169695Skan		    fi
15274169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
15275169695Skanfi
15276169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277169695Skan  done
15278169695Skanelse
15279169695Skan  echo "$as_me: failed program was:" >&5
15280169695Skansed 's/^/| /' conftest.$ac_ext >&5
15281169695Skan
15282169695Skancat >conftest.$ac_ext <<_ACEOF
15283169695Skan/* confdefs.h.  */
15284169695Skan_ACEOF
15285169695Skancat confdefs.h >>conftest.$ac_ext
15286169695Skancat >>conftest.$ac_ext <<_ACEOF
15287169695Skan/* end confdefs.h.  */
15288169695Skan$ac_includes_default
15289169695Skanint
15290169695Skanmain ()
15291169695Skan{
15292169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15293169695Skantest_array [0] = 0
15294169695Skan
15295169695Skan  ;
15296169695Skan  return 0;
15297169695Skan}
15298169695Skan_ACEOF
15299169695Skanrm -f conftest.$ac_objext
15300169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301169695Skan  (eval $ac_compile) 2>conftest.er1
15302169695Skan  ac_status=$?
15303169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15304169695Skan  rm -f conftest.er1
15305169695Skan  cat conftest.err >&5
15306169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307169695Skan  (exit $ac_status); } &&
15308169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15309169695Skan			 || test ! -s conftest.err'
15310169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311169695Skan  (eval $ac_try) 2>&5
15312169695Skan  ac_status=$?
15313169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314169695Skan  (exit $ac_status); }; } &&
15315169695Skan	 { ac_try='test -s conftest.$ac_objext'
15316169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317169695Skan  (eval $ac_try) 2>&5
15318169695Skan  ac_status=$?
15319169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320169695Skan  (exit $ac_status); }; }; then
15321169695Skan  ac_hi=-1 ac_mid=-1
15322169695Skan  while :; do
15323169695Skan    cat >conftest.$ac_ext <<_ACEOF
15324169695Skan/* confdefs.h.  */
15325169695Skan_ACEOF
15326169695Skancat confdefs.h >>conftest.$ac_ext
15327169695Skancat >>conftest.$ac_ext <<_ACEOF
15328169695Skan/* end confdefs.h.  */
15329169695Skan$ac_includes_default
15330169695Skanint
15331169695Skanmain ()
15332169695Skan{
15333169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15334169695Skantest_array [0] = 0
15335169695Skan
15336169695Skan  ;
15337169695Skan  return 0;
15338169695Skan}
15339169695Skan_ACEOF
15340169695Skanrm -f conftest.$ac_objext
15341169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342169695Skan  (eval $ac_compile) 2>conftest.er1
15343169695Skan  ac_status=$?
15344169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15345169695Skan  rm -f conftest.er1
15346169695Skan  cat conftest.err >&5
15347169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348169695Skan  (exit $ac_status); } &&
15349169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15350169695Skan			 || test ! -s conftest.err'
15351169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352169695Skan  (eval $ac_try) 2>&5
15353169695Skan  ac_status=$?
15354169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355169695Skan  (exit $ac_status); }; } &&
15356169695Skan	 { ac_try='test -s conftest.$ac_objext'
15357169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358169695Skan  (eval $ac_try) 2>&5
15359169695Skan  ac_status=$?
15360169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361169695Skan  (exit $ac_status); }; }; then
15362169695Skan  ac_lo=$ac_mid; break
15363169695Skanelse
15364169695Skan  echo "$as_me: failed program was:" >&5
15365169695Skansed 's/^/| /' conftest.$ac_ext >&5
15366169695Skan
15367169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
15368169695Skan		       if test $ac_mid -le $ac_hi; then
15369169695Skan			 ac_lo= ac_hi=
15370169695Skan			 break
15371169695Skan		       fi
15372169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
15373169695Skanfi
15374169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15375169695Skan  done
15376169695Skanelse
15377169695Skan  echo "$as_me: failed program was:" >&5
15378169695Skansed 's/^/| /' conftest.$ac_ext >&5
15379169695Skan
15380169695Skanac_lo= ac_hi=
15381169695Skanfi
15382169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383169695Skanfi
15384169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385169695Skan# Binary search between lo and hi bounds.
15386169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
15387169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15388169695Skan  cat >conftest.$ac_ext <<_ACEOF
15389169695Skan/* confdefs.h.  */
15390169695Skan_ACEOF
15391169695Skancat confdefs.h >>conftest.$ac_ext
15392169695Skancat >>conftest.$ac_ext <<_ACEOF
15393169695Skan/* end confdefs.h.  */
15394169695Skan$ac_includes_default
15395169695Skanint
15396169695Skanmain ()
15397169695Skan{
15398169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15399169695Skantest_array [0] = 0
15400169695Skan
15401169695Skan  ;
15402169695Skan  return 0;
15403169695Skan}
15404169695Skan_ACEOF
15405169695Skanrm -f conftest.$ac_objext
15406169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407169695Skan  (eval $ac_compile) 2>conftest.er1
15408169695Skan  ac_status=$?
15409169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15410169695Skan  rm -f conftest.er1
15411169695Skan  cat conftest.err >&5
15412169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413169695Skan  (exit $ac_status); } &&
15414169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15415169695Skan			 || test ! -s conftest.err'
15416169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417169695Skan  (eval $ac_try) 2>&5
15418169695Skan  ac_status=$?
15419169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420169695Skan  (exit $ac_status); }; } &&
15421169695Skan	 { ac_try='test -s conftest.$ac_objext'
15422169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423169695Skan  (eval $ac_try) 2>&5
15424169695Skan  ac_status=$?
15425169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426169695Skan  (exit $ac_status); }; }; then
15427169695Skan  ac_hi=$ac_mid
15428169695Skanelse
15429169695Skan  echo "$as_me: failed program was:" >&5
15430169695Skansed 's/^/| /' conftest.$ac_ext >&5
15431169695Skan
15432169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
15433169695Skanfi
15434169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15435169695Skandone
15436169695Skancase $ac_lo in
15437169695Skan?*) ac_cv_sizeof_int=$ac_lo;;
15438169695Skan'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15439169695SkanSee \`config.log' for more details." >&5
15440169695Skanecho "$as_me: error: cannot compute sizeof (int), 77
15441169695SkanSee \`config.log' for more details." >&2;}
15442169695Skan   { (exit 1); exit 1; }; } ;;
15443169695Skanesac
15444169695Skanelse
15445169695Skan  if test "$cross_compiling" = yes; then
15446169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15447169695SkanSee \`config.log' for more details." >&5
15448169695Skanecho "$as_me: error: cannot run test program while cross compiling
15449169695SkanSee \`config.log' for more details." >&2;}
15450169695Skan   { (exit 1); exit 1; }; }
15451169695Skanelse
15452169695Skan  cat >conftest.$ac_ext <<_ACEOF
15453169695Skan/* confdefs.h.  */
15454169695Skan_ACEOF
15455169695Skancat confdefs.h >>conftest.$ac_ext
15456169695Skancat >>conftest.$ac_ext <<_ACEOF
15457169695Skan/* end confdefs.h.  */
15458169695Skan$ac_includes_default
15459169695Skanlong longval () { return (long) (sizeof (int)); }
15460169695Skanunsigned long ulongval () { return (long) (sizeof (int)); }
15461169695Skan#include <stdio.h>
15462169695Skan#include <stdlib.h>
15463169695Skanint
15464169695Skanmain ()
15465169695Skan{
15466169695Skan
15467169695Skan  FILE *f = fopen ("conftest.val", "w");
15468169695Skan  if (! f)
15469169695Skan    exit (1);
15470169695Skan  if (((long) (sizeof (int))) < 0)
15471169695Skan    {
15472169695Skan      long i = longval ();
15473169695Skan      if (i != ((long) (sizeof (int))))
15474169695Skan	exit (1);
15475169695Skan      fprintf (f, "%ld\n", i);
15476169695Skan    }
15477169695Skan  else
15478169695Skan    {
15479169695Skan      unsigned long i = ulongval ();
15480169695Skan      if (i != ((long) (sizeof (int))))
15481169695Skan	exit (1);
15482169695Skan      fprintf (f, "%lu\n", i);
15483169695Skan    }
15484169695Skan  exit (ferror (f) || fclose (f) != 0);
15485169695Skan
15486169695Skan  ;
15487169695Skan  return 0;
15488169695Skan}
15489169695Skan_ACEOF
15490169695Skanrm -f conftest$ac_exeext
15491169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492169695Skan  (eval $ac_link) 2>&5
15493169695Skan  ac_status=$?
15494169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15496169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497169695Skan  (eval $ac_try) 2>&5
15498169695Skan  ac_status=$?
15499169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500169695Skan  (exit $ac_status); }; }; then
15501169695Skan  ac_cv_sizeof_int=`cat conftest.val`
15502169695Skanelse
15503169695Skan  echo "$as_me: program exited with status $ac_status" >&5
15504169695Skanecho "$as_me: failed program was:" >&5
15505169695Skansed 's/^/| /' conftest.$ac_ext >&5
15506169695Skan
15507169695Skan( exit $ac_status )
15508169695Skan{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15509169695SkanSee \`config.log' for more details." >&5
15510169695Skanecho "$as_me: error: cannot compute sizeof (int), 77
15511169695SkanSee \`config.log' for more details." >&2;}
15512169695Skan   { (exit 1); exit 1; }; }
15513169695Skanfi
15514169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15515169695Skanfi
15516169695Skanfi
15517169695Skanrm -f conftest.val
15518169695Skanelse
15519169695Skan  ac_cv_sizeof_int=0
15520169695Skanfi
15521169695Skanfi
15522169695Skanecho "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15523169695Skanecho "${ECHO_T}$ac_cv_sizeof_int" >&6
15524169695Skancat >>confdefs.h <<_ACEOF
15525169695Skan#define SIZEOF_INT $ac_cv_sizeof_int
15526169695Skan_ACEOF
15527169695Skan
15528169695Skan
15529169695Skan  echo "$as_me:$LINENO: checking for short" >&5
15530169695Skanecho $ECHO_N "checking for short... $ECHO_C" >&6
15531169695Skanif test "${ac_cv_type_short+set}" = set; then
15532169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
15533169695Skanelse
15534169695Skan  cat >conftest.$ac_ext <<_ACEOF
15535169695Skan/* confdefs.h.  */
15536169695Skan_ACEOF
15537169695Skancat confdefs.h >>conftest.$ac_ext
15538169695Skancat >>conftest.$ac_ext <<_ACEOF
15539169695Skan/* end confdefs.h.  */
15540169695Skan$ac_includes_default
15541169695Skanint
15542169695Skanmain ()
15543169695Skan{
15544169695Skanif ((short *) 0)
15545169695Skan  return 0;
15546169695Skanif (sizeof (short))
15547169695Skan  return 0;
15548169695Skan  ;
15549169695Skan  return 0;
15550169695Skan}
15551169695Skan_ACEOF
15552169695Skanrm -f conftest.$ac_objext
15553169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554169695Skan  (eval $ac_compile) 2>conftest.er1
15555169695Skan  ac_status=$?
15556169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15557169695Skan  rm -f conftest.er1
15558169695Skan  cat conftest.err >&5
15559169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560169695Skan  (exit $ac_status); } &&
15561169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15562169695Skan			 || test ! -s conftest.err'
15563169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564169695Skan  (eval $ac_try) 2>&5
15565169695Skan  ac_status=$?
15566169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567169695Skan  (exit $ac_status); }; } &&
15568169695Skan	 { ac_try='test -s conftest.$ac_objext'
15569169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570169695Skan  (eval $ac_try) 2>&5
15571169695Skan  ac_status=$?
15572169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573169695Skan  (exit $ac_status); }; }; then
15574169695Skan  ac_cv_type_short=yes
15575169695Skanelse
15576169695Skan  echo "$as_me: failed program was:" >&5
15577169695Skansed 's/^/| /' conftest.$ac_ext >&5
15578169695Skan
15579169695Skanac_cv_type_short=no
15580169695Skanfi
15581169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582169695Skanfi
15583169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15584169695Skanecho "${ECHO_T}$ac_cv_type_short" >&6
15585169695Skan
15586169695Skanecho "$as_me:$LINENO: checking size of short" >&5
15587169695Skanecho $ECHO_N "checking size of short... $ECHO_C" >&6
15588169695Skanif test "${ac_cv_sizeof_short+set}" = set; then
15589169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
15590169695Skanelse
15591169695Skan  if test "$ac_cv_type_short" = yes; then
15592169695Skan  # The cast to unsigned long works around a bug in the HP C Compiler
15593169695Skan  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15594169695Skan  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15595169695Skan  # This bug is HP SR number 8606223364.
15596169695Skan  if test "$cross_compiling" = yes; then
15597169695Skan  # Depending upon the size, compute the lo and hi bounds.
15598169695Skancat >conftest.$ac_ext <<_ACEOF
15599169695Skan/* confdefs.h.  */
15600169695Skan_ACEOF
15601169695Skancat confdefs.h >>conftest.$ac_ext
15602169695Skancat >>conftest.$ac_ext <<_ACEOF
15603169695Skan/* end confdefs.h.  */
15604169695Skan$ac_includes_default
15605169695Skanint
15606169695Skanmain ()
15607169695Skan{
15608169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15609169695Skantest_array [0] = 0
15610169695Skan
15611169695Skan  ;
15612169695Skan  return 0;
15613169695Skan}
15614169695Skan_ACEOF
15615169695Skanrm -f conftest.$ac_objext
15616169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617169695Skan  (eval $ac_compile) 2>conftest.er1
15618169695Skan  ac_status=$?
15619169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15620169695Skan  rm -f conftest.er1
15621169695Skan  cat conftest.err >&5
15622169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623169695Skan  (exit $ac_status); } &&
15624169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15625169695Skan			 || test ! -s conftest.err'
15626169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627169695Skan  (eval $ac_try) 2>&5
15628169695Skan  ac_status=$?
15629169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630169695Skan  (exit $ac_status); }; } &&
15631169695Skan	 { ac_try='test -s conftest.$ac_objext'
15632169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633169695Skan  (eval $ac_try) 2>&5
15634169695Skan  ac_status=$?
15635169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636169695Skan  (exit $ac_status); }; }; then
15637169695Skan  ac_lo=0 ac_mid=0
15638169695Skan  while :; do
15639169695Skan    cat >conftest.$ac_ext <<_ACEOF
15640169695Skan/* confdefs.h.  */
15641169695Skan_ACEOF
15642169695Skancat confdefs.h >>conftest.$ac_ext
15643169695Skancat >>conftest.$ac_ext <<_ACEOF
15644169695Skan/* end confdefs.h.  */
15645169695Skan$ac_includes_default
15646169695Skanint
15647169695Skanmain ()
15648169695Skan{
15649169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15650169695Skantest_array [0] = 0
15651169695Skan
15652169695Skan  ;
15653169695Skan  return 0;
15654169695Skan}
15655169695Skan_ACEOF
15656169695Skanrm -f conftest.$ac_objext
15657169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658169695Skan  (eval $ac_compile) 2>conftest.er1
15659169695Skan  ac_status=$?
15660169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15661169695Skan  rm -f conftest.er1
15662169695Skan  cat conftest.err >&5
15663169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664169695Skan  (exit $ac_status); } &&
15665169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15666169695Skan			 || test ! -s conftest.err'
15667169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668169695Skan  (eval $ac_try) 2>&5
15669169695Skan  ac_status=$?
15670169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671169695Skan  (exit $ac_status); }; } &&
15672169695Skan	 { ac_try='test -s conftest.$ac_objext'
15673169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674169695Skan  (eval $ac_try) 2>&5
15675169695Skan  ac_status=$?
15676169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677169695Skan  (exit $ac_status); }; }; then
15678169695Skan  ac_hi=$ac_mid; break
15679169695Skanelse
15680169695Skan  echo "$as_me: failed program was:" >&5
15681169695Skansed 's/^/| /' conftest.$ac_ext >&5
15682169695Skan
15683169695Skanac_lo=`expr $ac_mid + 1`
15684169695Skan		    if test $ac_lo -le $ac_mid; then
15685169695Skan		      ac_lo= ac_hi=
15686169695Skan		      break
15687169695Skan		    fi
15688169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
15689169695Skanfi
15690169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691169695Skan  done
15692169695Skanelse
15693169695Skan  echo "$as_me: failed program was:" >&5
15694169695Skansed 's/^/| /' conftest.$ac_ext >&5
15695169695Skan
15696169695Skancat >conftest.$ac_ext <<_ACEOF
15697169695Skan/* confdefs.h.  */
15698169695Skan_ACEOF
15699169695Skancat confdefs.h >>conftest.$ac_ext
15700169695Skancat >>conftest.$ac_ext <<_ACEOF
15701169695Skan/* end confdefs.h.  */
15702169695Skan$ac_includes_default
15703169695Skanint
15704169695Skanmain ()
15705169695Skan{
15706169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15707169695Skantest_array [0] = 0
15708169695Skan
15709169695Skan  ;
15710169695Skan  return 0;
15711169695Skan}
15712169695Skan_ACEOF
15713169695Skanrm -f conftest.$ac_objext
15714169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715169695Skan  (eval $ac_compile) 2>conftest.er1
15716169695Skan  ac_status=$?
15717169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15718169695Skan  rm -f conftest.er1
15719169695Skan  cat conftest.err >&5
15720169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721169695Skan  (exit $ac_status); } &&
15722169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15723169695Skan			 || test ! -s conftest.err'
15724169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725169695Skan  (eval $ac_try) 2>&5
15726169695Skan  ac_status=$?
15727169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728169695Skan  (exit $ac_status); }; } &&
15729169695Skan	 { ac_try='test -s conftest.$ac_objext'
15730169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731169695Skan  (eval $ac_try) 2>&5
15732169695Skan  ac_status=$?
15733169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734169695Skan  (exit $ac_status); }; }; then
15735169695Skan  ac_hi=-1 ac_mid=-1
15736169695Skan  while :; do
15737169695Skan    cat >conftest.$ac_ext <<_ACEOF
15738169695Skan/* confdefs.h.  */
15739169695Skan_ACEOF
15740169695Skancat confdefs.h >>conftest.$ac_ext
15741169695Skancat >>conftest.$ac_ext <<_ACEOF
15742169695Skan/* end confdefs.h.  */
15743169695Skan$ac_includes_default
15744169695Skanint
15745169695Skanmain ()
15746169695Skan{
15747169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15748169695Skantest_array [0] = 0
15749169695Skan
15750169695Skan  ;
15751169695Skan  return 0;
15752169695Skan}
15753169695Skan_ACEOF
15754169695Skanrm -f conftest.$ac_objext
15755169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756169695Skan  (eval $ac_compile) 2>conftest.er1
15757169695Skan  ac_status=$?
15758169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15759169695Skan  rm -f conftest.er1
15760169695Skan  cat conftest.err >&5
15761169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762169695Skan  (exit $ac_status); } &&
15763169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15764169695Skan			 || test ! -s conftest.err'
15765169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766169695Skan  (eval $ac_try) 2>&5
15767169695Skan  ac_status=$?
15768169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769169695Skan  (exit $ac_status); }; } &&
15770169695Skan	 { ac_try='test -s conftest.$ac_objext'
15771169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772169695Skan  (eval $ac_try) 2>&5
15773169695Skan  ac_status=$?
15774169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775169695Skan  (exit $ac_status); }; }; then
15776169695Skan  ac_lo=$ac_mid; break
15777169695Skanelse
15778169695Skan  echo "$as_me: failed program was:" >&5
15779169695Skansed 's/^/| /' conftest.$ac_ext >&5
15780169695Skan
15781169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
15782169695Skan		       if test $ac_mid -le $ac_hi; then
15783169695Skan			 ac_lo= ac_hi=
15784169695Skan			 break
15785169695Skan		       fi
15786169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
15787169695Skanfi
15788169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15789169695Skan  done
15790169695Skanelse
15791169695Skan  echo "$as_me: failed program was:" >&5
15792169695Skansed 's/^/| /' conftest.$ac_ext >&5
15793169695Skan
15794169695Skanac_lo= ac_hi=
15795169695Skanfi
15796169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15797169695Skanfi
15798169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799169695Skan# Binary search between lo and hi bounds.
15800169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
15801169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15802169695Skan  cat >conftest.$ac_ext <<_ACEOF
15803169695Skan/* confdefs.h.  */
15804169695Skan_ACEOF
15805169695Skancat confdefs.h >>conftest.$ac_ext
15806169695Skancat >>conftest.$ac_ext <<_ACEOF
15807169695Skan/* end confdefs.h.  */
15808169695Skan$ac_includes_default
15809169695Skanint
15810169695Skanmain ()
15811169695Skan{
15812169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15813169695Skantest_array [0] = 0
15814169695Skan
15815169695Skan  ;
15816169695Skan  return 0;
15817169695Skan}
15818169695Skan_ACEOF
15819169695Skanrm -f conftest.$ac_objext
15820169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821169695Skan  (eval $ac_compile) 2>conftest.er1
15822169695Skan  ac_status=$?
15823169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15824169695Skan  rm -f conftest.er1
15825169695Skan  cat conftest.err >&5
15826169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827169695Skan  (exit $ac_status); } &&
15828169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15829169695Skan			 || test ! -s conftest.err'
15830169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831169695Skan  (eval $ac_try) 2>&5
15832169695Skan  ac_status=$?
15833169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834169695Skan  (exit $ac_status); }; } &&
15835169695Skan	 { ac_try='test -s conftest.$ac_objext'
15836169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837169695Skan  (eval $ac_try) 2>&5
15838169695Skan  ac_status=$?
15839169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840169695Skan  (exit $ac_status); }; }; then
15841169695Skan  ac_hi=$ac_mid
15842169695Skanelse
15843169695Skan  echo "$as_me: failed program was:" >&5
15844169695Skansed 's/^/| /' conftest.$ac_ext >&5
15845169695Skan
15846169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
15847169695Skanfi
15848169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849169695Skandone
15850169695Skancase $ac_lo in
15851169695Skan?*) ac_cv_sizeof_short=$ac_lo;;
15852169695Skan'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15853169695SkanSee \`config.log' for more details." >&5
15854169695Skanecho "$as_me: error: cannot compute sizeof (short), 77
15855169695SkanSee \`config.log' for more details." >&2;}
15856169695Skan   { (exit 1); exit 1; }; } ;;
15857169695Skanesac
15858169695Skanelse
15859169695Skan  if test "$cross_compiling" = yes; then
15860169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15861169695SkanSee \`config.log' for more details." >&5
15862169695Skanecho "$as_me: error: cannot run test program while cross compiling
15863169695SkanSee \`config.log' for more details." >&2;}
15864169695Skan   { (exit 1); exit 1; }; }
15865169695Skanelse
15866169695Skan  cat >conftest.$ac_ext <<_ACEOF
15867169695Skan/* confdefs.h.  */
15868169695Skan_ACEOF
15869169695Skancat confdefs.h >>conftest.$ac_ext
15870169695Skancat >>conftest.$ac_ext <<_ACEOF
15871169695Skan/* end confdefs.h.  */
15872169695Skan$ac_includes_default
15873169695Skanlong longval () { return (long) (sizeof (short)); }
15874169695Skanunsigned long ulongval () { return (long) (sizeof (short)); }
15875169695Skan#include <stdio.h>
15876169695Skan#include <stdlib.h>
15877169695Skanint
15878169695Skanmain ()
15879169695Skan{
15880169695Skan
15881169695Skan  FILE *f = fopen ("conftest.val", "w");
15882169695Skan  if (! f)
15883169695Skan    exit (1);
15884169695Skan  if (((long) (sizeof (short))) < 0)
15885169695Skan    {
15886169695Skan      long i = longval ();
15887169695Skan      if (i != ((long) (sizeof (short))))
15888169695Skan	exit (1);
15889169695Skan      fprintf (f, "%ld\n", i);
15890169695Skan    }
15891169695Skan  else
15892169695Skan    {
15893169695Skan      unsigned long i = ulongval ();
15894169695Skan      if (i != ((long) (sizeof (short))))
15895169695Skan	exit (1);
15896169695Skan      fprintf (f, "%lu\n", i);
15897169695Skan    }
15898169695Skan  exit (ferror (f) || fclose (f) != 0);
15899169695Skan
15900169695Skan  ;
15901169695Skan  return 0;
15902169695Skan}
15903169695Skan_ACEOF
15904169695Skanrm -f conftest$ac_exeext
15905169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906169695Skan  (eval $ac_link) 2>&5
15907169695Skan  ac_status=$?
15908169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15910169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911169695Skan  (eval $ac_try) 2>&5
15912169695Skan  ac_status=$?
15913169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914169695Skan  (exit $ac_status); }; }; then
15915169695Skan  ac_cv_sizeof_short=`cat conftest.val`
15916169695Skanelse
15917169695Skan  echo "$as_me: program exited with status $ac_status" >&5
15918169695Skanecho "$as_me: failed program was:" >&5
15919169695Skansed 's/^/| /' conftest.$ac_ext >&5
15920169695Skan
15921169695Skan( exit $ac_status )
15922169695Skan{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15923169695SkanSee \`config.log' for more details." >&5
15924169695Skanecho "$as_me: error: cannot compute sizeof (short), 77
15925169695SkanSee \`config.log' for more details." >&2;}
15926169695Skan   { (exit 1); exit 1; }; }
15927169695Skanfi
15928169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929169695Skanfi
15930169695Skanfi
15931169695Skanrm -f conftest.val
15932169695Skanelse
15933169695Skan  ac_cv_sizeof_short=0
15934169695Skanfi
15935169695Skanfi
15936169695Skanecho "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15937169695Skanecho "${ECHO_T}$ac_cv_sizeof_short" >&6
15938169695Skancat >>confdefs.h <<_ACEOF
15939169695Skan#define SIZEOF_SHORT $ac_cv_sizeof_short
15940169695Skan_ACEOF
15941169695Skan
15942169695Skan
15943169695Skan  echo "$as_me:$LINENO: checking for char" >&5
15944169695Skanecho $ECHO_N "checking for char... $ECHO_C" >&6
15945169695Skanif test "${ac_cv_type_char+set}" = set; then
15946169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
15947169695Skanelse
15948169695Skan  cat >conftest.$ac_ext <<_ACEOF
15949169695Skan/* confdefs.h.  */
15950169695Skan_ACEOF
15951169695Skancat confdefs.h >>conftest.$ac_ext
15952169695Skancat >>conftest.$ac_ext <<_ACEOF
15953169695Skan/* end confdefs.h.  */
15954169695Skan$ac_includes_default
15955169695Skanint
15956169695Skanmain ()
15957169695Skan{
15958169695Skanif ((char *) 0)
15959169695Skan  return 0;
15960169695Skanif (sizeof (char))
15961169695Skan  return 0;
15962169695Skan  ;
15963169695Skan  return 0;
15964169695Skan}
15965169695Skan_ACEOF
15966169695Skanrm -f conftest.$ac_objext
15967169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968169695Skan  (eval $ac_compile) 2>conftest.er1
15969169695Skan  ac_status=$?
15970169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
15971169695Skan  rm -f conftest.er1
15972169695Skan  cat conftest.err >&5
15973169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974169695Skan  (exit $ac_status); } &&
15975169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
15976169695Skan			 || test ! -s conftest.err'
15977169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978169695Skan  (eval $ac_try) 2>&5
15979169695Skan  ac_status=$?
15980169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981169695Skan  (exit $ac_status); }; } &&
15982169695Skan	 { ac_try='test -s conftest.$ac_objext'
15983169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984169695Skan  (eval $ac_try) 2>&5
15985169695Skan  ac_status=$?
15986169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987169695Skan  (exit $ac_status); }; }; then
15988169695Skan  ac_cv_type_char=yes
15989169695Skanelse
15990169695Skan  echo "$as_me: failed program was:" >&5
15991169695Skansed 's/^/| /' conftest.$ac_ext >&5
15992169695Skan
15993169695Skanac_cv_type_char=no
15994169695Skanfi
15995169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996169695Skanfi
15997169695Skanecho "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15998169695Skanecho "${ECHO_T}$ac_cv_type_char" >&6
15999169695Skan
16000169695Skanecho "$as_me:$LINENO: checking size of char" >&5
16001169695Skanecho $ECHO_N "checking size of char... $ECHO_C" >&6
16002169695Skanif test "${ac_cv_sizeof_char+set}" = set; then
16003169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
16004169695Skanelse
16005169695Skan  if test "$ac_cv_type_char" = yes; then
16006169695Skan  # The cast to unsigned long works around a bug in the HP C Compiler
16007169695Skan  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16008169695Skan  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16009169695Skan  # This bug is HP SR number 8606223364.
16010169695Skan  if test "$cross_compiling" = yes; then
16011169695Skan  # Depending upon the size, compute the lo and hi bounds.
16012169695Skancat >conftest.$ac_ext <<_ACEOF
16013169695Skan/* confdefs.h.  */
16014169695Skan_ACEOF
16015169695Skancat confdefs.h >>conftest.$ac_ext
16016169695Skancat >>conftest.$ac_ext <<_ACEOF
16017169695Skan/* end confdefs.h.  */
16018169695Skan$ac_includes_default
16019169695Skanint
16020169695Skanmain ()
16021169695Skan{
16022169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16023169695Skantest_array [0] = 0
16024169695Skan
16025169695Skan  ;
16026169695Skan  return 0;
16027169695Skan}
16028169695Skan_ACEOF
16029169695Skanrm -f conftest.$ac_objext
16030169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031169695Skan  (eval $ac_compile) 2>conftest.er1
16032169695Skan  ac_status=$?
16033169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16034169695Skan  rm -f conftest.er1
16035169695Skan  cat conftest.err >&5
16036169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037169695Skan  (exit $ac_status); } &&
16038169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16039169695Skan			 || test ! -s conftest.err'
16040169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041169695Skan  (eval $ac_try) 2>&5
16042169695Skan  ac_status=$?
16043169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044169695Skan  (exit $ac_status); }; } &&
16045169695Skan	 { ac_try='test -s conftest.$ac_objext'
16046169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047169695Skan  (eval $ac_try) 2>&5
16048169695Skan  ac_status=$?
16049169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050169695Skan  (exit $ac_status); }; }; then
16051169695Skan  ac_lo=0 ac_mid=0
16052169695Skan  while :; do
16053169695Skan    cat >conftest.$ac_ext <<_ACEOF
16054169695Skan/* confdefs.h.  */
16055169695Skan_ACEOF
16056169695Skancat confdefs.h >>conftest.$ac_ext
16057169695Skancat >>conftest.$ac_ext <<_ACEOF
16058169695Skan/* end confdefs.h.  */
16059169695Skan$ac_includes_default
16060169695Skanint
16061169695Skanmain ()
16062169695Skan{
16063169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16064169695Skantest_array [0] = 0
16065169695Skan
16066169695Skan  ;
16067169695Skan  return 0;
16068169695Skan}
16069169695Skan_ACEOF
16070169695Skanrm -f conftest.$ac_objext
16071169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072169695Skan  (eval $ac_compile) 2>conftest.er1
16073169695Skan  ac_status=$?
16074169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16075169695Skan  rm -f conftest.er1
16076169695Skan  cat conftest.err >&5
16077169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078169695Skan  (exit $ac_status); } &&
16079169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16080169695Skan			 || test ! -s conftest.err'
16081169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082169695Skan  (eval $ac_try) 2>&5
16083169695Skan  ac_status=$?
16084169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085169695Skan  (exit $ac_status); }; } &&
16086169695Skan	 { ac_try='test -s conftest.$ac_objext'
16087169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088169695Skan  (eval $ac_try) 2>&5
16089169695Skan  ac_status=$?
16090169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091169695Skan  (exit $ac_status); }; }; then
16092169695Skan  ac_hi=$ac_mid; break
16093169695Skanelse
16094169695Skan  echo "$as_me: failed program was:" >&5
16095169695Skansed 's/^/| /' conftest.$ac_ext >&5
16096169695Skan
16097169695Skanac_lo=`expr $ac_mid + 1`
16098169695Skan		    if test $ac_lo -le $ac_mid; then
16099169695Skan		      ac_lo= ac_hi=
16100169695Skan		      break
16101169695Skan		    fi
16102169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
16103169695Skanfi
16104169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16105169695Skan  done
16106169695Skanelse
16107169695Skan  echo "$as_me: failed program was:" >&5
16108169695Skansed 's/^/| /' conftest.$ac_ext >&5
16109169695Skan
16110169695Skancat >conftest.$ac_ext <<_ACEOF
16111169695Skan/* confdefs.h.  */
16112169695Skan_ACEOF
16113169695Skancat confdefs.h >>conftest.$ac_ext
16114169695Skancat >>conftest.$ac_ext <<_ACEOF
16115169695Skan/* end confdefs.h.  */
16116169695Skan$ac_includes_default
16117169695Skanint
16118169695Skanmain ()
16119169695Skan{
16120169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16121169695Skantest_array [0] = 0
16122169695Skan
16123169695Skan  ;
16124169695Skan  return 0;
16125169695Skan}
16126169695Skan_ACEOF
16127169695Skanrm -f conftest.$ac_objext
16128169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129169695Skan  (eval $ac_compile) 2>conftest.er1
16130169695Skan  ac_status=$?
16131169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16132169695Skan  rm -f conftest.er1
16133169695Skan  cat conftest.err >&5
16134169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135169695Skan  (exit $ac_status); } &&
16136169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16137169695Skan			 || test ! -s conftest.err'
16138169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139169695Skan  (eval $ac_try) 2>&5
16140169695Skan  ac_status=$?
16141169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142169695Skan  (exit $ac_status); }; } &&
16143169695Skan	 { ac_try='test -s conftest.$ac_objext'
16144169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145169695Skan  (eval $ac_try) 2>&5
16146169695Skan  ac_status=$?
16147169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148169695Skan  (exit $ac_status); }; }; then
16149169695Skan  ac_hi=-1 ac_mid=-1
16150169695Skan  while :; do
16151169695Skan    cat >conftest.$ac_ext <<_ACEOF
16152169695Skan/* confdefs.h.  */
16153169695Skan_ACEOF
16154169695Skancat confdefs.h >>conftest.$ac_ext
16155169695Skancat >>conftest.$ac_ext <<_ACEOF
16156169695Skan/* end confdefs.h.  */
16157169695Skan$ac_includes_default
16158169695Skanint
16159169695Skanmain ()
16160169695Skan{
16161169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16162169695Skantest_array [0] = 0
16163169695Skan
16164169695Skan  ;
16165169695Skan  return 0;
16166169695Skan}
16167169695Skan_ACEOF
16168169695Skanrm -f conftest.$ac_objext
16169169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170169695Skan  (eval $ac_compile) 2>conftest.er1
16171169695Skan  ac_status=$?
16172169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16173169695Skan  rm -f conftest.er1
16174169695Skan  cat conftest.err >&5
16175169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176169695Skan  (exit $ac_status); } &&
16177169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16178169695Skan			 || test ! -s conftest.err'
16179169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180169695Skan  (eval $ac_try) 2>&5
16181169695Skan  ac_status=$?
16182169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183169695Skan  (exit $ac_status); }; } &&
16184169695Skan	 { ac_try='test -s conftest.$ac_objext'
16185169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186169695Skan  (eval $ac_try) 2>&5
16187169695Skan  ac_status=$?
16188169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189169695Skan  (exit $ac_status); }; }; then
16190169695Skan  ac_lo=$ac_mid; break
16191169695Skanelse
16192169695Skan  echo "$as_me: failed program was:" >&5
16193169695Skansed 's/^/| /' conftest.$ac_ext >&5
16194169695Skan
16195169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
16196169695Skan		       if test $ac_mid -le $ac_hi; then
16197169695Skan			 ac_lo= ac_hi=
16198169695Skan			 break
16199169695Skan		       fi
16200169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
16201169695Skanfi
16202169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16203169695Skan  done
16204169695Skanelse
16205169695Skan  echo "$as_me: failed program was:" >&5
16206169695Skansed 's/^/| /' conftest.$ac_ext >&5
16207169695Skan
16208169695Skanac_lo= ac_hi=
16209169695Skanfi
16210169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16211169695Skanfi
16212169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213169695Skan# Binary search between lo and hi bounds.
16214169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
16215169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16216169695Skan  cat >conftest.$ac_ext <<_ACEOF
16217169695Skan/* confdefs.h.  */
16218169695Skan_ACEOF
16219169695Skancat confdefs.h >>conftest.$ac_ext
16220169695Skancat >>conftest.$ac_ext <<_ACEOF
16221169695Skan/* end confdefs.h.  */
16222169695Skan$ac_includes_default
16223169695Skanint
16224169695Skanmain ()
16225169695Skan{
16226169695Skanstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16227169695Skantest_array [0] = 0
16228169695Skan
16229169695Skan  ;
16230169695Skan  return 0;
16231169695Skan}
16232169695Skan_ACEOF
16233169695Skanrm -f conftest.$ac_objext
16234169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235169695Skan  (eval $ac_compile) 2>conftest.er1
16236169695Skan  ac_status=$?
16237169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16238169695Skan  rm -f conftest.er1
16239169695Skan  cat conftest.err >&5
16240169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241169695Skan  (exit $ac_status); } &&
16242169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16243169695Skan			 || test ! -s conftest.err'
16244169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245169695Skan  (eval $ac_try) 2>&5
16246169695Skan  ac_status=$?
16247169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248169695Skan  (exit $ac_status); }; } &&
16249169695Skan	 { ac_try='test -s conftest.$ac_objext'
16250169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251169695Skan  (eval $ac_try) 2>&5
16252169695Skan  ac_status=$?
16253169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254169695Skan  (exit $ac_status); }; }; then
16255169695Skan  ac_hi=$ac_mid
16256169695Skanelse
16257169695Skan  echo "$as_me: failed program was:" >&5
16258169695Skansed 's/^/| /' conftest.$ac_ext >&5
16259169695Skan
16260169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
16261169695Skanfi
16262169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263169695Skandone
16264169695Skancase $ac_lo in
16265169695Skan?*) ac_cv_sizeof_char=$ac_lo;;
16266169695Skan'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16267169695SkanSee \`config.log' for more details." >&5
16268169695Skanecho "$as_me: error: cannot compute sizeof (char), 77
16269169695SkanSee \`config.log' for more details." >&2;}
16270169695Skan   { (exit 1); exit 1; }; } ;;
16271169695Skanesac
16272169695Skanelse
16273169695Skan  if test "$cross_compiling" = yes; then
16274169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16275169695SkanSee \`config.log' for more details." >&5
16276169695Skanecho "$as_me: error: cannot run test program while cross compiling
16277169695SkanSee \`config.log' for more details." >&2;}
16278169695Skan   { (exit 1); exit 1; }; }
16279169695Skanelse
16280169695Skan  cat >conftest.$ac_ext <<_ACEOF
16281169695Skan/* confdefs.h.  */
16282169695Skan_ACEOF
16283169695Skancat confdefs.h >>conftest.$ac_ext
16284169695Skancat >>conftest.$ac_ext <<_ACEOF
16285169695Skan/* end confdefs.h.  */
16286169695Skan$ac_includes_default
16287169695Skanlong longval () { return (long) (sizeof (char)); }
16288169695Skanunsigned long ulongval () { return (long) (sizeof (char)); }
16289169695Skan#include <stdio.h>
16290169695Skan#include <stdlib.h>
16291169695Skanint
16292169695Skanmain ()
16293169695Skan{
16294169695Skan
16295169695Skan  FILE *f = fopen ("conftest.val", "w");
16296169695Skan  if (! f)
16297169695Skan    exit (1);
16298169695Skan  if (((long) (sizeof (char))) < 0)
16299169695Skan    {
16300169695Skan      long i = longval ();
16301169695Skan      if (i != ((long) (sizeof (char))))
16302169695Skan	exit (1);
16303169695Skan      fprintf (f, "%ld\n", i);
16304169695Skan    }
16305169695Skan  else
16306169695Skan    {
16307169695Skan      unsigned long i = ulongval ();
16308169695Skan      if (i != ((long) (sizeof (char))))
16309169695Skan	exit (1);
16310169695Skan      fprintf (f, "%lu\n", i);
16311169695Skan    }
16312169695Skan  exit (ferror (f) || fclose (f) != 0);
16313169695Skan
16314169695Skan  ;
16315169695Skan  return 0;
16316169695Skan}
16317169695Skan_ACEOF
16318169695Skanrm -f conftest$ac_exeext
16319169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320169695Skan  (eval $ac_link) 2>&5
16321169695Skan  ac_status=$?
16322169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16324169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325169695Skan  (eval $ac_try) 2>&5
16326169695Skan  ac_status=$?
16327169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328169695Skan  (exit $ac_status); }; }; then
16329169695Skan  ac_cv_sizeof_char=`cat conftest.val`
16330169695Skanelse
16331169695Skan  echo "$as_me: program exited with status $ac_status" >&5
16332169695Skanecho "$as_me: failed program was:" >&5
16333169695Skansed 's/^/| /' conftest.$ac_ext >&5
16334169695Skan
16335169695Skan( exit $ac_status )
16336169695Skan{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16337169695SkanSee \`config.log' for more details." >&5
16338169695Skanecho "$as_me: error: cannot compute sizeof (char), 77
16339169695SkanSee \`config.log' for more details." >&2;}
16340169695Skan   { (exit 1); exit 1; }; }
16341169695Skanfi
16342169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16343169695Skanfi
16344169695Skanfi
16345169695Skanrm -f conftest.val
16346169695Skanelse
16347169695Skan  ac_cv_sizeof_char=0
16348169695Skanfi
16349169695Skanfi
16350169695Skanecho "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16351169695Skanecho "${ECHO_T}$ac_cv_sizeof_char" >&6
16352169695Skancat >>confdefs.h <<_ACEOF
16353169695Skan#define SIZEOF_CHAR $ac_cv_sizeof_char
16354169695Skan_ACEOF
16355169695Skan
16356169695Skan
16357169695Skan
16358169695Skan  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16359169695Skanecho $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16360169695Skan  case "$ac_cv_sizeof_char" in
16361169695Skan    1) acx_cv_type_int8_t=char ;;
16362169695Skan    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16363169695Skanecho "$as_me: error: no 8-bit type" >&2;}
16364169695Skan   { (exit please report a bug); exit please report a bug; }; }
16365169695Skan  esac
16366169695Skan  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16367169695Skanecho "${ECHO_T}$acx_cv_type_int8_t" >&6
16368169695Skan
16369169695Skan  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16370169695Skanecho $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16371169695Skan  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16372169695Skan    2:*) acx_cv_type_int16_t=int ;;
16373169695Skan    *:2) acx_cv_type_int16_t=short ;;
16374169695Skan    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16375169695Skanecho "$as_me: error: no 16-bit type" >&2;}
16376169695Skan   { (exit please report a bug); exit please report a bug; }; }
16377169695Skan  esac
16378169695Skan  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16379169695Skanecho "${ECHO_T}$acx_cv_type_int16_t" >&6
16380169695Skan
16381169695Skan  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16382169695Skanecho $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16383169695Skan  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16384169695Skan    4:*) acx_cv_type_int32_t=int ;;
16385169695Skan    *:4) acx_cv_type_int32_t=long ;;
16386169695Skan    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16387169695Skanecho "$as_me: error: no 32-bit type" >&2;}
16388169695Skan   { (exit please report a bug); exit please report a bug; }; }
16389169695Skan  esac
16390169695Skan  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16391169695Skanecho "${ECHO_T}$acx_cv_type_int32_t" >&6
16392169695Skanfi
16393169695Skan
16394169695Skan# These tests are here to make the output prettier
16395169695Skan
16396169695Skanif test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16397169695Skan  case "$ac_cv_sizeof_long" in
16398169695Skan    8) acx_cv_type_int64_t=long ;;
16399169695Skan  esac
16400169695Skan  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16401169695Skanecho $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16402169695Skan  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16403169695Skanecho "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16404169695Skanfi
16405169695Skan
16406169695Skan# Now we can use the above types
16407169695Skan
16408169695Skanif test "$ac_cv_type_uintptr_t" != yes; then
16409169695Skan  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16410169695Skanecho $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16411169695Skan  case $ac_cv_sizeof_void_p in
16412169695Skan    2) acx_cv_type_intptr_t=int16_t ;;
16413169695Skan    4) acx_cv_type_intptr_t=int32_t ;;
16414169695Skan    8) acx_cv_type_intptr_t=int64_t ;;
16415169695Skan    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16416169695Skanecho "$as_me: error: no equivalent for intptr_t" >&2;}
16417169695Skan   { (exit please report a bug); exit please report a bug; }; }
16418169695Skan  esac
16419169695Skan  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16420169695Skanecho "${ECHO_T}$acx_cv_type_intptr_t" >&6
16421169695Skanfi
16422169695Skan
16423169695Skan# ----------------- done all checks, emit header -------------
16424169695Skan          ac_config_commands="$ac_config_commands gstdint.h"
16425169695Skan
16426169695Skan
16427169695Skan
16428169695Skan
16429169695Skan# Check to see if -pthread or -lpthread is needed.  Prefer the former.
16430169695Skan# In case the pthread.h system header is not found, this test will fail.
16431169695SkanXPCFLAGS=""
16432169695SkanCFLAGS="$CFLAGS -pthread"
16433169695Skancat >conftest.$ac_ext <<_ACEOF
16434169695Skan/* confdefs.h.  */
16435169695Skan_ACEOF
16436169695Skancat confdefs.h >>conftest.$ac_ext
16437169695Skancat >>conftest.$ac_ext <<_ACEOF
16438169695Skan/* end confdefs.h.  */
16439169695Skan#include <pthread.h>
16440169695Skan   void *g(void *d) { return NULL; }
16441169695Skanint
16442169695Skanmain ()
16443169695Skan{
16444169695Skanpthread_t t; pthread_create(&t,NULL,g,NULL);
16445169695Skan  ;
16446169695Skan  return 0;
16447169695Skan}
16448169695Skan_ACEOF
16449169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16450169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451169695Skan  (eval $ac_link) 2>conftest.er1
16452169695Skan  ac_status=$?
16453169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16454169695Skan  rm -f conftest.er1
16455169695Skan  cat conftest.err >&5
16456169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457169695Skan  (exit $ac_status); } &&
16458169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16459169695Skan			 || test ! -s conftest.err'
16460169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461169695Skan  (eval $ac_try) 2>&5
16462169695Skan  ac_status=$?
16463169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464169695Skan  (exit $ac_status); }; } &&
16465169695Skan	 { ac_try='test -s conftest$ac_exeext'
16466169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467169695Skan  (eval $ac_try) 2>&5
16468169695Skan  ac_status=$?
16469169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470169695Skan  (exit $ac_status); }; }; then
16471169695Skan  XPCFLAGS=" -Wc,-pthread"
16472169695Skanelse
16473169695Skan  echo "$as_me: failed program was:" >&5
16474169695Skansed 's/^/| /' conftest.$ac_ext >&5
16475169695Skan
16476169695SkanCFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16477169695Skan  cat >conftest.$ac_ext <<_ACEOF
16478169695Skan/* confdefs.h.  */
16479169695Skan_ACEOF
16480169695Skancat confdefs.h >>conftest.$ac_ext
16481169695Skancat >>conftest.$ac_ext <<_ACEOF
16482169695Skan/* end confdefs.h.  */
16483169695Skan#include <pthread.h>
16484169695Skan     void *g(void *d) { return NULL; }
16485169695Skanint
16486169695Skanmain ()
16487169695Skan{
16488169695Skanpthread_t t; pthread_create(&t,NULL,g,NULL);
16489169695Skan  ;
16490169695Skan  return 0;
16491169695Skan}
16492169695Skan_ACEOF
16493169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16494169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16495169695Skan  (eval $ac_link) 2>conftest.er1
16496169695Skan  ac_status=$?
16497169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16498169695Skan  rm -f conftest.er1
16499169695Skan  cat conftest.err >&5
16500169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501169695Skan  (exit $ac_status); } &&
16502169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16503169695Skan			 || test ! -s conftest.err'
16504169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505169695Skan  (eval $ac_try) 2>&5
16506169695Skan  ac_status=$?
16507169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508169695Skan  (exit $ac_status); }; } &&
16509169695Skan	 { ac_try='test -s conftest$ac_exeext'
16510169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511169695Skan  (eval $ac_try) 2>&5
16512169695Skan  ac_status=$?
16513169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514169695Skan  (exit $ac_status); }; }; then
16515169695Skan  :
16516169695Skanelse
16517169695Skan  echo "$as_me: failed program was:" >&5
16518169695Skansed 's/^/| /' conftest.$ac_ext >&5
16519169695Skan
16520169695Skan{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16521169695Skanecho "$as_me: error: Pthreads are required to build libgomp" >&2;}
16522169695Skan   { (exit 1); exit 1; }; }
16523169695Skanfi
16524169695Skanrm -f conftest.err conftest.$ac_objext \
16525169695Skan      conftest$ac_exeext conftest.$ac_ext
16526169695Skanfi
16527169695Skanrm -f conftest.err conftest.$ac_objext \
16528169695Skan      conftest$ac_exeext conftest.$ac_ext
16529169695Skan
16530169695Skan# Check for functions needed.
16531169695Skan
16532169695Skan
16533169695Skanfor ac_func in getloadavg clock_gettime
16534169695Skando
16535169695Skanas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536169695Skanecho "$as_me:$LINENO: checking for $ac_func" >&5
16537169695Skanecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16538169695Skanif eval "test \"\${$as_ac_var+set}\" = set"; then
16539169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
16540169695Skanelse
16541169695Skan  cat >conftest.$ac_ext <<_ACEOF
16542169695Skan/* confdefs.h.  */
16543169695Skan_ACEOF
16544169695Skancat confdefs.h >>conftest.$ac_ext
16545169695Skancat >>conftest.$ac_ext <<_ACEOF
16546169695Skan/* end confdefs.h.  */
16547169695Skan/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548169695Skan   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16549169695Skan#define $ac_func innocuous_$ac_func
16550169695Skan
16551169695Skan/* System header to define __stub macros and hopefully few prototypes,
16552169695Skan    which can conflict with char $ac_func (); below.
16553169695Skan    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554169695Skan    <limits.h> exists even on freestanding compilers.  */
16555169695Skan
16556169695Skan#ifdef __STDC__
16557169695Skan# include <limits.h>
16558169695Skan#else
16559169695Skan# include <assert.h>
16560169695Skan#endif
16561169695Skan
16562169695Skan#undef $ac_func
16563169695Skan
16564169695Skan/* Override any gcc2 internal prototype to avoid an error.  */
16565169695Skan#ifdef __cplusplus
16566169695Skanextern "C"
16567169695Skan{
16568169695Skan#endif
16569169695Skan/* We use char because int might match the return type of a gcc2
16570169695Skan   builtin and then its argument prototype would still apply.  */
16571169695Skanchar $ac_func ();
16572169695Skan/* The GNU C library defines this for functions which it implements
16573169695Skan    to always fail with ENOSYS.  Some functions are actually named
16574169695Skan    something starting with __ and the normal name is an alias.  */
16575169695Skan#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16576169695Skanchoke me
16577169695Skan#else
16578169695Skanchar (*f) () = $ac_func;
16579169695Skan#endif
16580169695Skan#ifdef __cplusplus
16581169695Skan}
16582169695Skan#endif
16583169695Skan
16584169695Skanint
16585169695Skanmain ()
16586169695Skan{
16587169695Skanreturn f != $ac_func;
16588169695Skan  ;
16589169695Skan  return 0;
16590169695Skan}
16591169695Skan_ACEOF
16592169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16593169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594169695Skan  (eval $ac_link) 2>conftest.er1
16595169695Skan  ac_status=$?
16596169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16597169695Skan  rm -f conftest.er1
16598169695Skan  cat conftest.err >&5
16599169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600169695Skan  (exit $ac_status); } &&
16601169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16602169695Skan			 || test ! -s conftest.err'
16603169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604169695Skan  (eval $ac_try) 2>&5
16605169695Skan  ac_status=$?
16606169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607169695Skan  (exit $ac_status); }; } &&
16608169695Skan	 { ac_try='test -s conftest$ac_exeext'
16609169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610169695Skan  (eval $ac_try) 2>&5
16611169695Skan  ac_status=$?
16612169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613169695Skan  (exit $ac_status); }; }; then
16614169695Skan  eval "$as_ac_var=yes"
16615169695Skanelse
16616169695Skan  echo "$as_me: failed program was:" >&5
16617169695Skansed 's/^/| /' conftest.$ac_ext >&5
16618169695Skan
16619169695Skaneval "$as_ac_var=no"
16620169695Skanfi
16621169695Skanrm -f conftest.err conftest.$ac_objext \
16622169695Skan      conftest$ac_exeext conftest.$ac_ext
16623169695Skanfi
16624169695Skanecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16625169695Skanecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16626169695Skanif test `eval echo '${'$as_ac_var'}'` = yes; then
16627169695Skan  cat >>confdefs.h <<_ACEOF
16628169695Skan#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16629169695Skan_ACEOF
16630169695Skan
16631169695Skanfi
16632169695Skandone
16633169695Skan
16634169695Skan
16635169695Skan# Check for broken semaphore implementation on darwin.
16636169695Skan# sem_init returns: sem_init error: Function not implemented.
16637169695Skancase "$host" in
16638169695Skan  *-darwin*)
16639169695Skan
16640169695Skancat >>confdefs.h <<\_ACEOF
16641169695Skan#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16642169695Skan_ACEOF
16643169695Skan
16644169695Skan    ;;
16645282152Spfgesac
16646282152Spfg
16647282152Spfg # Check whether --enable-linux-futex or --disable-linux-futex was given.
16648282152Spfgif test "${enable_linux_futex+set}" = set; then
16649282152Spfg  enableval="$enable_linux_futex"
16650282152Spfg
16651282152Spfg      case "$enableval" in
16652282152Spfg       yes|no|default) ;;
16653282152Spfg       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16654282152Spfgecho "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16655282152Spfg   { (exit 1); exit 1; }; } ;;
16656282152Spfg                          esac
16657282152Spfg
16658282152Spfgelse
16659282152Spfg  enable_linux_futex=default
16660282152Spfgfi;
16661282152Spfg
16662282152Spfgcase "$target" in
16663169695Skan  *-linux*)
16664169695Skan    case "$enable_linux_futex" in
16665169695Skan      default)
16666169695Skan	# If headers don't have gettid/futex syscalls definition, then
16667169695Skan	# default to no, otherwise there will be compile time failures.
16668169695Skan	# Otherwise, default to yes.  If we don't detect we are
16669169695Skan	# compiled/linked against NPTL and not cross-compiling, check
16670169695Skan	# if programs are run by default against NPTL and if not, issue
16671169695Skan	# a warning.
16672169695Skan	enable_linux_futex=no
16673169695Skan	cat >conftest.$ac_ext <<_ACEOF
16674169695Skan/* confdefs.h.  */
16675169695Skan_ACEOF
16676169695Skancat confdefs.h >>conftest.$ac_ext
16677169695Skancat >>conftest.$ac_ext <<_ACEOF
16678169695Skan/* end confdefs.h.  */
16679169695Skan#include <sys/syscall.h>
16680169695Skan	   int lk;
16681169695Skanint
16682169695Skanmain ()
16683169695Skan{
16684169695Skansyscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16685169695Skan  ;
16686169695Skan  return 0;
16687169695Skan}
16688169695Skan_ACEOF
16689169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16690169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691169695Skan  (eval $ac_link) 2>conftest.er1
16692169695Skan  ac_status=$?
16693169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16694169695Skan  rm -f conftest.er1
16695169695Skan  cat conftest.err >&5
16696169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697169695Skan  (exit $ac_status); } &&
16698169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16699169695Skan			 || test ! -s conftest.err'
16700169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701169695Skan  (eval $ac_try) 2>&5
16702169695Skan  ac_status=$?
16703169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704169695Skan  (exit $ac_status); }; } &&
16705169695Skan	 { ac_try='test -s conftest$ac_exeext'
16706169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707169695Skan  (eval $ac_try) 2>&5
16708169695Skan  ac_status=$?
16709169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710169695Skan  (exit $ac_status); }; }; then
16711282152Spfg  save_LIBS="$LIBS"
16712282152Spfg	   LIBS="-lpthread $LIBS"
16713282152Spfg	   cat >conftest.$ac_ext <<_ACEOF
16714169695Skan/* confdefs.h.  */
16715169695Skan_ACEOF
16716169695Skancat confdefs.h >>conftest.$ac_ext
16717169695Skancat >>conftest.$ac_ext <<_ACEOF
16718169695Skan/* end confdefs.h.  */
16719169695Skan#ifndef _GNU_SOURCE
16720169695Skan	     #define _GNU_SOURCE 1
16721169695Skan	     #endif
16722169695Skan	     #include <pthread.h>
16723169695Skan	     pthread_t th; void *status;
16724169695Skanint
16725169695Skanmain ()
16726169695Skan{
16727169695Skanpthread_tryjoin_np (th, &status);
16728169695Skan  ;
16729169695Skan  return 0;
16730169695Skan}
16731169695Skan_ACEOF
16732169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16733169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734169695Skan  (eval $ac_link) 2>conftest.er1
16735169695Skan  ac_status=$?
16736169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16737169695Skan  rm -f conftest.er1
16738169695Skan  cat conftest.err >&5
16739169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740169695Skan  (exit $ac_status); } &&
16741169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16742169695Skan			 || test ! -s conftest.err'
16743169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744169695Skan  (eval $ac_try) 2>&5
16745169695Skan  ac_status=$?
16746169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747169695Skan  (exit $ac_status); }; } &&
16748169695Skan	 { ac_try='test -s conftest$ac_exeext'
16749169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750169695Skan  (eval $ac_try) 2>&5
16751169695Skan  ac_status=$?
16752169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753169695Skan  (exit $ac_status); }; }; then
16754169695Skan  enable_linux_futex=yes
16755169695Skanelse
16756169695Skan  echo "$as_me: failed program was:" >&5
16757169695Skansed 's/^/| /' conftest.$ac_ext >&5
16758169695Skan
16759169695Skanif test x$cross_compiling = xno; then
16760169695Skan	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16761282152Spfg		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16762169695Skan		 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16763169695SkanIf so, please configure with --disable-linux-futex" >&5
16764169695Skanecho "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16765169695SkanIf so, please configure with --disable-linux-futex" >&2;}
16766169695Skan	       fi
16767169695Skan	     fi
16768169695Skan	     enable_linux_futex=yes
16769169695Skanfi
16770169695Skanrm -f conftest.err conftest.$ac_objext \
16771169695Skan      conftest$ac_exeext conftest.$ac_ext
16772282152Spfg	   LIBS="$save_LIBS"
16773169695Skanelse
16774169695Skan  echo "$as_me: failed program was:" >&5
16775169695Skansed 's/^/| /' conftest.$ac_ext >&5
16776169695Skan
16777169695Skanfi
16778169695Skanrm -f conftest.err conftest.$ac_objext \
16779169695Skan      conftest$ac_exeext conftest.$ac_ext
16780169695Skan	;;
16781169695Skan      yes)
16782169695Skan	cat >conftest.$ac_ext <<_ACEOF
16783169695Skan/* confdefs.h.  */
16784169695Skan_ACEOF
16785169695Skancat confdefs.h >>conftest.$ac_ext
16786169695Skancat >>conftest.$ac_ext <<_ACEOF
16787169695Skan/* end confdefs.h.  */
16788169695Skan#include <sys/syscall.h>
16789169695Skan	   int lk;
16790169695Skanint
16791169695Skanmain ()
16792169695Skan{
16793169695Skansyscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16794169695Skan  ;
16795169695Skan  return 0;
16796169695Skan}
16797169695Skan_ACEOF
16798169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16799169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800169695Skan  (eval $ac_link) 2>conftest.er1
16801169695Skan  ac_status=$?
16802169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16803169695Skan  rm -f conftest.er1
16804169695Skan  cat conftest.err >&5
16805169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806169695Skan  (exit $ac_status); } &&
16807169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16808169695Skan			 || test ! -s conftest.err'
16809169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810169695Skan  (eval $ac_try) 2>&5
16811169695Skan  ac_status=$?
16812169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813169695Skan  (exit $ac_status); }; } &&
16814169695Skan	 { ac_try='test -s conftest$ac_exeext'
16815169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816169695Skan  (eval $ac_try) 2>&5
16817169695Skan  ac_status=$?
16818169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819169695Skan  (exit $ac_status); }; }; then
16820169695Skan  :
16821169695Skanelse
16822169695Skan  echo "$as_me: failed program was:" >&5
16823169695Skansed 's/^/| /' conftest.$ac_ext >&5
16824169695Skan
16825169695Skan{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16826169695Skanecho "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16827169695Skan   { (exit 1); exit 1; }; }
16828169695Skanfi
16829169695Skanrm -f conftest.err conftest.$ac_objext \
16830169695Skan      conftest$ac_exeext conftest.$ac_ext
16831169695Skan	;;
16832169695Skan    esac
16833169695Skan    ;;
16834282152Spfg  *)
16835282152Spfg    enable_linux_futex=no
16836282152Spfg    ;;
16837169695Skanesac
16838282152Spfgif test x$enable_linux_futex = xyes; then
16839282152Spfg  :
16840282152Spfgfi
16841169695Skan
16842282152Spfg
16843282115Spfg# Check for pthread_{,attr_}[sg]etaffinity_np.
16844282115Spfgcat >conftest.$ac_ext <<_ACEOF
16845282115Spfg/* confdefs.h.  */
16846282115Spfg_ACEOF
16847282115Spfgcat confdefs.h >>conftest.$ac_ext
16848282115Spfgcat >>conftest.$ac_ext <<_ACEOF
16849282115Spfg/* end confdefs.h.  */
16850282115Spfg#define _GNU_SOURCE
16851282115Spfg   #include <pthread.h>
16852282115Spfgint
16853282115Spfgmain ()
16854282115Spfg{
16855282115Spfgcpu_set_t cpuset;
16856282115Spfg   pthread_attr_t attr;
16857282115Spfg   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16858282115Spfg   if (CPU_ISSET (0, &cpuset))
16859282115Spfg     CPU_SET (1, &cpuset);
16860282115Spfg   else
16861282115Spfg     CPU_ZERO (&cpuset);
16862282115Spfg   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16863282115Spfg   pthread_attr_init (&attr);
16864282115Spfg   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16865282115Spfg   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16866282115Spfg  ;
16867282115Spfg  return 0;
16868282115Spfg}
16869282115Spfg_ACEOF
16870282115Spfgrm -f conftest.$ac_objext conftest$ac_exeext
16871282115Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872282115Spfg  (eval $ac_link) 2>conftest.er1
16873282115Spfg  ac_status=$?
16874282115Spfg  grep -v '^ *+' conftest.er1 >conftest.err
16875282115Spfg  rm -f conftest.er1
16876282115Spfg  cat conftest.err >&5
16877282115Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878282115Spfg  (exit $ac_status); } &&
16879282115Spfg	 { ac_try='test -z "$ac_c_werror_flag"
16880282115Spfg			 || test ! -s conftest.err'
16881282115Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882282115Spfg  (eval $ac_try) 2>&5
16883282115Spfg  ac_status=$?
16884282115Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885282115Spfg  (exit $ac_status); }; } &&
16886282115Spfg	 { ac_try='test -s conftest$ac_exeext'
16887282115Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888282115Spfg  (eval $ac_try) 2>&5
16889282115Spfg  ac_status=$?
16890282115Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891282115Spfg  (exit $ac_status); }; }; then
16892282115Spfg
16893282115Spfgcat >>confdefs.h <<\_ACEOF
16894282115Spfg#define HAVE_PTHREAD_AFFINITY_NP 1
16895282115Spfg_ACEOF
16896282115Spfg
16897282115Spfgelse
16898282115Spfg  echo "$as_me: failed program was:" >&5
16899282115Spfgsed 's/^/| /' conftest.$ac_ext >&5
16900282115Spfg
16901282115Spfgfi
16902282115Spfgrm -f conftest.err conftest.$ac_objext \
16903282115Spfg      conftest$ac_exeext conftest.$ac_ext
16904282115Spfg
16905169695Skan# At least for glibc, clock_gettime is in librt.  But don't pull that
16906169695Skan# in if it still doesn't give us the function we want.
16907169695Skanif test $ac_cv_func_clock_gettime = no; then
16908169695Skan  echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16909169695Skanecho $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16910169695Skanif test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16911169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
16912169695Skanelse
16913169695Skan  ac_check_lib_save_LIBS=$LIBS
16914169695SkanLIBS="-lrt  $LIBS"
16915169695Skancat >conftest.$ac_ext <<_ACEOF
16916169695Skan/* confdefs.h.  */
16917169695Skan_ACEOF
16918169695Skancat confdefs.h >>conftest.$ac_ext
16919169695Skancat >>conftest.$ac_ext <<_ACEOF
16920169695Skan/* end confdefs.h.  */
16921169695Skan
16922169695Skan/* Override any gcc2 internal prototype to avoid an error.  */
16923169695Skan#ifdef __cplusplus
16924169695Skanextern "C"
16925169695Skan#endif
16926169695Skan/* We use char because int might match the return type of a gcc2
16927169695Skan   builtin and then its argument prototype would still apply.  */
16928169695Skanchar clock_gettime ();
16929169695Skanint
16930169695Skanmain ()
16931169695Skan{
16932169695Skanclock_gettime ();
16933169695Skan  ;
16934169695Skan  return 0;
16935169695Skan}
16936169695Skan_ACEOF
16937169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
16938169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939169695Skan  (eval $ac_link) 2>conftest.er1
16940169695Skan  ac_status=$?
16941169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
16942169695Skan  rm -f conftest.er1
16943169695Skan  cat conftest.err >&5
16944169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945169695Skan  (exit $ac_status); } &&
16946169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
16947169695Skan			 || test ! -s conftest.err'
16948169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949169695Skan  (eval $ac_try) 2>&5
16950169695Skan  ac_status=$?
16951169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952169695Skan  (exit $ac_status); }; } &&
16953169695Skan	 { ac_try='test -s conftest$ac_exeext'
16954169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955169695Skan  (eval $ac_try) 2>&5
16956169695Skan  ac_status=$?
16957169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958169695Skan  (exit $ac_status); }; }; then
16959169695Skan  ac_cv_lib_rt_clock_gettime=yes
16960169695Skanelse
16961169695Skan  echo "$as_me: failed program was:" >&5
16962169695Skansed 's/^/| /' conftest.$ac_ext >&5
16963169695Skan
16964169695Skanac_cv_lib_rt_clock_gettime=no
16965169695Skanfi
16966169695Skanrm -f conftest.err conftest.$ac_objext \
16967169695Skan      conftest$ac_exeext conftest.$ac_ext
16968169695SkanLIBS=$ac_check_lib_save_LIBS
16969169695Skanfi
16970169695Skanecho "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16971169695Skanecho "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16972169695Skanif test $ac_cv_lib_rt_clock_gettime = yes; then
16973169695Skan  LIBS="-lrt $LIBS"
16974169695Skan
16975169695Skancat >>confdefs.h <<\_ACEOF
16976169695Skan#define HAVE_CLOCK_GETTIME 1
16977169695Skan_ACEOF
16978169695Skan
16979169695Skanfi
16980169695Skan
16981169695Skanfi
16982169695Skan
16983169695Skan# See if we support thread-local storage.
16984169695Skan
16985169695Skan   # Check whether --enable-tls or --disable-tls was given.
16986169695Skanif test "${enable_tls+set}" = set; then
16987169695Skan  enableval="$enable_tls"
16988169695Skan
16989169695Skan      case "$enableval" in
16990169695Skan       yes|no) ;;
16991169695Skan       *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16992169695Skanecho "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16993169695Skan   { (exit 1); exit 1; }; } ;;
16994169695Skan      esac
16995169695Skan
16996169695Skanelse
16997169695Skan  enable_tls=yes
16998169695Skanfi;
16999169695Skan
17000169695Skan  echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17001169695Skanecho $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17002282152Spfgif test "${gcc_cv_have_tls+set}" = set; then
17003169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
17004169695Skanelse
17005169695Skan
17006169695Skan    if test "$cross_compiling" = yes; then
17007282152Spfg                cat >conftest.$ac_ext <<_ACEOF
17008282152Spfg__thread int a; int b; int main() { return a = b; }
17009169695Skan_ACEOF
17010282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
17011282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012282152Spfg  (eval $ac_link) 2>conftest.er1
17013169695Skan  ac_status=$?
17014169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17015169695Skan  rm -f conftest.er1
17016169695Skan  cat conftest.err >&5
17017169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018169695Skan  (exit $ac_status); } &&
17019169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17020169695Skan			 || test ! -s conftest.err'
17021169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022169695Skan  (eval $ac_try) 2>&5
17023169695Skan  ac_status=$?
17024169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025169695Skan  (exit $ac_status); }; } &&
17026282152Spfg	 { ac_try='test -s conftest$ac_exeext'
17027169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028169695Skan  (eval $ac_try) 2>&5
17029169695Skan  ac_status=$?
17030169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031169695Skan  (exit $ac_status); }; }; then
17032282152Spfg  gcc_cv_have_tls=yes
17033169695Skanelse
17034169695Skan  echo "$as_me: failed program was:" >&5
17035169695Skansed 's/^/| /' conftest.$ac_ext >&5
17036169695Skan
17037282152Spfggcc_cv_have_tls=no
17038169695Skanfi
17039282152Spfgrm -f conftest.err conftest.$ac_objext \
17040282152Spfg      conftest$ac_exeext conftest.$ac_ext
17041169695Skan
17042282152Spfg
17043169695Skanelse
17044169695Skan  cat >conftest.$ac_ext <<_ACEOF
17045169695Skan__thread int a; int b; int main() { return a = b; }
17046169695Skan_ACEOF
17047169695Skanrm -f conftest$ac_exeext
17048169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049169695Skan  (eval $ac_link) 2>&5
17050169695Skan  ac_status=$?
17051169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17053169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054169695Skan  (eval $ac_try) 2>&5
17055169695Skan  ac_status=$?
17056169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057169695Skan  (exit $ac_status); }; }; then
17058282152Spfg                      chktls_save_LDFLAGS="$LDFLAGS"
17059169695Skan      LDFLAGS="-static $LDFLAGS"
17060169695Skan      cat >conftest.$ac_ext <<_ACEOF
17061169695Skanint main() { return 0; }
17062169695Skan_ACEOF
17063169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
17064169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065169695Skan  (eval $ac_link) 2>conftest.er1
17066169695Skan  ac_status=$?
17067169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17068169695Skan  rm -f conftest.er1
17069169695Skan  cat conftest.err >&5
17070169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071169695Skan  (exit $ac_status); } &&
17072169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17073169695Skan			 || test ! -s conftest.err'
17074169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075169695Skan  (eval $ac_try) 2>&5
17076169695Skan  ac_status=$?
17077169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078169695Skan  (exit $ac_status); }; } &&
17079169695Skan	 { ac_try='test -s conftest$ac_exeext'
17080169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081169695Skan  (eval $ac_try) 2>&5
17082169695Skan  ac_status=$?
17083169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084169695Skan  (exit $ac_status); }; }; then
17085169695Skan  if test "$cross_compiling" = yes; then
17086169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17087169695SkanSee \`config.log' for more details." >&5
17088169695Skanecho "$as_me: error: cannot run test program while cross compiling
17089169695SkanSee \`config.log' for more details." >&2;}
17090169695Skan   { (exit 1); exit 1; }; }
17091169695Skanelse
17092169695Skan  cat >conftest.$ac_ext <<_ACEOF
17093169695Skan__thread int a; int b; int main() { return a = b; }
17094169695Skan_ACEOF
17095169695Skanrm -f conftest$ac_exeext
17096169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097169695Skan  (eval $ac_link) 2>&5
17098169695Skan  ac_status=$?
17099169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17101169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102169695Skan  (eval $ac_try) 2>&5
17103169695Skan  ac_status=$?
17104169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105169695Skan  (exit $ac_status); }; }; then
17106282152Spfg  gcc_cv_have_tls=yes
17107169695Skanelse
17108169695Skan  echo "$as_me: program exited with status $ac_status" >&5
17109169695Skanecho "$as_me: failed program was:" >&5
17110169695Skansed 's/^/| /' conftest.$ac_ext >&5
17111169695Skan
17112169695Skan( exit $ac_status )
17113282152Spfggcc_cv_have_tls=no
17114169695Skanfi
17115169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17116169695Skanfi
17117169695Skanelse
17118169695Skan  echo "$as_me: failed program was:" >&5
17119169695Skansed 's/^/| /' conftest.$ac_ext >&5
17120169695Skan
17121282152Spfggcc_cv_have_tls=yes
17122169695Skanfi
17123169695Skanrm -f conftest.err conftest.$ac_objext \
17124169695Skan      conftest$ac_exeext conftest.$ac_ext
17125282152Spfg      LDFLAGS="$chktls_save_LDFLAGS"
17126282152Spfg      if test $gcc_cv_have_tls = yes; then
17127282152Spfg						chktls_save_CFLAGS="$CFLAGS"
17128282152Spfg	thread_CFLAGS=failed
17129282152Spfg	for flag in '' '-pthread' '-lpthread'; do
17130282152Spfg	  CFLAGS="$flag $chktls_save_CFLAGS"
17131282152Spfg	  cat >conftest.$ac_ext <<_ACEOF
17132282152Spfg/* confdefs.h.  */
17133282152Spfg_ACEOF
17134282152Spfgcat confdefs.h >>conftest.$ac_ext
17135282152Spfgcat >>conftest.$ac_ext <<_ACEOF
17136282152Spfg/* end confdefs.h.  */
17137282152Spfg#include <pthread.h>
17138282152Spfg		void *g(void *d) { return NULL; }
17139282152Spfgint
17140282152Spfgmain ()
17141282152Spfg{
17142282152Spfgpthread_t t; pthread_create(&t,NULL,g,NULL);
17143282152Spfg  ;
17144282152Spfg  return 0;
17145282152Spfg}
17146282152Spfg_ACEOF
17147282152Spfgrm -f conftest.$ac_objext conftest$ac_exeext
17148282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149282152Spfg  (eval $ac_link) 2>conftest.er1
17150282152Spfg  ac_status=$?
17151282152Spfg  grep -v '^ *+' conftest.er1 >conftest.err
17152282152Spfg  rm -f conftest.er1
17153282152Spfg  cat conftest.err >&5
17154282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155282152Spfg  (exit $ac_status); } &&
17156282152Spfg	 { ac_try='test -z "$ac_c_werror_flag"
17157282152Spfg			 || test ! -s conftest.err'
17158282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159282152Spfg  (eval $ac_try) 2>&5
17160282152Spfg  ac_status=$?
17161282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162282152Spfg  (exit $ac_status); }; } &&
17163282152Spfg	 { ac_try='test -s conftest$ac_exeext'
17164282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165282152Spfg  (eval $ac_try) 2>&5
17166282152Spfg  ac_status=$?
17167282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168282152Spfg  (exit $ac_status); }; }; then
17169282152Spfg  thread_CFLAGS="$flag"
17170169695Skanelse
17171282152Spfg  echo "$as_me: failed program was:" >&5
17172282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
17173282152Spfg
17174282152Spfgfi
17175282152Spfgrm -f conftest.err conftest.$ac_objext \
17176282152Spfg      conftest$ac_exeext conftest.$ac_ext
17177282152Spfg	  if test "X$thread_CFLAGS" != Xfailed; then
17178282152Spfg	    break
17179282152Spfg	  fi
17180282152Spfg	done
17181282152Spfg	CFLAGS="$chktls_save_CFLAGS"
17182282152Spfg	if test "X$thread_CFLAGS" != Xfailed; then
17183282152Spfg	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17184282152Spfg	  if test "$cross_compiling" = yes; then
17185282152Spfg  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17186282152SpfgSee \`config.log' for more details." >&5
17187282152Spfgecho "$as_me: error: cannot run test program while cross compiling
17188282152SpfgSee \`config.log' for more details." >&2;}
17189282152Spfg   { (exit 1); exit 1; }; }
17190282152Spfgelse
17191282152Spfg  cat >conftest.$ac_ext <<_ACEOF
17192282152Spfg/* confdefs.h.  */
17193282152Spfg_ACEOF
17194282152Spfgcat confdefs.h >>conftest.$ac_ext
17195282152Spfgcat >>conftest.$ac_ext <<_ACEOF
17196282152Spfg/* end confdefs.h.  */
17197282152Spfg#include <pthread.h>
17198282152Spfg		__thread int a;
17199282152Spfg		static int *a_in_other_thread;
17200282152Spfg		static void *
17201282152Spfg		thread_func (void *arg)
17202282152Spfg		{
17203282152Spfg		  a_in_other_thread = &a;
17204282152Spfg		  return (void *)0;
17205282152Spfg		}
17206282152Spfgint
17207282152Spfgmain ()
17208282152Spfg{
17209282152Spfgpthread_t thread;
17210282152Spfg		void *thread_retval;
17211282152Spfg		int *a_in_main_thread;
17212282152Spfg		if (pthread_create (&thread, (pthread_attr_t *)0,
17213282152Spfg				    thread_func, (void *)0))
17214282152Spfg		  return 0;
17215282152Spfg		a_in_main_thread = &a;
17216282152Spfg		if (pthread_join (thread, &thread_retval))
17217282152Spfg		  return 0;
17218282152Spfg		return (a_in_other_thread == a_in_main_thread);
17219282152Spfg  ;
17220282152Spfg  return 0;
17221282152Spfg}
17222282152Spfg_ACEOF
17223282152Spfgrm -f conftest$ac_exeext
17224282152Spfgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225282152Spfg  (eval $ac_link) 2>&5
17226282152Spfg  ac_status=$?
17227282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228282152Spfg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229282152Spfg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230282152Spfg  (eval $ac_try) 2>&5
17231282152Spfg  ac_status=$?
17232282152Spfg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233282152Spfg  (exit $ac_status); }; }; then
17234282152Spfg  gcc_cv_have_tls=yes
17235282152Spfgelse
17236169695Skan  echo "$as_me: program exited with status $ac_status" >&5
17237169695Skanecho "$as_me: failed program was:" >&5
17238169695Skansed 's/^/| /' conftest.$ac_ext >&5
17239169695Skan
17240169695Skan( exit $ac_status )
17241282152Spfggcc_cv_have_tls=no
17242169695Skanfi
17243169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17244169695Skanfi
17245282152Spfg	  CFLAGS="$chktls_save_CFLAGS"
17246282152Spfg	fi
17247282152Spfg      fi
17248282152Spfgelse
17249282152Spfg  echo "$as_me: program exited with status $ac_status" >&5
17250282152Spfgecho "$as_me: failed program was:" >&5
17251282152Spfgsed 's/^/| /' conftest.$ac_ext >&5
17252282152Spfg
17253282152Spfg( exit $ac_status )
17254282152Spfggcc_cv_have_tls=no
17255169695Skanfi
17256282152Spfgrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257282152Spfgfi
17258282152Spfgfi
17259282152Spfgecho "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17260282152Spfgecho "${ECHO_T}$gcc_cv_have_tls" >&6
17261282152Spfg  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17262169695Skan
17263169695Skancat >>confdefs.h <<\_ACEOF
17264169695Skan#define HAVE_TLS 1
17265169695Skan_ACEOF
17266169695Skan
17267169695Skan  fi
17268169695Skan
17269169695Skan# See what sort of export controls are availible.
17270169695Skan
17271169695Skan  echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17272169695Skanecho $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17273169695Skanif test "${have_attribute_visibility+set}" = set; then
17274169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
17275169695Skanelse
17276169695Skan
17277169695Skan  save_CFLAGS="$CFLAGS"
17278169695Skan  CFLAGS="$CFLAGS -Werror"
17279169695Skan  cat >conftest.$ac_ext <<_ACEOF
17280169695Skan/* confdefs.h.  */
17281169695Skan_ACEOF
17282169695Skancat confdefs.h >>conftest.$ac_ext
17283169695Skancat >>conftest.$ac_ext <<_ACEOF
17284169695Skan/* end confdefs.h.  */
17285169695Skanvoid __attribute__((visibility("hidden"))) foo(void) { }
17286169695Skanint
17287169695Skanmain ()
17288169695Skan{
17289169695Skan
17290169695Skan  ;
17291169695Skan  return 0;
17292169695Skan}
17293169695Skan_ACEOF
17294169695Skanrm -f conftest.$ac_objext
17295169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296169695Skan  (eval $ac_compile) 2>conftest.er1
17297169695Skan  ac_status=$?
17298169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17299169695Skan  rm -f conftest.er1
17300169695Skan  cat conftest.err >&5
17301169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302169695Skan  (exit $ac_status); } &&
17303169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17304169695Skan			 || test ! -s conftest.err'
17305169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306169695Skan  (eval $ac_try) 2>&5
17307169695Skan  ac_status=$?
17308169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309169695Skan  (exit $ac_status); }; } &&
17310169695Skan	 { ac_try='test -s conftest.$ac_objext'
17311169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312169695Skan  (eval $ac_try) 2>&5
17313169695Skan  ac_status=$?
17314169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315169695Skan  (exit $ac_status); }; }; then
17316169695Skan  have_attribute_visibility=yes
17317169695Skanelse
17318169695Skan  echo "$as_me: failed program was:" >&5
17319169695Skansed 's/^/| /' conftest.$ac_ext >&5
17320169695Skan
17321169695Skanhave_attribute_visibility=no
17322169695Skanfi
17323169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324169695Skan  CFLAGS="$save_CFLAGS"
17325169695Skanfi
17326169695Skanecho "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17327169695Skanecho "${ECHO_T}$have_attribute_visibility" >&6
17328169695Skan  if test $have_attribute_visibility = yes; then
17329169695Skan
17330169695Skancat >>confdefs.h <<\_ACEOF
17331169695Skan#define HAVE_ATTRIBUTE_VISIBILITY 1
17332169695Skan_ACEOF
17333169695Skan
17334169695Skan  fi
17335169695Skan
17336169695Skan  echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17337169695Skanecho $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17338169695Skanif test "${have_attribute_dllexport+set}" = set; then
17339169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
17340169695Skanelse
17341169695Skan
17342169695Skan  save_CFLAGS="$CFLAGS"
17343169695Skan  CFLAGS="$CFLAGS -Werror"
17344169695Skan  cat >conftest.$ac_ext <<_ACEOF
17345169695Skan/* confdefs.h.  */
17346169695Skan_ACEOF
17347169695Skancat confdefs.h >>conftest.$ac_ext
17348169695Skancat >>conftest.$ac_ext <<_ACEOF
17349169695Skan/* end confdefs.h.  */
17350169695Skanvoid __attribute__((dllexport)) foo(void) { }
17351169695Skanint
17352169695Skanmain ()
17353169695Skan{
17354169695Skan
17355169695Skan  ;
17356169695Skan  return 0;
17357169695Skan}
17358169695Skan_ACEOF
17359169695Skanrm -f conftest.$ac_objext
17360169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361169695Skan  (eval $ac_compile) 2>conftest.er1
17362169695Skan  ac_status=$?
17363169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17364169695Skan  rm -f conftest.er1
17365169695Skan  cat conftest.err >&5
17366169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367169695Skan  (exit $ac_status); } &&
17368169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17369169695Skan			 || test ! -s conftest.err'
17370169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371169695Skan  (eval $ac_try) 2>&5
17372169695Skan  ac_status=$?
17373169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374169695Skan  (exit $ac_status); }; } &&
17375169695Skan	 { ac_try='test -s conftest.$ac_objext'
17376169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377169695Skan  (eval $ac_try) 2>&5
17378169695Skan  ac_status=$?
17379169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380169695Skan  (exit $ac_status); }; }; then
17381169695Skan  have_attribute_dllexport=yes
17382169695Skanelse
17383169695Skan  echo "$as_me: failed program was:" >&5
17384169695Skansed 's/^/| /' conftest.$ac_ext >&5
17385169695Skan
17386169695Skanhave_attribute_dllexport=no
17387169695Skanfi
17388169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389169695Skan  CFLAGS="$save_CFLAGS"
17390169695Skanfi
17391169695Skanecho "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17392169695Skanecho "${ECHO_T}$have_attribute_dllexport" >&6
17393169695Skan  if test $have_attribute_dllexport = yes; then
17394169695Skan
17395169695Skancat >>confdefs.h <<\_ACEOF
17396169695Skan#define HAVE_ATTRIBUTE_DLLEXPORT 1
17397169695Skan_ACEOF
17398169695Skan
17399169695Skan  fi
17400169695Skan
17401169695Skan  echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17402169695Skanecho $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17403169695Skanif test "${have_attribute_alias+set}" = set; then
17404169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
17405169695Skanelse
17406169695Skan
17407169695Skan  cat >conftest.$ac_ext <<_ACEOF
17408169695Skan/* confdefs.h.  */
17409169695Skan_ACEOF
17410169695Skancat confdefs.h >>conftest.$ac_ext
17411169695Skancat >>conftest.$ac_ext <<_ACEOF
17412169695Skan/* end confdefs.h.  */
17413169695Skan
17414169695Skanvoid foo(void) { }
17415169695Skanextern void bar(void) __attribute__((alias("foo")));
17416169695Skanint
17417169695Skanmain ()
17418169695Skan{
17419169695Skanbar();
17420169695Skan  ;
17421169695Skan  return 0;
17422169695Skan}
17423169695Skan_ACEOF
17424169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
17425169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426169695Skan  (eval $ac_link) 2>conftest.er1
17427169695Skan  ac_status=$?
17428169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17429169695Skan  rm -f conftest.er1
17430169695Skan  cat conftest.err >&5
17431169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432169695Skan  (exit $ac_status); } &&
17433169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17434169695Skan			 || test ! -s conftest.err'
17435169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436169695Skan  (eval $ac_try) 2>&5
17437169695Skan  ac_status=$?
17438169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439169695Skan  (exit $ac_status); }; } &&
17440169695Skan	 { ac_try='test -s conftest$ac_exeext'
17441169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442169695Skan  (eval $ac_try) 2>&5
17443169695Skan  ac_status=$?
17444169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445169695Skan  (exit $ac_status); }; }; then
17446169695Skan  have_attribute_alias=yes
17447169695Skanelse
17448169695Skan  echo "$as_me: failed program was:" >&5
17449169695Skansed 's/^/| /' conftest.$ac_ext >&5
17450169695Skan
17451169695Skanhave_attribute_alias=no
17452169695Skanfi
17453169695Skanrm -f conftest.err conftest.$ac_objext \
17454169695Skan      conftest$ac_exeext conftest.$ac_ext
17455169695Skanfi
17456169695Skanecho "$as_me:$LINENO: result: $have_attribute_alias" >&5
17457169695Skanecho "${ECHO_T}$have_attribute_alias" >&6
17458169695Skan  if test $have_attribute_alias = yes; then
17459169695Skan
17460169695Skancat >>confdefs.h <<\_ACEOF
17461169695Skan#define HAVE_ATTRIBUTE_ALIAS 1
17462169695Skan_ACEOF
17463169695Skan
17464169695Skan  fi
17465169695Skan
17466282152Spfg
17467282152Spfg# Check whether --with-gnu-ld or --without-gnu-ld was given.
17468282152Spfgif test "${with_gnu_ld+set}" = set; then
17469282152Spfg  withval="$with_gnu_ld"
17470282152Spfg  test "$withval" = no || with_gnu_ld=yes
17471282152Spfgelse
17472282152Spfg  with_gnu_ld=no
17473282152Spfgfi;
17474282152Spfgac_prog=ld
17475282152Spfgif test "$GCC" = yes; then
17476282152Spfg  # Check if gcc -print-prog-name=ld gives a path.
17477282152Spfg  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17478282152Spfgecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17479282152Spfg  case $host in
17480282152Spfg  *-*-mingw*)
17481282152Spfg    # gcc leaves a trailing carriage return which upsets mingw
17482282152Spfg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17483282152Spfg  *)
17484282152Spfg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17485282152Spfg  esac
17486282152Spfg  case $ac_prog in
17487282152Spfg    # Accept absolute paths.
17488282152Spfg    [\\/]* | ?:[\\/]*)
17489282152Spfg      re_direlt='/[^/][^/]*/\.\./'
17490282152Spfg      # Canonicalize the pathname of ld
17491282152Spfg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17492282152Spfg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17493282152Spfg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17494282152Spfg      done
17495282152Spfg      test -z "$LD" && LD="$ac_prog"
17496282152Spfg      ;;
17497282152Spfg  "")
17498282152Spfg    # If it fails, then pretend we aren't using GCC.
17499282152Spfg    ac_prog=ld
17500282152Spfg    ;;
17501282152Spfg  *)
17502282152Spfg    # If it is relative, then search for the first ld in PATH.
17503282152Spfg    with_gnu_ld=unknown
17504282152Spfg    ;;
17505282152Spfg  esac
17506282152Spfgelif test "$with_gnu_ld" = yes; then
17507282152Spfg  echo "$as_me:$LINENO: checking for GNU ld" >&5
17508282152Spfgecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17509282152Spfgelse
17510282152Spfg  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17511282152Spfgecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17512282152Spfgfi
17513282152Spfgif test "${lt_cv_path_LD+set}" = set; then
17514282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
17515282152Spfgelse
17516282152Spfg  if test -z "$LD"; then
17517282152Spfg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17518282152Spfg  for ac_dir in $PATH; do
17519282152Spfg    IFS="$lt_save_ifs"
17520282152Spfg    test -z "$ac_dir" && ac_dir=.
17521282152Spfg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17522282152Spfg      lt_cv_path_LD="$ac_dir/$ac_prog"
17523282152Spfg      # Check to see if the program is GNU ld.  I'd rather use --version,
17524282152Spfg      # but apparently some variants of GNU ld only accept -v.
17525282152Spfg      # Break only if it was the GNU/non-GNU ld that we prefer.
17526282152Spfg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17527282152Spfg      *GNU* | *'with BFD'*)
17528282152Spfg	test "$with_gnu_ld" != no && break
17529282152Spfg	;;
17530282152Spfg      *)
17531282152Spfg	test "$with_gnu_ld" != yes && break
17532282152Spfg	;;
17533282152Spfg      esac
17534282152Spfg    fi
17535282152Spfg  done
17536282152Spfg  IFS="$lt_save_ifs"
17537282152Spfgelse
17538282152Spfg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17539282152Spfgfi
17540282152Spfgfi
17541282152Spfg
17542282152SpfgLD="$lt_cv_path_LD"
17543282152Spfgif test -n "$LD"; then
17544282152Spfg  echo "$as_me:$LINENO: result: $LD" >&5
17545282152Spfgecho "${ECHO_T}$LD" >&6
17546282152Spfgelse
17547282152Spfg  echo "$as_me:$LINENO: result: no" >&5
17548282152Spfgecho "${ECHO_T}no" >&6
17549282152Spfgfi
17550282152Spfgtest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17551282152Spfgecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17552282152Spfg   { (exit 1); exit 1; }; }
17553282152Spfgecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17554282152Spfgecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17555282152Spfgif test "${lt_cv_prog_gnu_ld+set}" = set; then
17556282152Spfg  echo $ECHO_N "(cached) $ECHO_C" >&6
17557282152Spfgelse
17558282152Spfg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17559282152Spfgcase `$LD -v 2>&1 </dev/null` in
17560282152Spfg*GNU* | *'with BFD'*)
17561282152Spfg  lt_cv_prog_gnu_ld=yes
17562282152Spfg  ;;
17563282152Spfg*)
17564282152Spfg  lt_cv_prog_gnu_ld=no
17565282152Spfg  ;;
17566282152Spfgesac
17567282152Spfgfi
17568282152Spfgecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17569282152Spfgecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17570282152Spfgwith_gnu_ld=$lt_cv_prog_gnu_ld
17571282152Spfg
17572282152Spfg
17573282152Spfg
17574282152Spfg
17575282152Spfg
17576282152Spfg
17577282152Spfg
17578169695Skan  # If we're not using GNU ld, then there's no point in even trying these
17579169695Skan  # tests.  Check for that first.  We should have already tested for gld
17580169695Skan  # by now (in libtool), but require it now just to be safe...
17581169695Skan  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17582169695Skan  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17583169695Skan
17584169695Skan
17585169695Skan
17586169695Skan  # The name set by libtool depends on the version of libtool.  Shame on us
17587169695Skan  # for depending on an impl detail, but c'est la vie.  Older versions used
17588169695Skan  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17589169695Skan  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17590169695Skan  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
17591169695Skan  # set (hence we're using an older libtool), then set it.
17592169695Skan  if test x${with_gnu_ld+set} != xset; then
17593169695Skan    if test x${ac_cv_prog_gnu_ld+set} != xset; then
17594169695Skan      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
17595169695Skan      with_gnu_ld=no
17596169695Skan    else
17597169695Skan      with_gnu_ld=$ac_cv_prog_gnu_ld
17598169695Skan    fi
17599169695Skan  fi
17600169695Skan
17601169695Skan  # Start by getting the version number.  I think the libtool test already
17602169695Skan  # does some of this, but throws away the result.
17603169695Skan
17604169695Skan  ldver=`$LD --version 2>/dev/null | head -1 | \
17605169695Skan         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17606169695Skan
17607169695Skan  libgomp_gnu_ld_version=`echo $ldver | \
17608169695Skan         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17609169695Skan
17610169695Skan  # Set --gc-sections.
17611169695Skan  if test "$with_gnu_ld" = "notbroken"; then
17612169695Skan    # GNU ld it is!  Joy and bunny rabbits!
17613169695Skan
17614169695Skan    # All these tests are for C++; save the language and the compiler flags.
17615169695Skan    # Need to do this so that g++ won't try to link in libstdc++
17616169695Skan    ac_test_CFLAGS="${CFLAGS+set}"
17617169695Skan    ac_save_CFLAGS="$CFLAGS"
17618169695Skan    CFLAGS='-x c++  -Wl,--gc-sections'
17619169695Skan
17620169695Skan    # Check for -Wl,--gc-sections
17621169695Skan    # XXX This test is broken at the moment, as symbols required for linking
17622169695Skan    # are now in libsupc++ (not built yet).  In addition, this test has
17623169695Skan    # cored on solaris in the past.  In addition, --gc-sections doesn't
17624169695Skan    # really work at the moment (keeps on discarding used sections, first
17625169695Skan    # .eh_frame and now some of the glibc sections for iconv).
17626169695Skan    # Bzzzzt.  Thanks for playing, maybe next time.
17627169695Skan    echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17628169695Skanecho $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17629169695Skan    if test "$cross_compiling" = yes; then
17630169695Skan  ac_sectionLDflags=yes
17631169695Skanelse
17632169695Skan  cat >conftest.$ac_ext <<_ACEOF
17633169695Skan/* confdefs.h.  */
17634169695Skan_ACEOF
17635169695Skancat confdefs.h >>conftest.$ac_ext
17636169695Skancat >>conftest.$ac_ext <<_ACEOF
17637169695Skan/* end confdefs.h.  */
17638169695Skan
17639169695Skan     int main(void)
17640169695Skan     {
17641169695Skan       try { throw 1; }
17642169695Skan       catch (...) { };
17643169695Skan       return 0;
17644169695Skan     }
17645169695Skan
17646169695Skan_ACEOF
17647169695Skanrm -f conftest$ac_exeext
17648169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649169695Skan  (eval $ac_link) 2>&5
17650169695Skan  ac_status=$?
17651169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17653169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654169695Skan  (eval $ac_try) 2>&5
17655169695Skan  ac_status=$?
17656169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657169695Skan  (exit $ac_status); }; }; then
17658169695Skan  ac_sectionLDflags=yes
17659169695Skanelse
17660169695Skan  echo "$as_me: program exited with status $ac_status" >&5
17661169695Skanecho "$as_me: failed program was:" >&5
17662169695Skansed 's/^/| /' conftest.$ac_ext >&5
17663169695Skan
17664169695Skan( exit $ac_status )
17665169695Skanac_sectionLDflags=no
17666169695Skanfi
17667169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668169695Skanfi
17669169695Skan    if test "$ac_test_CFLAGS" = set; then
17670169695Skan      CFLAGS="$ac_save_CFLAGS"
17671169695Skan    else
17672169695Skan      # this is the suspicious part
17673169695Skan      CFLAGS=''
17674169695Skan    fi
17675169695Skan    if test "$ac_sectionLDflags" = "yes"; then
17676169695Skan      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17677169695Skan    fi
17678169695Skan    echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17679169695Skanecho "${ECHO_T}$ac_sectionLDflags" >&6
17680169695Skan  fi
17681169695Skan
17682169695Skan  # Set linker optimization flags.
17683169695Skan  if test x"$with_gnu_ld" = x"yes"; then
17684169695Skan    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17685169695Skan  fi
17686169695Skan
17687169695Skan
17688169695Skan
17689169695Skan
17690169695Skan
17691169695Skan
17692169695Skan # Check whether --enable-symvers or --disable-symvers was given.
17693169695Skanif test "${enable_symvers+set}" = set; then
17694169695Skan  enableval="$enable_symvers"
17695169695Skan
17696169695Skan      case "$enableval" in
17697169695Skan       yes|no|gnu) ;;
17698169695Skan       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17699169695Skanecho "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17700169695Skan   { (exit 1); exit 1; }; } ;;
17701169695Skan                          esac
17702169695Skan
17703169695Skanelse
17704169695Skan  enable_symvers=yes
17705169695Skanfi;
17706169695Skan
17707169695Skan
17708169695Skan# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17709169695Skan# don't know enough about $LD to do tricks...
17710169695Skan
17711169695Skan# FIXME  The following test is too strict, in theory.
17712169695Skanif test $enable_shared = no ||
17713169695Skan        test "x$LD" = x ||
17714169695Skan        test x$libgomp_gnu_ld_version = x; then
17715169695Skan  enable_symvers=no
17716169695Skanfi
17717169695Skan
17718169695Skan# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17719169695Skanif test $enable_symvers != no; then
17720169695Skan  echo "$as_me:$LINENO: checking for shared libgcc" >&5
17721169695Skanecho $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17722169695Skan  ac_save_CFLAGS="$CFLAGS"
17723169695Skan  CFLAGS=' -lgcc_s'
17724169695Skan  cat >conftest.$ac_ext <<_ACEOF
17725169695Skan/* confdefs.h.  */
17726169695Skan_ACEOF
17727169695Skancat confdefs.h >>conftest.$ac_ext
17728169695Skancat >>conftest.$ac_ext <<_ACEOF
17729169695Skan/* end confdefs.h.  */
17730169695Skan
17731169695Skanint
17732169695Skanmain ()
17733169695Skan{
17734169695Skanreturn 0;
17735169695Skan  ;
17736169695Skan  return 0;
17737169695Skan}
17738169695Skan_ACEOF
17739169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
17740169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741169695Skan  (eval $ac_link) 2>conftest.er1
17742169695Skan  ac_status=$?
17743169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17744169695Skan  rm -f conftest.er1
17745169695Skan  cat conftest.err >&5
17746169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747169695Skan  (exit $ac_status); } &&
17748169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17749169695Skan			 || test ! -s conftest.err'
17750169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751169695Skan  (eval $ac_try) 2>&5
17752169695Skan  ac_status=$?
17753169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754169695Skan  (exit $ac_status); }; } &&
17755169695Skan	 { ac_try='test -s conftest$ac_exeext'
17756169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757169695Skan  (eval $ac_try) 2>&5
17758169695Skan  ac_status=$?
17759169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760169695Skan  (exit $ac_status); }; }; then
17761169695Skan  libgomp_shared_libgcc=yes
17762169695Skanelse
17763169695Skan  echo "$as_me: failed program was:" >&5
17764169695Skansed 's/^/| /' conftest.$ac_ext >&5
17765169695Skan
17766169695Skanlibgomp_shared_libgcc=no
17767169695Skanfi
17768169695Skanrm -f conftest.err conftest.$ac_objext \
17769169695Skan      conftest$ac_exeext conftest.$ac_ext
17770169695Skan  CFLAGS="$ac_save_CFLAGS"
17771169695Skan  if test $libgomp_shared_libgcc = no; then
17772169695Skan    cat > conftest.c <<EOF
17773169695Skanint main (void) { return 0; }
17774169695SkanEOF
17775169695Skan    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17776169695Skan			     -shared -shared-libgcc -o conftest.so \
17777169695Skan			     conftest.c -v 2>&1 >/dev/null \
17778169695Skan			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17779169695Skan    rm -f conftest.c conftest.so
17780169695Skan    if test x${libgomp_libgcc_s_suffix+set} = xset; then
17781169695Skan      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17782169695Skan      cat >conftest.$ac_ext <<_ACEOF
17783169695Skan/* confdefs.h.  */
17784169695Skan_ACEOF
17785169695Skancat confdefs.h >>conftest.$ac_ext
17786169695Skancat >>conftest.$ac_ext <<_ACEOF
17787169695Skan/* end confdefs.h.  */
17788169695Skan
17789169695Skanint
17790169695Skanmain ()
17791169695Skan{
17792169695Skanreturn 0;
17793169695Skan  ;
17794169695Skan  return 0;
17795169695Skan}
17796169695Skan_ACEOF
17797169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
17798169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799169695Skan  (eval $ac_link) 2>conftest.er1
17800169695Skan  ac_status=$?
17801169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17802169695Skan  rm -f conftest.er1
17803169695Skan  cat conftest.err >&5
17804169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805169695Skan  (exit $ac_status); } &&
17806169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17807169695Skan			 || test ! -s conftest.err'
17808169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809169695Skan  (eval $ac_try) 2>&5
17810169695Skan  ac_status=$?
17811169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812169695Skan  (exit $ac_status); }; } &&
17813169695Skan	 { ac_try='test -s conftest$ac_exeext'
17814169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815169695Skan  (eval $ac_try) 2>&5
17816169695Skan  ac_status=$?
17817169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818169695Skan  (exit $ac_status); }; }; then
17819169695Skan  libgomp_shared_libgcc=yes
17820169695Skanelse
17821169695Skan  echo "$as_me: failed program was:" >&5
17822169695Skansed 's/^/| /' conftest.$ac_ext >&5
17823169695Skan
17824169695Skanfi
17825169695Skanrm -f conftest.err conftest.$ac_objext \
17826169695Skan      conftest$ac_exeext conftest.$ac_ext
17827169695Skan      CFLAGS="$ac_save_CFLAGS"
17828169695Skan    fi
17829169695Skan  fi
17830169695Skan  echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17831169695Skanecho "${ECHO_T}$libgomp_shared_libgcc" >&6
17832169695Skanfi
17833169695Skan
17834169695Skan# For GNU ld, we need at least this version.  The format is described in
17835169695Skan# LIBGOMP_CHECK_LINKER_FEATURES above.
17836169695Skanlibgomp_min_gnu_ld_version=21400
17837169695Skan# XXXXXXXXXXX libgomp_gnu_ld_version=21390
17838169695Skan
17839169695Skan# Check to see if unspecified "yes" value can win, given results above.
17840169695Skan# Change "yes" into either "no" or a style name.
17841169695Skanif test $enable_symvers = yes; then
17842169695Skan  if test $with_gnu_ld = yes &&
17843169695Skan     test $libgomp_shared_libgcc = yes;
17844169695Skan  then
17845169695Skan    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17846169695Skan      enable_symvers=gnu
17847169695Skan    else
17848169695Skan      # The right tools, the right setup, but too old.  Fallbacks?
17849169695Skan      { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17850169695Skanecho "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17851169695Skan      { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17852169695Skanecho "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17853169695Skan      { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17854169695Skanecho "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17855169695Skan      { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17856169695Skanecho "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17857169695Skan      if test $libgomp_gnu_ld_version -ge 21200 ; then
17858169695Skan        # Globbing fix is present, proper block support is not.
17859169695Skan                        { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17860169695Skanecho "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17861169695Skan        enable_symvers=no
17862169695Skan      else
17863169695Skan        # 2.11 or older.
17864169695Skan        { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17865169695Skanecho "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17866169695Skan        enable_symvers=no
17867169695Skan      fi
17868169695Skan    fi
17869169695Skan  else
17870169695Skan    # just fail for now
17871169695Skan    { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17872169695Skanecho "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17873169695Skan    { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17874169695Skanecho "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17875169695Skan    { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17876169695Skanecho "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17877169695Skan    { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17878169695Skanecho "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17879169695Skan    enable_symvers=no
17880169695Skan  fi
17881169695Skanfi
17882169695Skan
17883169695Skan
17884169695Skan
17885169695Skanif test $enable_symvers != no; then
17886169695Skan  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17887169695Skan  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17888169695Skanelse
17889169695Skan  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17890169695Skan  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17891169695Skanfi
17892169695Skan
17893169695Skan{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17894169695Skanecho "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17895169695Skan
17896169695Skan
17897169695Skan# Get target configury.
17898169695Skan. ${srcdir}/configure.tgt
17899169695SkanCFLAGS="$save_CFLAGS $XCFLAGS"
17900169695Skan
17901169695Skan# Check for __sync_val_compare_and_swap, but only after the target has
17902169695Skan# had a chance to set XCFLAGS.
17903169695Skan
17904169695Skan  echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17905169695Skanecho $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17906169695Skanif test "${have_sync_builtins+set}" = set; then
17907169695Skan  echo $ECHO_N "(cached) $ECHO_C" >&6
17908169695Skanelse
17909169695Skan
17910169695Skan  cat >conftest.$ac_ext <<_ACEOF
17911169695Skan/* confdefs.h.  */
17912169695Skan_ACEOF
17913169695Skancat confdefs.h >>conftest.$ac_ext
17914169695Skancat >>conftest.$ac_ext <<_ACEOF
17915169695Skan/* end confdefs.h.  */
17916169695Skan
17917169695Skanint
17918169695Skanmain ()
17919169695Skan{
17920169695Skanint foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17921169695Skan  ;
17922169695Skan  return 0;
17923169695Skan}
17924169695Skan_ACEOF
17925169695Skanrm -f conftest.$ac_objext conftest$ac_exeext
17926169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927169695Skan  (eval $ac_link) 2>conftest.er1
17928169695Skan  ac_status=$?
17929169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
17930169695Skan  rm -f conftest.er1
17931169695Skan  cat conftest.err >&5
17932169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933169695Skan  (exit $ac_status); } &&
17934169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
17935169695Skan			 || test ! -s conftest.err'
17936169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937169695Skan  (eval $ac_try) 2>&5
17938169695Skan  ac_status=$?
17939169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940169695Skan  (exit $ac_status); }; } &&
17941169695Skan	 { ac_try='test -s conftest$ac_exeext'
17942169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943169695Skan  (eval $ac_try) 2>&5
17944169695Skan  ac_status=$?
17945169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946169695Skan  (exit $ac_status); }; }; then
17947169695Skan  have_sync_builtins=yes
17948169695Skanelse
17949169695Skan  echo "$as_me: failed program was:" >&5
17950169695Skansed 's/^/| /' conftest.$ac_ext >&5
17951169695Skan
17952169695Skanhave_sync_builtins=no
17953169695Skanfi
17954169695Skanrm -f conftest.err conftest.$ac_objext \
17955169695Skan      conftest$ac_exeext conftest.$ac_ext
17956169695Skanfi
17957169695Skanecho "$as_me:$LINENO: result: $have_sync_builtins" >&5
17958169695Skanecho "${ECHO_T}$have_sync_builtins" >&6
17959169695Skan  if test $have_sync_builtins = yes; then
17960169695Skan
17961169695Skancat >>confdefs.h <<\_ACEOF
17962169695Skan#define HAVE_SYNC_BUILTINS 1
17963169695Skan_ACEOF
17964169695Skan
17965169695Skan  fi
17966169695Skan
17967169695SkanXCFLAGS="$XCFLAGS$XPCFLAGS"
17968169695Skan
17969169695Skan
17970169695Skan
17971169695Skan
17972169695Skan
17973169695Skan# Cleanup and exit.
17974169695SkanCFLAGS="$save_CFLAGS"
17975169695Skancat >confcache <<\_ACEOF
17976169695Skan# This file is a shell script that caches the results of configure
17977169695Skan# tests run on this system so they can be shared between configure
17978169695Skan# scripts and configure runs, see configure's option --config-cache.
17979169695Skan# It is not useful on other systems.  If it contains results you don't
17980169695Skan# want to keep, you may remove or edit it.
17981169695Skan#
17982169695Skan# config.status only pays attention to the cache file if you give it
17983169695Skan# the --recheck option to rerun configure.
17984169695Skan#
17985169695Skan# `ac_cv_env_foo' variables (set or unset) will be overridden when
17986169695Skan# loading this file, other *unset* `ac_cv_foo' will be assigned the
17987169695Skan# following values.
17988169695Skan
17989169695Skan_ACEOF
17990169695Skan
17991169695Skan# The following way of writing the cache mishandles newlines in values,
17992169695Skan# but we know of no workaround that is simple, portable, and efficient.
17993169695Skan# So, don't put newlines in cache variables' values.
17994169695Skan# Ultrix sh set writes to stderr and can't be redirected directly,
17995169695Skan# and sets the high bit in the cache file unless we assign to the vars.
17996169695Skan{
17997169695Skan  (set) 2>&1 |
17998169695Skan    case `(ac_space=' '; set | grep ac_space) 2>&1` in
17999169695Skan    *ac_space=\ *)
18000169695Skan      # `set' does not quote correctly, so add quotes (double-quote
18001169695Skan      # substitution turns \\\\ into \\, and sed turns \\ into \).
18002169695Skan      sed -n \
18003169695Skan	"s/'/'\\\\''/g;
18004169695Skan	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18005169695Skan      ;;
18006169695Skan    *)
18007169695Skan      # `set' quotes correctly as required by POSIX, so do not add quotes.
18008169695Skan      sed -n \
18009169695Skan	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18010169695Skan      ;;
18011169695Skan    esac;
18012169695Skan} |
18013169695Skan  sed '
18014169695Skan     t clear
18015169695Skan     : clear
18016169695Skan     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18017169695Skan     t end
18018169695Skan     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18019169695Skan     : end' >>confcache
18020169695Skanif diff $cache_file confcache >/dev/null 2>&1; then :; else
18021169695Skan  if test -w $cache_file; then
18022169695Skan    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18023169695Skan    cat confcache >$cache_file
18024169695Skan  else
18025169695Skan    echo "not updating unwritable cache $cache_file"
18026169695Skan  fi
18027169695Skanfi
18028169695Skanrm -f confcache
18029169695Skan
18030169695Skanif test ${multilib} = yes; then
18031169695Skan  multilib_arg="--enable-multilib"
18032169695Skanelse
18033169695Skan  multilib_arg=
18034169695Skanfi
18035169695Skan
18036169695Skan# Set up the set of libraries that we need to link against for libgomp.
18037169695Skan# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18038169695Skan# which will force linkage against -lpthread (or equivalent for the system).
18039169695Skan# That's not 100% ideal, but about the best we can do easily.
18040169695Skanif test $enable_shared = yes; then
18041169695Skan  link_gomp="-lgomp %{static: $LIBS}"
18042169695Skanelse
18043169695Skan  link_gomp="-lgomp $LIBS"
18044169695Skanfi
18045169695Skan
18046169695Skan
18047169695Skan
18048169695Skan
18049169695Skanif test "$ac_cv_fc_compiler_gnu" = yes; then
18050169695Skan  USE_FORTRAN_TRUE=
18051169695Skan  USE_FORTRAN_FALSE='#'
18052169695Skanelse
18053169695Skan  USE_FORTRAN_TRUE='#'
18054169695Skan  USE_FORTRAN_FALSE=
18055169695Skanfi
18056169695Skan
18057169695Skan
18058169695Skan# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18059169695Skan# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
18060169695Skan# the underscore here and update the PREREQ.  If it doesn't, then we'll
18061169695Skan# need to copy this macro to our acinclude.m4.
18062169695Skansave_CFLAGS="$CFLAGS"
18063169695Skanfor i in $config_path; do
18064169695Skan  if test -f $srcdir/config/$i/omp-lock.h; then
18065169695Skan    CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18066169695Skan    break
18067169695Skan  fi
18068169695Skandone
18069169695Skan
18070169695Skanif test "$cross_compiling" = yes; then
18071169695Skan  # Depending upon the size, compute the lo and hi bounds.
18072169695Skancat >conftest.$ac_ext <<_ACEOF
18073169695Skan/* confdefs.h.  */
18074169695Skan_ACEOF
18075169695Skancat confdefs.h >>conftest.$ac_ext
18076169695Skancat >>conftest.$ac_ext <<_ACEOF
18077169695Skan/* end confdefs.h.  */
18078169695Skan
18079169695Skanint
18080169695Skanmain ()
18081169695Skan{
18082169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18083169695Skantest_array [0] = 0
18084169695Skan
18085169695Skan  ;
18086169695Skan  return 0;
18087169695Skan}
18088169695Skan_ACEOF
18089169695Skanrm -f conftest.$ac_objext
18090169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091169695Skan  (eval $ac_compile) 2>conftest.er1
18092169695Skan  ac_status=$?
18093169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18094169695Skan  rm -f conftest.er1
18095169695Skan  cat conftest.err >&5
18096169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097169695Skan  (exit $ac_status); } &&
18098169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18099169695Skan			 || test ! -s conftest.err'
18100169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101169695Skan  (eval $ac_try) 2>&5
18102169695Skan  ac_status=$?
18103169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104169695Skan  (exit $ac_status); }; } &&
18105169695Skan	 { ac_try='test -s conftest.$ac_objext'
18106169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107169695Skan  (eval $ac_try) 2>&5
18108169695Skan  ac_status=$?
18109169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110169695Skan  (exit $ac_status); }; }; then
18111169695Skan  ac_lo=0 ac_mid=0
18112169695Skan  while :; do
18113169695Skan    cat >conftest.$ac_ext <<_ACEOF
18114169695Skan/* confdefs.h.  */
18115169695Skan_ACEOF
18116169695Skancat confdefs.h >>conftest.$ac_ext
18117169695Skancat >>conftest.$ac_ext <<_ACEOF
18118169695Skan/* end confdefs.h.  */
18119169695Skan
18120169695Skanint
18121169695Skanmain ()
18122169695Skan{
18123169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18124169695Skantest_array [0] = 0
18125169695Skan
18126169695Skan  ;
18127169695Skan  return 0;
18128169695Skan}
18129169695Skan_ACEOF
18130169695Skanrm -f conftest.$ac_objext
18131169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132169695Skan  (eval $ac_compile) 2>conftest.er1
18133169695Skan  ac_status=$?
18134169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18135169695Skan  rm -f conftest.er1
18136169695Skan  cat conftest.err >&5
18137169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138169695Skan  (exit $ac_status); } &&
18139169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18140169695Skan			 || test ! -s conftest.err'
18141169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142169695Skan  (eval $ac_try) 2>&5
18143169695Skan  ac_status=$?
18144169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145169695Skan  (exit $ac_status); }; } &&
18146169695Skan	 { ac_try='test -s conftest.$ac_objext'
18147169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148169695Skan  (eval $ac_try) 2>&5
18149169695Skan  ac_status=$?
18150169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151169695Skan  (exit $ac_status); }; }; then
18152169695Skan  ac_hi=$ac_mid; break
18153169695Skanelse
18154169695Skan  echo "$as_me: failed program was:" >&5
18155169695Skansed 's/^/| /' conftest.$ac_ext >&5
18156169695Skan
18157169695Skanac_lo=`expr $ac_mid + 1`
18158169695Skan		    if test $ac_lo -le $ac_mid; then
18159169695Skan		      ac_lo= ac_hi=
18160169695Skan		      break
18161169695Skan		    fi
18162169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
18163169695Skanfi
18164169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18165169695Skan  done
18166169695Skanelse
18167169695Skan  echo "$as_me: failed program was:" >&5
18168169695Skansed 's/^/| /' conftest.$ac_ext >&5
18169169695Skan
18170169695Skancat >conftest.$ac_ext <<_ACEOF
18171169695Skan/* confdefs.h.  */
18172169695Skan_ACEOF
18173169695Skancat confdefs.h >>conftest.$ac_ext
18174169695Skancat >>conftest.$ac_ext <<_ACEOF
18175169695Skan/* end confdefs.h.  */
18176169695Skan
18177169695Skanint
18178169695Skanmain ()
18179169695Skan{
18180169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18181169695Skantest_array [0] = 0
18182169695Skan
18183169695Skan  ;
18184169695Skan  return 0;
18185169695Skan}
18186169695Skan_ACEOF
18187169695Skanrm -f conftest.$ac_objext
18188169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189169695Skan  (eval $ac_compile) 2>conftest.er1
18190169695Skan  ac_status=$?
18191169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18192169695Skan  rm -f conftest.er1
18193169695Skan  cat conftest.err >&5
18194169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195169695Skan  (exit $ac_status); } &&
18196169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18197169695Skan			 || test ! -s conftest.err'
18198169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199169695Skan  (eval $ac_try) 2>&5
18200169695Skan  ac_status=$?
18201169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202169695Skan  (exit $ac_status); }; } &&
18203169695Skan	 { ac_try='test -s conftest.$ac_objext'
18204169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205169695Skan  (eval $ac_try) 2>&5
18206169695Skan  ac_status=$?
18207169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208169695Skan  (exit $ac_status); }; }; then
18209169695Skan  ac_hi=-1 ac_mid=-1
18210169695Skan  while :; do
18211169695Skan    cat >conftest.$ac_ext <<_ACEOF
18212169695Skan/* confdefs.h.  */
18213169695Skan_ACEOF
18214169695Skancat confdefs.h >>conftest.$ac_ext
18215169695Skancat >>conftest.$ac_ext <<_ACEOF
18216169695Skan/* end confdefs.h.  */
18217169695Skan
18218169695Skanint
18219169695Skanmain ()
18220169695Skan{
18221169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18222169695Skantest_array [0] = 0
18223169695Skan
18224169695Skan  ;
18225169695Skan  return 0;
18226169695Skan}
18227169695Skan_ACEOF
18228169695Skanrm -f conftest.$ac_objext
18229169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230169695Skan  (eval $ac_compile) 2>conftest.er1
18231169695Skan  ac_status=$?
18232169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18233169695Skan  rm -f conftest.er1
18234169695Skan  cat conftest.err >&5
18235169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236169695Skan  (exit $ac_status); } &&
18237169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18238169695Skan			 || test ! -s conftest.err'
18239169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240169695Skan  (eval $ac_try) 2>&5
18241169695Skan  ac_status=$?
18242169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243169695Skan  (exit $ac_status); }; } &&
18244169695Skan	 { ac_try='test -s conftest.$ac_objext'
18245169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246169695Skan  (eval $ac_try) 2>&5
18247169695Skan  ac_status=$?
18248169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249169695Skan  (exit $ac_status); }; }; then
18250169695Skan  ac_lo=$ac_mid; break
18251169695Skanelse
18252169695Skan  echo "$as_me: failed program was:" >&5
18253169695Skansed 's/^/| /' conftest.$ac_ext >&5
18254169695Skan
18255169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
18256169695Skan		       if test $ac_mid -le $ac_hi; then
18257169695Skan			 ac_lo= ac_hi=
18258169695Skan			 break
18259169695Skan		       fi
18260169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
18261169695Skanfi
18262169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18263169695Skan  done
18264169695Skanelse
18265169695Skan  echo "$as_me: failed program was:" >&5
18266169695Skansed 's/^/| /' conftest.$ac_ext >&5
18267169695Skan
18268169695Skanac_lo= ac_hi=
18269169695Skanfi
18270169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271169695Skanfi
18272169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18273169695Skan# Binary search between lo and hi bounds.
18274169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
18275169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18276169695Skan  cat >conftest.$ac_ext <<_ACEOF
18277169695Skan/* confdefs.h.  */
18278169695Skan_ACEOF
18279169695Skancat confdefs.h >>conftest.$ac_ext
18280169695Skancat >>conftest.$ac_ext <<_ACEOF
18281169695Skan/* end confdefs.h.  */
18282169695Skan
18283169695Skanint
18284169695Skanmain ()
18285169695Skan{
18286169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18287169695Skantest_array [0] = 0
18288169695Skan
18289169695Skan  ;
18290169695Skan  return 0;
18291169695Skan}
18292169695Skan_ACEOF
18293169695Skanrm -f conftest.$ac_objext
18294169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295169695Skan  (eval $ac_compile) 2>conftest.er1
18296169695Skan  ac_status=$?
18297169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18298169695Skan  rm -f conftest.er1
18299169695Skan  cat conftest.err >&5
18300169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301169695Skan  (exit $ac_status); } &&
18302169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18303169695Skan			 || test ! -s conftest.err'
18304169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305169695Skan  (eval $ac_try) 2>&5
18306169695Skan  ac_status=$?
18307169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308169695Skan  (exit $ac_status); }; } &&
18309169695Skan	 { ac_try='test -s conftest.$ac_objext'
18310169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311169695Skan  (eval $ac_try) 2>&5
18312169695Skan  ac_status=$?
18313169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314169695Skan  (exit $ac_status); }; }; then
18315169695Skan  ac_hi=$ac_mid
18316169695Skanelse
18317169695Skan  echo "$as_me: failed program was:" >&5
18318169695Skansed 's/^/| /' conftest.$ac_ext >&5
18319169695Skan
18320169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
18321169695Skanfi
18322169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18323169695Skandone
18324169695Skancase $ac_lo in
18325169695Skan?*) OMP_LOCK_SIZE=$ac_lo;;
18326169695Skan'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18327169695Skanecho "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18328169695Skan   { (exit 1); exit 1; }; } ;;
18329169695Skanesac
18330169695Skanelse
18331169695Skan  if test "$cross_compiling" = yes; then
18332169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18333169695SkanSee \`config.log' for more details." >&5
18334169695Skanecho "$as_me: error: cannot run test program while cross compiling
18335169695SkanSee \`config.log' for more details." >&2;}
18336169695Skan   { (exit 1); exit 1; }; }
18337169695Skanelse
18338169695Skan  cat >conftest.$ac_ext <<_ACEOF
18339169695Skan/* confdefs.h.  */
18340169695Skan_ACEOF
18341169695Skancat confdefs.h >>conftest.$ac_ext
18342169695Skancat >>conftest.$ac_ext <<_ACEOF
18343169695Skan/* end confdefs.h.  */
18344169695Skan
18345169695Skanlong longval () { return sizeof (omp_lock_t); }
18346169695Skanunsigned long ulongval () { return sizeof (omp_lock_t); }
18347169695Skan#include <stdio.h>
18348169695Skan#include <stdlib.h>
18349169695Skanint
18350169695Skanmain ()
18351169695Skan{
18352169695Skan
18353169695Skan  FILE *f = fopen ("conftest.val", "w");
18354169695Skan  if (! f)
18355169695Skan    exit (1);
18356169695Skan  if ((sizeof (omp_lock_t)) < 0)
18357169695Skan    {
18358169695Skan      long i = longval ();
18359169695Skan      if (i != (sizeof (omp_lock_t)))
18360169695Skan	exit (1);
18361169695Skan      fprintf (f, "%ld\n", i);
18362169695Skan    }
18363169695Skan  else
18364169695Skan    {
18365169695Skan      unsigned long i = ulongval ();
18366169695Skan      if (i != (sizeof (omp_lock_t)))
18367169695Skan	exit (1);
18368169695Skan      fprintf (f, "%lu\n", i);
18369169695Skan    }
18370169695Skan  exit (ferror (f) || fclose (f) != 0);
18371169695Skan
18372169695Skan  ;
18373169695Skan  return 0;
18374169695Skan}
18375169695Skan_ACEOF
18376169695Skanrm -f conftest$ac_exeext
18377169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378169695Skan  (eval $ac_link) 2>&5
18379169695Skan  ac_status=$?
18380169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18382169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383169695Skan  (eval $ac_try) 2>&5
18384169695Skan  ac_status=$?
18385169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386169695Skan  (exit $ac_status); }; }; then
18387169695Skan  OMP_LOCK_SIZE=`cat conftest.val`
18388169695Skanelse
18389169695Skan  echo "$as_me: program exited with status $ac_status" >&5
18390169695Skanecho "$as_me: failed program was:" >&5
18391169695Skansed 's/^/| /' conftest.$ac_ext >&5
18392169695Skan
18393169695Skan( exit $ac_status )
18394169695Skan{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18395169695Skanecho "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18396169695Skan   { (exit 1); exit 1; }; }
18397169695Skanfi
18398169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18399169695Skanfi
18400169695Skanfi
18401169695Skanrm -f conftest.val
18402169695Skanif test "$cross_compiling" = yes; then
18403169695Skan  # Depending upon the size, compute the lo and hi bounds.
18404169695Skancat >conftest.$ac_ext <<_ACEOF
18405169695Skan/* confdefs.h.  */
18406169695Skan_ACEOF
18407169695Skancat confdefs.h >>conftest.$ac_ext
18408169695Skancat >>conftest.$ac_ext <<_ACEOF
18409169695Skan/* end confdefs.h.  */
18410169695Skan
18411169695Skanint
18412169695Skanmain ()
18413169695Skan{
18414169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18415169695Skantest_array [0] = 0
18416169695Skan
18417169695Skan  ;
18418169695Skan  return 0;
18419169695Skan}
18420169695Skan_ACEOF
18421169695Skanrm -f conftest.$ac_objext
18422169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423169695Skan  (eval $ac_compile) 2>conftest.er1
18424169695Skan  ac_status=$?
18425169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18426169695Skan  rm -f conftest.er1
18427169695Skan  cat conftest.err >&5
18428169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429169695Skan  (exit $ac_status); } &&
18430169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18431169695Skan			 || test ! -s conftest.err'
18432169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433169695Skan  (eval $ac_try) 2>&5
18434169695Skan  ac_status=$?
18435169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436169695Skan  (exit $ac_status); }; } &&
18437169695Skan	 { ac_try='test -s conftest.$ac_objext'
18438169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439169695Skan  (eval $ac_try) 2>&5
18440169695Skan  ac_status=$?
18441169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442169695Skan  (exit $ac_status); }; }; then
18443169695Skan  ac_lo=0 ac_mid=0
18444169695Skan  while :; do
18445169695Skan    cat >conftest.$ac_ext <<_ACEOF
18446169695Skan/* confdefs.h.  */
18447169695Skan_ACEOF
18448169695Skancat confdefs.h >>conftest.$ac_ext
18449169695Skancat >>conftest.$ac_ext <<_ACEOF
18450169695Skan/* end confdefs.h.  */
18451169695Skan
18452169695Skanint
18453169695Skanmain ()
18454169695Skan{
18455169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18456169695Skantest_array [0] = 0
18457169695Skan
18458169695Skan  ;
18459169695Skan  return 0;
18460169695Skan}
18461169695Skan_ACEOF
18462169695Skanrm -f conftest.$ac_objext
18463169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464169695Skan  (eval $ac_compile) 2>conftest.er1
18465169695Skan  ac_status=$?
18466169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18467169695Skan  rm -f conftest.er1
18468169695Skan  cat conftest.err >&5
18469169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470169695Skan  (exit $ac_status); } &&
18471169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18472169695Skan			 || test ! -s conftest.err'
18473169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474169695Skan  (eval $ac_try) 2>&5
18475169695Skan  ac_status=$?
18476169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477169695Skan  (exit $ac_status); }; } &&
18478169695Skan	 { ac_try='test -s conftest.$ac_objext'
18479169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480169695Skan  (eval $ac_try) 2>&5
18481169695Skan  ac_status=$?
18482169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483169695Skan  (exit $ac_status); }; }; then
18484169695Skan  ac_hi=$ac_mid; break
18485169695Skanelse
18486169695Skan  echo "$as_me: failed program was:" >&5
18487169695Skansed 's/^/| /' conftest.$ac_ext >&5
18488169695Skan
18489169695Skanac_lo=`expr $ac_mid + 1`
18490169695Skan		    if test $ac_lo -le $ac_mid; then
18491169695Skan		      ac_lo= ac_hi=
18492169695Skan		      break
18493169695Skan		    fi
18494169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
18495169695Skanfi
18496169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18497169695Skan  done
18498169695Skanelse
18499169695Skan  echo "$as_me: failed program was:" >&5
18500169695Skansed 's/^/| /' conftest.$ac_ext >&5
18501169695Skan
18502169695Skancat >conftest.$ac_ext <<_ACEOF
18503169695Skan/* confdefs.h.  */
18504169695Skan_ACEOF
18505169695Skancat confdefs.h >>conftest.$ac_ext
18506169695Skancat >>conftest.$ac_ext <<_ACEOF
18507169695Skan/* end confdefs.h.  */
18508169695Skan
18509169695Skanint
18510169695Skanmain ()
18511169695Skan{
18512169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18513169695Skantest_array [0] = 0
18514169695Skan
18515169695Skan  ;
18516169695Skan  return 0;
18517169695Skan}
18518169695Skan_ACEOF
18519169695Skanrm -f conftest.$ac_objext
18520169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521169695Skan  (eval $ac_compile) 2>conftest.er1
18522169695Skan  ac_status=$?
18523169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18524169695Skan  rm -f conftest.er1
18525169695Skan  cat conftest.err >&5
18526169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527169695Skan  (exit $ac_status); } &&
18528169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18529169695Skan			 || test ! -s conftest.err'
18530169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531169695Skan  (eval $ac_try) 2>&5
18532169695Skan  ac_status=$?
18533169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534169695Skan  (exit $ac_status); }; } &&
18535169695Skan	 { ac_try='test -s conftest.$ac_objext'
18536169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537169695Skan  (eval $ac_try) 2>&5
18538169695Skan  ac_status=$?
18539169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540169695Skan  (exit $ac_status); }; }; then
18541169695Skan  ac_hi=-1 ac_mid=-1
18542169695Skan  while :; do
18543169695Skan    cat >conftest.$ac_ext <<_ACEOF
18544169695Skan/* confdefs.h.  */
18545169695Skan_ACEOF
18546169695Skancat confdefs.h >>conftest.$ac_ext
18547169695Skancat >>conftest.$ac_ext <<_ACEOF
18548169695Skan/* end confdefs.h.  */
18549169695Skan
18550169695Skanint
18551169695Skanmain ()
18552169695Skan{
18553169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18554169695Skantest_array [0] = 0
18555169695Skan
18556169695Skan  ;
18557169695Skan  return 0;
18558169695Skan}
18559169695Skan_ACEOF
18560169695Skanrm -f conftest.$ac_objext
18561169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562169695Skan  (eval $ac_compile) 2>conftest.er1
18563169695Skan  ac_status=$?
18564169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18565169695Skan  rm -f conftest.er1
18566169695Skan  cat conftest.err >&5
18567169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568169695Skan  (exit $ac_status); } &&
18569169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18570169695Skan			 || test ! -s conftest.err'
18571169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572169695Skan  (eval $ac_try) 2>&5
18573169695Skan  ac_status=$?
18574169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575169695Skan  (exit $ac_status); }; } &&
18576169695Skan	 { ac_try='test -s conftest.$ac_objext'
18577169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578169695Skan  (eval $ac_try) 2>&5
18579169695Skan  ac_status=$?
18580169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581169695Skan  (exit $ac_status); }; }; then
18582169695Skan  ac_lo=$ac_mid; break
18583169695Skanelse
18584169695Skan  echo "$as_me: failed program was:" >&5
18585169695Skansed 's/^/| /' conftest.$ac_ext >&5
18586169695Skan
18587169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
18588169695Skan		       if test $ac_mid -le $ac_hi; then
18589169695Skan			 ac_lo= ac_hi=
18590169695Skan			 break
18591169695Skan		       fi
18592169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
18593169695Skanfi
18594169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18595169695Skan  done
18596169695Skanelse
18597169695Skan  echo "$as_me: failed program was:" >&5
18598169695Skansed 's/^/| /' conftest.$ac_ext >&5
18599169695Skan
18600169695Skanac_lo= ac_hi=
18601169695Skanfi
18602169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18603169695Skanfi
18604169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605169695Skan# Binary search between lo and hi bounds.
18606169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
18607169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18608169695Skan  cat >conftest.$ac_ext <<_ACEOF
18609169695Skan/* confdefs.h.  */
18610169695Skan_ACEOF
18611169695Skancat confdefs.h >>conftest.$ac_ext
18612169695Skancat >>conftest.$ac_ext <<_ACEOF
18613169695Skan/* end confdefs.h.  */
18614169695Skan
18615169695Skanint
18616169695Skanmain ()
18617169695Skan{
18618169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18619169695Skantest_array [0] = 0
18620169695Skan
18621169695Skan  ;
18622169695Skan  return 0;
18623169695Skan}
18624169695Skan_ACEOF
18625169695Skanrm -f conftest.$ac_objext
18626169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627169695Skan  (eval $ac_compile) 2>conftest.er1
18628169695Skan  ac_status=$?
18629169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18630169695Skan  rm -f conftest.er1
18631169695Skan  cat conftest.err >&5
18632169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633169695Skan  (exit $ac_status); } &&
18634169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18635169695Skan			 || test ! -s conftest.err'
18636169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637169695Skan  (eval $ac_try) 2>&5
18638169695Skan  ac_status=$?
18639169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640169695Skan  (exit $ac_status); }; } &&
18641169695Skan	 { ac_try='test -s conftest.$ac_objext'
18642169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643169695Skan  (eval $ac_try) 2>&5
18644169695Skan  ac_status=$?
18645169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646169695Skan  (exit $ac_status); }; }; then
18647169695Skan  ac_hi=$ac_mid
18648169695Skanelse
18649169695Skan  echo "$as_me: failed program was:" >&5
18650169695Skansed 's/^/| /' conftest.$ac_ext >&5
18651169695Skan
18652169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
18653169695Skanfi
18654169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655169695Skandone
18656169695Skancase $ac_lo in
18657169695Skan?*) OMP_LOCK_ALIGN=$ac_lo;;
18658169695Skan'')  ;;
18659169695Skanesac
18660169695Skanelse
18661169695Skan  if test "$cross_compiling" = yes; then
18662169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18663169695SkanSee \`config.log' for more details." >&5
18664169695Skanecho "$as_me: error: cannot run test program while cross compiling
18665169695SkanSee \`config.log' for more details." >&2;}
18666169695Skan   { (exit 1); exit 1; }; }
18667169695Skanelse
18668169695Skan  cat >conftest.$ac_ext <<_ACEOF
18669169695Skan/* confdefs.h.  */
18670169695Skan_ACEOF
18671169695Skancat confdefs.h >>conftest.$ac_ext
18672169695Skancat >>conftest.$ac_ext <<_ACEOF
18673169695Skan/* end confdefs.h.  */
18674169695Skan
18675169695Skanlong longval () { return __alignof (omp_lock_t); }
18676169695Skanunsigned long ulongval () { return __alignof (omp_lock_t); }
18677169695Skan#include <stdio.h>
18678169695Skan#include <stdlib.h>
18679169695Skanint
18680169695Skanmain ()
18681169695Skan{
18682169695Skan
18683169695Skan  FILE *f = fopen ("conftest.val", "w");
18684169695Skan  if (! f)
18685169695Skan    exit (1);
18686169695Skan  if ((__alignof (omp_lock_t)) < 0)
18687169695Skan    {
18688169695Skan      long i = longval ();
18689169695Skan      if (i != (__alignof (omp_lock_t)))
18690169695Skan	exit (1);
18691169695Skan      fprintf (f, "%ld\n", i);
18692169695Skan    }
18693169695Skan  else
18694169695Skan    {
18695169695Skan      unsigned long i = ulongval ();
18696169695Skan      if (i != (__alignof (omp_lock_t)))
18697169695Skan	exit (1);
18698169695Skan      fprintf (f, "%lu\n", i);
18699169695Skan    }
18700169695Skan  exit (ferror (f) || fclose (f) != 0);
18701169695Skan
18702169695Skan  ;
18703169695Skan  return 0;
18704169695Skan}
18705169695Skan_ACEOF
18706169695Skanrm -f conftest$ac_exeext
18707169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708169695Skan  (eval $ac_link) 2>&5
18709169695Skan  ac_status=$?
18710169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18712169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713169695Skan  (eval $ac_try) 2>&5
18714169695Skan  ac_status=$?
18715169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716169695Skan  (exit $ac_status); }; }; then
18717169695Skan  OMP_LOCK_ALIGN=`cat conftest.val`
18718169695Skanelse
18719169695Skan  echo "$as_me: program exited with status $ac_status" >&5
18720169695Skanecho "$as_me: failed program was:" >&5
18721169695Skansed 's/^/| /' conftest.$ac_ext >&5
18722169695Skan
18723169695Skanfi
18724169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18725169695Skanfi
18726169695Skanfi
18727169695Skanrm -f conftest.val
18728169695Skanif test "$cross_compiling" = yes; then
18729169695Skan  # Depending upon the size, compute the lo and hi bounds.
18730169695Skancat >conftest.$ac_ext <<_ACEOF
18731169695Skan/* confdefs.h.  */
18732169695Skan_ACEOF
18733169695Skancat confdefs.h >>conftest.$ac_ext
18734169695Skancat >>conftest.$ac_ext <<_ACEOF
18735169695Skan/* end confdefs.h.  */
18736169695Skan
18737169695Skanint
18738169695Skanmain ()
18739169695Skan{
18740169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18741169695Skantest_array [0] = 0
18742169695Skan
18743169695Skan  ;
18744169695Skan  return 0;
18745169695Skan}
18746169695Skan_ACEOF
18747169695Skanrm -f conftest.$ac_objext
18748169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749169695Skan  (eval $ac_compile) 2>conftest.er1
18750169695Skan  ac_status=$?
18751169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18752169695Skan  rm -f conftest.er1
18753169695Skan  cat conftest.err >&5
18754169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755169695Skan  (exit $ac_status); } &&
18756169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18757169695Skan			 || test ! -s conftest.err'
18758169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759169695Skan  (eval $ac_try) 2>&5
18760169695Skan  ac_status=$?
18761169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762169695Skan  (exit $ac_status); }; } &&
18763169695Skan	 { ac_try='test -s conftest.$ac_objext'
18764169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765169695Skan  (eval $ac_try) 2>&5
18766169695Skan  ac_status=$?
18767169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768169695Skan  (exit $ac_status); }; }; then
18769169695Skan  ac_lo=0 ac_mid=0
18770169695Skan  while :; do
18771169695Skan    cat >conftest.$ac_ext <<_ACEOF
18772169695Skan/* confdefs.h.  */
18773169695Skan_ACEOF
18774169695Skancat confdefs.h >>conftest.$ac_ext
18775169695Skancat >>conftest.$ac_ext <<_ACEOF
18776169695Skan/* end confdefs.h.  */
18777169695Skan
18778169695Skanint
18779169695Skanmain ()
18780169695Skan{
18781169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18782169695Skantest_array [0] = 0
18783169695Skan
18784169695Skan  ;
18785169695Skan  return 0;
18786169695Skan}
18787169695Skan_ACEOF
18788169695Skanrm -f conftest.$ac_objext
18789169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790169695Skan  (eval $ac_compile) 2>conftest.er1
18791169695Skan  ac_status=$?
18792169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18793169695Skan  rm -f conftest.er1
18794169695Skan  cat conftest.err >&5
18795169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796169695Skan  (exit $ac_status); } &&
18797169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18798169695Skan			 || test ! -s conftest.err'
18799169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800169695Skan  (eval $ac_try) 2>&5
18801169695Skan  ac_status=$?
18802169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803169695Skan  (exit $ac_status); }; } &&
18804169695Skan	 { ac_try='test -s conftest.$ac_objext'
18805169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806169695Skan  (eval $ac_try) 2>&5
18807169695Skan  ac_status=$?
18808169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809169695Skan  (exit $ac_status); }; }; then
18810169695Skan  ac_hi=$ac_mid; break
18811169695Skanelse
18812169695Skan  echo "$as_me: failed program was:" >&5
18813169695Skansed 's/^/| /' conftest.$ac_ext >&5
18814169695Skan
18815169695Skanac_lo=`expr $ac_mid + 1`
18816169695Skan		    if test $ac_lo -le $ac_mid; then
18817169695Skan		      ac_lo= ac_hi=
18818169695Skan		      break
18819169695Skan		    fi
18820169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
18821169695Skanfi
18822169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823169695Skan  done
18824169695Skanelse
18825169695Skan  echo "$as_me: failed program was:" >&5
18826169695Skansed 's/^/| /' conftest.$ac_ext >&5
18827169695Skan
18828169695Skancat >conftest.$ac_ext <<_ACEOF
18829169695Skan/* confdefs.h.  */
18830169695Skan_ACEOF
18831169695Skancat confdefs.h >>conftest.$ac_ext
18832169695Skancat >>conftest.$ac_ext <<_ACEOF
18833169695Skan/* end confdefs.h.  */
18834169695Skan
18835169695Skanint
18836169695Skanmain ()
18837169695Skan{
18838169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18839169695Skantest_array [0] = 0
18840169695Skan
18841169695Skan  ;
18842169695Skan  return 0;
18843169695Skan}
18844169695Skan_ACEOF
18845169695Skanrm -f conftest.$ac_objext
18846169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847169695Skan  (eval $ac_compile) 2>conftest.er1
18848169695Skan  ac_status=$?
18849169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18850169695Skan  rm -f conftest.er1
18851169695Skan  cat conftest.err >&5
18852169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853169695Skan  (exit $ac_status); } &&
18854169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18855169695Skan			 || test ! -s conftest.err'
18856169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857169695Skan  (eval $ac_try) 2>&5
18858169695Skan  ac_status=$?
18859169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860169695Skan  (exit $ac_status); }; } &&
18861169695Skan	 { ac_try='test -s conftest.$ac_objext'
18862169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863169695Skan  (eval $ac_try) 2>&5
18864169695Skan  ac_status=$?
18865169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866169695Skan  (exit $ac_status); }; }; then
18867169695Skan  ac_hi=-1 ac_mid=-1
18868169695Skan  while :; do
18869169695Skan    cat >conftest.$ac_ext <<_ACEOF
18870169695Skan/* confdefs.h.  */
18871169695Skan_ACEOF
18872169695Skancat confdefs.h >>conftest.$ac_ext
18873169695Skancat >>conftest.$ac_ext <<_ACEOF
18874169695Skan/* end confdefs.h.  */
18875169695Skan
18876169695Skanint
18877169695Skanmain ()
18878169695Skan{
18879169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18880169695Skantest_array [0] = 0
18881169695Skan
18882169695Skan  ;
18883169695Skan  return 0;
18884169695Skan}
18885169695Skan_ACEOF
18886169695Skanrm -f conftest.$ac_objext
18887169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888169695Skan  (eval $ac_compile) 2>conftest.er1
18889169695Skan  ac_status=$?
18890169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18891169695Skan  rm -f conftest.er1
18892169695Skan  cat conftest.err >&5
18893169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894169695Skan  (exit $ac_status); } &&
18895169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18896169695Skan			 || test ! -s conftest.err'
18897169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898169695Skan  (eval $ac_try) 2>&5
18899169695Skan  ac_status=$?
18900169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901169695Skan  (exit $ac_status); }; } &&
18902169695Skan	 { ac_try='test -s conftest.$ac_objext'
18903169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904169695Skan  (eval $ac_try) 2>&5
18905169695Skan  ac_status=$?
18906169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907169695Skan  (exit $ac_status); }; }; then
18908169695Skan  ac_lo=$ac_mid; break
18909169695Skanelse
18910169695Skan  echo "$as_me: failed program was:" >&5
18911169695Skansed 's/^/| /' conftest.$ac_ext >&5
18912169695Skan
18913169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
18914169695Skan		       if test $ac_mid -le $ac_hi; then
18915169695Skan			 ac_lo= ac_hi=
18916169695Skan			 break
18917169695Skan		       fi
18918169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
18919169695Skanfi
18920169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18921169695Skan  done
18922169695Skanelse
18923169695Skan  echo "$as_me: failed program was:" >&5
18924169695Skansed 's/^/| /' conftest.$ac_ext >&5
18925169695Skan
18926169695Skanac_lo= ac_hi=
18927169695Skanfi
18928169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18929169695Skanfi
18930169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931169695Skan# Binary search between lo and hi bounds.
18932169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
18933169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18934169695Skan  cat >conftest.$ac_ext <<_ACEOF
18935169695Skan/* confdefs.h.  */
18936169695Skan_ACEOF
18937169695Skancat confdefs.h >>conftest.$ac_ext
18938169695Skancat >>conftest.$ac_ext <<_ACEOF
18939169695Skan/* end confdefs.h.  */
18940169695Skan
18941169695Skanint
18942169695Skanmain ()
18943169695Skan{
18944169695Skanstatic int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18945169695Skantest_array [0] = 0
18946169695Skan
18947169695Skan  ;
18948169695Skan  return 0;
18949169695Skan}
18950169695Skan_ACEOF
18951169695Skanrm -f conftest.$ac_objext
18952169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953169695Skan  (eval $ac_compile) 2>conftest.er1
18954169695Skan  ac_status=$?
18955169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
18956169695Skan  rm -f conftest.er1
18957169695Skan  cat conftest.err >&5
18958169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959169695Skan  (exit $ac_status); } &&
18960169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
18961169695Skan			 || test ! -s conftest.err'
18962169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963169695Skan  (eval $ac_try) 2>&5
18964169695Skan  ac_status=$?
18965169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966169695Skan  (exit $ac_status); }; } &&
18967169695Skan	 { ac_try='test -s conftest.$ac_objext'
18968169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969169695Skan  (eval $ac_try) 2>&5
18970169695Skan  ac_status=$?
18971169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972169695Skan  (exit $ac_status); }; }; then
18973169695Skan  ac_hi=$ac_mid
18974169695Skanelse
18975169695Skan  echo "$as_me: failed program was:" >&5
18976169695Skansed 's/^/| /' conftest.$ac_ext >&5
18977169695Skan
18978169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
18979169695Skanfi
18980169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981169695Skandone
18982169695Skancase $ac_lo in
18983169695Skan?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18984169695Skan'')  ;;
18985169695Skanesac
18986169695Skanelse
18987169695Skan  if test "$cross_compiling" = yes; then
18988169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18989169695SkanSee \`config.log' for more details." >&5
18990169695Skanecho "$as_me: error: cannot run test program while cross compiling
18991169695SkanSee \`config.log' for more details." >&2;}
18992169695Skan   { (exit 1); exit 1; }; }
18993169695Skanelse
18994169695Skan  cat >conftest.$ac_ext <<_ACEOF
18995169695Skan/* confdefs.h.  */
18996169695Skan_ACEOF
18997169695Skancat confdefs.h >>conftest.$ac_ext
18998169695Skancat >>conftest.$ac_ext <<_ACEOF
18999169695Skan/* end confdefs.h.  */
19000169695Skan
19001169695Skanlong longval () { return sizeof (omp_nest_lock_t); }
19002169695Skanunsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19003169695Skan#include <stdio.h>
19004169695Skan#include <stdlib.h>
19005169695Skanint
19006169695Skanmain ()
19007169695Skan{
19008169695Skan
19009169695Skan  FILE *f = fopen ("conftest.val", "w");
19010169695Skan  if (! f)
19011169695Skan    exit (1);
19012169695Skan  if ((sizeof (omp_nest_lock_t)) < 0)
19013169695Skan    {
19014169695Skan      long i = longval ();
19015169695Skan      if (i != (sizeof (omp_nest_lock_t)))
19016169695Skan	exit (1);
19017169695Skan      fprintf (f, "%ld\n", i);
19018169695Skan    }
19019169695Skan  else
19020169695Skan    {
19021169695Skan      unsigned long i = ulongval ();
19022169695Skan      if (i != (sizeof (omp_nest_lock_t)))
19023169695Skan	exit (1);
19024169695Skan      fprintf (f, "%lu\n", i);
19025169695Skan    }
19026169695Skan  exit (ferror (f) || fclose (f) != 0);
19027169695Skan
19028169695Skan  ;
19029169695Skan  return 0;
19030169695Skan}
19031169695Skan_ACEOF
19032169695Skanrm -f conftest$ac_exeext
19033169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034169695Skan  (eval $ac_link) 2>&5
19035169695Skan  ac_status=$?
19036169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19038169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039169695Skan  (eval $ac_try) 2>&5
19040169695Skan  ac_status=$?
19041169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042169695Skan  (exit $ac_status); }; }; then
19043169695Skan  OMP_NEST_LOCK_SIZE=`cat conftest.val`
19044169695Skanelse
19045169695Skan  echo "$as_me: program exited with status $ac_status" >&5
19046169695Skanecho "$as_me: failed program was:" >&5
19047169695Skansed 's/^/| /' conftest.$ac_ext >&5
19048169695Skan
19049169695Skanfi
19050169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19051169695Skanfi
19052169695Skanfi
19053169695Skanrm -f conftest.val
19054169695Skanif test "$cross_compiling" = yes; then
19055169695Skan  # Depending upon the size, compute the lo and hi bounds.
19056169695Skancat >conftest.$ac_ext <<_ACEOF
19057169695Skan/* confdefs.h.  */
19058169695Skan_ACEOF
19059169695Skancat confdefs.h >>conftest.$ac_ext
19060169695Skancat >>conftest.$ac_ext <<_ACEOF
19061169695Skan/* end confdefs.h.  */
19062169695Skan
19063169695Skanint
19064169695Skanmain ()
19065169695Skan{
19066169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19067169695Skantest_array [0] = 0
19068169695Skan
19069169695Skan  ;
19070169695Skan  return 0;
19071169695Skan}
19072169695Skan_ACEOF
19073169695Skanrm -f conftest.$ac_objext
19074169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075169695Skan  (eval $ac_compile) 2>conftest.er1
19076169695Skan  ac_status=$?
19077169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
19078169695Skan  rm -f conftest.er1
19079169695Skan  cat conftest.err >&5
19080169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081169695Skan  (exit $ac_status); } &&
19082169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
19083169695Skan			 || test ! -s conftest.err'
19084169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085169695Skan  (eval $ac_try) 2>&5
19086169695Skan  ac_status=$?
19087169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088169695Skan  (exit $ac_status); }; } &&
19089169695Skan	 { ac_try='test -s conftest.$ac_objext'
19090169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091169695Skan  (eval $ac_try) 2>&5
19092169695Skan  ac_status=$?
19093169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094169695Skan  (exit $ac_status); }; }; then
19095169695Skan  ac_lo=0 ac_mid=0
19096169695Skan  while :; do
19097169695Skan    cat >conftest.$ac_ext <<_ACEOF
19098169695Skan/* confdefs.h.  */
19099169695Skan_ACEOF
19100169695Skancat confdefs.h >>conftest.$ac_ext
19101169695Skancat >>conftest.$ac_ext <<_ACEOF
19102169695Skan/* end confdefs.h.  */
19103169695Skan
19104169695Skanint
19105169695Skanmain ()
19106169695Skan{
19107169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19108169695Skantest_array [0] = 0
19109169695Skan
19110169695Skan  ;
19111169695Skan  return 0;
19112169695Skan}
19113169695Skan_ACEOF
19114169695Skanrm -f conftest.$ac_objext
19115169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19116169695Skan  (eval $ac_compile) 2>conftest.er1
19117169695Skan  ac_status=$?
19118169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
19119169695Skan  rm -f conftest.er1
19120169695Skan  cat conftest.err >&5
19121169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122169695Skan  (exit $ac_status); } &&
19123169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
19124169695Skan			 || test ! -s conftest.err'
19125169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126169695Skan  (eval $ac_try) 2>&5
19127169695Skan  ac_status=$?
19128169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129169695Skan  (exit $ac_status); }; } &&
19130169695Skan	 { ac_try='test -s conftest.$ac_objext'
19131169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132169695Skan  (eval $ac_try) 2>&5
19133169695Skan  ac_status=$?
19134169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135169695Skan  (exit $ac_status); }; }; then
19136169695Skan  ac_hi=$ac_mid; break
19137169695Skanelse
19138169695Skan  echo "$as_me: failed program was:" >&5
19139169695Skansed 's/^/| /' conftest.$ac_ext >&5
19140169695Skan
19141169695Skanac_lo=`expr $ac_mid + 1`
19142169695Skan		    if test $ac_lo -le $ac_mid; then
19143169695Skan		      ac_lo= ac_hi=
19144169695Skan		      break
19145169695Skan		    fi
19146169695Skan		    ac_mid=`expr 2 '*' $ac_mid + 1`
19147169695Skanfi
19148169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149169695Skan  done
19150169695Skanelse
19151169695Skan  echo "$as_me: failed program was:" >&5
19152169695Skansed 's/^/| /' conftest.$ac_ext >&5
19153169695Skan
19154169695Skancat >conftest.$ac_ext <<_ACEOF
19155169695Skan/* confdefs.h.  */
19156169695Skan_ACEOF
19157169695Skancat confdefs.h >>conftest.$ac_ext
19158169695Skancat >>conftest.$ac_ext <<_ACEOF
19159169695Skan/* end confdefs.h.  */
19160169695Skan
19161169695Skanint
19162169695Skanmain ()
19163169695Skan{
19164169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19165169695Skantest_array [0] = 0
19166169695Skan
19167169695Skan  ;
19168169695Skan  return 0;
19169169695Skan}
19170169695Skan_ACEOF
19171169695Skanrm -f conftest.$ac_objext
19172169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173169695Skan  (eval $ac_compile) 2>conftest.er1
19174169695Skan  ac_status=$?
19175169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
19176169695Skan  rm -f conftest.er1
19177169695Skan  cat conftest.err >&5
19178169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179169695Skan  (exit $ac_status); } &&
19180169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
19181169695Skan			 || test ! -s conftest.err'
19182169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183169695Skan  (eval $ac_try) 2>&5
19184169695Skan  ac_status=$?
19185169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186169695Skan  (exit $ac_status); }; } &&
19187169695Skan	 { ac_try='test -s conftest.$ac_objext'
19188169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189169695Skan  (eval $ac_try) 2>&5
19190169695Skan  ac_status=$?
19191169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192169695Skan  (exit $ac_status); }; }; then
19193169695Skan  ac_hi=-1 ac_mid=-1
19194169695Skan  while :; do
19195169695Skan    cat >conftest.$ac_ext <<_ACEOF
19196169695Skan/* confdefs.h.  */
19197169695Skan_ACEOF
19198169695Skancat confdefs.h >>conftest.$ac_ext
19199169695Skancat >>conftest.$ac_ext <<_ACEOF
19200169695Skan/* end confdefs.h.  */
19201169695Skan
19202169695Skanint
19203169695Skanmain ()
19204169695Skan{
19205169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19206169695Skantest_array [0] = 0
19207169695Skan
19208169695Skan  ;
19209169695Skan  return 0;
19210169695Skan}
19211169695Skan_ACEOF
19212169695Skanrm -f conftest.$ac_objext
19213169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214169695Skan  (eval $ac_compile) 2>conftest.er1
19215169695Skan  ac_status=$?
19216169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
19217169695Skan  rm -f conftest.er1
19218169695Skan  cat conftest.err >&5
19219169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220169695Skan  (exit $ac_status); } &&
19221169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
19222169695Skan			 || test ! -s conftest.err'
19223169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224169695Skan  (eval $ac_try) 2>&5
19225169695Skan  ac_status=$?
19226169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227169695Skan  (exit $ac_status); }; } &&
19228169695Skan	 { ac_try='test -s conftest.$ac_objext'
19229169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230169695Skan  (eval $ac_try) 2>&5
19231169695Skan  ac_status=$?
19232169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233169695Skan  (exit $ac_status); }; }; then
19234169695Skan  ac_lo=$ac_mid; break
19235169695Skanelse
19236169695Skan  echo "$as_me: failed program was:" >&5
19237169695Skansed 's/^/| /' conftest.$ac_ext >&5
19238169695Skan
19239169695Skanac_hi=`expr '(' $ac_mid ')' - 1`
19240169695Skan		       if test $ac_mid -le $ac_hi; then
19241169695Skan			 ac_lo= ac_hi=
19242169695Skan			 break
19243169695Skan		       fi
19244169695Skan		       ac_mid=`expr 2 '*' $ac_mid`
19245169695Skanfi
19246169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247169695Skan  done
19248169695Skanelse
19249169695Skan  echo "$as_me: failed program was:" >&5
19250169695Skansed 's/^/| /' conftest.$ac_ext >&5
19251169695Skan
19252169695Skanac_lo= ac_hi=
19253169695Skanfi
19254169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19255169695Skanfi
19256169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257169695Skan# Binary search between lo and hi bounds.
19258169695Skanwhile test "x$ac_lo" != "x$ac_hi"; do
19259169695Skan  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19260169695Skan  cat >conftest.$ac_ext <<_ACEOF
19261169695Skan/* confdefs.h.  */
19262169695Skan_ACEOF
19263169695Skancat confdefs.h >>conftest.$ac_ext
19264169695Skancat >>conftest.$ac_ext <<_ACEOF
19265169695Skan/* end confdefs.h.  */
19266169695Skan
19267169695Skanint
19268169695Skanmain ()
19269169695Skan{
19270169695Skanstatic int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19271169695Skantest_array [0] = 0
19272169695Skan
19273169695Skan  ;
19274169695Skan  return 0;
19275169695Skan}
19276169695Skan_ACEOF
19277169695Skanrm -f conftest.$ac_objext
19278169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279169695Skan  (eval $ac_compile) 2>conftest.er1
19280169695Skan  ac_status=$?
19281169695Skan  grep -v '^ *+' conftest.er1 >conftest.err
19282169695Skan  rm -f conftest.er1
19283169695Skan  cat conftest.err >&5
19284169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285169695Skan  (exit $ac_status); } &&
19286169695Skan	 { ac_try='test -z "$ac_c_werror_flag"
19287169695Skan			 || test ! -s conftest.err'
19288169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289169695Skan  (eval $ac_try) 2>&5
19290169695Skan  ac_status=$?
19291169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292169695Skan  (exit $ac_status); }; } &&
19293169695Skan	 { ac_try='test -s conftest.$ac_objext'
19294169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295169695Skan  (eval $ac_try) 2>&5
19296169695Skan  ac_status=$?
19297169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298169695Skan  (exit $ac_status); }; }; then
19299169695Skan  ac_hi=$ac_mid
19300169695Skanelse
19301169695Skan  echo "$as_me: failed program was:" >&5
19302169695Skansed 's/^/| /' conftest.$ac_ext >&5
19303169695Skan
19304169695Skanac_lo=`expr '(' $ac_mid ')' + 1`
19305169695Skanfi
19306169695Skanrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19307169695Skandone
19308169695Skancase $ac_lo in
19309169695Skan?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19310169695Skan'')  ;;
19311169695Skanesac
19312169695Skanelse
19313169695Skan  if test "$cross_compiling" = yes; then
19314169695Skan  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19315169695SkanSee \`config.log' for more details." >&5
19316169695Skanecho "$as_me: error: cannot run test program while cross compiling
19317169695SkanSee \`config.log' for more details." >&2;}
19318169695Skan   { (exit 1); exit 1; }; }
19319169695Skanelse
19320169695Skan  cat >conftest.$ac_ext <<_ACEOF
19321169695Skan/* confdefs.h.  */
19322169695Skan_ACEOF
19323169695Skancat confdefs.h >>conftest.$ac_ext
19324169695Skancat >>conftest.$ac_ext <<_ACEOF
19325169695Skan/* end confdefs.h.  */
19326169695Skan
19327169695Skanlong longval () { return __alignof (omp_nest_lock_t); }
19328169695Skanunsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19329169695Skan#include <stdio.h>
19330169695Skan#include <stdlib.h>
19331169695Skanint
19332169695Skanmain ()
19333169695Skan{
19334169695Skan
19335169695Skan  FILE *f = fopen ("conftest.val", "w");
19336169695Skan  if (! f)
19337169695Skan    exit (1);
19338169695Skan  if ((__alignof (omp_nest_lock_t)) < 0)
19339169695Skan    {
19340169695Skan      long i = longval ();
19341169695Skan      if (i != (__alignof (omp_nest_lock_t)))
19342169695Skan	exit (1);
19343169695Skan      fprintf (f, "%ld\n", i);
19344169695Skan    }
19345169695Skan  else
19346169695Skan    {
19347169695Skan      unsigned long i = ulongval ();
19348169695Skan      if (i != (__alignof (omp_nest_lock_t)))
19349169695Skan	exit (1);
19350169695Skan      fprintf (f, "%lu\n", i);
19351169695Skan    }
19352169695Skan  exit (ferror (f) || fclose (f) != 0);
19353169695Skan
19354169695Skan  ;
19355169695Skan  return 0;
19356169695Skan}
19357169695Skan_ACEOF
19358169695Skanrm -f conftest$ac_exeext
19359169695Skanif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360169695Skan  (eval $ac_link) 2>&5
19361169695Skan  ac_status=$?
19362169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363169695Skan  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19364169695Skan  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365169695Skan  (eval $ac_try) 2>&5
19366169695Skan  ac_status=$?
19367169695Skan  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368169695Skan  (exit $ac_status); }; }; then
19369169695Skan  OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19370169695Skanelse
19371169695Skan  echo "$as_me: program exited with status $ac_status" >&5
19372169695Skanecho "$as_me: failed program was:" >&5
19373169695Skansed 's/^/| /' conftest.$ac_ext >&5
19374169695Skan
19375169695Skanfi
19376169695Skanrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19377169695Skanfi
19378169695Skanfi
19379169695Skanrm -f conftest.val
19380169695Skan
19381169695Skan# If the lock fits in an integer, then arrange for Fortran to use that
19382169695Skan# integer.  If it doesn't, then arrange for Fortran to use a pointer.
19383169695Skan# Except that we don't have a way at present to multi-lib the installed
19384169695Skan# Fortran modules, so we assume 8 bytes for pointers, regardless of the
19385169695Skan# actual target.
19386169695SkanOMP_LOCK_KIND=$OMP_LOCK_SIZE
19387169695SkanOMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19388169695Skanif test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19389169695Skan  OMP_LOCK_KIND=8
19390169695Skanfi
19391169695Skanif test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19392169695Skan  OMP_NEST_LOCK_KIND=8
19393169695Skanfi
19394169695Skan
19395169695Skan
19396169695Skan
19397169695Skan
19398169695Skan
19399169695Skan
19400169695Skan
19401169695SkanCFLAGS="$save_CFLAGS"
19402169695Skan
19403169695Skan                                        ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19404169695Skan
19405169695Skan                              ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19406169695Skan
19407169695Skancat >confcache <<\_ACEOF
19408169695Skan# This file is a shell script that caches the results of configure
19409169695Skan# tests run on this system so they can be shared between configure
19410169695Skan# scripts and configure runs, see configure's option --config-cache.
19411169695Skan# It is not useful on other systems.  If it contains results you don't
19412169695Skan# want to keep, you may remove or edit it.
19413169695Skan#
19414169695Skan# config.status only pays attention to the cache file if you give it
19415169695Skan# the --recheck option to rerun configure.
19416169695Skan#
19417169695Skan# `ac_cv_env_foo' variables (set or unset) will be overridden when
19418169695Skan# loading this file, other *unset* `ac_cv_foo' will be assigned the
19419169695Skan# following values.
19420169695Skan
19421169695Skan_ACEOF
19422169695Skan
19423169695Skan# The following way of writing the cache mishandles newlines in values,
19424169695Skan# but we know of no workaround that is simple, portable, and efficient.
19425169695Skan# So, don't put newlines in cache variables' values.
19426169695Skan# Ultrix sh set writes to stderr and can't be redirected directly,
19427169695Skan# and sets the high bit in the cache file unless we assign to the vars.
19428169695Skan{
19429169695Skan  (set) 2>&1 |
19430169695Skan    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19431169695Skan    *ac_space=\ *)
19432169695Skan      # `set' does not quote correctly, so add quotes (double-quote
19433169695Skan      # substitution turns \\\\ into \\, and sed turns \\ into \).
19434169695Skan      sed -n \
19435169695Skan	"s/'/'\\\\''/g;
19436169695Skan	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19437169695Skan      ;;
19438169695Skan    *)
19439169695Skan      # `set' quotes correctly as required by POSIX, so do not add quotes.
19440169695Skan      sed -n \
19441169695Skan	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19442169695Skan      ;;
19443169695Skan    esac;
19444169695Skan} |
19445169695Skan  sed '
19446169695Skan     t clear
19447169695Skan     : clear
19448169695Skan     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19449169695Skan     t end
19450169695Skan     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19451169695Skan     : end' >>confcache
19452169695Skanif diff $cache_file confcache >/dev/null 2>&1; then :; else
19453169695Skan  if test -w $cache_file; then
19454169695Skan    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19455169695Skan    cat confcache >$cache_file
19456169695Skan  else
19457169695Skan    echo "not updating unwritable cache $cache_file"
19458169695Skan  fi
19459169695Skanfi
19460169695Skanrm -f confcache
19461169695Skan
19462169695Skantest "x$prefix" = xNONE && prefix=$ac_default_prefix
19463169695Skan# Let make expand exec_prefix.
19464169695Skantest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19465169695Skan
19466169695Skan# VPATH may cause trouble with some makes, so we remove $(srcdir),
19467169695Skan# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19468169695Skan# trailing colons and then remove the whole line if VPATH becomes empty
19469169695Skan# (actually we leave an empty line to preserve line numbers).
19470169695Skanif test "x$srcdir" = x.; then
19471169695Skan  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19472169695Skans/:*\$(srcdir):*/:/;
19473169695Skans/:*\${srcdir}:*/:/;
19474169695Skans/:*@srcdir@:*/:/;
19475169695Skans/^\([^=]*=[	 ]*\):*/\1/;
19476169695Skans/:*$//;
19477169695Skans/^[^=]*=[	 ]*$//;
19478169695Skan}'
19479169695Skanfi
19480169695Skan
19481169695SkanDEFS=-DHAVE_CONFIG_H
19482169695Skan
19483169695Skanac_libobjs=
19484169695Skanac_ltlibobjs=
19485169695Skanfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19486169695Skan  # 1. Remove the extension, and $U if already installed.
19487169695Skan  ac_i=`echo "$ac_i" |
19488169695Skan	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19489169695Skan  # 2. Add them.
19490169695Skan  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19491169695Skan  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19492169695Skandone
19493169695SkanLIBOBJS=$ac_libobjs
19494169695Skan
19495169695SkanLTLIBOBJS=$ac_ltlibobjs
19496169695Skan
19497169695Skan
19498169695Skanif test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19499169695Skan  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19500169695SkanUsually this means the macro was only invoked conditionally." >&5
19501169695Skanecho "$as_me: error: conditional \"GENINSRC\" was never defined.
19502169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19503169695Skan   { (exit 1); exit 1; }; }
19504169695Skanfi
19505169695Skanif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19506169695Skan  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19507169695SkanUsually this means the macro was only invoked conditionally." >&5
19508169695Skanecho "$as_me: error: conditional \"AMDEP\" was never defined.
19509169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19510169695Skan   { (exit 1); exit 1; }; }
19511169695Skanfi
19512169695Skanif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19513169695Skan  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19514169695SkanUsually this means the macro was only invoked conditionally." >&5
19515169695Skanecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19516169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19517169695Skan   { (exit 1); exit 1; }; }
19518169695Skanfi
19519169695Skanif test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19520169695Skan  { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19521169695SkanUsually this means the macro was only invoked conditionally." >&5
19522169695Skanecho "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19523169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19524169695Skan   { (exit 1); exit 1; }; }
19525169695Skanfi
19526169695Skanif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19527169695Skan  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19528169695SkanUsually this means the macro was only invoked conditionally." >&5
19529169695Skanecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19530169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19531169695Skan   { (exit 1); exit 1; }; }
19532169695Skanfi
19533169695Skanif test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19534169695Skan  { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19535169695SkanUsually this means the macro was only invoked conditionally." >&5
19536169695Skanecho "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19537169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19538169695Skan   { (exit 1); exit 1; }; }
19539169695Skanfi
19540169695Skanif test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19541169695Skan  { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19542169695SkanUsually this means the macro was only invoked conditionally." >&5
19543169695Skanecho "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19544169695SkanUsually this means the macro was only invoked conditionally." >&2;}
19545169695Skan   { (exit 1); exit 1; }; }
19546169695Skanfi
19547169695Skan
19548169695Skan: ${CONFIG_STATUS=./config.status}
19549169695Skanac_clean_files_save=$ac_clean_files
19550169695Skanac_clean_files="$ac_clean_files $CONFIG_STATUS"
19551169695Skan{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19552169695Skanecho "$as_me: creating $CONFIG_STATUS" >&6;}
19553169695Skancat >$CONFIG_STATUS <<_ACEOF
19554169695Skan#! $SHELL
19555169695Skan# Generated by $as_me.
19556169695Skan# Run this file to recreate the current configuration.
19557169695Skan# Compiler output produced by configure, useful for debugging
19558169695Skan# configure, is in config.log if it exists.
19559169695Skan
19560169695Skandebug=false
19561169695Skanac_cs_recheck=false
19562169695Skanac_cs_silent=false
19563169695SkanSHELL=\${CONFIG_SHELL-$SHELL}
19564169695Skan_ACEOF
19565169695Skan
19566169695Skancat >>$CONFIG_STATUS <<\_ACEOF
19567169695Skan## --------------------- ##
19568169695Skan## M4sh Initialization.  ##
19569169695Skan## --------------------- ##
19570169695Skan
19571169695Skan# Be Bourne compatible
19572169695Skanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19573169695Skan  emulate sh
19574169695Skan  NULLCMD=:
19575169695Skan  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19576169695Skan  # is contrary to our usage.  Disable this feature.
19577169695Skan  alias -g '${1+"$@"}'='"$@"'
19578169695Skanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19579169695Skan  set -o posix
19580169695Skanfi
19581169695SkanDUALCASE=1; export DUALCASE # for MKS sh
19582169695Skan
19583169695Skan# Support unset when possible.
19584169695Skanif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19585169695Skan  as_unset=unset
19586169695Skanelse
19587169695Skan  as_unset=false
19588169695Skanfi
19589169695Skan
19590169695Skan
19591169695Skan# Work around bugs in pre-3.0 UWIN ksh.
19592169695Skan$as_unset ENV MAIL MAILPATH
19593169695SkanPS1='$ '
19594169695SkanPS2='> '
19595169695SkanPS4='+ '
19596169695Skan
19597169695Skan# NLS nuisances.
19598169695Skanfor as_var in \
19599169695Skan  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19600169695Skan  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19601169695Skan  LC_TELEPHONE LC_TIME
19602169695Skando
19603169695Skan  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19604169695Skan    eval $as_var=C; export $as_var
19605169695Skan  else
19606169695Skan    $as_unset $as_var
19607169695Skan  fi
19608169695Skandone
19609169695Skan
19610169695Skan# Required to use basename.
19611169695Skanif expr a : '\(a\)' >/dev/null 2>&1; then
19612169695Skan  as_expr=expr
19613169695Skanelse
19614169695Skan  as_expr=false
19615169695Skanfi
19616169695Skan
19617169695Skanif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19618169695Skan  as_basename=basename
19619169695Skanelse
19620169695Skan  as_basename=false
19621169695Skanfi
19622169695Skan
19623169695Skan
19624169695Skan# Name of the executable.
19625169695Skanas_me=`$as_basename "$0" ||
19626169695Skan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19627169695Skan	 X"$0" : 'X\(//\)$' \| \
19628169695Skan	 X"$0" : 'X\(/\)$' \| \
19629169695Skan	 .     : '\(.\)' 2>/dev/null ||
19630169695Skanecho X/"$0" |
19631169695Skan    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19632169695Skan  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19633169695Skan  	  /^X\/\(\/\).*/{ s//\1/; q; }
19634169695Skan  	  s/.*/./; q'`
19635169695Skan
19636169695Skan
19637169695Skan# PATH needs CR, and LINENO needs CR and PATH.
19638169695Skan# Avoid depending upon Character Ranges.
19639169695Skanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
19640169695Skanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19641169695Skanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
19642169695Skanas_cr_digits='0123456789'
19643169695Skanas_cr_alnum=$as_cr_Letters$as_cr_digits
19644169695Skan
19645169695Skan# The user is always right.
19646169695Skanif test "${PATH_SEPARATOR+set}" != set; then
19647169695Skan  echo "#! /bin/sh" >conf$$.sh
19648169695Skan  echo  "exit 0"   >>conf$$.sh
19649169695Skan  chmod +x conf$$.sh
19650169695Skan  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19651169695Skan    PATH_SEPARATOR=';'
19652169695Skan  else
19653169695Skan    PATH_SEPARATOR=:
19654169695Skan  fi
19655169695Skan  rm -f conf$$.sh
19656169695Skanfi
19657169695Skan
19658169695Skan
19659169695Skan  as_lineno_1=$LINENO
19660169695Skan  as_lineno_2=$LINENO
19661169695Skan  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19662169695Skan  test "x$as_lineno_1" != "x$as_lineno_2" &&
19663169695Skan  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19664169695Skan  # Find who we are.  Look in the path if we contain no path at all
19665169695Skan  # relative or not.
19666169695Skan  case $0 in
19667169695Skan    *[\\/]* ) as_myself=$0 ;;
19668169695Skan    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669169695Skanfor as_dir in $PATH
19670169695Skando
19671169695Skan  IFS=$as_save_IFS
19672169695Skan  test -z "$as_dir" && as_dir=.
19673169695Skan  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19674169695Skandone
19675169695Skan
19676169695Skan       ;;
19677169695Skan  esac
19678169695Skan  # We did not find ourselves, most probably we were run as `sh COMMAND'
19679169695Skan  # in which case we are not to be found in the path.
19680169695Skan  if test "x$as_myself" = x; then
19681169695Skan    as_myself=$0
19682169695Skan  fi
19683169695Skan  if test ! -f "$as_myself"; then
19684169695Skan    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19685169695Skanecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19686169695Skan   { (exit 1); exit 1; }; }
19687169695Skan  fi
19688169695Skan  case $CONFIG_SHELL in
19689169695Skan  '')
19690169695Skan    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19691169695Skanfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19692169695Skando
19693169695Skan  IFS=$as_save_IFS
19694169695Skan  test -z "$as_dir" && as_dir=.
19695169695Skan  for as_base in sh bash ksh sh5; do
19696169695Skan	 case $as_dir in
19697169695Skan	 /*)
19698169695Skan	   if ("$as_dir/$as_base" -c '
19699169695Skan  as_lineno_1=$LINENO
19700169695Skan  as_lineno_2=$LINENO
19701169695Skan  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19702169695Skan  test "x$as_lineno_1" != "x$as_lineno_2" &&
19703169695Skan  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19704169695Skan	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19705169695Skan	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19706169695Skan	     CONFIG_SHELL=$as_dir/$as_base
19707169695Skan	     export CONFIG_SHELL
19708169695Skan	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19709169695Skan	   fi;;
19710169695Skan	 esac
19711169695Skan       done
19712169695Skandone
19713169695Skan;;
19714169695Skan  esac
19715169695Skan
19716169695Skan  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19717169695Skan  # uniformly replaced by the line number.  The first 'sed' inserts a
19718169695Skan  # line-number line before each line; the second 'sed' does the real
19719169695Skan  # work.  The second script uses 'N' to pair each line-number line
19720169695Skan  # with the numbered line, and appends trailing '-' during
19721169695Skan  # substitution so that $LINENO is not a special case at line end.
19722169695Skan  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19723169695Skan  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19724169695Skan  sed '=' <$as_myself |
19725169695Skan    sed '
19726169695Skan      N
19727169695Skan      s,$,-,
19728169695Skan      : loop
19729169695Skan      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19730169695Skan      t loop
19731169695Skan      s,-$,,
19732169695Skan      s,^['$as_cr_digits']*\n,,
19733169695Skan    ' >$as_me.lineno &&
19734169695Skan  chmod +x $as_me.lineno ||
19735169695Skan    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19736169695Skanecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19737169695Skan   { (exit 1); exit 1; }; }
19738169695Skan
19739169695Skan  # Don't try to exec as it changes $[0], causing all sort of problems
19740169695Skan  # (the dirname of $[0] is not the place where we might find the
19741169695Skan  # original and so on.  Autoconf is especially sensible to this).
19742169695Skan  . ./$as_me.lineno
19743169695Skan  # Exit status is that of the last command.
19744169695Skan  exit
19745169695Skan}
19746169695Skan
19747169695Skan
19748169695Skancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19749169695Skan  *c*,-n*) ECHO_N= ECHO_C='
19750169695Skan' ECHO_T='	' ;;
19751169695Skan  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19752169695Skan  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19753169695Skanesac
19754169695Skan
19755169695Skanif expr a : '\(a\)' >/dev/null 2>&1; then
19756169695Skan  as_expr=expr
19757169695Skanelse
19758169695Skan  as_expr=false
19759169695Skanfi
19760169695Skan
19761169695Skanrm -f conf$$ conf$$.exe conf$$.file
19762169695Skanecho >conf$$.file
19763169695Skanif ln -s conf$$.file conf$$ 2>/dev/null; then
19764169695Skan  # We could just check for DJGPP; but this test a) works b) is more generic
19765169695Skan  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19766169695Skan  if test -f conf$$.exe; then
19767169695Skan    # Don't use ln at all; we don't have any links
19768169695Skan    as_ln_s='cp -p'
19769169695Skan  else
19770169695Skan    as_ln_s='ln -s'
19771169695Skan  fi
19772169695Skanelif ln conf$$.file conf$$ 2>/dev/null; then
19773169695Skan  as_ln_s=ln
19774169695Skanelse
19775169695Skan  as_ln_s='cp -p'
19776169695Skanfi
19777169695Skanrm -f conf$$ conf$$.exe conf$$.file
19778169695Skan
19779169695Skanif mkdir -p . 2>/dev/null; then
19780169695Skan  as_mkdir_p=:
19781169695Skanelse
19782169695Skan  test -d ./-p && rmdir ./-p
19783169695Skan  as_mkdir_p=false
19784169695Skanfi
19785169695Skan
19786169695Skanas_executable_p="test -f"
19787169695Skan
19788169695Skan# Sed expression to map a string onto a valid CPP name.
19789169695Skanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19790169695Skan
19791169695Skan# Sed expression to map a string onto a valid variable name.
19792169695Skanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19793169695Skan
19794169695Skan
19795169695Skan# IFS
19796169695Skan# We need space, tab and new line, in precisely that order.
19797169695Skanas_nl='
19798169695Skan'
19799169695SkanIFS=" 	$as_nl"
19800169695Skan
19801169695Skan# CDPATH.
19802169695Skan$as_unset CDPATH
19803169695Skan
19804169695Skanexec 6>&1
19805169695Skan
19806169695Skan# Open the log real soon, to keep \$[0] and so on meaningful, and to
19807169695Skan# report actual input values of CONFIG_FILES etc. instead of their
19808169695Skan# values after options handling.  Logging --version etc. is OK.
19809169695Skanexec 5>>config.log
19810169695Skan{
19811169695Skan  echo
19812169695Skan  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19813169695Skan## Running $as_me. ##
19814169695Skan_ASBOX
19815169695Skan} >&5
19816169695Skancat >&5 <<_CSEOF
19817169695Skan
19818169695SkanThis file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19819169695Skangenerated by GNU Autoconf 2.59.  Invocation command line was
19820169695Skan
19821169695Skan  CONFIG_FILES    = $CONFIG_FILES
19822169695Skan  CONFIG_HEADERS  = $CONFIG_HEADERS
19823169695Skan  CONFIG_LINKS    = $CONFIG_LINKS
19824169695Skan  CONFIG_COMMANDS = $CONFIG_COMMANDS
19825169695Skan  $ $0 $@
19826169695Skan
19827169695Skan_CSEOF
19828169695Skanecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19829169695Skanecho >&5
19830169695Skan_ACEOF
19831169695Skan
19832169695Skan# Files that config.status was made for.
19833169695Skanif test -n "$ac_config_files"; then
19834169695Skan  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19835169695Skanfi
19836169695Skan
19837169695Skanif test -n "$ac_config_headers"; then
19838169695Skan  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19839169695Skanfi
19840169695Skan
19841169695Skanif test -n "$ac_config_links"; then
19842169695Skan  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19843169695Skanfi
19844169695Skan
19845169695Skanif test -n "$ac_config_commands"; then
19846169695Skan  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19847169695Skanfi
19848169695Skan
19849169695Skancat >>$CONFIG_STATUS <<\_ACEOF
19850169695Skan
19851169695Skanac_cs_usage="\
19852169695Skan\`$as_me' instantiates files from templates according to the
19853169695Skancurrent configuration.
19854169695Skan
19855169695SkanUsage: $0 [OPTIONS] [FILE]...
19856169695Skan
19857169695Skan  -h, --help       print this help, then exit
19858169695Skan  -V, --version    print version number, then exit
19859169695Skan  -q, --quiet      do not print progress messages
19860169695Skan  -d, --debug      don't remove temporary files
19861169695Skan      --recheck    update $as_me by reconfiguring in the same conditions
19862169695Skan  --file=FILE[:TEMPLATE]
19863169695Skan		   instantiate the configuration file FILE
19864169695Skan  --header=FILE[:TEMPLATE]
19865169695Skan		   instantiate the configuration header FILE
19866169695Skan
19867169695SkanConfiguration files:
19868169695Skan$config_files
19869169695Skan
19870169695SkanConfiguration headers:
19871169695Skan$config_headers
19872169695Skan
19873169695SkanConfiguration commands:
19874169695Skan$config_commands
19875169695Skan
19876169695SkanReport bugs to <bug-autoconf@gnu.org>."
19877169695Skan_ACEOF
19878169695Skan
19879169695Skancat >>$CONFIG_STATUS <<_ACEOF
19880169695Skanac_cs_version="\\
19881169695SkanGNU OpenMP Runtime Library config.status 1.0
19882169695Skanconfigured by $0, generated by GNU Autoconf 2.59,
19883169695Skan  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19884169695Skan
19885169695SkanCopyright (C) 2003 Free Software Foundation, Inc.
19886169695SkanThis config.status script is free software; the Free Software Foundation
19887169695Skangives unlimited permission to copy, distribute and modify it."
19888169695Skansrcdir=$srcdir
19889169695SkanINSTALL="$INSTALL"
19890169695Skan_ACEOF
19891169695Skan
19892169695Skancat >>$CONFIG_STATUS <<\_ACEOF
19893169695Skan# If no file are specified by the user, then we need to provide default
19894169695Skan# value.  By we need to know if files were specified by the user.
19895169695Skanac_need_defaults=:
19896169695Skanwhile test $# != 0
19897169695Skando
19898169695Skan  case $1 in
19899169695Skan  --*=*)
19900169695Skan    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19901169695Skan    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19902169695Skan    ac_shift=:
19903169695Skan    ;;
19904169695Skan  -*)
19905169695Skan    ac_option=$1
19906169695Skan    ac_optarg=$2
19907169695Skan    ac_shift=shift
19908169695Skan    ;;
19909169695Skan  *) # This is not an option, so the user has probably given explicit
19910169695Skan     # arguments.
19911169695Skan     ac_option=$1
19912169695Skan     ac_need_defaults=false;;
19913169695Skan  esac
19914169695Skan
19915169695Skan  case $ac_option in
19916169695Skan  # Handling of the options.
19917169695Skan_ACEOF
19918169695Skancat >>$CONFIG_STATUS <<\_ACEOF
19919169695Skan  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19920169695Skan    ac_cs_recheck=: ;;
19921169695Skan  --version | --vers* | -V )
19922169695Skan    echo "$ac_cs_version"; exit 0 ;;
19923169695Skan  --he | --h)
19924169695Skan    # Conflict between --help and --header
19925169695Skan    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19926169695SkanTry \`$0 --help' for more information." >&5
19927169695Skanecho "$as_me: error: ambiguous option: $1
19928169695SkanTry \`$0 --help' for more information." >&2;}
19929169695Skan   { (exit 1); exit 1; }; };;
19930169695Skan  --help | --hel | -h )
19931169695Skan    echo "$ac_cs_usage"; exit 0 ;;
19932169695Skan  --debug | --d* | -d )
19933169695Skan    debug=: ;;
19934169695Skan  --file | --fil | --fi | --f )
19935169695Skan    $ac_shift
19936169695Skan    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19937169695Skan    ac_need_defaults=false;;
19938169695Skan  --header | --heade | --head | --hea )
19939169695Skan    $ac_shift
19940169695Skan    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19941169695Skan    ac_need_defaults=false;;
19942169695Skan  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19943169695Skan  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19944169695Skan    ac_cs_silent=: ;;
19945169695Skan
19946169695Skan  # This is an error.
19947169695Skan  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19948169695SkanTry \`$0 --help' for more information." >&5
19949169695Skanecho "$as_me: error: unrecognized option: $1
19950169695SkanTry \`$0 --help' for more information." >&2;}
19951169695Skan   { (exit 1); exit 1; }; } ;;
19952169695Skan
19953169695Skan  *) ac_config_targets="$ac_config_targets $1" ;;
19954169695Skan
19955169695Skan  esac
19956169695Skan  shift
19957169695Skandone
19958169695Skan
19959169695Skanac_configure_extra_args=
19960169695Skan
19961169695Skanif $ac_cs_silent; then
19962169695Skan  exec 6>/dev/null
19963169695Skan  ac_configure_extra_args="$ac_configure_extra_args --silent"
19964169695Skanfi
19965169695Skan
19966169695Skan_ACEOF
19967169695Skancat >>$CONFIG_STATUS <<_ACEOF
19968169695Skanif \$ac_cs_recheck; then
19969169695Skan  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19970169695Skan  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19971169695Skanfi
19972169695Skan
19973169695Skan_ACEOF
19974169695Skan
19975169695Skancat >>$CONFIG_STATUS <<_ACEOF
19976169695Skan#
19977169695Skan# INIT-COMMANDS section.
19978169695Skan#
19979169695Skan
19980169695Skan
19981169695Skansrcdir="$srcdir"
19982169695Skanhost="$host"
19983169695Skantarget="$target"
19984169695Skanwith_multisubdir="$with_multisubdir"
19985169695Skanwith_multisrctop="$with_multisrctop"
19986169695Skanwith_target_subdir="$with_target_subdir"
19987169695Skanac_configure_args="${multilib_arg} ${ac_configure_args}"
19988169695Skanmulti_basedir="$multi_basedir"
19989169695SkanCONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19990169695SkanCC="$CC"
19991169695SkanAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19992169695Skan
19993282152Spfg
19994282152Spfg# The HP-UX ksh and POSIX shell print the target directory to stdout
19995282152Spfg# if CDPATH is set.
19996282152Spfg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19997282152Spfg
19998282152Spfgsed_quote_subst='$sed_quote_subst'
19999282152Spfgdouble_quote_subst='$double_quote_subst'
20000282152Spfgdelay_variable_subst='$delay_variable_subst'
20001282152Spfgmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20002282152Spfgmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20003282152Spfgenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20004282152Spfgenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20005282152Spfgpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20006282152Spfgenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20007282152Spfghost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20008282152Spfghost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20009282152Spfghost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20010282152Spfgbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20011282152Spfgbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20012282152Spfgbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20013282152SpfgSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20014282152SpfgXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20015282152SpfgGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20016282152SpfgEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20017282152SpfgFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20018282152SpfgLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20019282152SpfgNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20020282152SpfgLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20021282152Spfgmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20022282152Spfgac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20023282152Spfgexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20024282152Spfglt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20025282152Spfglt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20026282152Spfglt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20027282152Spfgreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20028282152Spfgreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20029282152Spfgdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20030282152Spfgfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20031282152SpfgAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20032282152SpfgAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20033282152SpfgSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20034282152SpfgRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20035282152Spfgold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20036282152Spfgold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20037282152Spfgold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20038282152SpfgCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20039282152SpfgCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20040282152Spfgcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20041282152SpfgGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20042282152Spfglt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20043282152Spfglt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20044282152Spfglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20045282152Spfgobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20046282152SpfgSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20047282152SpfgECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20048282152SpfgMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20049282152Spfglt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20050282152Spfglt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20051282152Spfglt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20052282152Spfglt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20053282152Spfglt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20054282152Spfgneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20055282152Spfglibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20056282152Spfgshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057282152Spfgextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058282152Spfgarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20059282152Spfgenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20060282152Spfgexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20061282152Spfgwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062282152Spfgcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20063282152Spfgold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20064282152Spfgold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20065282152Spfgarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20066282152Spfgarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20067282152Spfgmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20068282152Spfgmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20069282152Spfgwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20070282152Spfgallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20071282152Spfgno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20072282152Spfghardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20073282152Spfghardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20074282152Spfghardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20075282152Spfghardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20076282152Spfghardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20077282152Spfghardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20078282152Spfghardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20079282152Spfghardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20080282152Spfginherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20081282152Spfglink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20082282152Spfgfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20083282152Spfgalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20084282152Spfgexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20085282152Spfgexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20086282152Spfginclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20087282152Spfgprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20088282152Spfgfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20089282152Spfgvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20090282152Spfgneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20091282152Spfgneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20092282152Spfgversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20093282152Spfgrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20094282152Spfgshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20095282152Spfgshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20096282152Spfglibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20097282152Spfglibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20098282152Spfgsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20099282152Spfgpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20100282152Spfgpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20101282152Spfgfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20102282152Spfgfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20103282152Spfghardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20104282152Spfgsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20105282152Spfgsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20106282152Spfghardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20107282152Spfgenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20108282152Spfgenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20109282152Spfgenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20110282152Spfgold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20111282152Spfgstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20112282152Spfgpredep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20113282152Spfgpostdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20114282152Spfgpredeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20115282152Spfgpostdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20116282152Spfgcompiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20117282152SpfgLD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118282152Spfgold_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119282152Spfgcompiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120282152SpfgGCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121282152Spfglt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122282152Spfglt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123282152Spfglt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124282152Spfglt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125282152Spfglt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126282152Spfgarchive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127282152Spfgenable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128282152Spfgexport_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129282152Spfgwhole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130282152Spfgcompiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131282152Spfgold_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132282152Spfgold_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133282152Spfgarchive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134282152Spfgarchive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135282152Spfgmodule_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136282152Spfgmodule_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137282152Spfgwith_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138282152Spfgallow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139282152Spfgno_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140282152Spfghardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141282152Spfghardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142282152Spfghardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143282152Spfghardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144282152Spfghardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145282152Spfghardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146282152Spfghardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147282152Spfghardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148282152Spfginherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149282152Spfglink_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150282152Spfgfix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151282152Spfgalways_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152282152Spfgexport_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153282152Spfgexclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20154282152Spfginclude_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20155282152Spfgprelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20156282152Spfgfile_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20157282152Spfghardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20158282152Spfgpredep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20159282152Spfgpostdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20160282152Spfgpredeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20161282152Spfgpostdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20162282152Spfgcompiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20163282152Spfg
20164282152SpfgLTCC='$LTCC'
20165282152SpfgLTCFLAGS='$LTCFLAGS'
20166282152Spfgcompiler='$compiler_DEFAULT'
20167282152Spfg
20168282152Spfg# Quote evaled strings.
20169282152Spfgfor var in SED \
20170282152SpfgGREP \
20171282152SpfgEGREP \
20172282152SpfgFGREP \
20173282152SpfgLD \
20174282152SpfgNM \
20175282152SpfgLN_S \
20176282152Spfglt_SP2NL \
20177282152Spfglt_NL2SP \
20178282152Spfgreload_flag \
20179282152Spfgdeplibs_check_method \
20180282152Spfgfile_magic_cmd \
20181282152SpfgAR \
20182282152SpfgAR_FLAGS \
20183282152SpfgSTRIP \
20184282152SpfgRANLIB \
20185282152SpfgCC \
20186282152SpfgCFLAGS \
20187282152Spfgcompiler \
20188282152Spfglt_cv_sys_global_symbol_pipe \
20189282152Spfglt_cv_sys_global_symbol_to_cdecl \
20190282152Spfglt_cv_sys_global_symbol_to_c_name_address \
20191282152SpfgSHELL \
20192282152SpfgECHO \
20193282152Spfglt_prog_compiler_no_builtin_flag \
20194282152Spfglt_prog_compiler_wl \
20195282152Spfglt_prog_compiler_pic \
20196282152Spfglt_prog_compiler_static \
20197282152Spfglt_cv_prog_compiler_c_o \
20198282152Spfgneed_locks \
20199282152Spfgshrext_cmds \
20200282152Spfgexport_dynamic_flag_spec \
20201282152Spfgwhole_archive_flag_spec \
20202282152Spfgcompiler_needs_object \
20203282152Spfgwith_gnu_ld \
20204282152Spfgallow_undefined_flag \
20205282152Spfgno_undefined_flag \
20206282152Spfghardcode_libdir_flag_spec \
20207282152Spfghardcode_libdir_flag_spec_ld \
20208282152Spfghardcode_libdir_separator \
20209282152Spfgfix_srcfile_path \
20210282152Spfgexclude_expsyms \
20211282152Spfginclude_expsyms \
20212282152Spfgfile_list_spec \
20213282152Spfgvariables_saved_for_relink \
20214282152Spfglibname_spec \
20215282152Spfglibrary_names_spec \
20216282152Spfgsoname_spec \
20217282152Spfgfinish_eval \
20218282152Spfgold_striplib \
20219282152Spfgstriplib \
20220282152Spfgpredep_objects \
20221282152Spfgpostdep_objects \
20222282152Spfgpredeps \
20223282152Spfgpostdeps \
20224282152Spfgcompiler_lib_search_path \
20225282152SpfgLD_FC \
20226282152Spfgcompiler_FC \
20227282152Spfglt_prog_compiler_no_builtin_flag_FC \
20228282152Spfglt_prog_compiler_wl_FC \
20229282152Spfglt_prog_compiler_pic_FC \
20230282152Spfglt_prog_compiler_static_FC \
20231282152Spfglt_cv_prog_compiler_c_o_FC \
20232282152Spfgexport_dynamic_flag_spec_FC \
20233282152Spfgwhole_archive_flag_spec_FC \
20234282152Spfgcompiler_needs_object_FC \
20235282152Spfgwith_gnu_ld_FC \
20236282152Spfgallow_undefined_flag_FC \
20237282152Spfgno_undefined_flag_FC \
20238282152Spfghardcode_libdir_flag_spec_FC \
20239282152Spfghardcode_libdir_flag_spec_ld_FC \
20240282152Spfghardcode_libdir_separator_FC \
20241282152Spfgfix_srcfile_path_FC \
20242282152Spfgexclude_expsyms_FC \
20243282152Spfginclude_expsyms_FC \
20244282152Spfgfile_list_spec_FC \
20245282152Spfgpredep_objects_FC \
20246282152Spfgpostdep_objects_FC \
20247282152Spfgpredeps_FC \
20248282152Spfgpostdeps_FC \
20249282152Spfgcompiler_lib_search_path_FC; do
20250282152Spfg    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20251282152Spfg    *[\\\\\\\`\\"\\\$]*)
20252282152Spfg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20253282152Spfg      ;;
20254282152Spfg    *)
20255282152Spfg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20256282152Spfg      ;;
20257282152Spfg    esac
20258282152Spfgdone
20259282152Spfg
20260282152Spfg# Double-quote double-evaled strings.
20261282152Spfgfor var in reload_cmds \
20262282152Spfgold_postinstall_cmds \
20263282152Spfgold_postuninstall_cmds \
20264282152Spfgold_archive_cmds \
20265282152Spfgextract_expsyms_cmds \
20266282152Spfgold_archive_from_new_cmds \
20267282152Spfgold_archive_from_expsyms_cmds \
20268282152Spfgarchive_cmds \
20269282152Spfgarchive_expsym_cmds \
20270282152Spfgmodule_cmds \
20271282152Spfgmodule_expsym_cmds \
20272282152Spfgexport_symbols_cmds \
20273282152Spfgprelink_cmds \
20274282152Spfgpostinstall_cmds \
20275282152Spfgpostuninstall_cmds \
20276282152Spfgfinish_cmds \
20277282152Spfgsys_lib_search_path_spec \
20278282152Spfgsys_lib_dlsearch_path_spec \
20279282152Spfgold_archive_cmds_FC \
20280282152Spfgold_archive_from_new_cmds_FC \
20281282152Spfgold_archive_from_expsyms_cmds_FC \
20282282152Spfgarchive_cmds_FC \
20283282152Spfgarchive_expsym_cmds_FC \
20284282152Spfgmodule_cmds_FC \
20285282152Spfgmodule_expsym_cmds_FC \
20286282152Spfgexport_symbols_cmds_FC \
20287282152Spfgprelink_cmds_FC; do
20288282152Spfg    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20289282152Spfg    *[\\\\\\\`\\"\\\$]*)
20290282152Spfg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20291282152Spfg      ;;
20292282152Spfg    *)
20293282152Spfg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20294282152Spfg      ;;
20295282152Spfg    esac
20296282152Spfgdone
20297282152Spfg
20298282152Spfg# Fix-up fallback echo if it was mangled by the above quoting rules.
20299282152Spfgcase \$lt_ECHO in
20300282152Spfg*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20301282152Spfg  ;;
20302282152Spfgesac
20303282152Spfg
20304282152Spfgac_aux_dir='$ac_aux_dir'
20305282152Spfgxsi_shell='$xsi_shell'
20306282152Spfglt_shell_append='$lt_shell_append'
20307282152Spfg
20308282152Spfg# See if we are running on zsh, and set the options which allow our
20309282152Spfg# commands through without removal of \ escapes INIT.
20310282152Spfgif test -n "\${ZSH_VERSION+set}" ; then
20311282152Spfg   setopt NO_GLOB_SUBST
20312282152Spfgfi
20313282152Spfg
20314282152Spfg
20315282152Spfg    PACKAGE='$PACKAGE'
20316282152Spfg    VERSION='$VERSION'
20317282152Spfg    TIMESTAMP='$TIMESTAMP'
20318282152Spfg    RM='$RM'
20319282152Spfg    ofile='$ofile'
20320282152Spfg
20321282152Spfg
20322282152Spfg
20323282152Spfg
20324282152Spfg
20325282152Spfg
20326169695SkanGCC="$GCC"
20327169695SkanCC="$CC"
20328169695Skanacx_cv_header_stdint="$acx_cv_header_stdint"
20329169695Skanacx_cv_type_int8_t="$acx_cv_type_int8_t"
20330169695Skanacx_cv_type_int16_t="$acx_cv_type_int16_t"
20331169695Skanacx_cv_type_int32_t="$acx_cv_type_int32_t"
20332169695Skanacx_cv_type_int64_t="$acx_cv_type_int64_t"
20333169695Skanacx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20334169695Skanac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20335169695Skanac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20336169695Skanac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20337169695Skanac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20338169695Skanac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20339169695Skanac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20340169695Skanac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20341169695Skanac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20342169695Skan
20343169695Skan
20344169695Skan_ACEOF
20345169695Skan
20346169695Skan
20347169695Skan
20348169695Skancat >>$CONFIG_STATUS <<\_ACEOF
20349169695Skanfor ac_config_target in $ac_config_targets
20350169695Skando
20351169695Skan  case "$ac_config_target" in
20352169695Skan  # Handling of arguments.
20353169695Skan  "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20354169695Skan  "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20355169695Skan  "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20356169695Skan  "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20357169695Skan  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20358169695Skan  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20359169695Skan  "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20360169695Skan  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20361169695Skan  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20362282152Spfg  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20363169695Skan  "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20364169695Skan  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20365169695Skan  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20366169695Skanecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
20367169695Skan   { (exit 1); exit 1; }; };;
20368169695Skan  esac
20369169695Skandone
20370169695Skan
20371169695Skan# If the user did not use the arguments to specify the items to instantiate,
20372169695Skan# then the envvar interface is used.  Set only those that are not.
20373169695Skan# We use the long form for the default assignment because of an extremely
20374169695Skan# bizarre bug on SunOS 4.1.3.
20375169695Skanif $ac_need_defaults; then
20376169695Skan  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20377169695Skan  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20378169695Skan  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20379169695Skanfi
20380169695Skan
20381169695Skan# Have a temporary directory for convenience.  Make it in the build tree
20382169695Skan# simply because there is no reason to put it here, and in addition,
20383169695Skan# creating and moving files from /tmp can sometimes cause problems.
20384169695Skan# Create a temporary directory, and hook for its removal unless debugging.
20385169695Skan$debug ||
20386169695Skan{
20387169695Skan  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20388169695Skan  trap '{ (exit 1); exit 1; }' 1 2 13 15
20389169695Skan}
20390169695Skan
20391169695Skan# Create a (secure) tmp directory for tmp files.
20392169695Skan
20393169695Skan{
20394169695Skan  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20395169695Skan  test -n "$tmp" && test -d "$tmp"
20396169695Skan}  ||
20397169695Skan{
20398169695Skan  tmp=./confstat$$-$RANDOM
20399169695Skan  (umask 077 && mkdir $tmp)
20400169695Skan} ||
20401169695Skan{
20402169695Skan   echo "$me: cannot create a temporary directory in ." >&2
20403169695Skan   { (exit 1); exit 1; }
20404169695Skan}
20405169695Skan
20406169695Skan_ACEOF
20407169695Skan
20408169695Skancat >>$CONFIG_STATUS <<_ACEOF
20409169695Skan
20410169695Skan#
20411169695Skan# CONFIG_FILES section.
20412169695Skan#
20413169695Skan
20414169695Skan# No need to generate the scripts if there are no CONFIG_FILES.
20415169695Skan# This happens for instance when ./config.status config.h
20416169695Skanif test -n "\$CONFIG_FILES"; then
20417169695Skan  # Protect against being on the right side of a sed subst in config.status.
20418169695Skan  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20419169695Skan   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20420169695Skans,@SHELL@,$SHELL,;t t
20421169695Skans,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20422169695Skans,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20423169695Skans,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20424169695Skans,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20425169695Skans,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20426169695Skans,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20427169695Skans,@exec_prefix@,$exec_prefix,;t t
20428169695Skans,@prefix@,$prefix,;t t
20429169695Skans,@program_transform_name@,$program_transform_name,;t t
20430169695Skans,@bindir@,$bindir,;t t
20431169695Skans,@sbindir@,$sbindir,;t t
20432169695Skans,@libexecdir@,$libexecdir,;t t
20433169695Skans,@datadir@,$datadir,;t t
20434169695Skans,@sysconfdir@,$sysconfdir,;t t
20435169695Skans,@sharedstatedir@,$sharedstatedir,;t t
20436169695Skans,@localstatedir@,$localstatedir,;t t
20437169695Skans,@libdir@,$libdir,;t t
20438169695Skans,@includedir@,$includedir,;t t
20439169695Skans,@oldincludedir@,$oldincludedir,;t t
20440169695Skans,@infodir@,$infodir,;t t
20441169695Skans,@mandir@,$mandir,;t t
20442169695Skans,@build_alias@,$build_alias,;t t
20443169695Skans,@host_alias@,$host_alias,;t t
20444169695Skans,@target_alias@,$target_alias,;t t
20445169695Skans,@DEFS@,$DEFS,;t t
20446169695Skans,@ECHO_C@,$ECHO_C,;t t
20447169695Skans,@ECHO_N@,$ECHO_N,;t t
20448169695Skans,@ECHO_T@,$ECHO_T,;t t
20449169695Skans,@LIBS@,$LIBS,;t t
20450169695Skans,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20451169695Skans,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20452169695Skans,@build@,$build,;t t
20453169695Skans,@build_cpu@,$build_cpu,;t t
20454169695Skans,@build_vendor@,$build_vendor,;t t
20455169695Skans,@build_os@,$build_os,;t t
20456169695Skans,@host@,$host,;t t
20457169695Skans,@host_cpu@,$host_cpu,;t t
20458169695Skans,@host_vendor@,$host_vendor,;t t
20459169695Skans,@host_os@,$host_os,;t t
20460169695Skans,@target@,$target,;t t
20461169695Skans,@target_cpu@,$target_cpu,;t t
20462169695Skans,@target_vendor@,$target_vendor,;t t
20463169695Skans,@target_os@,$target_os,;t t
20464169695Skans,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20465169695Skans,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20466169695Skans,@INSTALL_DATA@,$INSTALL_DATA,;t t
20467169695Skans,@CYGPATH_W@,$CYGPATH_W,;t t
20468169695Skans,@PACKAGE@,$PACKAGE,;t t
20469169695Skans,@VERSION@,$VERSION,;t t
20470169695Skans,@ACLOCAL@,$ACLOCAL,;t t
20471169695Skans,@AUTOCONF@,$AUTOCONF,;t t
20472169695Skans,@AUTOMAKE@,$AUTOMAKE,;t t
20473169695Skans,@AUTOHEADER@,$AUTOHEADER,;t t
20474169695Skans,@MAKEINFO@,$MAKEINFO,;t t
20475169695Skans,@install_sh@,$install_sh,;t t
20476169695Skans,@STRIP@,$STRIP,;t t
20477169695Skans,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20478169695Skans,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20479169695Skans,@mkdir_p@,$mkdir_p,;t t
20480169695Skans,@AWK@,$AWK,;t t
20481169695Skans,@SET_MAKE@,$SET_MAKE,;t t
20482169695Skans,@am__leading_dot@,$am__leading_dot,;t t
20483169695Skans,@AMTAR@,$AMTAR,;t t
20484169695Skans,@am__tar@,$am__tar,;t t
20485169695Skans,@am__untar@,$am__untar,;t t
20486169695Skans,@multi_basedir@,$multi_basedir,;t t
20487169695Skans,@toolexecdir@,$toolexecdir,;t t
20488169695Skans,@toolexeclibdir@,$toolexeclibdir,;t t
20489169695Skans,@CC@,$CC,;t t
20490169695Skans,@ac_ct_CC@,$ac_ct_CC,;t t
20491169695Skans,@EXEEXT@,$EXEEXT,;t t
20492169695Skans,@OBJEXT@,$OBJEXT,;t t
20493169695Skans,@DEPDIR@,$DEPDIR,;t t
20494169695Skans,@am__include@,$am__include,;t t
20495169695Skans,@am__quote@,$am__quote,;t t
20496169695Skans,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20497169695Skans,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20498169695Skans,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20499169695Skans,@CCDEPMODE@,$CCDEPMODE,;t t
20500169695Skans,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20501169695Skans,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20502169695Skans,@CFLAGS@,$CFLAGS,;t t
20503169695Skans,@AR@,$AR,;t t
20504169695Skans,@ac_ct_AR@,$ac_ct_AR,;t t
20505169695Skans,@RANLIB@,$RANLIB,;t t
20506169695Skans,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20507169695Skans,@PERL@,$PERL,;t t
20508169695Skans,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20509169695Skans,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20510282152Spfgs,@LIBTOOL@,$LIBTOOL,;t t
20511282152Spfgs,@SED@,$SED,;t t
20512282152Spfgs,@EGREP@,$EGREP,;t t
20513282152Spfgs,@FGREP@,$FGREP,;t t
20514282152Spfgs,@GREP@,$GREP,;t t
20515282152Spfgs,@LD@,$LD,;t t
20516282152Spfgs,@DUMPBIN@,$DUMPBIN,;t t
20517282152Spfgs,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20518282152Spfgs,@NM@,$NM,;t t
20519169695Skans,@LN_S@,$LN_S,;t t
20520282152Spfgs,@lt_ECHO@,$lt_ECHO,;t t
20521282152Spfgs,@CPP@,$CPP,;t t
20522282152Spfgs,@CPPFLAGS@,$CPPFLAGS,;t t
20523169695Skans,@enable_shared@,$enable_shared,;t t
20524169695Skans,@enable_static@,$enable_static,;t t
20525169695Skans,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20526169695Skans,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20527169695Skans,@MAINT@,$MAINT,;t t
20528169695Skans,@FC@,$FC,;t t
20529169695Skans,@FCFLAGS@,$FCFLAGS,;t t
20530169695Skans,@LDFLAGS@,$LDFLAGS,;t t
20531169695Skans,@ac_ct_FC@,$ac_ct_FC,;t t
20532169695Skans,@libtool_VERSION@,$libtool_VERSION,;t t
20533169695Skans,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20534169695Skans,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20535169695Skans,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20536169695Skans,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20537169695Skans,@config_path@,$config_path,;t t
20538169695Skans,@XCFLAGS@,$XCFLAGS,;t t
20539169695Skans,@XLDFLAGS@,$XLDFLAGS,;t t
20540169695Skans,@link_gomp@,$link_gomp,;t t
20541169695Skans,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20542169695Skans,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20543169695Skans,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20544169695Skans,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20545169695Skans,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20546169695Skans,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20547169695Skans,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20548169695Skans,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20549169695Skans,@LIBOBJS@,$LIBOBJS,;t t
20550169695Skans,@LTLIBOBJS@,$LTLIBOBJS,;t t
20551169695SkanCEOF
20552169695Skan
20553169695Skan_ACEOF
20554169695Skan
20555169695Skan  cat >>$CONFIG_STATUS <<\_ACEOF
20556169695Skan  # Split the substitutions into bite-sized pieces for seds with
20557169695Skan  # small command number limits, like on Digital OSF/1 and HP-UX.
20558169695Skan  ac_max_sed_lines=48
20559169695Skan  ac_sed_frag=1 # Number of current file.
20560169695Skan  ac_beg=1 # First line for current file.
20561169695Skan  ac_end=$ac_max_sed_lines # Line after last line for current file.
20562169695Skan  ac_more_lines=:
20563169695Skan  ac_sed_cmds=
20564169695Skan  while $ac_more_lines; do
20565169695Skan    if test $ac_beg -gt 1; then
20566169695Skan      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20567169695Skan    else
20568169695Skan      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20569169695Skan    fi
20570169695Skan    if test ! -s $tmp/subs.frag; then
20571169695Skan      ac_more_lines=false
20572169695Skan    else
20573169695Skan      # The purpose of the label and of the branching condition is to
20574169695Skan      # speed up the sed processing (if there are no `@' at all, there
20575169695Skan      # is no need to browse any of the substitutions).
20576169695Skan      # These are the two extra sed commands mentioned above.
20577169695Skan      (echo ':t
20578169695Skan  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20579169695Skan      if test -z "$ac_sed_cmds"; then
20580169695Skan	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20581169695Skan      else
20582169695Skan	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20583169695Skan      fi
20584169695Skan      ac_sed_frag=`expr $ac_sed_frag + 1`
20585169695Skan      ac_beg=$ac_end
20586169695Skan      ac_end=`expr $ac_end + $ac_max_sed_lines`
20587169695Skan    fi
20588169695Skan  done
20589169695Skan  if test -z "$ac_sed_cmds"; then
20590169695Skan    ac_sed_cmds=cat
20591169695Skan  fi
20592169695Skanfi # test -n "$CONFIG_FILES"
20593169695Skan
20594169695Skan_ACEOF
20595169695Skancat >>$CONFIG_STATUS <<\_ACEOF
20596169695Skanfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20597169695Skan  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20598169695Skan  case $ac_file in
20599169695Skan  - | *:- | *:-:* ) # input from stdin
20600169695Skan	cat >$tmp/stdin
20601169695Skan	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20602169695Skan	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20603169695Skan  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20604169695Skan	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20605169695Skan  * )   ac_file_in=$ac_file.in ;;
20606169695Skan  esac
20607169695Skan
20608169695Skan  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20609169695Skan  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20610169695Skan$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20611169695Skan	 X"$ac_file" : 'X\(//\)[^/]' \| \
20612169695Skan	 X"$ac_file" : 'X\(//\)$' \| \
20613169695Skan	 X"$ac_file" : 'X\(/\)' \| \
20614169695Skan	 .     : '\(.\)' 2>/dev/null ||
20615169695Skanecho X"$ac_file" |
20616169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20617169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20618169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
20619169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
20620169695Skan  	  s/.*/./; q'`
20621169695Skan  { if $as_mkdir_p; then
20622169695Skan    mkdir -p "$ac_dir"
20623169695Skan  else
20624169695Skan    as_dir="$ac_dir"
20625169695Skan    as_dirs=
20626169695Skan    while test ! -d "$as_dir"; do
20627169695Skan      as_dirs="$as_dir $as_dirs"
20628169695Skan      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20629169695Skan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630169695Skan	 X"$as_dir" : 'X\(//\)[^/]' \| \
20631169695Skan	 X"$as_dir" : 'X\(//\)$' \| \
20632169695Skan	 X"$as_dir" : 'X\(/\)' \| \
20633169695Skan	 .     : '\(.\)' 2>/dev/null ||
20634169695Skanecho X"$as_dir" |
20635169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20636169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20637169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
20638169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
20639169695Skan  	  s/.*/./; q'`
20640169695Skan    done
20641169695Skan    test ! -n "$as_dirs" || mkdir $as_dirs
20642169695Skan  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20643169695Skanecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20644169695Skan   { (exit 1); exit 1; }; }; }
20645169695Skan
20646169695Skan  ac_builddir=.
20647169695Skan
20648169695Skanif test "$ac_dir" != .; then
20649169695Skan  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20650169695Skan  # A "../" for each directory in $ac_dir_suffix.
20651169695Skan  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20652169695Skanelse
20653169695Skan  ac_dir_suffix= ac_top_builddir=
20654169695Skanfi
20655169695Skan
20656169695Skancase $srcdir in
20657169695Skan  .)  # No --srcdir option.  We are building in place.
20658169695Skan    ac_srcdir=.
20659169695Skan    if test -z "$ac_top_builddir"; then
20660169695Skan       ac_top_srcdir=.
20661169695Skan    else
20662169695Skan       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20663169695Skan    fi ;;
20664169695Skan  [\\/]* | ?:[\\/]* )  # Absolute path.
20665169695Skan    ac_srcdir=$srcdir$ac_dir_suffix;
20666169695Skan    ac_top_srcdir=$srcdir ;;
20667169695Skan  *) # Relative path.
20668169695Skan    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20669169695Skan    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20670169695Skanesac
20671169695Skan
20672169695Skan# Do not use `cd foo && pwd` to compute absolute paths, because
20673169695Skan# the directories may not exist.
20674169695Skancase `pwd` in
20675169695Skan.) ac_abs_builddir="$ac_dir";;
20676169695Skan*)
20677169695Skan  case "$ac_dir" in
20678169695Skan  .) ac_abs_builddir=`pwd`;;
20679169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20680169695Skan  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20681169695Skan  esac;;
20682169695Skanesac
20683169695Skancase $ac_abs_builddir in
20684169695Skan.) ac_abs_top_builddir=${ac_top_builddir}.;;
20685169695Skan*)
20686169695Skan  case ${ac_top_builddir}. in
20687169695Skan  .) ac_abs_top_builddir=$ac_abs_builddir;;
20688169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20689169695Skan  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20690169695Skan  esac;;
20691169695Skanesac
20692169695Skancase $ac_abs_builddir in
20693169695Skan.) ac_abs_srcdir=$ac_srcdir;;
20694169695Skan*)
20695169695Skan  case $ac_srcdir in
20696169695Skan  .) ac_abs_srcdir=$ac_abs_builddir;;
20697169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20698169695Skan  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20699169695Skan  esac;;
20700169695Skanesac
20701169695Skancase $ac_abs_builddir in
20702169695Skan.) ac_abs_top_srcdir=$ac_top_srcdir;;
20703169695Skan*)
20704169695Skan  case $ac_top_srcdir in
20705169695Skan  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20706169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20707169695Skan  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20708169695Skan  esac;;
20709169695Skanesac
20710169695Skan
20711169695Skan
20712169695Skan  case $INSTALL in
20713169695Skan  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20714169695Skan  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20715169695Skan  esac
20716169695Skan
20717169695Skan  if test x"$ac_file" != x-; then
20718169695Skan    { echo "$as_me:$LINENO: creating $ac_file" >&5
20719169695Skanecho "$as_me: creating $ac_file" >&6;}
20720169695Skan    rm -f "$ac_file"
20721169695Skan  fi
20722169695Skan  # Let's still pretend it is `configure' which instantiates (i.e., don't
20723169695Skan  # use $as_me), people would be surprised to read:
20724169695Skan  #    /* config.h.  Generated by config.status.  */
20725169695Skan  if test x"$ac_file" = x-; then
20726169695Skan    configure_input=
20727169695Skan  else
20728169695Skan    configure_input="$ac_file.  "
20729169695Skan  fi
20730169695Skan  configure_input=$configure_input"Generated from `echo $ac_file_in |
20731169695Skan				     sed 's,.*/,,'` by configure."
20732169695Skan
20733169695Skan  # First look for the input files in the build tree, otherwise in the
20734169695Skan  # src tree.
20735169695Skan  ac_file_inputs=`IFS=:
20736169695Skan    for f in $ac_file_in; do
20737169695Skan      case $f in
20738169695Skan      -) echo $tmp/stdin ;;
20739169695Skan      [\\/$]*)
20740169695Skan	 # Absolute (can't be DOS-style, as IFS=:)
20741169695Skan	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20742169695Skanecho "$as_me: error: cannot find input file: $f" >&2;}
20743169695Skan   { (exit 1); exit 1; }; }
20744169695Skan	 echo "$f";;
20745169695Skan      *) # Relative
20746169695Skan	 if test -f "$f"; then
20747169695Skan	   # Build tree
20748169695Skan	   echo "$f"
20749169695Skan	 elif test -f "$srcdir/$f"; then
20750169695Skan	   # Source tree
20751169695Skan	   echo "$srcdir/$f"
20752169695Skan	 else
20753169695Skan	   # /dev/null tree
20754169695Skan	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20755169695Skanecho "$as_me: error: cannot find input file: $f" >&2;}
20756169695Skan   { (exit 1); exit 1; }; }
20757169695Skan	 fi;;
20758169695Skan      esac
20759169695Skan    done` || { (exit 1); exit 1; }
20760169695Skan_ACEOF
20761169695Skancat >>$CONFIG_STATUS <<_ACEOF
20762169695Skan  sed "$ac_vpsub
20763169695Skan$extrasub
20764169695Skan_ACEOF
20765169695Skancat >>$CONFIG_STATUS <<\_ACEOF
20766169695Skan:t
20767169695Skan/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20768169695Skans,@configure_input@,$configure_input,;t t
20769169695Skans,@srcdir@,$ac_srcdir,;t t
20770169695Skans,@abs_srcdir@,$ac_abs_srcdir,;t t
20771169695Skans,@top_srcdir@,$ac_top_srcdir,;t t
20772169695Skans,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20773169695Skans,@builddir@,$ac_builddir,;t t
20774169695Skans,@abs_builddir@,$ac_abs_builddir,;t t
20775169695Skans,@top_builddir@,$ac_top_builddir,;t t
20776169695Skans,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20777169695Skans,@INSTALL@,$ac_INSTALL,;t t
20778169695Skan" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20779169695Skan  rm -f $tmp/stdin
20780169695Skan  if test x"$ac_file" != x-; then
20781169695Skan    mv $tmp/out $ac_file
20782169695Skan  else
20783169695Skan    cat $tmp/out
20784169695Skan    rm -f $tmp/out
20785169695Skan  fi
20786169695Skan
20787169695Skandone
20788169695Skan_ACEOF
20789169695Skancat >>$CONFIG_STATUS <<\_ACEOF
20790169695Skan
20791169695Skan#
20792169695Skan# CONFIG_HEADER section.
20793169695Skan#
20794169695Skan
20795169695Skan# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20796169695Skan# NAME is the cpp macro being defined and VALUE is the value it is being given.
20797169695Skan#
20798169695Skan# ac_d sets the value in "#define NAME VALUE" lines.
20799169695Skanac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
20800169695Skanac_dB='[	 ].*$,\1#\2'
20801169695Skanac_dC=' '
20802169695Skanac_dD=',;t'
20803169695Skan# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20804169695Skanac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
20805169695Skanac_uB='$,\1#\2define\3'
20806169695Skanac_uC=' '
20807169695Skanac_uD=',;t'
20808169695Skan
20809169695Skanfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20810169695Skan  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20811169695Skan  case $ac_file in
20812169695Skan  - | *:- | *:-:* ) # input from stdin
20813169695Skan	cat >$tmp/stdin
20814169695Skan	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20815169695Skan	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20816169695Skan  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20817169695Skan	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20818169695Skan  * )   ac_file_in=$ac_file.in ;;
20819169695Skan  esac
20820169695Skan
20821169695Skan  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20822169695Skanecho "$as_me: creating $ac_file" >&6;}
20823169695Skan
20824169695Skan  # First look for the input files in the build tree, otherwise in the
20825169695Skan  # src tree.
20826169695Skan  ac_file_inputs=`IFS=:
20827169695Skan    for f in $ac_file_in; do
20828169695Skan      case $f in
20829169695Skan      -) echo $tmp/stdin ;;
20830169695Skan      [\\/$]*)
20831169695Skan	 # Absolute (can't be DOS-style, as IFS=:)
20832169695Skan	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20833169695Skanecho "$as_me: error: cannot find input file: $f" >&2;}
20834169695Skan   { (exit 1); exit 1; }; }
20835169695Skan	 # Do quote $f, to prevent DOS paths from being IFS'd.
20836169695Skan	 echo "$f";;
20837169695Skan      *) # Relative
20838169695Skan	 if test -f "$f"; then
20839169695Skan	   # Build tree
20840169695Skan	   echo "$f"
20841169695Skan	 elif test -f "$srcdir/$f"; then
20842169695Skan	   # Source tree
20843169695Skan	   echo "$srcdir/$f"
20844169695Skan	 else
20845169695Skan	   # /dev/null tree
20846169695Skan	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20847169695Skanecho "$as_me: error: cannot find input file: $f" >&2;}
20848169695Skan   { (exit 1); exit 1; }; }
20849169695Skan	 fi;;
20850169695Skan      esac
20851169695Skan    done` || { (exit 1); exit 1; }
20852169695Skan  # Remove the trailing spaces.
20853169695Skan  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
20854169695Skan
20855169695Skan_ACEOF
20856169695Skan
20857169695Skan# Transform confdefs.h into two sed scripts, `conftest.defines' and
20858169695Skan# `conftest.undefs', that substitutes the proper values into
20859169695Skan# config.h.in to produce config.h.  The first handles `#define'
20860169695Skan# templates, and the second `#undef' templates.
20861169695Skan# And first: Protect against being on the right side of a sed subst in
20862169695Skan# config.status.  Protect against being in an unquoted here document
20863169695Skan# in config.status.
20864169695Skanrm -f conftest.defines conftest.undefs
20865169695Skan# Using a here document instead of a string reduces the quoting nightmare.
20866169695Skan# Putting comments in sed scripts is not portable.
20867169695Skan#
20868169695Skan# `end' is used to avoid that the second main sed command (meant for
20869169695Skan# 0-ary CPP macros) applies to n-ary macro definitions.
20870169695Skan# See the Autoconf documentation for `clear'.
20871169695Skancat >confdef2sed.sed <<\_ACEOF
20872169695Skans/[\\&,]/\\&/g
20873169695Skans,[\\$`],\\&,g
20874169695Skant clear
20875169695Skan: clear
20876169695Skans,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20877169695Skant end
20878169695Skans,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20879169695Skan: end
20880169695Skan_ACEOF
20881169695Skan# If some macros were called several times there might be several times
20882169695Skan# the same #defines, which is useless.  Nevertheless, we may not want to
20883169695Skan# sort them, since we want the *last* AC-DEFINE to be honored.
20884169695Skanuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20885169695Skansed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20886169695Skanrm -f confdef2sed.sed
20887169695Skan
20888169695Skan# This sed command replaces #undef with comments.  This is necessary, for
20889169695Skan# example, in the case of _POSIX_SOURCE, which is predefined and required
20890169695Skan# on some systems where configure will not decide to define it.
20891169695Skancat >>conftest.undefs <<\_ACEOF
20892169695Skans,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20893169695Skan_ACEOF
20894169695Skan
20895169695Skan# Break up conftest.defines because some shells have a limit on the size
20896169695Skan# of here documents, and old seds have small limits too (100 cmds).
20897169695Skanecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20898169695Skanecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20899169695Skanecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20900169695Skanecho '  :' >>$CONFIG_STATUS
20901169695Skanrm -f conftest.tail
20902169695Skanwhile grep . conftest.defines >/dev/null
20903169695Skando
20904169695Skan  # Write a limited-size here document to $tmp/defines.sed.
20905169695Skan  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20906169695Skan  # Speed up: don't consider the non `#define' lines.
20907169695Skan  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
20908169695Skan  # Work around the forget-to-reset-the-flag bug.
20909169695Skan  echo 't clr' >>$CONFIG_STATUS
20910169695Skan  echo ': clr' >>$CONFIG_STATUS
20911169695Skan  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20912169695Skan  echo 'CEOF
20913169695Skan  sed -f $tmp/defines.sed $tmp/in >$tmp/out
20914169695Skan  rm -f $tmp/in
20915169695Skan  mv $tmp/out $tmp/in
20916169695Skan' >>$CONFIG_STATUS
20917169695Skan  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20918169695Skan  rm -f conftest.defines
20919169695Skan  mv conftest.tail conftest.defines
20920169695Skandone
20921169695Skanrm -f conftest.defines
20922169695Skanecho '  fi # grep' >>$CONFIG_STATUS
20923169695Skanecho >>$CONFIG_STATUS
20924169695Skan
20925169695Skan# Break up conftest.undefs because some shells have a limit on the size
20926169695Skan# of here documents, and old seds have small limits too (100 cmds).
20927169695Skanecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
20928169695Skanrm -f conftest.tail
20929169695Skanwhile grep . conftest.undefs >/dev/null
20930169695Skando
20931169695Skan  # Write a limited-size here document to $tmp/undefs.sed.
20932169695Skan  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20933169695Skan  # Speed up: don't consider the non `#undef'
20934169695Skan  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
20935169695Skan  # Work around the forget-to-reset-the-flag bug.
20936169695Skan  echo 't clr' >>$CONFIG_STATUS
20937169695Skan  echo ': clr' >>$CONFIG_STATUS
20938169695Skan  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20939169695Skan  echo 'CEOF
20940169695Skan  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20941169695Skan  rm -f $tmp/in
20942169695Skan  mv $tmp/out $tmp/in
20943169695Skan' >>$CONFIG_STATUS
20944169695Skan  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20945169695Skan  rm -f conftest.undefs
20946169695Skan  mv conftest.tail conftest.undefs
20947169695Skandone
20948169695Skanrm -f conftest.undefs
20949169695Skan
20950169695Skancat >>$CONFIG_STATUS <<\_ACEOF
20951169695Skan  # Let's still pretend it is `configure' which instantiates (i.e., don't
20952169695Skan  # use $as_me), people would be surprised to read:
20953169695Skan  #    /* config.h.  Generated by config.status.  */
20954169695Skan  if test x"$ac_file" = x-; then
20955169695Skan    echo "/* Generated by configure.  */" >$tmp/config.h
20956169695Skan  else
20957169695Skan    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20958169695Skan  fi
20959169695Skan  cat $tmp/in >>$tmp/config.h
20960169695Skan  rm -f $tmp/in
20961169695Skan  if test x"$ac_file" != x-; then
20962169695Skan    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20963169695Skan      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20964169695Skanecho "$as_me: $ac_file is unchanged" >&6;}
20965169695Skan    else
20966169695Skan      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20967169695Skan$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20968169695Skan	 X"$ac_file" : 'X\(//\)[^/]' \| \
20969169695Skan	 X"$ac_file" : 'X\(//\)$' \| \
20970169695Skan	 X"$ac_file" : 'X\(/\)' \| \
20971169695Skan	 .     : '\(.\)' 2>/dev/null ||
20972169695Skanecho X"$ac_file" |
20973169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20974169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20975169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
20976169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
20977169695Skan  	  s/.*/./; q'`
20978169695Skan      { if $as_mkdir_p; then
20979169695Skan    mkdir -p "$ac_dir"
20980169695Skan  else
20981169695Skan    as_dir="$ac_dir"
20982169695Skan    as_dirs=
20983169695Skan    while test ! -d "$as_dir"; do
20984169695Skan      as_dirs="$as_dir $as_dirs"
20985169695Skan      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20986169695Skan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20987169695Skan	 X"$as_dir" : 'X\(//\)[^/]' \| \
20988169695Skan	 X"$as_dir" : 'X\(//\)$' \| \
20989169695Skan	 X"$as_dir" : 'X\(/\)' \| \
20990169695Skan	 .     : '\(.\)' 2>/dev/null ||
20991169695Skanecho X"$as_dir" |
20992169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20993169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20994169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
20995169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
20996169695Skan  	  s/.*/./; q'`
20997169695Skan    done
20998169695Skan    test ! -n "$as_dirs" || mkdir $as_dirs
20999169695Skan  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21000169695Skanecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21001169695Skan   { (exit 1); exit 1; }; }; }
21002169695Skan
21003169695Skan      rm -f $ac_file
21004169695Skan      mv $tmp/config.h $ac_file
21005169695Skan    fi
21006169695Skan  else
21007169695Skan    cat $tmp/config.h
21008169695Skan    rm -f $tmp/config.h
21009169695Skan  fi
21010169695Skan# Compute $ac_file's index in $config_headers.
21011169695Skan_am_stamp_count=1
21012169695Skanfor _am_header in $config_headers :; do
21013169695Skan  case $_am_header in
21014169695Skan    $ac_file | $ac_file:* )
21015169695Skan      break ;;
21016169695Skan    * )
21017169695Skan      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21018169695Skan  esac
21019169695Skandone
21020169695Skanecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21021169695Skan$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21022169695Skan	 X$ac_file : 'X\(//\)[^/]' \| \
21023169695Skan	 X$ac_file : 'X\(//\)$' \| \
21024169695Skan	 X$ac_file : 'X\(/\)' \| \
21025169695Skan	 .     : '\(.\)' 2>/dev/null ||
21026169695Skanecho X$ac_file |
21027169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21028169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21029169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21030169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21031169695Skan  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21032169695Skandone
21033169695Skan_ACEOF
21034169695Skancat >>$CONFIG_STATUS <<\_ACEOF
21035169695Skan
21036169695Skan#
21037169695Skan# CONFIG_COMMANDS section.
21038169695Skan#
21039169695Skanfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21040169695Skan  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21041169695Skan  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21042169695Skan  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21043169695Skan$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21044169695Skan	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21045169695Skan	 X"$ac_dest" : 'X\(//\)$' \| \
21046169695Skan	 X"$ac_dest" : 'X\(/\)' \| \
21047169695Skan	 .     : '\(.\)' 2>/dev/null ||
21048169695Skanecho X"$ac_dest" |
21049169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21050169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21051169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21052169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21053169695Skan  	  s/.*/./; q'`
21054169695Skan  { if $as_mkdir_p; then
21055169695Skan    mkdir -p "$ac_dir"
21056169695Skan  else
21057169695Skan    as_dir="$ac_dir"
21058169695Skan    as_dirs=
21059169695Skan    while test ! -d "$as_dir"; do
21060169695Skan      as_dirs="$as_dir $as_dirs"
21061169695Skan      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21062169695Skan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063169695Skan	 X"$as_dir" : 'X\(//\)[^/]' \| \
21064169695Skan	 X"$as_dir" : 'X\(//\)$' \| \
21065169695Skan	 X"$as_dir" : 'X\(/\)' \| \
21066169695Skan	 .     : '\(.\)' 2>/dev/null ||
21067169695Skanecho X"$as_dir" |
21068169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21069169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21070169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21071169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21072169695Skan  	  s/.*/./; q'`
21073169695Skan    done
21074169695Skan    test ! -n "$as_dirs" || mkdir $as_dirs
21075169695Skan  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21076169695Skanecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21077169695Skan   { (exit 1); exit 1; }; }; }
21078169695Skan
21079169695Skan  ac_builddir=.
21080169695Skan
21081169695Skanif test "$ac_dir" != .; then
21082169695Skan  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21083169695Skan  # A "../" for each directory in $ac_dir_suffix.
21084169695Skan  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21085169695Skanelse
21086169695Skan  ac_dir_suffix= ac_top_builddir=
21087169695Skanfi
21088169695Skan
21089169695Skancase $srcdir in
21090169695Skan  .)  # No --srcdir option.  We are building in place.
21091169695Skan    ac_srcdir=.
21092169695Skan    if test -z "$ac_top_builddir"; then
21093169695Skan       ac_top_srcdir=.
21094169695Skan    else
21095169695Skan       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21096169695Skan    fi ;;
21097169695Skan  [\\/]* | ?:[\\/]* )  # Absolute path.
21098169695Skan    ac_srcdir=$srcdir$ac_dir_suffix;
21099169695Skan    ac_top_srcdir=$srcdir ;;
21100169695Skan  *) # Relative path.
21101169695Skan    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21102169695Skan    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21103169695Skanesac
21104169695Skan
21105169695Skan# Do not use `cd foo && pwd` to compute absolute paths, because
21106169695Skan# the directories may not exist.
21107169695Skancase `pwd` in
21108169695Skan.) ac_abs_builddir="$ac_dir";;
21109169695Skan*)
21110169695Skan  case "$ac_dir" in
21111169695Skan  .) ac_abs_builddir=`pwd`;;
21112169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21113169695Skan  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21114169695Skan  esac;;
21115169695Skanesac
21116169695Skancase $ac_abs_builddir in
21117169695Skan.) ac_abs_top_builddir=${ac_top_builddir}.;;
21118169695Skan*)
21119169695Skan  case ${ac_top_builddir}. in
21120169695Skan  .) ac_abs_top_builddir=$ac_abs_builddir;;
21121169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21122169695Skan  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21123169695Skan  esac;;
21124169695Skanesac
21125169695Skancase $ac_abs_builddir in
21126169695Skan.) ac_abs_srcdir=$ac_srcdir;;
21127169695Skan*)
21128169695Skan  case $ac_srcdir in
21129169695Skan  .) ac_abs_srcdir=$ac_abs_builddir;;
21130169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21131169695Skan  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21132169695Skan  esac;;
21133169695Skanesac
21134169695Skancase $ac_abs_builddir in
21135169695Skan.) ac_abs_top_srcdir=$ac_top_srcdir;;
21136169695Skan*)
21137169695Skan  case $ac_top_srcdir in
21138169695Skan  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21139169695Skan  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21140169695Skan  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21141169695Skan  esac;;
21142169695Skanesac
21143169695Skan
21144169695Skan
21145169695Skan  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21146169695Skanecho "$as_me: executing $ac_dest commands" >&6;}
21147169695Skan  case $ac_dest in
21148169695Skan    default-1 )
21149169695Skan# Only add multilib support code if we just rebuilt the top-level
21150169695Skan# Makefile.
21151169695Skancase " $CONFIG_FILES " in
21152169695Skan *" Makefile "*)
21153169695Skan   ac_file=Makefile . ${multi_basedir}/config-ml.in
21154169695Skan   ;;
21155169695Skanesac ;;
21156169695Skan    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21157169695Skan  # Strip MF so we end up with the name of the file.
21158169695Skan  mf=`echo "$mf" | sed -e 's/:.*$//'`
21159169695Skan  # Check whether this is an Automake generated Makefile or not.
21160169695Skan  # We used to match only the files named `Makefile.in', but
21161169695Skan  # some people rename them; so instead we look at the file content.
21162169695Skan  # Grep'ing the first line is not enough: some people post-process
21163169695Skan  # each Makefile.in and add a new line on top of each file to say so.
21164169695Skan  # So let's grep whole file.
21165169695Skan  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21166169695Skan    dirpart=`(dirname "$mf") 2>/dev/null ||
21167169695Skan$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168169695Skan	 X"$mf" : 'X\(//\)[^/]' \| \
21169169695Skan	 X"$mf" : 'X\(//\)$' \| \
21170169695Skan	 X"$mf" : 'X\(/\)' \| \
21171169695Skan	 .     : '\(.\)' 2>/dev/null ||
21172169695Skanecho X"$mf" |
21173169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21176169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21177169695Skan  	  s/.*/./; q'`
21178169695Skan  else
21179169695Skan    continue
21180169695Skan  fi
21181169695Skan  # Extract the definition of DEPDIR, am__include, and am__quote
21182169695Skan  # from the Makefile without running `make'.
21183169695Skan  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21184169695Skan  test -z "$DEPDIR" && continue
21185169695Skan  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21186169695Skan  test -z "am__include" && continue
21187169695Skan  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21188169695Skan  # When using ansi2knr, U may be empty or an underscore; expand it
21189169695Skan  U=`sed -n 's/^U = //p' < "$mf"`
21190169695Skan  # Find all dependency output files, they are included files with
21191169695Skan  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21192169695Skan  # simplest approach to changing $(DEPDIR) to its actual value in the
21193169695Skan  # expansion.
21194169695Skan  for file in `sed -n "
21195169695Skan    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21196169695Skan       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21197169695Skan    # Make sure the directory exists.
21198169695Skan    test -f "$dirpart/$file" && continue
21199169695Skan    fdir=`(dirname "$file") 2>/dev/null ||
21200169695Skan$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201169695Skan	 X"$file" : 'X\(//\)[^/]' \| \
21202169695Skan	 X"$file" : 'X\(//\)$' \| \
21203169695Skan	 X"$file" : 'X\(/\)' \| \
21204169695Skan	 .     : '\(.\)' 2>/dev/null ||
21205169695Skanecho X"$file" |
21206169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21207169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21208169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21209169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21210169695Skan  	  s/.*/./; q'`
21211169695Skan    { if $as_mkdir_p; then
21212169695Skan    mkdir -p $dirpart/$fdir
21213169695Skan  else
21214169695Skan    as_dir=$dirpart/$fdir
21215169695Skan    as_dirs=
21216169695Skan    while test ! -d "$as_dir"; do
21217169695Skan      as_dirs="$as_dir $as_dirs"
21218169695Skan      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21219169695Skan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220169695Skan	 X"$as_dir" : 'X\(//\)[^/]' \| \
21221169695Skan	 X"$as_dir" : 'X\(//\)$' \| \
21222169695Skan	 X"$as_dir" : 'X\(/\)' \| \
21223169695Skan	 .     : '\(.\)' 2>/dev/null ||
21224169695Skanecho X"$as_dir" |
21225169695Skan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226169695Skan  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227169695Skan  	  /^X\(\/\/\)$/{ s//\1/; q; }
21228169695Skan  	  /^X\(\/\).*/{ s//\1/; q; }
21229169695Skan  	  s/.*/./; q'`
21230169695Skan    done
21231169695Skan    test ! -n "$as_dirs" || mkdir $as_dirs
21232169695Skan  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21233169695Skanecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21234169695Skan   { (exit 1); exit 1; }; }; }
21235169695Skan
21236169695Skan    # echo "creating $dirpart/$file"
21237169695Skan    echo '# dummy' > "$dirpart/$file"
21238169695Skan  done
21239169695Skandone
21240169695Skan ;;
21241282152Spfg    libtool )
21242282152Spfg
21243282152Spfg    # See if we are running on zsh, and set the options which allow our
21244282152Spfg    # commands through without removal of \ escapes.
21245282152Spfg    if test -n "${ZSH_VERSION+set}" ; then
21246282152Spfg      setopt NO_GLOB_SUBST
21247282152Spfg    fi
21248282152Spfg
21249282152Spfg    cfgfile="${ofile}T"
21250282152Spfg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21251282152Spfg    $RM "$cfgfile"
21252282152Spfg
21253282152Spfg    cat <<_LT_EOF >> "$cfgfile"
21254282152Spfg#! $SHELL
21255282152Spfg
21256282152Spfg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21257282152Spfg# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21258282152Spfg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21259282152Spfg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21260282152Spfg#
21261282152Spfg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21262282152Spfg# 2006, 2007 Free Software Foundation, Inc.
21263282152Spfg#
21264282152Spfg# This file is part of GNU Libtool:
21265282152Spfg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21266282152Spfg#
21267282152Spfg# This program is free software; you can redistribute it and/or modify
21268282152Spfg# it under the terms of the GNU General Public License as published by
21269282152Spfg# the Free Software Foundation; either version 2 of the License, or
21270282152Spfg# (at your option) any later version.
21271282152Spfg#
21272282152Spfg# This program is distributed in the hope that it will be useful, but
21273282152Spfg# WITHOUT ANY WARRANTY; without even the implied warranty of
21274282152Spfg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21275282152Spfg# General Public License for more details.
21276282152Spfg#
21277282152Spfg# You should have received a copy of the GNU General Public License
21278282152Spfg# along with this program; if not, a copy can be downloaded from
21279282152Spfg# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21280282152Spfg# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21281282152Spfg# MA 02110-1301, USA.
21282282152Spfg#
21283282152Spfg# As a special exception to the GNU General Public License, if you
21284282152Spfg# distribute this file as part of a program that contains a
21285282152Spfg# configuration script generated by Autoconf, you may include it under
21286282152Spfg# the same distribution terms that you use for the rest of that program.
21287282152Spfg
21288282152Spfg
21289282152Spfg# The names of the tagged configurations supported by this script.
21290282152Spfgavailable_tags="FC "
21291282152Spfg
21292282152Spfg# ### BEGIN LIBTOOL CONFIG
21293282152Spfg
21294282152Spfg# Which release of libtool.m4 was used?
21295282152Spfgmacro_version=$macro_version
21296282152Spfgmacro_revision=$macro_revision
21297282152Spfg
21298282152Spfg# Whether or not to build shared libraries.
21299282152Spfgbuild_libtool_libs=$enable_shared
21300282152Spfg
21301282152Spfg# Whether or not to build static libraries.
21302282152Spfgbuild_old_libs=$enable_static
21303282152Spfg
21304282152Spfg# What type of objects to build.
21305282152Spfgpic_mode=$pic_mode
21306282152Spfg
21307282152Spfg# Whether or not to optimize for fast installation.
21308282152Spfgfast_install=$enable_fast_install
21309282152Spfg
21310282152Spfg# The host system.
21311282152Spfghost_alias=$host_alias
21312282152Spfghost=$host
21313282152Spfghost_os=$host_os
21314282152Spfg
21315282152Spfg# The build system.
21316282152Spfgbuild_alias=$build_alias
21317282152Spfgbuild=$build
21318282152Spfgbuild_os=$build_os
21319282152Spfg
21320282152Spfg# A sed program that does not truncate output.
21321282152SpfgSED=$lt_SED
21322282152Spfg
21323282152Spfg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21324282152SpfgXsed="\$SED -e 1s/^X//"
21325282152Spfg
21326282152Spfg# A grep program that handles long lines.
21327282152SpfgGREP=$lt_GREP
21328282152Spfg
21329282152Spfg# An ERE matcher.
21330282152SpfgEGREP=$lt_EGREP
21331282152Spfg
21332282152Spfg# A literal string matcher.
21333282152SpfgFGREP=$lt_FGREP
21334282152Spfg
21335282152Spfg# A BSD- or MS-compatible name lister.
21336282152SpfgNM=$lt_NM
21337282152Spfg
21338282152Spfg# Whether we need soft or hard links.
21339282152SpfgLN_S=$lt_LN_S
21340282152Spfg
21341282152Spfg# What is the maximum length of a command?
21342282152Spfgmax_cmd_len=$max_cmd_len
21343282152Spfg
21344282152Spfg# Object file suffix (normally "o").
21345282152Spfgobjext=$ac_objext
21346282152Spfg
21347282152Spfg# Executable file suffix (normally "").
21348282152Spfgexeext=$exeext
21349282152Spfg
21350282152Spfg# whether the shell understands "unset".
21351282152Spfglt_unset=$lt_unset
21352282152Spfg
21353282152Spfg# turn spaces into newlines.
21354282152SpfgSP2NL=$lt_lt_SP2NL
21355282152Spfg
21356282152Spfg# turn newlines into spaces.
21357282152SpfgNL2SP=$lt_lt_NL2SP
21358282152Spfg
21359282152Spfg# How to create reloadable object files.
21360282152Spfgreload_flag=$lt_reload_flag
21361282152Spfgreload_cmds=$lt_reload_cmds
21362282152Spfg
21363282152Spfg# Method to check whether dependent libraries are shared objects.
21364282152Spfgdeplibs_check_method=$lt_deplibs_check_method
21365282152Spfg
21366282152Spfg# Command to use when deplibs_check_method == "file_magic".
21367282152Spfgfile_magic_cmd=$lt_file_magic_cmd
21368282152Spfg
21369282152Spfg# The archiver.
21370282152SpfgAR=$lt_AR
21371282152SpfgAR_FLAGS=$lt_AR_FLAGS
21372282152Spfg
21373282152Spfg# A symbol stripping program.
21374282152SpfgSTRIP=$lt_STRIP
21375282152Spfg
21376282152Spfg# Commands used to install an old-style archive.
21377282152SpfgRANLIB=$lt_RANLIB
21378282152Spfgold_postinstall_cmds=$lt_old_postinstall_cmds
21379282152Spfgold_postuninstall_cmds=$lt_old_postuninstall_cmds
21380282152Spfg
21381282152Spfg# A C compiler.
21382282152SpfgLTCC=$lt_CC
21383282152Spfg
21384282152Spfg# LTCC compiler flags.
21385282152SpfgLTCFLAGS=$lt_CFLAGS
21386282152Spfg
21387282152Spfg# Take the output of nm and produce a listing of raw symbols and C names.
21388282152Spfgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21389282152Spfg
21390282152Spfg# Transform the output of nm in a proper C declaration.
21391282152Spfgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21392282152Spfg
21393282152Spfg# Transform the output of nm in a C name address pair.
21394282152Spfgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21395282152Spfg
21396282152Spfg# The name of the directory that contains temporary libtool files.
21397282152Spfgobjdir=$objdir
21398282152Spfg
21399282152Spfg# Shell to use when invoking shell scripts.
21400282152SpfgSHELL=$lt_SHELL
21401282152Spfg
21402282152Spfg# An echo program that does not interpret backslashes.
21403282152SpfgECHO=$lt_ECHO
21404282152Spfg
21405282152Spfg# Used to examine libraries when file_magic_cmd begins with "file".
21406282152SpfgMAGIC_CMD=$MAGIC_CMD
21407282152Spfg
21408282152Spfg# Must we lock files when doing compilation?
21409282152Spfgneed_locks=$lt_need_locks
21410282152Spfg
21411282152Spfg# Old archive suffix (normally "a").
21412282152Spfglibext=$libext
21413282152Spfg
21414282152Spfg# Shared library suffix (normally ".so").
21415282152Spfgshrext_cmds=$lt_shrext_cmds
21416282152Spfg
21417282152Spfg# The commands to extract the exported symbol list from a shared archive.
21418282152Spfgextract_expsyms_cmds=$lt_extract_expsyms_cmds
21419282152Spfg
21420282152Spfg# Variables whose values should be saved in libtool wrapper scripts and
21421282152Spfg# restored at link time.
21422282152Spfgvariables_saved_for_relink=$lt_variables_saved_for_relink
21423282152Spfg
21424282152Spfg# Do we need the "lib" prefix for modules?
21425282152Spfgneed_lib_prefix=$need_lib_prefix
21426282152Spfg
21427282152Spfg# Do we need a version for libraries?
21428282152Spfgneed_version=$need_version
21429282152Spfg
21430282152Spfg# Library versioning type.
21431282152Spfgversion_type=$version_type
21432282152Spfg
21433282152Spfg# Shared library runtime path variable.
21434282152Spfgrunpath_var=$runpath_var
21435282152Spfg
21436282152Spfg# Shared library path variable.
21437282152Spfgshlibpath_var=$shlibpath_var
21438282152Spfg
21439282152Spfg# Is shlibpath searched before the hard-coded library search path?
21440282152Spfgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
21441282152Spfg
21442282152Spfg# Format of library name prefix.
21443282152Spfglibname_spec=$lt_libname_spec
21444282152Spfg
21445282152Spfg# List of archive names.  First name is the real one, the rest are links.
21446282152Spfg# The last name is the one that the linker finds with -lNAME
21447282152Spfglibrary_names_spec=$lt_library_names_spec
21448282152Spfg
21449282152Spfg# The coded name of the library, if different from the real name.
21450282152Spfgsoname_spec=$lt_soname_spec
21451282152Spfg
21452282152Spfg# Command to use after installation of a shared archive.
21453282152Spfgpostinstall_cmds=$lt_postinstall_cmds
21454282152Spfg
21455282152Spfg# Command to use after uninstallation of a shared archive.
21456282152Spfgpostuninstall_cmds=$lt_postuninstall_cmds
21457282152Spfg
21458282152Spfg# Commands used to finish a libtool library installation in a directory.
21459282152Spfgfinish_cmds=$lt_finish_cmds
21460282152Spfg
21461282152Spfg# As "finish_cmds", except a single script fragment to be evaled but
21462282152Spfg# not shown.
21463282152Spfgfinish_eval=$lt_finish_eval
21464282152Spfg
21465282152Spfg# Whether we should hardcode library paths into libraries.
21466282152Spfghardcode_into_libs=$hardcode_into_libs
21467282152Spfg
21468282152Spfg# Compile-time system search path for libraries.
21469282152Spfgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21470282152Spfg
21471282152Spfg# Run-time system search path for libraries.
21472282152Spfgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21473282152Spfg
21474282152Spfg# Whether dlopen is supported.
21475282152Spfgdlopen_support=$enable_dlopen
21476282152Spfg
21477282152Spfg# Whether dlopen of programs is supported.
21478282152Spfgdlopen_self=$enable_dlopen_self
21479282152Spfg
21480282152Spfg# Whether dlopen of statically linked programs is supported.
21481282152Spfgdlopen_self_static=$enable_dlopen_self_static
21482282152Spfg
21483282152Spfg# Commands to strip libraries.
21484282152Spfgold_striplib=$lt_old_striplib
21485282152Spfgstriplib=$lt_striplib
21486282152Spfg
21487282152Spfg
21488282152Spfg# The linker used to build libraries.
21489282152SpfgLD=$lt_LD
21490282152Spfg
21491282152Spfg# Commands used to build an old-style archive.
21492282152Spfgold_archive_cmds=$lt_old_archive_cmds
21493282152Spfg
21494282152Spfg# A language specific compiler.
21495282152SpfgCC=$lt_compiler
21496282152Spfg
21497282152Spfg# Is the compiler the GNU compiler?
21498282152Spfgwith_gcc=$GCC
21499282152Spfg
21500282152Spfg# Compiler flag to turn off builtin functions.
21501282152Spfgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21502282152Spfg
21503282152Spfg# How to pass a linker flag through the compiler.
21504282152Spfgwl=$lt_lt_prog_compiler_wl
21505282152Spfg
21506282152Spfg# Additional compiler flags for building library objects.
21507282152Spfgpic_flag=$lt_lt_prog_compiler_pic
21508282152Spfg
21509282152Spfg# Compiler flag to prevent dynamic linking.
21510282152Spfglink_static_flag=$lt_lt_prog_compiler_static
21511282152Spfg
21512282152Spfg# Does compiler simultaneously support -c and -o options?
21513282152Spfgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
21514282152Spfg
21515282152Spfg# Whether or not to add -lc for building shared libraries.
21516282152Spfgbuild_libtool_need_lc=$archive_cmds_need_lc
21517282152Spfg
21518282152Spfg# Whether or not to disallow shared libs when runtime libs are static.
21519282152Spfgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21520282152Spfg
21521282152Spfg# Compiler flag to allow reflexive dlopens.
21522282152Spfgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21523282152Spfg
21524282152Spfg# Compiler flag to generate shared objects directly from archives.
21525282152Spfgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
21526282152Spfg
21527282152Spfg# Whether the compiler copes with passing no objects directly.
21528282152Spfgcompiler_needs_object=$lt_compiler_needs_object
21529282152Spfg
21530282152Spfg# Create an old-style archive from a shared archive.
21531282152Spfgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21532282152Spfg
21533282152Spfg# Create a temporary old-style archive to link instead of a shared archive.
21534282152Spfgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21535282152Spfg
21536282152Spfg# Commands used to build a shared archive.
21537282152Spfgarchive_cmds=$lt_archive_cmds
21538282152Spfgarchive_expsym_cmds=$lt_archive_expsym_cmds
21539282152Spfg
21540282152Spfg# Commands used to build a loadable module if different from building
21541282152Spfg# a shared archive.
21542282152Spfgmodule_cmds=$lt_module_cmds
21543282152Spfgmodule_expsym_cmds=$lt_module_expsym_cmds
21544282152Spfg
21545282152Spfg# Whether we are building with GNU ld or not.
21546282152Spfgwith_gnu_ld=$lt_with_gnu_ld
21547282152Spfg
21548282152Spfg# Flag that allows shared libraries with undefined symbols to be built.
21549282152Spfgallow_undefined_flag=$lt_allow_undefined_flag
21550282152Spfg
21551282152Spfg# Flag that enforces no undefined symbols.
21552282152Spfgno_undefined_flag=$lt_no_undefined_flag
21553282152Spfg
21554282152Spfg# Flag to hardcode \$libdir into a binary during linking.
21555282152Spfg# This must work even if \$libdir does not exist
21556282152Spfghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21557282152Spfg
21558282152Spfg# If ld is used when linking, flag to hardcode \$libdir into a binary
21559282152Spfg# during linking.  This must work even if \$libdir does not exist.
21560282152Spfghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21561282152Spfg
21562282152Spfg# Whether we need a single "-rpath" flag with a separated argument.
21563282152Spfghardcode_libdir_separator=$lt_hardcode_libdir_separator
21564282152Spfg
21565282152Spfg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21566282152Spfg# DIR into the resulting binary.
21567282152Spfghardcode_direct=$hardcode_direct
21568282152Spfg
21569282152Spfg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21570282152Spfg# DIR into the resulting binary and the resulting library dependency is
21571282152Spfg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21572282152Spfg# library is relocated.
21573282152Spfghardcode_direct_absolute=$hardcode_direct_absolute
21574282152Spfg
21575282152Spfg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21576282152Spfg# into the resulting binary.
21577282152Spfghardcode_minus_L=$hardcode_minus_L
21578282152Spfg
21579282152Spfg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21580282152Spfg# into the resulting binary.
21581282152Spfghardcode_shlibpath_var=$hardcode_shlibpath_var
21582282152Spfg
21583282152Spfg# Set to "yes" if building a shared library automatically hardcodes DIR
21584282152Spfg# into the library and all subsequent libraries and executables linked
21585282152Spfg# against it.
21586282152Spfghardcode_automatic=$hardcode_automatic
21587282152Spfg
21588282152Spfg# Set to yes if linker adds runtime paths of dependent libraries
21589282152Spfg# to runtime path list.
21590282152Spfginherit_rpath=$inherit_rpath
21591282152Spfg
21592282152Spfg# Whether libtool must link a program against all its dependency libraries.
21593282152Spfglink_all_deplibs=$link_all_deplibs
21594282152Spfg
21595282152Spfg# Fix the shell variable \$srcfile for the compiler.
21596282152Spfgfix_srcfile_path=$lt_fix_srcfile_path
21597282152Spfg
21598282152Spfg# Set to "yes" if exported symbols are required.
21599282152Spfgalways_export_symbols=$always_export_symbols
21600282152Spfg
21601282152Spfg# The commands to list exported symbols.
21602282152Spfgexport_symbols_cmds=$lt_export_symbols_cmds
21603282152Spfg
21604282152Spfg# Symbols that should not be listed in the preloaded symbols.
21605282152Spfgexclude_expsyms=$lt_exclude_expsyms
21606282152Spfg
21607282152Spfg# Symbols that must always be exported.
21608282152Spfginclude_expsyms=$lt_include_expsyms
21609282152Spfg
21610282152Spfg# Commands necessary for linking programs (against libraries) with templates.
21611282152Spfgprelink_cmds=$lt_prelink_cmds
21612282152Spfg
21613282152Spfg# Specify filename containing input files.
21614282152Spfgfile_list_spec=$lt_file_list_spec
21615282152Spfg
21616282152Spfg# How to hardcode a shared library path into an executable.
21617282152Spfghardcode_action=$hardcode_action
21618282152Spfg
21619282152Spfg# Dependencies to place before and after the objects being linked to
21620282152Spfg# create a shared library.
21621282152Spfgpredep_objects=$lt_predep_objects
21622282152Spfgpostdep_objects=$lt_postdep_objects
21623282152Spfgpredeps=$lt_predeps
21624282152Spfgpostdeps=$lt_postdeps
21625282152Spfg
21626282152Spfg# The library search path used internally by the compiler when linking
21627282152Spfg# a shared library.
21628282152Spfgcompiler_lib_search_path=$lt_compiler_lib_search_path
21629282152Spfg
21630282152Spfg# ### END LIBTOOL CONFIG
21631282152Spfg
21632282152Spfg_LT_EOF
21633282152Spfg
21634282152Spfg  case $host_os in
21635282152Spfg  aix3*)
21636282152Spfg    cat <<\_LT_EOF >> "$cfgfile"
21637282152Spfg# AIX sometimes has problems with the GCC collect2 program.  For some
21638282152Spfg# reason, if we set the COLLECT_NAMES environment variable, the problems
21639282152Spfg# vanish in a puff of smoke.
21640282152Spfgif test "X${COLLECT_NAMES+set}" != Xset; then
21641282152Spfg  COLLECT_NAMES=
21642282152Spfg  export COLLECT_NAMES
21643282152Spfgfi
21644282152Spfg_LT_EOF
21645282152Spfg    ;;
21646282152Spfg  esac
21647282152Spfg
21648282152Spfg
21649282152Spfgltmain="$ac_aux_dir/ltmain.sh"
21650282152Spfg
21651282152Spfg
21652282152Spfg  # We use sed instead of cat because bash on DJGPP gets confused if
21653282152Spfg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21654282152Spfg  # text mode, it properly converts lines to CR/LF.  This bash problem
21655282152Spfg  # is reportedly fixed, but why not run on old versions too?
21656282152Spfg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21657282152Spfg    || (rm -f "$cfgfile"; exit 1)
21658282152Spfg
21659282152Spfg  case $xsi_shell in
21660282152Spfg  yes)
21661282152Spfg    cat << \_LT_EOF >> "$cfgfile"
21662282152Spfg# func_dirname file append nondir_replacement
21663282152Spfg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21664282152Spfg# otherwise set result to NONDIR_REPLACEMENT.
21665282152Spfgfunc_dirname ()
21666282152Spfg{
21667282152Spfg  case ${1} in
21668282152Spfg    */*) func_dirname_result="${1%/*}${2}" ;;
21669282152Spfg    *  ) func_dirname_result="${3}" ;;
21670282152Spfg  esac
21671282152Spfg}
21672282152Spfg
21673282152Spfg# func_basename file
21674282152Spfgfunc_basename ()
21675282152Spfg{
21676282152Spfg  func_basename_result="${1##*/}"
21677282152Spfg}
21678282152Spfg
21679282152Spfg# func_stripname prefix suffix name
21680282152Spfg# strip PREFIX and SUFFIX off of NAME.
21681282152Spfg# PREFIX and SUFFIX must not contain globbing or regex special
21682282152Spfg# characters, hashes, percent signs, but SUFFIX may contain a leading
21683282152Spfg# dot (in which case that matches only a dot).
21684282152Spfgfunc_stripname ()
21685282152Spfg{
21686282152Spfg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21687282152Spfg  # positional parameters, so assign one to ordinary parameter first.
21688282152Spfg  func_stripname_result=${3}
21689282152Spfg  func_stripname_result=${func_stripname_result#"${1}"}
21690282152Spfg  func_stripname_result=${func_stripname_result%"${2}"}
21691282152Spfg}
21692282152Spfg
21693282152Spfg# func_opt_split
21694282152Spfgfunc_opt_split ()
21695282152Spfg{
21696282152Spfg  func_opt_split_opt=${1%%=*}
21697282152Spfg  func_opt_split_arg=${1#*=}
21698282152Spfg}
21699282152Spfg
21700282152Spfg# func_lo2o object
21701282152Spfgfunc_lo2o ()
21702282152Spfg{
21703282152Spfg  case ${1} in
21704282152Spfg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21705282152Spfg    *)    func_lo2o_result=${1} ;;
21706282152Spfg  esac
21707282152Spfg}
21708282152Spfg_LT_EOF
21709282152Spfg    ;;
21710282152Spfg  *) # Bourne compatible functions.
21711282152Spfg    cat << \_LT_EOF >> "$cfgfile"
21712282152Spfg# func_dirname file append nondir_replacement
21713282152Spfg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21714282152Spfg# otherwise set result to NONDIR_REPLACEMENT.
21715282152Spfgfunc_dirname ()
21716282152Spfg{
21717282152Spfg  # Extract subdirectory from the argument.
21718282152Spfg  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21719282152Spfg  if test "X$func_dirname_result" = "X${1}"; then
21720282152Spfg    func_dirname_result="${3}"
21721282152Spfg  else
21722282152Spfg    func_dirname_result="$func_dirname_result${2}"
21723282152Spfg  fi
21724282152Spfg}
21725282152Spfg
21726282152Spfg# func_basename file
21727282152Spfgfunc_basename ()
21728282152Spfg{
21729282152Spfg  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21730282152Spfg}
21731282152Spfg
21732282152Spfg# func_stripname prefix suffix name
21733282152Spfg# strip PREFIX and SUFFIX off of NAME.
21734282152Spfg# PREFIX and SUFFIX must not contain globbing or regex special
21735282152Spfg# characters, hashes, percent signs, but SUFFIX may contain a leading
21736282152Spfg# dot (in which case that matches only a dot).
21737282152Spfg# func_strip_suffix prefix name
21738282152Spfgfunc_stripname ()
21739282152Spfg{
21740282152Spfg  case ${2} in
21741282152Spfg    .*) func_stripname_result=`$ECHO "X${3}" \
21742282152Spfg           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21743282152Spfg    *)  func_stripname_result=`$ECHO "X${3}" \
21744282152Spfg           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21745282152Spfg  esac
21746282152Spfg}
21747282152Spfg
21748282152Spfg# sed scripts:
21749282152Spfgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21750282152Spfgmy_sed_long_arg='1s/^-[^=]*=//'
21751282152Spfg
21752282152Spfg# func_opt_split
21753282152Spfgfunc_opt_split ()
21754282152Spfg{
21755282152Spfg  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21756282152Spfg  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21757282152Spfg}
21758282152Spfg
21759282152Spfg# func_lo2o object
21760282152Spfgfunc_lo2o ()
21761282152Spfg{
21762282152Spfg  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21763282152Spfg}
21764282152Spfg_LT_EOF
21765282152Spfgesac
21766282152Spfg
21767282152Spfgcase $lt_shell_append in
21768282152Spfg  yes)
21769282152Spfg    cat << \_LT_EOF >> "$cfgfile"
21770282152Spfg
21771282152Spfg# func_append var value
21772282152Spfg# Append VALUE to the end of shell variable VAR.
21773282152Spfgfunc_append ()
21774282152Spfg{
21775282152Spfg  eval "$1+=\$2"
21776282152Spfg}
21777282152Spfg_LT_EOF
21778282152Spfg    ;;
21779282152Spfg  *)
21780282152Spfg    cat << \_LT_EOF >> "$cfgfile"
21781282152Spfg
21782282152Spfg# func_append var value
21783282152Spfg# Append VALUE to the end of shell variable VAR.
21784282152Spfgfunc_append ()
21785282152Spfg{
21786282152Spfg  eval "$1=\$$1\$2"
21787282152Spfg}
21788282152Spfg_LT_EOF
21789282152Spfg    ;;
21790282152Spfg  esac
21791282152Spfg
21792282152Spfg
21793282152Spfg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21794282152Spfg    || (rm -f "$cfgfile"; exit 1)
21795282152Spfg
21796282152Spfg  mv -f "$cfgfile" "$ofile" ||
21797282152Spfg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21798282152Spfg  chmod +x "$ofile"
21799282152Spfg
21800282152Spfg
21801282152Spfg    cat <<_LT_EOF >> "$ofile"
21802282152Spfg
21803282152Spfg# ### BEGIN LIBTOOL TAG CONFIG: FC
21804282152Spfg
21805282152Spfg# The linker used to build libraries.
21806282152SpfgLD=$lt_LD_FC
21807282152Spfg
21808282152Spfg# Commands used to build an old-style archive.
21809282152Spfgold_archive_cmds=$lt_old_archive_cmds_FC
21810282152Spfg
21811282152Spfg# A language specific compiler.
21812282152SpfgCC=$lt_compiler_FC
21813282152Spfg
21814282152Spfg# Is the compiler the GNU compiler?
21815282152Spfgwith_gcc=$GCC_FC
21816282152Spfg
21817282152Spfg# Compiler flag to turn off builtin functions.
21818282152Spfgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21819282152Spfg
21820282152Spfg# How to pass a linker flag through the compiler.
21821282152Spfgwl=$lt_lt_prog_compiler_wl_FC
21822282152Spfg
21823282152Spfg# Additional compiler flags for building library objects.
21824282152Spfgpic_flag=$lt_lt_prog_compiler_pic_FC
21825282152Spfg
21826282152Spfg# Compiler flag to prevent dynamic linking.
21827282152Spfglink_static_flag=$lt_lt_prog_compiler_static_FC
21828282152Spfg
21829282152Spfg# Does compiler simultaneously support -c and -o options?
21830282152Spfgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21831282152Spfg
21832282152Spfg# Whether or not to add -lc for building shared libraries.
21833282152Spfgbuild_libtool_need_lc=$archive_cmds_need_lc_FC
21834282152Spfg
21835282152Spfg# Whether or not to disallow shared libs when runtime libs are static.
21836282152Spfgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21837282152Spfg
21838282152Spfg# Compiler flag to allow reflexive dlopens.
21839282152Spfgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21840282152Spfg
21841282152Spfg# Compiler flag to generate shared objects directly from archives.
21842282152Spfgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21843282152Spfg
21844282152Spfg# Whether the compiler copes with passing no objects directly.
21845282152Spfgcompiler_needs_object=$lt_compiler_needs_object_FC
21846282152Spfg
21847282152Spfg# Create an old-style archive from a shared archive.
21848282152Spfgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21849282152Spfg
21850282152Spfg# Create a temporary old-style archive to link instead of a shared archive.
21851282152Spfgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21852282152Spfg
21853282152Spfg# Commands used to build a shared archive.
21854282152Spfgarchive_cmds=$lt_archive_cmds_FC
21855282152Spfgarchive_expsym_cmds=$lt_archive_expsym_cmds_FC
21856282152Spfg
21857282152Spfg# Commands used to build a loadable module if different from building
21858282152Spfg# a shared archive.
21859282152Spfgmodule_cmds=$lt_module_cmds_FC
21860282152Spfgmodule_expsym_cmds=$lt_module_expsym_cmds_FC
21861282152Spfg
21862282152Spfg# Whether we are building with GNU ld or not.
21863282152Spfgwith_gnu_ld=$lt_with_gnu_ld_FC
21864282152Spfg
21865282152Spfg# Flag that allows shared libraries with undefined symbols to be built.
21866282152Spfgallow_undefined_flag=$lt_allow_undefined_flag_FC
21867282152Spfg
21868282152Spfg# Flag that enforces no undefined symbols.
21869282152Spfgno_undefined_flag=$lt_no_undefined_flag_FC
21870282152Spfg
21871282152Spfg# Flag to hardcode \$libdir into a binary during linking.
21872282152Spfg# This must work even if \$libdir does not exist
21873282152Spfghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21874282152Spfg
21875282152Spfg# If ld is used when linking, flag to hardcode \$libdir into a binary
21876282152Spfg# during linking.  This must work even if \$libdir does not exist.
21877282152Spfghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21878282152Spfg
21879282152Spfg# Whether we need a single "-rpath" flag with a separated argument.
21880282152Spfghardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21881282152Spfg
21882282152Spfg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21883282152Spfg# DIR into the resulting binary.
21884282152Spfghardcode_direct=$hardcode_direct_FC
21885282152Spfg
21886282152Spfg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21887282152Spfg# DIR into the resulting binary and the resulting library dependency is
21888282152Spfg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21889282152Spfg# library is relocated.
21890282152Spfghardcode_direct_absolute=$hardcode_direct_absolute_FC
21891282152Spfg
21892282152Spfg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21893282152Spfg# into the resulting binary.
21894282152Spfghardcode_minus_L=$hardcode_minus_L_FC
21895282152Spfg
21896282152Spfg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21897282152Spfg# into the resulting binary.
21898282152Spfghardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21899282152Spfg
21900282152Spfg# Set to "yes" if building a shared library automatically hardcodes DIR
21901282152Spfg# into the library and all subsequent libraries and executables linked
21902282152Spfg# against it.
21903282152Spfghardcode_automatic=$hardcode_automatic_FC
21904282152Spfg
21905282152Spfg# Set to yes if linker adds runtime paths of dependent libraries
21906282152Spfg# to runtime path list.
21907282152Spfginherit_rpath=$inherit_rpath_FC
21908282152Spfg
21909282152Spfg# Whether libtool must link a program against all its dependency libraries.
21910282152Spfglink_all_deplibs=$link_all_deplibs_FC
21911282152Spfg
21912282152Spfg# Fix the shell variable \$srcfile for the compiler.
21913282152Spfgfix_srcfile_path=$lt_fix_srcfile_path_FC
21914282152Spfg
21915282152Spfg# Set to "yes" if exported symbols are required.
21916282152Spfgalways_export_symbols=$always_export_symbols_FC
21917282152Spfg
21918282152Spfg# The commands to list exported symbols.
21919282152Spfgexport_symbols_cmds=$lt_export_symbols_cmds_FC
21920282152Spfg
21921282152Spfg# Symbols that should not be listed in the preloaded symbols.
21922282152Spfgexclude_expsyms=$lt_exclude_expsyms_FC
21923282152Spfg
21924282152Spfg# Symbols that must always be exported.
21925282152Spfginclude_expsyms=$lt_include_expsyms_FC
21926282152Spfg
21927282152Spfg# Commands necessary for linking programs (against libraries) with templates.
21928282152Spfgprelink_cmds=$lt_prelink_cmds_FC
21929282152Spfg
21930282152Spfg# Specify filename containing input files.
21931282152Spfgfile_list_spec=$lt_file_list_spec_FC
21932282152Spfg
21933282152Spfg# How to hardcode a shared library path into an executable.
21934282152Spfghardcode_action=$hardcode_action_FC
21935282152Spfg
21936282152Spfg# Dependencies to place before and after the objects being linked to
21937282152Spfg# create a shared library.
21938282152Spfgpredep_objects=$lt_predep_objects_FC
21939282152Spfgpostdep_objects=$lt_postdep_objects_FC
21940282152Spfgpredeps=$lt_predeps_FC
21941282152Spfgpostdeps=$lt_postdeps_FC
21942282152Spfg
21943282152Spfg# The library search path used internally by the compiler when linking
21944282152Spfg# a shared library.
21945282152Spfgcompiler_lib_search_path=$lt_compiler_lib_search_path_FC
21946282152Spfg
21947282152Spfg# ### END LIBTOOL TAG CONFIG: FC
21948282152Spfg_LT_EOF
21949282152Spfg
21950282152Spfg ;;
21951169695Skan    gstdint.h )
21952169695Skanif test "$GCC" = yes; then
21953169695Skan  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21954169695Skanelse
21955169695Skan  echo "/* generated for $CC */" > tmp-stdint.h
21956169695Skanfi
21957169695Skan
21958169695Skansed 's/^ *//' >> tmp-stdint.h <<EOF
21959169695Skan
21960169695Skan  #ifndef GCC_GENERATED_STDINT_H
21961169695Skan  #define GCC_GENERATED_STDINT_H 1
21962169695Skan
21963169695Skan  #include <sys/types.h>
21964169695SkanEOF
21965169695Skan
21966169695Skanif test "$acx_cv_header_stdint" != stdint.h; then
21967169695Skan  echo "#include <stddef.h>" >> tmp-stdint.h
21968169695Skanfi
21969169695Skanif test "$acx_cv_header_stdint" != stddef.h; then
21970169695Skan  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21971169695Skanfi
21972169695Skan
21973169695Skansed 's/^ *//' >> tmp-stdint.h <<EOF
21974169695Skan  /* glibc uses these symbols as guards to prevent redefinitions.  */
21975169695Skan  #ifdef __int8_t_defined
21976169695Skan  #define _INT8_T
21977169695Skan  #define _INT16_T
21978169695Skan  #define _INT32_T
21979169695Skan  #endif
21980169695Skan  #ifdef __uint32_t_defined
21981169695Skan  #define _UINT32_T
21982169695Skan  #endif
21983169695Skan
21984169695SkanEOF
21985169695Skan
21986169695Skan# ----------------- done header, emit basic int types -------------
21987169695Skanif test "$acx_cv_header_stdint" = stddef.h; then
21988169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
21989169695Skan
21990169695Skan    #ifndef _UINT8_T
21991169695Skan    #define _UINT8_T
21992282152Spfg    #ifndef __uint8_t_defined
21993282152Spfg    #define __uint8_t_defined
21994169695Skan    typedef unsigned $acx_cv_type_int8_t uint8_t;
21995169695Skan    #endif
21996282152Spfg    #endif
21997169695Skan
21998169695Skan    #ifndef _UINT16_T
21999169695Skan    #define _UINT16_T
22000282152Spfg    #ifndef __uint16_t_defined
22001282152Spfg    #define __uint16_t_defined
22002169695Skan    typedef unsigned $acx_cv_type_int16_t uint16_t;
22003169695Skan    #endif
22004282152Spfg    #endif
22005169695Skan
22006169695Skan    #ifndef _UINT32_T
22007169695Skan    #define _UINT32_T
22008282152Spfg    #ifndef __uint32_t_defined
22009282152Spfg    #define __uint32_t_defined
22010169695Skan    typedef unsigned $acx_cv_type_int32_t uint32_t;
22011169695Skan    #endif
22012282152Spfg    #endif
22013169695Skan
22014169695Skan    #ifndef _INT8_T
22015169695Skan    #define _INT8_T
22016282152Spfg    #ifndef __int8_t_defined
22017282152Spfg    #define __int8_t_defined
22018169695Skan    typedef $acx_cv_type_int8_t int8_t;
22019169695Skan    #endif
22020282152Spfg    #endif
22021169695Skan
22022169695Skan    #ifndef _INT16_T
22023169695Skan    #define _INT16_T
22024282152Spfg    #ifndef __int16_t_defined
22025282152Spfg    #define __int16_t_defined
22026169695Skan    typedef $acx_cv_type_int16_t int16_t;
22027169695Skan    #endif
22028282152Spfg    #endif
22029169695Skan
22030169695Skan    #ifndef _INT32_T
22031169695Skan    #define _INT32_T
22032282152Spfg    #ifndef __int32_t_defined
22033282152Spfg    #define __int32_t_defined
22034169695Skan    typedef $acx_cv_type_int32_t int32_t;
22035169695Skan    #endif
22036282152Spfg    #endif
22037169695SkanEOF
22038169695Skanelif test "$ac_cv_type_u_int32_t" = yes; then
22039169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22040169695Skan
22041169695Skan    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22042169695Skan    #ifndef _INT8_T
22043169695Skan    #define _INT8_T
22044169695Skan    #endif
22045169695Skan    #ifndef _INT16_T
22046169695Skan    #define _INT16_T
22047169695Skan    #endif
22048169695Skan    #ifndef _INT32_T
22049169695Skan    #define _INT32_T
22050169695Skan    #endif
22051169695Skan
22052169695Skan    #ifndef _UINT8_T
22053169695Skan    #define _UINT8_T
22054282152Spfg    #ifndef __uint8_t_defined
22055282152Spfg    #define __uint8_t_defined
22056169695Skan    typedef u_int8_t uint8_t;
22057169695Skan    #endif
22058282152Spfg    #endif
22059169695Skan
22060169695Skan    #ifndef _UINT16_T
22061169695Skan    #define _UINT16_T
22062282152Spfg    #ifndef __uint16_t_defined
22063282152Spfg    #define __uint16_t_defined
22064169695Skan    typedef u_int16_t uint16_t;
22065169695Skan    #endif
22066282152Spfg    #endif
22067169695Skan
22068169695Skan    #ifndef _UINT32_T
22069169695Skan    #define _UINT32_T
22070282152Spfg    #ifndef __uint32_t_defined
22071282152Spfg    #define __uint32_t_defined
22072169695Skan    typedef u_int32_t uint32_t;
22073169695Skan    #endif
22074282152Spfg    #endif
22075169695SkanEOF
22076169695Skanelse
22077169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22078169695Skan
22079169695Skan    /* Some systems have guard macros to prevent redefinitions, define them.  */
22080169695Skan    #ifndef _INT8_T
22081169695Skan    #define _INT8_T
22082169695Skan    #endif
22083169695Skan    #ifndef _INT16_T
22084169695Skan    #define _INT16_T
22085169695Skan    #endif
22086169695Skan    #ifndef _INT32_T
22087169695Skan    #define _INT32_T
22088169695Skan    #endif
22089169695Skan    #ifndef _UINT8_T
22090169695Skan    #define _UINT8_T
22091169695Skan    #endif
22092169695Skan    #ifndef _UINT16_T
22093169695Skan    #define _UINT16_T
22094169695Skan    #endif
22095169695Skan    #ifndef _UINT32_T
22096169695Skan    #define _UINT32_T
22097169695Skan    #endif
22098169695SkanEOF
22099169695Skanfi
22100169695Skan
22101169695Skan# ------------- done basic int types, emit int64_t types ------------
22102169695Skanif test "$ac_cv_type_uint64_t" = yes; then
22103169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22104169695Skan
22105169695Skan    /* system headers have good uint64_t and int64_t */
22106169695Skan    #ifndef _INT64_T
22107169695Skan    #define _INT64_T
22108169695Skan    #endif
22109169695Skan    #ifndef _UINT64_T
22110169695Skan    #define _UINT64_T
22111169695Skan    #endif
22112169695SkanEOF
22113169695Skanelif test "$ac_cv_type_u_int64_t" = yes; then
22114169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22115169695Skan
22116169695Skan    /* system headers have an u_int64_t (and int64_t) */
22117169695Skan    #ifndef _INT64_T
22118169695Skan    #define _INT64_T
22119169695Skan    #endif
22120169695Skan    #ifndef _UINT64_T
22121169695Skan    #define _UINT64_T
22122282152Spfg    #ifndef __uint64_t_defined
22123282152Spfg    #define __uint64_t_defined
22124169695Skan    typedef u_int64_t uint64_t;
22125169695Skan    #endif
22126282152Spfg    #endif
22127169695SkanEOF
22128169695Skanelif test -n "$acx_cv_type_int64_t"; then
22129169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22130169695Skan
22131169695Skan    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22132169695Skan    #ifndef _INT64_T
22133169695Skan    #define _INT64_T
22134169695Skan    typedef $acx_cv_type_int64_t int64_t;
22135169695Skan    #endif
22136169695Skan    #ifndef _UINT64_T
22137169695Skan    #define _UINT64_T
22138282152Spfg    #ifndef __uint64_t_defined
22139282152Spfg    #define __uint64_t_defined
22140169695Skan    typedef unsigned $acx_cv_type_int64_t uint64_t;
22141169695Skan    #endif
22142282152Spfg    #endif
22143169695SkanEOF
22144169695Skanelse
22145169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22146169695Skan
22147169695Skan    /* some common heuristics for int64_t, using compiler-specific tests */
22148169695Skan    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22149169695Skan    #ifndef _INT64_T
22150169695Skan    #define _INT64_T
22151282152Spfg    #ifndef __int64_t_defined
22152169695Skan    typedef long long int64_t;
22153169695Skan    #endif
22154282152Spfg    #endif
22155169695Skan    #ifndef _UINT64_T
22156169695Skan    #define _UINT64_T
22157169695Skan    typedef unsigned long long uint64_t;
22158169695Skan    #endif
22159169695Skan
22160169695Skan    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22161169695Skan    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22162169695Skan       does not implement __extension__.  But that compiler doesn't define
22163169695Skan       __GNUC_MINOR__.  */
22164169695Skan    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22165169695Skan    # define __extension__
22166169695Skan    # endif
22167169695Skan
22168169695Skan    # ifndef _INT64_T
22169169695Skan    # define _INT64_T
22170169695Skan    __extension__ typedef long long int64_t;
22171169695Skan    # endif
22172169695Skan    # ifndef _UINT64_T
22173169695Skan    # define _UINT64_T
22174169695Skan    __extension__ typedef unsigned long long uint64_t;
22175169695Skan    # endif
22176169695Skan
22177169695Skan    #elif !defined __STRICT_ANSI__
22178169695Skan    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22179169695Skan
22180169695Skan    #  ifndef _INT64_T
22181169695Skan    #  define _INT64_T
22182169695Skan    typedef __int64 int64_t;
22183169695Skan    #  endif
22184169695Skan    #  ifndef _UINT64_T
22185169695Skan    #  define _UINT64_T
22186169695Skan    typedef unsigned __int64 uint64_t;
22187169695Skan    #  endif
22188169695Skan    # endif /* compiler */
22189169695Skan
22190169695Skan    #endif /* ANSI version */
22191169695SkanEOF
22192169695Skanfi
22193169695Skan
22194169695Skan# ------------- done int64_t types, emit intptr types ------------
22195169695Skanif test "$ac_cv_type_uintptr_t" != yes; then
22196169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22197169695Skan
22198169695Skan    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22199282152Spfg    #ifndef __uintptr_t_defined
22200169695Skan    typedef u$acx_cv_type_intptr_t uintptr_t;
22201282152Spfg    #endif
22202282152Spfg    #ifndef __intptr_t_defined
22203169695Skan    typedef $acx_cv_type_intptr_t  intptr_t;
22204282152Spfg    #endif
22205169695SkanEOF
22206169695Skanfi
22207169695Skan
22208169695Skan# ------------- done intptr types, emit int_least types ------------
22209169695Skanif test "$ac_cv_type_int_least32_t" != yes; then
22210169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22211169695Skan
22212169695Skan    /* Define int_least types */
22213169695Skan    typedef int8_t     int_least8_t;
22214169695Skan    typedef int16_t    int_least16_t;
22215169695Skan    typedef int32_t    int_least32_t;
22216169695Skan    #ifdef _INT64_T
22217169695Skan    typedef int64_t    int_least64_t;
22218169695Skan    #endif
22219169695Skan
22220169695Skan    typedef uint8_t    uint_least8_t;
22221169695Skan    typedef uint16_t   uint_least16_t;
22222169695Skan    typedef uint32_t   uint_least32_t;
22223169695Skan    #ifdef _UINT64_T
22224169695Skan    typedef uint64_t   uint_least64_t;
22225169695Skan    #endif
22226169695SkanEOF
22227169695Skanfi
22228169695Skan
22229169695Skan# ------------- done intptr types, emit int_fast types ------------
22230169695Skanif test "$ac_cv_type_int_fast32_t" != yes; then
22231169695Skan      sed 's/^ *//' >> tmp-stdint.h <<EOF
22232169695Skan
22233169695Skan    /* Define int_fast types.  short is often slow */
22234169695Skan    typedef int8_t       int_fast8_t;
22235169695Skan    typedef int          int_fast16_t;
22236169695Skan    typedef int32_t      int_fast32_t;
22237169695Skan    #ifdef _INT64_T
22238169695Skan    typedef int64_t      int_fast64_t;
22239169695Skan    #endif
22240169695Skan
22241169695Skan    typedef uint8_t      uint_fast8_t;
22242169695Skan    typedef unsigned int uint_fast16_t;
22243169695Skan    typedef uint32_t     uint_fast32_t;
22244169695Skan    #ifdef _UINT64_T
22245169695Skan    typedef uint64_t     uint_fast64_t;
22246169695Skan    #endif
22247169695SkanEOF
22248169695Skanfi
22249169695Skan
22250169695Skanif test "$ac_cv_type_uintmax_t" != yes; then
22251169695Skan  sed 's/^ *//' >> tmp-stdint.h <<EOF
22252169695Skan
22253169695Skan    /* Define intmax based on what we found */
22254169695Skan    #ifdef _INT64_T
22255169695Skan    typedef int64_t       intmax_t;
22256169695Skan    #else
22257169695Skan    typedef long          intmax_t;
22258169695Skan    #endif
22259169695Skan    #ifdef _UINT64_T
22260169695Skan    typedef uint64_t      uintmax_t;
22261169695Skan    #else
22262169695Skan    typedef unsigned long uintmax_t;
22263169695Skan    #endif
22264169695SkanEOF
22265169695Skanfi
22266169695Skan
22267169695Skansed 's/^ *//' >> tmp-stdint.h <<EOF
22268169695Skan
22269169695Skan  #endif /* GCC_GENERATED_STDINT_H */
22270169695SkanEOF
22271169695Skan
22272169695Skanif test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22273169695Skan  rm -f tmp-stdint.h
22274169695Skanelse
22275169695Skan  mv -f tmp-stdint.h gstdint.h
22276169695Skanfi
22277169695Skan
22278169695Skan ;;
22279169695Skan  esac
22280169695Skandone
22281169695Skan_ACEOF
22282169695Skan
22283169695Skancat >>$CONFIG_STATUS <<\_ACEOF
22284169695Skan
22285169695Skan{ (exit 0); exit 0; }
22286169695Skan_ACEOF
22287169695Skanchmod +x $CONFIG_STATUS
22288169695Skanac_clean_files=$ac_clean_files_save
22289169695Skan
22290169695Skan
22291169695Skan# configure is writing to config.log, and then calls config.status.
22292169695Skan# config.status does its own redirection, appending to config.log.
22293169695Skan# Unfortunately, on DOS this fails, as config.log is still kept open
22294169695Skan# by configure, so config.status won't be able to write to it; its
22295169695Skan# output is simply discarded.  So we exec the FD to /dev/null,
22296169695Skan# effectively closing config.log, so it can be properly (re)opened and
22297169695Skan# appended to by config.status.  When coming back to configure, we
22298169695Skan# need to make the FD available again.
22299169695Skanif test "$no_create" != yes; then
22300169695Skan  ac_cs_success=:
22301169695Skan  ac_config_status_args=
22302169695Skan  test "$silent" = yes &&
22303169695Skan    ac_config_status_args="$ac_config_status_args --quiet"
22304169695Skan  exec 5>/dev/null
22305169695Skan  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22306169695Skan  exec 5>>config.log
22307169695Skan  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22308169695Skan  # would make configure fail if this is the last instruction.
22309169695Skan  $ac_cs_success || { (exit 1); exit 1; }
22310169695Skanfi
22311169695Skan
22312