1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing 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 Offloading and Multi Processing Runtime Library'
558PACKAGE_TARNAME='libgomp'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU Offloading and Multi Processing 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
630PLUGIN_HSA_FALSE
631PLUGIN_HSA_TRUE
632PLUGIN_NVPTX_FALSE
633PLUGIN_NVPTX_TRUE
634offload_additional_lib_paths
635offload_additional_options
636PLUGIN_HSA_LIBS
637PLUGIN_HSA_LDFLAGS
638PLUGIN_HSA_CPPFLAGS
639PLUGIN_HSA
640HSA_KMT_LIB
641HSA_RUNTIME_LIB
642HSA_RUNTIME_INCLUDE
643PLUGIN_NVPTX_LIBS
644PLUGIN_NVPTX_LDFLAGS
645PLUGIN_NVPTX_CPPFLAGS
646PLUGIN_NVPTX
647CUDA_DRIVER_LIB
648CUDA_DRIVER_INCLUDE
649offload_targets
650libtool_VERSION
651ac_ct_FC
652FCFLAGS
653FC
654MAINT
655MAINTAINER_MODE_FALSE
656MAINTAINER_MODE_TRUE
657enable_static
658enable_shared
659lt_host_flags
660CPP
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673EGREP
674GREP
675SED
676LIBTOOL
677BUILD_INFO_FALSE
678BUILD_INFO_TRUE
679PERL
680RANLIB
681AR
682am__fastdepCC_FALSE
683am__fastdepCC_TRUE
684CCDEPMODE
685am__nodep
686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691DEPDIR
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699toolexeclibdir
700toolexecdir
701multi_basedir
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733build_os
734build_vendor
735build_cpu
736build
737GENINSRC_FALSE
738GENINSRC_TRUE
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780enable_version_specific_runtime_libs
781enable_generated_files_in_srcdir
782enable_multilib
783enable_dependency_tracking
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_gnu_ld
789enable_libtool_lock
790enable_maintainer_mode
791with_cuda_driver
792with_cuda_driver_include
793with_cuda_driver_lib
794with_hsa_runtime
795with_hsa_runtime_include
796with_hsa_runtime_lib
797with_hsa_kmt_lib
798enable_linux_futex
799enable_tls
800enable_symvers
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CPP
806CPPFLAGS
807FC
808FCFLAGS
809LDFLAGS
810LIBS'
811
812
813# Initialize some variables set by options.
814ac_init_help=
815ac_init_version=false
816ac_unrecognized_opts=
817ac_unrecognized_sep=
818# The variables have the same names as the options, with
819# dashes changed to underlines.
820cache_file=/dev/null
821exec_prefix=NONE
822no_create=
823no_recursion=
824prefix=NONE
825program_prefix=NONE
826program_suffix=NONE
827program_transform_name=s,x,x,
828silent=
829site=
830srcdir=
831verbose=
832x_includes=NONE
833x_libraries=NONE
834
835# Installation directory options.
836# These are left unexpanded so users can "make install exec_prefix=/foo"
837# and all the variables that are supposed to be based on exec_prefix
838# by default will actually change.
839# Use braces instead of parens because sh, perl, etc. also accept them.
840# (The list follows the same order as the GNU Coding Standards.)
841bindir='${exec_prefix}/bin'
842sbindir='${exec_prefix}/sbin'
843libexecdir='${exec_prefix}/libexec'
844datarootdir='${prefix}/share'
845datadir='${datarootdir}'
846sysconfdir='${prefix}/etc'
847sharedstatedir='${prefix}/com'
848localstatedir='${prefix}/var'
849includedir='${prefix}/include'
850oldincludedir='/usr/include'
851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852infodir='${datarootdir}/info'
853htmldir='${docdir}'
854dvidir='${docdir}'
855pdfdir='${docdir}'
856psdir='${docdir}'
857libdir='${exec_prefix}/lib'
858localedir='${datarootdir}/locale'
859mandir='${datarootdir}/man'
860
861ac_prev=
862ac_dashdash=
863for ac_option
864do
865  # If the previous option needs an argument, assign it.
866  if test -n "$ac_prev"; then
867    eval $ac_prev=\$ac_option
868    ac_prev=
869    continue
870  fi
871
872  case $ac_option in
873  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874  *)	ac_optarg=yes ;;
875  esac
876
877  # Accept the important Cygnus configure options, so we can diagnose typos.
878
879  case $ac_dashdash$ac_option in
880  --)
881    ac_dashdash=yes ;;
882
883  -bindir | --bindir | --bindi | --bind | --bin | --bi)
884    ac_prev=bindir ;;
885  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886    bindir=$ac_optarg ;;
887
888  -build | --build | --buil | --bui | --bu)
889    ac_prev=build_alias ;;
890  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891    build_alias=$ac_optarg ;;
892
893  -cache-file | --cache-file | --cache-fil | --cache-fi \
894  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895    ac_prev=cache_file ;;
896  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898    cache_file=$ac_optarg ;;
899
900  --config-cache | -C)
901    cache_file=config.cache ;;
902
903  -datadir | --datadir | --datadi | --datad)
904    ac_prev=datadir ;;
905  -datadir=* | --datadir=* | --datadi=* | --datad=*)
906    datadir=$ac_optarg ;;
907
908  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909  | --dataroo | --dataro | --datar)
910    ac_prev=datarootdir ;;
911  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913    datarootdir=$ac_optarg ;;
914
915  -disable-* | --disable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=no ;;
930
931  -docdir | --docdir | --docdi | --doc | --do)
932    ac_prev=docdir ;;
933  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934    docdir=$ac_optarg ;;
935
936  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937    ac_prev=dvidir ;;
938  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939    dvidir=$ac_optarg ;;
940
941  -enable-* | --enable-*)
942    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943    # Reject names that are not valid shell variable names.
944    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945      as_fn_error "invalid feature name: $ac_useropt"
946    ac_useropt_orig=$ac_useropt
947    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948    case $ac_user_opts in
949      *"
950"enable_$ac_useropt"
951"*) ;;
952      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953	 ac_unrecognized_sep=', ';;
954    esac
955    eval enable_$ac_useropt=\$ac_optarg ;;
956
957  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959  | --exec | --exe | --ex)
960    ac_prev=exec_prefix ;;
961  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963  | --exec=* | --exe=* | --ex=*)
964    exec_prefix=$ac_optarg ;;
965
966  -gas | --gas | --ga | --g)
967    # Obsolete; use --with-gas.
968    with_gas=yes ;;
969
970  -help | --help | --hel | --he | -h)
971    ac_init_help=long ;;
972  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973    ac_init_help=recursive ;;
974  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975    ac_init_help=short ;;
976
977  -host | --host | --hos | --ho)
978    ac_prev=host_alias ;;
979  -host=* | --host=* | --hos=* | --ho=*)
980    host_alias=$ac_optarg ;;
981
982  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983    ac_prev=htmldir ;;
984  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985  | --ht=*)
986    htmldir=$ac_optarg ;;
987
988  -includedir | --includedir | --includedi | --included | --include \
989  | --includ | --inclu | --incl | --inc)
990    ac_prev=includedir ;;
991  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992  | --includ=* | --inclu=* | --incl=* | --inc=*)
993    includedir=$ac_optarg ;;
994
995  -infodir | --infodir | --infodi | --infod | --info | --inf)
996    ac_prev=infodir ;;
997  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998    infodir=$ac_optarg ;;
999
1000  -libdir | --libdir | --libdi | --libd)
1001    ac_prev=libdir ;;
1002  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003    libdir=$ac_optarg ;;
1004
1005  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006  | --libexe | --libex | --libe)
1007    ac_prev=libexecdir ;;
1008  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009  | --libexe=* | --libex=* | --libe=*)
1010    libexecdir=$ac_optarg ;;
1011
1012  -localedir | --localedir | --localedi | --localed | --locale)
1013    ac_prev=localedir ;;
1014  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015    localedir=$ac_optarg ;;
1016
1017  -localstatedir | --localstatedir | --localstatedi | --localstated \
1018  | --localstate | --localstat | --localsta | --localst | --locals)
1019    ac_prev=localstatedir ;;
1020  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022    localstatedir=$ac_optarg ;;
1023
1024  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025    ac_prev=mandir ;;
1026  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027    mandir=$ac_optarg ;;
1028
1029  -nfp | --nfp | --nf)
1030    # Obsolete; use --without-fp.
1031    with_fp=no ;;
1032
1033  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034  | --no-cr | --no-c | -n)
1035    no_create=yes ;;
1036
1037  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039    no_recursion=yes ;;
1040
1041  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043  | --oldin | --oldi | --old | --ol | --o)
1044    ac_prev=oldincludedir ;;
1045  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048    oldincludedir=$ac_optarg ;;
1049
1050  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051    ac_prev=prefix ;;
1052  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053    prefix=$ac_optarg ;;
1054
1055  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056  | --program-pre | --program-pr | --program-p)
1057    ac_prev=program_prefix ;;
1058  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060    program_prefix=$ac_optarg ;;
1061
1062  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063  | --program-suf | --program-su | --program-s)
1064    ac_prev=program_suffix ;;
1065  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067    program_suffix=$ac_optarg ;;
1068
1069  -program-transform-name | --program-transform-name \
1070  | --program-transform-nam | --program-transform-na \
1071  | --program-transform-n | --program-transform- \
1072  | --program-transform | --program-transfor \
1073  | --program-transfo | --program-transf \
1074  | --program-trans | --program-tran \
1075  | --progr-tra | --program-tr | --program-t)
1076    ac_prev=program_transform_name ;;
1077  -program-transform-name=* | --program-transform-name=* \
1078  | --program-transform-nam=* | --program-transform-na=* \
1079  | --program-transform-n=* | --program-transform-=* \
1080  | --program-transform=* | --program-transfor=* \
1081  | --program-transfo=* | --program-transf=* \
1082  | --program-trans=* | --program-tran=* \
1083  | --progr-tra=* | --program-tr=* | --program-t=*)
1084    program_transform_name=$ac_optarg ;;
1085
1086  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087    ac_prev=pdfdir ;;
1088  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089    pdfdir=$ac_optarg ;;
1090
1091  -psdir | --psdir | --psdi | --psd | --ps)
1092    ac_prev=psdir ;;
1093  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094    psdir=$ac_optarg ;;
1095
1096  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097  | -silent | --silent | --silen | --sile | --sil)
1098    silent=yes ;;
1099
1100  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101    ac_prev=sbindir ;;
1102  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103  | --sbi=* | --sb=*)
1104    sbindir=$ac_optarg ;;
1105
1106  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108  | --sharedst | --shareds | --shared | --share | --shar \
1109  | --sha | --sh)
1110    ac_prev=sharedstatedir ;;
1111  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114  | --sha=* | --sh=*)
1115    sharedstatedir=$ac_optarg ;;
1116
1117  -site | --site | --sit)
1118    ac_prev=site ;;
1119  -site=* | --site=* | --sit=*)
1120    site=$ac_optarg ;;
1121
1122  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123    ac_prev=srcdir ;;
1124  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125    srcdir=$ac_optarg ;;
1126
1127  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128  | --syscon | --sysco | --sysc | --sys | --sy)
1129    ac_prev=sysconfdir ;;
1130  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132    sysconfdir=$ac_optarg ;;
1133
1134  -target | --target | --targe | --targ | --tar | --ta | --t)
1135    ac_prev=target_alias ;;
1136  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137    target_alias=$ac_optarg ;;
1138
1139  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140    verbose=yes ;;
1141
1142  -version | --version | --versio | --versi | --vers | -V)
1143    ac_init_version=: ;;
1144
1145  -with-* | --with-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error "invalid package name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"with_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval with_$ac_useropt=\$ac_optarg ;;
1160
1161  -without-* | --without-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=no ;;
1176
1177  --x)
1178    # Obsolete; use --with-x.
1179    with_x=yes ;;
1180
1181  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182  | --x-incl | --x-inc | --x-in | --x-i)
1183    ac_prev=x_includes ;;
1184  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186    x_includes=$ac_optarg ;;
1187
1188  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190    ac_prev=x_libraries ;;
1191  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193    x_libraries=$ac_optarg ;;
1194
1195  -*) as_fn_error "unrecognized option: \`$ac_option'
1196Try \`$0 --help' for more information."
1197    ;;
1198
1199  *=*)
1200    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201    # Reject names that are not valid shell variable names.
1202    case $ac_envvar in #(
1203      '' | [0-9]* | *[!_$as_cr_alnum]* )
1204      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1205    esac
1206    eval $ac_envvar=\$ac_optarg
1207    export $ac_envvar ;;
1208
1209  *)
1210    # FIXME: should be removed in autoconf 3.0.
1211    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1215    ;;
1216
1217  esac
1218done
1219
1220if test -n "$ac_prev"; then
1221  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222  as_fn_error "missing argument to $ac_option"
1223fi
1224
1225if test -n "$ac_unrecognized_opts"; then
1226  case $enable_option_checking in
1227    no) ;;
1228    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1229    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230  esac
1231fi
1232
1233# Check all directory arguments for consistency.
1234for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235		datadir sysconfdir sharedstatedir localstatedir includedir \
1236		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237		libdir localedir mandir
1238do
1239  eval ac_val=\$$ac_var
1240  # Remove trailing slashes.
1241  case $ac_val in
1242    */ )
1243      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244      eval $ac_var=\$ac_val;;
1245  esac
1246  # Be sure to have absolute directory names.
1247  case $ac_val in
1248    [\\/$]* | ?:[\\/]* )  continue;;
1249    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250  esac
1251  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252done
1253
1254# There might be people who depend on the old broken behavior: `$host'
1255# used to hold the argument of --host etc.
1256# FIXME: To remove some day.
1257build=$build_alias
1258host=$host_alias
1259target=$target_alias
1260
1261# FIXME: To remove some day.
1262if test "x$host_alias" != x; then
1263  if test "x$build_alias" = x; then
1264    cross_compiling=maybe
1265    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266    If a cross compiler is detected then cross compile mode will be used." >&2
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417  --target=TARGET   configure for building compilers for TARGET [HOST]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-version-specific-runtime-libs
1432                          Specify that runtime libraries should be installed
1433                          in a compiler-specific directory [default=no]
1434  --enable-generated-files-in-srcdir
1435                          put copies of generated files in source dir intended
1436                          for creating source tarballs for users without
1437                          texinfo bison or flex. [default=no]
1438  --enable-multilib       build many library versions (default)
1439  --disable-dependency-tracking  speeds up one-time build
1440  --enable-dependency-tracking   do not reject slow dependency extractors
1441  --enable-shared[=PKGS]  build shared libraries [default=yes]
1442  --enable-static[=PKGS]  build static libraries [default=yes]
1443  --enable-fast-install[=PKGS]
1444                          optimize for fast installation [default=yes]
1445  --disable-libtool-lock  avoid locking (might break parallel builds)
1446  --enable-maintainer-mode  enable make rules and dependencies not useful
1447			  (and sometimes confusing) to the casual installer
1448  --enable-linux-futex    use the Linux futex system call [default=default]
1449  --enable-tls            Use thread-local storage [default=yes]
1450  --enable-symvers=STYLE  enables symbol versioning of the shared library
1451                          [default=yes]
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic              try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1460                          package. Equivalent to
1461                          --with-cuda-driver-include=PATH/include plus
1462                          --with-cuda-driver-lib=PATH/lib
1463  --with-cuda-driver-include=PATH
1464                          specify directory for installed CUDA driver include
1465                          files
1466  --with-cuda-driver-lib=PATH
1467                          specify directory for the installed CUDA driver
1468                          library
1469  --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1470                          package. Equivalent to
1471                          --with-hsa-runtime-include=PATH/include plus
1472                          --with-hsa-runtime-lib=PATH/lib
1473  --with-hsa-runtime-include=PATH
1474                          specify directory for installed HSA run-time include
1475                          files
1476  --with-hsa-runtime-lib=PATH
1477                          specify directory for the installed HSA run-time
1478                          library
1479  --with-hsa-kmt-lib=PATH specify directory for installed HSA KMT library.
1480
1481Some influential environment variables:
1482  CC          C compiler command
1483  CFLAGS      C compiler flags
1484  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485              nonstandard directory <lib dir>
1486  LIBS        libraries to pass to the linker, e.g. -l<library>
1487  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488              you have headers in a nonstandard directory <include dir>
1489  CPP         C preprocessor
1490  FC          Fortran compiler command
1491  FCFLAGS     Fortran compiler flags
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to the package provider.
1497GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1498General help using GNU software: <http://www.gnu.org/gethelp/>.
1499_ACEOF
1500ac_status=$?
1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504  # If there are subdirs, report their specific --help.
1505  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506    test -d "$ac_dir" ||
1507      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508      continue
1509    ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515  # A ".." for each directory in $ac_dir_suffix.
1516  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517  case $ac_top_builddir_sub in
1518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520  esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528  .)  # We are building in place.
1529    ac_srcdir=.
1530    ac_top_srcdir=$ac_top_builddir_sub
1531    ac_abs_top_srcdir=$ac_pwd ;;
1532  [\\/]* | ?:[\\/]* )  # Absolute name.
1533    ac_srcdir=$srcdir$ac_dir_suffix;
1534    ac_top_srcdir=$srcdir
1535    ac_abs_top_srcdir=$srcdir ;;
1536  *) # Relative name.
1537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543    cd "$ac_dir" || { ac_status=$?; continue; }
1544    # Check for guested configure.
1545    if test -f "$ac_srcdir/configure.gnu"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548    elif test -f "$ac_srcdir/configure"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure" --help=recursive
1551    else
1552      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553    fi || ac_status=$?
1554    cd "$ac_pwd" || { ac_status=$?; break; }
1555  done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560  cat <<\_ACEOF
1561GNU Offloading and Multi Processing Runtime Library configure 1.0
1562generated by GNU Autoconf 2.64
1563
1564Copyright (C) 2009 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568  exit
1569fi
1570
1571## ------------------------ ##
1572## Autoconf initialization. ##
1573## ------------------------ ##
1574
1575# ac_fn_c_try_compile LINENO
1576# --------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_compile ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  rm -f conftest.$ac_objext
1582  if { { ac_try="$ac_compile"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_compile") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } && {
1598	 test -z "$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       } && test -s conftest.$ac_objext; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609  return $ac_retval
1610
1611} # ac_fn_c_try_compile
1612
1613# ac_fn_c_try_link LINENO
1614# -----------------------
1615# Try to link conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_link ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext conftest$ac_exeext
1620  if { { ac_try="$ac_link"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_link") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest$ac_exeext && {
1639	 test "$cross_compiling" = yes ||
1640	 $as_test_x conftest$ac_exeext
1641       }; then :
1642  ac_retval=0
1643else
1644  $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647	ac_retval=1
1648fi
1649  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651  # interfere with the next link command; also delete a directory that is
1652  # left behind by Apple's compiler.  We do this before executing the actions.
1653  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655  return $ac_retval
1656
1657} # ac_fn_c_try_link
1658
1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660# -------------------------------------------------------
1661# Tests whether HEADER exists and can be compiled using the include files in
1662# INCLUDES, setting the cache variable VAR accordingly.
1663ac_fn_c_check_header_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669  $as_echo_n "(cached) " >&6
1670else
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"; then :
1677  eval "$3=yes"
1678else
1679  eval "$3=no"
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682fi
1683eval ac_res=\$$3
1684	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685$as_echo "$ac_res" >&6; }
1686  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687
1688} # ac_fn_c_check_header_compile
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } >/dev/null && {
1712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720    ac_retval=1
1721fi
1722  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723  return $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_try_run LINENO
1728# ----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730# that executables *can* be run.
1731ac_fn_c_try_run ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_link") 2>&5
1742  ac_status=$?
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745  { { case "(($ac_try" in
1746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747  *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751  (eval "$ac_try") 2>&5
1752  ac_status=$?
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; }; }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: program exited with status $ac_status" >&5
1758       $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761       ac_retval=$ac_status
1762fi
1763  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765  return $ac_retval
1766
1767} # ac_fn_c_try_run
1768
1769# ac_fn_c_check_func LINENO FUNC VAR
1770# ----------------------------------
1771# Tests whether FUNC exists, setting the cache variable VAR accordingly
1772ac_fn_c_check_func ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1784#define $2 innocuous_$2
1785
1786/* System header to define __stub macros and hopefully few prototypes,
1787    which can conflict with char $2 (); below.
1788    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789    <limits.h> exists even on freestanding compilers.  */
1790
1791#ifdef __STDC__
1792# include <limits.h>
1793#else
1794# include <assert.h>
1795#endif
1796
1797#undef $2
1798
1799/* Override any GCC internal prototype to avoid an error.
1800   Use char because int might match the return type of a GCC
1801   builtin and then its argument prototype would still apply.  */
1802#ifdef __cplusplus
1803extern "C"
1804#endif
1805char $2 ();
1806/* The GNU C library defines this for functions which it implements
1807    to always fail with ENOSYS.  Some functions are actually named
1808    something starting with __ and the normal name is an alias.  */
1809#if defined __stub_$2 || defined __stub___$2
1810choke me
1811#endif
1812
1813int
1814main ()
1815{
1816return $2 ();
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_link "$LINENO"; then :
1822  eval "$3=yes"
1823else
1824  eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext \
1827    conftest$ac_exeext conftest.$ac_ext
1828fi
1829eval ac_res=\$$3
1830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833
1834} # ac_fn_c_check_func
1835
1836# ac_fn_fc_try_compile LINENO
1837# ---------------------------
1838# Try to compile conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_fc_try_compile ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  rm -f conftest.$ac_objext
1843  if { { ac_try="$ac_compile"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_compile") 2>conftest.err
1851  ac_status=$?
1852  if test -s conftest.err; then
1853    grep -v '^ *+' conftest.err >conftest.er1
1854    cat conftest.er1 >&5
1855    mv -f conftest.er1 conftest.err
1856  fi
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } && {
1859	 test -z "$ac_fc_werror_flag" ||
1860	 test ! -s conftest.err
1861       } && test -s conftest.$ac_objext; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867	ac_retval=1
1868fi
1869  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870  return $ac_retval
1871
1872} # ac_fn_fc_try_compile
1873
1874# ac_fn_fc_try_link LINENO
1875# ------------------------
1876# Try to link conftest.$ac_ext, and return whether this succeeded.
1877ac_fn_fc_try_link ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  rm -f conftest.$ac_objext conftest$ac_exeext
1881  if { { ac_try="$ac_link"
1882case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_link") 2>conftest.err
1889  ac_status=$?
1890  if test -s conftest.err; then
1891    grep -v '^ *+' conftest.err >conftest.er1
1892    cat conftest.er1 >&5
1893    mv -f conftest.er1 conftest.err
1894  fi
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && {
1897	 test -z "$ac_fc_werror_flag" ||
1898	 test ! -s conftest.err
1899       } && test -s conftest$ac_exeext && {
1900	 test "$cross_compiling" = yes ||
1901	 $as_test_x conftest$ac_exeext
1902       }; then :
1903  ac_retval=0
1904else
1905  $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908	ac_retval=1
1909fi
1910  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912  # interfere with the next link command; also delete a directory that is
1913  # left behind by Apple's compiler.  We do this before executing the actions.
1914  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916  return $ac_retval
1917
1918} # ac_fn_fc_try_link
1919
1920# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921# -------------------------------------------------------
1922# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923# the include files in INCLUDES and setting the cache variable VAR
1924# accordingly.
1925ac_fn_c_check_header_mongrel ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932  $as_echo_n "(cached) " >&6
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937else
1938  # Is the header compilable?
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940$as_echo_n "checking $2 usability... " >&6; }
1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h.  */
1943$4
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  ac_header_compiler=yes
1948else
1949  ac_header_compiler=no
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953$as_echo "$ac_header_compiler" >&6; }
1954
1955# Is the header present?
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957$as_echo_n "checking $2 presence... " >&6; }
1958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_cpp "$LINENO"; then :
1963  ac_header_preproc=yes
1964else
1965  ac_header_preproc=no
1966fi
1967rm -f conftest.err conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969$as_echo "$ac_header_preproc" >&6; }
1970
1971# So?  What about this header?
1972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973  yes:no: )
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978    ;;
1979  no:yes:* )
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1983$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1987$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990    ;;
1991esac
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  eval "$3=\$ac_header_compiler"
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002fi
2003  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005} # ac_fn_c_check_header_mongrel
2006
2007# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008# -------------------------------------------
2009# Tests whether TYPE exists after having included INCLUDES, setting cache
2010# variable VAR accordingly.
2011ac_fn_c_check_type ()
2012{
2013  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017  $as_echo_n "(cached) " >&6
2018else
2019  eval "$3=no"
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023int
2024main ()
2025{
2026if (sizeof ($2))
2027	 return 0;
2028  ;
2029  return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h.  */
2035$4
2036int
2037main ()
2038{
2039if (sizeof (($2)))
2040	    return 0;
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046
2047else
2048  eval "$3=yes"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054eval ac_res=\$$3
2055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058
2059} # ac_fn_c_check_type
2060
2061# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062# --------------------------------------------
2063# Tries to find the compile-time value of EXPR in a program that includes
2064# INCLUDES, setting VAR accordingly. Returns whether the value could be
2065# computed
2066ac_fn_c_compute_int ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  if test "$cross_compiling" = yes; then
2070    # Depending upon the size, compute the lo and hi bounds.
2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074int
2075main ()
2076{
2077static int test_array [1 - 2 * !(($2) >= 0)];
2078test_array [0] = 0
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  ac_lo=0 ac_mid=0
2086  while :; do
2087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h.  */
2089$4
2090int
2091main ()
2092{
2093static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094test_array [0] = 0
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  ac_hi=$ac_mid; break
2102else
2103  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104			if test $ac_lo -le $ac_mid; then
2105			  ac_lo= ac_hi=
2106			  break
2107			fi
2108			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111  done
2112else
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) < 0)];
2120test_array [0] = 0
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127  ac_hi=-1 ac_mid=-1
2128  while :; do
2129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136test_array [0] = 0
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143  ac_lo=$ac_mid; break
2144else
2145  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2146			if test $ac_mid -le $ac_hi; then
2147			  ac_lo= ac_hi=
2148			  break
2149			fi
2150			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153  done
2154else
2155  ac_lo= ac_hi=
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160# Binary search between lo and hi bounds.
2161while test "x$ac_lo" != "x$ac_hi"; do
2162  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170test_array [0] = 0
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177  ac_hi=$ac_mid
2178else
2179  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182done
2183case $ac_lo in #((
2184?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2185'') ac_retval=1 ;;
2186esac
2187  else
2188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h.  */
2190$4
2191static long int longval () { return $2; }
2192static unsigned long int ulongval () { return $2; }
2193#include <stdio.h>
2194#include <stdlib.h>
2195int
2196main ()
2197{
2198
2199  FILE *f = fopen ("conftest.val", "w");
2200  if (! f)
2201    return 1;
2202  if (($2) < 0)
2203    {
2204      long int i = longval ();
2205      if (i != ($2))
2206	return 1;
2207      fprintf (f, "%ld", i);
2208    }
2209  else
2210    {
2211      unsigned long int i = ulongval ();
2212      if (i != ($2))
2213	return 1;
2214      fprintf (f, "%lu", i);
2215    }
2216  /* Do not output a trailing newline, as this causes \r\n confusion
2217     on some platforms.  */
2218  return ferror (f) || fclose (f) != 0;
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_run "$LINENO"; then :
2225  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2226else
2227  ac_retval=1
2228fi
2229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2230  conftest.$ac_objext conftest.beam conftest.$ac_ext
2231rm -f conftest.val
2232
2233  fi
2234  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235  return $ac_retval
2236
2237} # ac_fn_c_compute_int
2238cat >config.log <<_ACEOF
2239This file contains any messages produced by compilers while
2240running configure, to aid debugging if configure makes a mistake.
2241
2242It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2243generated by GNU Autoconf 2.64.  Invocation command line was
2244
2245  $ $0 $@
2246
2247_ACEOF
2248exec 5>>config.log
2249{
2250cat <<_ASUNAME
2251## --------- ##
2252## Platform. ##
2253## --------- ##
2254
2255hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2256uname -m = `(uname -m) 2>/dev/null || echo unknown`
2257uname -r = `(uname -r) 2>/dev/null || echo unknown`
2258uname -s = `(uname -s) 2>/dev/null || echo unknown`
2259uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260
2261/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2262/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2263
2264/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2265/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2266/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2267/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2268/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2269/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2270/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2271
2272_ASUNAME
2273
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279    $as_echo "PATH: $as_dir"
2280  done
2281IFS=$as_save_IFS
2282
2283} >&5
2284
2285cat >&5 <<_ACEOF
2286
2287
2288## ----------- ##
2289## Core tests. ##
2290## ----------- ##
2291
2292_ACEOF
2293
2294
2295# Keep a trace of the command line.
2296# Strip out --no-create and --no-recursion so they do not pile up.
2297# Strip out --silent because we don't want to record it for future runs.
2298# Also quote any args containing shell meta-characters.
2299# Make two passes to allow for proper duplicate-argument suppression.
2300ac_configure_args=
2301ac_configure_args0=
2302ac_configure_args1=
2303ac_must_keep_next=false
2304for ac_pass in 1 2
2305do
2306  for ac_arg
2307  do
2308    case $ac_arg in
2309    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2310    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2311    | -silent | --silent | --silen | --sile | --sil)
2312      continue ;;
2313    *\'*)
2314      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315    esac
2316    case $ac_pass in
2317    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318    2)
2319      as_fn_append ac_configure_args1 " '$ac_arg'"
2320      if test $ac_must_keep_next = true; then
2321	ac_must_keep_next=false # Got value, back to normal.
2322      else
2323	case $ac_arg in
2324	  *=* | --config-cache | -C | -disable-* | --disable-* \
2325	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2326	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2327	  | -with-* | --with-* | -without-* | --without-* | --x)
2328	    case "$ac_configure_args0 " in
2329	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330	    esac
2331	    ;;
2332	  -* ) ac_must_keep_next=true ;;
2333	esac
2334      fi
2335      as_fn_append ac_configure_args " '$ac_arg'"
2336      ;;
2337    esac
2338  done
2339done
2340{ ac_configure_args0=; unset ac_configure_args0;}
2341{ ac_configure_args1=; unset ac_configure_args1;}
2342
2343# When interrupted or exit'd, cleanup temporary files, and complete
2344# config.log.  We remove comments because anyway the quotes in there
2345# would cause problems or look ugly.
2346# WARNING: Use '\'' to represent an apostrophe within the trap.
2347# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2348trap 'exit_status=$?
2349  # Save into config.log some information that might help in debugging.
2350  {
2351    echo
2352
2353    cat <<\_ASBOX
2354## ---------------- ##
2355## Cache variables. ##
2356## ---------------- ##
2357_ASBOX
2358    echo
2359    # The following way of writing the cache mishandles newlines in values,
2360(
2361  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362    eval ac_val=\$$ac_var
2363    case $ac_val in #(
2364    *${as_nl}*)
2365      case $ac_var in #(
2366      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368      esac
2369      case $ac_var in #(
2370      _ | IFS | as_nl) ;; #(
2371      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372      *) { eval $ac_var=; unset $ac_var;} ;;
2373      esac ;;
2374    esac
2375  done
2376  (set) 2>&1 |
2377    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378    *${as_nl}ac_space=\ *)
2379      sed -n \
2380	"s/'\''/'\''\\\\'\'''\''/g;
2381	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382      ;; #(
2383    *)
2384      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385      ;;
2386    esac |
2387    sort
2388)
2389    echo
2390
2391    cat <<\_ASBOX
2392## ----------------- ##
2393## Output variables. ##
2394## ----------------- ##
2395_ASBOX
2396    echo
2397    for ac_var in $ac_subst_vars
2398    do
2399      eval ac_val=\$$ac_var
2400      case $ac_val in
2401      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402      esac
2403      $as_echo "$ac_var='\''$ac_val'\''"
2404    done | sort
2405    echo
2406
2407    if test -n "$ac_subst_files"; then
2408      cat <<\_ASBOX
2409## ------------------- ##
2410## File substitutions. ##
2411## ------------------- ##
2412_ASBOX
2413      echo
2414      for ac_var in $ac_subst_files
2415      do
2416	eval ac_val=\$$ac_var
2417	case $ac_val in
2418	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419	esac
2420	$as_echo "$ac_var='\''$ac_val'\''"
2421      done | sort
2422      echo
2423    fi
2424
2425    if test -s confdefs.h; then
2426      cat <<\_ASBOX
2427## ----------- ##
2428## confdefs.h. ##
2429## ----------- ##
2430_ASBOX
2431      echo
2432      cat confdefs.h
2433      echo
2434    fi
2435    test "$ac_signal" != 0 &&
2436      $as_echo "$as_me: caught signal $ac_signal"
2437    $as_echo "$as_me: exit $exit_status"
2438  } >&5
2439  rm -f core *.core core.conftest.* &&
2440    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2441    exit $exit_status
2442' 0
2443for ac_signal in 1 2 13 15; do
2444  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2445done
2446ac_signal=0
2447
2448# confdefs.h avoids OS command line length limits that DEFS can exceed.
2449rm -f -r conftest* confdefs.h
2450
2451$as_echo "/* confdefs.h */" > confdefs.h
2452
2453# Predefined preprocessor variables.
2454
2455cat >>confdefs.h <<_ACEOF
2456#define PACKAGE_NAME "$PACKAGE_NAME"
2457_ACEOF
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2461_ACEOF
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_VERSION "$PACKAGE_VERSION"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_STRING "$PACKAGE_STRING"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_URL "$PACKAGE_URL"
2477_ACEOF
2478
2479
2480# Let the site file select an alternate cache file if it wants to.
2481# Prefer an explicitly selected file to automatically selected ones.
2482ac_site_file1=NONE
2483ac_site_file2=NONE
2484if test -n "$CONFIG_SITE"; then
2485  ac_site_file1=$CONFIG_SITE
2486elif test "x$prefix" != xNONE; then
2487  ac_site_file1=$prefix/share/config.site
2488  ac_site_file2=$prefix/etc/config.site
2489else
2490  ac_site_file1=$ac_default_prefix/share/config.site
2491  ac_site_file2=$ac_default_prefix/etc/config.site
2492fi
2493for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494do
2495  test "x$ac_site_file" = xNONE && continue
2496  if test -r "$ac_site_file"; then
2497    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2498$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2499    sed 's/^/| /' "$ac_site_file" >&5
2500    . "$ac_site_file"
2501  fi
2502done
2503
2504if test -r "$cache_file"; then
2505  # Some versions of bash will fail to source /dev/null (special
2506  # files actually), so we avoid doing that.
2507  if test -f "$cache_file"; then
2508    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509$as_echo "$as_me: loading cache $cache_file" >&6;}
2510    case $cache_file in
2511      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512      *)                      . "./$cache_file";;
2513    esac
2514  fi
2515else
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517$as_echo "$as_me: creating cache $cache_file" >&6;}
2518  >$cache_file
2519fi
2520
2521# Check that the precious variables saved in the cache have kept the same
2522# value.
2523ac_cache_corrupted=false
2524for ac_var in $ac_precious_vars; do
2525  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526  eval ac_new_set=\$ac_env_${ac_var}_set
2527  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528  eval ac_new_val=\$ac_env_${ac_var}_value
2529  case $ac_old_set,$ac_new_set in
2530    set,)
2531      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533      ac_cache_corrupted=: ;;
2534    ,set)
2535      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537      ac_cache_corrupted=: ;;
2538    ,);;
2539    *)
2540      if test "x$ac_old_val" != "x$ac_new_val"; then
2541	# differences in whitespace do not lead to failure.
2542	ac_old_val_w=`echo x $ac_old_val`
2543	ac_new_val_w=`echo x $ac_new_val`
2544	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547	  ac_cache_corrupted=:
2548	else
2549	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551	  eval $ac_var=\$ac_old_val
2552	fi
2553	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2554$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2555	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2556$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2557      fi;;
2558  esac
2559  # Pass precious variables to config.status.
2560  if test "$ac_new_set" = set; then
2561    case $ac_new_val in
2562    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563    *) ac_arg=$ac_var=$ac_new_val ;;
2564    esac
2565    case " $ac_configure_args " in
2566      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2567      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568    esac
2569  fi
2570done
2571if $ac_cache_corrupted; then
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2576  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577fi
2578## -------------------- ##
2579## Main body of script. ##
2580## -------------------- ##
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588
2589
2590
2591
2592ac_config_headers="$ac_config_headers config.h"
2593
2594
2595# -------
2596# Options
2597# -------
2598
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2600$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2601 # Check whether --enable-version-specific-runtime-libs was given.
2602if test "${enable_version_specific_runtime_libs+set}" = set; then :
2603  enableval=$enable_version_specific_runtime_libs;
2604      case "$enableval" in
2605       yes|no) ;;
2606       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2607                          esac
2608
2609else
2610  enable_version_specific_runtime_libs=no
2611fi
2612
2613
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2615$as_echo "$enable_version_specific_runtime_libs" >&6; }
2616
2617# We would like our source tree to be readonly. However when releases or
2618# pre-releases are generated, the flex/bison generated files as well as the
2619# various formats of manuals need to be included along with the rest of the
2620# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2621# just that.
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2623$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2624 # Check whether --enable-generated-files-in-srcdir was given.
2625if test "${enable_generated_files_in_srcdir+set}" = set; then :
2626  enableval=$enable_generated_files_in_srcdir;
2627      case "$enableval" in
2628       yes|no) ;;
2629       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2630                          esac
2631
2632else
2633  enable_generated_files_in_srcdir=no
2634fi
2635
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2638$as_echo "$enable_generated_files_in_srcdir" >&6; }
2639 if test "$enable_generated_files_in_srcdir" = yes; then
2640  GENINSRC_TRUE=
2641  GENINSRC_FALSE='#'
2642else
2643  GENINSRC_TRUE='#'
2644  GENINSRC_FALSE=
2645fi
2646
2647
2648
2649# -------
2650# -------
2651
2652# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2653#
2654# You will slowly go insane if you do not grok the following fact:  when
2655# building this library, the top-level /target/ becomes the library's /host/.
2656#
2657# configure then causes --target to default to --host, exactly like any
2658# other package using autoconf.  Therefore, 'target' and 'host' will
2659# always be the same.  This makes sense both for native and cross compilers
2660# just think about it for a little while.  :-)
2661#
2662# Also, if this library is being configured as part of a cross compiler, the
2663# top-level configure script will pass the "real" host as $with_cross_host.
2664#
2665# Do not delete or change the following two lines.  For why, see
2666# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2667ac_aux_dir=
2668for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2669  for ac_t in install-sh install.sh shtool; do
2670    if test -f "$ac_dir/$ac_t"; then
2671      ac_aux_dir=$ac_dir
2672      ac_install_sh="$ac_aux_dir/$ac_t -c"
2673      break 2
2674    fi
2675  done
2676done
2677if test -z "$ac_aux_dir"; then
2678  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2679fi
2680
2681# These three variables are undocumented and unsupported,
2682# and are intended to be withdrawn in a future Autoconf release.
2683# They can cause serious problems if a builder's source tree is in a directory
2684# whose full name contains unusual characters.
2685ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2686ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2687ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2688
2689
2690# Make sure we can run config.sub.
2691$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2692  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2693
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2695$as_echo_n "checking build system type... " >&6; }
2696if test "${ac_cv_build+set}" = set; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  ac_build_alias=$build_alias
2700test "x$ac_build_alias" = x &&
2701  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2702test "x$ac_build_alias" = x &&
2703  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2704ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2705  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2706
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2709$as_echo "$ac_cv_build" >&6; }
2710case $ac_cv_build in
2711*-*-*) ;;
2712*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2713esac
2714build=$ac_cv_build
2715ac_save_IFS=$IFS; IFS='-'
2716set x $ac_cv_build
2717shift
2718build_cpu=$1
2719build_vendor=$2
2720shift; shift
2721# Remember, the first character of IFS is used to create $*,
2722# except with old shells:
2723build_os=$*
2724IFS=$ac_save_IFS
2725case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2726
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2729$as_echo_n "checking host system type... " >&6; }
2730if test "${ac_cv_host+set}" = set; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test "x$host_alias" = x; then
2734  ac_cv_host=$ac_cv_build
2735else
2736  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2737    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2738fi
2739
2740fi
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2742$as_echo "$ac_cv_host" >&6; }
2743case $ac_cv_host in
2744*-*-*) ;;
2745*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2746esac
2747host=$ac_cv_host
2748ac_save_IFS=$IFS; IFS='-'
2749set x $ac_cv_host
2750shift
2751host_cpu=$1
2752host_vendor=$2
2753shift; shift
2754# Remember, the first character of IFS is used to create $*,
2755# except with old shells:
2756host_os=$*
2757IFS=$ac_save_IFS
2758case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759
2760
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2762$as_echo_n "checking target system type... " >&6; }
2763if test "${ac_cv_target+set}" = set; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  if test "x$target_alias" = x; then
2767  ac_cv_target=$ac_cv_host
2768else
2769  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2770    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2771fi
2772
2773fi
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2775$as_echo "$ac_cv_target" >&6; }
2776case $ac_cv_target in
2777*-*-*) ;;
2778*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2779esac
2780target=$ac_cv_target
2781ac_save_IFS=$IFS; IFS='-'
2782set x $ac_cv_target
2783shift
2784target_cpu=$1
2785target_vendor=$2
2786shift; shift
2787# Remember, the first character of IFS is used to create $*,
2788# except with old shells:
2789target_os=$*
2790IFS=$ac_save_IFS
2791case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2792
2793
2794# The aliases save the names the user supplied, while $host etc.
2795# will get canonicalized.
2796test -n "$target_alias" &&
2797  test "$program_prefix$program_suffix$program_transform_name" = \
2798    NONENONEs,x,x, &&
2799  program_prefix=${target_alias}-
2800
2801target_alias=${target_alias-$host_alias}
2802
2803# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2804# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2805#  1.9.0:  minimum required version
2806#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2807#              of other PACKAGE_* variables will, however, and there's nothing
2808#              we can do about that; they come from AC_INIT).
2809#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2810#            file in the top srcdir, etc, etc), so stop complaining.
2811#  no-dist:  we don't want 'dist' and related rules.
2812#  -Wall:  turns on all automake warnings...
2813#  -Wno-portability:  ...except this one, since GNU make is required.
2814#  -Wno-override: ... and this one, since we do want this in testsuite.
2815am__api_version='1.11'
2816
2817# Find a good install program.  We prefer a C program (faster),
2818# so one script is as good as another.  But avoid the broken or
2819# incompatible versions:
2820# SysV /etc/install, /usr/sbin/install
2821# SunOS /usr/etc/install
2822# IRIX /sbin/install
2823# AIX /bin/install
2824# AmigaOS /C/install, which installs bootblocks on floppy discs
2825# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2826# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2827# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2828# OS/2's system install, which has a completely different semantic
2829# ./install, which can be erroneously created by make from ./install.sh.
2830# Reject install programs that cannot install multiple files.
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2832$as_echo_n "checking for a BSD-compatible install... " >&6; }
2833if test -z "$INSTALL"; then
2834if test "${ac_cv_path_install+set}" = set; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842    # Account for people who put trailing slashes in PATH elements.
2843case $as_dir/ in #((
2844  ./ | .// | /[cC]/* | \
2845  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2846  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2847  /usr/ucb/* ) ;;
2848  *)
2849    # OSF1 and SCO ODT 3.0 have their own names for install.
2850    # Don't use installbsd from OSF since it installs stuff as root
2851    # by default.
2852    for ac_prog in ginstall scoinst install; do
2853      for ac_exec_ext in '' $ac_executable_extensions; do
2854	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2855	  if test $ac_prog = install &&
2856	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2857	    # AIX install.  It has an incompatible calling convention.
2858	    :
2859	  elif test $ac_prog = install &&
2860	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2861	    # program-specific install script used by HP pwplus--don't use.
2862	    :
2863	  else
2864	    rm -rf conftest.one conftest.two conftest.dir
2865	    echo one > conftest.one
2866	    echo two > conftest.two
2867	    mkdir conftest.dir
2868	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2869	      test -s conftest.one && test -s conftest.two &&
2870	      test -s conftest.dir/conftest.one &&
2871	      test -s conftest.dir/conftest.two
2872	    then
2873	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2874	      break 3
2875	    fi
2876	  fi
2877	fi
2878      done
2879    done
2880    ;;
2881esac
2882
2883  done
2884IFS=$as_save_IFS
2885
2886rm -rf conftest.one conftest.two conftest.dir
2887
2888fi
2889  if test "${ac_cv_path_install+set}" = set; then
2890    INSTALL=$ac_cv_path_install
2891  else
2892    # As a last resort, use the slow shell script.  Don't cache a
2893    # value for INSTALL within a source directory, because that will
2894    # break other packages using the cache if that directory is
2895    # removed, or if the value is a relative name.
2896    INSTALL=$ac_install_sh
2897  fi
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2900$as_echo "$INSTALL" >&6; }
2901
2902# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2903# It thinks the first close brace ends the variable substitution.
2904test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905
2906test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907
2908test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2911$as_echo_n "checking whether build environment is sane... " >&6; }
2912# Just in case
2913sleep 1
2914echo timestamp > conftest.file
2915# Reject unsafe characters in $srcdir or the absolute working directory
2916# name.  Accept space and tab only in the latter.
2917am_lf='
2918'
2919case `pwd` in
2920  *[\\\"\#\$\&\'\`$am_lf]*)
2921    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2922esac
2923case $srcdir in
2924  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2925    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2926esac
2927
2928# Do `set' in a subshell so we don't clobber the current shell's
2929# arguments.  Must try -L first in case configure is actually a
2930# symlink; some systems play weird games with the mod time of symlinks
2931# (eg FreeBSD returns the mod time of the symlink's containing
2932# directory).
2933if (
2934   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2935   if test "$*" = "X"; then
2936      # -L didn't work.
2937      set X `ls -t "$srcdir/configure" conftest.file`
2938   fi
2939   rm -f conftest.file
2940   if test "$*" != "X $srcdir/configure conftest.file" \
2941      && test "$*" != "X conftest.file $srcdir/configure"; then
2942
2943      # If neither matched, then we have a broken ls.  This can happen
2944      # if, for instance, CONFIG_SHELL is bash and it inherits a
2945      # broken ls alias from the environment.  This has actually
2946      # happened.  Such a system could not be considered "sane".
2947      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2948alias in your environment" "$LINENO" 5
2949   fi
2950
2951   test "$2" = conftest.file
2952   )
2953then
2954   # Ok.
2955   :
2956else
2957   as_fn_error "newly created file is older than distributed files!
2958Check your system clock" "$LINENO" 5
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961$as_echo "yes" >&6; }
2962test "$program_prefix" != NONE &&
2963  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964# Use a double $ so make ignores it.
2965test "$program_suffix" != NONE &&
2966  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967# Double any \ or $.
2968# By default was `s,x,x', remove it if useless.
2969ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971
2972# expand $ac_aux_dir to an absolute path
2973am_aux_dir=`cd $ac_aux_dir && pwd`
2974
2975if test x"${MISSING+set}" != xset; then
2976  case $am_aux_dir in
2977  *\ * | *\	*)
2978    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979  *)
2980    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2981  esac
2982fi
2983# Use eval to expand $SHELL
2984if eval "$MISSING --run true"; then
2985  am_missing_run="$MISSING --run "
2986else
2987  am_missing_run=
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2989$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2990fi
2991
2992if test x"${install_sh}" != xset; then
2993  case $am_aux_dir in
2994  *\ * | *\	*)
2995    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996  *)
2997    install_sh="\${SHELL} $am_aux_dir/install-sh"
2998  esac
2999fi
3000
3001# Installed binaries are usually stripped using `strip' when the user
3002# run `make install-strip'.  However `strip' might not be the right
3003# tool to use in cross-compilation environments, therefore Automake
3004# will honor the `STRIP' environment variable to overrule this program.
3005if test "$cross_compiling" != no; then
3006  if test -n "$ac_tool_prefix"; then
3007  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}strip; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_STRIP+set}" = set; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$STRIP"; then
3015  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034STRIP=$ac_cv_prog_STRIP
3035if test -n "$STRIP"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3037$as_echo "$STRIP" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044fi
3045if test -z "$ac_cv_prog_STRIP"; then
3046  ac_ct_STRIP=$STRIP
3047  # Extract the first word of "strip", so it can be a program name with args.
3048set dummy strip; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  if test -n "$ac_ct_STRIP"; then
3055  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060  IFS=$as_save_IFS
3061  test -z "$as_dir" && as_dir=.
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064    ac_cv_prog_ac_ct_STRIP="strip"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3075if test -n "$ac_ct_STRIP"; then
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3077$as_echo "$ac_ct_STRIP" >&6; }
3078else
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083  if test "x$ac_ct_STRIP" = x; then
3084    STRIP=":"
3085  else
3086    case $cross_compiling:$ac_tool_warned in
3087yes:)
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090ac_tool_warned=yes ;;
3091esac
3092    STRIP=$ac_ct_STRIP
3093  fi
3094else
3095  STRIP="$ac_cv_prog_STRIP"
3096fi
3097
3098fi
3099INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3100
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3102$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3103if test -z "$MKDIR_P"; then
3104  if test "${ac_cv_path_mkdir+set}" = set; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3109do
3110  IFS=$as_save_IFS
3111  test -z "$as_dir" && as_dir=.
3112    for ac_prog in mkdir gmkdir; do
3113	 for ac_exec_ext in '' $ac_executable_extensions; do
3114	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3115	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3116	     'mkdir (GNU coreutils) '* | \
3117	     'mkdir (coreutils) '* | \
3118	     'mkdir (fileutils) '4.1*)
3119	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3120	       break 3;;
3121	   esac
3122	 done
3123       done
3124  done
3125IFS=$as_save_IFS
3126
3127fi
3128
3129  if test "${ac_cv_path_mkdir+set}" = set; then
3130    MKDIR_P="$ac_cv_path_mkdir -p"
3131  else
3132    # As a last resort, use the slow shell script.  Don't cache a
3133    # value for MKDIR_P within a source directory, because that will
3134    # break other packages using the cache if that directory is
3135    # removed, or if the value is a relative name.
3136    test -d ./--version && rmdir ./--version
3137    MKDIR_P="$ac_install_sh -d"
3138  fi
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3141$as_echo "$MKDIR_P" >&6; }
3142
3143mkdir_p="$MKDIR_P"
3144case $mkdir_p in
3145  [\\/$]* | ?:[\\/]*) ;;
3146  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3147esac
3148
3149for ac_prog in gawk mawk nawk awk
3150do
3151  # Extract the first word of "$ac_prog", so it can be a program name with args.
3152set dummy $ac_prog; ac_word=$2
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if test "${ac_cv_prog_AWK+set}" = set; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  if test -n "$AWK"; then
3159  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166    for ac_exec_ext in '' $ac_executable_extensions; do
3167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168    ac_cv_prog_AWK="$ac_prog"
3169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173  done
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178AWK=$ac_cv_prog_AWK
3179if test -n "$AWK"; then
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3181$as_echo "$AWK" >&6; }
3182else
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185fi
3186
3187
3188  test -n "$AWK" && break
3189done
3190
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3192$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193set x ${MAKE-make}
3194ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3195if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  cat >conftest.make <<\_ACEOF
3199SHELL = /bin/sh
3200all:
3201	@echo '@@@%%%=$(MAKE)=@@@%%%'
3202_ACEOF
3203# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3204case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205  *@@@%%%=?*=@@@%%%*)
3206    eval ac_cv_prog_make_${ac_make}_set=yes;;
3207  *)
3208    eval ac_cv_prog_make_${ac_make}_set=no;;
3209esac
3210rm -f conftest.make
3211fi
3212if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215  SET_MAKE=
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219  SET_MAKE="MAKE=${MAKE-make}"
3220fi
3221
3222rm -rf .tst 2>/dev/null
3223mkdir .tst 2>/dev/null
3224if test -d .tst; then
3225  am__leading_dot=.
3226else
3227  am__leading_dot=_
3228fi
3229rmdir .tst 2>/dev/null
3230
3231if test "`cd $srcdir && pwd`" != "`pwd`"; then
3232  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3233  # is not polluted with repeated "-I."
3234  am__isrc=' -I$(srcdir)'
3235  # test to see if srcdir already configured
3236  if test -f $srcdir/config.status; then
3237    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3238  fi
3239fi
3240
3241# test whether we have cygpath
3242if test -z "$CYGPATH_W"; then
3243  if (cygpath --version) >/dev/null 2>/dev/null; then
3244    CYGPATH_W='cygpath -w'
3245  else
3246    CYGPATH_W=echo
3247  fi
3248fi
3249
3250
3251# Define the identity of the package.
3252 PACKAGE='libgomp'
3253 VERSION='1.0'
3254
3255
3256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE "$PACKAGE"
3258_ACEOF
3259
3260
3261cat >>confdefs.h <<_ACEOF
3262#define VERSION "$VERSION"
3263_ACEOF
3264
3265# Some tools Automake needs.
3266
3267ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3268
3269
3270AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3271
3272
3273AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3274
3275
3276AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3277
3278
3279MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3280
3281# We need awk for the "check" target.  The system "awk" is bad on
3282# some platforms.
3283# Always define AMTAR for backward compatibility.  Yes, it's still used
3284# in the wild :-(  We should find a proper way to deprecate it ...
3285AMTAR='$${TAR-tar}'
3286
3287am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3288
3289
3290
3291
3292
3293# Default to --enable-multilib
3294# Check whether --enable-multilib was given.
3295if test "${enable_multilib+set}" = set; then :
3296  enableval=$enable_multilib; case "$enableval" in
3297  yes) multilib=yes ;;
3298  no)  multilib=no ;;
3299  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3300 esac
3301else
3302  multilib=yes
3303fi
3304
3305
3306# We may get other options which we leave undocumented:
3307# --with-target-subdir, --with-multisrctop, --with-multisubdir
3308# See config-ml.in if you want the gory details.
3309
3310if test "$srcdir" = "."; then
3311  if test "$with_target_subdir" != "."; then
3312    multi_basedir="$srcdir/$with_multisrctop../.."
3313  else
3314    multi_basedir="$srcdir/$with_multisrctop.."
3315  fi
3316else
3317  multi_basedir="$srcdir/.."
3318fi
3319
3320
3321# Even if the default multilib is not a cross compilation,
3322# it may be that some of the other multilibs are.
3323if test $cross_compiling = no && test $multilib = yes \
3324   && test "x${with_multisubdir}" != x ; then
3325   cross_compiling=maybe
3326fi
3327
3328ac_config_commands="$ac_config_commands default-1"
3329
3330
3331# Calculate toolexeclibdir
3332# Also toolexecdir, though it's only used in toolexeclibdir
3333case ${enable_version_specific_runtime_libs} in
3334  yes)
3335    # Need the gcc compiler version to know where to install libraries
3336    # and header files if --enable-version-specific-runtime-libs option
3337    # is selected.
3338    toolexecdir='$(libdir)/gcc/$(target_alias)'
3339    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3340    ;;
3341  no)
3342    if test -n "$with_cross_host" &&
3343       test x"$with_cross_host" != x"no"; then
3344      # Install a library built with a cross compiler in tooldir, not libdir.
3345      toolexecdir='$(exec_prefix)/$(target_alias)'
3346      toolexeclibdir='$(toolexecdir)/lib'
3347    else
3348      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3349      toolexeclibdir='$(libdir)'
3350    fi
3351    multi_os_directory=`$CC -print-multi-os-directory`
3352    case $multi_os_directory in
3353      .) ;; # Avoid trailing /.
3354      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3355    esac
3356    ;;
3357esac
3358
3359
3360
3361# Check the compiler.
3362# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3363# We must force CC to /not/ be precious variables; otherwise
3364# the wrong, non-multilib-adjusted value will be used in multilibs.
3365# As a side effect, we have to subst CFLAGS ourselves.
3366
3367
3368
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374if test -n "$ac_tool_prefix"; then
3375  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if test "${ac_cv_prog_CC+set}" = set; then :
3380  $as_echo_n "(cached) " >&6
3381else
3382  if test -n "$CC"; then
3383  ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390    for ac_exec_ext in '' $ac_executable_extensions; do
3391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397  done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412fi
3413if test -z "$ac_cv_prog_CC"; then
3414  ac_ct_CC=$CC
3415  # Extract the first word of "gcc", so it can be a program name with args.
3416set dummy gcc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  if test -n "$ac_ct_CC"; then
3423  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430    for ac_exec_ext in '' $ac_executable_extensions; do
3431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432    ac_cv_prog_ac_ct_CC="gcc"
3433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434    break 2
3435  fi
3436done
3437  done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445$as_echo "$ac_ct_CC" >&6; }
3446else
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451  if test "x$ac_ct_CC" = x; then
3452    CC=""
3453  else
3454    case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458ac_tool_warned=yes ;;
3459esac
3460    CC=$ac_ct_CC
3461  fi
3462else
3463  CC="$ac_cv_prog_CC"
3464fi
3465
3466if test -z "$CC"; then
3467          if test -n "$ac_tool_prefix"; then
3468    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469set dummy ${ac_tool_prefix}cc; ac_word=$2
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471$as_echo_n "checking for $ac_word... " >&6; }
3472if test "${ac_cv_prog_CC+set}" = set; then :
3473  $as_echo_n "(cached) " >&6
3474else
3475  if test -n "$CC"; then
3476  ac_cv_prog_CC="$CC" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481  IFS=$as_save_IFS
3482  test -z "$as_dir" && as_dir=.
3483    for ac_exec_ext in '' $ac_executable_extensions; do
3484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485    ac_cv_prog_CC="${ac_tool_prefix}cc"
3486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498$as_echo "$CC" >&6; }
3499else
3500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502fi
3503
3504
3505  fi
3506fi
3507if test -z "$CC"; then
3508  # Extract the first word of "cc", so it can be a program name with args.
3509set dummy cc; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if test "${ac_cv_prog_CC+set}" = set; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  if test -n "$CC"; then
3516  ac_cv_prog_CC="$CC" # Let the user override the test.
3517else
3518  ac_prog_rejected=no
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522  IFS=$as_save_IFS
3523  test -z "$as_dir" && as_dir=.
3524    for ac_exec_ext in '' $ac_executable_extensions; do
3525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527       ac_prog_rejected=yes
3528       continue
3529     fi
3530    ac_cv_prog_CC="cc"
3531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532    break 2
3533  fi
3534done
3535  done
3536IFS=$as_save_IFS
3537
3538if test $ac_prog_rejected = yes; then
3539  # We found a bogon in the path, so make sure we never use it.
3540  set dummy $ac_cv_prog_CC
3541  shift
3542  if test $# != 0; then
3543    # We chose a different compiler from the bogus one.
3544    # However, it has the same basename, so the bogon will be chosen
3545    # first if we set CC to just the basename; use the full file name.
3546    shift
3547    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3548  fi
3549fi
3550fi
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555$as_echo "$CC" >&6; }
3556else
3557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558$as_echo "no" >&6; }
3559fi
3560
3561
3562fi
3563if test -z "$CC"; then
3564  if test -n "$ac_tool_prefix"; then
3565  for ac_prog in cl.exe
3566  do
3567    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if test "${ac_cv_prog_CC+set}" = set; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  if test -n "$CC"; then
3575  ac_cv_prog_CC="$CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580  IFS=$as_save_IFS
3581  test -z "$as_dir" && as_dir=.
3582    for ac_exec_ext in '' $ac_executable_extensions; do
3583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586    break 2
3587  fi
3588done
3589  done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594CC=$ac_cv_prog_CC
3595if test -n "$CC"; then
3596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597$as_echo "$CC" >&6; }
3598else
3599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
3601fi
3602
3603
3604    test -n "$CC" && break
3605  done
3606fi
3607if test -z "$CC"; then
3608  ac_ct_CC=$CC
3609  for ac_prog in cl.exe
3610do
3611  # Extract the first word of "$ac_prog", so it can be a program name with args.
3612set dummy $ac_prog; ac_word=$2
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614$as_echo_n "checking for $ac_word... " >&6; }
3615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  if test -n "$ac_ct_CC"; then
3619  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620else
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624  IFS=$as_save_IFS
3625  test -z "$as_dir" && as_dir=.
3626    for ac_exec_ext in '' $ac_executable_extensions; do
3627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628    ac_cv_prog_ac_ct_CC="$ac_prog"
3629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630    break 2
3631  fi
3632done
3633  done
3634IFS=$as_save_IFS
3635
3636fi
3637fi
3638ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639if test -n "$ac_ct_CC"; then
3640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641$as_echo "$ac_ct_CC" >&6; }
3642else
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645fi
3646
3647
3648  test -n "$ac_ct_CC" && break
3649done
3650
3651  if test "x$ac_ct_CC" = x; then
3652    CC=""
3653  else
3654    case $cross_compiling:$ac_tool_warned in
3655yes:)
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658ac_tool_warned=yes ;;
3659esac
3660    CC=$ac_ct_CC
3661  fi
3662fi
3663
3664fi
3665
3666
3667test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error "no acceptable C compiler found in \$PATH
3670See \`config.log' for more details." "$LINENO" 5; }
3671
3672# Provide some information about the compiler.
3673$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674set X $ac_compile
3675ac_compiler=$2
3676for ac_option in --version -v -V -qversion; do
3677  { { ac_try="$ac_compiler $ac_option >&5"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685  ac_status=$?
3686  if test -s conftest.err; then
3687    sed '10a\
3688... rest of stderr output deleted ...
3689         10q' conftest.err >conftest.er1
3690    cat conftest.er1 >&5
3691    rm -f conftest.er1 conftest.err
3692  fi
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }
3695done
3696
3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708ac_clean_files_save=$ac_clean_files
3709ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3710# Try to create an executable without -o first, disregard a.out.
3711# It will help us diagnose broken compilers, and finding out an intuition
3712# of exeext.
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714$as_echo_n "checking for C compiler default output file name... " >&6; }
3715ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3716
3717# The possible output files:
3718ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3719
3720ac_rmfiles=
3721for ac_file in $ac_files
3722do
3723  case $ac_file in
3724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726  esac
3727done
3728rm -f $ac_rmfiles
3729
3730if { { ac_try="$ac_link_default"
3731case "(($ac_try" in
3732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733  *) ac_try_echo=$ac_try;;
3734esac
3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736$as_echo "$ac_try_echo"; } >&5
3737  (eval "$ac_link_default") 2>&5
3738  ac_status=$?
3739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740  test $ac_status = 0; }; then :
3741  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3742# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3743# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3744# so that the user can short-circuit this test for compilers unknown to
3745# Autoconf.
3746for ac_file in $ac_files ''
3747do
3748  test -f "$ac_file" || continue
3749  case $ac_file in
3750    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3751	;;
3752    [ab].out )
3753	# We found the default executable, but exeext='' is most
3754	# certainly right.
3755	break;;
3756    *.* )
3757	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3758	then :; else
3759	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760	fi
3761	# We set ac_cv_exeext here because the later test for it is not
3762	# safe: cross compilers may not add the suffix if given an `-o'
3763	# argument, so we may need to know it at that point already.
3764	# Even if this section looks crufty: it has the advantage of
3765	# actually working.
3766	break;;
3767    * )
3768	break;;
3769  esac
3770done
3771test "$ac_cv_exeext" = no && ac_cv_exeext=
3772
3773else
3774  ac_file=''
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3777$as_echo "$ac_file" >&6; }
3778if test -z "$ac_file"; then :
3779  $as_echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784{ as_fn_set_status 77
3785as_fn_error "C compiler cannot create executables
3786See \`config.log' for more details." "$LINENO" 5; }; }
3787fi
3788ac_exeext=$ac_cv_exeext
3789
3790# Check that the compiler produces executables we can run.  If not, either
3791# the compiler is broken, or we cross compile.
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3793$as_echo_n "checking whether the C compiler works... " >&6; }
3794# If not cross compiling, check that we can run a simple program.
3795if test "$cross_compiling" != yes; then
3796  if { ac_try='./$ac_file'
3797  { { case "(($ac_try" in
3798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799  *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802$as_echo "$ac_try_echo"; } >&5
3803  (eval "$ac_try") 2>&5
3804  ac_status=$?
3805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806  test $ac_status = 0; }; }; then
3807    cross_compiling=no
3808  else
3809    if test "$cross_compiling" = maybe; then
3810	cross_compiling=yes
3811    else
3812	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814as_fn_error "cannot run C compiled programs.
3815If you meant to cross compile, use \`--host'.
3816See \`config.log' for more details." "$LINENO" 5; }
3817    fi
3818  fi
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821$as_echo "yes" >&6; }
3822
3823rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3824ac_clean_files=$ac_clean_files_save
3825# Check that the compiler produces executables we can run.  If not, either
3826# the compiler is broken, or we cross compile.
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3828$as_echo_n "checking whether we are cross compiling... " >&6; }
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3830$as_echo "$cross_compiling" >&6; }
3831
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833$as_echo_n "checking for suffix of executables... " >&6; }
3834if { { ac_try="$ac_link"
3835case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840$as_echo "$ac_try_echo"; } >&5
3841  (eval "$ac_link") 2>&5
3842  ac_status=$?
3843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844  test $ac_status = 0; }; then :
3845  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3847# work properly (i.e., refer to `conftest.exe'), while it won't with
3848# `rm'.
3849for ac_file in conftest.exe conftest conftest.*; do
3850  test -f "$ac_file" || continue
3851  case $ac_file in
3852    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854	  break;;
3855    * ) break;;
3856  esac
3857done
3858else
3859  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861as_fn_error "cannot compute suffix of executables: cannot compile and link
3862See \`config.log' for more details." "$LINENO" 5; }
3863fi
3864rm -f conftest$ac_cv_exeext
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866$as_echo "$ac_cv_exeext" >&6; }
3867
3868rm -f conftest.$ac_ext
3869EXEEXT=$ac_cv_exeext
3870ac_exeext=$EXEEXT
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3872$as_echo_n "checking for suffix of object files... " >&6; }
3873if test "${ac_cv_objext+set}" = set; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878
3879int
3880main ()
3881{
3882
3883  ;
3884  return 0;
3885}
3886_ACEOF
3887rm -f conftest.o conftest.obj
3888if { { ac_try="$ac_compile"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895  (eval "$ac_compile") 2>&5
3896  ac_status=$?
3897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }; then :
3899  for ac_file in conftest.o conftest.obj conftest.*; do
3900  test -f "$ac_file" || continue;
3901  case $ac_file in
3902    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904       break;;
3905  esac
3906done
3907else
3908  $as_echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913as_fn_error "cannot compute suffix of object files: cannot compile
3914See \`config.log' for more details." "$LINENO" 5; }
3915fi
3916rm -f conftest.$ac_cv_objext conftest.$ac_ext
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3919$as_echo "$ac_cv_objext" >&6; }
3920OBJEXT=$ac_cv_objext
3921ac_objext=$OBJEXT
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3923$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3924if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3925  $as_echo_n "(cached) " >&6
3926else
3927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h.  */
3929
3930int
3931main ()
3932{
3933#ifndef __GNUC__
3934       choke me
3935#endif
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942  ac_compiler_gnu=yes
3943else
3944  ac_compiler_gnu=no
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947ac_cv_c_compiler_gnu=$ac_compiler_gnu
3948
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3951$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3952if test $ac_compiler_gnu = yes; then
3953  GCC=yes
3954else
3955  GCC=
3956fi
3957ac_test_CFLAGS=${CFLAGS+set}
3958ac_save_CFLAGS=$CFLAGS
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3960$as_echo_n "checking whether $CC accepts -g... " >&6; }
3961if test "${ac_cv_prog_cc_g+set}" = set; then :
3962  $as_echo_n "(cached) " >&6
3963else
3964  ac_save_c_werror_flag=$ac_c_werror_flag
3965   ac_c_werror_flag=yes
3966   ac_cv_prog_cc_g=no
3967   CFLAGS="-g"
3968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979if ac_fn_c_try_compile "$LINENO"; then :
3980  ac_cv_prog_cc_g=yes
3981else
3982  CFLAGS=""
3983      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985
3986int
3987main ()
3988{
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994if ac_fn_c_try_compile "$LINENO"; then :
3995
3996else
3997  ac_c_werror_flag=$ac_save_c_werror_flag
3998	 CFLAGS="-g"
3999	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011  ac_cv_prog_cc_g=yes
4012fi
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018   ac_c_werror_flag=$ac_save_c_werror_flag
4019fi
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4021$as_echo "$ac_cv_prog_cc_g" >&6; }
4022if test "$ac_test_CFLAGS" = set; then
4023  CFLAGS=$ac_save_CFLAGS
4024elif test $ac_cv_prog_cc_g = yes; then
4025  if test "$GCC" = yes; then
4026    CFLAGS="-g -O2"
4027  else
4028    CFLAGS="-g"
4029  fi
4030else
4031  if test "$GCC" = yes; then
4032    CFLAGS="-O2"
4033  else
4034    CFLAGS=
4035  fi
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4038$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4039if test "${ac_cv_prog_cc_c89+set}" = set; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042  ac_cv_prog_cc_c89=no
4043ac_save_CC=$CC
4044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#include <stdarg.h>
4047#include <stdio.h>
4048#include <sys/types.h>
4049#include <sys/stat.h>
4050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4051struct buf { int x; };
4052FILE * (*rcsopen) (struct buf *, struct stat *, int);
4053static char *e (p, i)
4054     char **p;
4055     int i;
4056{
4057  return p[i];
4058}
4059static char *f (char * (*g) (char **, int), char **p, ...)
4060{
4061  char *s;
4062  va_list v;
4063  va_start (v,p);
4064  s = g (p, va_arg (v,int));
4065  va_end (v);
4066  return s;
4067}
4068
4069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4070   function prototypes and stuff, but not '\xHH' hex character constants.
4071   These don't provoke an error unfortunately, instead are silently treated
4072   as 'x'.  The following induces an error, until -std is added to get
4073   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4074   array size at least.  It's necessary to write '\x00'==0 to get something
4075   that's true only with -std.  */
4076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077
4078/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4079   inside strings and character constants.  */
4080#define FOO(x) 'x'
4081int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4082
4083int test (int i, double x);
4084struct s1 {int (*f) (int a);};
4085struct s2 {int (*f) (double a);};
4086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4087int argc;
4088char **argv;
4089int
4090main ()
4091{
4092return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4093  ;
4094  return 0;
4095}
4096_ACEOF
4097for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4098	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099do
4100  CC="$ac_save_CC $ac_arg"
4101  if ac_fn_c_try_compile "$LINENO"; then :
4102  ac_cv_prog_cc_c89=$ac_arg
4103fi
4104rm -f core conftest.err conftest.$ac_objext
4105  test "x$ac_cv_prog_cc_c89" != "xno" && break
4106done
4107rm -f conftest.$ac_ext
4108CC=$ac_save_CC
4109
4110fi
4111# AC_CACHE_VAL
4112case "x$ac_cv_prog_cc_c89" in
4113  x)
4114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115$as_echo "none needed" >&6; } ;;
4116  xno)
4117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4118$as_echo "unsupported" >&6; } ;;
4119  *)
4120    CC="$CC $ac_cv_prog_cc_c89"
4121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4122$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4123esac
4124if test "x$ac_cv_prog_cc_c89" != xno; then :
4125
4126fi
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133DEPDIR="${am__leading_dot}deps"
4134
4135ac_config_commands="$ac_config_commands depfiles"
4136
4137
4138am_make=${MAKE-make}
4139cat > confinc << 'END'
4140am__doit:
4141	@echo this is the am__doit target
4142.PHONY: am__doit
4143END
4144# If we don't find an include directive, just comment out the code.
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4146$as_echo_n "checking for style of include used by $am_make... " >&6; }
4147am__include="#"
4148am__quote=
4149_am_result=none
4150# First try GNU make style include.
4151echo "include confinc" > confmf
4152# Ignore all kinds of additional output from `make'.
4153case `$am_make -s -f confmf 2> /dev/null` in #(
4154*the\ am__doit\ target*)
4155  am__include=include
4156  am__quote=
4157  _am_result=GNU
4158  ;;
4159esac
4160# Now try BSD make style include.
4161if test "$am__include" = "#"; then
4162   echo '.include "confinc"' > confmf
4163   case `$am_make -s -f confmf 2> /dev/null` in #(
4164   *the\ am__doit\ target*)
4165     am__include=.include
4166     am__quote="\""
4167     _am_result=BSD
4168     ;;
4169   esac
4170fi
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4174$as_echo "$_am_result" >&6; }
4175rm -f confinc confmf
4176
4177# Check whether --enable-dependency-tracking was given.
4178if test "${enable_dependency_tracking+set}" = set; then :
4179  enableval=$enable_dependency_tracking;
4180fi
4181
4182if test "x$enable_dependency_tracking" != xno; then
4183  am_depcomp="$ac_aux_dir/depcomp"
4184  AMDEPBACKSLASH='\'
4185  am__nodep='_no'
4186fi
4187 if test "x$enable_dependency_tracking" != xno; then
4188  AMDEP_TRUE=
4189  AMDEP_FALSE='#'
4190else
4191  AMDEP_TRUE='#'
4192  AMDEP_FALSE=
4193fi
4194
4195
4196
4197depcc="$CC"   am_compiler_list=
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4200$as_echo_n "checking dependency style of $depcc... " >&6; }
4201if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205  # We make a subdir and do the tests there.  Otherwise we can end up
4206  # making bogus files that we don't know about and never remove.  For
4207  # instance it was reported that on HP-UX the gcc test will end up
4208  # making a dummy file named `D' -- because `-MD' means `put the output
4209  # in D'.
4210  rm -rf conftest.dir
4211  mkdir conftest.dir
4212  # Copy depcomp to subdir because otherwise we won't find it if we're
4213  # using a relative directory.
4214  cp "$am_depcomp" conftest.dir
4215  cd conftest.dir
4216  # We will build objects and dependencies in a subdirectory because
4217  # it helps to detect inapplicable dependency modes.  For instance
4218  # both Tru64's cc and ICC support -MD to output dependencies as a
4219  # side effect of compilation, but ICC will put the dependencies in
4220  # the current directory while Tru64 will put them in the object
4221  # directory.
4222  mkdir sub
4223
4224  am_cv_CC_dependencies_compiler_type=none
4225  if test "$am_compiler_list" = ""; then
4226     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4227  fi
4228  am__universal=false
4229  case " $depcc " in #(
4230     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4231     esac
4232
4233  for depmode in $am_compiler_list; do
4234    # Setup a source with many dependencies, because some compilers
4235    # like to wrap large dependency lists on column 80 (with \), and
4236    # we should not choose a depcomp mode which is confused by this.
4237    #
4238    # We need to recreate these files for each test, as the compiler may
4239    # overwrite some of them when testing with obscure command lines.
4240    # This happens at least with the AIX C compiler.
4241    : > sub/conftest.c
4242    for i in 1 2 3 4 5 6; do
4243      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4244      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4245      # Solaris 8's {/usr,}/bin/sh.
4246      touch sub/conftst$i.h
4247    done
4248    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249
4250    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4251    # mode.  It turns out that the SunPro C++ compiler does not properly
4252    # handle `-M -o', and we need to detect this.  Also, some Intel
4253    # versions had trouble with output in subdirs
4254    am__obj=sub/conftest.${OBJEXT-o}
4255    am__minus_obj="-o $am__obj"
4256    case $depmode in
4257    gcc)
4258      # This depmode causes a compiler race in universal mode.
4259      test "$am__universal" = false || continue
4260      ;;
4261    nosideeffect)
4262      # after this tag, mechanisms are not by side-effect, so they'll
4263      # only be used when explicitly requested
4264      if test "x$enable_dependency_tracking" = xyes; then
4265	continue
4266      else
4267	break
4268      fi
4269      ;;
4270    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4271      # This compiler won't grok `-c -o', but also, the minuso test has
4272      # not run yet.  These depmodes are late enough in the game, and
4273      # so weak that their functioning should not be impacted.
4274      am__obj=conftest.${OBJEXT-o}
4275      am__minus_obj=
4276      ;;
4277    none) break ;;
4278    esac
4279    if depmode=$depmode \
4280       source=sub/conftest.c object=$am__obj \
4281       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4282       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4283         >/dev/null 2>conftest.err &&
4284       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4285       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4286       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4287       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4288      # icc doesn't choke on unknown options, it will just issue warnings
4289      # or remarks (even with -Werror).  So we grep stderr for any message
4290      # that says an option was ignored or not supported.
4291      # When given -MP, icc 7.0 and 7.1 complain thusly:
4292      #   icc: Command line warning: ignoring option '-M'; no argument required
4293      # The diagnosis changed in icc 8.0:
4294      #   icc: Command line remark: option '-MP' not supported
4295      if (grep 'ignoring option' conftest.err ||
4296          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4297        am_cv_CC_dependencies_compiler_type=$depmode
4298        break
4299      fi
4300    fi
4301  done
4302
4303  cd ..
4304  rm -rf conftest.dir
4305else
4306  am_cv_CC_dependencies_compiler_type=none
4307fi
4308
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4311$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4312CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4313
4314 if
4315  test "x$enable_dependency_tracking" != xno \
4316  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4317  am__fastdepCC_TRUE=
4318  am__fastdepCC_FALSE='#'
4319else
4320  am__fastdepCC_TRUE='#'
4321  am__fastdepCC_FALSE=
4322fi
4323
4324
4325
4326
4327
4328
4329# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4330# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4331# in both places for now and restore CFLAGS at the end of config.
4332save_CFLAGS="$CFLAGS"
4333
4334# Add -Wall -Werror if we are using GCC.
4335if test "x$GCC" = "xyes"; then
4336  XCFLAGS="$XCFLAGS -Wall -Werror"
4337fi
4338
4339# Find other programs we need.
4340if test -n "$ac_tool_prefix"; then
4341  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342set dummy ${ac_tool_prefix}ar; ac_word=$2
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344$as_echo_n "checking for $ac_word... " >&6; }
4345if test "${ac_cv_prog_AR+set}" = set; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  if test -n "$AR"; then
4349  ac_cv_prog_AR="$AR" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354  IFS=$as_save_IFS
4355  test -z "$as_dir" && as_dir=.
4356    for ac_exec_ext in '' $ac_executable_extensions; do
4357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358    ac_cv_prog_AR="${ac_tool_prefix}ar"
4359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360    break 2
4361  fi
4362done
4363  done
4364IFS=$as_save_IFS
4365
4366fi
4367fi
4368AR=$ac_cv_prog_AR
4369if test -n "$AR"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4371$as_echo "$AR" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376
4377
4378fi
4379if test -z "$ac_cv_prog_AR"; then
4380  ac_ct_AR=$AR
4381  # Extract the first word of "ar", so it can be a program name with args.
4382set dummy ar; ac_word=$2
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384$as_echo_n "checking for $ac_word... " >&6; }
4385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  if test -n "$ac_ct_AR"; then
4389  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4390else
4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394  IFS=$as_save_IFS
4395  test -z "$as_dir" && as_dir=.
4396    for ac_exec_ext in '' $ac_executable_extensions; do
4397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398    ac_cv_prog_ac_ct_AR="ar"
4399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400    break 2
4401  fi
4402done
4403  done
4404IFS=$as_save_IFS
4405
4406fi
4407fi
4408ac_ct_AR=$ac_cv_prog_ac_ct_AR
4409if test -n "$ac_ct_AR"; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4411$as_echo "$ac_ct_AR" >&6; }
4412else
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414$as_echo "no" >&6; }
4415fi
4416
4417  if test "x$ac_ct_AR" = x; then
4418    AR=""
4419  else
4420    case $cross_compiling:$ac_tool_warned in
4421yes:)
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424ac_tool_warned=yes ;;
4425esac
4426    AR=$ac_ct_AR
4427  fi
4428else
4429  AR="$ac_cv_prog_AR"
4430fi
4431
4432if test -n "$ac_tool_prefix"; then
4433  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4434set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if test "${ac_cv_prog_RANLIB+set}" = set; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if test -n "$RANLIB"; then
4441  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446  IFS=$as_save_IFS
4447  test -z "$as_dir" && as_dir=.
4448    for ac_exec_ext in '' $ac_executable_extensions; do
4449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452    break 2
4453  fi
4454done
4455  done
4456IFS=$as_save_IFS
4457
4458fi
4459fi
4460RANLIB=$ac_cv_prog_RANLIB
4461if test -n "$RANLIB"; then
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4463$as_echo "$RANLIB" >&6; }
4464else
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466$as_echo "no" >&6; }
4467fi
4468
4469
4470fi
4471if test -z "$ac_cv_prog_RANLIB"; then
4472  ac_ct_RANLIB=$RANLIB
4473  # Extract the first word of "ranlib", so it can be a program name with args.
4474set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if test -n "$ac_ct_RANLIB"; then
4481  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490    ac_cv_prog_ac_ct_RANLIB="ranlib"
4491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495  done
4496IFS=$as_save_IFS
4497
4498fi
4499fi
4500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4501if test -n "$ac_ct_RANLIB"; then
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4503$as_echo "$ac_ct_RANLIB" >&6; }
4504else
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506$as_echo "no" >&6; }
4507fi
4508
4509  if test "x$ac_ct_RANLIB" = x; then
4510    RANLIB="ranlib-not-found-in-path-error"
4511  else
4512    case $cross_compiling:$ac_tool_warned in
4513yes:)
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516ac_tool_warned=yes ;;
4517esac
4518    RANLIB=$ac_ct_RANLIB
4519  fi
4520else
4521  RANLIB="$ac_cv_prog_RANLIB"
4522fi
4523
4524# Extract the first word of "perl", so it can be a program name with args.
4525set dummy perl; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
4528if test "${ac_cv_path_PERL+set}" = set; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  case $PERL in
4532  [\\/]* | ?:[\\/]*)
4533  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4534  ;;
4535  *)
4536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4552  ;;
4553esac
4554fi
4555PERL=$ac_cv_path_PERL
4556if test -n "$PERL"; then
4557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4558$as_echo "$PERL" >&6; }
4559else
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
4562fi
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4566$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4567set x ${MAKE-make}
4568ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4569if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  cat >conftest.make <<\_ACEOF
4573SHELL = /bin/sh
4574all:
4575	@echo '@@@%%%=$(MAKE)=@@@%%%'
4576_ACEOF
4577# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4578case `${MAKE-make} -f conftest.make 2>/dev/null` in
4579  *@@@%%%=?*=@@@%%%*)
4580    eval ac_cv_prog_make_${ac_make}_set=yes;;
4581  *)
4582    eval ac_cv_prog_make_${ac_make}_set=no;;
4583esac
4584rm -f conftest.make
4585fi
4586if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588$as_echo "yes" >&6; }
4589  SET_MAKE=
4590else
4591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592$as_echo "no" >&6; }
4593  SET_MAKE="MAKE=${MAKE-make}"
4594fi
4595
4596
4597
4598# See if makeinfo has been installed and is modern enough
4599# that we can use it.
4600
4601  # Extract the first word of "makeinfo", so it can be a program name with args.
4602set dummy makeinfo; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -n "$MAKEINFO"; then
4609  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618    ac_cv_prog_MAKEINFO="makeinfo"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628MAKEINFO=$ac_cv_prog_MAKEINFO
4629if test -n "$MAKEINFO"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4631$as_echo "$MAKEINFO" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637
4638  if test -n "$MAKEINFO"; then
4639    # Found it, now check the version.
4640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4641$as_echo_n "checking for modern makeinfo... " >&6; }
4642if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4646                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4647
4648                    case $ac_prog_version in
4649                      '')  gcc_cv_prog_makeinfo_modern=no;;
4650                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4651                      *)   gcc_cv_prog_makeinfo_modern=no;;
4652                    esac
4653
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4656$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4657  else
4658    gcc_cv_prog_makeinfo_modern=no
4659  fi
4660  if test $gcc_cv_prog_makeinfo_modern = no; then
4661    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4662  fi
4663
4664 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4665  BUILD_INFO_TRUE=
4666  BUILD_INFO_FALSE='#'
4667else
4668  BUILD_INFO_TRUE='#'
4669  BUILD_INFO_FALSE=
4670fi
4671
4672
4673
4674# Configure libtool
4675case `pwd` in
4676  *\ * | *\	*)
4677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4678$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4679esac
4680
4681
4682
4683macro_version='2.2.7a'
4684macro_revision='1.3134'
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698ltmain="$ac_aux_dir/ltmain.sh"
4699
4700# Backslashify metacharacters that are still active within
4701# double-quoted strings.
4702sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4703
4704# Same as above, but do not quote variable references.
4705double_quote_subst='s/\(["`\\]\)/\\\1/g'
4706
4707# Sed substitution to delay expansion of an escaped shell variable in a
4708# double_quote_subst'ed string.
4709delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4710
4711# Sed substitution to delay expansion of an escaped single quote.
4712delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4713
4714# Sed substitution to avoid accidental globbing in evaled expressions
4715no_glob_subst='s/\*/\\\*/g'
4716
4717ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4718ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4722$as_echo_n "checking how to print strings... " >&6; }
4723# Test print first, because it will be a builtin if present.
4724if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4725   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4726  ECHO='print -r --'
4727elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4728  ECHO='printf %s\n'
4729else
4730  # Use this function as a fallback that always works.
4731  func_fallback_echo ()
4732  {
4733    eval 'cat <<_LTECHO_EOF
4734$1
4735_LTECHO_EOF'
4736  }
4737  ECHO='func_fallback_echo'
4738fi
4739
4740# func_echo_all arg...
4741# Invoke $ECHO with all args, space-separated.
4742func_echo_all ()
4743{
4744    $ECHO ""
4745}
4746
4747case "$ECHO" in
4748  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4749$as_echo "printf" >&6; } ;;
4750  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4751$as_echo "print -r" >&6; } ;;
4752  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4753$as_echo "cat" >&6; } ;;
4754esac
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4770$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4771if test "${ac_cv_path_SED+set}" = set; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4775     for ac_i in 1 2 3 4 5 6 7; do
4776       ac_script="$ac_script$as_nl$ac_script"
4777     done
4778     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4779     { ac_script=; unset ac_script;}
4780     if test -z "$SED"; then
4781  ac_path_SED_found=false
4782  # Loop through the user's path and test for each of PROGNAME-LIST
4783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788    for ac_prog in sed gsed; do
4789    for ac_exec_ext in '' $ac_executable_extensions; do
4790      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4791      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4792# Check for GNU ac_path_SED and select it if it is found.
4793  # Check for GNU $ac_path_SED
4794case `"$ac_path_SED" --version 2>&1` in
4795*GNU*)
4796  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4797*)
4798  ac_count=0
4799  $as_echo_n 0123456789 >"conftest.in"
4800  while :
4801  do
4802    cat "conftest.in" "conftest.in" >"conftest.tmp"
4803    mv "conftest.tmp" "conftest.in"
4804    cp "conftest.in" "conftest.nl"
4805    $as_echo '' >> "conftest.nl"
4806    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4807    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4808    as_fn_arith $ac_count + 1 && ac_count=$as_val
4809    if test $ac_count -gt ${ac_path_SED_max-0}; then
4810      # Best one so far, save it but keep looking for a better one
4811      ac_cv_path_SED="$ac_path_SED"
4812      ac_path_SED_max=$ac_count
4813    fi
4814    # 10*(2^10) chars as input seems more than enough
4815    test $ac_count -gt 10 && break
4816  done
4817  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818esac
4819
4820      $ac_path_SED_found && break 3
4821    done
4822  done
4823  done
4824IFS=$as_save_IFS
4825  if test -z "$ac_cv_path_SED"; then
4826    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4827  fi
4828else
4829  ac_cv_path_SED=$SED
4830fi
4831
4832fi
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4834$as_echo "$ac_cv_path_SED" >&6; }
4835 SED="$ac_cv_path_SED"
4836  rm -f conftest.sed
4837
4838test -z "$SED" && SED=sed
4839Xsed="$SED -e 1s/^X//"
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4852$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4853if test "${ac_cv_path_GREP+set}" = set; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  if test -z "$GREP"; then
4857  ac_path_GREP_found=false
4858  # Loop through the user's path and test for each of PROGNAME-LIST
4859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861do
4862  IFS=$as_save_IFS
4863  test -z "$as_dir" && as_dir=.
4864    for ac_prog in grep ggrep; do
4865    for ac_exec_ext in '' $ac_executable_extensions; do
4866      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4867      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4868# Check for GNU ac_path_GREP and select it if it is found.
4869  # Check for GNU $ac_path_GREP
4870case `"$ac_path_GREP" --version 2>&1` in
4871*GNU*)
4872  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4873*)
4874  ac_count=0
4875  $as_echo_n 0123456789 >"conftest.in"
4876  while :
4877  do
4878    cat "conftest.in" "conftest.in" >"conftest.tmp"
4879    mv "conftest.tmp" "conftest.in"
4880    cp "conftest.in" "conftest.nl"
4881    $as_echo 'GREP' >> "conftest.nl"
4882    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884    as_fn_arith $ac_count + 1 && ac_count=$as_val
4885    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4886      # Best one so far, save it but keep looking for a better one
4887      ac_cv_path_GREP="$ac_path_GREP"
4888      ac_path_GREP_max=$ac_count
4889    fi
4890    # 10*(2^10) chars as input seems more than enough
4891    test $ac_count -gt 10 && break
4892  done
4893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894esac
4895
4896      $ac_path_GREP_found && break 3
4897    done
4898  done
4899  done
4900IFS=$as_save_IFS
4901  if test -z "$ac_cv_path_GREP"; then
4902    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903  fi
4904else
4905  ac_cv_path_GREP=$GREP
4906fi
4907
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4910$as_echo "$ac_cv_path_GREP" >&6; }
4911 GREP="$ac_cv_path_GREP"
4912
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4915$as_echo_n "checking for egrep... " >&6; }
4916if test "${ac_cv_path_EGREP+set}" = set; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4920   then ac_cv_path_EGREP="$GREP -E"
4921   else
4922     if test -z "$EGREP"; then
4923  ac_path_EGREP_found=false
4924  # Loop through the user's path and test for each of PROGNAME-LIST
4925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927do
4928  IFS=$as_save_IFS
4929  test -z "$as_dir" && as_dir=.
4930    for ac_prog in egrep; do
4931    for ac_exec_ext in '' $ac_executable_extensions; do
4932      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4933      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4934# Check for GNU ac_path_EGREP and select it if it is found.
4935  # Check for GNU $ac_path_EGREP
4936case `"$ac_path_EGREP" --version 2>&1` in
4937*GNU*)
4938  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4939*)
4940  ac_count=0
4941  $as_echo_n 0123456789 >"conftest.in"
4942  while :
4943  do
4944    cat "conftest.in" "conftest.in" >"conftest.tmp"
4945    mv "conftest.tmp" "conftest.in"
4946    cp "conftest.in" "conftest.nl"
4947    $as_echo 'EGREP' >> "conftest.nl"
4948    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950    as_fn_arith $ac_count + 1 && ac_count=$as_val
4951    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4952      # Best one so far, save it but keep looking for a better one
4953      ac_cv_path_EGREP="$ac_path_EGREP"
4954      ac_path_EGREP_max=$ac_count
4955    fi
4956    # 10*(2^10) chars as input seems more than enough
4957    test $ac_count -gt 10 && break
4958  done
4959  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960esac
4961
4962      $ac_path_EGREP_found && break 3
4963    done
4964  done
4965  done
4966IFS=$as_save_IFS
4967  if test -z "$ac_cv_path_EGREP"; then
4968    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969  fi
4970else
4971  ac_cv_path_EGREP=$EGREP
4972fi
4973
4974   fi
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4977$as_echo "$ac_cv_path_EGREP" >&6; }
4978 EGREP="$ac_cv_path_EGREP"
4979
4980
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4982$as_echo_n "checking for fgrep... " >&6; }
4983if test "${ac_cv_path_FGREP+set}" = set; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4987   then ac_cv_path_FGREP="$GREP -F"
4988   else
4989     if test -z "$FGREP"; then
4990  ac_path_FGREP_found=false
4991  # Loop through the user's path and test for each of PROGNAME-LIST
4992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994do
4995  IFS=$as_save_IFS
4996  test -z "$as_dir" && as_dir=.
4997    for ac_prog in fgrep; do
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5000      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5001# Check for GNU ac_path_FGREP and select it if it is found.
5002  # Check for GNU $ac_path_FGREP
5003case `"$ac_path_FGREP" --version 2>&1` in
5004*GNU*)
5005  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5006*)
5007  ac_count=0
5008  $as_echo_n 0123456789 >"conftest.in"
5009  while :
5010  do
5011    cat "conftest.in" "conftest.in" >"conftest.tmp"
5012    mv "conftest.tmp" "conftest.in"
5013    cp "conftest.in" "conftest.nl"
5014    $as_echo 'FGREP' >> "conftest.nl"
5015    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5017    as_fn_arith $ac_count + 1 && ac_count=$as_val
5018    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5019      # Best one so far, save it but keep looking for a better one
5020      ac_cv_path_FGREP="$ac_path_FGREP"
5021      ac_path_FGREP_max=$ac_count
5022    fi
5023    # 10*(2^10) chars as input seems more than enough
5024    test $ac_count -gt 10 && break
5025  done
5026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5027esac
5028
5029      $ac_path_FGREP_found && break 3
5030    done
5031  done
5032  done
5033IFS=$as_save_IFS
5034  if test -z "$ac_cv_path_FGREP"; then
5035    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036  fi
5037else
5038  ac_cv_path_FGREP=$FGREP
5039fi
5040
5041   fi
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5044$as_echo "$ac_cv_path_FGREP" >&6; }
5045 FGREP="$ac_cv_path_FGREP"
5046
5047
5048test -z "$GREP" && GREP=grep
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068# Check whether --with-gnu-ld was given.
5069if test "${with_gnu_ld+set}" = set; then :
5070  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5071else
5072  with_gnu_ld=no
5073fi
5074
5075ac_prog=ld
5076if test "$GCC" = yes; then
5077  # Check if gcc -print-prog-name=ld gives a path.
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5079$as_echo_n "checking for ld used by $CC... " >&6; }
5080  case $host in
5081  *-*-mingw*)
5082    # gcc leaves a trailing carriage return which upsets mingw
5083    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5084  *)
5085    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5086  esac
5087  case $ac_prog in
5088    # Accept absolute paths.
5089    [\\/]* | ?:[\\/]*)
5090      re_direlt='/[^/][^/]*/\.\./'
5091      # Canonicalize the pathname of ld
5092      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5093      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5094	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5095      done
5096      test -z "$LD" && LD="$ac_prog"
5097      ;;
5098  "")
5099    # If it fails, then pretend we aren't using GCC.
5100    ac_prog=ld
5101    ;;
5102  *)
5103    # If it is relative, then search for the first ld in PATH.
5104    with_gnu_ld=unknown
5105    ;;
5106  esac
5107elif test "$with_gnu_ld" = yes; then
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5109$as_echo_n "checking for GNU ld... " >&6; }
5110else
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5112$as_echo_n "checking for non-GNU ld... " >&6; }
5113fi
5114if test "${lt_cv_path_LD+set}" = set; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -z "$LD"; then
5118  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5119  for ac_dir in $PATH; do
5120    IFS="$lt_save_ifs"
5121    test -z "$ac_dir" && ac_dir=.
5122    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5123      lt_cv_path_LD="$ac_dir/$ac_prog"
5124      # Check to see if the program is GNU ld.  I'd rather use --version,
5125      # but apparently some variants of GNU ld only accept -v.
5126      # Break only if it was the GNU/non-GNU ld that we prefer.
5127      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5128      *GNU* | *'with BFD'*)
5129	test "$with_gnu_ld" != no && break
5130	;;
5131      *)
5132	test "$with_gnu_ld" != yes && break
5133	;;
5134      esac
5135    fi
5136  done
5137  IFS="$lt_save_ifs"
5138else
5139  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5140fi
5141fi
5142
5143LD="$lt_cv_path_LD"
5144if test -n "$LD"; then
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5146$as_echo "$LD" >&6; }
5147else
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5154if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5158case `$LD -v 2>&1 </dev/null` in
5159*GNU* | *'with BFD'*)
5160  lt_cv_prog_gnu_ld=yes
5161  ;;
5162*)
5163  lt_cv_prog_gnu_ld=no
5164  ;;
5165esac
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5168$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5169with_gnu_ld=$lt_cv_prog_gnu_ld
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5180$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5181if test "${lt_cv_path_NM+set}" = set; then :
5182  $as_echo_n "(cached) " >&6
5183else
5184  if test -n "$NM"; then
5185  # Let the user override the test.
5186  lt_cv_path_NM="$NM"
5187else
5188  lt_nm_to_check="${ac_tool_prefix}nm"
5189  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5190    lt_nm_to_check="$lt_nm_to_check nm"
5191  fi
5192  for lt_tmp_nm in $lt_nm_to_check; do
5193    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5194    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5195      IFS="$lt_save_ifs"
5196      test -z "$ac_dir" && ac_dir=.
5197      tmp_nm="$ac_dir/$lt_tmp_nm"
5198      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5199	# Check to see if the nm accepts a BSD-compat flag.
5200	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5201	#   nm: unknown option "B" ignored
5202	# Tru64's nm complains that /dev/null is an invalid object file
5203	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5204	*/dev/null* | *'Invalid file or object type'*)
5205	  lt_cv_path_NM="$tmp_nm -B"
5206	  break
5207	  ;;
5208	*)
5209	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5210	  */dev/null*)
5211	    lt_cv_path_NM="$tmp_nm -p"
5212	    break
5213	    ;;
5214	  *)
5215	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5216	    continue # so that we can try to find one that supports BSD flags
5217	    ;;
5218	  esac
5219	  ;;
5220	esac
5221      fi
5222    done
5223    IFS="$lt_save_ifs"
5224  done
5225  : ${lt_cv_path_NM=no}
5226fi
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5229$as_echo "$lt_cv_path_NM" >&6; }
5230if test "$lt_cv_path_NM" != "no"; then
5231  NM="$lt_cv_path_NM"
5232else
5233  # Didn't find any BSD compatible name lister, look for dumpbin.
5234  if test -n "$DUMPBIN"; then :
5235    # Let the user override the test.
5236  else
5237    if test -n "$ac_tool_prefix"; then
5238  for ac_prog in dumpbin "link -dump"
5239  do
5240    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  if test -n "$DUMPBIN"; then
5248  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255    for ac_exec_ext in '' $ac_executable_extensions; do
5256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262  done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267DUMPBIN=$ac_cv_prog_DUMPBIN
5268if test -n "$DUMPBIN"; then
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5270$as_echo "$DUMPBIN" >&6; }
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
5277    test -n "$DUMPBIN" && break
5278  done
5279fi
5280if test -z "$DUMPBIN"; then
5281  ac_ct_DUMPBIN=$DUMPBIN
5282  for ac_prog in dumpbin "link -dump"
5283do
5284  # Extract the first word of "$ac_prog", so it can be a program name with args.
5285set dummy $ac_prog; ac_word=$2
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
5288if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  if test -n "$ac_ct_DUMPBIN"; then
5292  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299    for ac_exec_ext in '' $ac_executable_extensions; do
5300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306  done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5312if test -n "$ac_ct_DUMPBIN"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5314$as_echo "$ac_ct_DUMPBIN" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320
5321  test -n "$ac_ct_DUMPBIN" && break
5322done
5323
5324  if test "x$ac_ct_DUMPBIN" = x; then
5325    DUMPBIN=":"
5326  else
5327    case $cross_compiling:$ac_tool_warned in
5328yes:)
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331ac_tool_warned=yes ;;
5332esac
5333    DUMPBIN=$ac_ct_DUMPBIN
5334  fi
5335fi
5336
5337    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5338    *COFF*)
5339      DUMPBIN="$DUMPBIN -symbols"
5340      ;;
5341    *)
5342      DUMPBIN=:
5343      ;;
5344    esac
5345  fi
5346
5347  if test "$DUMPBIN" != ":"; then
5348    NM="$DUMPBIN"
5349  fi
5350fi
5351test -z "$NM" && NM=nm
5352
5353
5354
5355
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5359$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5360if test "${lt_cv_nm_interface+set}" = set; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  lt_cv_nm_interface="BSD nm"
5364  echo "int some_variable = 0;" > conftest.$ac_ext
5365  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5366  (eval "$ac_compile" 2>conftest.err)
5367  cat conftest.err >&5
5368  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5369  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5370  cat conftest.err >&5
5371  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5372  cat conftest.out >&5
5373  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5374    lt_cv_nm_interface="MS dumpbin"
5375  fi
5376  rm -f conftest*
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5379$as_echo "$lt_cv_nm_interface" >&6; }
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5382$as_echo_n "checking whether ln -s works... " >&6; }
5383LN_S=$as_ln_s
5384if test "$LN_S" = "ln -s"; then
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386$as_echo "yes" >&6; }
5387else
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5389$as_echo "no, using $LN_S" >&6; }
5390fi
5391
5392# find the maximum length of command line arguments
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5394$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5395if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398    i=0
5399  teststring="ABCD"
5400
5401  case $build_os in
5402  msdosdjgpp*)
5403    # On DJGPP, this test can blow up pretty badly due to problems in libc
5404    # (any single argument exceeding 2000 bytes causes a buffer overrun
5405    # during glob expansion).  Even if it were fixed, the result of this
5406    # check would be larger than it should be.
5407    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5408    ;;
5409
5410  gnu*)
5411    # Under GNU Hurd, this test is not required because there is
5412    # no limit to the length of command line arguments.
5413    # Libtool will interpret -1 as no limit whatsoever
5414    lt_cv_sys_max_cmd_len=-1;
5415    ;;
5416
5417  cygwin* | mingw* | cegcc*)
5418    # On Win9x/ME, this test blows up -- it succeeds, but takes
5419    # about 5 minutes as the teststring grows exponentially.
5420    # Worse, since 9x/ME are not pre-emptively multitasking,
5421    # you end up with a "frozen" computer, even though with patience
5422    # the test eventually succeeds (with a max line length of 256k).
5423    # Instead, let's just punt: use the minimum linelength reported by
5424    # all of the supported platforms: 8192 (on NT/2K/XP).
5425    lt_cv_sys_max_cmd_len=8192;
5426    ;;
5427
5428  mint*)
5429    # On MiNT this can take a long time and run out of memory.
5430    lt_cv_sys_max_cmd_len=8192;
5431    ;;
5432
5433  amigaos*)
5434    # On AmigaOS with pdksh, this test takes hours, literally.
5435    # So we just punt and use a minimum line length of 8192.
5436    lt_cv_sys_max_cmd_len=8192;
5437    ;;
5438
5439  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5440    # This has been around since 386BSD, at least.  Likely further.
5441    if test -x /sbin/sysctl; then
5442      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5443    elif test -x /usr/sbin/sysctl; then
5444      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5445    else
5446      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5447    fi
5448    # And add a safety zone
5449    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5450    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5451    ;;
5452
5453  interix*)
5454    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5455    lt_cv_sys_max_cmd_len=196608
5456    ;;
5457
5458  osf*)
5459    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5460    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5461    # nice to cause kernel panics so lets avoid the loop below.
5462    # First set a reasonable default.
5463    lt_cv_sys_max_cmd_len=16384
5464    #
5465    if test -x /sbin/sysconfig; then
5466      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5467        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5468      esac
5469    fi
5470    ;;
5471  sco3.2v5*)
5472    lt_cv_sys_max_cmd_len=102400
5473    ;;
5474  sysv5* | sco5v6* | sysv4.2uw2*)
5475    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5476    if test -n "$kargmax"; then
5477      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5478    else
5479      lt_cv_sys_max_cmd_len=32768
5480    fi
5481    ;;
5482  *)
5483    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5484    if test -n "$lt_cv_sys_max_cmd_len"; then
5485      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5486      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5487    else
5488      # Make teststring a little bigger before we do anything with it.
5489      # a 1K string should be a reasonable start.
5490      for i in 1 2 3 4 5 6 7 8 ; do
5491        teststring=$teststring$teststring
5492      done
5493      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5494      # If test is not a shell built-in, we'll probably end up computing a
5495      # maximum length that is only half of the actual maximum length, but
5496      # we can't tell.
5497      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5498	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5499	      test $i != 17 # 1/2 MB should be enough
5500      do
5501        i=`expr $i + 1`
5502        teststring=$teststring$teststring
5503      done
5504      # Only check the string length outside the loop.
5505      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5506      teststring=
5507      # Add a significant safety factor because C++ compilers can tack on
5508      # massive amounts of additional arguments before passing them to the
5509      # linker.  It appears as though 1/2 is a usable value.
5510      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5511    fi
5512    ;;
5513  esac
5514
5515fi
5516
5517if test -n $lt_cv_sys_max_cmd_len ; then
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5519$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5520else
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5522$as_echo "none" >&6; }
5523fi
5524max_cmd_len=$lt_cv_sys_max_cmd_len
5525
5526
5527
5528
5529
5530
5531: ${CP="cp -f"}
5532: ${MV="mv -f"}
5533: ${RM="rm -f"}
5534
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5536$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5537# Try some XSI features
5538xsi_shell=no
5539( _lt_dummy="a/b/c"
5540  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5541      = c,a/b,, \
5542    && eval 'test $(( 1 + 1 )) -eq 2 \
5543    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5544  && xsi_shell=yes
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5546$as_echo "$xsi_shell" >&6; }
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5550$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5551lt_shell_append=no
5552( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5553    >/dev/null 2>&1 \
5554  && lt_shell_append=yes
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5556$as_echo "$lt_shell_append" >&6; }
5557
5558
5559if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5560  lt_unset=unset
5561else
5562  lt_unset=false
5563fi
5564
5565
5566
5567
5568
5569# test EBCDIC or ASCII
5570case `echo X|tr X '\101'` in
5571 A) # ASCII based system
5572    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5573  lt_SP2NL='tr \040 \012'
5574  lt_NL2SP='tr \015\012 \040\040'
5575  ;;
5576 *) # EBCDIC based system
5577  lt_SP2NL='tr \100 \n'
5578  lt_NL2SP='tr \r\n \100\100'
5579  ;;
5580esac
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591$as_echo_n "checking for $LD option to reload object files... " >&6; }
5592if test "${lt_cv_ld_reload_flag+set}" = set; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  lt_cv_ld_reload_flag='-r'
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5598$as_echo "$lt_cv_ld_reload_flag" >&6; }
5599reload_flag=$lt_cv_ld_reload_flag
5600case $reload_flag in
5601"" | " "*) ;;
5602*) reload_flag=" $reload_flag" ;;
5603esac
5604reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605case $host_os in
5606  darwin*)
5607    if test "$GCC" = yes; then
5608      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5609    else
5610      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5611    fi
5612    ;;
5613esac
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623if test -n "$ac_tool_prefix"; then
5624  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5625set dummy ${ac_tool_prefix}objdump; ac_word=$2
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627$as_echo_n "checking for $ac_word... " >&6; }
5628if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  if test -n "$OBJDUMP"; then
5632  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639    for ac_exec_ext in '' $ac_executable_extensions; do
5640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643    break 2
5644  fi
5645done
5646  done
5647IFS=$as_save_IFS
5648
5649fi
5650fi
5651OBJDUMP=$ac_cv_prog_OBJDUMP
5652if test -n "$OBJDUMP"; then
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5654$as_echo "$OBJDUMP" >&6; }
5655else
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657$as_echo "no" >&6; }
5658fi
5659
5660
5661fi
5662if test -z "$ac_cv_prog_OBJDUMP"; then
5663  ac_ct_OBJDUMP=$OBJDUMP
5664  # Extract the first word of "objdump", so it can be a program name with args.
5665set dummy objdump; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  if test -n "$ac_ct_OBJDUMP"; then
5672  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  test -z "$as_dir" && as_dir=.
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686  done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5692if test -n "$ac_ct_OBJDUMP"; then
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5694$as_echo "$ac_ct_OBJDUMP" >&6; }
5695else
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700  if test "x$ac_ct_OBJDUMP" = x; then
5701    OBJDUMP="false"
5702  else
5703    case $cross_compiling:$ac_tool_warned in
5704yes:)
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707ac_tool_warned=yes ;;
5708esac
5709    OBJDUMP=$ac_ct_OBJDUMP
5710  fi
5711else
5712  OBJDUMP="$ac_cv_prog_OBJDUMP"
5713fi
5714
5715test -z "$OBJDUMP" && OBJDUMP=objdump
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5726$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5727if test "${lt_cv_deplibs_check_method+set}" = set; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  lt_cv_file_magic_cmd='$MAGIC_CMD'
5731lt_cv_file_magic_test_file=
5732lt_cv_deplibs_check_method='unknown'
5733# Need to set the preceding variable on all platforms that support
5734# interlibrary dependencies.
5735# 'none' -- dependencies not supported.
5736# `unknown' -- same as none, but documents that we really don't know.
5737# 'pass_all' -- all dependencies passed with no checks.
5738# 'test_compile' -- check by making test program.
5739# 'file_magic [[regex]]' -- check by looking for files in library path
5740# which responds to the $file_magic_cmd with a given extended regex.
5741# If you have `file' or equivalent on your system and you're not sure
5742# whether `pass_all' will *always* work, you probably want this one.
5743
5744case $host_os in
5745aix[4-9]*)
5746  lt_cv_deplibs_check_method=pass_all
5747  ;;
5748
5749beos*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753bsdi[45]*)
5754  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5755  lt_cv_file_magic_cmd='/usr/bin/file -L'
5756  lt_cv_file_magic_test_file=/shlib/libc.so
5757  ;;
5758
5759cygwin*)
5760  # func_win32_libid is a shell function defined in ltmain.sh
5761  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5762  lt_cv_file_magic_cmd='func_win32_libid'
5763  ;;
5764
5765mingw* | pw32*)
5766  # Base MSYS/MinGW do not provide the 'file' command needed by
5767  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5768  # unless we find 'file', for example because we are cross-compiling.
5769  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5770  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5771    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5772    lt_cv_file_magic_cmd='func_win32_libid'
5773  else
5774    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5775    lt_cv_file_magic_cmd='$OBJDUMP -f'
5776  fi
5777  ;;
5778
5779cegcc*)
5780  # use the weaker test based on 'objdump'. See mingw*.
5781  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5782  lt_cv_file_magic_cmd='$OBJDUMP -f'
5783  ;;
5784
5785darwin* | rhapsody*)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789freebsd* | dragonfly*)
5790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791    case $host_cpu in
5792    i*86 )
5793      # Not sure whether the presence of OpenBSD here was a mistake.
5794      # Let's accept both of them until this is cleared up.
5795      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5796      lt_cv_file_magic_cmd=/usr/bin/file
5797      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5798      ;;
5799    esac
5800  else
5801    lt_cv_deplibs_check_method=pass_all
5802  fi
5803  ;;
5804
5805gnu*)
5806  lt_cv_deplibs_check_method=pass_all
5807  ;;
5808
5809haiku*)
5810  lt_cv_deplibs_check_method=pass_all
5811  ;;
5812
5813hpux10.20* | hpux11*)
5814  lt_cv_file_magic_cmd=/usr/bin/file
5815  case $host_cpu in
5816  ia64*)
5817    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5818    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5819    ;;
5820  hppa*64*)
5821    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]'
5822    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5823    ;;
5824  *)
5825    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5826    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5827    ;;
5828  esac
5829  ;;
5830
5831interix[3-9]*)
5832  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5833  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5834  ;;
5835
5836irix5* | irix6* | nonstopux*)
5837  case $LD in
5838  *-32|*"-32 ") libmagic=32-bit;;
5839  *-n32|*"-n32 ") libmagic=N32;;
5840  *-64|*"-64 ") libmagic=64-bit;;
5841  *) libmagic=never-match;;
5842  esac
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846# This must be Linux ELF.
5847linux* | k*bsd*-gnu | kopensolaris*-gnu)
5848  lt_cv_deplibs_check_method=pass_all
5849  ;;
5850
5851netbsd*)
5852  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5853    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5854  else
5855    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5856  fi
5857  ;;
5858
5859newos6*)
5860  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5861  lt_cv_file_magic_cmd=/usr/bin/file
5862  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5863  ;;
5864
5865*nto* | *qnx*)
5866  lt_cv_deplibs_check_method=pass_all
5867  ;;
5868
5869openbsd*)
5870  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5871    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5872  else
5873    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5874  fi
5875  ;;
5876
5877osf3* | osf4* | osf5*)
5878  lt_cv_deplibs_check_method=pass_all
5879  ;;
5880
5881rdos*)
5882  lt_cv_deplibs_check_method=pass_all
5883  ;;
5884
5885solaris*)
5886  lt_cv_deplibs_check_method=pass_all
5887  ;;
5888
5889sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5890  lt_cv_deplibs_check_method=pass_all
5891  ;;
5892
5893sysv4 | sysv4.3*)
5894  case $host_vendor in
5895  motorola)
5896    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]'
5897    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5898    ;;
5899  ncr)
5900    lt_cv_deplibs_check_method=pass_all
5901    ;;
5902  sequent)
5903    lt_cv_file_magic_cmd='/bin/file'
5904    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5905    ;;
5906  sni)
5907    lt_cv_file_magic_cmd='/bin/file'
5908    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5909    lt_cv_file_magic_test_file=/lib/libc.so
5910    ;;
5911  siemens)
5912    lt_cv_deplibs_check_method=pass_all
5913    ;;
5914  pc)
5915    lt_cv_deplibs_check_method=pass_all
5916    ;;
5917  esac
5918  ;;
5919
5920tpf*)
5921  lt_cv_deplibs_check_method=pass_all
5922  ;;
5923esac
5924
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5927$as_echo "$lt_cv_deplibs_check_method" >&6; }
5928file_magic_cmd=$lt_cv_file_magic_cmd
5929deplibs_check_method=$lt_cv_deplibs_check_method
5930test -z "$deplibs_check_method" && deplibs_check_method=unknown
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943if test -n "$ac_tool_prefix"; then
5944  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}ar; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if test "${ac_cv_prog_AR+set}" = set; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$AR"; then
5952  ac_cv_prog_AR="$AR" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961    ac_cv_prog_AR="${ac_tool_prefix}ar"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971AR=$ac_cv_prog_AR
5972if test -n "$AR"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5974$as_echo "$AR" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981fi
5982if test -z "$ac_cv_prog_AR"; then
5983  ac_ct_AR=$AR
5984  # Extract the first word of "ar", so it can be a program name with args.
5985set dummy ar; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
5988if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991  if test -n "$ac_ct_AR"; then
5992  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997  IFS=$as_save_IFS
5998  test -z "$as_dir" && as_dir=.
5999    for ac_exec_ext in '' $ac_executable_extensions; do
6000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001    ac_cv_prog_ac_ct_AR="ar"
6002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003    break 2
6004  fi
6005done
6006  done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012if test -n "$ac_ct_AR"; then
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6014$as_echo "$ac_ct_AR" >&6; }
6015else
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
6018fi
6019
6020  if test "x$ac_ct_AR" = x; then
6021    AR="false"
6022  else
6023    case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027ac_tool_warned=yes ;;
6028esac
6029    AR=$ac_ct_AR
6030  fi
6031else
6032  AR="$ac_cv_prog_AR"
6033fi
6034
6035test -z "$AR" && AR=ar
6036test -z "$AR_FLAGS" && AR_FLAGS=cru
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048if test -n "$ac_tool_prefix"; then
6049  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}strip; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_STRIP+set}" = set; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$STRIP"; then
6057  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076STRIP=$ac_cv_prog_STRIP
6077if test -n "$STRIP"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6079$as_echo "$STRIP" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086fi
6087if test -z "$ac_cv_prog_STRIP"; then
6088  ac_ct_STRIP=$STRIP
6089  # Extract the first word of "strip", so it can be a program name with args.
6090set dummy strip; ac_word=$2
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092$as_echo_n "checking for $ac_word... " >&6; }
6093if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  if test -n "$ac_ct_STRIP"; then
6097  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104    for ac_exec_ext in '' $ac_executable_extensions; do
6105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106    ac_cv_prog_ac_ct_STRIP="strip"
6107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111  done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117if test -n "$ac_ct_STRIP"; then
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6119$as_echo "$ac_ct_STRIP" >&6; }
6120else
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125  if test "x$ac_ct_STRIP" = x; then
6126    STRIP=":"
6127  else
6128    case $cross_compiling:$ac_tool_warned in
6129yes:)
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132ac_tool_warned=yes ;;
6133esac
6134    STRIP=$ac_ct_STRIP
6135  fi
6136else
6137  STRIP="$ac_cv_prog_STRIP"
6138fi
6139
6140test -z "$STRIP" && STRIP=:
6141
6142
6143
6144
6145
6146
6147if test -n "$ac_tool_prefix"; then
6148  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6149set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_RANLIB+set}" = set; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$RANLIB"; then
6156  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175RANLIB=$ac_cv_prog_RANLIB
6176if test -n "$RANLIB"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6178$as_echo "$RANLIB" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185fi
6186if test -z "$ac_cv_prog_RANLIB"; then
6187  ac_ct_RANLIB=$RANLIB
6188  # Extract the first word of "ranlib", so it can be a program name with args.
6189set dummy ranlib; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$ac_ct_RANLIB"; then
6196  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205    ac_cv_prog_ac_ct_RANLIB="ranlib"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6216if test -n "$ac_ct_RANLIB"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6218$as_echo "$ac_ct_RANLIB" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224  if test "x$ac_ct_RANLIB" = x; then
6225    RANLIB=":"
6226  else
6227    case $cross_compiling:$ac_tool_warned in
6228yes:)
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231ac_tool_warned=yes ;;
6232esac
6233    RANLIB=$ac_ct_RANLIB
6234  fi
6235else
6236  RANLIB="$ac_cv_prog_RANLIB"
6237fi
6238
6239test -z "$RANLIB" && RANLIB=:
6240
6241
6242
6243
6244
6245
6246# Determine commands to create old-style static archives.
6247old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6248old_postinstall_cmds='chmod 644 $oldlib'
6249old_postuninstall_cmds=
6250
6251if test -n "$RANLIB"; then
6252  case $host_os in
6253  openbsd*)
6254    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6255    ;;
6256  *)
6257    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6258    ;;
6259  esac
6260  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6261fi
6262
6263case $host_os in
6264  darwin*)
6265    lock_old_archive_extraction=yes ;;
6266  *)
6267    lock_old_archive_extraction=no ;;
6268esac
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308# If no C compiler was specified, use CC.
6309LTCC=${LTCC-"$CC"}
6310
6311# If no C compiler flags were specified, use CFLAGS.
6312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6313
6314# Allow CC to be a program name with arguments.
6315compiler=$CC
6316
6317
6318# Check for command to grab the raw symbol name followed by C symbol from nm.
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6320$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324
6325# These are sane defaults that work on at least a few old systems.
6326# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6327
6328# Character class describing NM global symbol codes.
6329symcode='[BCDEGRST]'
6330
6331# Regexp to match symbols that can be accessed directly from C.
6332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333
6334# Define system-specific variables.
6335case $host_os in
6336aix*)
6337  symcode='[BCDT]'
6338  ;;
6339cygwin* | mingw* | pw32* | cegcc*)
6340  symcode='[ABCDGISTW]'
6341  ;;
6342hpux*)
6343  if test "$host_cpu" = ia64; then
6344    symcode='[ABCDEGRST]'
6345  fi
6346  ;;
6347irix* | nonstopux*)
6348  symcode='[BCDEGRST]'
6349  ;;
6350osf*)
6351  symcode='[BCDEGQRST]'
6352  ;;
6353solaris*)
6354  symcode='[BDRT]'
6355  ;;
6356sco3.2v5*)
6357  symcode='[DT]'
6358  ;;
6359sysv4.2uw2*)
6360  symcode='[DT]'
6361  ;;
6362sysv5* | sco5v6* | unixware* | OpenUNIX*)
6363  symcode='[ABDT]'
6364  ;;
6365sysv4)
6366  symcode='[DFNSTU]'
6367  ;;
6368esac
6369
6370# If we're using GNU nm, then use its standard symbol codes.
6371case `$NM -V 2>&1` in
6372*GNU* | *'with BFD'*)
6373  symcode='[ABCDGIRSTW]' ;;
6374esac
6375
6376# Transform an extracted symbol line into a proper C declaration.
6377# Some systems (esp. on ia64) link data and code symbols differently,
6378# so use this general approach.
6379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380
6381# Transform an extracted symbol line into symbol name and symbol address
6382lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6383lt_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'"
6384
6385# Handle CRLF in mingw tool chain
6386opt_cr=
6387case $build_os in
6388mingw*)
6389  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6390  ;;
6391esac
6392
6393# Try without a prefix underscore, then with it.
6394for ac_symprfx in "" "_"; do
6395
6396  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6397  symxfrm="\\1 $ac_symprfx\\2 \\2"
6398
6399  # Write the raw and C identifiers.
6400  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6401    # Fake it for dumpbin and say T for any non-static function
6402    # and D for any global variable.
6403    # Also find C++ and __fastcall symbols from MSVC++,
6404    # which start with @ or ?.
6405    lt_cv_sys_global_symbol_pipe="$AWK '"\
6406"     {last_section=section; section=\$ 3};"\
6407"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6408"     \$ 0!~/External *\|/{next};"\
6409"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6410"     {if(hide[section]) next};"\
6411"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6412"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6413"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6414"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6415"     ' prfx=^$ac_symprfx"
6416  else
6417    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6418  fi
6419
6420  # Check to see that the pipe works correctly.
6421  pipe_works=no
6422
6423  rm -f conftest*
6424  cat > conftest.$ac_ext <<_LT_EOF
6425#ifdef __cplusplus
6426extern "C" {
6427#endif
6428char nm_test_var;
6429void nm_test_func(void);
6430void nm_test_func(void){}
6431#ifdef __cplusplus
6432}
6433#endif
6434int main(){nm_test_var='a';nm_test_func();return(0);}
6435_LT_EOF
6436
6437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438  (eval $ac_compile) 2>&5
6439  ac_status=$?
6440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441  test $ac_status = 0; }; then
6442    # Now try to grab the symbols.
6443    nlist=conftest.nm
6444    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6445  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6446  ac_status=$?
6447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448  test $ac_status = 0; } && test -s "$nlist"; then
6449      # Try sorting and uniquifying the output.
6450      if sort "$nlist" | uniq > "$nlist"T; then
6451	mv -f "$nlist"T "$nlist"
6452      else
6453	rm -f "$nlist"T
6454      fi
6455
6456      # Make sure that we snagged all the symbols we need.
6457      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459	  cat <<_LT_EOF > conftest.$ac_ext
6460#ifdef __cplusplus
6461extern "C" {
6462#endif
6463
6464_LT_EOF
6465	  # Now generate the symbol file.
6466	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6467
6468	  cat <<_LT_EOF >> conftest.$ac_ext
6469
6470/* The mapping between symbol names and symbols.  */
6471const struct {
6472  const char *name;
6473  void       *address;
6474}
6475lt__PROGRAM__LTX_preloaded_symbols[] =
6476{
6477  { "@PROGRAM@", (void *) 0 },
6478_LT_EOF
6479	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6480	  cat <<\_LT_EOF >> conftest.$ac_ext
6481  {0, (void *) 0}
6482};
6483
6484/* This works around a problem in FreeBSD linker */
6485#ifdef FREEBSD_WORKAROUND
6486static const void *lt_preloaded_setup() {
6487  return lt__PROGRAM__LTX_preloaded_symbols;
6488}
6489#endif
6490
6491#ifdef __cplusplus
6492}
6493#endif
6494_LT_EOF
6495	  # Now try linking the two files.
6496	  mv conftest.$ac_objext conftstm.$ac_objext
6497	  lt_save_LIBS="$LIBS"
6498	  lt_save_CFLAGS="$CFLAGS"
6499	  LIBS="conftstm.$ac_objext"
6500	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6501	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6502  (eval $ac_link) 2>&5
6503  ac_status=$?
6504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6506	    pipe_works=yes
6507	  fi
6508	  LIBS="$lt_save_LIBS"
6509	  CFLAGS="$lt_save_CFLAGS"
6510	else
6511	  echo "cannot find nm_test_func in $nlist" >&5
6512	fi
6513      else
6514	echo "cannot find nm_test_var in $nlist" >&5
6515      fi
6516    else
6517      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6518    fi
6519  else
6520    echo "$progname: failed program was:" >&5
6521    cat conftest.$ac_ext >&5
6522  fi
6523  rm -rf conftest* conftst*
6524
6525  # Do not use the global_symbol_pipe unless it works.
6526  if test "$pipe_works" = yes; then
6527    break
6528  else
6529    lt_cv_sys_global_symbol_pipe=
6530  fi
6531done
6532
6533fi
6534
6535if test -z "$lt_cv_sys_global_symbol_pipe"; then
6536  lt_cv_sys_global_symbol_to_cdecl=
6537fi
6538if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6540$as_echo "failed" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6543$as_echo "ok" >&6; }
6544fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568# Check whether --enable-libtool-lock was given.
6569if test "${enable_libtool_lock+set}" = set; then :
6570  enableval=$enable_libtool_lock;
6571fi
6572
6573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6574
6575# Some flags need to be propagated to the compiler or linker for good
6576# libtool support.
6577case $host in
6578ia64-*-hpux*)
6579  # Find out which ABI we are using.
6580  echo 'int i;' > conftest.$ac_ext
6581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582  (eval $ac_compile) 2>&5
6583  ac_status=$?
6584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585  test $ac_status = 0; }; then
6586    case `/usr/bin/file conftest.$ac_objext` in
6587      *ELF-32*)
6588	HPUX_IA64_MODE="32"
6589	;;
6590      *ELF-64*)
6591	HPUX_IA64_MODE="64"
6592	;;
6593    esac
6594  fi
6595  rm -rf conftest*
6596  ;;
6597*-*-irix6*)
6598  # Find out which ABI we are using.
6599  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6600  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6601  (eval $ac_compile) 2>&5
6602  ac_status=$?
6603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6604  test $ac_status = 0; }; then
6605    if test "$lt_cv_prog_gnu_ld" = yes; then
6606      case `/usr/bin/file conftest.$ac_objext` in
6607	*32-bit*)
6608	  LD="${LD-ld} -melf32bsmip"
6609	  ;;
6610	*N32*)
6611	  LD="${LD-ld} -melf32bmipn32"
6612	  ;;
6613	*64-bit*)
6614	  LD="${LD-ld} -melf64bmip"
6615	;;
6616      esac
6617    else
6618      case `/usr/bin/file conftest.$ac_objext` in
6619	*32-bit*)
6620	  LD="${LD-ld} -32"
6621	  ;;
6622	*N32*)
6623	  LD="${LD-ld} -n32"
6624	  ;;
6625	*64-bit*)
6626	  LD="${LD-ld} -64"
6627	  ;;
6628      esac
6629    fi
6630  fi
6631  rm -rf conftest*
6632  ;;
6633
6634x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6635s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6636  # Find out which ABI we are using.
6637  echo 'int i;' > conftest.$ac_ext
6638  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639  (eval $ac_compile) 2>&5
6640  ac_status=$?
6641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642  test $ac_status = 0; }; then
6643    case `/usr/bin/file conftest.o` in
6644      *32-bit*)
6645	case $host in
6646	  x86_64-*kfreebsd*-gnu)
6647	    LD="${LD-ld} -m elf_i386_fbsd"
6648	    ;;
6649	  x86_64-*linux*)
6650	    case `/usr/bin/file conftest.o` in
6651	      *x86-64*)
6652		LD="${LD-ld} -m elf32_x86_64"
6653		;;
6654	      *)
6655		LD="${LD-ld} -m elf_i386"
6656		;;
6657	    esac
6658	    ;;
6659	  powerpc64le-*linux*)
6660	    LD="${LD-ld} -m elf32lppclinux"
6661	    ;;
6662	  powerpc64-*linux*)
6663	    LD="${LD-ld} -m elf32ppclinux"
6664	    ;;
6665	  s390x-*linux*)
6666	    LD="${LD-ld} -m elf_s390"
6667	    ;;
6668	  sparc64-*linux*)
6669	    LD="${LD-ld} -m elf32_sparc"
6670	    ;;
6671	esac
6672	;;
6673      *64-bit*)
6674	case $host in
6675	  x86_64-*kfreebsd*-gnu)
6676	    LD="${LD-ld} -m elf_x86_64_fbsd"
6677	    ;;
6678	  x86_64-*linux*)
6679	    LD="${LD-ld} -m elf_x86_64"
6680	    ;;
6681	  powerpcle-*linux*)
6682	    LD="${LD-ld} -m elf64lppc"
6683	    ;;
6684	  powerpc-*linux*)
6685	    LD="${LD-ld} -m elf64ppc"
6686	    ;;
6687	  s390*-*linux*|s390*-*tpf*)
6688	    LD="${LD-ld} -m elf64_s390"
6689	    ;;
6690	  sparc*-*linux*)
6691	    LD="${LD-ld} -m elf64_sparc"
6692	    ;;
6693	esac
6694	;;
6695    esac
6696  fi
6697  rm -rf conftest*
6698  ;;
6699
6700*-*-sco3.2v5*)
6701  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6702  SAVE_CFLAGS="$CFLAGS"
6703  CFLAGS="$CFLAGS -belf"
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6705$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6706if test "${lt_cv_cc_needs_belf+set}" = set; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  ac_ext=c
6710ac_cpp='$CPP $CPPFLAGS'
6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
6715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717
6718int
6719main ()
6720{
6721
6722  ;
6723  return 0;
6724}
6725_ACEOF
6726if ac_fn_c_try_link "$LINENO"; then :
6727  lt_cv_cc_needs_belf=yes
6728else
6729  lt_cv_cc_needs_belf=no
6730fi
6731rm -f core conftest.err conftest.$ac_objext \
6732    conftest$ac_exeext conftest.$ac_ext
6733     ac_ext=c
6734ac_cpp='$CPP $CPPFLAGS'
6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738
6739fi
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6741$as_echo "$lt_cv_cc_needs_belf" >&6; }
6742  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6743    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6744    CFLAGS="$SAVE_CFLAGS"
6745  fi
6746  ;;
6747sparc*-*solaris*)
6748  # Find out which ABI we are using.
6749  echo 'int i;' > conftest.$ac_ext
6750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6751  (eval $ac_compile) 2>&5
6752  ac_status=$?
6753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754  test $ac_status = 0; }; then
6755    case `/usr/bin/file conftest.o` in
6756    *64-bit*)
6757      case $lt_cv_prog_gnu_ld in
6758      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6759      *)
6760	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6761	  LD="${LD-ld} -64"
6762	fi
6763	;;
6764      esac
6765      ;;
6766    esac
6767  fi
6768  rm -rf conftest*
6769  ;;
6770esac
6771
6772need_locks="$enable_libtool_lock"
6773
6774
6775  case $host_os in
6776    rhapsody* | darwin*)
6777    if test -n "$ac_tool_prefix"; then
6778  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  if test -n "$DSYMUTIL"; then
6786  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805DSYMUTIL=$ac_cv_prog_DSYMUTIL
6806if test -n "$DSYMUTIL"; then
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6808$as_echo "$DSYMUTIL" >&6; }
6809else
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_DSYMUTIL"; then
6817  ac_ct_DSYMUTIL=$DSYMUTIL
6818  # Extract the first word of "dsymutil", so it can be a program name with args.
6819set dummy dsymutil; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  if test -n "$ac_ct_DSYMUTIL"; then
6826  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833    for ac_exec_ext in '' $ac_executable_extensions; do
6834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840  done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6846if test -n "$ac_ct_DSYMUTIL"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6848$as_echo "$ac_ct_DSYMUTIL" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854  if test "x$ac_ct_DSYMUTIL" = x; then
6855    DSYMUTIL=":"
6856  else
6857    case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863    DSYMUTIL=$ac_ct_DSYMUTIL
6864  fi
6865else
6866  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6867fi
6868
6869    if test -n "$ac_tool_prefix"; then
6870  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  if test -n "$NMEDIT"; then
6878  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889    break 2
6890  fi
6891done
6892  done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897NMEDIT=$ac_cv_prog_NMEDIT
6898if test -n "$NMEDIT"; then
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6900$as_echo "$NMEDIT" >&6; }
6901else
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_NMEDIT"; then
6909  ac_ct_NMEDIT=$NMEDIT
6910  # Extract the first word of "nmedit", so it can be a program name with args.
6911set dummy nmedit; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$ac_ct_NMEDIT"; then
6918  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6938if test -n "$ac_ct_NMEDIT"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6940$as_echo "$ac_ct_NMEDIT" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946  if test "x$ac_ct_NMEDIT" = x; then
6947    NMEDIT=":"
6948  else
6949    case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955    NMEDIT=$ac_ct_NMEDIT
6956  fi
6957else
6958  NMEDIT="$ac_cv_prog_NMEDIT"
6959fi
6960
6961    if test -n "$ac_tool_prefix"; then
6962  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}lipo; ac_word=$2
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965$as_echo_n "checking for $ac_word... " >&6; }
6966if test "${ac_cv_prog_LIPO+set}" = set; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  if test -n "$LIPO"; then
6970  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975  IFS=$as_save_IFS
6976  test -z "$as_dir" && as_dir=.
6977    for ac_exec_ext in '' $ac_executable_extensions; do
6978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981    break 2
6982  fi
6983done
6984  done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989LIPO=$ac_cv_prog_LIPO
6990if test -n "$LIPO"; then
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6992$as_echo "$LIPO" >&6; }
6993else
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995$as_echo "no" >&6; }
6996fi
6997
6998
6999fi
7000if test -z "$ac_cv_prog_LIPO"; then
7001  ac_ct_LIPO=$LIPO
7002  # Extract the first word of "lipo", so it can be a program name with args.
7003set dummy lipo; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  if test -n "$ac_ct_LIPO"; then
7010  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017    for ac_exec_ext in '' $ac_executable_extensions; do
7018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019    ac_cv_prog_ac_ct_LIPO="lipo"
7020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021    break 2
7022  fi
7023done
7024  done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7030if test -n "$ac_ct_LIPO"; then
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7032$as_echo "$ac_ct_LIPO" >&6; }
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037
7038  if test "x$ac_ct_LIPO" = x; then
7039    LIPO=":"
7040  else
7041    case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045ac_tool_warned=yes ;;
7046esac
7047    LIPO=$ac_ct_LIPO
7048  fi
7049else
7050  LIPO="$ac_cv_prog_LIPO"
7051fi
7052
7053    if test -n "$ac_tool_prefix"; then
7054  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}otool; ac_word=$2
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if test "${ac_cv_prog_OTOOL+set}" = set; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  if test -n "$OTOOL"; then
7062  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067  IFS=$as_save_IFS
7068  test -z "$as_dir" && as_dir=.
7069    for ac_exec_ext in '' $ac_executable_extensions; do
7070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073    break 2
7074  fi
7075done
7076  done
7077IFS=$as_save_IFS
7078
7079fi
7080fi
7081OTOOL=$ac_cv_prog_OTOOL
7082if test -n "$OTOOL"; then
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7084$as_echo "$OTOOL" >&6; }
7085else
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
7088fi
7089
7090
7091fi
7092if test -z "$ac_cv_prog_OTOOL"; then
7093  ac_ct_OTOOL=$OTOOL
7094  # Extract the first word of "otool", so it can be a program name with args.
7095set dummy otool; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  if test -n "$ac_ct_OTOOL"; then
7102  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107  IFS=$as_save_IFS
7108  test -z "$as_dir" && as_dir=.
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111    ac_cv_prog_ac_ct_OTOOL="otool"
7112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7122if test -n "$ac_ct_OTOOL"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7124$as_echo "$ac_ct_OTOOL" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130  if test "x$ac_ct_OTOOL" = x; then
7131    OTOOL=":"
7132  else
7133    case $cross_compiling:$ac_tool_warned in
7134yes:)
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137ac_tool_warned=yes ;;
7138esac
7139    OTOOL=$ac_ct_OTOOL
7140  fi
7141else
7142  OTOOL="$ac_cv_prog_OTOOL"
7143fi
7144
7145    if test -n "$ac_tool_prefix"; then
7146  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7147set dummy ${ac_tool_prefix}otool64; ac_word=$2
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
7150if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7151  $as_echo_n "(cached) " >&6
7152else
7153  if test -n "$OTOOL64"; then
7154  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161    for ac_exec_ext in '' $ac_executable_extensions; do
7162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168  done
7169IFS=$as_save_IFS
7170
7171fi
7172fi
7173OTOOL64=$ac_cv_prog_OTOOL64
7174if test -n "$OTOOL64"; then
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7176$as_echo "$OTOOL64" >&6; }
7177else
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
7180fi
7181
7182
7183fi
7184if test -z "$ac_cv_prog_OTOOL64"; then
7185  ac_ct_OTOOL64=$OTOOL64
7186  # Extract the first word of "otool64", so it can be a program name with args.
7187set dummy otool64; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  if test -n "$ac_ct_OTOOL64"; then
7194  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201    for ac_exec_ext in '' $ac_executable_extensions; do
7202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203    ac_cv_prog_ac_ct_OTOOL64="otool64"
7204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208  done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7214if test -n "$ac_ct_OTOOL64"; then
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7216$as_echo "$ac_ct_OTOOL64" >&6; }
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222  if test "x$ac_ct_OTOOL64" = x; then
7223    OTOOL64=":"
7224  else
7225    case $cross_compiling:$ac_tool_warned in
7226yes:)
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229ac_tool_warned=yes ;;
7230esac
7231    OTOOL64=$ac_ct_OTOOL64
7232  fi
7233else
7234  OTOOL64="$ac_cv_prog_OTOOL64"
7235fi
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7264$as_echo_n "checking for -single_module linker flag... " >&6; }
7265if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  lt_cv_apple_cc_single_mod=no
7269      if test -z "${LT_MULTI_MODULE}"; then
7270	# By default we will add the -single_module flag. You can override
7271	# by either setting the environment variable LT_MULTI_MODULE
7272	# non-empty at configure time, or by adding -multi_module to the
7273	# link flags.
7274	rm -rf libconftest.dylib*
7275	echo "int foo(void){return 1;}" > conftest.c
7276	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7277-dynamiclib -Wl,-single_module conftest.c" >&5
7278	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7279	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7280        _lt_result=$?
7281	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7282	  lt_cv_apple_cc_single_mod=yes
7283	else
7284	  cat conftest.err >&5
7285	fi
7286	rm -rf libconftest.dylib*
7287	rm -f conftest.*
7288      fi
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7291$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7293$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7294if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  lt_cv_ld_exported_symbols_list=no
7298      save_LDFLAGS=$LDFLAGS
7299      echo "_main" > conftest.sym
7300      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7301      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303
7304int
7305main ()
7306{
7307
7308  ;
7309  return 0;
7310}
7311_ACEOF
7312if ac_fn_c_try_link "$LINENO"; then :
7313  lt_cv_ld_exported_symbols_list=yes
7314else
7315  lt_cv_ld_exported_symbols_list=no
7316fi
7317rm -f core conftest.err conftest.$ac_objext \
7318    conftest$ac_exeext conftest.$ac_ext
7319	LDFLAGS="$save_LDFLAGS"
7320
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7323$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7325$as_echo_n "checking for -force_load linker flag... " >&6; }
7326if test "${lt_cv_ld_force_load+set}" = set; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  lt_cv_ld_force_load=no
7330      cat > conftest.c << _LT_EOF
7331int forced_loaded() { return 2;}
7332_LT_EOF
7333      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7334      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7335      echo "$AR cru libconftest.a conftest.o" >&5
7336      $AR cru libconftest.a conftest.o 2>&5
7337      cat > conftest.c << _LT_EOF
7338int main() { return 0;}
7339_LT_EOF
7340      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7341      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7342      _lt_result=$?
7343      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7344	lt_cv_ld_force_load=yes
7345      else
7346	cat conftest.err >&5
7347      fi
7348        rm -f conftest.err libconftest.a conftest conftest.c
7349        rm -rf conftest.dSYM
7350
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7353$as_echo "$lt_cv_ld_force_load" >&6; }
7354    case $host_os in
7355    rhapsody* | darwin1.[012])
7356      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7357    darwin1.*)
7358      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7359    darwin*) # darwin 5.x on
7360      # if running on 10.5 or later, the deployment target defaults
7361      # to the OS version, if on x86, and 10.4, the deployment
7362      # target defaults to 10.4. Don't you love it?
7363      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7364	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7365	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7366	10.[012][,.]*)
7367	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7368	10.*)
7369	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7370      esac
7371    ;;
7372  esac
7373    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7374      _lt_dar_single_mod='$single_module'
7375    fi
7376    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7377      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7378    else
7379      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7380    fi
7381    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7382      _lt_dsymutil='~$DSYMUTIL $lib || :'
7383    else
7384      _lt_dsymutil=
7385    fi
7386    ;;
7387  esac
7388
7389ac_ext=c
7390ac_cpp='$CPP $CPPFLAGS'
7391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7395$as_echo_n "checking how to run the C preprocessor... " >&6; }
7396# On Suns, sometimes $CPP names a directory.
7397if test -n "$CPP" && test -d "$CPP"; then
7398  CPP=
7399fi
7400if test -z "$CPP"; then
7401  if test "${ac_cv_prog_CPP+set}" = set; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404      # Double quotes because CPP needs to be expanded
7405    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7406    do
7407      ac_preproc_ok=false
7408for ac_c_preproc_warn_flag in '' yes
7409do
7410  # Use a header file that comes with gcc, so configuring glibc
7411  # with a fresh cross-compiler works.
7412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413  # <limits.h> exists even on freestanding compilers.
7414  # On the NeXT, cc -E runs the code through the compiler's parser,
7415  # not just through cpp. "Syntax error" is here to catch this case.
7416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418#ifdef __STDC__
7419# include <limits.h>
7420#else
7421# include <assert.h>
7422#endif
7423		     Syntax error
7424_ACEOF
7425if ac_fn_c_try_cpp "$LINENO"; then :
7426
7427else
7428  # Broken: fails on valid input.
7429continue
7430fi
7431rm -f conftest.err conftest.$ac_ext
7432
7433  # OK, works on sane cases.  Now check whether nonexistent headers
7434  # can be detected and how.
7435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437#include <ac_nonexistent.h>
7438_ACEOF
7439if ac_fn_c_try_cpp "$LINENO"; then :
7440  # Broken: success on invalid input.
7441continue
7442else
7443  # Passes both tests.
7444ac_preproc_ok=:
7445break
7446fi
7447rm -f conftest.err conftest.$ac_ext
7448
7449done
7450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7451rm -f conftest.err conftest.$ac_ext
7452if $ac_preproc_ok; then :
7453  break
7454fi
7455
7456    done
7457    ac_cv_prog_CPP=$CPP
7458
7459fi
7460  CPP=$ac_cv_prog_CPP
7461else
7462  ac_cv_prog_CPP=$CPP
7463fi
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7465$as_echo "$CPP" >&6; }
7466ac_preproc_ok=false
7467for ac_c_preproc_warn_flag in '' yes
7468do
7469  # Use a header file that comes with gcc, so configuring glibc
7470  # with a fresh cross-compiler works.
7471  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7472  # <limits.h> exists even on freestanding compilers.
7473  # On the NeXT, cc -E runs the code through the compiler's parser,
7474  # not just through cpp. "Syntax error" is here to catch this case.
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477#ifdef __STDC__
7478# include <limits.h>
7479#else
7480# include <assert.h>
7481#endif
7482		     Syntax error
7483_ACEOF
7484if ac_fn_c_try_cpp "$LINENO"; then :
7485
7486else
7487  # Broken: fails on valid input.
7488continue
7489fi
7490rm -f conftest.err conftest.$ac_ext
7491
7492  # OK, works on sane cases.  Now check whether nonexistent headers
7493  # can be detected and how.
7494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496#include <ac_nonexistent.h>
7497_ACEOF
7498if ac_fn_c_try_cpp "$LINENO"; then :
7499  # Broken: success on invalid input.
7500continue
7501else
7502  # Passes both tests.
7503ac_preproc_ok=:
7504break
7505fi
7506rm -f conftest.err conftest.$ac_ext
7507
7508done
7509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7510rm -f conftest.err conftest.$ac_ext
7511if $ac_preproc_ok; then :
7512
7513else
7514  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7516as_fn_error "C preprocessor \"$CPP\" fails sanity check
7517See \`config.log' for more details." "$LINENO" 5; }
7518fi
7519
7520ac_ext=c
7521ac_cpp='$CPP $CPPFLAGS'
7522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525
7526
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7528$as_echo_n "checking for ANSI C header files... " >&6; }
7529if test "${ac_cv_header_stdc+set}" = set; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534#include <stdlib.h>
7535#include <stdarg.h>
7536#include <string.h>
7537#include <float.h>
7538
7539int
7540main ()
7541{
7542
7543  ;
7544  return 0;
7545}
7546_ACEOF
7547if ac_fn_c_try_compile "$LINENO"; then :
7548  ac_cv_header_stdc=yes
7549else
7550  ac_cv_header_stdc=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553
7554if test $ac_cv_header_stdc = yes; then
7555  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558#include <string.h>
7559
7560_ACEOF
7561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7562  $EGREP "memchr" >/dev/null 2>&1; then :
7563
7564else
7565  ac_cv_header_stdc=no
7566fi
7567rm -f conftest*
7568
7569fi
7570
7571if test $ac_cv_header_stdc = yes; then
7572  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575#include <stdlib.h>
7576
7577_ACEOF
7578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7579  $EGREP "free" >/dev/null 2>&1; then :
7580
7581else
7582  ac_cv_header_stdc=no
7583fi
7584rm -f conftest*
7585
7586fi
7587
7588if test $ac_cv_header_stdc = yes; then
7589  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7590  if test "$cross_compiling" = yes; then :
7591  :
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595#include <ctype.h>
7596#include <stdlib.h>
7597#if ((' ' & 0x0FF) == 0x020)
7598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7600#else
7601# define ISLOWER(c) \
7602		   (('a' <= (c) && (c) <= 'i') \
7603		     || ('j' <= (c) && (c) <= 'r') \
7604		     || ('s' <= (c) && (c) <= 'z'))
7605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7606#endif
7607
7608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7609int
7610main ()
7611{
7612  int i;
7613  for (i = 0; i < 256; i++)
7614    if (XOR (islower (i), ISLOWER (i))
7615	|| toupper (i) != TOUPPER (i))
7616      return 2;
7617  return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_run "$LINENO"; then :
7621
7622else
7623  ac_cv_header_stdc=no
7624fi
7625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7626  conftest.$ac_objext conftest.beam conftest.$ac_ext
7627fi
7628
7629fi
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7632$as_echo "$ac_cv_header_stdc" >&6; }
7633if test $ac_cv_header_stdc = yes; then
7634
7635$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7636
7637fi
7638
7639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7640for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7641		  inttypes.h stdint.h unistd.h
7642do :
7643  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7645"
7646eval as_val=\$$as_ac_Header
7647   if test "x$as_val" = x""yes; then :
7648  cat >>confdefs.h <<_ACEOF
7649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7650_ACEOF
7651
7652fi
7653
7654done
7655
7656
7657for ac_header in dlfcn.h
7658do :
7659  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660"
7661if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7662  cat >>confdefs.h <<_ACEOF
7663#define HAVE_DLFCN_H 1
7664_ACEOF
7665
7666fi
7667
7668done
7669
7670
7671
7672
7673
7674# Set options
7675
7676
7677
7678        enable_dlopen=no
7679
7680
7681  enable_win32_dll=no
7682
7683
7684            # Check whether --enable-shared was given.
7685if test "${enable_shared+set}" = set; then :
7686  enableval=$enable_shared; p=${PACKAGE-default}
7687    case $enableval in
7688    yes) enable_shared=yes ;;
7689    no) enable_shared=no ;;
7690    *)
7691      enable_shared=no
7692      # Look at the argument we got.  We use all the common list separators.
7693      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694      for pkg in $enableval; do
7695	IFS="$lt_save_ifs"
7696	if test "X$pkg" = "X$p"; then
7697	  enable_shared=yes
7698	fi
7699      done
7700      IFS="$lt_save_ifs"
7701      ;;
7702    esac
7703else
7704  enable_shared=yes
7705fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715  # Check whether --enable-static was given.
7716if test "${enable_static+set}" = set; then :
7717  enableval=$enable_static; p=${PACKAGE-default}
7718    case $enableval in
7719    yes) enable_static=yes ;;
7720    no) enable_static=no ;;
7721    *)
7722     enable_static=no
7723      # Look at the argument we got.  We use all the common list separators.
7724      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725      for pkg in $enableval; do
7726	IFS="$lt_save_ifs"
7727	if test "X$pkg" = "X$p"; then
7728	  enable_static=yes
7729	fi
7730      done
7731      IFS="$lt_save_ifs"
7732      ;;
7733    esac
7734else
7735  enable_static=yes
7736fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747# Check whether --with-pic was given.
7748if test "${with_pic+set}" = set; then :
7749  withval=$with_pic; pic_mode="$withval"
7750else
7751  pic_mode=default
7752fi
7753
7754
7755test -z "$pic_mode" && pic_mode=default
7756
7757
7758
7759
7760
7761
7762
7763  # Check whether --enable-fast-install was given.
7764if test "${enable_fast_install+set}" = set; then :
7765  enableval=$enable_fast_install; p=${PACKAGE-default}
7766    case $enableval in
7767    yes) enable_fast_install=yes ;;
7768    no) enable_fast_install=no ;;
7769    *)
7770      enable_fast_install=no
7771      # Look at the argument we got.  We use all the common list separators.
7772      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773      for pkg in $enableval; do
7774	IFS="$lt_save_ifs"
7775	if test "X$pkg" = "X$p"; then
7776	  enable_fast_install=yes
7777	fi
7778      done
7779      IFS="$lt_save_ifs"
7780      ;;
7781    esac
7782else
7783  enable_fast_install=yes
7784fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796# This can be used to rebuild libtool when needed
7797LIBTOOL_DEPS="$ltmain"
7798
7799# Always use our own libtool.
7800LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827test -z "$LN_S" && LN_S="ln -s"
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842if test -n "${ZSH_VERSION+set}" ; then
7843   setopt NO_GLOB_SUBST
7844fi
7845
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847$as_echo_n "checking for objdir... " >&6; }
7848if test "${lt_cv_objdir+set}" = set; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  rm -f .libs 2>/dev/null
7852mkdir .libs 2>/dev/null
7853if test -d .libs; then
7854  lt_cv_objdir=.libs
7855else
7856  # MS-DOS does not allow filenames that begin with a dot.
7857  lt_cv_objdir=_libs
7858fi
7859rmdir .libs 2>/dev/null
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862$as_echo "$lt_cv_objdir" >&6; }
7863objdir=$lt_cv_objdir
7864
7865
7866
7867
7868
7869cat >>confdefs.h <<_ACEOF
7870#define LT_OBJDIR "$lt_cv_objdir/"
7871_ACEOF
7872
7873
7874
7875
7876case $host_os in
7877aix3*)
7878  # AIX sometimes has problems with the GCC collect2 program.  For some
7879  # reason, if we set the COLLECT_NAMES environment variable, the problems
7880  # vanish in a puff of smoke.
7881  if test "X${COLLECT_NAMES+set}" != Xset; then
7882    COLLECT_NAMES=
7883    export COLLECT_NAMES
7884  fi
7885  ;;
7886esac
7887
7888# Global variables:
7889ofile=libtool
7890can_build_shared=yes
7891
7892# All known linkers require a `.a' archive for static linking (except MSVC,
7893# which needs '.lib').
7894libext=a
7895
7896with_gnu_ld="$lt_cv_prog_gnu_ld"
7897
7898old_CC="$CC"
7899old_CFLAGS="$CFLAGS"
7900
7901# Set sane defaults for various variables
7902test -z "$CC" && CC=cc
7903test -z "$LTCC" && LTCC=$CC
7904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7905test -z "$LD" && LD=ld
7906test -z "$ac_objext" && ac_objext=o
7907
7908for cc_temp in $compiler""; do
7909  case $cc_temp in
7910    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912    \-*) ;;
7913    *) break;;
7914  esac
7915done
7916cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7917
7918
7919# Only perform the check for file, if the check method requires it
7920test -z "$MAGIC_CMD" && MAGIC_CMD=file
7921case $deplibs_check_method in
7922file_magic*)
7923  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7925$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7926if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  case $MAGIC_CMD in
7930[\\/*] |  ?:[\\/]*)
7931  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7932  ;;
7933*)
7934  lt_save_MAGIC_CMD="$MAGIC_CMD"
7935  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7936  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7937  for ac_dir in $ac_dummy; do
7938    IFS="$lt_save_ifs"
7939    test -z "$ac_dir" && ac_dir=.
7940    if test -f $ac_dir/${ac_tool_prefix}file; then
7941      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7942      if test -n "$file_magic_test_file"; then
7943	case $deplibs_check_method in
7944	"file_magic "*)
7945	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7946	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7948	    $EGREP "$file_magic_regex" > /dev/null; then
7949	    :
7950	  else
7951	    cat <<_LT_EOF 1>&2
7952
7953*** Warning: the command libtool uses to detect shared libraries,
7954*** $file_magic_cmd, produces output that libtool cannot recognize.
7955*** The result is that libtool may fail to recognize shared libraries
7956*** as such.  This will affect the creation of libtool libraries that
7957*** depend on shared libraries, but programs linked with such libtool
7958*** libraries will work regardless of this problem.  Nevertheless, you
7959*** may want to report the problem to your system manager and/or to
7960*** bug-libtool@gnu.org
7961
7962_LT_EOF
7963	  fi ;;
7964	esac
7965      fi
7966      break
7967    fi
7968  done
7969  IFS="$lt_save_ifs"
7970  MAGIC_CMD="$lt_save_MAGIC_CMD"
7971  ;;
7972esac
7973fi
7974
7975MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976if test -n "$MAGIC_CMD"; then
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7978$as_echo "$MAGIC_CMD" >&6; }
7979else
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985
7986
7987
7988if test -z "$lt_cv_path_MAGIC_CMD"; then
7989  if test -n "$ac_tool_prefix"; then
7990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7991$as_echo_n "checking for file... " >&6; }
7992if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  case $MAGIC_CMD in
7996[\\/*] |  ?:[\\/]*)
7997  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7998  ;;
7999*)
8000  lt_save_MAGIC_CMD="$MAGIC_CMD"
8001  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003  for ac_dir in $ac_dummy; do
8004    IFS="$lt_save_ifs"
8005    test -z "$ac_dir" && ac_dir=.
8006    if test -f $ac_dir/file; then
8007      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8008      if test -n "$file_magic_test_file"; then
8009	case $deplibs_check_method in
8010	"file_magic "*)
8011	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014	    $EGREP "$file_magic_regex" > /dev/null; then
8015	    :
8016	  else
8017	    cat <<_LT_EOF 1>&2
8018
8019*** Warning: the command libtool uses to detect shared libraries,
8020*** $file_magic_cmd, produces output that libtool cannot recognize.
8021*** The result is that libtool may fail to recognize shared libraries
8022*** as such.  This will affect the creation of libtool libraries that
8023*** depend on shared libraries, but programs linked with such libtool
8024*** libraries will work regardless of this problem.  Nevertheless, you
8025*** may want to report the problem to your system manager and/or to
8026*** bug-libtool@gnu.org
8027
8028_LT_EOF
8029	  fi ;;
8030	esac
8031      fi
8032      break
8033    fi
8034  done
8035  IFS="$lt_save_ifs"
8036  MAGIC_CMD="$lt_save_MAGIC_CMD"
8037  ;;
8038esac
8039fi
8040
8041MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042if test -n "$MAGIC_CMD"; then
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044$as_echo "$MAGIC_CMD" >&6; }
8045else
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047$as_echo "no" >&6; }
8048fi
8049
8050
8051  else
8052    MAGIC_CMD=:
8053  fi
8054fi
8055
8056  fi
8057  ;;
8058esac
8059
8060# Use C for the default configuration in the libtool script
8061
8062lt_save_CC="$CC"
8063ac_ext=c
8064ac_cpp='$CPP $CPPFLAGS'
8065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069
8070# Source file extension for C test sources.
8071ac_ext=c
8072
8073# Object file extension for compiled C test sources.
8074objext=o
8075objext=$objext
8076
8077# Code to be used in simple compile tests
8078lt_simple_compile_test_code="int some_variable = 0;"
8079
8080# Code to be used in simple link tests
8081lt_simple_link_test_code='int main(){return(0);}'
8082
8083
8084
8085
8086
8087
8088
8089# If no C compiler was specified, use CC.
8090LTCC=${LTCC-"$CC"}
8091
8092# If no C compiler flags were specified, use CFLAGS.
8093LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8094
8095# Allow CC to be a program name with arguments.
8096compiler=$CC
8097
8098# Save the default compiler, since it gets overwritten when the other
8099# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8100compiler_DEFAULT=$CC
8101
8102# save warnings/boilerplate of simple test code
8103ac_outfile=conftest.$ac_objext
8104echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8106_lt_compiler_boilerplate=`cat conftest.err`
8107$RM conftest*
8108
8109ac_outfile=conftest.$ac_objext
8110echo "$lt_simple_link_test_code" >conftest.$ac_ext
8111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8112_lt_linker_boilerplate=`cat conftest.err`
8113$RM -r conftest*
8114
8115
8116## CAVEAT EMPTOR:
8117## There is no encapsulation within the following macros, do not change
8118## the running order or otherwise move them around unless you know exactly
8119## what you are doing...
8120if test -n "$compiler"; then
8121
8122lt_prog_compiler_no_builtin_flag=
8123
8124if test "$GCC" = yes; then
8125  case $cc_basename in
8126  nvcc*)
8127    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8128  *)
8129    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8130  esac
8131
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8133$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8134if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8135  $as_echo_n "(cached) " >&6
8136else
8137  lt_cv_prog_compiler_rtti_exceptions=no
8138   ac_outfile=conftest.$ac_objext
8139   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140   lt_compiler_flag="-fno-rtti -fno-exceptions"
8141   # Insert the option either (1) after the last *FLAGS variable, or
8142   # (2) before a word containing "conftest.", or (3) at the end.
8143   # Note that $ac_compile itself does not contain backslashes and begins
8144   # with a dollar sign (not a hyphen), so the echo should work correctly.
8145   # The option is referenced via a variable to avoid confusing sed.
8146   lt_compile=`echo "$ac_compile" | $SED \
8147   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149   -e 's:$: $lt_compiler_flag:'`
8150   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151   (eval "$lt_compile" 2>conftest.err)
8152   ac_status=$?
8153   cat conftest.err >&5
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   if (exit $ac_status) && test -s "$ac_outfile"; then
8156     # The compiler can only warn and ignore the option if not recognized
8157     # So say no if there are warnings other than the usual output.
8158     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8159     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8160     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8161       lt_cv_prog_compiler_rtti_exceptions=yes
8162     fi
8163   fi
8164   $RM conftest*
8165
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8168$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8169
8170if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8171    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8172else
8173    :
8174fi
8175
8176fi
8177
8178
8179
8180
8181
8182
8183  lt_prog_compiler_wl=
8184lt_prog_compiler_pic=
8185lt_prog_compiler_static=
8186
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8188$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8189
8190  if test "$GCC" = yes; then
8191    lt_prog_compiler_wl='-Wl,'
8192    lt_prog_compiler_static='-static'
8193
8194    case $host_os in
8195      aix*)
8196      # All AIX code is PIC.
8197      if test "$host_cpu" = ia64; then
8198	# AIX 5 now supports IA64 processor
8199	lt_prog_compiler_static='-Bstatic'
8200      fi
8201      lt_prog_compiler_pic='-fPIC'
8202      ;;
8203
8204    amigaos*)
8205      case $host_cpu in
8206      powerpc)
8207            # see comment about AmigaOS4 .so support
8208            lt_prog_compiler_pic='-fPIC'
8209        ;;
8210      m68k)
8211            # FIXME: we need at least 68020 code to build shared libraries, but
8212            # adding the `-m68020' flag to GCC prevents building anything better,
8213            # like `-m68040'.
8214            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8215        ;;
8216      esac
8217      ;;
8218
8219    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8220      # PIC is the default for these OSes.
8221      ;;
8222
8223    mingw* | cygwin* | pw32* | os2* | cegcc*)
8224      # This hack is so that the source file can tell whether it is being
8225      # built for inclusion in a dll (and should export symbols for example).
8226      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8227      # (--disable-auto-import) libraries
8228      lt_prog_compiler_pic='-DDLL_EXPORT'
8229      ;;
8230
8231    darwin* | rhapsody*)
8232      # PIC is the default on this platform
8233      # Common symbols not allowed in MH_DYLIB files
8234      lt_prog_compiler_pic='-fno-common'
8235      ;;
8236
8237    haiku*)
8238      # PIC is the default for Haiku.
8239      # The "-static" flag exists, but is broken.
8240      lt_prog_compiler_static=
8241      ;;
8242
8243    hpux*)
8244      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8245      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8246      # sets the default TLS model and affects inlining.
8247      case $host_cpu in
8248      hppa*64*)
8249	# +Z the default
8250	;;
8251      *)
8252	lt_prog_compiler_pic='-fPIC'
8253	;;
8254      esac
8255      ;;
8256
8257    interix[3-9]*)
8258      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8259      # Instead, we relocate shared libraries at runtime.
8260      ;;
8261
8262    msdosdjgpp*)
8263      # Just because we use GCC doesn't mean we suddenly get shared libraries
8264      # on systems that don't support them.
8265      lt_prog_compiler_can_build_shared=no
8266      enable_shared=no
8267      ;;
8268
8269    *nto* | *qnx*)
8270      # QNX uses GNU C++, but need to define -shared option too, otherwise
8271      # it will coredump.
8272      lt_prog_compiler_pic='-fPIC -shared'
8273      ;;
8274
8275    sysv4*MP*)
8276      if test -d /usr/nec; then
8277	lt_prog_compiler_pic=-Kconform_pic
8278      fi
8279      ;;
8280
8281    *)
8282      lt_prog_compiler_pic='-fPIC'
8283      ;;
8284    esac
8285
8286    case $cc_basename in
8287    nvcc*) # Cuda Compiler Driver 2.2
8288      lt_prog_compiler_wl='-Xlinker '
8289      lt_prog_compiler_pic='-Xcompiler -fPIC'
8290      ;;
8291    esac
8292  else
8293    # PORTME Check for flag to pass linker flags through the system compiler.
8294    case $host_os in
8295    aix*)
8296      lt_prog_compiler_wl='-Wl,'
8297      if test "$host_cpu" = ia64; then
8298	# AIX 5 now supports IA64 processor
8299	lt_prog_compiler_static='-Bstatic'
8300      else
8301	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302      fi
8303      ;;
8304
8305    mingw* | cygwin* | pw32* | os2* | cegcc*)
8306      # This hack is so that the source file can tell whether it is being
8307      # built for inclusion in a dll (and should export symbols for example).
8308      lt_prog_compiler_pic='-DDLL_EXPORT'
8309      ;;
8310
8311    hpux9* | hpux10* | hpux11*)
8312      lt_prog_compiler_wl='-Wl,'
8313      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8314      # not for PA HP-UX.
8315      case $host_cpu in
8316      hppa*64*|ia64*)
8317	# +Z the default
8318	;;
8319      *)
8320	lt_prog_compiler_pic='+Z'
8321	;;
8322      esac
8323      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8324      lt_prog_compiler_static='${wl}-a ${wl}archive'
8325      ;;
8326
8327    irix5* | irix6* | nonstopux*)
8328      lt_prog_compiler_wl='-Wl,'
8329      # PIC (with -KPIC) is the default.
8330      lt_prog_compiler_static='-non_shared'
8331      ;;
8332
8333    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8334      case $cc_basename in
8335      # old Intel for x86_64 which still supported -KPIC.
8336      ecc*)
8337	lt_prog_compiler_wl='-Wl,'
8338	lt_prog_compiler_pic='-KPIC'
8339	lt_prog_compiler_static='-static'
8340        ;;
8341      # icc used to be incompatible with GCC.
8342      # ICC 10 doesn't accept -KPIC any more.
8343      icc* | ifort*)
8344	lt_prog_compiler_wl='-Wl,'
8345	lt_prog_compiler_pic='-fPIC'
8346	lt_prog_compiler_static='-static'
8347        ;;
8348      # Lahey Fortran 8.1.
8349      lf95*)
8350	lt_prog_compiler_wl='-Wl,'
8351	lt_prog_compiler_pic='--shared'
8352	lt_prog_compiler_static='--static'
8353	;;
8354      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8355        # Portland Group compilers (*not* the Pentium gcc compiler,
8356	# which looks to be a dead project)
8357	lt_prog_compiler_wl='-Wl,'
8358	lt_prog_compiler_pic='-fpic'
8359	lt_prog_compiler_static='-Bstatic'
8360        ;;
8361      ccc*)
8362        lt_prog_compiler_wl='-Wl,'
8363        # All Alpha code is PIC.
8364        lt_prog_compiler_static='-non_shared'
8365        ;;
8366      xl* | bgxl* | bgf* | mpixl*)
8367	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8368	lt_prog_compiler_wl='-Wl,'
8369	lt_prog_compiler_pic='-qpic'
8370	lt_prog_compiler_static='-qstaticlink'
8371	;;
8372      *)
8373	case `$CC -V 2>&1 | sed 5q` in
8374	*Sun\ F* | *Sun*Fortran*)
8375	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8376	  lt_prog_compiler_pic='-KPIC'
8377	  lt_prog_compiler_static='-Bstatic'
8378	  lt_prog_compiler_wl=''
8379	  ;;
8380	*Sun\ C*)
8381	  # Sun C 5.9
8382	  lt_prog_compiler_pic='-KPIC'
8383	  lt_prog_compiler_static='-Bstatic'
8384	  lt_prog_compiler_wl='-Wl,'
8385	  ;;
8386	esac
8387	;;
8388      esac
8389      ;;
8390
8391    newsos6)
8392      lt_prog_compiler_pic='-KPIC'
8393      lt_prog_compiler_static='-Bstatic'
8394      ;;
8395
8396    *nto* | *qnx*)
8397      # QNX uses GNU C++, but need to define -shared option too, otherwise
8398      # it will coredump.
8399      lt_prog_compiler_pic='-fPIC -shared'
8400      ;;
8401
8402    osf3* | osf4* | osf5*)
8403      lt_prog_compiler_wl='-Wl,'
8404      # All OSF/1 code is PIC.
8405      lt_prog_compiler_static='-non_shared'
8406      ;;
8407
8408    rdos*)
8409      lt_prog_compiler_static='-non_shared'
8410      ;;
8411
8412    solaris*)
8413      lt_prog_compiler_pic='-KPIC'
8414      lt_prog_compiler_static='-Bstatic'
8415      case $cc_basename in
8416      f77* | f90* | f95*)
8417	lt_prog_compiler_wl='-Qoption ld ';;
8418      *)
8419	lt_prog_compiler_wl='-Wl,';;
8420      esac
8421      ;;
8422
8423    sunos4*)
8424      lt_prog_compiler_wl='-Qoption ld '
8425      lt_prog_compiler_pic='-PIC'
8426      lt_prog_compiler_static='-Bstatic'
8427      ;;
8428
8429    sysv4 | sysv4.2uw2* | sysv4.3*)
8430      lt_prog_compiler_wl='-Wl,'
8431      lt_prog_compiler_pic='-KPIC'
8432      lt_prog_compiler_static='-Bstatic'
8433      ;;
8434
8435    sysv4*MP*)
8436      if test -d /usr/nec ;then
8437	lt_prog_compiler_pic='-Kconform_pic'
8438	lt_prog_compiler_static='-Bstatic'
8439      fi
8440      ;;
8441
8442    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8443      lt_prog_compiler_wl='-Wl,'
8444      lt_prog_compiler_pic='-KPIC'
8445      lt_prog_compiler_static='-Bstatic'
8446      ;;
8447
8448    unicos*)
8449      lt_prog_compiler_wl='-Wl,'
8450      lt_prog_compiler_can_build_shared=no
8451      ;;
8452
8453    uts4*)
8454      lt_prog_compiler_pic='-pic'
8455      lt_prog_compiler_static='-Bstatic'
8456      ;;
8457
8458    *)
8459      lt_prog_compiler_can_build_shared=no
8460      ;;
8461    esac
8462  fi
8463
8464case $host_os in
8465  # For platforms which do not support PIC, -DPIC is meaningless:
8466  *djgpp*)
8467    lt_prog_compiler_pic=
8468    ;;
8469  *)
8470    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8471    ;;
8472esac
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8474$as_echo "$lt_prog_compiler_pic" >&6; }
8475
8476
8477
8478
8479
8480
8481#
8482# Check to make sure the PIC flag actually works.
8483#
8484if test -n "$lt_prog_compiler_pic"; then
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  lt_cv_prog_compiler_pic_works=no
8491   ac_outfile=conftest.$ac_objext
8492   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494   # Insert the option either (1) after the last *FLAGS variable, or
8495   # (2) before a word containing "conftest.", or (3) at the end.
8496   # Note that $ac_compile itself does not contain backslashes and begins
8497   # with a dollar sign (not a hyphen), so the echo should work correctly.
8498   # The option is referenced via a variable to avoid confusing sed.
8499   lt_compile=`echo "$ac_compile" | $SED \
8500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502   -e 's:$: $lt_compiler_flag:'`
8503   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504   (eval "$lt_compile" 2>conftest.err)
8505   ac_status=$?
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   if (exit $ac_status) && test -s "$ac_outfile"; then
8509     # The compiler can only warn and ignore the option if not recognized
8510     # So say no if there are warnings other than the usual output.
8511     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514       lt_cv_prog_compiler_pic_works=yes
8515     fi
8516   fi
8517   $RM conftest*
8518
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522
8523if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524    case $lt_prog_compiler_pic in
8525     "" | " "*) ;;
8526     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527     esac
8528else
8529    lt_prog_compiler_pic=
8530     lt_prog_compiler_can_build_shared=no
8531fi
8532
8533fi
8534
8535
8536
8537
8538
8539
8540#
8541# Check to make sure the static flag actually works.
8542#
8543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8545$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8546if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  lt_cv_prog_compiler_static_works=no
8550   save_LDFLAGS="$LDFLAGS"
8551   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8552   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8553   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8554     # The linker can only warn and ignore the option if not recognized
8555     # So say no if there are warnings
8556     if test -s conftest.err; then
8557       # Append any errors to the config.log.
8558       cat conftest.err 1>&5
8559       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8560       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8561       if diff conftest.exp conftest.er2 >/dev/null; then
8562         lt_cv_prog_compiler_static_works=yes
8563       fi
8564     else
8565       lt_cv_prog_compiler_static_works=yes
8566     fi
8567   fi
8568   $RM -r conftest*
8569   LDFLAGS="$save_LDFLAGS"
8570
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8573$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574
8575if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8576    :
8577else
8578    lt_prog_compiler_static=
8579fi
8580
8581
8582
8583
8584
8585
8586
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  lt_cv_prog_compiler_c_o=no
8593   $RM -r conftest 2>/dev/null
8594   mkdir conftest
8595   cd conftest
8596   mkdir out
8597   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599   lt_compiler_flag="-o out/conftest2.$ac_objext"
8600   # Insert the option either (1) after the last *FLAGS variable, or
8601   # (2) before a word containing "conftest.", or (3) at the end.
8602   # Note that $ac_compile itself does not contain backslashes and begins
8603   # with a dollar sign (not a hyphen), so the echo should work correctly.
8604   lt_compile=`echo "$ac_compile" | $SED \
8605   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607   -e 's:$: $lt_compiler_flag:'`
8608   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609   (eval "$lt_compile" 2>out/conftest.err)
8610   ac_status=$?
8611   cat out/conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614   then
8615     # The compiler can only warn and ignore the option if not recognized
8616     # So say no if there are warnings
8617     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620       lt_cv_prog_compiler_c_o=yes
8621     fi
8622   fi
8623   chmod u+w . 2>&5
8624   $RM conftest*
8625   # SGI C++ compiler will create directory out/ii_files/ for
8626   # template instantiation
8627   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628   $RM out/* && rmdir out
8629   cd ..
8630   $RM -r conftest
8631   $RM conftest*
8632
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8636
8637
8638
8639
8640
8641
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8644if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  lt_cv_prog_compiler_c_o=no
8648   $RM -r conftest 2>/dev/null
8649   mkdir conftest
8650   cd conftest
8651   mkdir out
8652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653
8654   lt_compiler_flag="-o out/conftest2.$ac_objext"
8655   # Insert the option either (1) after the last *FLAGS variable, or
8656   # (2) before a word containing "conftest.", or (3) at the end.
8657   # Note that $ac_compile itself does not contain backslashes and begins
8658   # with a dollar sign (not a hyphen), so the echo should work correctly.
8659   lt_compile=`echo "$ac_compile" | $SED \
8660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662   -e 's:$: $lt_compiler_flag:'`
8663   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664   (eval "$lt_compile" 2>out/conftest.err)
8665   ac_status=$?
8666   cat out/conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669   then
8670     # The compiler can only warn and ignore the option if not recognized
8671     # So say no if there are warnings
8672     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8673     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8674     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8675       lt_cv_prog_compiler_c_o=yes
8676     fi
8677   fi
8678   chmod u+w . 2>&5
8679   $RM conftest*
8680   # SGI C++ compiler will create directory out/ii_files/ for
8681   # template instantiation
8682   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8683   $RM out/* && rmdir out
8684   cd ..
8685   $RM -r conftest
8686   $RM conftest*
8687
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8691
8692
8693
8694
8695hard_links="nottested"
8696if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8697  # do not overwrite the value of need_locks provided by the user
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8699$as_echo_n "checking if we can lock with hard links... " >&6; }
8700  hard_links=yes
8701  $RM conftest*
8702  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703  touch conftest.a
8704  ln conftest.a conftest.b 2>&5 || hard_links=no
8705  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8707$as_echo "$hard_links" >&6; }
8708  if test "$hard_links" = no; then
8709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8710$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8711    need_locks=warn
8712  fi
8713else
8714  need_locks=no
8715fi
8716
8717
8718
8719
8720
8721
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8723$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8724
8725  runpath_var=
8726  allow_undefined_flag=
8727  always_export_symbols=no
8728  archive_cmds=
8729  archive_expsym_cmds=
8730  compiler_needs_object=no
8731  enable_shared_with_static_runtimes=no
8732  export_dynamic_flag_spec=
8733  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8734  hardcode_automatic=no
8735  hardcode_direct=no
8736  hardcode_direct_absolute=no
8737  hardcode_libdir_flag_spec=
8738  hardcode_libdir_flag_spec_ld=
8739  hardcode_libdir_separator=
8740  hardcode_minus_L=no
8741  hardcode_shlibpath_var=unsupported
8742  inherit_rpath=no
8743  link_all_deplibs=unknown
8744  module_cmds=
8745  module_expsym_cmds=
8746  old_archive_from_new_cmds=
8747  old_archive_from_expsyms_cmds=
8748  thread_safe_flag_spec=
8749  whole_archive_flag_spec=
8750  # include_expsyms should be a list of space-separated symbols to be *always*
8751  # included in the symbol list
8752  include_expsyms=
8753  # exclude_expsyms can be an extended regexp of symbols to exclude
8754  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8755  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8756  # as well as any symbol that contains `d'.
8757  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759  # platforms (ab)use it in PIC code, but their linkers get confused if
8760  # the symbol is explicitly referenced.  Since portable code cannot
8761  # rely on this symbol name, it's probably fine to never include it in
8762  # preloaded symbol tables.
8763  # Exclude shared library initialization/finalization symbols.
8764  extract_expsyms_cmds=
8765
8766  case $host_os in
8767  cygwin* | mingw* | pw32* | cegcc*)
8768    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769    # When not using gcc, we currently assume that we are using
8770    # Microsoft Visual C++.
8771    if test "$GCC" != yes; then
8772      with_gnu_ld=no
8773    fi
8774    ;;
8775  interix*)
8776    # we just hope/assume this is gcc and not c89 (= MSVC++)
8777    with_gnu_ld=yes
8778    ;;
8779  openbsd*)
8780    with_gnu_ld=no
8781    ;;
8782  esac
8783
8784  ld_shlibs=yes
8785
8786  # On some targets, GNU ld is compatible enough with the native linker
8787  # that we're better off using the native interface for both.
8788  lt_use_gnu_ld_interface=no
8789  if test "$with_gnu_ld" = yes; then
8790    case $host_os in
8791      aix*)
8792	# The AIX port of GNU ld has always aspired to compatibility
8793	# with the native linker.  However, as the warning in the GNU ld
8794	# block says, versions before 2.19.5* couldn't really create working
8795	# shared libraries, regardless of the interface used.
8796	case `$LD -v 2>&1` in
8797	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8798	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8799	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8800	  *)
8801	    lt_use_gnu_ld_interface=yes
8802	    ;;
8803	esac
8804	;;
8805      *)
8806	lt_use_gnu_ld_interface=yes
8807	;;
8808    esac
8809  fi
8810
8811  if test "$lt_use_gnu_ld_interface" = yes; then
8812    # If archive_cmds runs LD, not CC, wlarc should be empty
8813    wlarc='${wl}'
8814
8815    # Set some defaults for GNU ld with shared library support. These
8816    # are reset later if shared libraries are not supported. Putting them
8817    # here allows them to be overridden if necessary.
8818    runpath_var=LD_RUN_PATH
8819    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820    export_dynamic_flag_spec='${wl}--export-dynamic'
8821    # ancient GNU ld didn't support --whole-archive et. al.
8822    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8823      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8824    else
8825      whole_archive_flag_spec=
8826    fi
8827    supports_anon_versioning=no
8828    case `$LD -v 2>&1` in
8829      *GNU\ gold*) supports_anon_versioning=yes ;;
8830      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8831      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8832      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8833      *\ 2.11.*) ;; # other 2.11 versions
8834      *) supports_anon_versioning=yes ;;
8835    esac
8836
8837    # See if GNU ld supports shared libraries.
8838    case $host_os in
8839    aix[3-9]*)
8840      # On AIX/PPC, the GNU linker is very broken
8841      if test "$host_cpu" != ia64; then
8842	ld_shlibs=no
8843	cat <<_LT_EOF 1>&2
8844
8845*** Warning: the GNU linker, at least up to release 2.19, is reported
8846*** to be unable to reliably create shared libraries on AIX.
8847*** Therefore, libtool is disabling shared libraries support.  If you
8848*** really care for shared libraries, you may want to install binutils
8849*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8850*** You will then need to restart the configuration process.
8851
8852_LT_EOF
8853      fi
8854      ;;
8855
8856    amigaos*)
8857      case $host_cpu in
8858      powerpc)
8859            # see comment about AmigaOS4 .so support
8860            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861            archive_expsym_cmds=''
8862        ;;
8863      m68k)
8864            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)'
8865            hardcode_libdir_flag_spec='-L$libdir'
8866            hardcode_minus_L=yes
8867        ;;
8868      esac
8869      ;;
8870
8871    beos*)
8872      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873	allow_undefined_flag=unsupported
8874	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8875	# support --undefined.  This deserves some investigation.  FIXME
8876	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877      else
8878	ld_shlibs=no
8879      fi
8880      ;;
8881
8882    cygwin* | mingw* | pw32* | cegcc*)
8883      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8884      # as there is no search path for DLLs.
8885      hardcode_libdir_flag_spec='-L$libdir'
8886      export_dynamic_flag_spec='${wl}--export-all-symbols'
8887      allow_undefined_flag=unsupported
8888      always_export_symbols=no
8889      enable_shared_with_static_runtimes=yes
8890      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8891
8892      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8893        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894	# If the export-symbols file already is a .def file (1st line
8895	# is EXPORTS), use it as is; otherwise, prepend...
8896	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8897	  cp $export_symbols $output_objdir/$soname.def;
8898	else
8899	  echo EXPORTS > $output_objdir/$soname.def;
8900	  cat $export_symbols >> $output_objdir/$soname.def;
8901	fi~
8902	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903      else
8904	ld_shlibs=no
8905      fi
8906      ;;
8907
8908    haiku*)
8909      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910      link_all_deplibs=yes
8911      ;;
8912
8913    interix[3-9]*)
8914      hardcode_direct=no
8915      hardcode_shlibpath_var=no
8916      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917      export_dynamic_flag_spec='${wl}-E'
8918      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919      # Instead, shared libraries are loaded at an image base (0x10000000 by
8920      # default) and relocated if they conflict, which is a slow very memory
8921      # consuming and fragmenting process.  To avoid this, we pick a random,
8922      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8924      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925      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'
8926      ;;
8927
8928    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929      tmp_diet=no
8930      if test "$host_os" = linux-dietlibc; then
8931	case $cc_basename in
8932	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8933	esac
8934      fi
8935      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8936	 && test "$tmp_diet" = no
8937      then
8938	tmp_addflag=' $pic_flag'
8939	tmp_sharedflag='-shared'
8940	case $cc_basename,$host_cpu in
8941        pgcc*)				# Portland Group C compiler
8942	  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'
8943	  tmp_addflag=' $pic_flag'
8944	  ;;
8945	pgf77* | pgf90* | pgf95* | pgfortran*)
8946					# Portland Group f77 and f90 compilers
8947	  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'
8948	  tmp_addflag=' $pic_flag -Mnomain' ;;
8949	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8950	  tmp_addflag=' -i_dynamic' ;;
8951	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8952	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8953	ifc* | ifort*)			# Intel Fortran compiler
8954	  tmp_addflag=' -nofor_main' ;;
8955	lf95*)				# Lahey Fortran 8.1
8956	  whole_archive_flag_spec=
8957	  tmp_sharedflag='--shared' ;;
8958	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8959	  tmp_sharedflag='-qmkshrobj'
8960	  tmp_addflag= ;;
8961	nvcc*)	# Cuda Compiler Driver 2.2
8962	  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'
8963	  compiler_needs_object=yes
8964	  ;;
8965	esac
8966	case `$CC -V 2>&1 | sed 5q` in
8967	*Sun\ C*)			# Sun C 5.9
8968	  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'
8969	  compiler_needs_object=yes
8970	  tmp_sharedflag='-G' ;;
8971	*Sun\ F*)			# Sun Fortran 8.3
8972	  tmp_sharedflag='-G' ;;
8973	esac
8974	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975
8976        if test "x$supports_anon_versioning" = xyes; then
8977          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979	    echo "local: *; };" >> $output_objdir/$libname.ver~
8980	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8981        fi
8982
8983	case $cc_basename in
8984	xlf* | bgf* | bgxlf* | mpixlf*)
8985	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987	  hardcode_libdir_flag_spec=
8988	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8990	  if test "x$supports_anon_versioning" = xyes; then
8991	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993	      echo "local: *; };" >> $output_objdir/$libname.ver~
8994	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8995	  fi
8996	  ;;
8997	esac
8998      else
8999        ld_shlibs=no
9000      fi
9001      ;;
9002
9003    netbsd*)
9004      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006	wlarc=
9007      else
9008	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010      fi
9011      ;;
9012
9013    solaris*)
9014      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015	ld_shlibs=no
9016	cat <<_LT_EOF 1>&2
9017
9018*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019*** create shared libraries on Solaris systems.  Therefore, libtool
9020*** is disabling shared libraries support.  We urge you to upgrade GNU
9021*** binutils to release 2.9.1 or newer.  Another option is to modify
9022*** your PATH or compiler configuration so that the native linker is
9023*** used, and then restart.
9024
9025_LT_EOF
9026      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029      else
9030	ld_shlibs=no
9031      fi
9032      ;;
9033
9034    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035      case `$LD -v 2>&1` in
9036        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037	ld_shlibs=no
9038	cat <<_LT_EOF 1>&2
9039
9040*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041*** reliably create shared libraries on SCO systems.  Therefore, libtool
9042*** is disabling shared libraries support.  We urge you to upgrade GNU
9043*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9044*** your PATH or compiler configuration so that the native linker is
9045*** used, and then restart.
9046
9047_LT_EOF
9048	;;
9049	*)
9050	  # For security reasons, it is highly recommended that you always
9051	  # use absolute paths for naming shared libraries, and exclude the
9052	  # DT_RUNPATH tag from executables and libraries.  But doing so
9053	  # requires that you compile everything twice, which is a pain.
9054	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058	  else
9059	    ld_shlibs=no
9060	  fi
9061	;;
9062      esac
9063      ;;
9064
9065    sunos4*)
9066      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067      wlarc=
9068      hardcode_direct=yes
9069      hardcode_shlibpath_var=no
9070      ;;
9071
9072    *)
9073      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076      else
9077	ld_shlibs=no
9078      fi
9079      ;;
9080    esac
9081
9082    if test "$ld_shlibs" = no; then
9083      runpath_var=
9084      hardcode_libdir_flag_spec=
9085      export_dynamic_flag_spec=
9086      whole_archive_flag_spec=
9087    fi
9088  else
9089    # PORTME fill in a description of your system's linker (not GNU ld)
9090    case $host_os in
9091    aix3*)
9092      allow_undefined_flag=unsupported
9093      always_export_symbols=yes
9094      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'
9095      # Note: this linker hardcodes the directories in LIBPATH if there
9096      # are no directories specified by -L.
9097      hardcode_minus_L=yes
9098      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099	# Neither direct hardcoding nor static linking is supported with a
9100	# broken collect2.
9101	hardcode_direct=unsupported
9102      fi
9103      ;;
9104
9105    aix[4-9]*)
9106      if test "$host_cpu" = ia64; then
9107	# On IA64, the linker does run time linking by default, so we don't
9108	# have to do anything special.
9109	aix_use_runtimelinking=no
9110	exp_sym_flag='-Bexport'
9111	no_entry_flag=""
9112      else
9113	# If we're using GNU nm, then we don't want the "-C" option.
9114	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9115	# Also, AIX nm treats weak defined symbols like other global
9116	# defined symbols, whereas GNU nm marks them as "W".
9117	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9118	  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'
9119	else
9120	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9121	fi
9122	aix_use_runtimelinking=no
9123
9124	# Test if we are trying to use run time linking or normal
9125	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9126	# need to do runtime linking.
9127	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9128	  for ld_flag in $LDFLAGS; do
9129	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9130	    aix_use_runtimelinking=yes
9131	    break
9132	  fi
9133	  done
9134	  ;;
9135	esac
9136
9137	exp_sym_flag='-bexport'
9138	no_entry_flag='-bnoentry'
9139      fi
9140
9141      # When large executables or shared objects are built, AIX ld can
9142      # have problems creating the table of contents.  If linking a library
9143      # or program results in "error TOC overflow" add -mminimal-toc to
9144      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9145      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9146
9147      archive_cmds=''
9148      hardcode_direct=yes
9149      hardcode_direct_absolute=yes
9150      hardcode_libdir_separator=':'
9151      link_all_deplibs=yes
9152      file_list_spec='${wl}-f,'
9153
9154      if test "$GCC" = yes; then
9155	case $host_os in aix4.[012]|aix4.[012].*)
9156	# We only want to do this on AIX 4.2 and lower, the check
9157	# below for broken collect2 doesn't work under 4.3+
9158	  collect2name=`${CC} -print-prog-name=collect2`
9159	  if test -f "$collect2name" &&
9160	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9161	  then
9162	  # We have reworked collect2
9163	  :
9164	  else
9165	  # We have old collect2
9166	  hardcode_direct=unsupported
9167	  # It fails to find uninstalled libraries when the uninstalled
9168	  # path is not listed in the libpath.  Setting hardcode_minus_L
9169	  # to unsupported forces relinking
9170	  hardcode_minus_L=yes
9171	  hardcode_libdir_flag_spec='-L$libdir'
9172	  hardcode_libdir_separator=
9173	  fi
9174	  ;;
9175	esac
9176	shared_flag='-shared'
9177	if test "$aix_use_runtimelinking" = yes; then
9178	  shared_flag="$shared_flag "'${wl}-G'
9179	fi
9180      else
9181	# not using gcc
9182	if test "$host_cpu" = ia64; then
9183	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184	# chokes on -Wl,-G. The following line is correct:
9185	  shared_flag='-G'
9186	else
9187	  if test "$aix_use_runtimelinking" = yes; then
9188	    shared_flag='${wl}-G'
9189	  else
9190	    shared_flag='${wl}-bM:SRE'
9191	  fi
9192	fi
9193      fi
9194
9195      export_dynamic_flag_spec='${wl}-bexpall'
9196      # It seems that -bexpall does not export symbols beginning with
9197      # underscore (_), so it is better to generate a list of symbols to export.
9198      always_export_symbols=yes
9199      if test "$aix_use_runtimelinking" = yes; then
9200	# Warning - without using the other runtime loading flags (-brtl),
9201	# -berok will link without error, but may produce a broken library.
9202	allow_undefined_flag='-berok'
9203        # Determine the default libpath from the value encoded in an
9204        # empty executable.
9205        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207
9208int
9209main ()
9210{
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"; then :
9217
9218lt_aix_libpath_sed='
9219    /Import File Strings/,/^$/ {
9220	/^0/ {
9221	    s/^0  *\(.*\)$/\1/
9222	    p
9223	}
9224    }'
9225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226# Check for a 64-bit object if we didn't find anything.
9227if test -z "$aix_libpath"; then
9228  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229fi
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232    conftest$ac_exeext conftest.$ac_ext
9233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236        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"
9237      else
9238	if test "$host_cpu" = ia64; then
9239	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240	  allow_undefined_flag="-z nodefs"
9241	  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"
9242	else
9243	 # Determine the default libpath from the value encoded in an
9244	 # empty executable.
9245	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247
9248int
9249main ()
9250{
9251
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256if ac_fn_c_try_link "$LINENO"; then :
9257
9258lt_aix_libpath_sed='
9259    /Import File Strings/,/^$/ {
9260	/^0/ {
9261	    s/^0  *\(.*\)$/\1/
9262	    p
9263	}
9264    }'
9265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266# Check for a 64-bit object if we didn't find anything.
9267if test -z "$aix_libpath"; then
9268  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269fi
9270fi
9271rm -f core conftest.err conftest.$ac_objext \
9272    conftest$ac_exeext conftest.$ac_ext
9273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274
9275	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276	  # Warning - without using the other run time loading flags,
9277	  # -berok will link without error, but may produce a broken library.
9278	  no_undefined_flag=' ${wl}-bernotok'
9279	  allow_undefined_flag=' ${wl}-berok'
9280	  if test "$with_gnu_ld" = yes; then
9281	    # We only use this code for GNU lds that support --whole-archive.
9282	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283	  else
9284	    # Exported symbols can be pulled into shared objects from archives
9285	    whole_archive_flag_spec='$convenience'
9286	  fi
9287	  archive_cmds_need_lc=yes
9288	  # This is similar to how AIX traditionally builds its shared libraries.
9289	  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'
9290	fi
9291      fi
9292      ;;
9293
9294    amigaos*)
9295      case $host_cpu in
9296      powerpc)
9297            # see comment about AmigaOS4 .so support
9298            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299            archive_expsym_cmds=''
9300        ;;
9301      m68k)
9302            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)'
9303            hardcode_libdir_flag_spec='-L$libdir'
9304            hardcode_minus_L=yes
9305        ;;
9306      esac
9307      ;;
9308
9309    bsdi[45]*)
9310      export_dynamic_flag_spec=-rdynamic
9311      ;;
9312
9313    cygwin* | mingw* | pw32* | cegcc*)
9314      # When not using gcc, we currently assume that we are using
9315      # Microsoft Visual C++.
9316      # hardcode_libdir_flag_spec is actually meaningless, as there is
9317      # no search path for DLLs.
9318      hardcode_libdir_flag_spec=' '
9319      allow_undefined_flag=unsupported
9320      # Tell ltmain to make .lib files, not .a files.
9321      libext=lib
9322      # Tell ltmain to make .dll files, not .so files.
9323      shrext_cmds=".dll"
9324      # FIXME: Setting linknames here is a bad hack.
9325      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9326      # The linker will automatically build a .lib file if we build a DLL.
9327      old_archive_from_new_cmds='true'
9328      # FIXME: Should let the user specify the lib program.
9329      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330      fix_srcfile_path='`cygpath -w "$srcfile"`'
9331      enable_shared_with_static_runtimes=yes
9332      ;;
9333
9334    darwin* | rhapsody*)
9335
9336
9337  archive_cmds_need_lc=no
9338  hardcode_direct=no
9339  hardcode_automatic=yes
9340  hardcode_shlibpath_var=unsupported
9341  if test "$lt_cv_ld_force_load" = "yes"; then
9342    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\"`'
9343  else
9344    whole_archive_flag_spec=''
9345  fi
9346  link_all_deplibs=yes
9347  allow_undefined_flag="$_lt_dar_allow_undefined"
9348  case $cc_basename in
9349     ifort*) _lt_dar_can_shared=yes ;;
9350     *) _lt_dar_can_shared=$GCC ;;
9351  esac
9352  if test "$_lt_dar_can_shared" = "yes"; then
9353    output_verbose_link_cmd=func_echo_all
9354    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356    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}"
9357    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}"
9358
9359  else
9360  ld_shlibs=no
9361  fi
9362
9363      ;;
9364
9365    dgux*)
9366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367      hardcode_libdir_flag_spec='-L$libdir'
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372    # support.  Future versions do this automatically, but an explicit c++rt0.o
9373    # does not break anything, and helps significantly (at the cost of a little
9374    # extra space).
9375    freebsd2.2*)
9376      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377      hardcode_libdir_flag_spec='-R$libdir'
9378      hardcode_direct=yes
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383    freebsd2.*)
9384      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385      hardcode_direct=yes
9386      hardcode_minus_L=yes
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391    freebsd* | dragonfly*)
9392      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9393      hardcode_libdir_flag_spec='-R$libdir'
9394      hardcode_direct=yes
9395      hardcode_shlibpath_var=no
9396      ;;
9397
9398    hpux9*)
9399      if test "$GCC" = yes; then
9400	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'
9401      else
9402	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'
9403      fi
9404      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405      hardcode_libdir_separator=:
9406      hardcode_direct=yes
9407
9408      # hardcode_minus_L: Not really in the search PATH,
9409      # but as the default location of the library.
9410      hardcode_minus_L=yes
9411      export_dynamic_flag_spec='${wl}-E'
9412      ;;
9413
9414    hpux10*)
9415      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417      else
9418	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419      fi
9420      if test "$with_gnu_ld" = no; then
9421	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422	hardcode_libdir_flag_spec_ld='+b $libdir'
9423	hardcode_libdir_separator=:
9424	hardcode_direct=yes
9425	hardcode_direct_absolute=yes
9426	export_dynamic_flag_spec='${wl}-E'
9427	# hardcode_minus_L: Not really in the search PATH,
9428	# but as the default location of the library.
9429	hardcode_minus_L=yes
9430      fi
9431      ;;
9432
9433    hpux11*)
9434      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435	case $host_cpu in
9436	hppa*64*)
9437	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438	  ;;
9439	ia64*)
9440	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441	  ;;
9442	*)
9443	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444	  ;;
9445	esac
9446      else
9447	case $host_cpu in
9448	hppa*64*)
9449	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450	  ;;
9451	ia64*)
9452	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	*)
9455
9456	  # Older versions of the 11.00 compiler do not understand -b yet
9457	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9458	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9459$as_echo_n "checking if $CC understands -b... " >&6; }
9460if test "${lt_cv_prog_compiler__b+set}" = set; then :
9461  $as_echo_n "(cached) " >&6
9462else
9463  lt_cv_prog_compiler__b=no
9464   save_LDFLAGS="$LDFLAGS"
9465   LDFLAGS="$LDFLAGS -b"
9466   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468     # The linker can only warn and ignore the option if not recognized
9469     # So say no if there are warnings
9470     if test -s conftest.err; then
9471       # Append any errors to the config.log.
9472       cat conftest.err 1>&5
9473       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475       if diff conftest.exp conftest.er2 >/dev/null; then
9476         lt_cv_prog_compiler__b=yes
9477       fi
9478     else
9479       lt_cv_prog_compiler__b=yes
9480     fi
9481   fi
9482   $RM -r conftest*
9483   LDFLAGS="$save_LDFLAGS"
9484
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9487$as_echo "$lt_cv_prog_compiler__b" >&6; }
9488
9489if test x"$lt_cv_prog_compiler__b" = xyes; then
9490    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491else
9492    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9493fi
9494
9495	  ;;
9496	esac
9497      fi
9498      if test "$with_gnu_ld" = no; then
9499	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500	hardcode_libdir_separator=:
9501
9502	case $host_cpu in
9503	hppa*64*|ia64*)
9504	  hardcode_direct=no
9505	  hardcode_shlibpath_var=no
9506	  ;;
9507	*)
9508	  hardcode_direct=yes
9509	  hardcode_direct_absolute=yes
9510	  export_dynamic_flag_spec='${wl}-E'
9511
9512	  # hardcode_minus_L: Not really in the search PATH,
9513	  # but as the default location of the library.
9514	  hardcode_minus_L=yes
9515	  ;;
9516	esac
9517      fi
9518      ;;
9519
9520    irix5* | irix6* | nonstopux*)
9521      if test "$GCC" = yes; then
9522	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'
9523	# Try to use the -exported_symbol ld option, if it does not
9524	# work, assume that -exports_file does not work either and
9525	# implicitly export all symbols.
9526        save_LDFLAGS="$LDFLAGS"
9527        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9528        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int foo(void) {}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533  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'
9534
9535fi
9536rm -f core conftest.err conftest.$ac_objext \
9537    conftest$ac_exeext conftest.$ac_ext
9538        LDFLAGS="$save_LDFLAGS"
9539      else
9540	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'
9541	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'
9542      fi
9543      archive_cmds_need_lc='no'
9544      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545      hardcode_libdir_separator=:
9546      inherit_rpath=yes
9547      link_all_deplibs=yes
9548      ;;
9549
9550    netbsd*)
9551      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9553      else
9554	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9555      fi
9556      hardcode_libdir_flag_spec='-R$libdir'
9557      hardcode_direct=yes
9558      hardcode_shlibpath_var=no
9559      ;;
9560
9561    newsos6)
9562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563      hardcode_direct=yes
9564      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565      hardcode_libdir_separator=:
9566      hardcode_shlibpath_var=no
9567      ;;
9568
9569    *nto* | *qnx*)
9570      ;;
9571
9572    openbsd*)
9573      if test -f /usr/libexec/ld.so; then
9574	hardcode_direct=yes
9575	hardcode_shlibpath_var=no
9576	hardcode_direct_absolute=yes
9577	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9579	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9580	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581	  export_dynamic_flag_spec='${wl}-E'
9582	else
9583	  case $host_os in
9584	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9585	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586	     hardcode_libdir_flag_spec='-R$libdir'
9587	     ;;
9588	   *)
9589	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591	     ;;
9592	  esac
9593	fi
9594      else
9595	ld_shlibs=no
9596      fi
9597      ;;
9598
9599    os2*)
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      hardcode_minus_L=yes
9602      allow_undefined_flag=unsupported
9603      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'
9604      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9605      ;;
9606
9607    osf3*)
9608      if test "$GCC" = yes; then
9609	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610	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'
9611      else
9612	allow_undefined_flag=' -expect_unresolved \*'
9613	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'
9614      fi
9615      archive_cmds_need_lc='no'
9616      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617      hardcode_libdir_separator=:
9618      ;;
9619
9620    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9621      if test "$GCC" = yes; then
9622	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623	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'
9624	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625      else
9626	allow_undefined_flag=' -expect_unresolved \*'
9627	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'
9628	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~
9629	$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'
9630
9631	# Both c and cxx compiler support -rpath directly
9632	hardcode_libdir_flag_spec='-rpath $libdir'
9633      fi
9634      archive_cmds_need_lc='no'
9635      hardcode_libdir_separator=:
9636      ;;
9637
9638    solaris*)
9639      no_undefined_flag=' -z defs'
9640      if test "$GCC" = yes; then
9641	wlarc='${wl}'
9642	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645      else
9646	case `$CC -V 2>&1` in
9647	*"Compilers 5.0"*)
9648	  wlarc=''
9649	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9652	  ;;
9653	*)
9654	  wlarc='${wl}'
9655	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658	  ;;
9659	esac
9660      fi
9661      hardcode_libdir_flag_spec='-R$libdir'
9662      hardcode_shlibpath_var=no
9663      case $host_os in
9664      solaris2.[0-5] | solaris2.[0-5].*) ;;
9665      *)
9666	# The compiler driver will combine and reorder linker options,
9667	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9668	# but is careful enough not to reorder.
9669	# Supported since Solaris 2.6 (maybe 2.5.1?)
9670	if test "$GCC" = yes; then
9671	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672	else
9673	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9674	fi
9675	;;
9676      esac
9677      link_all_deplibs=yes
9678      ;;
9679
9680    sunos4*)
9681      if test "x$host_vendor" = xsequent; then
9682	# Use $CC to link under sequent, because it throws in some extra .o
9683	# files that make .init and .fini sections work.
9684	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685      else
9686	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687      fi
9688      hardcode_libdir_flag_spec='-L$libdir'
9689      hardcode_direct=yes
9690      hardcode_minus_L=yes
9691      hardcode_shlibpath_var=no
9692      ;;
9693
9694    sysv4)
9695      case $host_vendor in
9696	sni)
9697	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698	  hardcode_direct=yes # is this really true???
9699	;;
9700	siemens)
9701	  ## LD is ld it makes a PLAMLIB
9702	  ## CC just makes a GrossModule.
9703	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704	  reload_cmds='$CC -r -o $output$reload_objs'
9705	  hardcode_direct=no
9706        ;;
9707	motorola)
9708	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710	;;
9711      esac
9712      runpath_var='LD_RUN_PATH'
9713      hardcode_shlibpath_var=no
9714      ;;
9715
9716    sysv4.3*)
9717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718      hardcode_shlibpath_var=no
9719      export_dynamic_flag_spec='-Bexport'
9720      ;;
9721
9722    sysv4*MP*)
9723      if test -d /usr/nec; then
9724	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725	hardcode_shlibpath_var=no
9726	runpath_var=LD_RUN_PATH
9727	hardcode_runpath_var=yes
9728	ld_shlibs=yes
9729      fi
9730      ;;
9731
9732    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9733      no_undefined_flag='${wl}-z,text'
9734      archive_cmds_need_lc=no
9735      hardcode_shlibpath_var=no
9736      runpath_var='LD_RUN_PATH'
9737
9738      if test "$GCC" = yes; then
9739	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741      else
9742	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744      fi
9745      ;;
9746
9747    sysv5* | sco3.2v5* | sco5v6*)
9748      # Note: We can NOT use -z defs as we might desire, because we do not
9749      # link with -lc, and that would cause any symbols used from libc to
9750      # always be unresolved, which means just about no library would
9751      # ever link correctly.  If we're not using GNU ld we use -z text
9752      # though, which does catch some bad symbols but isn't as heavy-handed
9753      # as -z defs.
9754      no_undefined_flag='${wl}-z,text'
9755      allow_undefined_flag='${wl}-z,nodefs'
9756      archive_cmds_need_lc=no
9757      hardcode_shlibpath_var=no
9758      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9759      hardcode_libdir_separator=':'
9760      link_all_deplibs=yes
9761      export_dynamic_flag_spec='${wl}-Bexport'
9762      runpath_var='LD_RUN_PATH'
9763
9764      if test "$GCC" = yes; then
9765	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767      else
9768	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770      fi
9771      ;;
9772
9773    uts4*)
9774      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775      hardcode_libdir_flag_spec='-L$libdir'
9776      hardcode_shlibpath_var=no
9777      ;;
9778
9779    *)
9780      ld_shlibs=no
9781      ;;
9782    esac
9783
9784    if test x$host_vendor = xsni; then
9785      case $host in
9786      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9787	export_dynamic_flag_spec='${wl}-Blargedynsym'
9788	;;
9789      esac
9790    fi
9791  fi
9792
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9794$as_echo "$ld_shlibs" >&6; }
9795test "$ld_shlibs" = no && can_build_shared=no
9796
9797with_gnu_ld=$with_gnu_ld
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813#
9814# Do we need to explicitly link libc?
9815#
9816case "x$archive_cmds_need_lc" in
9817x|xyes)
9818  # Assume -lc should be added
9819  archive_cmds_need_lc=yes
9820
9821  if test "$enable_shared" = yes && test "$GCC" = yes; then
9822    case $archive_cmds in
9823    *'~'*)
9824      # FIXME: we may have to deal with multi-command sequences.
9825      ;;
9826    '$CC '*)
9827      # Test whether the compiler implicitly links with -lc since on some
9828      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829      # to ld, don't add -lc before -lgcc.
9830      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9831$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9832if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9833  $as_echo_n "(cached) " >&6
9834else
9835  $RM conftest*
9836	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839  (eval $ac_compile) 2>&5
9840  ac_status=$?
9841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842  test $ac_status = 0; } 2>conftest.err; then
9843	  soname=conftest
9844	  lib=conftest
9845	  libobjs=conftest.$ac_objext
9846	  deplibs=
9847	  wl=$lt_prog_compiler_wl
9848	  pic_flag=$lt_prog_compiler_pic
9849	  compiler_flags=-v
9850	  linker_flags=-v
9851	  verstring=
9852	  output_objdir=.
9853	  libname=conftest
9854	  lt_save_allow_undefined_flag=$allow_undefined_flag
9855	  allow_undefined_flag=
9856	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858  ac_status=$?
9859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860  test $ac_status = 0; }
9861	  then
9862	    lt_cv_archive_cmds_need_lc=no
9863	  else
9864	    lt_cv_archive_cmds_need_lc=yes
9865	  fi
9866	  allow_undefined_flag=$lt_save_allow_undefined_flag
9867	else
9868	  cat conftest.err 1>&5
9869	fi
9870	$RM conftest*
9871
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9874$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9875      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9876      ;;
9877    esac
9878  fi
9879  ;;
9880esac
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
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10039$as_echo_n "checking dynamic linker characteristics... " >&6; }
10040
10041if test "$GCC" = yes; then
10042  case $host_os in
10043    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10044    *) lt_awk_arg="/^libraries:/" ;;
10045  esac
10046  case $host_os in
10047    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10048    *) lt_sed_strip_eq="s,=/,/,g" ;;
10049  esac
10050  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10051  case $lt_search_path_spec in
10052  *\;*)
10053    # if the path contains ";" then we assume it to be the separator
10054    # otherwise default to the standard path separator (i.e. ":") - it is
10055    # assumed that no part of a normal pathname contains ";" but that should
10056    # okay in the real world where ";" in dirpaths is itself problematic.
10057    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10058    ;;
10059  *)
10060    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10061    ;;
10062  esac
10063  # Ok, now we have the path, separated by spaces, we can step through it
10064  # and add multilib dir if necessary.
10065  lt_tmp_lt_search_path_spec=
10066  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10067  for lt_sys_path in $lt_search_path_spec; do
10068    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10069      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070    else
10071      test -d "$lt_sys_path" && \
10072	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10073    fi
10074  done
10075  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10076BEGIN {RS=" "; FS="/|\n";} {
10077  lt_foo="";
10078  lt_count=0;
10079  for (lt_i = NF; lt_i > 0; lt_i--) {
10080    if ($lt_i != "" && $lt_i != ".") {
10081      if ($lt_i == "..") {
10082        lt_count++;
10083      } else {
10084        if (lt_count == 0) {
10085          lt_foo="/" $lt_i lt_foo;
10086        } else {
10087          lt_count--;
10088        }
10089      }
10090    }
10091  }
10092  if (lt_foo != "") { lt_freq[lt_foo]++; }
10093  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094}'`
10095  # AWK program above erroneously prepends '/' to C:/dos/paths
10096  # for these hosts.
10097  case $host_os in
10098    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10099      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100  esac
10101  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102else
10103  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10104fi
10105library_names_spec=
10106libname_spec='lib$name'
10107soname_spec=
10108shrext_cmds=".so"
10109postinstall_cmds=
10110postuninstall_cmds=
10111finish_cmds=
10112finish_eval=
10113shlibpath_var=
10114shlibpath_overrides_runpath=unknown
10115version_type=none
10116dynamic_linker="$host_os ld.so"
10117sys_lib_dlsearch_path_spec="/lib /usr/lib"
10118need_lib_prefix=unknown
10119hardcode_into_libs=no
10120
10121# when you set need_version to no, make sure it does not cause -set_version
10122# flags to be left without arguments
10123need_version=unknown
10124
10125case $host_os in
10126aix3*)
10127  version_type=linux
10128  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10129  shlibpath_var=LIBPATH
10130
10131  # AIX 3 has no versioning support, so we append a major version to the name.
10132  soname_spec='${libname}${release}${shared_ext}$major'
10133  ;;
10134
10135aix[4-9]*)
10136  version_type=linux
10137  need_lib_prefix=no
10138  need_version=no
10139  hardcode_into_libs=yes
10140  if test "$host_cpu" = ia64; then
10141    # AIX 5 supports IA64
10142    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10143    shlibpath_var=LD_LIBRARY_PATH
10144  else
10145    # With GCC up to 2.95.x, collect2 would create an import file
10146    # for dependence libraries.  The import file would start with
10147    # the line `#! .'.  This would cause the generated library to
10148    # depend on `.', always an invalid library.  This was fixed in
10149    # development snapshots of GCC prior to 3.0.
10150    case $host_os in
10151      aix4 | aix4.[01] | aix4.[01].*)
10152      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153	   echo ' yes '
10154	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10155	:
10156      else
10157	can_build_shared=no
10158      fi
10159      ;;
10160    esac
10161    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10162    # soname into executable. Probably we can add versioning support to
10163    # collect2, so additional links can be useful in future.
10164    if test "$aix_use_runtimelinking" = yes; then
10165      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10166      # instead of lib<name>.a to let people know that these are not
10167      # typical AIX shared libraries.
10168      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169    else
10170      # We preserve .a as extension for shared libraries through AIX4.2
10171      # and later when we are not doing run time linking.
10172      library_names_spec='${libname}${release}.a $libname.a'
10173      soname_spec='${libname}${release}${shared_ext}$major'
10174    fi
10175    shlibpath_var=LIBPATH
10176  fi
10177  ;;
10178
10179amigaos*)
10180  case $host_cpu in
10181  powerpc)
10182    # Since July 2007 AmigaOS4 officially supports .so libraries.
10183    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185    ;;
10186  m68k)
10187    library_names_spec='$libname.ixlibrary $libname.a'
10188    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10189    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'
10190    ;;
10191  esac
10192  ;;
10193
10194beos*)
10195  library_names_spec='${libname}${shared_ext}'
10196  dynamic_linker="$host_os ld.so"
10197  shlibpath_var=LIBRARY_PATH
10198  ;;
10199
10200bsdi[45]*)
10201  version_type=linux
10202  need_version=no
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204  soname_spec='${libname}${release}${shared_ext}$major'
10205  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10208  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10209  # the default ld.so.conf also contains /usr/contrib/lib and
10210  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10211  # libtool to hard-code these into programs
10212  ;;
10213
10214cygwin* | mingw* | pw32* | cegcc*)
10215  version_type=windows
10216  shrext_cmds=".dll"
10217  need_version=no
10218  need_lib_prefix=no
10219
10220  case $GCC,$host_os in
10221  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10222    library_names_spec='$libname.dll.a'
10223    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10224    postinstall_cmds='base_file=`basename \${file}`~
10225      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10226      dldir=$destdir/`dirname \$dlpath`~
10227      test -d \$dldir || mkdir -p \$dldir~
10228      $install_prog $dir/$dlname \$dldir/$dlname~
10229      chmod a+x \$dldir/$dlname~
10230      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10231        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232      fi'
10233    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10234      dlpath=$dir/\$dldll~
10235       $RM \$dlpath'
10236    shlibpath_overrides_runpath=yes
10237
10238    case $host_os in
10239    cygwin*)
10240      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10241      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242
10243      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10244      ;;
10245    mingw* | cegcc*)
10246      # MinGW DLLs use traditional 'lib' prefix
10247      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248      ;;
10249    pw32*)
10250      # pw32 DLLs use 'pw' prefix rather than 'lib'
10251      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252      ;;
10253    esac
10254    ;;
10255
10256  *)
10257    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10258    ;;
10259  esac
10260  dynamic_linker='Win32 ld.exe'
10261  # FIXME: first we should search . and the directory the executable is in
10262  shlibpath_var=PATH
10263  ;;
10264
10265darwin* | rhapsody*)
10266  dynamic_linker="$host_os dyld"
10267  version_type=darwin
10268  need_lib_prefix=no
10269  need_version=no
10270  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10271  soname_spec='${libname}${release}${major}$shared_ext'
10272  shlibpath_overrides_runpath=yes
10273  shlibpath_var=DYLD_LIBRARY_PATH
10274  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275
10276  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10277  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10278  ;;
10279
10280dgux*)
10281  version_type=linux
10282  need_lib_prefix=no
10283  need_version=no
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  shlibpath_var=LD_LIBRARY_PATH
10287  ;;
10288
10289freebsd* | dragonfly*)
10290  # DragonFly does not have aout.  When/if they implement a new
10291  # versioning mechanism, adjust this.
10292  if test -x /usr/bin/objformat; then
10293    objformat=`/usr/bin/objformat`
10294  else
10295    case $host_os in
10296    freebsd[23].*) objformat=aout ;;
10297    *) objformat=elf ;;
10298    esac
10299  fi
10300  version_type=freebsd-$objformat
10301  case $version_type in
10302    freebsd-elf*)
10303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304      need_version=no
10305      need_lib_prefix=no
10306      ;;
10307    freebsd-*)
10308      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10309      need_version=yes
10310      ;;
10311  esac
10312  shlibpath_var=LD_LIBRARY_PATH
10313  case $host_os in
10314  freebsd2.*)
10315    shlibpath_overrides_runpath=yes
10316    ;;
10317  freebsd3.[01]* | freebsdelf3.[01]*)
10318    shlibpath_overrides_runpath=yes
10319    hardcode_into_libs=yes
10320    ;;
10321  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10322  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10323    shlibpath_overrides_runpath=no
10324    hardcode_into_libs=yes
10325    ;;
10326  *) # from 4.6 on, and DragonFly
10327    shlibpath_overrides_runpath=yes
10328    hardcode_into_libs=yes
10329    ;;
10330  esac
10331  ;;
10332
10333gnu*)
10334  version_type=linux
10335  need_lib_prefix=no
10336  need_version=no
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10338  soname_spec='${libname}${release}${shared_ext}$major'
10339  shlibpath_var=LD_LIBRARY_PATH
10340  hardcode_into_libs=yes
10341  ;;
10342
10343haiku*)
10344  version_type=linux
10345  need_lib_prefix=no
10346  need_version=no
10347  dynamic_linker="$host_os runtime_loader"
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10349  soname_spec='${libname}${release}${shared_ext}$major'
10350  shlibpath_var=LIBRARY_PATH
10351  shlibpath_overrides_runpath=yes
10352  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10353  hardcode_into_libs=yes
10354  ;;
10355
10356hpux9* | hpux10* | hpux11*)
10357  # Give a soname corresponding to the major version so that dld.sl refuses to
10358  # link against other versions.
10359  version_type=sunos
10360  need_lib_prefix=no
10361  need_version=no
10362  case $host_cpu in
10363  ia64*)
10364    shrext_cmds='.so'
10365    hardcode_into_libs=yes
10366    dynamic_linker="$host_os dld.so"
10367    shlibpath_var=LD_LIBRARY_PATH
10368    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370    soname_spec='${libname}${release}${shared_ext}$major'
10371    if test "X$HPUX_IA64_MODE" = X32; then
10372      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373    else
10374      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375    fi
10376    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377    ;;
10378  hppa*64*)
10379    shrext_cmds='.sl'
10380    hardcode_into_libs=yes
10381    dynamic_linker="$host_os dld.sl"
10382    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385    soname_spec='${libname}${release}${shared_ext}$major'
10386    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388    ;;
10389  *)
10390    shrext_cmds='.sl'
10391    dynamic_linker="$host_os dld.sl"
10392    shlibpath_var=SHLIB_PATH
10393    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395    soname_spec='${libname}${release}${shared_ext}$major'
10396    ;;
10397  esac
10398  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10399  postinstall_cmds='chmod 555 $lib'
10400  # or fails outright, so override atomically:
10401  install_override_mode=555
10402  ;;
10403
10404interix[3-9]*)
10405  version_type=linux
10406  need_lib_prefix=no
10407  need_version=no
10408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409  soname_spec='${libname}${release}${shared_ext}$major'
10410  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  shlibpath_overrides_runpath=no
10413  hardcode_into_libs=yes
10414  ;;
10415
10416irix5* | irix6* | nonstopux*)
10417  case $host_os in
10418    nonstopux*) version_type=nonstopux ;;
10419    *)
10420	if test "$lt_cv_prog_gnu_ld" = yes; then
10421		version_type=linux
10422	else
10423		version_type=irix
10424	fi ;;
10425  esac
10426  need_lib_prefix=no
10427  need_version=no
10428  soname_spec='${libname}${release}${shared_ext}$major'
10429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10430  case $host_os in
10431  irix5* | nonstopux*)
10432    libsuff= shlibsuff=
10433    ;;
10434  *)
10435    case $LD in # libtool.m4 will add one of these switches to LD
10436    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10437      libsuff= shlibsuff= libmagic=32-bit;;
10438    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10439      libsuff=32 shlibsuff=N32 libmagic=N32;;
10440    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10441      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10442    *) libsuff= shlibsuff= libmagic=never-match;;
10443    esac
10444    ;;
10445  esac
10446  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10447  shlibpath_overrides_runpath=no
10448  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10449  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10450  hardcode_into_libs=yes
10451  ;;
10452
10453# No shared lib support for Linux oldld, aout, or coff.
10454linux*oldld* | linux*aout* | linux*coff*)
10455  dynamic_linker=no
10456  ;;
10457
10458# This must be Linux ELF.
10459linux* | k*bsd*-gnu | kopensolaris*-gnu)
10460  version_type=linux
10461  need_lib_prefix=no
10462  need_version=no
10463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464  soname_spec='${libname}${release}${shared_ext}$major'
10465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10466  shlibpath_var=LD_LIBRARY_PATH
10467  shlibpath_overrides_runpath=no
10468
10469  # Some binutils ld are patched to set DT_RUNPATH
10470  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  lt_cv_shlibpath_overrides_runpath=no
10474    save_LDFLAGS=$LDFLAGS
10475    save_libdir=$libdir
10476    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10477	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479/* end confdefs.h.  */
10480
10481int
10482main ()
10483{
10484
10485  ;
10486  return 0;
10487}
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"; then :
10490  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10491  lt_cv_shlibpath_overrides_runpath=yes
10492fi
10493fi
10494rm -f core conftest.err conftest.$ac_objext \
10495    conftest$ac_exeext conftest.$ac_ext
10496    LDFLAGS=$save_LDFLAGS
10497    libdir=$save_libdir
10498
10499fi
10500
10501  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10502
10503  # This implies no fast_install, which is unacceptable.
10504  # Some rework will be needed to allow for fast_install
10505  # before this can be enabled.
10506  hardcode_into_libs=yes
10507
10508  # Append ld.so.conf contents to the search path
10509  if test -f /etc/ld.so.conf; then
10510    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' ' '`
10511    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10512  fi
10513
10514  # We used to test for /lib/ld.so.1 and disable shared libraries on
10515  # powerpc, because MkLinux only supported shared libraries with the
10516  # GNU dynamic linker.  Since this was broken with cross compilers,
10517  # most powerpc-linux boxes support dynamic linking these days and
10518  # people can always --disable-shared, the test was removed, and we
10519  # assume the GNU/Linux dynamic linker is in use.
10520  dynamic_linker='GNU/Linux ld.so'
10521  ;;
10522
10523netbsd*)
10524  version_type=sunos
10525  need_lib_prefix=no
10526  need_version=no
10527  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530    dynamic_linker='NetBSD (a.out) ld.so'
10531  else
10532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10533    soname_spec='${libname}${release}${shared_ext}$major'
10534    dynamic_linker='NetBSD ld.elf_so'
10535  fi
10536  shlibpath_var=LD_LIBRARY_PATH
10537  shlibpath_overrides_runpath=yes
10538  hardcode_into_libs=yes
10539  ;;
10540
10541newsos6)
10542  version_type=linux
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544  shlibpath_var=LD_LIBRARY_PATH
10545  shlibpath_overrides_runpath=yes
10546  ;;
10547
10548*nto* | *qnx*)
10549  version_type=qnx
10550  need_lib_prefix=no
10551  need_version=no
10552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553  soname_spec='${libname}${release}${shared_ext}$major'
10554  shlibpath_var=LD_LIBRARY_PATH
10555  shlibpath_overrides_runpath=no
10556  hardcode_into_libs=yes
10557  dynamic_linker='ldqnx.so'
10558  ;;
10559
10560openbsd*)
10561  version_type=sunos
10562  sys_lib_dlsearch_path_spec="/usr/lib"
10563  need_lib_prefix=no
10564  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10565  case $host_os in
10566    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10567    *)				need_version=no  ;;
10568  esac
10569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10571  shlibpath_var=LD_LIBRARY_PATH
10572  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10573    case $host_os in
10574      openbsd2.[89] | openbsd2.[89].*)
10575	shlibpath_overrides_runpath=no
10576	;;
10577      *)
10578	shlibpath_overrides_runpath=yes
10579	;;
10580      esac
10581  else
10582    shlibpath_overrides_runpath=yes
10583  fi
10584  ;;
10585
10586os2*)
10587  libname_spec='$name'
10588  shrext_cmds=".dll"
10589  need_lib_prefix=no
10590  library_names_spec='$libname${shared_ext} $libname.a'
10591  dynamic_linker='OS/2 ld.exe'
10592  shlibpath_var=LIBPATH
10593  ;;
10594
10595osf3* | osf4* | osf5*)
10596  version_type=osf
10597  need_lib_prefix=no
10598  need_version=no
10599  soname_spec='${libname}${release}${shared_ext}$major'
10600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601  shlibpath_var=LD_LIBRARY_PATH
10602  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10603  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10604  ;;
10605
10606rdos*)
10607  dynamic_linker=no
10608  ;;
10609
10610solaris*)
10611  version_type=linux
10612  need_lib_prefix=no
10613  need_version=no
10614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615  soname_spec='${libname}${release}${shared_ext}$major'
10616  shlibpath_var=LD_LIBRARY_PATH
10617  shlibpath_overrides_runpath=yes
10618  hardcode_into_libs=yes
10619  # ldd complains unless libraries are executable
10620  postinstall_cmds='chmod +x $lib'
10621  ;;
10622
10623sunos4*)
10624  version_type=sunos
10625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10626  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10627  shlibpath_var=LD_LIBRARY_PATH
10628  shlibpath_overrides_runpath=yes
10629  if test "$with_gnu_ld" = yes; then
10630    need_lib_prefix=no
10631  fi
10632  need_version=yes
10633  ;;
10634
10635sysv4 | sysv4.3*)
10636  version_type=linux
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  shlibpath_var=LD_LIBRARY_PATH
10640  case $host_vendor in
10641    sni)
10642      shlibpath_overrides_runpath=no
10643      need_lib_prefix=no
10644      runpath_var=LD_RUN_PATH
10645      ;;
10646    siemens)
10647      need_lib_prefix=no
10648      ;;
10649    motorola)
10650      need_lib_prefix=no
10651      need_version=no
10652      shlibpath_overrides_runpath=no
10653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10654      ;;
10655  esac
10656  ;;
10657
10658sysv4*MP*)
10659  if test -d /usr/nec ;then
10660    version_type=linux
10661    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10662    soname_spec='$libname${shared_ext}.$major'
10663    shlibpath_var=LD_LIBRARY_PATH
10664  fi
10665  ;;
10666
10667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668  version_type=freebsd-elf
10669  need_lib_prefix=no
10670  need_version=no
10671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10672  soname_spec='${libname}${release}${shared_ext}$major'
10673  shlibpath_var=LD_LIBRARY_PATH
10674  shlibpath_overrides_runpath=yes
10675  hardcode_into_libs=yes
10676  if test "$with_gnu_ld" = yes; then
10677    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10678  else
10679    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10680    case $host_os in
10681      sco3.2v5*)
10682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10683	;;
10684    esac
10685  fi
10686  sys_lib_dlsearch_path_spec='/usr/lib'
10687  ;;
10688
10689tpf*)
10690  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10691  version_type=linux
10692  need_lib_prefix=no
10693  need_version=no
10694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695  shlibpath_var=LD_LIBRARY_PATH
10696  shlibpath_overrides_runpath=no
10697  hardcode_into_libs=yes
10698  ;;
10699
10700uts4*)
10701  version_type=linux
10702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703  soname_spec='${libname}${release}${shared_ext}$major'
10704  shlibpath_var=LD_LIBRARY_PATH
10705  ;;
10706
10707*)
10708  dynamic_linker=no
10709  ;;
10710esac
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10712$as_echo "$dynamic_linker" >&6; }
10713test "$dynamic_linker" = no && can_build_shared=no
10714
10715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10716if test "$GCC" = yes; then
10717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10718fi
10719
10720if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10721  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10722fi
10723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10724  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10725fi
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
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10819$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10820hardcode_action=
10821if test -n "$hardcode_libdir_flag_spec" ||
10822   test -n "$runpath_var" ||
10823   test "X$hardcode_automatic" = "Xyes" ; then
10824
10825  # We can hardcode non-existent directories.
10826  if test "$hardcode_direct" != no &&
10827     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10828     # have to relink, otherwise we might link with an installed library
10829     # when we should be linking with a yet-to-be-installed one
10830     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10831     test "$hardcode_minus_L" != no; then
10832    # Linking always hardcodes the temporary library directory.
10833    hardcode_action=relink
10834  else
10835    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10836    hardcode_action=immediate
10837  fi
10838else
10839  # We cannot hardcode anything, or else we can only hardcode existing
10840  # directories.
10841  hardcode_action=unsupported
10842fi
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10844$as_echo "$hardcode_action" >&6; }
10845
10846if test "$hardcode_action" = relink ||
10847   test "$inherit_rpath" = yes; then
10848  # Fast installation is not supported
10849  enable_fast_install=no
10850elif test "$shlibpath_overrides_runpath" = yes ||
10851     test "$enable_shared" = no; then
10852  # Fast installation is not necessary
10853  enable_fast_install=needless
10854fi
10855
10856
10857
10858
10859
10860
10861  if test "x$enable_dlopen" != xyes; then
10862  enable_dlopen=unknown
10863  enable_dlopen_self=unknown
10864  enable_dlopen_self_static=unknown
10865else
10866  lt_cv_dlopen=no
10867  lt_cv_dlopen_libs=
10868
10869  case $host_os in
10870  beos*)
10871    lt_cv_dlopen="load_add_on"
10872    lt_cv_dlopen_libs=
10873    lt_cv_dlopen_self=yes
10874    ;;
10875
10876  mingw* | pw32* | cegcc*)
10877    lt_cv_dlopen="LoadLibrary"
10878    lt_cv_dlopen_libs=
10879    ;;
10880
10881  cygwin*)
10882    lt_cv_dlopen="dlopen"
10883    lt_cv_dlopen_libs=
10884    ;;
10885
10886  darwin*)
10887  # if libdl is installed we need to link against it
10888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10889$as_echo_n "checking for dlopen in -ldl... " >&6; }
10890if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  ac_check_lib_save_LIBS=$LIBS
10894LIBS="-ldl  $LIBS"
10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897
10898/* Override any GCC internal prototype to avoid an error.
10899   Use char because int might match the return type of a GCC
10900   builtin and then its argument prototype would still apply.  */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char dlopen ();
10905int
10906main ()
10907{
10908return dlopen ();
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"; then :
10914  ac_cv_lib_dl_dlopen=yes
10915else
10916  ac_cv_lib_dl_dlopen=no
10917fi
10918rm -f core conftest.err conftest.$ac_objext \
10919    conftest$ac_exeext conftest.$ac_ext
10920LIBS=$ac_check_lib_save_LIBS
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10923$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10924if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10925  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10926else
10927
10928    lt_cv_dlopen="dyld"
10929    lt_cv_dlopen_libs=
10930    lt_cv_dlopen_self=yes
10931
10932fi
10933
10934    ;;
10935
10936  *)
10937    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10938if test "x$ac_cv_func_shl_load" = x""yes; then :
10939  lt_cv_dlopen="shl_load"
10940else
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10942$as_echo_n "checking for shl_load in -ldld... " >&6; }
10943if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10944  $as_echo_n "(cached) " >&6
10945else
10946  ac_check_lib_save_LIBS=$LIBS
10947LIBS="-ldld  $LIBS"
10948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950
10951/* Override any GCC internal prototype to avoid an error.
10952   Use char because int might match the return type of a GCC
10953   builtin and then its argument prototype would still apply.  */
10954#ifdef __cplusplus
10955extern "C"
10956#endif
10957char shl_load ();
10958int
10959main ()
10960{
10961return shl_load ();
10962  ;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_link "$LINENO"; then :
10967  ac_cv_lib_dld_shl_load=yes
10968else
10969  ac_cv_lib_dld_shl_load=no
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972    conftest$ac_exeext conftest.$ac_ext
10973LIBS=$ac_check_lib_save_LIBS
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10976$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10977if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10978  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10979else
10980  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10981if test "x$ac_cv_func_dlopen" = x""yes; then :
10982  lt_cv_dlopen="dlopen"
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985$as_echo_n "checking for dlopen in -ldl... " >&6; }
10986if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10987  $as_echo_n "(cached) " >&6
10988else
10989  ac_check_lib_save_LIBS=$LIBS
10990LIBS="-ldl  $LIBS"
10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h.  */
10993
10994/* Override any GCC internal prototype to avoid an error.
10995   Use char because int might match the return type of a GCC
10996   builtin and then its argument prototype would still apply.  */
10997#ifdef __cplusplus
10998extern "C"
10999#endif
11000char dlopen ();
11001int
11002main ()
11003{
11004return dlopen ();
11005  ;
11006  return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010  ac_cv_lib_dl_dlopen=yes
11011else
11012  ac_cv_lib_dl_dlopen=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015    conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_check_lib_save_LIBS
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11021  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022else
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11024$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11026  $as_echo_n "(cached) " >&6
11027else
11028  ac_check_lib_save_LIBS=$LIBS
11029LIBS="-lsvld  $LIBS"
11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h.  */
11032
11033/* Override any GCC internal prototype to avoid an error.
11034   Use char because int might match the return type of a GCC
11035   builtin and then its argument prototype would still apply.  */
11036#ifdef __cplusplus
11037extern "C"
11038#endif
11039char dlopen ();
11040int
11041main ()
11042{
11043return dlopen ();
11044  ;
11045  return 0;
11046}
11047_ACEOF
11048if ac_fn_c_try_link "$LINENO"; then :
11049  ac_cv_lib_svld_dlopen=yes
11050else
11051  ac_cv_lib_svld_dlopen=no
11052fi
11053rm -f core conftest.err conftest.$ac_objext \
11054    conftest$ac_exeext conftest.$ac_ext
11055LIBS=$ac_check_lib_save_LIBS
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11058$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11059if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11060  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11061else
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11063$as_echo_n "checking for dld_link in -ldld... " >&6; }
11064if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  ac_check_lib_save_LIBS=$LIBS
11068LIBS="-ldld  $LIBS"
11069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070/* end confdefs.h.  */
11071
11072/* Override any GCC internal prototype to avoid an error.
11073   Use char because int might match the return type of a GCC
11074   builtin and then its argument prototype would still apply.  */
11075#ifdef __cplusplus
11076extern "C"
11077#endif
11078char dld_link ();
11079int
11080main ()
11081{
11082return dld_link ();
11083  ;
11084  return 0;
11085}
11086_ACEOF
11087if ac_fn_c_try_link "$LINENO"; then :
11088  ac_cv_lib_dld_dld_link=yes
11089else
11090  ac_cv_lib_dld_dld_link=no
11091fi
11092rm -f core conftest.err conftest.$ac_objext \
11093    conftest$ac_exeext conftest.$ac_ext
11094LIBS=$ac_check_lib_save_LIBS
11095fi
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11097$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11098if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11099  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11100fi
11101
11102
11103fi
11104
11105
11106fi
11107
11108
11109fi
11110
11111
11112fi
11113
11114
11115fi
11116
11117    ;;
11118  esac
11119
11120  if test "x$lt_cv_dlopen" != xno; then
11121    enable_dlopen=yes
11122  else
11123    enable_dlopen=no
11124  fi
11125
11126  case $lt_cv_dlopen in
11127  dlopen)
11128    save_CPPFLAGS="$CPPFLAGS"
11129    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11130
11131    save_LDFLAGS="$LDFLAGS"
11132    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11133
11134    save_LIBS="$LIBS"
11135    LIBS="$lt_cv_dlopen_libs $LIBS"
11136
11137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11138$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11139if test "${lt_cv_dlopen_self+set}" = set; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  	  if test "$cross_compiling" = yes; then :
11143  lt_cv_dlopen_self=cross
11144else
11145  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11146  lt_status=$lt_dlunknown
11147  cat > conftest.$ac_ext <<_LT_EOF
11148#line 11148 "configure"
11149#include "confdefs.h"
11150
11151#if HAVE_DLFCN_H
11152#include <dlfcn.h>
11153#endif
11154
11155#include <stdio.h>
11156
11157#ifdef RTLD_GLOBAL
11158#  define LT_DLGLOBAL		RTLD_GLOBAL
11159#else
11160#  ifdef DL_GLOBAL
11161#    define LT_DLGLOBAL		DL_GLOBAL
11162#  else
11163#    define LT_DLGLOBAL		0
11164#  endif
11165#endif
11166
11167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11168   find out it does not work in some platform. */
11169#ifndef LT_DLLAZY_OR_NOW
11170#  ifdef RTLD_LAZY
11171#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11172#  else
11173#    ifdef DL_LAZY
11174#      define LT_DLLAZY_OR_NOW		DL_LAZY
11175#    else
11176#      ifdef RTLD_NOW
11177#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11178#      else
11179#        ifdef DL_NOW
11180#          define LT_DLLAZY_OR_NOW	DL_NOW
11181#        else
11182#          define LT_DLLAZY_OR_NOW	0
11183#        endif
11184#      endif
11185#    endif
11186#  endif
11187#endif
11188
11189/* When -fvisbility=hidden is used, assume the code has been annotated
11190   correspondingly for the symbols needed.  */
11191#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11192void fnord () __attribute__((visibility("default")));
11193#endif
11194
11195void fnord () { int i=42; }
11196int main ()
11197{
11198  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199  int status = $lt_dlunknown;
11200
11201  if (self)
11202    {
11203      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11204      else
11205        {
11206	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11207          else puts (dlerror ());
11208	}
11209      /* dlclose (self); */
11210    }
11211  else
11212    puts (dlerror ());
11213
11214  return status;
11215}
11216_LT_EOF
11217  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11218  (eval $ac_link) 2>&5
11219  ac_status=$?
11220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11222    (./conftest; exit; ) >&5 2>/dev/null
11223    lt_status=$?
11224    case x$lt_status in
11225      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11226      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11227      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228    esac
11229  else :
11230    # compilation failed
11231    lt_cv_dlopen_self=no
11232  fi
11233fi
11234rm -fr conftest*
11235
11236
11237fi
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11239$as_echo "$lt_cv_dlopen_self" >&6; }
11240
11241    if test "x$lt_cv_dlopen_self" = xyes; then
11242      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11243      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11244$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11245if test "${lt_cv_dlopen_self_static+set}" = set; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  	  if test "$cross_compiling" = yes; then :
11249  lt_cv_dlopen_self_static=cross
11250else
11251  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252  lt_status=$lt_dlunknown
11253  cat > conftest.$ac_ext <<_LT_EOF
11254#line 11254 "configure"
11255#include "confdefs.h"
11256
11257#if HAVE_DLFCN_H
11258#include <dlfcn.h>
11259#endif
11260
11261#include <stdio.h>
11262
11263#ifdef RTLD_GLOBAL
11264#  define LT_DLGLOBAL		RTLD_GLOBAL
11265#else
11266#  ifdef DL_GLOBAL
11267#    define LT_DLGLOBAL		DL_GLOBAL
11268#  else
11269#    define LT_DLGLOBAL		0
11270#  endif
11271#endif
11272
11273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274   find out it does not work in some platform. */
11275#ifndef LT_DLLAZY_OR_NOW
11276#  ifdef RTLD_LAZY
11277#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11278#  else
11279#    ifdef DL_LAZY
11280#      define LT_DLLAZY_OR_NOW		DL_LAZY
11281#    else
11282#      ifdef RTLD_NOW
11283#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11284#      else
11285#        ifdef DL_NOW
11286#          define LT_DLLAZY_OR_NOW	DL_NOW
11287#        else
11288#          define LT_DLLAZY_OR_NOW	0
11289#        endif
11290#      endif
11291#    endif
11292#  endif
11293#endif
11294
11295/* When -fvisbility=hidden is used, assume the code has been annotated
11296   correspondingly for the symbols needed.  */
11297#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11298void fnord () __attribute__((visibility("default")));
11299#endif
11300
11301void fnord () { int i=42; }
11302int main ()
11303{
11304  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305  int status = $lt_dlunknown;
11306
11307  if (self)
11308    {
11309      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11310      else
11311        {
11312	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11313          else puts (dlerror ());
11314	}
11315      /* dlclose (self); */
11316    }
11317  else
11318    puts (dlerror ());
11319
11320  return status;
11321}
11322_LT_EOF
11323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11324  (eval $ac_link) 2>&5
11325  ac_status=$?
11326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11328    (./conftest; exit; ) >&5 2>/dev/null
11329    lt_status=$?
11330    case x$lt_status in
11331      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11332      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11333      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11334    esac
11335  else :
11336    # compilation failed
11337    lt_cv_dlopen_self_static=no
11338  fi
11339fi
11340rm -fr conftest*
11341
11342
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11345$as_echo "$lt_cv_dlopen_self_static" >&6; }
11346    fi
11347
11348    CPPFLAGS="$save_CPPFLAGS"
11349    LDFLAGS="$save_LDFLAGS"
11350    LIBS="$save_LIBS"
11351    ;;
11352  esac
11353
11354  case $lt_cv_dlopen_self in
11355  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11356  *) enable_dlopen_self=unknown ;;
11357  esac
11358
11359  case $lt_cv_dlopen_self_static in
11360  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11361  *) enable_dlopen_self_static=unknown ;;
11362  esac
11363fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381striplib=
11382old_striplib=
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11384$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11385if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11386  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389$as_echo "yes" >&6; }
11390else
11391# FIXME - insert some real tests, host_os isn't really good enough
11392  case $host_os in
11393  darwin*)
11394    if test -n "$STRIP" ; then
11395      striplib="$STRIP -x"
11396      old_striplib="$STRIP -S"
11397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398$as_echo "yes" >&6; }
11399    else
11400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
11402    fi
11403    ;;
11404  *)
11405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407    ;;
11408  esac
11409fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422  # Report which library types will actually be built
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11424$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11426$as_echo "$can_build_shared" >&6; }
11427
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11429$as_echo_n "checking whether to build shared libraries... " >&6; }
11430  test "$can_build_shared" = "no" && enable_shared=no
11431
11432  # On AIX, shared libraries and static libraries use the same namespace, and
11433  # are all built from PIC.
11434  case $host_os in
11435  aix3*)
11436    test "$enable_shared" = yes && enable_static=no
11437    if test -n "$RANLIB"; then
11438      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11439      postinstall_cmds='$RANLIB $lib'
11440    fi
11441    ;;
11442
11443  aix[4-9]*)
11444    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11445      test "$enable_shared" = yes && enable_static=no
11446    fi
11447    ;;
11448  esac
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11450$as_echo "$enable_shared" >&6; }
11451
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11453$as_echo_n "checking whether to build static libraries... " >&6; }
11454  # Make sure either enable_shared or enable_static is yes.
11455  test "$enable_shared" = yes || enable_static=yes
11456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11457$as_echo "$enable_static" >&6; }
11458
11459
11460
11461
11462fi
11463ac_ext=c
11464ac_cpp='$CPP $CPPFLAGS'
11465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468
11469CC="$lt_save_CC"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483        ac_config_commands="$ac_config_commands libtool"
11484
11485
11486
11487
11488# Only expand once:
11489
11490
11491
11492
11493
11494case $host in
11495  *-cygwin* | *-mingw*)
11496    # 'host' will be top-level target in the case of a target lib,
11497    # we must compare to with_cross_host to decide if this is a native
11498    # or cross-compiler and select where to install dlls appropriately.
11499    if test -n "$with_cross_host" &&
11500	test x"$with_cross_host" != x"no"; then
11501      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11502    else
11503      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11504    fi
11505    ;;
11506  *)
11507    lt_host_flags=
11508    ;;
11509esac
11510
11511
11512
11513
11514
11515
11516
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11518$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11519    # Check whether --enable-maintainer-mode was given.
11520if test "${enable_maintainer_mode+set}" = set; then :
11521  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11522else
11523  USE_MAINTAINER_MODE=no
11524fi
11525
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11527$as_echo "$USE_MAINTAINER_MODE" >&6; }
11528   if test $USE_MAINTAINER_MODE = yes; then
11529  MAINTAINER_MODE_TRUE=
11530  MAINTAINER_MODE_FALSE='#'
11531else
11532  MAINTAINER_MODE_TRUE='#'
11533  MAINTAINER_MODE_FALSE=
11534fi
11535
11536  MAINT=$MAINTAINER_MODE_TRUE
11537
11538
11539
11540# Create a spec file, so that compile/link tests don't fail
11541test -f libgfortran.spec || touch libgfortran.spec
11542FCFLAGS="$FCFLAGS -L."
11543
11544# We need gfortran to compile parts of the library
11545# We can't use AC_PROG_FC because it expects a fully working gfortran.
11546#AC_PROG_FC(gfortran)
11547case `echo $GFORTRAN` in
11548  -* | no* )
11549    FC=no ;;
11550  *)
11551    set dummy $GFORTRAN; ac_word=$2
11552    if test -x "$ac_word"; then
11553      FC="$GFORTRAN"
11554    else
11555      FC=no
11556    fi ;;
11557esac
11558ac_ext=${ac_fc_srcext-f}
11559ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11560ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11561ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11562if test -n "$ac_tool_prefix"; then
11563  for ac_prog in gfortran
11564  do
11565    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if test "${ac_cv_prog_FC+set}" = set; then :
11570  $as_echo_n "(cached) " >&6
11571else
11572  if test -n "$FC"; then
11573  ac_cv_prog_FC="$FC" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578  IFS=$as_save_IFS
11579  test -z "$as_dir" && as_dir=.
11580    for ac_exec_ext in '' $ac_executable_extensions; do
11581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584    break 2
11585  fi
11586done
11587  done
11588IFS=$as_save_IFS
11589
11590fi
11591fi
11592FC=$ac_cv_prog_FC
11593if test -n "$FC"; then
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11595$as_echo "$FC" >&6; }
11596else
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599fi
11600
11601
11602    test -n "$FC" && break
11603  done
11604fi
11605if test -z "$FC"; then
11606  ac_ct_FC=$FC
11607  for ac_prog in gfortran
11608do
11609  # Extract the first word of "$ac_prog", so it can be a program name with args.
11610set dummy $ac_prog; ac_word=$2
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612$as_echo_n "checking for $ac_word... " >&6; }
11613if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  if test -n "$ac_ct_FC"; then
11617  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11618else
11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620for as_dir in $PATH
11621do
11622  IFS=$as_save_IFS
11623  test -z "$as_dir" && as_dir=.
11624    for ac_exec_ext in '' $ac_executable_extensions; do
11625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626    ac_cv_prog_ac_ct_FC="$ac_prog"
11627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628    break 2
11629  fi
11630done
11631  done
11632IFS=$as_save_IFS
11633
11634fi
11635fi
11636ac_ct_FC=$ac_cv_prog_ac_ct_FC
11637if test -n "$ac_ct_FC"; then
11638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11639$as_echo "$ac_ct_FC" >&6; }
11640else
11641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642$as_echo "no" >&6; }
11643fi
11644
11645
11646  test -n "$ac_ct_FC" && break
11647done
11648
11649  if test "x$ac_ct_FC" = x; then
11650    FC=""
11651  else
11652    case $cross_compiling:$ac_tool_warned in
11653yes:)
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11656ac_tool_warned=yes ;;
11657esac
11658    FC=$ac_ct_FC
11659  fi
11660fi
11661
11662
11663# Provide some information about the compiler.
11664$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11665set X $ac_compile
11666ac_compiler=$2
11667for ac_option in --version -v -V -qversion; do
11668  { { ac_try="$ac_compiler $ac_option >&5"
11669case "(($ac_try" in
11670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671  *) ac_try_echo=$ac_try;;
11672esac
11673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11674$as_echo "$ac_try_echo"; } >&5
11675  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11676  ac_status=$?
11677  if test -s conftest.err; then
11678    sed '10a\
11679... rest of stderr output deleted ...
11680         10q' conftest.err >conftest.er1
11681    cat conftest.er1 >&5
11682    rm -f conftest.er1 conftest.err
11683  fi
11684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685  test $ac_status = 0; }
11686done
11687rm -f a.out
11688
11689# If we don't use `.F' as extension, the preprocessor is not run on the
11690# input file.  (Note that this only needs to work for GNU compilers.)
11691ac_save_ext=$ac_ext
11692ac_ext=F
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11694$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11695if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  cat > conftest.$ac_ext <<_ACEOF
11699      program main
11700#ifndef __GNUC__
11701       choke me
11702#endif
11703
11704      end
11705_ACEOF
11706if ac_fn_fc_try_compile "$LINENO"; then :
11707  ac_compiler_gnu=yes
11708else
11709  ac_compiler_gnu=no
11710fi
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11713
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11716$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11717ac_ext=$ac_save_ext
11718ac_test_FCFLAGS=${FCFLAGS+set}
11719ac_save_FCFLAGS=$FCFLAGS
11720FCFLAGS=
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11722$as_echo_n "checking whether $FC accepts -g... " >&6; }
11723if test "${ac_cv_prog_fc_g+set}" = set; then :
11724  $as_echo_n "(cached) " >&6
11725else
11726  FCFLAGS=-g
11727cat > conftest.$ac_ext <<_ACEOF
11728      program main
11729
11730      end
11731_ACEOF
11732if ac_fn_fc_try_compile "$LINENO"; then :
11733  ac_cv_prog_fc_g=yes
11734else
11735  ac_cv_prog_fc_g=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738
11739fi
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11741$as_echo "$ac_cv_prog_fc_g" >&6; }
11742if test "$ac_test_FCFLAGS" = set; then
11743  FCFLAGS=$ac_save_FCFLAGS
11744elif test $ac_cv_prog_fc_g = yes; then
11745  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11746    FCFLAGS="-g -O2"
11747  else
11748    FCFLAGS="-g"
11749  fi
11750else
11751  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11752    FCFLAGS="-O2"
11753  else
11754    FCFLAGS=
11755  fi
11756fi
11757
11758ac_ext=c
11759ac_cpp='$CPP $CPPFLAGS'
11760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764      ac_ext=${ac_fc_srcext-f}
11765ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11766ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11767ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11768
11769
11770if test -z "$FC" || test "X$FC" = "Xno"; then
11771  _lt_disable_FC=yes
11772fi
11773
11774archive_cmds_need_lc_FC=no
11775allow_undefined_flag_FC=
11776always_export_symbols_FC=no
11777archive_expsym_cmds_FC=
11778export_dynamic_flag_spec_FC=
11779hardcode_direct_FC=no
11780hardcode_direct_absolute_FC=no
11781hardcode_libdir_flag_spec_FC=
11782hardcode_libdir_flag_spec_ld_FC=
11783hardcode_libdir_separator_FC=
11784hardcode_minus_L_FC=no
11785hardcode_automatic_FC=no
11786inherit_rpath_FC=no
11787module_cmds_FC=
11788module_expsym_cmds_FC=
11789link_all_deplibs_FC=unknown
11790old_archive_cmds_FC=$old_archive_cmds
11791reload_flag_FC=$reload_flag
11792reload_cmds_FC=$reload_cmds
11793no_undefined_flag_FC=
11794whole_archive_flag_spec_FC=
11795enable_shared_with_static_runtimes_FC=no
11796
11797# Source file extension for fc test sources.
11798ac_ext=${ac_fc_srcext-f}
11799
11800# Object file extension for compiled fc test sources.
11801objext=o
11802objext_FC=$objext
11803
11804# No sense in running all these tests if we already determined that
11805# the FC compiler isn't working.  Some variables (like enable_shared)
11806# are currently assumed to apply to all compilers on this platform,
11807# and will be corrupted by setting them based on a non-working compiler.
11808if test "$_lt_disable_FC" != yes; then
11809  # Code to be used in simple compile tests
11810  lt_simple_compile_test_code="\
11811      subroutine t
11812      return
11813      end
11814"
11815
11816  # Code to be used in simple link tests
11817  lt_simple_link_test_code="\
11818      program t
11819      end
11820"
11821
11822  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11823
11824
11825
11826
11827
11828
11829# If no C compiler was specified, use CC.
11830LTCC=${LTCC-"$CC"}
11831
11832# If no C compiler flags were specified, use CFLAGS.
11833LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11834
11835# Allow CC to be a program name with arguments.
11836compiler=$CC
11837
11838
11839  # save warnings/boilerplate of simple test code
11840  ac_outfile=conftest.$ac_objext
11841echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11843_lt_compiler_boilerplate=`cat conftest.err`
11844$RM conftest*
11845
11846  ac_outfile=conftest.$ac_objext
11847echo "$lt_simple_link_test_code" >conftest.$ac_ext
11848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11849_lt_linker_boilerplate=`cat conftest.err`
11850$RM -r conftest*
11851
11852
11853  # Allow CC to be a program name with arguments.
11854  lt_save_CC="$CC"
11855  lt_save_GCC=$GCC
11856  CC=${FC-"f95"}
11857  compiler=$CC
11858  GCC=$ac_cv_fc_compiler_gnu
11859
11860  compiler_FC=$CC
11861  for cc_temp in $compiler""; do
11862  case $cc_temp in
11863    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11864    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11865    \-*) ;;
11866    *) break;;
11867  esac
11868done
11869cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11870
11871
11872  if test -n "$compiler"; then
11873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11874$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11876$as_echo "$can_build_shared" >&6; }
11877
11878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11879$as_echo_n "checking whether to build shared libraries... " >&6; }
11880    test "$can_build_shared" = "no" && enable_shared=no
11881
11882    # On AIX, shared libraries and static libraries use the same namespace, and
11883    # are all built from PIC.
11884    case $host_os in
11885      aix3*)
11886        test "$enable_shared" = yes && enable_static=no
11887        if test -n "$RANLIB"; then
11888          archive_cmds="$archive_cmds~\$RANLIB \$lib"
11889          postinstall_cmds='$RANLIB $lib'
11890        fi
11891        ;;
11892      aix[4-9]*)
11893	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11894	  test "$enable_shared" = yes && enable_static=no
11895	fi
11896        ;;
11897    esac
11898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11899$as_echo "$enable_shared" >&6; }
11900
11901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11902$as_echo_n "checking whether to build static libraries... " >&6; }
11903    # Make sure either enable_shared or enable_static is yes.
11904    test "$enable_shared" = yes || enable_static=yes
11905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11906$as_echo "$enable_static" >&6; }
11907
11908    GCC_FC="$ac_cv_fc_compiler_gnu"
11909    LD_FC="$LD"
11910
11911    ## CAVEAT EMPTOR:
11912    ## There is no encapsulation within the following macros, do not change
11913    ## the running order or otherwise move them around unless you know exactly
11914    ## what you are doing...
11915    # Dependencies to place before and after the object being linked:
11916predep_objects_FC=
11917postdep_objects_FC=
11918predeps_FC=
11919postdeps_FC=
11920compiler_lib_search_path_FC=
11921
11922cat > conftest.$ac_ext <<_LT_EOF
11923      subroutine foo
11924      implicit none
11925      integer a
11926      a=0
11927      return
11928      end
11929_LT_EOF
11930
11931if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11932  (eval $ac_compile) 2>&5
11933  ac_status=$?
11934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11935  test $ac_status = 0; }; then
11936  # Parse the compiler output and extract the necessary
11937  # objects, libraries and library flags.
11938
11939  # Sentinel used to keep track of whether or not we are before
11940  # the conftest object file.
11941  pre_test_object_deps_done=no
11942
11943  for p in `eval "$output_verbose_link_cmd"`; do
11944    case $p in
11945
11946    -L* | -R* | -l*)
11947       # Some compilers place space between "-{L,R}" and the path.
11948       # Remove the space.
11949       if test $p = "-L" ||
11950          test $p = "-R"; then
11951	 prev=$p
11952	 continue
11953       else
11954	 prev=
11955       fi
11956
11957       if test "$pre_test_object_deps_done" = no; then
11958	 case $p in
11959	 -L* | -R*)
11960	   # Internal compiler library paths should come after those
11961	   # provided the user.  The postdeps already come after the
11962	   # user supplied libs so there is no need to process them.
11963	   if test -z "$compiler_lib_search_path_FC"; then
11964	     compiler_lib_search_path_FC="${prev}${p}"
11965	   else
11966	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11967	   fi
11968	   ;;
11969	 # The "-l" case would never come before the object being
11970	 # linked, so don't bother handling this case.
11971	 esac
11972       else
11973	 if test -z "$postdeps_FC"; then
11974	   postdeps_FC="${prev}${p}"
11975	 else
11976	   postdeps_FC="${postdeps_FC} ${prev}${p}"
11977	 fi
11978       fi
11979       ;;
11980
11981    *.$objext)
11982       # This assumes that the test object file only shows up
11983       # once in the compiler output.
11984       if test "$p" = "conftest.$objext"; then
11985	 pre_test_object_deps_done=yes
11986	 continue
11987       fi
11988
11989       if test "$pre_test_object_deps_done" = no; then
11990	 if test -z "$predep_objects_FC"; then
11991	   predep_objects_FC="$p"
11992	 else
11993	   predep_objects_FC="$predep_objects_FC $p"
11994	 fi
11995       else
11996	 if test -z "$postdep_objects_FC"; then
11997	   postdep_objects_FC="$p"
11998	 else
11999	   postdep_objects_FC="$postdep_objects_FC $p"
12000	 fi
12001       fi
12002       ;;
12003
12004    *) ;; # Ignore the rest.
12005
12006    esac
12007  done
12008
12009  # Clean up.
12010  rm -f a.out a.exe
12011else
12012  echo "libtool.m4: error: problem compiling FC test program"
12013fi
12014
12015$RM -f confest.$objext
12016
12017# PORTME: override above test on systems where it is broken
12018
12019
12020case " $postdeps_FC " in
12021*" -lc "*) archive_cmds_need_lc_FC=no ;;
12022esac
12023 compiler_lib_search_dirs_FC=
12024if test -n "${compiler_lib_search_path_FC}"; then
12025 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12026fi
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058    lt_prog_compiler_wl_FC=
12059lt_prog_compiler_pic_FC=
12060lt_prog_compiler_static_FC=
12061
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12063$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12064
12065  if test "$GCC" = yes; then
12066    lt_prog_compiler_wl_FC='-Wl,'
12067    lt_prog_compiler_static_FC='-static'
12068
12069    case $host_os in
12070      aix*)
12071      # All AIX code is PIC.
12072      if test "$host_cpu" = ia64; then
12073	# AIX 5 now supports IA64 processor
12074	lt_prog_compiler_static_FC='-Bstatic'
12075      fi
12076      lt_prog_compiler_pic_FC='-fPIC'
12077      ;;
12078
12079    amigaos*)
12080      case $host_cpu in
12081      powerpc)
12082            # see comment about AmigaOS4 .so support
12083            lt_prog_compiler_pic_FC='-fPIC'
12084        ;;
12085      m68k)
12086            # FIXME: we need at least 68020 code to build shared libraries, but
12087            # adding the `-m68020' flag to GCC prevents building anything better,
12088            # like `-m68040'.
12089            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12090        ;;
12091      esac
12092      ;;
12093
12094    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12095      # PIC is the default for these OSes.
12096      ;;
12097
12098    mingw* | cygwin* | pw32* | os2* | cegcc*)
12099      # This hack is so that the source file can tell whether it is being
12100      # built for inclusion in a dll (and should export symbols for example).
12101      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12102      # (--disable-auto-import) libraries
12103      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12104      ;;
12105
12106    darwin* | rhapsody*)
12107      # PIC is the default on this platform
12108      # Common symbols not allowed in MH_DYLIB files
12109      lt_prog_compiler_pic_FC='-fno-common'
12110      ;;
12111
12112    haiku*)
12113      # PIC is the default for Haiku.
12114      # The "-static" flag exists, but is broken.
12115      lt_prog_compiler_static_FC=
12116      ;;
12117
12118    hpux*)
12119      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12120      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12121      # sets the default TLS model and affects inlining.
12122      case $host_cpu in
12123      hppa*64*)
12124	# +Z the default
12125	;;
12126      *)
12127	lt_prog_compiler_pic_FC='-fPIC'
12128	;;
12129      esac
12130      ;;
12131
12132    interix[3-9]*)
12133      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12134      # Instead, we relocate shared libraries at runtime.
12135      ;;
12136
12137    msdosdjgpp*)
12138      # Just because we use GCC doesn't mean we suddenly get shared libraries
12139      # on systems that don't support them.
12140      lt_prog_compiler_can_build_shared_FC=no
12141      enable_shared=no
12142      ;;
12143
12144    *nto* | *qnx*)
12145      # QNX uses GNU C++, but need to define -shared option too, otherwise
12146      # it will coredump.
12147      lt_prog_compiler_pic_FC='-fPIC -shared'
12148      ;;
12149
12150    sysv4*MP*)
12151      if test -d /usr/nec; then
12152	lt_prog_compiler_pic_FC=-Kconform_pic
12153      fi
12154      ;;
12155
12156    *)
12157      lt_prog_compiler_pic_FC='-fPIC'
12158      ;;
12159    esac
12160
12161    case $cc_basename in
12162    nvcc*) # Cuda Compiler Driver 2.2
12163      lt_prog_compiler_wl_FC='-Xlinker '
12164      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12165      ;;
12166    esac
12167  else
12168    # PORTME Check for flag to pass linker flags through the system compiler.
12169    case $host_os in
12170    aix*)
12171      lt_prog_compiler_wl_FC='-Wl,'
12172      if test "$host_cpu" = ia64; then
12173	# AIX 5 now supports IA64 processor
12174	lt_prog_compiler_static_FC='-Bstatic'
12175      else
12176	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12177      fi
12178      ;;
12179
12180    mingw* | cygwin* | pw32* | os2* | cegcc*)
12181      # This hack is so that the source file can tell whether it is being
12182      # built for inclusion in a dll (and should export symbols for example).
12183      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12184      ;;
12185
12186    hpux9* | hpux10* | hpux11*)
12187      lt_prog_compiler_wl_FC='-Wl,'
12188      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12189      # not for PA HP-UX.
12190      case $host_cpu in
12191      hppa*64*|ia64*)
12192	# +Z the default
12193	;;
12194      *)
12195	lt_prog_compiler_pic_FC='+Z'
12196	;;
12197      esac
12198      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12199      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12200      ;;
12201
12202    irix5* | irix6* | nonstopux*)
12203      lt_prog_compiler_wl_FC='-Wl,'
12204      # PIC (with -KPIC) is the default.
12205      lt_prog_compiler_static_FC='-non_shared'
12206      ;;
12207
12208    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12209      case $cc_basename in
12210      # old Intel for x86_64 which still supported -KPIC.
12211      ecc*)
12212	lt_prog_compiler_wl_FC='-Wl,'
12213	lt_prog_compiler_pic_FC='-KPIC'
12214	lt_prog_compiler_static_FC='-static'
12215        ;;
12216      # icc used to be incompatible with GCC.
12217      # ICC 10 doesn't accept -KPIC any more.
12218      icc* | ifort*)
12219	lt_prog_compiler_wl_FC='-Wl,'
12220	lt_prog_compiler_pic_FC='-fPIC'
12221	lt_prog_compiler_static_FC='-static'
12222        ;;
12223      # Lahey Fortran 8.1.
12224      lf95*)
12225	lt_prog_compiler_wl_FC='-Wl,'
12226	lt_prog_compiler_pic_FC='--shared'
12227	lt_prog_compiler_static_FC='--static'
12228	;;
12229      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12230        # Portland Group compilers (*not* the Pentium gcc compiler,
12231	# which looks to be a dead project)
12232	lt_prog_compiler_wl_FC='-Wl,'
12233	lt_prog_compiler_pic_FC='-fpic'
12234	lt_prog_compiler_static_FC='-Bstatic'
12235        ;;
12236      ccc*)
12237        lt_prog_compiler_wl_FC='-Wl,'
12238        # All Alpha code is PIC.
12239        lt_prog_compiler_static_FC='-non_shared'
12240        ;;
12241      xl* | bgxl* | bgf* | mpixl*)
12242	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12243	lt_prog_compiler_wl_FC='-Wl,'
12244	lt_prog_compiler_pic_FC='-qpic'
12245	lt_prog_compiler_static_FC='-qstaticlink'
12246	;;
12247      *)
12248	case `$CC -V 2>&1 | sed 5q` in
12249	*Sun\ F* | *Sun*Fortran*)
12250	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12251	  lt_prog_compiler_pic_FC='-KPIC'
12252	  lt_prog_compiler_static_FC='-Bstatic'
12253	  lt_prog_compiler_wl_FC=''
12254	  ;;
12255	*Sun\ C*)
12256	  # Sun C 5.9
12257	  lt_prog_compiler_pic_FC='-KPIC'
12258	  lt_prog_compiler_static_FC='-Bstatic'
12259	  lt_prog_compiler_wl_FC='-Wl,'
12260	  ;;
12261	esac
12262	;;
12263      esac
12264      ;;
12265
12266    newsos6)
12267      lt_prog_compiler_pic_FC='-KPIC'
12268      lt_prog_compiler_static_FC='-Bstatic'
12269      ;;
12270
12271    *nto* | *qnx*)
12272      # QNX uses GNU C++, but need to define -shared option too, otherwise
12273      # it will coredump.
12274      lt_prog_compiler_pic_FC='-fPIC -shared'
12275      ;;
12276
12277    osf3* | osf4* | osf5*)
12278      lt_prog_compiler_wl_FC='-Wl,'
12279      # All OSF/1 code is PIC.
12280      lt_prog_compiler_static_FC='-non_shared'
12281      ;;
12282
12283    rdos*)
12284      lt_prog_compiler_static_FC='-non_shared'
12285      ;;
12286
12287    solaris*)
12288      lt_prog_compiler_pic_FC='-KPIC'
12289      lt_prog_compiler_static_FC='-Bstatic'
12290      case $cc_basename in
12291      f77* | f90* | f95*)
12292	lt_prog_compiler_wl_FC='-Qoption ld ';;
12293      *)
12294	lt_prog_compiler_wl_FC='-Wl,';;
12295      esac
12296      ;;
12297
12298    sunos4*)
12299      lt_prog_compiler_wl_FC='-Qoption ld '
12300      lt_prog_compiler_pic_FC='-PIC'
12301      lt_prog_compiler_static_FC='-Bstatic'
12302      ;;
12303
12304    sysv4 | sysv4.2uw2* | sysv4.3*)
12305      lt_prog_compiler_wl_FC='-Wl,'
12306      lt_prog_compiler_pic_FC='-KPIC'
12307      lt_prog_compiler_static_FC='-Bstatic'
12308      ;;
12309
12310    sysv4*MP*)
12311      if test -d /usr/nec ;then
12312	lt_prog_compiler_pic_FC='-Kconform_pic'
12313	lt_prog_compiler_static_FC='-Bstatic'
12314      fi
12315      ;;
12316
12317    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12318      lt_prog_compiler_wl_FC='-Wl,'
12319      lt_prog_compiler_pic_FC='-KPIC'
12320      lt_prog_compiler_static_FC='-Bstatic'
12321      ;;
12322
12323    unicos*)
12324      lt_prog_compiler_wl_FC='-Wl,'
12325      lt_prog_compiler_can_build_shared_FC=no
12326      ;;
12327
12328    uts4*)
12329      lt_prog_compiler_pic_FC='-pic'
12330      lt_prog_compiler_static_FC='-Bstatic'
12331      ;;
12332
12333    *)
12334      lt_prog_compiler_can_build_shared_FC=no
12335      ;;
12336    esac
12337  fi
12338
12339case $host_os in
12340  # For platforms which do not support PIC, -DPIC is meaningless:
12341  *djgpp*)
12342    lt_prog_compiler_pic_FC=
12343    ;;
12344  *)
12345    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12346    ;;
12347esac
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12349$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12350
12351
12352
12353#
12354# Check to make sure the PIC flag actually works.
12355#
12356if test -n "$lt_prog_compiler_pic_FC"; then
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12358$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12359if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  lt_cv_prog_compiler_pic_works_FC=no
12363   ac_outfile=conftest.$ac_objext
12364   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12365   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12366   # Insert the option either (1) after the last *FLAGS variable, or
12367   # (2) before a word containing "conftest.", or (3) at the end.
12368   # Note that $ac_compile itself does not contain backslashes and begins
12369   # with a dollar sign (not a hyphen), so the echo should work correctly.
12370   # The option is referenced via a variable to avoid confusing sed.
12371   lt_compile=`echo "$ac_compile" | $SED \
12372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12374   -e 's:$: $lt_compiler_flag:'`
12375   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12376   (eval "$lt_compile" 2>conftest.err)
12377   ac_status=$?
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   if (exit $ac_status) && test -s "$ac_outfile"; then
12381     # The compiler can only warn and ignore the option if not recognized
12382     # So say no if there are warnings other than the usual output.
12383     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12386       lt_cv_prog_compiler_pic_works_FC=yes
12387     fi
12388   fi
12389   $RM conftest*
12390
12391fi
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12393$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12394
12395if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12396    case $lt_prog_compiler_pic_FC in
12397     "" | " "*) ;;
12398     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12399     esac
12400else
12401    lt_prog_compiler_pic_FC=
12402     lt_prog_compiler_can_build_shared_FC=no
12403fi
12404
12405fi
12406
12407
12408
12409#
12410# Check to make sure the static flag actually works.
12411#
12412wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12414$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12415if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12416  $as_echo_n "(cached) " >&6
12417else
12418  lt_cv_prog_compiler_static_works_FC=no
12419   save_LDFLAGS="$LDFLAGS"
12420   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12421   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12422   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12423     # The linker can only warn and ignore the option if not recognized
12424     # So say no if there are warnings
12425     if test -s conftest.err; then
12426       # Append any errors to the config.log.
12427       cat conftest.err 1>&5
12428       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12429       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12430       if diff conftest.exp conftest.er2 >/dev/null; then
12431         lt_cv_prog_compiler_static_works_FC=yes
12432       fi
12433     else
12434       lt_cv_prog_compiler_static_works_FC=yes
12435     fi
12436   fi
12437   $RM -r conftest*
12438   LDFLAGS="$save_LDFLAGS"
12439
12440fi
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12442$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12443
12444if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12445    :
12446else
12447    lt_prog_compiler_static_FC=
12448fi
12449
12450
12451
12452
12453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12454$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12455if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12456  $as_echo_n "(cached) " >&6
12457else
12458  lt_cv_prog_compiler_c_o_FC=no
12459   $RM -r conftest 2>/dev/null
12460   mkdir conftest
12461   cd conftest
12462   mkdir out
12463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12464
12465   lt_compiler_flag="-o out/conftest2.$ac_objext"
12466   # Insert the option either (1) after the last *FLAGS variable, or
12467   # (2) before a word containing "conftest.", or (3) at the end.
12468   # Note that $ac_compile itself does not contain backslashes and begins
12469   # with a dollar sign (not a hyphen), so the echo should work correctly.
12470   lt_compile=`echo "$ac_compile" | $SED \
12471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12473   -e 's:$: $lt_compiler_flag:'`
12474   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12475   (eval "$lt_compile" 2>out/conftest.err)
12476   ac_status=$?
12477   cat out/conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12480   then
12481     # The compiler can only warn and ignore the option if not recognized
12482     # So say no if there are warnings
12483     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12484     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12485     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12486       lt_cv_prog_compiler_c_o_FC=yes
12487     fi
12488   fi
12489   chmod u+w . 2>&5
12490   $RM conftest*
12491   # SGI C++ compiler will create directory out/ii_files/ for
12492   # template instantiation
12493   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12494   $RM out/* && rmdir out
12495   cd ..
12496   $RM -r conftest
12497   $RM conftest*
12498
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12501$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12502
12503
12504
12505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12506$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12507if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12508  $as_echo_n "(cached) " >&6
12509else
12510  lt_cv_prog_compiler_c_o_FC=no
12511   $RM -r conftest 2>/dev/null
12512   mkdir conftest
12513   cd conftest
12514   mkdir out
12515   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12516
12517   lt_compiler_flag="-o out/conftest2.$ac_objext"
12518   # Insert the option either (1) after the last *FLAGS variable, or
12519   # (2) before a word containing "conftest.", or (3) at the end.
12520   # Note that $ac_compile itself does not contain backslashes and begins
12521   # with a dollar sign (not a hyphen), so the echo should work correctly.
12522   lt_compile=`echo "$ac_compile" | $SED \
12523   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12525   -e 's:$: $lt_compiler_flag:'`
12526   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12527   (eval "$lt_compile" 2>out/conftest.err)
12528   ac_status=$?
12529   cat out/conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12532   then
12533     # The compiler can only warn and ignore the option if not recognized
12534     # So say no if there are warnings
12535     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12536     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12537     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12538       lt_cv_prog_compiler_c_o_FC=yes
12539     fi
12540   fi
12541   chmod u+w . 2>&5
12542   $RM conftest*
12543   # SGI C++ compiler will create directory out/ii_files/ for
12544   # template instantiation
12545   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12546   $RM out/* && rmdir out
12547   cd ..
12548   $RM -r conftest
12549   $RM conftest*
12550
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12553$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12554
12555
12556
12557
12558hard_links="nottested"
12559if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12560  # do not overwrite the value of need_locks provided by the user
12561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12562$as_echo_n "checking if we can lock with hard links... " >&6; }
12563  hard_links=yes
12564  $RM conftest*
12565  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566  touch conftest.a
12567  ln conftest.a conftest.b 2>&5 || hard_links=no
12568  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12570$as_echo "$hard_links" >&6; }
12571  if test "$hard_links" = no; then
12572    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12573$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12574    need_locks=warn
12575  fi
12576else
12577  need_locks=no
12578fi
12579
12580
12581
12582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12583$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12584
12585  runpath_var=
12586  allow_undefined_flag_FC=
12587  always_export_symbols_FC=no
12588  archive_cmds_FC=
12589  archive_expsym_cmds_FC=
12590  compiler_needs_object_FC=no
12591  enable_shared_with_static_runtimes_FC=no
12592  export_dynamic_flag_spec_FC=
12593  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12594  hardcode_automatic_FC=no
12595  hardcode_direct_FC=no
12596  hardcode_direct_absolute_FC=no
12597  hardcode_libdir_flag_spec_FC=
12598  hardcode_libdir_flag_spec_ld_FC=
12599  hardcode_libdir_separator_FC=
12600  hardcode_minus_L_FC=no
12601  hardcode_shlibpath_var_FC=unsupported
12602  inherit_rpath_FC=no
12603  link_all_deplibs_FC=unknown
12604  module_cmds_FC=
12605  module_expsym_cmds_FC=
12606  old_archive_from_new_cmds_FC=
12607  old_archive_from_expsyms_cmds_FC=
12608  thread_safe_flag_spec_FC=
12609  whole_archive_flag_spec_FC=
12610  # include_expsyms should be a list of space-separated symbols to be *always*
12611  # included in the symbol list
12612  include_expsyms_FC=
12613  # exclude_expsyms can be an extended regexp of symbols to exclude
12614  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12615  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12616  # as well as any symbol that contains `d'.
12617  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12618  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12619  # platforms (ab)use it in PIC code, but their linkers get confused if
12620  # the symbol is explicitly referenced.  Since portable code cannot
12621  # rely on this symbol name, it's probably fine to never include it in
12622  # preloaded symbol tables.
12623  # Exclude shared library initialization/finalization symbols.
12624  extract_expsyms_cmds=
12625
12626  case $host_os in
12627  cygwin* | mingw* | pw32* | cegcc*)
12628    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12629    # When not using gcc, we currently assume that we are using
12630    # Microsoft Visual C++.
12631    if test "$GCC" != yes; then
12632      with_gnu_ld=no
12633    fi
12634    ;;
12635  interix*)
12636    # we just hope/assume this is gcc and not c89 (= MSVC++)
12637    with_gnu_ld=yes
12638    ;;
12639  openbsd*)
12640    with_gnu_ld=no
12641    ;;
12642  esac
12643
12644  ld_shlibs_FC=yes
12645
12646  # On some targets, GNU ld is compatible enough with the native linker
12647  # that we're better off using the native interface for both.
12648  lt_use_gnu_ld_interface=no
12649  if test "$with_gnu_ld" = yes; then
12650    case $host_os in
12651      aix*)
12652	# The AIX port of GNU ld has always aspired to compatibility
12653	# with the native linker.  However, as the warning in the GNU ld
12654	# block says, versions before 2.19.5* couldn't really create working
12655	# shared libraries, regardless of the interface used.
12656	case `$LD -v 2>&1` in
12657	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12658	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12659	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12660	  *)
12661	    lt_use_gnu_ld_interface=yes
12662	    ;;
12663	esac
12664	;;
12665      *)
12666	lt_use_gnu_ld_interface=yes
12667	;;
12668    esac
12669  fi
12670
12671  if test "$lt_use_gnu_ld_interface" = yes; then
12672    # If archive_cmds runs LD, not CC, wlarc should be empty
12673    wlarc='${wl}'
12674
12675    # Set some defaults for GNU ld with shared library support. These
12676    # are reset later if shared libraries are not supported. Putting them
12677    # here allows them to be overridden if necessary.
12678    runpath_var=LD_RUN_PATH
12679    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12680    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12681    # ancient GNU ld didn't support --whole-archive et. al.
12682    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12683      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12684    else
12685      whole_archive_flag_spec_FC=
12686    fi
12687    supports_anon_versioning=no
12688    case `$LD -v 2>&1` in
12689      *GNU\ gold*) supports_anon_versioning=yes ;;
12690      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12691      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12692      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12693      *\ 2.11.*) ;; # other 2.11 versions
12694      *) supports_anon_versioning=yes ;;
12695    esac
12696
12697    # See if GNU ld supports shared libraries.
12698    case $host_os in
12699    aix[3-9]*)
12700      # On AIX/PPC, the GNU linker is very broken
12701      if test "$host_cpu" != ia64; then
12702	ld_shlibs_FC=no
12703	cat <<_LT_EOF 1>&2
12704
12705*** Warning: the GNU linker, at least up to release 2.19, is reported
12706*** to be unable to reliably create shared libraries on AIX.
12707*** Therefore, libtool is disabling shared libraries support.  If you
12708*** really care for shared libraries, you may want to install binutils
12709*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12710*** You will then need to restart the configuration process.
12711
12712_LT_EOF
12713      fi
12714      ;;
12715
12716    amigaos*)
12717      case $host_cpu in
12718      powerpc)
12719            # see comment about AmigaOS4 .so support
12720            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721            archive_expsym_cmds_FC=''
12722        ;;
12723      m68k)
12724            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)'
12725            hardcode_libdir_flag_spec_FC='-L$libdir'
12726            hardcode_minus_L_FC=yes
12727        ;;
12728      esac
12729      ;;
12730
12731    beos*)
12732      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12733	allow_undefined_flag_FC=unsupported
12734	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12735	# support --undefined.  This deserves some investigation.  FIXME
12736	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737      else
12738	ld_shlibs_FC=no
12739      fi
12740      ;;
12741
12742    cygwin* | mingw* | pw32* | cegcc*)
12743      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12744      # as there is no search path for DLLs.
12745      hardcode_libdir_flag_spec_FC='-L$libdir'
12746      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12747      allow_undefined_flag_FC=unsupported
12748      always_export_symbols_FC=no
12749      enable_shared_with_static_runtimes_FC=yes
12750      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12751
12752      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12753        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12754	# If the export-symbols file already is a .def file (1st line
12755	# is EXPORTS), use it as is; otherwise, prepend...
12756	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12757	  cp $export_symbols $output_objdir/$soname.def;
12758	else
12759	  echo EXPORTS > $output_objdir/$soname.def;
12760	  cat $export_symbols >> $output_objdir/$soname.def;
12761	fi~
12762	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12763      else
12764	ld_shlibs_FC=no
12765      fi
12766      ;;
12767
12768    haiku*)
12769      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770      link_all_deplibs_FC=yes
12771      ;;
12772
12773    interix[3-9]*)
12774      hardcode_direct_FC=no
12775      hardcode_shlibpath_var_FC=no
12776      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12777      export_dynamic_flag_spec_FC='${wl}-E'
12778      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12779      # Instead, shared libraries are loaded at an image base (0x10000000 by
12780      # default) and relocated if they conflict, which is a slow very memory
12781      # consuming and fragmenting process.  To avoid this, we pick a random,
12782      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12783      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12784      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'
12785      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'
12786      ;;
12787
12788    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12789      tmp_diet=no
12790      if test "$host_os" = linux-dietlibc; then
12791	case $cc_basename in
12792	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12793	esac
12794      fi
12795      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12796	 && test "$tmp_diet" = no
12797      then
12798	tmp_addflag=' $pic_flag'
12799	tmp_sharedflag='-shared'
12800	case $cc_basename,$host_cpu in
12801        pgcc*)				# Portland Group C compiler
12802	  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'
12803	  tmp_addflag=' $pic_flag'
12804	  ;;
12805	pgf77* | pgf90* | pgf95* | pgfortran*)
12806					# Portland Group f77 and f90 compilers
12807	  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'
12808	  tmp_addflag=' $pic_flag -Mnomain' ;;
12809	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12810	  tmp_addflag=' -i_dynamic' ;;
12811	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12812	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12813	ifc* | ifort*)			# Intel Fortran compiler
12814	  tmp_addflag=' -nofor_main' ;;
12815	lf95*)				# Lahey Fortran 8.1
12816	  whole_archive_flag_spec_FC=
12817	  tmp_sharedflag='--shared' ;;
12818	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12819	  tmp_sharedflag='-qmkshrobj'
12820	  tmp_addflag= ;;
12821	nvcc*)	# Cuda Compiler Driver 2.2
12822	  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'
12823	  compiler_needs_object_FC=yes
12824	  ;;
12825	esac
12826	case `$CC -V 2>&1 | sed 5q` in
12827	*Sun\ C*)			# Sun C 5.9
12828	  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'
12829	  compiler_needs_object_FC=yes
12830	  tmp_sharedflag='-G' ;;
12831	*Sun\ F*)			# Sun Fortran 8.3
12832	  tmp_sharedflag='-G' ;;
12833	esac
12834	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835
12836        if test "x$supports_anon_versioning" = xyes; then
12837          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12838	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12839	    echo "local: *; };" >> $output_objdir/$libname.ver~
12840	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12841        fi
12842
12843	case $cc_basename in
12844	xlf* | bgf* | bgxlf* | mpixlf*)
12845	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12846	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12847	  hardcode_libdir_flag_spec_FC=
12848	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12849	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12850	  if test "x$supports_anon_versioning" = xyes; then
12851	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12852	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12853	      echo "local: *; };" >> $output_objdir/$libname.ver~
12854	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12855	  fi
12856	  ;;
12857	esac
12858      else
12859        ld_shlibs_FC=no
12860      fi
12861      ;;
12862
12863    netbsd*)
12864      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12865	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12866	wlarc=
12867      else
12868	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12870      fi
12871      ;;
12872
12873    solaris*)
12874      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12875	ld_shlibs_FC=no
12876	cat <<_LT_EOF 1>&2
12877
12878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12879*** create shared libraries on Solaris systems.  Therefore, libtool
12880*** is disabling shared libraries support.  We urge you to upgrade GNU
12881*** binutils to release 2.9.1 or newer.  Another option is to modify
12882*** your PATH or compiler configuration so that the native linker is
12883*** used, and then restart.
12884
12885_LT_EOF
12886      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12887	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12889      else
12890	ld_shlibs_FC=no
12891      fi
12892      ;;
12893
12894    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12895      case `$LD -v 2>&1` in
12896        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12897	ld_shlibs_FC=no
12898	cat <<_LT_EOF 1>&2
12899
12900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12901*** reliably create shared libraries on SCO systems.  Therefore, libtool
12902*** is disabling shared libraries support.  We urge you to upgrade GNU
12903*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12904*** your PATH or compiler configuration so that the native linker is
12905*** used, and then restart.
12906
12907_LT_EOF
12908	;;
12909	*)
12910	  # For security reasons, it is highly recommended that you always
12911	  # use absolute paths for naming shared libraries, and exclude the
12912	  # DT_RUNPATH tag from executables and libraries.  But doing so
12913	  # requires that you compile everything twice, which is a pain.
12914	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12915	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12916	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12918	  else
12919	    ld_shlibs_FC=no
12920	  fi
12921	;;
12922      esac
12923      ;;
12924
12925    sunos4*)
12926      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12927      wlarc=
12928      hardcode_direct_FC=yes
12929      hardcode_shlibpath_var_FC=no
12930      ;;
12931
12932    *)
12933      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12934	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936      else
12937	ld_shlibs_FC=no
12938      fi
12939      ;;
12940    esac
12941
12942    if test "$ld_shlibs_FC" = no; then
12943      runpath_var=
12944      hardcode_libdir_flag_spec_FC=
12945      export_dynamic_flag_spec_FC=
12946      whole_archive_flag_spec_FC=
12947    fi
12948  else
12949    # PORTME fill in a description of your system's linker (not GNU ld)
12950    case $host_os in
12951    aix3*)
12952      allow_undefined_flag_FC=unsupported
12953      always_export_symbols_FC=yes
12954      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'
12955      # Note: this linker hardcodes the directories in LIBPATH if there
12956      # are no directories specified by -L.
12957      hardcode_minus_L_FC=yes
12958      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12959	# Neither direct hardcoding nor static linking is supported with a
12960	# broken collect2.
12961	hardcode_direct_FC=unsupported
12962      fi
12963      ;;
12964
12965    aix[4-9]*)
12966      if test "$host_cpu" = ia64; then
12967	# On IA64, the linker does run time linking by default, so we don't
12968	# have to do anything special.
12969	aix_use_runtimelinking=no
12970	exp_sym_flag='-Bexport'
12971	no_entry_flag=""
12972      else
12973	# If we're using GNU nm, then we don't want the "-C" option.
12974	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12975	# Also, AIX nm treats weak defined symbols like other global
12976	# defined symbols, whereas GNU nm marks them as "W".
12977	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12978	  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'
12979	else
12980	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12981	fi
12982	aix_use_runtimelinking=no
12983
12984	# Test if we are trying to use run time linking or normal
12985	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12986	# need to do runtime linking.
12987	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12988	  for ld_flag in $LDFLAGS; do
12989	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12990	    aix_use_runtimelinking=yes
12991	    break
12992	  fi
12993	  done
12994	  ;;
12995	esac
12996
12997	exp_sym_flag='-bexport'
12998	no_entry_flag='-bnoentry'
12999      fi
13000
13001      # When large executables or shared objects are built, AIX ld can
13002      # have problems creating the table of contents.  If linking a library
13003      # or program results in "error TOC overflow" add -mminimal-toc to
13004      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13005      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13006
13007      archive_cmds_FC=''
13008      hardcode_direct_FC=yes
13009      hardcode_direct_absolute_FC=yes
13010      hardcode_libdir_separator_FC=':'
13011      link_all_deplibs_FC=yes
13012      file_list_spec_FC='${wl}-f,'
13013
13014      if test "$GCC" = yes; then
13015	case $host_os in aix4.[012]|aix4.[012].*)
13016	# We only want to do this on AIX 4.2 and lower, the check
13017	# below for broken collect2 doesn't work under 4.3+
13018	  collect2name=`${CC} -print-prog-name=collect2`
13019	  if test -f "$collect2name" &&
13020	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13021	  then
13022	  # We have reworked collect2
13023	  :
13024	  else
13025	  # We have old collect2
13026	  hardcode_direct_FC=unsupported
13027	  # It fails to find uninstalled libraries when the uninstalled
13028	  # path is not listed in the libpath.  Setting hardcode_minus_L
13029	  # to unsupported forces relinking
13030	  hardcode_minus_L_FC=yes
13031	  hardcode_libdir_flag_spec_FC='-L$libdir'
13032	  hardcode_libdir_separator_FC=
13033	  fi
13034	  ;;
13035	esac
13036	shared_flag='-shared'
13037	if test "$aix_use_runtimelinking" = yes; then
13038	  shared_flag="$shared_flag "'${wl}-G'
13039	fi
13040      else
13041	# not using gcc
13042	if test "$host_cpu" = ia64; then
13043	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13044	# chokes on -Wl,-G. The following line is correct:
13045	  shared_flag='-G'
13046	else
13047	  if test "$aix_use_runtimelinking" = yes; then
13048	    shared_flag='${wl}-G'
13049	  else
13050	    shared_flag='${wl}-bM:SRE'
13051	  fi
13052	fi
13053      fi
13054
13055      export_dynamic_flag_spec_FC='${wl}-bexpall'
13056      # It seems that -bexpall does not export symbols beginning with
13057      # underscore (_), so it is better to generate a list of symbols to export.
13058      always_export_symbols_FC=yes
13059      if test "$aix_use_runtimelinking" = yes; then
13060	# Warning - without using the other runtime loading flags (-brtl),
13061	# -berok will link without error, but may produce a broken library.
13062	allow_undefined_flag_FC='-berok'
13063        # Determine the default libpath from the value encoded in an
13064        # empty executable.
13065        cat > conftest.$ac_ext <<_ACEOF
13066      program main
13067
13068      end
13069_ACEOF
13070if ac_fn_fc_try_link "$LINENO"; then :
13071
13072lt_aix_libpath_sed='
13073    /Import File Strings/,/^$/ {
13074	/^0/ {
13075	    s/^0  *\(.*\)$/\1/
13076	    p
13077	}
13078    }'
13079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13080# Check for a 64-bit object if we didn't find anything.
13081if test -z "$aix_libpath"; then
13082  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083fi
13084fi
13085rm -f core conftest.err conftest.$ac_objext \
13086    conftest$ac_exeext conftest.$ac_ext
13087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13088
13089        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13090        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"
13091      else
13092	if test "$host_cpu" = ia64; then
13093	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13094	  allow_undefined_flag_FC="-z nodefs"
13095	  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"
13096	else
13097	 # Determine the default libpath from the value encoded in an
13098	 # empty executable.
13099	 cat > conftest.$ac_ext <<_ACEOF
13100      program main
13101
13102      end
13103_ACEOF
13104if ac_fn_fc_try_link "$LINENO"; then :
13105
13106lt_aix_libpath_sed='
13107    /Import File Strings/,/^$/ {
13108	/^0/ {
13109	    s/^0  *\(.*\)$/\1/
13110	    p
13111	}
13112    }'
13113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13114# Check for a 64-bit object if we didn't find anything.
13115if test -z "$aix_libpath"; then
13116  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117fi
13118fi
13119rm -f core conftest.err conftest.$ac_objext \
13120    conftest$ac_exeext conftest.$ac_ext
13121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13122
13123	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13124	  # Warning - without using the other run time loading flags,
13125	  # -berok will link without error, but may produce a broken library.
13126	  no_undefined_flag_FC=' ${wl}-bernotok'
13127	  allow_undefined_flag_FC=' ${wl}-berok'
13128	  if test "$with_gnu_ld" = yes; then
13129	    # We only use this code for GNU lds that support --whole-archive.
13130	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13131	  else
13132	    # Exported symbols can be pulled into shared objects from archives
13133	    whole_archive_flag_spec_FC='$convenience'
13134	  fi
13135	  archive_cmds_need_lc_FC=yes
13136	  # This is similar to how AIX traditionally builds its shared libraries.
13137	  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'
13138	fi
13139      fi
13140      ;;
13141
13142    amigaos*)
13143      case $host_cpu in
13144      powerpc)
13145            # see comment about AmigaOS4 .so support
13146            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147            archive_expsym_cmds_FC=''
13148        ;;
13149      m68k)
13150            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)'
13151            hardcode_libdir_flag_spec_FC='-L$libdir'
13152            hardcode_minus_L_FC=yes
13153        ;;
13154      esac
13155      ;;
13156
13157    bsdi[45]*)
13158      export_dynamic_flag_spec_FC=-rdynamic
13159      ;;
13160
13161    cygwin* | mingw* | pw32* | cegcc*)
13162      # When not using gcc, we currently assume that we are using
13163      # Microsoft Visual C++.
13164      # hardcode_libdir_flag_spec is actually meaningless, as there is
13165      # no search path for DLLs.
13166      hardcode_libdir_flag_spec_FC=' '
13167      allow_undefined_flag_FC=unsupported
13168      # Tell ltmain to make .lib files, not .a files.
13169      libext=lib
13170      # Tell ltmain to make .dll files, not .so files.
13171      shrext_cmds=".dll"
13172      # FIXME: Setting linknames here is a bad hack.
13173      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13174      # The linker will automatically build a .lib file if we build a DLL.
13175      old_archive_from_new_cmds_FC='true'
13176      # FIXME: Should let the user specify the lib program.
13177      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13178      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13179      enable_shared_with_static_runtimes_FC=yes
13180      ;;
13181
13182    darwin* | rhapsody*)
13183
13184
13185  archive_cmds_need_lc_FC=no
13186  hardcode_direct_FC=no
13187  hardcode_automatic_FC=yes
13188  hardcode_shlibpath_var_FC=unsupported
13189  if test "$lt_cv_ld_force_load" = "yes"; then
13190    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\"`'
13191  else
13192    whole_archive_flag_spec_FC=''
13193  fi
13194  link_all_deplibs_FC=yes
13195  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13196  case $cc_basename in
13197     ifort*) _lt_dar_can_shared=yes ;;
13198     *) _lt_dar_can_shared=$GCC ;;
13199  esac
13200  if test "$_lt_dar_can_shared" = "yes"; then
13201    output_verbose_link_cmd=func_echo_all
13202    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}"
13203    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13204    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}"
13205    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}"
13206
13207  else
13208  ld_shlibs_FC=no
13209  fi
13210
13211      ;;
13212
13213    dgux*)
13214      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13215      hardcode_libdir_flag_spec_FC='-L$libdir'
13216      hardcode_shlibpath_var_FC=no
13217      ;;
13218
13219    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13220    # support.  Future versions do this automatically, but an explicit c++rt0.o
13221    # does not break anything, and helps significantly (at the cost of a little
13222    # extra space).
13223    freebsd2.2*)
13224      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13225      hardcode_libdir_flag_spec_FC='-R$libdir'
13226      hardcode_direct_FC=yes
13227      hardcode_shlibpath_var_FC=no
13228      ;;
13229
13230    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13231    freebsd2.*)
13232      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13233      hardcode_direct_FC=yes
13234      hardcode_minus_L_FC=yes
13235      hardcode_shlibpath_var_FC=no
13236      ;;
13237
13238    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13239    freebsd* | dragonfly*)
13240      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13241      hardcode_libdir_flag_spec_FC='-R$libdir'
13242      hardcode_direct_FC=yes
13243      hardcode_shlibpath_var_FC=no
13244      ;;
13245
13246    hpux9*)
13247      if test "$GCC" = yes; then
13248	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'
13249      else
13250	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'
13251      fi
13252      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13253      hardcode_libdir_separator_FC=:
13254      hardcode_direct_FC=yes
13255
13256      # hardcode_minus_L: Not really in the search PATH,
13257      # but as the default location of the library.
13258      hardcode_minus_L_FC=yes
13259      export_dynamic_flag_spec_FC='${wl}-E'
13260      ;;
13261
13262    hpux10*)
13263      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13264	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13265      else
13266	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13267      fi
13268      if test "$with_gnu_ld" = no; then
13269	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13270	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13271	hardcode_libdir_separator_FC=:
13272	hardcode_direct_FC=yes
13273	hardcode_direct_absolute_FC=yes
13274	export_dynamic_flag_spec_FC='${wl}-E'
13275	# hardcode_minus_L: Not really in the search PATH,
13276	# but as the default location of the library.
13277	hardcode_minus_L_FC=yes
13278      fi
13279      ;;
13280
13281    hpux11*)
13282      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13283	case $host_cpu in
13284	hppa*64*)
13285	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286	  ;;
13287	ia64*)
13288	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13289	  ;;
13290	*)
13291	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13292	  ;;
13293	esac
13294      else
13295	case $host_cpu in
13296	hppa*64*)
13297	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13298	  ;;
13299	ia64*)
13300	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13301	  ;;
13302	*)
13303	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304	  ;;
13305	esac
13306      fi
13307      if test "$with_gnu_ld" = no; then
13308	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13309	hardcode_libdir_separator_FC=:
13310
13311	case $host_cpu in
13312	hppa*64*|ia64*)
13313	  hardcode_direct_FC=no
13314	  hardcode_shlibpath_var_FC=no
13315	  ;;
13316	*)
13317	  hardcode_direct_FC=yes
13318	  hardcode_direct_absolute_FC=yes
13319	  export_dynamic_flag_spec_FC='${wl}-E'
13320
13321	  # hardcode_minus_L: Not really in the search PATH,
13322	  # but as the default location of the library.
13323	  hardcode_minus_L_FC=yes
13324	  ;;
13325	esac
13326      fi
13327      ;;
13328
13329    irix5* | irix6* | nonstopux*)
13330      if test "$GCC" = yes; then
13331	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'
13332	# Try to use the -exported_symbol ld option, if it does not
13333	# work, assume that -exports_file does not work either and
13334	# implicitly export all symbols.
13335        save_LDFLAGS="$LDFLAGS"
13336        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13337        cat > conftest.$ac_ext <<_ACEOF
13338int foo(void) {}
13339_ACEOF
13340if ac_fn_fc_try_link "$LINENO"; then :
13341  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'
13342
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345    conftest$ac_exeext conftest.$ac_ext
13346        LDFLAGS="$save_LDFLAGS"
13347      else
13348	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'
13349	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'
13350      fi
13351      archive_cmds_need_lc_FC='no'
13352      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13353      hardcode_libdir_separator_FC=:
13354      inherit_rpath_FC=yes
13355      link_all_deplibs_FC=yes
13356      ;;
13357
13358    netbsd*)
13359      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13360	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13361      else
13362	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13363      fi
13364      hardcode_libdir_flag_spec_FC='-R$libdir'
13365      hardcode_direct_FC=yes
13366      hardcode_shlibpath_var_FC=no
13367      ;;
13368
13369    newsos6)
13370      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13371      hardcode_direct_FC=yes
13372      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13373      hardcode_libdir_separator_FC=:
13374      hardcode_shlibpath_var_FC=no
13375      ;;
13376
13377    *nto* | *qnx*)
13378      ;;
13379
13380    openbsd*)
13381      if test -f /usr/libexec/ld.so; then
13382	hardcode_direct_FC=yes
13383	hardcode_shlibpath_var_FC=no
13384	hardcode_direct_absolute_FC=yes
13385	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13386	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13388	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13389	  export_dynamic_flag_spec_FC='${wl}-E'
13390	else
13391	  case $host_os in
13392	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13393	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13394	     hardcode_libdir_flag_spec_FC='-R$libdir'
13395	     ;;
13396	   *)
13397	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13398	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13399	     ;;
13400	  esac
13401	fi
13402      else
13403	ld_shlibs_FC=no
13404      fi
13405      ;;
13406
13407    os2*)
13408      hardcode_libdir_flag_spec_FC='-L$libdir'
13409      hardcode_minus_L_FC=yes
13410      allow_undefined_flag_FC=unsupported
13411      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'
13412      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13413      ;;
13414
13415    osf3*)
13416      if test "$GCC" = yes; then
13417	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13418	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'
13419      else
13420	allow_undefined_flag_FC=' -expect_unresolved \*'
13421	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'
13422      fi
13423      archive_cmds_need_lc_FC='no'
13424      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13425      hardcode_libdir_separator_FC=:
13426      ;;
13427
13428    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13429      if test "$GCC" = yes; then
13430	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13431	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'
13432	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13433      else
13434	allow_undefined_flag_FC=' -expect_unresolved \*'
13435	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'
13436	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~
13437	$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'
13438
13439	# Both c and cxx compiler support -rpath directly
13440	hardcode_libdir_flag_spec_FC='-rpath $libdir'
13441      fi
13442      archive_cmds_need_lc_FC='no'
13443      hardcode_libdir_separator_FC=:
13444      ;;
13445
13446    solaris*)
13447      no_undefined_flag_FC=' -z defs'
13448      if test "$GCC" = yes; then
13449	wlarc='${wl}'
13450	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13451	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13452	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13453      else
13454	case `$CC -V 2>&1` in
13455	*"Compilers 5.0"*)
13456	  wlarc=''
13457	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13459	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13460	  ;;
13461	*)
13462	  wlarc='${wl}'
13463	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13466	  ;;
13467	esac
13468      fi
13469      hardcode_libdir_flag_spec_FC='-R$libdir'
13470      hardcode_shlibpath_var_FC=no
13471      case $host_os in
13472      solaris2.[0-5] | solaris2.[0-5].*) ;;
13473      *)
13474	# The compiler driver will combine and reorder linker options,
13475	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13476	# but is careful enough not to reorder.
13477	# Supported since Solaris 2.6 (maybe 2.5.1?)
13478	if test "$GCC" = yes; then
13479	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13480	else
13481	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13482	fi
13483	;;
13484      esac
13485      link_all_deplibs_FC=yes
13486      ;;
13487
13488    sunos4*)
13489      if test "x$host_vendor" = xsequent; then
13490	# Use $CC to link under sequent, because it throws in some extra .o
13491	# files that make .init and .fini sections work.
13492	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13493      else
13494	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13495      fi
13496      hardcode_libdir_flag_spec_FC='-L$libdir'
13497      hardcode_direct_FC=yes
13498      hardcode_minus_L_FC=yes
13499      hardcode_shlibpath_var_FC=no
13500      ;;
13501
13502    sysv4)
13503      case $host_vendor in
13504	sni)
13505	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506	  hardcode_direct_FC=yes # is this really true???
13507	;;
13508	siemens)
13509	  ## LD is ld it makes a PLAMLIB
13510	  ## CC just makes a GrossModule.
13511	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13512	  reload_cmds_FC='$CC -r -o $output$reload_objs'
13513	  hardcode_direct_FC=no
13514        ;;
13515	motorola)
13516	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13518	;;
13519      esac
13520      runpath_var='LD_RUN_PATH'
13521      hardcode_shlibpath_var_FC=no
13522      ;;
13523
13524    sysv4.3*)
13525      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526      hardcode_shlibpath_var_FC=no
13527      export_dynamic_flag_spec_FC='-Bexport'
13528      ;;
13529
13530    sysv4*MP*)
13531      if test -d /usr/nec; then
13532	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13533	hardcode_shlibpath_var_FC=no
13534	runpath_var=LD_RUN_PATH
13535	hardcode_runpath_var=yes
13536	ld_shlibs_FC=yes
13537      fi
13538      ;;
13539
13540    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13541      no_undefined_flag_FC='${wl}-z,text'
13542      archive_cmds_need_lc_FC=no
13543      hardcode_shlibpath_var_FC=no
13544      runpath_var='LD_RUN_PATH'
13545
13546      if test "$GCC" = yes; then
13547	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549      else
13550	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552      fi
13553      ;;
13554
13555    sysv5* | sco3.2v5* | sco5v6*)
13556      # Note: We can NOT use -z defs as we might desire, because we do not
13557      # link with -lc, and that would cause any symbols used from libc to
13558      # always be unresolved, which means just about no library would
13559      # ever link correctly.  If we're not using GNU ld we use -z text
13560      # though, which does catch some bad symbols but isn't as heavy-handed
13561      # as -z defs.
13562      no_undefined_flag_FC='${wl}-z,text'
13563      allow_undefined_flag_FC='${wl}-z,nodefs'
13564      archive_cmds_need_lc_FC=no
13565      hardcode_shlibpath_var_FC=no
13566      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13567      hardcode_libdir_separator_FC=':'
13568      link_all_deplibs_FC=yes
13569      export_dynamic_flag_spec_FC='${wl}-Bexport'
13570      runpath_var='LD_RUN_PATH'
13571
13572      if test "$GCC" = yes; then
13573	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13574	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575      else
13576	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578      fi
13579      ;;
13580
13581    uts4*)
13582      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583      hardcode_libdir_flag_spec_FC='-L$libdir'
13584      hardcode_shlibpath_var_FC=no
13585      ;;
13586
13587    *)
13588      ld_shlibs_FC=no
13589      ;;
13590    esac
13591
13592    if test x$host_vendor = xsni; then
13593      case $host in
13594      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13595	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13596	;;
13597      esac
13598    fi
13599  fi
13600
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13602$as_echo "$ld_shlibs_FC" >&6; }
13603test "$ld_shlibs_FC" = no && can_build_shared=no
13604
13605with_gnu_ld_FC=$with_gnu_ld
13606
13607
13608
13609
13610
13611
13612#
13613# Do we need to explicitly link libc?
13614#
13615case "x$archive_cmds_need_lc_FC" in
13616x|xyes)
13617  # Assume -lc should be added
13618  archive_cmds_need_lc_FC=yes
13619
13620  if test "$enable_shared" = yes && test "$GCC" = yes; then
13621    case $archive_cmds_FC in
13622    *'~'*)
13623      # FIXME: we may have to deal with multi-command sequences.
13624      ;;
13625    '$CC '*)
13626      # Test whether the compiler implicitly links with -lc since on some
13627      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13628      # to ld, don't add -lc before -lgcc.
13629      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13630$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13631if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  $RM conftest*
13635	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13636
13637	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13638  (eval $ac_compile) 2>&5
13639  ac_status=$?
13640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641  test $ac_status = 0; } 2>conftest.err; then
13642	  soname=conftest
13643	  lib=conftest
13644	  libobjs=conftest.$ac_objext
13645	  deplibs=
13646	  wl=$lt_prog_compiler_wl_FC
13647	  pic_flag=$lt_prog_compiler_pic_FC
13648	  compiler_flags=-v
13649	  linker_flags=-v
13650	  verstring=
13651	  output_objdir=.
13652	  libname=conftest
13653	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13654	  allow_undefined_flag_FC=
13655	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13656  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13657  ac_status=$?
13658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659  test $ac_status = 0; }
13660	  then
13661	    lt_cv_archive_cmds_need_lc_FC=no
13662	  else
13663	    lt_cv_archive_cmds_need_lc_FC=yes
13664	  fi
13665	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13666	else
13667	  cat conftest.err 1>&5
13668	fi
13669	$RM conftest*
13670
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13673$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13674      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13675      ;;
13676    esac
13677  fi
13678  ;;
13679esac
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13745$as_echo_n "checking dynamic linker characteristics... " >&6; }
13746
13747library_names_spec=
13748libname_spec='lib$name'
13749soname_spec=
13750shrext_cmds=".so"
13751postinstall_cmds=
13752postuninstall_cmds=
13753finish_cmds=
13754finish_eval=
13755shlibpath_var=
13756shlibpath_overrides_runpath=unknown
13757version_type=none
13758dynamic_linker="$host_os ld.so"
13759sys_lib_dlsearch_path_spec="/lib /usr/lib"
13760need_lib_prefix=unknown
13761hardcode_into_libs=no
13762
13763# when you set need_version to no, make sure it does not cause -set_version
13764# flags to be left without arguments
13765need_version=unknown
13766
13767case $host_os in
13768aix3*)
13769  version_type=linux
13770  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13771  shlibpath_var=LIBPATH
13772
13773  # AIX 3 has no versioning support, so we append a major version to the name.
13774  soname_spec='${libname}${release}${shared_ext}$major'
13775  ;;
13776
13777aix[4-9]*)
13778  version_type=linux
13779  need_lib_prefix=no
13780  need_version=no
13781  hardcode_into_libs=yes
13782  if test "$host_cpu" = ia64; then
13783    # AIX 5 supports IA64
13784    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13785    shlibpath_var=LD_LIBRARY_PATH
13786  else
13787    # With GCC up to 2.95.x, collect2 would create an import file
13788    # for dependence libraries.  The import file would start with
13789    # the line `#! .'.  This would cause the generated library to
13790    # depend on `.', always an invalid library.  This was fixed in
13791    # development snapshots of GCC prior to 3.0.
13792    case $host_os in
13793      aix4 | aix4.[01] | aix4.[01].*)
13794      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13795	   echo ' yes '
13796	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13797	:
13798      else
13799	can_build_shared=no
13800      fi
13801      ;;
13802    esac
13803    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13804    # soname into executable. Probably we can add versioning support to
13805    # collect2, so additional links can be useful in future.
13806    if test "$aix_use_runtimelinking" = yes; then
13807      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13808      # instead of lib<name>.a to let people know that these are not
13809      # typical AIX shared libraries.
13810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811    else
13812      # We preserve .a as extension for shared libraries through AIX4.2
13813      # and later when we are not doing run time linking.
13814      library_names_spec='${libname}${release}.a $libname.a'
13815      soname_spec='${libname}${release}${shared_ext}$major'
13816    fi
13817    shlibpath_var=LIBPATH
13818  fi
13819  ;;
13820
13821amigaos*)
13822  case $host_cpu in
13823  powerpc)
13824    # Since July 2007 AmigaOS4 officially supports .so libraries.
13825    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827    ;;
13828  m68k)
13829    library_names_spec='$libname.ixlibrary $libname.a'
13830    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13831    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'
13832    ;;
13833  esac
13834  ;;
13835
13836beos*)
13837  library_names_spec='${libname}${shared_ext}'
13838  dynamic_linker="$host_os ld.so"
13839  shlibpath_var=LIBRARY_PATH
13840  ;;
13841
13842bsdi[45]*)
13843  version_type=linux
13844  need_version=no
13845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846  soname_spec='${libname}${release}${shared_ext}$major'
13847  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13848  shlibpath_var=LD_LIBRARY_PATH
13849  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13850  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13851  # the default ld.so.conf also contains /usr/contrib/lib and
13852  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13853  # libtool to hard-code these into programs
13854  ;;
13855
13856cygwin* | mingw* | pw32* | cegcc*)
13857  version_type=windows
13858  shrext_cmds=".dll"
13859  need_version=no
13860  need_lib_prefix=no
13861
13862  case $GCC,$host_os in
13863  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13864    library_names_spec='$libname.dll.a'
13865    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13866    postinstall_cmds='base_file=`basename \${file}`~
13867      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13868      dldir=$destdir/`dirname \$dlpath`~
13869      test -d \$dldir || mkdir -p \$dldir~
13870      $install_prog $dir/$dlname \$dldir/$dlname~
13871      chmod a+x \$dldir/$dlname~
13872      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13873        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13874      fi'
13875    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13876      dlpath=$dir/\$dldll~
13877       $RM \$dlpath'
13878    shlibpath_overrides_runpath=yes
13879
13880    case $host_os in
13881    cygwin*)
13882      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13883      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13884
13885      ;;
13886    mingw* | cegcc*)
13887      # MinGW DLLs use traditional 'lib' prefix
13888      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13889      ;;
13890    pw32*)
13891      # pw32 DLLs use 'pw' prefix rather than 'lib'
13892      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893      ;;
13894    esac
13895    ;;
13896
13897  *)
13898    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13899    ;;
13900  esac
13901  dynamic_linker='Win32 ld.exe'
13902  # FIXME: first we should search . and the directory the executable is in
13903  shlibpath_var=PATH
13904  ;;
13905
13906darwin* | rhapsody*)
13907  dynamic_linker="$host_os dyld"
13908  version_type=darwin
13909  need_lib_prefix=no
13910  need_version=no
13911  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13912  soname_spec='${libname}${release}${major}$shared_ext'
13913  shlibpath_overrides_runpath=yes
13914  shlibpath_var=DYLD_LIBRARY_PATH
13915  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13916
13917  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13918  ;;
13919
13920dgux*)
13921  version_type=linux
13922  need_lib_prefix=no
13923  need_version=no
13924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13925  soname_spec='${libname}${release}${shared_ext}$major'
13926  shlibpath_var=LD_LIBRARY_PATH
13927  ;;
13928
13929freebsd* | dragonfly*)
13930  # DragonFly does not have aout.  When/if they implement a new
13931  # versioning mechanism, adjust this.
13932  if test -x /usr/bin/objformat; then
13933    objformat=`/usr/bin/objformat`
13934  else
13935    case $host_os in
13936    freebsd[23].*) objformat=aout ;;
13937    *) objformat=elf ;;
13938    esac
13939  fi
13940  version_type=freebsd-$objformat
13941  case $version_type in
13942    freebsd-elf*)
13943      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13944      need_version=no
13945      need_lib_prefix=no
13946      ;;
13947    freebsd-*)
13948      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13949      need_version=yes
13950      ;;
13951  esac
13952  shlibpath_var=LD_LIBRARY_PATH
13953  case $host_os in
13954  freebsd2.*)
13955    shlibpath_overrides_runpath=yes
13956    ;;
13957  freebsd3.[01]* | freebsdelf3.[01]*)
13958    shlibpath_overrides_runpath=yes
13959    hardcode_into_libs=yes
13960    ;;
13961  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13962  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13963    shlibpath_overrides_runpath=no
13964    hardcode_into_libs=yes
13965    ;;
13966  *) # from 4.6 on, and DragonFly
13967    shlibpath_overrides_runpath=yes
13968    hardcode_into_libs=yes
13969    ;;
13970  esac
13971  ;;
13972
13973gnu*)
13974  version_type=linux
13975  need_lib_prefix=no
13976  need_version=no
13977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13978  soname_spec='${libname}${release}${shared_ext}$major'
13979  shlibpath_var=LD_LIBRARY_PATH
13980  hardcode_into_libs=yes
13981  ;;
13982
13983haiku*)
13984  version_type=linux
13985  need_lib_prefix=no
13986  need_version=no
13987  dynamic_linker="$host_os runtime_loader"
13988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13989  soname_spec='${libname}${release}${shared_ext}$major'
13990  shlibpath_var=LIBRARY_PATH
13991  shlibpath_overrides_runpath=yes
13992  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13993  hardcode_into_libs=yes
13994  ;;
13995
13996hpux9* | hpux10* | hpux11*)
13997  # Give a soname corresponding to the major version so that dld.sl refuses to
13998  # link against other versions.
13999  version_type=sunos
14000  need_lib_prefix=no
14001  need_version=no
14002  case $host_cpu in
14003  ia64*)
14004    shrext_cmds='.so'
14005    hardcode_into_libs=yes
14006    dynamic_linker="$host_os dld.so"
14007    shlibpath_var=LD_LIBRARY_PATH
14008    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14009    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010    soname_spec='${libname}${release}${shared_ext}$major'
14011    if test "X$HPUX_IA64_MODE" = X32; then
14012      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14013    else
14014      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14015    fi
14016    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14017    ;;
14018  hppa*64*)
14019    shrext_cmds='.sl'
14020    hardcode_into_libs=yes
14021    dynamic_linker="$host_os dld.sl"
14022    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025    soname_spec='${libname}${release}${shared_ext}$major'
14026    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14027    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14028    ;;
14029  *)
14030    shrext_cmds='.sl'
14031    dynamic_linker="$host_os dld.sl"
14032    shlibpath_var=SHLIB_PATH
14033    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14034    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035    soname_spec='${libname}${release}${shared_ext}$major'
14036    ;;
14037  esac
14038  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14039  postinstall_cmds='chmod 555 $lib'
14040  # or fails outright, so override atomically:
14041  install_override_mode=555
14042  ;;
14043
14044interix[3-9]*)
14045  version_type=linux
14046  need_lib_prefix=no
14047  need_version=no
14048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14049  soname_spec='${libname}${release}${shared_ext}$major'
14050  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14051  shlibpath_var=LD_LIBRARY_PATH
14052  shlibpath_overrides_runpath=no
14053  hardcode_into_libs=yes
14054  ;;
14055
14056irix5* | irix6* | nonstopux*)
14057  case $host_os in
14058    nonstopux*) version_type=nonstopux ;;
14059    *)
14060	if test "$lt_cv_prog_gnu_ld" = yes; then
14061		version_type=linux
14062	else
14063		version_type=irix
14064	fi ;;
14065  esac
14066  need_lib_prefix=no
14067  need_version=no
14068  soname_spec='${libname}${release}${shared_ext}$major'
14069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14070  case $host_os in
14071  irix5* | nonstopux*)
14072    libsuff= shlibsuff=
14073    ;;
14074  *)
14075    case $LD in # libtool.m4 will add one of these switches to LD
14076    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14077      libsuff= shlibsuff= libmagic=32-bit;;
14078    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14079      libsuff=32 shlibsuff=N32 libmagic=N32;;
14080    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14081      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14082    *) libsuff= shlibsuff= libmagic=never-match;;
14083    esac
14084    ;;
14085  esac
14086  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14087  shlibpath_overrides_runpath=no
14088  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14089  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14090  hardcode_into_libs=yes
14091  ;;
14092
14093# No shared lib support for Linux oldld, aout, or coff.
14094linux*oldld* | linux*aout* | linux*coff*)
14095  dynamic_linker=no
14096  ;;
14097
14098# This must be Linux ELF.
14099linux* | k*bsd*-gnu | kopensolaris*-gnu)
14100  version_type=linux
14101  need_lib_prefix=no
14102  need_version=no
14103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104  soname_spec='${libname}${release}${shared_ext}$major'
14105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14106  shlibpath_var=LD_LIBRARY_PATH
14107  shlibpath_overrides_runpath=no
14108
14109  # Some binutils ld are patched to set DT_RUNPATH
14110  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14111  $as_echo_n "(cached) " >&6
14112else
14113  lt_cv_shlibpath_overrides_runpath=no
14114    save_LDFLAGS=$LDFLAGS
14115    save_libdir=$libdir
14116    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14117	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14118    cat > conftest.$ac_ext <<_ACEOF
14119      program main
14120
14121      end
14122_ACEOF
14123if ac_fn_fc_try_link "$LINENO"; then :
14124  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14125  lt_cv_shlibpath_overrides_runpath=yes
14126fi
14127fi
14128rm -f core conftest.err conftest.$ac_objext \
14129    conftest$ac_exeext conftest.$ac_ext
14130    LDFLAGS=$save_LDFLAGS
14131    libdir=$save_libdir
14132
14133fi
14134
14135  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14136
14137  # This implies no fast_install, which is unacceptable.
14138  # Some rework will be needed to allow for fast_install
14139  # before this can be enabled.
14140  hardcode_into_libs=yes
14141
14142  # Append ld.so.conf contents to the search path
14143  if test -f /etc/ld.so.conf; then
14144    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' ' '`
14145    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14146  fi
14147
14148  # We used to test for /lib/ld.so.1 and disable shared libraries on
14149  # powerpc, because MkLinux only supported shared libraries with the
14150  # GNU dynamic linker.  Since this was broken with cross compilers,
14151  # most powerpc-linux boxes support dynamic linking these days and
14152  # people can always --disable-shared, the test was removed, and we
14153  # assume the GNU/Linux dynamic linker is in use.
14154  dynamic_linker='GNU/Linux ld.so'
14155  ;;
14156
14157netbsd*)
14158  version_type=sunos
14159  need_lib_prefix=no
14160  need_version=no
14161  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14163    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14164    dynamic_linker='NetBSD (a.out) ld.so'
14165  else
14166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14167    soname_spec='${libname}${release}${shared_ext}$major'
14168    dynamic_linker='NetBSD ld.elf_so'
14169  fi
14170  shlibpath_var=LD_LIBRARY_PATH
14171  shlibpath_overrides_runpath=yes
14172  hardcode_into_libs=yes
14173  ;;
14174
14175newsos6)
14176  version_type=linux
14177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178  shlibpath_var=LD_LIBRARY_PATH
14179  shlibpath_overrides_runpath=yes
14180  ;;
14181
14182*nto* | *qnx*)
14183  version_type=qnx
14184  need_lib_prefix=no
14185  need_version=no
14186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187  soname_spec='${libname}${release}${shared_ext}$major'
14188  shlibpath_var=LD_LIBRARY_PATH
14189  shlibpath_overrides_runpath=no
14190  hardcode_into_libs=yes
14191  dynamic_linker='ldqnx.so'
14192  ;;
14193
14194openbsd*)
14195  version_type=sunos
14196  sys_lib_dlsearch_path_spec="/usr/lib"
14197  need_lib_prefix=no
14198  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14199  case $host_os in
14200    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14201    *)				need_version=no  ;;
14202  esac
14203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14205  shlibpath_var=LD_LIBRARY_PATH
14206  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207    case $host_os in
14208      openbsd2.[89] | openbsd2.[89].*)
14209	shlibpath_overrides_runpath=no
14210	;;
14211      *)
14212	shlibpath_overrides_runpath=yes
14213	;;
14214      esac
14215  else
14216    shlibpath_overrides_runpath=yes
14217  fi
14218  ;;
14219
14220os2*)
14221  libname_spec='$name'
14222  shrext_cmds=".dll"
14223  need_lib_prefix=no
14224  library_names_spec='$libname${shared_ext} $libname.a'
14225  dynamic_linker='OS/2 ld.exe'
14226  shlibpath_var=LIBPATH
14227  ;;
14228
14229osf3* | osf4* | osf5*)
14230  version_type=osf
14231  need_lib_prefix=no
14232  need_version=no
14233  soname_spec='${libname}${release}${shared_ext}$major'
14234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235  shlibpath_var=LD_LIBRARY_PATH
14236  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14237  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14238  ;;
14239
14240rdos*)
14241  dynamic_linker=no
14242  ;;
14243
14244solaris*)
14245  version_type=linux
14246  need_lib_prefix=no
14247  need_version=no
14248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249  soname_spec='${libname}${release}${shared_ext}$major'
14250  shlibpath_var=LD_LIBRARY_PATH
14251  shlibpath_overrides_runpath=yes
14252  hardcode_into_libs=yes
14253  # ldd complains unless libraries are executable
14254  postinstall_cmds='chmod +x $lib'
14255  ;;
14256
14257sunos4*)
14258  version_type=sunos
14259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14260  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14261  shlibpath_var=LD_LIBRARY_PATH
14262  shlibpath_overrides_runpath=yes
14263  if test "$with_gnu_ld" = yes; then
14264    need_lib_prefix=no
14265  fi
14266  need_version=yes
14267  ;;
14268
14269sysv4 | sysv4.3*)
14270  version_type=linux
14271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272  soname_spec='${libname}${release}${shared_ext}$major'
14273  shlibpath_var=LD_LIBRARY_PATH
14274  case $host_vendor in
14275    sni)
14276      shlibpath_overrides_runpath=no
14277      need_lib_prefix=no
14278      runpath_var=LD_RUN_PATH
14279      ;;
14280    siemens)
14281      need_lib_prefix=no
14282      ;;
14283    motorola)
14284      need_lib_prefix=no
14285      need_version=no
14286      shlibpath_overrides_runpath=no
14287      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14288      ;;
14289  esac
14290  ;;
14291
14292sysv4*MP*)
14293  if test -d /usr/nec ;then
14294    version_type=linux
14295    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14296    soname_spec='$libname${shared_ext}.$major'
14297    shlibpath_var=LD_LIBRARY_PATH
14298  fi
14299  ;;
14300
14301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14302  version_type=freebsd-elf
14303  need_lib_prefix=no
14304  need_version=no
14305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14306  soname_spec='${libname}${release}${shared_ext}$major'
14307  shlibpath_var=LD_LIBRARY_PATH
14308  shlibpath_overrides_runpath=yes
14309  hardcode_into_libs=yes
14310  if test "$with_gnu_ld" = yes; then
14311    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14312  else
14313    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14314    case $host_os in
14315      sco3.2v5*)
14316        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14317	;;
14318    esac
14319  fi
14320  sys_lib_dlsearch_path_spec='/usr/lib'
14321  ;;
14322
14323tpf*)
14324  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14325  version_type=linux
14326  need_lib_prefix=no
14327  need_version=no
14328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329  shlibpath_var=LD_LIBRARY_PATH
14330  shlibpath_overrides_runpath=no
14331  hardcode_into_libs=yes
14332  ;;
14333
14334uts4*)
14335  version_type=linux
14336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337  soname_spec='${libname}${release}${shared_ext}$major'
14338  shlibpath_var=LD_LIBRARY_PATH
14339  ;;
14340
14341*)
14342  dynamic_linker=no
14343  ;;
14344esac
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14346$as_echo "$dynamic_linker" >&6; }
14347test "$dynamic_linker" = no && can_build_shared=no
14348
14349variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14350if test "$GCC" = yes; then
14351  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14352fi
14353
14354if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14355  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14356fi
14357if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14358  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14359fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14399$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14400hardcode_action_FC=
14401if test -n "$hardcode_libdir_flag_spec_FC" ||
14402   test -n "$runpath_var_FC" ||
14403   test "X$hardcode_automatic_FC" = "Xyes" ; then
14404
14405  # We can hardcode non-existent directories.
14406  if test "$hardcode_direct_FC" != no &&
14407     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14408     # have to relink, otherwise we might link with an installed library
14409     # when we should be linking with a yet-to-be-installed one
14410     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14411     test "$hardcode_minus_L_FC" != no; then
14412    # Linking always hardcodes the temporary library directory.
14413    hardcode_action_FC=relink
14414  else
14415    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14416    hardcode_action_FC=immediate
14417  fi
14418else
14419  # We cannot hardcode anything, or else we can only hardcode existing
14420  # directories.
14421  hardcode_action_FC=unsupported
14422fi
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14424$as_echo "$hardcode_action_FC" >&6; }
14425
14426if test "$hardcode_action_FC" = relink ||
14427   test "$inherit_rpath_FC" = yes; then
14428  # Fast installation is not supported
14429  enable_fast_install=no
14430elif test "$shlibpath_overrides_runpath" = yes ||
14431     test "$enable_shared" = no; then
14432  # Fast installation is not necessary
14433  enable_fast_install=needless
14434fi
14435
14436
14437
14438
14439
14440
14441
14442  fi # test -n "$compiler"
14443
14444  GCC=$lt_save_GCC
14445  CC="$lt_save_CC"
14446fi # test "$_lt_disable_FC" != yes
14447
14448ac_ext=c
14449ac_cpp='$CPP $CPPFLAGS'
14450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452ac_compiler_gnu=$ac_cv_c_compiler_gnu
14453
14454
14455FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14456
14457# For libtool versioning info, format is CURRENT:REVISION:AGE
14458libtool_VERSION=1:0:0
14459
14460
14461# Check header files.
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14463$as_echo_n "checking for ANSI C header files... " >&6; }
14464if test "${ac_cv_header_stdc+set}" = set; then :
14465  $as_echo_n "(cached) " >&6
14466else
14467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h.  */
14469#include <stdlib.h>
14470#include <stdarg.h>
14471#include <string.h>
14472#include <float.h>
14473
14474int
14475main ()
14476{
14477
14478  ;
14479  return 0;
14480}
14481_ACEOF
14482if ac_fn_c_try_compile "$LINENO"; then :
14483  ac_cv_header_stdc=yes
14484else
14485  ac_cv_header_stdc=no
14486fi
14487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488
14489if test $ac_cv_header_stdc = yes; then
14490  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h.  */
14493#include <string.h>
14494
14495_ACEOF
14496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14497  $EGREP "memchr" >/dev/null 2>&1; then :
14498
14499else
14500  ac_cv_header_stdc=no
14501fi
14502rm -f conftest*
14503
14504fi
14505
14506if test $ac_cv_header_stdc = yes; then
14507  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510#include <stdlib.h>
14511
14512_ACEOF
14513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514  $EGREP "free" >/dev/null 2>&1; then :
14515
14516else
14517  ac_cv_header_stdc=no
14518fi
14519rm -f conftest*
14520
14521fi
14522
14523if test $ac_cv_header_stdc = yes; then
14524  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14525  if test "$cross_compiling" = yes; then :
14526  :
14527else
14528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h.  */
14530#include <ctype.h>
14531#include <stdlib.h>
14532#if ((' ' & 0x0FF) == 0x020)
14533# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14534# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14535#else
14536# define ISLOWER(c) \
14537		   (('a' <= (c) && (c) <= 'i') \
14538		     || ('j' <= (c) && (c) <= 'r') \
14539		     || ('s' <= (c) && (c) <= 'z'))
14540# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14541#endif
14542
14543#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14544int
14545main ()
14546{
14547  int i;
14548  for (i = 0; i < 256; i++)
14549    if (XOR (islower (i), ISLOWER (i))
14550	|| toupper (i) != TOUPPER (i))
14551      return 2;
14552  return 0;
14553}
14554_ACEOF
14555if ac_fn_c_try_run "$LINENO"; then :
14556
14557else
14558  ac_cv_header_stdc=no
14559fi
14560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14561  conftest.$ac_objext conftest.beam conftest.$ac_ext
14562fi
14563
14564fi
14565fi
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14567$as_echo "$ac_cv_header_stdc" >&6; }
14568if test $ac_cv_header_stdc = yes; then
14569
14570$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14571
14572fi
14573
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14575$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14576if test "${ac_cv_header_time+set}" = set; then :
14577  $as_echo_n "(cached) " >&6
14578else
14579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581#include <sys/types.h>
14582#include <sys/time.h>
14583#include <time.h>
14584
14585int
14586main ()
14587{
14588if ((struct tm *) 0)
14589return 0;
14590  ;
14591  return 0;
14592}
14593_ACEOF
14594if ac_fn_c_try_compile "$LINENO"; then :
14595  ac_cv_header_time=yes
14596else
14597  ac_cv_header_time=no
14598fi
14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600fi
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14602$as_echo "$ac_cv_header_time" >&6; }
14603if test $ac_cv_header_time = yes; then
14604
14605$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14606
14607fi
14608
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14610$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14611if test "${gcc_cv_header_string+set}" = set; then :
14612  $as_echo_n "(cached) " >&6
14613else
14614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616#include <string.h>
14617#include <strings.h>
14618int
14619main ()
14620{
14621
14622  ;
14623  return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_compile "$LINENO"; then :
14627  gcc_cv_header_string=yes
14628else
14629  gcc_cv_header_string=no
14630fi
14631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632fi
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14634$as_echo "$gcc_cv_header_string" >&6; }
14635if test $gcc_cv_header_string = yes; then
14636
14637$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14638
14639fi
14640
14641for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14642do :
14643  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14644ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14645eval as_val=\$$as_ac_Header
14646   if test "x$as_val" = x""yes; then :
14647  cat >>confdefs.h <<_ACEOF
14648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14649_ACEOF
14650
14651fi
14652
14653done
14654
14655
14656
14657
14658inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14659
14660acx_cv_header_stdint=stddef.h
14661acx_cv_header_stdint_kind="(already complete)"
14662for i in stdint.h $inttype_headers; do
14663  unset ac_cv_type_uintptr_t
14664  unset ac_cv_type_uintmax_t
14665  unset ac_cv_type_int_least32_t
14666  unset ac_cv_type_int_fast32_t
14667  unset ac_cv_type_uint64_t
14668  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14669  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14670#include <$i>
14671"
14672if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14673  acx_cv_header_stdint=$i
14674else
14675  continue
14676fi
14677
14678  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14679#include <$i>
14680"
14681if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14682
14683else
14684  acx_cv_header_stdint_kind="(mostly complete)"
14685fi
14686
14687  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14688#include <$i>
14689"
14690if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14691
14692else
14693  acx_cv_header_stdint_kind="(mostly complete)"
14694fi
14695
14696  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14697#include <$i>
14698"
14699if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14700
14701else
14702  acx_cv_header_stdint_kind="(mostly complete)"
14703fi
14704
14705  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14706#include <$i>
14707"
14708if test "x$ac_cv_type_uint64_t" = x""yes; then :
14709
14710else
14711  acx_cv_header_stdint_kind="(lacks uint64_t)"
14712fi
14713
14714  break
14715done
14716if test "$acx_cv_header_stdint" = stddef.h; then
14717  acx_cv_header_stdint_kind="(lacks uintmax_t)"
14718  for i in stdint.h $inttype_headers; do
14719    unset ac_cv_type_uintptr_t
14720    unset ac_cv_type_uint32_t
14721    unset ac_cv_type_uint64_t
14722    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14723    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14724#include <$i>
14725"
14726if test "x$ac_cv_type_uint32_t" = x""yes; then :
14727  acx_cv_header_stdint=$i
14728else
14729  continue
14730fi
14731
14732    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14733#include <$i>
14734"
14735if test "x$ac_cv_type_uint64_t" = x""yes; then :
14736
14737fi
14738
14739    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14740#include <$i>
14741"
14742if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14743
14744fi
14745
14746    break
14747  done
14748fi
14749if test "$acx_cv_header_stdint" = stddef.h; then
14750  acx_cv_header_stdint_kind="(u_intXX_t style)"
14751  for i in sys/types.h $inttype_headers; do
14752    unset ac_cv_type_u_int32_t
14753    unset ac_cv_type_u_int64_t
14754    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14755    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14756#include <$i>
14757"
14758if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14759  acx_cv_header_stdint=$i
14760else
14761  continue
14762fi
14763
14764    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14765#include <$i>
14766"
14767if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14768
14769fi
14770
14771    break
14772  done
14773fi
14774if test "$acx_cv_header_stdint" = stddef.h; then
14775  acx_cv_header_stdint_kind="(using manual detection)"
14776fi
14777
14778test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14779test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14780test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14781test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14782test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14783
14784# ----------------- Summarize what we found so far
14785
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14787$as_echo_n "checking what to include in gstdint.h... " >&6; }
14788
14789case `$as_basename -- gstdint.h ||
14790$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14791	 Xgstdint.h : 'X\(//\)$' \| \
14792	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14793$as_echo X/gstdint.h |
14794    sed '/^.*\/\([^/][^/]*\)\/*$/{
14795	    s//\1/
14796	    q
14797	  }
14798	  /^X\/\(\/\/\)$/{
14799	    s//\1/
14800	    q
14801	  }
14802	  /^X\/\(\/\).*/{
14803	    s//\1/
14804	    q
14805	  }
14806	  s/.*/./; q'` in
14807  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14808$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14809  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14810$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14811  *) ;;
14812esac
14813
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14815$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14816
14817# ----------------- done included file, check C basic types --------
14818
14819# Lacking an uintptr_t?  Test size of void *
14820case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14821  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14822# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14823# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14824# This bug is HP SR number 8606223364.
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14826$as_echo_n "checking size of void *... " >&6; }
14827if test "${ac_cv_sizeof_void_p+set}" = set; then :
14828  $as_echo_n "(cached) " >&6
14829else
14830  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14831
14832else
14833  if test "$ac_cv_type_void_p" = yes; then
14834     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14836{ as_fn_set_status 77
14837as_fn_error "cannot compute sizeof (void *)
14838See \`config.log' for more details." "$LINENO" 5; }; }
14839   else
14840     ac_cv_sizeof_void_p=0
14841   fi
14842fi
14843
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14846$as_echo "$ac_cv_sizeof_void_p" >&6; }
14847
14848
14849
14850cat >>confdefs.h <<_ACEOF
14851#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14852_ACEOF
14853
14854 ;;
14855esac
14856
14857# Lacking an uint64_t?  Test size of long
14858case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14859  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14862# This bug is HP SR number 8606223364.
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14864$as_echo_n "checking size of long... " >&6; }
14865if test "${ac_cv_sizeof_long+set}" = set; then :
14866  $as_echo_n "(cached) " >&6
14867else
14868  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14869
14870else
14871  if test "$ac_cv_type_long" = yes; then
14872     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14874{ as_fn_set_status 77
14875as_fn_error "cannot compute sizeof (long)
14876See \`config.log' for more details." "$LINENO" 5; }; }
14877   else
14878     ac_cv_sizeof_long=0
14879   fi
14880fi
14881
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14884$as_echo "$ac_cv_sizeof_long" >&6; }
14885
14886
14887
14888cat >>confdefs.h <<_ACEOF
14889#define SIZEOF_LONG $ac_cv_sizeof_long
14890_ACEOF
14891
14892 ;;
14893esac
14894
14895if test $acx_cv_header_stdint = stddef.h; then
14896  # Lacking a good header?  Test size of everything and deduce all types.
14897  # The cast to long int works around a bug in the HP C Compiler
14898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14900# This bug is HP SR number 8606223364.
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14902$as_echo_n "checking size of int... " >&6; }
14903if test "${ac_cv_sizeof_int+set}" = set; then :
14904  $as_echo_n "(cached) " >&6
14905else
14906  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14907
14908else
14909  if test "$ac_cv_type_int" = yes; then
14910     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14912{ as_fn_set_status 77
14913as_fn_error "cannot compute sizeof (int)
14914See \`config.log' for more details." "$LINENO" 5; }; }
14915   else
14916     ac_cv_sizeof_int=0
14917   fi
14918fi
14919
14920fi
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14922$as_echo "$ac_cv_sizeof_int" >&6; }
14923
14924
14925
14926cat >>confdefs.h <<_ACEOF
14927#define SIZEOF_INT $ac_cv_sizeof_int
14928_ACEOF
14929
14930
14931  # The cast to long int works around a bug in the HP C Compiler
14932# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14933# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14934# This bug is HP SR number 8606223364.
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14936$as_echo_n "checking size of short... " >&6; }
14937if test "${ac_cv_sizeof_short+set}" = set; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14941
14942else
14943  if test "$ac_cv_type_short" = yes; then
14944     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14946{ as_fn_set_status 77
14947as_fn_error "cannot compute sizeof (short)
14948See \`config.log' for more details." "$LINENO" 5; }; }
14949   else
14950     ac_cv_sizeof_short=0
14951   fi
14952fi
14953
14954fi
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14956$as_echo "$ac_cv_sizeof_short" >&6; }
14957
14958
14959
14960cat >>confdefs.h <<_ACEOF
14961#define SIZEOF_SHORT $ac_cv_sizeof_short
14962_ACEOF
14963
14964
14965  # The cast to long int works around a bug in the HP C Compiler
14966# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14967# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14968# This bug is HP SR number 8606223364.
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14970$as_echo_n "checking size of char... " >&6; }
14971if test "${ac_cv_sizeof_char+set}" = set; then :
14972  $as_echo_n "(cached) " >&6
14973else
14974  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14975
14976else
14977  if test "$ac_cv_type_char" = yes; then
14978     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14980{ as_fn_set_status 77
14981as_fn_error "cannot compute sizeof (char)
14982See \`config.log' for more details." "$LINENO" 5; }; }
14983   else
14984     ac_cv_sizeof_char=0
14985   fi
14986fi
14987
14988fi
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14990$as_echo "$ac_cv_sizeof_char" >&6; }
14991
14992
14993
14994cat >>confdefs.h <<_ACEOF
14995#define SIZEOF_CHAR $ac_cv_sizeof_char
14996_ACEOF
14997
14998
14999
15000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15001$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15002  case "$ac_cv_sizeof_char" in
15003    1) acx_cv_type_int8_t=char ;;
15004    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15005  esac
15006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15007$as_echo "$acx_cv_type_int8_t" >&6; }
15008
15009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15010$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15011  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15012    2:*) acx_cv_type_int16_t=int ;;
15013    *:2) acx_cv_type_int16_t=short ;;
15014    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15015  esac
15016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15017$as_echo "$acx_cv_type_int16_t" >&6; }
15018
15019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15020$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15021  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15022    4:*) acx_cv_type_int32_t=int ;;
15023    *:4) acx_cv_type_int32_t=long ;;
15024    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15025  esac
15026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15027$as_echo "$acx_cv_type_int32_t" >&6; }
15028fi
15029
15030# These tests are here to make the output prettier
15031
15032if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15033  case "$ac_cv_sizeof_long" in
15034    8) acx_cv_type_int64_t=long ;;
15035  esac
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15037$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15039$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15040fi
15041
15042# Now we can use the above types
15043
15044if test "$ac_cv_type_uintptr_t" != yes; then
15045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15046$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15047  case $ac_cv_sizeof_void_p in
15048    2) acx_cv_type_intptr_t=int16_t ;;
15049    4) acx_cv_type_intptr_t=int32_t ;;
15050    8) acx_cv_type_intptr_t=int64_t ;;
15051    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15052  esac
15053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15054$as_echo "$acx_cv_type_intptr_t" >&6; }
15055fi
15056
15057# ----------------- done all checks, emit header -------------
15058ac_config_commands="$ac_config_commands gstdint.h"
15059
15060
15061
15062
15063XPCFLAGS=""
15064case "$host" in
15065  *-*-rtems*)
15066    # RTEMS supports Pthreads, but the library is not available at GCC build time.
15067    ;;
15068  nvptx*-*-*)
15069    # NVPTX does not support Pthreads, has its own code replacement.
15070    ;;
15071  *)
15072    # Check to see if -pthread or -lpthread is needed.  Prefer the former.
15073    # In case the pthread.h system header is not found, this test will fail.
15074    CFLAGS="$CFLAGS -pthread"
15075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077#include <pthread.h>
15078       void *g(void *d) { return NULL; }
15079int
15080main ()
15081{
15082pthread_t t; pthread_create(&t,NULL,g,NULL);
15083  ;
15084  return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_link "$LINENO"; then :
15088  XPCFLAGS=" -Wc,-pthread"
15089else
15090  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h.  */
15093#include <pthread.h>
15094         void *g(void *d) { return NULL; }
15095int
15096main ()
15097{
15098pthread_t t; pthread_create(&t,NULL,g,NULL);
15099  ;
15100  return 0;
15101}
15102_ACEOF
15103if ac_fn_c_try_link "$LINENO"; then :
15104
15105else
15106  as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15107fi
15108rm -f core conftest.err conftest.$ac_objext \
15109    conftest$ac_exeext conftest.$ac_ext
15110fi
15111rm -f core conftest.err conftest.$ac_objext \
15112    conftest$ac_exeext conftest.$ac_ext
15113esac
15114
15115# Plugins for offload execution, configure.ac fragment.  -*- mode: autoconf -*-
15116#
15117# Copyright (C) 2014-2016 Free Software Foundation, Inc.
15118#
15119# Contributed by Mentor Embedded.
15120#
15121# This file is part of the GNU Offloading and Multi Processing Library
15122# (libgomp).
15123#
15124# Libgomp is free software; you can redistribute it and/or modify it
15125# under the terms of the GNU General Public License as published by
15126# the Free Software Foundation; either version 3, or (at your option)
15127# any later version.
15128#
15129# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15130# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15131# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15132# more details.
15133#
15134# Under Section 7 of GPL version 3, you are granted additional
15135# permissions described in the GCC Runtime Library Exception, version
15136# 3.1, as published by the Free Software Foundation.
15137#
15138# You should have received a copy of the GNU General Public License and
15139# a copy of the GCC Runtime Library Exception along with this program;
15140# see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
15141# <http://www.gnu.org/licenses/>.
15142
15143offload_targets=
15144
15145plugin_support=yes
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15147$as_echo_n "checking for dlsym in -ldl... " >&6; }
15148if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  ac_check_lib_save_LIBS=$LIBS
15152LIBS="-ldl  $LIBS"
15153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h.  */
15155
15156/* Override any GCC internal prototype to avoid an error.
15157   Use char because int might match the return type of a GCC
15158   builtin and then its argument prototype would still apply.  */
15159#ifdef __cplusplus
15160extern "C"
15161#endif
15162char dlsym ();
15163int
15164main ()
15165{
15166return dlsym ();
15167  ;
15168  return 0;
15169}
15170_ACEOF
15171if ac_fn_c_try_link "$LINENO"; then :
15172  ac_cv_lib_dl_dlsym=yes
15173else
15174  ac_cv_lib_dl_dlsym=no
15175fi
15176rm -f core conftest.err conftest.$ac_objext \
15177    conftest$ac_exeext conftest.$ac_ext
15178LIBS=$ac_check_lib_save_LIBS
15179fi
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15181$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15182if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15183  cat >>confdefs.h <<_ACEOF
15184#define HAVE_LIBDL 1
15185_ACEOF
15186
15187  LIBS="-ldl $LIBS"
15188
15189else
15190  plugin_support=no
15191fi
15192
15193if test x"$plugin_support" = xyes; then
15194
15195$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15196
15197elif test "x${enable_offload_targets-no}" != xno; then
15198  as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15199fi
15200
15201# Look for the CUDA driver package.
15202CUDA_DRIVER_INCLUDE=
15203CUDA_DRIVER_LIB=
15204
15205
15206CUDA_DRIVER_CPPFLAGS=
15207CUDA_DRIVER_LDFLAGS=
15208
15209# Check whether --with-cuda-driver was given.
15210if test "${with_cuda_driver+set}" = set; then :
15211  withval=$with_cuda_driver;
15212fi
15213
15214
15215# Check whether --with-cuda-driver-include was given.
15216if test "${with_cuda_driver_include+set}" = set; then :
15217  withval=$with_cuda_driver_include;
15218fi
15219
15220
15221# Check whether --with-cuda-driver-lib was given.
15222if test "${with_cuda_driver_lib+set}" = set; then :
15223  withval=$with_cuda_driver_lib;
15224fi
15225
15226if test "x$with_cuda_driver" != x; then
15227  CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15228  CUDA_DRIVER_LIB=$with_cuda_driver/lib
15229fi
15230if test "x$with_cuda_driver_include" != x; then
15231  CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15232fi
15233if test "x$with_cuda_driver_lib" != x; then
15234  CUDA_DRIVER_LIB=$with_cuda_driver_lib
15235fi
15236if test "x$CUDA_DRIVER_INCLUDE" != x; then
15237  CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15238fi
15239if test "x$CUDA_DRIVER_LIB" != x; then
15240  CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15241fi
15242
15243PLUGIN_NVPTX=0
15244PLUGIN_NVPTX_CPPFLAGS=
15245PLUGIN_NVPTX_LDFLAGS=
15246PLUGIN_NVPTX_LIBS=
15247
15248
15249
15250
15251
15252# Look for HSA run-time, its includes and libraries
15253
15254HSA_RUNTIME_INCLUDE=
15255HSA_RUNTIME_LIB=
15256
15257
15258HSA_RUNTIME_CPPFLAGS=
15259HSA_RUNTIME_LDFLAGS=
15260
15261
15262# Check whether --with-hsa-runtime was given.
15263if test "${with_hsa_runtime+set}" = set; then :
15264  withval=$with_hsa_runtime;
15265fi
15266
15267
15268# Check whether --with-hsa-runtime-include was given.
15269if test "${with_hsa_runtime_include+set}" = set; then :
15270  withval=$with_hsa_runtime_include;
15271fi
15272
15273
15274# Check whether --with-hsa-runtime-lib was given.
15275if test "${with_hsa_runtime_lib+set}" = set; then :
15276  withval=$with_hsa_runtime_lib;
15277fi
15278
15279if test "x$with_hsa_runtime" != x; then
15280  HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15281  HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15282fi
15283if test "x$with_hsa_runtime_include" != x; then
15284  HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15285fi
15286if test "x$with_hsa_runtime_lib" != x; then
15287  HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15288fi
15289if test "x$HSA_RUNTIME_INCLUDE" != x; then
15290  HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15291fi
15292if test "x$HSA_RUNTIME_LIB" != x; then
15293  HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15294fi
15295
15296HSA_KMT_LIB=
15297
15298HSA_KMT_LDFLAGS=
15299
15300# Check whether --with-hsa-kmt-lib was given.
15301if test "${with_hsa_kmt_lib+set}" = set; then :
15302  withval=$with_hsa_kmt_lib;
15303fi
15304
15305if test "x$with_hsa_kmt_lib" != x; then
15306  HSA_KMT_LIB=$with_hsa_kmt_lib
15307fi
15308if test "x$HSA_KMT_LIB" != x; then
15309  HSA_KMT_LDFLAGS=-L$HSA_KMT_LIB
15310fi
15311
15312PLUGIN_HSA=0
15313PLUGIN_HSA_CPPFLAGS=
15314PLUGIN_HSA_LDFLAGS=
15315PLUGIN_HSA_LIBS=
15316
15317
15318
15319
15320
15321
15322
15323# Get offload targets and path to install tree of offloading compiler.
15324offload_additional_options=
15325offload_additional_lib_paths=
15326
15327
15328if test x"$enable_offload_targets" != x; then
15329  for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15330    tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15331    tgt=`echo $tgt | sed 's/=.*//'`
15332    tgt_name=
15333    case $tgt in
15334      *-intelmic-* | *-intelmicemul-*)
15335	tgt_name=intelmic
15336	;;
15337      nvptx*)
15338        tgt_name=nvptx
15339	PLUGIN_NVPTX=$tgt
15340	PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15341	PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15342	PLUGIN_NVPTX_LIBS='-lcuda'
15343
15344	PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15345	CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15346	PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15347	LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15348	PLUGIN_NVPTX_save_LIBS=$LIBS
15349	LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15350	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351/* end confdefs.h.  */
15352#include "cuda.h"
15353int
15354main ()
15355{
15356CUresult r = cuCtxPushCurrent (NULL);
15357  ;
15358  return 0;
15359}
15360_ACEOF
15361if ac_fn_c_try_link "$LINENO"; then :
15362  PLUGIN_NVPTX=1
15363fi
15364rm -f core conftest.err conftest.$ac_objext \
15365    conftest$ac_exeext conftest.$ac_ext
15366	CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15367	LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15368	LIBS=$PLUGIN_NVPTX_save_LIBS
15369	case $PLUGIN_NVPTX in
15370	  nvptx*)
15371	    PLUGIN_NVPTX=0
15372	    as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15373	    ;;
15374	esac
15375	;;
15376      hsa*)
15377	case "${target}" in
15378	  x86_64-*-*)
15379	    case " ${CC} ${CFLAGS} " in
15380	      *" -m32 "*)
15381	        PLUGIN_HSA=0
15382		;;
15383	      *)
15384	        tgt_name=hsa
15385	        PLUGIN_HSA=$tgt
15386	        PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15387	        PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS $HSA_KMT_LDFLAGS"
15388	        PLUGIN_HSA_LIBS="-lhsa-runtime64 -lhsakmt"
15389
15390	        PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15391	        CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15392	        PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15393	        LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15394	        PLUGIN_HSA_save_LIBS=$LIBS
15395	        LIBS="$PLUGIN_HSA_LIBS $LIBS"
15396
15397	        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399#include "hsa.h"
15400int
15401main ()
15402{
15403hsa_status_t status = hsa_init ()
15404  ;
15405  return 0;
15406}
15407_ACEOF
15408if ac_fn_c_try_link "$LINENO"; then :
15409  PLUGIN_HSA=1
15410fi
15411rm -f core conftest.err conftest.$ac_objext \
15412    conftest$ac_exeext conftest.$ac_ext
15413	        CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15414	        LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15415	        LIBS=$PLUGIN_HSA_save_LIBS
15416	        case $PLUGIN_HSA in
15417	          hsa*)
15418	            HSA_PLUGIN=0
15419	            as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15420	            ;;
15421	        esac
15422		;;
15423	      esac
15424    	    ;;
15425	  *-*-*)
15426	    PLUGIN_HSA=0
15427            ;;
15428        esac
15429        ;;
15430      *)
15431	as_fn_error "unknown offload target specified" "$LINENO" 5
15432	;;
15433    esac
15434    if test x"$tgt_name" = x; then
15435      # Don't configure libgomp for this offloading target if we don't build
15436      # the corresponding plugin.
15437      continue
15438    elif test x"$offload_targets" = x; then
15439      offload_targets=$tgt_name
15440    else
15441      offload_targets=$offload_targets,$tgt_name
15442    fi
15443    if test "$tgt_name" = hsa; then
15444      # Offloading compilation is all handled by the target compiler.
15445      :
15446    elif test x"$tgt_dir" != x; then
15447      offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15448      offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15449    else
15450      offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15451      offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15452    fi
15453  done
15454fi
15455
15456cat >>confdefs.h <<_ACEOF
15457#define OFFLOAD_TARGETS "$offload_targets"
15458_ACEOF
15459
15460 if test $PLUGIN_NVPTX = 1; then
15461  PLUGIN_NVPTX_TRUE=
15462  PLUGIN_NVPTX_FALSE='#'
15463else
15464  PLUGIN_NVPTX_TRUE='#'
15465  PLUGIN_NVPTX_FALSE=
15466fi
15467
15468
15469cat >>confdefs.h <<_ACEOF
15470#define PLUGIN_NVPTX $PLUGIN_NVPTX
15471_ACEOF
15472
15473 if test $PLUGIN_HSA = 1; then
15474  PLUGIN_HSA_TRUE=
15475  PLUGIN_HSA_FALSE='#'
15476else
15477  PLUGIN_HSA_TRUE='#'
15478  PLUGIN_HSA_FALSE=
15479fi
15480
15481
15482cat >>confdefs.h <<_ACEOF
15483#define PLUGIN_HSA $PLUGIN_HSA
15484_ACEOF
15485
15486
15487
15488# Check for functions needed.
15489for ac_func in getloadavg clock_gettime strtoull
15490do :
15491  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15493eval as_val=\$$as_ac_var
15494   if test "x$as_val" = x""yes; then :
15495  cat >>confdefs.h <<_ACEOF
15496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497_ACEOF
15498
15499fi
15500done
15501
15502
15503# Check for broken semaphore implementation on darwin.
15504# sem_init returns: sem_init error: Function not implemented.
15505case "$host" in
15506  *-darwin*)
15507
15508$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15509
15510    ;;
15511esac
15512
15513# RTEMS specific checks
15514case "$host" in
15515  *-*-rtems*)
15516    ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15517"
15518if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15519
15520cat >>confdefs.h <<_ACEOF
15521#define HAVE_STRUCT__MUTEX_CONTROL 1
15522_ACEOF
15523
15524
15525fi
15526
15527    ;;
15528esac
15529
15530 # Check whether --enable-linux-futex was given.
15531if test "${enable_linux_futex+set}" = set; then :
15532  enableval=$enable_linux_futex;
15533      case "$enableval" in
15534       yes|no|default) ;;
15535       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15536                          esac
15537
15538else
15539  enable_linux_futex=default
15540fi
15541
15542
15543case "$target" in
15544  *-linux*)
15545    case "$enable_linux_futex" in
15546      default)
15547	# If headers don't have gettid/futex syscalls definition, then
15548	# default to no, otherwise there will be compile time failures.
15549	# Otherwise, default to yes.  If we don't detect we are
15550	# compiled/linked against NPTL and not cross-compiling, check
15551	# if programs are run by default against NPTL and if not, issue
15552	# a warning.
15553	enable_linux_futex=no
15554	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556#include <sys/syscall.h>
15557	   int lk;
15558int
15559main ()
15560{
15561syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15562  ;
15563  return 0;
15564}
15565_ACEOF
15566if ac_fn_c_try_link "$LINENO"; then :
15567  save_LIBS="$LIBS"
15568	   LIBS="-lpthread $LIBS"
15569	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570/* end confdefs.h.  */
15571#ifndef _GNU_SOURCE
15572	     #define _GNU_SOURCE 1
15573	     #endif
15574	     #include <pthread.h>
15575	     pthread_t th; void *status;
15576int
15577main ()
15578{
15579pthread_tryjoin_np (th, &status);
15580  ;
15581  return 0;
15582}
15583_ACEOF
15584if ac_fn_c_try_link "$LINENO"; then :
15585  enable_linux_futex=yes
15586else
15587  if test x$cross_compiling = xno; then
15588	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15589		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15590		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15591If so, please configure with --disable-linux-futex" >&5
15592$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15593If so, please configure with --disable-linux-futex" >&2;}
15594	       fi
15595	     fi
15596	     enable_linux_futex=yes
15597fi
15598rm -f core conftest.err conftest.$ac_objext \
15599    conftest$ac_exeext conftest.$ac_ext
15600	   LIBS="$save_LIBS"
15601fi
15602rm -f core conftest.err conftest.$ac_objext \
15603    conftest$ac_exeext conftest.$ac_ext
15604	;;
15605      yes)
15606	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607/* end confdefs.h.  */
15608#include <sys/syscall.h>
15609	   int lk;
15610int
15611main ()
15612{
15613syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15614  ;
15615  return 0;
15616}
15617_ACEOF
15618if ac_fn_c_try_link "$LINENO"; then :
15619
15620else
15621  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15622fi
15623rm -f core conftest.err conftest.$ac_objext \
15624    conftest$ac_exeext conftest.$ac_ext
15625	;;
15626    esac
15627    ;;
15628  *)
15629    enable_linux_futex=no
15630    ;;
15631esac
15632if test x$enable_linux_futex = xyes; then
15633  :
15634fi
15635
15636
15637# Check for pthread_{,attr_}[sg]etaffinity_np.
15638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639/* end confdefs.h.  */
15640#define _GNU_SOURCE
15641   #include <pthread.h>
15642int
15643main ()
15644{
15645cpu_set_t cpuset;
15646   pthread_attr_t attr;
15647   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15648   if (CPU_ISSET (0, &cpuset))
15649     CPU_SET (1, &cpuset);
15650   else
15651     CPU_ZERO (&cpuset);
15652   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15653   pthread_attr_init (&attr);
15654   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15655   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15656  ;
15657  return 0;
15658}
15659_ACEOF
15660if ac_fn_c_try_link "$LINENO"; then :
15661
15662$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15663
15664fi
15665rm -f core conftest.err conftest.$ac_objext \
15666    conftest$ac_exeext conftest.$ac_ext
15667
15668# At least for glibc, clock_gettime is in librt.  But don't pull that
15669# in if it still doesn't give us the function we want.
15670if test $ac_cv_func_clock_gettime = no; then
15671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15672$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15673if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15674  $as_echo_n "(cached) " >&6
15675else
15676  ac_check_lib_save_LIBS=$LIBS
15677LIBS="-lrt  $LIBS"
15678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h.  */
15680
15681/* Override any GCC internal prototype to avoid an error.
15682   Use char because int might match the return type of a GCC
15683   builtin and then its argument prototype would still apply.  */
15684#ifdef __cplusplus
15685extern "C"
15686#endif
15687char clock_gettime ();
15688int
15689main ()
15690{
15691return clock_gettime ();
15692  ;
15693  return 0;
15694}
15695_ACEOF
15696if ac_fn_c_try_link "$LINENO"; then :
15697  ac_cv_lib_rt_clock_gettime=yes
15698else
15699  ac_cv_lib_rt_clock_gettime=no
15700fi
15701rm -f core conftest.err conftest.$ac_objext \
15702    conftest$ac_exeext conftest.$ac_ext
15703LIBS=$ac_check_lib_save_LIBS
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15706$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15707if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15708  LIBS="-lrt $LIBS"
15709
15710$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15711
15712fi
15713
15714fi
15715
15716# See if we support thread-local storage.
15717
15718
15719   # Check whether --enable-tls was given.
15720if test "${enable_tls+set}" = set; then :
15721  enableval=$enable_tls;
15722      case "$enableval" in
15723       yes|no) ;;
15724       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15725      esac
15726
15727else
15728  enable_tls=yes
15729fi
15730
15731
15732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15733$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15734if test "${gcc_cv_have_tls+set}" = set; then :
15735  $as_echo_n "(cached) " >&6
15736else
15737
15738    if test "$cross_compiling" = yes; then :
15739                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h.  */
15741__thread int a; int b; int main() { return a = b; }
15742_ACEOF
15743if ac_fn_c_try_link "$LINENO"; then :
15744  chktls_save_LDFLAGS="$LDFLAGS"
15745	  	  	  case $host in
15746	    *-*-linux*)
15747	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15748	      ;;
15749	  esac
15750	  chktls_save_CFLAGS="$CFLAGS"
15751	  CFLAGS="-fPIC $CFLAGS"
15752	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753/* end confdefs.h.  */
15754int f() { return 0; }
15755_ACEOF
15756if ac_fn_c_try_link "$LINENO"; then :
15757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759__thread int a; int b; int f() { return a = b; }
15760_ACEOF
15761if ac_fn_c_try_link "$LINENO"; then :
15762  gcc_cv_have_tls=yes
15763else
15764  gcc_cv_have_tls=no
15765fi
15766rm -f core conftest.err conftest.$ac_objext \
15767    conftest$ac_exeext conftest.$ac_ext
15768else
15769  gcc_cv_have_tls=yes
15770fi
15771rm -f core conftest.err conftest.$ac_objext \
15772    conftest$ac_exeext conftest.$ac_ext
15773	  CFLAGS="$chktls_save_CFLAGS"
15774	  LDFLAGS="$chktls_save_LDFLAGS"
15775else
15776  gcc_cv_have_tls=no
15777fi
15778rm -f core conftest.err conftest.$ac_objext \
15779    conftest$ac_exeext conftest.$ac_ext
15780
15781
15782else
15783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784/* end confdefs.h.  */
15785__thread int a; int b; int main() { return a = b; }
15786_ACEOF
15787if ac_fn_c_try_run "$LINENO"; then :
15788                      chktls_save_LDFLAGS="$LDFLAGS"
15789      LDFLAGS="-static $LDFLAGS"
15790      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791/* end confdefs.h.  */
15792int main() { return 0; }
15793_ACEOF
15794if ac_fn_c_try_link "$LINENO"; then :
15795  if test "$cross_compiling" = yes; then :
15796  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15798as_fn_error "cannot run test program while cross compiling
15799See \`config.log' for more details." "$LINENO" 5; }
15800else
15801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802/* end confdefs.h.  */
15803__thread int a; int b; int main() { return a = b; }
15804_ACEOF
15805if ac_fn_c_try_run "$LINENO"; then :
15806  gcc_cv_have_tls=yes
15807else
15808  gcc_cv_have_tls=no
15809fi
15810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15811  conftest.$ac_objext conftest.beam conftest.$ac_ext
15812fi
15813
15814else
15815  gcc_cv_have_tls=yes
15816fi
15817rm -f core conftest.err conftest.$ac_objext \
15818    conftest$ac_exeext conftest.$ac_ext
15819      LDFLAGS="$chktls_save_LDFLAGS"
15820      if test $gcc_cv_have_tls = yes; then
15821						chktls_save_CFLAGS="$CFLAGS"
15822	thread_CFLAGS=failed
15823	for flag in '' '-pthread' '-lpthread'; do
15824	  CFLAGS="$flag $chktls_save_CFLAGS"
15825	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826/* end confdefs.h.  */
15827#include <pthread.h>
15828		void *g(void *d) { return NULL; }
15829int
15830main ()
15831{
15832pthread_t t; pthread_create(&t,NULL,g,NULL);
15833  ;
15834  return 0;
15835}
15836_ACEOF
15837if ac_fn_c_try_link "$LINENO"; then :
15838  thread_CFLAGS="$flag"
15839fi
15840rm -f core conftest.err conftest.$ac_objext \
15841    conftest$ac_exeext conftest.$ac_ext
15842	  if test "X$thread_CFLAGS" != Xfailed; then
15843	    break
15844	  fi
15845	done
15846	CFLAGS="$chktls_save_CFLAGS"
15847	if test "X$thread_CFLAGS" != Xfailed; then
15848	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15849 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
15850  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15852as_fn_error "cannot run test program while cross compiling
15853See \`config.log' for more details." "$LINENO" 5; }
15854else
15855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856/* end confdefs.h.  */
15857#include <pthread.h>
15858		__thread int a;
15859		static int *volatile a_in_other_thread;
15860		static void *
15861		thread_func (void *arg)
15862		{
15863		  a_in_other_thread = &a;
15864		  return (void *)0;
15865		}
15866int
15867main ()
15868{
15869pthread_t thread;
15870		void *thread_retval;
15871		int *volatile a_in_main_thread;
15872		a_in_main_thread = &a;
15873		if (pthread_create (&thread, (pthread_attr_t *)0,
15874				    thread_func, (void *)0))
15875		  return 0;
15876		if (pthread_join (thread, &thread_retval))
15877		  return 0;
15878		return (a_in_other_thread == a_in_main_thread);
15879  ;
15880  return 0;
15881}
15882_ACEOF
15883if ac_fn_c_try_run "$LINENO"; then :
15884  gcc_cv_have_tls=yes
15885else
15886  gcc_cv_have_tls=no
15887fi
15888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15889  conftest.$ac_objext conftest.beam conftest.$ac_ext
15890fi
15891
15892	  CFLAGS="$chktls_save_CFLAGS"
15893	fi
15894      fi
15895else
15896  gcc_cv_have_tls=no
15897fi
15898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15899  conftest.$ac_objext conftest.beam conftest.$ac_ext
15900fi
15901
15902fi
15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15904$as_echo "$gcc_cv_have_tls" >&6; }
15905  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15906
15907$as_echo "#define HAVE_TLS 1" >>confdefs.h
15908
15909  fi
15910
15911# See if we have emulated thread-local storage.
15912
15913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15914$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15915if test "${gcc_cv_use_emutls+set}" = set; then :
15916  $as_echo_n "(cached) " >&6
15917else
15918
15919    gcc_cv_use_emutls=no
15920    echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15921    if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15922  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15923  (eval $ac_try) 2>&5
15924  ac_status=$?
15925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15926  test $ac_status = 0; }; }; then
15927      if grep __emutls_get_address conftest.s > /dev/null; then
15928	gcc_cv_use_emutls=yes
15929      fi
15930    fi
15931    rm -f conftest.*
15932
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15935$as_echo "$gcc_cv_use_emutls" >&6; }
15936  if test "$gcc_cv_use_emutls" = "yes" ; then
15937
15938$as_echo "#define USE_EMUTLS 1" >>confdefs.h
15939
15940  fi
15941
15942# See what sort of export controls are available.
15943
15944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15945$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15946if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15947  $as_echo_n "(cached) " >&6
15948else
15949
15950  save_CFLAGS="$CFLAGS"
15951  CFLAGS="$CFLAGS -Werror"
15952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h.  */
15954void __attribute__((visibility("hidden"))) foo(void) { }
15955int
15956main ()
15957{
15958
15959  ;
15960  return 0;
15961}
15962_ACEOF
15963if ac_fn_c_try_compile "$LINENO"; then :
15964  libgomp_cv_have_attribute_visibility=yes
15965else
15966  libgomp_cv_have_attribute_visibility=no
15967fi
15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969  CFLAGS="$save_CFLAGS"
15970fi
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15972$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15973  if test $libgomp_cv_have_attribute_visibility = yes; then
15974
15975$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15976
15977  fi
15978
15979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15980$as_echo_n "checking whether the target supports dllexport... " >&6; }
15981if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15982  $as_echo_n "(cached) " >&6
15983else
15984
15985  save_CFLAGS="$CFLAGS"
15986  CFLAGS="$CFLAGS -Werror"
15987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988/* end confdefs.h.  */
15989void __attribute__((dllexport)) foo(void) { }
15990int
15991main ()
15992{
15993
15994  ;
15995  return 0;
15996}
15997_ACEOF
15998if ac_fn_c_try_compile "$LINENO"; then :
15999  libgomp_cv_have_attribute_dllexport=yes
16000else
16001  libgomp_cv_have_attribute_dllexport=no
16002fi
16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004  CFLAGS="$save_CFLAGS"
16005fi
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16007$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16008  if test $libgomp_cv_have_attribute_dllexport = yes; then
16009
16010$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16011
16012  fi
16013
16014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16015$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16016if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16017  $as_echo_n "(cached) " >&6
16018else
16019
16020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021/* end confdefs.h.  */
16022
16023void foo(void) { }
16024extern void bar(void) __attribute__((alias("foo")));
16025int
16026main ()
16027{
16028bar();
16029  ;
16030  return 0;
16031}
16032_ACEOF
16033if ac_fn_c_try_link "$LINENO"; then :
16034  libgomp_cv_have_attribute_alias=yes
16035else
16036  libgomp_cv_have_attribute_alias=no
16037fi
16038rm -f core conftest.err conftest.$ac_objext \
16039    conftest$ac_exeext conftest.$ac_ext
16040fi
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16042$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16043  if test $libgomp_cv_have_attribute_alias = yes; then
16044
16045$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16046
16047  fi
16048
16049
16050# Check whether --with-gnu-ld was given.
16051if test "${with_gnu_ld+set}" = set; then :
16052  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16053else
16054  with_gnu_ld=no
16055fi
16056
16057ac_prog=ld
16058if test "$GCC" = yes; then
16059  # Check if gcc -print-prog-name=ld gives a path.
16060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16061$as_echo_n "checking for ld used by $CC... " >&6; }
16062  case $host in
16063  *-*-mingw*)
16064    # gcc leaves a trailing carriage return which upsets mingw
16065    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16066  *)
16067    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16068  esac
16069  case $ac_prog in
16070    # Accept absolute paths.
16071    [\\/]* | ?:[\\/]*)
16072      re_direlt='/[^/][^/]*/\.\./'
16073      # Canonicalize the pathname of ld
16074      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16075      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16076	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16077      done
16078      test -z "$LD" && LD="$ac_prog"
16079      ;;
16080  "")
16081    # If it fails, then pretend we aren't using GCC.
16082    ac_prog=ld
16083    ;;
16084  *)
16085    # If it is relative, then search for the first ld in PATH.
16086    with_gnu_ld=unknown
16087    ;;
16088  esac
16089elif test "$with_gnu_ld" = yes; then
16090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16091$as_echo_n "checking for GNU ld... " >&6; }
16092else
16093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16094$as_echo_n "checking for non-GNU ld... " >&6; }
16095fi
16096if test "${lt_cv_path_LD+set}" = set; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  if test -z "$LD"; then
16100  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16101  for ac_dir in $PATH; do
16102    IFS="$lt_save_ifs"
16103    test -z "$ac_dir" && ac_dir=.
16104    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16105      lt_cv_path_LD="$ac_dir/$ac_prog"
16106      # Check to see if the program is GNU ld.  I'd rather use --version,
16107      # but apparently some variants of GNU ld only accept -v.
16108      # Break only if it was the GNU/non-GNU ld that we prefer.
16109      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16110      *GNU* | *'with BFD'*)
16111	test "$with_gnu_ld" != no && break
16112	;;
16113      *)
16114	test "$with_gnu_ld" != yes && break
16115	;;
16116      esac
16117    fi
16118  done
16119  IFS="$lt_save_ifs"
16120else
16121  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16122fi
16123fi
16124
16125LD="$lt_cv_path_LD"
16126if test -n "$LD"; then
16127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16128$as_echo "$LD" >&6; }
16129else
16130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131$as_echo "no" >&6; }
16132fi
16133test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16135$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16136if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16137  $as_echo_n "(cached) " >&6
16138else
16139  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16140case `$LD -v 2>&1 </dev/null` in
16141*GNU* | *'with BFD'*)
16142  lt_cv_prog_gnu_ld=yes
16143  ;;
16144*)
16145  lt_cv_prog_gnu_ld=no
16146  ;;
16147esac
16148fi
16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16150$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16151with_gnu_ld=$lt_cv_prog_gnu_ld
16152
16153
16154
16155
16156
16157
16158
16159  # If we're not using GNU ld, then there's no point in even trying these
16160  # tests.  Check for that first.  We should have already tested for gld
16161  # by now (in libtool), but require it now just to be safe...
16162  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16163  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16164
16165
16166
16167  # The name set by libtool depends on the version of libtool.  Shame on us
16168  # for depending on an impl detail, but c'est la vie.  Older versions used
16169  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16170  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16171  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16172  # set (hence we're using an older libtool), then set it.
16173  if test x${with_gnu_ld+set} != xset; then
16174    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16175      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16176      with_gnu_ld=no
16177    else
16178      with_gnu_ld=$ac_cv_prog_gnu_ld
16179    fi
16180  fi
16181
16182  # Start by getting the version number.  I think the libtool test already
16183  # does some of this, but throws away the result.
16184  libgomp_ld_is_gold=no
16185  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16186    libgomp_ld_is_gold=yes
16187  fi
16188
16189  ldver=`$LD --version 2>/dev/null |
16190         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'`
16191
16192  libgomp_gnu_ld_version=`echo $ldver | \
16193         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16194
16195  # Set --gc-sections.
16196  if test "$with_gnu_ld" = "notbroken"; then
16197    # GNU ld it is!  Joy and bunny rabbits!
16198
16199    # All these tests are for C++; save the language and the compiler flags.
16200    # Need to do this so that g++ won't try to link in libstdc++
16201    ac_test_CFLAGS="${CFLAGS+set}"
16202    ac_save_CFLAGS="$CFLAGS"
16203    CFLAGS='-x c++  -Wl,--gc-sections'
16204
16205    # Check for -Wl,--gc-sections
16206    # XXX This test is broken at the moment, as symbols required for linking
16207    # are now in libsupc++ (not built yet).  In addition, this test has
16208    # cored on solaris in the past.  In addition, --gc-sections doesn't
16209    # really work at the moment (keeps on discarding used sections, first
16210    # .eh_frame and now some of the glibc sections for iconv).
16211    # Bzzzzt.  Thanks for playing, maybe next time.
16212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16213$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16214    if test "$cross_compiling" = yes; then :
16215  ac_sectionLDflags=yes
16216else
16217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h.  */
16219
16220     int main(void)
16221     {
16222       try { throw 1; }
16223       catch (...) { };
16224       return 0;
16225     }
16226
16227_ACEOF
16228if ac_fn_c_try_run "$LINENO"; then :
16229  ac_sectionLDflags=yes
16230else
16231  ac_sectionLDflags=no
16232fi
16233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16234  conftest.$ac_objext conftest.beam conftest.$ac_ext
16235fi
16236
16237    if test "$ac_test_CFLAGS" = set; then
16238      CFLAGS="$ac_save_CFLAGS"
16239    else
16240      # this is the suspicious part
16241      CFLAGS=''
16242    fi
16243    if test "$ac_sectionLDflags" = "yes"; then
16244      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16245    fi
16246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16247$as_echo "$ac_sectionLDflags" >&6; }
16248  fi
16249
16250  # Set linker optimization flags.
16251  if test x"$with_gnu_ld" = x"yes"; then
16252    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16253  fi
16254
16255
16256
16257
16258
16259
16260 # Check whether --enable-symvers was given.
16261if test "${enable_symvers+set}" = set; then :
16262  enableval=$enable_symvers;
16263      case "$enableval" in
16264       yes|no|gnu*|sun) ;;
16265       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16266                          esac
16267
16268else
16269  enable_symvers=yes
16270fi
16271
16272
16273
16274# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16275# don't know enough about $LD to do tricks...
16276
16277
16278# Turn a 'yes' into a suitable default.
16279if test x$enable_symvers = xyes ; then
16280  # FIXME  The following test is too strict, in theory.
16281  if test $enable_shared = no || test "x$LD" = x; then
16282    enable_symvers=no
16283  else
16284    if test $with_gnu_ld = yes ; then
16285      enable_symvers=gnu
16286    else
16287      case ${target_os} in
16288        # Sun symbol versioning exists since Solaris 2.5.
16289        solaris2.[5-9]* | solaris2.1[0-9]*)
16290          enable_symvers=sun ;;
16291        *)
16292          enable_symvers=no ;;
16293      esac
16294    fi
16295  fi
16296fi
16297
16298# Check if 'sun' was requested on non-Solaris 2 platforms.
16299if test x$enable_symvers = xsun ; then
16300  case ${target_os} in
16301    solaris2*)
16302      # All fine.
16303      ;;
16304    *)
16305      # Unlikely to work.
16306      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16307$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16308      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16309$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16310      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16311$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16312      enable_symvers=no
16313      ;;
16314  esac
16315fi
16316
16317# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16318if test $enable_symvers != no; then
16319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16320$as_echo_n "checking for shared libgcc... " >&6; }
16321  ac_save_CFLAGS="$CFLAGS"
16322  CFLAGS=' -lgcc_s'
16323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h.  */
16325
16326int
16327main ()
16328{
16329return 0;
16330  ;
16331  return 0;
16332}
16333_ACEOF
16334if ac_fn_c_try_link "$LINENO"; then :
16335  libgomp_shared_libgcc=yes
16336else
16337  libgomp_shared_libgcc=no
16338fi
16339rm -f core conftest.err conftest.$ac_objext \
16340    conftest$ac_exeext conftest.$ac_ext
16341  CFLAGS="$ac_save_CFLAGS"
16342  if test $libgomp_shared_libgcc = no; then
16343    cat > conftest.c <<EOF
16344int main (void) { return 0; }
16345EOF
16346    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16347			     -shared -shared-libgcc -o conftest.so \
16348			     conftest.c -v 2>&1 >/dev/null \
16349			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16350    rm -f conftest.c conftest.so
16351    if test x${libgomp_libgcc_s_suffix+set} = xset; then
16352      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16353      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355
16356int
16357main ()
16358{
16359return 0;
16360  ;
16361  return 0;
16362}
16363_ACEOF
16364if ac_fn_c_try_link "$LINENO"; then :
16365  libgomp_shared_libgcc=yes
16366fi
16367rm -f core conftest.err conftest.$ac_objext \
16368    conftest$ac_exeext conftest.$ac_ext
16369      CFLAGS="$ac_save_CFLAGS"
16370    fi
16371  fi
16372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16373$as_echo "$libgomp_shared_libgcc" >&6; }
16374fi
16375
16376# For GNU ld, we need at least this version.  The format is described in
16377# LIBGOMP_CHECK_LINKER_FEATURES above.
16378libgomp_min_gnu_ld_version=21400
16379# XXXXXXXXXXX libgomp_gnu_ld_version=21390
16380
16381# Check to see if unspecified "yes" value can win, given results above.
16382# Change "yes" into either "no" or a style name.
16383if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16384  if test $with_gnu_ld = yes; then
16385    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16386      enable_symvers=gnu
16387    elif test $libgomp_ld_is_gold = yes ; then
16388      enable_symvers=gnu
16389    else
16390      # The right tools, the right setup, but too old.  Fallbacks?
16391      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16392$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16393      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16394$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16395      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16396$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16397      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16398$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16399      if test $libgomp_gnu_ld_version -ge 21200 ; then
16400        # Globbing fix is present, proper block support is not.
16401                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16402$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16403        enable_symvers=no
16404      else
16405        # 2.11 or older.
16406        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16407$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16408        enable_symvers=no
16409      fi
16410    fi
16411  elif test $enable_symvers = sun; then
16412    : All interesting versions of Sun ld support sun style symbol versioning.
16413  else
16414    # just fail for now
16415    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16416$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16417    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16418$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16420$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16421    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16422$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16423    enable_symvers=no
16424  fi
16425fi
16426
16427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16428$as_echo_n "checking whether the target supports .symver directive... " >&6; }
16429if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16430  $as_echo_n "(cached) " >&6
16431else
16432
16433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h.  */
16435void foo (void); __asm (".symver foo, bar@SYMVER");
16436int
16437main ()
16438{
16439
16440  ;
16441  return 0;
16442}
16443_ACEOF
16444if ac_fn_c_try_compile "$LINENO"; then :
16445  libgomp_cv_have_as_symver_directive=yes
16446else
16447  libgomp_cv_have_as_symver_directive=no
16448fi
16449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450fi
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16452$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16453if test $libgomp_cv_have_as_symver_directive = yes; then
16454
16455$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16456
16457fi
16458
16459 if test $enable_symvers != no; then
16460  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16461  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16462else
16463  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16464  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16465fi
16466
16467 if test $enable_symvers = gnu; then
16468  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16469  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16470else
16471  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16472  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16473fi
16474
16475 if test $enable_symvers = sun; then
16476  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16477  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16478else
16479  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16480  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16481fi
16482
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16484$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16485
16486if test $enable_symvers != no ; then
16487   case ${target_os} in
16488     # The Solaris 2 runtime linker doesn't support the GNU extension of
16489     # binding the same symbol to different versions
16490     solaris2*)
16491       ;;
16492     # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16493     *)
16494
16495$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16496
16497       ;;
16498    esac
16499fi
16500
16501
16502if test $enable_symvers = gnu; then
16503
16504$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16505
16506fi
16507
16508# Get target configury.
16509. ${srcdir}/configure.tgt
16510CFLAGS="$save_CFLAGS $XCFLAGS"
16511
16512# Check for __sync_val_compare_and_swap, but only after the target has
16513# had a chance to set XCFLAGS.
16514
16515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16516$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16517if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16518  $as_echo_n "(cached) " >&6
16519else
16520
16521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522/* end confdefs.h.  */
16523
16524int
16525main ()
16526{
16527int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16528  ;
16529  return 0;
16530}
16531_ACEOF
16532if ac_fn_c_try_link "$LINENO"; then :
16533  libgomp_cv_have_sync_builtins=yes
16534else
16535  libgomp_cv_have_sync_builtins=no
16536fi
16537rm -f core conftest.err conftest.$ac_objext \
16538    conftest$ac_exeext conftest.$ac_ext
16539fi
16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16541$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16542  if test $libgomp_cv_have_sync_builtins = yes; then
16543
16544$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16545
16546  fi
16547
16548XCFLAGS="$XCFLAGS$XPCFLAGS"
16549
16550
16551
16552
16553
16554# Cleanup and exit.
16555CFLAGS="$save_CFLAGS"
16556cat >confcache <<\_ACEOF
16557# This file is a shell script that caches the results of configure
16558# tests run on this system so they can be shared between configure
16559# scripts and configure runs, see configure's option --config-cache.
16560# It is not useful on other systems.  If it contains results you don't
16561# want to keep, you may remove or edit it.
16562#
16563# config.status only pays attention to the cache file if you give it
16564# the --recheck option to rerun configure.
16565#
16566# `ac_cv_env_foo' variables (set or unset) will be overridden when
16567# loading this file, other *unset* `ac_cv_foo' will be assigned the
16568# following values.
16569
16570_ACEOF
16571
16572# The following way of writing the cache mishandles newlines in values,
16573# but we know of no workaround that is simple, portable, and efficient.
16574# So, we kill variables containing newlines.
16575# Ultrix sh set writes to stderr and can't be redirected directly,
16576# and sets the high bit in the cache file unless we assign to the vars.
16577(
16578  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16579    eval ac_val=\$$ac_var
16580    case $ac_val in #(
16581    *${as_nl}*)
16582      case $ac_var in #(
16583      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16585      esac
16586      case $ac_var in #(
16587      _ | IFS | as_nl) ;; #(
16588      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16589      *) { eval $ac_var=; unset $ac_var;} ;;
16590      esac ;;
16591    esac
16592  done
16593
16594  (set) 2>&1 |
16595    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16596    *${as_nl}ac_space=\ *)
16597      # `set' does not quote correctly, so add quotes: double-quote
16598      # substitution turns \\\\ into \\, and sed turns \\ into \.
16599      sed -n \
16600	"s/'/'\\\\''/g;
16601	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16602      ;; #(
16603    *)
16604      # `set' quotes correctly as required by POSIX, so do not add quotes.
16605      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16606      ;;
16607    esac |
16608    sort
16609) |
16610  sed '
16611     /^ac_cv_env_/b end
16612     t clear
16613     :clear
16614     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16615     t end
16616     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16617     :end' >>confcache
16618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16619  if test -w "$cache_file"; then
16620    test "x$cache_file" != "x/dev/null" &&
16621      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16622$as_echo "$as_me: updating cache $cache_file" >&6;}
16623    cat confcache >$cache_file
16624  else
16625    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16627  fi
16628fi
16629rm -f confcache
16630
16631if test ${multilib} = yes; then
16632  multilib_arg="--enable-multilib"
16633else
16634  multilib_arg=
16635fi
16636
16637# Set up the set of libraries that we need to link against for libgomp.
16638# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16639# which will force linkage against -lpthread (or equivalent for the system).
16640# That's not 100% ideal, but about the best we can do easily.
16641if test $enable_shared = yes; then
16642  link_gomp="-lgomp %{static: $LIBS}"
16643else
16644  link_gomp="-lgomp $LIBS"
16645fi
16646
16647
16648 if test "$ac_cv_fc_compiler_gnu" = yes; then
16649  USE_FORTRAN_TRUE=
16650  USE_FORTRAN_FALSE='#'
16651else
16652  USE_FORTRAN_TRUE='#'
16653  USE_FORTRAN_FALSE=
16654fi
16655
16656
16657# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16658# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16659# the underscore here and update the PREREQ.  If it doesn't, then we'll
16660# need to copy this macro to our acinclude.m4.
16661save_CFLAGS="$CFLAGS"
16662for i in $config_path; do
16663  if test -f $srcdir/config/$i/omp-lock.h; then
16664    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16665    break
16666  fi
16667done
16668
16669if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16670
16671else
16672  as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16673fi
16674
16675
16676if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16677
16678fi
16679
16680
16681if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16682
16683fi
16684
16685
16686if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16687
16688fi
16689
16690
16691if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16692
16693else
16694  as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16695fi
16696
16697
16698if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16699
16700fi
16701
16702
16703if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16704
16705fi
16706
16707
16708if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16709
16710fi
16711
16712
16713
16714# If the lock fits in an integer, then arrange for Fortran to use that
16715# integer.  If it doesn't, then arrange for Fortran to use a pointer.
16716# Except that we don't have a way at present to multi-lib the installed
16717# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16718# actual target.
16719OMP_LOCK_KIND=$OMP_LOCK_SIZE
16720OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16721if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16722  OMP_LOCK_KIND=8
16723fi
16724if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16725  OMP_NEST_LOCK_KIND=8
16726fi
16727OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16728OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16729if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16730  OMP_LOCK_25_KIND=8
16731fi
16732if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16733  OMP_NEST_LOCK_25_KIND=8
16734fi
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748CFLAGS="$save_CFLAGS"
16749
16750ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16751
16752ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16753
16754ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16755
16756cat >confcache <<\_ACEOF
16757# This file is a shell script that caches the results of configure
16758# tests run on this system so they can be shared between configure
16759# scripts and configure runs, see configure's option --config-cache.
16760# It is not useful on other systems.  If it contains results you don't
16761# want to keep, you may remove or edit it.
16762#
16763# config.status only pays attention to the cache file if you give it
16764# the --recheck option to rerun configure.
16765#
16766# `ac_cv_env_foo' variables (set or unset) will be overridden when
16767# loading this file, other *unset* `ac_cv_foo' will be assigned the
16768# following values.
16769
16770_ACEOF
16771
16772# The following way of writing the cache mishandles newlines in values,
16773# but we know of no workaround that is simple, portable, and efficient.
16774# So, we kill variables containing newlines.
16775# Ultrix sh set writes to stderr and can't be redirected directly,
16776# and sets the high bit in the cache file unless we assign to the vars.
16777(
16778  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16779    eval ac_val=\$$ac_var
16780    case $ac_val in #(
16781    *${as_nl}*)
16782      case $ac_var in #(
16783      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16785      esac
16786      case $ac_var in #(
16787      _ | IFS | as_nl) ;; #(
16788      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16789      *) { eval $ac_var=; unset $ac_var;} ;;
16790      esac ;;
16791    esac
16792  done
16793
16794  (set) 2>&1 |
16795    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16796    *${as_nl}ac_space=\ *)
16797      # `set' does not quote correctly, so add quotes: double-quote
16798      # substitution turns \\\\ into \\, and sed turns \\ into \.
16799      sed -n \
16800	"s/'/'\\\\''/g;
16801	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16802      ;; #(
16803    *)
16804      # `set' quotes correctly as required by POSIX, so do not add quotes.
16805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16806      ;;
16807    esac |
16808    sort
16809) |
16810  sed '
16811     /^ac_cv_env_/b end
16812     t clear
16813     :clear
16814     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16815     t end
16816     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16817     :end' >>confcache
16818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16819  if test -w "$cache_file"; then
16820    test "x$cache_file" != "x/dev/null" &&
16821      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16822$as_echo "$as_me: updating cache $cache_file" >&6;}
16823    cat confcache >$cache_file
16824  else
16825    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16826$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16827  fi
16828fi
16829rm -f confcache
16830
16831test "x$prefix" = xNONE && prefix=$ac_default_prefix
16832# Let make expand exec_prefix.
16833test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16834
16835DEFS=-DHAVE_CONFIG_H
16836
16837ac_libobjs=
16838ac_ltlibobjs=
16839for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16840  # 1. Remove the extension, and $U if already installed.
16841  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16842  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16843  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16844  #    will be set to the directory where LIBOBJS objects are built.
16845  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16846  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16847done
16848LIBOBJS=$ac_libobjs
16849
16850LTLIBOBJS=$ac_ltlibobjs
16851
16852
16853if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16854  as_fn_error "conditional \"GENINSRC\" was never defined.
16855Usually this means the macro was only invoked conditionally." "$LINENO" 5
16856fi
16857 if test -n "$EXEEXT"; then
16858  am__EXEEXT_TRUE=
16859  am__EXEEXT_FALSE='#'
16860else
16861  am__EXEEXT_TRUE='#'
16862  am__EXEEXT_FALSE=
16863fi
16864
16865if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16866  as_fn_error "conditional \"AMDEP\" was never defined.
16867Usually this means the macro was only invoked conditionally." "$LINENO" 5
16868fi
16869if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16870  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16871Usually this means the macro was only invoked conditionally." "$LINENO" 5
16872fi
16873if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16874  as_fn_error "conditional \"BUILD_INFO\" was never defined.
16875Usually this means the macro was only invoked conditionally." "$LINENO" 5
16876fi
16877if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16878  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16879Usually this means the macro was only invoked conditionally." "$LINENO" 5
16880fi
16881if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16882  as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16883Usually this means the macro was only invoked conditionally." "$LINENO" 5
16884fi
16885if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16886  as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16887Usually this means the macro was only invoked conditionally." "$LINENO" 5
16888fi
16889if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16890  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16891Usually this means the macro was only invoked conditionally." "$LINENO" 5
16892fi
16893if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16894  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16895Usually this means the macro was only invoked conditionally." "$LINENO" 5
16896fi
16897if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16898  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16899Usually this means the macro was only invoked conditionally." "$LINENO" 5
16900fi
16901if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16902  as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16903Usually this means the macro was only invoked conditionally." "$LINENO" 5
16904fi
16905
16906: ${CONFIG_STATUS=./config.status}
16907ac_write_fail=0
16908ac_clean_files_save=$ac_clean_files
16909ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16911$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16912as_write_fail=0
16913cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16914#! $SHELL
16915# Generated by $as_me.
16916# Run this file to recreate the current configuration.
16917# Compiler output produced by configure, useful for debugging
16918# configure, is in config.log if it exists.
16919
16920debug=false
16921ac_cs_recheck=false
16922ac_cs_silent=false
16923
16924SHELL=\${CONFIG_SHELL-$SHELL}
16925export SHELL
16926_ASEOF
16927cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16928## -------------------- ##
16929## M4sh Initialization. ##
16930## -------------------- ##
16931
16932# Be more Bourne compatible
16933DUALCASE=1; export DUALCASE # for MKS sh
16934if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16935  emulate sh
16936  NULLCMD=:
16937  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16938  # is contrary to our usage.  Disable this feature.
16939  alias -g '${1+"$@"}'='"$@"'
16940  setopt NO_GLOB_SUBST
16941else
16942  case `(set -o) 2>/dev/null` in #(
16943  *posix*) :
16944    set -o posix ;; #(
16945  *) :
16946     ;;
16947esac
16948fi
16949
16950
16951as_nl='
16952'
16953export as_nl
16954# Printing a long string crashes Solaris 7 /usr/bin/printf.
16955as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16956as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16957as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16958# Prefer a ksh shell builtin over an external printf program on Solaris,
16959# but without wasting forks for bash or zsh.
16960if test -z "$BASH_VERSION$ZSH_VERSION" \
16961    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16962  as_echo='print -r --'
16963  as_echo_n='print -rn --'
16964elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16965  as_echo='printf %s\n'
16966  as_echo_n='printf %s'
16967else
16968  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16969    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16970    as_echo_n='/usr/ucb/echo -n'
16971  else
16972    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16973    as_echo_n_body='eval
16974      arg=$1;
16975      case $arg in #(
16976      *"$as_nl"*)
16977	expr "X$arg" : "X\\(.*\\)$as_nl";
16978	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16979      esac;
16980      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16981    '
16982    export as_echo_n_body
16983    as_echo_n='sh -c $as_echo_n_body as_echo'
16984  fi
16985  export as_echo_body
16986  as_echo='sh -c $as_echo_body as_echo'
16987fi
16988
16989# The user is always right.
16990if test "${PATH_SEPARATOR+set}" != set; then
16991  PATH_SEPARATOR=:
16992  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16993    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16994      PATH_SEPARATOR=';'
16995  }
16996fi
16997
16998
16999# IFS
17000# We need space, tab and new line, in precisely that order.  Quoting is
17001# there to prevent editors from complaining about space-tab.
17002# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17003# splitting by setting IFS to empty value.)
17004IFS=" ""	$as_nl"
17005
17006# Find who we are.  Look in the path if we contain no directory separator.
17007case $0 in #((
17008  *[\\/]* ) as_myself=$0 ;;
17009  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010for as_dir in $PATH
17011do
17012  IFS=$as_save_IFS
17013  test -z "$as_dir" && as_dir=.
17014    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17015  done
17016IFS=$as_save_IFS
17017
17018     ;;
17019esac
17020# We did not find ourselves, most probably we were run as `sh COMMAND'
17021# in which case we are not to be found in the path.
17022if test "x$as_myself" = x; then
17023  as_myself=$0
17024fi
17025if test ! -f "$as_myself"; then
17026  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17027  exit 1
17028fi
17029
17030# Unset variables that we do not need and which cause bugs (e.g. in
17031# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17032# suppresses any "Segmentation fault" message there.  '((' could
17033# trigger a bug in pdksh 5.2.14.
17034for as_var in BASH_ENV ENV MAIL MAILPATH
17035do eval test x\${$as_var+set} = xset \
17036  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17037done
17038PS1='$ '
17039PS2='> '
17040PS4='+ '
17041
17042# NLS nuisances.
17043LC_ALL=C
17044export LC_ALL
17045LANGUAGE=C
17046export LANGUAGE
17047
17048# CDPATH.
17049(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17050
17051
17052# as_fn_error ERROR [LINENO LOG_FD]
17053# ---------------------------------
17054# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17055# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17056# script with status $?, using 1 if that was 0.
17057as_fn_error ()
17058{
17059  as_status=$?; test $as_status -eq 0 && as_status=1
17060  if test "$3"; then
17061    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17062    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17063  fi
17064  $as_echo "$as_me: error: $1" >&2
17065  as_fn_exit $as_status
17066} # as_fn_error
17067
17068
17069# as_fn_set_status STATUS
17070# -----------------------
17071# Set $? to STATUS, without forking.
17072as_fn_set_status ()
17073{
17074  return $1
17075} # as_fn_set_status
17076
17077# as_fn_exit STATUS
17078# -----------------
17079# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17080as_fn_exit ()
17081{
17082  set +e
17083  as_fn_set_status $1
17084  exit $1
17085} # as_fn_exit
17086
17087# as_fn_unset VAR
17088# ---------------
17089# Portably unset VAR.
17090as_fn_unset ()
17091{
17092  { eval $1=; unset $1;}
17093}
17094as_unset=as_fn_unset
17095# as_fn_append VAR VALUE
17096# ----------------------
17097# Append the text in VALUE to the end of the definition contained in VAR. Take
17098# advantage of any shell optimizations that allow amortized linear growth over
17099# repeated appends, instead of the typical quadratic growth present in naive
17100# implementations.
17101if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17102  eval 'as_fn_append ()
17103  {
17104    eval $1+=\$2
17105  }'
17106else
17107  as_fn_append ()
17108  {
17109    eval $1=\$$1\$2
17110  }
17111fi # as_fn_append
17112
17113# as_fn_arith ARG...
17114# ------------------
17115# Perform arithmetic evaluation on the ARGs, and store the result in the
17116# global $as_val. Take advantage of shells that can avoid forks. The arguments
17117# must be portable across $(()) and expr.
17118if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17119  eval 'as_fn_arith ()
17120  {
17121    as_val=$(( $* ))
17122  }'
17123else
17124  as_fn_arith ()
17125  {
17126    as_val=`expr "$@" || test $? -eq 1`
17127  }
17128fi # as_fn_arith
17129
17130
17131if expr a : '\(a\)' >/dev/null 2>&1 &&
17132   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17133  as_expr=expr
17134else
17135  as_expr=false
17136fi
17137
17138if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17139  as_basename=basename
17140else
17141  as_basename=false
17142fi
17143
17144if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17145  as_dirname=dirname
17146else
17147  as_dirname=false
17148fi
17149
17150as_me=`$as_basename -- "$0" ||
17151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17152	 X"$0" : 'X\(//\)$' \| \
17153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17154$as_echo X/"$0" |
17155    sed '/^.*\/\([^/][^/]*\)\/*$/{
17156	    s//\1/
17157	    q
17158	  }
17159	  /^X\/\(\/\/\)$/{
17160	    s//\1/
17161	    q
17162	  }
17163	  /^X\/\(\/\).*/{
17164	    s//\1/
17165	    q
17166	  }
17167	  s/.*/./; q'`
17168
17169# Avoid depending upon Character Ranges.
17170as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17171as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17172as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17173as_cr_digits='0123456789'
17174as_cr_alnum=$as_cr_Letters$as_cr_digits
17175
17176ECHO_C= ECHO_N= ECHO_T=
17177case `echo -n x` in #(((((
17178-n*)
17179  case `echo 'xy\c'` in
17180  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17181  xy)  ECHO_C='\c';;
17182  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17183       ECHO_T='	';;
17184  esac;;
17185*)
17186  ECHO_N='-n';;
17187esac
17188
17189rm -f conf$$ conf$$.exe conf$$.file
17190if test -d conf$$.dir; then
17191  rm -f conf$$.dir/conf$$.file
17192else
17193  rm -f conf$$.dir
17194  mkdir conf$$.dir 2>/dev/null
17195fi
17196if (echo >conf$$.file) 2>/dev/null; then
17197  if ln -s conf$$.file conf$$ 2>/dev/null; then
17198    as_ln_s='ln -s'
17199    # ... but there are two gotchas:
17200    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17201    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17202    # In both cases, we have to default to `cp -p'.
17203    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17204      as_ln_s='cp -p'
17205  elif ln conf$$.file conf$$ 2>/dev/null; then
17206    as_ln_s=ln
17207  else
17208    as_ln_s='cp -p'
17209  fi
17210else
17211  as_ln_s='cp -p'
17212fi
17213rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17214rmdir conf$$.dir 2>/dev/null
17215
17216
17217# as_fn_mkdir_p
17218# -------------
17219# Create "$as_dir" as a directory, including parents if necessary.
17220as_fn_mkdir_p ()
17221{
17222
17223  case $as_dir in #(
17224  -*) as_dir=./$as_dir;;
17225  esac
17226  test -d "$as_dir" || eval $as_mkdir_p || {
17227    as_dirs=
17228    while :; do
17229      case $as_dir in #(
17230      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17231      *) as_qdir=$as_dir;;
17232      esac
17233      as_dirs="'$as_qdir' $as_dirs"
17234      as_dir=`$as_dirname -- "$as_dir" ||
17235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236	 X"$as_dir" : 'X\(//\)[^/]' \| \
17237	 X"$as_dir" : 'X\(//\)$' \| \
17238	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17239$as_echo X"$as_dir" |
17240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17241	    s//\1/
17242	    q
17243	  }
17244	  /^X\(\/\/\)[^/].*/{
17245	    s//\1/
17246	    q
17247	  }
17248	  /^X\(\/\/\)$/{
17249	    s//\1/
17250	    q
17251	  }
17252	  /^X\(\/\).*/{
17253	    s//\1/
17254	    q
17255	  }
17256	  s/.*/./; q'`
17257      test -d "$as_dir" && break
17258    done
17259    test -z "$as_dirs" || eval "mkdir $as_dirs"
17260  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17261
17262
17263} # as_fn_mkdir_p
17264if mkdir -p . 2>/dev/null; then
17265  as_mkdir_p='mkdir -p "$as_dir"'
17266else
17267  test -d ./-p && rmdir ./-p
17268  as_mkdir_p=false
17269fi
17270
17271if test -x / >/dev/null 2>&1; then
17272  as_test_x='test -x'
17273else
17274  if ls -dL / >/dev/null 2>&1; then
17275    as_ls_L_option=L
17276  else
17277    as_ls_L_option=
17278  fi
17279  as_test_x='
17280    eval sh -c '\''
17281      if test -d "$1"; then
17282	test -d "$1/.";
17283      else
17284	case $1 in #(
17285	-*)set "./$1";;
17286	esac;
17287	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17288	???[sx]*):;;*)false;;esac;fi
17289    '\'' sh
17290  '
17291fi
17292as_executable_p=$as_test_x
17293
17294# Sed expression to map a string onto a valid CPP name.
17295as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17296
17297# Sed expression to map a string onto a valid variable name.
17298as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17299
17300
17301exec 6>&1
17302## ----------------------------------- ##
17303## Main body of $CONFIG_STATUS script. ##
17304## ----------------------------------- ##
17305_ASEOF
17306test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17307
17308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309# Save the log message, to keep $0 and so on meaningful, and to
17310# report actual input values of CONFIG_FILES etc. instead of their
17311# values after options handling.
17312ac_log="
17313This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17314generated by GNU Autoconf 2.64.  Invocation command line was
17315
17316  CONFIG_FILES    = $CONFIG_FILES
17317  CONFIG_HEADERS  = $CONFIG_HEADERS
17318  CONFIG_LINKS    = $CONFIG_LINKS
17319  CONFIG_COMMANDS = $CONFIG_COMMANDS
17320  $ $0 $@
17321
17322on `(hostname || uname -n) 2>/dev/null | sed 1q`
17323"
17324
17325_ACEOF
17326
17327case $ac_config_files in *"
17328"*) set x $ac_config_files; shift; ac_config_files=$*;;
17329esac
17330
17331case $ac_config_headers in *"
17332"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17333esac
17334
17335
17336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17337# Files that config.status was made for.
17338config_files="$ac_config_files"
17339config_headers="$ac_config_headers"
17340config_commands="$ac_config_commands"
17341
17342_ACEOF
17343
17344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345ac_cs_usage="\
17346\`$as_me' instantiates files and other configuration actions
17347from templates according to the current configuration.  Unless the files
17348and actions are specified as TAGs, all are instantiated by default.
17349
17350Usage: $0 [OPTION]... [TAG]...
17351
17352  -h, --help       print this help, then exit
17353  -V, --version    print version number and configuration settings, then exit
17354  -q, --quiet, --silent
17355                   do not print progress messages
17356  -d, --debug      don't remove temporary files
17357      --recheck    update $as_me by reconfiguring in the same conditions
17358      --file=FILE[:TEMPLATE]
17359                   instantiate the configuration file FILE
17360      --header=FILE[:TEMPLATE]
17361                   instantiate the configuration header FILE
17362
17363Configuration files:
17364$config_files
17365
17366Configuration headers:
17367$config_headers
17368
17369Configuration commands:
17370$config_commands
17371
17372Report bugs to the package provider.
17373GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17374General help using GNU software: <http://www.gnu.org/gethelp/>."
17375
17376_ACEOF
17377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378ac_cs_version="\\
17379GNU Offloading and Multi Processing Runtime Library config.status 1.0
17380configured by $0, generated by GNU Autoconf 2.64,
17381  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17382
17383Copyright (C) 2009 Free Software Foundation, Inc.
17384This config.status script is free software; the Free Software Foundation
17385gives unlimited permission to copy, distribute and modify it."
17386
17387ac_pwd='$ac_pwd'
17388srcdir='$srcdir'
17389INSTALL='$INSTALL'
17390MKDIR_P='$MKDIR_P'
17391AWK='$AWK'
17392test -n "\$AWK" || AWK=awk
17393_ACEOF
17394
17395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396# The default lists apply if the user does not specify any file.
17397ac_need_defaults=:
17398while test $# != 0
17399do
17400  case $1 in
17401  --*=*)
17402    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17403    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17404    ac_shift=:
17405    ;;
17406  *)
17407    ac_option=$1
17408    ac_optarg=$2
17409    ac_shift=shift
17410    ;;
17411  esac
17412
17413  case $ac_option in
17414  # Handling of the options.
17415  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17416    ac_cs_recheck=: ;;
17417  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17418    $as_echo "$ac_cs_version"; exit ;;
17419  --debug | --debu | --deb | --de | --d | -d )
17420    debug=: ;;
17421  --file | --fil | --fi | --f )
17422    $ac_shift
17423    case $ac_optarg in
17424    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17425    esac
17426    as_fn_append CONFIG_FILES " '$ac_optarg'"
17427    ac_need_defaults=false;;
17428  --header | --heade | --head | --hea )
17429    $ac_shift
17430    case $ac_optarg in
17431    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17432    esac
17433    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17434    ac_need_defaults=false;;
17435  --he | --h)
17436    # Conflict between --help and --header
17437    as_fn_error "ambiguous option: \`$1'
17438Try \`$0 --help' for more information.";;
17439  --help | --hel | -h )
17440    $as_echo "$ac_cs_usage"; exit ;;
17441  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17442  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17443    ac_cs_silent=: ;;
17444
17445  # This is an error.
17446  -*) as_fn_error "unrecognized option: \`$1'
17447Try \`$0 --help' for more information." ;;
17448
17449  *) as_fn_append ac_config_targets " $1"
17450     ac_need_defaults=false ;;
17451
17452  esac
17453  shift
17454done
17455
17456ac_configure_extra_args=
17457
17458if $ac_cs_silent; then
17459  exec 6>/dev/null
17460  ac_configure_extra_args="$ac_configure_extra_args --silent"
17461fi
17462
17463_ACEOF
17464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465if \$ac_cs_recheck; then
17466  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17467  shift
17468  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17469  CONFIG_SHELL='$SHELL'
17470  export CONFIG_SHELL
17471  exec "\$@"
17472fi
17473
17474_ACEOF
17475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17476exec 5>>config.log
17477{
17478  echo
17479  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17480## Running $as_me. ##
17481_ASBOX
17482  $as_echo "$ac_log"
17483} >&5
17484
17485_ACEOF
17486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17487#
17488# INIT-COMMANDS
17489#
17490
17491srcdir="$srcdir"
17492host="$host"
17493target="$target"
17494with_multisubdir="$with_multisubdir"
17495with_multisrctop="$with_multisrctop"
17496with_target_subdir="$with_target_subdir"
17497ac_configure_args="${multilib_arg} ${ac_configure_args}"
17498multi_basedir="$multi_basedir"
17499CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17500CC="$CC"
17501CXX="$CXX"
17502GFORTRAN="$GFORTRAN"
17503GCJ="$GCJ"
17504AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17505
17506
17507# The HP-UX ksh and POSIX shell print the target directory to stdout
17508# if CDPATH is set.
17509(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17510
17511sed_quote_subst='$sed_quote_subst'
17512double_quote_subst='$double_quote_subst'
17513delay_variable_subst='$delay_variable_subst'
17514macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17515macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17516enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17517enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17518pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17519enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17520SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17521ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17522host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17523host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17524host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17525build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17526build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17527build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17528SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17529Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17530GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17531EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17532FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17533LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17534NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17535LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17536max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17537ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17538exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17539lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17540lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17541lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17542reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17543reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17544OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17545deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17546file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17547AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17548AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17549STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17550RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17551old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17552old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17553old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17554lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17555CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17556CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17557compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17558GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17559lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17560lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17561lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17562lt_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"`'
17563objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17564MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17565lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17566lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17567lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17568lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17569lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17570need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17571DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17572NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17573LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17574OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17575OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17576libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17577shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17578extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17579archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17580enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17581export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17582whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17583compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17584old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17585old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17586archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17587archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17588module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17589module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17590with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17591allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17592no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17593hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17594hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17595hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17596hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17597hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17598hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17599hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17600hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17601inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17602link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17603fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17604always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17605export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17606exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17607include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17608prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17609file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17610variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17611need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17612need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17613version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17614runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17615shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17616shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17617libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17618library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17619soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17620install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17621postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17622postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17623finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17624finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17625hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17626sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17627sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17628hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17629enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17630enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17631enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17632old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17633striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17634compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17635predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17636postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17637predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17638postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17639compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17640LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17641reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17642reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17643old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17644compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17645GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17646lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17647lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17648lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17649lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17650lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17651archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17652enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17653export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17654whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17655compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17656old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17657old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17658archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17659archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17660module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17661module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17662with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17663allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17664no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17665hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17666hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17667hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17668hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17669hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17670hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17671hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17672hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17673inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17674link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17675fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17676always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17677export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17678exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17679include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17680prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17681file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17682hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17683compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17684predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17685postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17686predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17687postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17688compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17689
17690LTCC='$LTCC'
17691LTCFLAGS='$LTCFLAGS'
17692compiler='$compiler_DEFAULT'
17693
17694# A function that is used when there is no print builtin or printf.
17695func_fallback_echo ()
17696{
17697  eval 'cat <<_LTECHO_EOF
17698\$1
17699_LTECHO_EOF'
17700}
17701
17702# Quote evaled strings.
17703for var in SHELL \
17704ECHO \
17705SED \
17706GREP \
17707EGREP \
17708FGREP \
17709LD \
17710NM \
17711LN_S \
17712lt_SP2NL \
17713lt_NL2SP \
17714reload_flag \
17715OBJDUMP \
17716deplibs_check_method \
17717file_magic_cmd \
17718AR \
17719AR_FLAGS \
17720STRIP \
17721RANLIB \
17722CC \
17723CFLAGS \
17724compiler \
17725lt_cv_sys_global_symbol_pipe \
17726lt_cv_sys_global_symbol_to_cdecl \
17727lt_cv_sys_global_symbol_to_c_name_address \
17728lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17729lt_prog_compiler_no_builtin_flag \
17730lt_prog_compiler_wl \
17731lt_prog_compiler_pic \
17732lt_prog_compiler_static \
17733lt_cv_prog_compiler_c_o \
17734need_locks \
17735DSYMUTIL \
17736NMEDIT \
17737LIPO \
17738OTOOL \
17739OTOOL64 \
17740shrext_cmds \
17741export_dynamic_flag_spec \
17742whole_archive_flag_spec \
17743compiler_needs_object \
17744with_gnu_ld \
17745allow_undefined_flag \
17746no_undefined_flag \
17747hardcode_libdir_flag_spec \
17748hardcode_libdir_flag_spec_ld \
17749hardcode_libdir_separator \
17750fix_srcfile_path \
17751exclude_expsyms \
17752include_expsyms \
17753file_list_spec \
17754variables_saved_for_relink \
17755libname_spec \
17756library_names_spec \
17757soname_spec \
17758install_override_mode \
17759finish_eval \
17760old_striplib \
17761striplib \
17762compiler_lib_search_dirs \
17763predep_objects \
17764postdep_objects \
17765predeps \
17766postdeps \
17767compiler_lib_search_path \
17768LD_FC \
17769reload_flag_FC \
17770compiler_FC \
17771lt_prog_compiler_no_builtin_flag_FC \
17772lt_prog_compiler_wl_FC \
17773lt_prog_compiler_pic_FC \
17774lt_prog_compiler_static_FC \
17775lt_cv_prog_compiler_c_o_FC \
17776export_dynamic_flag_spec_FC \
17777whole_archive_flag_spec_FC \
17778compiler_needs_object_FC \
17779with_gnu_ld_FC \
17780allow_undefined_flag_FC \
17781no_undefined_flag_FC \
17782hardcode_libdir_flag_spec_FC \
17783hardcode_libdir_flag_spec_ld_FC \
17784hardcode_libdir_separator_FC \
17785fix_srcfile_path_FC \
17786exclude_expsyms_FC \
17787include_expsyms_FC \
17788file_list_spec_FC \
17789compiler_lib_search_dirs_FC \
17790predep_objects_FC \
17791postdep_objects_FC \
17792predeps_FC \
17793postdeps_FC \
17794compiler_lib_search_path_FC; do
17795    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17796    *[\\\\\\\`\\"\\\$]*)
17797      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17798      ;;
17799    *)
17800      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17801      ;;
17802    esac
17803done
17804
17805# Double-quote double-evaled strings.
17806for var in reload_cmds \
17807old_postinstall_cmds \
17808old_postuninstall_cmds \
17809old_archive_cmds \
17810extract_expsyms_cmds \
17811old_archive_from_new_cmds \
17812old_archive_from_expsyms_cmds \
17813archive_cmds \
17814archive_expsym_cmds \
17815module_cmds \
17816module_expsym_cmds \
17817export_symbols_cmds \
17818prelink_cmds \
17819postinstall_cmds \
17820postuninstall_cmds \
17821finish_cmds \
17822sys_lib_search_path_spec \
17823sys_lib_dlsearch_path_spec \
17824reload_cmds_FC \
17825old_archive_cmds_FC \
17826old_archive_from_new_cmds_FC \
17827old_archive_from_expsyms_cmds_FC \
17828archive_cmds_FC \
17829archive_expsym_cmds_FC \
17830module_cmds_FC \
17831module_expsym_cmds_FC \
17832export_symbols_cmds_FC \
17833prelink_cmds_FC; do
17834    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835    *[\\\\\\\`\\"\\\$]*)
17836      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17837      ;;
17838    *)
17839      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17840      ;;
17841    esac
17842done
17843
17844ac_aux_dir='$ac_aux_dir'
17845xsi_shell='$xsi_shell'
17846lt_shell_append='$lt_shell_append'
17847
17848# See if we are running on zsh, and set the options which allow our
17849# commands through without removal of \ escapes INIT.
17850if test -n "\${ZSH_VERSION+set}" ; then
17851   setopt NO_GLOB_SUBST
17852fi
17853
17854
17855    PACKAGE='$PACKAGE'
17856    VERSION='$VERSION'
17857    TIMESTAMP='$TIMESTAMP'
17858    RM='$RM'
17859    ofile='$ofile'
17860
17861
17862
17863
17864
17865
17866GCC="$GCC"
17867CC="$CC"
17868acx_cv_header_stdint="$acx_cv_header_stdint"
17869acx_cv_type_int8_t="$acx_cv_type_int8_t"
17870acx_cv_type_int16_t="$acx_cv_type_int16_t"
17871acx_cv_type_int32_t="$acx_cv_type_int32_t"
17872acx_cv_type_int64_t="$acx_cv_type_int64_t"
17873acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17874ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17875ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17876ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17877ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17878ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17879ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17880ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17881ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17882
17883
17884_ACEOF
17885
17886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887
17888# Handling of arguments.
17889for ac_config_target in $ac_config_targets
17890do
17891  case $ac_config_target in
17892    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17893    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17894    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17895    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17896    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17897    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17898    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17899    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17900    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17901    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17902    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17903    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17904    "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17905
17906  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17907  esac
17908done
17909
17910
17911# If the user did not use the arguments to specify the items to instantiate,
17912# then the envvar interface is used.  Set only those that are not.
17913# We use the long form for the default assignment because of an extremely
17914# bizarre bug on SunOS 4.1.3.
17915if $ac_need_defaults; then
17916  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17917  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17918  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17919fi
17920
17921# Have a temporary directory for convenience.  Make it in the build tree
17922# simply because there is no reason against having it here, and in addition,
17923# creating and moving files from /tmp can sometimes cause problems.
17924# Hook for its removal unless debugging.
17925# Note that there is a small window in which the directory will not be cleaned:
17926# after its creation but before its name has been assigned to `$tmp'.
17927$debug ||
17928{
17929  tmp=
17930  trap 'exit_status=$?
17931  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17932' 0
17933  trap 'as_fn_exit 1' 1 2 13 15
17934}
17935# Create a (secure) tmp directory for tmp files.
17936
17937{
17938  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17939  test -n "$tmp" && test -d "$tmp"
17940}  ||
17941{
17942  tmp=./conf$$-$RANDOM
17943  (umask 077 && mkdir "$tmp")
17944} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17945
17946# Set up the scripts for CONFIG_FILES section.
17947# No need to generate them if there are no CONFIG_FILES.
17948# This happens for instance with `./config.status config.h'.
17949if test -n "$CONFIG_FILES"; then
17950
17951
17952ac_cr=`echo X | tr X '\015'`
17953# On cygwin, bash can eat \r inside `` if the user requested igncr.
17954# But we know of no other shell where ac_cr would be empty at this
17955# point, so we can use a bashism as a fallback.
17956if test "x$ac_cr" = x; then
17957  eval ac_cr=\$\'\\r\'
17958fi
17959ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17960if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17961  ac_cs_awk_cr='\r'
17962else
17963  ac_cs_awk_cr=$ac_cr
17964fi
17965
17966echo 'BEGIN {' >"$tmp/subs1.awk" &&
17967_ACEOF
17968
17969
17970{
17971  echo "cat >conf$$subs.awk <<_ACEOF" &&
17972  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17973  echo "_ACEOF"
17974} >conf$$subs.sh ||
17975  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17976ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17977ac_delim='%!_!# '
17978for ac_last_try in false false false false false :; do
17979  . ./conf$$subs.sh ||
17980    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17981
17982  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17983  if test $ac_delim_n = $ac_delim_num; then
17984    break
17985  elif $ac_last_try; then
17986    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17987  else
17988    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17989  fi
17990done
17991rm -f conf$$subs.sh
17992
17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17995_ACEOF
17996sed -n '
17997h
17998s/^/S["/; s/!.*/"]=/
17999p
18000g
18001s/^[^!]*!//
18002:repl
18003t repl
18004s/'"$ac_delim"'$//
18005t delim
18006:nl
18007h
18008s/\(.\{148\}\).*/\1/
18009t more1
18010s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18011p
18012n
18013b repl
18014:more1
18015s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18016p
18017g
18018s/.\{148\}//
18019t nl
18020:delim
18021h
18022s/\(.\{148\}\).*/\1/
18023t more2
18024s/["\\]/\\&/g; s/^/"/; s/$/"/
18025p
18026b
18027:more2
18028s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18029p
18030g
18031s/.\{148\}//
18032t delim
18033' <conf$$subs.awk | sed '
18034/^[^""]/{
18035  N
18036  s/\n//
18037}
18038' >>$CONFIG_STATUS || ac_write_fail=1
18039rm -f conf$$subs.awk
18040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18041_ACAWK
18042cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18043  for (key in S) S_is_set[key] = 1
18044  FS = ""
18045
18046}
18047{
18048  line = $ 0
18049  nfields = split(line, field, "@")
18050  substed = 0
18051  len = length(field[1])
18052  for (i = 2; i < nfields; i++) {
18053    key = field[i]
18054    keylen = length(key)
18055    if (S_is_set[key]) {
18056      value = S[key]
18057      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18058      len += length(value) + length(field[++i])
18059      substed = 1
18060    } else
18061      len += 1 + keylen
18062  }
18063
18064  print line
18065}
18066
18067_ACAWK
18068_ACEOF
18069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18070if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18071  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18072else
18073  cat
18074fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18075  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18076_ACEOF
18077
18078# VPATH may cause trouble with some makes, so we remove $(srcdir),
18079# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18080# trailing colons and then remove the whole line if VPATH becomes empty
18081# (actually we leave an empty line to preserve line numbers).
18082if test "x$srcdir" = x.; then
18083  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18084s/:*\$(srcdir):*/:/
18085s/:*\${srcdir}:*/:/
18086s/:*@srcdir@:*/:/
18087s/^\([^=]*=[	 ]*\):*/\1/
18088s/:*$//
18089s/^[^=]*=[	 ]*$//
18090}'
18091fi
18092
18093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18094fi # test -n "$CONFIG_FILES"
18095
18096# Set up the scripts for CONFIG_HEADERS section.
18097# No need to generate them if there are no CONFIG_HEADERS.
18098# This happens for instance with `./config.status Makefile'.
18099if test -n "$CONFIG_HEADERS"; then
18100cat >"$tmp/defines.awk" <<\_ACAWK ||
18101BEGIN {
18102_ACEOF
18103
18104# Transform confdefs.h into an awk script `defines.awk', embedded as
18105# here-document in config.status, that substitutes the proper values into
18106# config.h.in to produce config.h.
18107
18108# Create a delimiter string that does not exist in confdefs.h, to ease
18109# handling of long lines.
18110ac_delim='%!_!# '
18111for ac_last_try in false false :; do
18112  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18113  if test -z "$ac_t"; then
18114    break
18115  elif $ac_last_try; then
18116    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18117  else
18118    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18119  fi
18120done
18121
18122# For the awk script, D is an array of macro values keyed by name,
18123# likewise P contains macro parameters if any.  Preserve backslash
18124# newline sequences.
18125
18126ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18127sed -n '
18128s/.\{148\}/&'"$ac_delim"'/g
18129t rset
18130:rset
18131s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18132t def
18133d
18134:def
18135s/\\$//
18136t bsnl
18137s/["\\]/\\&/g
18138s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18139D["\1"]=" \3"/p
18140s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18141d
18142:bsnl
18143s/["\\]/\\&/g
18144s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18145D["\1"]=" \3\\\\\\n"\\/p
18146t cont
18147s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18148t cont
18149d
18150:cont
18151n
18152s/.\{148\}/&'"$ac_delim"'/g
18153t clear
18154:clear
18155s/\\$//
18156t bsnlc
18157s/["\\]/\\&/g; s/^/"/; s/$/"/p
18158d
18159:bsnlc
18160s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18161b cont
18162' <confdefs.h | sed '
18163s/'"$ac_delim"'/"\\\
18164"/g' >>$CONFIG_STATUS || ac_write_fail=1
18165
18166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18167  for (key in D) D_is_set[key] = 1
18168  FS = ""
18169}
18170/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18171  line = \$ 0
18172  split(line, arg, " ")
18173  if (arg[1] == "#") {
18174    defundef = arg[2]
18175    mac1 = arg[3]
18176  } else {
18177    defundef = substr(arg[1], 2)
18178    mac1 = arg[2]
18179  }
18180  split(mac1, mac2, "(") #)
18181  macro = mac2[1]
18182  prefix = substr(line, 1, index(line, defundef) - 1)
18183  if (D_is_set[macro]) {
18184    # Preserve the white space surrounding the "#".
18185    print prefix "define", macro P[macro] D[macro]
18186    next
18187  } else {
18188    # Replace #undef with comments.  This is necessary, for example,
18189    # in the case of _POSIX_SOURCE, which is predefined and required
18190    # on some systems where configure will not decide to define it.
18191    if (defundef == "undef") {
18192      print "/*", prefix defundef, macro, "*/"
18193      next
18194    }
18195  }
18196}
18197{ print }
18198_ACAWK
18199_ACEOF
18200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18202fi # test -n "$CONFIG_HEADERS"
18203
18204
18205eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18206shift
18207for ac_tag
18208do
18209  case $ac_tag in
18210  :[FHLC]) ac_mode=$ac_tag; continue;;
18211  esac
18212  case $ac_mode$ac_tag in
18213  :[FHL]*:*);;
18214  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18215  :[FH]-) ac_tag=-:-;;
18216  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18217  esac
18218  ac_save_IFS=$IFS
18219  IFS=:
18220  set x $ac_tag
18221  IFS=$ac_save_IFS
18222  shift
18223  ac_file=$1
18224  shift
18225
18226  case $ac_mode in
18227  :L) ac_source=$1;;
18228  :[FH])
18229    ac_file_inputs=
18230    for ac_f
18231    do
18232      case $ac_f in
18233      -) ac_f="$tmp/stdin";;
18234      *) # Look for the file first in the build tree, then in the source tree
18235	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18236	 # because $ac_f cannot contain `:'.
18237	 test -f "$ac_f" ||
18238	   case $ac_f in
18239	   [\\/$]*) false;;
18240	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18241	   esac ||
18242	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18243      esac
18244      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18245      as_fn_append ac_file_inputs " '$ac_f'"
18246    done
18247
18248    # Let's still pretend it is `configure' which instantiates (i.e., don't
18249    # use $as_me), people would be surprised to read:
18250    #    /* config.h.  Generated by config.status.  */
18251    configure_input='Generated from '`
18252	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18253	`' by configure.'
18254    if test x"$ac_file" != x-; then
18255      configure_input="$ac_file.  $configure_input"
18256      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18257$as_echo "$as_me: creating $ac_file" >&6;}
18258    fi
18259    # Neutralize special characters interpreted by sed in replacement strings.
18260    case $configure_input in #(
18261    *\&* | *\|* | *\\* )
18262       ac_sed_conf_input=`$as_echo "$configure_input" |
18263       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18264    *) ac_sed_conf_input=$configure_input;;
18265    esac
18266
18267    case $ac_tag in
18268    *:-:* | *:-) cat >"$tmp/stdin" \
18269      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18270    esac
18271    ;;
18272  esac
18273
18274  ac_dir=`$as_dirname -- "$ac_file" ||
18275$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18276	 X"$ac_file" : 'X\(//\)[^/]' \| \
18277	 X"$ac_file" : 'X\(//\)$' \| \
18278	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18279$as_echo X"$ac_file" |
18280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18281	    s//\1/
18282	    q
18283	  }
18284	  /^X\(\/\/\)[^/].*/{
18285	    s//\1/
18286	    q
18287	  }
18288	  /^X\(\/\/\)$/{
18289	    s//\1/
18290	    q
18291	  }
18292	  /^X\(\/\).*/{
18293	    s//\1/
18294	    q
18295	  }
18296	  s/.*/./; q'`
18297  as_dir="$ac_dir"; as_fn_mkdir_p
18298  ac_builddir=.
18299
18300case "$ac_dir" in
18301.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18302*)
18303  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18304  # A ".." for each directory in $ac_dir_suffix.
18305  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18306  case $ac_top_builddir_sub in
18307  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18308  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18309  esac ;;
18310esac
18311ac_abs_top_builddir=$ac_pwd
18312ac_abs_builddir=$ac_pwd$ac_dir_suffix
18313# for backward compatibility:
18314ac_top_builddir=$ac_top_build_prefix
18315
18316case $srcdir in
18317  .)  # We are building in place.
18318    ac_srcdir=.
18319    ac_top_srcdir=$ac_top_builddir_sub
18320    ac_abs_top_srcdir=$ac_pwd ;;
18321  [\\/]* | ?:[\\/]* )  # Absolute name.
18322    ac_srcdir=$srcdir$ac_dir_suffix;
18323    ac_top_srcdir=$srcdir
18324    ac_abs_top_srcdir=$srcdir ;;
18325  *) # Relative name.
18326    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18327    ac_top_srcdir=$ac_top_build_prefix$srcdir
18328    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18329esac
18330ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18331
18332
18333  case $ac_mode in
18334  :F)
18335  #
18336  # CONFIG_FILE
18337  #
18338
18339  case $INSTALL in
18340  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18341  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18342  esac
18343  ac_MKDIR_P=$MKDIR_P
18344  case $MKDIR_P in
18345  [\\/$]* | ?:[\\/]* ) ;;
18346  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18347  esac
18348_ACEOF
18349
18350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351# If the template does not know about datarootdir, expand it.
18352# FIXME: This hack should be removed a few years after 2.60.
18353ac_datarootdir_hack=; ac_datarootdir_seen=
18354ac_sed_dataroot='
18355/datarootdir/ {
18356  p
18357  q
18358}
18359/@datadir@/p
18360/@docdir@/p
18361/@infodir@/p
18362/@localedir@/p
18363/@mandir@/p'
18364case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18365*datarootdir*) ac_datarootdir_seen=yes;;
18366*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18367  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18368$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18369_ACEOF
18370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371  ac_datarootdir_hack='
18372  s&@datadir@&$datadir&g
18373  s&@docdir@&$docdir&g
18374  s&@infodir@&$infodir&g
18375  s&@localedir@&$localedir&g
18376  s&@mandir@&$mandir&g
18377  s&\\\${datarootdir}&$datarootdir&g' ;;
18378esac
18379_ACEOF
18380
18381# Neutralize VPATH when `$srcdir' = `.'.
18382# Shell code in configure.ac might set extrasub.
18383# FIXME: do we really want to maintain this feature?
18384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18385ac_sed_extra="$ac_vpsub
18386$extrasub
18387_ACEOF
18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389:t
18390/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18391s|@configure_input@|$ac_sed_conf_input|;t t
18392s&@top_builddir@&$ac_top_builddir_sub&;t t
18393s&@top_build_prefix@&$ac_top_build_prefix&;t t
18394s&@srcdir@&$ac_srcdir&;t t
18395s&@abs_srcdir@&$ac_abs_srcdir&;t t
18396s&@top_srcdir@&$ac_top_srcdir&;t t
18397s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18398s&@builddir@&$ac_builddir&;t t
18399s&@abs_builddir@&$ac_abs_builddir&;t t
18400s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18401s&@INSTALL@&$ac_INSTALL&;t t
18402s&@MKDIR_P@&$ac_MKDIR_P&;t t
18403$ac_datarootdir_hack
18404"
18405eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18406  || as_fn_error "could not create $ac_file" "$LINENO" 5
18407
18408test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18409  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18410  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18411  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18412which seems to be undefined.  Please make sure it is defined." >&5
18413$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18414which seems to be undefined.  Please make sure it is defined." >&2;}
18415
18416  rm -f "$tmp/stdin"
18417  case $ac_file in
18418  -) cat "$tmp/out" && rm -f "$tmp/out";;
18419  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18420  esac \
18421  || as_fn_error "could not create $ac_file" "$LINENO" 5
18422 ;;
18423  :H)
18424  #
18425  # CONFIG_HEADER
18426  #
18427  if test x"$ac_file" != x-; then
18428    {
18429      $as_echo "/* $configure_input  */" \
18430      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18431    } >"$tmp/config.h" \
18432      || as_fn_error "could not create $ac_file" "$LINENO" 5
18433    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18434      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18435$as_echo "$as_me: $ac_file is unchanged" >&6;}
18436    else
18437      rm -f "$ac_file"
18438      mv "$tmp/config.h" "$ac_file" \
18439	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18440    fi
18441  else
18442    $as_echo "/* $configure_input  */" \
18443      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18444      || as_fn_error "could not create -" "$LINENO" 5
18445  fi
18446# Compute "$ac_file"'s index in $config_headers.
18447_am_arg="$ac_file"
18448_am_stamp_count=1
18449for _am_header in $config_headers :; do
18450  case $_am_header in
18451    $_am_arg | $_am_arg:* )
18452      break ;;
18453    * )
18454      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18455  esac
18456done
18457echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18458$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18460	 X"$_am_arg" : 'X\(//\)$' \| \
18461	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18462$as_echo X"$_am_arg" |
18463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18464	    s//\1/
18465	    q
18466	  }
18467	  /^X\(\/\/\)[^/].*/{
18468	    s//\1/
18469	    q
18470	  }
18471	  /^X\(\/\/\)$/{
18472	    s//\1/
18473	    q
18474	  }
18475	  /^X\(\/\).*/{
18476	    s//\1/
18477	    q
18478	  }
18479	  s/.*/./; q'`/stamp-h$_am_stamp_count
18480 ;;
18481
18482  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18483$as_echo "$as_me: executing $ac_file commands" >&6;}
18484 ;;
18485  esac
18486
18487
18488  case $ac_file$ac_mode in
18489    "default-1":C)
18490# Only add multilib support code if we just rebuilt the top-level
18491# Makefile.
18492case " $CONFIG_FILES " in
18493 *" Makefile "*)
18494   ac_file=Makefile . ${multi_basedir}/config-ml.in
18495   ;;
18496esac ;;
18497    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18498  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18499  # are listed without --file.  Let's play safe and only enable the eval
18500  # if we detect the quoting.
18501  case $CONFIG_FILES in
18502  *\'*) eval set x "$CONFIG_FILES" ;;
18503  *)   set x $CONFIG_FILES ;;
18504  esac
18505  shift
18506  for mf
18507  do
18508    # Strip MF so we end up with the name of the file.
18509    mf=`echo "$mf" | sed -e 's/:.*$//'`
18510    # Check whether this is an Automake generated Makefile or not.
18511    # We used to match only the files named `Makefile.in', but
18512    # some people rename them; so instead we look at the file content.
18513    # Grep'ing the first line is not enough: some people post-process
18514    # each Makefile.in and add a new line on top of each file to say so.
18515    # Grep'ing the whole file is not good either: AIX grep has a line
18516    # limit of 2048, but all sed's we know have understand at least 4000.
18517    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18518      dirpart=`$as_dirname -- "$mf" ||
18519$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18520	 X"$mf" : 'X\(//\)[^/]' \| \
18521	 X"$mf" : 'X\(//\)$' \| \
18522	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18523$as_echo X"$mf" |
18524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525	    s//\1/
18526	    q
18527	  }
18528	  /^X\(\/\/\)[^/].*/{
18529	    s//\1/
18530	    q
18531	  }
18532	  /^X\(\/\/\)$/{
18533	    s//\1/
18534	    q
18535	  }
18536	  /^X\(\/\).*/{
18537	    s//\1/
18538	    q
18539	  }
18540	  s/.*/./; q'`
18541    else
18542      continue
18543    fi
18544    # Extract the definition of DEPDIR, am__include, and am__quote
18545    # from the Makefile without running `make'.
18546    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18547    test -z "$DEPDIR" && continue
18548    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18549    test -z "am__include" && continue
18550    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18551    # When using ansi2knr, U may be empty or an underscore; expand it
18552    U=`sed -n 's/^U = //p' < "$mf"`
18553    # Find all dependency output files, they are included files with
18554    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18555    # simplest approach to changing $(DEPDIR) to its actual value in the
18556    # expansion.
18557    for file in `sed -n "
18558      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18559	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18560      # Make sure the directory exists.
18561      test -f "$dirpart/$file" && continue
18562      fdir=`$as_dirname -- "$file" ||
18563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18564	 X"$file" : 'X\(//\)[^/]' \| \
18565	 X"$file" : 'X\(//\)$' \| \
18566	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18567$as_echo X"$file" |
18568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18569	    s//\1/
18570	    q
18571	  }
18572	  /^X\(\/\/\)[^/].*/{
18573	    s//\1/
18574	    q
18575	  }
18576	  /^X\(\/\/\)$/{
18577	    s//\1/
18578	    q
18579	  }
18580	  /^X\(\/\).*/{
18581	    s//\1/
18582	    q
18583	  }
18584	  s/.*/./; q'`
18585      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18586      # echo "creating $dirpart/$file"
18587      echo '# dummy' > "$dirpart/$file"
18588    done
18589  done
18590}
18591 ;;
18592    "libtool":C)
18593
18594    # See if we are running on zsh, and set the options which allow our
18595    # commands through without removal of \ escapes.
18596    if test -n "${ZSH_VERSION+set}" ; then
18597      setopt NO_GLOB_SUBST
18598    fi
18599
18600    cfgfile="${ofile}T"
18601    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18602    $RM "$cfgfile"
18603
18604    cat <<_LT_EOF >> "$cfgfile"
18605#! $SHELL
18606
18607# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18608# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18610# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18611#
18612#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18613#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18614#   Written by Gordon Matzigkeit, 1996
18615#
18616#   This file is part of GNU Libtool.
18617#
18618# GNU Libtool is free software; you can redistribute it and/or
18619# modify it under the terms of the GNU General Public License as
18620# published by the Free Software Foundation; either version 2 of
18621# the License, or (at your option) any later version.
18622#
18623# As a special exception to the GNU General Public License,
18624# if you distribute this file as part of a program or library that
18625# is built using GNU Libtool, you may include this file under the
18626# same distribution terms that you use for the rest of that program.
18627#
18628# GNU Libtool is distributed in the hope that it will be useful,
18629# but WITHOUT ANY WARRANTY; without even the implied warranty of
18630# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18631# GNU General Public License for more details.
18632#
18633# You should have received a copy of the GNU General Public License
18634# along with GNU Libtool; see the file COPYING.  If not, a copy
18635# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18636# obtained by writing to the Free Software Foundation, Inc.,
18637# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18638
18639
18640# The names of the tagged configurations supported by this script.
18641available_tags="FC "
18642
18643# ### BEGIN LIBTOOL CONFIG
18644
18645# Which release of libtool.m4 was used?
18646macro_version=$macro_version
18647macro_revision=$macro_revision
18648
18649# Whether or not to build shared libraries.
18650build_libtool_libs=$enable_shared
18651
18652# Whether or not to build static libraries.
18653build_old_libs=$enable_static
18654
18655# What type of objects to build.
18656pic_mode=$pic_mode
18657
18658# Whether or not to optimize for fast installation.
18659fast_install=$enable_fast_install
18660
18661# Shell to use when invoking shell scripts.
18662SHELL=$lt_SHELL
18663
18664# An echo program that protects backslashes.
18665ECHO=$lt_ECHO
18666
18667# The host system.
18668host_alias=$host_alias
18669host=$host
18670host_os=$host_os
18671
18672# The build system.
18673build_alias=$build_alias
18674build=$build
18675build_os=$build_os
18676
18677# A sed program that does not truncate output.
18678SED=$lt_SED
18679
18680# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18681Xsed="\$SED -e 1s/^X//"
18682
18683# A grep program that handles long lines.
18684GREP=$lt_GREP
18685
18686# An ERE matcher.
18687EGREP=$lt_EGREP
18688
18689# A literal string matcher.
18690FGREP=$lt_FGREP
18691
18692# A BSD- or MS-compatible name lister.
18693NM=$lt_NM
18694
18695# Whether we need soft or hard links.
18696LN_S=$lt_LN_S
18697
18698# What is the maximum length of a command?
18699max_cmd_len=$max_cmd_len
18700
18701# Object file suffix (normally "o").
18702objext=$ac_objext
18703
18704# Executable file suffix (normally "").
18705exeext=$exeext
18706
18707# whether the shell understands "unset".
18708lt_unset=$lt_unset
18709
18710# turn spaces into newlines.
18711SP2NL=$lt_lt_SP2NL
18712
18713# turn newlines into spaces.
18714NL2SP=$lt_lt_NL2SP
18715
18716# An object symbol dumper.
18717OBJDUMP=$lt_OBJDUMP
18718
18719# Method to check whether dependent libraries are shared objects.
18720deplibs_check_method=$lt_deplibs_check_method
18721
18722# Command to use when deplibs_check_method == "file_magic".
18723file_magic_cmd=$lt_file_magic_cmd
18724
18725# The archiver.
18726AR=$lt_AR
18727AR_FLAGS=$lt_AR_FLAGS
18728
18729# A symbol stripping program.
18730STRIP=$lt_STRIP
18731
18732# Commands used to install an old-style archive.
18733RANLIB=$lt_RANLIB
18734old_postinstall_cmds=$lt_old_postinstall_cmds
18735old_postuninstall_cmds=$lt_old_postuninstall_cmds
18736
18737# Whether to use a lock for old archive extraction.
18738lock_old_archive_extraction=$lock_old_archive_extraction
18739
18740# A C compiler.
18741LTCC=$lt_CC
18742
18743# LTCC compiler flags.
18744LTCFLAGS=$lt_CFLAGS
18745
18746# Take the output of nm and produce a listing of raw symbols and C names.
18747global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18748
18749# Transform the output of nm in a proper C declaration.
18750global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18751
18752# Transform the output of nm in a C name address pair.
18753global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18754
18755# Transform the output of nm in a C name address pair when lib prefix is needed.
18756global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18757
18758# The name of the directory that contains temporary libtool files.
18759objdir=$objdir
18760
18761# Used to examine libraries when file_magic_cmd begins with "file".
18762MAGIC_CMD=$MAGIC_CMD
18763
18764# Must we lock files when doing compilation?
18765need_locks=$lt_need_locks
18766
18767# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18768DSYMUTIL=$lt_DSYMUTIL
18769
18770# Tool to change global to local symbols on Mac OS X.
18771NMEDIT=$lt_NMEDIT
18772
18773# Tool to manipulate fat objects and archives on Mac OS X.
18774LIPO=$lt_LIPO
18775
18776# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18777OTOOL=$lt_OTOOL
18778
18779# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18780OTOOL64=$lt_OTOOL64
18781
18782# Old archive suffix (normally "a").
18783libext=$libext
18784
18785# Shared library suffix (normally ".so").
18786shrext_cmds=$lt_shrext_cmds
18787
18788# The commands to extract the exported symbol list from a shared archive.
18789extract_expsyms_cmds=$lt_extract_expsyms_cmds
18790
18791# Variables whose values should be saved in libtool wrapper scripts and
18792# restored at link time.
18793variables_saved_for_relink=$lt_variables_saved_for_relink
18794
18795# Do we need the "lib" prefix for modules?
18796need_lib_prefix=$need_lib_prefix
18797
18798# Do we need a version for libraries?
18799need_version=$need_version
18800
18801# Library versioning type.
18802version_type=$version_type
18803
18804# Shared library runtime path variable.
18805runpath_var=$runpath_var
18806
18807# Shared library path variable.
18808shlibpath_var=$shlibpath_var
18809
18810# Is shlibpath searched before the hard-coded library search path?
18811shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18812
18813# Format of library name prefix.
18814libname_spec=$lt_libname_spec
18815
18816# List of archive names.  First name is the real one, the rest are links.
18817# The last name is the one that the linker finds with -lNAME
18818library_names_spec=$lt_library_names_spec
18819
18820# The coded name of the library, if different from the real name.
18821soname_spec=$lt_soname_spec
18822
18823# Permission mode override for installation of shared libraries.
18824install_override_mode=$lt_install_override_mode
18825
18826# Command to use after installation of a shared archive.
18827postinstall_cmds=$lt_postinstall_cmds
18828
18829# Command to use after uninstallation of a shared archive.
18830postuninstall_cmds=$lt_postuninstall_cmds
18831
18832# Commands used to finish a libtool library installation in a directory.
18833finish_cmds=$lt_finish_cmds
18834
18835# As "finish_cmds", except a single script fragment to be evaled but
18836# not shown.
18837finish_eval=$lt_finish_eval
18838
18839# Whether we should hardcode library paths into libraries.
18840hardcode_into_libs=$hardcode_into_libs
18841
18842# Compile-time system search path for libraries.
18843sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18844
18845# Run-time system search path for libraries.
18846sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18847
18848# Whether dlopen is supported.
18849dlopen_support=$enable_dlopen
18850
18851# Whether dlopen of programs is supported.
18852dlopen_self=$enable_dlopen_self
18853
18854# Whether dlopen of statically linked programs is supported.
18855dlopen_self_static=$enable_dlopen_self_static
18856
18857# Commands to strip libraries.
18858old_striplib=$lt_old_striplib
18859striplib=$lt_striplib
18860
18861
18862# The linker used to build libraries.
18863LD=$lt_LD
18864
18865# How to create reloadable object files.
18866reload_flag=$lt_reload_flag
18867reload_cmds=$lt_reload_cmds
18868
18869# Commands used to build an old-style archive.
18870old_archive_cmds=$lt_old_archive_cmds
18871
18872# A language specific compiler.
18873CC=$lt_compiler
18874
18875# Is the compiler the GNU compiler?
18876with_gcc=$GCC
18877
18878# Compiler flag to turn off builtin functions.
18879no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18880
18881# How to pass a linker flag through the compiler.
18882wl=$lt_lt_prog_compiler_wl
18883
18884# Additional compiler flags for building library objects.
18885pic_flag=$lt_lt_prog_compiler_pic
18886
18887# Compiler flag to prevent dynamic linking.
18888link_static_flag=$lt_lt_prog_compiler_static
18889
18890# Does compiler simultaneously support -c and -o options?
18891compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18892
18893# Whether or not to add -lc for building shared libraries.
18894build_libtool_need_lc=$archive_cmds_need_lc
18895
18896# Whether or not to disallow shared libs when runtime libs are static.
18897allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18898
18899# Compiler flag to allow reflexive dlopens.
18900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18901
18902# Compiler flag to generate shared objects directly from archives.
18903whole_archive_flag_spec=$lt_whole_archive_flag_spec
18904
18905# Whether the compiler copes with passing no objects directly.
18906compiler_needs_object=$lt_compiler_needs_object
18907
18908# Create an old-style archive from a shared archive.
18909old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18910
18911# Create a temporary old-style archive to link instead of a shared archive.
18912old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18913
18914# Commands used to build a shared archive.
18915archive_cmds=$lt_archive_cmds
18916archive_expsym_cmds=$lt_archive_expsym_cmds
18917
18918# Commands used to build a loadable module if different from building
18919# a shared archive.
18920module_cmds=$lt_module_cmds
18921module_expsym_cmds=$lt_module_expsym_cmds
18922
18923# Whether we are building with GNU ld or not.
18924with_gnu_ld=$lt_with_gnu_ld
18925
18926# Flag that allows shared libraries with undefined symbols to be built.
18927allow_undefined_flag=$lt_allow_undefined_flag
18928
18929# Flag that enforces no undefined symbols.
18930no_undefined_flag=$lt_no_undefined_flag
18931
18932# Flag to hardcode \$libdir into a binary during linking.
18933# This must work even if \$libdir does not exist
18934hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18935
18936# If ld is used when linking, flag to hardcode \$libdir into a binary
18937# during linking.  This must work even if \$libdir does not exist.
18938hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18939
18940# Whether we need a single "-rpath" flag with a separated argument.
18941hardcode_libdir_separator=$lt_hardcode_libdir_separator
18942
18943# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18944# DIR into the resulting binary.
18945hardcode_direct=$hardcode_direct
18946
18947# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18948# DIR into the resulting binary and the resulting library dependency is
18949# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18950# library is relocated.
18951hardcode_direct_absolute=$hardcode_direct_absolute
18952
18953# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18954# into the resulting binary.
18955hardcode_minus_L=$hardcode_minus_L
18956
18957# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18958# into the resulting binary.
18959hardcode_shlibpath_var=$hardcode_shlibpath_var
18960
18961# Set to "yes" if building a shared library automatically hardcodes DIR
18962# into the library and all subsequent libraries and executables linked
18963# against it.
18964hardcode_automatic=$hardcode_automatic
18965
18966# Set to yes if linker adds runtime paths of dependent libraries
18967# to runtime path list.
18968inherit_rpath=$inherit_rpath
18969
18970# Whether libtool must link a program against all its dependency libraries.
18971link_all_deplibs=$link_all_deplibs
18972
18973# Fix the shell variable \$srcfile for the compiler.
18974fix_srcfile_path=$lt_fix_srcfile_path
18975
18976# Set to "yes" if exported symbols are required.
18977always_export_symbols=$always_export_symbols
18978
18979# The commands to list exported symbols.
18980export_symbols_cmds=$lt_export_symbols_cmds
18981
18982# Symbols that should not be listed in the preloaded symbols.
18983exclude_expsyms=$lt_exclude_expsyms
18984
18985# Symbols that must always be exported.
18986include_expsyms=$lt_include_expsyms
18987
18988# Commands necessary for linking programs (against libraries) with templates.
18989prelink_cmds=$lt_prelink_cmds
18990
18991# Specify filename containing input files.
18992file_list_spec=$lt_file_list_spec
18993
18994# How to hardcode a shared library path into an executable.
18995hardcode_action=$hardcode_action
18996
18997# The directories searched by this compiler when creating a shared library.
18998compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18999
19000# Dependencies to place before and after the objects being linked to
19001# create a shared library.
19002predep_objects=$lt_predep_objects
19003postdep_objects=$lt_postdep_objects
19004predeps=$lt_predeps
19005postdeps=$lt_postdeps
19006
19007# The library search path used internally by the compiler when linking
19008# a shared library.
19009compiler_lib_search_path=$lt_compiler_lib_search_path
19010
19011# ### END LIBTOOL CONFIG
19012
19013_LT_EOF
19014
19015  case $host_os in
19016  aix3*)
19017    cat <<\_LT_EOF >> "$cfgfile"
19018# AIX sometimes has problems with the GCC collect2 program.  For some
19019# reason, if we set the COLLECT_NAMES environment variable, the problems
19020# vanish in a puff of smoke.
19021if test "X${COLLECT_NAMES+set}" != Xset; then
19022  COLLECT_NAMES=
19023  export COLLECT_NAMES
19024fi
19025_LT_EOF
19026    ;;
19027  esac
19028
19029
19030ltmain="$ac_aux_dir/ltmain.sh"
19031
19032
19033  # We use sed instead of cat because bash on DJGPP gets confused if
19034  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19035  # text mode, it properly converts lines to CR/LF.  This bash problem
19036  # is reportedly fixed, but why not run on old versions too?
19037  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19038    || (rm -f "$cfgfile"; exit 1)
19039
19040  case $xsi_shell in
19041  yes)
19042    cat << \_LT_EOF >> "$cfgfile"
19043
19044# func_dirname file append nondir_replacement
19045# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19046# otherwise set result to NONDIR_REPLACEMENT.
19047func_dirname ()
19048{
19049  case ${1} in
19050    */*) func_dirname_result="${1%/*}${2}" ;;
19051    *  ) func_dirname_result="${3}" ;;
19052  esac
19053}
19054
19055# func_basename file
19056func_basename ()
19057{
19058  func_basename_result="${1##*/}"
19059}
19060
19061# func_dirname_and_basename file append nondir_replacement
19062# perform func_basename and func_dirname in a single function
19063# call:
19064#   dirname:  Compute the dirname of FILE.  If nonempty,
19065#             add APPEND to the result, otherwise set result
19066#             to NONDIR_REPLACEMENT.
19067#             value returned in "$func_dirname_result"
19068#   basename: Compute filename of FILE.
19069#             value retuned in "$func_basename_result"
19070# Implementation must be kept synchronized with func_dirname
19071# and func_basename. For efficiency, we do not delegate to
19072# those functions but instead duplicate the functionality here.
19073func_dirname_and_basename ()
19074{
19075  case ${1} in
19076    */*) func_dirname_result="${1%/*}${2}" ;;
19077    *  ) func_dirname_result="${3}" ;;
19078  esac
19079  func_basename_result="${1##*/}"
19080}
19081
19082# func_stripname prefix suffix name
19083# strip PREFIX and SUFFIX off of NAME.
19084# PREFIX and SUFFIX must not contain globbing or regex special
19085# characters, hashes, percent signs, but SUFFIX may contain a leading
19086# dot (in which case that matches only a dot).
19087func_stripname ()
19088{
19089  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19090  # positional parameters, so assign one to ordinary parameter first.
19091  func_stripname_result=${3}
19092  func_stripname_result=${func_stripname_result#"${1}"}
19093  func_stripname_result=${func_stripname_result%"${2}"}
19094}
19095
19096# func_opt_split
19097func_opt_split ()
19098{
19099  func_opt_split_opt=${1%%=*}
19100  func_opt_split_arg=${1#*=}
19101}
19102
19103# func_lo2o object
19104func_lo2o ()
19105{
19106  case ${1} in
19107    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19108    *)    func_lo2o_result=${1} ;;
19109  esac
19110}
19111
19112# func_xform libobj-or-source
19113func_xform ()
19114{
19115  func_xform_result=${1%.*}.lo
19116}
19117
19118# func_arith arithmetic-term...
19119func_arith ()
19120{
19121  func_arith_result=$(( $* ))
19122}
19123
19124# func_len string
19125# STRING may not start with a hyphen.
19126func_len ()
19127{
19128  func_len_result=${#1}
19129}
19130
19131_LT_EOF
19132    ;;
19133  *) # Bourne compatible functions.
19134    cat << \_LT_EOF >> "$cfgfile"
19135
19136# func_dirname file append nondir_replacement
19137# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19138# otherwise set result to NONDIR_REPLACEMENT.
19139func_dirname ()
19140{
19141  # Extract subdirectory from the argument.
19142  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19143  if test "X$func_dirname_result" = "X${1}"; then
19144    func_dirname_result="${3}"
19145  else
19146    func_dirname_result="$func_dirname_result${2}"
19147  fi
19148}
19149
19150# func_basename file
19151func_basename ()
19152{
19153  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19154}
19155
19156
19157# func_stripname prefix suffix name
19158# strip PREFIX and SUFFIX off of NAME.
19159# PREFIX and SUFFIX must not contain globbing or regex special
19160# characters, hashes, percent signs, but SUFFIX may contain a leading
19161# dot (in which case that matches only a dot).
19162# func_strip_suffix prefix name
19163func_stripname ()
19164{
19165  case ${2} in
19166    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19167    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19168  esac
19169}
19170
19171# sed scripts:
19172my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19173my_sed_long_arg='1s/^-[^=]*=//'
19174
19175# func_opt_split
19176func_opt_split ()
19177{
19178  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19179  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19180}
19181
19182# func_lo2o object
19183func_lo2o ()
19184{
19185  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19186}
19187
19188# func_xform libobj-or-source
19189func_xform ()
19190{
19191  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19192}
19193
19194# func_arith arithmetic-term...
19195func_arith ()
19196{
19197  func_arith_result=`expr "$@"`
19198}
19199
19200# func_len string
19201# STRING may not start with a hyphen.
19202func_len ()
19203{
19204  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19205}
19206
19207_LT_EOF
19208esac
19209
19210case $lt_shell_append in
19211  yes)
19212    cat << \_LT_EOF >> "$cfgfile"
19213
19214# func_append var value
19215# Append VALUE to the end of shell variable VAR.
19216func_append ()
19217{
19218  eval "$1+=\$2"
19219}
19220_LT_EOF
19221    ;;
19222  *)
19223    cat << \_LT_EOF >> "$cfgfile"
19224
19225# func_append var value
19226# Append VALUE to the end of shell variable VAR.
19227func_append ()
19228{
19229  eval "$1=\$$1\$2"
19230}
19231
19232_LT_EOF
19233    ;;
19234  esac
19235
19236
19237  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19238    || (rm -f "$cfgfile"; exit 1)
19239
19240  mv -f "$cfgfile" "$ofile" ||
19241    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19242  chmod +x "$ofile"
19243
19244
19245    cat <<_LT_EOF >> "$ofile"
19246
19247# ### BEGIN LIBTOOL TAG CONFIG: FC
19248
19249# The linker used to build libraries.
19250LD=$lt_LD_FC
19251
19252# How to create reloadable object files.
19253reload_flag=$lt_reload_flag_FC
19254reload_cmds=$lt_reload_cmds_FC
19255
19256# Commands used to build an old-style archive.
19257old_archive_cmds=$lt_old_archive_cmds_FC
19258
19259# A language specific compiler.
19260CC=$lt_compiler_FC
19261
19262# Is the compiler the GNU compiler?
19263with_gcc=$GCC_FC
19264
19265# Compiler flag to turn off builtin functions.
19266no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19267
19268# How to pass a linker flag through the compiler.
19269wl=$lt_lt_prog_compiler_wl_FC
19270
19271# Additional compiler flags for building library objects.
19272pic_flag=$lt_lt_prog_compiler_pic_FC
19273
19274# Compiler flag to prevent dynamic linking.
19275link_static_flag=$lt_lt_prog_compiler_static_FC
19276
19277# Does compiler simultaneously support -c and -o options?
19278compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19279
19280# Whether or not to add -lc for building shared libraries.
19281build_libtool_need_lc=$archive_cmds_need_lc_FC
19282
19283# Whether or not to disallow shared libs when runtime libs are static.
19284allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19285
19286# Compiler flag to allow reflexive dlopens.
19287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19288
19289# Compiler flag to generate shared objects directly from archives.
19290whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19291
19292# Whether the compiler copes with passing no objects directly.
19293compiler_needs_object=$lt_compiler_needs_object_FC
19294
19295# Create an old-style archive from a shared archive.
19296old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19297
19298# Create a temporary old-style archive to link instead of a shared archive.
19299old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19300
19301# Commands used to build a shared archive.
19302archive_cmds=$lt_archive_cmds_FC
19303archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19304
19305# Commands used to build a loadable module if different from building
19306# a shared archive.
19307module_cmds=$lt_module_cmds_FC
19308module_expsym_cmds=$lt_module_expsym_cmds_FC
19309
19310# Whether we are building with GNU ld or not.
19311with_gnu_ld=$lt_with_gnu_ld_FC
19312
19313# Flag that allows shared libraries with undefined symbols to be built.
19314allow_undefined_flag=$lt_allow_undefined_flag_FC
19315
19316# Flag that enforces no undefined symbols.
19317no_undefined_flag=$lt_no_undefined_flag_FC
19318
19319# Flag to hardcode \$libdir into a binary during linking.
19320# This must work even if \$libdir does not exist
19321hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19322
19323# If ld is used when linking, flag to hardcode \$libdir into a binary
19324# during linking.  This must work even if \$libdir does not exist.
19325hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19326
19327# Whether we need a single "-rpath" flag with a separated argument.
19328hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19329
19330# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19331# DIR into the resulting binary.
19332hardcode_direct=$hardcode_direct_FC
19333
19334# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19335# DIR into the resulting binary and the resulting library dependency is
19336# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19337# library is relocated.
19338hardcode_direct_absolute=$hardcode_direct_absolute_FC
19339
19340# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19341# into the resulting binary.
19342hardcode_minus_L=$hardcode_minus_L_FC
19343
19344# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19345# into the resulting binary.
19346hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19347
19348# Set to "yes" if building a shared library automatically hardcodes DIR
19349# into the library and all subsequent libraries and executables linked
19350# against it.
19351hardcode_automatic=$hardcode_automatic_FC
19352
19353# Set to yes if linker adds runtime paths of dependent libraries
19354# to runtime path list.
19355inherit_rpath=$inherit_rpath_FC
19356
19357# Whether libtool must link a program against all its dependency libraries.
19358link_all_deplibs=$link_all_deplibs_FC
19359
19360# Fix the shell variable \$srcfile for the compiler.
19361fix_srcfile_path=$lt_fix_srcfile_path_FC
19362
19363# Set to "yes" if exported symbols are required.
19364always_export_symbols=$always_export_symbols_FC
19365
19366# The commands to list exported symbols.
19367export_symbols_cmds=$lt_export_symbols_cmds_FC
19368
19369# Symbols that should not be listed in the preloaded symbols.
19370exclude_expsyms=$lt_exclude_expsyms_FC
19371
19372# Symbols that must always be exported.
19373include_expsyms=$lt_include_expsyms_FC
19374
19375# Commands necessary for linking programs (against libraries) with templates.
19376prelink_cmds=$lt_prelink_cmds_FC
19377
19378# Specify filename containing input files.
19379file_list_spec=$lt_file_list_spec_FC
19380
19381# How to hardcode a shared library path into an executable.
19382hardcode_action=$hardcode_action_FC
19383
19384# The directories searched by this compiler when creating a shared library.
19385compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19386
19387# Dependencies to place before and after the objects being linked to
19388# create a shared library.
19389predep_objects=$lt_predep_objects_FC
19390postdep_objects=$lt_postdep_objects_FC
19391predeps=$lt_predeps_FC
19392postdeps=$lt_postdeps_FC
19393
19394# The library search path used internally by the compiler when linking
19395# a shared library.
19396compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19397
19398# ### END LIBTOOL TAG CONFIG: FC
19399_LT_EOF
19400
19401 ;;
19402    "gstdint.h":C)
19403if test "$GCC" = yes; then
19404  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19405else
19406  echo "/* generated for $CC */" > tmp-stdint.h
19407fi
19408
19409sed 's/^ *//' >> tmp-stdint.h <<EOF
19410
19411  #ifndef GCC_GENERATED_STDINT_H
19412  #define GCC_GENERATED_STDINT_H 1
19413
19414  #include <sys/types.h>
19415EOF
19416
19417if test "$acx_cv_header_stdint" != stdint.h; then
19418  echo "#include <stddef.h>" >> tmp-stdint.h
19419fi
19420if test "$acx_cv_header_stdint" != stddef.h; then
19421  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19422fi
19423
19424sed 's/^ *//' >> tmp-stdint.h <<EOF
19425  /* glibc uses these symbols as guards to prevent redefinitions.  */
19426  #ifdef __int8_t_defined
19427  #define _INT8_T
19428  #define _INT16_T
19429  #define _INT32_T
19430  #endif
19431  #ifdef __uint32_t_defined
19432  #define _UINT32_T
19433  #endif
19434
19435EOF
19436
19437# ----------------- done header, emit basic int types -------------
19438if test "$acx_cv_header_stdint" = stddef.h; then
19439  sed 's/^ *//' >> tmp-stdint.h <<EOF
19440
19441    #ifndef _UINT8_T
19442    #define _UINT8_T
19443    #ifndef __uint8_t_defined
19444    #define __uint8_t_defined
19445    #ifndef uint8_t
19446    typedef unsigned $acx_cv_type_int8_t uint8_t;
19447    #endif
19448    #endif
19449    #endif
19450
19451    #ifndef _UINT16_T
19452    #define _UINT16_T
19453    #ifndef __uint16_t_defined
19454    #define __uint16_t_defined
19455    #ifndef uint16_t
19456    typedef unsigned $acx_cv_type_int16_t uint16_t;
19457    #endif
19458    #endif
19459    #endif
19460
19461    #ifndef _UINT32_T
19462    #define _UINT32_T
19463    #ifndef __uint32_t_defined
19464    #define __uint32_t_defined
19465    #ifndef uint32_t
19466    typedef unsigned $acx_cv_type_int32_t uint32_t;
19467    #endif
19468    #endif
19469    #endif
19470
19471    #ifndef _INT8_T
19472    #define _INT8_T
19473    #ifndef __int8_t_defined
19474    #define __int8_t_defined
19475    #ifndef int8_t
19476    typedef $acx_cv_type_int8_t int8_t;
19477    #endif
19478    #endif
19479    #endif
19480
19481    #ifndef _INT16_T
19482    #define _INT16_T
19483    #ifndef __int16_t_defined
19484    #define __int16_t_defined
19485    #ifndef int16_t
19486    typedef $acx_cv_type_int16_t int16_t;
19487    #endif
19488    #endif
19489    #endif
19490
19491    #ifndef _INT32_T
19492    #define _INT32_T
19493    #ifndef __int32_t_defined
19494    #define __int32_t_defined
19495    #ifndef int32_t
19496    typedef $acx_cv_type_int32_t int32_t;
19497    #endif
19498    #endif
19499    #endif
19500EOF
19501elif test "$ac_cv_type_u_int32_t" = yes; then
19502  sed 's/^ *//' >> tmp-stdint.h <<EOF
19503
19504    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19505    #ifndef _INT8_T
19506    #define _INT8_T
19507    #endif
19508    #ifndef _INT16_T
19509    #define _INT16_T
19510    #endif
19511    #ifndef _INT32_T
19512    #define _INT32_T
19513    #endif
19514
19515    #ifndef _UINT8_T
19516    #define _UINT8_T
19517    #ifndef __uint8_t_defined
19518    #define __uint8_t_defined
19519    #ifndef uint8_t
19520    typedef u_int8_t uint8_t;
19521    #endif
19522    #endif
19523    #endif
19524
19525    #ifndef _UINT16_T
19526    #define _UINT16_T
19527    #ifndef __uint16_t_defined
19528    #define __uint16_t_defined
19529    #ifndef uint16_t
19530    typedef u_int16_t uint16_t;
19531    #endif
19532    #endif
19533    #endif
19534
19535    #ifndef _UINT32_T
19536    #define _UINT32_T
19537    #ifndef __uint32_t_defined
19538    #define __uint32_t_defined
19539    #ifndef uint32_t
19540    typedef u_int32_t uint32_t;
19541    #endif
19542    #endif
19543    #endif
19544EOF
19545else
19546  sed 's/^ *//' >> tmp-stdint.h <<EOF
19547
19548    /* Some systems have guard macros to prevent redefinitions, define them.  */
19549    #ifndef _INT8_T
19550    #define _INT8_T
19551    #endif
19552    #ifndef _INT16_T
19553    #define _INT16_T
19554    #endif
19555    #ifndef _INT32_T
19556    #define _INT32_T
19557    #endif
19558    #ifndef _UINT8_T
19559    #define _UINT8_T
19560    #endif
19561    #ifndef _UINT16_T
19562    #define _UINT16_T
19563    #endif
19564    #ifndef _UINT32_T
19565    #define _UINT32_T
19566    #endif
19567EOF
19568fi
19569
19570# ------------- done basic int types, emit int64_t types ------------
19571if test "$ac_cv_type_uint64_t" = yes; then
19572  sed 's/^ *//' >> tmp-stdint.h <<EOF
19573
19574    /* system headers have good uint64_t and int64_t */
19575    #ifndef _INT64_T
19576    #define _INT64_T
19577    #endif
19578    #ifndef _UINT64_T
19579    #define _UINT64_T
19580    #endif
19581EOF
19582elif test "$ac_cv_type_u_int64_t" = yes; then
19583  sed 's/^ *//' >> tmp-stdint.h <<EOF
19584
19585    /* system headers have an u_int64_t (and int64_t) */
19586    #ifndef _INT64_T
19587    #define _INT64_T
19588    #endif
19589    #ifndef _UINT64_T
19590    #define _UINT64_T
19591    #ifndef __uint64_t_defined
19592    #define __uint64_t_defined
19593    #ifndef uint64_t
19594    typedef u_int64_t uint64_t;
19595    #endif
19596    #endif
19597    #endif
19598EOF
19599elif test -n "$acx_cv_type_int64_t"; then
19600  sed 's/^ *//' >> tmp-stdint.h <<EOF
19601
19602    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19603    #ifndef _INT64_T
19604    #define _INT64_T
19605    #ifndef int64_t
19606    typedef $acx_cv_type_int64_t int64_t;
19607    #endif
19608    #endif
19609    #ifndef _UINT64_T
19610    #define _UINT64_T
19611    #ifndef __uint64_t_defined
19612    #define __uint64_t_defined
19613    #ifndef uint64_t
19614    typedef unsigned $acx_cv_type_int64_t uint64_t;
19615    #endif
19616    #endif
19617    #endif
19618EOF
19619else
19620  sed 's/^ *//' >> tmp-stdint.h <<EOF
19621
19622    /* some common heuristics for int64_t, using compiler-specific tests */
19623    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19624    #ifndef _INT64_T
19625    #define _INT64_T
19626    #ifndef __int64_t_defined
19627    #ifndef int64_t
19628    typedef long long int64_t;
19629    #endif
19630    #endif
19631    #endif
19632    #ifndef _UINT64_T
19633    #define _UINT64_T
19634    #ifndef uint64_t
19635    typedef unsigned long long uint64_t;
19636    #endif
19637    #endif
19638
19639    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19640    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19641       does not implement __extension__.  But that compiler doesn't define
19642       __GNUC_MINOR__.  */
19643    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19644    # define __extension__
19645    # endif
19646
19647    # ifndef _INT64_T
19648    # define _INT64_T
19649    # ifndef int64_t
19650    __extension__ typedef long long int64_t;
19651    # endif
19652    # endif
19653    # ifndef _UINT64_T
19654    # define _UINT64_T
19655    # ifndef uint64_t
19656    __extension__ typedef unsigned long long uint64_t;
19657    # endif
19658    # endif
19659
19660    #elif !defined __STRICT_ANSI__
19661    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19662
19663    #  ifndef _INT64_T
19664    #  define _INT64_T
19665    #  ifndef int64_t
19666    typedef __int64 int64_t;
19667    #  endif
19668    #  endif
19669    #  ifndef _UINT64_T
19670    #  define _UINT64_T
19671    #  ifndef uint64_t
19672    typedef unsigned __int64 uint64_t;
19673    #  endif
19674    #  endif
19675    # endif /* compiler */
19676
19677    #endif /* ANSI version */
19678EOF
19679fi
19680
19681# ------------- done int64_t types, emit intptr types ------------
19682if test "$ac_cv_type_uintptr_t" != yes; then
19683  sed 's/^ *//' >> tmp-stdint.h <<EOF
19684
19685    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19686    #ifndef __uintptr_t_defined
19687    #ifndef uintptr_t
19688    typedef u$acx_cv_type_intptr_t uintptr_t;
19689    #endif
19690    #endif
19691    #ifndef __intptr_t_defined
19692    #ifndef intptr_t
19693    typedef $acx_cv_type_intptr_t  intptr_t;
19694    #endif
19695    #endif
19696EOF
19697fi
19698
19699# ------------- done intptr types, emit int_least types ------------
19700if test "$ac_cv_type_int_least32_t" != yes; then
19701  sed 's/^ *//' >> tmp-stdint.h <<EOF
19702
19703    /* Define int_least types */
19704    typedef int8_t     int_least8_t;
19705    typedef int16_t    int_least16_t;
19706    typedef int32_t    int_least32_t;
19707    #ifdef _INT64_T
19708    typedef int64_t    int_least64_t;
19709    #endif
19710
19711    typedef uint8_t    uint_least8_t;
19712    typedef uint16_t   uint_least16_t;
19713    typedef uint32_t   uint_least32_t;
19714    #ifdef _UINT64_T
19715    typedef uint64_t   uint_least64_t;
19716    #endif
19717EOF
19718fi
19719
19720# ------------- done intptr types, emit int_fast types ------------
19721if test "$ac_cv_type_int_fast32_t" != yes; then
19722      sed 's/^ *//' >> tmp-stdint.h <<EOF
19723
19724    /* Define int_fast types.  short is often slow */
19725    typedef int8_t       int_fast8_t;
19726    typedef int          int_fast16_t;
19727    typedef int32_t      int_fast32_t;
19728    #ifdef _INT64_T
19729    typedef int64_t      int_fast64_t;
19730    #endif
19731
19732    typedef uint8_t      uint_fast8_t;
19733    typedef unsigned int uint_fast16_t;
19734    typedef uint32_t     uint_fast32_t;
19735    #ifdef _UINT64_T
19736    typedef uint64_t     uint_fast64_t;
19737    #endif
19738EOF
19739fi
19740
19741if test "$ac_cv_type_uintmax_t" != yes; then
19742  sed 's/^ *//' >> tmp-stdint.h <<EOF
19743
19744    /* Define intmax based on what we found */
19745    #ifndef intmax_t
19746    #ifdef _INT64_T
19747    typedef int64_t       intmax_t;
19748    #else
19749    typedef long          intmax_t;
19750    #endif
19751    #endif
19752    #ifndef uintmax_t
19753    #ifdef _UINT64_T
19754    typedef uint64_t      uintmax_t;
19755    #else
19756    typedef unsigned long uintmax_t;
19757    #endif
19758    #endif
19759EOF
19760fi
19761
19762sed 's/^ *//' >> tmp-stdint.h <<EOF
19763
19764  #endif /* GCC_GENERATED_STDINT_H */
19765EOF
19766
19767if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19768  rm -f tmp-stdint.h
19769else
19770  mv -f tmp-stdint.h gstdint.h
19771fi
19772
19773 ;;
19774
19775  esac
19776done # for ac_tag
19777
19778
19779as_fn_exit 0
19780_ACEOF
19781ac_clean_files=$ac_clean_files_save
19782
19783test $ac_write_fail = 0 ||
19784  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19785
19786
19787# configure is writing to config.log, and then calls config.status.
19788# config.status does its own redirection, appending to config.log.
19789# Unfortunately, on DOS this fails, as config.log is still kept open
19790# by configure, so config.status won't be able to write to it; its
19791# output is simply discarded.  So we exec the FD to /dev/null,
19792# effectively closing config.log, so it can be properly (re)opened and
19793# appended to by config.status.  When coming back to configure, we
19794# need to make the FD available again.
19795if test "$no_create" != yes; then
19796  ac_cs_success=:
19797  ac_config_status_args=
19798  test "$silent" = yes &&
19799    ac_config_status_args="$ac_config_status_args --quiet"
19800  exec 5>/dev/null
19801  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19802  exec 5>>config.log
19803  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19804  # would make configure fail if this is the last instruction.
19805  $ac_cs_success || as_fn_exit $?
19806fi
19807if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19808  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19809$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19810fi
19811
19812