1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU OpenMP Runtime Library'
558PACKAGE_TARNAME='libgomp'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604OMP_NEST_LOCK_25_KIND
605OMP_LOCK_25_KIND
606OMP_NEST_LOCK_25_ALIGN
607OMP_NEST_LOCK_25_SIZE
608OMP_LOCK_25_ALIGN
609OMP_LOCK_25_SIZE
610OMP_NEST_LOCK_KIND
611OMP_LOCK_KIND
612OMP_NEST_LOCK_ALIGN
613OMP_NEST_LOCK_SIZE
614OMP_LOCK_ALIGN
615OMP_LOCK_SIZE
616USE_FORTRAN_FALSE
617USE_FORTRAN_TRUE
618link_gomp
619XLDFLAGS
620XCFLAGS
621config_path
622LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
623LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
626LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
628OPT_LDFLAGS
629SECTION_LDFLAGS
630libtool_VERSION
631ac_ct_FC
632FCFLAGS
633FC
634MAINT
635MAINTAINER_MODE_FALSE
636MAINTAINER_MODE_TRUE
637enable_static
638enable_shared
639lt_host_flags
640CPP
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646OBJDUMP
647LN_S
648NM
649ac_ct_DUMPBIN
650DUMPBIN
651LD
652FGREP
653EGREP
654GREP
655SED
656LIBTOOL
657BUILD_INFO_FALSE
658BUILD_INFO_TRUE
659PERL
660RANLIB
661AR
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
665AMDEPBACKSLASH
666AMDEP_FALSE
667AMDEP_TRUE
668am__quote
669am__include
670DEPDIR
671OBJEXT
672EXEEXT
673ac_ct_CC
674CPPFLAGS
675LDFLAGS
676CFLAGS
677CC
678toolexeclibdir
679toolexecdir
680multi_basedir
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716GENINSRC_FALSE
717GENINSRC_TRUE
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
756ac_subst_files=''
757ac_user_opts='
758enable_option_checking
759enable_version_specific_runtime_libs
760enable_generated_files_in_srcdir
761enable_multilib
762enable_dependency_tracking
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_gnu_ld
768enable_libtool_lock
769enable_maintainer_mode
770enable_linux_futex
771enable_tls
772enable_symvers
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CPP
778CPPFLAGS
779FC
780FCFLAGS
781LDFLAGS
782LIBS'
783
784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
788ac_unrecognized_opts=
789ac_unrecognized_sep=
790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
812# (The list follows the same order as the GNU Coding Standards.)
813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
821includedir='${prefix}/include'
822oldincludedir='/usr/include'
823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
832
833ac_prev=
834ac_dashdash=
835for ac_option
836do
837  # If the previous option needs an argument, assign it.
838  if test -n "$ac_prev"; then
839    eval $ac_prev=\$ac_option
840    ac_prev=
841    continue
842  fi
843
844  case $ac_option in
845  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846  *)	ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073    ac_prev=sbindir ;;
1074  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075  | --sbi=* | --sb=*)
1076    sbindir=$ac_optarg ;;
1077
1078  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080  | --sharedst | --shareds | --shared | --share | --shar \
1081  | --sha | --sh)
1082    ac_prev=sharedstatedir ;;
1083  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086  | --sha=* | --sh=*)
1087    sharedstatedir=$ac_optarg ;;
1088
1089  -site | --site | --sit)
1090    ac_prev=site ;;
1091  -site=* | --site=* | --sit=*)
1092    site=$ac_optarg ;;
1093
1094  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095    ac_prev=srcdir ;;
1096  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097    srcdir=$ac_optarg ;;
1098
1099  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100  | --syscon | --sysco | --sysc | --sys | --sy)
1101    ac_prev=sysconfdir ;;
1102  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104    sysconfdir=$ac_optarg ;;
1105
1106  -target | --target | --targe | --targ | --tar | --ta | --t)
1107    ac_prev=target_alias ;;
1108  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109    target_alias=$ac_optarg ;;
1110
1111  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112    verbose=yes ;;
1113
1114  -version | --version | --versio | --versi | --vers | -V)
1115    ac_init_version=: ;;
1116
1117  -with-* | --with-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=\$ac_optarg ;;
1132
1133  -without-* | --without-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=no ;;
1148
1149  --x)
1150    # Obsolete; use --with-x.
1151    with_x=yes ;;
1152
1153  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154  | --x-incl | --x-inc | --x-in | --x-i)
1155    ac_prev=x_includes ;;
1156  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158    x_includes=$ac_optarg ;;
1159
1160  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162    ac_prev=x_libraries ;;
1163  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165    x_libraries=$ac_optarg ;;
1166
1167  -*) as_fn_error "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information."
1169    ;;
1170
1171  *=*)
1172    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173    # Reject names that are not valid shell variable names.
1174    case $ac_envvar in #(
1175      '' | [0-9]* | *[!_$as_cr_alnum]* )
1176      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177    esac
1178    eval $ac_envvar=\$ac_optarg
1179    export $ac_envvar ;;
1180
1181  *)
1182    # FIXME: should be removed in autoconf 3.0.
1183    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187    ;;
1188
1189  esac
1190done
1191
1192if test -n "$ac_prev"; then
1193  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194  as_fn_error "missing argument to $ac_option"
1195fi
1196
1197if test -n "$ac_unrecognized_opts"; then
1198  case $enable_option_checking in
1199    no) ;;
1200    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202  esac
1203fi
1204
1205# Check all directory arguments for consistency.
1206for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207		datadir sysconfdir sharedstatedir localstatedir includedir \
1208		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209		libdir localedir mandir
1210do
1211  eval ac_val=\$$ac_var
1212  # Remove trailing slashes.
1213  case $ac_val in
1214    */ )
1215      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216      eval $ac_var=\$ac_val;;
1217  esac
1218  # Be sure to have absolute directory names.
1219  case $ac_val in
1220    [\\/$]* | ?:[\\/]* )  continue;;
1221    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222  esac
1223  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235  if test "x$build_alias" = x; then
1236    cross_compiling=maybe
1237    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238    If a cross compiler is detected then cross compile mode will be used." >&2
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389  --target=TARGET   configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394  case $ac_init_help in
1395     short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1396   esac
1397  cat <<\_ACEOF
1398
1399Optional Features:
1400  --disable-option-checking  ignore unrecognized --enable/--with options
1401  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403  --enable-version-specific-runtime-libs
1404                          Specify that runtime libraries should be installed
1405                          in a compiler-specific directory [default=no]
1406  --enable-generated-files-in-srcdir
1407                          put copies of generated files in source dir intended
1408                          for creating source tarballs for users without
1409                          texinfo bison or flex. [default=no]
1410  --enable-multilib       build many library versions (default)
1411  --disable-dependency-tracking  speeds up one-time build
1412  --enable-dependency-tracking   do not reject slow dependency extractors
1413  --enable-shared[=PKGS]  build shared libraries [default=yes]
1414  --enable-static[=PKGS]  build static libraries [default=yes]
1415  --enable-fast-install[=PKGS]
1416                          optimize for fast installation [default=yes]
1417  --disable-libtool-lock  avoid locking (might break parallel builds)
1418  --enable-maintainer-mode  enable make rules and dependencies not useful
1419			  (and sometimes confusing) to the casual installer
1420  --enable-linux-futex    use the Linux futex system call [default=default]
1421  --enable-tls            Use thread-local storage [default=yes]
1422  --enable-symvers=STYLE  enables symbol versioning of the shared library
1423                          [default=yes]
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic              try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441  FC          Fortran compiler command
1442  FCFLAGS     Fortran compiler flags
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to the package provider.
1448GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1449General help using GNU software: <http://www.gnu.org/gethelp/>.
1450_ACEOF
1451ac_status=$?
1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455  # If there are subdirs, report their specific --help.
1456  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457    test -d "$ac_dir" ||
1458      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459      continue
1460    ac_builddir=.
1461
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466  # A ".." for each directory in $ac_dir_suffix.
1467  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468  case $ac_top_builddir_sub in
1469  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471  esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1477
1478case $srcdir in
1479  .)  # We are building in place.
1480    ac_srcdir=.
1481    ac_top_srcdir=$ac_top_builddir_sub
1482    ac_abs_top_srcdir=$ac_pwd ;;
1483  [\\/]* | ?:[\\/]* )  # Absolute name.
1484    ac_srcdir=$srcdir$ac_dir_suffix;
1485    ac_top_srcdir=$srcdir
1486    ac_abs_top_srcdir=$srcdir ;;
1487  *) # Relative name.
1488    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489    ac_top_srcdir=$ac_top_build_prefix$srcdir
1490    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491esac
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494    cd "$ac_dir" || { ac_status=$?; continue; }
1495    # Check for guested configure.
1496    if test -f "$ac_srcdir/configure.gnu"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499    elif test -f "$ac_srcdir/configure"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure" --help=recursive
1502    else
1503      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504    fi || ac_status=$?
1505    cd "$ac_pwd" || { ac_status=$?; break; }
1506  done
1507fi
1508
1509test -n "$ac_init_help" && exit $ac_status
1510if $ac_init_version; then
1511  cat <<\_ACEOF
1512GNU OpenMP Runtime Library configure 1.0
1513generated by GNU Autoconf 2.64
1514
1515Copyright (C) 2009 Free Software Foundation, Inc.
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
1519  exit
1520fi
1521
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1525
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1530{
1531  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532  rm -f conftest.$ac_objext
1533  if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536  *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540  (eval "$ac_compile") 2>conftest.err
1541  ac_status=$?
1542  if test -s conftest.err; then
1543    grep -v '^ *+' conftest.err >conftest.er1
1544    cat conftest.er1 >&5
1545    mv -f conftest.er1 conftest.err
1546  fi
1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548  test $ac_status = 0; } && {
1549	 test -z "$ac_c_werror_flag" ||
1550	 test ! -s conftest.err
1551       } && test -s conftest.$ac_objext; then :
1552  ac_retval=0
1553else
1554  $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557	ac_retval=1
1558fi
1559  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560  return $ac_retval
1561
1562} # ac_fn_c_try_compile
1563
1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext conftest$ac_exeext
1571  if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_link") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest$ac_exeext && {
1590	 test "$cross_compiling" = yes ||
1591	 $as_test_x conftest$ac_exeext
1592       }; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602  # interfere with the next link command; also delete a directory that is
1603  # left behind by Apple's compiler.  We do this before executing the actions.
1604  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606  return $ac_retval
1607
1608} # ac_fn_c_try_link
1609
1610# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists and can be compiled using the include files in
1613# INCLUDES, setting the cache variable VAR accordingly.
1614ac_fn_c_check_header_compile ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1620  $as_echo_n "(cached) " >&6
1621else
1622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624$4
1625#include <$2>
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628  eval "$3=yes"
1629else
1630  eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633fi
1634eval ac_res=\$$3
1635	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638
1639} # ac_fn_c_check_header_compile
1640
1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } >/dev/null && {
1663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664	 test ! -s conftest.err
1665       }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671    ac_retval=1
1672fi
1673  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674  return $ac_retval
1675
1676} # ac_fn_c_try_cpp
1677
1678# ac_fn_c_try_run LINENO
1679# ----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681# that executables *can* be run.
1682ac_fn_c_try_run ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>&5
1693  ac_status=$?
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696  { { case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_try") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; }; }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: program exited with status $ac_status" >&5
1709       $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712       ac_retval=$ac_status
1713fi
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716  return $ac_retval
1717
1718} # ac_fn_c_try_run
1719
1720# ac_fn_c_check_func LINENO FUNC VAR
1721# ----------------------------------
1722# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723ac_fn_c_check_func ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729  $as_echo_n "(cached) " >&6
1730else
1731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735#define $2 innocuous_$2
1736
1737/* System header to define __stub macros and hopefully few prototypes,
1738    which can conflict with char $2 (); below.
1739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740    <limits.h> exists even on freestanding compilers.  */
1741
1742#ifdef __STDC__
1743# include <limits.h>
1744#else
1745# include <assert.h>
1746#endif
1747
1748#undef $2
1749
1750/* Override any GCC internal prototype to avoid an error.
1751   Use char because int might match the return type of a GCC
1752   builtin and then its argument prototype would still apply.  */
1753#ifdef __cplusplus
1754extern "C"
1755#endif
1756char $2 ();
1757/* The GNU C library defines this for functions which it implements
1758    to always fail with ENOSYS.  Some functions are actually named
1759    something starting with __ and the normal name is an alias.  */
1760#if defined __stub_$2 || defined __stub___$2
1761choke me
1762#endif
1763
1764int
1765main ()
1766{
1767return $2 ();
1768  ;
1769  return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_link "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext \
1778    conftest$ac_exeext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785} # ac_fn_c_check_func
1786
1787# ac_fn_fc_try_compile LINENO
1788# ---------------------------
1789# Try to compile conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_fc_try_compile ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  rm -f conftest.$ac_objext
1794  if { { ac_try="$ac_compile"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_compile") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && {
1810	 test -z "$ac_fc_werror_flag" ||
1811	 test ! -s conftest.err
1812       } && test -s conftest.$ac_objext; then :
1813  ac_retval=0
1814else
1815  $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818	ac_retval=1
1819fi
1820  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821  return $ac_retval
1822
1823} # ac_fn_fc_try_compile
1824
1825# ac_fn_fc_try_link LINENO
1826# ------------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_fc_try_link ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  rm -f conftest.$ac_objext conftest$ac_exeext
1832  if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835  *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839  (eval "$ac_link") 2>conftest.err
1840  ac_status=$?
1841  if test -s conftest.err; then
1842    grep -v '^ *+' conftest.err >conftest.er1
1843    cat conftest.er1 >&5
1844    mv -f conftest.er1 conftest.err
1845  fi
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; } && {
1848	 test -z "$ac_fc_werror_flag" ||
1849	 test ! -s conftest.err
1850       } && test -s conftest$ac_exeext && {
1851	 test "$cross_compiling" = yes ||
1852	 $as_test_x conftest$ac_exeext
1853       }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859	ac_retval=1
1860fi
1861  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863  # interfere with the next link command; also delete a directory that is
1864  # left behind by Apple's compiler.  We do this before executing the actions.
1865  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867  return $ac_retval
1868
1869} # ac_fn_fc_try_link
1870
1871# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872# -------------------------------------------------------
1873# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874# the include files in INCLUDES and setting the cache variable VAR
1875# accordingly.
1876ac_fn_c_check_header_mongrel ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883  $as_echo_n "(cached) " >&6
1884fi
1885eval ac_res=\$$3
1886	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888else
1889  # Is the header compilable?
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891$as_echo_n "checking $2 usability... " >&6; }
1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  ac_header_compiler=yes
1899else
1900  ac_header_compiler=no
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904$as_echo "$ac_header_compiler" >&6; }
1905
1906# Is the header present?
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908$as_echo_n "checking $2 presence... " >&6; }
1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911#include <$2>
1912_ACEOF
1913if ac_fn_c_try_cpp "$LINENO"; then :
1914  ac_header_preproc=yes
1915else
1916  ac_header_preproc=no
1917fi
1918rm -f conftest.err conftest.$ac_ext
1919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920$as_echo "$ac_header_preproc" >&6; }
1921
1922# So?  What about this header?
1923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924  yes:no: )
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929    ;;
1930  no:yes:* )
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1934$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1938$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941    ;;
1942esac
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  eval "$3=\$ac_header_compiler"
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953fi
1954  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956} # ac_fn_c_check_header_mongrel
1957
1958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959# -------------------------------------------
1960# Tests whether TYPE exists after having included INCLUDES, setting cache
1961# variable VAR accordingly.
1962ac_fn_c_check_type ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  eval "$3=no"
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$4
1974int
1975main ()
1976{
1977if (sizeof ($2))
1978	 return 0;
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990if (sizeof (($2)))
1991	    return 0;
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997
1998else
1999  eval "$3=yes"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010} # ac_fn_c_check_type
2011
2012# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013# --------------------------------------------
2014# Tries to find the compile-time value of EXPR in a program that includes
2015# INCLUDES, setting VAR accordingly. Returns whether the value could be
2016# computed
2017ac_fn_c_compute_int ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  if test "$cross_compiling" = yes; then
2021    # Depending upon the size, compute the lo and hi bounds.
2022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) >= 0)];
2029test_array [0] = 0
2030
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036  ac_lo=0 ac_mid=0
2037  while :; do
2038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045test_array [0] = 0
2046
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052  ac_hi=$ac_mid; break
2053else
2054  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055			if test $ac_lo -le $ac_mid; then
2056			  ac_lo= ac_hi=
2057			  break
2058			fi
2059			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062  done
2063else
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) < 0)];
2071test_array [0] = 0
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_hi=-1 ac_mid=-1
2079  while :; do
2080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087test_array [0] = 0
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_lo=$ac_mid; break
2095else
2096  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097			if test $ac_mid -le $ac_hi; then
2098			  ac_lo= ac_hi=
2099			  break
2100			fi
2101			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104  done
2105else
2106  ac_lo= ac_hi=
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111# Binary search between lo and hi bounds.
2112while test "x$ac_lo" != "x$ac_hi"; do
2113  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121test_array [0] = 0
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_hi=$ac_mid
2129else
2130  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133done
2134case $ac_lo in #((
2135?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2136'') ac_retval=1 ;;
2137esac
2138  else
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142static long int longval () { return $2; }
2143static unsigned long int ulongval () { return $2; }
2144#include <stdio.h>
2145#include <stdlib.h>
2146int
2147main ()
2148{
2149
2150  FILE *f = fopen ("conftest.val", "w");
2151  if (! f)
2152    return 1;
2153  if (($2) < 0)
2154    {
2155      long int i = longval ();
2156      if (i != ($2))
2157	return 1;
2158      fprintf (f, "%ld", i);
2159    }
2160  else
2161    {
2162      unsigned long int i = ulongval ();
2163      if (i != ($2))
2164	return 1;
2165      fprintf (f, "%lu", i);
2166    }
2167  /* Do not output a trailing newline, as this causes \r\n confusion
2168     on some platforms.  */
2169  return ferror (f) || fclose (f) != 0;
2170
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_run "$LINENO"; then :
2176  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2177else
2178  ac_retval=1
2179fi
2180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181  conftest.$ac_objext conftest.beam conftest.$ac_ext
2182rm -f conftest.val
2183
2184  fi
2185  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186  return $ac_retval
2187
2188} # ac_fn_c_compute_int
2189cat >config.log <<_ACEOF
2190This file contains any messages produced by compilers while
2191running configure, to aid debugging if configure makes a mistake.
2192
2193It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2194generated by GNU Autoconf 2.64.  Invocation command line was
2195
2196  $ $0 $@
2197
2198_ACEOF
2199exec 5>>config.log
2200{
2201cat <<_ASUNAME
2202## --------- ##
2203## Platform. ##
2204## --------- ##
2205
2206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
2212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2214
2215/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2216/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2219/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2220/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2221/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2222
2223_ASUNAME
2224
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228  IFS=$as_save_IFS
2229  test -z "$as_dir" && as_dir=.
2230    $as_echo "PATH: $as_dir"
2231  done
2232IFS=$as_save_IFS
2233
2234} >&5
2235
2236cat >&5 <<_ACEOF
2237
2238
2239## ----------- ##
2240## Core tests. ##
2241## ----------- ##
2242
2243_ACEOF
2244
2245
2246# Keep a trace of the command line.
2247# Strip out --no-create and --no-recursion so they do not pile up.
2248# Strip out --silent because we don't want to record it for future runs.
2249# Also quote any args containing shell meta-characters.
2250# Make two passes to allow for proper duplicate-argument suppression.
2251ac_configure_args=
2252ac_configure_args0=
2253ac_configure_args1=
2254ac_must_keep_next=false
2255for ac_pass in 1 2
2256do
2257  for ac_arg
2258  do
2259    case $ac_arg in
2260    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262    | -silent | --silent | --silen | --sile | --sil)
2263      continue ;;
2264    *\'*)
2265      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266    esac
2267    case $ac_pass in
2268    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269    2)
2270      as_fn_append ac_configure_args1 " '$ac_arg'"
2271      if test $ac_must_keep_next = true; then
2272	ac_must_keep_next=false # Got value, back to normal.
2273      else
2274	case $ac_arg in
2275	  *=* | --config-cache | -C | -disable-* | --disable-* \
2276	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278	  | -with-* | --with-* | -without-* | --without-* | --x)
2279	    case "$ac_configure_args0 " in
2280	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281	    esac
2282	    ;;
2283	  -* ) ac_must_keep_next=true ;;
2284	esac
2285      fi
2286      as_fn_append ac_configure_args " '$ac_arg'"
2287      ;;
2288    esac
2289  done
2290done
2291{ ac_configure_args0=; unset ac_configure_args0;}
2292{ ac_configure_args1=; unset ac_configure_args1;}
2293
2294# When interrupted or exit'd, cleanup temporary files, and complete
2295# config.log.  We remove comments because anyway the quotes in there
2296# would cause problems or look ugly.
2297# WARNING: Use '\'' to represent an apostrophe within the trap.
2298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299trap 'exit_status=$?
2300  # Save into config.log some information that might help in debugging.
2301  {
2302    echo
2303
2304    cat <<\_ASBOX
2305## ---------------- ##
2306## Cache variables. ##
2307## ---------------- ##
2308_ASBOX
2309    echo
2310    # The following way of writing the cache mishandles newlines in values,
2311(
2312  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313    eval ac_val=\$$ac_var
2314    case $ac_val in #(
2315    *${as_nl}*)
2316      case $ac_var in #(
2317      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319      esac
2320      case $ac_var in #(
2321      _ | IFS | as_nl) ;; #(
2322      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323      *) { eval $ac_var=; unset $ac_var;} ;;
2324      esac ;;
2325    esac
2326  done
2327  (set) 2>&1 |
2328    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329    *${as_nl}ac_space=\ *)
2330      sed -n \
2331	"s/'\''/'\''\\\\'\'''\''/g;
2332	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333      ;; #(
2334    *)
2335      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336      ;;
2337    esac |
2338    sort
2339)
2340    echo
2341
2342    cat <<\_ASBOX
2343## ----------------- ##
2344## Output variables. ##
2345## ----------------- ##
2346_ASBOX
2347    echo
2348    for ac_var in $ac_subst_vars
2349    do
2350      eval ac_val=\$$ac_var
2351      case $ac_val in
2352      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353      esac
2354      $as_echo "$ac_var='\''$ac_val'\''"
2355    done | sort
2356    echo
2357
2358    if test -n "$ac_subst_files"; then
2359      cat <<\_ASBOX
2360## ------------------- ##
2361## File substitutions. ##
2362## ------------------- ##
2363_ASBOX
2364      echo
2365      for ac_var in $ac_subst_files
2366      do
2367	eval ac_val=\$$ac_var
2368	case $ac_val in
2369	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370	esac
2371	$as_echo "$ac_var='\''$ac_val'\''"
2372      done | sort
2373      echo
2374    fi
2375
2376    if test -s confdefs.h; then
2377      cat <<\_ASBOX
2378## ----------- ##
2379## confdefs.h. ##
2380## ----------- ##
2381_ASBOX
2382      echo
2383      cat confdefs.h
2384      echo
2385    fi
2386    test "$ac_signal" != 0 &&
2387      $as_echo "$as_me: caught signal $ac_signal"
2388    $as_echo "$as_me: exit $exit_status"
2389  } >&5
2390  rm -f core *.core core.conftest.* &&
2391    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392    exit $exit_status
2393' 0
2394for ac_signal in 1 2 13 15; do
2395  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396done
2397ac_signal=0
2398
2399# confdefs.h avoids OS command line length limits that DEFS can exceed.
2400rm -f -r conftest* confdefs.h
2401
2402$as_echo "/* confdefs.h */" > confdefs.h
2403
2404# Predefined preprocessor variables.
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_NAME "$PACKAGE_NAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_STRING "$PACKAGE_STRING"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_URL "$PACKAGE_URL"
2428_ACEOF
2429
2430
2431# Let the site file select an alternate cache file if it wants to.
2432# Prefer an explicitly selected file to automatically selected ones.
2433ac_site_file1=NONE
2434ac_site_file2=NONE
2435if test -n "$CONFIG_SITE"; then
2436  ac_site_file1=$CONFIG_SITE
2437elif test "x$prefix" != xNONE; then
2438  ac_site_file1=$prefix/share/config.site
2439  ac_site_file2=$prefix/etc/config.site
2440else
2441  ac_site_file1=$ac_default_prefix/share/config.site
2442  ac_site_file2=$ac_default_prefix/etc/config.site
2443fi
2444for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445do
2446  test "x$ac_site_file" = xNONE && continue
2447  if test -r "$ac_site_file"; then
2448    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450    sed 's/^/| /' "$ac_site_file" >&5
2451    . "$ac_site_file"
2452  fi
2453done
2454
2455if test -r "$cache_file"; then
2456  # Some versions of bash will fail to source /dev/null (special
2457  # files actually), so we avoid doing that.
2458  if test -f "$cache_file"; then
2459    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460$as_echo "$as_me: loading cache $cache_file" >&6;}
2461    case $cache_file in
2462      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463      *)                      . "./$cache_file";;
2464    esac
2465  fi
2466else
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468$as_echo "$as_me: creating cache $cache_file" >&6;}
2469  >$cache_file
2470fi
2471
2472# Check that the precious variables saved in the cache have kept the same
2473# value.
2474ac_cache_corrupted=false
2475for ac_var in $ac_precious_vars; do
2476  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477  eval ac_new_set=\$ac_env_${ac_var}_set
2478  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479  eval ac_new_val=\$ac_env_${ac_var}_value
2480  case $ac_old_set,$ac_new_set in
2481    set,)
2482      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484      ac_cache_corrupted=: ;;
2485    ,set)
2486      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488      ac_cache_corrupted=: ;;
2489    ,);;
2490    *)
2491      if test "x$ac_old_val" != "x$ac_new_val"; then
2492	# differences in whitespace do not lead to failure.
2493	ac_old_val_w=`echo x $ac_old_val`
2494	ac_new_val_w=`echo x $ac_new_val`
2495	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498	  ac_cache_corrupted=:
2499	else
2500	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502	  eval $ac_var=\$ac_old_val
2503	fi
2504	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2505$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2506	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2507$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2508      fi;;
2509  esac
2510  # Pass precious variables to config.status.
2511  if test "$ac_new_set" = set; then
2512    case $ac_new_val in
2513    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514    *) ac_arg=$ac_var=$ac_new_val ;;
2515    esac
2516    case " $ac_configure_args " in
2517      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2518      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519    esac
2520  fi
2521done
2522if $ac_cache_corrupted; then
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528fi
2529## -------------------- ##
2530## Main body of script. ##
2531## -------------------- ##
2532
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543ac_config_headers="$ac_config_headers config.h"
2544
2545
2546# -------
2547# Options
2548# -------
2549
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2551$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2552 # Check whether --enable-version-specific-runtime-libs was given.
2553if test "${enable_version_specific_runtime_libs+set}" = set; then :
2554  enableval=$enable_version_specific_runtime_libs;
2555      case "$enableval" in
2556       yes|no) ;;
2557       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2558                          esac
2559
2560else
2561  enable_version_specific_runtime_libs=no
2562fi
2563
2564
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2566$as_echo "$enable_version_specific_runtime_libs" >&6; }
2567
2568# We would like our source tree to be readonly. However when releases or
2569# pre-releases are generated, the flex/bison generated files as well as the
2570# various formats of manuals need to be included along with the rest of the
2571# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2572# just that.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2574$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2575 # Check whether --enable-generated-files-in-srcdir was given.
2576if test "${enable_generated_files_in_srcdir+set}" = set; then :
2577  enableval=$enable_generated_files_in_srcdir;
2578      case "$enableval" in
2579       yes|no) ;;
2580       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2581                          esac
2582
2583else
2584  enable_generated_files_in_srcdir=no
2585fi
2586
2587
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2589$as_echo "$enable_generated_files_in_srcdir" >&6; }
2590 if test "$enable_generated_files_in_srcdir" = yes; then
2591  GENINSRC_TRUE=
2592  GENINSRC_FALSE='#'
2593else
2594  GENINSRC_TRUE='#'
2595  GENINSRC_FALSE=
2596fi
2597
2598
2599
2600# -------
2601# -------
2602
2603# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2604#
2605# You will slowly go insane if you do not grok the following fact:  when
2606# building this library, the top-level /target/ becomes the library's /host/.
2607#
2608# configure then causes --target to default to --host, exactly like any
2609# other package using autoconf.  Therefore, 'target' and 'host' will
2610# always be the same.  This makes sense both for native and cross compilers
2611# just think about it for a little while.  :-)
2612#
2613# Also, if this library is being configured as part of a cross compiler, the
2614# top-level configure script will pass the "real" host as $with_cross_host.
2615#
2616# Do not delete or change the following two lines.  For why, see
2617# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2618ac_aux_dir=
2619for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620  for ac_t in install-sh install.sh shtool; do
2621    if test -f "$ac_dir/$ac_t"; then
2622      ac_aux_dir=$ac_dir
2623      ac_install_sh="$ac_aux_dir/$ac_t -c"
2624      break 2
2625    fi
2626  done
2627done
2628if test -z "$ac_aux_dir"; then
2629  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2630fi
2631
2632# These three variables are undocumented and unsupported,
2633# and are intended to be withdrawn in a future Autoconf release.
2634# They can cause serious problems if a builder's source tree is in a directory
2635# whose full name contains unusual characters.
2636ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2637ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2638ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2639
2640
2641# Make sure we can run config.sub.
2642$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2646$as_echo_n "checking build system type... " >&6; }
2647if test "${ac_cv_build+set}" = set; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  ac_build_alias=$build_alias
2651test "x$ac_build_alias" = x &&
2652  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653test "x$ac_build_alias" = x &&
2654  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2655ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2660$as_echo "$ac_cv_build" >&6; }
2661case $ac_cv_build in
2662*-*-*) ;;
2663*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2664esac
2665build=$ac_cv_build
2666ac_save_IFS=$IFS; IFS='-'
2667set x $ac_cv_build
2668shift
2669build_cpu=$1
2670build_vendor=$2
2671shift; shift
2672# Remember, the first character of IFS is used to create $*,
2673# except with old shells:
2674build_os=$*
2675IFS=$ac_save_IFS
2676case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2677
2678
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2680$as_echo_n "checking host system type... " >&6; }
2681if test "${ac_cv_host+set}" = set; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test "x$host_alias" = x; then
2685  ac_cv_host=$ac_cv_build
2686else
2687  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2689fi
2690
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2693$as_echo "$ac_cv_host" >&6; }
2694case $ac_cv_host in
2695*-*-*) ;;
2696*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2697esac
2698host=$ac_cv_host
2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_host
2701shift
2702host_cpu=$1
2703host_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707host_os=$*
2708IFS=$ac_save_IFS
2709case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2710
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2713$as_echo_n "checking target system type... " >&6; }
2714if test "${ac_cv_target+set}" = set; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  if test "x$target_alias" = x; then
2718  ac_cv_target=$ac_cv_host
2719else
2720  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2721    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2722fi
2723
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2726$as_echo "$ac_cv_target" >&6; }
2727case $ac_cv_target in
2728*-*-*) ;;
2729*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2730esac
2731target=$ac_cv_target
2732ac_save_IFS=$IFS; IFS='-'
2733set x $ac_cv_target
2734shift
2735target_cpu=$1
2736target_vendor=$2
2737shift; shift
2738# Remember, the first character of IFS is used to create $*,
2739# except with old shells:
2740target_os=$*
2741IFS=$ac_save_IFS
2742case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2743
2744
2745# The aliases save the names the user supplied, while $host etc.
2746# will get canonicalized.
2747test -n "$target_alias" &&
2748  test "$program_prefix$program_suffix$program_transform_name" = \
2749    NONENONEs,x,x, &&
2750  program_prefix=${target_alias}-
2751
2752target_alias=${target_alias-$host_alias}
2753
2754# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2755# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2756#  1.9.0:  minimum required version
2757#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2758#              of other PACKAGE_* variables will, however, and there's nothing
2759#              we can do about that; they come from AC_INIT).
2760#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2761#            file in the top srcdir, etc, etc), so stop complaining.
2762#  no-dist:  we don't want 'dist' and related rules.
2763#  -Wall:  turns on all automake warnings...
2764#  -Wno-portability:  ...except this one, since GNU make is required.
2765#  -Wno-override: ... and this one, since we do want this in testsuite.
2766am__api_version='1.11'
2767
2768# Find a good install program.  We prefer a C program (faster),
2769# so one script is as good as another.  But avoid the broken or
2770# incompatible versions:
2771# SysV /etc/install, /usr/sbin/install
2772# SunOS /usr/etc/install
2773# IRIX /sbin/install
2774# AIX /bin/install
2775# AmigaOS /C/install, which installs bootblocks on floppy discs
2776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779# OS/2's system install, which has a completely different semantic
2780# ./install, which can be erroneously created by make from ./install.sh.
2781# Reject install programs that cannot install multiple files.
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783$as_echo_n "checking for a BSD-compatible install... " >&6; }
2784if test -z "$INSTALL"; then
2785if test "${ac_cv_path_install+set}" = set; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793    # Account for people who put trailing slashes in PATH elements.
2794case $as_dir/ in #((
2795  ./ | .// | /[cC]/* | \
2796  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798  /usr/ucb/* ) ;;
2799  *)
2800    # OSF1 and SCO ODT 3.0 have their own names for install.
2801    # Don't use installbsd from OSF since it installs stuff as root
2802    # by default.
2803    for ac_prog in ginstall scoinst install; do
2804      for ac_exec_ext in '' $ac_executable_extensions; do
2805	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2806	  if test $ac_prog = install &&
2807	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808	    # AIX install.  It has an incompatible calling convention.
2809	    :
2810	  elif test $ac_prog = install &&
2811	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812	    # program-specific install script used by HP pwplus--don't use.
2813	    :
2814	  else
2815	    rm -rf conftest.one conftest.two conftest.dir
2816	    echo one > conftest.one
2817	    echo two > conftest.two
2818	    mkdir conftest.dir
2819	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820	      test -s conftest.one && test -s conftest.two &&
2821	      test -s conftest.dir/conftest.one &&
2822	      test -s conftest.dir/conftest.two
2823	    then
2824	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825	      break 3
2826	    fi
2827	  fi
2828	fi
2829      done
2830    done
2831    ;;
2832esac
2833
2834  done
2835IFS=$as_save_IFS
2836
2837rm -rf conftest.one conftest.two conftest.dir
2838
2839fi
2840  if test "${ac_cv_path_install+set}" = set; then
2841    INSTALL=$ac_cv_path_install
2842  else
2843    # As a last resort, use the slow shell script.  Don't cache a
2844    # value for INSTALL within a source directory, because that will
2845    # break other packages using the cache if that directory is
2846    # removed, or if the value is a relative name.
2847    INSTALL=$ac_install_sh
2848  fi
2849fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851$as_echo "$INSTALL" >&6; }
2852
2853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854# It thinks the first close brace ends the variable substitution.
2855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
2857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
2859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862$as_echo_n "checking whether build environment is sane... " >&6; }
2863# Just in case
2864sleep 1
2865echo timestamp > conftest.file
2866# Reject unsafe characters in $srcdir or the absolute working directory
2867# name.  Accept space and tab only in the latter.
2868am_lf='
2869'
2870case `pwd` in
2871  *[\\\"\#\$\&\'\`$am_lf]*)
2872    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2873esac
2874case $srcdir in
2875  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2876    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2877esac
2878
2879# Do `set' in a subshell so we don't clobber the current shell's
2880# arguments.  Must try -L first in case configure is actually a
2881# symlink; some systems play weird games with the mod time of symlinks
2882# (eg FreeBSD returns the mod time of the symlink's containing
2883# directory).
2884if (
2885   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886   if test "$*" = "X"; then
2887      # -L didn't work.
2888      set X `ls -t "$srcdir/configure" conftest.file`
2889   fi
2890   rm -f conftest.file
2891   if test "$*" != "X $srcdir/configure conftest.file" \
2892      && test "$*" != "X conftest.file $srcdir/configure"; then
2893
2894      # If neither matched, then we have a broken ls.  This can happen
2895      # if, for instance, CONFIG_SHELL is bash and it inherits a
2896      # broken ls alias from the environment.  This has actually
2897      # happened.  Such a system could not be considered "sane".
2898      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2899alias in your environment" "$LINENO" 5
2900   fi
2901
2902   test "$2" = conftest.file
2903   )
2904then
2905   # Ok.
2906   :
2907else
2908   as_fn_error "newly created file is older than distributed files!
2909Check your system clock" "$LINENO" 5
2910fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912$as_echo "yes" >&6; }
2913test "$program_prefix" != NONE &&
2914  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915# Use a double $ so make ignores it.
2916test "$program_suffix" != NONE &&
2917  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918# Double any \ or $.
2919# By default was `s,x,x', remove it if useless.
2920ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922
2923# expand $ac_aux_dir to an absolute path
2924am_aux_dir=`cd $ac_aux_dir && pwd`
2925
2926if test x"${MISSING+set}" != xset; then
2927  case $am_aux_dir in
2928  *\ * | *\	*)
2929    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930  *)
2931    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932  esac
2933fi
2934# Use eval to expand $SHELL
2935if eval "$MISSING --run true"; then
2936  am_missing_run="$MISSING --run "
2937else
2938  am_missing_run=
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2941fi
2942
2943if test x"${install_sh}" != xset; then
2944  case $am_aux_dir in
2945  *\ * | *\	*)
2946    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947  *)
2948    install_sh="\${SHELL} $am_aux_dir/install-sh"
2949  esac
2950fi
2951
2952# Installed binaries are usually stripped using `strip' when the user
2953# run `make install-strip'.  However `strip' might not be the right
2954# tool to use in cross-compilation environments, therefore Automake
2955# will honor the `STRIP' environment variable to overrule this program.
2956if test "$cross_compiling" != no; then
2957  if test -n "$ac_tool_prefix"; then
2958  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}strip; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if test "${ac_cv_prog_STRIP+set}" = set; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$STRIP"; then
2966  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985STRIP=$ac_cv_prog_STRIP
2986if test -n "$STRIP"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988$as_echo "$STRIP" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995fi
2996if test -z "$ac_cv_prog_STRIP"; then
2997  ac_ct_STRIP=$STRIP
2998  # Extract the first word of "strip", so it can be a program name with args.
2999set dummy strip; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_STRIP"; then
3006  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015    ac_cv_prog_ac_ct_STRIP="strip"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026if test -n "$ac_ct_STRIP"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028$as_echo "$ac_ct_STRIP" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034  if test "x$ac_ct_STRIP" = x; then
3035    STRIP=":"
3036  else
3037    case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043    STRIP=$ac_ct_STRIP
3044  fi
3045else
3046  STRIP="$ac_cv_prog_STRIP"
3047fi
3048
3049fi
3050INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054if test -z "$MKDIR_P"; then
3055  if test "${ac_cv_path_mkdir+set}" = set; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_prog in mkdir gmkdir; do
3064	 for ac_exec_ext in '' $ac_executable_extensions; do
3065	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3066	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067	     'mkdir (GNU coreutils) '* | \
3068	     'mkdir (coreutils) '* | \
3069	     'mkdir (fileutils) '4.1*)
3070	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071	       break 3;;
3072	   esac
3073	 done
3074       done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079
3080  if test "${ac_cv_path_mkdir+set}" = set; then
3081    MKDIR_P="$ac_cv_path_mkdir -p"
3082  else
3083    # As a last resort, use the slow shell script.  Don't cache a
3084    # value for MKDIR_P within a source directory, because that will
3085    # break other packages using the cache if that directory is
3086    # removed, or if the value is a relative name.
3087    test -d ./--version && rmdir ./--version
3088    MKDIR_P="$ac_install_sh -d"
3089  fi
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092$as_echo "$MKDIR_P" >&6; }
3093
3094mkdir_p="$MKDIR_P"
3095case $mkdir_p in
3096  [\\/$]* | ?:[\\/]*) ;;
3097  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098esac
3099
3100for ac_prog in gawk mawk nawk awk
3101do
3102  # Extract the first word of "$ac_prog", so it can be a program name with args.
3103set dummy $ac_prog; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if test "${ac_cv_prog_AWK+set}" = set; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  if test -n "$AWK"; then
3110  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119    ac_cv_prog_AWK="$ac_prog"
3120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121    break 2
3122  fi
3123done
3124  done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
3129AWK=$ac_cv_prog_AWK
3130if test -n "$AWK"; then
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132$as_echo "$AWK" >&6; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
3139  test -n "$AWK" && break
3140done
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144set x ${MAKE-make}
3145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149  cat >conftest.make <<\_ACEOF
3150SHELL = /bin/sh
3151all:
3152	@echo '@@@%%%=$(MAKE)=@@@%%%'
3153_ACEOF
3154# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3155case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156  *@@@%%%=?*=@@@%%%*)
3157    eval ac_cv_prog_make_${ac_make}_set=yes;;
3158  *)
3159    eval ac_cv_prog_make_${ac_make}_set=no;;
3160esac
3161rm -f conftest.make
3162fi
3163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
3166  SET_MAKE=
3167else
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170  SET_MAKE="MAKE=${MAKE-make}"
3171fi
3172
3173rm -rf .tst 2>/dev/null
3174mkdir .tst 2>/dev/null
3175if test -d .tst; then
3176  am__leading_dot=.
3177else
3178  am__leading_dot=_
3179fi
3180rmdir .tst 2>/dev/null
3181
3182if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184  # is not polluted with repeated "-I."
3185  am__isrc=' -I$(srcdir)'
3186  # test to see if srcdir already configured
3187  if test -f $srcdir/config.status; then
3188    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189  fi
3190fi
3191
3192# test whether we have cygpath
3193if test -z "$CYGPATH_W"; then
3194  if (cygpath --version) >/dev/null 2>/dev/null; then
3195    CYGPATH_W='cygpath -w'
3196  else
3197    CYGPATH_W=echo
3198  fi
3199fi
3200
3201
3202# Define the identity of the package.
3203 PACKAGE='libgomp'
3204 VERSION='1.0'
3205
3206
3207cat >>confdefs.h <<_ACEOF
3208#define PACKAGE "$PACKAGE"
3209_ACEOF
3210
3211
3212cat >>confdefs.h <<_ACEOF
3213#define VERSION "$VERSION"
3214_ACEOF
3215
3216# Some tools Automake needs.
3217
3218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
3220
3221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
3223
3224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
3226
3227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
3229
3230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
3232# We need awk for the "check" target.  The system "awk" is bad on
3233# some platforms.
3234# Always define AMTAR for backward compatibility.
3235
3236AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
3238am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
3240
3241
3242
3243
3244# Default to --enable-multilib
3245# Check whether --enable-multilib was given.
3246if test "${enable_multilib+set}" = set; then :
3247  enableval=$enable_multilib; case "$enableval" in
3248  yes) multilib=yes ;;
3249  no)  multilib=no ;;
3250  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3251 esac
3252else
3253  multilib=yes
3254fi
3255
3256
3257# We may get other options which we leave undocumented:
3258# --with-target-subdir, --with-multisrctop, --with-multisubdir
3259# See config-ml.in if you want the gory details.
3260
3261if test "$srcdir" = "."; then
3262  if test "$with_target_subdir" != "."; then
3263    multi_basedir="$srcdir/$with_multisrctop../.."
3264  else
3265    multi_basedir="$srcdir/$with_multisrctop.."
3266  fi
3267else
3268  multi_basedir="$srcdir/.."
3269fi
3270
3271
3272# Even if the default multilib is not a cross compilation,
3273# it may be that some of the other multilibs are.
3274if test $cross_compiling = no && test $multilib = yes \
3275   && test "x${with_multisubdir}" != x ; then
3276   cross_compiling=maybe
3277fi
3278
3279ac_config_commands="$ac_config_commands default-1"
3280
3281
3282# Calculate toolexeclibdir
3283# Also toolexecdir, though it's only used in toolexeclibdir
3284case ${enable_version_specific_runtime_libs} in
3285  yes)
3286    # Need the gcc compiler version to know where to install libraries
3287    # and header files if --enable-version-specific-runtime-libs option
3288    # is selected.
3289    toolexecdir='$(libdir)/gcc/$(target_alias)'
3290    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3291    ;;
3292  no)
3293    if test -n "$with_cross_host" &&
3294       test x"$with_cross_host" != x"no"; then
3295      # Install a library built with a cross compiler in tooldir, not libdir.
3296      toolexecdir='$(exec_prefix)/$(target_alias)'
3297      toolexeclibdir='$(toolexecdir)/lib'
3298    else
3299      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3300      toolexeclibdir='$(libdir)'
3301    fi
3302    multi_os_directory=`$CC -print-multi-os-directory`
3303    case $multi_os_directory in
3304      .) ;; # Avoid trailing /.
3305      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3306    esac
3307    ;;
3308esac
3309
3310
3311
3312# Check the compiler.
3313# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3314# We must force CC to /not/ be precious variables; otherwise
3315# the wrong, non-multilib-adjusted value will be used in multilibs.
3316# As a side effect, we have to subst CFLAGS ourselves.
3317
3318
3319
3320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325if test -n "$ac_tool_prefix"; then
3326  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3327set dummy ${ac_tool_prefix}gcc; ac_word=$2
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if test "${ac_cv_prog_CC+set}" = set; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if test -n "$CC"; then
3334  ac_cv_prog_CC="$CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341    for ac_exec_ext in '' $ac_executable_extensions; do
3342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348  done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363fi
3364if test -z "$ac_cv_prog_CC"; then
3365  ac_ct_CC=$CC
3366  # Extract the first word of "gcc", so it can be a program name with args.
3367set dummy gcc; ac_word=$2
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; }
3370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3371  $as_echo_n "(cached) " >&6
3372else
3373  if test -n "$ac_ct_CC"; then
3374  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375else
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  test -z "$as_dir" && as_dir=.
3381    for ac_exec_ext in '' $ac_executable_extensions; do
3382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383    ac_cv_prog_ac_ct_CC="gcc"
3384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388  done
3389IFS=$as_save_IFS
3390
3391fi
3392fi
3393ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394if test -n "$ac_ct_CC"; then
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396$as_echo "$ac_ct_CC" >&6; }
3397else
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399$as_echo "no" >&6; }
3400fi
3401
3402  if test "x$ac_ct_CC" = x; then
3403    CC=""
3404  else
3405    case $cross_compiling:$ac_tool_warned in
3406yes:)
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409ac_tool_warned=yes ;;
3410esac
3411    CC=$ac_ct_CC
3412  fi
3413else
3414  CC="$ac_cv_prog_CC"
3415fi
3416
3417if test -z "$CC"; then
3418          if test -n "$ac_tool_prefix"; then
3419    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3420set dummy ${ac_tool_prefix}cc; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if test "${ac_cv_prog_CC+set}" = set; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  if test -n "$CC"; then
3427  ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432  IFS=$as_save_IFS
3433  test -z "$as_dir" && as_dir=.
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436    ac_cv_prog_CC="${ac_tool_prefix}cc"
3437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456  fi
3457fi
3458if test -z "$CC"; then
3459  # Extract the first word of "cc", so it can be a program name with args.
3460set dummy cc; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
3463if test "${ac_cv_prog_CC+set}" = set; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  if test -n "$CC"; then
3467  ac_cv_prog_CC="$CC" # Let the user override the test.
3468else
3469  ac_prog_rejected=no
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475    for ac_exec_ext in '' $ac_executable_extensions; do
3476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3478       ac_prog_rejected=yes
3479       continue
3480     fi
3481    ac_cv_prog_CC="cc"
3482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489if test $ac_prog_rejected = yes; then
3490  # We found a bogon in the path, so make sure we never use it.
3491  set dummy $ac_cv_prog_CC
3492  shift
3493  if test $# != 0; then
3494    # We chose a different compiler from the bogus one.
3495    # However, it has the same basename, so the bogon will be chosen
3496    # first if we set CC to just the basename; use the full file name.
3497    shift
3498    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3499  fi
3500fi
3501fi
3502fi
3503CC=$ac_cv_prog_CC
3504if test -n "$CC"; then
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506$as_echo "$CC" >&6; }
3507else
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510fi
3511
3512
3513fi
3514if test -z "$CC"; then
3515  if test -n "$ac_tool_prefix"; then
3516  for ac_prog in cl.exe
3517  do
3518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if test "${ac_cv_prog_CC+set}" = set; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  if test -n "$CC"; then
3526  ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533    for ac_exec_ext in '' $ac_executable_extensions; do
3534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540  done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545CC=$ac_cv_prog_CC
3546if test -n "$CC"; then
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548$as_echo "$CC" >&6; }
3549else
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
3552fi
3553
3554
3555    test -n "$CC" && break
3556  done
3557fi
3558if test -z "$CC"; then
3559  ac_ct_CC=$CC
3560  for ac_prog in cl.exe
3561do
3562  # Extract the first word of "$ac_prog", so it can be a program name with args.
3563set dummy $ac_prog; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  if test -n "$ac_ct_CC"; then
3570  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  test -z "$as_dir" && as_dir=.
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579    ac_cv_prog_ac_ct_CC="$ac_prog"
3580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581    break 2
3582  fi
3583done
3584  done
3585IFS=$as_save_IFS
3586
3587fi
3588fi
3589ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590if test -n "$ac_ct_CC"; then
3591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592$as_echo "$ac_ct_CC" >&6; }
3593else
3594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596fi
3597
3598
3599  test -n "$ac_ct_CC" && break
3600done
3601
3602  if test "x$ac_ct_CC" = x; then
3603    CC=""
3604  else
3605    case $cross_compiling:$ac_tool_warned in
3606yes:)
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609ac_tool_warned=yes ;;
3610esac
3611    CC=$ac_ct_CC
3612  fi
3613fi
3614
3615fi
3616
3617
3618test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620as_fn_error "no acceptable C compiler found in \$PATH
3621See \`config.log' for more details." "$LINENO" 5; }
3622
3623# Provide some information about the compiler.
3624$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3625set X $ac_compile
3626ac_compiler=$2
3627for ac_option in --version -v -V -qversion; do
3628  { { ac_try="$ac_compiler $ac_option >&5"
3629case "(($ac_try" in
3630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631  *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634$as_echo "$ac_try_echo"; } >&5
3635  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3636  ac_status=$?
3637  if test -s conftest.err; then
3638    sed '10a\
3639... rest of stderr output deleted ...
3640         10q' conftest.err >conftest.er1
3641    cat conftest.er1 >&5
3642    rm -f conftest.er1 conftest.err
3643  fi
3644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645  test $ac_status = 0; }
3646done
3647
3648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659ac_clean_files_save=$ac_clean_files
3660ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3661# Try to create an executable without -o first, disregard a.out.
3662# It will help us diagnose broken compilers, and finding out an intuition
3663# of exeext.
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3665$as_echo_n "checking for C compiler default output file name... " >&6; }
3666ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667
3668# The possible output files:
3669ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3670
3671ac_rmfiles=
3672for ac_file in $ac_files
3673do
3674  case $ac_file in
3675    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3677  esac
3678done
3679rm -f $ac_rmfiles
3680
3681if { { ac_try="$ac_link_default"
3682case "(($ac_try" in
3683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684  *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687$as_echo "$ac_try_echo"; } >&5
3688  (eval "$ac_link_default") 2>&5
3689  ac_status=$?
3690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691  test $ac_status = 0; }; then :
3692  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3695# so that the user can short-circuit this test for compilers unknown to
3696# Autoconf.
3697for ac_file in $ac_files ''
3698do
3699  test -f "$ac_file" || continue
3700  case $ac_file in
3701    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3702	;;
3703    [ab].out )
3704	# We found the default executable, but exeext='' is most
3705	# certainly right.
3706	break;;
3707    *.* )
3708	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709	then :; else
3710	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711	fi
3712	# We set ac_cv_exeext here because the later test for it is not
3713	# safe: cross compilers may not add the suffix if given an `-o'
3714	# argument, so we may need to know it at that point already.
3715	# Even if this section looks crufty: it has the advantage of
3716	# actually working.
3717	break;;
3718    * )
3719	break;;
3720  esac
3721done
3722test "$ac_cv_exeext" = no && ac_cv_exeext=
3723
3724else
3725  ac_file=''
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3728$as_echo "$ac_file" >&6; }
3729if test -z "$ac_file"; then :
3730  $as_echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735{ as_fn_set_status 77
3736as_fn_error "C compiler cannot create executables
3737See \`config.log' for more details." "$LINENO" 5; }; }
3738fi
3739ac_exeext=$ac_cv_exeext
3740
3741# Check that the compiler produces executables we can run.  If not, either
3742# the compiler is broken, or we cross compile.
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3744$as_echo_n "checking whether the C compiler works... " >&6; }
3745# If not cross compiling, check that we can run a simple program.
3746if test "$cross_compiling" != yes; then
3747  if { ac_try='./$ac_file'
3748  { { case "(($ac_try" in
3749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750  *) ac_try_echo=$ac_try;;
3751esac
3752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753$as_echo "$ac_try_echo"; } >&5
3754  (eval "$ac_try") 2>&5
3755  ac_status=$?
3756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757  test $ac_status = 0; }; }; then
3758    cross_compiling=no
3759  else
3760    if test "$cross_compiling" = maybe; then
3761	cross_compiling=yes
3762    else
3763	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error "cannot run C compiled programs.
3766If you meant to cross compile, use \`--host'.
3767See \`config.log' for more details." "$LINENO" 5; }
3768    fi
3769  fi
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
3773
3774rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3775ac_clean_files=$ac_clean_files_save
3776# Check that the compiler produces executables we can run.  If not, either
3777# the compiler is broken, or we cross compile.
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3779$as_echo_n "checking whether we are cross compiling... " >&6; }
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781$as_echo "$cross_compiling" >&6; }
3782
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3784$as_echo_n "checking for suffix of executables... " >&6; }
3785if { { ac_try="$ac_link"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_link") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }; then :
3796  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3798# work properly (i.e., refer to `conftest.exe'), while it won't with
3799# `rm'.
3800for ac_file in conftest.exe conftest conftest.*; do
3801  test -f "$ac_file" || continue
3802  case $ac_file in
3803    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805	  break;;
3806    * ) break;;
3807  esac
3808done
3809else
3810  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812as_fn_error "cannot compute suffix of executables: cannot compile and link
3813See \`config.log' for more details." "$LINENO" 5; }
3814fi
3815rm -f conftest$ac_cv_exeext
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817$as_echo "$ac_cv_exeext" >&6; }
3818
3819rm -f conftest.$ac_ext
3820EXEEXT=$ac_cv_exeext
3821ac_exeext=$EXEEXT
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823$as_echo_n "checking for suffix of object files... " >&6; }
3824if test "${ac_cv_objext+set}" = set; then :
3825  $as_echo_n "(cached) " >&6
3826else
3827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829
3830int
3831main ()
3832{
3833
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838rm -f conftest.o conftest.obj
3839if { { ac_try="$ac_compile"
3840case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845$as_echo "$ac_try_echo"; } >&5
3846  (eval "$ac_compile") 2>&5
3847  ac_status=$?
3848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }; then :
3850  for ac_file in conftest.o conftest.obj conftest.*; do
3851  test -f "$ac_file" || continue;
3852  case $ac_file in
3853    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3854    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855       break;;
3856  esac
3857done
3858else
3859  $as_echo "$as_me: failed program was:" >&5
3860sed 's/^/| /' conftest.$ac_ext >&5
3861
3862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864as_fn_error "cannot compute suffix of object files: cannot compile
3865See \`config.log' for more details." "$LINENO" 5; }
3866fi
3867rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870$as_echo "$ac_cv_objext" >&6; }
3871OBJEXT=$ac_cv_objext
3872ac_objext=$OBJEXT
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3876  $as_echo_n "(cached) " >&6
3877else
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884#ifndef __GNUC__
3885       choke me
3886#endif
3887
3888  ;
3889  return 0;
3890}
3891_ACEOF
3892if ac_fn_c_try_compile "$LINENO"; then :
3893  ac_compiler_gnu=yes
3894else
3895  ac_compiler_gnu=no
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903if test $ac_compiler_gnu = yes; then
3904  GCC=yes
3905else
3906  GCC=
3907fi
3908ac_test_CFLAGS=${CFLAGS+set}
3909ac_save_CFLAGS=$CFLAGS
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911$as_echo_n "checking whether $CC accepts -g... " >&6; }
3912if test "${ac_cv_prog_cc_g+set}" = set; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915  ac_save_c_werror_flag=$ac_c_werror_flag
3916   ac_c_werror_flag=yes
3917   ac_cv_prog_cc_g=no
3918   CFLAGS="-g"
3919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930if ac_fn_c_try_compile "$LINENO"; then :
3931  ac_cv_prog_cc_g=yes
3932else
3933  CFLAGS=""
3934      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936
3937int
3938main ()
3939{
3940
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946
3947else
3948  ac_c_werror_flag=$ac_save_c_werror_flag
3949	 CFLAGS="-g"
3950	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h.  */
3952
3953int
3954main ()
3955{
3956
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961if ac_fn_c_try_compile "$LINENO"; then :
3962  ac_cv_prog_cc_g=yes
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967fi
3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969   ac_c_werror_flag=$ac_save_c_werror_flag
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972$as_echo "$ac_cv_prog_cc_g" >&6; }
3973if test "$ac_test_CFLAGS" = set; then
3974  CFLAGS=$ac_save_CFLAGS
3975elif test $ac_cv_prog_cc_g = yes; then
3976  if test "$GCC" = yes; then
3977    CFLAGS="-g -O2"
3978  else
3979    CFLAGS="-g"
3980  fi
3981else
3982  if test "$GCC" = yes; then
3983    CFLAGS="-O2"
3984  else
3985    CFLAGS=
3986  fi
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990if test "${ac_cv_prog_cc_c89+set}" = set; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  ac_cv_prog_cc_c89=no
3994ac_save_CC=$CC
3995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h.  */
3997#include <stdarg.h>
3998#include <stdio.h>
3999#include <sys/types.h>
4000#include <sys/stat.h>
4001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4002struct buf { int x; };
4003FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004static char *e (p, i)
4005     char **p;
4006     int i;
4007{
4008  return p[i];
4009}
4010static char *f (char * (*g) (char **, int), char **p, ...)
4011{
4012  char *s;
4013  va_list v;
4014  va_start (v,p);
4015  s = g (p, va_arg (v,int));
4016  va_end (v);
4017  return s;
4018}
4019
4020/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4021   function prototypes and stuff, but not '\xHH' hex character constants.
4022   These don't provoke an error unfortunately, instead are silently treated
4023   as 'x'.  The following induces an error, until -std is added to get
4024   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4025   array size at least.  It's necessary to write '\x00'==0 to get something
4026   that's true only with -std.  */
4027int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
4029/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030   inside strings and character constants.  */
4031#define FOO(x) 'x'
4032int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
4034int test (int i, double x);
4035struct s1 {int (*f) (int a);};
4036struct s2 {int (*f) (double a);};
4037int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038int argc;
4039char **argv;
4040int
4041main ()
4042{
4043return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050do
4051  CC="$ac_save_CC $ac_arg"
4052  if ac_fn_c_try_compile "$LINENO"; then :
4053  ac_cv_prog_cc_c89=$ac_arg
4054fi
4055rm -f core conftest.err conftest.$ac_objext
4056  test "x$ac_cv_prog_cc_c89" != "xno" && break
4057done
4058rm -f conftest.$ac_ext
4059CC=$ac_save_CC
4060
4061fi
4062# AC_CACHE_VAL
4063case "x$ac_cv_prog_cc_c89" in
4064  x)
4065    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066$as_echo "none needed" >&6; } ;;
4067  xno)
4068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069$as_echo "unsupported" >&6; } ;;
4070  *)
4071    CC="$CC $ac_cv_prog_cc_c89"
4072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074esac
4075if test "x$ac_cv_prog_cc_c89" != xno; then :
4076
4077fi
4078
4079ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084DEPDIR="${am__leading_dot}deps"
4085
4086ac_config_commands="$ac_config_commands depfiles"
4087
4088
4089am_make=${MAKE-make}
4090cat > confinc << 'END'
4091am__doit:
4092	@echo this is the am__doit target
4093.PHONY: am__doit
4094END
4095# If we don't find an include directive, just comment out the code.
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4097$as_echo_n "checking for style of include used by $am_make... " >&6; }
4098am__include="#"
4099am__quote=
4100_am_result=none
4101# First try GNU make style include.
4102echo "include confinc" > confmf
4103# Ignore all kinds of additional output from `make'.
4104case `$am_make -s -f confmf 2> /dev/null` in #(
4105*the\ am__doit\ target*)
4106  am__include=include
4107  am__quote=
4108  _am_result=GNU
4109  ;;
4110esac
4111# Now try BSD make style include.
4112if test "$am__include" = "#"; then
4113   echo '.include "confinc"' > confmf
4114   case `$am_make -s -f confmf 2> /dev/null` in #(
4115   *the\ am__doit\ target*)
4116     am__include=.include
4117     am__quote="\""
4118     _am_result=BSD
4119     ;;
4120   esac
4121fi
4122
4123
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4125$as_echo "$_am_result" >&6; }
4126rm -f confinc confmf
4127
4128# Check whether --enable-dependency-tracking was given.
4129if test "${enable_dependency_tracking+set}" = set; then :
4130  enableval=$enable_dependency_tracking;
4131fi
4132
4133if test "x$enable_dependency_tracking" != xno; then
4134  am_depcomp="$ac_aux_dir/depcomp"
4135  AMDEPBACKSLASH='\'
4136fi
4137 if test "x$enable_dependency_tracking" != xno; then
4138  AMDEP_TRUE=
4139  AMDEP_FALSE='#'
4140else
4141  AMDEP_TRUE='#'
4142  AMDEP_FALSE=
4143fi
4144
4145
4146
4147depcc="$CC"   am_compiler_list=
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4150$as_echo_n "checking dependency style of $depcc... " >&6; }
4151if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155  # We make a subdir and do the tests there.  Otherwise we can end up
4156  # making bogus files that we don't know about and never remove.  For
4157  # instance it was reported that on HP-UX the gcc test will end up
4158  # making a dummy file named `D' -- because `-MD' means `put the output
4159  # in D'.
4160  mkdir conftest.dir
4161  # Copy depcomp to subdir because otherwise we won't find it if we're
4162  # using a relative directory.
4163  cp "$am_depcomp" conftest.dir
4164  cd conftest.dir
4165  # We will build objects and dependencies in a subdirectory because
4166  # it helps to detect inapplicable dependency modes.  For instance
4167  # both Tru64's cc and ICC support -MD to output dependencies as a
4168  # side effect of compilation, but ICC will put the dependencies in
4169  # the current directory while Tru64 will put them in the object
4170  # directory.
4171  mkdir sub
4172
4173  am_cv_CC_dependencies_compiler_type=none
4174  if test "$am_compiler_list" = ""; then
4175     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176  fi
4177  am__universal=false
4178  case " $depcc " in #(
4179     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4180     esac
4181
4182  for depmode in $am_compiler_list; do
4183    # Setup a source with many dependencies, because some compilers
4184    # like to wrap large dependency lists on column 80 (with \), and
4185    # we should not choose a depcomp mode which is confused by this.
4186    #
4187    # We need to recreate these files for each test, as the compiler may
4188    # overwrite some of them when testing with obscure command lines.
4189    # This happens at least with the AIX C compiler.
4190    : > sub/conftest.c
4191    for i in 1 2 3 4 5 6; do
4192      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194      # Solaris 8's {/usr,}/bin/sh.
4195      touch sub/conftst$i.h
4196    done
4197    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
4199    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4200    # mode.  It turns out that the SunPro C++ compiler does not properly
4201    # handle `-M -o', and we need to detect this.  Also, some Intel
4202    # versions had trouble with output in subdirs
4203    am__obj=sub/conftest.${OBJEXT-o}
4204    am__minus_obj="-o $am__obj"
4205    case $depmode in
4206    gcc)
4207      # This depmode causes a compiler race in universal mode.
4208      test "$am__universal" = false || continue
4209      ;;
4210    nosideeffect)
4211      # after this tag, mechanisms are not by side-effect, so they'll
4212      # only be used when explicitly requested
4213      if test "x$enable_dependency_tracking" = xyes; then
4214	continue
4215      else
4216	break
4217      fi
4218      ;;
4219    msvisualcpp | msvcmsys)
4220      # This compiler won't grok `-c -o', but also, the minuso test has
4221      # not run yet.  These depmodes are late enough in the game, and
4222      # so weak that their functioning should not be impacted.
4223      am__obj=conftest.${OBJEXT-o}
4224      am__minus_obj=
4225      ;;
4226    none) break ;;
4227    esac
4228    if depmode=$depmode \
4229       source=sub/conftest.c object=$am__obj \
4230       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4231       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4232         >/dev/null 2>conftest.err &&
4233       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4234       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4235       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4236       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4237      # icc doesn't choke on unknown options, it will just issue warnings
4238      # or remarks (even with -Werror).  So we grep stderr for any message
4239      # that says an option was ignored or not supported.
4240      # When given -MP, icc 7.0 and 7.1 complain thusly:
4241      #   icc: Command line warning: ignoring option '-M'; no argument required
4242      # The diagnosis changed in icc 8.0:
4243      #   icc: Command line remark: option '-MP' not supported
4244      if (grep 'ignoring option' conftest.err ||
4245          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4246        am_cv_CC_dependencies_compiler_type=$depmode
4247        break
4248      fi
4249    fi
4250  done
4251
4252  cd ..
4253  rm -rf conftest.dir
4254else
4255  am_cv_CC_dependencies_compiler_type=none
4256fi
4257
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4260$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4261CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262
4263 if
4264  test "x$enable_dependency_tracking" != xno \
4265  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4266  am__fastdepCC_TRUE=
4267  am__fastdepCC_FALSE='#'
4268else
4269  am__fastdepCC_TRUE='#'
4270  am__fastdepCC_FALSE=
4271fi
4272
4273
4274
4275
4276
4277
4278# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4279# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4280# in both places for now and restore CFLAGS at the end of config.
4281save_CFLAGS="$CFLAGS"
4282
4283# Add -Wall -Werror if we are using GCC.
4284if test "x$GCC" = "xyes"; then
4285  XCFLAGS="$XCFLAGS -Wall -Werror"
4286fi
4287
4288# Find other programs we need.
4289if test -n "$ac_tool_prefix"; then
4290  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4291set dummy ${ac_tool_prefix}ar; ac_word=$2
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293$as_echo_n "checking for $ac_word... " >&6; }
4294if test "${ac_cv_prog_AR+set}" = set; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  if test -n "$AR"; then
4298  ac_cv_prog_AR="$AR" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  test -z "$as_dir" && as_dir=.
4305    for ac_exec_ext in '' $ac_executable_extensions; do
4306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307    ac_cv_prog_AR="${ac_tool_prefix}ar"
4308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309    break 2
4310  fi
4311done
4312  done
4313IFS=$as_save_IFS
4314
4315fi
4316fi
4317AR=$ac_cv_prog_AR
4318if test -n "$AR"; then
4319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4320$as_echo "$AR" >&6; }
4321else
4322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
4324fi
4325
4326
4327fi
4328if test -z "$ac_cv_prog_AR"; then
4329  ac_ct_AR=$AR
4330  # Extract the first word of "ar", so it can be a program name with args.
4331set dummy ar; ac_word=$2
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
4334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  if test -n "$ac_ct_AR"; then
4338  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_exec_ext in '' $ac_executable_extensions; do
4346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347    ac_cv_prog_ac_ct_AR="ar"
4348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349    break 2
4350  fi
4351done
4352  done
4353IFS=$as_save_IFS
4354
4355fi
4356fi
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360$as_echo "$ac_ct_AR" >&6; }
4361else
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
4364fi
4365
4366  if test "x$ac_ct_AR" = x; then
4367    AR=""
4368  else
4369    case $cross_compiling:$ac_tool_warned in
4370yes:)
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373ac_tool_warned=yes ;;
4374esac
4375    AR=$ac_ct_AR
4376  fi
4377else
4378  AR="$ac_cv_prog_AR"
4379fi
4380
4381if test -n "$ac_tool_prefix"; then
4382  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -n "$RANLIB"; then
4390  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397    for ac_exec_ext in '' $ac_executable_extensions; do
4398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404  done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409RANLIB=$ac_cv_prog_RANLIB
4410if test -n "$RANLIB"; then
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412$as_echo "$RANLIB" >&6; }
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419fi
4420if test -z "$ac_cv_prog_RANLIB"; then
4421  ac_ct_RANLIB=$RANLIB
4422  # Extract the first word of "ranlib", so it can be a program name with args.
4423set dummy ranlib; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  if test -n "$ac_ct_RANLIB"; then
4430  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439    ac_cv_prog_ac_ct_RANLIB="ranlib"
4440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444  done
4445IFS=$as_save_IFS
4446
4447fi
4448fi
4449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450if test -n "$ac_ct_RANLIB"; then
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452$as_echo "$ac_ct_RANLIB" >&6; }
4453else
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
4456fi
4457
4458  if test "x$ac_ct_RANLIB" = x; then
4459    RANLIB="ranlib-not-found-in-path-error"
4460  else
4461    case $cross_compiling:$ac_tool_warned in
4462yes:)
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465ac_tool_warned=yes ;;
4466esac
4467    RANLIB=$ac_ct_RANLIB
4468  fi
4469else
4470  RANLIB="$ac_cv_prog_RANLIB"
4471fi
4472
4473# Extract the first word of "perl", so it can be a program name with args.
4474set dummy perl; ac_word=$2
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476$as_echo_n "checking for $ac_word... " >&6; }
4477if test "${ac_cv_path_PERL+set}" = set; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  case $PERL in
4481  [\\/]* | ?:[\\/]*)
4482  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4483  ;;
4484  *)
4485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488  IFS=$as_save_IFS
4489  test -z "$as_dir" && as_dir=.
4490    for ac_exec_ext in '' $ac_executable_extensions; do
4491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494    break 2
4495  fi
4496done
4497  done
4498IFS=$as_save_IFS
4499
4500  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4501  ;;
4502esac
4503fi
4504PERL=$ac_cv_path_PERL
4505if test -n "$PERL"; then
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4507$as_echo "$PERL" >&6; }
4508else
4509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4515$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4516set x ${MAKE-make}
4517ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4518if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  cat >conftest.make <<\_ACEOF
4522SHELL = /bin/sh
4523all:
4524	@echo '@@@%%%=$(MAKE)=@@@%%%'
4525_ACEOF
4526# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4527case `${MAKE-make} -f conftest.make 2>/dev/null` in
4528  *@@@%%%=?*=@@@%%%*)
4529    eval ac_cv_prog_make_${ac_make}_set=yes;;
4530  *)
4531    eval ac_cv_prog_make_${ac_make}_set=no;;
4532esac
4533rm -f conftest.make
4534fi
4535if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
4538  SET_MAKE=
4539else
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542  SET_MAKE="MAKE=${MAKE-make}"
4543fi
4544
4545
4546
4547# See if makeinfo has been installed and is modern enough
4548# that we can use it.
4549
4550  # Extract the first word of "makeinfo", so it can be a program name with args.
4551set dummy makeinfo; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -n "$MAKEINFO"; then
4558  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567    ac_cv_prog_MAKEINFO="makeinfo"
4568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572  done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577MAKEINFO=$ac_cv_prog_MAKEINFO
4578if test -n "$MAKEINFO"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4580$as_echo "$MAKEINFO" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587  if test -n "$MAKEINFO"; then
4588    # Found it, now check the version.
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4590$as_echo_n "checking for modern makeinfo... " >&6; }
4591if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4595                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4596
4597                    case $ac_prog_version in
4598                      '')  gcc_cv_prog_makeinfo_modern=no;;
4599                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4600                      *)   gcc_cv_prog_makeinfo_modern=no;;
4601                    esac
4602
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4605$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4606  else
4607    gcc_cv_prog_makeinfo_modern=no
4608  fi
4609  if test $gcc_cv_prog_makeinfo_modern = no; then
4610    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4611  fi
4612
4613 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4614  BUILD_INFO_TRUE=
4615  BUILD_INFO_FALSE='#'
4616else
4617  BUILD_INFO_TRUE='#'
4618  BUILD_INFO_FALSE=
4619fi
4620
4621
4622
4623# Configure libtool
4624case `pwd` in
4625  *\ * | *\	*)
4626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4627$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4628esac
4629
4630
4631
4632macro_version='2.2.7a'
4633macro_revision='1.3134'
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647ltmain="$ac_aux_dir/ltmain.sh"
4648
4649# Backslashify metacharacters that are still active within
4650# double-quoted strings.
4651sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4652
4653# Same as above, but do not quote variable references.
4654double_quote_subst='s/\(["`\\]\)/\\\1/g'
4655
4656# Sed substitution to delay expansion of an escaped shell variable in a
4657# double_quote_subst'ed string.
4658delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4659
4660# Sed substitution to delay expansion of an escaped single quote.
4661delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4662
4663# Sed substitution to avoid accidental globbing in evaled expressions
4664no_glob_subst='s/\*/\\\*/g'
4665
4666ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4668ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4671$as_echo_n "checking how to print strings... " >&6; }
4672# Test print first, because it will be a builtin if present.
4673if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4674   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4675  ECHO='print -r --'
4676elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4677  ECHO='printf %s\n'
4678else
4679  # Use this function as a fallback that always works.
4680  func_fallback_echo ()
4681  {
4682    eval 'cat <<_LTECHO_EOF
4683$1
4684_LTECHO_EOF'
4685  }
4686  ECHO='func_fallback_echo'
4687fi
4688
4689# func_echo_all arg...
4690# Invoke $ECHO with all args, space-separated.
4691func_echo_all ()
4692{
4693    $ECHO ""
4694}
4695
4696case "$ECHO" in
4697  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4698$as_echo "printf" >&6; } ;;
4699  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4700$as_echo "print -r" >&6; } ;;
4701  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4702$as_echo "cat" >&6; } ;;
4703esac
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4719$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4720if test "${ac_cv_path_SED+set}" = set; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4724     for ac_i in 1 2 3 4 5 6 7; do
4725       ac_script="$ac_script$as_nl$ac_script"
4726     done
4727     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4728     { ac_script=; unset ac_script;}
4729     if test -z "$SED"; then
4730  ac_path_SED_found=false
4731  # Loop through the user's path and test for each of PROGNAME-LIST
4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737    for ac_prog in sed gsed; do
4738    for ac_exec_ext in '' $ac_executable_extensions; do
4739      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4740      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4741# Check for GNU ac_path_SED and select it if it is found.
4742  # Check for GNU $ac_path_SED
4743case `"$ac_path_SED" --version 2>&1` in
4744*GNU*)
4745  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4746*)
4747  ac_count=0
4748  $as_echo_n 0123456789 >"conftest.in"
4749  while :
4750  do
4751    cat "conftest.in" "conftest.in" >"conftest.tmp"
4752    mv "conftest.tmp" "conftest.in"
4753    cp "conftest.in" "conftest.nl"
4754    $as_echo '' >> "conftest.nl"
4755    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757    as_fn_arith $ac_count + 1 && ac_count=$as_val
4758    if test $ac_count -gt ${ac_path_SED_max-0}; then
4759      # Best one so far, save it but keep looking for a better one
4760      ac_cv_path_SED="$ac_path_SED"
4761      ac_path_SED_max=$ac_count
4762    fi
4763    # 10*(2^10) chars as input seems more than enough
4764    test $ac_count -gt 10 && break
4765  done
4766  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767esac
4768
4769      $ac_path_SED_found && break 3
4770    done
4771  done
4772  done
4773IFS=$as_save_IFS
4774  if test -z "$ac_cv_path_SED"; then
4775    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4776  fi
4777else
4778  ac_cv_path_SED=$SED
4779fi
4780
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4783$as_echo "$ac_cv_path_SED" >&6; }
4784 SED="$ac_cv_path_SED"
4785  rm -f conftest.sed
4786
4787test -z "$SED" && SED=sed
4788Xsed="$SED -e 1s/^X//"
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4801$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4802if test "${ac_cv_path_GREP+set}" = set; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  if test -z "$GREP"; then
4806  ac_path_GREP_found=false
4807  # Loop through the user's path and test for each of PROGNAME-LIST
4808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_prog in grep ggrep; do
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4816      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4817# Check for GNU ac_path_GREP and select it if it is found.
4818  # Check for GNU $ac_path_GREP
4819case `"$ac_path_GREP" --version 2>&1` in
4820*GNU*)
4821  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4822*)
4823  ac_count=0
4824  $as_echo_n 0123456789 >"conftest.in"
4825  while :
4826  do
4827    cat "conftest.in" "conftest.in" >"conftest.tmp"
4828    mv "conftest.tmp" "conftest.in"
4829    cp "conftest.in" "conftest.nl"
4830    $as_echo 'GREP' >> "conftest.nl"
4831    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833    as_fn_arith $ac_count + 1 && ac_count=$as_val
4834    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4835      # Best one so far, save it but keep looking for a better one
4836      ac_cv_path_GREP="$ac_path_GREP"
4837      ac_path_GREP_max=$ac_count
4838    fi
4839    # 10*(2^10) chars as input seems more than enough
4840    test $ac_count -gt 10 && break
4841  done
4842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843esac
4844
4845      $ac_path_GREP_found && break 3
4846    done
4847  done
4848  done
4849IFS=$as_save_IFS
4850  if test -z "$ac_cv_path_GREP"; then
4851    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852  fi
4853else
4854  ac_cv_path_GREP=$GREP
4855fi
4856
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4859$as_echo "$ac_cv_path_GREP" >&6; }
4860 GREP="$ac_cv_path_GREP"
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4864$as_echo_n "checking for egrep... " >&6; }
4865if test "${ac_cv_path_EGREP+set}" = set; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4869   then ac_cv_path_EGREP="$GREP -E"
4870   else
4871     if test -z "$EGREP"; then
4872  ac_path_EGREP_found=false
4873  # Loop through the user's path and test for each of PROGNAME-LIST
4874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879    for ac_prog in egrep; do
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4882      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4883# Check for GNU ac_path_EGREP and select it if it is found.
4884  # Check for GNU $ac_path_EGREP
4885case `"$ac_path_EGREP" --version 2>&1` in
4886*GNU*)
4887  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4888*)
4889  ac_count=0
4890  $as_echo_n 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    $as_echo 'EGREP' >> "conftest.nl"
4897    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_EGREP="$ac_path_EGREP"
4903      ac_path_EGREP_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_EGREP_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_EGREP"; then
4917    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_EGREP=$EGREP
4921fi
4922
4923   fi
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4926$as_echo "$ac_cv_path_EGREP" >&6; }
4927 EGREP="$ac_cv_path_EGREP"
4928
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4931$as_echo_n "checking for fgrep... " >&6; }
4932if test "${ac_cv_path_FGREP+set}" = set; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4936   then ac_cv_path_FGREP="$GREP -F"
4937   else
4938     if test -z "$FGREP"; then
4939  ac_path_FGREP_found=false
4940  # Loop through the user's path and test for each of PROGNAME-LIST
4941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_prog in fgrep; do
4947    for ac_exec_ext in '' $ac_executable_extensions; do
4948      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4949      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4950# Check for GNU ac_path_FGREP and select it if it is found.
4951  # Check for GNU $ac_path_FGREP
4952case `"$ac_path_FGREP" --version 2>&1` in
4953*GNU*)
4954  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4955*)
4956  ac_count=0
4957  $as_echo_n 0123456789 >"conftest.in"
4958  while :
4959  do
4960    cat "conftest.in" "conftest.in" >"conftest.tmp"
4961    mv "conftest.tmp" "conftest.in"
4962    cp "conftest.in" "conftest.nl"
4963    $as_echo 'FGREP' >> "conftest.nl"
4964    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966    as_fn_arith $ac_count + 1 && ac_count=$as_val
4967    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4968      # Best one so far, save it but keep looking for a better one
4969      ac_cv_path_FGREP="$ac_path_FGREP"
4970      ac_path_FGREP_max=$ac_count
4971    fi
4972    # 10*(2^10) chars as input seems more than enough
4973    test $ac_count -gt 10 && break
4974  done
4975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976esac
4977
4978      $ac_path_FGREP_found && break 3
4979    done
4980  done
4981  done
4982IFS=$as_save_IFS
4983  if test -z "$ac_cv_path_FGREP"; then
4984    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4985  fi
4986else
4987  ac_cv_path_FGREP=$FGREP
4988fi
4989
4990   fi
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4993$as_echo "$ac_cv_path_FGREP" >&6; }
4994 FGREP="$ac_cv_path_FGREP"
4995
4996
4997test -z "$GREP" && GREP=grep
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017# Check whether --with-gnu-ld was given.
5018if test "${with_gnu_ld+set}" = set; then :
5019  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5020else
5021  with_gnu_ld=no
5022fi
5023
5024ac_prog=ld
5025if test "$GCC" = yes; then
5026  # Check if gcc -print-prog-name=ld gives a path.
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5028$as_echo_n "checking for ld used by $CC... " >&6; }
5029  case $host in
5030  *-*-mingw*)
5031    # gcc leaves a trailing carriage return which upsets mingw
5032    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5033  *)
5034    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5035  esac
5036  case $ac_prog in
5037    # Accept absolute paths.
5038    [\\/]* | ?:[\\/]*)
5039      re_direlt='/[^/][^/]*/\.\./'
5040      # Canonicalize the pathname of ld
5041      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5042      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5043	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5044      done
5045      test -z "$LD" && LD="$ac_prog"
5046      ;;
5047  "")
5048    # If it fails, then pretend we aren't using GCC.
5049    ac_prog=ld
5050    ;;
5051  *)
5052    # If it is relative, then search for the first ld in PATH.
5053    with_gnu_ld=unknown
5054    ;;
5055  esac
5056elif test "$with_gnu_ld" = yes; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5058$as_echo_n "checking for GNU ld... " >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5061$as_echo_n "checking for non-GNU ld... " >&6; }
5062fi
5063if test "${lt_cv_path_LD+set}" = set; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  if test -z "$LD"; then
5067  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5068  for ac_dir in $PATH; do
5069    IFS="$lt_save_ifs"
5070    test -z "$ac_dir" && ac_dir=.
5071    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5072      lt_cv_path_LD="$ac_dir/$ac_prog"
5073      # Check to see if the program is GNU ld.  I'd rather use --version,
5074      # but apparently some variants of GNU ld only accept -v.
5075      # Break only if it was the GNU/non-GNU ld that we prefer.
5076      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5077      *GNU* | *'with BFD'*)
5078	test "$with_gnu_ld" != no && break
5079	;;
5080      *)
5081	test "$with_gnu_ld" != yes && break
5082	;;
5083      esac
5084    fi
5085  done
5086  IFS="$lt_save_ifs"
5087else
5088  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5089fi
5090fi
5091
5092LD="$lt_cv_path_LD"
5093if test -n "$LD"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5095$as_echo "$LD" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5102$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5103if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5107case `$LD -v 2>&1 </dev/null` in
5108*GNU* | *'with BFD'*)
5109  lt_cv_prog_gnu_ld=yes
5110  ;;
5111*)
5112  lt_cv_prog_gnu_ld=no
5113  ;;
5114esac
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5117$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5118with_gnu_ld=$lt_cv_prog_gnu_ld
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5129$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5130if test "${lt_cv_path_NM+set}" = set; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$NM"; then
5134  # Let the user override the test.
5135  lt_cv_path_NM="$NM"
5136else
5137  lt_nm_to_check="${ac_tool_prefix}nm"
5138  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5139    lt_nm_to_check="$lt_nm_to_check nm"
5140  fi
5141  for lt_tmp_nm in $lt_nm_to_check; do
5142    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5143    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5144      IFS="$lt_save_ifs"
5145      test -z "$ac_dir" && ac_dir=.
5146      tmp_nm="$ac_dir/$lt_tmp_nm"
5147      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5148	# Check to see if the nm accepts a BSD-compat flag.
5149	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5150	#   nm: unknown option "B" ignored
5151	# Tru64's nm complains that /dev/null is an invalid object file
5152	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5153	*/dev/null* | *'Invalid file or object type'*)
5154	  lt_cv_path_NM="$tmp_nm -B"
5155	  break
5156	  ;;
5157	*)
5158	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5159	  */dev/null*)
5160	    lt_cv_path_NM="$tmp_nm -p"
5161	    break
5162	    ;;
5163	  *)
5164	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5165	    continue # so that we can try to find one that supports BSD flags
5166	    ;;
5167	  esac
5168	  ;;
5169	esac
5170      fi
5171    done
5172    IFS="$lt_save_ifs"
5173  done
5174  : ${lt_cv_path_NM=no}
5175fi
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5178$as_echo "$lt_cv_path_NM" >&6; }
5179if test "$lt_cv_path_NM" != "no"; then
5180  NM="$lt_cv_path_NM"
5181else
5182  # Didn't find any BSD compatible name lister, look for dumpbin.
5183  if test -n "$DUMPBIN"; then :
5184    # Let the user override the test.
5185  else
5186    if test -n "$ac_tool_prefix"; then
5187  for ac_prog in dumpbin "link -dump"
5188  do
5189    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  if test -n "$DUMPBIN"; then
5197  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202  IFS=$as_save_IFS
5203  test -z "$as_dir" && as_dir=.
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208    break 2
5209  fi
5210done
5211  done
5212IFS=$as_save_IFS
5213
5214fi
5215fi
5216DUMPBIN=$ac_cv_prog_DUMPBIN
5217if test -n "$DUMPBIN"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5219$as_echo "$DUMPBIN" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225
5226    test -n "$DUMPBIN" && break
5227  done
5228fi
5229if test -z "$DUMPBIN"; then
5230  ac_ct_DUMPBIN=$DUMPBIN
5231  for ac_prog in dumpbin "link -dump"
5232do
5233  # Extract the first word of "$ac_prog", so it can be a program name with args.
5234set dummy $ac_prog; ac_word=$2
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
5237if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5238  $as_echo_n "(cached) " >&6
5239else
5240  if test -n "$ac_ct_DUMPBIN"; then
5241  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246  IFS=$as_save_IFS
5247  test -z "$as_dir" && as_dir=.
5248    for ac_exec_ext in '' $ac_executable_extensions; do
5249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252    break 2
5253  fi
5254done
5255  done
5256IFS=$as_save_IFS
5257
5258fi
5259fi
5260ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5261if test -n "$ac_ct_DUMPBIN"; then
5262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5263$as_echo "$ac_ct_DUMPBIN" >&6; }
5264else
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
5267fi
5268
5269
5270  test -n "$ac_ct_DUMPBIN" && break
5271done
5272
5273  if test "x$ac_ct_DUMPBIN" = x; then
5274    DUMPBIN=":"
5275  else
5276    case $cross_compiling:$ac_tool_warned in
5277yes:)
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280ac_tool_warned=yes ;;
5281esac
5282    DUMPBIN=$ac_ct_DUMPBIN
5283  fi
5284fi
5285
5286    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5287    *COFF*)
5288      DUMPBIN="$DUMPBIN -symbols"
5289      ;;
5290    *)
5291      DUMPBIN=:
5292      ;;
5293    esac
5294  fi
5295
5296  if test "$DUMPBIN" != ":"; then
5297    NM="$DUMPBIN"
5298  fi
5299fi
5300test -z "$NM" && NM=nm
5301
5302
5303
5304
5305
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5308$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5309if test "${lt_cv_nm_interface+set}" = set; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  lt_cv_nm_interface="BSD nm"
5313  echo "int some_variable = 0;" > conftest.$ac_ext
5314  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5315  (eval "$ac_compile" 2>conftest.err)
5316  cat conftest.err >&5
5317  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5318  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5319  cat conftest.err >&5
5320  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5321  cat conftest.out >&5
5322  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5323    lt_cv_nm_interface="MS dumpbin"
5324  fi
5325  rm -f conftest*
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5328$as_echo "$lt_cv_nm_interface" >&6; }
5329
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5331$as_echo_n "checking whether ln -s works... " >&6; }
5332LN_S=$as_ln_s
5333if test "$LN_S" = "ln -s"; then
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335$as_echo "yes" >&6; }
5336else
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5338$as_echo "no, using $LN_S" >&6; }
5339fi
5340
5341# find the maximum length of command line arguments
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5343$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5344if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347    i=0
5348  teststring="ABCD"
5349
5350  case $build_os in
5351  msdosdjgpp*)
5352    # On DJGPP, this test can blow up pretty badly due to problems in libc
5353    # (any single argument exceeding 2000 bytes causes a buffer overrun
5354    # during glob expansion).  Even if it were fixed, the result of this
5355    # check would be larger than it should be.
5356    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5357    ;;
5358
5359  gnu*)
5360    # Under GNU Hurd, this test is not required because there is
5361    # no limit to the length of command line arguments.
5362    # Libtool will interpret -1 as no limit whatsoever
5363    lt_cv_sys_max_cmd_len=-1;
5364    ;;
5365
5366  cygwin* | mingw* | cegcc*)
5367    # On Win9x/ME, this test blows up -- it succeeds, but takes
5368    # about 5 minutes as the teststring grows exponentially.
5369    # Worse, since 9x/ME are not pre-emptively multitasking,
5370    # you end up with a "frozen" computer, even though with patience
5371    # the test eventually succeeds (with a max line length of 256k).
5372    # Instead, let's just punt: use the minimum linelength reported by
5373    # all of the supported platforms: 8192 (on NT/2K/XP).
5374    lt_cv_sys_max_cmd_len=8192;
5375    ;;
5376
5377  mint*)
5378    # On MiNT this can take a long time and run out of memory.
5379    lt_cv_sys_max_cmd_len=8192;
5380    ;;
5381
5382  amigaos*)
5383    # On AmigaOS with pdksh, this test takes hours, literally.
5384    # So we just punt and use a minimum line length of 8192.
5385    lt_cv_sys_max_cmd_len=8192;
5386    ;;
5387
5388  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5389    # This has been around since 386BSD, at least.  Likely further.
5390    if test -x /sbin/sysctl; then
5391      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5392    elif test -x /usr/sbin/sysctl; then
5393      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5394    else
5395      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5396    fi
5397    # And add a safety zone
5398    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5400    ;;
5401
5402  interix*)
5403    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5404    lt_cv_sys_max_cmd_len=196608
5405    ;;
5406
5407  osf*)
5408    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5409    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5410    # nice to cause kernel panics so lets avoid the loop below.
5411    # First set a reasonable default.
5412    lt_cv_sys_max_cmd_len=16384
5413    #
5414    if test -x /sbin/sysconfig; then
5415      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5416        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5417      esac
5418    fi
5419    ;;
5420  sco3.2v5*)
5421    lt_cv_sys_max_cmd_len=102400
5422    ;;
5423  sysv5* | sco5v6* | sysv4.2uw2*)
5424    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5425    if test -n "$kargmax"; then
5426      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5427    else
5428      lt_cv_sys_max_cmd_len=32768
5429    fi
5430    ;;
5431  *)
5432    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5433    if test -n "$lt_cv_sys_max_cmd_len"; then
5434      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5435      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5436    else
5437      # Make teststring a little bigger before we do anything with it.
5438      # a 1K string should be a reasonable start.
5439      for i in 1 2 3 4 5 6 7 8 ; do
5440        teststring=$teststring$teststring
5441      done
5442      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443      # If test is not a shell built-in, we'll probably end up computing a
5444      # maximum length that is only half of the actual maximum length, but
5445      # we can't tell.
5446      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5447	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5448	      test $i != 17 # 1/2 MB should be enough
5449      do
5450        i=`expr $i + 1`
5451        teststring=$teststring$teststring
5452      done
5453      # Only check the string length outside the loop.
5454      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5455      teststring=
5456      # Add a significant safety factor because C++ compilers can tack on
5457      # massive amounts of additional arguments before passing them to the
5458      # linker.  It appears as though 1/2 is a usable value.
5459      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5460    fi
5461    ;;
5462  esac
5463
5464fi
5465
5466if test -n $lt_cv_sys_max_cmd_len ; then
5467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5468$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5469else
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5471$as_echo "none" >&6; }
5472fi
5473max_cmd_len=$lt_cv_sys_max_cmd_len
5474
5475
5476
5477
5478
5479
5480: ${CP="cp -f"}
5481: ${MV="mv -f"}
5482: ${RM="rm -f"}
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5485$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5486# Try some XSI features
5487xsi_shell=no
5488( _lt_dummy="a/b/c"
5489  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5490      = c,a/b,, \
5491    && eval 'test $(( 1 + 1 )) -eq 2 \
5492    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5493  && xsi_shell=yes
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5495$as_echo "$xsi_shell" >&6; }
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5499$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5500lt_shell_append=no
5501( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5502    >/dev/null 2>&1 \
5503  && lt_shell_append=yes
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5505$as_echo "$lt_shell_append" >&6; }
5506
5507
5508if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5509  lt_unset=unset
5510else
5511  lt_unset=false
5512fi
5513
5514
5515
5516
5517
5518# test EBCDIC or ASCII
5519case `echo X|tr X '\101'` in
5520 A) # ASCII based system
5521    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5522  lt_SP2NL='tr \040 \012'
5523  lt_NL2SP='tr \015\012 \040\040'
5524  ;;
5525 *) # EBCDIC based system
5526  lt_SP2NL='tr \100 \n'
5527  lt_NL2SP='tr \r\n \100\100'
5528  ;;
5529esac
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5540$as_echo_n "checking for $LD option to reload object files... " >&6; }
5541if test "${lt_cv_ld_reload_flag+set}" = set; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  lt_cv_ld_reload_flag='-r'
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5547$as_echo "$lt_cv_ld_reload_flag" >&6; }
5548reload_flag=$lt_cv_ld_reload_flag
5549case $reload_flag in
5550"" | " "*) ;;
5551*) reload_flag=" $reload_flag" ;;
5552esac
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554case $host_os in
5555  darwin*)
5556    if test "$GCC" = yes; then
5557      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558    else
5559      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560    fi
5561    ;;
5562esac
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572if test -n "$ac_tool_prefix"; then
5573  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5574set dummy ${ac_tool_prefix}objdump; ac_word=$2
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576$as_echo_n "checking for $ac_word... " >&6; }
5577if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580  if test -n "$OBJDUMP"; then
5581  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586  IFS=$as_save_IFS
5587  test -z "$as_dir" && as_dir=.
5588    for ac_exec_ext in '' $ac_executable_extensions; do
5589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592    break 2
5593  fi
5594done
5595  done
5596IFS=$as_save_IFS
5597
5598fi
5599fi
5600OBJDUMP=$ac_cv_prog_OBJDUMP
5601if test -n "$OBJDUMP"; then
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5603$as_echo "$OBJDUMP" >&6; }
5604else
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606$as_echo "no" >&6; }
5607fi
5608
5609
5610fi
5611if test -z "$ac_cv_prog_OBJDUMP"; then
5612  ac_ct_OBJDUMP=$OBJDUMP
5613  # Extract the first word of "objdump", so it can be a program name with args.
5614set dummy objdump; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$ac_ct_OBJDUMP"; then
5621  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626  IFS=$as_save_IFS
5627  test -z "$as_dir" && as_dir=.
5628    for ac_exec_ext in '' $ac_executable_extensions; do
5629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632    break 2
5633  fi
5634done
5635  done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5641if test -n "$ac_ct_OBJDUMP"; then
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5643$as_echo "$ac_ct_OBJDUMP" >&6; }
5644else
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649  if test "x$ac_ct_OBJDUMP" = x; then
5650    OBJDUMP="false"
5651  else
5652    case $cross_compiling:$ac_tool_warned in
5653yes:)
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656ac_tool_warned=yes ;;
5657esac
5658    OBJDUMP=$ac_ct_OBJDUMP
5659  fi
5660else
5661  OBJDUMP="$ac_cv_prog_OBJDUMP"
5662fi
5663
5664test -z "$OBJDUMP" && OBJDUMP=objdump
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5675$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5676if test "${lt_cv_deplibs_check_method+set}" = set; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  lt_cv_file_magic_cmd='$MAGIC_CMD'
5680lt_cv_file_magic_test_file=
5681lt_cv_deplibs_check_method='unknown'
5682# Need to set the preceding variable on all platforms that support
5683# interlibrary dependencies.
5684# 'none' -- dependencies not supported.
5685# `unknown' -- same as none, but documents that we really don't know.
5686# 'pass_all' -- all dependencies passed with no checks.
5687# 'test_compile' -- check by making test program.
5688# 'file_magic [[regex]]' -- check by looking for files in library path
5689# which responds to the $file_magic_cmd with a given extended regex.
5690# If you have `file' or equivalent on your system and you're not sure
5691# whether `pass_all' will *always* work, you probably want this one.
5692
5693case $host_os in
5694aix[4-9]*)
5695  lt_cv_deplibs_check_method=pass_all
5696  ;;
5697
5698beos*)
5699  lt_cv_deplibs_check_method=pass_all
5700  ;;
5701
5702bsdi[45]*)
5703  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704  lt_cv_file_magic_cmd='/usr/bin/file -L'
5705  lt_cv_file_magic_test_file=/shlib/libc.so
5706  ;;
5707
5708cygwin*)
5709  # func_win32_libid is a shell function defined in ltmain.sh
5710  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711  lt_cv_file_magic_cmd='func_win32_libid'
5712  ;;
5713
5714mingw* | pw32*)
5715  # Base MSYS/MinGW do not provide the 'file' command needed by
5716  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5717  # unless we find 'file', for example because we are cross-compiling.
5718  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5719  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5720    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721    lt_cv_file_magic_cmd='func_win32_libid'
5722  else
5723    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5724    lt_cv_file_magic_cmd='$OBJDUMP -f'
5725  fi
5726  ;;
5727
5728cegcc*)
5729  # use the weaker test based on 'objdump'. See mingw*.
5730  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5731  lt_cv_file_magic_cmd='$OBJDUMP -f'
5732  ;;
5733
5734darwin* | rhapsody*)
5735  lt_cv_deplibs_check_method=pass_all
5736  ;;
5737
5738freebsd* | dragonfly*)
5739  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5740    case $host_cpu in
5741    i*86 )
5742      # Not sure whether the presence of OpenBSD here was a mistake.
5743      # Let's accept both of them until this is cleared up.
5744      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5745      lt_cv_file_magic_cmd=/usr/bin/file
5746      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5747      ;;
5748    esac
5749  else
5750    lt_cv_deplibs_check_method=pass_all
5751  fi
5752  ;;
5753
5754gnu*)
5755  lt_cv_deplibs_check_method=pass_all
5756  ;;
5757
5758haiku*)
5759  lt_cv_deplibs_check_method=pass_all
5760  ;;
5761
5762hpux10.20* | hpux11*)
5763  lt_cv_file_magic_cmd=/usr/bin/file
5764  case $host_cpu in
5765  ia64*)
5766    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5767    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5768    ;;
5769  hppa*64*)
5770    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5771    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5772    ;;
5773  *)
5774    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5775    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5776    ;;
5777  esac
5778  ;;
5779
5780interix[3-9]*)
5781  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5782  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5783  ;;
5784
5785irix5* | irix6* | nonstopux*)
5786  case $LD in
5787  *-32|*"-32 ") libmagic=32-bit;;
5788  *-n32|*"-n32 ") libmagic=N32;;
5789  *-64|*"-64 ") libmagic=64-bit;;
5790  *) libmagic=never-match;;
5791  esac
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795# This must be Linux ELF.
5796linux* | k*bsd*-gnu | kopensolaris*-gnu)
5797  lt_cv_deplibs_check_method=pass_all
5798  ;;
5799
5800netbsd*)
5801  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5802    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5803  else
5804    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5805  fi
5806  ;;
5807
5808newos6*)
5809  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5810  lt_cv_file_magic_cmd=/usr/bin/file
5811  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5812  ;;
5813
5814*nto* | *qnx*)
5815  lt_cv_deplibs_check_method=pass_all
5816  ;;
5817
5818openbsd*)
5819  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5820    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5821  else
5822    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5823  fi
5824  ;;
5825
5826osf3* | osf4* | osf5*)
5827  lt_cv_deplibs_check_method=pass_all
5828  ;;
5829
5830rdos*)
5831  lt_cv_deplibs_check_method=pass_all
5832  ;;
5833
5834solaris*)
5835  lt_cv_deplibs_check_method=pass_all
5836  ;;
5837
5838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5839  lt_cv_deplibs_check_method=pass_all
5840  ;;
5841
5842sysv4 | sysv4.3*)
5843  case $host_vendor in
5844  motorola)
5845    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]'
5846    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5847    ;;
5848  ncr)
5849    lt_cv_deplibs_check_method=pass_all
5850    ;;
5851  sequent)
5852    lt_cv_file_magic_cmd='/bin/file'
5853    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5854    ;;
5855  sni)
5856    lt_cv_file_magic_cmd='/bin/file'
5857    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5858    lt_cv_file_magic_test_file=/lib/libc.so
5859    ;;
5860  siemens)
5861    lt_cv_deplibs_check_method=pass_all
5862    ;;
5863  pc)
5864    lt_cv_deplibs_check_method=pass_all
5865    ;;
5866  esac
5867  ;;
5868
5869tpf*)
5870  lt_cv_deplibs_check_method=pass_all
5871  ;;
5872esac
5873
5874fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5876$as_echo "$lt_cv_deplibs_check_method" >&6; }
5877file_magic_cmd=$lt_cv_file_magic_cmd
5878deplibs_check_method=$lt_cv_deplibs_check_method
5879test -z "$deplibs_check_method" && deplibs_check_method=unknown
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892if test -n "$ac_tool_prefix"; then
5893  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5894set dummy ${ac_tool_prefix}ar; ac_word=$2
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_AR+set}" = set; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  if test -n "$AR"; then
5901  ac_cv_prog_AR="$AR" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906  IFS=$as_save_IFS
5907  test -z "$as_dir" && as_dir=.
5908    for ac_exec_ext in '' $ac_executable_extensions; do
5909  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910    ac_cv_prog_AR="${ac_tool_prefix}ar"
5911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912    break 2
5913  fi
5914done
5915  done
5916IFS=$as_save_IFS
5917
5918fi
5919fi
5920AR=$ac_cv_prog_AR
5921if test -n "$AR"; then
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5923$as_echo "$AR" >&6; }
5924else
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
5927fi
5928
5929
5930fi
5931if test -z "$ac_cv_prog_AR"; then
5932  ac_ct_AR=$AR
5933  # Extract the first word of "ar", so it can be a program name with args.
5934set dummy ar; ac_word=$2
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  if test -n "$ac_ct_AR"; then
5941  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  test -z "$as_dir" && as_dir=.
5948    for ac_exec_ext in '' $ac_executable_extensions; do
5949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950    ac_cv_prog_ac_ct_AR="ar"
5951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952    break 2
5953  fi
5954done
5955  done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961if test -n "$ac_ct_AR"; then
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5963$as_echo "$ac_ct_AR" >&6; }
5964else
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969  if test "x$ac_ct_AR" = x; then
5970    AR="false"
5971  else
5972    case $cross_compiling:$ac_tool_warned in
5973yes:)
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976ac_tool_warned=yes ;;
5977esac
5978    AR=$ac_ct_AR
5979  fi
5980else
5981  AR="$ac_cv_prog_AR"
5982fi
5983
5984test -z "$AR" && AR=ar
5985test -z "$AR_FLAGS" && AR_FLAGS=cru
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997if test -n "$ac_tool_prefix"; then
5998  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}strip; ac_word=$2
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
6002if test "${ac_cv_prog_STRIP+set}" = set; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  if test -n "$STRIP"; then
6006  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011  IFS=$as_save_IFS
6012  test -z "$as_dir" && as_dir=.
6013    for ac_exec_ext in '' $ac_executable_extensions; do
6014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017    break 2
6018  fi
6019done
6020  done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025STRIP=$ac_cv_prog_STRIP
6026if test -n "$STRIP"; then
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6028$as_echo "$STRIP" >&6; }
6029else
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_STRIP"; then
6037  ac_ct_STRIP=$STRIP
6038  # Extract the first word of "strip", so it can be a program name with args.
6039set dummy strip; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test -n "$ac_ct_STRIP"; then
6046  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053    for ac_exec_ext in '' $ac_executable_extensions; do
6054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055    ac_cv_prog_ac_ct_STRIP="strip"
6056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060  done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066if test -n "$ac_ct_STRIP"; then
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6068$as_echo "$ac_ct_STRIP" >&6; }
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074  if test "x$ac_ct_STRIP" = x; then
6075    STRIP=":"
6076  else
6077    case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081ac_tool_warned=yes ;;
6082esac
6083    STRIP=$ac_ct_STRIP
6084  fi
6085else
6086  STRIP="$ac_cv_prog_STRIP"
6087fi
6088
6089test -z "$STRIP" && STRIP=:
6090
6091
6092
6093
6094
6095
6096if test -n "$ac_tool_prefix"; then
6097  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100$as_echo_n "checking for $ac_word... " >&6; }
6101if test "${ac_cv_prog_RANLIB+set}" = set; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  if test -n "$RANLIB"; then
6105  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110  IFS=$as_save_IFS
6111  test -z "$as_dir" && as_dir=.
6112    for ac_exec_ext in '' $ac_executable_extensions; do
6113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116    break 2
6117  fi
6118done
6119  done
6120IFS=$as_save_IFS
6121
6122fi
6123fi
6124RANLIB=$ac_cv_prog_RANLIB
6125if test -n "$RANLIB"; then
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127$as_echo "$RANLIB" >&6; }
6128else
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130$as_echo "no" >&6; }
6131fi
6132
6133
6134fi
6135if test -z "$ac_cv_prog_RANLIB"; then
6136  ac_ct_RANLIB=$RANLIB
6137  # Extract the first word of "ranlib", so it can be a program name with args.
6138set dummy ranlib; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6142  $as_echo_n "(cached) " >&6
6143else
6144  if test -n "$ac_ct_RANLIB"; then
6145  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150  IFS=$as_save_IFS
6151  test -z "$as_dir" && as_dir=.
6152    for ac_exec_ext in '' $ac_executable_extensions; do
6153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154    ac_cv_prog_ac_ct_RANLIB="ranlib"
6155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159  done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165if test -n "$ac_ct_RANLIB"; then
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167$as_echo "$ac_ct_RANLIB" >&6; }
6168else
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173  if test "x$ac_ct_RANLIB" = x; then
6174    RANLIB=":"
6175  else
6176    case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182    RANLIB=$ac_ct_RANLIB
6183  fi
6184else
6185  RANLIB="$ac_cv_prog_RANLIB"
6186fi
6187
6188test -z "$RANLIB" && RANLIB=:
6189
6190
6191
6192
6193
6194
6195# Determine commands to create old-style static archives.
6196old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6197old_postinstall_cmds='chmod 644 $oldlib'
6198old_postuninstall_cmds=
6199
6200if test -n "$RANLIB"; then
6201  case $host_os in
6202  openbsd*)
6203    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6204    ;;
6205  *)
6206    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6207    ;;
6208  esac
6209  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6210fi
6211
6212case $host_os in
6213  darwin*)
6214    lock_old_archive_extraction=yes ;;
6215  *)
6216    lock_old_archive_extraction=no ;;
6217esac
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257# If no C compiler was specified, use CC.
6258LTCC=${LTCC-"$CC"}
6259
6260# If no C compiler flags were specified, use CFLAGS.
6261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6262
6263# Allow CC to be a program name with arguments.
6264compiler=$CC
6265
6266
6267# Check for command to grab the raw symbol name followed by C symbol from nm.
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6269$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6270if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273
6274# These are sane defaults that work on at least a few old systems.
6275# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6276
6277# Character class describing NM global symbol codes.
6278symcode='[BCDEGRST]'
6279
6280# Regexp to match symbols that can be accessed directly from C.
6281sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282
6283# Define system-specific variables.
6284case $host_os in
6285aix*)
6286  symcode='[BCDT]'
6287  ;;
6288cygwin* | mingw* | pw32* | cegcc*)
6289  symcode='[ABCDGISTW]'
6290  ;;
6291hpux*)
6292  if test "$host_cpu" = ia64; then
6293    symcode='[ABCDEGRST]'
6294  fi
6295  ;;
6296irix* | nonstopux*)
6297  symcode='[BCDEGRST]'
6298  ;;
6299osf*)
6300  symcode='[BCDEGQRST]'
6301  ;;
6302solaris*)
6303  symcode='[BDRT]'
6304  ;;
6305sco3.2v5*)
6306  symcode='[DT]'
6307  ;;
6308sysv4.2uw2*)
6309  symcode='[DT]'
6310  ;;
6311sysv5* | sco5v6* | unixware* | OpenUNIX*)
6312  symcode='[ABDT]'
6313  ;;
6314sysv4)
6315  symcode='[DFNSTU]'
6316  ;;
6317esac
6318
6319# If we're using GNU nm, then use its standard symbol codes.
6320case `$NM -V 2>&1` in
6321*GNU* | *'with BFD'*)
6322  symcode='[ABCDGIRSTW]' ;;
6323esac
6324
6325# Transform an extracted symbol line into a proper C declaration.
6326# Some systems (esp. on ia64) link data and code symbols differently,
6327# so use this general approach.
6328lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6329
6330# Transform an extracted symbol line into symbol name and symbol address
6331lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6333
6334# Handle CRLF in mingw tool chain
6335opt_cr=
6336case $build_os in
6337mingw*)
6338  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6339  ;;
6340esac
6341
6342# Try without a prefix underscore, then with it.
6343for ac_symprfx in "" "_"; do
6344
6345  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6346  symxfrm="\\1 $ac_symprfx\\2 \\2"
6347
6348  # Write the raw and C identifiers.
6349  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350    # Fake it for dumpbin and say T for any non-static function
6351    # and D for any global variable.
6352    # Also find C++ and __fastcall symbols from MSVC++,
6353    # which start with @ or ?.
6354    lt_cv_sys_global_symbol_pipe="$AWK '"\
6355"     {last_section=section; section=\$ 3};"\
6356"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6357"     \$ 0!~/External *\|/{next};"\
6358"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6359"     {if(hide[section]) next};"\
6360"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6361"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6362"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6363"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6364"     ' prfx=^$ac_symprfx"
6365  else
6366    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367  fi
6368
6369  # Check to see that the pipe works correctly.
6370  pipe_works=no
6371
6372  rm -f conftest*
6373  cat > conftest.$ac_ext <<_LT_EOF
6374#ifdef __cplusplus
6375extern "C" {
6376#endif
6377char nm_test_var;
6378void nm_test_func(void);
6379void nm_test_func(void){}
6380#ifdef __cplusplus
6381}
6382#endif
6383int main(){nm_test_var='a';nm_test_func();return(0);}
6384_LT_EOF
6385
6386  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387  (eval $ac_compile) 2>&5
6388  ac_status=$?
6389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390  test $ac_status = 0; }; then
6391    # Now try to grab the symbols.
6392    nlist=conftest.nm
6393    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6394  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6395  ac_status=$?
6396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397  test $ac_status = 0; } && test -s "$nlist"; then
6398      # Try sorting and uniquifying the output.
6399      if sort "$nlist" | uniq > "$nlist"T; then
6400	mv -f "$nlist"T "$nlist"
6401      else
6402	rm -f "$nlist"T
6403      fi
6404
6405      # Make sure that we snagged all the symbols we need.
6406      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6407	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6408	  cat <<_LT_EOF > conftest.$ac_ext
6409#ifdef __cplusplus
6410extern "C" {
6411#endif
6412
6413_LT_EOF
6414	  # Now generate the symbol file.
6415	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6416
6417	  cat <<_LT_EOF >> conftest.$ac_ext
6418
6419/* The mapping between symbol names and symbols.  */
6420const struct {
6421  const char *name;
6422  void       *address;
6423}
6424lt__PROGRAM__LTX_preloaded_symbols[] =
6425{
6426  { "@PROGRAM@", (void *) 0 },
6427_LT_EOF
6428	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6429	  cat <<\_LT_EOF >> conftest.$ac_ext
6430  {0, (void *) 0}
6431};
6432
6433/* This works around a problem in FreeBSD linker */
6434#ifdef FREEBSD_WORKAROUND
6435static const void *lt_preloaded_setup() {
6436  return lt__PROGRAM__LTX_preloaded_symbols;
6437}
6438#endif
6439
6440#ifdef __cplusplus
6441}
6442#endif
6443_LT_EOF
6444	  # Now try linking the two files.
6445	  mv conftest.$ac_objext conftstm.$ac_objext
6446	  lt_save_LIBS="$LIBS"
6447	  lt_save_CFLAGS="$CFLAGS"
6448	  LIBS="conftstm.$ac_objext"
6449	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6451  (eval $ac_link) 2>&5
6452  ac_status=$?
6453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6455	    pipe_works=yes
6456	  fi
6457	  LIBS="$lt_save_LIBS"
6458	  CFLAGS="$lt_save_CFLAGS"
6459	else
6460	  echo "cannot find nm_test_func in $nlist" >&5
6461	fi
6462      else
6463	echo "cannot find nm_test_var in $nlist" >&5
6464      fi
6465    else
6466      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467    fi
6468  else
6469    echo "$progname: failed program was:" >&5
6470    cat conftest.$ac_ext >&5
6471  fi
6472  rm -rf conftest* conftst*
6473
6474  # Do not use the global_symbol_pipe unless it works.
6475  if test "$pipe_works" = yes; then
6476    break
6477  else
6478    lt_cv_sys_global_symbol_pipe=
6479  fi
6480done
6481
6482fi
6483
6484if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485  lt_cv_sys_global_symbol_to_cdecl=
6486fi
6487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6489$as_echo "failed" >&6; }
6490else
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6492$as_echo "ok" >&6; }
6493fi
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517# Check whether --enable-libtool-lock was given.
6518if test "${enable_libtool_lock+set}" = set; then :
6519  enableval=$enable_libtool_lock;
6520fi
6521
6522test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6523
6524# Some flags need to be propagated to the compiler or linker for good
6525# libtool support.
6526case $host in
6527ia64-*-hpux*)
6528  # Find out which ABI we are using.
6529  echo 'int i;' > conftest.$ac_ext
6530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531  (eval $ac_compile) 2>&5
6532  ac_status=$?
6533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534  test $ac_status = 0; }; then
6535    case `/usr/bin/file conftest.$ac_objext` in
6536      *ELF-32*)
6537	HPUX_IA64_MODE="32"
6538	;;
6539      *ELF-64*)
6540	HPUX_IA64_MODE="64"
6541	;;
6542    esac
6543  fi
6544  rm -rf conftest*
6545  ;;
6546*-*-irix6*)
6547  # Find out which ABI we are using.
6548  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6549  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550  (eval $ac_compile) 2>&5
6551  ac_status=$?
6552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553  test $ac_status = 0; }; then
6554    if test "$lt_cv_prog_gnu_ld" = yes; then
6555      case `/usr/bin/file conftest.$ac_objext` in
6556	*32-bit*)
6557	  LD="${LD-ld} -melf32bsmip"
6558	  ;;
6559	*N32*)
6560	  LD="${LD-ld} -melf32bmipn32"
6561	  ;;
6562	*64-bit*)
6563	  LD="${LD-ld} -melf64bmip"
6564	;;
6565      esac
6566    else
6567      case `/usr/bin/file conftest.$ac_objext` in
6568	*32-bit*)
6569	  LD="${LD-ld} -32"
6570	  ;;
6571	*N32*)
6572	  LD="${LD-ld} -n32"
6573	  ;;
6574	*64-bit*)
6575	  LD="${LD-ld} -64"
6576	  ;;
6577      esac
6578    fi
6579  fi
6580  rm -rf conftest*
6581  ;;
6582
6583x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6584s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585  # Find out which ABI we are using.
6586  echo 'int i;' > conftest.$ac_ext
6587  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588  (eval $ac_compile) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591  test $ac_status = 0; }; then
6592    case `/usr/bin/file conftest.o` in
6593      *32-bit*)
6594	case $host in
6595	  x86_64-*kfreebsd*-gnu)
6596	    LD="${LD-ld} -m elf_i386_fbsd"
6597	    ;;
6598	  x86_64-*linux*)
6599	    case `/usr/bin/file conftest.o` in
6600	      *x86-64*)
6601		LD="${LD-ld} -m elf32_x86_64"
6602		;;
6603	      *)
6604		LD="${LD-ld} -m elf_i386"
6605		;;
6606	    esac
6607	    ;;
6608	  powerpc64le-*linux*)
6609	    LD="${LD-ld} -m elf32lppclinux"
6610	    ;;
6611	  powerpc64-*linux*)
6612	    LD="${LD-ld} -m elf32ppclinux"
6613	    ;;
6614	  s390x-*linux*)
6615	    LD="${LD-ld} -m elf_s390"
6616	    ;;
6617	  sparc64-*linux*)
6618	    LD="${LD-ld} -m elf32_sparc"
6619	    ;;
6620	esac
6621	;;
6622      *64-bit*)
6623	case $host in
6624	  x86_64-*kfreebsd*-gnu)
6625	    LD="${LD-ld} -m elf_x86_64_fbsd"
6626	    ;;
6627	  x86_64-*linux*)
6628	    LD="${LD-ld} -m elf_x86_64"
6629	    ;;
6630	  powerpcle-*linux*)
6631	    LD="${LD-ld} -m elf64lppc"
6632	    ;;
6633	  powerpc-*linux*)
6634	    LD="${LD-ld} -m elf64ppc"
6635	    ;;
6636	  s390*-*linux*|s390*-*tpf*)
6637	    LD="${LD-ld} -m elf64_s390"
6638	    ;;
6639	  sparc*-*linux*)
6640	    LD="${LD-ld} -m elf64_sparc"
6641	    ;;
6642	esac
6643	;;
6644    esac
6645  fi
6646  rm -rf conftest*
6647  ;;
6648
6649*-*-sco3.2v5*)
6650  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6651  SAVE_CFLAGS="$CFLAGS"
6652  CFLAGS="$CFLAGS -belf"
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6654$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6655if test "${lt_cv_cc_needs_belf+set}" = set; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666
6667int
6668main ()
6669{
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_link "$LINENO"; then :
6676  lt_cv_cc_needs_belf=yes
6677else
6678  lt_cv_cc_needs_belf=no
6679fi
6680rm -f core conftest.err conftest.$ac_objext \
6681    conftest$ac_exeext conftest.$ac_ext
6682     ac_ext=c
6683ac_cpp='$CPP $CPPFLAGS'
6684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6690$as_echo "$lt_cv_cc_needs_belf" >&6; }
6691  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6692    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6693    CFLAGS="$SAVE_CFLAGS"
6694  fi
6695  ;;
6696sparc*-*solaris*)
6697  # Find out which ABI we are using.
6698  echo 'int i;' > conftest.$ac_ext
6699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700  (eval $ac_compile) 2>&5
6701  ac_status=$?
6702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703  test $ac_status = 0; }; then
6704    case `/usr/bin/file conftest.o` in
6705    *64-bit*)
6706      case $lt_cv_prog_gnu_ld in
6707      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6708      *)
6709	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6710	  LD="${LD-ld} -64"
6711	fi
6712	;;
6713      esac
6714      ;;
6715    esac
6716  fi
6717  rm -rf conftest*
6718  ;;
6719esac
6720
6721need_locks="$enable_libtool_lock"
6722
6723
6724  case $host_os in
6725    rhapsody* | darwin*)
6726    if test -n "$ac_tool_prefix"; then
6727  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$DSYMUTIL"; then
6735  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755if test -n "$DSYMUTIL"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6757$as_echo "$DSYMUTIL" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_DSYMUTIL"; then
6766  ac_ct_DSYMUTIL=$DSYMUTIL
6767  # Extract the first word of "dsymutil", so it can be a program name with args.
6768set dummy dsymutil; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$ac_ct_DSYMUTIL"; then
6775  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795if test -n "$ac_ct_DSYMUTIL"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6797$as_echo "$ac_ct_DSYMUTIL" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803  if test "x$ac_ct_DSYMUTIL" = x; then
6804    DSYMUTIL=":"
6805  else
6806    case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812    DSYMUTIL=$ac_ct_DSYMUTIL
6813  fi
6814else
6815  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6816fi
6817
6818    if test -n "$ac_tool_prefix"; then
6819  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  if test -n "$NMEDIT"; then
6827  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832  IFS=$as_save_IFS
6833  test -z "$as_dir" && as_dir=.
6834    for ac_exec_ext in '' $ac_executable_extensions; do
6835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838    break 2
6839  fi
6840done
6841  done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846NMEDIT=$ac_cv_prog_NMEDIT
6847if test -n "$NMEDIT"; then
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6849$as_echo "$NMEDIT" >&6; }
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_NMEDIT"; then
6858  ac_ct_NMEDIT=$NMEDIT
6859  # Extract the first word of "nmedit", so it can be a program name with args.
6860set dummy nmedit; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$ac_ct_NMEDIT"; then
6867  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887if test -n "$ac_ct_NMEDIT"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6889$as_echo "$ac_ct_NMEDIT" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895  if test "x$ac_ct_NMEDIT" = x; then
6896    NMEDIT=":"
6897  else
6898    case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    NMEDIT=$ac_ct_NMEDIT
6905  fi
6906else
6907  NMEDIT="$ac_cv_prog_NMEDIT"
6908fi
6909
6910    if test -n "$ac_tool_prefix"; then
6911  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6912set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
6915if test "${ac_cv_prog_LIPO+set}" = set; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  if test -n "$LIPO"; then
6919  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926    for ac_exec_ext in '' $ac_executable_extensions; do
6927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933  done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938LIPO=$ac_cv_prog_LIPO
6939if test -n "$LIPO"; then
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6941$as_echo "$LIPO" >&6; }
6942else
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947
6948fi
6949if test -z "$ac_cv_prog_LIPO"; then
6950  ac_ct_LIPO=$LIPO
6951  # Extract the first word of "lipo", so it can be a program name with args.
6952set dummy lipo; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$ac_ct_LIPO"; then
6959  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968    ac_cv_prog_ac_ct_LIPO="lipo"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979if test -n "$ac_ct_LIPO"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6981$as_echo "$ac_ct_LIPO" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987  if test "x$ac_ct_LIPO" = x; then
6988    LIPO=":"
6989  else
6990    case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996    LIPO=$ac_ct_LIPO
6997  fi
6998else
6999  LIPO="$ac_cv_prog_LIPO"
7000fi
7001
7002    if test -n "$ac_tool_prefix"; then
7003  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7004set dummy ${ac_tool_prefix}otool; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
7007if test "${ac_cv_prog_OTOOL+set}" = set; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  if test -n "$OTOOL"; then
7011  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025  done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030OTOOL=$ac_cv_prog_OTOOL
7031if test -n "$OTOOL"; then
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7033$as_echo "$OTOOL" >&6; }
7034else
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040fi
7041if test -z "$ac_cv_prog_OTOOL"; then
7042  ac_ct_OTOOL=$OTOOL
7043  # Extract the first word of "otool", so it can be a program name with args.
7044set dummy otool; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  if test -n "$ac_ct_OTOOL"; then
7051  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058    for ac_exec_ext in '' $ac_executable_extensions; do
7059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060    ac_cv_prog_ac_ct_OTOOL="otool"
7061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065  done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071if test -n "$ac_ct_OTOOL"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7073$as_echo "$ac_ct_OTOOL" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079  if test "x$ac_ct_OTOOL" = x; then
7080    OTOOL=":"
7081  else
7082    case $cross_compiling:$ac_tool_warned in
7083yes:)
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088    OTOOL=$ac_ct_OTOOL
7089  fi
7090else
7091  OTOOL="$ac_cv_prog_OTOOL"
7092fi
7093
7094    if test -n "$ac_tool_prefix"; then
7095  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  if test -n "$OTOOL64"; then
7103  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_exec_ext in '' $ac_executable_extensions; do
7111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117  done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122OTOOL64=$ac_cv_prog_OTOOL64
7123if test -n "$OTOOL64"; then
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7125$as_echo "$OTOOL64" >&6; }
7126else
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_OTOOL64"; then
7134  ac_ct_OTOOL64=$OTOOL64
7135  # Extract the first word of "otool64", so it can be a program name with args.
7136set dummy otool64; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$ac_ct_OTOOL64"; then
7143  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_ac_ct_OTOOL64="otool64"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163if test -n "$ac_ct_OTOOL64"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7165$as_echo "$ac_ct_OTOOL64" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171  if test "x$ac_ct_OTOOL64" = x; then
7172    OTOOL64=":"
7173  else
7174    case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180    OTOOL64=$ac_ct_OTOOL64
7181  fi
7182else
7183  OTOOL64="$ac_cv_prog_OTOOL64"
7184fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7213$as_echo_n "checking for -single_module linker flag... " >&6; }
7214if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  lt_cv_apple_cc_single_mod=no
7218      if test -z "${LT_MULTI_MODULE}"; then
7219	# By default we will add the -single_module flag. You can override
7220	# by either setting the environment variable LT_MULTI_MODULE
7221	# non-empty at configure time, or by adding -multi_module to the
7222	# link flags.
7223	rm -rf libconftest.dylib*
7224	echo "int foo(void){return 1;}" > conftest.c
7225	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226-dynamiclib -Wl,-single_module conftest.c" >&5
7227	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7229        _lt_result=$?
7230	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7231	  lt_cv_apple_cc_single_mod=yes
7232	else
7233	  cat conftest.err >&5
7234	fi
7235	rm -rf libconftest.dylib*
7236	rm -f conftest.*
7237      fi
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7240$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7242$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7243if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  lt_cv_ld_exported_symbols_list=no
7247      save_LDFLAGS=$LDFLAGS
7248      echo "_main" > conftest.sym
7249      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7250      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_link "$LINENO"; then :
7262  lt_cv_ld_exported_symbols_list=yes
7263else
7264  lt_cv_ld_exported_symbols_list=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext \
7267    conftest$ac_exeext conftest.$ac_ext
7268	LDFLAGS="$save_LDFLAGS"
7269
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7272$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7274$as_echo_n "checking for -force_load linker flag... " >&6; }
7275if test "${lt_cv_ld_force_load+set}" = set; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  lt_cv_ld_force_load=no
7279      cat > conftest.c << _LT_EOF
7280int forced_loaded() { return 2;}
7281_LT_EOF
7282      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7283      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7284      echo "$AR cru libconftest.a conftest.o" >&5
7285      $AR cru libconftest.a conftest.o 2>&5
7286      cat > conftest.c << _LT_EOF
7287int main() { return 0;}
7288_LT_EOF
7289      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7290      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7291      _lt_result=$?
7292      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7293	lt_cv_ld_force_load=yes
7294      else
7295	cat conftest.err >&5
7296      fi
7297        rm -f conftest.err libconftest.a conftest conftest.c
7298        rm -rf conftest.dSYM
7299
7300fi
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7302$as_echo "$lt_cv_ld_force_load" >&6; }
7303    case $host_os in
7304    rhapsody* | darwin1.[012])
7305      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7306    darwin1.*)
7307      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308    darwin*) # darwin 5.x on
7309      # if running on 10.5 or later, the deployment target defaults
7310      # to the OS version, if on x86, and 10.4, the deployment
7311      # target defaults to 10.4. Don't you love it?
7312      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315	10.[012]*)
7316	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317	10.*)
7318	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7319      esac
7320    ;;
7321  esac
7322    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323      _lt_dar_single_mod='$single_module'
7324    fi
7325    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7327    else
7328      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7329    fi
7330    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7331      _lt_dsymutil='~$DSYMUTIL $lib || :'
7332    else
7333      _lt_dsymutil=
7334    fi
7335    ;;
7336  esac
7337
7338ac_ext=c
7339ac_cpp='$CPP $CPPFLAGS'
7340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7344$as_echo_n "checking how to run the C preprocessor... " >&6; }
7345# On Suns, sometimes $CPP names a directory.
7346if test -n "$CPP" && test -d "$CPP"; then
7347  CPP=
7348fi
7349if test -z "$CPP"; then
7350  if test "${ac_cv_prog_CPP+set}" = set; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353      # Double quotes because CPP needs to be expanded
7354    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7355    do
7356      ac_preproc_ok=false
7357for ac_c_preproc_warn_flag in '' yes
7358do
7359  # Use a header file that comes with gcc, so configuring glibc
7360  # with a fresh cross-compiler works.
7361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362  # <limits.h> exists even on freestanding compilers.
7363  # On the NeXT, cc -E runs the code through the compiler's parser,
7364  # not just through cpp. "Syntax error" is here to catch this case.
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367#ifdef __STDC__
7368# include <limits.h>
7369#else
7370# include <assert.h>
7371#endif
7372		     Syntax error
7373_ACEOF
7374if ac_fn_c_try_cpp "$LINENO"; then :
7375
7376else
7377  # Broken: fails on valid input.
7378continue
7379fi
7380rm -f conftest.err conftest.$ac_ext
7381
7382  # OK, works on sane cases.  Now check whether nonexistent headers
7383  # can be detected and how.
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386#include <ac_nonexistent.h>
7387_ACEOF
7388if ac_fn_c_try_cpp "$LINENO"; then :
7389  # Broken: success on invalid input.
7390continue
7391else
7392  # Passes both tests.
7393ac_preproc_ok=:
7394break
7395fi
7396rm -f conftest.err conftest.$ac_ext
7397
7398done
7399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7400rm -f conftest.err conftest.$ac_ext
7401if $ac_preproc_ok; then :
7402  break
7403fi
7404
7405    done
7406    ac_cv_prog_CPP=$CPP
7407
7408fi
7409  CPP=$ac_cv_prog_CPP
7410else
7411  ac_cv_prog_CPP=$CPP
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7414$as_echo "$CPP" >&6; }
7415ac_preproc_ok=false
7416for ac_c_preproc_warn_flag in '' yes
7417do
7418  # Use a header file that comes with gcc, so configuring glibc
7419  # with a fresh cross-compiler works.
7420  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7421  # <limits.h> exists even on freestanding compilers.
7422  # On the NeXT, cc -E runs the code through the compiler's parser,
7423  # not just through cpp. "Syntax error" is here to catch this case.
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426#ifdef __STDC__
7427# include <limits.h>
7428#else
7429# include <assert.h>
7430#endif
7431		     Syntax error
7432_ACEOF
7433if ac_fn_c_try_cpp "$LINENO"; then :
7434
7435else
7436  # Broken: fails on valid input.
7437continue
7438fi
7439rm -f conftest.err conftest.$ac_ext
7440
7441  # OK, works on sane cases.  Now check whether nonexistent headers
7442  # can be detected and how.
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445#include <ac_nonexistent.h>
7446_ACEOF
7447if ac_fn_c_try_cpp "$LINENO"; then :
7448  # Broken: success on invalid input.
7449continue
7450else
7451  # Passes both tests.
7452ac_preproc_ok=:
7453break
7454fi
7455rm -f conftest.err conftest.$ac_ext
7456
7457done
7458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7459rm -f conftest.err conftest.$ac_ext
7460if $ac_preproc_ok; then :
7461
7462else
7463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7465as_fn_error "C preprocessor \"$CPP\" fails sanity check
7466See \`config.log' for more details." "$LINENO" 5; }
7467fi
7468
7469ac_ext=c
7470ac_cpp='$CPP $CPPFLAGS'
7471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
7475
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7477$as_echo_n "checking for ANSI C header files... " >&6; }
7478if test "${ac_cv_header_stdc+set}" = set; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483#include <stdlib.h>
7484#include <stdarg.h>
7485#include <string.h>
7486#include <float.h>
7487
7488int
7489main ()
7490{
7491
7492  ;
7493  return 0;
7494}
7495_ACEOF
7496if ac_fn_c_try_compile "$LINENO"; then :
7497  ac_cv_header_stdc=yes
7498else
7499  ac_cv_header_stdc=no
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502
7503if test $ac_cv_header_stdc = yes; then
7504  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507#include <string.h>
7508
7509_ACEOF
7510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7511  $EGREP "memchr" >/dev/null 2>&1; then :
7512
7513else
7514  ac_cv_header_stdc=no
7515fi
7516rm -f conftest*
7517
7518fi
7519
7520if test $ac_cv_header_stdc = yes; then
7521  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524#include <stdlib.h>
7525
7526_ACEOF
7527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528  $EGREP "free" >/dev/null 2>&1; then :
7529
7530else
7531  ac_cv_header_stdc=no
7532fi
7533rm -f conftest*
7534
7535fi
7536
7537if test $ac_cv_header_stdc = yes; then
7538  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7539  if test "$cross_compiling" = yes; then :
7540  :
7541else
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544#include <ctype.h>
7545#include <stdlib.h>
7546#if ((' ' & 0x0FF) == 0x020)
7547# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7548# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7549#else
7550# define ISLOWER(c) \
7551		   (('a' <= (c) && (c) <= 'i') \
7552		     || ('j' <= (c) && (c) <= 'r') \
7553		     || ('s' <= (c) && (c) <= 'z'))
7554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7555#endif
7556
7557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7558int
7559main ()
7560{
7561  int i;
7562  for (i = 0; i < 256; i++)
7563    if (XOR (islower (i), ISLOWER (i))
7564	|| toupper (i) != TOUPPER (i))
7565      return 2;
7566  return 0;
7567}
7568_ACEOF
7569if ac_fn_c_try_run "$LINENO"; then :
7570
7571else
7572  ac_cv_header_stdc=no
7573fi
7574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7575  conftest.$ac_objext conftest.beam conftest.$ac_ext
7576fi
7577
7578fi
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7581$as_echo "$ac_cv_header_stdc" >&6; }
7582if test $ac_cv_header_stdc = yes; then
7583
7584$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7585
7586fi
7587
7588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7590		  inttypes.h stdint.h unistd.h
7591do :
7592  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7593ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7594"
7595eval as_val=\$$as_ac_Header
7596   if test "x$as_val" = x""yes; then :
7597  cat >>confdefs.h <<_ACEOF
7598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7599_ACEOF
7600
7601fi
7602
7603done
7604
7605
7606for ac_header in dlfcn.h
7607do :
7608  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7609"
7610if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7611  cat >>confdefs.h <<_ACEOF
7612#define HAVE_DLFCN_H 1
7613_ACEOF
7614
7615fi
7616
7617done
7618
7619
7620
7621
7622
7623# Set options
7624
7625
7626
7627        enable_dlopen=no
7628
7629
7630  enable_win32_dll=no
7631
7632
7633            # Check whether --enable-shared was given.
7634if test "${enable_shared+set}" = set; then :
7635  enableval=$enable_shared; p=${PACKAGE-default}
7636    case $enableval in
7637    yes) enable_shared=yes ;;
7638    no) enable_shared=no ;;
7639    *)
7640      enable_shared=no
7641      # Look at the argument we got.  We use all the common list separators.
7642      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7643      for pkg in $enableval; do
7644	IFS="$lt_save_ifs"
7645	if test "X$pkg" = "X$p"; then
7646	  enable_shared=yes
7647	fi
7648      done
7649      IFS="$lt_save_ifs"
7650      ;;
7651    esac
7652else
7653  enable_shared=yes
7654fi
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664  # Check whether --enable-static was given.
7665if test "${enable_static+set}" = set; then :
7666  enableval=$enable_static; p=${PACKAGE-default}
7667    case $enableval in
7668    yes) enable_static=yes ;;
7669    no) enable_static=no ;;
7670    *)
7671     enable_static=no
7672      # Look at the argument we got.  We use all the common list separators.
7673      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7674      for pkg in $enableval; do
7675	IFS="$lt_save_ifs"
7676	if test "X$pkg" = "X$p"; then
7677	  enable_static=yes
7678	fi
7679      done
7680      IFS="$lt_save_ifs"
7681      ;;
7682    esac
7683else
7684  enable_static=yes
7685fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696# Check whether --with-pic was given.
7697if test "${with_pic+set}" = set; then :
7698  withval=$with_pic; pic_mode="$withval"
7699else
7700  pic_mode=default
7701fi
7702
7703
7704test -z "$pic_mode" && pic_mode=default
7705
7706
7707
7708
7709
7710
7711
7712  # Check whether --enable-fast-install was given.
7713if test "${enable_fast_install+set}" = set; then :
7714  enableval=$enable_fast_install; p=${PACKAGE-default}
7715    case $enableval in
7716    yes) enable_fast_install=yes ;;
7717    no) enable_fast_install=no ;;
7718    *)
7719      enable_fast_install=no
7720      # Look at the argument we got.  We use all the common list separators.
7721      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7722      for pkg in $enableval; do
7723	IFS="$lt_save_ifs"
7724	if test "X$pkg" = "X$p"; then
7725	  enable_fast_install=yes
7726	fi
7727      done
7728      IFS="$lt_save_ifs"
7729      ;;
7730    esac
7731else
7732  enable_fast_install=yes
7733fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745# This can be used to rebuild libtool when needed
7746LIBTOOL_DEPS="$ltmain"
7747
7748# Always use our own libtool.
7749LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776test -z "$LN_S" && LN_S="ln -s"
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791if test -n "${ZSH_VERSION+set}" ; then
7792   setopt NO_GLOB_SUBST
7793fi
7794
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7796$as_echo_n "checking for objdir... " >&6; }
7797if test "${lt_cv_objdir+set}" = set; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  rm -f .libs 2>/dev/null
7801mkdir .libs 2>/dev/null
7802if test -d .libs; then
7803  lt_cv_objdir=.libs
7804else
7805  # MS-DOS does not allow filenames that begin with a dot.
7806  lt_cv_objdir=_libs
7807fi
7808rmdir .libs 2>/dev/null
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7811$as_echo "$lt_cv_objdir" >&6; }
7812objdir=$lt_cv_objdir
7813
7814
7815
7816
7817
7818cat >>confdefs.h <<_ACEOF
7819#define LT_OBJDIR "$lt_cv_objdir/"
7820_ACEOF
7821
7822
7823
7824
7825case $host_os in
7826aix3*)
7827  # AIX sometimes has problems with the GCC collect2 program.  For some
7828  # reason, if we set the COLLECT_NAMES environment variable, the problems
7829  # vanish in a puff of smoke.
7830  if test "X${COLLECT_NAMES+set}" != Xset; then
7831    COLLECT_NAMES=
7832    export COLLECT_NAMES
7833  fi
7834  ;;
7835esac
7836
7837# Global variables:
7838ofile=libtool
7839can_build_shared=yes
7840
7841# All known linkers require a `.a' archive for static linking (except MSVC,
7842# which needs '.lib').
7843libext=a
7844
7845with_gnu_ld="$lt_cv_prog_gnu_ld"
7846
7847old_CC="$CC"
7848old_CFLAGS="$CFLAGS"
7849
7850# Set sane defaults for various variables
7851test -z "$CC" && CC=cc
7852test -z "$LTCC" && LTCC=$CC
7853test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7854test -z "$LD" && LD=ld
7855test -z "$ac_objext" && ac_objext=o
7856
7857for cc_temp in $compiler""; do
7858  case $cc_temp in
7859    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7860    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7861    \-*) ;;
7862    *) break;;
7863  esac
7864done
7865cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7866
7867
7868# Only perform the check for file, if the check method requires it
7869test -z "$MAGIC_CMD" && MAGIC_CMD=file
7870case $deplibs_check_method in
7871file_magic*)
7872  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7874$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7875if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  case $MAGIC_CMD in
7879[\\/*] |  ?:[\\/]*)
7880  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7881  ;;
7882*)
7883  lt_save_MAGIC_CMD="$MAGIC_CMD"
7884  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7885  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7886  for ac_dir in $ac_dummy; do
7887    IFS="$lt_save_ifs"
7888    test -z "$ac_dir" && ac_dir=.
7889    if test -f $ac_dir/${ac_tool_prefix}file; then
7890      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7891      if test -n "$file_magic_test_file"; then
7892	case $deplibs_check_method in
7893	"file_magic "*)
7894	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7895	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7897	    $EGREP "$file_magic_regex" > /dev/null; then
7898	    :
7899	  else
7900	    cat <<_LT_EOF 1>&2
7901
7902*** Warning: the command libtool uses to detect shared libraries,
7903*** $file_magic_cmd, produces output that libtool cannot recognize.
7904*** The result is that libtool may fail to recognize shared libraries
7905*** as such.  This will affect the creation of libtool libraries that
7906*** depend on shared libraries, but programs linked with such libtool
7907*** libraries will work regardless of this problem.  Nevertheless, you
7908*** may want to report the problem to your system manager and/or to
7909*** bug-libtool@gnu.org
7910
7911_LT_EOF
7912	  fi ;;
7913	esac
7914      fi
7915      break
7916    fi
7917  done
7918  IFS="$lt_save_ifs"
7919  MAGIC_CMD="$lt_save_MAGIC_CMD"
7920  ;;
7921esac
7922fi
7923
7924MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925if test -n "$MAGIC_CMD"; then
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7927$as_echo "$MAGIC_CMD" >&6; }
7928else
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
7934
7935
7936
7937if test -z "$lt_cv_path_MAGIC_CMD"; then
7938  if test -n "$ac_tool_prefix"; then
7939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7940$as_echo_n "checking for file... " >&6; }
7941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  case $MAGIC_CMD in
7945[\\/*] |  ?:[\\/]*)
7946  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7947  ;;
7948*)
7949  lt_save_MAGIC_CMD="$MAGIC_CMD"
7950  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7951  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7952  for ac_dir in $ac_dummy; do
7953    IFS="$lt_save_ifs"
7954    test -z "$ac_dir" && ac_dir=.
7955    if test -f $ac_dir/file; then
7956      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7957      if test -n "$file_magic_test_file"; then
7958	case $deplibs_check_method in
7959	"file_magic "*)
7960	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7961	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7963	    $EGREP "$file_magic_regex" > /dev/null; then
7964	    :
7965	  else
7966	    cat <<_LT_EOF 1>&2
7967
7968*** Warning: the command libtool uses to detect shared libraries,
7969*** $file_magic_cmd, produces output that libtool cannot recognize.
7970*** The result is that libtool may fail to recognize shared libraries
7971*** as such.  This will affect the creation of libtool libraries that
7972*** depend on shared libraries, but programs linked with such libtool
7973*** libraries will work regardless of this problem.  Nevertheless, you
7974*** may want to report the problem to your system manager and/or to
7975*** bug-libtool@gnu.org
7976
7977_LT_EOF
7978	  fi ;;
7979	esac
7980      fi
7981      break
7982    fi
7983  done
7984  IFS="$lt_save_ifs"
7985  MAGIC_CMD="$lt_save_MAGIC_CMD"
7986  ;;
7987esac
7988fi
7989
7990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991if test -n "$MAGIC_CMD"; then
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7993$as_echo "$MAGIC_CMD" >&6; }
7994else
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999
8000  else
8001    MAGIC_CMD=:
8002  fi
8003fi
8004
8005  fi
8006  ;;
8007esac
8008
8009# Use C for the default configuration in the libtool script
8010
8011lt_save_CC="$CC"
8012ac_ext=c
8013ac_cpp='$CPP $CPPFLAGS'
8014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017
8018
8019# Source file extension for C test sources.
8020ac_ext=c
8021
8022# Object file extension for compiled C test sources.
8023objext=o
8024objext=$objext
8025
8026# Code to be used in simple compile tests
8027lt_simple_compile_test_code="int some_variable = 0;"
8028
8029# Code to be used in simple link tests
8030lt_simple_link_test_code='int main(){return(0);}'
8031
8032
8033
8034
8035
8036
8037
8038# If no C compiler was specified, use CC.
8039LTCC=${LTCC-"$CC"}
8040
8041# If no C compiler flags were specified, use CFLAGS.
8042LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8043
8044# Allow CC to be a program name with arguments.
8045compiler=$CC
8046
8047# Save the default compiler, since it gets overwritten when the other
8048# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8049compiler_DEFAULT=$CC
8050
8051# save warnings/boilerplate of simple test code
8052ac_outfile=conftest.$ac_objext
8053echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8055_lt_compiler_boilerplate=`cat conftest.err`
8056$RM conftest*
8057
8058ac_outfile=conftest.$ac_objext
8059echo "$lt_simple_link_test_code" >conftest.$ac_ext
8060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8061_lt_linker_boilerplate=`cat conftest.err`
8062$RM -r conftest*
8063
8064
8065## CAVEAT EMPTOR:
8066## There is no encapsulation within the following macros, do not change
8067## the running order or otherwise move them around unless you know exactly
8068## what you are doing...
8069if test -n "$compiler"; then
8070
8071lt_prog_compiler_no_builtin_flag=
8072
8073if test "$GCC" = yes; then
8074  case $cc_basename in
8075  nvcc*)
8076    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8077  *)
8078    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8079  esac
8080
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8082$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8083if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  lt_cv_prog_compiler_rtti_exceptions=no
8087   ac_outfile=conftest.$ac_objext
8088   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8089   lt_compiler_flag="-fno-rtti -fno-exceptions"
8090   # Insert the option either (1) after the last *FLAGS variable, or
8091   # (2) before a word containing "conftest.", or (3) at the end.
8092   # Note that $ac_compile itself does not contain backslashes and begins
8093   # with a dollar sign (not a hyphen), so the echo should work correctly.
8094   # The option is referenced via a variable to avoid confusing sed.
8095   lt_compile=`echo "$ac_compile" | $SED \
8096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098   -e 's:$: $lt_compiler_flag:'`
8099   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8100   (eval "$lt_compile" 2>conftest.err)
8101   ac_status=$?
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   if (exit $ac_status) && test -s "$ac_outfile"; then
8105     # The compiler can only warn and ignore the option if not recognized
8106     # So say no if there are warnings other than the usual output.
8107     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8108     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110       lt_cv_prog_compiler_rtti_exceptions=yes
8111     fi
8112   fi
8113   $RM conftest*
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8117$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8118
8119if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8120    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8121else
8122    :
8123fi
8124
8125fi
8126
8127
8128
8129
8130
8131
8132  lt_prog_compiler_wl=
8133lt_prog_compiler_pic=
8134lt_prog_compiler_static=
8135
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8137$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8138
8139  if test "$GCC" = yes; then
8140    lt_prog_compiler_wl='-Wl,'
8141    lt_prog_compiler_static='-static'
8142
8143    case $host_os in
8144      aix*)
8145      # All AIX code is PIC.
8146      if test "$host_cpu" = ia64; then
8147	# AIX 5 now supports IA64 processor
8148	lt_prog_compiler_static='-Bstatic'
8149      fi
8150      lt_prog_compiler_pic='-fPIC'
8151      ;;
8152
8153    amigaos*)
8154      case $host_cpu in
8155      powerpc)
8156            # see comment about AmigaOS4 .so support
8157            lt_prog_compiler_pic='-fPIC'
8158        ;;
8159      m68k)
8160            # FIXME: we need at least 68020 code to build shared libraries, but
8161            # adding the `-m68020' flag to GCC prevents building anything better,
8162            # like `-m68040'.
8163            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8164        ;;
8165      esac
8166      ;;
8167
8168    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8169      # PIC is the default for these OSes.
8170      ;;
8171
8172    mingw* | cygwin* | pw32* | os2* | cegcc*)
8173      # This hack is so that the source file can tell whether it is being
8174      # built for inclusion in a dll (and should export symbols for example).
8175      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8176      # (--disable-auto-import) libraries
8177      lt_prog_compiler_pic='-DDLL_EXPORT'
8178      ;;
8179
8180    darwin* | rhapsody*)
8181      # PIC is the default on this platform
8182      # Common symbols not allowed in MH_DYLIB files
8183      lt_prog_compiler_pic='-fno-common'
8184      ;;
8185
8186    haiku*)
8187      # PIC is the default for Haiku.
8188      # The "-static" flag exists, but is broken.
8189      lt_prog_compiler_static=
8190      ;;
8191
8192    hpux*)
8193      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8194      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8195      # sets the default TLS model and affects inlining.
8196      case $host_cpu in
8197      hppa*64*)
8198	# +Z the default
8199	;;
8200      *)
8201	lt_prog_compiler_pic='-fPIC'
8202	;;
8203      esac
8204      ;;
8205
8206    interix[3-9]*)
8207      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8208      # Instead, we relocate shared libraries at runtime.
8209      ;;
8210
8211    msdosdjgpp*)
8212      # Just because we use GCC doesn't mean we suddenly get shared libraries
8213      # on systems that don't support them.
8214      lt_prog_compiler_can_build_shared=no
8215      enable_shared=no
8216      ;;
8217
8218    *nto* | *qnx*)
8219      # QNX uses GNU C++, but need to define -shared option too, otherwise
8220      # it will coredump.
8221      lt_prog_compiler_pic='-fPIC -shared'
8222      ;;
8223
8224    sysv4*MP*)
8225      if test -d /usr/nec; then
8226	lt_prog_compiler_pic=-Kconform_pic
8227      fi
8228      ;;
8229
8230    *)
8231      lt_prog_compiler_pic='-fPIC'
8232      ;;
8233    esac
8234
8235    case $cc_basename in
8236    nvcc*) # Cuda Compiler Driver 2.2
8237      lt_prog_compiler_wl='-Xlinker '
8238      lt_prog_compiler_pic='-Xcompiler -fPIC'
8239      ;;
8240    esac
8241  else
8242    # PORTME Check for flag to pass linker flags through the system compiler.
8243    case $host_os in
8244    aix*)
8245      lt_prog_compiler_wl='-Wl,'
8246      if test "$host_cpu" = ia64; then
8247	# AIX 5 now supports IA64 processor
8248	lt_prog_compiler_static='-Bstatic'
8249      else
8250	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8251      fi
8252      ;;
8253
8254    mingw* | cygwin* | pw32* | os2* | cegcc*)
8255      # This hack is so that the source file can tell whether it is being
8256      # built for inclusion in a dll (and should export symbols for example).
8257      lt_prog_compiler_pic='-DDLL_EXPORT'
8258      ;;
8259
8260    hpux9* | hpux10* | hpux11*)
8261      lt_prog_compiler_wl='-Wl,'
8262      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8263      # not for PA HP-UX.
8264      case $host_cpu in
8265      hppa*64*|ia64*)
8266	# +Z the default
8267	;;
8268      *)
8269	lt_prog_compiler_pic='+Z'
8270	;;
8271      esac
8272      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8273      lt_prog_compiler_static='${wl}-a ${wl}archive'
8274      ;;
8275
8276    irix5* | irix6* | nonstopux*)
8277      lt_prog_compiler_wl='-Wl,'
8278      # PIC (with -KPIC) is the default.
8279      lt_prog_compiler_static='-non_shared'
8280      ;;
8281
8282    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8283      case $cc_basename in
8284      # old Intel for x86_64 which still supported -KPIC.
8285      ecc*)
8286	lt_prog_compiler_wl='-Wl,'
8287	lt_prog_compiler_pic='-KPIC'
8288	lt_prog_compiler_static='-static'
8289        ;;
8290      # icc used to be incompatible with GCC.
8291      # ICC 10 doesn't accept -KPIC any more.
8292      icc* | ifort*)
8293	lt_prog_compiler_wl='-Wl,'
8294	lt_prog_compiler_pic='-fPIC'
8295	lt_prog_compiler_static='-static'
8296        ;;
8297      # Lahey Fortran 8.1.
8298      lf95*)
8299	lt_prog_compiler_wl='-Wl,'
8300	lt_prog_compiler_pic='--shared'
8301	lt_prog_compiler_static='--static'
8302	;;
8303      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8304        # Portland Group compilers (*not* the Pentium gcc compiler,
8305	# which looks to be a dead project)
8306	lt_prog_compiler_wl='-Wl,'
8307	lt_prog_compiler_pic='-fpic'
8308	lt_prog_compiler_static='-Bstatic'
8309        ;;
8310      ccc*)
8311        lt_prog_compiler_wl='-Wl,'
8312        # All Alpha code is PIC.
8313        lt_prog_compiler_static='-non_shared'
8314        ;;
8315      xl* | bgxl* | bgf* | mpixl*)
8316	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8317	lt_prog_compiler_wl='-Wl,'
8318	lt_prog_compiler_pic='-qpic'
8319	lt_prog_compiler_static='-qstaticlink'
8320	;;
8321      *)
8322	case `$CC -V 2>&1 | sed 5q` in
8323	*Sun\ F* | *Sun*Fortran*)
8324	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8325	  lt_prog_compiler_pic='-KPIC'
8326	  lt_prog_compiler_static='-Bstatic'
8327	  lt_prog_compiler_wl=''
8328	  ;;
8329	*Sun\ C*)
8330	  # Sun C 5.9
8331	  lt_prog_compiler_pic='-KPIC'
8332	  lt_prog_compiler_static='-Bstatic'
8333	  lt_prog_compiler_wl='-Wl,'
8334	  ;;
8335	esac
8336	;;
8337      esac
8338      ;;
8339
8340    newsos6)
8341      lt_prog_compiler_pic='-KPIC'
8342      lt_prog_compiler_static='-Bstatic'
8343      ;;
8344
8345    *nto* | *qnx*)
8346      # QNX uses GNU C++, but need to define -shared option too, otherwise
8347      # it will coredump.
8348      lt_prog_compiler_pic='-fPIC -shared'
8349      ;;
8350
8351    osf3* | osf4* | osf5*)
8352      lt_prog_compiler_wl='-Wl,'
8353      # All OSF/1 code is PIC.
8354      lt_prog_compiler_static='-non_shared'
8355      ;;
8356
8357    rdos*)
8358      lt_prog_compiler_static='-non_shared'
8359      ;;
8360
8361    solaris*)
8362      lt_prog_compiler_pic='-KPIC'
8363      lt_prog_compiler_static='-Bstatic'
8364      case $cc_basename in
8365      f77* | f90* | f95*)
8366	lt_prog_compiler_wl='-Qoption ld ';;
8367      *)
8368	lt_prog_compiler_wl='-Wl,';;
8369      esac
8370      ;;
8371
8372    sunos4*)
8373      lt_prog_compiler_wl='-Qoption ld '
8374      lt_prog_compiler_pic='-PIC'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    sysv4 | sysv4.2uw2* | sysv4.3*)
8379      lt_prog_compiler_wl='-Wl,'
8380      lt_prog_compiler_pic='-KPIC'
8381      lt_prog_compiler_static='-Bstatic'
8382      ;;
8383
8384    sysv4*MP*)
8385      if test -d /usr/nec ;then
8386	lt_prog_compiler_pic='-Kconform_pic'
8387	lt_prog_compiler_static='-Bstatic'
8388      fi
8389      ;;
8390
8391    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8392      lt_prog_compiler_wl='-Wl,'
8393      lt_prog_compiler_pic='-KPIC'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    unicos*)
8398      lt_prog_compiler_wl='-Wl,'
8399      lt_prog_compiler_can_build_shared=no
8400      ;;
8401
8402    uts4*)
8403      lt_prog_compiler_pic='-pic'
8404      lt_prog_compiler_static='-Bstatic'
8405      ;;
8406
8407    *)
8408      lt_prog_compiler_can_build_shared=no
8409      ;;
8410    esac
8411  fi
8412
8413case $host_os in
8414  # For platforms which do not support PIC, -DPIC is meaningless:
8415  *djgpp*)
8416    lt_prog_compiler_pic=
8417    ;;
8418  *)
8419    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420    ;;
8421esac
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8423$as_echo "$lt_prog_compiler_pic" >&6; }
8424
8425
8426
8427
8428
8429
8430#
8431# Check to make sure the PIC flag actually works.
8432#
8433if test -n "$lt_prog_compiler_pic"; then
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8435$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8436if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_prog_compiler_pic_works=no
8440   ac_outfile=conftest.$ac_objext
8441   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8443   # Insert the option either (1) after the last *FLAGS variable, or
8444   # (2) before a word containing "conftest.", or (3) at the end.
8445   # Note that $ac_compile itself does not contain backslashes and begins
8446   # with a dollar sign (not a hyphen), so the echo should work correctly.
8447   # The option is referenced via a variable to avoid confusing sed.
8448   lt_compile=`echo "$ac_compile" | $SED \
8449   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451   -e 's:$: $lt_compiler_flag:'`
8452   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8453   (eval "$lt_compile" 2>conftest.err)
8454   ac_status=$?
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   if (exit $ac_status) && test -s "$ac_outfile"; then
8458     # The compiler can only warn and ignore the option if not recognized
8459     # So say no if there are warnings other than the usual output.
8460     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8461     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8463       lt_cv_prog_compiler_pic_works=yes
8464     fi
8465   fi
8466   $RM conftest*
8467
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8470$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8471
8472if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8473    case $lt_prog_compiler_pic in
8474     "" | " "*) ;;
8475     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8476     esac
8477else
8478    lt_prog_compiler_pic=
8479     lt_prog_compiler_can_build_shared=no
8480fi
8481
8482fi
8483
8484
8485
8486
8487
8488
8489#
8490# Check to make sure the static flag actually works.
8491#
8492wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8494$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8495if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  lt_cv_prog_compiler_static_works=no
8499   save_LDFLAGS="$LDFLAGS"
8500   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8501   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8502   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8503     # The linker can only warn and ignore the option if not recognized
8504     # So say no if there are warnings
8505     if test -s conftest.err; then
8506       # Append any errors to the config.log.
8507       cat conftest.err 1>&5
8508       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8509       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510       if diff conftest.exp conftest.er2 >/dev/null; then
8511         lt_cv_prog_compiler_static_works=yes
8512       fi
8513     else
8514       lt_cv_prog_compiler_static_works=yes
8515     fi
8516   fi
8517   $RM -r conftest*
8518   LDFLAGS="$save_LDFLAGS"
8519
8520fi
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8522$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8523
8524if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8525    :
8526else
8527    lt_prog_compiler_static=
8528fi
8529
8530
8531
8532
8533
8534
8535
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8537$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8538if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  lt_cv_prog_compiler_c_o=no
8542   $RM -r conftest 2>/dev/null
8543   mkdir conftest
8544   cd conftest
8545   mkdir out
8546   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547
8548   lt_compiler_flag="-o out/conftest2.$ac_objext"
8549   # Insert the option either (1) after the last *FLAGS variable, or
8550   # (2) before a word containing "conftest.", or (3) at the end.
8551   # Note that $ac_compile itself does not contain backslashes and begins
8552   # with a dollar sign (not a hyphen), so the echo should work correctly.
8553   lt_compile=`echo "$ac_compile" | $SED \
8554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556   -e 's:$: $lt_compiler_flag:'`
8557   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558   (eval "$lt_compile" 2>out/conftest.err)
8559   ac_status=$?
8560   cat out/conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8563   then
8564     # The compiler can only warn and ignore the option if not recognized
8565     # So say no if there are warnings
8566     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8567     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8568     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8569       lt_cv_prog_compiler_c_o=yes
8570     fi
8571   fi
8572   chmod u+w . 2>&5
8573   $RM conftest*
8574   # SGI C++ compiler will create directory out/ii_files/ for
8575   # template instantiation
8576   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8577   $RM out/* && rmdir out
8578   cd ..
8579   $RM -r conftest
8580   $RM conftest*
8581
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8584$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8585
8586
8587
8588
8589
8590
8591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8593if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  lt_cv_prog_compiler_c_o=no
8597   $RM -r conftest 2>/dev/null
8598   mkdir conftest
8599   cd conftest
8600   mkdir out
8601   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
8603   lt_compiler_flag="-o out/conftest2.$ac_objext"
8604   # Insert the option either (1) after the last *FLAGS variable, or
8605   # (2) before a word containing "conftest.", or (3) at the end.
8606   # Note that $ac_compile itself does not contain backslashes and begins
8607   # with a dollar sign (not a hyphen), so the echo should work correctly.
8608   lt_compile=`echo "$ac_compile" | $SED \
8609   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8610   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8611   -e 's:$: $lt_compiler_flag:'`
8612   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8613   (eval "$lt_compile" 2>out/conftest.err)
8614   ac_status=$?
8615   cat out/conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8618   then
8619     # The compiler can only warn and ignore the option if not recognized
8620     # So say no if there are warnings
8621     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8622     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8623     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8624       lt_cv_prog_compiler_c_o=yes
8625     fi
8626   fi
8627   chmod u+w . 2>&5
8628   $RM conftest*
8629   # SGI C++ compiler will create directory out/ii_files/ for
8630   # template instantiation
8631   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8632   $RM out/* && rmdir out
8633   cd ..
8634   $RM -r conftest
8635   $RM conftest*
8636
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8639$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8640
8641
8642
8643
8644hard_links="nottested"
8645if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8646  # do not overwrite the value of need_locks provided by the user
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8648$as_echo_n "checking if we can lock with hard links... " >&6; }
8649  hard_links=yes
8650  $RM conftest*
8651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652  touch conftest.a
8653  ln conftest.a conftest.b 2>&5 || hard_links=no
8654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8656$as_echo "$hard_links" >&6; }
8657  if test "$hard_links" = no; then
8658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8659$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8660    need_locks=warn
8661  fi
8662else
8663  need_locks=no
8664fi
8665
8666
8667
8668
8669
8670
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8672$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8673
8674  runpath_var=
8675  allow_undefined_flag=
8676  always_export_symbols=no
8677  archive_cmds=
8678  archive_expsym_cmds=
8679  compiler_needs_object=no
8680  enable_shared_with_static_runtimes=no
8681  export_dynamic_flag_spec=
8682  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683  hardcode_automatic=no
8684  hardcode_direct=no
8685  hardcode_direct_absolute=no
8686  hardcode_libdir_flag_spec=
8687  hardcode_libdir_flag_spec_ld=
8688  hardcode_libdir_separator=
8689  hardcode_minus_L=no
8690  hardcode_shlibpath_var=unsupported
8691  inherit_rpath=no
8692  link_all_deplibs=unknown
8693  module_cmds=
8694  module_expsym_cmds=
8695  old_archive_from_new_cmds=
8696  old_archive_from_expsyms_cmds=
8697  thread_safe_flag_spec=
8698  whole_archive_flag_spec=
8699  # include_expsyms should be a list of space-separated symbols to be *always*
8700  # included in the symbol list
8701  include_expsyms=
8702  # exclude_expsyms can be an extended regexp of symbols to exclude
8703  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8704  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8705  # as well as any symbol that contains `d'.
8706  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8707  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8708  # platforms (ab)use it in PIC code, but their linkers get confused if
8709  # the symbol is explicitly referenced.  Since portable code cannot
8710  # rely on this symbol name, it's probably fine to never include it in
8711  # preloaded symbol tables.
8712  # Exclude shared library initialization/finalization symbols.
8713  extract_expsyms_cmds=
8714
8715  case $host_os in
8716  cygwin* | mingw* | pw32* | cegcc*)
8717    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8718    # When not using gcc, we currently assume that we are using
8719    # Microsoft Visual C++.
8720    if test "$GCC" != yes; then
8721      with_gnu_ld=no
8722    fi
8723    ;;
8724  interix*)
8725    # we just hope/assume this is gcc and not c89 (= MSVC++)
8726    with_gnu_ld=yes
8727    ;;
8728  openbsd*)
8729    with_gnu_ld=no
8730    ;;
8731  esac
8732
8733  ld_shlibs=yes
8734
8735  # On some targets, GNU ld is compatible enough with the native linker
8736  # that we're better off using the native interface for both.
8737  lt_use_gnu_ld_interface=no
8738  if test "$with_gnu_ld" = yes; then
8739    case $host_os in
8740      aix*)
8741	# The AIX port of GNU ld has always aspired to compatibility
8742	# with the native linker.  However, as the warning in the GNU ld
8743	# block says, versions before 2.19.5* couldn't really create working
8744	# shared libraries, regardless of the interface used.
8745	case `$LD -v 2>&1` in
8746	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8747	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8748	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8749	  *)
8750	    lt_use_gnu_ld_interface=yes
8751	    ;;
8752	esac
8753	;;
8754      *)
8755	lt_use_gnu_ld_interface=yes
8756	;;
8757    esac
8758  fi
8759
8760  if test "$lt_use_gnu_ld_interface" = yes; then
8761    # If archive_cmds runs LD, not CC, wlarc should be empty
8762    wlarc='${wl}'
8763
8764    # Set some defaults for GNU ld with shared library support. These
8765    # are reset later if shared libraries are not supported. Putting them
8766    # here allows them to be overridden if necessary.
8767    runpath_var=LD_RUN_PATH
8768    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769    export_dynamic_flag_spec='${wl}--export-dynamic'
8770    # ancient GNU ld didn't support --whole-archive et. al.
8771    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8772      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8773    else
8774      whole_archive_flag_spec=
8775    fi
8776    supports_anon_versioning=no
8777    case `$LD -v 2>&1` in
8778      *GNU\ gold*) supports_anon_versioning=yes ;;
8779      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8780      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8781      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8782      *\ 2.11.*) ;; # other 2.11 versions
8783      *) supports_anon_versioning=yes ;;
8784    esac
8785
8786    # See if GNU ld supports shared libraries.
8787    case $host_os in
8788    aix[3-9]*)
8789      # On AIX/PPC, the GNU linker is very broken
8790      if test "$host_cpu" != ia64; then
8791	ld_shlibs=no
8792	cat <<_LT_EOF 1>&2
8793
8794*** Warning: the GNU linker, at least up to release 2.19, is reported
8795*** to be unable to reliably create shared libraries on AIX.
8796*** Therefore, libtool is disabling shared libraries support.  If you
8797*** really care for shared libraries, you may want to install binutils
8798*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8799*** You will then need to restart the configuration process.
8800
8801_LT_EOF
8802      fi
8803      ;;
8804
8805    amigaos*)
8806      case $host_cpu in
8807      powerpc)
8808            # see comment about AmigaOS4 .so support
8809            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810            archive_expsym_cmds=''
8811        ;;
8812      m68k)
8813            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)'
8814            hardcode_libdir_flag_spec='-L$libdir'
8815            hardcode_minus_L=yes
8816        ;;
8817      esac
8818      ;;
8819
8820    beos*)
8821      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8822	allow_undefined_flag=unsupported
8823	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8824	# support --undefined.  This deserves some investigation.  FIXME
8825	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826      else
8827	ld_shlibs=no
8828      fi
8829      ;;
8830
8831    cygwin* | mingw* | pw32* | cegcc*)
8832      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8833      # as there is no search path for DLLs.
8834      hardcode_libdir_flag_spec='-L$libdir'
8835      export_dynamic_flag_spec='${wl}--export-all-symbols'
8836      allow_undefined_flag=unsupported
8837      always_export_symbols=no
8838      enable_shared_with_static_runtimes=yes
8839      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8840
8841      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8842        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8843	# If the export-symbols file already is a .def file (1st line
8844	# is EXPORTS), use it as is; otherwise, prepend...
8845	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8846	  cp $export_symbols $output_objdir/$soname.def;
8847	else
8848	  echo EXPORTS > $output_objdir/$soname.def;
8849	  cat $export_symbols >> $output_objdir/$soname.def;
8850	fi~
8851	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8852      else
8853	ld_shlibs=no
8854      fi
8855      ;;
8856
8857    haiku*)
8858      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859      link_all_deplibs=yes
8860      ;;
8861
8862    interix[3-9]*)
8863      hardcode_direct=no
8864      hardcode_shlibpath_var=no
8865      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866      export_dynamic_flag_spec='${wl}-E'
8867      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868      # Instead, shared libraries are loaded at an image base (0x10000000 by
8869      # default) and relocated if they conflict, which is a slow very memory
8870      # consuming and fragmenting process.  To avoid this, we pick a random,
8871      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8873      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874      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'
8875      ;;
8876
8877    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8878      tmp_diet=no
8879      if test "$host_os" = linux-dietlibc; then
8880	case $cc_basename in
8881	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8882	esac
8883      fi
8884      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885	 && test "$tmp_diet" = no
8886      then
8887	tmp_addflag=
8888	tmp_sharedflag='-shared'
8889	case $cc_basename,$host_cpu in
8890        pgcc*)				# Portland Group C compiler
8891	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8892	  tmp_addflag=' $pic_flag'
8893	  ;;
8894	pgf77* | pgf90* | pgf95* | pgfortran*)
8895					# Portland Group f77 and f90 compilers
8896	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8897	  tmp_addflag=' $pic_flag -Mnomain' ;;
8898	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8899	  tmp_addflag=' -i_dynamic' ;;
8900	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8901	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8902	ifc* | ifort*)			# Intel Fortran compiler
8903	  tmp_addflag=' -nofor_main' ;;
8904	lf95*)				# Lahey Fortran 8.1
8905	  whole_archive_flag_spec=
8906	  tmp_sharedflag='--shared' ;;
8907	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8908	  tmp_sharedflag='-qmkshrobj'
8909	  tmp_addflag= ;;
8910	nvcc*)	# Cuda Compiler Driver 2.2
8911	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8912	  compiler_needs_object=yes
8913	  ;;
8914	esac
8915	case `$CC -V 2>&1 | sed 5q` in
8916	*Sun\ C*)			# Sun C 5.9
8917	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8918	  compiler_needs_object=yes
8919	  tmp_sharedflag='-G' ;;
8920	*Sun\ F*)			# Sun Fortran 8.3
8921	  tmp_sharedflag='-G' ;;
8922	esac
8923	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924
8925        if test "x$supports_anon_versioning" = xyes; then
8926          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928	    echo "local: *; };" >> $output_objdir/$libname.ver~
8929	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930        fi
8931
8932	case $cc_basename in
8933	xlf* | bgf* | bgxlf* | mpixlf*)
8934	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936	  hardcode_libdir_flag_spec=
8937	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8938	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8939	  if test "x$supports_anon_versioning" = xyes; then
8940	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8941	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8942	      echo "local: *; };" >> $output_objdir/$libname.ver~
8943	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8944	  fi
8945	  ;;
8946	esac
8947      else
8948        ld_shlibs=no
8949      fi
8950      ;;
8951
8952    netbsd*)
8953      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8954	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8955	wlarc=
8956      else
8957	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8959      fi
8960      ;;
8961
8962    solaris*)
8963      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8964	ld_shlibs=no
8965	cat <<_LT_EOF 1>&2
8966
8967*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8968*** create shared libraries on Solaris systems.  Therefore, libtool
8969*** is disabling shared libraries support.  We urge you to upgrade GNU
8970*** binutils to release 2.9.1 or newer.  Another option is to modify
8971*** your PATH or compiler configuration so that the native linker is
8972*** used, and then restart.
8973
8974_LT_EOF
8975      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8976	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978      else
8979	ld_shlibs=no
8980      fi
8981      ;;
8982
8983    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8984      case `$LD -v 2>&1` in
8985        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8986	ld_shlibs=no
8987	cat <<_LT_EOF 1>&2
8988
8989*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8990*** reliably create shared libraries on SCO systems.  Therefore, libtool
8991*** is disabling shared libraries support.  We urge you to upgrade GNU
8992*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8993*** your PATH or compiler configuration so that the native linker is
8994*** used, and then restart.
8995
8996_LT_EOF
8997	;;
8998	*)
8999	  # For security reasons, it is highly recommended that you always
9000	  # use absolute paths for naming shared libraries, and exclude the
9001	  # DT_RUNPATH tag from executables and libraries.  But doing so
9002	  # requires that you compile everything twice, which is a pain.
9003	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007	  else
9008	    ld_shlibs=no
9009	  fi
9010	;;
9011      esac
9012      ;;
9013
9014    sunos4*)
9015      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9016      wlarc=
9017      hardcode_direct=yes
9018      hardcode_shlibpath_var=no
9019      ;;
9020
9021    *)
9022      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9025      else
9026	ld_shlibs=no
9027      fi
9028      ;;
9029    esac
9030
9031    if test "$ld_shlibs" = no; then
9032      runpath_var=
9033      hardcode_libdir_flag_spec=
9034      export_dynamic_flag_spec=
9035      whole_archive_flag_spec=
9036    fi
9037  else
9038    # PORTME fill in a description of your system's linker (not GNU ld)
9039    case $host_os in
9040    aix3*)
9041      allow_undefined_flag=unsupported
9042      always_export_symbols=yes
9043      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'
9044      # Note: this linker hardcodes the directories in LIBPATH if there
9045      # are no directories specified by -L.
9046      hardcode_minus_L=yes
9047      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9048	# Neither direct hardcoding nor static linking is supported with a
9049	# broken collect2.
9050	hardcode_direct=unsupported
9051      fi
9052      ;;
9053
9054    aix[4-9]*)
9055      if test "$host_cpu" = ia64; then
9056	# On IA64, the linker does run time linking by default, so we don't
9057	# have to do anything special.
9058	aix_use_runtimelinking=no
9059	exp_sym_flag='-Bexport'
9060	no_entry_flag=""
9061      else
9062	# If we're using GNU nm, then we don't want the "-C" option.
9063	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9064	# Also, AIX nm treats weak defined symbols like other global
9065	# defined symbols, whereas GNU nm marks them as "W".
9066	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9067	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9068	else
9069	  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'
9070	fi
9071	aix_use_runtimelinking=no
9072
9073	# Test if we are trying to use run time linking or normal
9074	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9075	# need to do runtime linking.
9076	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9077	  for ld_flag in $LDFLAGS; do
9078	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9079	    aix_use_runtimelinking=yes
9080	    break
9081	  fi
9082	  done
9083	  ;;
9084	esac
9085
9086	exp_sym_flag='-bexport'
9087	no_entry_flag='-bnoentry'
9088      fi
9089
9090      # When large executables or shared objects are built, AIX ld can
9091      # have problems creating the table of contents.  If linking a library
9092      # or program results in "error TOC overflow" add -mminimal-toc to
9093      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9094      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9095
9096      archive_cmds=''
9097      hardcode_direct=yes
9098      hardcode_direct_absolute=yes
9099      hardcode_libdir_separator=':'
9100      link_all_deplibs=yes
9101      file_list_spec='${wl}-f,'
9102
9103      if test "$GCC" = yes; then
9104	case $host_os in aix4.[012]|aix4.[012].*)
9105	# We only want to do this on AIX 4.2 and lower, the check
9106	# below for broken collect2 doesn't work under 4.3+
9107	  collect2name=`${CC} -print-prog-name=collect2`
9108	  if test -f "$collect2name" &&
9109	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9110	  then
9111	  # We have reworked collect2
9112	  :
9113	  else
9114	  # We have old collect2
9115	  hardcode_direct=unsupported
9116	  # It fails to find uninstalled libraries when the uninstalled
9117	  # path is not listed in the libpath.  Setting hardcode_minus_L
9118	  # to unsupported forces relinking
9119	  hardcode_minus_L=yes
9120	  hardcode_libdir_flag_spec='-L$libdir'
9121	  hardcode_libdir_separator=
9122	  fi
9123	  ;;
9124	esac
9125	shared_flag='-shared'
9126	if test "$aix_use_runtimelinking" = yes; then
9127	  shared_flag="$shared_flag "'${wl}-G'
9128	fi
9129      else
9130	# not using gcc
9131	if test "$host_cpu" = ia64; then
9132	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9133	# chokes on -Wl,-G. The following line is correct:
9134	  shared_flag='-G'
9135	else
9136	  if test "$aix_use_runtimelinking" = yes; then
9137	    shared_flag='${wl}-G'
9138	  else
9139	    shared_flag='${wl}-bM:SRE'
9140	  fi
9141	fi
9142      fi
9143
9144      export_dynamic_flag_spec='${wl}-bexpall'
9145      # It seems that -bexpall does not export symbols beginning with
9146      # underscore (_), so it is better to generate a list of symbols to export.
9147      always_export_symbols=yes
9148      if test "$aix_use_runtimelinking" = yes; then
9149	# Warning - without using the other runtime loading flags (-brtl),
9150	# -berok will link without error, but may produce a broken library.
9151	allow_undefined_flag='-berok'
9152        # Determine the default libpath from the value encoded in an
9153        # empty executable.
9154        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156
9157int
9158main ()
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166
9167lt_aix_libpath_sed='
9168    /Import File Strings/,/^$/ {
9169	/^0/ {
9170	    s/^0  *\(.*\)$/\1/
9171	    p
9172	}
9173    }'
9174aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9175# Check for a 64-bit object if we didn't find anything.
9176if test -z "$aix_libpath"; then
9177  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178fi
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181    conftest$ac_exeext conftest.$ac_ext
9182if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9183
9184        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9185        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9186      else
9187	if test "$host_cpu" = ia64; then
9188	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9189	  allow_undefined_flag="-z nodefs"
9190	  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"
9191	else
9192	 # Determine the default libpath from the value encoded in an
9193	 # empty executable.
9194	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195/* end confdefs.h.  */
9196
9197int
9198main ()
9199{
9200
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205if ac_fn_c_try_link "$LINENO"; then :
9206
9207lt_aix_libpath_sed='
9208    /Import File Strings/,/^$/ {
9209	/^0/ {
9210	    s/^0  *\(.*\)$/\1/
9211	    p
9212	}
9213    }'
9214aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9215# Check for a 64-bit object if we didn't find anything.
9216if test -z "$aix_libpath"; then
9217  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218fi
9219fi
9220rm -f core conftest.err conftest.$ac_objext \
9221    conftest$ac_exeext conftest.$ac_ext
9222if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9223
9224	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9225	  # Warning - without using the other run time loading flags,
9226	  # -berok will link without error, but may produce a broken library.
9227	  no_undefined_flag=' ${wl}-bernotok'
9228	  allow_undefined_flag=' ${wl}-berok'
9229	  if test "$with_gnu_ld" = yes; then
9230	    # We only use this code for GNU lds that support --whole-archive.
9231	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9232	  else
9233	    # Exported symbols can be pulled into shared objects from archives
9234	    whole_archive_flag_spec='$convenience'
9235	  fi
9236	  archive_cmds_need_lc=yes
9237	  # This is similar to how AIX traditionally builds its shared libraries.
9238	  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'
9239	fi
9240      fi
9241      ;;
9242
9243    amigaos*)
9244      case $host_cpu in
9245      powerpc)
9246            # see comment about AmigaOS4 .so support
9247            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248            archive_expsym_cmds=''
9249        ;;
9250      m68k)
9251            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)'
9252            hardcode_libdir_flag_spec='-L$libdir'
9253            hardcode_minus_L=yes
9254        ;;
9255      esac
9256      ;;
9257
9258    bsdi[45]*)
9259      export_dynamic_flag_spec=-rdynamic
9260      ;;
9261
9262    cygwin* | mingw* | pw32* | cegcc*)
9263      # When not using gcc, we currently assume that we are using
9264      # Microsoft Visual C++.
9265      # hardcode_libdir_flag_spec is actually meaningless, as there is
9266      # no search path for DLLs.
9267      hardcode_libdir_flag_spec=' '
9268      allow_undefined_flag=unsupported
9269      # Tell ltmain to make .lib files, not .a files.
9270      libext=lib
9271      # Tell ltmain to make .dll files, not .so files.
9272      shrext_cmds=".dll"
9273      # FIXME: Setting linknames here is a bad hack.
9274      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9275      # The linker will automatically build a .lib file if we build a DLL.
9276      old_archive_from_new_cmds='true'
9277      # FIXME: Should let the user specify the lib program.
9278      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9279      fix_srcfile_path='`cygpath -w "$srcfile"`'
9280      enable_shared_with_static_runtimes=yes
9281      ;;
9282
9283    darwin* | rhapsody*)
9284
9285
9286  archive_cmds_need_lc=no
9287  hardcode_direct=no
9288  hardcode_automatic=yes
9289  hardcode_shlibpath_var=unsupported
9290  if test "$lt_cv_ld_force_load" = "yes"; then
9291    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9292  else
9293    whole_archive_flag_spec=''
9294  fi
9295  link_all_deplibs=yes
9296  allow_undefined_flag="$_lt_dar_allow_undefined"
9297  case $cc_basename in
9298     ifort*) _lt_dar_can_shared=yes ;;
9299     *) _lt_dar_can_shared=$GCC ;;
9300  esac
9301  if test "$_lt_dar_can_shared" = "yes"; then
9302    output_verbose_link_cmd=func_echo_all
9303    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9304    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9305    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9306    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9307
9308  else
9309  ld_shlibs=no
9310  fi
9311
9312      ;;
9313
9314    dgux*)
9315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316      hardcode_libdir_flag_spec='-L$libdir'
9317      hardcode_shlibpath_var=no
9318      ;;
9319
9320    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9321    # support.  Future versions do this automatically, but an explicit c++rt0.o
9322    # does not break anything, and helps significantly (at the cost of a little
9323    # extra space).
9324    freebsd2.2*)
9325      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9326      hardcode_libdir_flag_spec='-R$libdir'
9327      hardcode_direct=yes
9328      hardcode_shlibpath_var=no
9329      ;;
9330
9331    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9332    freebsd2.*)
9333      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334      hardcode_direct=yes
9335      hardcode_minus_L=yes
9336      hardcode_shlibpath_var=no
9337      ;;
9338
9339    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9340    freebsd* | dragonfly*)
9341      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9342      hardcode_libdir_flag_spec='-R$libdir'
9343      hardcode_direct=yes
9344      hardcode_shlibpath_var=no
9345      ;;
9346
9347    hpux9*)
9348      if test "$GCC" = yes; then
9349	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'
9350      else
9351	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'
9352      fi
9353      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9354      hardcode_libdir_separator=:
9355      hardcode_direct=yes
9356
9357      # hardcode_minus_L: Not really in the search PATH,
9358      # but as the default location of the library.
9359      hardcode_minus_L=yes
9360      export_dynamic_flag_spec='${wl}-E'
9361      ;;
9362
9363    hpux10*)
9364      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9365	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9366      else
9367	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9368      fi
9369      if test "$with_gnu_ld" = no; then
9370	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371	hardcode_libdir_flag_spec_ld='+b $libdir'
9372	hardcode_libdir_separator=:
9373	hardcode_direct=yes
9374	hardcode_direct_absolute=yes
9375	export_dynamic_flag_spec='${wl}-E'
9376	# hardcode_minus_L: Not really in the search PATH,
9377	# but as the default location of the library.
9378	hardcode_minus_L=yes
9379      fi
9380      ;;
9381
9382    hpux11*)
9383      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9384	case $host_cpu in
9385	hppa*64*)
9386	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9387	  ;;
9388	ia64*)
9389	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9390	  ;;
9391	*)
9392	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393	  ;;
9394	esac
9395      else
9396	case $host_cpu in
9397	hppa*64*)
9398	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399	  ;;
9400	ia64*)
9401	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9402	  ;;
9403	*)
9404
9405	  # Older versions of the 11.00 compiler do not understand -b yet
9406	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9407	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9408$as_echo_n "checking if $CC understands -b... " >&6; }
9409if test "${lt_cv_prog_compiler__b+set}" = set; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  lt_cv_prog_compiler__b=no
9413   save_LDFLAGS="$LDFLAGS"
9414   LDFLAGS="$LDFLAGS -b"
9415   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9416   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9417     # The linker can only warn and ignore the option if not recognized
9418     # So say no if there are warnings
9419     if test -s conftest.err; then
9420       # Append any errors to the config.log.
9421       cat conftest.err 1>&5
9422       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9423       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9424       if diff conftest.exp conftest.er2 >/dev/null; then
9425         lt_cv_prog_compiler__b=yes
9426       fi
9427     else
9428       lt_cv_prog_compiler__b=yes
9429     fi
9430   fi
9431   $RM -r conftest*
9432   LDFLAGS="$save_LDFLAGS"
9433
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9436$as_echo "$lt_cv_prog_compiler__b" >&6; }
9437
9438if test x"$lt_cv_prog_compiler__b" = xyes; then
9439    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9440else
9441    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9442fi
9443
9444	  ;;
9445	esac
9446      fi
9447      if test "$with_gnu_ld" = no; then
9448	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449	hardcode_libdir_separator=:
9450
9451	case $host_cpu in
9452	hppa*64*|ia64*)
9453	  hardcode_direct=no
9454	  hardcode_shlibpath_var=no
9455	  ;;
9456	*)
9457	  hardcode_direct=yes
9458	  hardcode_direct_absolute=yes
9459	  export_dynamic_flag_spec='${wl}-E'
9460
9461	  # hardcode_minus_L: Not really in the search PATH,
9462	  # but as the default location of the library.
9463	  hardcode_minus_L=yes
9464	  ;;
9465	esac
9466      fi
9467      ;;
9468
9469    irix5* | irix6* | nonstopux*)
9470      if test "$GCC" = yes; then
9471	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9472	# Try to use the -exported_symbol ld option, if it does not
9473	# work, assume that -exports_file does not work either and
9474	# implicitly export all symbols.
9475        save_LDFLAGS="$LDFLAGS"
9476        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9477        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int foo(void) {}
9480_ACEOF
9481if ac_fn_c_try_link "$LINENO"; then :
9482  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9483
9484fi
9485rm -f core conftest.err conftest.$ac_objext \
9486    conftest$ac_exeext conftest.$ac_ext
9487        LDFLAGS="$save_LDFLAGS"
9488      else
9489	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9490	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9491      fi
9492      archive_cmds_need_lc='no'
9493      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494      hardcode_libdir_separator=:
9495      inherit_rpath=yes
9496      link_all_deplibs=yes
9497      ;;
9498
9499    netbsd*)
9500      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9501	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9502      else
9503	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9504      fi
9505      hardcode_libdir_flag_spec='-R$libdir'
9506      hardcode_direct=yes
9507      hardcode_shlibpath_var=no
9508      ;;
9509
9510    newsos6)
9511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512      hardcode_direct=yes
9513      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514      hardcode_libdir_separator=:
9515      hardcode_shlibpath_var=no
9516      ;;
9517
9518    *nto* | *qnx*)
9519      ;;
9520
9521    openbsd*)
9522      if test -f /usr/libexec/ld.so; then
9523	hardcode_direct=yes
9524	hardcode_shlibpath_var=no
9525	hardcode_direct_absolute=yes
9526	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9527	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9528	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9529	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530	  export_dynamic_flag_spec='${wl}-E'
9531	else
9532	  case $host_os in
9533	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9534	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535	     hardcode_libdir_flag_spec='-R$libdir'
9536	     ;;
9537	   *)
9538	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540	     ;;
9541	  esac
9542	fi
9543      else
9544	ld_shlibs=no
9545      fi
9546      ;;
9547
9548    os2*)
9549      hardcode_libdir_flag_spec='-L$libdir'
9550      hardcode_minus_L=yes
9551      allow_undefined_flag=unsupported
9552      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'
9553      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9554      ;;
9555
9556    osf3*)
9557      if test "$GCC" = yes; then
9558	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9559	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9560      else
9561	allow_undefined_flag=' -expect_unresolved \*'
9562	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9563      fi
9564      archive_cmds_need_lc='no'
9565      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566      hardcode_libdir_separator=:
9567      ;;
9568
9569    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9570      if test "$GCC" = yes; then
9571	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9573	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574      else
9575	allow_undefined_flag=' -expect_unresolved \*'
9576	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9577	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~
9578	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9579
9580	# Both c and cxx compiler support -rpath directly
9581	hardcode_libdir_flag_spec='-rpath $libdir'
9582      fi
9583      archive_cmds_need_lc='no'
9584      hardcode_libdir_separator=:
9585      ;;
9586
9587    solaris*)
9588      no_undefined_flag=' -z defs'
9589      if test "$GCC" = yes; then
9590	wlarc='${wl}'
9591	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9594      else
9595	case `$CC -V 2>&1` in
9596	*"Compilers 5.0"*)
9597	  wlarc=''
9598	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9601	  ;;
9602	*)
9603	  wlarc='${wl}'
9604	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9607	  ;;
9608	esac
9609      fi
9610      hardcode_libdir_flag_spec='-R$libdir'
9611      hardcode_shlibpath_var=no
9612      case $host_os in
9613      solaris2.[0-5] | solaris2.[0-5].*) ;;
9614      *)
9615	# The compiler driver will combine and reorder linker options,
9616	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9617	# but is careful enough not to reorder.
9618	# Supported since Solaris 2.6 (maybe 2.5.1?)
9619	if test "$GCC" = yes; then
9620	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9621	else
9622	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9623	fi
9624	;;
9625      esac
9626      link_all_deplibs=yes
9627      ;;
9628
9629    sunos4*)
9630      if test "x$host_vendor" = xsequent; then
9631	# Use $CC to link under sequent, because it throws in some extra .o
9632	# files that make .init and .fini sections work.
9633	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634      else
9635	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9636      fi
9637      hardcode_libdir_flag_spec='-L$libdir'
9638      hardcode_direct=yes
9639      hardcode_minus_L=yes
9640      hardcode_shlibpath_var=no
9641      ;;
9642
9643    sysv4)
9644      case $host_vendor in
9645	sni)
9646	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647	  hardcode_direct=yes # is this really true???
9648	;;
9649	siemens)
9650	  ## LD is ld it makes a PLAMLIB
9651	  ## CC just makes a GrossModule.
9652	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9653	  reload_cmds='$CC -r -o $output$reload_objs'
9654	  hardcode_direct=no
9655        ;;
9656	motorola)
9657	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9659	;;
9660      esac
9661      runpath_var='LD_RUN_PATH'
9662      hardcode_shlibpath_var=no
9663      ;;
9664
9665    sysv4.3*)
9666      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667      hardcode_shlibpath_var=no
9668      export_dynamic_flag_spec='-Bexport'
9669      ;;
9670
9671    sysv4*MP*)
9672      if test -d /usr/nec; then
9673	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674	hardcode_shlibpath_var=no
9675	runpath_var=LD_RUN_PATH
9676	hardcode_runpath_var=yes
9677	ld_shlibs=yes
9678      fi
9679      ;;
9680
9681    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9682      no_undefined_flag='${wl}-z,text'
9683      archive_cmds_need_lc=no
9684      hardcode_shlibpath_var=no
9685      runpath_var='LD_RUN_PATH'
9686
9687      if test "$GCC" = yes; then
9688	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690      else
9691	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693      fi
9694      ;;
9695
9696    sysv5* | sco3.2v5* | sco5v6*)
9697      # Note: We can NOT use -z defs as we might desire, because we do not
9698      # link with -lc, and that would cause any symbols used from libc to
9699      # always be unresolved, which means just about no library would
9700      # ever link correctly.  If we're not using GNU ld we use -z text
9701      # though, which does catch some bad symbols but isn't as heavy-handed
9702      # as -z defs.
9703      no_undefined_flag='${wl}-z,text'
9704      allow_undefined_flag='${wl}-z,nodefs'
9705      archive_cmds_need_lc=no
9706      hardcode_shlibpath_var=no
9707      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9708      hardcode_libdir_separator=':'
9709      link_all_deplibs=yes
9710      export_dynamic_flag_spec='${wl}-Bexport'
9711      runpath_var='LD_RUN_PATH'
9712
9713      if test "$GCC" = yes; then
9714	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716      else
9717	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719      fi
9720      ;;
9721
9722    uts4*)
9723      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724      hardcode_libdir_flag_spec='-L$libdir'
9725      hardcode_shlibpath_var=no
9726      ;;
9727
9728    *)
9729      ld_shlibs=no
9730      ;;
9731    esac
9732
9733    if test x$host_vendor = xsni; then
9734      case $host in
9735      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9736	export_dynamic_flag_spec='${wl}-Blargedynsym'
9737	;;
9738      esac
9739    fi
9740  fi
9741
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9743$as_echo "$ld_shlibs" >&6; }
9744test "$ld_shlibs" = no && can_build_shared=no
9745
9746with_gnu_ld=$with_gnu_ld
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762#
9763# Do we need to explicitly link libc?
9764#
9765case "x$archive_cmds_need_lc" in
9766x|xyes)
9767  # Assume -lc should be added
9768  archive_cmds_need_lc=yes
9769
9770  if test "$enable_shared" = yes && test "$GCC" = yes; then
9771    case $archive_cmds in
9772    *'~'*)
9773      # FIXME: we may have to deal with multi-command sequences.
9774      ;;
9775    '$CC '*)
9776      # Test whether the compiler implicitly links with -lc since on some
9777      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9778      # to ld, don't add -lc before -lgcc.
9779      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9780$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9781if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9782  $as_echo_n "(cached) " >&6
9783else
9784  $RM conftest*
9785	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9786
9787	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9788  (eval $ac_compile) 2>&5
9789  ac_status=$?
9790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9791  test $ac_status = 0; } 2>conftest.err; then
9792	  soname=conftest
9793	  lib=conftest
9794	  libobjs=conftest.$ac_objext
9795	  deplibs=
9796	  wl=$lt_prog_compiler_wl
9797	  pic_flag=$lt_prog_compiler_pic
9798	  compiler_flags=-v
9799	  linker_flags=-v
9800	  verstring=
9801	  output_objdir=.
9802	  libname=conftest
9803	  lt_save_allow_undefined_flag=$allow_undefined_flag
9804	  allow_undefined_flag=
9805	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9806  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9807  ac_status=$?
9808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809  test $ac_status = 0; }
9810	  then
9811	    lt_cv_archive_cmds_need_lc=no
9812	  else
9813	    lt_cv_archive_cmds_need_lc=yes
9814	  fi
9815	  allow_undefined_flag=$lt_save_allow_undefined_flag
9816	else
9817	  cat conftest.err 1>&5
9818	fi
9819	$RM conftest*
9820
9821fi
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9823$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9824      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9825      ;;
9826    esac
9827  fi
9828  ;;
9829esac
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9988$as_echo_n "checking dynamic linker characteristics... " >&6; }
9989
9990if test "$GCC" = yes; then
9991  case $host_os in
9992    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9993    *) lt_awk_arg="/^libraries:/" ;;
9994  esac
9995  case $host_os in
9996    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9997    *) lt_sed_strip_eq="s,=/,/,g" ;;
9998  esac
9999  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10000  case $lt_search_path_spec in
10001  *\;*)
10002    # if the path contains ";" then we assume it to be the separator
10003    # otherwise default to the standard path separator (i.e. ":") - it is
10004    # assumed that no part of a normal pathname contains ";" but that should
10005    # okay in the real world where ";" in dirpaths is itself problematic.
10006    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10007    ;;
10008  *)
10009    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10010    ;;
10011  esac
10012  # Ok, now we have the path, separated by spaces, we can step through it
10013  # and add multilib dir if necessary.
10014  lt_tmp_lt_search_path_spec=
10015  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10016  for lt_sys_path in $lt_search_path_spec; do
10017    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10018      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10019    else
10020      test -d "$lt_sys_path" && \
10021	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10022    fi
10023  done
10024  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10025BEGIN {RS=" "; FS="/|\n";} {
10026  lt_foo="";
10027  lt_count=0;
10028  for (lt_i = NF; lt_i > 0; lt_i--) {
10029    if ($lt_i != "" && $lt_i != ".") {
10030      if ($lt_i == "..") {
10031        lt_count++;
10032      } else {
10033        if (lt_count == 0) {
10034          lt_foo="/" $lt_i lt_foo;
10035        } else {
10036          lt_count--;
10037        }
10038      }
10039    }
10040  }
10041  if (lt_foo != "") { lt_freq[lt_foo]++; }
10042  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10043}'`
10044  # AWK program above erroneously prepends '/' to C:/dos/paths
10045  # for these hosts.
10046  case $host_os in
10047    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10048      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10049  esac
10050  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10051else
10052  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10053fi
10054library_names_spec=
10055libname_spec='lib$name'
10056soname_spec=
10057shrext_cmds=".so"
10058postinstall_cmds=
10059postuninstall_cmds=
10060finish_cmds=
10061finish_eval=
10062shlibpath_var=
10063shlibpath_overrides_runpath=unknown
10064version_type=none
10065dynamic_linker="$host_os ld.so"
10066sys_lib_dlsearch_path_spec="/lib /usr/lib"
10067need_lib_prefix=unknown
10068hardcode_into_libs=no
10069
10070# when you set need_version to no, make sure it does not cause -set_version
10071# flags to be left without arguments
10072need_version=unknown
10073
10074case $host_os in
10075aix3*)
10076  version_type=linux
10077  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10078  shlibpath_var=LIBPATH
10079
10080  # AIX 3 has no versioning support, so we append a major version to the name.
10081  soname_spec='${libname}${release}${shared_ext}$major'
10082  ;;
10083
10084aix[4-9]*)
10085  version_type=linux
10086  need_lib_prefix=no
10087  need_version=no
10088  hardcode_into_libs=yes
10089  if test "$host_cpu" = ia64; then
10090    # AIX 5 supports IA64
10091    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10092    shlibpath_var=LD_LIBRARY_PATH
10093  else
10094    # With GCC up to 2.95.x, collect2 would create an import file
10095    # for dependence libraries.  The import file would start with
10096    # the line `#! .'.  This would cause the generated library to
10097    # depend on `.', always an invalid library.  This was fixed in
10098    # development snapshots of GCC prior to 3.0.
10099    case $host_os in
10100      aix4 | aix4.[01] | aix4.[01].*)
10101      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10102	   echo ' yes '
10103	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10104	:
10105      else
10106	can_build_shared=no
10107      fi
10108      ;;
10109    esac
10110    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10111    # soname into executable. Probably we can add versioning support to
10112    # collect2, so additional links can be useful in future.
10113    if test "$aix_use_runtimelinking" = yes; then
10114      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10115      # instead of lib<name>.a to let people know that these are not
10116      # typical AIX shared libraries.
10117      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118    else
10119      # We preserve .a as extension for shared libraries through AIX4.2
10120      # and later when we are not doing run time linking.
10121      library_names_spec='${libname}${release}.a $libname.a'
10122      soname_spec='${libname}${release}${shared_ext}$major'
10123    fi
10124    shlibpath_var=LIBPATH
10125  fi
10126  ;;
10127
10128amigaos*)
10129  case $host_cpu in
10130  powerpc)
10131    # Since July 2007 AmigaOS4 officially supports .so libraries.
10132    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134    ;;
10135  m68k)
10136    library_names_spec='$libname.ixlibrary $libname.a'
10137    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10138    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10139    ;;
10140  esac
10141  ;;
10142
10143beos*)
10144  library_names_spec='${libname}${shared_ext}'
10145  dynamic_linker="$host_os ld.so"
10146  shlibpath_var=LIBRARY_PATH
10147  ;;
10148
10149bsdi[45]*)
10150  version_type=linux
10151  need_version=no
10152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153  soname_spec='${libname}${release}${shared_ext}$major'
10154  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10157  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10158  # the default ld.so.conf also contains /usr/contrib/lib and
10159  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10160  # libtool to hard-code these into programs
10161  ;;
10162
10163cygwin* | mingw* | pw32* | cegcc*)
10164  version_type=windows
10165  shrext_cmds=".dll"
10166  need_version=no
10167  need_lib_prefix=no
10168
10169  case $GCC,$host_os in
10170  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10171    library_names_spec='$libname.dll.a'
10172    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10173    postinstall_cmds='base_file=`basename \${file}`~
10174      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10175      dldir=$destdir/`dirname \$dlpath`~
10176      test -d \$dldir || mkdir -p \$dldir~
10177      $install_prog $dir/$dlname \$dldir/$dlname~
10178      chmod a+x \$dldir/$dlname~
10179      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10180        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10181      fi'
10182    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10183      dlpath=$dir/\$dldll~
10184       $RM \$dlpath'
10185    shlibpath_overrides_runpath=yes
10186
10187    case $host_os in
10188    cygwin*)
10189      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10190      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10191
10192      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10193      ;;
10194    mingw* | cegcc*)
10195      # MinGW DLLs use traditional 'lib' prefix
10196      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197      ;;
10198    pw32*)
10199      # pw32 DLLs use 'pw' prefix rather than 'lib'
10200      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201      ;;
10202    esac
10203    ;;
10204
10205  *)
10206    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10207    ;;
10208  esac
10209  dynamic_linker='Win32 ld.exe'
10210  # FIXME: first we should search . and the directory the executable is in
10211  shlibpath_var=PATH
10212  ;;
10213
10214darwin* | rhapsody*)
10215  dynamic_linker="$host_os dyld"
10216  version_type=darwin
10217  need_lib_prefix=no
10218  need_version=no
10219  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10220  soname_spec='${libname}${release}${major}$shared_ext'
10221  shlibpath_overrides_runpath=yes
10222  shlibpath_var=DYLD_LIBRARY_PATH
10223  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10224
10225  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10226  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10227  ;;
10228
10229dgux*)
10230  version_type=linux
10231  need_lib_prefix=no
10232  need_version=no
10233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10234  soname_spec='${libname}${release}${shared_ext}$major'
10235  shlibpath_var=LD_LIBRARY_PATH
10236  ;;
10237
10238freebsd* | dragonfly*)
10239  # DragonFly does not have aout.  When/if they implement a new
10240  # versioning mechanism, adjust this.
10241  if test -x /usr/bin/objformat; then
10242    objformat=`/usr/bin/objformat`
10243  else
10244    case $host_os in
10245    freebsd[23].*) objformat=aout ;;
10246    *) objformat=elf ;;
10247    esac
10248  fi
10249  version_type=freebsd-$objformat
10250  case $version_type in
10251    freebsd-elf*)
10252      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10253      need_version=no
10254      need_lib_prefix=no
10255      ;;
10256    freebsd-*)
10257      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10258      need_version=yes
10259      ;;
10260  esac
10261  shlibpath_var=LD_LIBRARY_PATH
10262  case $host_os in
10263  freebsd2.*)
10264    shlibpath_overrides_runpath=yes
10265    ;;
10266  freebsd3.[01]* | freebsdelf3.[01]*)
10267    shlibpath_overrides_runpath=yes
10268    hardcode_into_libs=yes
10269    ;;
10270  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10271  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10272    shlibpath_overrides_runpath=no
10273    hardcode_into_libs=yes
10274    ;;
10275  *) # from 4.6 on, and DragonFly
10276    shlibpath_overrides_runpath=yes
10277    hardcode_into_libs=yes
10278    ;;
10279  esac
10280  ;;
10281
10282gnu*)
10283  version_type=linux
10284  need_lib_prefix=no
10285  need_version=no
10286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10287  soname_spec='${libname}${release}${shared_ext}$major'
10288  shlibpath_var=LD_LIBRARY_PATH
10289  hardcode_into_libs=yes
10290  ;;
10291
10292haiku*)
10293  version_type=linux
10294  need_lib_prefix=no
10295  need_version=no
10296  dynamic_linker="$host_os runtime_loader"
10297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10298  soname_spec='${libname}${release}${shared_ext}$major'
10299  shlibpath_var=LIBRARY_PATH
10300  shlibpath_overrides_runpath=yes
10301  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10302  hardcode_into_libs=yes
10303  ;;
10304
10305hpux9* | hpux10* | hpux11*)
10306  # Give a soname corresponding to the major version so that dld.sl refuses to
10307  # link against other versions.
10308  version_type=sunos
10309  need_lib_prefix=no
10310  need_version=no
10311  case $host_cpu in
10312  ia64*)
10313    shrext_cmds='.so'
10314    hardcode_into_libs=yes
10315    dynamic_linker="$host_os dld.so"
10316    shlibpath_var=LD_LIBRARY_PATH
10317    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10318    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319    soname_spec='${libname}${release}${shared_ext}$major'
10320    if test "X$HPUX_IA64_MODE" = X32; then
10321      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10322    else
10323      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10324    fi
10325    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10326    ;;
10327  hppa*64*)
10328    shrext_cmds='.sl'
10329    hardcode_into_libs=yes
10330    dynamic_linker="$host_os dld.sl"
10331    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10332    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334    soname_spec='${libname}${release}${shared_ext}$major'
10335    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337    ;;
10338  *)
10339    shrext_cmds='.sl'
10340    dynamic_linker="$host_os dld.sl"
10341    shlibpath_var=SHLIB_PATH
10342    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344    soname_spec='${libname}${release}${shared_ext}$major'
10345    ;;
10346  esac
10347  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10348  postinstall_cmds='chmod 555 $lib'
10349  # or fails outright, so override atomically:
10350  install_override_mode=555
10351  ;;
10352
10353interix[3-9]*)
10354  version_type=linux
10355  need_lib_prefix=no
10356  need_version=no
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358  soname_spec='${libname}${release}${shared_ext}$major'
10359  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10360  shlibpath_var=LD_LIBRARY_PATH
10361  shlibpath_overrides_runpath=no
10362  hardcode_into_libs=yes
10363  ;;
10364
10365irix5* | irix6* | nonstopux*)
10366  case $host_os in
10367    nonstopux*) version_type=nonstopux ;;
10368    *)
10369	if test "$lt_cv_prog_gnu_ld" = yes; then
10370		version_type=linux
10371	else
10372		version_type=irix
10373	fi ;;
10374  esac
10375  need_lib_prefix=no
10376  need_version=no
10377  soname_spec='${libname}${release}${shared_ext}$major'
10378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10379  case $host_os in
10380  irix5* | nonstopux*)
10381    libsuff= shlibsuff=
10382    ;;
10383  *)
10384    case $LD in # libtool.m4 will add one of these switches to LD
10385    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10386      libsuff= shlibsuff= libmagic=32-bit;;
10387    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10388      libsuff=32 shlibsuff=N32 libmagic=N32;;
10389    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10390      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10391    *) libsuff= shlibsuff= libmagic=never-match;;
10392    esac
10393    ;;
10394  esac
10395  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10396  shlibpath_overrides_runpath=no
10397  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10398  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10399  hardcode_into_libs=yes
10400  ;;
10401
10402# No shared lib support for Linux oldld, aout, or coff.
10403linux*oldld* | linux*aout* | linux*coff*)
10404  dynamic_linker=no
10405  ;;
10406
10407# This must be Linux ELF.
10408linux* | k*bsd*-gnu | kopensolaris*-gnu)
10409  version_type=linux
10410  need_lib_prefix=no
10411  need_version=no
10412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413  soname_spec='${libname}${release}${shared_ext}$major'
10414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10415  shlibpath_var=LD_LIBRARY_PATH
10416  shlibpath_overrides_runpath=no
10417
10418  # Some binutils ld are patched to set DT_RUNPATH
10419  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  lt_cv_shlibpath_overrides_runpath=no
10423    save_LDFLAGS=$LDFLAGS
10424    save_libdir=$libdir
10425    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10426	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h.  */
10429
10430int
10431main ()
10432{
10433
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438if ac_fn_c_try_link "$LINENO"; then :
10439  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10440  lt_cv_shlibpath_overrides_runpath=yes
10441fi
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444    conftest$ac_exeext conftest.$ac_ext
10445    LDFLAGS=$save_LDFLAGS
10446    libdir=$save_libdir
10447
10448fi
10449
10450  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10451
10452  # This implies no fast_install, which is unacceptable.
10453  # Some rework will be needed to allow for fast_install
10454  # before this can be enabled.
10455  hardcode_into_libs=yes
10456
10457  # Append ld.so.conf contents to the search path
10458  if test -f /etc/ld.so.conf; then
10459    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10460    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10461  fi
10462
10463  # We used to test for /lib/ld.so.1 and disable shared libraries on
10464  # powerpc, because MkLinux only supported shared libraries with the
10465  # GNU dynamic linker.  Since this was broken with cross compilers,
10466  # most powerpc-linux boxes support dynamic linking these days and
10467  # people can always --disable-shared, the test was removed, and we
10468  # assume the GNU/Linux dynamic linker is in use.
10469  dynamic_linker='GNU/Linux ld.so'
10470  ;;
10471
10472netbsd*)
10473  version_type=sunos
10474  need_lib_prefix=no
10475  need_version=no
10476  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479    dynamic_linker='NetBSD (a.out) ld.so'
10480  else
10481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10482    soname_spec='${libname}${release}${shared_ext}$major'
10483    dynamic_linker='NetBSD ld.elf_so'
10484  fi
10485  shlibpath_var=LD_LIBRARY_PATH
10486  shlibpath_overrides_runpath=yes
10487  hardcode_into_libs=yes
10488  ;;
10489
10490newsos6)
10491  version_type=linux
10492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493  shlibpath_var=LD_LIBRARY_PATH
10494  shlibpath_overrides_runpath=yes
10495  ;;
10496
10497*nto* | *qnx*)
10498  version_type=qnx
10499  need_lib_prefix=no
10500  need_version=no
10501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502  soname_spec='${libname}${release}${shared_ext}$major'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=no
10505  hardcode_into_libs=yes
10506  dynamic_linker='ldqnx.so'
10507  ;;
10508
10509openbsd*)
10510  version_type=sunos
10511  sys_lib_dlsearch_path_spec="/usr/lib"
10512  need_lib_prefix=no
10513  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10514  case $host_os in
10515    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10516    *)				need_version=no  ;;
10517  esac
10518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10520  shlibpath_var=LD_LIBRARY_PATH
10521  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10522    case $host_os in
10523      openbsd2.[89] | openbsd2.[89].*)
10524	shlibpath_overrides_runpath=no
10525	;;
10526      *)
10527	shlibpath_overrides_runpath=yes
10528	;;
10529      esac
10530  else
10531    shlibpath_overrides_runpath=yes
10532  fi
10533  ;;
10534
10535os2*)
10536  libname_spec='$name'
10537  shrext_cmds=".dll"
10538  need_lib_prefix=no
10539  library_names_spec='$libname${shared_ext} $libname.a'
10540  dynamic_linker='OS/2 ld.exe'
10541  shlibpath_var=LIBPATH
10542  ;;
10543
10544osf3* | osf4* | osf5*)
10545  version_type=osf
10546  need_lib_prefix=no
10547  need_version=no
10548  soname_spec='${libname}${release}${shared_ext}$major'
10549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550  shlibpath_var=LD_LIBRARY_PATH
10551  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10552  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10553  ;;
10554
10555rdos*)
10556  dynamic_linker=no
10557  ;;
10558
10559solaris*)
10560  version_type=linux
10561  need_lib_prefix=no
10562  need_version=no
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564  soname_spec='${libname}${release}${shared_ext}$major'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  shlibpath_overrides_runpath=yes
10567  hardcode_into_libs=yes
10568  # ldd complains unless libraries are executable
10569  postinstall_cmds='chmod +x $lib'
10570  ;;
10571
10572sunos4*)
10573  version_type=sunos
10574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10576  shlibpath_var=LD_LIBRARY_PATH
10577  shlibpath_overrides_runpath=yes
10578  if test "$with_gnu_ld" = yes; then
10579    need_lib_prefix=no
10580  fi
10581  need_version=yes
10582  ;;
10583
10584sysv4 | sysv4.3*)
10585  version_type=linux
10586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587  soname_spec='${libname}${release}${shared_ext}$major'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  case $host_vendor in
10590    sni)
10591      shlibpath_overrides_runpath=no
10592      need_lib_prefix=no
10593      runpath_var=LD_RUN_PATH
10594      ;;
10595    siemens)
10596      need_lib_prefix=no
10597      ;;
10598    motorola)
10599      need_lib_prefix=no
10600      need_version=no
10601      shlibpath_overrides_runpath=no
10602      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10603      ;;
10604  esac
10605  ;;
10606
10607sysv4*MP*)
10608  if test -d /usr/nec ;then
10609    version_type=linux
10610    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10611    soname_spec='$libname${shared_ext}.$major'
10612    shlibpath_var=LD_LIBRARY_PATH
10613  fi
10614  ;;
10615
10616sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10617  version_type=freebsd-elf
10618  need_lib_prefix=no
10619  need_version=no
10620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10621  soname_spec='${libname}${release}${shared_ext}$major'
10622  shlibpath_var=LD_LIBRARY_PATH
10623  shlibpath_overrides_runpath=yes
10624  hardcode_into_libs=yes
10625  if test "$with_gnu_ld" = yes; then
10626    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10627  else
10628    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10629    case $host_os in
10630      sco3.2v5*)
10631        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10632	;;
10633    esac
10634  fi
10635  sys_lib_dlsearch_path_spec='/usr/lib'
10636  ;;
10637
10638tpf*)
10639  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10640  version_type=linux
10641  need_lib_prefix=no
10642  need_version=no
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  shlibpath_overrides_runpath=no
10646  hardcode_into_libs=yes
10647  ;;
10648
10649uts4*)
10650  version_type=linux
10651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652  soname_spec='${libname}${release}${shared_ext}$major'
10653  shlibpath_var=LD_LIBRARY_PATH
10654  ;;
10655
10656*)
10657  dynamic_linker=no
10658  ;;
10659esac
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10661$as_echo "$dynamic_linker" >&6; }
10662test "$dynamic_linker" = no && can_build_shared=no
10663
10664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10665if test "$GCC" = yes; then
10666  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10667fi
10668
10669if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10670  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10671fi
10672if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10673  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10674fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10768$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10769hardcode_action=
10770if test -n "$hardcode_libdir_flag_spec" ||
10771   test -n "$runpath_var" ||
10772   test "X$hardcode_automatic" = "Xyes" ; then
10773
10774  # We can hardcode non-existent directories.
10775  if test "$hardcode_direct" != no &&
10776     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10777     # have to relink, otherwise we might link with an installed library
10778     # when we should be linking with a yet-to-be-installed one
10779     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10780     test "$hardcode_minus_L" != no; then
10781    # Linking always hardcodes the temporary library directory.
10782    hardcode_action=relink
10783  else
10784    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10785    hardcode_action=immediate
10786  fi
10787else
10788  # We cannot hardcode anything, or else we can only hardcode existing
10789  # directories.
10790  hardcode_action=unsupported
10791fi
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10793$as_echo "$hardcode_action" >&6; }
10794
10795if test "$hardcode_action" = relink ||
10796   test "$inherit_rpath" = yes; then
10797  # Fast installation is not supported
10798  enable_fast_install=no
10799elif test "$shlibpath_overrides_runpath" = yes ||
10800     test "$enable_shared" = no; then
10801  # Fast installation is not necessary
10802  enable_fast_install=needless
10803fi
10804
10805
10806
10807
10808
10809
10810  if test "x$enable_dlopen" != xyes; then
10811  enable_dlopen=unknown
10812  enable_dlopen_self=unknown
10813  enable_dlopen_self_static=unknown
10814else
10815  lt_cv_dlopen=no
10816  lt_cv_dlopen_libs=
10817
10818  case $host_os in
10819  beos*)
10820    lt_cv_dlopen="load_add_on"
10821    lt_cv_dlopen_libs=
10822    lt_cv_dlopen_self=yes
10823    ;;
10824
10825  mingw* | pw32* | cegcc*)
10826    lt_cv_dlopen="LoadLibrary"
10827    lt_cv_dlopen_libs=
10828    ;;
10829
10830  cygwin*)
10831    lt_cv_dlopen="dlopen"
10832    lt_cv_dlopen_libs=
10833    ;;
10834
10835  darwin*)
10836  # if libdl is installed we need to link against it
10837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10838$as_echo_n "checking for dlopen in -ldl... " >&6; }
10839if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10840  $as_echo_n "(cached) " >&6
10841else
10842  ac_check_lib_save_LIBS=$LIBS
10843LIBS="-ldl  $LIBS"
10844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h.  */
10846
10847/* Override any GCC internal prototype to avoid an error.
10848   Use char because int might match the return type of a GCC
10849   builtin and then its argument prototype would still apply.  */
10850#ifdef __cplusplus
10851extern "C"
10852#endif
10853char dlopen ();
10854int
10855main ()
10856{
10857return dlopen ();
10858  ;
10859  return 0;
10860}
10861_ACEOF
10862if ac_fn_c_try_link "$LINENO"; then :
10863  ac_cv_lib_dl_dlopen=yes
10864else
10865  ac_cv_lib_dl_dlopen=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext \
10868    conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10873if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10874  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10875else
10876
10877    lt_cv_dlopen="dyld"
10878    lt_cv_dlopen_libs=
10879    lt_cv_dlopen_self=yes
10880
10881fi
10882
10883    ;;
10884
10885  *)
10886    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10887if test "x$ac_cv_func_shl_load" = x""yes; then :
10888  lt_cv_dlopen="shl_load"
10889else
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10891$as_echo_n "checking for shl_load in -ldld... " >&6; }
10892if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10893  $as_echo_n "(cached) " >&6
10894else
10895  ac_check_lib_save_LIBS=$LIBS
10896LIBS="-ldld  $LIBS"
10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898/* end confdefs.h.  */
10899
10900/* Override any GCC internal prototype to avoid an error.
10901   Use char because int might match the return type of a GCC
10902   builtin and then its argument prototype would still apply.  */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906char shl_load ();
10907int
10908main ()
10909{
10910return shl_load ();
10911  ;
10912  return 0;
10913}
10914_ACEOF
10915if ac_fn_c_try_link "$LINENO"; then :
10916  ac_cv_lib_dld_shl_load=yes
10917else
10918  ac_cv_lib_dld_shl_load=no
10919fi
10920rm -f core conftest.err conftest.$ac_objext \
10921    conftest$ac_exeext conftest.$ac_ext
10922LIBS=$ac_check_lib_save_LIBS
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10925$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10926if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10927  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10928else
10929  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10930if test "x$ac_cv_func_dlopen" = x""yes; then :
10931  lt_cv_dlopen="dlopen"
10932else
10933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10934$as_echo_n "checking for dlopen in -ldl... " >&6; }
10935if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10936  $as_echo_n "(cached) " >&6
10937else
10938  ac_check_lib_save_LIBS=$LIBS
10939LIBS="-ldl  $LIBS"
10940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h.  */
10942
10943/* Override any GCC internal prototype to avoid an error.
10944   Use char because int might match the return type of a GCC
10945   builtin and then its argument prototype would still apply.  */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char dlopen ();
10950int
10951main ()
10952{
10953return dlopen ();
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_link "$LINENO"; then :
10959  ac_cv_lib_dl_dlopen=yes
10960else
10961  ac_cv_lib_dl_dlopen=no
10962fi
10963rm -f core conftest.err conftest.$ac_objext \
10964    conftest$ac_exeext conftest.$ac_ext
10965LIBS=$ac_check_lib_save_LIBS
10966fi
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10968$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10970  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971else
10972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10973$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10975  $as_echo_n "(cached) " >&6
10976else
10977  ac_check_lib_save_LIBS=$LIBS
10978LIBS="-lsvld  $LIBS"
10979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980/* end confdefs.h.  */
10981
10982/* Override any GCC internal prototype to avoid an error.
10983   Use char because int might match the return type of a GCC
10984   builtin and then its argument prototype would still apply.  */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988char dlopen ();
10989int
10990main ()
10991{
10992return dlopen ();
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_link "$LINENO"; then :
10998  ac_cv_lib_svld_dlopen=yes
10999else
11000  ac_cv_lib_svld_dlopen=no
11001fi
11002rm -f core conftest.err conftest.$ac_objext \
11003    conftest$ac_exeext conftest.$ac_ext
11004LIBS=$ac_check_lib_save_LIBS
11005fi
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11007$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11008if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11009  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11010else
11011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11012$as_echo_n "checking for dld_link in -ldld... " >&6; }
11013if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11014  $as_echo_n "(cached) " >&6
11015else
11016  ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldld  $LIBS"
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022   Use char because int might match the return type of a GCC
11023   builtin and then its argument prototype would still apply.  */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char dld_link ();
11028int
11029main ()
11030{
11031return dld_link ();
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_link "$LINENO"; then :
11037  ac_cv_lib_dld_dld_link=yes
11038else
11039  ac_cv_lib_dld_dld_link=no
11040fi
11041rm -f core conftest.err conftest.$ac_objext \
11042    conftest$ac_exeext conftest.$ac_ext
11043LIBS=$ac_check_lib_save_LIBS
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11046$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11047if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11048  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11049fi
11050
11051
11052fi
11053
11054
11055fi
11056
11057
11058fi
11059
11060
11061fi
11062
11063
11064fi
11065
11066    ;;
11067  esac
11068
11069  if test "x$lt_cv_dlopen" != xno; then
11070    enable_dlopen=yes
11071  else
11072    enable_dlopen=no
11073  fi
11074
11075  case $lt_cv_dlopen in
11076  dlopen)
11077    save_CPPFLAGS="$CPPFLAGS"
11078    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11079
11080    save_LDFLAGS="$LDFLAGS"
11081    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11082
11083    save_LIBS="$LIBS"
11084    LIBS="$lt_cv_dlopen_libs $LIBS"
11085
11086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11087$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11088if test "${lt_cv_dlopen_self+set}" = set; then :
11089  $as_echo_n "(cached) " >&6
11090else
11091  	  if test "$cross_compiling" = yes; then :
11092  lt_cv_dlopen_self=cross
11093else
11094  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095  lt_status=$lt_dlunknown
11096  cat > conftest.$ac_ext <<_LT_EOF
11097#line 11097 "configure"
11098#include "confdefs.h"
11099
11100#if HAVE_DLFCN_H
11101#include <dlfcn.h>
11102#endif
11103
11104#include <stdio.h>
11105
11106#ifdef RTLD_GLOBAL
11107#  define LT_DLGLOBAL		RTLD_GLOBAL
11108#else
11109#  ifdef DL_GLOBAL
11110#    define LT_DLGLOBAL		DL_GLOBAL
11111#  else
11112#    define LT_DLGLOBAL		0
11113#  endif
11114#endif
11115
11116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117   find out it does not work in some platform. */
11118#ifndef LT_DLLAZY_OR_NOW
11119#  ifdef RTLD_LAZY
11120#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11121#  else
11122#    ifdef DL_LAZY
11123#      define LT_DLLAZY_OR_NOW		DL_LAZY
11124#    else
11125#      ifdef RTLD_NOW
11126#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11127#      else
11128#        ifdef DL_NOW
11129#          define LT_DLLAZY_OR_NOW	DL_NOW
11130#        else
11131#          define LT_DLLAZY_OR_NOW	0
11132#        endif
11133#      endif
11134#    endif
11135#  endif
11136#endif
11137
11138/* When -fvisbility=hidden is used, assume the code has been annotated
11139   correspondingly for the symbols needed.  */
11140#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11141void fnord () __attribute__((visibility("default")));
11142#endif
11143
11144void fnord () { int i=42; }
11145int main ()
11146{
11147  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148  int status = $lt_dlunknown;
11149
11150  if (self)
11151    {
11152      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11153      else
11154        {
11155	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11156          else puts (dlerror ());
11157	}
11158      /* dlclose (self); */
11159    }
11160  else
11161    puts (dlerror ());
11162
11163  return status;
11164}
11165_LT_EOF
11166  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11167  (eval $ac_link) 2>&5
11168  ac_status=$?
11169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11171    (./conftest; exit; ) >&5 2>/dev/null
11172    lt_status=$?
11173    case x$lt_status in
11174      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11175      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11176      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11177    esac
11178  else :
11179    # compilation failed
11180    lt_cv_dlopen_self=no
11181  fi
11182fi
11183rm -fr conftest*
11184
11185
11186fi
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11188$as_echo "$lt_cv_dlopen_self" >&6; }
11189
11190    if test "x$lt_cv_dlopen_self" = xyes; then
11191      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11192      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11194if test "${lt_cv_dlopen_self_static+set}" = set; then :
11195  $as_echo_n "(cached) " >&6
11196else
11197  	  if test "$cross_compiling" = yes; then :
11198  lt_cv_dlopen_self_static=cross
11199else
11200  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201  lt_status=$lt_dlunknown
11202  cat > conftest.$ac_ext <<_LT_EOF
11203#line 11203 "configure"
11204#include "confdefs.h"
11205
11206#if HAVE_DLFCN_H
11207#include <dlfcn.h>
11208#endif
11209
11210#include <stdio.h>
11211
11212#ifdef RTLD_GLOBAL
11213#  define LT_DLGLOBAL		RTLD_GLOBAL
11214#else
11215#  ifdef DL_GLOBAL
11216#    define LT_DLGLOBAL		DL_GLOBAL
11217#  else
11218#    define LT_DLGLOBAL		0
11219#  endif
11220#endif
11221
11222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223   find out it does not work in some platform. */
11224#ifndef LT_DLLAZY_OR_NOW
11225#  ifdef RTLD_LAZY
11226#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11227#  else
11228#    ifdef DL_LAZY
11229#      define LT_DLLAZY_OR_NOW		DL_LAZY
11230#    else
11231#      ifdef RTLD_NOW
11232#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11233#      else
11234#        ifdef DL_NOW
11235#          define LT_DLLAZY_OR_NOW	DL_NOW
11236#        else
11237#          define LT_DLLAZY_OR_NOW	0
11238#        endif
11239#      endif
11240#    endif
11241#  endif
11242#endif
11243
11244/* When -fvisbility=hidden is used, assume the code has been annotated
11245   correspondingly for the symbols needed.  */
11246#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247void fnord () __attribute__((visibility("default")));
11248#endif
11249
11250void fnord () { int i=42; }
11251int main ()
11252{
11253  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254  int status = $lt_dlunknown;
11255
11256  if (self)
11257    {
11258      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11259      else
11260        {
11261	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11262          else puts (dlerror ());
11263	}
11264      /* dlclose (self); */
11265    }
11266  else
11267    puts (dlerror ());
11268
11269  return status;
11270}
11271_LT_EOF
11272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11273  (eval $ac_link) 2>&5
11274  ac_status=$?
11275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11277    (./conftest; exit; ) >&5 2>/dev/null
11278    lt_status=$?
11279    case x$lt_status in
11280      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11281      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11282      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11283    esac
11284  else :
11285    # compilation failed
11286    lt_cv_dlopen_self_static=no
11287  fi
11288fi
11289rm -fr conftest*
11290
11291
11292fi
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11294$as_echo "$lt_cv_dlopen_self_static" >&6; }
11295    fi
11296
11297    CPPFLAGS="$save_CPPFLAGS"
11298    LDFLAGS="$save_LDFLAGS"
11299    LIBS="$save_LIBS"
11300    ;;
11301  esac
11302
11303  case $lt_cv_dlopen_self in
11304  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11305  *) enable_dlopen_self=unknown ;;
11306  esac
11307
11308  case $lt_cv_dlopen_self_static in
11309  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11310  *) enable_dlopen_self_static=unknown ;;
11311  esac
11312fi
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330striplib=
11331old_striplib=
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11333$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11335  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11336  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338$as_echo "yes" >&6; }
11339else
11340# FIXME - insert some real tests, host_os isn't really good enough
11341  case $host_os in
11342  darwin*)
11343    if test -n "$STRIP" ; then
11344      striplib="$STRIP -x"
11345      old_striplib="$STRIP -S"
11346      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347$as_echo "yes" >&6; }
11348    else
11349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351    fi
11352    ;;
11353  *)
11354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355$as_echo "no" >&6; }
11356    ;;
11357  esac
11358fi
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371  # Report which library types will actually be built
11372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11373$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11375$as_echo "$can_build_shared" >&6; }
11376
11377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11378$as_echo_n "checking whether to build shared libraries... " >&6; }
11379  test "$can_build_shared" = "no" && enable_shared=no
11380
11381  # On AIX, shared libraries and static libraries use the same namespace, and
11382  # are all built from PIC.
11383  case $host_os in
11384  aix3*)
11385    test "$enable_shared" = yes && enable_static=no
11386    if test -n "$RANLIB"; then
11387      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11388      postinstall_cmds='$RANLIB $lib'
11389    fi
11390    ;;
11391
11392  aix[4-9]*)
11393    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11394      test "$enable_shared" = yes && enable_static=no
11395    fi
11396    ;;
11397  esac
11398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11399$as_echo "$enable_shared" >&6; }
11400
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11402$as_echo_n "checking whether to build static libraries... " >&6; }
11403  # Make sure either enable_shared or enable_static is yes.
11404  test "$enable_shared" = yes || enable_static=yes
11405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11406$as_echo "$enable_static" >&6; }
11407
11408
11409
11410
11411fi
11412ac_ext=c
11413ac_cpp='$CPP $CPPFLAGS'
11414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416ac_compiler_gnu=$ac_cv_c_compiler_gnu
11417
11418CC="$lt_save_CC"
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432        ac_config_commands="$ac_config_commands libtool"
11433
11434
11435
11436
11437# Only expand once:
11438
11439
11440
11441
11442
11443case $host in
11444  *-cygwin* | *-mingw*)
11445    # 'host' will be top-level target in the case of a target lib,
11446    # we must compare to with_cross_host to decide if this is a native
11447    # or cross-compiler and select where to install dlls appropriately.
11448    if test -n "$with_cross_host" &&
11449	test x"$with_cross_host" != x"no"; then
11450      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11451    else
11452      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11453    fi
11454    ;;
11455  *)
11456    lt_host_flags=
11457    ;;
11458esac
11459
11460
11461
11462
11463
11464
11465
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11467$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11468    # Check whether --enable-maintainer-mode was given.
11469if test "${enable_maintainer_mode+set}" = set; then :
11470  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11471else
11472  USE_MAINTAINER_MODE=no
11473fi
11474
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11476$as_echo "$USE_MAINTAINER_MODE" >&6; }
11477   if test $USE_MAINTAINER_MODE = yes; then
11478  MAINTAINER_MODE_TRUE=
11479  MAINTAINER_MODE_FALSE='#'
11480else
11481  MAINTAINER_MODE_TRUE='#'
11482  MAINTAINER_MODE_FALSE=
11483fi
11484
11485  MAINT=$MAINTAINER_MODE_TRUE
11486
11487
11488
11489# Create a spec file, so that compile/link tests don't fail
11490test -f libgfortran.spec || touch libgfortran.spec
11491FCFLAGS="$FCFLAGS -L."
11492
11493# We need gfortran to compile parts of the library
11494# We can't use AC_PROG_FC because it expects a fully working gfortran.
11495#AC_PROG_FC(gfortran)
11496case `echo $GFORTRAN` in
11497  -* | no* )
11498    FC=no ;;
11499  *)
11500    set dummy $GFORTRAN; ac_word=$2
11501    if test -x "$ac_word"; then
11502      FC="$GFORTRAN"
11503    else
11504      FC=no
11505    fi ;;
11506esac
11507ac_ext=${ac_fc_srcext-f}
11508ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11509ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11510ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11511if test -n "$ac_tool_prefix"; then
11512  for ac_prog in gfortran
11513  do
11514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517$as_echo_n "checking for $ac_word... " >&6; }
11518if test "${ac_cv_prog_FC+set}" = set; then :
11519  $as_echo_n "(cached) " >&6
11520else
11521  if test -n "$FC"; then
11522  ac_cv_prog_FC="$FC" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527  IFS=$as_save_IFS
11528  test -z "$as_dir" && as_dir=.
11529    for ac_exec_ext in '' $ac_executable_extensions; do
11530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11531    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533    break 2
11534  fi
11535done
11536  done
11537IFS=$as_save_IFS
11538
11539fi
11540fi
11541FC=$ac_cv_prog_FC
11542if test -n "$FC"; then
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11544$as_echo "$FC" >&6; }
11545else
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548fi
11549
11550
11551    test -n "$FC" && break
11552  done
11553fi
11554if test -z "$FC"; then
11555  ac_ct_FC=$FC
11556  for ac_prog in gfortran
11557do
11558  # Extract the first word of "$ac_prog", so it can be a program name with args.
11559set dummy $ac_prog; ac_word=$2
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
11562if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11563  $as_echo_n "(cached) " >&6
11564else
11565  if test -n "$ac_ct_FC"; then
11566  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571  IFS=$as_save_IFS
11572  test -z "$as_dir" && as_dir=.
11573    for ac_exec_ext in '' $ac_executable_extensions; do
11574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11575    ac_cv_prog_ac_ct_FC="$ac_prog"
11576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577    break 2
11578  fi
11579done
11580  done
11581IFS=$as_save_IFS
11582
11583fi
11584fi
11585ac_ct_FC=$ac_cv_prog_ac_ct_FC
11586if test -n "$ac_ct_FC"; then
11587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11588$as_echo "$ac_ct_FC" >&6; }
11589else
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592fi
11593
11594
11595  test -n "$ac_ct_FC" && break
11596done
11597
11598  if test "x$ac_ct_FC" = x; then
11599    FC=""
11600  else
11601    case $cross_compiling:$ac_tool_warned in
11602yes:)
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11605ac_tool_warned=yes ;;
11606esac
11607    FC=$ac_ct_FC
11608  fi
11609fi
11610
11611
11612# Provide some information about the compiler.
11613$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11614set X $ac_compile
11615ac_compiler=$2
11616for ac_option in --version -v -V -qversion; do
11617  { { ac_try="$ac_compiler $ac_option >&5"
11618case "(($ac_try" in
11619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620  *) ac_try_echo=$ac_try;;
11621esac
11622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11623$as_echo "$ac_try_echo"; } >&5
11624  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11625  ac_status=$?
11626  if test -s conftest.err; then
11627    sed '10a\
11628... rest of stderr output deleted ...
11629         10q' conftest.err >conftest.er1
11630    cat conftest.er1 >&5
11631    rm -f conftest.er1 conftest.err
11632  fi
11633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11634  test $ac_status = 0; }
11635done
11636rm -f a.out
11637
11638# If we don't use `.F' as extension, the preprocessor is not run on the
11639# input file.  (Note that this only needs to work for GNU compilers.)
11640ac_save_ext=$ac_ext
11641ac_ext=F
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11643$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11644if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  cat > conftest.$ac_ext <<_ACEOF
11648      program main
11649#ifndef __GNUC__
11650       choke me
11651#endif
11652
11653      end
11654_ACEOF
11655if ac_fn_fc_try_compile "$LINENO"; then :
11656  ac_compiler_gnu=yes
11657else
11658  ac_compiler_gnu=no
11659fi
11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11662
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11665$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11666ac_ext=$ac_save_ext
11667ac_test_FCFLAGS=${FCFLAGS+set}
11668ac_save_FCFLAGS=$FCFLAGS
11669FCFLAGS=
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11671$as_echo_n "checking whether $FC accepts -g... " >&6; }
11672if test "${ac_cv_prog_fc_g+set}" = set; then :
11673  $as_echo_n "(cached) " >&6
11674else
11675  FCFLAGS=-g
11676cat > conftest.$ac_ext <<_ACEOF
11677      program main
11678
11679      end
11680_ACEOF
11681if ac_fn_fc_try_compile "$LINENO"; then :
11682  ac_cv_prog_fc_g=yes
11683else
11684  ac_cv_prog_fc_g=no
11685fi
11686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11690$as_echo "$ac_cv_prog_fc_g" >&6; }
11691if test "$ac_test_FCFLAGS" = set; then
11692  FCFLAGS=$ac_save_FCFLAGS
11693elif test $ac_cv_prog_fc_g = yes; then
11694  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11695    FCFLAGS="-g -O2"
11696  else
11697    FCFLAGS="-g"
11698  fi
11699else
11700  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11701    FCFLAGS="-O2"
11702  else
11703    FCFLAGS=
11704  fi
11705fi
11706
11707ac_ext=c
11708ac_cpp='$CPP $CPPFLAGS'
11709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11711ac_compiler_gnu=$ac_cv_c_compiler_gnu
11712
11713      ac_ext=${ac_fc_srcext-f}
11714ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11715ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11716ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11717
11718
11719if test -z "$FC" || test "X$FC" = "Xno"; then
11720  _lt_disable_FC=yes
11721fi
11722
11723archive_cmds_need_lc_FC=no
11724allow_undefined_flag_FC=
11725always_export_symbols_FC=no
11726archive_expsym_cmds_FC=
11727export_dynamic_flag_spec_FC=
11728hardcode_direct_FC=no
11729hardcode_direct_absolute_FC=no
11730hardcode_libdir_flag_spec_FC=
11731hardcode_libdir_flag_spec_ld_FC=
11732hardcode_libdir_separator_FC=
11733hardcode_minus_L_FC=no
11734hardcode_automatic_FC=no
11735inherit_rpath_FC=no
11736module_cmds_FC=
11737module_expsym_cmds_FC=
11738link_all_deplibs_FC=unknown
11739old_archive_cmds_FC=$old_archive_cmds
11740reload_flag_FC=$reload_flag
11741reload_cmds_FC=$reload_cmds
11742no_undefined_flag_FC=
11743whole_archive_flag_spec_FC=
11744enable_shared_with_static_runtimes_FC=no
11745
11746# Source file extension for fc test sources.
11747ac_ext=${ac_fc_srcext-f}
11748
11749# Object file extension for compiled fc test sources.
11750objext=o
11751objext_FC=$objext
11752
11753# No sense in running all these tests if we already determined that
11754# the FC compiler isn't working.  Some variables (like enable_shared)
11755# are currently assumed to apply to all compilers on this platform,
11756# and will be corrupted by setting them based on a non-working compiler.
11757if test "$_lt_disable_FC" != yes; then
11758  # Code to be used in simple compile tests
11759  lt_simple_compile_test_code="\
11760      subroutine t
11761      return
11762      end
11763"
11764
11765  # Code to be used in simple link tests
11766  lt_simple_link_test_code="\
11767      program t
11768      end
11769"
11770
11771  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11772
11773
11774
11775
11776
11777
11778# If no C compiler was specified, use CC.
11779LTCC=${LTCC-"$CC"}
11780
11781# If no C compiler flags were specified, use CFLAGS.
11782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11783
11784# Allow CC to be a program name with arguments.
11785compiler=$CC
11786
11787
11788  # save warnings/boilerplate of simple test code
11789  ac_outfile=conftest.$ac_objext
11790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11792_lt_compiler_boilerplate=`cat conftest.err`
11793$RM conftest*
11794
11795  ac_outfile=conftest.$ac_objext
11796echo "$lt_simple_link_test_code" >conftest.$ac_ext
11797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11798_lt_linker_boilerplate=`cat conftest.err`
11799$RM -r conftest*
11800
11801
11802  # Allow CC to be a program name with arguments.
11803  lt_save_CC="$CC"
11804  lt_save_GCC=$GCC
11805  CC=${FC-"f95"}
11806  compiler=$CC
11807  GCC=$ac_cv_fc_compiler_gnu
11808
11809  compiler_FC=$CC
11810  for cc_temp in $compiler""; do
11811  case $cc_temp in
11812    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11813    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11814    \-*) ;;
11815    *) break;;
11816  esac
11817done
11818cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11819
11820
11821  if test -n "$compiler"; then
11822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11823$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11825$as_echo "$can_build_shared" >&6; }
11826
11827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11828$as_echo_n "checking whether to build shared libraries... " >&6; }
11829    test "$can_build_shared" = "no" && enable_shared=no
11830
11831    # On AIX, shared libraries and static libraries use the same namespace, and
11832    # are all built from PIC.
11833    case $host_os in
11834      aix3*)
11835        test "$enable_shared" = yes && enable_static=no
11836        if test -n "$RANLIB"; then
11837          archive_cmds="$archive_cmds~\$RANLIB \$lib"
11838          postinstall_cmds='$RANLIB $lib'
11839        fi
11840        ;;
11841      aix[4-9]*)
11842	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11843	  test "$enable_shared" = yes && enable_static=no
11844	fi
11845        ;;
11846    esac
11847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11848$as_echo "$enable_shared" >&6; }
11849
11850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11851$as_echo_n "checking whether to build static libraries... " >&6; }
11852    # Make sure either enable_shared or enable_static is yes.
11853    test "$enable_shared" = yes || enable_static=yes
11854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11855$as_echo "$enable_static" >&6; }
11856
11857    GCC_FC="$ac_cv_fc_compiler_gnu"
11858    LD_FC="$LD"
11859
11860    ## CAVEAT EMPTOR:
11861    ## There is no encapsulation within the following macros, do not change
11862    ## the running order or otherwise move them around unless you know exactly
11863    ## what you are doing...
11864    # Dependencies to place before and after the object being linked:
11865predep_objects_FC=
11866postdep_objects_FC=
11867predeps_FC=
11868postdeps_FC=
11869compiler_lib_search_path_FC=
11870
11871cat > conftest.$ac_ext <<_LT_EOF
11872      subroutine foo
11873      implicit none
11874      integer a
11875      a=0
11876      return
11877      end
11878_LT_EOF
11879
11880if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11881  (eval $ac_compile) 2>&5
11882  ac_status=$?
11883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11884  test $ac_status = 0; }; then
11885  # Parse the compiler output and extract the necessary
11886  # objects, libraries and library flags.
11887
11888  # Sentinel used to keep track of whether or not we are before
11889  # the conftest object file.
11890  pre_test_object_deps_done=no
11891
11892  for p in `eval "$output_verbose_link_cmd"`; do
11893    case $p in
11894
11895    -L* | -R* | -l*)
11896       # Some compilers place space between "-{L,R}" and the path.
11897       # Remove the space.
11898       if test $p = "-L" ||
11899          test $p = "-R"; then
11900	 prev=$p
11901	 continue
11902       else
11903	 prev=
11904       fi
11905
11906       if test "$pre_test_object_deps_done" = no; then
11907	 case $p in
11908	 -L* | -R*)
11909	   # Internal compiler library paths should come after those
11910	   # provided the user.  The postdeps already come after the
11911	   # user supplied libs so there is no need to process them.
11912	   if test -z "$compiler_lib_search_path_FC"; then
11913	     compiler_lib_search_path_FC="${prev}${p}"
11914	   else
11915	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11916	   fi
11917	   ;;
11918	 # The "-l" case would never come before the object being
11919	 # linked, so don't bother handling this case.
11920	 esac
11921       else
11922	 if test -z "$postdeps_FC"; then
11923	   postdeps_FC="${prev}${p}"
11924	 else
11925	   postdeps_FC="${postdeps_FC} ${prev}${p}"
11926	 fi
11927       fi
11928       ;;
11929
11930    *.$objext)
11931       # This assumes that the test object file only shows up
11932       # once in the compiler output.
11933       if test "$p" = "conftest.$objext"; then
11934	 pre_test_object_deps_done=yes
11935	 continue
11936       fi
11937
11938       if test "$pre_test_object_deps_done" = no; then
11939	 if test -z "$predep_objects_FC"; then
11940	   predep_objects_FC="$p"
11941	 else
11942	   predep_objects_FC="$predep_objects_FC $p"
11943	 fi
11944       else
11945	 if test -z "$postdep_objects_FC"; then
11946	   postdep_objects_FC="$p"
11947	 else
11948	   postdep_objects_FC="$postdep_objects_FC $p"
11949	 fi
11950       fi
11951       ;;
11952
11953    *) ;; # Ignore the rest.
11954
11955    esac
11956  done
11957
11958  # Clean up.
11959  rm -f a.out a.exe
11960else
11961  echo "libtool.m4: error: problem compiling FC test program"
11962fi
11963
11964$RM -f confest.$objext
11965
11966# PORTME: override above test on systems where it is broken
11967
11968
11969case " $postdeps_FC " in
11970*" -lc "*) archive_cmds_need_lc_FC=no ;;
11971esac
11972 compiler_lib_search_dirs_FC=
11973if test -n "${compiler_lib_search_path_FC}"; then
11974 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11975fi
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007    lt_prog_compiler_wl_FC=
12008lt_prog_compiler_pic_FC=
12009lt_prog_compiler_static_FC=
12010
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12012$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12013
12014  if test "$GCC" = yes; then
12015    lt_prog_compiler_wl_FC='-Wl,'
12016    lt_prog_compiler_static_FC='-static'
12017
12018    case $host_os in
12019      aix*)
12020      # All AIX code is PIC.
12021      if test "$host_cpu" = ia64; then
12022	# AIX 5 now supports IA64 processor
12023	lt_prog_compiler_static_FC='-Bstatic'
12024      fi
12025      lt_prog_compiler_pic_FC='-fPIC'
12026      ;;
12027
12028    amigaos*)
12029      case $host_cpu in
12030      powerpc)
12031            # see comment about AmigaOS4 .so support
12032            lt_prog_compiler_pic_FC='-fPIC'
12033        ;;
12034      m68k)
12035            # FIXME: we need at least 68020 code to build shared libraries, but
12036            # adding the `-m68020' flag to GCC prevents building anything better,
12037            # like `-m68040'.
12038            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12039        ;;
12040      esac
12041      ;;
12042
12043    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12044      # PIC is the default for these OSes.
12045      ;;
12046
12047    mingw* | cygwin* | pw32* | os2* | cegcc*)
12048      # This hack is so that the source file can tell whether it is being
12049      # built for inclusion in a dll (and should export symbols for example).
12050      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12051      # (--disable-auto-import) libraries
12052      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12053      ;;
12054
12055    darwin* | rhapsody*)
12056      # PIC is the default on this platform
12057      # Common symbols not allowed in MH_DYLIB files
12058      lt_prog_compiler_pic_FC='-fno-common'
12059      ;;
12060
12061    haiku*)
12062      # PIC is the default for Haiku.
12063      # The "-static" flag exists, but is broken.
12064      lt_prog_compiler_static_FC=
12065      ;;
12066
12067    hpux*)
12068      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12069      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12070      # sets the default TLS model and affects inlining.
12071      case $host_cpu in
12072      hppa*64*)
12073	# +Z the default
12074	;;
12075      *)
12076	lt_prog_compiler_pic_FC='-fPIC'
12077	;;
12078      esac
12079      ;;
12080
12081    interix[3-9]*)
12082      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12083      # Instead, we relocate shared libraries at runtime.
12084      ;;
12085
12086    msdosdjgpp*)
12087      # Just because we use GCC doesn't mean we suddenly get shared libraries
12088      # on systems that don't support them.
12089      lt_prog_compiler_can_build_shared_FC=no
12090      enable_shared=no
12091      ;;
12092
12093    *nto* | *qnx*)
12094      # QNX uses GNU C++, but need to define -shared option too, otherwise
12095      # it will coredump.
12096      lt_prog_compiler_pic_FC='-fPIC -shared'
12097      ;;
12098
12099    sysv4*MP*)
12100      if test -d /usr/nec; then
12101	lt_prog_compiler_pic_FC=-Kconform_pic
12102      fi
12103      ;;
12104
12105    *)
12106      lt_prog_compiler_pic_FC='-fPIC'
12107      ;;
12108    esac
12109
12110    case $cc_basename in
12111    nvcc*) # Cuda Compiler Driver 2.2
12112      lt_prog_compiler_wl_FC='-Xlinker '
12113      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12114      ;;
12115    esac
12116  else
12117    # PORTME Check for flag to pass linker flags through the system compiler.
12118    case $host_os in
12119    aix*)
12120      lt_prog_compiler_wl_FC='-Wl,'
12121      if test "$host_cpu" = ia64; then
12122	# AIX 5 now supports IA64 processor
12123	lt_prog_compiler_static_FC='-Bstatic'
12124      else
12125	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12126      fi
12127      ;;
12128
12129    mingw* | cygwin* | pw32* | os2* | cegcc*)
12130      # This hack is so that the source file can tell whether it is being
12131      # built for inclusion in a dll (and should export symbols for example).
12132      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12133      ;;
12134
12135    hpux9* | hpux10* | hpux11*)
12136      lt_prog_compiler_wl_FC='-Wl,'
12137      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12138      # not for PA HP-UX.
12139      case $host_cpu in
12140      hppa*64*|ia64*)
12141	# +Z the default
12142	;;
12143      *)
12144	lt_prog_compiler_pic_FC='+Z'
12145	;;
12146      esac
12147      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12148      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12149      ;;
12150
12151    irix5* | irix6* | nonstopux*)
12152      lt_prog_compiler_wl_FC='-Wl,'
12153      # PIC (with -KPIC) is the default.
12154      lt_prog_compiler_static_FC='-non_shared'
12155      ;;
12156
12157    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12158      case $cc_basename in
12159      # old Intel for x86_64 which still supported -KPIC.
12160      ecc*)
12161	lt_prog_compiler_wl_FC='-Wl,'
12162	lt_prog_compiler_pic_FC='-KPIC'
12163	lt_prog_compiler_static_FC='-static'
12164        ;;
12165      # icc used to be incompatible with GCC.
12166      # ICC 10 doesn't accept -KPIC any more.
12167      icc* | ifort*)
12168	lt_prog_compiler_wl_FC='-Wl,'
12169	lt_prog_compiler_pic_FC='-fPIC'
12170	lt_prog_compiler_static_FC='-static'
12171        ;;
12172      # Lahey Fortran 8.1.
12173      lf95*)
12174	lt_prog_compiler_wl_FC='-Wl,'
12175	lt_prog_compiler_pic_FC='--shared'
12176	lt_prog_compiler_static_FC='--static'
12177	;;
12178      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12179        # Portland Group compilers (*not* the Pentium gcc compiler,
12180	# which looks to be a dead project)
12181	lt_prog_compiler_wl_FC='-Wl,'
12182	lt_prog_compiler_pic_FC='-fpic'
12183	lt_prog_compiler_static_FC='-Bstatic'
12184        ;;
12185      ccc*)
12186        lt_prog_compiler_wl_FC='-Wl,'
12187        # All Alpha code is PIC.
12188        lt_prog_compiler_static_FC='-non_shared'
12189        ;;
12190      xl* | bgxl* | bgf* | mpixl*)
12191	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12192	lt_prog_compiler_wl_FC='-Wl,'
12193	lt_prog_compiler_pic_FC='-qpic'
12194	lt_prog_compiler_static_FC='-qstaticlink'
12195	;;
12196      *)
12197	case `$CC -V 2>&1 | sed 5q` in
12198	*Sun\ F* | *Sun*Fortran*)
12199	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12200	  lt_prog_compiler_pic_FC='-KPIC'
12201	  lt_prog_compiler_static_FC='-Bstatic'
12202	  lt_prog_compiler_wl_FC=''
12203	  ;;
12204	*Sun\ C*)
12205	  # Sun C 5.9
12206	  lt_prog_compiler_pic_FC='-KPIC'
12207	  lt_prog_compiler_static_FC='-Bstatic'
12208	  lt_prog_compiler_wl_FC='-Wl,'
12209	  ;;
12210	esac
12211	;;
12212      esac
12213      ;;
12214
12215    newsos6)
12216      lt_prog_compiler_pic_FC='-KPIC'
12217      lt_prog_compiler_static_FC='-Bstatic'
12218      ;;
12219
12220    *nto* | *qnx*)
12221      # QNX uses GNU C++, but need to define -shared option too, otherwise
12222      # it will coredump.
12223      lt_prog_compiler_pic_FC='-fPIC -shared'
12224      ;;
12225
12226    osf3* | osf4* | osf5*)
12227      lt_prog_compiler_wl_FC='-Wl,'
12228      # All OSF/1 code is PIC.
12229      lt_prog_compiler_static_FC='-non_shared'
12230      ;;
12231
12232    rdos*)
12233      lt_prog_compiler_static_FC='-non_shared'
12234      ;;
12235
12236    solaris*)
12237      lt_prog_compiler_pic_FC='-KPIC'
12238      lt_prog_compiler_static_FC='-Bstatic'
12239      case $cc_basename in
12240      f77* | f90* | f95*)
12241	lt_prog_compiler_wl_FC='-Qoption ld ';;
12242      *)
12243	lt_prog_compiler_wl_FC='-Wl,';;
12244      esac
12245      ;;
12246
12247    sunos4*)
12248      lt_prog_compiler_wl_FC='-Qoption ld '
12249      lt_prog_compiler_pic_FC='-PIC'
12250      lt_prog_compiler_static_FC='-Bstatic'
12251      ;;
12252
12253    sysv4 | sysv4.2uw2* | sysv4.3*)
12254      lt_prog_compiler_wl_FC='-Wl,'
12255      lt_prog_compiler_pic_FC='-KPIC'
12256      lt_prog_compiler_static_FC='-Bstatic'
12257      ;;
12258
12259    sysv4*MP*)
12260      if test -d /usr/nec ;then
12261	lt_prog_compiler_pic_FC='-Kconform_pic'
12262	lt_prog_compiler_static_FC='-Bstatic'
12263      fi
12264      ;;
12265
12266    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12267      lt_prog_compiler_wl_FC='-Wl,'
12268      lt_prog_compiler_pic_FC='-KPIC'
12269      lt_prog_compiler_static_FC='-Bstatic'
12270      ;;
12271
12272    unicos*)
12273      lt_prog_compiler_wl_FC='-Wl,'
12274      lt_prog_compiler_can_build_shared_FC=no
12275      ;;
12276
12277    uts4*)
12278      lt_prog_compiler_pic_FC='-pic'
12279      lt_prog_compiler_static_FC='-Bstatic'
12280      ;;
12281
12282    *)
12283      lt_prog_compiler_can_build_shared_FC=no
12284      ;;
12285    esac
12286  fi
12287
12288case $host_os in
12289  # For platforms which do not support PIC, -DPIC is meaningless:
12290  *djgpp*)
12291    lt_prog_compiler_pic_FC=
12292    ;;
12293  *)
12294    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12295    ;;
12296esac
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12298$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12299
12300
12301
12302#
12303# Check to make sure the PIC flag actually works.
12304#
12305if test -n "$lt_prog_compiler_pic_FC"; then
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12307$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12308if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  lt_cv_prog_compiler_pic_works_FC=no
12312   ac_outfile=conftest.$ac_objext
12313   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12314   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12315   # Insert the option either (1) after the last *FLAGS variable, or
12316   # (2) before a word containing "conftest.", or (3) at the end.
12317   # Note that $ac_compile itself does not contain backslashes and begins
12318   # with a dollar sign (not a hyphen), so the echo should work correctly.
12319   # The option is referenced via a variable to avoid confusing sed.
12320   lt_compile=`echo "$ac_compile" | $SED \
12321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12323   -e 's:$: $lt_compiler_flag:'`
12324   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12325   (eval "$lt_compile" 2>conftest.err)
12326   ac_status=$?
12327   cat conftest.err >&5
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   if (exit $ac_status) && test -s "$ac_outfile"; then
12330     # The compiler can only warn and ignore the option if not recognized
12331     # So say no if there are warnings other than the usual output.
12332     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12333     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12334     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12335       lt_cv_prog_compiler_pic_works_FC=yes
12336     fi
12337   fi
12338   $RM conftest*
12339
12340fi
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12342$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12343
12344if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12345    case $lt_prog_compiler_pic_FC in
12346     "" | " "*) ;;
12347     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12348     esac
12349else
12350    lt_prog_compiler_pic_FC=
12351     lt_prog_compiler_can_build_shared_FC=no
12352fi
12353
12354fi
12355
12356
12357
12358#
12359# Check to make sure the static flag actually works.
12360#
12361wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12363$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12364if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12365  $as_echo_n "(cached) " >&6
12366else
12367  lt_cv_prog_compiler_static_works_FC=no
12368   save_LDFLAGS="$LDFLAGS"
12369   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12370   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12371   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12372     # The linker can only warn and ignore the option if not recognized
12373     # So say no if there are warnings
12374     if test -s conftest.err; then
12375       # Append any errors to the config.log.
12376       cat conftest.err 1>&5
12377       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12378       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12379       if diff conftest.exp conftest.er2 >/dev/null; then
12380         lt_cv_prog_compiler_static_works_FC=yes
12381       fi
12382     else
12383       lt_cv_prog_compiler_static_works_FC=yes
12384     fi
12385   fi
12386   $RM -r conftest*
12387   LDFLAGS="$save_LDFLAGS"
12388
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12391$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12392
12393if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12394    :
12395else
12396    lt_prog_compiler_static_FC=
12397fi
12398
12399
12400
12401
12402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12404if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12405  $as_echo_n "(cached) " >&6
12406else
12407  lt_cv_prog_compiler_c_o_FC=no
12408   $RM -r conftest 2>/dev/null
12409   mkdir conftest
12410   cd conftest
12411   mkdir out
12412   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12413
12414   lt_compiler_flag="-o out/conftest2.$ac_objext"
12415   # Insert the option either (1) after the last *FLAGS variable, or
12416   # (2) before a word containing "conftest.", or (3) at the end.
12417   # Note that $ac_compile itself does not contain backslashes and begins
12418   # with a dollar sign (not a hyphen), so the echo should work correctly.
12419   lt_compile=`echo "$ac_compile" | $SED \
12420   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12422   -e 's:$: $lt_compiler_flag:'`
12423   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12424   (eval "$lt_compile" 2>out/conftest.err)
12425   ac_status=$?
12426   cat out/conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12429   then
12430     # The compiler can only warn and ignore the option if not recognized
12431     # So say no if there are warnings
12432     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12433     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12434     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12435       lt_cv_prog_compiler_c_o_FC=yes
12436     fi
12437   fi
12438   chmod u+w . 2>&5
12439   $RM conftest*
12440   # SGI C++ compiler will create directory out/ii_files/ for
12441   # template instantiation
12442   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12443   $RM out/* && rmdir out
12444   cd ..
12445   $RM -r conftest
12446   $RM conftest*
12447
12448fi
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12450$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12451
12452
12453
12454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12455$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12456if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12457  $as_echo_n "(cached) " >&6
12458else
12459  lt_cv_prog_compiler_c_o_FC=no
12460   $RM -r conftest 2>/dev/null
12461   mkdir conftest
12462   cd conftest
12463   mkdir out
12464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12465
12466   lt_compiler_flag="-o out/conftest2.$ac_objext"
12467   # Insert the option either (1) after the last *FLAGS variable, or
12468   # (2) before a word containing "conftest.", or (3) at the end.
12469   # Note that $ac_compile itself does not contain backslashes and begins
12470   # with a dollar sign (not a hyphen), so the echo should work correctly.
12471   lt_compile=`echo "$ac_compile" | $SED \
12472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12474   -e 's:$: $lt_compiler_flag:'`
12475   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12476   (eval "$lt_compile" 2>out/conftest.err)
12477   ac_status=$?
12478   cat out/conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12481   then
12482     # The compiler can only warn and ignore the option if not recognized
12483     # So say no if there are warnings
12484     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12485     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12486     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12487       lt_cv_prog_compiler_c_o_FC=yes
12488     fi
12489   fi
12490   chmod u+w . 2>&5
12491   $RM conftest*
12492   # SGI C++ compiler will create directory out/ii_files/ for
12493   # template instantiation
12494   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12495   $RM out/* && rmdir out
12496   cd ..
12497   $RM -r conftest
12498   $RM conftest*
12499
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12502$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12503
12504
12505
12506
12507hard_links="nottested"
12508if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12509  # do not overwrite the value of need_locks provided by the user
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12511$as_echo_n "checking if we can lock with hard links... " >&6; }
12512  hard_links=yes
12513  $RM conftest*
12514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12515  touch conftest.a
12516  ln conftest.a conftest.b 2>&5 || hard_links=no
12517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12519$as_echo "$hard_links" >&6; }
12520  if test "$hard_links" = no; then
12521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12522$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12523    need_locks=warn
12524  fi
12525else
12526  need_locks=no
12527fi
12528
12529
12530
12531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12532$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12533
12534  runpath_var=
12535  allow_undefined_flag_FC=
12536  always_export_symbols_FC=no
12537  archive_cmds_FC=
12538  archive_expsym_cmds_FC=
12539  compiler_needs_object_FC=no
12540  enable_shared_with_static_runtimes_FC=no
12541  export_dynamic_flag_spec_FC=
12542  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12543  hardcode_automatic_FC=no
12544  hardcode_direct_FC=no
12545  hardcode_direct_absolute_FC=no
12546  hardcode_libdir_flag_spec_FC=
12547  hardcode_libdir_flag_spec_ld_FC=
12548  hardcode_libdir_separator_FC=
12549  hardcode_minus_L_FC=no
12550  hardcode_shlibpath_var_FC=unsupported
12551  inherit_rpath_FC=no
12552  link_all_deplibs_FC=unknown
12553  module_cmds_FC=
12554  module_expsym_cmds_FC=
12555  old_archive_from_new_cmds_FC=
12556  old_archive_from_expsyms_cmds_FC=
12557  thread_safe_flag_spec_FC=
12558  whole_archive_flag_spec_FC=
12559  # include_expsyms should be a list of space-separated symbols to be *always*
12560  # included in the symbol list
12561  include_expsyms_FC=
12562  # exclude_expsyms can be an extended regexp of symbols to exclude
12563  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12564  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12565  # as well as any symbol that contains `d'.
12566  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12567  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12568  # platforms (ab)use it in PIC code, but their linkers get confused if
12569  # the symbol is explicitly referenced.  Since portable code cannot
12570  # rely on this symbol name, it's probably fine to never include it in
12571  # preloaded symbol tables.
12572  # Exclude shared library initialization/finalization symbols.
12573  extract_expsyms_cmds=
12574
12575  case $host_os in
12576  cygwin* | mingw* | pw32* | cegcc*)
12577    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12578    # When not using gcc, we currently assume that we are using
12579    # Microsoft Visual C++.
12580    if test "$GCC" != yes; then
12581      with_gnu_ld=no
12582    fi
12583    ;;
12584  interix*)
12585    # we just hope/assume this is gcc and not c89 (= MSVC++)
12586    with_gnu_ld=yes
12587    ;;
12588  openbsd*)
12589    with_gnu_ld=no
12590    ;;
12591  esac
12592
12593  ld_shlibs_FC=yes
12594
12595  # On some targets, GNU ld is compatible enough with the native linker
12596  # that we're better off using the native interface for both.
12597  lt_use_gnu_ld_interface=no
12598  if test "$with_gnu_ld" = yes; then
12599    case $host_os in
12600      aix*)
12601	# The AIX port of GNU ld has always aspired to compatibility
12602	# with the native linker.  However, as the warning in the GNU ld
12603	# block says, versions before 2.19.5* couldn't really create working
12604	# shared libraries, regardless of the interface used.
12605	case `$LD -v 2>&1` in
12606	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12607	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12608	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12609	  *)
12610	    lt_use_gnu_ld_interface=yes
12611	    ;;
12612	esac
12613	;;
12614      *)
12615	lt_use_gnu_ld_interface=yes
12616	;;
12617    esac
12618  fi
12619
12620  if test "$lt_use_gnu_ld_interface" = yes; then
12621    # If archive_cmds runs LD, not CC, wlarc should be empty
12622    wlarc='${wl}'
12623
12624    # Set some defaults for GNU ld with shared library support. These
12625    # are reset later if shared libraries are not supported. Putting them
12626    # here allows them to be overridden if necessary.
12627    runpath_var=LD_RUN_PATH
12628    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12629    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12630    # ancient GNU ld didn't support --whole-archive et. al.
12631    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12632      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12633    else
12634      whole_archive_flag_spec_FC=
12635    fi
12636    supports_anon_versioning=no
12637    case `$LD -v 2>&1` in
12638      *GNU\ gold*) supports_anon_versioning=yes ;;
12639      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12640      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12641      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12642      *\ 2.11.*) ;; # other 2.11 versions
12643      *) supports_anon_versioning=yes ;;
12644    esac
12645
12646    # See if GNU ld supports shared libraries.
12647    case $host_os in
12648    aix[3-9]*)
12649      # On AIX/PPC, the GNU linker is very broken
12650      if test "$host_cpu" != ia64; then
12651	ld_shlibs_FC=no
12652	cat <<_LT_EOF 1>&2
12653
12654*** Warning: the GNU linker, at least up to release 2.19, is reported
12655*** to be unable to reliably create shared libraries on AIX.
12656*** Therefore, libtool is disabling shared libraries support.  If you
12657*** really care for shared libraries, you may want to install binutils
12658*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12659*** You will then need to restart the configuration process.
12660
12661_LT_EOF
12662      fi
12663      ;;
12664
12665    amigaos*)
12666      case $host_cpu in
12667      powerpc)
12668            # see comment about AmigaOS4 .so support
12669            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670            archive_expsym_cmds_FC=''
12671        ;;
12672      m68k)
12673            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)'
12674            hardcode_libdir_flag_spec_FC='-L$libdir'
12675            hardcode_minus_L_FC=yes
12676        ;;
12677      esac
12678      ;;
12679
12680    beos*)
12681      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12682	allow_undefined_flag_FC=unsupported
12683	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12684	# support --undefined.  This deserves some investigation.  FIXME
12685	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12686      else
12687	ld_shlibs_FC=no
12688      fi
12689      ;;
12690
12691    cygwin* | mingw* | pw32* | cegcc*)
12692      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12693      # as there is no search path for DLLs.
12694      hardcode_libdir_flag_spec_FC='-L$libdir'
12695      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12696      allow_undefined_flag_FC=unsupported
12697      always_export_symbols_FC=no
12698      enable_shared_with_static_runtimes_FC=yes
12699      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12700
12701      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12702        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12703	# If the export-symbols file already is a .def file (1st line
12704	# is EXPORTS), use it as is; otherwise, prepend...
12705	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12706	  cp $export_symbols $output_objdir/$soname.def;
12707	else
12708	  echo EXPORTS > $output_objdir/$soname.def;
12709	  cat $export_symbols >> $output_objdir/$soname.def;
12710	fi~
12711	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12712      else
12713	ld_shlibs_FC=no
12714      fi
12715      ;;
12716
12717    haiku*)
12718      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12719      link_all_deplibs_FC=yes
12720      ;;
12721
12722    interix[3-9]*)
12723      hardcode_direct_FC=no
12724      hardcode_shlibpath_var_FC=no
12725      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12726      export_dynamic_flag_spec_FC='${wl}-E'
12727      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12728      # Instead, shared libraries are loaded at an image base (0x10000000 by
12729      # default) and relocated if they conflict, which is a slow very memory
12730      # consuming and fragmenting process.  To avoid this, we pick a random,
12731      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12732      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12733      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'
12734      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'
12735      ;;
12736
12737    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12738      tmp_diet=no
12739      if test "$host_os" = linux-dietlibc; then
12740	case $cc_basename in
12741	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12742	esac
12743      fi
12744      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12745	 && test "$tmp_diet" = no
12746      then
12747	tmp_addflag=
12748	tmp_sharedflag='-shared'
12749	case $cc_basename,$host_cpu in
12750        pgcc*)				# Portland Group C compiler
12751	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12752	  tmp_addflag=' $pic_flag'
12753	  ;;
12754	pgf77* | pgf90* | pgf95* | pgfortran*)
12755					# Portland Group f77 and f90 compilers
12756	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12757	  tmp_addflag=' $pic_flag -Mnomain' ;;
12758	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12759	  tmp_addflag=' -i_dynamic' ;;
12760	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12761	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12762	ifc* | ifort*)			# Intel Fortran compiler
12763	  tmp_addflag=' -nofor_main' ;;
12764	lf95*)				# Lahey Fortran 8.1
12765	  whole_archive_flag_spec_FC=
12766	  tmp_sharedflag='--shared' ;;
12767	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12768	  tmp_sharedflag='-qmkshrobj'
12769	  tmp_addflag= ;;
12770	nvcc*)	# Cuda Compiler Driver 2.2
12771	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12772	  compiler_needs_object_FC=yes
12773	  ;;
12774	esac
12775	case `$CC -V 2>&1 | sed 5q` in
12776	*Sun\ C*)			# Sun C 5.9
12777	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12778	  compiler_needs_object_FC=yes
12779	  tmp_sharedflag='-G' ;;
12780	*Sun\ F*)			# Sun Fortran 8.3
12781	  tmp_sharedflag='-G' ;;
12782	esac
12783	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12784
12785        if test "x$supports_anon_versioning" = xyes; then
12786          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12787	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12788	    echo "local: *; };" >> $output_objdir/$libname.ver~
12789	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12790        fi
12791
12792	case $cc_basename in
12793	xlf* | bgf* | bgxlf* | mpixlf*)
12794	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12795	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12796	  hardcode_libdir_flag_spec_FC=
12797	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12798	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12799	  if test "x$supports_anon_versioning" = xyes; then
12800	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12801	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12802	      echo "local: *; };" >> $output_objdir/$libname.ver~
12803	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12804	  fi
12805	  ;;
12806	esac
12807      else
12808        ld_shlibs_FC=no
12809      fi
12810      ;;
12811
12812    netbsd*)
12813      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12814	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12815	wlarc=
12816      else
12817	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12819      fi
12820      ;;
12821
12822    solaris*)
12823      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12824	ld_shlibs_FC=no
12825	cat <<_LT_EOF 1>&2
12826
12827*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12828*** create shared libraries on Solaris systems.  Therefore, libtool
12829*** is disabling shared libraries support.  We urge you to upgrade GNU
12830*** binutils to release 2.9.1 or newer.  Another option is to modify
12831*** your PATH or compiler configuration so that the native linker is
12832*** used, and then restart.
12833
12834_LT_EOF
12835      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12836	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12837	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12838      else
12839	ld_shlibs_FC=no
12840      fi
12841      ;;
12842
12843    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12844      case `$LD -v 2>&1` in
12845        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12846	ld_shlibs_FC=no
12847	cat <<_LT_EOF 1>&2
12848
12849*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12850*** reliably create shared libraries on SCO systems.  Therefore, libtool
12851*** is disabling shared libraries support.  We urge you to upgrade GNU
12852*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12853*** your PATH or compiler configuration so that the native linker is
12854*** used, and then restart.
12855
12856_LT_EOF
12857	;;
12858	*)
12859	  # For security reasons, it is highly recommended that you always
12860	  # use absolute paths for naming shared libraries, and exclude the
12861	  # DT_RUNPATH tag from executables and libraries.  But doing so
12862	  # requires that you compile everything twice, which is a pain.
12863	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12864	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12865	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12866	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12867	  else
12868	    ld_shlibs_FC=no
12869	  fi
12870	;;
12871      esac
12872      ;;
12873
12874    sunos4*)
12875      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12876      wlarc=
12877      hardcode_direct_FC=yes
12878      hardcode_shlibpath_var_FC=no
12879      ;;
12880
12881    *)
12882      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12883	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12885      else
12886	ld_shlibs_FC=no
12887      fi
12888      ;;
12889    esac
12890
12891    if test "$ld_shlibs_FC" = no; then
12892      runpath_var=
12893      hardcode_libdir_flag_spec_FC=
12894      export_dynamic_flag_spec_FC=
12895      whole_archive_flag_spec_FC=
12896    fi
12897  else
12898    # PORTME fill in a description of your system's linker (not GNU ld)
12899    case $host_os in
12900    aix3*)
12901      allow_undefined_flag_FC=unsupported
12902      always_export_symbols_FC=yes
12903      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'
12904      # Note: this linker hardcodes the directories in LIBPATH if there
12905      # are no directories specified by -L.
12906      hardcode_minus_L_FC=yes
12907      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12908	# Neither direct hardcoding nor static linking is supported with a
12909	# broken collect2.
12910	hardcode_direct_FC=unsupported
12911      fi
12912      ;;
12913
12914    aix[4-9]*)
12915      if test "$host_cpu" = ia64; then
12916	# On IA64, the linker does run time linking by default, so we don't
12917	# have to do anything special.
12918	aix_use_runtimelinking=no
12919	exp_sym_flag='-Bexport'
12920	no_entry_flag=""
12921      else
12922	# If we're using GNU nm, then we don't want the "-C" option.
12923	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12924	# Also, AIX nm treats weak defined symbols like other global
12925	# defined symbols, whereas GNU nm marks them as "W".
12926	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12927	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12928	else
12929	  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'
12930	fi
12931	aix_use_runtimelinking=no
12932
12933	# Test if we are trying to use run time linking or normal
12934	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12935	# need to do runtime linking.
12936	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12937	  for ld_flag in $LDFLAGS; do
12938	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12939	    aix_use_runtimelinking=yes
12940	    break
12941	  fi
12942	  done
12943	  ;;
12944	esac
12945
12946	exp_sym_flag='-bexport'
12947	no_entry_flag='-bnoentry'
12948      fi
12949
12950      # When large executables or shared objects are built, AIX ld can
12951      # have problems creating the table of contents.  If linking a library
12952      # or program results in "error TOC overflow" add -mminimal-toc to
12953      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12954      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12955
12956      archive_cmds_FC=''
12957      hardcode_direct_FC=yes
12958      hardcode_direct_absolute_FC=yes
12959      hardcode_libdir_separator_FC=':'
12960      link_all_deplibs_FC=yes
12961      file_list_spec_FC='${wl}-f,'
12962
12963      if test "$GCC" = yes; then
12964	case $host_os in aix4.[012]|aix4.[012].*)
12965	# We only want to do this on AIX 4.2 and lower, the check
12966	# below for broken collect2 doesn't work under 4.3+
12967	  collect2name=`${CC} -print-prog-name=collect2`
12968	  if test -f "$collect2name" &&
12969	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12970	  then
12971	  # We have reworked collect2
12972	  :
12973	  else
12974	  # We have old collect2
12975	  hardcode_direct_FC=unsupported
12976	  # It fails to find uninstalled libraries when the uninstalled
12977	  # path is not listed in the libpath.  Setting hardcode_minus_L
12978	  # to unsupported forces relinking
12979	  hardcode_minus_L_FC=yes
12980	  hardcode_libdir_flag_spec_FC='-L$libdir'
12981	  hardcode_libdir_separator_FC=
12982	  fi
12983	  ;;
12984	esac
12985	shared_flag='-shared'
12986	if test "$aix_use_runtimelinking" = yes; then
12987	  shared_flag="$shared_flag "'${wl}-G'
12988	fi
12989      else
12990	# not using gcc
12991	if test "$host_cpu" = ia64; then
12992	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12993	# chokes on -Wl,-G. The following line is correct:
12994	  shared_flag='-G'
12995	else
12996	  if test "$aix_use_runtimelinking" = yes; then
12997	    shared_flag='${wl}-G'
12998	  else
12999	    shared_flag='${wl}-bM:SRE'
13000	  fi
13001	fi
13002      fi
13003
13004      export_dynamic_flag_spec_FC='${wl}-bexpall'
13005      # It seems that -bexpall does not export symbols beginning with
13006      # underscore (_), so it is better to generate a list of symbols to export.
13007      always_export_symbols_FC=yes
13008      if test "$aix_use_runtimelinking" = yes; then
13009	# Warning - without using the other runtime loading flags (-brtl),
13010	# -berok will link without error, but may produce a broken library.
13011	allow_undefined_flag_FC='-berok'
13012        # Determine the default libpath from the value encoded in an
13013        # empty executable.
13014        cat > conftest.$ac_ext <<_ACEOF
13015      program main
13016
13017      end
13018_ACEOF
13019if ac_fn_fc_try_link "$LINENO"; then :
13020
13021lt_aix_libpath_sed='
13022    /Import File Strings/,/^$/ {
13023	/^0/ {
13024	    s/^0  *\(.*\)$/\1/
13025	    p
13026	}
13027    }'
13028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13029# Check for a 64-bit object if we didn't find anything.
13030if test -z "$aix_libpath"; then
13031  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13032fi
13033fi
13034rm -f core conftest.err conftest.$ac_objext \
13035    conftest$ac_exeext conftest.$ac_ext
13036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13037
13038        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13039        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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13040      else
13041	if test "$host_cpu" = ia64; then
13042	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13043	  allow_undefined_flag_FC="-z nodefs"
13044	  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"
13045	else
13046	 # Determine the default libpath from the value encoded in an
13047	 # empty executable.
13048	 cat > conftest.$ac_ext <<_ACEOF
13049      program main
13050
13051      end
13052_ACEOF
13053if ac_fn_fc_try_link "$LINENO"; then :
13054
13055lt_aix_libpath_sed='
13056    /Import File Strings/,/^$/ {
13057	/^0/ {
13058	    s/^0  *\(.*\)$/\1/
13059	    p
13060	}
13061    }'
13062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13063# Check for a 64-bit object if we didn't find anything.
13064if test -z "$aix_libpath"; then
13065  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13066fi
13067fi
13068rm -f core conftest.err conftest.$ac_objext \
13069    conftest$ac_exeext conftest.$ac_ext
13070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13071
13072	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13073	  # Warning - without using the other run time loading flags,
13074	  # -berok will link without error, but may produce a broken library.
13075	  no_undefined_flag_FC=' ${wl}-bernotok'
13076	  allow_undefined_flag_FC=' ${wl}-berok'
13077	  if test "$with_gnu_ld" = yes; then
13078	    # We only use this code for GNU lds that support --whole-archive.
13079	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13080	  else
13081	    # Exported symbols can be pulled into shared objects from archives
13082	    whole_archive_flag_spec_FC='$convenience'
13083	  fi
13084	  archive_cmds_need_lc_FC=yes
13085	  # This is similar to how AIX traditionally builds its shared libraries.
13086	  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'
13087	fi
13088      fi
13089      ;;
13090
13091    amigaos*)
13092      case $host_cpu in
13093      powerpc)
13094            # see comment about AmigaOS4 .so support
13095            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096            archive_expsym_cmds_FC=''
13097        ;;
13098      m68k)
13099            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)'
13100            hardcode_libdir_flag_spec_FC='-L$libdir'
13101            hardcode_minus_L_FC=yes
13102        ;;
13103      esac
13104      ;;
13105
13106    bsdi[45]*)
13107      export_dynamic_flag_spec_FC=-rdynamic
13108      ;;
13109
13110    cygwin* | mingw* | pw32* | cegcc*)
13111      # When not using gcc, we currently assume that we are using
13112      # Microsoft Visual C++.
13113      # hardcode_libdir_flag_spec is actually meaningless, as there is
13114      # no search path for DLLs.
13115      hardcode_libdir_flag_spec_FC=' '
13116      allow_undefined_flag_FC=unsupported
13117      # Tell ltmain to make .lib files, not .a files.
13118      libext=lib
13119      # Tell ltmain to make .dll files, not .so files.
13120      shrext_cmds=".dll"
13121      # FIXME: Setting linknames here is a bad hack.
13122      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13123      # The linker will automatically build a .lib file if we build a DLL.
13124      old_archive_from_new_cmds_FC='true'
13125      # FIXME: Should let the user specify the lib program.
13126      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13127      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13128      enable_shared_with_static_runtimes_FC=yes
13129      ;;
13130
13131    darwin* | rhapsody*)
13132
13133
13134  archive_cmds_need_lc_FC=no
13135  hardcode_direct_FC=no
13136  hardcode_automatic_FC=yes
13137  hardcode_shlibpath_var_FC=unsupported
13138  if test "$lt_cv_ld_force_load" = "yes"; then
13139    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13140  else
13141    whole_archive_flag_spec_FC=''
13142  fi
13143  link_all_deplibs_FC=yes
13144  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13145  case $cc_basename in
13146     ifort*) _lt_dar_can_shared=yes ;;
13147     *) _lt_dar_can_shared=$GCC ;;
13148  esac
13149  if test "$_lt_dar_can_shared" = "yes"; then
13150    output_verbose_link_cmd=func_echo_all
13151    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13152    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13153    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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13154    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${_lt_dar_export_syms}${_lt_dsymutil}"
13155
13156  else
13157  ld_shlibs_FC=no
13158  fi
13159
13160      ;;
13161
13162    dgux*)
13163      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13164      hardcode_libdir_flag_spec_FC='-L$libdir'
13165      hardcode_shlibpath_var_FC=no
13166      ;;
13167
13168    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13169    # support.  Future versions do this automatically, but an explicit c++rt0.o
13170    # does not break anything, and helps significantly (at the cost of a little
13171    # extra space).
13172    freebsd2.2*)
13173      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13174      hardcode_libdir_flag_spec_FC='-R$libdir'
13175      hardcode_direct_FC=yes
13176      hardcode_shlibpath_var_FC=no
13177      ;;
13178
13179    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13180    freebsd2.*)
13181      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13182      hardcode_direct_FC=yes
13183      hardcode_minus_L_FC=yes
13184      hardcode_shlibpath_var_FC=no
13185      ;;
13186
13187    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13188    freebsd* | dragonfly*)
13189      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13190      hardcode_libdir_flag_spec_FC='-R$libdir'
13191      hardcode_direct_FC=yes
13192      hardcode_shlibpath_var_FC=no
13193      ;;
13194
13195    hpux9*)
13196      if test "$GCC" = yes; then
13197	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'
13198      else
13199	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'
13200      fi
13201      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13202      hardcode_libdir_separator_FC=:
13203      hardcode_direct_FC=yes
13204
13205      # hardcode_minus_L: Not really in the search PATH,
13206      # but as the default location of the library.
13207      hardcode_minus_L_FC=yes
13208      export_dynamic_flag_spec_FC='${wl}-E'
13209      ;;
13210
13211    hpux10*)
13212      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13213	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13214      else
13215	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13216      fi
13217      if test "$with_gnu_ld" = no; then
13218	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13219	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13220	hardcode_libdir_separator_FC=:
13221	hardcode_direct_FC=yes
13222	hardcode_direct_absolute_FC=yes
13223	export_dynamic_flag_spec_FC='${wl}-E'
13224	# hardcode_minus_L: Not really in the search PATH,
13225	# but as the default location of the library.
13226	hardcode_minus_L_FC=yes
13227      fi
13228      ;;
13229
13230    hpux11*)
13231      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13232	case $host_cpu in
13233	hppa*64*)
13234	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13235	  ;;
13236	ia64*)
13237	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13238	  ;;
13239	*)
13240	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13241	  ;;
13242	esac
13243      else
13244	case $host_cpu in
13245	hppa*64*)
13246	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13247	  ;;
13248	ia64*)
13249	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13250	  ;;
13251	*)
13252	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13253	  ;;
13254	esac
13255      fi
13256      if test "$with_gnu_ld" = no; then
13257	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13258	hardcode_libdir_separator_FC=:
13259
13260	case $host_cpu in
13261	hppa*64*|ia64*)
13262	  hardcode_direct_FC=no
13263	  hardcode_shlibpath_var_FC=no
13264	  ;;
13265	*)
13266	  hardcode_direct_FC=yes
13267	  hardcode_direct_absolute_FC=yes
13268	  export_dynamic_flag_spec_FC='${wl}-E'
13269
13270	  # hardcode_minus_L: Not really in the search PATH,
13271	  # but as the default location of the library.
13272	  hardcode_minus_L_FC=yes
13273	  ;;
13274	esac
13275      fi
13276      ;;
13277
13278    irix5* | irix6* | nonstopux*)
13279      if test "$GCC" = yes; then
13280	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13281	# Try to use the -exported_symbol ld option, if it does not
13282	# work, assume that -exports_file does not work either and
13283	# implicitly export all symbols.
13284        save_LDFLAGS="$LDFLAGS"
13285        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13286        cat > conftest.$ac_ext <<_ACEOF
13287int foo(void) {}
13288_ACEOF
13289if ac_fn_fc_try_link "$LINENO"; then :
13290  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13291
13292fi
13293rm -f core conftest.err conftest.$ac_objext \
13294    conftest$ac_exeext conftest.$ac_ext
13295        LDFLAGS="$save_LDFLAGS"
13296      else
13297	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13298	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13299      fi
13300      archive_cmds_need_lc_FC='no'
13301      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13302      hardcode_libdir_separator_FC=:
13303      inherit_rpath_FC=yes
13304      link_all_deplibs_FC=yes
13305      ;;
13306
13307    netbsd*)
13308      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13309	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13310      else
13311	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13312      fi
13313      hardcode_libdir_flag_spec_FC='-R$libdir'
13314      hardcode_direct_FC=yes
13315      hardcode_shlibpath_var_FC=no
13316      ;;
13317
13318    newsos6)
13319      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13320      hardcode_direct_FC=yes
13321      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13322      hardcode_libdir_separator_FC=:
13323      hardcode_shlibpath_var_FC=no
13324      ;;
13325
13326    *nto* | *qnx*)
13327      ;;
13328
13329    openbsd*)
13330      if test -f /usr/libexec/ld.so; then
13331	hardcode_direct_FC=yes
13332	hardcode_shlibpath_var_FC=no
13333	hardcode_direct_absolute_FC=yes
13334	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13335	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13336	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13337	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13338	  export_dynamic_flag_spec_FC='${wl}-E'
13339	else
13340	  case $host_os in
13341	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13342	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13343	     hardcode_libdir_flag_spec_FC='-R$libdir'
13344	     ;;
13345	   *)
13346	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13347	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13348	     ;;
13349	  esac
13350	fi
13351      else
13352	ld_shlibs_FC=no
13353      fi
13354      ;;
13355
13356    os2*)
13357      hardcode_libdir_flag_spec_FC='-L$libdir'
13358      hardcode_minus_L_FC=yes
13359      allow_undefined_flag_FC=unsupported
13360      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'
13361      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13362      ;;
13363
13364    osf3*)
13365      if test "$GCC" = yes; then
13366	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13367	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13368      else
13369	allow_undefined_flag_FC=' -expect_unresolved \*'
13370	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13371      fi
13372      archive_cmds_need_lc_FC='no'
13373      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13374      hardcode_libdir_separator_FC=:
13375      ;;
13376
13377    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13378      if test "$GCC" = yes; then
13379	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13380	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13381	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13382      else
13383	allow_undefined_flag_FC=' -expect_unresolved \*'
13384	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13385	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~
13386	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13387
13388	# Both c and cxx compiler support -rpath directly
13389	hardcode_libdir_flag_spec_FC='-rpath $libdir'
13390      fi
13391      archive_cmds_need_lc_FC='no'
13392      hardcode_libdir_separator_FC=:
13393      ;;
13394
13395    solaris*)
13396      no_undefined_flag_FC=' -z defs'
13397      if test "$GCC" = yes; then
13398	wlarc='${wl}'
13399	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13400	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13401	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13402      else
13403	case `$CC -V 2>&1` in
13404	*"Compilers 5.0"*)
13405	  wlarc=''
13406	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13407	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13409	  ;;
13410	*)
13411	  wlarc='${wl}'
13412	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13413	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13414	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13415	  ;;
13416	esac
13417      fi
13418      hardcode_libdir_flag_spec_FC='-R$libdir'
13419      hardcode_shlibpath_var_FC=no
13420      case $host_os in
13421      solaris2.[0-5] | solaris2.[0-5].*) ;;
13422      *)
13423	# The compiler driver will combine and reorder linker options,
13424	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13425	# but is careful enough not to reorder.
13426	# Supported since Solaris 2.6 (maybe 2.5.1?)
13427	if test "$GCC" = yes; then
13428	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13429	else
13430	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13431	fi
13432	;;
13433      esac
13434      link_all_deplibs_FC=yes
13435      ;;
13436
13437    sunos4*)
13438      if test "x$host_vendor" = xsequent; then
13439	# Use $CC to link under sequent, because it throws in some extra .o
13440	# files that make .init and .fini sections work.
13441	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13442      else
13443	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13444      fi
13445      hardcode_libdir_flag_spec_FC='-L$libdir'
13446      hardcode_direct_FC=yes
13447      hardcode_minus_L_FC=yes
13448      hardcode_shlibpath_var_FC=no
13449      ;;
13450
13451    sysv4)
13452      case $host_vendor in
13453	sni)
13454	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455	  hardcode_direct_FC=yes # is this really true???
13456	;;
13457	siemens)
13458	  ## LD is ld it makes a PLAMLIB
13459	  ## CC just makes a GrossModule.
13460	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13461	  reload_cmds_FC='$CC -r -o $output$reload_objs'
13462	  hardcode_direct_FC=no
13463        ;;
13464	motorola)
13465	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13467	;;
13468      esac
13469      runpath_var='LD_RUN_PATH'
13470      hardcode_shlibpath_var_FC=no
13471      ;;
13472
13473    sysv4.3*)
13474      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475      hardcode_shlibpath_var_FC=no
13476      export_dynamic_flag_spec_FC='-Bexport'
13477      ;;
13478
13479    sysv4*MP*)
13480      if test -d /usr/nec; then
13481	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13482	hardcode_shlibpath_var_FC=no
13483	runpath_var=LD_RUN_PATH
13484	hardcode_runpath_var=yes
13485	ld_shlibs_FC=yes
13486      fi
13487      ;;
13488
13489    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13490      no_undefined_flag_FC='${wl}-z,text'
13491      archive_cmds_need_lc_FC=no
13492      hardcode_shlibpath_var_FC=no
13493      runpath_var='LD_RUN_PATH'
13494
13495      if test "$GCC" = yes; then
13496	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498      else
13499	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13500	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501      fi
13502      ;;
13503
13504    sysv5* | sco3.2v5* | sco5v6*)
13505      # Note: We can NOT use -z defs as we might desire, because we do not
13506      # link with -lc, and that would cause any symbols used from libc to
13507      # always be unresolved, which means just about no library would
13508      # ever link correctly.  If we're not using GNU ld we use -z text
13509      # though, which does catch some bad symbols but isn't as heavy-handed
13510      # as -z defs.
13511      no_undefined_flag_FC='${wl}-z,text'
13512      allow_undefined_flag_FC='${wl}-z,nodefs'
13513      archive_cmds_need_lc_FC=no
13514      hardcode_shlibpath_var_FC=no
13515      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13516      hardcode_libdir_separator_FC=':'
13517      link_all_deplibs_FC=yes
13518      export_dynamic_flag_spec_FC='${wl}-Bexport'
13519      runpath_var='LD_RUN_PATH'
13520
13521      if test "$GCC" = yes; then
13522	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524      else
13525	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13526	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527      fi
13528      ;;
13529
13530    uts4*)
13531      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532      hardcode_libdir_flag_spec_FC='-L$libdir'
13533      hardcode_shlibpath_var_FC=no
13534      ;;
13535
13536    *)
13537      ld_shlibs_FC=no
13538      ;;
13539    esac
13540
13541    if test x$host_vendor = xsni; then
13542      case $host in
13543      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13544	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13545	;;
13546      esac
13547    fi
13548  fi
13549
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13551$as_echo "$ld_shlibs_FC" >&6; }
13552test "$ld_shlibs_FC" = no && can_build_shared=no
13553
13554with_gnu_ld_FC=$with_gnu_ld
13555
13556
13557
13558
13559
13560
13561#
13562# Do we need to explicitly link libc?
13563#
13564case "x$archive_cmds_need_lc_FC" in
13565x|xyes)
13566  # Assume -lc should be added
13567  archive_cmds_need_lc_FC=yes
13568
13569  if test "$enable_shared" = yes && test "$GCC" = yes; then
13570    case $archive_cmds_FC in
13571    *'~'*)
13572      # FIXME: we may have to deal with multi-command sequences.
13573      ;;
13574    '$CC '*)
13575      # Test whether the compiler implicitly links with -lc since on some
13576      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13577      # to ld, don't add -lc before -lgcc.
13578      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13579$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13580if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13581  $as_echo_n "(cached) " >&6
13582else
13583  $RM conftest*
13584	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13585
13586	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13587  (eval $ac_compile) 2>&5
13588  ac_status=$?
13589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13590  test $ac_status = 0; } 2>conftest.err; then
13591	  soname=conftest
13592	  lib=conftest
13593	  libobjs=conftest.$ac_objext
13594	  deplibs=
13595	  wl=$lt_prog_compiler_wl_FC
13596	  pic_flag=$lt_prog_compiler_pic_FC
13597	  compiler_flags=-v
13598	  linker_flags=-v
13599	  verstring=
13600	  output_objdir=.
13601	  libname=conftest
13602	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13603	  allow_undefined_flag_FC=
13604	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13605  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606  ac_status=$?
13607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13608  test $ac_status = 0; }
13609	  then
13610	    lt_cv_archive_cmds_need_lc_FC=no
13611	  else
13612	    lt_cv_archive_cmds_need_lc_FC=yes
13613	  fi
13614	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13615	else
13616	  cat conftest.err 1>&5
13617	fi
13618	$RM conftest*
13619
13620fi
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13622$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13623      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13624      ;;
13625    esac
13626  fi
13627  ;;
13628esac
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13694$as_echo_n "checking dynamic linker characteristics... " >&6; }
13695
13696library_names_spec=
13697libname_spec='lib$name'
13698soname_spec=
13699shrext_cmds=".so"
13700postinstall_cmds=
13701postuninstall_cmds=
13702finish_cmds=
13703finish_eval=
13704shlibpath_var=
13705shlibpath_overrides_runpath=unknown
13706version_type=none
13707dynamic_linker="$host_os ld.so"
13708sys_lib_dlsearch_path_spec="/lib /usr/lib"
13709need_lib_prefix=unknown
13710hardcode_into_libs=no
13711
13712# when you set need_version to no, make sure it does not cause -set_version
13713# flags to be left without arguments
13714need_version=unknown
13715
13716case $host_os in
13717aix3*)
13718  version_type=linux
13719  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13720  shlibpath_var=LIBPATH
13721
13722  # AIX 3 has no versioning support, so we append a major version to the name.
13723  soname_spec='${libname}${release}${shared_ext}$major'
13724  ;;
13725
13726aix[4-9]*)
13727  version_type=linux
13728  need_lib_prefix=no
13729  need_version=no
13730  hardcode_into_libs=yes
13731  if test "$host_cpu" = ia64; then
13732    # AIX 5 supports IA64
13733    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13734    shlibpath_var=LD_LIBRARY_PATH
13735  else
13736    # With GCC up to 2.95.x, collect2 would create an import file
13737    # for dependence libraries.  The import file would start with
13738    # the line `#! .'.  This would cause the generated library to
13739    # depend on `.', always an invalid library.  This was fixed in
13740    # development snapshots of GCC prior to 3.0.
13741    case $host_os in
13742      aix4 | aix4.[01] | aix4.[01].*)
13743      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13744	   echo ' yes '
13745	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13746	:
13747      else
13748	can_build_shared=no
13749      fi
13750      ;;
13751    esac
13752    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13753    # soname into executable. Probably we can add versioning support to
13754    # collect2, so additional links can be useful in future.
13755    if test "$aix_use_runtimelinking" = yes; then
13756      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13757      # instead of lib<name>.a to let people know that these are not
13758      # typical AIX shared libraries.
13759      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760    else
13761      # We preserve .a as extension for shared libraries through AIX4.2
13762      # and later when we are not doing run time linking.
13763      library_names_spec='${libname}${release}.a $libname.a'
13764      soname_spec='${libname}${release}${shared_ext}$major'
13765    fi
13766    shlibpath_var=LIBPATH
13767  fi
13768  ;;
13769
13770amigaos*)
13771  case $host_cpu in
13772  powerpc)
13773    # Since July 2007 AmigaOS4 officially supports .so libraries.
13774    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776    ;;
13777  m68k)
13778    library_names_spec='$libname.ixlibrary $libname.a'
13779    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13780    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13781    ;;
13782  esac
13783  ;;
13784
13785beos*)
13786  library_names_spec='${libname}${shared_ext}'
13787  dynamic_linker="$host_os ld.so"
13788  shlibpath_var=LIBRARY_PATH
13789  ;;
13790
13791bsdi[45]*)
13792  version_type=linux
13793  need_version=no
13794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795  soname_spec='${libname}${release}${shared_ext}$major'
13796  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13797  shlibpath_var=LD_LIBRARY_PATH
13798  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13799  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13800  # the default ld.so.conf also contains /usr/contrib/lib and
13801  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13802  # libtool to hard-code these into programs
13803  ;;
13804
13805cygwin* | mingw* | pw32* | cegcc*)
13806  version_type=windows
13807  shrext_cmds=".dll"
13808  need_version=no
13809  need_lib_prefix=no
13810
13811  case $GCC,$host_os in
13812  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13813    library_names_spec='$libname.dll.a'
13814    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13815    postinstall_cmds='base_file=`basename \${file}`~
13816      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13817      dldir=$destdir/`dirname \$dlpath`~
13818      test -d \$dldir || mkdir -p \$dldir~
13819      $install_prog $dir/$dlname \$dldir/$dlname~
13820      chmod a+x \$dldir/$dlname~
13821      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13822        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13823      fi'
13824    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13825      dlpath=$dir/\$dldll~
13826       $RM \$dlpath'
13827    shlibpath_overrides_runpath=yes
13828
13829    case $host_os in
13830    cygwin*)
13831      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13832      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13833
13834      ;;
13835    mingw* | cegcc*)
13836      # MinGW DLLs use traditional 'lib' prefix
13837      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838      ;;
13839    pw32*)
13840      # pw32 DLLs use 'pw' prefix rather than 'lib'
13841      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13842      ;;
13843    esac
13844    ;;
13845
13846  *)
13847    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13848    ;;
13849  esac
13850  dynamic_linker='Win32 ld.exe'
13851  # FIXME: first we should search . and the directory the executable is in
13852  shlibpath_var=PATH
13853  ;;
13854
13855darwin* | rhapsody*)
13856  dynamic_linker="$host_os dyld"
13857  version_type=darwin
13858  need_lib_prefix=no
13859  need_version=no
13860  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13861  soname_spec='${libname}${release}${major}$shared_ext'
13862  shlibpath_overrides_runpath=yes
13863  shlibpath_var=DYLD_LIBRARY_PATH
13864  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13865
13866  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13867  ;;
13868
13869dgux*)
13870  version_type=linux
13871  need_lib_prefix=no
13872  need_version=no
13873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13874  soname_spec='${libname}${release}${shared_ext}$major'
13875  shlibpath_var=LD_LIBRARY_PATH
13876  ;;
13877
13878freebsd* | dragonfly*)
13879  # DragonFly does not have aout.  When/if they implement a new
13880  # versioning mechanism, adjust this.
13881  if test -x /usr/bin/objformat; then
13882    objformat=`/usr/bin/objformat`
13883  else
13884    case $host_os in
13885    freebsd[23].*) objformat=aout ;;
13886    *) objformat=elf ;;
13887    esac
13888  fi
13889  version_type=freebsd-$objformat
13890  case $version_type in
13891    freebsd-elf*)
13892      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13893      need_version=no
13894      need_lib_prefix=no
13895      ;;
13896    freebsd-*)
13897      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13898      need_version=yes
13899      ;;
13900  esac
13901  shlibpath_var=LD_LIBRARY_PATH
13902  case $host_os in
13903  freebsd2.*)
13904    shlibpath_overrides_runpath=yes
13905    ;;
13906  freebsd3.[01]* | freebsdelf3.[01]*)
13907    shlibpath_overrides_runpath=yes
13908    hardcode_into_libs=yes
13909    ;;
13910  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13911  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13912    shlibpath_overrides_runpath=no
13913    hardcode_into_libs=yes
13914    ;;
13915  *) # from 4.6 on, and DragonFly
13916    shlibpath_overrides_runpath=yes
13917    hardcode_into_libs=yes
13918    ;;
13919  esac
13920  ;;
13921
13922gnu*)
13923  version_type=linux
13924  need_lib_prefix=no
13925  need_version=no
13926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13927  soname_spec='${libname}${release}${shared_ext}$major'
13928  shlibpath_var=LD_LIBRARY_PATH
13929  hardcode_into_libs=yes
13930  ;;
13931
13932haiku*)
13933  version_type=linux
13934  need_lib_prefix=no
13935  need_version=no
13936  dynamic_linker="$host_os runtime_loader"
13937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13938  soname_spec='${libname}${release}${shared_ext}$major'
13939  shlibpath_var=LIBRARY_PATH
13940  shlibpath_overrides_runpath=yes
13941  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13942  hardcode_into_libs=yes
13943  ;;
13944
13945hpux9* | hpux10* | hpux11*)
13946  # Give a soname corresponding to the major version so that dld.sl refuses to
13947  # link against other versions.
13948  version_type=sunos
13949  need_lib_prefix=no
13950  need_version=no
13951  case $host_cpu in
13952  ia64*)
13953    shrext_cmds='.so'
13954    hardcode_into_libs=yes
13955    dynamic_linker="$host_os dld.so"
13956    shlibpath_var=LD_LIBRARY_PATH
13957    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959    soname_spec='${libname}${release}${shared_ext}$major'
13960    if test "X$HPUX_IA64_MODE" = X32; then
13961      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13962    else
13963      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13964    fi
13965    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13966    ;;
13967  hppa*64*)
13968    shrext_cmds='.sl'
13969    hardcode_into_libs=yes
13970    dynamic_linker="$host_os dld.sl"
13971    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13972    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974    soname_spec='${libname}${release}${shared_ext}$major'
13975    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13976    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13977    ;;
13978  *)
13979    shrext_cmds='.sl'
13980    dynamic_linker="$host_os dld.sl"
13981    shlibpath_var=SHLIB_PATH
13982    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13983    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984    soname_spec='${libname}${release}${shared_ext}$major'
13985    ;;
13986  esac
13987  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13988  postinstall_cmds='chmod 555 $lib'
13989  # or fails outright, so override atomically:
13990  install_override_mode=555
13991  ;;
13992
13993interix[3-9]*)
13994  version_type=linux
13995  need_lib_prefix=no
13996  need_version=no
13997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998  soname_spec='${libname}${release}${shared_ext}$major'
13999  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14000  shlibpath_var=LD_LIBRARY_PATH
14001  shlibpath_overrides_runpath=no
14002  hardcode_into_libs=yes
14003  ;;
14004
14005irix5* | irix6* | nonstopux*)
14006  case $host_os in
14007    nonstopux*) version_type=nonstopux ;;
14008    *)
14009	if test "$lt_cv_prog_gnu_ld" = yes; then
14010		version_type=linux
14011	else
14012		version_type=irix
14013	fi ;;
14014  esac
14015  need_lib_prefix=no
14016  need_version=no
14017  soname_spec='${libname}${release}${shared_ext}$major'
14018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14019  case $host_os in
14020  irix5* | nonstopux*)
14021    libsuff= shlibsuff=
14022    ;;
14023  *)
14024    case $LD in # libtool.m4 will add one of these switches to LD
14025    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14026      libsuff= shlibsuff= libmagic=32-bit;;
14027    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14028      libsuff=32 shlibsuff=N32 libmagic=N32;;
14029    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14030      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14031    *) libsuff= shlibsuff= libmagic=never-match;;
14032    esac
14033    ;;
14034  esac
14035  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14036  shlibpath_overrides_runpath=no
14037  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14038  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14039  hardcode_into_libs=yes
14040  ;;
14041
14042# No shared lib support for Linux oldld, aout, or coff.
14043linux*oldld* | linux*aout* | linux*coff*)
14044  dynamic_linker=no
14045  ;;
14046
14047# This must be Linux ELF.
14048linux* | k*bsd*-gnu | kopensolaris*-gnu)
14049  version_type=linux
14050  need_lib_prefix=no
14051  need_version=no
14052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053  soname_spec='${libname}${release}${shared_ext}$major'
14054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14055  shlibpath_var=LD_LIBRARY_PATH
14056  shlibpath_overrides_runpath=no
14057
14058  # Some binutils ld are patched to set DT_RUNPATH
14059  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  lt_cv_shlibpath_overrides_runpath=no
14063    save_LDFLAGS=$LDFLAGS
14064    save_libdir=$libdir
14065    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14066	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14067    cat > conftest.$ac_ext <<_ACEOF
14068      program main
14069
14070      end
14071_ACEOF
14072if ac_fn_fc_try_link "$LINENO"; then :
14073  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14074  lt_cv_shlibpath_overrides_runpath=yes
14075fi
14076fi
14077rm -f core conftest.err conftest.$ac_objext \
14078    conftest$ac_exeext conftest.$ac_ext
14079    LDFLAGS=$save_LDFLAGS
14080    libdir=$save_libdir
14081
14082fi
14083
14084  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14085
14086  # This implies no fast_install, which is unacceptable.
14087  # Some rework will be needed to allow for fast_install
14088  # before this can be enabled.
14089  hardcode_into_libs=yes
14090
14091  # Append ld.so.conf contents to the search path
14092  if test -f /etc/ld.so.conf; then
14093    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14094    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14095  fi
14096
14097  # We used to test for /lib/ld.so.1 and disable shared libraries on
14098  # powerpc, because MkLinux only supported shared libraries with the
14099  # GNU dynamic linker.  Since this was broken with cross compilers,
14100  # most powerpc-linux boxes support dynamic linking these days and
14101  # people can always --disable-shared, the test was removed, and we
14102  # assume the GNU/Linux dynamic linker is in use.
14103  dynamic_linker='GNU/Linux ld.so'
14104  ;;
14105
14106netbsd*)
14107  version_type=sunos
14108  need_lib_prefix=no
14109  need_version=no
14110  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14112    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14113    dynamic_linker='NetBSD (a.out) ld.so'
14114  else
14115    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14116    soname_spec='${libname}${release}${shared_ext}$major'
14117    dynamic_linker='NetBSD ld.elf_so'
14118  fi
14119  shlibpath_var=LD_LIBRARY_PATH
14120  shlibpath_overrides_runpath=yes
14121  hardcode_into_libs=yes
14122  ;;
14123
14124newsos6)
14125  version_type=linux
14126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127  shlibpath_var=LD_LIBRARY_PATH
14128  shlibpath_overrides_runpath=yes
14129  ;;
14130
14131*nto* | *qnx*)
14132  version_type=qnx
14133  need_lib_prefix=no
14134  need_version=no
14135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14136  soname_spec='${libname}${release}${shared_ext}$major'
14137  shlibpath_var=LD_LIBRARY_PATH
14138  shlibpath_overrides_runpath=no
14139  hardcode_into_libs=yes
14140  dynamic_linker='ldqnx.so'
14141  ;;
14142
14143openbsd*)
14144  version_type=sunos
14145  sys_lib_dlsearch_path_spec="/usr/lib"
14146  need_lib_prefix=no
14147  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14148  case $host_os in
14149    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14150    *)				need_version=no  ;;
14151  esac
14152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14154  shlibpath_var=LD_LIBRARY_PATH
14155  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14156    case $host_os in
14157      openbsd2.[89] | openbsd2.[89].*)
14158	shlibpath_overrides_runpath=no
14159	;;
14160      *)
14161	shlibpath_overrides_runpath=yes
14162	;;
14163      esac
14164  else
14165    shlibpath_overrides_runpath=yes
14166  fi
14167  ;;
14168
14169os2*)
14170  libname_spec='$name'
14171  shrext_cmds=".dll"
14172  need_lib_prefix=no
14173  library_names_spec='$libname${shared_ext} $libname.a'
14174  dynamic_linker='OS/2 ld.exe'
14175  shlibpath_var=LIBPATH
14176  ;;
14177
14178osf3* | osf4* | osf5*)
14179  version_type=osf
14180  need_lib_prefix=no
14181  need_version=no
14182  soname_spec='${libname}${release}${shared_ext}$major'
14183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184  shlibpath_var=LD_LIBRARY_PATH
14185  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14186  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14187  ;;
14188
14189rdos*)
14190  dynamic_linker=no
14191  ;;
14192
14193solaris*)
14194  version_type=linux
14195  need_lib_prefix=no
14196  need_version=no
14197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198  soname_spec='${libname}${release}${shared_ext}$major'
14199  shlibpath_var=LD_LIBRARY_PATH
14200  shlibpath_overrides_runpath=yes
14201  hardcode_into_libs=yes
14202  # ldd complains unless libraries are executable
14203  postinstall_cmds='chmod +x $lib'
14204  ;;
14205
14206sunos4*)
14207  version_type=sunos
14208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14209  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14210  shlibpath_var=LD_LIBRARY_PATH
14211  shlibpath_overrides_runpath=yes
14212  if test "$with_gnu_ld" = yes; then
14213    need_lib_prefix=no
14214  fi
14215  need_version=yes
14216  ;;
14217
14218sysv4 | sysv4.3*)
14219  version_type=linux
14220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14221  soname_spec='${libname}${release}${shared_ext}$major'
14222  shlibpath_var=LD_LIBRARY_PATH
14223  case $host_vendor in
14224    sni)
14225      shlibpath_overrides_runpath=no
14226      need_lib_prefix=no
14227      runpath_var=LD_RUN_PATH
14228      ;;
14229    siemens)
14230      need_lib_prefix=no
14231      ;;
14232    motorola)
14233      need_lib_prefix=no
14234      need_version=no
14235      shlibpath_overrides_runpath=no
14236      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14237      ;;
14238  esac
14239  ;;
14240
14241sysv4*MP*)
14242  if test -d /usr/nec ;then
14243    version_type=linux
14244    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14245    soname_spec='$libname${shared_ext}.$major'
14246    shlibpath_var=LD_LIBRARY_PATH
14247  fi
14248  ;;
14249
14250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14251  version_type=freebsd-elf
14252  need_lib_prefix=no
14253  need_version=no
14254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14255  soname_spec='${libname}${release}${shared_ext}$major'
14256  shlibpath_var=LD_LIBRARY_PATH
14257  shlibpath_overrides_runpath=yes
14258  hardcode_into_libs=yes
14259  if test "$with_gnu_ld" = yes; then
14260    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14261  else
14262    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14263    case $host_os in
14264      sco3.2v5*)
14265        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14266	;;
14267    esac
14268  fi
14269  sys_lib_dlsearch_path_spec='/usr/lib'
14270  ;;
14271
14272tpf*)
14273  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14274  version_type=linux
14275  need_lib_prefix=no
14276  need_version=no
14277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278  shlibpath_var=LD_LIBRARY_PATH
14279  shlibpath_overrides_runpath=no
14280  hardcode_into_libs=yes
14281  ;;
14282
14283uts4*)
14284  version_type=linux
14285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286  soname_spec='${libname}${release}${shared_ext}$major'
14287  shlibpath_var=LD_LIBRARY_PATH
14288  ;;
14289
14290*)
14291  dynamic_linker=no
14292  ;;
14293esac
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14295$as_echo "$dynamic_linker" >&6; }
14296test "$dynamic_linker" = no && can_build_shared=no
14297
14298variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14299if test "$GCC" = yes; then
14300  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14301fi
14302
14303if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14304  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14305fi
14306if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14307  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14308fi
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14348$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14349hardcode_action_FC=
14350if test -n "$hardcode_libdir_flag_spec_FC" ||
14351   test -n "$runpath_var_FC" ||
14352   test "X$hardcode_automatic_FC" = "Xyes" ; then
14353
14354  # We can hardcode non-existent directories.
14355  if test "$hardcode_direct_FC" != no &&
14356     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14357     # have to relink, otherwise we might link with an installed library
14358     # when we should be linking with a yet-to-be-installed one
14359     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14360     test "$hardcode_minus_L_FC" != no; then
14361    # Linking always hardcodes the temporary library directory.
14362    hardcode_action_FC=relink
14363  else
14364    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14365    hardcode_action_FC=immediate
14366  fi
14367else
14368  # We cannot hardcode anything, or else we can only hardcode existing
14369  # directories.
14370  hardcode_action_FC=unsupported
14371fi
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14373$as_echo "$hardcode_action_FC" >&6; }
14374
14375if test "$hardcode_action_FC" = relink ||
14376   test "$inherit_rpath_FC" = yes; then
14377  # Fast installation is not supported
14378  enable_fast_install=no
14379elif test "$shlibpath_overrides_runpath" = yes ||
14380     test "$enable_shared" = no; then
14381  # Fast installation is not necessary
14382  enable_fast_install=needless
14383fi
14384
14385
14386
14387
14388
14389
14390
14391  fi # test -n "$compiler"
14392
14393  GCC=$lt_save_GCC
14394  CC="$lt_save_CC"
14395fi # test "$_lt_disable_FC" != yes
14396
14397ac_ext=c
14398ac_cpp='$CPP $CPPFLAGS'
14399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14401ac_compiler_gnu=$ac_cv_c_compiler_gnu
14402
14403
14404FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14405
14406# For libtool versioning info, format is CURRENT:REVISION:AGE
14407libtool_VERSION=1:0:0
14408
14409
14410# Check header files.
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14412$as_echo_n "checking for ANSI C header files... " >&6; }
14413if test "${ac_cv_header_stdc+set}" = set; then :
14414  $as_echo_n "(cached) " >&6
14415else
14416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417/* end confdefs.h.  */
14418#include <stdlib.h>
14419#include <stdarg.h>
14420#include <string.h>
14421#include <float.h>
14422
14423int
14424main ()
14425{
14426
14427  ;
14428  return 0;
14429}
14430_ACEOF
14431if ac_fn_c_try_compile "$LINENO"; then :
14432  ac_cv_header_stdc=yes
14433else
14434  ac_cv_header_stdc=no
14435fi
14436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437
14438if test $ac_cv_header_stdc = yes; then
14439  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441/* end confdefs.h.  */
14442#include <string.h>
14443
14444_ACEOF
14445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14446  $EGREP "memchr" >/dev/null 2>&1; then :
14447
14448else
14449  ac_cv_header_stdc=no
14450fi
14451rm -f conftest*
14452
14453fi
14454
14455if test $ac_cv_header_stdc = yes; then
14456  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458/* end confdefs.h.  */
14459#include <stdlib.h>
14460
14461_ACEOF
14462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14463  $EGREP "free" >/dev/null 2>&1; then :
14464
14465else
14466  ac_cv_header_stdc=no
14467fi
14468rm -f conftest*
14469
14470fi
14471
14472if test $ac_cv_header_stdc = yes; then
14473  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14474  if test "$cross_compiling" = yes; then :
14475  :
14476else
14477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h.  */
14479#include <ctype.h>
14480#include <stdlib.h>
14481#if ((' ' & 0x0FF) == 0x020)
14482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14484#else
14485# define ISLOWER(c) \
14486		   (('a' <= (c) && (c) <= 'i') \
14487		     || ('j' <= (c) && (c) <= 'r') \
14488		     || ('s' <= (c) && (c) <= 'z'))
14489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14490#endif
14491
14492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14493int
14494main ()
14495{
14496  int i;
14497  for (i = 0; i < 256; i++)
14498    if (XOR (islower (i), ISLOWER (i))
14499	|| toupper (i) != TOUPPER (i))
14500      return 2;
14501  return 0;
14502}
14503_ACEOF
14504if ac_fn_c_try_run "$LINENO"; then :
14505
14506else
14507  ac_cv_header_stdc=no
14508fi
14509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14510  conftest.$ac_objext conftest.beam conftest.$ac_ext
14511fi
14512
14513fi
14514fi
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14516$as_echo "$ac_cv_header_stdc" >&6; }
14517if test $ac_cv_header_stdc = yes; then
14518
14519$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14520
14521fi
14522
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14524$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14525if test "${ac_cv_header_time+set}" = set; then :
14526  $as_echo_n "(cached) " >&6
14527else
14528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h.  */
14530#include <sys/types.h>
14531#include <sys/time.h>
14532#include <time.h>
14533
14534int
14535main ()
14536{
14537if ((struct tm *) 0)
14538return 0;
14539  ;
14540  return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_compile "$LINENO"; then :
14544  ac_cv_header_time=yes
14545else
14546  ac_cv_header_time=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14551$as_echo "$ac_cv_header_time" >&6; }
14552if test $ac_cv_header_time = yes; then
14553
14554$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14555
14556fi
14557
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14559$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14560if test "${gcc_cv_header_string+set}" = set; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564/* end confdefs.h.  */
14565#include <string.h>
14566#include <strings.h>
14567int
14568main ()
14569{
14570
14571  ;
14572  return 0;
14573}
14574_ACEOF
14575if ac_fn_c_try_compile "$LINENO"; then :
14576  gcc_cv_header_string=yes
14577else
14578  gcc_cv_header_string=no
14579fi
14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14583$as_echo "$gcc_cv_header_string" >&6; }
14584if test $gcc_cv_header_string = yes; then
14585
14586$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14587
14588fi
14589
14590for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14591do :
14592  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14594eval as_val=\$$as_ac_Header
14595   if test "x$as_val" = x""yes; then :
14596  cat >>confdefs.h <<_ACEOF
14597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598_ACEOF
14599
14600fi
14601
14602done
14603
14604
14605
14606
14607inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14608
14609acx_cv_header_stdint=stddef.h
14610acx_cv_header_stdint_kind="(already complete)"
14611for i in stdint.h $inttype_headers; do
14612  unset ac_cv_type_uintptr_t
14613  unset ac_cv_type_uintmax_t
14614  unset ac_cv_type_int_least32_t
14615  unset ac_cv_type_int_fast32_t
14616  unset ac_cv_type_uint64_t
14617  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14618  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14619#include <$i>
14620"
14621if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14622  acx_cv_header_stdint=$i
14623else
14624  continue
14625fi
14626
14627  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14628#include <$i>
14629"
14630if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14631
14632else
14633  acx_cv_header_stdint_kind="(mostly complete)"
14634fi
14635
14636  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14637#include <$i>
14638"
14639if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14640
14641else
14642  acx_cv_header_stdint_kind="(mostly complete)"
14643fi
14644
14645  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14646#include <$i>
14647"
14648if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14649
14650else
14651  acx_cv_header_stdint_kind="(mostly complete)"
14652fi
14653
14654  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14655#include <$i>
14656"
14657if test "x$ac_cv_type_uint64_t" = x""yes; then :
14658
14659else
14660  acx_cv_header_stdint_kind="(lacks uint64_t)"
14661fi
14662
14663  break
14664done
14665if test "$acx_cv_header_stdint" = stddef.h; then
14666  acx_cv_header_stdint_kind="(lacks uintmax_t)"
14667  for i in stdint.h $inttype_headers; do
14668    unset ac_cv_type_uintptr_t
14669    unset ac_cv_type_uint32_t
14670    unset ac_cv_type_uint64_t
14671    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14672    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14673#include <$i>
14674"
14675if test "x$ac_cv_type_uint32_t" = x""yes; then :
14676  acx_cv_header_stdint=$i
14677else
14678  continue
14679fi
14680
14681    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14682#include <$i>
14683"
14684if test "x$ac_cv_type_uint64_t" = x""yes; then :
14685
14686fi
14687
14688    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14689#include <$i>
14690"
14691if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14692
14693fi
14694
14695    break
14696  done
14697fi
14698if test "$acx_cv_header_stdint" = stddef.h; then
14699  acx_cv_header_stdint_kind="(u_intXX_t style)"
14700  for i in sys/types.h $inttype_headers; do
14701    unset ac_cv_type_u_int32_t
14702    unset ac_cv_type_u_int64_t
14703    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14704    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14705#include <$i>
14706"
14707if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14708  acx_cv_header_stdint=$i
14709else
14710  continue
14711fi
14712
14713    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14714#include <$i>
14715"
14716if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14717
14718fi
14719
14720    break
14721  done
14722fi
14723if test "$acx_cv_header_stdint" = stddef.h; then
14724  acx_cv_header_stdint_kind="(using manual detection)"
14725fi
14726
14727test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14728test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14729test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14730test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14731test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14732
14733# ----------------- Summarize what we found so far
14734
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14736$as_echo_n "checking what to include in gstdint.h... " >&6; }
14737
14738case `$as_basename -- gstdint.h ||
14739$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14740	 Xgstdint.h : 'X\(//\)$' \| \
14741	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14742$as_echo X/gstdint.h |
14743    sed '/^.*\/\([^/][^/]*\)\/*$/{
14744	    s//\1/
14745	    q
14746	  }
14747	  /^X\/\(\/\/\)$/{
14748	    s//\1/
14749	    q
14750	  }
14751	  /^X\/\(\/\).*/{
14752	    s//\1/
14753	    q
14754	  }
14755	  s/.*/./; q'` in
14756  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14757$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14758  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14759$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14760  *) ;;
14761esac
14762
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14764$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14765
14766# ----------------- done included file, check C basic types --------
14767
14768# Lacking an uintptr_t?  Test size of void *
14769case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14770  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14771# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14772# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14773# This bug is HP SR number 8606223364.
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14775$as_echo_n "checking size of void *... " >&6; }
14776if test "${ac_cv_sizeof_void_p+set}" = set; then :
14777  $as_echo_n "(cached) " >&6
14778else
14779  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14780
14781else
14782  if test "$ac_cv_type_void_p" = yes; then
14783     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14785{ as_fn_set_status 77
14786as_fn_error "cannot compute sizeof (void *)
14787See \`config.log' for more details." "$LINENO" 5; }; }
14788   else
14789     ac_cv_sizeof_void_p=0
14790   fi
14791fi
14792
14793fi
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14795$as_echo "$ac_cv_sizeof_void_p" >&6; }
14796
14797
14798
14799cat >>confdefs.h <<_ACEOF
14800#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14801_ACEOF
14802
14803 ;;
14804esac
14805
14806# Lacking an uint64_t?  Test size of long
14807case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14808  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14809# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14810# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14811# This bug is HP SR number 8606223364.
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14813$as_echo_n "checking size of long... " >&6; }
14814if test "${ac_cv_sizeof_long+set}" = set; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14818
14819else
14820  if test "$ac_cv_type_long" = yes; then
14821     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14823{ as_fn_set_status 77
14824as_fn_error "cannot compute sizeof (long)
14825See \`config.log' for more details." "$LINENO" 5; }; }
14826   else
14827     ac_cv_sizeof_long=0
14828   fi
14829fi
14830
14831fi
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14833$as_echo "$ac_cv_sizeof_long" >&6; }
14834
14835
14836
14837cat >>confdefs.h <<_ACEOF
14838#define SIZEOF_LONG $ac_cv_sizeof_long
14839_ACEOF
14840
14841 ;;
14842esac
14843
14844if test $acx_cv_header_stdint = stddef.h; then
14845  # Lacking a good header?  Test size of everything and deduce all types.
14846  # The cast to long int works around a bug in the HP C Compiler
14847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14849# This bug is HP SR number 8606223364.
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14851$as_echo_n "checking size of int... " >&6; }
14852if test "${ac_cv_sizeof_int+set}" = set; then :
14853  $as_echo_n "(cached) " >&6
14854else
14855  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14856
14857else
14858  if test "$ac_cv_type_int" = yes; then
14859     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14861{ as_fn_set_status 77
14862as_fn_error "cannot compute sizeof (int)
14863See \`config.log' for more details." "$LINENO" 5; }; }
14864   else
14865     ac_cv_sizeof_int=0
14866   fi
14867fi
14868
14869fi
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14871$as_echo "$ac_cv_sizeof_int" >&6; }
14872
14873
14874
14875cat >>confdefs.h <<_ACEOF
14876#define SIZEOF_INT $ac_cv_sizeof_int
14877_ACEOF
14878
14879
14880  # The cast to long int works around a bug in the HP C Compiler
14881# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14882# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14883# This bug is HP SR number 8606223364.
14884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14885$as_echo_n "checking size of short... " >&6; }
14886if test "${ac_cv_sizeof_short+set}" = set; then :
14887  $as_echo_n "(cached) " >&6
14888else
14889  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14890
14891else
14892  if test "$ac_cv_type_short" = yes; then
14893     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14895{ as_fn_set_status 77
14896as_fn_error "cannot compute sizeof (short)
14897See \`config.log' for more details." "$LINENO" 5; }; }
14898   else
14899     ac_cv_sizeof_short=0
14900   fi
14901fi
14902
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14905$as_echo "$ac_cv_sizeof_short" >&6; }
14906
14907
14908
14909cat >>confdefs.h <<_ACEOF
14910#define SIZEOF_SHORT $ac_cv_sizeof_short
14911_ACEOF
14912
14913
14914  # The cast to long int works around a bug in the HP C Compiler
14915# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14916# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14917# This bug is HP SR number 8606223364.
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14919$as_echo_n "checking size of char... " >&6; }
14920if test "${ac_cv_sizeof_char+set}" = set; then :
14921  $as_echo_n "(cached) " >&6
14922else
14923  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14924
14925else
14926  if test "$ac_cv_type_char" = yes; then
14927     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14929{ as_fn_set_status 77
14930as_fn_error "cannot compute sizeof (char)
14931See \`config.log' for more details." "$LINENO" 5; }; }
14932   else
14933     ac_cv_sizeof_char=0
14934   fi
14935fi
14936
14937fi
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14939$as_echo "$ac_cv_sizeof_char" >&6; }
14940
14941
14942
14943cat >>confdefs.h <<_ACEOF
14944#define SIZEOF_CHAR $ac_cv_sizeof_char
14945_ACEOF
14946
14947
14948
14949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14950$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14951  case "$ac_cv_sizeof_char" in
14952    1) acx_cv_type_int8_t=char ;;
14953    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14954  esac
14955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14956$as_echo "$acx_cv_type_int8_t" >&6; }
14957
14958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14959$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14960  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14961    2:*) acx_cv_type_int16_t=int ;;
14962    *:2) acx_cv_type_int16_t=short ;;
14963    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14964  esac
14965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14966$as_echo "$acx_cv_type_int16_t" >&6; }
14967
14968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14969$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14970  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14971    4:*) acx_cv_type_int32_t=int ;;
14972    *:4) acx_cv_type_int32_t=long ;;
14973    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14974  esac
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14976$as_echo "$acx_cv_type_int32_t" >&6; }
14977fi
14978
14979# These tests are here to make the output prettier
14980
14981if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14982  case "$ac_cv_sizeof_long" in
14983    8) acx_cv_type_int64_t=long ;;
14984  esac
14985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14986$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14988$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14989fi
14990
14991# Now we can use the above types
14992
14993if test "$ac_cv_type_uintptr_t" != yes; then
14994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14995$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14996  case $ac_cv_sizeof_void_p in
14997    2) acx_cv_type_intptr_t=int16_t ;;
14998    4) acx_cv_type_intptr_t=int32_t ;;
14999    8) acx_cv_type_intptr_t=int64_t ;;
15000    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15001  esac
15002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15003$as_echo "$acx_cv_type_intptr_t" >&6; }
15004fi
15005
15006# ----------------- done all checks, emit header -------------
15007ac_config_commands="$ac_config_commands gstdint.h"
15008
15009
15010
15011
15012# Check to see if -pthread or -lpthread is needed.  Prefer the former.
15013# In case the pthread.h system header is not found, this test will fail.
15014XPCFLAGS=""
15015CFLAGS="$CFLAGS -pthread"
15016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017/* end confdefs.h.  */
15018#include <pthread.h>
15019   void *g(void *d) { return NULL; }
15020int
15021main ()
15022{
15023pthread_t t; pthread_create(&t,NULL,g,NULL);
15024  ;
15025  return 0;
15026}
15027_ACEOF
15028if ac_fn_c_try_link "$LINENO"; then :
15029  XPCFLAGS=" -Wc,-pthread"
15030else
15031  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034#include <pthread.h>
15035     void *g(void *d) { return NULL; }
15036int
15037main ()
15038{
15039pthread_t t; pthread_create(&t,NULL,g,NULL);
15040  ;
15041  return 0;
15042}
15043_ACEOF
15044if ac_fn_c_try_link "$LINENO"; then :
15045
15046else
15047  as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15048fi
15049rm -f core conftest.err conftest.$ac_objext \
15050    conftest$ac_exeext conftest.$ac_ext
15051fi
15052rm -f core conftest.err conftest.$ac_objext \
15053    conftest$ac_exeext conftest.$ac_ext
15054
15055# Check for functions needed.
15056for ac_func in getloadavg clock_gettime strtoull
15057do :
15058  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15060eval as_val=\$$as_ac_var
15061   if test "x$as_val" = x""yes; then :
15062  cat >>confdefs.h <<_ACEOF
15063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064_ACEOF
15065
15066fi
15067done
15068
15069
15070# Check for broken semaphore implementation on darwin.
15071# sem_init returns: sem_init error: Function not implemented.
15072case "$host" in
15073  *-darwin*)
15074
15075$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15076
15077    ;;
15078esac
15079
15080 # Check whether --enable-linux-futex was given.
15081if test "${enable_linux_futex+set}" = set; then :
15082  enableval=$enable_linux_futex;
15083      case "$enableval" in
15084       yes|no|default) ;;
15085       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15086                          esac
15087
15088else
15089  enable_linux_futex=default
15090fi
15091
15092
15093case "$target" in
15094  *-linux*)
15095    case "$enable_linux_futex" in
15096      default)
15097	# If headers don't have gettid/futex syscalls definition, then
15098	# default to no, otherwise there will be compile time failures.
15099	# Otherwise, default to yes.  If we don't detect we are
15100	# compiled/linked against NPTL and not cross-compiling, check
15101	# if programs are run by default against NPTL and if not, issue
15102	# a warning.
15103	enable_linux_futex=no
15104	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105/* end confdefs.h.  */
15106#include <sys/syscall.h>
15107	   int lk;
15108int
15109main ()
15110{
15111syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15112  ;
15113  return 0;
15114}
15115_ACEOF
15116if ac_fn_c_try_link "$LINENO"; then :
15117  save_LIBS="$LIBS"
15118	   LIBS="-lpthread $LIBS"
15119	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120/* end confdefs.h.  */
15121#ifndef _GNU_SOURCE
15122	     #define _GNU_SOURCE 1
15123	     #endif
15124	     #include <pthread.h>
15125	     pthread_t th; void *status;
15126int
15127main ()
15128{
15129pthread_tryjoin_np (th, &status);
15130  ;
15131  return 0;
15132}
15133_ACEOF
15134if ac_fn_c_try_link "$LINENO"; then :
15135  enable_linux_futex=yes
15136else
15137  if test x$cross_compiling = xno; then
15138	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15139		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15140		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15141If so, please configure with --disable-linux-futex" >&5
15142$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15143If so, please configure with --disable-linux-futex" >&2;}
15144	       fi
15145	     fi
15146	     enable_linux_futex=yes
15147fi
15148rm -f core conftest.err conftest.$ac_objext \
15149    conftest$ac_exeext conftest.$ac_ext
15150	   LIBS="$save_LIBS"
15151fi
15152rm -f core conftest.err conftest.$ac_objext \
15153    conftest$ac_exeext conftest.$ac_ext
15154	;;
15155      yes)
15156	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158#include <sys/syscall.h>
15159	   int lk;
15160int
15161main ()
15162{
15163syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15164  ;
15165  return 0;
15166}
15167_ACEOF
15168if ac_fn_c_try_link "$LINENO"; then :
15169
15170else
15171  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15172fi
15173rm -f core conftest.err conftest.$ac_objext \
15174    conftest$ac_exeext conftest.$ac_ext
15175	;;
15176    esac
15177    ;;
15178  *)
15179    enable_linux_futex=no
15180    ;;
15181esac
15182if test x$enable_linux_futex = xyes; then
15183  :
15184fi
15185
15186
15187# Check for pthread_{,attr_}[sg]etaffinity_np.
15188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190#define _GNU_SOURCE
15191   #include <pthread.h>
15192int
15193main ()
15194{
15195cpu_set_t cpuset;
15196   pthread_attr_t attr;
15197   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15198   if (CPU_ISSET (0, &cpuset))
15199     CPU_SET (1, &cpuset);
15200   else
15201     CPU_ZERO (&cpuset);
15202   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15203   pthread_attr_init (&attr);
15204   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15205   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15206  ;
15207  return 0;
15208}
15209_ACEOF
15210if ac_fn_c_try_link "$LINENO"; then :
15211
15212$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15213
15214fi
15215rm -f core conftest.err conftest.$ac_objext \
15216    conftest$ac_exeext conftest.$ac_ext
15217
15218# At least for glibc, clock_gettime is in librt.  But don't pull that
15219# in if it still doesn't give us the function we want.
15220if test $ac_cv_func_clock_gettime = no; then
15221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15222$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15223if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15224  $as_echo_n "(cached) " >&6
15225else
15226  ac_check_lib_save_LIBS=$LIBS
15227LIBS="-lrt  $LIBS"
15228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231/* Override any GCC internal prototype to avoid an error.
15232   Use char because int might match the return type of a GCC
15233   builtin and then its argument prototype would still apply.  */
15234#ifdef __cplusplus
15235extern "C"
15236#endif
15237char clock_gettime ();
15238int
15239main ()
15240{
15241return clock_gettime ();
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_link "$LINENO"; then :
15247  ac_cv_lib_rt_clock_gettime=yes
15248else
15249  ac_cv_lib_rt_clock_gettime=no
15250fi
15251rm -f core conftest.err conftest.$ac_objext \
15252    conftest$ac_exeext conftest.$ac_ext
15253LIBS=$ac_check_lib_save_LIBS
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15256$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15257if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15258  LIBS="-lrt $LIBS"
15259
15260$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15261
15262fi
15263
15264fi
15265
15266# See if we support thread-local storage.
15267
15268
15269   # Check whether --enable-tls was given.
15270if test "${enable_tls+set}" = set; then :
15271  enableval=$enable_tls;
15272      case "$enableval" in
15273       yes|no) ;;
15274       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15275      esac
15276
15277else
15278  enable_tls=yes
15279fi
15280
15281
15282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15283$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15284if test "${gcc_cv_have_tls+set}" = set; then :
15285  $as_echo_n "(cached) " >&6
15286else
15287
15288    if test "$cross_compiling" = yes; then :
15289                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h.  */
15291__thread int a; int b; int main() { return a = b; }
15292_ACEOF
15293if ac_fn_c_try_link "$LINENO"; then :
15294  chktls_save_LDFLAGS="$LDFLAGS"
15295	  	  	  case $host in
15296	    *-*-linux*)
15297	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15298	      ;;
15299	  esac
15300	  chktls_save_CFLAGS="$CFLAGS"
15301	  CFLAGS="-fPIC $CFLAGS"
15302	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303/* end confdefs.h.  */
15304int f() { return 0; }
15305_ACEOF
15306if ac_fn_c_try_link "$LINENO"; then :
15307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308/* end confdefs.h.  */
15309__thread int a; int b; int f() { return a = b; }
15310_ACEOF
15311if ac_fn_c_try_link "$LINENO"; then :
15312  gcc_cv_have_tls=yes
15313else
15314  gcc_cv_have_tls=no
15315fi
15316rm -f core conftest.err conftest.$ac_objext \
15317    conftest$ac_exeext conftest.$ac_ext
15318else
15319  gcc_cv_have_tls=yes
15320fi
15321rm -f core conftest.err conftest.$ac_objext \
15322    conftest$ac_exeext conftest.$ac_ext
15323	  CFLAGS="$chktls_save_CFLAGS"
15324	  LDFLAGS="$chktls_save_LDFLAGS"
15325else
15326  gcc_cv_have_tls=no
15327fi
15328rm -f core conftest.err conftest.$ac_objext \
15329    conftest$ac_exeext conftest.$ac_ext
15330
15331
15332else
15333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334/* end confdefs.h.  */
15335__thread int a; int b; int main() { return a = b; }
15336_ACEOF
15337if ac_fn_c_try_run "$LINENO"; then :
15338                      chktls_save_LDFLAGS="$LDFLAGS"
15339      LDFLAGS="-static $LDFLAGS"
15340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h.  */
15342int main() { return 0; }
15343_ACEOF
15344if ac_fn_c_try_link "$LINENO"; then :
15345  if test "$cross_compiling" = yes; then :
15346  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15348as_fn_error "cannot run test program while cross compiling
15349See \`config.log' for more details." "$LINENO" 5; }
15350else
15351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352/* end confdefs.h.  */
15353__thread int a; int b; int main() { return a = b; }
15354_ACEOF
15355if ac_fn_c_try_run "$LINENO"; then :
15356  gcc_cv_have_tls=yes
15357else
15358  gcc_cv_have_tls=no
15359fi
15360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15361  conftest.$ac_objext conftest.beam conftest.$ac_ext
15362fi
15363
15364else
15365  gcc_cv_have_tls=yes
15366fi
15367rm -f core conftest.err conftest.$ac_objext \
15368    conftest$ac_exeext conftest.$ac_ext
15369      LDFLAGS="$chktls_save_LDFLAGS"
15370      if test $gcc_cv_have_tls = yes; then
15371						chktls_save_CFLAGS="$CFLAGS"
15372	thread_CFLAGS=failed
15373	for flag in '' '-pthread' '-lpthread'; do
15374	  CFLAGS="$flag $chktls_save_CFLAGS"
15375	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376/* end confdefs.h.  */
15377#include <pthread.h>
15378		void *g(void *d) { return NULL; }
15379int
15380main ()
15381{
15382pthread_t t; pthread_create(&t,NULL,g,NULL);
15383  ;
15384  return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"; then :
15388  thread_CFLAGS="$flag"
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391    conftest$ac_exeext conftest.$ac_ext
15392	  if test "X$thread_CFLAGS" != Xfailed; then
15393	    break
15394	  fi
15395	done
15396	CFLAGS="$chktls_save_CFLAGS"
15397	if test "X$thread_CFLAGS" != Xfailed; then
15398	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15399 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
15400  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15402as_fn_error "cannot run test program while cross compiling
15403See \`config.log' for more details." "$LINENO" 5; }
15404else
15405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406/* end confdefs.h.  */
15407#include <pthread.h>
15408		__thread int a;
15409		static int *volatile a_in_other_thread;
15410		static void *
15411		thread_func (void *arg)
15412		{
15413		  a_in_other_thread = &a;
15414		  return (void *)0;
15415		}
15416int
15417main ()
15418{
15419pthread_t thread;
15420		void *thread_retval;
15421		int *volatile a_in_main_thread;
15422		a_in_main_thread = &a;
15423		if (pthread_create (&thread, (pthread_attr_t *)0,
15424				    thread_func, (void *)0))
15425		  return 0;
15426		if (pthread_join (thread, &thread_retval))
15427		  return 0;
15428		return (a_in_other_thread == a_in_main_thread);
15429  ;
15430  return 0;
15431}
15432_ACEOF
15433if ac_fn_c_try_run "$LINENO"; then :
15434  gcc_cv_have_tls=yes
15435else
15436  gcc_cv_have_tls=no
15437fi
15438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15439  conftest.$ac_objext conftest.beam conftest.$ac_ext
15440fi
15441
15442	  CFLAGS="$chktls_save_CFLAGS"
15443	fi
15444      fi
15445else
15446  gcc_cv_have_tls=no
15447fi
15448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15449  conftest.$ac_objext conftest.beam conftest.$ac_ext
15450fi
15451
15452fi
15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15454$as_echo "$gcc_cv_have_tls" >&6; }
15455  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15456
15457$as_echo "#define HAVE_TLS 1" >>confdefs.h
15458
15459  fi
15460
15461# See what sort of export controls are availible.
15462
15463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15464$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15465if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468
15469  save_CFLAGS="$CFLAGS"
15470  CFLAGS="$CFLAGS -Werror"
15471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472/* end confdefs.h.  */
15473void __attribute__((visibility("hidden"))) foo(void) { }
15474int
15475main ()
15476{
15477
15478  ;
15479  return 0;
15480}
15481_ACEOF
15482if ac_fn_c_try_compile "$LINENO"; then :
15483  libgomp_cv_have_attribute_visibility=yes
15484else
15485  libgomp_cv_have_attribute_visibility=no
15486fi
15487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488  CFLAGS="$save_CFLAGS"
15489fi
15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15491$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15492  if test $libgomp_cv_have_attribute_visibility = yes; then
15493
15494$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15495
15496  fi
15497
15498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15499$as_echo_n "checking whether the target supports dllexport... " >&6; }
15500if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15501  $as_echo_n "(cached) " >&6
15502else
15503
15504  save_CFLAGS="$CFLAGS"
15505  CFLAGS="$CFLAGS -Werror"
15506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508void __attribute__((dllexport)) foo(void) { }
15509int
15510main ()
15511{
15512
15513  ;
15514  return 0;
15515}
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"; then :
15518  libgomp_cv_have_attribute_dllexport=yes
15519else
15520  libgomp_cv_have_attribute_dllexport=no
15521fi
15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523  CFLAGS="$save_CFLAGS"
15524fi
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15526$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15527  if test $libgomp_cv_have_attribute_dllexport = yes; then
15528
15529$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15530
15531  fi
15532
15533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15534$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15535if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15536  $as_echo_n "(cached) " >&6
15537else
15538
15539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h.  */
15541
15542void foo(void) { }
15543extern void bar(void) __attribute__((alias("foo")));
15544int
15545main ()
15546{
15547bar();
15548  ;
15549  return 0;
15550}
15551_ACEOF
15552if ac_fn_c_try_link "$LINENO"; then :
15553  libgomp_cv_have_attribute_alias=yes
15554else
15555  libgomp_cv_have_attribute_alias=no
15556fi
15557rm -f core conftest.err conftest.$ac_objext \
15558    conftest$ac_exeext conftest.$ac_ext
15559fi
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15561$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15562  if test $libgomp_cv_have_attribute_alias = yes; then
15563
15564$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15565
15566  fi
15567
15568
15569# Check whether --with-gnu-ld was given.
15570if test "${with_gnu_ld+set}" = set; then :
15571  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15572else
15573  with_gnu_ld=no
15574fi
15575
15576ac_prog=ld
15577if test "$GCC" = yes; then
15578  # Check if gcc -print-prog-name=ld gives a path.
15579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15580$as_echo_n "checking for ld used by $CC... " >&6; }
15581  case $host in
15582  *-*-mingw*)
15583    # gcc leaves a trailing carriage return which upsets mingw
15584    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15585  *)
15586    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15587  esac
15588  case $ac_prog in
15589    # Accept absolute paths.
15590    [\\/]* | ?:[\\/]*)
15591      re_direlt='/[^/][^/]*/\.\./'
15592      # Canonicalize the pathname of ld
15593      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15594      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15595	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15596      done
15597      test -z "$LD" && LD="$ac_prog"
15598      ;;
15599  "")
15600    # If it fails, then pretend we aren't using GCC.
15601    ac_prog=ld
15602    ;;
15603  *)
15604    # If it is relative, then search for the first ld in PATH.
15605    with_gnu_ld=unknown
15606    ;;
15607  esac
15608elif test "$with_gnu_ld" = yes; then
15609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15610$as_echo_n "checking for GNU ld... " >&6; }
15611else
15612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15613$as_echo_n "checking for non-GNU ld... " >&6; }
15614fi
15615if test "${lt_cv_path_LD+set}" = set; then :
15616  $as_echo_n "(cached) " >&6
15617else
15618  if test -z "$LD"; then
15619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15620  for ac_dir in $PATH; do
15621    IFS="$lt_save_ifs"
15622    test -z "$ac_dir" && ac_dir=.
15623    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15624      lt_cv_path_LD="$ac_dir/$ac_prog"
15625      # Check to see if the program is GNU ld.  I'd rather use --version,
15626      # but apparently some variants of GNU ld only accept -v.
15627      # Break only if it was the GNU/non-GNU ld that we prefer.
15628      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15629      *GNU* | *'with BFD'*)
15630	test "$with_gnu_ld" != no && break
15631	;;
15632      *)
15633	test "$with_gnu_ld" != yes && break
15634	;;
15635      esac
15636    fi
15637  done
15638  IFS="$lt_save_ifs"
15639else
15640  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15641fi
15642fi
15643
15644LD="$lt_cv_path_LD"
15645if test -n "$LD"; then
15646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15647$as_echo "$LD" >&6; }
15648else
15649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650$as_echo "no" >&6; }
15651fi
15652test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15655if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15656  $as_echo_n "(cached) " >&6
15657else
15658  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15659case `$LD -v 2>&1 </dev/null` in
15660*GNU* | *'with BFD'*)
15661  lt_cv_prog_gnu_ld=yes
15662  ;;
15663*)
15664  lt_cv_prog_gnu_ld=no
15665  ;;
15666esac
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15669$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15670with_gnu_ld=$lt_cv_prog_gnu_ld
15671
15672
15673
15674
15675
15676
15677
15678  # If we're not using GNU ld, then there's no point in even trying these
15679  # tests.  Check for that first.  We should have already tested for gld
15680  # by now (in libtool), but require it now just to be safe...
15681  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15682  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15683
15684
15685
15686  # The name set by libtool depends on the version of libtool.  Shame on us
15687  # for depending on an impl detail, but c'est la vie.  Older versions used
15688  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15689  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15690  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15691  # set (hence we're using an older libtool), then set it.
15692  if test x${with_gnu_ld+set} != xset; then
15693    if test x${ac_cv_prog_gnu_ld+set} != xset; then
15694      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15695      with_gnu_ld=no
15696    else
15697      with_gnu_ld=$ac_cv_prog_gnu_ld
15698    fi
15699  fi
15700
15701  # Start by getting the version number.  I think the libtool test already
15702  # does some of this, but throws away the result.
15703  libgomp_ld_is_gold=no
15704  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15705    libgomp_ld_is_gold=yes
15706  fi
15707
15708  ldver=`$LD --version 2>/dev/null |
15709         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15710
15711  libgomp_gnu_ld_version=`echo $ldver | \
15712         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15713
15714  # Set --gc-sections.
15715  if test "$with_gnu_ld" = "notbroken"; then
15716    # GNU ld it is!  Joy and bunny rabbits!
15717
15718    # All these tests are for C++; save the language and the compiler flags.
15719    # Need to do this so that g++ won't try to link in libstdc++
15720    ac_test_CFLAGS="${CFLAGS+set}"
15721    ac_save_CFLAGS="$CFLAGS"
15722    CFLAGS='-x c++  -Wl,--gc-sections'
15723
15724    # Check for -Wl,--gc-sections
15725    # XXX This test is broken at the moment, as symbols required for linking
15726    # are now in libsupc++ (not built yet).  In addition, this test has
15727    # cored on solaris in the past.  In addition, --gc-sections doesn't
15728    # really work at the moment (keeps on discarding used sections, first
15729    # .eh_frame and now some of the glibc sections for iconv).
15730    # Bzzzzt.  Thanks for playing, maybe next time.
15731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15732$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15733    if test "$cross_compiling" = yes; then :
15734  ac_sectionLDflags=yes
15735else
15736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737/* end confdefs.h.  */
15738
15739     int main(void)
15740     {
15741       try { throw 1; }
15742       catch (...) { };
15743       return 0;
15744     }
15745
15746_ACEOF
15747if ac_fn_c_try_run "$LINENO"; then :
15748  ac_sectionLDflags=yes
15749else
15750  ac_sectionLDflags=no
15751fi
15752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15753  conftest.$ac_objext conftest.beam conftest.$ac_ext
15754fi
15755
15756    if test "$ac_test_CFLAGS" = set; then
15757      CFLAGS="$ac_save_CFLAGS"
15758    else
15759      # this is the suspicious part
15760      CFLAGS=''
15761    fi
15762    if test "$ac_sectionLDflags" = "yes"; then
15763      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15764    fi
15765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15766$as_echo "$ac_sectionLDflags" >&6; }
15767  fi
15768
15769  # Set linker optimization flags.
15770  if test x"$with_gnu_ld" = x"yes"; then
15771    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15772  fi
15773
15774
15775
15776
15777
15778
15779 # Check whether --enable-symvers was given.
15780if test "${enable_symvers+set}" = set; then :
15781  enableval=$enable_symvers;
15782      case "$enableval" in
15783       yes|no|gnu*|sun) ;;
15784       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15785                          esac
15786
15787else
15788  enable_symvers=yes
15789fi
15790
15791
15792
15793# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15794# don't know enough about $LD to do tricks...
15795
15796
15797# Turn a 'yes' into a suitable default.
15798if test x$enable_symvers = xyes ; then
15799  # FIXME  The following test is too strict, in theory.
15800  if test $enable_shared = no || test "x$LD" = x; then
15801    enable_symvers=no
15802  else
15803    if test $with_gnu_ld = yes ; then
15804      enable_symvers=gnu
15805    else
15806      case ${target_os} in
15807        # Sun symbol versioning exists since Solaris 2.5.
15808        solaris2.[5-9]* | solaris2.1[0-9]*)
15809          enable_symvers=sun ;;
15810        *)
15811          enable_symvers=no ;;
15812      esac
15813    fi
15814  fi
15815fi
15816
15817# Check if 'sun' was requested on non-Solaris 2 platforms.
15818if test x$enable_symvers = xsun ; then
15819  case ${target_os} in
15820    solaris2*)
15821      # All fine.
15822      ;;
15823    *)
15824      # Unlikely to work.
15825      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15826$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15827      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15828$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15829      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15830$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15831      enable_symvers=no
15832      ;;
15833  esac
15834fi
15835
15836# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15837if test $enable_symvers != no; then
15838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15839$as_echo_n "checking for shared libgcc... " >&6; }
15840  ac_save_CFLAGS="$CFLAGS"
15841  CFLAGS=' -lgcc_s'
15842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844
15845int
15846main ()
15847{
15848return 0;
15849  ;
15850  return 0;
15851}
15852_ACEOF
15853if ac_fn_c_try_link "$LINENO"; then :
15854  libgomp_shared_libgcc=yes
15855else
15856  libgomp_shared_libgcc=no
15857fi
15858rm -f core conftest.err conftest.$ac_objext \
15859    conftest$ac_exeext conftest.$ac_ext
15860  CFLAGS="$ac_save_CFLAGS"
15861  if test $libgomp_shared_libgcc = no; then
15862    cat > conftest.c <<EOF
15863int main (void) { return 0; }
15864EOF
15865    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15866			     -shared -shared-libgcc -o conftest.so \
15867			     conftest.c -v 2>&1 >/dev/null \
15868			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15869    rm -f conftest.c conftest.so
15870    if test x${libgomp_libgcc_s_suffix+set} = xset; then
15871      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h.  */
15874
15875int
15876main ()
15877{
15878return 0;
15879  ;
15880  return 0;
15881}
15882_ACEOF
15883if ac_fn_c_try_link "$LINENO"; then :
15884  libgomp_shared_libgcc=yes
15885fi
15886rm -f core conftest.err conftest.$ac_objext \
15887    conftest$ac_exeext conftest.$ac_ext
15888      CFLAGS="$ac_save_CFLAGS"
15889    fi
15890  fi
15891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15892$as_echo "$libgomp_shared_libgcc" >&6; }
15893fi
15894
15895# For GNU ld, we need at least this version.  The format is described in
15896# LIBGOMP_CHECK_LINKER_FEATURES above.
15897libgomp_min_gnu_ld_version=21400
15898# XXXXXXXXXXX libgomp_gnu_ld_version=21390
15899
15900# Check to see if unspecified "yes" value can win, given results above.
15901# Change "yes" into either "no" or a style name.
15902if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15903  if test $with_gnu_ld = yes; then
15904    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15905      enable_symvers=gnu
15906    elif test $libgomp_ld_is_gold = yes ; then
15907      enable_symvers=gnu
15908    else
15909      # The right tools, the right setup, but too old.  Fallbacks?
15910      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15911$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15912      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15913$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15914      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15915$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15916      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15917$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15918      if test $libgomp_gnu_ld_version -ge 21200 ; then
15919        # Globbing fix is present, proper block support is not.
15920                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15921$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15922        enable_symvers=no
15923      else
15924        # 2.11 or older.
15925        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15926$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15927        enable_symvers=no
15928      fi
15929    fi
15930  elif test $enable_symvers = sun; then
15931    : All interesting versions of Sun ld support sun style symbol versioning.
15932  else
15933    # just fail for now
15934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15935$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15937$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15939$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15941$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15942    enable_symvers=no
15943  fi
15944fi
15945
15946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15947$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15948if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15949  $as_echo_n "(cached) " >&6
15950else
15951
15952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h.  */
15954void foo (void); __asm (".symver foo, bar@SYMVER");
15955int
15956main ()
15957{
15958
15959  ;
15960  return 0;
15961}
15962_ACEOF
15963if ac_fn_c_try_compile "$LINENO"; then :
15964  libgomp_cv_have_as_symver_directive=yes
15965else
15966  libgomp_cv_have_as_symver_directive=no
15967fi
15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969fi
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15971$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15972if test $libgomp_cv_have_as_symver_directive = yes; then
15973
15974$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15975
15976fi
15977
15978 if test $enable_symvers != no; then
15979  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15980  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15981else
15982  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15983  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15984fi
15985
15986 if test $enable_symvers = gnu; then
15987  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15988  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15989else
15990  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15991  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15992fi
15993
15994 if test $enable_symvers = sun; then
15995  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15996  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15997else
15998  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15999  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16000fi
16001
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16003$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16004
16005if test $enable_symvers != no ; then
16006   case ${target_os} in
16007     # The Solaris 2 runtime linker doesn't support the GNU extension of
16008     # binding the same symbol to different versions
16009     solaris2*)
16010       ;;
16011     # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16012     *)
16013
16014$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16015
16016       ;;
16017    esac
16018fi
16019
16020
16021if test $enable_symvers = gnu; then
16022
16023$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16024
16025fi
16026
16027# Get target configury.
16028. ${srcdir}/configure.tgt
16029CFLAGS="$save_CFLAGS $XCFLAGS"
16030
16031# Check for __sync_val_compare_and_swap, but only after the target has
16032# had a chance to set XCFLAGS.
16033
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16035$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16036if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16037  $as_echo_n "(cached) " >&6
16038else
16039
16040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042
16043int
16044main ()
16045{
16046int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16047  ;
16048  return 0;
16049}
16050_ACEOF
16051if ac_fn_c_try_link "$LINENO"; then :
16052  libgomp_cv_have_sync_builtins=yes
16053else
16054  libgomp_cv_have_sync_builtins=no
16055fi
16056rm -f core conftest.err conftest.$ac_objext \
16057    conftest$ac_exeext conftest.$ac_ext
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16060$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16061  if test $libgomp_cv_have_sync_builtins = yes; then
16062
16063$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16064
16065  fi
16066
16067XCFLAGS="$XCFLAGS$XPCFLAGS"
16068
16069
16070
16071
16072
16073# Cleanup and exit.
16074CFLAGS="$save_CFLAGS"
16075cat >confcache <<\_ACEOF
16076# This file is a shell script that caches the results of configure
16077# tests run on this system so they can be shared between configure
16078# scripts and configure runs, see configure's option --config-cache.
16079# It is not useful on other systems.  If it contains results you don't
16080# want to keep, you may remove or edit it.
16081#
16082# config.status only pays attention to the cache file if you give it
16083# the --recheck option to rerun configure.
16084#
16085# `ac_cv_env_foo' variables (set or unset) will be overridden when
16086# loading this file, other *unset* `ac_cv_foo' will be assigned the
16087# following values.
16088
16089_ACEOF
16090
16091# The following way of writing the cache mishandles newlines in values,
16092# but we know of no workaround that is simple, portable, and efficient.
16093# So, we kill variables containing newlines.
16094# Ultrix sh set writes to stderr and can't be redirected directly,
16095# and sets the high bit in the cache file unless we assign to the vars.
16096(
16097  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16098    eval ac_val=\$$ac_var
16099    case $ac_val in #(
16100    *${as_nl}*)
16101      case $ac_var in #(
16102      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16104      esac
16105      case $ac_var in #(
16106      _ | IFS | as_nl) ;; #(
16107      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16108      *) { eval $ac_var=; unset $ac_var;} ;;
16109      esac ;;
16110    esac
16111  done
16112
16113  (set) 2>&1 |
16114    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16115    *${as_nl}ac_space=\ *)
16116      # `set' does not quote correctly, so add quotes: double-quote
16117      # substitution turns \\\\ into \\, and sed turns \\ into \.
16118      sed -n \
16119	"s/'/'\\\\''/g;
16120	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16121      ;; #(
16122    *)
16123      # `set' quotes correctly as required by POSIX, so do not add quotes.
16124      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16125      ;;
16126    esac |
16127    sort
16128) |
16129  sed '
16130     /^ac_cv_env_/b end
16131     t clear
16132     :clear
16133     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16134     t end
16135     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16136     :end' >>confcache
16137if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16138  if test -w "$cache_file"; then
16139    test "x$cache_file" != "x/dev/null" &&
16140      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16141$as_echo "$as_me: updating cache $cache_file" >&6;}
16142    cat confcache >$cache_file
16143  else
16144    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16145$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16146  fi
16147fi
16148rm -f confcache
16149
16150if test ${multilib} = yes; then
16151  multilib_arg="--enable-multilib"
16152else
16153  multilib_arg=
16154fi
16155
16156# Set up the set of libraries that we need to link against for libgomp.
16157# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16158# which will force linkage against -lpthread (or equivalent for the system).
16159# That's not 100% ideal, but about the best we can do easily.
16160if test $enable_shared = yes; then
16161  link_gomp="-lgomp %{static: $LIBS}"
16162else
16163  link_gomp="-lgomp $LIBS"
16164fi
16165
16166
16167 if test "$ac_cv_fc_compiler_gnu" = yes; then
16168  USE_FORTRAN_TRUE=
16169  USE_FORTRAN_FALSE='#'
16170else
16171  USE_FORTRAN_TRUE='#'
16172  USE_FORTRAN_FALSE=
16173fi
16174
16175
16176# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16177# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16178# the underscore here and update the PREREQ.  If it doesn't, then we'll
16179# need to copy this macro to our acinclude.m4.
16180save_CFLAGS="$CFLAGS"
16181for i in $config_path; do
16182  if test -f $srcdir/config/$i/omp-lock.h; then
16183    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16184    break
16185  fi
16186done
16187
16188if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16189
16190else
16191  as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16192fi
16193
16194
16195if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16196
16197fi
16198
16199
16200if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16201
16202fi
16203
16204
16205if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16206
16207fi
16208
16209
16210if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16211
16212else
16213  as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16214fi
16215
16216
16217if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16218
16219fi
16220
16221
16222if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16223
16224fi
16225
16226
16227if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16228
16229fi
16230
16231
16232
16233# If the lock fits in an integer, then arrange for Fortran to use that
16234# integer.  If it doesn't, then arrange for Fortran to use a pointer.
16235# Except that we don't have a way at present to multi-lib the installed
16236# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16237# actual target.
16238OMP_LOCK_KIND=$OMP_LOCK_SIZE
16239OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16240if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16241  OMP_LOCK_KIND=8
16242fi
16243if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16244  OMP_NEST_LOCK_KIND=8
16245fi
16246OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16247OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16248if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16249  OMP_LOCK_25_KIND=8
16250fi
16251if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16252  OMP_NEST_LOCK_25_KIND=8
16253fi
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267CFLAGS="$save_CFLAGS"
16268
16269ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16270
16271ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16272
16273cat >confcache <<\_ACEOF
16274# This file is a shell script that caches the results of configure
16275# tests run on this system so they can be shared between configure
16276# scripts and configure runs, see configure's option --config-cache.
16277# It is not useful on other systems.  If it contains results you don't
16278# want to keep, you may remove or edit it.
16279#
16280# config.status only pays attention to the cache file if you give it
16281# the --recheck option to rerun configure.
16282#
16283# `ac_cv_env_foo' variables (set or unset) will be overridden when
16284# loading this file, other *unset* `ac_cv_foo' will be assigned the
16285# following values.
16286
16287_ACEOF
16288
16289# The following way of writing the cache mishandles newlines in values,
16290# but we know of no workaround that is simple, portable, and efficient.
16291# So, we kill variables containing newlines.
16292# Ultrix sh set writes to stderr and can't be redirected directly,
16293# and sets the high bit in the cache file unless we assign to the vars.
16294(
16295  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16296    eval ac_val=\$$ac_var
16297    case $ac_val in #(
16298    *${as_nl}*)
16299      case $ac_var in #(
16300      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16302      esac
16303      case $ac_var in #(
16304      _ | IFS | as_nl) ;; #(
16305      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16306      *) { eval $ac_var=; unset $ac_var;} ;;
16307      esac ;;
16308    esac
16309  done
16310
16311  (set) 2>&1 |
16312    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16313    *${as_nl}ac_space=\ *)
16314      # `set' does not quote correctly, so add quotes: double-quote
16315      # substitution turns \\\\ into \\, and sed turns \\ into \.
16316      sed -n \
16317	"s/'/'\\\\''/g;
16318	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16319      ;; #(
16320    *)
16321      # `set' quotes correctly as required by POSIX, so do not add quotes.
16322      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16323      ;;
16324    esac |
16325    sort
16326) |
16327  sed '
16328     /^ac_cv_env_/b end
16329     t clear
16330     :clear
16331     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16332     t end
16333     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16334     :end' >>confcache
16335if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16336  if test -w "$cache_file"; then
16337    test "x$cache_file" != "x/dev/null" &&
16338      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16339$as_echo "$as_me: updating cache $cache_file" >&6;}
16340    cat confcache >$cache_file
16341  else
16342    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16343$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16344  fi
16345fi
16346rm -f confcache
16347
16348test "x$prefix" = xNONE && prefix=$ac_default_prefix
16349# Let make expand exec_prefix.
16350test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16351
16352DEFS=-DHAVE_CONFIG_H
16353
16354ac_libobjs=
16355ac_ltlibobjs=
16356for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16357  # 1. Remove the extension, and $U if already installed.
16358  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16359  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16360  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16361  #    will be set to the directory where LIBOBJS objects are built.
16362  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16363  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16364done
16365LIBOBJS=$ac_libobjs
16366
16367LTLIBOBJS=$ac_ltlibobjs
16368
16369
16370if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16371  as_fn_error "conditional \"GENINSRC\" was never defined.
16372Usually this means the macro was only invoked conditionally." "$LINENO" 5
16373fi
16374 if test -n "$EXEEXT"; then
16375  am__EXEEXT_TRUE=
16376  am__EXEEXT_FALSE='#'
16377else
16378  am__EXEEXT_TRUE='#'
16379  am__EXEEXT_FALSE=
16380fi
16381
16382if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16383  as_fn_error "conditional \"AMDEP\" was never defined.
16384Usually this means the macro was only invoked conditionally." "$LINENO" 5
16385fi
16386if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16387  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16388Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389fi
16390if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16391  as_fn_error "conditional \"BUILD_INFO\" was never defined.
16392Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393fi
16394if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16395  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16396Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397fi
16398if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16399  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16400Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401fi
16402if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16403  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16404Usually this means the macro was only invoked conditionally." "$LINENO" 5
16405fi
16406if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16407  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16408Usually this means the macro was only invoked conditionally." "$LINENO" 5
16409fi
16410if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16411  as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16412Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413fi
16414
16415: ${CONFIG_STATUS=./config.status}
16416ac_write_fail=0
16417ac_clean_files_save=$ac_clean_files
16418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16421as_write_fail=0
16422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16423#! $SHELL
16424# Generated by $as_me.
16425# Run this file to recreate the current configuration.
16426# Compiler output produced by configure, useful for debugging
16427# configure, is in config.log if it exists.
16428
16429debug=false
16430ac_cs_recheck=false
16431ac_cs_silent=false
16432
16433SHELL=\${CONFIG_SHELL-$SHELL}
16434export SHELL
16435_ASEOF
16436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16437## -------------------- ##
16438## M4sh Initialization. ##
16439## -------------------- ##
16440
16441# Be more Bourne compatible
16442DUALCASE=1; export DUALCASE # for MKS sh
16443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16444  emulate sh
16445  NULLCMD=:
16446  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16447  # is contrary to our usage.  Disable this feature.
16448  alias -g '${1+"$@"}'='"$@"'
16449  setopt NO_GLOB_SUBST
16450else
16451  case `(set -o) 2>/dev/null` in #(
16452  *posix*) :
16453    set -o posix ;; #(
16454  *) :
16455     ;;
16456esac
16457fi
16458
16459
16460as_nl='
16461'
16462export as_nl
16463# Printing a long string crashes Solaris 7 /usr/bin/printf.
16464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16467# Prefer a ksh shell builtin over an external printf program on Solaris,
16468# but without wasting forks for bash or zsh.
16469if test -z "$BASH_VERSION$ZSH_VERSION" \
16470    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16471  as_echo='print -r --'
16472  as_echo_n='print -rn --'
16473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16474  as_echo='printf %s\n'
16475  as_echo_n='printf %s'
16476else
16477  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16478    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16479    as_echo_n='/usr/ucb/echo -n'
16480  else
16481    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16482    as_echo_n_body='eval
16483      arg=$1;
16484      case $arg in #(
16485      *"$as_nl"*)
16486	expr "X$arg" : "X\\(.*\\)$as_nl";
16487	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16488      esac;
16489      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16490    '
16491    export as_echo_n_body
16492    as_echo_n='sh -c $as_echo_n_body as_echo'
16493  fi
16494  export as_echo_body
16495  as_echo='sh -c $as_echo_body as_echo'
16496fi
16497
16498# The user is always right.
16499if test "${PATH_SEPARATOR+set}" != set; then
16500  PATH_SEPARATOR=:
16501  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16502    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16503      PATH_SEPARATOR=';'
16504  }
16505fi
16506
16507
16508# IFS
16509# We need space, tab and new line, in precisely that order.  Quoting is
16510# there to prevent editors from complaining about space-tab.
16511# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16512# splitting by setting IFS to empty value.)
16513IFS=" ""	$as_nl"
16514
16515# Find who we are.  Look in the path if we contain no directory separator.
16516case $0 in #((
16517  *[\\/]* ) as_myself=$0 ;;
16518  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519for as_dir in $PATH
16520do
16521  IFS=$as_save_IFS
16522  test -z "$as_dir" && as_dir=.
16523    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16524  done
16525IFS=$as_save_IFS
16526
16527     ;;
16528esac
16529# We did not find ourselves, most probably we were run as `sh COMMAND'
16530# in which case we are not to be found in the path.
16531if test "x$as_myself" = x; then
16532  as_myself=$0
16533fi
16534if test ! -f "$as_myself"; then
16535  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16536  exit 1
16537fi
16538
16539# Unset variables that we do not need and which cause bugs (e.g. in
16540# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16541# suppresses any "Segmentation fault" message there.  '((' could
16542# trigger a bug in pdksh 5.2.14.
16543for as_var in BASH_ENV ENV MAIL MAILPATH
16544do eval test x\${$as_var+set} = xset \
16545  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16546done
16547PS1='$ '
16548PS2='> '
16549PS4='+ '
16550
16551# NLS nuisances.
16552LC_ALL=C
16553export LC_ALL
16554LANGUAGE=C
16555export LANGUAGE
16556
16557# CDPATH.
16558(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16559
16560
16561# as_fn_error ERROR [LINENO LOG_FD]
16562# ---------------------------------
16563# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16564# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16565# script with status $?, using 1 if that was 0.
16566as_fn_error ()
16567{
16568  as_status=$?; test $as_status -eq 0 && as_status=1
16569  if test "$3"; then
16570    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16571    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16572  fi
16573  $as_echo "$as_me: error: $1" >&2
16574  as_fn_exit $as_status
16575} # as_fn_error
16576
16577
16578# as_fn_set_status STATUS
16579# -----------------------
16580# Set $? to STATUS, without forking.
16581as_fn_set_status ()
16582{
16583  return $1
16584} # as_fn_set_status
16585
16586# as_fn_exit STATUS
16587# -----------------
16588# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16589as_fn_exit ()
16590{
16591  set +e
16592  as_fn_set_status $1
16593  exit $1
16594} # as_fn_exit
16595
16596# as_fn_unset VAR
16597# ---------------
16598# Portably unset VAR.
16599as_fn_unset ()
16600{
16601  { eval $1=; unset $1;}
16602}
16603as_unset=as_fn_unset
16604# as_fn_append VAR VALUE
16605# ----------------------
16606# Append the text in VALUE to the end of the definition contained in VAR. Take
16607# advantage of any shell optimizations that allow amortized linear growth over
16608# repeated appends, instead of the typical quadratic growth present in naive
16609# implementations.
16610if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16611  eval 'as_fn_append ()
16612  {
16613    eval $1+=\$2
16614  }'
16615else
16616  as_fn_append ()
16617  {
16618    eval $1=\$$1\$2
16619  }
16620fi # as_fn_append
16621
16622# as_fn_arith ARG...
16623# ------------------
16624# Perform arithmetic evaluation on the ARGs, and store the result in the
16625# global $as_val. Take advantage of shells that can avoid forks. The arguments
16626# must be portable across $(()) and expr.
16627if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16628  eval 'as_fn_arith ()
16629  {
16630    as_val=$(( $* ))
16631  }'
16632else
16633  as_fn_arith ()
16634  {
16635    as_val=`expr "$@" || test $? -eq 1`
16636  }
16637fi # as_fn_arith
16638
16639
16640if expr a : '\(a\)' >/dev/null 2>&1 &&
16641   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16642  as_expr=expr
16643else
16644  as_expr=false
16645fi
16646
16647if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16648  as_basename=basename
16649else
16650  as_basename=false
16651fi
16652
16653if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16654  as_dirname=dirname
16655else
16656  as_dirname=false
16657fi
16658
16659as_me=`$as_basename -- "$0" ||
16660$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16661	 X"$0" : 'X\(//\)$' \| \
16662	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16663$as_echo X/"$0" |
16664    sed '/^.*\/\([^/][^/]*\)\/*$/{
16665	    s//\1/
16666	    q
16667	  }
16668	  /^X\/\(\/\/\)$/{
16669	    s//\1/
16670	    q
16671	  }
16672	  /^X\/\(\/\).*/{
16673	    s//\1/
16674	    q
16675	  }
16676	  s/.*/./; q'`
16677
16678# Avoid depending upon Character Ranges.
16679as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16680as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16681as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16682as_cr_digits='0123456789'
16683as_cr_alnum=$as_cr_Letters$as_cr_digits
16684
16685ECHO_C= ECHO_N= ECHO_T=
16686case `echo -n x` in #(((((
16687-n*)
16688  case `echo 'xy\c'` in
16689  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16690  xy)  ECHO_C='\c';;
16691  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16692       ECHO_T='	';;
16693  esac;;
16694*)
16695  ECHO_N='-n';;
16696esac
16697
16698rm -f conf$$ conf$$.exe conf$$.file
16699if test -d conf$$.dir; then
16700  rm -f conf$$.dir/conf$$.file
16701else
16702  rm -f conf$$.dir
16703  mkdir conf$$.dir 2>/dev/null
16704fi
16705if (echo >conf$$.file) 2>/dev/null; then
16706  if ln -s conf$$.file conf$$ 2>/dev/null; then
16707    as_ln_s='ln -s'
16708    # ... but there are two gotchas:
16709    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16710    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16711    # In both cases, we have to default to `cp -p'.
16712    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16713      as_ln_s='cp -p'
16714  elif ln conf$$.file conf$$ 2>/dev/null; then
16715    as_ln_s=ln
16716  else
16717    as_ln_s='cp -p'
16718  fi
16719else
16720  as_ln_s='cp -p'
16721fi
16722rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16723rmdir conf$$.dir 2>/dev/null
16724
16725
16726# as_fn_mkdir_p
16727# -------------
16728# Create "$as_dir" as a directory, including parents if necessary.
16729as_fn_mkdir_p ()
16730{
16731
16732  case $as_dir in #(
16733  -*) as_dir=./$as_dir;;
16734  esac
16735  test -d "$as_dir" || eval $as_mkdir_p || {
16736    as_dirs=
16737    while :; do
16738      case $as_dir in #(
16739      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16740      *) as_qdir=$as_dir;;
16741      esac
16742      as_dirs="'$as_qdir' $as_dirs"
16743      as_dir=`$as_dirname -- "$as_dir" ||
16744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16745	 X"$as_dir" : 'X\(//\)[^/]' \| \
16746	 X"$as_dir" : 'X\(//\)$' \| \
16747	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16748$as_echo X"$as_dir" |
16749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16750	    s//\1/
16751	    q
16752	  }
16753	  /^X\(\/\/\)[^/].*/{
16754	    s//\1/
16755	    q
16756	  }
16757	  /^X\(\/\/\)$/{
16758	    s//\1/
16759	    q
16760	  }
16761	  /^X\(\/\).*/{
16762	    s//\1/
16763	    q
16764	  }
16765	  s/.*/./; q'`
16766      test -d "$as_dir" && break
16767    done
16768    test -z "$as_dirs" || eval "mkdir $as_dirs"
16769  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16770
16771
16772} # as_fn_mkdir_p
16773if mkdir -p . 2>/dev/null; then
16774  as_mkdir_p='mkdir -p "$as_dir"'
16775else
16776  test -d ./-p && rmdir ./-p
16777  as_mkdir_p=false
16778fi
16779
16780if test -x / >/dev/null 2>&1; then
16781  as_test_x='test -x'
16782else
16783  if ls -dL / >/dev/null 2>&1; then
16784    as_ls_L_option=L
16785  else
16786    as_ls_L_option=
16787  fi
16788  as_test_x='
16789    eval sh -c '\''
16790      if test -d "$1"; then
16791	test -d "$1/.";
16792      else
16793	case $1 in #(
16794	-*)set "./$1";;
16795	esac;
16796	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16797	???[sx]*):;;*)false;;esac;fi
16798    '\'' sh
16799  '
16800fi
16801as_executable_p=$as_test_x
16802
16803# Sed expression to map a string onto a valid CPP name.
16804as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16805
16806# Sed expression to map a string onto a valid variable name.
16807as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16808
16809
16810exec 6>&1
16811## ----------------------------------- ##
16812## Main body of $CONFIG_STATUS script. ##
16813## ----------------------------------- ##
16814_ASEOF
16815test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16816
16817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16818# Save the log message, to keep $0 and so on meaningful, and to
16819# report actual input values of CONFIG_FILES etc. instead of their
16820# values after options handling.
16821ac_log="
16822This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16823generated by GNU Autoconf 2.64.  Invocation command line was
16824
16825  CONFIG_FILES    = $CONFIG_FILES
16826  CONFIG_HEADERS  = $CONFIG_HEADERS
16827  CONFIG_LINKS    = $CONFIG_LINKS
16828  CONFIG_COMMANDS = $CONFIG_COMMANDS
16829  $ $0 $@
16830
16831on `(hostname || uname -n) 2>/dev/null | sed 1q`
16832"
16833
16834_ACEOF
16835
16836case $ac_config_files in *"
16837"*) set x $ac_config_files; shift; ac_config_files=$*;;
16838esac
16839
16840case $ac_config_headers in *"
16841"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16842esac
16843
16844
16845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846# Files that config.status was made for.
16847config_files="$ac_config_files"
16848config_headers="$ac_config_headers"
16849config_commands="$ac_config_commands"
16850
16851_ACEOF
16852
16853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854ac_cs_usage="\
16855\`$as_me' instantiates files and other configuration actions
16856from templates according to the current configuration.  Unless the files
16857and actions are specified as TAGs, all are instantiated by default.
16858
16859Usage: $0 [OPTION]... [TAG]...
16860
16861  -h, --help       print this help, then exit
16862  -V, --version    print version number and configuration settings, then exit
16863  -q, --quiet, --silent
16864                   do not print progress messages
16865  -d, --debug      don't remove temporary files
16866      --recheck    update $as_me by reconfiguring in the same conditions
16867      --file=FILE[:TEMPLATE]
16868                   instantiate the configuration file FILE
16869      --header=FILE[:TEMPLATE]
16870                   instantiate the configuration header FILE
16871
16872Configuration files:
16873$config_files
16874
16875Configuration headers:
16876$config_headers
16877
16878Configuration commands:
16879$config_commands
16880
16881Report bugs to the package provider.
16882GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16883General help using GNU software: <http://www.gnu.org/gethelp/>."
16884
16885_ACEOF
16886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16887ac_cs_version="\\
16888GNU OpenMP Runtime Library config.status 1.0
16889configured by $0, generated by GNU Autoconf 2.64,
16890  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16891
16892Copyright (C) 2009 Free Software Foundation, Inc.
16893This config.status script is free software; the Free Software Foundation
16894gives unlimited permission to copy, distribute and modify it."
16895
16896ac_pwd='$ac_pwd'
16897srcdir='$srcdir'
16898INSTALL='$INSTALL'
16899MKDIR_P='$MKDIR_P'
16900AWK='$AWK'
16901test -n "\$AWK" || AWK=awk
16902_ACEOF
16903
16904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905# The default lists apply if the user does not specify any file.
16906ac_need_defaults=:
16907while test $# != 0
16908do
16909  case $1 in
16910  --*=*)
16911    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16912    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16913    ac_shift=:
16914    ;;
16915  *)
16916    ac_option=$1
16917    ac_optarg=$2
16918    ac_shift=shift
16919    ;;
16920  esac
16921
16922  case $ac_option in
16923  # Handling of the options.
16924  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16925    ac_cs_recheck=: ;;
16926  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16927    $as_echo "$ac_cs_version"; exit ;;
16928  --debug | --debu | --deb | --de | --d | -d )
16929    debug=: ;;
16930  --file | --fil | --fi | --f )
16931    $ac_shift
16932    case $ac_optarg in
16933    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16934    esac
16935    as_fn_append CONFIG_FILES " '$ac_optarg'"
16936    ac_need_defaults=false;;
16937  --header | --heade | --head | --hea )
16938    $ac_shift
16939    case $ac_optarg in
16940    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16941    esac
16942    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16943    ac_need_defaults=false;;
16944  --he | --h)
16945    # Conflict between --help and --header
16946    as_fn_error "ambiguous option: \`$1'
16947Try \`$0 --help' for more information.";;
16948  --help | --hel | -h )
16949    $as_echo "$ac_cs_usage"; exit ;;
16950  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16951  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16952    ac_cs_silent=: ;;
16953
16954  # This is an error.
16955  -*) as_fn_error "unrecognized option: \`$1'
16956Try \`$0 --help' for more information." ;;
16957
16958  *) as_fn_append ac_config_targets " $1"
16959     ac_need_defaults=false ;;
16960
16961  esac
16962  shift
16963done
16964
16965ac_configure_extra_args=
16966
16967if $ac_cs_silent; then
16968  exec 6>/dev/null
16969  ac_configure_extra_args="$ac_configure_extra_args --silent"
16970fi
16971
16972_ACEOF
16973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16974if \$ac_cs_recheck; then
16975  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16976  shift
16977  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16978  CONFIG_SHELL='$SHELL'
16979  export CONFIG_SHELL
16980  exec "\$@"
16981fi
16982
16983_ACEOF
16984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16985exec 5>>config.log
16986{
16987  echo
16988  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16989## Running $as_me. ##
16990_ASBOX
16991  $as_echo "$ac_log"
16992} >&5
16993
16994_ACEOF
16995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16996#
16997# INIT-COMMANDS
16998#
16999
17000srcdir="$srcdir"
17001host="$host"
17002target="$target"
17003with_multisubdir="$with_multisubdir"
17004with_multisrctop="$with_multisrctop"
17005with_target_subdir="$with_target_subdir"
17006ac_configure_args="${multilib_arg} ${ac_configure_args}"
17007multi_basedir="$multi_basedir"
17008CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17009CC="$CC"
17010CXX="$CXX"
17011GFORTRAN="$GFORTRAN"
17012GCJ="$GCJ"
17013AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17014
17015
17016# The HP-UX ksh and POSIX shell print the target directory to stdout
17017# if CDPATH is set.
17018(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17019
17020sed_quote_subst='$sed_quote_subst'
17021double_quote_subst='$double_quote_subst'
17022delay_variable_subst='$delay_variable_subst'
17023macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17024macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17025enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17026enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17027pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17028enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17029SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17030ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17037SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17038Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17039GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17040EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17041FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17042LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17051reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17052reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17053OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17054deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17055file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17056AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17057AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17058STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17059RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17060old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17061old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17062old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17063lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17064CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17065CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17066compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17067GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17068lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17069lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17070lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17071lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17072objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17073MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17074lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17075lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17076lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17077lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17078lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17079need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17080DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17081NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17082LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17083OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17084OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17085libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17086shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17087extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17088archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17089enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17090export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17091whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17092compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17093old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17094old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17095archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17096archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17097module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17098module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17099with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17100allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17101no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17102hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17103hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17104hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17105hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17106hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17107hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17108hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17109hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17110inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17111link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17112fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17113always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17114export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17115exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17116include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17117prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17118file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17119variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17120need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17121need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17122version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17123runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17124shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17125shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17126libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17127library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17128soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17129install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17130postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17131postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17132finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17133finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17134hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17135sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17136sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17137hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17138enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17139enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17140enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17141old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17142striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17143compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17144predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17145postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17146predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17147postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17148compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17149LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17150reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17151reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17152old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17153compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17154GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17155lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17156lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17157lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17158lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17159lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17160archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17161enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17162export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17163whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17164compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17165old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17166old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17167archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17168archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17169module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17170module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17171with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17172allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17173no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17174hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17175hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17176hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17177hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17178hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17179hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17180hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17181hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17182inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17183link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17184fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17185always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17186export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17187exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17188include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17189prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17190file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17191hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17192compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17193predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17194postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17195predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17196postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17197compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17198
17199LTCC='$LTCC'
17200LTCFLAGS='$LTCFLAGS'
17201compiler='$compiler_DEFAULT'
17202
17203# A function that is used when there is no print builtin or printf.
17204func_fallback_echo ()
17205{
17206  eval 'cat <<_LTECHO_EOF
17207\$1
17208_LTECHO_EOF'
17209}
17210
17211# Quote evaled strings.
17212for var in SHELL \
17213ECHO \
17214SED \
17215GREP \
17216EGREP \
17217FGREP \
17218LD \
17219NM \
17220LN_S \
17221lt_SP2NL \
17222lt_NL2SP \
17223reload_flag \
17224OBJDUMP \
17225deplibs_check_method \
17226file_magic_cmd \
17227AR \
17228AR_FLAGS \
17229STRIP \
17230RANLIB \
17231CC \
17232CFLAGS \
17233compiler \
17234lt_cv_sys_global_symbol_pipe \
17235lt_cv_sys_global_symbol_to_cdecl \
17236lt_cv_sys_global_symbol_to_c_name_address \
17237lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17238lt_prog_compiler_no_builtin_flag \
17239lt_prog_compiler_wl \
17240lt_prog_compiler_pic \
17241lt_prog_compiler_static \
17242lt_cv_prog_compiler_c_o \
17243need_locks \
17244DSYMUTIL \
17245NMEDIT \
17246LIPO \
17247OTOOL \
17248OTOOL64 \
17249shrext_cmds \
17250export_dynamic_flag_spec \
17251whole_archive_flag_spec \
17252compiler_needs_object \
17253with_gnu_ld \
17254allow_undefined_flag \
17255no_undefined_flag \
17256hardcode_libdir_flag_spec \
17257hardcode_libdir_flag_spec_ld \
17258hardcode_libdir_separator \
17259fix_srcfile_path \
17260exclude_expsyms \
17261include_expsyms \
17262file_list_spec \
17263variables_saved_for_relink \
17264libname_spec \
17265library_names_spec \
17266soname_spec \
17267install_override_mode \
17268finish_eval \
17269old_striplib \
17270striplib \
17271compiler_lib_search_dirs \
17272predep_objects \
17273postdep_objects \
17274predeps \
17275postdeps \
17276compiler_lib_search_path \
17277LD_FC \
17278reload_flag_FC \
17279compiler_FC \
17280lt_prog_compiler_no_builtin_flag_FC \
17281lt_prog_compiler_wl_FC \
17282lt_prog_compiler_pic_FC \
17283lt_prog_compiler_static_FC \
17284lt_cv_prog_compiler_c_o_FC \
17285export_dynamic_flag_spec_FC \
17286whole_archive_flag_spec_FC \
17287compiler_needs_object_FC \
17288with_gnu_ld_FC \
17289allow_undefined_flag_FC \
17290no_undefined_flag_FC \
17291hardcode_libdir_flag_spec_FC \
17292hardcode_libdir_flag_spec_ld_FC \
17293hardcode_libdir_separator_FC \
17294fix_srcfile_path_FC \
17295exclude_expsyms_FC \
17296include_expsyms_FC \
17297file_list_spec_FC \
17298compiler_lib_search_dirs_FC \
17299predep_objects_FC \
17300postdep_objects_FC \
17301predeps_FC \
17302postdeps_FC \
17303compiler_lib_search_path_FC; do
17304    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17305    *[\\\\\\\`\\"\\\$]*)
17306      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17307      ;;
17308    *)
17309      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17310      ;;
17311    esac
17312done
17313
17314# Double-quote double-evaled strings.
17315for var in reload_cmds \
17316old_postinstall_cmds \
17317old_postuninstall_cmds \
17318old_archive_cmds \
17319extract_expsyms_cmds \
17320old_archive_from_new_cmds \
17321old_archive_from_expsyms_cmds \
17322archive_cmds \
17323archive_expsym_cmds \
17324module_cmds \
17325module_expsym_cmds \
17326export_symbols_cmds \
17327prelink_cmds \
17328postinstall_cmds \
17329postuninstall_cmds \
17330finish_cmds \
17331sys_lib_search_path_spec \
17332sys_lib_dlsearch_path_spec \
17333reload_cmds_FC \
17334old_archive_cmds_FC \
17335old_archive_from_new_cmds_FC \
17336old_archive_from_expsyms_cmds_FC \
17337archive_cmds_FC \
17338archive_expsym_cmds_FC \
17339module_cmds_FC \
17340module_expsym_cmds_FC \
17341export_symbols_cmds_FC \
17342prelink_cmds_FC; do
17343    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17344    *[\\\\\\\`\\"\\\$]*)
17345      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17346      ;;
17347    *)
17348      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17349      ;;
17350    esac
17351done
17352
17353ac_aux_dir='$ac_aux_dir'
17354xsi_shell='$xsi_shell'
17355lt_shell_append='$lt_shell_append'
17356
17357# See if we are running on zsh, and set the options which allow our
17358# commands through without removal of \ escapes INIT.
17359if test -n "\${ZSH_VERSION+set}" ; then
17360   setopt NO_GLOB_SUBST
17361fi
17362
17363
17364    PACKAGE='$PACKAGE'
17365    VERSION='$VERSION'
17366    TIMESTAMP='$TIMESTAMP'
17367    RM='$RM'
17368    ofile='$ofile'
17369
17370
17371
17372
17373
17374
17375GCC="$GCC"
17376CC="$CC"
17377acx_cv_header_stdint="$acx_cv_header_stdint"
17378acx_cv_type_int8_t="$acx_cv_type_int8_t"
17379acx_cv_type_int16_t="$acx_cv_type_int16_t"
17380acx_cv_type_int32_t="$acx_cv_type_int32_t"
17381acx_cv_type_int64_t="$acx_cv_type_int64_t"
17382acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17383ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17384ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17385ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17386ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17387ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17388ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17389ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17390ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17391
17392
17393_ACEOF
17394
17395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396
17397# Handling of arguments.
17398for ac_config_target in $ac_config_targets
17399do
17400  case $ac_config_target in
17401    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17402    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17403    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17404    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17405    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17406    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17407    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17408    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17409    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17410    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17411    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17412    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17413
17414  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17415  esac
17416done
17417
17418
17419# If the user did not use the arguments to specify the items to instantiate,
17420# then the envvar interface is used.  Set only those that are not.
17421# We use the long form for the default assignment because of an extremely
17422# bizarre bug on SunOS 4.1.3.
17423if $ac_need_defaults; then
17424  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17425  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17426  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17427fi
17428
17429# Have a temporary directory for convenience.  Make it in the build tree
17430# simply because there is no reason against having it here, and in addition,
17431# creating and moving files from /tmp can sometimes cause problems.
17432# Hook for its removal unless debugging.
17433# Note that there is a small window in which the directory will not be cleaned:
17434# after its creation but before its name has been assigned to `$tmp'.
17435$debug ||
17436{
17437  tmp=
17438  trap 'exit_status=$?
17439  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17440' 0
17441  trap 'as_fn_exit 1' 1 2 13 15
17442}
17443# Create a (secure) tmp directory for tmp files.
17444
17445{
17446  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17447  test -n "$tmp" && test -d "$tmp"
17448}  ||
17449{
17450  tmp=./conf$$-$RANDOM
17451  (umask 077 && mkdir "$tmp")
17452} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17453
17454# Set up the scripts for CONFIG_FILES section.
17455# No need to generate them if there are no CONFIG_FILES.
17456# This happens for instance with `./config.status config.h'.
17457if test -n "$CONFIG_FILES"; then
17458
17459
17460ac_cr=`echo X | tr X '\015'`
17461# On cygwin, bash can eat \r inside `` if the user requested igncr.
17462# But we know of no other shell where ac_cr would be empty at this
17463# point, so we can use a bashism as a fallback.
17464if test "x$ac_cr" = x; then
17465  eval ac_cr=\$\'\\r\'
17466fi
17467ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17468if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17469  ac_cs_awk_cr='\r'
17470else
17471  ac_cs_awk_cr=$ac_cr
17472fi
17473
17474echo 'BEGIN {' >"$tmp/subs1.awk" &&
17475_ACEOF
17476
17477
17478{
17479  echo "cat >conf$$subs.awk <<_ACEOF" &&
17480  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17481  echo "_ACEOF"
17482} >conf$$subs.sh ||
17483  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17484ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17485ac_delim='%!_!# '
17486for ac_last_try in false false false false false :; do
17487  . ./conf$$subs.sh ||
17488    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17489
17490  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17491  if test $ac_delim_n = $ac_delim_num; then
17492    break
17493  elif $ac_last_try; then
17494    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17495  else
17496    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17497  fi
17498done
17499rm -f conf$$subs.sh
17500
17501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17502cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17503_ACEOF
17504sed -n '
17505h
17506s/^/S["/; s/!.*/"]=/
17507p
17508g
17509s/^[^!]*!//
17510:repl
17511t repl
17512s/'"$ac_delim"'$//
17513t delim
17514:nl
17515h
17516s/\(.\{148\}\).*/\1/
17517t more1
17518s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17519p
17520n
17521b repl
17522:more1
17523s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17524p
17525g
17526s/.\{148\}//
17527t nl
17528:delim
17529h
17530s/\(.\{148\}\).*/\1/
17531t more2
17532s/["\\]/\\&/g; s/^/"/; s/$/"/
17533p
17534b
17535:more2
17536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17537p
17538g
17539s/.\{148\}//
17540t delim
17541' <conf$$subs.awk | sed '
17542/^[^""]/{
17543  N
17544  s/\n//
17545}
17546' >>$CONFIG_STATUS || ac_write_fail=1
17547rm -f conf$$subs.awk
17548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549_ACAWK
17550cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17551  for (key in S) S_is_set[key] = 1
17552  FS = ""
17553
17554}
17555{
17556  line = $ 0
17557  nfields = split(line, field, "@")
17558  substed = 0
17559  len = length(field[1])
17560  for (i = 2; i < nfields; i++) {
17561    key = field[i]
17562    keylen = length(key)
17563    if (S_is_set[key]) {
17564      value = S[key]
17565      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17566      len += length(value) + length(field[++i])
17567      substed = 1
17568    } else
17569      len += 1 + keylen
17570  }
17571
17572  print line
17573}
17574
17575_ACAWK
17576_ACEOF
17577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17578if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17579  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17580else
17581  cat
17582fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17583  || as_fn_error "could not setup config files machinery" "$LINENO" 5
17584_ACEOF
17585
17586# VPATH may cause trouble with some makes, so we remove $(srcdir),
17587# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17588# trailing colons and then remove the whole line if VPATH becomes empty
17589# (actually we leave an empty line to preserve line numbers).
17590if test "x$srcdir" = x.; then
17591  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17592s/:*\$(srcdir):*/:/
17593s/:*\${srcdir}:*/:/
17594s/:*@srcdir@:*/:/
17595s/^\([^=]*=[	 ]*\):*/\1/
17596s/:*$//
17597s/^[^=]*=[	 ]*$//
17598}'
17599fi
17600
17601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17602fi # test -n "$CONFIG_FILES"
17603
17604# Set up the scripts for CONFIG_HEADERS section.
17605# No need to generate them if there are no CONFIG_HEADERS.
17606# This happens for instance with `./config.status Makefile'.
17607if test -n "$CONFIG_HEADERS"; then
17608cat >"$tmp/defines.awk" <<\_ACAWK ||
17609BEGIN {
17610_ACEOF
17611
17612# Transform confdefs.h into an awk script `defines.awk', embedded as
17613# here-document in config.status, that substitutes the proper values into
17614# config.h.in to produce config.h.
17615
17616# Create a delimiter string that does not exist in confdefs.h, to ease
17617# handling of long lines.
17618ac_delim='%!_!# '
17619for ac_last_try in false false :; do
17620  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17621  if test -z "$ac_t"; then
17622    break
17623  elif $ac_last_try; then
17624    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17625  else
17626    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17627  fi
17628done
17629
17630# For the awk script, D is an array of macro values keyed by name,
17631# likewise P contains macro parameters if any.  Preserve backslash
17632# newline sequences.
17633
17634ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17635sed -n '
17636s/.\{148\}/&'"$ac_delim"'/g
17637t rset
17638:rset
17639s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17640t def
17641d
17642:def
17643s/\\$//
17644t bsnl
17645s/["\\]/\\&/g
17646s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17647D["\1"]=" \3"/p
17648s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17649d
17650:bsnl
17651s/["\\]/\\&/g
17652s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17653D["\1"]=" \3\\\\\\n"\\/p
17654t cont
17655s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17656t cont
17657d
17658:cont
17659n
17660s/.\{148\}/&'"$ac_delim"'/g
17661t clear
17662:clear
17663s/\\$//
17664t bsnlc
17665s/["\\]/\\&/g; s/^/"/; s/$/"/p
17666d
17667:bsnlc
17668s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17669b cont
17670' <confdefs.h | sed '
17671s/'"$ac_delim"'/"\\\
17672"/g' >>$CONFIG_STATUS || ac_write_fail=1
17673
17674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17675  for (key in D) D_is_set[key] = 1
17676  FS = ""
17677}
17678/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17679  line = \$ 0
17680  split(line, arg, " ")
17681  if (arg[1] == "#") {
17682    defundef = arg[2]
17683    mac1 = arg[3]
17684  } else {
17685    defundef = substr(arg[1], 2)
17686    mac1 = arg[2]
17687  }
17688  split(mac1, mac2, "(") #)
17689  macro = mac2[1]
17690  prefix = substr(line, 1, index(line, defundef) - 1)
17691  if (D_is_set[macro]) {
17692    # Preserve the white space surrounding the "#".
17693    print prefix "define", macro P[macro] D[macro]
17694    next
17695  } else {
17696    # Replace #undef with comments.  This is necessary, for example,
17697    # in the case of _POSIX_SOURCE, which is predefined and required
17698    # on some systems where configure will not decide to define it.
17699    if (defundef == "undef") {
17700      print "/*", prefix defundef, macro, "*/"
17701      next
17702    }
17703  }
17704}
17705{ print }
17706_ACAWK
17707_ACEOF
17708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17709  as_fn_error "could not setup config headers machinery" "$LINENO" 5
17710fi # test -n "$CONFIG_HEADERS"
17711
17712
17713eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17714shift
17715for ac_tag
17716do
17717  case $ac_tag in
17718  :[FHLC]) ac_mode=$ac_tag; continue;;
17719  esac
17720  case $ac_mode$ac_tag in
17721  :[FHL]*:*);;
17722  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17723  :[FH]-) ac_tag=-:-;;
17724  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17725  esac
17726  ac_save_IFS=$IFS
17727  IFS=:
17728  set x $ac_tag
17729  IFS=$ac_save_IFS
17730  shift
17731  ac_file=$1
17732  shift
17733
17734  case $ac_mode in
17735  :L) ac_source=$1;;
17736  :[FH])
17737    ac_file_inputs=
17738    for ac_f
17739    do
17740      case $ac_f in
17741      -) ac_f="$tmp/stdin";;
17742      *) # Look for the file first in the build tree, then in the source tree
17743	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17744	 # because $ac_f cannot contain `:'.
17745	 test -f "$ac_f" ||
17746	   case $ac_f in
17747	   [\\/$]*) false;;
17748	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17749	   esac ||
17750	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17751      esac
17752      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17753      as_fn_append ac_file_inputs " '$ac_f'"
17754    done
17755
17756    # Let's still pretend it is `configure' which instantiates (i.e., don't
17757    # use $as_me), people would be surprised to read:
17758    #    /* config.h.  Generated by config.status.  */
17759    configure_input='Generated from '`
17760	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17761	`' by configure.'
17762    if test x"$ac_file" != x-; then
17763      configure_input="$ac_file.  $configure_input"
17764      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17765$as_echo "$as_me: creating $ac_file" >&6;}
17766    fi
17767    # Neutralize special characters interpreted by sed in replacement strings.
17768    case $configure_input in #(
17769    *\&* | *\|* | *\\* )
17770       ac_sed_conf_input=`$as_echo "$configure_input" |
17771       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17772    *) ac_sed_conf_input=$configure_input;;
17773    esac
17774
17775    case $ac_tag in
17776    *:-:* | *:-) cat >"$tmp/stdin" \
17777      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17778    esac
17779    ;;
17780  esac
17781
17782  ac_dir=`$as_dirname -- "$ac_file" ||
17783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784	 X"$ac_file" : 'X\(//\)[^/]' \| \
17785	 X"$ac_file" : 'X\(//\)$' \| \
17786	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17787$as_echo X"$ac_file" |
17788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17789	    s//\1/
17790	    q
17791	  }
17792	  /^X\(\/\/\)[^/].*/{
17793	    s//\1/
17794	    q
17795	  }
17796	  /^X\(\/\/\)$/{
17797	    s//\1/
17798	    q
17799	  }
17800	  /^X\(\/\).*/{
17801	    s//\1/
17802	    q
17803	  }
17804	  s/.*/./; q'`
17805  as_dir="$ac_dir"; as_fn_mkdir_p
17806  ac_builddir=.
17807
17808case "$ac_dir" in
17809.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17810*)
17811  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17812  # A ".." for each directory in $ac_dir_suffix.
17813  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17814  case $ac_top_builddir_sub in
17815  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17816  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17817  esac ;;
17818esac
17819ac_abs_top_builddir=$ac_pwd
17820ac_abs_builddir=$ac_pwd$ac_dir_suffix
17821# for backward compatibility:
17822ac_top_builddir=$ac_top_build_prefix
17823
17824case $srcdir in
17825  .)  # We are building in place.
17826    ac_srcdir=.
17827    ac_top_srcdir=$ac_top_builddir_sub
17828    ac_abs_top_srcdir=$ac_pwd ;;
17829  [\\/]* | ?:[\\/]* )  # Absolute name.
17830    ac_srcdir=$srcdir$ac_dir_suffix;
17831    ac_top_srcdir=$srcdir
17832    ac_abs_top_srcdir=$srcdir ;;
17833  *) # Relative name.
17834    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17835    ac_top_srcdir=$ac_top_build_prefix$srcdir
17836    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17837esac
17838ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17839
17840
17841  case $ac_mode in
17842  :F)
17843  #
17844  # CONFIG_FILE
17845  #
17846
17847  case $INSTALL in
17848  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17849  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17850  esac
17851  ac_MKDIR_P=$MKDIR_P
17852  case $MKDIR_P in
17853  [\\/$]* | ?:[\\/]* ) ;;
17854  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17855  esac
17856_ACEOF
17857
17858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17859# If the template does not know about datarootdir, expand it.
17860# FIXME: This hack should be removed a few years after 2.60.
17861ac_datarootdir_hack=; ac_datarootdir_seen=
17862ac_sed_dataroot='
17863/datarootdir/ {
17864  p
17865  q
17866}
17867/@datadir@/p
17868/@docdir@/p
17869/@infodir@/p
17870/@localedir@/p
17871/@mandir@/p'
17872case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17873*datarootdir*) ac_datarootdir_seen=yes;;
17874*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17875  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17876$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17877_ACEOF
17878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17879  ac_datarootdir_hack='
17880  s&@datadir@&$datadir&g
17881  s&@docdir@&$docdir&g
17882  s&@infodir@&$infodir&g
17883  s&@localedir@&$localedir&g
17884  s&@mandir@&$mandir&g
17885  s&\\\${datarootdir}&$datarootdir&g' ;;
17886esac
17887_ACEOF
17888
17889# Neutralize VPATH when `$srcdir' = `.'.
17890# Shell code in configure.ac might set extrasub.
17891# FIXME: do we really want to maintain this feature?
17892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17893ac_sed_extra="$ac_vpsub
17894$extrasub
17895_ACEOF
17896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17897:t
17898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17899s|@configure_input@|$ac_sed_conf_input|;t t
17900s&@top_builddir@&$ac_top_builddir_sub&;t t
17901s&@top_build_prefix@&$ac_top_build_prefix&;t t
17902s&@srcdir@&$ac_srcdir&;t t
17903s&@abs_srcdir@&$ac_abs_srcdir&;t t
17904s&@top_srcdir@&$ac_top_srcdir&;t t
17905s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17906s&@builddir@&$ac_builddir&;t t
17907s&@abs_builddir@&$ac_abs_builddir&;t t
17908s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17909s&@INSTALL@&$ac_INSTALL&;t t
17910s&@MKDIR_P@&$ac_MKDIR_P&;t t
17911$ac_datarootdir_hack
17912"
17913eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17914  || as_fn_error "could not create $ac_file" "$LINENO" 5
17915
17916test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17917  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17918  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17919  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17920which seems to be undefined.  Please make sure it is defined." >&5
17921$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17922which seems to be undefined.  Please make sure it is defined." >&2;}
17923
17924  rm -f "$tmp/stdin"
17925  case $ac_file in
17926  -) cat "$tmp/out" && rm -f "$tmp/out";;
17927  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17928  esac \
17929  || as_fn_error "could not create $ac_file" "$LINENO" 5
17930 ;;
17931  :H)
17932  #
17933  # CONFIG_HEADER
17934  #
17935  if test x"$ac_file" != x-; then
17936    {
17937      $as_echo "/* $configure_input  */" \
17938      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17939    } >"$tmp/config.h" \
17940      || as_fn_error "could not create $ac_file" "$LINENO" 5
17941    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17942      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17943$as_echo "$as_me: $ac_file is unchanged" >&6;}
17944    else
17945      rm -f "$ac_file"
17946      mv "$tmp/config.h" "$ac_file" \
17947	|| as_fn_error "could not create $ac_file" "$LINENO" 5
17948    fi
17949  else
17950    $as_echo "/* $configure_input  */" \
17951      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17952      || as_fn_error "could not create -" "$LINENO" 5
17953  fi
17954# Compute "$ac_file"'s index in $config_headers.
17955_am_arg="$ac_file"
17956_am_stamp_count=1
17957for _am_header in $config_headers :; do
17958  case $_am_header in
17959    $_am_arg | $_am_arg:* )
17960      break ;;
17961    * )
17962      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17963  esac
17964done
17965echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17966$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17967	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17968	 X"$_am_arg" : 'X\(//\)$' \| \
17969	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17970$as_echo X"$_am_arg" |
17971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17972	    s//\1/
17973	    q
17974	  }
17975	  /^X\(\/\/\)[^/].*/{
17976	    s//\1/
17977	    q
17978	  }
17979	  /^X\(\/\/\)$/{
17980	    s//\1/
17981	    q
17982	  }
17983	  /^X\(\/\).*/{
17984	    s//\1/
17985	    q
17986	  }
17987	  s/.*/./; q'`/stamp-h$_am_stamp_count
17988 ;;
17989
17990  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17991$as_echo "$as_me: executing $ac_file commands" >&6;}
17992 ;;
17993  esac
17994
17995
17996  case $ac_file$ac_mode in
17997    "default-1":C)
17998# Only add multilib support code if we just rebuilt the top-level
17999# Makefile.
18000case " $CONFIG_FILES " in
18001 *" Makefile "*)
18002   ac_file=Makefile . ${multi_basedir}/config-ml.in
18003   ;;
18004esac ;;
18005    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18006  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18007  # are listed without --file.  Let's play safe and only enable the eval
18008  # if we detect the quoting.
18009  case $CONFIG_FILES in
18010  *\'*) eval set x "$CONFIG_FILES" ;;
18011  *)   set x $CONFIG_FILES ;;
18012  esac
18013  shift
18014  for mf
18015  do
18016    # Strip MF so we end up with the name of the file.
18017    mf=`echo "$mf" | sed -e 's/:.*$//'`
18018    # Check whether this is an Automake generated Makefile or not.
18019    # We used to match only the files named `Makefile.in', but
18020    # some people rename them; so instead we look at the file content.
18021    # Grep'ing the first line is not enough: some people post-process
18022    # each Makefile.in and add a new line on top of each file to say so.
18023    # Grep'ing the whole file is not good either: AIX grep has a line
18024    # limit of 2048, but all sed's we know have understand at least 4000.
18025    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18026      dirpart=`$as_dirname -- "$mf" ||
18027$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18028	 X"$mf" : 'X\(//\)[^/]' \| \
18029	 X"$mf" : 'X\(//\)$' \| \
18030	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18031$as_echo X"$mf" |
18032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18033	    s//\1/
18034	    q
18035	  }
18036	  /^X\(\/\/\)[^/].*/{
18037	    s//\1/
18038	    q
18039	  }
18040	  /^X\(\/\/\)$/{
18041	    s//\1/
18042	    q
18043	  }
18044	  /^X\(\/\).*/{
18045	    s//\1/
18046	    q
18047	  }
18048	  s/.*/./; q'`
18049    else
18050      continue
18051    fi
18052    # Extract the definition of DEPDIR, am__include, and am__quote
18053    # from the Makefile without running `make'.
18054    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18055    test -z "$DEPDIR" && continue
18056    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18057    test -z "am__include" && continue
18058    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18059    # When using ansi2knr, U may be empty or an underscore; expand it
18060    U=`sed -n 's/^U = //p' < "$mf"`
18061    # Find all dependency output files, they are included files with
18062    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18063    # simplest approach to changing $(DEPDIR) to its actual value in the
18064    # expansion.
18065    for file in `sed -n "
18066      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18067	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18068      # Make sure the directory exists.
18069      test -f "$dirpart/$file" && continue
18070      fdir=`$as_dirname -- "$file" ||
18071$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18072	 X"$file" : 'X\(//\)[^/]' \| \
18073	 X"$file" : 'X\(//\)$' \| \
18074	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18075$as_echo X"$file" |
18076    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18077	    s//\1/
18078	    q
18079	  }
18080	  /^X\(\/\/\)[^/].*/{
18081	    s//\1/
18082	    q
18083	  }
18084	  /^X\(\/\/\)$/{
18085	    s//\1/
18086	    q
18087	  }
18088	  /^X\(\/\).*/{
18089	    s//\1/
18090	    q
18091	  }
18092	  s/.*/./; q'`
18093      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18094      # echo "creating $dirpart/$file"
18095      echo '# dummy' > "$dirpart/$file"
18096    done
18097  done
18098}
18099 ;;
18100    "libtool":C)
18101
18102    # See if we are running on zsh, and set the options which allow our
18103    # commands through without removal of \ escapes.
18104    if test -n "${ZSH_VERSION+set}" ; then
18105      setopt NO_GLOB_SUBST
18106    fi
18107
18108    cfgfile="${ofile}T"
18109    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18110    $RM "$cfgfile"
18111
18112    cat <<_LT_EOF >> "$cfgfile"
18113#! $SHELL
18114
18115# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18116# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18118# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18119#
18120#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18121#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18122#   Written by Gordon Matzigkeit, 1996
18123#
18124#   This file is part of GNU Libtool.
18125#
18126# GNU Libtool is free software; you can redistribute it and/or
18127# modify it under the terms of the GNU General Public License as
18128# published by the Free Software Foundation; either version 2 of
18129# the License, or (at your option) any later version.
18130#
18131# As a special exception to the GNU General Public License,
18132# if you distribute this file as part of a program or library that
18133# is built using GNU Libtool, you may include this file under the
18134# same distribution terms that you use for the rest of that program.
18135#
18136# GNU Libtool is distributed in the hope that it will be useful,
18137# but WITHOUT ANY WARRANTY; without even the implied warranty of
18138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18139# GNU General Public License for more details.
18140#
18141# You should have received a copy of the GNU General Public License
18142# along with GNU Libtool; see the file COPYING.  If not, a copy
18143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18144# obtained by writing to the Free Software Foundation, Inc.,
18145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18146
18147
18148# The names of the tagged configurations supported by this script.
18149available_tags="FC "
18150
18151# ### BEGIN LIBTOOL CONFIG
18152
18153# Which release of libtool.m4 was used?
18154macro_version=$macro_version
18155macro_revision=$macro_revision
18156
18157# Whether or not to build shared libraries.
18158build_libtool_libs=$enable_shared
18159
18160# Whether or not to build static libraries.
18161build_old_libs=$enable_static
18162
18163# What type of objects to build.
18164pic_mode=$pic_mode
18165
18166# Whether or not to optimize for fast installation.
18167fast_install=$enable_fast_install
18168
18169# Shell to use when invoking shell scripts.
18170SHELL=$lt_SHELL
18171
18172# An echo program that protects backslashes.
18173ECHO=$lt_ECHO
18174
18175# The host system.
18176host_alias=$host_alias
18177host=$host
18178host_os=$host_os
18179
18180# The build system.
18181build_alias=$build_alias
18182build=$build
18183build_os=$build_os
18184
18185# A sed program that does not truncate output.
18186SED=$lt_SED
18187
18188# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18189Xsed="\$SED -e 1s/^X//"
18190
18191# A grep program that handles long lines.
18192GREP=$lt_GREP
18193
18194# An ERE matcher.
18195EGREP=$lt_EGREP
18196
18197# A literal string matcher.
18198FGREP=$lt_FGREP
18199
18200# A BSD- or MS-compatible name lister.
18201NM=$lt_NM
18202
18203# Whether we need soft or hard links.
18204LN_S=$lt_LN_S
18205
18206# What is the maximum length of a command?
18207max_cmd_len=$max_cmd_len
18208
18209# Object file suffix (normally "o").
18210objext=$ac_objext
18211
18212# Executable file suffix (normally "").
18213exeext=$exeext
18214
18215# whether the shell understands "unset".
18216lt_unset=$lt_unset
18217
18218# turn spaces into newlines.
18219SP2NL=$lt_lt_SP2NL
18220
18221# turn newlines into spaces.
18222NL2SP=$lt_lt_NL2SP
18223
18224# An object symbol dumper.
18225OBJDUMP=$lt_OBJDUMP
18226
18227# Method to check whether dependent libraries are shared objects.
18228deplibs_check_method=$lt_deplibs_check_method
18229
18230# Command to use when deplibs_check_method == "file_magic".
18231file_magic_cmd=$lt_file_magic_cmd
18232
18233# The archiver.
18234AR=$lt_AR
18235AR_FLAGS=$lt_AR_FLAGS
18236
18237# A symbol stripping program.
18238STRIP=$lt_STRIP
18239
18240# Commands used to install an old-style archive.
18241RANLIB=$lt_RANLIB
18242old_postinstall_cmds=$lt_old_postinstall_cmds
18243old_postuninstall_cmds=$lt_old_postuninstall_cmds
18244
18245# Whether to use a lock for old archive extraction.
18246lock_old_archive_extraction=$lock_old_archive_extraction
18247
18248# A C compiler.
18249LTCC=$lt_CC
18250
18251# LTCC compiler flags.
18252LTCFLAGS=$lt_CFLAGS
18253
18254# Take the output of nm and produce a listing of raw symbols and C names.
18255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18256
18257# Transform the output of nm in a proper C declaration.
18258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18259
18260# Transform the output of nm in a C name address pair.
18261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18262
18263# Transform the output of nm in a C name address pair when lib prefix is needed.
18264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18265
18266# The name of the directory that contains temporary libtool files.
18267objdir=$objdir
18268
18269# Used to examine libraries when file_magic_cmd begins with "file".
18270MAGIC_CMD=$MAGIC_CMD
18271
18272# Must we lock files when doing compilation?
18273need_locks=$lt_need_locks
18274
18275# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18276DSYMUTIL=$lt_DSYMUTIL
18277
18278# Tool to change global to local symbols on Mac OS X.
18279NMEDIT=$lt_NMEDIT
18280
18281# Tool to manipulate fat objects and archives on Mac OS X.
18282LIPO=$lt_LIPO
18283
18284# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18285OTOOL=$lt_OTOOL
18286
18287# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18288OTOOL64=$lt_OTOOL64
18289
18290# Old archive suffix (normally "a").
18291libext=$libext
18292
18293# Shared library suffix (normally ".so").
18294shrext_cmds=$lt_shrext_cmds
18295
18296# The commands to extract the exported symbol list from a shared archive.
18297extract_expsyms_cmds=$lt_extract_expsyms_cmds
18298
18299# Variables whose values should be saved in libtool wrapper scripts and
18300# restored at link time.
18301variables_saved_for_relink=$lt_variables_saved_for_relink
18302
18303# Do we need the "lib" prefix for modules?
18304need_lib_prefix=$need_lib_prefix
18305
18306# Do we need a version for libraries?
18307need_version=$need_version
18308
18309# Library versioning type.
18310version_type=$version_type
18311
18312# Shared library runtime path variable.
18313runpath_var=$runpath_var
18314
18315# Shared library path variable.
18316shlibpath_var=$shlibpath_var
18317
18318# Is shlibpath searched before the hard-coded library search path?
18319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18320
18321# Format of library name prefix.
18322libname_spec=$lt_libname_spec
18323
18324# List of archive names.  First name is the real one, the rest are links.
18325# The last name is the one that the linker finds with -lNAME
18326library_names_spec=$lt_library_names_spec
18327
18328# The coded name of the library, if different from the real name.
18329soname_spec=$lt_soname_spec
18330
18331# Permission mode override for installation of shared libraries.
18332install_override_mode=$lt_install_override_mode
18333
18334# Command to use after installation of a shared archive.
18335postinstall_cmds=$lt_postinstall_cmds
18336
18337# Command to use after uninstallation of a shared archive.
18338postuninstall_cmds=$lt_postuninstall_cmds
18339
18340# Commands used to finish a libtool library installation in a directory.
18341finish_cmds=$lt_finish_cmds
18342
18343# As "finish_cmds", except a single script fragment to be evaled but
18344# not shown.
18345finish_eval=$lt_finish_eval
18346
18347# Whether we should hardcode library paths into libraries.
18348hardcode_into_libs=$hardcode_into_libs
18349
18350# Compile-time system search path for libraries.
18351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18352
18353# Run-time system search path for libraries.
18354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18355
18356# Whether dlopen is supported.
18357dlopen_support=$enable_dlopen
18358
18359# Whether dlopen of programs is supported.
18360dlopen_self=$enable_dlopen_self
18361
18362# Whether dlopen of statically linked programs is supported.
18363dlopen_self_static=$enable_dlopen_self_static
18364
18365# Commands to strip libraries.
18366old_striplib=$lt_old_striplib
18367striplib=$lt_striplib
18368
18369
18370# The linker used to build libraries.
18371LD=$lt_LD
18372
18373# How to create reloadable object files.
18374reload_flag=$lt_reload_flag
18375reload_cmds=$lt_reload_cmds
18376
18377# Commands used to build an old-style archive.
18378old_archive_cmds=$lt_old_archive_cmds
18379
18380# A language specific compiler.
18381CC=$lt_compiler
18382
18383# Is the compiler the GNU compiler?
18384with_gcc=$GCC
18385
18386# Compiler flag to turn off builtin functions.
18387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18388
18389# How to pass a linker flag through the compiler.
18390wl=$lt_lt_prog_compiler_wl
18391
18392# Additional compiler flags for building library objects.
18393pic_flag=$lt_lt_prog_compiler_pic
18394
18395# Compiler flag to prevent dynamic linking.
18396link_static_flag=$lt_lt_prog_compiler_static
18397
18398# Does compiler simultaneously support -c and -o options?
18399compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18400
18401# Whether or not to add -lc for building shared libraries.
18402build_libtool_need_lc=$archive_cmds_need_lc
18403
18404# Whether or not to disallow shared libs when runtime libs are static.
18405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18406
18407# Compiler flag to allow reflexive dlopens.
18408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18409
18410# Compiler flag to generate shared objects directly from archives.
18411whole_archive_flag_spec=$lt_whole_archive_flag_spec
18412
18413# Whether the compiler copes with passing no objects directly.
18414compiler_needs_object=$lt_compiler_needs_object
18415
18416# Create an old-style archive from a shared archive.
18417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18418
18419# Create a temporary old-style archive to link instead of a shared archive.
18420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18421
18422# Commands used to build a shared archive.
18423archive_cmds=$lt_archive_cmds
18424archive_expsym_cmds=$lt_archive_expsym_cmds
18425
18426# Commands used to build a loadable module if different from building
18427# a shared archive.
18428module_cmds=$lt_module_cmds
18429module_expsym_cmds=$lt_module_expsym_cmds
18430
18431# Whether we are building with GNU ld or not.
18432with_gnu_ld=$lt_with_gnu_ld
18433
18434# Flag that allows shared libraries with undefined symbols to be built.
18435allow_undefined_flag=$lt_allow_undefined_flag
18436
18437# Flag that enforces no undefined symbols.
18438no_undefined_flag=$lt_no_undefined_flag
18439
18440# Flag to hardcode \$libdir into a binary during linking.
18441# This must work even if \$libdir does not exist
18442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18443
18444# If ld is used when linking, flag to hardcode \$libdir into a binary
18445# during linking.  This must work even if \$libdir does not exist.
18446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18447
18448# Whether we need a single "-rpath" flag with a separated argument.
18449hardcode_libdir_separator=$lt_hardcode_libdir_separator
18450
18451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18452# DIR into the resulting binary.
18453hardcode_direct=$hardcode_direct
18454
18455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18456# DIR into the resulting binary and the resulting library dependency is
18457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18458# library is relocated.
18459hardcode_direct_absolute=$hardcode_direct_absolute
18460
18461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18462# into the resulting binary.
18463hardcode_minus_L=$hardcode_minus_L
18464
18465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18466# into the resulting binary.
18467hardcode_shlibpath_var=$hardcode_shlibpath_var
18468
18469# Set to "yes" if building a shared library automatically hardcodes DIR
18470# into the library and all subsequent libraries and executables linked
18471# against it.
18472hardcode_automatic=$hardcode_automatic
18473
18474# Set to yes if linker adds runtime paths of dependent libraries
18475# to runtime path list.
18476inherit_rpath=$inherit_rpath
18477
18478# Whether libtool must link a program against all its dependency libraries.
18479link_all_deplibs=$link_all_deplibs
18480
18481# Fix the shell variable \$srcfile for the compiler.
18482fix_srcfile_path=$lt_fix_srcfile_path
18483
18484# Set to "yes" if exported symbols are required.
18485always_export_symbols=$always_export_symbols
18486
18487# The commands to list exported symbols.
18488export_symbols_cmds=$lt_export_symbols_cmds
18489
18490# Symbols that should not be listed in the preloaded symbols.
18491exclude_expsyms=$lt_exclude_expsyms
18492
18493# Symbols that must always be exported.
18494include_expsyms=$lt_include_expsyms
18495
18496# Commands necessary for linking programs (against libraries) with templates.
18497prelink_cmds=$lt_prelink_cmds
18498
18499# Specify filename containing input files.
18500file_list_spec=$lt_file_list_spec
18501
18502# How to hardcode a shared library path into an executable.
18503hardcode_action=$hardcode_action
18504
18505# The directories searched by this compiler when creating a shared library.
18506compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18507
18508# Dependencies to place before and after the objects being linked to
18509# create a shared library.
18510predep_objects=$lt_predep_objects
18511postdep_objects=$lt_postdep_objects
18512predeps=$lt_predeps
18513postdeps=$lt_postdeps
18514
18515# The library search path used internally by the compiler when linking
18516# a shared library.
18517compiler_lib_search_path=$lt_compiler_lib_search_path
18518
18519# ### END LIBTOOL CONFIG
18520
18521_LT_EOF
18522
18523  case $host_os in
18524  aix3*)
18525    cat <<\_LT_EOF >> "$cfgfile"
18526# AIX sometimes has problems with the GCC collect2 program.  For some
18527# reason, if we set the COLLECT_NAMES environment variable, the problems
18528# vanish in a puff of smoke.
18529if test "X${COLLECT_NAMES+set}" != Xset; then
18530  COLLECT_NAMES=
18531  export COLLECT_NAMES
18532fi
18533_LT_EOF
18534    ;;
18535  esac
18536
18537
18538ltmain="$ac_aux_dir/ltmain.sh"
18539
18540
18541  # We use sed instead of cat because bash on DJGPP gets confused if
18542  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18543  # text mode, it properly converts lines to CR/LF.  This bash problem
18544  # is reportedly fixed, but why not run on old versions too?
18545  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18546    || (rm -f "$cfgfile"; exit 1)
18547
18548  case $xsi_shell in
18549  yes)
18550    cat << \_LT_EOF >> "$cfgfile"
18551
18552# func_dirname file append nondir_replacement
18553# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18554# otherwise set result to NONDIR_REPLACEMENT.
18555func_dirname ()
18556{
18557  case ${1} in
18558    */*) func_dirname_result="${1%/*}${2}" ;;
18559    *  ) func_dirname_result="${3}" ;;
18560  esac
18561}
18562
18563# func_basename file
18564func_basename ()
18565{
18566  func_basename_result="${1##*/}"
18567}
18568
18569# func_dirname_and_basename file append nondir_replacement
18570# perform func_basename and func_dirname in a single function
18571# call:
18572#   dirname:  Compute the dirname of FILE.  If nonempty,
18573#             add APPEND to the result, otherwise set result
18574#             to NONDIR_REPLACEMENT.
18575#             value returned in "$func_dirname_result"
18576#   basename: Compute filename of FILE.
18577#             value retuned in "$func_basename_result"
18578# Implementation must be kept synchronized with func_dirname
18579# and func_basename. For efficiency, we do not delegate to
18580# those functions but instead duplicate the functionality here.
18581func_dirname_and_basename ()
18582{
18583  case ${1} in
18584    */*) func_dirname_result="${1%/*}${2}" ;;
18585    *  ) func_dirname_result="${3}" ;;
18586  esac
18587  func_basename_result="${1##*/}"
18588}
18589
18590# func_stripname prefix suffix name
18591# strip PREFIX and SUFFIX off of NAME.
18592# PREFIX and SUFFIX must not contain globbing or regex special
18593# characters, hashes, percent signs, but SUFFIX may contain a leading
18594# dot (in which case that matches only a dot).
18595func_stripname ()
18596{
18597  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18598  # positional parameters, so assign one to ordinary parameter first.
18599  func_stripname_result=${3}
18600  func_stripname_result=${func_stripname_result#"${1}"}
18601  func_stripname_result=${func_stripname_result%"${2}"}
18602}
18603
18604# func_opt_split
18605func_opt_split ()
18606{
18607  func_opt_split_opt=${1%%=*}
18608  func_opt_split_arg=${1#*=}
18609}
18610
18611# func_lo2o object
18612func_lo2o ()
18613{
18614  case ${1} in
18615    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18616    *)    func_lo2o_result=${1} ;;
18617  esac
18618}
18619
18620# func_xform libobj-or-source
18621func_xform ()
18622{
18623  func_xform_result=${1%.*}.lo
18624}
18625
18626# func_arith arithmetic-term...
18627func_arith ()
18628{
18629  func_arith_result=$(( $* ))
18630}
18631
18632# func_len string
18633# STRING may not start with a hyphen.
18634func_len ()
18635{
18636  func_len_result=${#1}
18637}
18638
18639_LT_EOF
18640    ;;
18641  *) # Bourne compatible functions.
18642    cat << \_LT_EOF >> "$cfgfile"
18643
18644# func_dirname file append nondir_replacement
18645# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18646# otherwise set result to NONDIR_REPLACEMENT.
18647func_dirname ()
18648{
18649  # Extract subdirectory from the argument.
18650  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18651  if test "X$func_dirname_result" = "X${1}"; then
18652    func_dirname_result="${3}"
18653  else
18654    func_dirname_result="$func_dirname_result${2}"
18655  fi
18656}
18657
18658# func_basename file
18659func_basename ()
18660{
18661  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18662}
18663
18664
18665# func_stripname prefix suffix name
18666# strip PREFIX and SUFFIX off of NAME.
18667# PREFIX and SUFFIX must not contain globbing or regex special
18668# characters, hashes, percent signs, but SUFFIX may contain a leading
18669# dot (in which case that matches only a dot).
18670# func_strip_suffix prefix name
18671func_stripname ()
18672{
18673  case ${2} in
18674    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18675    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18676  esac
18677}
18678
18679# sed scripts:
18680my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18681my_sed_long_arg='1s/^-[^=]*=//'
18682
18683# func_opt_split
18684func_opt_split ()
18685{
18686  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18687  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18688}
18689
18690# func_lo2o object
18691func_lo2o ()
18692{
18693  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18694}
18695
18696# func_xform libobj-or-source
18697func_xform ()
18698{
18699  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18700}
18701
18702# func_arith arithmetic-term...
18703func_arith ()
18704{
18705  func_arith_result=`expr "$@"`
18706}
18707
18708# func_len string
18709# STRING may not start with a hyphen.
18710func_len ()
18711{
18712  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18713}
18714
18715_LT_EOF
18716esac
18717
18718case $lt_shell_append in
18719  yes)
18720    cat << \_LT_EOF >> "$cfgfile"
18721
18722# func_append var value
18723# Append VALUE to the end of shell variable VAR.
18724func_append ()
18725{
18726  eval "$1+=\$2"
18727}
18728_LT_EOF
18729    ;;
18730  *)
18731    cat << \_LT_EOF >> "$cfgfile"
18732
18733# func_append var value
18734# Append VALUE to the end of shell variable VAR.
18735func_append ()
18736{
18737  eval "$1=\$$1\$2"
18738}
18739
18740_LT_EOF
18741    ;;
18742  esac
18743
18744
18745  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18746    || (rm -f "$cfgfile"; exit 1)
18747
18748  mv -f "$cfgfile" "$ofile" ||
18749    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18750  chmod +x "$ofile"
18751
18752
18753    cat <<_LT_EOF >> "$ofile"
18754
18755# ### BEGIN LIBTOOL TAG CONFIG: FC
18756
18757# The linker used to build libraries.
18758LD=$lt_LD_FC
18759
18760# How to create reloadable object files.
18761reload_flag=$lt_reload_flag_FC
18762reload_cmds=$lt_reload_cmds_FC
18763
18764# Commands used to build an old-style archive.
18765old_archive_cmds=$lt_old_archive_cmds_FC
18766
18767# A language specific compiler.
18768CC=$lt_compiler_FC
18769
18770# Is the compiler the GNU compiler?
18771with_gcc=$GCC_FC
18772
18773# Compiler flag to turn off builtin functions.
18774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18775
18776# How to pass a linker flag through the compiler.
18777wl=$lt_lt_prog_compiler_wl_FC
18778
18779# Additional compiler flags for building library objects.
18780pic_flag=$lt_lt_prog_compiler_pic_FC
18781
18782# Compiler flag to prevent dynamic linking.
18783link_static_flag=$lt_lt_prog_compiler_static_FC
18784
18785# Does compiler simultaneously support -c and -o options?
18786compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18787
18788# Whether or not to add -lc for building shared libraries.
18789build_libtool_need_lc=$archive_cmds_need_lc_FC
18790
18791# Whether or not to disallow shared libs when runtime libs are static.
18792allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18793
18794# Compiler flag to allow reflexive dlopens.
18795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18796
18797# Compiler flag to generate shared objects directly from archives.
18798whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18799
18800# Whether the compiler copes with passing no objects directly.
18801compiler_needs_object=$lt_compiler_needs_object_FC
18802
18803# Create an old-style archive from a shared archive.
18804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18805
18806# Create a temporary old-style archive to link instead of a shared archive.
18807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18808
18809# Commands used to build a shared archive.
18810archive_cmds=$lt_archive_cmds_FC
18811archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18812
18813# Commands used to build a loadable module if different from building
18814# a shared archive.
18815module_cmds=$lt_module_cmds_FC
18816module_expsym_cmds=$lt_module_expsym_cmds_FC
18817
18818# Whether we are building with GNU ld or not.
18819with_gnu_ld=$lt_with_gnu_ld_FC
18820
18821# Flag that allows shared libraries with undefined symbols to be built.
18822allow_undefined_flag=$lt_allow_undefined_flag_FC
18823
18824# Flag that enforces no undefined symbols.
18825no_undefined_flag=$lt_no_undefined_flag_FC
18826
18827# Flag to hardcode \$libdir into a binary during linking.
18828# This must work even if \$libdir does not exist
18829hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18830
18831# If ld is used when linking, flag to hardcode \$libdir into a binary
18832# during linking.  This must work even if \$libdir does not exist.
18833hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18834
18835# Whether we need a single "-rpath" flag with a separated argument.
18836hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18837
18838# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18839# DIR into the resulting binary.
18840hardcode_direct=$hardcode_direct_FC
18841
18842# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18843# DIR into the resulting binary and the resulting library dependency is
18844# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18845# library is relocated.
18846hardcode_direct_absolute=$hardcode_direct_absolute_FC
18847
18848# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18849# into the resulting binary.
18850hardcode_minus_L=$hardcode_minus_L_FC
18851
18852# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18853# into the resulting binary.
18854hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18855
18856# Set to "yes" if building a shared library automatically hardcodes DIR
18857# into the library and all subsequent libraries and executables linked
18858# against it.
18859hardcode_automatic=$hardcode_automatic_FC
18860
18861# Set to yes if linker adds runtime paths of dependent libraries
18862# to runtime path list.
18863inherit_rpath=$inherit_rpath_FC
18864
18865# Whether libtool must link a program against all its dependency libraries.
18866link_all_deplibs=$link_all_deplibs_FC
18867
18868# Fix the shell variable \$srcfile for the compiler.
18869fix_srcfile_path=$lt_fix_srcfile_path_FC
18870
18871# Set to "yes" if exported symbols are required.
18872always_export_symbols=$always_export_symbols_FC
18873
18874# The commands to list exported symbols.
18875export_symbols_cmds=$lt_export_symbols_cmds_FC
18876
18877# Symbols that should not be listed in the preloaded symbols.
18878exclude_expsyms=$lt_exclude_expsyms_FC
18879
18880# Symbols that must always be exported.
18881include_expsyms=$lt_include_expsyms_FC
18882
18883# Commands necessary for linking programs (against libraries) with templates.
18884prelink_cmds=$lt_prelink_cmds_FC
18885
18886# Specify filename containing input files.
18887file_list_spec=$lt_file_list_spec_FC
18888
18889# How to hardcode a shared library path into an executable.
18890hardcode_action=$hardcode_action_FC
18891
18892# The directories searched by this compiler when creating a shared library.
18893compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18894
18895# Dependencies to place before and after the objects being linked to
18896# create a shared library.
18897predep_objects=$lt_predep_objects_FC
18898postdep_objects=$lt_postdep_objects_FC
18899predeps=$lt_predeps_FC
18900postdeps=$lt_postdeps_FC
18901
18902# The library search path used internally by the compiler when linking
18903# a shared library.
18904compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18905
18906# ### END LIBTOOL TAG CONFIG: FC
18907_LT_EOF
18908
18909 ;;
18910    "gstdint.h":C)
18911if test "$GCC" = yes; then
18912  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18913else
18914  echo "/* generated for $CC */" > tmp-stdint.h
18915fi
18916
18917sed 's/^ *//' >> tmp-stdint.h <<EOF
18918
18919  #ifndef GCC_GENERATED_STDINT_H
18920  #define GCC_GENERATED_STDINT_H 1
18921
18922  #include <sys/types.h>
18923EOF
18924
18925if test "$acx_cv_header_stdint" != stdint.h; then
18926  echo "#include <stddef.h>" >> tmp-stdint.h
18927fi
18928if test "$acx_cv_header_stdint" != stddef.h; then
18929  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18930fi
18931
18932sed 's/^ *//' >> tmp-stdint.h <<EOF
18933  /* glibc uses these symbols as guards to prevent redefinitions.  */
18934  #ifdef __int8_t_defined
18935  #define _INT8_T
18936  #define _INT16_T
18937  #define _INT32_T
18938  #endif
18939  #ifdef __uint32_t_defined
18940  #define _UINT32_T
18941  #endif
18942
18943EOF
18944
18945# ----------------- done header, emit basic int types -------------
18946if test "$acx_cv_header_stdint" = stddef.h; then
18947  sed 's/^ *//' >> tmp-stdint.h <<EOF
18948
18949    #ifndef _UINT8_T
18950    #define _UINT8_T
18951    #ifndef __uint8_t_defined
18952    #define __uint8_t_defined
18953    #ifndef uint8_t
18954    typedef unsigned $acx_cv_type_int8_t uint8_t;
18955    #endif
18956    #endif
18957    #endif
18958
18959    #ifndef _UINT16_T
18960    #define _UINT16_T
18961    #ifndef __uint16_t_defined
18962    #define __uint16_t_defined
18963    #ifndef uint16_t
18964    typedef unsigned $acx_cv_type_int16_t uint16_t;
18965    #endif
18966    #endif
18967    #endif
18968
18969    #ifndef _UINT32_T
18970    #define _UINT32_T
18971    #ifndef __uint32_t_defined
18972    #define __uint32_t_defined
18973    #ifndef uint32_t
18974    typedef unsigned $acx_cv_type_int32_t uint32_t;
18975    #endif
18976    #endif
18977    #endif
18978
18979    #ifndef _INT8_T
18980    #define _INT8_T
18981    #ifndef __int8_t_defined
18982    #define __int8_t_defined
18983    #ifndef int8_t
18984    typedef $acx_cv_type_int8_t int8_t;
18985    #endif
18986    #endif
18987    #endif
18988
18989    #ifndef _INT16_T
18990    #define _INT16_T
18991    #ifndef __int16_t_defined
18992    #define __int16_t_defined
18993    #ifndef int16_t
18994    typedef $acx_cv_type_int16_t int16_t;
18995    #endif
18996    #endif
18997    #endif
18998
18999    #ifndef _INT32_T
19000    #define _INT32_T
19001    #ifndef __int32_t_defined
19002    #define __int32_t_defined
19003    #ifndef int32_t
19004    typedef $acx_cv_type_int32_t int32_t;
19005    #endif
19006    #endif
19007    #endif
19008EOF
19009elif test "$ac_cv_type_u_int32_t" = yes; then
19010  sed 's/^ *//' >> tmp-stdint.h <<EOF
19011
19012    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19013    #ifndef _INT8_T
19014    #define _INT8_T
19015    #endif
19016    #ifndef _INT16_T
19017    #define _INT16_T
19018    #endif
19019    #ifndef _INT32_T
19020    #define _INT32_T
19021    #endif
19022
19023    #ifndef _UINT8_T
19024    #define _UINT8_T
19025    #ifndef __uint8_t_defined
19026    #define __uint8_t_defined
19027    #ifndef uint8_t
19028    typedef u_int8_t uint8_t;
19029    #endif
19030    #endif
19031    #endif
19032
19033    #ifndef _UINT16_T
19034    #define _UINT16_T
19035    #ifndef __uint16_t_defined
19036    #define __uint16_t_defined
19037    #ifndef uint16_t
19038    typedef u_int16_t uint16_t;
19039    #endif
19040    #endif
19041    #endif
19042
19043    #ifndef _UINT32_T
19044    #define _UINT32_T
19045    #ifndef __uint32_t_defined
19046    #define __uint32_t_defined
19047    #ifndef uint32_t
19048    typedef u_int32_t uint32_t;
19049    #endif
19050    #endif
19051    #endif
19052EOF
19053else
19054  sed 's/^ *//' >> tmp-stdint.h <<EOF
19055
19056    /* Some systems have guard macros to prevent redefinitions, define them.  */
19057    #ifndef _INT8_T
19058    #define _INT8_T
19059    #endif
19060    #ifndef _INT16_T
19061    #define _INT16_T
19062    #endif
19063    #ifndef _INT32_T
19064    #define _INT32_T
19065    #endif
19066    #ifndef _UINT8_T
19067    #define _UINT8_T
19068    #endif
19069    #ifndef _UINT16_T
19070    #define _UINT16_T
19071    #endif
19072    #ifndef _UINT32_T
19073    #define _UINT32_T
19074    #endif
19075EOF
19076fi
19077
19078# ------------- done basic int types, emit int64_t types ------------
19079if test "$ac_cv_type_uint64_t" = yes; then
19080  sed 's/^ *//' >> tmp-stdint.h <<EOF
19081
19082    /* system headers have good uint64_t and int64_t */
19083    #ifndef _INT64_T
19084    #define _INT64_T
19085    #endif
19086    #ifndef _UINT64_T
19087    #define _UINT64_T
19088    #endif
19089EOF
19090elif test "$ac_cv_type_u_int64_t" = yes; then
19091  sed 's/^ *//' >> tmp-stdint.h <<EOF
19092
19093    /* system headers have an u_int64_t (and int64_t) */
19094    #ifndef _INT64_T
19095    #define _INT64_T
19096    #endif
19097    #ifndef _UINT64_T
19098    #define _UINT64_T
19099    #ifndef __uint64_t_defined
19100    #define __uint64_t_defined
19101    #ifndef uint64_t
19102    typedef u_int64_t uint64_t;
19103    #endif
19104    #endif
19105    #endif
19106EOF
19107elif test -n "$acx_cv_type_int64_t"; then
19108  sed 's/^ *//' >> tmp-stdint.h <<EOF
19109
19110    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19111    #ifndef _INT64_T
19112    #define _INT64_T
19113    #ifndef int64_t
19114    typedef $acx_cv_type_int64_t int64_t;
19115    #endif
19116    #endif
19117    #ifndef _UINT64_T
19118    #define _UINT64_T
19119    #ifndef __uint64_t_defined
19120    #define __uint64_t_defined
19121    #ifndef uint64_t
19122    typedef unsigned $acx_cv_type_int64_t uint64_t;
19123    #endif
19124    #endif
19125    #endif
19126EOF
19127else
19128  sed 's/^ *//' >> tmp-stdint.h <<EOF
19129
19130    /* some common heuristics for int64_t, using compiler-specific tests */
19131    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19132    #ifndef _INT64_T
19133    #define _INT64_T
19134    #ifndef __int64_t_defined
19135    #ifndef int64_t
19136    typedef long long int64_t;
19137    #endif
19138    #endif
19139    #endif
19140    #ifndef _UINT64_T
19141    #define _UINT64_T
19142    #ifndef uint64_t
19143    typedef unsigned long long uint64_t;
19144    #endif
19145    #endif
19146
19147    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19148    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19149       does not implement __extension__.  But that compiler doesn't define
19150       __GNUC_MINOR__.  */
19151    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19152    # define __extension__
19153    # endif
19154
19155    # ifndef _INT64_T
19156    # define _INT64_T
19157    # ifndef int64_t
19158    __extension__ typedef long long int64_t;
19159    # endif
19160    # endif
19161    # ifndef _UINT64_T
19162    # define _UINT64_T
19163    # ifndef uint64_t
19164    __extension__ typedef unsigned long long uint64_t;
19165    # endif
19166    # endif
19167
19168    #elif !defined __STRICT_ANSI__
19169    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19170
19171    #  ifndef _INT64_T
19172    #  define _INT64_T
19173    #  ifndef int64_t
19174    typedef __int64 int64_t;
19175    #  endif
19176    #  endif
19177    #  ifndef _UINT64_T
19178    #  define _UINT64_T
19179    #  ifndef uint64_t
19180    typedef unsigned __int64 uint64_t;
19181    #  endif
19182    #  endif
19183    # endif /* compiler */
19184
19185    #endif /* ANSI version */
19186EOF
19187fi
19188
19189# ------------- done int64_t types, emit intptr types ------------
19190if test "$ac_cv_type_uintptr_t" != yes; then
19191  sed 's/^ *//' >> tmp-stdint.h <<EOF
19192
19193    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19194    #ifndef __uintptr_t_defined
19195    #ifndef uintptr_t
19196    typedef u$acx_cv_type_intptr_t uintptr_t;
19197    #endif
19198    #endif
19199    #ifndef __intptr_t_defined
19200    #ifndef intptr_t
19201    typedef $acx_cv_type_intptr_t  intptr_t;
19202    #endif
19203    #endif
19204EOF
19205fi
19206
19207# ------------- done intptr types, emit int_least types ------------
19208if test "$ac_cv_type_int_least32_t" != yes; then
19209  sed 's/^ *//' >> tmp-stdint.h <<EOF
19210
19211    /* Define int_least types */
19212    typedef int8_t     int_least8_t;
19213    typedef int16_t    int_least16_t;
19214    typedef int32_t    int_least32_t;
19215    #ifdef _INT64_T
19216    typedef int64_t    int_least64_t;
19217    #endif
19218
19219    typedef uint8_t    uint_least8_t;
19220    typedef uint16_t   uint_least16_t;
19221    typedef uint32_t   uint_least32_t;
19222    #ifdef _UINT64_T
19223    typedef uint64_t   uint_least64_t;
19224    #endif
19225EOF
19226fi
19227
19228# ------------- done intptr types, emit int_fast types ------------
19229if test "$ac_cv_type_int_fast32_t" != yes; then
19230      sed 's/^ *//' >> tmp-stdint.h <<EOF
19231
19232    /* Define int_fast types.  short is often slow */
19233    typedef int8_t       int_fast8_t;
19234    typedef int          int_fast16_t;
19235    typedef int32_t      int_fast32_t;
19236    #ifdef _INT64_T
19237    typedef int64_t      int_fast64_t;
19238    #endif
19239
19240    typedef uint8_t      uint_fast8_t;
19241    typedef unsigned int uint_fast16_t;
19242    typedef uint32_t     uint_fast32_t;
19243    #ifdef _UINT64_T
19244    typedef uint64_t     uint_fast64_t;
19245    #endif
19246EOF
19247fi
19248
19249if test "$ac_cv_type_uintmax_t" != yes; then
19250  sed 's/^ *//' >> tmp-stdint.h <<EOF
19251
19252    /* Define intmax based on what we found */
19253    #ifndef intmax_t
19254    #ifdef _INT64_T
19255    typedef int64_t       intmax_t;
19256    #else
19257    typedef long          intmax_t;
19258    #endif
19259    #endif
19260    #ifndef uintmax_t
19261    #ifdef _UINT64_T
19262    typedef uint64_t      uintmax_t;
19263    #else
19264    typedef unsigned long uintmax_t;
19265    #endif
19266    #endif
19267EOF
19268fi
19269
19270sed 's/^ *//' >> tmp-stdint.h <<EOF
19271
19272  #endif /* GCC_GENERATED_STDINT_H */
19273EOF
19274
19275if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19276  rm -f tmp-stdint.h
19277else
19278  mv -f tmp-stdint.h gstdint.h
19279fi
19280
19281 ;;
19282
19283  esac
19284done # for ac_tag
19285
19286
19287as_fn_exit 0
19288_ACEOF
19289ac_clean_files=$ac_clean_files_save
19290
19291test $ac_write_fail = 0 ||
19292  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19293
19294
19295# configure is writing to config.log, and then calls config.status.
19296# config.status does its own redirection, appending to config.log.
19297# Unfortunately, on DOS this fails, as config.log is still kept open
19298# by configure, so config.status won't be able to write to it; its
19299# output is simply discarded.  So we exec the FD to /dev/null,
19300# effectively closing config.log, so it can be properly (re)opened and
19301# appended to by config.status.  When coming back to configure, we
19302# need to make the FD available again.
19303if test "$no_create" != yes; then
19304  ac_cs_success=:
19305  ac_config_status_args=
19306  test "$silent" = yes &&
19307    ac_config_status_args="$ac_config_status_args --quiet"
19308  exec 5>/dev/null
19309  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19310  exec 5>>config.log
19311  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19312  # would make configure fail if this is the last instruction.
19313  $ac_cs_success || as_fn_exit $?
19314fi
19315if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19316  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19317$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19318fi
19319
19320