xref: /netbsd-src/external/gpl3/gcc/dist/libgomp/configure (revision 4fe0f936ff464bca8e6277bde90f477ef5a4d004)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589PACKAGE_TARNAME='libgomp'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.gnu.org/software/libgomp/'
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_header_list=
632ac_func_list=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637get_gcc_base_ver
638OMP_DEPEND_KIND
639OMP_NEST_LOCK_25_KIND
640OMP_LOCK_25_KIND
641OMP_NEST_LOCK_25_ALIGN
642OMP_NEST_LOCK_25_SIZE
643OMP_LOCK_25_ALIGN
644OMP_LOCK_25_SIZE
645OMP_NEST_LOCK_KIND
646OMP_LOCK_KIND
647OMP_NEST_LOCK_ALIGN
648OMP_NEST_LOCK_SIZE
649OMP_LOCK_ALIGN
650OMP_LOCK_SIZE
651INTPTR_T_KIND
652USE_FORTRAN_FALSE
653USE_FORTRAN_TRUE
654link_gomp
655tmake_file
656XLDFLAGS
657XCFLAGS
658config_path
659FLOCK
660CPU_COUNT
661LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
662LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
663LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
664LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
665LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
666LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
667OPT_LDFLAGS
668SECTION_LDFLAGS
669PLUGIN_GCN_FALSE
670PLUGIN_GCN_TRUE
671PLUGIN_NVPTX_FALSE
672PLUGIN_NVPTX_TRUE
673offload_additional_lib_paths
674offload_additional_options
675offload_targets
676offload_plugins
677PLUGIN_GCN_LIBS
678PLUGIN_GCN_LDFLAGS
679PLUGIN_GCN_CPPFLAGS
680PLUGIN_GCN
681HSA_RUNTIME_LIB
682HSA_RUNTIME_INCLUDE
683PLUGIN_NVPTX_LIBS
684PLUGIN_NVPTX_LDFLAGS
685PLUGIN_NVPTX_CPPFLAGS
686PLUGIN_NVPTX
687CUDA_DRIVER_LIB
688CUDA_DRIVER_INCLUDE
689libtool_VERSION
690ac_ct_FC
691FCFLAGS
692FC
693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
696enable_static
697enable_shared
698lt_host_flags
699CPP
700OTOOL64
701OTOOL
702LIPO
703NMEDIT
704DSYMUTIL
705OBJDUMP
706LN_S
707NM
708ac_ct_DUMPBIN
709DUMPBIN
710LD
711FGREP
712EGREP
713GREP
714SED
715LIBTOOL
716BUILD_INFO_FALSE
717BUILD_INFO_TRUE
718PERL
719RANLIB
720AR
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
724am__nodep
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__quote
729am__include
730DEPDIR
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738toolexeclibdir
739toolexecdir
740multi_basedir
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745am__untar
746am__tar
747AMTAR
748am__leading_dot
749SET_MAKE
750AWK
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754STRIP
755install_sh
756MAKEINFO
757AUTOHEADER
758AUTOMAKE
759AUTOCONF
760ACLOCAL
761VERSION
762PACKAGE
763CYGPATH_W
764am__isrc
765INSTALL_DATA
766INSTALL_SCRIPT
767INSTALL_PROGRAM
768target_os
769target_vendor
770target_cpu
771target
772host_os
773host_vendor
774host_cpu
775host
776build_os
777build_vendor
778build_cpu
779build
780GENINSRC_FALSE
781GENINSRC_TRUE
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL'
820ac_subst_files=''
821ac_user_opts='
822enable_option_checking
823enable_version_specific_runtime_libs
824enable_generated_files_in_srcdir
825enable_silent_rules
826enable_multilib
827with_toolexeclibdir
828enable_dependency_tracking
829enable_werror
830enable_shared
831enable_static
832with_pic
833enable_fast_install
834with_gnu_ld
835enable_libtool_lock
836enable_maintainer_mode
837with_cuda_driver
838with_cuda_driver_include
839with_cuda_driver_lib
840with_hsa_runtime
841with_hsa_runtime_include
842with_hsa_runtime_lib
843enable_linux_futex
844enable_tls
845enable_symvers
846enable_cet
847with_gcc_major_version_only
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CPP
853CPPFLAGS
854FC
855FCFLAGS
856LDFLAGS
857LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463  --target=TARGET   configure for building compilers for TARGET [HOST]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468  case $ac_init_help in
1469     short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1470   esac
1471  cat <<\_ACEOF
1472
1473Optional Features:
1474  --disable-option-checking  ignore unrecognized --enable/--with options
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --enable-version-specific-runtime-libs
1478                          Specify that runtime libraries should be installed
1479                          in a compiler-specific directory [default=no]
1480  --enable-generated-files-in-srcdir
1481                          put copies of generated files in source dir intended
1482                          for creating source tarballs for users without
1483                          texinfo bison or flex. [default=no]
1484  --enable-silent-rules   less verbose build output (undo: "make V=1")
1485  --disable-silent-rules  verbose build output (undo: "make V=0")
1486  --enable-multilib       build many library versions (default)
1487  --enable-dependency-tracking
1488                          do not reject slow dependency extractors
1489  --disable-dependency-tracking
1490                          speeds up one-time build
1491  --disable-werror        disable building with -Werror
1492  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493  --enable-static[=PKGS]  build static libraries [default=yes]
1494  --enable-fast-install[=PKGS]
1495                          optimize for fast installation [default=yes]
1496  --disable-libtool-lock  avoid locking (might break parallel builds)
1497  --enable-maintainer-mode
1498                          enable make rules and dependencies not useful (and
1499                          sometimes confusing) to the casual installer
1500  --enable-linux-futex    use the Linux futex system call [default=default]
1501  --enable-tls            Use thread-local storage [default=yes]
1502  --enable-symvers=STYLE  enables symbol versioning of the shared library
1503                          [default=yes]
1504  --enable-cet            enable Intel CET in target libraries [default=auto]
1505
1506Optional Packages:
1507  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509  --with-toolexeclibdir=DIR
1510                          install libraries built with a cross compiler within
1511                          DIR
1512  --with-pic              try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515  --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1516                          package. Equivalent to
1517                          --with-cuda-driver-include=PATH/include plus
1518                          --with-cuda-driver-lib=PATH/lib
1519  --with-cuda-driver-include=PATH
1520                          specify directory for installed CUDA driver include
1521                          files
1522  --with-cuda-driver-lib=PATH
1523                          specify directory for the installed CUDA driver
1524                          library
1525  --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1526                          package. Equivalent to
1527                          --with-hsa-runtime-include=PATH/include plus
1528                          --with-hsa-runtime-lib=PATH/lib
1529  --with-hsa-runtime-include=PATH
1530                          specify directory for installed HSA run-time include
1531                          files
1532  --with-hsa-runtime-lib=PATH
1533                          specify directory for the installed HSA run-time
1534                          library
1535  --with-gcc-major-version-only
1536                          use only GCC major number in filesystem paths
1537
1538Some influential environment variables:
1539  CC          C compiler command
1540  CFLAGS      C compiler flags
1541  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542              nonstandard directory <lib dir>
1543  LIBS        libraries to pass to the linker, e.g. -l<library>
1544  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545              you have headers in a nonstandard directory <include dir>
1546  CPP         C preprocessor
1547  FC          Fortran compiler command
1548  FCFLAGS     Fortran compiler flags
1549
1550Use these variables to override the choices made by `configure' or to help
1551it to find libraries and programs with nonstandard names/locations.
1552
1553Report bugs to the package provider.
1554GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1555General help using GNU software: <http://www.gnu.org/gethelp/>.
1556_ACEOF
1557ac_status=$?
1558fi
1559
1560if test "$ac_init_help" = "recursive"; then
1561  # If there are subdirs, report their specific --help.
1562  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563    test -d "$ac_dir" ||
1564      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565      continue
1566    ac_builddir=.
1567
1568case "$ac_dir" in
1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570*)
1571  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572  # A ".." for each directory in $ac_dir_suffix.
1573  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574  case $ac_top_builddir_sub in
1575  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577  esac ;;
1578esac
1579ac_abs_top_builddir=$ac_pwd
1580ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581# for backward compatibility:
1582ac_top_builddir=$ac_top_build_prefix
1583
1584case $srcdir in
1585  .)  # We are building in place.
1586    ac_srcdir=.
1587    ac_top_srcdir=$ac_top_builddir_sub
1588    ac_abs_top_srcdir=$ac_pwd ;;
1589  [\\/]* | ?:[\\/]* )  # Absolute name.
1590    ac_srcdir=$srcdir$ac_dir_suffix;
1591    ac_top_srcdir=$srcdir
1592    ac_abs_top_srcdir=$srcdir ;;
1593  *) # Relative name.
1594    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595    ac_top_srcdir=$ac_top_build_prefix$srcdir
1596    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597esac
1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600    cd "$ac_dir" || { ac_status=$?; continue; }
1601    # Check for guested configure.
1602    if test -f "$ac_srcdir/configure.gnu"; then
1603      echo &&
1604      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605    elif test -f "$ac_srcdir/configure"; then
1606      echo &&
1607      $SHELL "$ac_srcdir/configure" --help=recursive
1608    else
1609      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610    fi || ac_status=$?
1611    cd "$ac_pwd" || { ac_status=$?; break; }
1612  done
1613fi
1614
1615test -n "$ac_init_help" && exit $ac_status
1616if $ac_init_version; then
1617  cat <<\_ACEOF
1618GNU Offloading and Multi Processing Runtime Library configure 1.0
1619generated by GNU Autoconf 2.69
1620
1621Copyright (C) 2012 Free Software Foundation, Inc.
1622This configure script is free software; the Free Software Foundation
1623gives unlimited permission to copy, distribute and modify it.
1624_ACEOF
1625  exit
1626fi
1627
1628## ------------------------ ##
1629## Autoconf initialization. ##
1630## ------------------------ ##
1631
1632# ac_fn_c_try_compile LINENO
1633# --------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_compile ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  rm -f conftest.$ac_objext
1639  if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_compile") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } && {
1655	 test -z "$ac_c_werror_flag" ||
1656	 test ! -s conftest.err
1657       } && test -s conftest.$ac_objext; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663	ac_retval=1
1664fi
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  rm -f conftest.$ac_objext conftest$ac_exeext
1677  if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_link") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && {
1693	 test -z "$ac_c_werror_flag" ||
1694	 test ! -s conftest.err
1695       } && test -s conftest$ac_exeext && {
1696	 test "$cross_compiling" = yes ||
1697	 test -x conftest$ac_exeext
1698       }; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1
1705fi
1706  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708  # interfere with the next link command; also delete a directory that is
1709  # left behind by Apple's compiler.  We do this before executing the actions.
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_link
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734  eval "$3=yes"
1735else
1736  eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761  ac_status=$?
1762  if test -s conftest.err; then
1763    grep -v '^ *+' conftest.err >conftest.er1
1764    cat conftest.er1 >&5
1765    mv -f conftest.er1 conftest.err
1766  fi
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; } > conftest.i && {
1769	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770	 test ! -s conftest.err
1771       }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777    ac_retval=1
1778fi
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_link") 2>&5
1799  ac_status=$?
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802  { { case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_try") 2>&5
1809  ac_status=$?
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; }; }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: program exited with status $ac_status" >&5
1815       $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818       ac_retval=$ac_status
1819fi
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_fc_try_compile LINENO
1894# ---------------------------
1895# Try to compile conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_fc_try_compile ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  rm -f conftest.$ac_objext
1900  if { { ac_try="$ac_compile"
1901case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_compile") 2>conftest.err
1908  ac_status=$?
1909  if test -s conftest.err; then
1910    grep -v '^ *+' conftest.err >conftest.er1
1911    cat conftest.er1 >&5
1912    mv -f conftest.er1 conftest.err
1913  fi
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; } && {
1916	 test -z "$ac_fc_werror_flag" ||
1917	 test ! -s conftest.err
1918       } && test -s conftest.$ac_objext; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_fc_try_compile
1930
1931# ac_fn_fc_try_link LINENO
1932# ------------------------
1933# Try to link conftest.$ac_ext, and return whether this succeeded.
1934ac_fn_fc_try_link ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  rm -f conftest.$ac_objext conftest$ac_exeext
1938  if { { ac_try="$ac_link"
1939case "(($ac_try" in
1940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941  *) ac_try_echo=$ac_try;;
1942esac
1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944$as_echo "$ac_try_echo"; } >&5
1945  (eval "$ac_link") 2>conftest.err
1946  ac_status=$?
1947  if test -s conftest.err; then
1948    grep -v '^ *+' conftest.err >conftest.er1
1949    cat conftest.er1 >&5
1950    mv -f conftest.er1 conftest.err
1951  fi
1952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953  test $ac_status = 0; } && {
1954	 test -z "$ac_fc_werror_flag" ||
1955	 test ! -s conftest.err
1956       } && test -s conftest$ac_exeext && {
1957	 test "$cross_compiling" = yes ||
1958	 test -x conftest$ac_exeext
1959       }; then :
1960  ac_retval=0
1961else
1962  $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
1964
1965	ac_retval=1
1966fi
1967  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969  # interfere with the next link command; also delete a directory that is
1970  # left behind by Apple's compiler.  We do this before executing the actions.
1971  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973  as_fn_set_status $ac_retval
1974
1975} # ac_fn_fc_try_link
1976
1977# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978# -------------------------------------------------------
1979# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980# the include files in INCLUDES and setting the cache variable VAR
1981# accordingly.
1982ac_fn_c_check_header_mongrel ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if eval \${$3+:} false; then :
1986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987$as_echo_n "checking for $2... " >&6; }
1988if eval \${$3+:} false; then :
1989  $as_echo_n "(cached) " >&6
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994else
1995  # Is the header compilable?
1996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997$as_echo_n "checking $2 usability... " >&6; }
1998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001#include <$2>
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004  ac_header_compiler=yes
2005else
2006  ac_header_compiler=no
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010$as_echo "$ac_header_compiler" >&6; }
2011
2012# Is the header present?
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014$as_echo_n "checking $2 presence... " >&6; }
2015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017#include <$2>
2018_ACEOF
2019if ac_fn_c_try_cpp "$LINENO"; then :
2020  ac_header_preproc=yes
2021else
2022  ac_header_preproc=no
2023fi
2024rm -f conftest.err conftest.i conftest.$ac_ext
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026$as_echo "$ac_header_preproc" >&6; }
2027
2028# So?  What about this header?
2029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030  yes:no: )
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035    ;;
2036  no:yes:* )
2037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2040$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2041    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2044$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047    ;;
2048esac
2049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if eval \${$3+:} false; then :
2052  $as_echo_n "(cached) " >&6
2053else
2054  eval "$3=\$ac_header_compiler"
2055fi
2056eval ac_res=\$$3
2057	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059fi
2060  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062} # ac_fn_c_check_header_mongrel
2063
2064# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2065# --------------------------------------------
2066# Tries to find the compile-time value of EXPR in a program that includes
2067# INCLUDES, setting VAR accordingly. Returns whether the value could be
2068# computed
2069ac_fn_c_compute_int ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  if test "$cross_compiling" = yes; then
2073    # Depending upon the size, compute the lo and hi bounds.
2074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) >= 0)];
2081test_array [0] = 0;
2082return test_array [0];
2083
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089  ac_lo=0 ac_mid=0
2090  while :; do
2091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098test_array [0] = 0;
2099return test_array [0];
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  ac_hi=$ac_mid; break
2107else
2108  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109			if test $ac_lo -le $ac_mid; then
2110			  ac_lo= ac_hi=
2111			  break
2112			fi
2113			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116  done
2117else
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) < 0)];
2125test_array [0] = 0;
2126return test_array [0];
2127
2128  ;
2129  return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133  ac_hi=-1 ac_mid=-1
2134  while :; do
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2142test_array [0] = 0;
2143return test_array [0];
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_lo=$ac_mid; break
2151else
2152  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153			if test $ac_mid -le $ac_hi; then
2154			  ac_lo= ac_hi=
2155			  break
2156			fi
2157			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160  done
2161else
2162  ac_lo= ac_hi=
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167# Binary search between lo and hi bounds.
2168while test "x$ac_lo" != "x$ac_hi"; do
2169  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177test_array [0] = 0;
2178return test_array [0];
2179
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185  ac_hi=$ac_mid
2186else
2187  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190done
2191case $ac_lo in #((
2192?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193'') ac_retval=1 ;;
2194esac
2195  else
2196    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h.  */
2198$4
2199static long int longval () { return $2; }
2200static unsigned long int ulongval () { return $2; }
2201#include <stdio.h>
2202#include <stdlib.h>
2203int
2204main ()
2205{
2206
2207  FILE *f = fopen ("conftest.val", "w");
2208  if (! f)
2209    return 1;
2210  if (($2) < 0)
2211    {
2212      long int i = longval ();
2213      if (i != ($2))
2214	return 1;
2215      fprintf (f, "%ld", i);
2216    }
2217  else
2218    {
2219      unsigned long int i = ulongval ();
2220      if (i != ($2))
2221	return 1;
2222      fprintf (f, "%lu", i);
2223    }
2224  /* Do not output a trailing newline, as this causes \r\n confusion
2225     on some platforms.  */
2226  return ferror (f) || fclose (f) != 0;
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_run "$LINENO"; then :
2233  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234else
2235  ac_retval=1
2236fi
2237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2238  conftest.$ac_objext conftest.beam conftest.$ac_ext
2239rm -f conftest.val
2240
2241  fi
2242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243  as_fn_set_status $ac_retval
2244
2245} # ac_fn_c_compute_int
2246
2247# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2248# -------------------------------------------
2249# Tests whether TYPE exists after having included INCLUDES, setting cache
2250# variable VAR accordingly.
2251ac_fn_c_check_type ()
2252{
2253  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255$as_echo_n "checking for $2... " >&6; }
2256if eval \${$3+:} false; then :
2257  $as_echo_n "(cached) " >&6
2258else
2259  eval "$3=no"
2260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h.  */
2262$4
2263int
2264main ()
2265{
2266if (sizeof ($2))
2267	 return 0;
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h.  */
2275$4
2276int
2277main ()
2278{
2279if (sizeof (($2)))
2280	    return 0;
2281  ;
2282  return 0;
2283}
2284_ACEOF
2285if ac_fn_c_try_compile "$LINENO"; then :
2286
2287else
2288  eval "$3=yes"
2289fi
2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293fi
2294eval ac_res=\$$3
2295	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296$as_echo "$ac_res" >&6; }
2297  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298
2299} # ac_fn_c_check_type
2300cat >config.log <<_ACEOF
2301This file contains any messages produced by compilers while
2302running configure, to aid debugging if configure makes a mistake.
2303
2304It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2305generated by GNU Autoconf 2.69.  Invocation command line was
2306
2307  $ $0 $@
2308
2309_ACEOF
2310exec 5>>config.log
2311{
2312cat <<_ASUNAME
2313## --------- ##
2314## Platform. ##
2315## --------- ##
2316
2317hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322
2323/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2325
2326/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2327/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2328/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2330/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2331/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2332/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2333
2334_ASUNAME
2335
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341    $as_echo "PATH: $as_dir"
2342  done
2343IFS=$as_save_IFS
2344
2345} >&5
2346
2347cat >&5 <<_ACEOF
2348
2349
2350## ----------- ##
2351## Core tests. ##
2352## ----------- ##
2353
2354_ACEOF
2355
2356
2357# Keep a trace of the command line.
2358# Strip out --no-create and --no-recursion so they do not pile up.
2359# Strip out --silent because we don't want to record it for future runs.
2360# Also quote any args containing shell meta-characters.
2361# Make two passes to allow for proper duplicate-argument suppression.
2362ac_configure_args=
2363ac_configure_args0=
2364ac_configure_args1=
2365ac_must_keep_next=false
2366for ac_pass in 1 2
2367do
2368  for ac_arg
2369  do
2370    case $ac_arg in
2371    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373    | -silent | --silent | --silen | --sile | --sil)
2374      continue ;;
2375    *\'*)
2376      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377    esac
2378    case $ac_pass in
2379    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380    2)
2381      as_fn_append ac_configure_args1 " '$ac_arg'"
2382      if test $ac_must_keep_next = true; then
2383	ac_must_keep_next=false # Got value, back to normal.
2384      else
2385	case $ac_arg in
2386	  *=* | --config-cache | -C | -disable-* | --disable-* \
2387	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389	  | -with-* | --with-* | -without-* | --without-* | --x)
2390	    case "$ac_configure_args0 " in
2391	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392	    esac
2393	    ;;
2394	  -* ) ac_must_keep_next=true ;;
2395	esac
2396      fi
2397      as_fn_append ac_configure_args " '$ac_arg'"
2398      ;;
2399    esac
2400  done
2401done
2402{ ac_configure_args0=; unset ac_configure_args0;}
2403{ ac_configure_args1=; unset ac_configure_args1;}
2404
2405# When interrupted or exit'd, cleanup temporary files, and complete
2406# config.log.  We remove comments because anyway the quotes in there
2407# would cause problems or look ugly.
2408# WARNING: Use '\'' to represent an apostrophe within the trap.
2409# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410trap 'exit_status=$?
2411  # Save into config.log some information that might help in debugging.
2412  {
2413    echo
2414
2415    $as_echo "## ---------------- ##
2416## Cache variables. ##
2417## ---------------- ##"
2418    echo
2419    # The following way of writing the cache mishandles newlines in values,
2420(
2421  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422    eval ac_val=\$$ac_var
2423    case $ac_val in #(
2424    *${as_nl}*)
2425      case $ac_var in #(
2426      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428      esac
2429      case $ac_var in #(
2430      _ | IFS | as_nl) ;; #(
2431      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432      *) { eval $ac_var=; unset $ac_var;} ;;
2433      esac ;;
2434    esac
2435  done
2436  (set) 2>&1 |
2437    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438    *${as_nl}ac_space=\ *)
2439      sed -n \
2440	"s/'\''/'\''\\\\'\'''\''/g;
2441	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442      ;; #(
2443    *)
2444      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445      ;;
2446    esac |
2447    sort
2448)
2449    echo
2450
2451    $as_echo "## ----------------- ##
2452## Output variables. ##
2453## ----------------- ##"
2454    echo
2455    for ac_var in $ac_subst_vars
2456    do
2457      eval ac_val=\$$ac_var
2458      case $ac_val in
2459      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460      esac
2461      $as_echo "$ac_var='\''$ac_val'\''"
2462    done | sort
2463    echo
2464
2465    if test -n "$ac_subst_files"; then
2466      $as_echo "## ------------------- ##
2467## File substitutions. ##
2468## ------------------- ##"
2469      echo
2470      for ac_var in $ac_subst_files
2471      do
2472	eval ac_val=\$$ac_var
2473	case $ac_val in
2474	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475	esac
2476	$as_echo "$ac_var='\''$ac_val'\''"
2477      done | sort
2478      echo
2479    fi
2480
2481    if test -s confdefs.h; then
2482      $as_echo "## ----------- ##
2483## confdefs.h. ##
2484## ----------- ##"
2485      echo
2486      cat confdefs.h
2487      echo
2488    fi
2489    test "$ac_signal" != 0 &&
2490      $as_echo "$as_me: caught signal $ac_signal"
2491    $as_echo "$as_me: exit $exit_status"
2492  } >&5
2493  rm -f core *.core core.conftest.* &&
2494    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495    exit $exit_status
2496' 0
2497for ac_signal in 1 2 13 15; do
2498  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499done
2500ac_signal=0
2501
2502# confdefs.h avoids OS command line length limits that DEFS can exceed.
2503rm -f -r conftest* confdefs.h
2504
2505$as_echo "/* confdefs.h */" > confdefs.h
2506
2507# Predefined preprocessor variables.
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_NAME "$PACKAGE_NAME"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515_ACEOF
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_VERSION "$PACKAGE_VERSION"
2519_ACEOF
2520
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_STRING "$PACKAGE_STRING"
2523_ACEOF
2524
2525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527_ACEOF
2528
2529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_URL "$PACKAGE_URL"
2531_ACEOF
2532
2533
2534# Let the site file select an alternate cache file if it wants to.
2535# Prefer an explicitly selected file to automatically selected ones.
2536ac_site_file1=NONE
2537ac_site_file2=NONE
2538if test -n "$CONFIG_SITE"; then
2539  # We do not want a PATH search for config.site.
2540  case $CONFIG_SITE in #((
2541    -*)  ac_site_file1=./$CONFIG_SITE;;
2542    */*) ac_site_file1=$CONFIG_SITE;;
2543    *)   ac_site_file1=./$CONFIG_SITE;;
2544  esac
2545elif test "x$prefix" != xNONE; then
2546  ac_site_file1=$prefix/share/config.site
2547  ac_site_file2=$prefix/etc/config.site
2548else
2549  ac_site_file1=$ac_default_prefix/share/config.site
2550  ac_site_file2=$ac_default_prefix/etc/config.site
2551fi
2552for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2553do
2554  test "x$ac_site_file" = xNONE && continue
2555  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2556    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558    sed 's/^/| /' "$ac_site_file" >&5
2559    . "$ac_site_file" \
2560      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562as_fn_error $? "failed to load site script $ac_site_file
2563See \`config.log' for more details" "$LINENO" 5; }
2564  fi
2565done
2566
2567if test -r "$cache_file"; then
2568  # Some versions of bash will fail to source /dev/null (special files
2569  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2570  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572$as_echo "$as_me: loading cache $cache_file" >&6;}
2573    case $cache_file in
2574      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575      *)                      . "./$cache_file";;
2576    esac
2577  fi
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580$as_echo "$as_me: creating cache $cache_file" >&6;}
2581  >$cache_file
2582fi
2583
2584as_fn_append ac_header_list " unistd.h"
2585as_fn_append ac_func_list " secure_getenv"
2586as_fn_append ac_func_list " __secure_getenv"
2587as_fn_append ac_func_list " getuid"
2588as_fn_append ac_func_list " geteuid"
2589as_fn_append ac_func_list " getgid"
2590as_fn_append ac_func_list " getegid"
2591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
2594for ac_var in $ac_precious_vars; do
2595  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596  eval ac_new_set=\$ac_env_${ac_var}_set
2597  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598  eval ac_new_val=\$ac_env_${ac_var}_value
2599  case $ac_old_set,$ac_new_set in
2600    set,)
2601      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,set)
2605      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607      ac_cache_corrupted=: ;;
2608    ,);;
2609    *)
2610      if test "x$ac_old_val" != "x$ac_new_val"; then
2611	# differences in whitespace do not lead to failure.
2612	ac_old_val_w=`echo x $ac_old_val`
2613	ac_new_val_w=`echo x $ac_new_val`
2614	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617	  ac_cache_corrupted=:
2618	else
2619	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621	  eval $ac_var=\$ac_old_val
2622	fi
2623	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2624$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2625	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2626$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2627      fi;;
2628  esac
2629  # Pass precious variables to config.status.
2630  if test "$ac_new_set" = set; then
2631    case $ac_new_val in
2632    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633    *) ac_arg=$ac_var=$ac_new_val ;;
2634    esac
2635    case " $ac_configure_args " in
2636      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2637      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638    esac
2639  fi
2640done
2641if $ac_cache_corrupted; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647fi
2648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
2651
2652ac_ext=c
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660
2661
2662ac_config_headers="$ac_config_headers config.h"
2663
2664
2665# -------
2666# Options
2667# -------
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2670$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2671 # Check whether --enable-version-specific-runtime-libs was given.
2672if test "${enable_version_specific_runtime_libs+set}" = set; then :
2673  enableval=$enable_version_specific_runtime_libs;
2674      case "$enableval" in
2675       yes|no) ;;
2676       *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2677                          esac
2678
2679else
2680  enable_version_specific_runtime_libs=no
2681fi
2682
2683
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2685$as_echo "$enable_version_specific_runtime_libs" >&6; }
2686
2687# We would like our source tree to be readonly. However when releases or
2688# pre-releases are generated, the flex/bison generated files as well as the
2689# various formats of manuals need to be included along with the rest of the
2690# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2691# just that.
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2693$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2694 # Check whether --enable-generated-files-in-srcdir was given.
2695if test "${enable_generated_files_in_srcdir+set}" = set; then :
2696  enableval=$enable_generated_files_in_srcdir;
2697      case "$enableval" in
2698       yes|no) ;;
2699       *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2700                          esac
2701
2702else
2703  enable_generated_files_in_srcdir=no
2704fi
2705
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2708$as_echo "$enable_generated_files_in_srcdir" >&6; }
2709 if test "$enable_generated_files_in_srcdir" = yes; then
2710  GENINSRC_TRUE=
2711  GENINSRC_FALSE='#'
2712else
2713  GENINSRC_TRUE='#'
2714  GENINSRC_FALSE=
2715fi
2716
2717
2718
2719# -------
2720# -------
2721
2722# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2723#
2724# You will slowly go insane if you do not grok the following fact:  when
2725# building this library, the top-level /target/ becomes the library's /host/.
2726#
2727# configure then causes --target to default to --host, exactly like any
2728# other package using autoconf.  Therefore, 'target' and 'host' will
2729# always be the same.  This makes sense both for native and cross compilers
2730# just think about it for a little while.  :-)
2731#
2732# Also, if this library is being configured as part of a cross compiler, the
2733# top-level configure script will pass the "real" host as $with_cross_host.
2734#
2735# Do not delete or change the following two lines.  For why, see
2736# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739  if test -f "$ac_dir/install-sh"; then
2740    ac_aux_dir=$ac_dir
2741    ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2742    break
2743  elif test -f "$ac_dir/install.sh"; then
2744    ac_aux_dir=$ac_dir
2745    ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2746    break
2747  elif test -f "$ac_dir/shtool"; then
2748    ac_aux_dir=$ac_dir
2749    ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2750    break
2751  fi
2752done
2753if test -z "$ac_aux_dir"; then
2754  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2755fi
2756
2757# These three variables are undocumented and unsupported,
2758# and are intended to be withdrawn in a future Autoconf release.
2759# They can cause serious problems if a builder's source tree is in a directory
2760# whose full name contains unusual characters.
2761ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2762ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2763ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2764
2765
2766# Make sure we can run config.sub.
2767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771$as_echo_n "checking build system type... " >&6; }
2772if ${ac_cv_build+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
2779  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785$as_echo "$ac_cv_build" >&6; }
2786case $ac_cv_build in
2787*-*-*) ;;
2788*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789esac
2790build=$ac_cv_build
2791ac_save_IFS=$IFS; IFS='-'
2792set x $ac_cv_build
2793shift
2794build_cpu=$1
2795build_vendor=$2
2796shift; shift
2797# Remember, the first character of IFS is used to create $*,
2798# except with old shells:
2799build_os=$*
2800IFS=$ac_save_IFS
2801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802
2803
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805$as_echo_n "checking host system type... " >&6; }
2806if ${ac_cv_host+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test "x$host_alias" = x; then
2810  ac_cv_host=$ac_cv_build
2811else
2812  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814fi
2815
2816fi
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818$as_echo "$ac_cv_host" >&6; }
2819case $ac_cv_host in
2820*-*-*) ;;
2821*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822esac
2823host=$ac_cv_host
2824ac_save_IFS=$IFS; IFS='-'
2825set x $ac_cv_host
2826shift
2827host_cpu=$1
2828host_vendor=$2
2829shift; shift
2830# Remember, the first character of IFS is used to create $*,
2831# except with old shells:
2832host_os=$*
2833IFS=$ac_save_IFS
2834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2838$as_echo_n "checking target system type... " >&6; }
2839if ${ac_cv_target+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test "x$target_alias" = x; then
2843  ac_cv_target=$ac_cv_host
2844else
2845  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2846    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847fi
2848
2849fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2851$as_echo "$ac_cv_target" >&6; }
2852case $ac_cv_target in
2853*-*-*) ;;
2854*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2855esac
2856target=$ac_cv_target
2857ac_save_IFS=$IFS; IFS='-'
2858set x $ac_cv_target
2859shift
2860target_cpu=$1
2861target_vendor=$2
2862shift; shift
2863# Remember, the first character of IFS is used to create $*,
2864# except with old shells:
2865target_os=$*
2866IFS=$ac_save_IFS
2867case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2868
2869
2870# The aliases save the names the user supplied, while $host etc.
2871# will get canonicalized.
2872test -n "$target_alias" &&
2873  test "$program_prefix$program_suffix$program_transform_name" = \
2874    NONENONEs,x,x, &&
2875  program_prefix=${target_alias}-
2876
2877target_alias=${target_alias-$host_alias}
2878
2879# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2880# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2881#  1.9.0:  minimum required version
2882#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2883#              of other PACKAGE_* variables will, however, and there's nothing
2884#              we can do about that; they come from AC_INIT).
2885#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2886#            file in the top srcdir, etc, etc), so stop complaining.
2887#  no-dist:  we don't want 'dist' and related rules.
2888#  -Wall:  turns on all automake warnings...
2889#  -Wno-portability:  ...except this one, since GNU make is required.
2890#  -Wno-override: ... and this one, since we do want this in testsuite.
2891am__api_version='1.15'
2892
2893# Find a good install program.  We prefer a C program (faster),
2894# so one script is as good as another.  But avoid the broken or
2895# incompatible versions:
2896# SysV /etc/install, /usr/sbin/install
2897# SunOS /usr/etc/install
2898# IRIX /sbin/install
2899# AIX /bin/install
2900# AmigaOS /C/install, which installs bootblocks on floppy discs
2901# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904# OS/2's system install, which has a completely different semantic
2905# ./install, which can be erroneously created by make from ./install.sh.
2906# Reject install programs that cannot install multiple files.
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2908$as_echo_n "checking for a BSD-compatible install... " >&6; }
2909if test -z "$INSTALL"; then
2910if ${ac_cv_path_install+:} false; then :
2911  $as_echo_n "(cached) " >&6
2912else
2913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    # Account for people who put trailing slashes in PATH elements.
2919case $as_dir/ in #((
2920  ./ | .// | /[cC]/* | \
2921  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2922  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2923  /usr/ucb/* ) ;;
2924  *)
2925    # OSF1 and SCO ODT 3.0 have their own names for install.
2926    # Don't use installbsd from OSF since it installs stuff as root
2927    # by default.
2928    for ac_prog in ginstall scoinst install; do
2929      for ac_exec_ext in '' $ac_executable_extensions; do
2930	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2931	  if test $ac_prog = install &&
2932	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933	    # AIX install.  It has an incompatible calling convention.
2934	    :
2935	  elif test $ac_prog = install &&
2936	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937	    # program-specific install script used by HP pwplus--don't use.
2938	    :
2939	  else
2940	    rm -rf conftest.one conftest.two conftest.dir
2941	    echo one > conftest.one
2942	    echo two > conftest.two
2943	    mkdir conftest.dir
2944	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2945	      test -s conftest.one && test -s conftest.two &&
2946	      test -s conftest.dir/conftest.one &&
2947	      test -s conftest.dir/conftest.two
2948	    then
2949	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2950	      break 3
2951	    fi
2952	  fi
2953	fi
2954      done
2955    done
2956    ;;
2957esac
2958
2959  done
2960IFS=$as_save_IFS
2961
2962rm -rf conftest.one conftest.two conftest.dir
2963
2964fi
2965  if test "${ac_cv_path_install+set}" = set; then
2966    INSTALL=$ac_cv_path_install
2967  else
2968    # As a last resort, use the slow shell script.  Don't cache a
2969    # value for INSTALL within a source directory, because that will
2970    # break other packages using the cache if that directory is
2971    # removed, or if the value is a relative name.
2972    INSTALL=$ac_install_sh
2973  fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976$as_echo "$INSTALL" >&6; }
2977
2978# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979# It thinks the first close brace ends the variable substitution.
2980test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981
2982test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983
2984test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2987$as_echo_n "checking whether build environment is sane... " >&6; }
2988# Reject unsafe characters in $srcdir or the absolute working directory
2989# name.  Accept space and tab only in the latter.
2990am_lf='
2991'
2992case `pwd` in
2993  *[\\\"\#\$\&\'\`$am_lf]*)
2994    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2995esac
2996case $srcdir in
2997  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2998    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2999esac
3000
3001# Do 'set' in a subshell so we don't clobber the current shell's
3002# arguments.  Must try -L first in case configure is actually a
3003# symlink; some systems play weird games with the mod time of symlinks
3004# (eg FreeBSD returns the mod time of the symlink's containing
3005# directory).
3006if (
3007   am_has_slept=no
3008   for am_try in 1 2; do
3009     echo "timestamp, slept: $am_has_slept" > conftest.file
3010     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3011     if test "$*" = "X"; then
3012	# -L didn't work.
3013	set X `ls -t "$srcdir/configure" conftest.file`
3014     fi
3015     if test "$*" != "X $srcdir/configure conftest.file" \
3016	&& test "$*" != "X conftest.file $srcdir/configure"; then
3017
3018	# If neither matched, then we have a broken ls.  This can happen
3019	# if, for instance, CONFIG_SHELL is bash and it inherits a
3020	# broken ls alias from the environment.  This has actually
3021	# happened.  Such a system could not be considered "sane".
3022	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3023  alias in your environment" "$LINENO" 5
3024     fi
3025     if test "$2" = conftest.file || test $am_try -eq 2; then
3026       break
3027     fi
3028     # Just in case.
3029     sleep 1
3030     am_has_slept=yes
3031   done
3032   test "$2" = conftest.file
3033   )
3034then
3035   # Ok.
3036   :
3037else
3038   as_fn_error $? "newly created file is older than distributed files!
3039Check your system clock" "$LINENO" 5
3040fi
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042$as_echo "yes" >&6; }
3043# If we didn't sleep, we still need to ensure time stamps of config.status and
3044# generated files are strictly newer.
3045am_sleep_pid=
3046if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3047  ( sleep 1 ) &
3048  am_sleep_pid=$!
3049fi
3050
3051rm -f conftest.file
3052
3053test "$program_prefix" != NONE &&
3054  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3055# Use a double $ so make ignores it.
3056test "$program_suffix" != NONE &&
3057  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3058# Double any \ or $.
3059# By default was `s,x,x', remove it if useless.
3060ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3061program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3062
3063# Expand $ac_aux_dir to an absolute path.
3064am_aux_dir=`cd "$ac_aux_dir" && pwd`
3065
3066if test x"${MISSING+set}" != xset; then
3067  case $am_aux_dir in
3068  *\ * | *\	*)
3069    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3070  *)
3071    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3072  esac
3073fi
3074# Use eval to expand $SHELL
3075if eval "$MISSING --is-lightweight"; then
3076  am_missing_run="$MISSING "
3077else
3078  am_missing_run=
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3081fi
3082
3083if test x"${install_sh+set}" != xset; then
3084  case $am_aux_dir in
3085  *\ * | *\	*)
3086    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087  *)
3088    install_sh="\${SHELL} $am_aux_dir/install-sh"
3089  esac
3090fi
3091
3092# Installed binaries are usually stripped using 'strip' when the user
3093# run "make install-strip".  However 'strip' might not be the right
3094# tool to use in cross-compilation environments, therefore Automake
3095# will honor the 'STRIP' environment variable to overrule this program.
3096if test "$cross_compiling" != no; then
3097  if test -n "$ac_tool_prefix"; then
3098  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}strip; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if ${ac_cv_prog_STRIP+:} false; then :
3103  $as_echo_n "(cached) " >&6
3104else
3105  if test -n "$STRIP"; then
3106  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111  IFS=$as_save_IFS
3112  test -z "$as_dir" && as_dir=.
3113    for ac_exec_ext in '' $ac_executable_extensions; do
3114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117    break 2
3118  fi
3119done
3120  done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125STRIP=$ac_cv_prog_STRIP
3126if test -n "$STRIP"; then
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128$as_echo "$STRIP" >&6; }
3129else
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135fi
3136if test -z "$ac_cv_prog_STRIP"; then
3137  ac_ct_STRIP=$STRIP
3138  # Extract the first word of "strip", so it can be a program name with args.
3139set dummy strip; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  if test -n "$ac_ct_STRIP"; then
3146  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153    for ac_exec_ext in '' $ac_executable_extensions; do
3154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155    ac_cv_prog_ac_ct_STRIP="strip"
3156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160  done
3161IFS=$as_save_IFS
3162
3163fi
3164fi
3165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3166if test -n "$ac_ct_STRIP"; then
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3168$as_echo "$ac_ct_STRIP" >&6; }
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174  if test "x$ac_ct_STRIP" = x; then
3175    STRIP=":"
3176  else
3177    case $cross_compiling:$ac_tool_warned in
3178yes:)
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181ac_tool_warned=yes ;;
3182esac
3183    STRIP=$ac_ct_STRIP
3184  fi
3185else
3186  STRIP="$ac_cv_prog_STRIP"
3187fi
3188
3189fi
3190INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3191
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3193$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3194if test -z "$MKDIR_P"; then
3195  if ${ac_cv_path_mkdir+:} false; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_prog in mkdir gmkdir; do
3204	 for ac_exec_ext in '' $ac_executable_extensions; do
3205	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3206	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3207	     'mkdir (GNU coreutils) '* | \
3208	     'mkdir (coreutils) '* | \
3209	     'mkdir (fileutils) '4.1*)
3210	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3211	       break 3;;
3212	   esac
3213	 done
3214       done
3215  done
3216IFS=$as_save_IFS
3217
3218fi
3219
3220  test -d ./--version && rmdir ./--version
3221  if test "${ac_cv_path_mkdir+set}" = set; then
3222    MKDIR_P="$ac_cv_path_mkdir -p"
3223  else
3224    # As a last resort, use the slow shell script.  Don't cache a
3225    # value for MKDIR_P within a source directory, because that will
3226    # break other packages using the cache if that directory is
3227    # removed, or if the value is a relative name.
3228    MKDIR_P="$ac_install_sh -d"
3229  fi
3230fi
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3232$as_echo "$MKDIR_P" >&6; }
3233
3234for ac_prog in gawk mawk nawk awk
3235do
3236  # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_AWK+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$AWK"; then
3244  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_prog_AWK="$ac_prog"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263AWK=$ac_cv_prog_AWK
3264if test -n "$AWK"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266$as_echo "$AWK" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273  test -n "$AWK" && break
3274done
3275
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3278set x ${MAKE-make}
3279ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3281  $as_echo_n "(cached) " >&6
3282else
3283  cat >conftest.make <<\_ACEOF
3284SHELL = /bin/sh
3285all:
3286	@echo '@@@%%%=$(MAKE)=@@@%%%'
3287_ACEOF
3288# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3289case `${MAKE-make} -f conftest.make 2>/dev/null` in
3290  *@@@%%%=?*=@@@%%%*)
3291    eval ac_cv_prog_make_${ac_make}_set=yes;;
3292  *)
3293    eval ac_cv_prog_make_${ac_make}_set=no;;
3294esac
3295rm -f conftest.make
3296fi
3297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299$as_echo "yes" >&6; }
3300  SET_MAKE=
3301else
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304  SET_MAKE="MAKE=${MAKE-make}"
3305fi
3306
3307rm -rf .tst 2>/dev/null
3308mkdir .tst 2>/dev/null
3309if test -d .tst; then
3310  am__leading_dot=.
3311else
3312  am__leading_dot=_
3313fi
3314rmdir .tst 2>/dev/null
3315
3316# Check whether --enable-silent-rules was given.
3317if test "${enable_silent_rules+set}" = set; then :
3318  enableval=$enable_silent_rules;
3319fi
3320
3321case $enable_silent_rules in # (((
3322  yes) AM_DEFAULT_VERBOSITY=0;;
3323   no) AM_DEFAULT_VERBOSITY=1;;
3324    *) AM_DEFAULT_VERBOSITY=1;;
3325esac
3326am_make=${MAKE-make}
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3328$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3329if ${am_cv_make_support_nested_variables+:} false; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  if $as_echo 'TRUE=$(BAR$(V))
3333BAR0=false
3334BAR1=true
3335V=1
3336am__doit:
3337	@$(TRUE)
3338.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3339  am_cv_make_support_nested_variables=yes
3340else
3341  am_cv_make_support_nested_variables=no
3342fi
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3345$as_echo "$am_cv_make_support_nested_variables" >&6; }
3346if test $am_cv_make_support_nested_variables = yes; then
3347    AM_V='$(V)'
3348  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3349else
3350  AM_V=$AM_DEFAULT_VERBOSITY
3351  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3352fi
3353AM_BACKSLASH='\'
3354
3355if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357  # is not polluted with repeated "-I."
3358  am__isrc=' -I$(srcdir)'
3359  # test to see if srcdir already configured
3360  if test -f $srcdir/config.status; then
3361    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362  fi
3363fi
3364
3365# test whether we have cygpath
3366if test -z "$CYGPATH_W"; then
3367  if (cygpath --version) >/dev/null 2>/dev/null; then
3368    CYGPATH_W='cygpath -w'
3369  else
3370    CYGPATH_W=echo
3371  fi
3372fi
3373
3374
3375# Define the identity of the package.
3376 PACKAGE='libgomp'
3377 VERSION='1.0'
3378
3379
3380cat >>confdefs.h <<_ACEOF
3381#define PACKAGE "$PACKAGE"
3382_ACEOF
3383
3384
3385cat >>confdefs.h <<_ACEOF
3386#define VERSION "$VERSION"
3387_ACEOF
3388
3389# Some tools Automake needs.
3390
3391ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3392
3393
3394AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3395
3396
3397AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3398
3399
3400AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3401
3402
3403MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3404
3405# For better backward compatibility.  To be removed once Automake 1.9.x
3406# dies out for good.  For more background, see:
3407# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3408# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3409mkdir_p='$(MKDIR_P)'
3410
3411# We need awk for the "check" target (and possibly the TAP driver).  The
3412# system "awk" is bad on some platforms.
3413# Always define AMTAR for backward compatibility.  Yes, it's still used
3414# in the wild :-(  We should find a proper way to deprecate it ...
3415AMTAR='$${TAR-tar}'
3416
3417
3418# We'll loop over all known methods to create a tar archive until one works.
3419_am_tools='gnutar  pax cpio none'
3420
3421am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3422
3423
3424
3425
3426
3427
3428# POSIX will say in a future version that running "rm -f" with no argument
3429# is OK; and we want to be able to make that assumption in our Makefile
3430# recipes.  So use an aggressive probe to check that the usage we want is
3431# actually supported "in the wild" to an acceptable degree.
3432# See automake bug#10828.
3433# To make any issue more visible, cause the running configure to be aborted
3434# by default if the 'rm' program in use doesn't match our expectations; the
3435# user can still override this though.
3436if rm -f && rm -fr && rm -rf; then : OK; else
3437  cat >&2 <<'END'
3438Oops!
3439
3440Your 'rm' program seems unable to run without file operands specified
3441on the command line, even when the '-f' option is present.  This is contrary
3442to the behaviour of most rm programs out there, and not conforming with
3443the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3444
3445Please tell bug-automake@gnu.org about your system, including the value
3446of your $PATH and any error possibly output before this message.  This
3447can help us improve future automake versions.
3448
3449END
3450  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3451    echo 'Configuration will proceed anyway, since you have set the' >&2
3452    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3453    echo >&2
3454  else
3455    cat >&2 <<'END'
3456Aborting the configuration process, to ensure you take notice of the issue.
3457
3458You can download and install GNU coreutils to get an 'rm' implementation
3459that behaves properly: <http://www.gnu.org/software/coreutils/>.
3460
3461If you want to complete the configuration process using your problematic
3462'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3463to "yes", and re-run configure.
3464
3465END
3466    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3467  fi
3468fi
3469
3470# Default to --enable-multilib
3471# Check whether --enable-multilib was given.
3472if test "${enable_multilib+set}" = set; then :
3473  enableval=$enable_multilib; case "$enableval" in
3474  yes) multilib=yes ;;
3475  no)  multilib=no ;;
3476  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3477 esac
3478else
3479  multilib=yes
3480fi
3481
3482
3483# We may get other options which we leave undocumented:
3484# --with-target-subdir, --with-multisrctop, --with-multisubdir
3485# See config-ml.in if you want the gory details.
3486
3487if test "$srcdir" = "."; then
3488  if test "$with_target_subdir" != "."; then
3489    multi_basedir="$srcdir/$with_multisrctop../.."
3490  else
3491    multi_basedir="$srcdir/$with_multisrctop.."
3492  fi
3493else
3494  multi_basedir="$srcdir/.."
3495fi
3496
3497
3498# Even if the default multilib is not a cross compilation,
3499# it may be that some of the other multilibs are.
3500if test $cross_compiling = no && test $multilib = yes \
3501   && test "x${with_multisubdir}" != x ; then
3502   cross_compiling=maybe
3503fi
3504
3505ac_config_commands="$ac_config_commands default-1"
3506
3507
3508
3509# Check whether --with-toolexeclibdir was given.
3510if test "${with_toolexeclibdir+set}" = set; then :
3511  withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3512  /)
3513    ;;
3514  */)
3515    with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3516    ;;
3517esac
3518else
3519  with_toolexeclibdir=no
3520fi
3521
3522
3523
3524# Calculate toolexeclibdir
3525# Also toolexecdir, though it's only used in toolexeclibdir
3526case ${enable_version_specific_runtime_libs} in
3527  yes)
3528    # Need the gcc compiler version to know where to install libraries
3529    # and header files if --enable-version-specific-runtime-libs option
3530    # is selected.
3531    toolexecdir='$(libdir)/gcc/$(target_alias)'
3532    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3533    ;;
3534  no)
3535    if test -n "$with_cross_host" &&
3536       test x"$with_cross_host" != x"no"; then
3537      # Install a library built with a cross compiler in tooldir, not libdir.
3538      toolexecdir='$(exec_prefix)/$(target_alias)'
3539      case ${with_toolexeclibdir} in
3540	no)
3541	  toolexeclibdir='$(toolexecdir)/lib'
3542	  ;;
3543	*)
3544	  toolexeclibdir=${with_toolexeclibdir}
3545	  ;;
3546      esac
3547    else
3548      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3549      toolexeclibdir='$(libdir)'
3550    fi
3551    multi_os_directory=`$CC -print-multi-os-directory`
3552    case $multi_os_directory in
3553      .) ;; # Avoid trailing /.
3554      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3555    esac
3556    ;;
3557esac
3558
3559
3560
3561# Check the compiler.
3562# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3563# We must force CC to /not/ be precious variables; otherwise
3564# the wrong, non-multilib-adjusted value will be used in multilibs.
3565# As a side effect, we have to subst CFLAGS ourselves.
3566
3567
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574if test -n "$ac_tool_prefix"; then
3575  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_CC+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -n "$CC"; then
3583  ac_cv_prog_CC="$CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605$as_echo "$CC" >&6; }
3606else
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611
3612fi
3613if test -z "$ac_cv_prog_CC"; then
3614  ac_ct_CC=$CC
3615  # Extract the first word of "gcc", so it can be a program name with args.
3616set dummy gcc; ac_word=$2
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618$as_echo_n "checking for $ac_word... " >&6; }
3619if ${ac_cv_prog_ac_ct_CC+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -n "$ac_ct_CC"; then
3623  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624else
3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH
3627do
3628  IFS=$as_save_IFS
3629  test -z "$as_dir" && as_dir=.
3630    for ac_exec_ext in '' $ac_executable_extensions; do
3631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632    ac_cv_prog_ac_ct_CC="gcc"
3633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634    break 2
3635  fi
3636done
3637  done
3638IFS=$as_save_IFS
3639
3640fi
3641fi
3642ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643if test -n "$ac_ct_CC"; then
3644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645$as_echo "$ac_ct_CC" >&6; }
3646else
3647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648$as_echo "no" >&6; }
3649fi
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
3662else
3663  CC="$ac_cv_prog_CC"
3664fi
3665
3666if test -z "$CC"; then
3667          if test -n "$ac_tool_prefix"; then
3668    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}cc; ac_word=$2
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671$as_echo_n "checking for $ac_word... " >&6; }
3672if ${ac_cv_prog_CC+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if test -n "$CC"; then
3676  ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683    for ac_exec_ext in '' $ac_executable_extensions; do
3684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685    ac_cv_prog_CC="${ac_tool_prefix}cc"
3686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687    break 2
3688  fi
3689done
3690  done
3691IFS=$as_save_IFS
3692
3693fi
3694fi
3695CC=$ac_cv_prog_CC
3696if test -n "$CC"; then
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698$as_echo "$CC" >&6; }
3699else
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701$as_echo "no" >&6; }
3702fi
3703
3704
3705  fi
3706fi
3707if test -z "$CC"; then
3708  # Extract the first word of "cc", so it can be a program name with args.
3709set dummy cc; ac_word=$2
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711$as_echo_n "checking for $ac_word... " >&6; }
3712if ${ac_cv_prog_CC+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  if test -n "$CC"; then
3716  ac_cv_prog_CC="$CC" # Let the user override the test.
3717else
3718  ac_prog_rejected=no
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722  IFS=$as_save_IFS
3723  test -z "$as_dir" && as_dir=.
3724    for ac_exec_ext in '' $ac_executable_extensions; do
3725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727       ac_prog_rejected=yes
3728       continue
3729     fi
3730    ac_cv_prog_CC="cc"
3731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732    break 2
3733  fi
3734done
3735  done
3736IFS=$as_save_IFS
3737
3738if test $ac_prog_rejected = yes; then
3739  # We found a bogon in the path, so make sure we never use it.
3740  set dummy $ac_cv_prog_CC
3741  shift
3742  if test $# != 0; then
3743    # We chose a different compiler from the bogus one.
3744    # However, it has the same basename, so the bogon will be chosen
3745    # first if we set CC to just the basename; use the full file name.
3746    shift
3747    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748  fi
3749fi
3750fi
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755$as_echo "$CC" >&6; }
3756else
3757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759fi
3760
3761
3762fi
3763if test -z "$CC"; then
3764  if test -n "$ac_tool_prefix"; then
3765  for ac_prog in cl.exe
3766  do
3767    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770$as_echo_n "checking for $ac_word... " >&6; }
3771if ${ac_cv_prog_CC+:} false; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  if test -n "$CC"; then
3775  ac_cv_prog_CC="$CC" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782    for ac_exec_ext in '' $ac_executable_extensions; do
3783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786    break 2
3787  fi
3788done
3789  done
3790IFS=$as_save_IFS
3791
3792fi
3793fi
3794CC=$ac_cv_prog_CC
3795if test -n "$CC"; then
3796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797$as_echo "$CC" >&6; }
3798else
3799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800$as_echo "no" >&6; }
3801fi
3802
3803
3804    test -n "$CC" && break
3805  done
3806fi
3807if test -z "$CC"; then
3808  ac_ct_CC=$CC
3809  for ac_prog in cl.exe
3810do
3811  # Extract the first word of "$ac_prog", so it can be a program name with args.
3812set dummy $ac_prog; ac_word=$2
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
3815if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816  $as_echo_n "(cached) " >&6
3817else
3818  if test -n "$ac_ct_CC"; then
3819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824  IFS=$as_save_IFS
3825  test -z "$as_dir" && as_dir=.
3826    for ac_exec_ext in '' $ac_executable_extensions; do
3827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828    ac_cv_prog_ac_ct_CC="$ac_prog"
3829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830    break 2
3831  fi
3832done
3833  done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839if test -n "$ac_ct_CC"; then
3840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841$as_echo "$ac_ct_CC" >&6; }
3842else
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
3845fi
3846
3847
3848  test -n "$ac_ct_CC" && break
3849done
3850
3851  if test "x$ac_ct_CC" = x; then
3852    CC=""
3853  else
3854    case $cross_compiling:$ac_tool_warned in
3855yes:)
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858ac_tool_warned=yes ;;
3859esac
3860    CC=$ac_ct_CC
3861  fi
3862fi
3863
3864fi
3865
3866
3867test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error $? "no acceptable C compiler found in \$PATH
3870See \`config.log' for more details" "$LINENO" 5; }
3871
3872# Provide some information about the compiler.
3873$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874set X $ac_compile
3875ac_compiler=$2
3876for ac_option in --version -v -V -qversion; do
3877  { { ac_try="$ac_compiler $ac_option >&5"
3878case "(($ac_try" in
3879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880  *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885  ac_status=$?
3886  if test -s conftest.err; then
3887    sed '10a\
3888... rest of stderr output deleted ...
3889         10q' conftest.err >conftest.er1
3890    cat conftest.er1 >&5
3891  fi
3892  rm -f conftest.er1 conftest.err
3893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894  test $ac_status = 0; }
3895done
3896
3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899
3900int
3901main ()
3902{
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908ac_clean_files_save=$ac_clean_files
3909ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910# Try to create an executable without -o first, disregard a.out.
3911# It will help us diagnose broken compilers, and finding out an intuition
3912# of exeext.
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914$as_echo_n "checking whether the C compiler works... " >&6; }
3915ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917# The possible output files:
3918ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920ac_rmfiles=
3921for ac_file in $ac_files
3922do
3923  case $ac_file in
3924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926  esac
3927done
3928rm -f $ac_rmfiles
3929
3930if { { ac_try="$ac_link_default"
3931case "(($ac_try" in
3932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933  *) ac_try_echo=$ac_try;;
3934esac
3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936$as_echo "$ac_try_echo"; } >&5
3937  (eval "$ac_link_default") 2>&5
3938  ac_status=$?
3939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940  test $ac_status = 0; }; then :
3941  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3944# so that the user can short-circuit this test for compilers unknown to
3945# Autoconf.
3946for ac_file in $ac_files ''
3947do
3948  test -f "$ac_file" || continue
3949  case $ac_file in
3950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951	;;
3952    [ab].out )
3953	# We found the default executable, but exeext='' is most
3954	# certainly right.
3955	break;;
3956    *.* )
3957	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958	then :; else
3959	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960	fi
3961	# We set ac_cv_exeext here because the later test for it is not
3962	# safe: cross compilers may not add the suffix if given an `-o'
3963	# argument, so we may need to know it at that point already.
3964	# Even if this section looks crufty: it has the advantage of
3965	# actually working.
3966	break;;
3967    * )
3968	break;;
3969  esac
3970done
3971test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973else
3974  ac_file=''
3975fi
3976if test -z "$ac_file"; then :
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979$as_echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984as_fn_error 77 "C compiler cannot create executables
3985See \`config.log' for more details" "$LINENO" 5; }
3986else
3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988$as_echo "yes" >&6; }
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991$as_echo_n "checking for C compiler default output file name... " >&6; }
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993$as_echo "$ac_file" >&6; }
3994ac_exeext=$ac_cv_exeext
3995
3996rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3997ac_clean_files=$ac_clean_files_save
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999$as_echo_n "checking for suffix of executables... " >&6; }
4000if { { ac_try="$ac_link"
4001case "(($ac_try" in
4002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003  *) ac_try_echo=$ac_try;;
4004esac
4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006$as_echo "$ac_try_echo"; } >&5
4007  (eval "$ac_link") 2>&5
4008  ac_status=$?
4009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010  test $ac_status = 0; }; then :
4011  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4013# work properly (i.e., refer to `conftest.exe'), while it won't with
4014# `rm'.
4015for ac_file in conftest.exe conftest conftest.*; do
4016  test -f "$ac_file" || continue
4017  case $ac_file in
4018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020	  break;;
4021    * ) break;;
4022  esac
4023done
4024else
4025  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028See \`config.log' for more details" "$LINENO" 5; }
4029fi
4030rm -f conftest conftest$ac_cv_exeext
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032$as_echo "$ac_cv_exeext" >&6; }
4033
4034rm -f conftest.$ac_ext
4035EXEEXT=$ac_cv_exeext
4036ac_exeext=$EXEEXT
4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <stdio.h>
4040int
4041main ()
4042{
4043FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050ac_clean_files="$ac_clean_files conftest.out"
4051# Check that the compiler produces executables we can run.  If not, either
4052# the compiler is broken, or we cross compile.
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054$as_echo_n "checking whether we are cross compiling... " >&6; }
4055if test "$cross_compiling" != yes; then
4056  { { ac_try="$ac_link"
4057case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062$as_echo "$ac_try_echo"; } >&5
4063  (eval "$ac_link") 2>&5
4064  ac_status=$?
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }
4067  if { ac_try='./conftest$ac_cv_exeext'
4068  { { case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073$as_echo "$ac_try_echo"; } >&5
4074  (eval "$ac_try") 2>&5
4075  ac_status=$?
4076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }; }; then
4078    cross_compiling=no
4079  else
4080    if test "$cross_compiling" = maybe; then
4081	cross_compiling=yes
4082    else
4083	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error $? "cannot run C compiled programs.
4086If you meant to cross compile, use \`--host'.
4087See \`config.log' for more details" "$LINENO" 5; }
4088    fi
4089  fi
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092$as_echo "$cross_compiling" >&6; }
4093
4094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095ac_clean_files=$ac_clean_files_save
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097$as_echo_n "checking for suffix of object files... " >&6; }
4098if ${ac_cv_objext+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.o conftest.obj
4113if { { ac_try="$ac_compile"
4114case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119$as_echo "$ac_try_echo"; } >&5
4120  (eval "$ac_compile") 2>&5
4121  ac_status=$?
4122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123  test $ac_status = 0; }; then :
4124  for ac_file in conftest.o conftest.obj conftest.*; do
4125  test -f "$ac_file" || continue;
4126  case $ac_file in
4127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129       break;;
4130  esac
4131done
4132else
4133  $as_echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138as_fn_error $? "cannot compute suffix of object files: cannot compile
4139See \`config.log' for more details" "$LINENO" 5; }
4140fi
4141rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144$as_echo "$ac_cv_objext" >&6; }
4145OBJEXT=$ac_cv_objext
4146ac_objext=$OBJEXT
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149if ${ac_cv_c_compiler_gnu+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h.  */
4154
4155int
4156main ()
4157{
4158#ifndef __GNUC__
4159       choke me
4160#endif
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"; then :
4167  ac_compiler_gnu=yes
4168else
4169  ac_compiler_gnu=no
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174fi
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177if test $ac_compiler_gnu = yes; then
4178  GCC=yes
4179else
4180  GCC=
4181fi
4182ac_test_CFLAGS=${CFLAGS+set}
4183ac_save_CFLAGS=$CFLAGS
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185$as_echo_n "checking whether $CC accepts -g... " >&6; }
4186if ${ac_cv_prog_cc_g+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  ac_save_c_werror_flag=$ac_c_werror_flag
4190   ac_c_werror_flag=yes
4191   ac_cv_prog_cc_g=no
4192   CFLAGS="-g"
4193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195
4196int
4197main ()
4198{
4199
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204if ac_fn_c_try_compile "$LINENO"; then :
4205  ac_cv_prog_cc_g=yes
4206else
4207  CFLAGS=""
4208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211int
4212main ()
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219if ac_fn_c_try_compile "$LINENO"; then :
4220
4221else
4222  ac_c_werror_flag=$ac_save_c_werror_flag
4223	 CFLAGS="-g"
4224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236  ac_cv_prog_cc_g=yes
4237fi
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243   ac_c_werror_flag=$ac_save_c_werror_flag
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246$as_echo "$ac_cv_prog_cc_g" >&6; }
4247if test "$ac_test_CFLAGS" = set; then
4248  CFLAGS=$ac_save_CFLAGS
4249elif test $ac_cv_prog_cc_g = yes; then
4250  if test "$GCC" = yes; then
4251    CFLAGS="-g -O2"
4252  else
4253    CFLAGS="-g"
4254  fi
4255else
4256  if test "$GCC" = yes; then
4257    CFLAGS="-O2"
4258  else
4259    CFLAGS=
4260  fi
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264if ${ac_cv_prog_cc_c89+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  ac_cv_prog_cc_c89=no
4268ac_save_CC=$CC
4269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#include <stdarg.h>
4272#include <stdio.h>
4273struct stat;
4274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4275struct buf { int x; };
4276FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277static char *e (p, i)
4278     char **p;
4279     int i;
4280{
4281  return p[i];
4282}
4283static char *f (char * (*g) (char **, int), char **p, ...)
4284{
4285  char *s;
4286  va_list v;
4287  va_start (v,p);
4288  s = g (p, va_arg (v,int));
4289  va_end (v);
4290  return s;
4291}
4292
4293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4294   function prototypes and stuff, but not '\xHH' hex character constants.
4295   These don't provoke an error unfortunately, instead are silently treated
4296   as 'x'.  The following induces an error, until -std is added to get
4297   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4298   array size at least.  It's necessary to write '\x00'==0 to get something
4299   that's true only with -std.  */
4300int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303   inside strings and character constants.  */
4304#define FOO(x) 'x'
4305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307int test (int i, double x);
4308struct s1 {int (*f) (int a);};
4309struct s2 {int (*f) (double a);};
4310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311int argc;
4312char **argv;
4313int
4314main ()
4315{
4316return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323do
4324  CC="$ac_save_CC $ac_arg"
4325  if ac_fn_c_try_compile "$LINENO"; then :
4326  ac_cv_prog_cc_c89=$ac_arg
4327fi
4328rm -f core conftest.err conftest.$ac_objext
4329  test "x$ac_cv_prog_cc_c89" != "xno" && break
4330done
4331rm -f conftest.$ac_ext
4332CC=$ac_save_CC
4333
4334fi
4335# AC_CACHE_VAL
4336case "x$ac_cv_prog_cc_c89" in
4337  x)
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339$as_echo "none needed" >&6; } ;;
4340  xno)
4341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342$as_echo "unsupported" >&6; } ;;
4343  *)
4344    CC="$CC $ac_cv_prog_cc_c89"
4345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347esac
4348if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350fi
4351
4352ac_ext=c
4353ac_cpp='$CPP $CPPFLAGS'
4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358ac_ext=c
4359ac_cpp='$CPP $CPPFLAGS'
4360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365if ${am_cv_prog_cc_c_o+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370
4371int
4372main ()
4373{
4374
4375  ;
4376  return 0;
4377}
4378_ACEOF
4379  # Make sure it works both with $CC and with simple cc.
4380  # Following AC_PROG_CC_C_O, we do the test twice because some
4381  # compilers refuse to overwrite an existing .o file with -o,
4382  # though they will create one.
4383  am_cv_prog_cc_c_o=yes
4384  for am_i in 1 2; do
4385    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } \
4390         && test -f conftest2.$ac_objext; then
4391      : OK
4392    else
4393      am_cv_prog_cc_c_o=no
4394      break
4395    fi
4396  done
4397  rm -f core conftest*
4398  unset am_i
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401$as_echo "$am_cv_prog_cc_c_o" >&6; }
4402if test "$am_cv_prog_cc_c_o" != yes; then
4403   # Losing compiler, so override with the script.
4404   # FIXME: It is wrong to rewrite CC.
4405   # But if we don't then we get into trouble of one sort or another.
4406   # A longer-term fix would be to have automake use am__CC in this case,
4407   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408   CC="$am_aux_dir/compile $CC"
4409fi
4410ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416DEPDIR="${am__leading_dot}deps"
4417
4418ac_config_commands="$ac_config_commands depfiles"
4419
4420
4421am_make=${MAKE-make}
4422cat > confinc << 'END'
4423am__doit:
4424	@echo this is the am__doit target
4425.PHONY: am__doit
4426END
4427# If we don't find an include directive, just comment out the code.
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4429$as_echo_n "checking for style of include used by $am_make... " >&6; }
4430am__include="#"
4431am__quote=
4432_am_result=none
4433# First try GNU make style include.
4434echo "include confinc" > confmf
4435# Ignore all kinds of additional output from 'make'.
4436case `$am_make -s -f confmf 2> /dev/null` in #(
4437*the\ am__doit\ target*)
4438  am__include=include
4439  am__quote=
4440  _am_result=GNU
4441  ;;
4442esac
4443# Now try BSD make style include.
4444if test "$am__include" = "#"; then
4445   echo '.include "confinc"' > confmf
4446   case `$am_make -s -f confmf 2> /dev/null` in #(
4447   *the\ am__doit\ target*)
4448     am__include=.include
4449     am__quote="\""
4450     _am_result=BSD
4451     ;;
4452   esac
4453fi
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4457$as_echo "$_am_result" >&6; }
4458rm -f confinc confmf
4459
4460# Check whether --enable-dependency-tracking was given.
4461if test "${enable_dependency_tracking+set}" = set; then :
4462  enableval=$enable_dependency_tracking;
4463fi
4464
4465if test "x$enable_dependency_tracking" != xno; then
4466  am_depcomp="$ac_aux_dir/depcomp"
4467  AMDEPBACKSLASH='\'
4468  am__nodep='_no'
4469fi
4470 if test "x$enable_dependency_tracking" != xno; then
4471  AMDEP_TRUE=
4472  AMDEP_FALSE='#'
4473else
4474  AMDEP_TRUE='#'
4475  AMDEP_FALSE=
4476fi
4477
4478
4479
4480depcc="$CC"   am_compiler_list=
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483$as_echo_n "checking dependency style of $depcc... " >&6; }
4484if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485  $as_echo_n "(cached) " >&6
4486else
4487  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488  # We make a subdir and do the tests there.  Otherwise we can end up
4489  # making bogus files that we don't know about and never remove.  For
4490  # instance it was reported that on HP-UX the gcc test will end up
4491  # making a dummy file named 'D' -- because '-MD' means "put the output
4492  # in D".
4493  rm -rf conftest.dir
4494  mkdir conftest.dir
4495  # Copy depcomp to subdir because otherwise we won't find it if we're
4496  # using a relative directory.
4497  cp "$am_depcomp" conftest.dir
4498  cd conftest.dir
4499  # We will build objects and dependencies in a subdirectory because
4500  # it helps to detect inapplicable dependency modes.  For instance
4501  # both Tru64's cc and ICC support -MD to output dependencies as a
4502  # side effect of compilation, but ICC will put the dependencies in
4503  # the current directory while Tru64 will put them in the object
4504  # directory.
4505  mkdir sub
4506
4507  am_cv_CC_dependencies_compiler_type=none
4508  if test "$am_compiler_list" = ""; then
4509     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510  fi
4511  am__universal=false
4512  case " $depcc " in #(
4513     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4514     esac
4515
4516  for depmode in $am_compiler_list; do
4517    # Setup a source with many dependencies, because some compilers
4518    # like to wrap large dependency lists on column 80 (with \), and
4519    # we should not choose a depcomp mode which is confused by this.
4520    #
4521    # We need to recreate these files for each test, as the compiler may
4522    # overwrite some of them when testing with obscure command lines.
4523    # This happens at least with the AIX C compiler.
4524    : > sub/conftest.c
4525    for i in 1 2 3 4 5 6; do
4526      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528      # Solaris 10 /bin/sh.
4529      echo '/* dummy */' > sub/conftst$i.h
4530    done
4531    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534    # mode.  It turns out that the SunPro C++ compiler does not properly
4535    # handle '-M -o', and we need to detect this.  Also, some Intel
4536    # versions had trouble with output in subdirs.
4537    am__obj=sub/conftest.${OBJEXT-o}
4538    am__minus_obj="-o $am__obj"
4539    case $depmode in
4540    gcc)
4541      # This depmode causes a compiler race in universal mode.
4542      test "$am__universal" = false || continue
4543      ;;
4544    nosideeffect)
4545      # After this tag, mechanisms are not by side-effect, so they'll
4546      # only be used when explicitly requested.
4547      if test "x$enable_dependency_tracking" = xyes; then
4548	continue
4549      else
4550	break
4551      fi
4552      ;;
4553    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554      # This compiler won't grok '-c -o', but also, the minuso test has
4555      # not run yet.  These depmodes are late enough in the game, and
4556      # so weak that their functioning should not be impacted.
4557      am__obj=conftest.${OBJEXT-o}
4558      am__minus_obj=
4559      ;;
4560    none) break ;;
4561    esac
4562    if depmode=$depmode \
4563       source=sub/conftest.c object=$am__obj \
4564       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566         >/dev/null 2>conftest.err &&
4567       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571      # icc doesn't choke on unknown options, it will just issue warnings
4572      # or remarks (even with -Werror).  So we grep stderr for any message
4573      # that says an option was ignored or not supported.
4574      # When given -MP, icc 7.0 and 7.1 complain thusly:
4575      #   icc: Command line warning: ignoring option '-M'; no argument required
4576      # The diagnosis changed in icc 8.0:
4577      #   icc: Command line remark: option '-MP' not supported
4578      if (grep 'ignoring option' conftest.err ||
4579          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580        am_cv_CC_dependencies_compiler_type=$depmode
4581        break
4582      fi
4583    fi
4584  done
4585
4586  cd ..
4587  rm -rf conftest.dir
4588else
4589  am_cv_CC_dependencies_compiler_type=none
4590fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597 if
4598  test "x$enable_dependency_tracking" != xno \
4599  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600  am__fastdepCC_TRUE=
4601  am__fastdepCC_FALSE='#'
4602else
4603  am__fastdepCC_TRUE='#'
4604  am__fastdepCC_FALSE=
4605fi
4606
4607
4608
4609
4610
4611
4612# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4613# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4614# in both places for now and restore CFLAGS at the end of config.
4615save_CFLAGS="$CFLAGS"
4616
4617# Check whether --enable-werror was given.
4618if test "${enable_werror+set}" = set; then :
4619  enableval=$enable_werror;
4620fi
4621
4622# Add -Wall -Werror if we are using GCC.
4623if test "x$GCC" = "xyes"; then :
4624  XCFLAGS="$XCFLAGS -Wall"
4625fi
4626if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4627  XCFLAGS="$XCFLAGS -Werror"
4628fi
4629
4630# Find other programs we need.
4631if test -n "$ac_tool_prefix"; then
4632  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4633set dummy ${ac_tool_prefix}ar; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
4636if ${ac_cv_prog_AR+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  if test -n "$AR"; then
4640  ac_cv_prog_AR="$AR" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649    ac_cv_prog_AR="${ac_tool_prefix}ar"
4650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654  done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659AR=$ac_cv_prog_AR
4660if test -n "$AR"; then
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4662$as_echo "$AR" >&6; }
4663else
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668
4669fi
4670if test -z "$ac_cv_prog_AR"; then
4671  ac_ct_AR=$AR
4672  # Extract the first word of "ar", so it can be a program name with args.
4673set dummy ar; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if ${ac_cv_prog_ac_ct_AR+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  if test -n "$ac_ct_AR"; then
4680  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685  IFS=$as_save_IFS
4686  test -z "$as_dir" && as_dir=.
4687    for ac_exec_ext in '' $ac_executable_extensions; do
4688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689    ac_cv_prog_ac_ct_AR="ar"
4690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691    break 2
4692  fi
4693done
4694  done
4695IFS=$as_save_IFS
4696
4697fi
4698fi
4699ac_ct_AR=$ac_cv_prog_ac_ct_AR
4700if test -n "$ac_ct_AR"; then
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4702$as_echo "$ac_ct_AR" >&6; }
4703else
4704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706fi
4707
4708  if test "x$ac_ct_AR" = x; then
4709    AR=""
4710  else
4711    case $cross_compiling:$ac_tool_warned in
4712yes:)
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715ac_tool_warned=yes ;;
4716esac
4717    AR=$ac_ct_AR
4718  fi
4719else
4720  AR="$ac_cv_prog_AR"
4721fi
4722
4723if test -n "$ac_tool_prefix"; then
4724  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727$as_echo_n "checking for $ac_word... " >&6; }
4728if ${ac_cv_prog_RANLIB+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  if test -n "$RANLIB"; then
4732  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  test -z "$as_dir" && as_dir=.
4739    for ac_exec_ext in '' $ac_executable_extensions; do
4740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743    break 2
4744  fi
4745done
4746  done
4747IFS=$as_save_IFS
4748
4749fi
4750fi
4751RANLIB=$ac_cv_prog_RANLIB
4752if test -n "$RANLIB"; then
4753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4754$as_echo "$RANLIB" >&6; }
4755else
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757$as_echo "no" >&6; }
4758fi
4759
4760
4761fi
4762if test -z "$ac_cv_prog_RANLIB"; then
4763  ac_ct_RANLIB=$RANLIB
4764  # Extract the first word of "ranlib", so it can be a program name with args.
4765set dummy ranlib; ac_word=$2
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767$as_echo_n "checking for $ac_word... " >&6; }
4768if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  if test -n "$ac_ct_RANLIB"; then
4772  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4773else
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779    for ac_exec_ext in '' $ac_executable_extensions; do
4780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781    ac_cv_prog_ac_ct_RANLIB="ranlib"
4782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783    break 2
4784  fi
4785done
4786  done
4787IFS=$as_save_IFS
4788
4789fi
4790fi
4791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4792if test -n "$ac_ct_RANLIB"; then
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4794$as_echo "$ac_ct_RANLIB" >&6; }
4795else
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797$as_echo "no" >&6; }
4798fi
4799
4800  if test "x$ac_ct_RANLIB" = x; then
4801    RANLIB="ranlib-not-found-in-path-error"
4802  else
4803    case $cross_compiling:$ac_tool_warned in
4804yes:)
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807ac_tool_warned=yes ;;
4808esac
4809    RANLIB=$ac_ct_RANLIB
4810  fi
4811else
4812  RANLIB="$ac_cv_prog_RANLIB"
4813fi
4814
4815# Extract the first word of "perl", so it can be a program name with args.
4816set dummy perl; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_path_PERL+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  case $PERL in
4823  [\\/]* | ?:[\\/]*)
4824  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4825  ;;
4826  *)
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839  done
4840IFS=$as_save_IFS
4841
4842  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4843  ;;
4844esac
4845fi
4846PERL=$ac_cv_path_PERL
4847if test -n "$PERL"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4849$as_echo "$PERL" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4857$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4858set x ${MAKE-make}
4859ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4860if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863  cat >conftest.make <<\_ACEOF
4864SHELL = /bin/sh
4865all:
4866	@echo '@@@%%%=$(MAKE)=@@@%%%'
4867_ACEOF
4868# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4869case `${MAKE-make} -f conftest.make 2>/dev/null` in
4870  *@@@%%%=?*=@@@%%%*)
4871    eval ac_cv_prog_make_${ac_make}_set=yes;;
4872  *)
4873    eval ac_cv_prog_make_${ac_make}_set=no;;
4874esac
4875rm -f conftest.make
4876fi
4877if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879$as_echo "yes" >&6; }
4880  SET_MAKE=
4881else
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884  SET_MAKE="MAKE=${MAKE-make}"
4885fi
4886
4887
4888
4889# See if makeinfo has been installed and is modern enough
4890# that we can use it.
4891
4892  # Extract the first word of "makeinfo", so it can be a program name with args.
4893set dummy makeinfo; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_MAKEINFO+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  if test -n "$MAKEINFO"; then
4900  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909    ac_cv_prog_MAKEINFO="makeinfo"
4910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919MAKEINFO=$ac_cv_prog_MAKEINFO
4920if test -n "$MAKEINFO"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4922$as_echo "$MAKEINFO" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929  if test -n "$MAKEINFO"; then
4930    # Found it, now check the version.
4931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4932$as_echo_n "checking for modern makeinfo... " >&6; }
4933if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4937                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4938
4939                    case $ac_prog_version in
4940                      '')  gcc_cv_prog_makeinfo_modern=no;;
4941                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4942                      *)   gcc_cv_prog_makeinfo_modern=no;;
4943                    esac
4944
4945fi
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4947$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4948  else
4949    gcc_cv_prog_makeinfo_modern=no
4950  fi
4951  if test $gcc_cv_prog_makeinfo_modern = no; then
4952    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4953  fi
4954
4955 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4956  BUILD_INFO_TRUE=
4957  BUILD_INFO_FALSE='#'
4958else
4959  BUILD_INFO_TRUE='#'
4960  BUILD_INFO_FALSE=
4961fi
4962
4963
4964
4965# Configure libtool
4966case `pwd` in
4967  *\ * | *\	*)
4968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4969$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4970esac
4971
4972
4973
4974macro_version='2.2.7a'
4975macro_revision='1.3134'
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989ltmain="$ac_aux_dir/ltmain.sh"
4990
4991# Backslashify metacharacters that are still active within
4992# double-quoted strings.
4993sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4994
4995# Same as above, but do not quote variable references.
4996double_quote_subst='s/\(["`\\]\)/\\\1/g'
4997
4998# Sed substitution to delay expansion of an escaped shell variable in a
4999# double_quote_subst'ed string.
5000delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5001
5002# Sed substitution to delay expansion of an escaped single quote.
5003delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5004
5005# Sed substitution to avoid accidental globbing in evaled expressions
5006no_glob_subst='s/\*/\\\*/g'
5007
5008ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5010ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5013$as_echo_n "checking how to print strings... " >&6; }
5014# Test print first, because it will be a builtin if present.
5015if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5016   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5017  ECHO='print -r --'
5018elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5019  ECHO='printf %s\n'
5020else
5021  # Use this function as a fallback that always works.
5022  func_fallback_echo ()
5023  {
5024    eval 'cat <<_LTECHO_EOF
5025$1
5026_LTECHO_EOF'
5027  }
5028  ECHO='func_fallback_echo'
5029fi
5030
5031# func_echo_all arg...
5032# Invoke $ECHO with all args, space-separated.
5033func_echo_all ()
5034{
5035    $ECHO ""
5036}
5037
5038case "$ECHO" in
5039  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5040$as_echo "printf" >&6; } ;;
5041  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5042$as_echo "print -r" >&6; } ;;
5043  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5044$as_echo "cat" >&6; } ;;
5045esac
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5061$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5062if ${ac_cv_path_SED+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5066     for ac_i in 1 2 3 4 5 6 7; do
5067       ac_script="$ac_script$as_nl$ac_script"
5068     done
5069     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5070     { ac_script=; unset ac_script;}
5071     if test -z "$SED"; then
5072  ac_path_SED_found=false
5073  # Loop through the user's path and test for each of PROGNAME-LIST
5074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_prog in sed gsed; do
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5082      as_fn_executable_p "$ac_path_SED" || continue
5083# Check for GNU ac_path_SED and select it if it is found.
5084  # Check for GNU $ac_path_SED
5085case `"$ac_path_SED" --version 2>&1` in
5086*GNU*)
5087  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5088*)
5089  ac_count=0
5090  $as_echo_n 0123456789 >"conftest.in"
5091  while :
5092  do
5093    cat "conftest.in" "conftest.in" >"conftest.tmp"
5094    mv "conftest.tmp" "conftest.in"
5095    cp "conftest.in" "conftest.nl"
5096    $as_echo '' >> "conftest.nl"
5097    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099    as_fn_arith $ac_count + 1 && ac_count=$as_val
5100    if test $ac_count -gt ${ac_path_SED_max-0}; then
5101      # Best one so far, save it but keep looking for a better one
5102      ac_cv_path_SED="$ac_path_SED"
5103      ac_path_SED_max=$ac_count
5104    fi
5105    # 10*(2^10) chars as input seems more than enough
5106    test $ac_count -gt 10 && break
5107  done
5108  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109esac
5110
5111      $ac_path_SED_found && break 3
5112    done
5113  done
5114  done
5115IFS=$as_save_IFS
5116  if test -z "$ac_cv_path_SED"; then
5117    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5118  fi
5119else
5120  ac_cv_path_SED=$SED
5121fi
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5125$as_echo "$ac_cv_path_SED" >&6; }
5126 SED="$ac_cv_path_SED"
5127  rm -f conftest.sed
5128
5129test -z "$SED" && SED=sed
5130Xsed="$SED -e 1s/^X//"
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5143$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5144if ${ac_cv_path_GREP+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  if test -z "$GREP"; then
5148  ac_path_GREP_found=false
5149  # Loop through the user's path and test for each of PROGNAME-LIST
5150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155    for ac_prog in grep ggrep; do
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5158      as_fn_executable_p "$ac_path_GREP" || continue
5159# Check for GNU ac_path_GREP and select it if it is found.
5160  # Check for GNU $ac_path_GREP
5161case `"$ac_path_GREP" --version 2>&1` in
5162*GNU*)
5163  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5164*)
5165  ac_count=0
5166  $as_echo_n 0123456789 >"conftest.in"
5167  while :
5168  do
5169    cat "conftest.in" "conftest.in" >"conftest.tmp"
5170    mv "conftest.tmp" "conftest.in"
5171    cp "conftest.in" "conftest.nl"
5172    $as_echo 'GREP' >> "conftest.nl"
5173    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175    as_fn_arith $ac_count + 1 && ac_count=$as_val
5176    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5177      # Best one so far, save it but keep looking for a better one
5178      ac_cv_path_GREP="$ac_path_GREP"
5179      ac_path_GREP_max=$ac_count
5180    fi
5181    # 10*(2^10) chars as input seems more than enough
5182    test $ac_count -gt 10 && break
5183  done
5184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185esac
5186
5187      $ac_path_GREP_found && break 3
5188    done
5189  done
5190  done
5191IFS=$as_save_IFS
5192  if test -z "$ac_cv_path_GREP"; then
5193    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194  fi
5195else
5196  ac_cv_path_GREP=$GREP
5197fi
5198
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5201$as_echo "$ac_cv_path_GREP" >&6; }
5202 GREP="$ac_cv_path_GREP"
5203
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5206$as_echo_n "checking for egrep... " >&6; }
5207if ${ac_cv_path_EGREP+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5211   then ac_cv_path_EGREP="$GREP -E"
5212   else
5213     if test -z "$EGREP"; then
5214  ac_path_EGREP_found=false
5215  # Loop through the user's path and test for each of PROGNAME-LIST
5216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218do
5219  IFS=$as_save_IFS
5220  test -z "$as_dir" && as_dir=.
5221    for ac_prog in egrep; do
5222    for ac_exec_ext in '' $ac_executable_extensions; do
5223      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5224      as_fn_executable_p "$ac_path_EGREP" || continue
5225# Check for GNU ac_path_EGREP and select it if it is found.
5226  # Check for GNU $ac_path_EGREP
5227case `"$ac_path_EGREP" --version 2>&1` in
5228*GNU*)
5229  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5230*)
5231  ac_count=0
5232  $as_echo_n 0123456789 >"conftest.in"
5233  while :
5234  do
5235    cat "conftest.in" "conftest.in" >"conftest.tmp"
5236    mv "conftest.tmp" "conftest.in"
5237    cp "conftest.in" "conftest.nl"
5238    $as_echo 'EGREP' >> "conftest.nl"
5239    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241    as_fn_arith $ac_count + 1 && ac_count=$as_val
5242    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5243      # Best one so far, save it but keep looking for a better one
5244      ac_cv_path_EGREP="$ac_path_EGREP"
5245      ac_path_EGREP_max=$ac_count
5246    fi
5247    # 10*(2^10) chars as input seems more than enough
5248    test $ac_count -gt 10 && break
5249  done
5250  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251esac
5252
5253      $ac_path_EGREP_found && break 3
5254    done
5255  done
5256  done
5257IFS=$as_save_IFS
5258  if test -z "$ac_cv_path_EGREP"; then
5259    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260  fi
5261else
5262  ac_cv_path_EGREP=$EGREP
5263fi
5264
5265   fi
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5268$as_echo "$ac_cv_path_EGREP" >&6; }
5269 EGREP="$ac_cv_path_EGREP"
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5273$as_echo_n "checking for fgrep... " >&6; }
5274if ${ac_cv_path_FGREP+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5278   then ac_cv_path_FGREP="$GREP -F"
5279   else
5280     if test -z "$FGREP"; then
5281  ac_path_FGREP_found=false
5282  # Loop through the user's path and test for each of PROGNAME-LIST
5283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285do
5286  IFS=$as_save_IFS
5287  test -z "$as_dir" && as_dir=.
5288    for ac_prog in fgrep; do
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5291      as_fn_executable_p "$ac_path_FGREP" || continue
5292# Check for GNU ac_path_FGREP and select it if it is found.
5293  # Check for GNU $ac_path_FGREP
5294case `"$ac_path_FGREP" --version 2>&1` in
5295*GNU*)
5296  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5297*)
5298  ac_count=0
5299  $as_echo_n 0123456789 >"conftest.in"
5300  while :
5301  do
5302    cat "conftest.in" "conftest.in" >"conftest.tmp"
5303    mv "conftest.tmp" "conftest.in"
5304    cp "conftest.in" "conftest.nl"
5305    $as_echo 'FGREP' >> "conftest.nl"
5306    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308    as_fn_arith $ac_count + 1 && ac_count=$as_val
5309    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5310      # Best one so far, save it but keep looking for a better one
5311      ac_cv_path_FGREP="$ac_path_FGREP"
5312      ac_path_FGREP_max=$ac_count
5313    fi
5314    # 10*(2^10) chars as input seems more than enough
5315    test $ac_count -gt 10 && break
5316  done
5317  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318esac
5319
5320      $ac_path_FGREP_found && break 3
5321    done
5322  done
5323  done
5324IFS=$as_save_IFS
5325  if test -z "$ac_cv_path_FGREP"; then
5326    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327  fi
5328else
5329  ac_cv_path_FGREP=$FGREP
5330fi
5331
5332   fi
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5335$as_echo "$ac_cv_path_FGREP" >&6; }
5336 FGREP="$ac_cv_path_FGREP"
5337
5338
5339test -z "$GREP" && GREP=grep
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359# Check whether --with-gnu-ld was given.
5360if test "${with_gnu_ld+set}" = set; then :
5361  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5362else
5363  with_gnu_ld=no
5364fi
5365
5366ac_prog=ld
5367if test "$GCC" = yes; then
5368  # Check if gcc -print-prog-name=ld gives a path.
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5370$as_echo_n "checking for ld used by $CC... " >&6; }
5371  case $host in
5372  *-*-mingw*)
5373    # gcc leaves a trailing carriage return which upsets mingw
5374    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5375  *)
5376    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5377  esac
5378  case $ac_prog in
5379    # Accept absolute paths.
5380    [\\/]* | ?:[\\/]*)
5381      re_direlt='/[^/][^/]*/\.\./'
5382      # Canonicalize the pathname of ld
5383      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5384      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5385	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5386      done
5387      test -z "$LD" && LD="$ac_prog"
5388      ;;
5389  "")
5390    # If it fails, then pretend we aren't using GCC.
5391    ac_prog=ld
5392    ;;
5393  *)
5394    # If it is relative, then search for the first ld in PATH.
5395    with_gnu_ld=unknown
5396    ;;
5397  esac
5398elif test "$with_gnu_ld" = yes; then
5399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5400$as_echo_n "checking for GNU ld... " >&6; }
5401else
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5403$as_echo_n "checking for non-GNU ld... " >&6; }
5404fi
5405if ${lt_cv_path_LD+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  if test -z "$LD"; then
5409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5410  for ac_dir in $PATH; do
5411    IFS="$lt_save_ifs"
5412    test -z "$ac_dir" && ac_dir=.
5413    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5414      lt_cv_path_LD="$ac_dir/$ac_prog"
5415      # Check to see if the program is GNU ld.  I'd rather use --version,
5416      # but apparently some variants of GNU ld only accept -v.
5417      # Break only if it was the GNU/non-GNU ld that we prefer.
5418      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5419      *GNU* | *'with BFD'*)
5420	test "$with_gnu_ld" != no && break
5421	;;
5422      *)
5423	test "$with_gnu_ld" != yes && break
5424	;;
5425      esac
5426    fi
5427  done
5428  IFS="$lt_save_ifs"
5429else
5430  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5431fi
5432fi
5433
5434LD="$lt_cv_path_LD"
5435if test -n "$LD"; then
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5437$as_echo "$LD" >&6; }
5438else
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
5441fi
5442test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5444$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5445if ${lt_cv_prog_gnu_ld+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5449case `$LD -v 2>&1 </dev/null` in
5450*GNU* | *'with BFD'*)
5451  lt_cv_prog_gnu_ld=yes
5452  ;;
5453*)
5454  lt_cv_prog_gnu_ld=no
5455  ;;
5456esac
5457fi
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5459$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5460with_gnu_ld=$lt_cv_prog_gnu_ld
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5471$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5472if ${lt_cv_path_NM+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  if test -n "$NM"; then
5476  # Let the user override the test.
5477  lt_cv_path_NM="$NM"
5478else
5479  lt_nm_to_check="${ac_tool_prefix}nm"
5480  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5481    lt_nm_to_check="$lt_nm_to_check nm"
5482  fi
5483  for lt_tmp_nm in $lt_nm_to_check; do
5484    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5485    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5486      IFS="$lt_save_ifs"
5487      test -z "$ac_dir" && ac_dir=.
5488      tmp_nm="$ac_dir/$lt_tmp_nm"
5489      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5490	# Check to see if the nm accepts a BSD-compat flag.
5491	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5492	#   nm: unknown option "B" ignored
5493	# Tru64's nm complains that /dev/null is an invalid object file
5494	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5495	*/dev/null* | *'Invalid file or object type'*)
5496	  lt_cv_path_NM="$tmp_nm -B"
5497	  break
5498	  ;;
5499	*)
5500	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5501	  */dev/null*)
5502	    lt_cv_path_NM="$tmp_nm -p"
5503	    break
5504	    ;;
5505	  *)
5506	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5507	    continue # so that we can try to find one that supports BSD flags
5508	    ;;
5509	  esac
5510	  ;;
5511	esac
5512      fi
5513    done
5514    IFS="$lt_save_ifs"
5515  done
5516  : ${lt_cv_path_NM=no}
5517fi
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5520$as_echo "$lt_cv_path_NM" >&6; }
5521if test "$lt_cv_path_NM" != "no"; then
5522  NM="$lt_cv_path_NM"
5523else
5524  # Didn't find any BSD compatible name lister, look for dumpbin.
5525  if test -n "$DUMPBIN"; then :
5526    # Let the user override the test.
5527  else
5528    if test -n "$ac_tool_prefix"; then
5529  for ac_prog in dumpbin "link -dump"
5530  do
5531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534$as_echo_n "checking for $ac_word... " >&6; }
5535if ${ac_cv_prog_DUMPBIN+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  if test -n "$DUMPBIN"; then
5539  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544  IFS=$as_save_IFS
5545  test -z "$as_dir" && as_dir=.
5546    for ac_exec_ext in '' $ac_executable_extensions; do
5547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550    break 2
5551  fi
5552done
5553  done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558DUMPBIN=$ac_cv_prog_DUMPBIN
5559if test -n "$DUMPBIN"; then
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5561$as_echo "$DUMPBIN" >&6; }
5562else
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565fi
5566
5567
5568    test -n "$DUMPBIN" && break
5569  done
5570fi
5571if test -z "$DUMPBIN"; then
5572  ac_ct_DUMPBIN=$DUMPBIN
5573  for ac_prog in dumpbin "link -dump"
5574do
5575  # Extract the first word of "$ac_prog", so it can be a program name with args.
5576set dummy $ac_prog; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$ac_ct_DUMPBIN"; then
5583  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    for ac_exec_ext in '' $ac_executable_extensions; do
5591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594    break 2
5595  fi
5596done
5597  done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5603if test -n "$ac_ct_DUMPBIN"; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5605$as_echo "$ac_ct_DUMPBIN" >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611
5612  test -n "$ac_ct_DUMPBIN" && break
5613done
5614
5615  if test "x$ac_ct_DUMPBIN" = x; then
5616    DUMPBIN=":"
5617  else
5618    case $cross_compiling:$ac_tool_warned in
5619yes:)
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622ac_tool_warned=yes ;;
5623esac
5624    DUMPBIN=$ac_ct_DUMPBIN
5625  fi
5626fi
5627
5628    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5629    *COFF*)
5630      DUMPBIN="$DUMPBIN -symbols"
5631      ;;
5632    *)
5633      DUMPBIN=:
5634      ;;
5635    esac
5636  fi
5637
5638  if test "$DUMPBIN" != ":"; then
5639    NM="$DUMPBIN"
5640  fi
5641fi
5642test -z "$NM" && NM=nm
5643
5644
5645
5646
5647
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5650$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5651if ${lt_cv_nm_interface+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  lt_cv_nm_interface="BSD nm"
5655  echo "int some_variable = 0;" > conftest.$ac_ext
5656  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5657  (eval "$ac_compile" 2>conftest.err)
5658  cat conftest.err >&5
5659  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5660  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5661  cat conftest.err >&5
5662  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5663  cat conftest.out >&5
5664  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5665    lt_cv_nm_interface="MS dumpbin"
5666  fi
5667  rm -f conftest*
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5670$as_echo "$lt_cv_nm_interface" >&6; }
5671
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5673$as_echo_n "checking whether ln -s works... " >&6; }
5674LN_S=$as_ln_s
5675if test "$LN_S" = "ln -s"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677$as_echo "yes" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5680$as_echo "no, using $LN_S" >&6; }
5681fi
5682
5683# find the maximum length of command line arguments
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5685$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5686if ${lt_cv_sys_max_cmd_len+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689    i=0
5690  teststring="ABCD"
5691
5692  case $build_os in
5693  msdosdjgpp*)
5694    # On DJGPP, this test can blow up pretty badly due to problems in libc
5695    # (any single argument exceeding 2000 bytes causes a buffer overrun
5696    # during glob expansion).  Even if it were fixed, the result of this
5697    # check would be larger than it should be.
5698    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5699    ;;
5700
5701  gnu*)
5702    # Under GNU Hurd, this test is not required because there is
5703    # no limit to the length of command line arguments.
5704    # Libtool will interpret -1 as no limit whatsoever
5705    lt_cv_sys_max_cmd_len=-1;
5706    ;;
5707
5708  cygwin* | mingw* | cegcc*)
5709    # On Win9x/ME, this test blows up -- it succeeds, but takes
5710    # about 5 minutes as the teststring grows exponentially.
5711    # Worse, since 9x/ME are not pre-emptively multitasking,
5712    # you end up with a "frozen" computer, even though with patience
5713    # the test eventually succeeds (with a max line length of 256k).
5714    # Instead, let's just punt: use the minimum linelength reported by
5715    # all of the supported platforms: 8192 (on NT/2K/XP).
5716    lt_cv_sys_max_cmd_len=8192;
5717    ;;
5718
5719  mint*)
5720    # On MiNT this can take a long time and run out of memory.
5721    lt_cv_sys_max_cmd_len=8192;
5722    ;;
5723
5724  amigaos*)
5725    # On AmigaOS with pdksh, this test takes hours, literally.
5726    # So we just punt and use a minimum line length of 8192.
5727    lt_cv_sys_max_cmd_len=8192;
5728    ;;
5729
5730  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5731    # This has been around since 386BSD, at least.  Likely further.
5732    if test -x /sbin/sysctl; then
5733      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5734    elif test -x /usr/sbin/sysctl; then
5735      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5736    else
5737      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5738    fi
5739    # And add a safety zone
5740    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742    ;;
5743
5744  interix*)
5745    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5746    lt_cv_sys_max_cmd_len=196608
5747    ;;
5748
5749  osf*)
5750    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752    # nice to cause kernel panics so lets avoid the loop below.
5753    # First set a reasonable default.
5754    lt_cv_sys_max_cmd_len=16384
5755    #
5756    if test -x /sbin/sysconfig; then
5757      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759      esac
5760    fi
5761    ;;
5762  sco3.2v5*)
5763    lt_cv_sys_max_cmd_len=102400
5764    ;;
5765  sysv5* | sco5v6* | sysv4.2uw2*)
5766    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767    if test -n "$kargmax"; then
5768      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5769    else
5770      lt_cv_sys_max_cmd_len=32768
5771    fi
5772    ;;
5773  *)
5774    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775    if test -n "$lt_cv_sys_max_cmd_len"; then
5776      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5777      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5778    else
5779      # Make teststring a little bigger before we do anything with it.
5780      # a 1K string should be a reasonable start.
5781      for i in 1 2 3 4 5 6 7 8 ; do
5782        teststring=$teststring$teststring
5783      done
5784      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5785      # If test is not a shell built-in, we'll probably end up computing a
5786      # maximum length that is only half of the actual maximum length, but
5787      # we can't tell.
5788      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5789	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5790	      test $i != 17 # 1/2 MB should be enough
5791      do
5792        i=`expr $i + 1`
5793        teststring=$teststring$teststring
5794      done
5795      # Only check the string length outside the loop.
5796      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5797      teststring=
5798      # Add a significant safety factor because C++ compilers can tack on
5799      # massive amounts of additional arguments before passing them to the
5800      # linker.  It appears as though 1/2 is a usable value.
5801      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5802    fi
5803    ;;
5804  esac
5805
5806fi
5807
5808if test -n $lt_cv_sys_max_cmd_len ; then
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5810$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5811else
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5813$as_echo "none" >&6; }
5814fi
5815max_cmd_len=$lt_cv_sys_max_cmd_len
5816
5817
5818
5819
5820
5821
5822: ${CP="cp -f"}
5823: ${MV="mv -f"}
5824: ${RM="rm -f"}
5825
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5827$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5828# Try some XSI features
5829xsi_shell=no
5830( _lt_dummy="a/b/c"
5831  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5832      = c,a/b,, \
5833    && eval 'test $(( 1 + 1 )) -eq 2 \
5834    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5835  && xsi_shell=yes
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5837$as_echo "$xsi_shell" >&6; }
5838
5839
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5841$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5842lt_shell_append=no
5843( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5844    >/dev/null 2>&1 \
5845  && lt_shell_append=yes
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5847$as_echo "$lt_shell_append" >&6; }
5848
5849
5850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5851  lt_unset=unset
5852else
5853  lt_unset=false
5854fi
5855
5856
5857
5858
5859
5860# test EBCDIC or ASCII
5861case `echo X|tr X '\101'` in
5862 A) # ASCII based system
5863    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5864  lt_SP2NL='tr \040 \012'
5865  lt_NL2SP='tr \015\012 \040\040'
5866  ;;
5867 *) # EBCDIC based system
5868  lt_SP2NL='tr \100 \n'
5869  lt_NL2SP='tr \r\n \100\100'
5870  ;;
5871esac
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5882$as_echo_n "checking for $LD option to reload object files... " >&6; }
5883if ${lt_cv_ld_reload_flag+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  lt_cv_ld_reload_flag='-r'
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5889$as_echo "$lt_cv_ld_reload_flag" >&6; }
5890reload_flag=$lt_cv_ld_reload_flag
5891case $reload_flag in
5892"" | " "*) ;;
5893*) reload_flag=" $reload_flag" ;;
5894esac
5895reload_cmds='$LD$reload_flag -o $output$reload_objs'
5896case $host_os in
5897  darwin*)
5898    if test "$GCC" = yes; then
5899      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5900    else
5901      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5902    fi
5903    ;;
5904esac
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914if test -n "$ac_tool_prefix"; then
5915  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5916set dummy ${ac_tool_prefix}objdump; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if ${ac_cv_prog_OBJDUMP+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  if test -n "$OBJDUMP"; then
5923  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928  IFS=$as_save_IFS
5929  test -z "$as_dir" && as_dir=.
5930    for ac_exec_ext in '' $ac_executable_extensions; do
5931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934    break 2
5935  fi
5936done
5937  done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942OBJDUMP=$ac_cv_prog_OBJDUMP
5943if test -n "$OBJDUMP"; then
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5945$as_echo "$OBJDUMP" >&6; }
5946else
5947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952fi
5953if test -z "$ac_cv_prog_OBJDUMP"; then
5954  ac_ct_OBJDUMP=$OBJDUMP
5955  # Extract the first word of "objdump", so it can be a program name with args.
5956set dummy objdump; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
5959if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  if test -n "$ac_ct_OBJDUMP"; then
5963  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977  done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5983if test -n "$ac_ct_OBJDUMP"; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5985$as_echo "$ac_ct_OBJDUMP" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991  if test "x$ac_ct_OBJDUMP" = x; then
5992    OBJDUMP="false"
5993  else
5994    case $cross_compiling:$ac_tool_warned in
5995yes:)
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998ac_tool_warned=yes ;;
5999esac
6000    OBJDUMP=$ac_ct_OBJDUMP
6001  fi
6002else
6003  OBJDUMP="$ac_cv_prog_OBJDUMP"
6004fi
6005
6006test -z "$OBJDUMP" && OBJDUMP=objdump
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6017$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6018if ${lt_cv_deplibs_check_method+:} false; then :
6019  $as_echo_n "(cached) " >&6
6020else
6021  lt_cv_file_magic_cmd='$MAGIC_CMD'
6022lt_cv_file_magic_test_file=
6023lt_cv_deplibs_check_method='unknown'
6024# Need to set the preceding variable on all platforms that support
6025# interlibrary dependencies.
6026# 'none' -- dependencies not supported.
6027# `unknown' -- same as none, but documents that we really don't know.
6028# 'pass_all' -- all dependencies passed with no checks.
6029# 'test_compile' -- check by making test program.
6030# 'file_magic [[regex]]' -- check by looking for files in library path
6031# which responds to the $file_magic_cmd with a given extended regex.
6032# If you have `file' or equivalent on your system and you're not sure
6033# whether `pass_all' will *always* work, you probably want this one.
6034
6035case $host_os in
6036aix[4-9]*)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039
6040beos*)
6041  lt_cv_deplibs_check_method=pass_all
6042  ;;
6043
6044bsdi[45]*)
6045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6046  lt_cv_file_magic_cmd='/usr/bin/file -L'
6047  lt_cv_file_magic_test_file=/shlib/libc.so
6048  ;;
6049
6050cygwin*)
6051  # func_win32_libid is a shell function defined in ltmain.sh
6052  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6053  lt_cv_file_magic_cmd='func_win32_libid'
6054  ;;
6055
6056mingw* | pw32*)
6057  # Base MSYS/MinGW do not provide the 'file' command needed by
6058  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6059  # unless we find 'file', for example because we are cross-compiling.
6060  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6061  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6062    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063    lt_cv_file_magic_cmd='func_win32_libid'
6064  else
6065    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6066    lt_cv_file_magic_cmd='$OBJDUMP -f'
6067  fi
6068  ;;
6069
6070cegcc*)
6071  # use the weaker test based on 'objdump'. See mingw*.
6072  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6073  lt_cv_file_magic_cmd='$OBJDUMP -f'
6074  ;;
6075
6076darwin* | rhapsody*)
6077  lt_cv_deplibs_check_method=pass_all
6078  ;;
6079
6080freebsd* | dragonfly*)
6081  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082    case $host_cpu in
6083    i*86 )
6084      # Not sure whether the presence of OpenBSD here was a mistake.
6085      # Let's accept both of them until this is cleared up.
6086      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6087      lt_cv_file_magic_cmd=/usr/bin/file
6088      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6089      ;;
6090    esac
6091  else
6092    lt_cv_deplibs_check_method=pass_all
6093  fi
6094  ;;
6095
6096gnu*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100haiku*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104hpux10.20* | hpux11*)
6105  lt_cv_file_magic_cmd=/usr/bin/file
6106  case $host_cpu in
6107  ia64*)
6108    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6109    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6110    ;;
6111  hppa*64*)
6112    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]'
6113    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6114    ;;
6115  *)
6116    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6117    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6118    ;;
6119  esac
6120  ;;
6121
6122interix[3-9]*)
6123  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6124  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6125  ;;
6126
6127irix5* | irix6* | nonstopux*)
6128  case $LD in
6129  *-32|*"-32 ") libmagic=32-bit;;
6130  *-n32|*"-n32 ") libmagic=N32;;
6131  *-64|*"-64 ") libmagic=64-bit;;
6132  *) libmagic=never-match;;
6133  esac
6134  lt_cv_deplibs_check_method=pass_all
6135  ;;
6136
6137# This must be Linux ELF.
6138linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142netbsd*)
6143  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6144    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6145  else
6146    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6147  fi
6148  ;;
6149
6150newos6*)
6151  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6152  lt_cv_file_magic_cmd=/usr/bin/file
6153  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6154  ;;
6155
6156*nto* | *qnx*)
6157  lt_cv_deplibs_check_method=pass_all
6158  ;;
6159
6160openbsd*)
6161  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6162    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6163  else
6164    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6165  fi
6166  ;;
6167
6168osf3* | osf4* | osf5*)
6169  lt_cv_deplibs_check_method=pass_all
6170  ;;
6171
6172rdos*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175
6176solaris*)
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179
6180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6181  lt_cv_deplibs_check_method=pass_all
6182  ;;
6183
6184sysv4 | sysv4.3*)
6185  case $host_vendor in
6186  motorola)
6187    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]'
6188    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6189    ;;
6190  ncr)
6191    lt_cv_deplibs_check_method=pass_all
6192    ;;
6193  sequent)
6194    lt_cv_file_magic_cmd='/bin/file'
6195    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6196    ;;
6197  sni)
6198    lt_cv_file_magic_cmd='/bin/file'
6199    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6200    lt_cv_file_magic_test_file=/lib/libc.so
6201    ;;
6202  siemens)
6203    lt_cv_deplibs_check_method=pass_all
6204    ;;
6205  pc)
6206    lt_cv_deplibs_check_method=pass_all
6207    ;;
6208  esac
6209  ;;
6210
6211tpf*)
6212  lt_cv_deplibs_check_method=pass_all
6213  ;;
6214esac
6215
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6218$as_echo "$lt_cv_deplibs_check_method" >&6; }
6219file_magic_cmd=$lt_cv_file_magic_cmd
6220deplibs_check_method=$lt_cv_deplibs_check_method
6221test -z "$deplibs_check_method" && deplibs_check_method=unknown
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234if test -n "$ac_tool_prefix"; then
6235  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}ar; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_AR+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test -n "$AR"; then
6243  ac_cv_prog_AR="$AR" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250    for ac_exec_ext in '' $ac_executable_extensions; do
6251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252    ac_cv_prog_AR="${ac_tool_prefix}ar"
6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257  done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262AR=$ac_cv_prog_AR
6263if test -n "$AR"; then
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6265$as_echo "$AR" >&6; }
6266else
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272fi
6273if test -z "$ac_cv_prog_AR"; then
6274  ac_ct_AR=$AR
6275  # Extract the first word of "ar", so it can be a program name with args.
6276set dummy ar; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if ${ac_cv_prog_ac_ct_AR+:} false; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282  if test -n "$ac_ct_AR"; then
6283  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290    for ac_exec_ext in '' $ac_executable_extensions; do
6291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292    ac_cv_prog_ac_ct_AR="ar"
6293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297  done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_AR=$ac_cv_prog_ac_ct_AR
6303if test -n "$ac_ct_AR"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6305$as_echo "$ac_ct_AR" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311  if test "x$ac_ct_AR" = x; then
6312    AR="false"
6313  else
6314    case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320    AR=$ac_ct_AR
6321  fi
6322else
6323  AR="$ac_cv_prog_AR"
6324fi
6325
6326test -z "$AR" && AR=ar
6327test -z "$AR_FLAGS" && AR_FLAGS=cru
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339if test -n "$ac_tool_prefix"; then
6340  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6341set dummy ${ac_tool_prefix}strip; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
6344if ${ac_cv_prog_STRIP+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  if test -n "$STRIP"; then
6348  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353  IFS=$as_save_IFS
6354  test -z "$as_dir" && as_dir=.
6355    for ac_exec_ext in '' $ac_executable_extensions; do
6356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359    break 2
6360  fi
6361done
6362  done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367STRIP=$ac_cv_prog_STRIP
6368if test -n "$STRIP"; then
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6370$as_echo "$STRIP" >&6; }
6371else
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376
6377fi
6378if test -z "$ac_cv_prog_STRIP"; then
6379  ac_ct_STRIP=$STRIP
6380  # Extract the first word of "strip", so it can be a program name with args.
6381set dummy strip; ac_word=$2
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383$as_echo_n "checking for $ac_word... " >&6; }
6384if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  if test -n "$ac_ct_STRIP"; then
6388  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393  IFS=$as_save_IFS
6394  test -z "$as_dir" && as_dir=.
6395    for ac_exec_ext in '' $ac_executable_extensions; do
6396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397    ac_cv_prog_ac_ct_STRIP="strip"
6398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399    break 2
6400  fi
6401done
6402  done
6403IFS=$as_save_IFS
6404
6405fi
6406fi
6407ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6408if test -n "$ac_ct_STRIP"; then
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6410$as_echo "$ac_ct_STRIP" >&6; }
6411else
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414fi
6415
6416  if test "x$ac_ct_STRIP" = x; then
6417    STRIP=":"
6418  else
6419    case $cross_compiling:$ac_tool_warned in
6420yes:)
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423ac_tool_warned=yes ;;
6424esac
6425    STRIP=$ac_ct_STRIP
6426  fi
6427else
6428  STRIP="$ac_cv_prog_STRIP"
6429fi
6430
6431test -z "$STRIP" && STRIP=:
6432
6433
6434
6435
6436
6437
6438if test -n "$ac_tool_prefix"; then
6439  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6440set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
6443if ${ac_cv_prog_RANLIB+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  if test -n "$RANLIB"; then
6447  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452  IFS=$as_save_IFS
6453  test -z "$as_dir" && as_dir=.
6454    for ac_exec_ext in '' $ac_executable_extensions; do
6455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458    break 2
6459  fi
6460done
6461  done
6462IFS=$as_save_IFS
6463
6464fi
6465fi
6466RANLIB=$ac_cv_prog_RANLIB
6467if test -n "$RANLIB"; then
6468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6469$as_echo "$RANLIB" >&6; }
6470else
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473fi
6474
6475
6476fi
6477if test -z "$ac_cv_prog_RANLIB"; then
6478  ac_ct_RANLIB=$RANLIB
6479  # Extract the first word of "ranlib", so it can be a program name with args.
6480set dummy ranlib; ac_word=$2
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482$as_echo_n "checking for $ac_word... " >&6; }
6483if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  if test -n "$ac_ct_RANLIB"; then
6487  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494    for ac_exec_ext in '' $ac_executable_extensions; do
6495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496    ac_cv_prog_ac_ct_RANLIB="ranlib"
6497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501  done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6507if test -n "$ac_ct_RANLIB"; then
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6509$as_echo "$ac_ct_RANLIB" >&6; }
6510else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512$as_echo "no" >&6; }
6513fi
6514
6515  if test "x$ac_ct_RANLIB" = x; then
6516    RANLIB=":"
6517  else
6518    case $cross_compiling:$ac_tool_warned in
6519yes:)
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522ac_tool_warned=yes ;;
6523esac
6524    RANLIB=$ac_ct_RANLIB
6525  fi
6526else
6527  RANLIB="$ac_cv_prog_RANLIB"
6528fi
6529
6530test -z "$RANLIB" && RANLIB=:
6531
6532
6533
6534
6535
6536
6537# Determine commands to create old-style static archives.
6538old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6539old_postinstall_cmds='chmod 644 $oldlib'
6540old_postuninstall_cmds=
6541
6542if test -n "$RANLIB"; then
6543  case $host_os in
6544  openbsd*)
6545    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6546    ;;
6547  *)
6548    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6549    ;;
6550  esac
6551  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6552fi
6553
6554case $host_os in
6555  darwin*)
6556    lock_old_archive_extraction=yes ;;
6557  *)
6558    lock_old_archive_extraction=no ;;
6559esac
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599# If no C compiler was specified, use CC.
6600LTCC=${LTCC-"$CC"}
6601
6602# If no C compiler flags were specified, use CFLAGS.
6603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6604
6605# Allow CC to be a program name with arguments.
6606compiler=$CC
6607
6608
6609# Check for command to grab the raw symbol name followed by C symbol from nm.
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6611$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6612if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615
6616# These are sane defaults that work on at least a few old systems.
6617# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6618
6619# Character class describing NM global symbol codes.
6620symcode='[BCDEGRST]'
6621
6622# Regexp to match symbols that can be accessed directly from C.
6623sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6624
6625# Define system-specific variables.
6626case $host_os in
6627aix*)
6628  symcode='[BCDT]'
6629  ;;
6630cygwin* | mingw* | pw32* | cegcc*)
6631  symcode='[ABCDGISTW]'
6632  ;;
6633hpux*)
6634  if test "$host_cpu" = ia64; then
6635    symcode='[ABCDEGRST]'
6636  fi
6637  ;;
6638irix* | nonstopux*)
6639  symcode='[BCDEGRST]'
6640  ;;
6641osf*)
6642  symcode='[BCDEGQRST]'
6643  ;;
6644solaris*)
6645  symcode='[BDRT]'
6646  ;;
6647sco3.2v5*)
6648  symcode='[DT]'
6649  ;;
6650sysv4.2uw2*)
6651  symcode='[DT]'
6652  ;;
6653sysv5* | sco5v6* | unixware* | OpenUNIX*)
6654  symcode='[ABDT]'
6655  ;;
6656sysv4)
6657  symcode='[DFNSTU]'
6658  ;;
6659esac
6660
6661# If we're using GNU nm, then use its standard symbol codes.
6662case `$NM -V 2>&1` in
6663*GNU* | *'with BFD'*)
6664  symcode='[ABCDGIRSTW]' ;;
6665esac
6666
6667# Transform an extracted symbol line into a proper C declaration.
6668# Some systems (esp. on ia64) link data and code symbols differently,
6669# so use this general approach.
6670lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6671
6672# Transform an extracted symbol line into symbol name and symbol address
6673lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6674lt_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'"
6675
6676# Handle CRLF in mingw tool chain
6677opt_cr=
6678case $build_os in
6679mingw*)
6680  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6681  ;;
6682esac
6683
6684# Try without a prefix underscore, then with it.
6685for ac_symprfx in "" "_"; do
6686
6687  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6688  symxfrm="\\1 $ac_symprfx\\2 \\2"
6689
6690  # Write the raw and C identifiers.
6691  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6692    # Fake it for dumpbin and say T for any non-static function
6693    # and D for any global variable.
6694    # Also find C++ and __fastcall symbols from MSVC++,
6695    # which start with @ or ?.
6696    lt_cv_sys_global_symbol_pipe="$AWK '"\
6697"     {last_section=section; section=\$ 3};"\
6698"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6699"     \$ 0!~/External *\|/{next};"\
6700"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6701"     {if(hide[section]) next};"\
6702"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6703"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6704"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6705"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6706"     ' prfx=^$ac_symprfx"
6707  else
6708    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6709  fi
6710
6711  # Check to see that the pipe works correctly.
6712  pipe_works=no
6713
6714  rm -f conftest*
6715  cat > conftest.$ac_ext <<_LT_EOF
6716#ifdef __cplusplus
6717extern "C" {
6718#endif
6719char nm_test_var;
6720void nm_test_func(void);
6721void nm_test_func(void){}
6722#ifdef __cplusplus
6723}
6724#endif
6725int main(){nm_test_var='a';nm_test_func();return(0);}
6726_LT_EOF
6727
6728  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729  (eval $ac_compile) 2>&5
6730  ac_status=$?
6731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732  test $ac_status = 0; }; then
6733    # Now try to grab the symbols.
6734    nlist=conftest.nm
6735    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6736  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6737  ac_status=$?
6738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739  test $ac_status = 0; } && test -s "$nlist"; then
6740      # Try sorting and uniquifying the output.
6741      if sort "$nlist" | uniq > "$nlist"T; then
6742	mv -f "$nlist"T "$nlist"
6743      else
6744	rm -f "$nlist"T
6745      fi
6746
6747      # Make sure that we snagged all the symbols we need.
6748      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6749	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6750	  cat <<_LT_EOF > conftest.$ac_ext
6751#ifdef __cplusplus
6752extern "C" {
6753#endif
6754
6755_LT_EOF
6756	  # Now generate the symbol file.
6757	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6758
6759	  cat <<_LT_EOF >> conftest.$ac_ext
6760
6761/* The mapping between symbol names and symbols.  */
6762const struct {
6763  const char *name;
6764  void       *address;
6765}
6766lt__PROGRAM__LTX_preloaded_symbols[] =
6767{
6768  { "@PROGRAM@", (void *) 0 },
6769_LT_EOF
6770	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6771	  cat <<\_LT_EOF >> conftest.$ac_ext
6772  {0, (void *) 0}
6773};
6774
6775/* This works around a problem in FreeBSD linker */
6776#ifdef FREEBSD_WORKAROUND
6777static const void *lt_preloaded_setup() {
6778  return lt__PROGRAM__LTX_preloaded_symbols;
6779}
6780#endif
6781
6782#ifdef __cplusplus
6783}
6784#endif
6785_LT_EOF
6786	  # Now try linking the two files.
6787	  mv conftest.$ac_objext conftstm.$ac_objext
6788	  lt_save_LIBS="$LIBS"
6789	  lt_save_CFLAGS="$CFLAGS"
6790	  LIBS="conftstm.$ac_objext"
6791	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6792	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6793  (eval $ac_link) 2>&5
6794  ac_status=$?
6795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6797	    pipe_works=yes
6798	  fi
6799	  LIBS="$lt_save_LIBS"
6800	  CFLAGS="$lt_save_CFLAGS"
6801	else
6802	  echo "cannot find nm_test_func in $nlist" >&5
6803	fi
6804      else
6805	echo "cannot find nm_test_var in $nlist" >&5
6806      fi
6807    else
6808      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6809    fi
6810  else
6811    echo "$progname: failed program was:" >&5
6812    cat conftest.$ac_ext >&5
6813  fi
6814  rm -rf conftest* conftst*
6815
6816  # Do not use the global_symbol_pipe unless it works.
6817  if test "$pipe_works" = yes; then
6818    break
6819  else
6820    lt_cv_sys_global_symbol_pipe=
6821  fi
6822done
6823
6824fi
6825
6826if test -z "$lt_cv_sys_global_symbol_pipe"; then
6827  lt_cv_sys_global_symbol_to_cdecl=
6828fi
6829if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6831$as_echo "failed" >&6; }
6832else
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6834$as_echo "ok" >&6; }
6835fi
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859# Check whether --enable-libtool-lock was given.
6860if test "${enable_libtool_lock+set}" = set; then :
6861  enableval=$enable_libtool_lock;
6862fi
6863
6864test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865
6866# Some flags need to be propagated to the compiler or linker for good
6867# libtool support.
6868case $host in
6869ia64-*-hpux*)
6870  # Find out which ABI we are using.
6871  echo 'int i;' > conftest.$ac_ext
6872  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873  (eval $ac_compile) 2>&5
6874  ac_status=$?
6875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876  test $ac_status = 0; }; then
6877    case `/usr/bin/file conftest.$ac_objext` in
6878      *ELF-32*)
6879	HPUX_IA64_MODE="32"
6880	;;
6881      *ELF-64*)
6882	HPUX_IA64_MODE="64"
6883	;;
6884    esac
6885  fi
6886  rm -rf conftest*
6887  ;;
6888*-*-irix6*)
6889  # Find out which ABI we are using.
6890  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6891  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892  (eval $ac_compile) 2>&5
6893  ac_status=$?
6894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895  test $ac_status = 0; }; then
6896    if test "$lt_cv_prog_gnu_ld" = yes; then
6897      case `/usr/bin/file conftest.$ac_objext` in
6898	*32-bit*)
6899	  LD="${LD-ld} -melf32bsmip"
6900	  ;;
6901	*N32*)
6902	  LD="${LD-ld} -melf32bmipn32"
6903	  ;;
6904	*64-bit*)
6905	  LD="${LD-ld} -melf64bmip"
6906	;;
6907      esac
6908    else
6909      case `/usr/bin/file conftest.$ac_objext` in
6910	*32-bit*)
6911	  LD="${LD-ld} -32"
6912	  ;;
6913	*N32*)
6914	  LD="${LD-ld} -n32"
6915	  ;;
6916	*64-bit*)
6917	  LD="${LD-ld} -64"
6918	  ;;
6919      esac
6920    fi
6921  fi
6922  rm -rf conftest*
6923  ;;
6924
6925x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6926s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6927  # Find out which ABI we are using.
6928  echo 'int i;' > conftest.$ac_ext
6929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930  (eval $ac_compile) 2>&5
6931  ac_status=$?
6932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933  test $ac_status = 0; }; then
6934    case `/usr/bin/file conftest.o` in
6935      *32-bit*)
6936	case $host in
6937	  x86_64-*kfreebsd*-gnu)
6938	    LD="${LD-ld} -m elf_i386_fbsd"
6939	    ;;
6940	  x86_64-*linux*)
6941	    case `/usr/bin/file conftest.o` in
6942	      *x86-64*)
6943		LD="${LD-ld} -m elf32_x86_64"
6944		;;
6945	      *)
6946		LD="${LD-ld} -m elf_i386"
6947		;;
6948	    esac
6949	    ;;
6950	  powerpc64le-*linux*)
6951	    LD="${LD-ld} -m elf32lppclinux"
6952	    ;;
6953	  powerpc64-*linux*)
6954	    LD="${LD-ld} -m elf32ppclinux"
6955	    ;;
6956	  s390x-*linux*)
6957	    LD="${LD-ld} -m elf_s390"
6958	    ;;
6959	  sparc64-*linux*)
6960	    LD="${LD-ld} -m elf32_sparc"
6961	    ;;
6962	esac
6963	;;
6964      *64-bit*)
6965	case $host in
6966	  x86_64-*kfreebsd*-gnu)
6967	    LD="${LD-ld} -m elf_x86_64_fbsd"
6968	    ;;
6969	  x86_64-*linux*)
6970	    LD="${LD-ld} -m elf_x86_64"
6971	    ;;
6972	  powerpcle-*linux*)
6973	    LD="${LD-ld} -m elf64lppc"
6974	    ;;
6975	  powerpc-*linux*)
6976	    LD="${LD-ld} -m elf64ppc"
6977	    ;;
6978	  s390*-*linux*|s390*-*tpf*)
6979	    LD="${LD-ld} -m elf64_s390"
6980	    ;;
6981	  sparc*-*linux*)
6982	    LD="${LD-ld} -m elf64_sparc"
6983	    ;;
6984	esac
6985	;;
6986    esac
6987  fi
6988  rm -rf conftest*
6989  ;;
6990
6991*-*-sco3.2v5*)
6992  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993  SAVE_CFLAGS="$CFLAGS"
6994  CFLAGS="$CFLAGS -belf"
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6996$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6997if ${lt_cv_cc_needs_belf+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  ac_ext=c
7001ac_cpp='$CPP $CPPFLAGS'
7002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009int
7010main ()
7011{
7012
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017if ac_fn_c_try_link "$LINENO"; then :
7018  lt_cv_cc_needs_belf=yes
7019else
7020  lt_cv_cc_needs_belf=no
7021fi
7022rm -f core conftest.err conftest.$ac_objext \
7023    conftest$ac_exeext conftest.$ac_ext
7024     ac_ext=c
7025ac_cpp='$CPP $CPPFLAGS'
7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7032$as_echo "$lt_cv_cc_needs_belf" >&6; }
7033  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7034    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035    CFLAGS="$SAVE_CFLAGS"
7036  fi
7037  ;;
7038sparc*-*solaris*)
7039  # Find out which ABI we are using.
7040  echo 'int i;' > conftest.$ac_ext
7041  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042  (eval $ac_compile) 2>&5
7043  ac_status=$?
7044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045  test $ac_status = 0; }; then
7046    case `/usr/bin/file conftest.o` in
7047    *64-bit*)
7048      case $lt_cv_prog_gnu_ld in
7049      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7050      *)
7051	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7052	  LD="${LD-ld} -64"
7053	fi
7054	;;
7055      esac
7056      ;;
7057    esac
7058  fi
7059  rm -rf conftest*
7060  ;;
7061esac
7062
7063need_locks="$enable_libtool_lock"
7064
7065
7066  case $host_os in
7067    rhapsody* | darwin*)
7068    if test -n "$ac_tool_prefix"; then
7069  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if ${ac_cv_prog_DSYMUTIL+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$DSYMUTIL"; then
7077  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096DSYMUTIL=$ac_cv_prog_DSYMUTIL
7097if test -n "$DSYMUTIL"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7099$as_echo "$DSYMUTIL" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106fi
7107if test -z "$ac_cv_prog_DSYMUTIL"; then
7108  ac_ct_DSYMUTIL=$DSYMUTIL
7109  # Extract the first word of "dsymutil", so it can be a program name with args.
7110set dummy dsymutil; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$ac_ct_DSYMUTIL"; then
7117  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7137if test -n "$ac_ct_DSYMUTIL"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7139$as_echo "$ac_ct_DSYMUTIL" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145  if test "x$ac_ct_DSYMUTIL" = x; then
7146    DSYMUTIL=":"
7147  else
7148    case $cross_compiling:$ac_tool_warned in
7149yes:)
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152ac_tool_warned=yes ;;
7153esac
7154    DSYMUTIL=$ac_ct_DSYMUTIL
7155  fi
7156else
7157  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7158fi
7159
7160    if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if ${ac_cv_prog_NMEDIT+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$NMEDIT"; then
7169  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188NMEDIT=$ac_cv_prog_NMEDIT
7189if test -n "$NMEDIT"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7191$as_echo "$NMEDIT" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_NMEDIT"; then
7200  ac_ct_NMEDIT=$NMEDIT
7201  # Extract the first word of "nmedit", so it can be a program name with args.
7202set dummy nmedit; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_NMEDIT"; then
7209  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7229if test -n "$ac_ct_NMEDIT"; then
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7231$as_echo "$ac_ct_NMEDIT" >&6; }
7232else
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_NMEDIT" = x; then
7238    NMEDIT=":"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    NMEDIT=$ac_ct_NMEDIT
7247  fi
7248else
7249  NMEDIT="$ac_cv_prog_NMEDIT"
7250fi
7251
7252    if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}lipo; ac_word=$2
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if ${ac_cv_prog_LIPO+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$LIPO"; then
7261  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280LIPO=$ac_cv_prog_LIPO
7281if test -n "$LIPO"; then
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7283$as_echo "$LIPO" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_LIPO"; then
7292  ac_ct_LIPO=$LIPO
7293  # Extract the first word of "lipo", so it can be a program name with args.
7294set dummy lipo; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$ac_ct_LIPO"; then
7301  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308    for ac_exec_ext in '' $ac_executable_extensions; do
7309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310    ac_cv_prog_ac_ct_LIPO="lipo"
7311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315  done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7321if test -n "$ac_ct_LIPO"; then
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7323$as_echo "$ac_ct_LIPO" >&6; }
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329  if test "x$ac_ct_LIPO" = x; then
7330    LIPO=":"
7331  else
7332    case $cross_compiling:$ac_tool_warned in
7333yes:)
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    LIPO=$ac_ct_LIPO
7339  fi
7340else
7341  LIPO="$ac_cv_prog_LIPO"
7342fi
7343
7344    if test -n "$ac_tool_prefix"; then
7345  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7346set dummy ${ac_tool_prefix}otool; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_prog_OTOOL+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  if test -n "$OTOOL"; then
7353  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372OTOOL=$ac_cv_prog_OTOOL
7373if test -n "$OTOOL"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7375$as_echo "$OTOOL" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_prog_OTOOL"; then
7384  ac_ct_OTOOL=$OTOOL
7385  # Extract the first word of "otool", so it can be a program name with args.
7386set dummy otool; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$ac_ct_OTOOL"; then
7393  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402    ac_cv_prog_ac_ct_OTOOL="otool"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413if test -n "$ac_ct_OTOOL"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7415$as_echo "$ac_ct_OTOOL" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421  if test "x$ac_ct_OTOOL" = x; then
7422    OTOOL=":"
7423  else
7424    case $cross_compiling:$ac_tool_warned in
7425yes:)
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428ac_tool_warned=yes ;;
7429esac
7430    OTOOL=$ac_ct_OTOOL
7431  fi
7432else
7433  OTOOL="$ac_cv_prog_OTOOL"
7434fi
7435
7436    if test -n "$ac_tool_prefix"; then
7437  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7438set dummy ${ac_tool_prefix}otool64; ac_word=$2
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440$as_echo_n "checking for $ac_word... " >&6; }
7441if ${ac_cv_prog_OTOOL64+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  if test -n "$OTOOL64"; then
7445  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452    for ac_exec_ext in '' $ac_executable_extensions; do
7453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459  done
7460IFS=$as_save_IFS
7461
7462fi
7463fi
7464OTOOL64=$ac_cv_prog_OTOOL64
7465if test -n "$OTOOL64"; then
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7467$as_echo "$OTOOL64" >&6; }
7468else
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470$as_echo "no" >&6; }
7471fi
7472
7473
7474fi
7475if test -z "$ac_cv_prog_OTOOL64"; then
7476  ac_ct_OTOOL64=$OTOOL64
7477  # Extract the first word of "otool64", so it can be a program name with args.
7478set dummy otool64; ac_word=$2
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  if test -n "$ac_ct_OTOOL64"; then
7485  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492    for ac_exec_ext in '' $ac_executable_extensions; do
7493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494    ac_cv_prog_ac_ct_OTOOL64="otool64"
7495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499  done
7500IFS=$as_save_IFS
7501
7502fi
7503fi
7504ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7505if test -n "$ac_ct_OTOOL64"; then
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7507$as_echo "$ac_ct_OTOOL64" >&6; }
7508else
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
7511fi
7512
7513  if test "x$ac_ct_OTOOL64" = x; then
7514    OTOOL64=":"
7515  else
7516    case $cross_compiling:$ac_tool_warned in
7517yes:)
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520ac_tool_warned=yes ;;
7521esac
7522    OTOOL64=$ac_ct_OTOOL64
7523  fi
7524else
7525  OTOOL64="$ac_cv_prog_OTOOL64"
7526fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7555$as_echo_n "checking for -single_module linker flag... " >&6; }
7556if ${lt_cv_apple_cc_single_mod+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_apple_cc_single_mod=no
7560      if test -z "${LT_MULTI_MODULE}"; then
7561	# By default we will add the -single_module flag. You can override
7562	# by either setting the environment variable LT_MULTI_MODULE
7563	# non-empty at configure time, or by adding -multi_module to the
7564	# link flags.
7565	rm -rf libconftest.dylib*
7566	echo "int foo(void){return 1;}" > conftest.c
7567	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7568-dynamiclib -Wl,-single_module conftest.c" >&5
7569	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7571        _lt_result=$?
7572	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7573	  lt_cv_apple_cc_single_mod=yes
7574	else
7575	  cat conftest.err >&5
7576	fi
7577	rm -rf libconftest.dylib*
7578	rm -f conftest.*
7579      fi
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7582$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7584$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7585if ${lt_cv_ld_exported_symbols_list+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  lt_cv_ld_exported_symbols_list=no
7589      save_LDFLAGS=$LDFLAGS
7590      echo "_main" > conftest.sym
7591      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7592      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594
7595int
7596main ()
7597{
7598
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603if ac_fn_c_try_link "$LINENO"; then :
7604  lt_cv_ld_exported_symbols_list=yes
7605else
7606  lt_cv_ld_exported_symbols_list=no
7607fi
7608rm -f core conftest.err conftest.$ac_objext \
7609    conftest$ac_exeext conftest.$ac_ext
7610	LDFLAGS="$save_LDFLAGS"
7611
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7614$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7616$as_echo_n "checking for -force_load linker flag... " >&6; }
7617if ${lt_cv_ld_force_load+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  lt_cv_ld_force_load=no
7621      cat > conftest.c << _LT_EOF
7622int forced_loaded() { return 2;}
7623_LT_EOF
7624      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7625      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7626      echo "$AR cru libconftest.a conftest.o" >&5
7627      $AR cru libconftest.a conftest.o 2>&5
7628      cat > conftest.c << _LT_EOF
7629int main() { return 0;}
7630_LT_EOF
7631      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7632      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7633      _lt_result=$?
7634      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7635	lt_cv_ld_force_load=yes
7636      else
7637	cat conftest.err >&5
7638      fi
7639        rm -f conftest.err libconftest.a conftest conftest.c
7640        rm -rf conftest.dSYM
7641
7642fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7644$as_echo "$lt_cv_ld_force_load" >&6; }
7645    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7646    # build without first building modern cctools / linker.
7647    case $host_cpu-$host_os in
7648    *-rhapsody* | *-darwin1.[012])
7649      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7650    *-darwin1.*)
7651      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652    *-darwin*)
7653      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7654      # deployment target is forced to an earlier version.
7655      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7656	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7657	  ;;
7658	10.[012][,.]*)
7659	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7660	  ;;
7661	*)
7662	  ;;
7663     esac
7664    ;;
7665  esac
7666    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667      _lt_dar_single_mod='$single_module'
7668    fi
7669    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7671    else
7672      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673    fi
7674    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7675      _lt_dsymutil='~$DSYMUTIL $lib || :'
7676    else
7677      _lt_dsymutil=
7678    fi
7679    ;;
7680  esac
7681
7682ac_ext=c
7683ac_cpp='$CPP $CPPFLAGS'
7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7688$as_echo_n "checking how to run the C preprocessor... " >&6; }
7689# On Suns, sometimes $CPP names a directory.
7690if test -n "$CPP" && test -d "$CPP"; then
7691  CPP=
7692fi
7693if test -z "$CPP"; then
7694  if ${ac_cv_prog_CPP+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697      # Double quotes because CPP needs to be expanded
7698    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7699    do
7700      ac_preproc_ok=false
7701for ac_c_preproc_warn_flag in '' yes
7702do
7703  # Use a header file that comes with gcc, so configuring glibc
7704  # with a fresh cross-compiler works.
7705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706  # <limits.h> exists even on freestanding compilers.
7707  # On the NeXT, cc -E runs the code through the compiler's parser,
7708  # not just through cpp. "Syntax error" is here to catch this case.
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711#ifdef __STDC__
7712# include <limits.h>
7713#else
7714# include <assert.h>
7715#endif
7716		     Syntax error
7717_ACEOF
7718if ac_fn_c_try_cpp "$LINENO"; then :
7719
7720else
7721  # Broken: fails on valid input.
7722continue
7723fi
7724rm -f conftest.err conftest.i conftest.$ac_ext
7725
7726  # OK, works on sane cases.  Now check whether nonexistent headers
7727  # can be detected and how.
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730#include <ac_nonexistent.h>
7731_ACEOF
7732if ac_fn_c_try_cpp "$LINENO"; then :
7733  # Broken: success on invalid input.
7734continue
7735else
7736  # Passes both tests.
7737ac_preproc_ok=:
7738break
7739fi
7740rm -f conftest.err conftest.i conftest.$ac_ext
7741
7742done
7743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7744rm -f conftest.i conftest.err conftest.$ac_ext
7745if $ac_preproc_ok; then :
7746  break
7747fi
7748
7749    done
7750    ac_cv_prog_CPP=$CPP
7751
7752fi
7753  CPP=$ac_cv_prog_CPP
7754else
7755  ac_cv_prog_CPP=$CPP
7756fi
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7758$as_echo "$CPP" >&6; }
7759ac_preproc_ok=false
7760for ac_c_preproc_warn_flag in '' yes
7761do
7762  # Use a header file that comes with gcc, so configuring glibc
7763  # with a fresh cross-compiler works.
7764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7765  # <limits.h> exists even on freestanding compilers.
7766  # On the NeXT, cc -E runs the code through the compiler's parser,
7767  # not just through cpp. "Syntax error" is here to catch this case.
7768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770#ifdef __STDC__
7771# include <limits.h>
7772#else
7773# include <assert.h>
7774#endif
7775		     Syntax error
7776_ACEOF
7777if ac_fn_c_try_cpp "$LINENO"; then :
7778
7779else
7780  # Broken: fails on valid input.
7781continue
7782fi
7783rm -f conftest.err conftest.i conftest.$ac_ext
7784
7785  # OK, works on sane cases.  Now check whether nonexistent headers
7786  # can be detected and how.
7787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h.  */
7789#include <ac_nonexistent.h>
7790_ACEOF
7791if ac_fn_c_try_cpp "$LINENO"; then :
7792  # Broken: success on invalid input.
7793continue
7794else
7795  # Passes both tests.
7796ac_preproc_ok=:
7797break
7798fi
7799rm -f conftest.err conftest.i conftest.$ac_ext
7800
7801done
7802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7803rm -f conftest.i conftest.err conftest.$ac_ext
7804if $ac_preproc_ok; then :
7805
7806else
7807  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7809as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7810See \`config.log' for more details" "$LINENO" 5; }
7811fi
7812
7813ac_ext=c
7814ac_cpp='$CPP $CPPFLAGS'
7815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818
7819
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7821$as_echo_n "checking for ANSI C header files... " >&6; }
7822if ${ac_cv_header_stdc+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827#include <stdlib.h>
7828#include <stdarg.h>
7829#include <string.h>
7830#include <float.h>
7831
7832int
7833main ()
7834{
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_compile "$LINENO"; then :
7841  ac_cv_header_stdc=yes
7842else
7843  ac_cv_header_stdc=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846
7847if test $ac_cv_header_stdc = yes; then
7848  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851#include <string.h>
7852
7853_ACEOF
7854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7855  $EGREP "memchr" >/dev/null 2>&1; then :
7856
7857else
7858  ac_cv_header_stdc=no
7859fi
7860rm -f conftest*
7861
7862fi
7863
7864if test $ac_cv_header_stdc = yes; then
7865  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868#include <stdlib.h>
7869
7870_ACEOF
7871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7872  $EGREP "free" >/dev/null 2>&1; then :
7873
7874else
7875  ac_cv_header_stdc=no
7876fi
7877rm -f conftest*
7878
7879fi
7880
7881if test $ac_cv_header_stdc = yes; then
7882  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7883  if test "$cross_compiling" = yes; then :
7884  :
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888#include <ctype.h>
7889#include <stdlib.h>
7890#if ((' ' & 0x0FF) == 0x020)
7891# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7892# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7893#else
7894# define ISLOWER(c) \
7895		   (('a' <= (c) && (c) <= 'i') \
7896		     || ('j' <= (c) && (c) <= 'r') \
7897		     || ('s' <= (c) && (c) <= 'z'))
7898# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7899#endif
7900
7901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7902int
7903main ()
7904{
7905  int i;
7906  for (i = 0; i < 256; i++)
7907    if (XOR (islower (i), ISLOWER (i))
7908	|| toupper (i) != TOUPPER (i))
7909      return 2;
7910  return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_run "$LINENO"; then :
7914
7915else
7916  ac_cv_header_stdc=no
7917fi
7918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7919  conftest.$ac_objext conftest.beam conftest.$ac_ext
7920fi
7921
7922fi
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7925$as_echo "$ac_cv_header_stdc" >&6; }
7926if test $ac_cv_header_stdc = yes; then
7927
7928$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7929
7930fi
7931
7932# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7933for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7934		  inttypes.h stdint.h unistd.h
7935do :
7936  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7938"
7939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7940  cat >>confdefs.h <<_ACEOF
7941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942_ACEOF
7943
7944fi
7945
7946done
7947
7948
7949for ac_header in dlfcn.h
7950do :
7951  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7952"
7953if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7954  cat >>confdefs.h <<_ACEOF
7955#define HAVE_DLFCN_H 1
7956_ACEOF
7957
7958fi
7959
7960done
7961
7962
7963
7964
7965
7966# Set options
7967
7968
7969
7970        enable_dlopen=no
7971
7972
7973  enable_win32_dll=no
7974
7975
7976            # Check whether --enable-shared was given.
7977if test "${enable_shared+set}" = set; then :
7978  enableval=$enable_shared; p=${PACKAGE-default}
7979    case $enableval in
7980    yes) enable_shared=yes ;;
7981    no) enable_shared=no ;;
7982    *)
7983      enable_shared=no
7984      # Look at the argument we got.  We use all the common list separators.
7985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986      for pkg in $enableval; do
7987	IFS="$lt_save_ifs"
7988	if test "X$pkg" = "X$p"; then
7989	  enable_shared=yes
7990	fi
7991      done
7992      IFS="$lt_save_ifs"
7993      ;;
7994    esac
7995else
7996  enable_shared=yes
7997fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007  # Check whether --enable-static was given.
8008if test "${enable_static+set}" = set; then :
8009  enableval=$enable_static; p=${PACKAGE-default}
8010    case $enableval in
8011    yes) enable_static=yes ;;
8012    no) enable_static=no ;;
8013    *)
8014     enable_static=no
8015      # Look at the argument we got.  We use all the common list separators.
8016      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8017      for pkg in $enableval; do
8018	IFS="$lt_save_ifs"
8019	if test "X$pkg" = "X$p"; then
8020	  enable_static=yes
8021	fi
8022      done
8023      IFS="$lt_save_ifs"
8024      ;;
8025    esac
8026else
8027  enable_static=yes
8028fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039# Check whether --with-pic was given.
8040if test "${with_pic+set}" = set; then :
8041  withval=$with_pic; pic_mode="$withval"
8042else
8043  pic_mode=default
8044fi
8045
8046
8047test -z "$pic_mode" && pic_mode=default
8048
8049
8050
8051
8052
8053
8054
8055  # Check whether --enable-fast-install was given.
8056if test "${enable_fast_install+set}" = set; then :
8057  enableval=$enable_fast_install; p=${PACKAGE-default}
8058    case $enableval in
8059    yes) enable_fast_install=yes ;;
8060    no) enable_fast_install=no ;;
8061    *)
8062      enable_fast_install=no
8063      # Look at the argument we got.  We use all the common list separators.
8064      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065      for pkg in $enableval; do
8066	IFS="$lt_save_ifs"
8067	if test "X$pkg" = "X$p"; then
8068	  enable_fast_install=yes
8069	fi
8070      done
8071      IFS="$lt_save_ifs"
8072      ;;
8073    esac
8074else
8075  enable_fast_install=yes
8076fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088# This can be used to rebuild libtool when needed
8089LIBTOOL_DEPS="$ltmain"
8090
8091# Always use our own libtool.
8092LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119test -z "$LN_S" && LN_S="ln -s"
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134if test -n "${ZSH_VERSION+set}" ; then
8135   setopt NO_GLOB_SUBST
8136fi
8137
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8139$as_echo_n "checking for objdir... " >&6; }
8140if ${lt_cv_objdir+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  rm -f .libs 2>/dev/null
8144mkdir .libs 2>/dev/null
8145if test -d .libs; then
8146  lt_cv_objdir=.libs
8147else
8148  # MS-DOS does not allow filenames that begin with a dot.
8149  lt_cv_objdir=_libs
8150fi
8151rmdir .libs 2>/dev/null
8152fi
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8154$as_echo "$lt_cv_objdir" >&6; }
8155objdir=$lt_cv_objdir
8156
8157
8158
8159
8160
8161cat >>confdefs.h <<_ACEOF
8162#define LT_OBJDIR "$lt_cv_objdir/"
8163_ACEOF
8164
8165
8166
8167
8168case $host_os in
8169aix3*)
8170  # AIX sometimes has problems with the GCC collect2 program.  For some
8171  # reason, if we set the COLLECT_NAMES environment variable, the problems
8172  # vanish in a puff of smoke.
8173  if test "X${COLLECT_NAMES+set}" != Xset; then
8174    COLLECT_NAMES=
8175    export COLLECT_NAMES
8176  fi
8177  ;;
8178esac
8179
8180# Global variables:
8181ofile=libtool
8182can_build_shared=yes
8183
8184# All known linkers require a `.a' archive for static linking (except MSVC,
8185# which needs '.lib').
8186libext=a
8187
8188with_gnu_ld="$lt_cv_prog_gnu_ld"
8189
8190old_CC="$CC"
8191old_CFLAGS="$CFLAGS"
8192
8193# Set sane defaults for various variables
8194test -z "$CC" && CC=cc
8195test -z "$LTCC" && LTCC=$CC
8196test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8197test -z "$LD" && LD=ld
8198test -z "$ac_objext" && ac_objext=o
8199
8200for cc_temp in $compiler""; do
8201  case $cc_temp in
8202    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8203    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8204    \-*) ;;
8205    *) break;;
8206  esac
8207done
8208cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8209
8210
8211# Only perform the check for file, if the check method requires it
8212test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213case $deplibs_check_method in
8214file_magic*)
8215  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8217$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8218if ${lt_cv_path_MAGIC_CMD+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  case $MAGIC_CMD in
8222[\\/*] |  ?:[\\/]*)
8223  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8224  ;;
8225*)
8226  lt_save_MAGIC_CMD="$MAGIC_CMD"
8227  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8228  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8229  for ac_dir in $ac_dummy; do
8230    IFS="$lt_save_ifs"
8231    test -z "$ac_dir" && ac_dir=.
8232    if test -f $ac_dir/${ac_tool_prefix}file; then
8233      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8234      if test -n "$file_magic_test_file"; then
8235	case $deplibs_check_method in
8236	"file_magic "*)
8237	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8238	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8239	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8240	    $EGREP "$file_magic_regex" > /dev/null; then
8241	    :
8242	  else
8243	    cat <<_LT_EOF 1>&2
8244
8245*** Warning: the command libtool uses to detect shared libraries,
8246*** $file_magic_cmd, produces output that libtool cannot recognize.
8247*** The result is that libtool may fail to recognize shared libraries
8248*** as such.  This will affect the creation of libtool libraries that
8249*** depend on shared libraries, but programs linked with such libtool
8250*** libraries will work regardless of this problem.  Nevertheless, you
8251*** may want to report the problem to your system manager and/or to
8252*** bug-libtool@gnu.org
8253
8254_LT_EOF
8255	  fi ;;
8256	esac
8257      fi
8258      break
8259    fi
8260  done
8261  IFS="$lt_save_ifs"
8262  MAGIC_CMD="$lt_save_MAGIC_CMD"
8263  ;;
8264esac
8265fi
8266
8267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268if test -n "$MAGIC_CMD"; then
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8270$as_echo "$MAGIC_CMD" >&6; }
8271else
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275
8276
8277
8278
8279
8280if test -z "$lt_cv_path_MAGIC_CMD"; then
8281  if test -n "$ac_tool_prefix"; then
8282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8283$as_echo_n "checking for file... " >&6; }
8284if ${lt_cv_path_MAGIC_CMD+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  case $MAGIC_CMD in
8288[\\/*] |  ?:[\\/]*)
8289  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290  ;;
8291*)
8292  lt_save_MAGIC_CMD="$MAGIC_CMD"
8293  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295  for ac_dir in $ac_dummy; do
8296    IFS="$lt_save_ifs"
8297    test -z "$ac_dir" && ac_dir=.
8298    if test -f $ac_dir/file; then
8299      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8300      if test -n "$file_magic_test_file"; then
8301	case $deplibs_check_method in
8302	"file_magic "*)
8303	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306	    $EGREP "$file_magic_regex" > /dev/null; then
8307	    :
8308	  else
8309	    cat <<_LT_EOF 1>&2
8310
8311*** Warning: the command libtool uses to detect shared libraries,
8312*** $file_magic_cmd, produces output that libtool cannot recognize.
8313*** The result is that libtool may fail to recognize shared libraries
8314*** as such.  This will affect the creation of libtool libraries that
8315*** depend on shared libraries, but programs linked with such libtool
8316*** libraries will work regardless of this problem.  Nevertheless, you
8317*** may want to report the problem to your system manager and/or to
8318*** bug-libtool@gnu.org
8319
8320_LT_EOF
8321	  fi ;;
8322	esac
8323      fi
8324      break
8325    fi
8326  done
8327  IFS="$lt_save_ifs"
8328  MAGIC_CMD="$lt_save_MAGIC_CMD"
8329  ;;
8330esac
8331fi
8332
8333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334if test -n "$MAGIC_CMD"; then
8335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336$as_echo "$MAGIC_CMD" >&6; }
8337else
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
8340fi
8341
8342
8343  else
8344    MAGIC_CMD=:
8345  fi
8346fi
8347
8348  fi
8349  ;;
8350esac
8351
8352# Use C for the default configuration in the libtool script
8353
8354lt_save_CC="$CC"
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361
8362# Source file extension for C test sources.
8363ac_ext=c
8364
8365# Object file extension for compiled C test sources.
8366objext=o
8367objext=$objext
8368
8369# Code to be used in simple compile tests
8370lt_simple_compile_test_code="int some_variable = 0;"
8371
8372# Code to be used in simple link tests
8373lt_simple_link_test_code='int main(){return(0);}'
8374
8375
8376
8377
8378
8379
8380
8381# If no C compiler was specified, use CC.
8382LTCC=${LTCC-"$CC"}
8383
8384# If no C compiler flags were specified, use CFLAGS.
8385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8386
8387# Allow CC to be a program name with arguments.
8388compiler=$CC
8389
8390# Save the default compiler, since it gets overwritten when the other
8391# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8392compiler_DEFAULT=$CC
8393
8394# save warnings/boilerplate of simple test code
8395ac_outfile=conftest.$ac_objext
8396echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8397eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8398_lt_compiler_boilerplate=`cat conftest.err`
8399$RM conftest*
8400
8401ac_outfile=conftest.$ac_objext
8402echo "$lt_simple_link_test_code" >conftest.$ac_ext
8403eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8404_lt_linker_boilerplate=`cat conftest.err`
8405$RM -r conftest*
8406
8407
8408## CAVEAT EMPTOR:
8409## There is no encapsulation within the following macros, do not change
8410## the running order or otherwise move them around unless you know exactly
8411## what you are doing...
8412if test -n "$compiler"; then
8413
8414lt_prog_compiler_no_builtin_flag=
8415
8416if test "$GCC" = yes; then
8417  case $cc_basename in
8418  nvcc*)
8419    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8420  *)
8421    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8422  esac
8423
8424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8425$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8426if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  lt_cv_prog_compiler_rtti_exceptions=no
8430   ac_outfile=conftest.$ac_objext
8431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8432   lt_compiler_flag="-fno-rtti -fno-exceptions"
8433   # Insert the option either (1) after the last *FLAGS variable, or
8434   # (2) before a word containing "conftest.", or (3) at the end.
8435   # Note that $ac_compile itself does not contain backslashes and begins
8436   # with a dollar sign (not a hyphen), so the echo should work correctly.
8437   # The option is referenced via a variable to avoid confusing sed.
8438   lt_compile=`echo "$ac_compile" | $SED \
8439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8441   -e 's:$: $lt_compiler_flag:'`
8442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8443   (eval "$lt_compile" 2>conftest.err)
8444   ac_status=$?
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   if (exit $ac_status) && test -s "$ac_outfile"; then
8448     # The compiler can only warn and ignore the option if not recognized
8449     # So say no if there are warnings other than the usual output.
8450     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8451     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8452     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8453       lt_cv_prog_compiler_rtti_exceptions=yes
8454     fi
8455   fi
8456   $RM conftest*
8457
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8460$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8461
8462if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8463    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8464else
8465    :
8466fi
8467
8468fi
8469
8470
8471
8472
8473
8474
8475  lt_prog_compiler_wl=
8476lt_prog_compiler_pic=
8477lt_prog_compiler_static=
8478
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8480$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8481
8482  if test "$GCC" = yes; then
8483    lt_prog_compiler_wl='-Wl,'
8484    lt_prog_compiler_static='-static'
8485
8486    case $host_os in
8487      aix*)
8488      # All AIX code is PIC.
8489      if test "$host_cpu" = ia64; then
8490	# AIX 5 now supports IA64 processor
8491	lt_prog_compiler_static='-Bstatic'
8492      fi
8493      lt_prog_compiler_pic='-fPIC'
8494      ;;
8495
8496    amigaos*)
8497      case $host_cpu in
8498      powerpc)
8499            # see comment about AmigaOS4 .so support
8500            lt_prog_compiler_pic='-fPIC'
8501        ;;
8502      m68k)
8503            # FIXME: we need at least 68020 code to build shared libraries, but
8504            # adding the `-m68020' flag to GCC prevents building anything better,
8505            # like `-m68040'.
8506            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8507        ;;
8508      esac
8509      ;;
8510
8511    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8512      # PIC is the default for these OSes.
8513      ;;
8514
8515    mingw* | cygwin* | pw32* | os2* | cegcc*)
8516      # This hack is so that the source file can tell whether it is being
8517      # built for inclusion in a dll (and should export symbols for example).
8518      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8519      # (--disable-auto-import) libraries
8520      lt_prog_compiler_pic='-DDLL_EXPORT'
8521      ;;
8522
8523    darwin* | rhapsody*)
8524      # PIC is the default on this platform
8525      # Common symbols not allowed in MH_DYLIB files
8526      lt_prog_compiler_pic='-fno-common'
8527      ;;
8528
8529    haiku*)
8530      # PIC is the default for Haiku.
8531      # The "-static" flag exists, but is broken.
8532      lt_prog_compiler_static=
8533      ;;
8534
8535    hpux*)
8536      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8537      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8538      # sets the default TLS model and affects inlining.
8539      case $host_cpu in
8540      hppa*64*)
8541	# +Z the default
8542	;;
8543      *)
8544	lt_prog_compiler_pic='-fPIC'
8545	;;
8546      esac
8547      ;;
8548
8549    interix[3-9]*)
8550      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8551      # Instead, we relocate shared libraries at runtime.
8552      ;;
8553
8554    msdosdjgpp*)
8555      # Just because we use GCC doesn't mean we suddenly get shared libraries
8556      # on systems that don't support them.
8557      lt_prog_compiler_can_build_shared=no
8558      enable_shared=no
8559      ;;
8560
8561    *nto* | *qnx*)
8562      # QNX uses GNU C++, but need to define -shared option too, otherwise
8563      # it will coredump.
8564      lt_prog_compiler_pic='-fPIC -shared'
8565      ;;
8566
8567    sysv4*MP*)
8568      if test -d /usr/nec; then
8569	lt_prog_compiler_pic=-Kconform_pic
8570      fi
8571      ;;
8572
8573    *)
8574      lt_prog_compiler_pic='-fPIC'
8575      ;;
8576    esac
8577
8578    case $cc_basename in
8579    nvcc*) # Cuda Compiler Driver 2.2
8580      lt_prog_compiler_wl='-Xlinker '
8581      lt_prog_compiler_pic='-Xcompiler -fPIC'
8582      ;;
8583    esac
8584  else
8585    # PORTME Check for flag to pass linker flags through the system compiler.
8586    case $host_os in
8587    aix*)
8588      lt_prog_compiler_wl='-Wl,'
8589      if test "$host_cpu" = ia64; then
8590	# AIX 5 now supports IA64 processor
8591	lt_prog_compiler_static='-Bstatic'
8592      else
8593	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8594      fi
8595      ;;
8596
8597    mingw* | cygwin* | pw32* | os2* | cegcc*)
8598      # This hack is so that the source file can tell whether it is being
8599      # built for inclusion in a dll (and should export symbols for example).
8600      lt_prog_compiler_pic='-DDLL_EXPORT'
8601      ;;
8602
8603    hpux9* | hpux10* | hpux11*)
8604      lt_prog_compiler_wl='-Wl,'
8605      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8606      # not for PA HP-UX.
8607      case $host_cpu in
8608      hppa*64*|ia64*)
8609	# +Z the default
8610	;;
8611      *)
8612	lt_prog_compiler_pic='+Z'
8613	;;
8614      esac
8615      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8616      lt_prog_compiler_static='${wl}-a ${wl}archive'
8617      ;;
8618
8619    irix5* | irix6* | nonstopux*)
8620      lt_prog_compiler_wl='-Wl,'
8621      # PIC (with -KPIC) is the default.
8622      lt_prog_compiler_static='-non_shared'
8623      ;;
8624
8625    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8626      case $cc_basename in
8627      # old Intel for x86_64 which still supported -KPIC.
8628      ecc*)
8629	lt_prog_compiler_wl='-Wl,'
8630	lt_prog_compiler_pic='-KPIC'
8631	lt_prog_compiler_static='-static'
8632        ;;
8633      # icc used to be incompatible with GCC.
8634      # ICC 10 doesn't accept -KPIC any more.
8635      icc* | ifort*)
8636	lt_prog_compiler_wl='-Wl,'
8637	lt_prog_compiler_pic='-fPIC'
8638	lt_prog_compiler_static='-static'
8639        ;;
8640      # Lahey Fortran 8.1.
8641      lf95*)
8642	lt_prog_compiler_wl='-Wl,'
8643	lt_prog_compiler_pic='--shared'
8644	lt_prog_compiler_static='--static'
8645	;;
8646      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8647        # Portland Group compilers (*not* the Pentium gcc compiler,
8648	# which looks to be a dead project)
8649	lt_prog_compiler_wl='-Wl,'
8650	lt_prog_compiler_pic='-fpic'
8651	lt_prog_compiler_static='-Bstatic'
8652        ;;
8653      ccc*)
8654        lt_prog_compiler_wl='-Wl,'
8655        # All Alpha code is PIC.
8656        lt_prog_compiler_static='-non_shared'
8657        ;;
8658      xl* | bgxl* | bgf* | mpixl*)
8659	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8660	lt_prog_compiler_wl='-Wl,'
8661	lt_prog_compiler_pic='-qpic'
8662	lt_prog_compiler_static='-qstaticlink'
8663	;;
8664      *)
8665	case `$CC -V 2>&1 | sed 5q` in
8666	*Sun\ F* | *Sun*Fortran*)
8667	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8668	  lt_prog_compiler_pic='-KPIC'
8669	  lt_prog_compiler_static='-Bstatic'
8670	  lt_prog_compiler_wl=''
8671	  ;;
8672	*Sun\ C*)
8673	  # Sun C 5.9
8674	  lt_prog_compiler_pic='-KPIC'
8675	  lt_prog_compiler_static='-Bstatic'
8676	  lt_prog_compiler_wl='-Wl,'
8677	  ;;
8678	esac
8679	;;
8680      esac
8681      ;;
8682
8683    newsos6)
8684      lt_prog_compiler_pic='-KPIC'
8685      lt_prog_compiler_static='-Bstatic'
8686      ;;
8687
8688    *nto* | *qnx*)
8689      # QNX uses GNU C++, but need to define -shared option too, otherwise
8690      # it will coredump.
8691      lt_prog_compiler_pic='-fPIC -shared'
8692      ;;
8693
8694    osf3* | osf4* | osf5*)
8695      lt_prog_compiler_wl='-Wl,'
8696      # All OSF/1 code is PIC.
8697      lt_prog_compiler_static='-non_shared'
8698      ;;
8699
8700    rdos*)
8701      lt_prog_compiler_static='-non_shared'
8702      ;;
8703
8704    solaris*)
8705      lt_prog_compiler_pic='-KPIC'
8706      lt_prog_compiler_static='-Bstatic'
8707      case $cc_basename in
8708      f77* | f90* | f95*)
8709	lt_prog_compiler_wl='-Qoption ld ';;
8710      *)
8711	lt_prog_compiler_wl='-Wl,';;
8712      esac
8713      ;;
8714
8715    sunos4*)
8716      lt_prog_compiler_wl='-Qoption ld '
8717      lt_prog_compiler_pic='-PIC'
8718      lt_prog_compiler_static='-Bstatic'
8719      ;;
8720
8721    sysv4 | sysv4.2uw2* | sysv4.3*)
8722      lt_prog_compiler_wl='-Wl,'
8723      lt_prog_compiler_pic='-KPIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      ;;
8726
8727    sysv4*MP*)
8728      if test -d /usr/nec ;then
8729	lt_prog_compiler_pic='-Kconform_pic'
8730	lt_prog_compiler_static='-Bstatic'
8731      fi
8732      ;;
8733
8734    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8735      lt_prog_compiler_wl='-Wl,'
8736      lt_prog_compiler_pic='-KPIC'
8737      lt_prog_compiler_static='-Bstatic'
8738      ;;
8739
8740    unicos*)
8741      lt_prog_compiler_wl='-Wl,'
8742      lt_prog_compiler_can_build_shared=no
8743      ;;
8744
8745    uts4*)
8746      lt_prog_compiler_pic='-pic'
8747      lt_prog_compiler_static='-Bstatic'
8748      ;;
8749
8750    *)
8751      lt_prog_compiler_can_build_shared=no
8752      ;;
8753    esac
8754  fi
8755
8756case $host_os in
8757  # For platforms which do not support PIC, -DPIC is meaningless:
8758  *djgpp*)
8759    lt_prog_compiler_pic=
8760    ;;
8761  *)
8762    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8763    ;;
8764esac
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8766$as_echo "$lt_prog_compiler_pic" >&6; }
8767
8768
8769
8770
8771
8772
8773#
8774# Check to make sure the PIC flag actually works.
8775#
8776if test -n "$lt_prog_compiler_pic"; then
8777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8778$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8779if ${lt_cv_prog_compiler_pic_works+:} false; then :
8780  $as_echo_n "(cached) " >&6
8781else
8782  lt_cv_prog_compiler_pic_works=no
8783   ac_outfile=conftest.$ac_objext
8784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8786   # Insert the option either (1) after the last *FLAGS variable, or
8787   # (2) before a word containing "conftest.", or (3) at the end.
8788   # Note that $ac_compile itself does not contain backslashes and begins
8789   # with a dollar sign (not a hyphen), so the echo should work correctly.
8790   # The option is referenced via a variable to avoid confusing sed.
8791   lt_compile=`echo "$ac_compile" | $SED \
8792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794   -e 's:$: $lt_compiler_flag:'`
8795   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796   (eval "$lt_compile" 2>conftest.err)
8797   ac_status=$?
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   if (exit $ac_status) && test -s "$ac_outfile"; then
8801     # The compiler can only warn and ignore the option if not recognized
8802     # So say no if there are warnings other than the usual output.
8803     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806       lt_cv_prog_compiler_pic_works=yes
8807     fi
8808   fi
8809   $RM conftest*
8810
8811fi
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8813$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8814
8815if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8816    case $lt_prog_compiler_pic in
8817     "" | " "*) ;;
8818     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8819     esac
8820else
8821    lt_prog_compiler_pic=
8822     lt_prog_compiler_can_build_shared=no
8823fi
8824
8825fi
8826
8827
8828
8829
8830
8831
8832#
8833# Check to make sure the static flag actually works.
8834#
8835wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8837$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8838if ${lt_cv_prog_compiler_static_works+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  lt_cv_prog_compiler_static_works=no
8842   save_LDFLAGS="$LDFLAGS"
8843   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8844   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8845   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8846     # The linker can only warn and ignore the option if not recognized
8847     # So say no if there are warnings
8848     if test -s conftest.err; then
8849       # Append any errors to the config.log.
8850       cat conftest.err 1>&5
8851       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8852       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8853       if diff conftest.exp conftest.er2 >/dev/null; then
8854         lt_cv_prog_compiler_static_works=yes
8855       fi
8856     else
8857       lt_cv_prog_compiler_static_works=yes
8858     fi
8859   fi
8860   $RM -r conftest*
8861   LDFLAGS="$save_LDFLAGS"
8862
8863fi
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8865$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8866
8867if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8868    :
8869else
8870    lt_prog_compiler_static=
8871fi
8872
8873
8874
8875
8876
8877
8878
8879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8880$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8881if ${lt_cv_prog_compiler_c_o+:} false; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884  lt_cv_prog_compiler_c_o=no
8885   $RM -r conftest 2>/dev/null
8886   mkdir conftest
8887   cd conftest
8888   mkdir out
8889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890
8891   lt_compiler_flag="-o out/conftest2.$ac_objext"
8892   # Insert the option either (1) after the last *FLAGS variable, or
8893   # (2) before a word containing "conftest.", or (3) at the end.
8894   # Note that $ac_compile itself does not contain backslashes and begins
8895   # with a dollar sign (not a hyphen), so the echo should work correctly.
8896   lt_compile=`echo "$ac_compile" | $SED \
8897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899   -e 's:$: $lt_compiler_flag:'`
8900   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901   (eval "$lt_compile" 2>out/conftest.err)
8902   ac_status=$?
8903   cat out/conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8906   then
8907     # The compiler can only warn and ignore the option if not recognized
8908     # So say no if there are warnings
8909     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8910     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8911     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8912       lt_cv_prog_compiler_c_o=yes
8913     fi
8914   fi
8915   chmod u+w . 2>&5
8916   $RM conftest*
8917   # SGI C++ compiler will create directory out/ii_files/ for
8918   # template instantiation
8919   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8920   $RM out/* && rmdir out
8921   cd ..
8922   $RM -r conftest
8923   $RM conftest*
8924
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8927$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8928
8929
8930
8931
8932
8933
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8936if ${lt_cv_prog_compiler_c_o+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  lt_cv_prog_compiler_c_o=no
8940   $RM -r conftest 2>/dev/null
8941   mkdir conftest
8942   cd conftest
8943   mkdir out
8944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945
8946   lt_compiler_flag="-o out/conftest2.$ac_objext"
8947   # Insert the option either (1) after the last *FLAGS variable, or
8948   # (2) before a word containing "conftest.", or (3) at the end.
8949   # Note that $ac_compile itself does not contain backslashes and begins
8950   # with a dollar sign (not a hyphen), so the echo should work correctly.
8951   lt_compile=`echo "$ac_compile" | $SED \
8952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954   -e 's:$: $lt_compiler_flag:'`
8955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956   (eval "$lt_compile" 2>out/conftest.err)
8957   ac_status=$?
8958   cat out/conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8961   then
8962     # The compiler can only warn and ignore the option if not recognized
8963     # So say no if there are warnings
8964     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8965     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8966     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8967       lt_cv_prog_compiler_c_o=yes
8968     fi
8969   fi
8970   chmod u+w . 2>&5
8971   $RM conftest*
8972   # SGI C++ compiler will create directory out/ii_files/ for
8973   # template instantiation
8974   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8975   $RM out/* && rmdir out
8976   cd ..
8977   $RM -r conftest
8978   $RM conftest*
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8982$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983
8984
8985
8986
8987hard_links="nottested"
8988if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8989  # do not overwrite the value of need_locks provided by the user
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8991$as_echo_n "checking if we can lock with hard links... " >&6; }
8992  hard_links=yes
8993  $RM conftest*
8994  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8995  touch conftest.a
8996  ln conftest.a conftest.b 2>&5 || hard_links=no
8997  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8999$as_echo "$hard_links" >&6; }
9000  if test "$hard_links" = no; then
9001    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9002$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9003    need_locks=warn
9004  fi
9005else
9006  need_locks=no
9007fi
9008
9009
9010
9011
9012
9013
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9015$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9016
9017  runpath_var=
9018  allow_undefined_flag=
9019  always_export_symbols=no
9020  archive_cmds=
9021  archive_expsym_cmds=
9022  compiler_needs_object=no
9023  enable_shared_with_static_runtimes=no
9024  export_dynamic_flag_spec=
9025  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9026  hardcode_automatic=no
9027  hardcode_direct=no
9028  hardcode_direct_absolute=no
9029  hardcode_libdir_flag_spec=
9030  hardcode_libdir_flag_spec_ld=
9031  hardcode_libdir_separator=
9032  hardcode_minus_L=no
9033  hardcode_shlibpath_var=unsupported
9034  inherit_rpath=no
9035  link_all_deplibs=unknown
9036  module_cmds=
9037  module_expsym_cmds=
9038  old_archive_from_new_cmds=
9039  old_archive_from_expsyms_cmds=
9040  thread_safe_flag_spec=
9041  whole_archive_flag_spec=
9042  # include_expsyms should be a list of space-separated symbols to be *always*
9043  # included in the symbol list
9044  include_expsyms=
9045  # exclude_expsyms can be an extended regexp of symbols to exclude
9046  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9047  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9048  # as well as any symbol that contains `d'.
9049  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9050  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9051  # platforms (ab)use it in PIC code, but their linkers get confused if
9052  # the symbol is explicitly referenced.  Since portable code cannot
9053  # rely on this symbol name, it's probably fine to never include it in
9054  # preloaded symbol tables.
9055  # Exclude shared library initialization/finalization symbols.
9056  extract_expsyms_cmds=
9057
9058  case $host_os in
9059  cygwin* | mingw* | pw32* | cegcc*)
9060    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9061    # When not using gcc, we currently assume that we are using
9062    # Microsoft Visual C++.
9063    if test "$GCC" != yes; then
9064      with_gnu_ld=no
9065    fi
9066    ;;
9067  interix*)
9068    # we just hope/assume this is gcc and not c89 (= MSVC++)
9069    with_gnu_ld=yes
9070    ;;
9071  openbsd*)
9072    with_gnu_ld=no
9073    ;;
9074  esac
9075
9076  ld_shlibs=yes
9077
9078  # On some targets, GNU ld is compatible enough with the native linker
9079  # that we're better off using the native interface for both.
9080  lt_use_gnu_ld_interface=no
9081  if test "$with_gnu_ld" = yes; then
9082    case $host_os in
9083      aix*)
9084	# The AIX port of GNU ld has always aspired to compatibility
9085	# with the native linker.  However, as the warning in the GNU ld
9086	# block says, versions before 2.19.5* couldn't really create working
9087	# shared libraries, regardless of the interface used.
9088	case `$LD -v 2>&1` in
9089	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9090	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9091	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9092	  *)
9093	    lt_use_gnu_ld_interface=yes
9094	    ;;
9095	esac
9096	;;
9097      *)
9098	lt_use_gnu_ld_interface=yes
9099	;;
9100    esac
9101  fi
9102
9103  if test "$lt_use_gnu_ld_interface" = yes; then
9104    # If archive_cmds runs LD, not CC, wlarc should be empty
9105    wlarc='${wl}'
9106
9107    # Set some defaults for GNU ld with shared library support. These
9108    # are reset later if shared libraries are not supported. Putting them
9109    # here allows them to be overridden if necessary.
9110    runpath_var=LD_RUN_PATH
9111    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9112    export_dynamic_flag_spec='${wl}--export-dynamic'
9113    # ancient GNU ld didn't support --whole-archive et. al.
9114    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9115      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9116    else
9117      whole_archive_flag_spec=
9118    fi
9119    supports_anon_versioning=no
9120    case `$LD -v 2>&1` in
9121      *GNU\ gold*) supports_anon_versioning=yes ;;
9122      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9123      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9124      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9125      *\ 2.11.*) ;; # other 2.11 versions
9126      *) supports_anon_versioning=yes ;;
9127    esac
9128
9129    # See if GNU ld supports shared libraries.
9130    case $host_os in
9131    aix[3-9]*)
9132      # On AIX/PPC, the GNU linker is very broken
9133      if test "$host_cpu" != ia64; then
9134	ld_shlibs=no
9135	cat <<_LT_EOF 1>&2
9136
9137*** Warning: the GNU linker, at least up to release 2.19, is reported
9138*** to be unable to reliably create shared libraries on AIX.
9139*** Therefore, libtool is disabling shared libraries support.  If you
9140*** really care for shared libraries, you may want to install binutils
9141*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9142*** You will then need to restart the configuration process.
9143
9144_LT_EOF
9145      fi
9146      ;;
9147
9148    amigaos*)
9149      case $host_cpu in
9150      powerpc)
9151            # see comment about AmigaOS4 .so support
9152            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153            archive_expsym_cmds=''
9154        ;;
9155      m68k)
9156            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)'
9157            hardcode_libdir_flag_spec='-L$libdir'
9158            hardcode_minus_L=yes
9159        ;;
9160      esac
9161      ;;
9162
9163    beos*)
9164      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9165	allow_undefined_flag=unsupported
9166	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9167	# support --undefined.  This deserves some investigation.  FIXME
9168	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169      else
9170	ld_shlibs=no
9171      fi
9172      ;;
9173
9174    cygwin* | mingw* | pw32* | cegcc*)
9175      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9176      # as there is no search path for DLLs.
9177      hardcode_libdir_flag_spec='-L$libdir'
9178      export_dynamic_flag_spec='${wl}--export-all-symbols'
9179      allow_undefined_flag=unsupported
9180      always_export_symbols=no
9181      enable_shared_with_static_runtimes=yes
9182      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9183
9184      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9185        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186	# If the export-symbols file already is a .def file (1st line
9187	# is EXPORTS), use it as is; otherwise, prepend...
9188	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9189	  cp $export_symbols $output_objdir/$soname.def;
9190	else
9191	  echo EXPORTS > $output_objdir/$soname.def;
9192	  cat $export_symbols >> $output_objdir/$soname.def;
9193	fi~
9194	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9195      else
9196	ld_shlibs=no
9197      fi
9198      ;;
9199
9200    haiku*)
9201      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202      link_all_deplibs=yes
9203      ;;
9204
9205    interix[3-9]*)
9206      hardcode_direct=no
9207      hardcode_shlibpath_var=no
9208      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9209      export_dynamic_flag_spec='${wl}-E'
9210      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9211      # Instead, shared libraries are loaded at an image base (0x10000000 by
9212      # default) and relocated if they conflict, which is a slow very memory
9213      # consuming and fragmenting process.  To avoid this, we pick a random,
9214      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9215      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9216      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9217      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'
9218      ;;
9219
9220    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9221      tmp_diet=no
9222      if test "$host_os" = linux-dietlibc; then
9223	case $cc_basename in
9224	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9225	esac
9226      fi
9227      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9228	 && test "$tmp_diet" = no
9229      then
9230	tmp_addflag=' $pic_flag'
9231	tmp_sharedflag='-shared'
9232	case $cc_basename,$host_cpu in
9233        pgcc*)				# Portland Group C compiler
9234	  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'
9235	  tmp_addflag=' $pic_flag'
9236	  ;;
9237	pgf77* | pgf90* | pgf95* | pgfortran*)
9238					# Portland Group f77 and f90 compilers
9239	  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'
9240	  tmp_addflag=' $pic_flag -Mnomain' ;;
9241	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9242	  tmp_addflag=' -i_dynamic' ;;
9243	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9244	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9245	ifc* | ifort*)			# Intel Fortran compiler
9246	  tmp_addflag=' -nofor_main' ;;
9247	lf95*)				# Lahey Fortran 8.1
9248	  whole_archive_flag_spec=
9249	  tmp_sharedflag='--shared' ;;
9250	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9251	  tmp_sharedflag='-qmkshrobj'
9252	  tmp_addflag= ;;
9253	nvcc*)	# Cuda Compiler Driver 2.2
9254	  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'
9255	  compiler_needs_object=yes
9256	  ;;
9257	esac
9258	case `$CC -V 2>&1 | sed 5q` in
9259	*Sun\ C*)			# Sun C 5.9
9260	  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'
9261	  compiler_needs_object=yes
9262	  tmp_sharedflag='-G' ;;
9263	*Sun\ F*)			# Sun Fortran 8.3
9264	  tmp_sharedflag='-G' ;;
9265	esac
9266	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267
9268        if test "x$supports_anon_versioning" = xyes; then
9269          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9270	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9271	    echo "local: *; };" >> $output_objdir/$libname.ver~
9272	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9273        fi
9274
9275	case $cc_basename in
9276	xlf* | bgf* | bgxlf* | mpixlf*)
9277	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9278	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9279	  hardcode_libdir_flag_spec=
9280	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9281	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9282	  if test "x$supports_anon_versioning" = xyes; then
9283	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9284	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9285	      echo "local: *; };" >> $output_objdir/$libname.ver~
9286	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9287	  fi
9288	  ;;
9289	esac
9290      else
9291        ld_shlibs=no
9292      fi
9293      ;;
9294
9295    netbsd*)
9296      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9298	wlarc=
9299      else
9300	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9302      fi
9303      ;;
9304
9305    solaris*)
9306      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9307	ld_shlibs=no
9308	cat <<_LT_EOF 1>&2
9309
9310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9311*** create shared libraries on Solaris systems.  Therefore, libtool
9312*** is disabling shared libraries support.  We urge you to upgrade GNU
9313*** binutils to release 2.9.1 or newer.  Another option is to modify
9314*** your PATH or compiler configuration so that the native linker is
9315*** used, and then restart.
9316
9317_LT_EOF
9318      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321      else
9322	ld_shlibs=no
9323      fi
9324      ;;
9325
9326    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9327      case `$LD -v 2>&1` in
9328        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9329	ld_shlibs=no
9330	cat <<_LT_EOF 1>&2
9331
9332*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9333*** reliably create shared libraries on SCO systems.  Therefore, libtool
9334*** is disabling shared libraries support.  We urge you to upgrade GNU
9335*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9336*** your PATH or compiler configuration so that the native linker is
9337*** used, and then restart.
9338
9339_LT_EOF
9340	;;
9341	*)
9342	  # For security reasons, it is highly recommended that you always
9343	  # use absolute paths for naming shared libraries, and exclude the
9344	  # DT_RUNPATH tag from executables and libraries.  But doing so
9345	  # requires that you compile everything twice, which is a pain.
9346	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9348	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350	  else
9351	    ld_shlibs=no
9352	  fi
9353	;;
9354      esac
9355      ;;
9356
9357    sunos4*)
9358      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9359      wlarc=
9360      hardcode_direct=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    *)
9365      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368      else
9369	ld_shlibs=no
9370      fi
9371      ;;
9372    esac
9373
9374    if test "$ld_shlibs" = no; then
9375      runpath_var=
9376      hardcode_libdir_flag_spec=
9377      export_dynamic_flag_spec=
9378      whole_archive_flag_spec=
9379    fi
9380  else
9381    # PORTME fill in a description of your system's linker (not GNU ld)
9382    case $host_os in
9383    aix3*)
9384      allow_undefined_flag=unsupported
9385      always_export_symbols=yes
9386      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'
9387      # Note: this linker hardcodes the directories in LIBPATH if there
9388      # are no directories specified by -L.
9389      hardcode_minus_L=yes
9390      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9391	# Neither direct hardcoding nor static linking is supported with a
9392	# broken collect2.
9393	hardcode_direct=unsupported
9394      fi
9395      ;;
9396
9397    aix[4-9]*)
9398      if test "$host_cpu" = ia64; then
9399	# On IA64, the linker does run time linking by default, so we don't
9400	# have to do anything special.
9401	aix_use_runtimelinking=no
9402	exp_sym_flag='-Bexport'
9403	no_entry_flag=""
9404      else
9405	# If we're using GNU nm, then we don't want the "-C" option.
9406	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9407	# Also, AIX nm treats weak defined symbols like other global
9408	# defined symbols, whereas GNU nm marks them as "W".
9409	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9410	  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'
9411	else
9412	  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'
9413	fi
9414	aix_use_runtimelinking=no
9415
9416	# Test if we are trying to use run time linking or normal
9417	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9418	# need to do runtime linking.
9419	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9420	  for ld_flag in $LDFLAGS; do
9421	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9422	    aix_use_runtimelinking=yes
9423	    break
9424	  fi
9425	  done
9426	  ;;
9427	esac
9428
9429	exp_sym_flag='-bexport'
9430	no_entry_flag='-bnoentry'
9431      fi
9432
9433      # When large executables or shared objects are built, AIX ld can
9434      # have problems creating the table of contents.  If linking a library
9435      # or program results in "error TOC overflow" add -mminimal-toc to
9436      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9437      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9438
9439      archive_cmds=''
9440      hardcode_direct=yes
9441      hardcode_direct_absolute=yes
9442      hardcode_libdir_separator=':'
9443      link_all_deplibs=yes
9444      file_list_spec='${wl}-f,'
9445
9446      if test "$GCC" = yes; then
9447	case $host_os in aix4.[012]|aix4.[012].*)
9448	# We only want to do this on AIX 4.2 and lower, the check
9449	# below for broken collect2 doesn't work under 4.3+
9450	  collect2name=`${CC} -print-prog-name=collect2`
9451	  if test -f "$collect2name" &&
9452	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9453	  then
9454	  # We have reworked collect2
9455	  :
9456	  else
9457	  # We have old collect2
9458	  hardcode_direct=unsupported
9459	  # It fails to find uninstalled libraries when the uninstalled
9460	  # path is not listed in the libpath.  Setting hardcode_minus_L
9461	  # to unsupported forces relinking
9462	  hardcode_minus_L=yes
9463	  hardcode_libdir_flag_spec='-L$libdir'
9464	  hardcode_libdir_separator=
9465	  fi
9466	  ;;
9467	esac
9468	shared_flag='-shared'
9469	if test "$aix_use_runtimelinking" = yes; then
9470	  shared_flag="$shared_flag "'${wl}-G'
9471	fi
9472      else
9473	# not using gcc
9474	if test "$host_cpu" = ia64; then
9475	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9476	# chokes on -Wl,-G. The following line is correct:
9477	  shared_flag='-G'
9478	else
9479	  if test "$aix_use_runtimelinking" = yes; then
9480	    shared_flag='${wl}-G'
9481	  else
9482	    shared_flag='${wl}-bM:SRE'
9483	  fi
9484	fi
9485      fi
9486
9487      export_dynamic_flag_spec='${wl}-bexpall'
9488      # It seems that -bexpall does not export symbols beginning with
9489      # underscore (_), so it is better to generate a list of symbols to export.
9490      always_export_symbols=yes
9491      if test "$aix_use_runtimelinking" = yes; then
9492	# Warning - without using the other runtime loading flags (-brtl),
9493	# -berok will link without error, but may produce a broken library.
9494	allow_undefined_flag='-berok'
9495        # Determine the default libpath from the value encoded in an
9496        # empty executable.
9497        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499
9500int
9501main ()
9502{
9503
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508if ac_fn_c_try_link "$LINENO"; then :
9509
9510lt_aix_libpath_sed='
9511    /Import File Strings/,/^$/ {
9512	/^0/ {
9513	    s/^0  *\(.*\)$/\1/
9514	    p
9515	}
9516    }'
9517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518# Check for a 64-bit object if we didn't find anything.
9519if test -z "$aix_libpath"; then
9520  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521fi
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524    conftest$ac_exeext conftest.$ac_ext
9525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526
9527        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9528        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"
9529      else
9530	if test "$host_cpu" = ia64; then
9531	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9532	  allow_undefined_flag="-z nodefs"
9533	  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"
9534	else
9535	 # Determine the default libpath from the value encoded in an
9536	 # empty executable.
9537	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538/* end confdefs.h.  */
9539
9540int
9541main ()
9542{
9543
9544  ;
9545  return 0;
9546}
9547_ACEOF
9548if ac_fn_c_try_link "$LINENO"; then :
9549
9550lt_aix_libpath_sed='
9551    /Import File Strings/,/^$/ {
9552	/^0/ {
9553	    s/^0  *\(.*\)$/\1/
9554	    p
9555	}
9556    }'
9557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558# Check for a 64-bit object if we didn't find anything.
9559if test -z "$aix_libpath"; then
9560  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561fi
9562fi
9563rm -f core conftest.err conftest.$ac_objext \
9564    conftest$ac_exeext conftest.$ac_ext
9565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9566
9567	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9568	  # Warning - without using the other run time loading flags,
9569	  # -berok will link without error, but may produce a broken library.
9570	  no_undefined_flag=' ${wl}-bernotok'
9571	  allow_undefined_flag=' ${wl}-berok'
9572	  if test "$with_gnu_ld" = yes; then
9573	    # We only use this code for GNU lds that support --whole-archive.
9574	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9575	  else
9576	    # Exported symbols can be pulled into shared objects from archives
9577	    whole_archive_flag_spec='$convenience'
9578	  fi
9579	  archive_cmds_need_lc=yes
9580	  # This is similar to how AIX traditionally builds its shared libraries.
9581	  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'
9582	fi
9583      fi
9584      ;;
9585
9586    amigaos*)
9587      case $host_cpu in
9588      powerpc)
9589            # see comment about AmigaOS4 .so support
9590            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591            archive_expsym_cmds=''
9592        ;;
9593      m68k)
9594            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)'
9595            hardcode_libdir_flag_spec='-L$libdir'
9596            hardcode_minus_L=yes
9597        ;;
9598      esac
9599      ;;
9600
9601    bsdi[45]*)
9602      export_dynamic_flag_spec=-rdynamic
9603      ;;
9604
9605    cygwin* | mingw* | pw32* | cegcc*)
9606      # When not using gcc, we currently assume that we are using
9607      # Microsoft Visual C++.
9608      # hardcode_libdir_flag_spec is actually meaningless, as there is
9609      # no search path for DLLs.
9610      hardcode_libdir_flag_spec=' '
9611      allow_undefined_flag=unsupported
9612      # Tell ltmain to make .lib files, not .a files.
9613      libext=lib
9614      # Tell ltmain to make .dll files, not .so files.
9615      shrext_cmds=".dll"
9616      # FIXME: Setting linknames here is a bad hack.
9617      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9618      # The linker will automatically build a .lib file if we build a DLL.
9619      old_archive_from_new_cmds='true'
9620      # FIXME: Should let the user specify the lib program.
9621      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9622      fix_srcfile_path='`cygpath -w "$srcfile"`'
9623      enable_shared_with_static_runtimes=yes
9624      ;;
9625
9626    darwin* | rhapsody*)
9627
9628
9629  archive_cmds_need_lc=no
9630  hardcode_direct=no
9631  hardcode_automatic=yes
9632  hardcode_shlibpath_var=unsupported
9633  if test "$lt_cv_ld_force_load" = "yes"; then
9634    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\"`'
9635  else
9636    whole_archive_flag_spec=''
9637  fi
9638  link_all_deplibs=yes
9639  allow_undefined_flag="$_lt_dar_allow_undefined"
9640  case $cc_basename in
9641     ifort*) _lt_dar_can_shared=yes ;;
9642     *) _lt_dar_can_shared=$GCC ;;
9643  esac
9644  if test "$_lt_dar_can_shared" = "yes"; then
9645    output_verbose_link_cmd=func_echo_all
9646    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9647    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9648    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}"
9649    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}"
9650
9651  else
9652  ld_shlibs=no
9653  fi
9654
9655      ;;
9656
9657    dgux*)
9658      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659      hardcode_libdir_flag_spec='-L$libdir'
9660      hardcode_shlibpath_var=no
9661      ;;
9662
9663    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9664    # support.  Future versions do this automatically, but an explicit c++rt0.o
9665    # does not break anything, and helps significantly (at the cost of a little
9666    # extra space).
9667    freebsd2.2*)
9668      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9669      hardcode_libdir_flag_spec='-R$libdir'
9670      hardcode_direct=yes
9671      hardcode_shlibpath_var=no
9672      ;;
9673
9674    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9675    freebsd2.*)
9676      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9677      hardcode_direct=yes
9678      hardcode_minus_L=yes
9679      hardcode_shlibpath_var=no
9680      ;;
9681
9682    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9683    freebsd* | dragonfly*)
9684      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9685      hardcode_libdir_flag_spec='-R$libdir'
9686      hardcode_direct=yes
9687      hardcode_shlibpath_var=no
9688      ;;
9689
9690    hpux9*)
9691      if test "$GCC" = yes; then
9692	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'
9693      else
9694	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'
9695      fi
9696      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9697      hardcode_libdir_separator=:
9698      hardcode_direct=yes
9699
9700      # hardcode_minus_L: Not really in the search PATH,
9701      # but as the default location of the library.
9702      hardcode_minus_L=yes
9703      export_dynamic_flag_spec='${wl}-E'
9704      ;;
9705
9706    hpux10*)
9707      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9708	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9709      else
9710	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9711      fi
9712      if test "$with_gnu_ld" = no; then
9713	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9714	hardcode_libdir_flag_spec_ld='+b $libdir'
9715	hardcode_libdir_separator=:
9716	hardcode_direct=yes
9717	hardcode_direct_absolute=yes
9718	export_dynamic_flag_spec='${wl}-E'
9719	# hardcode_minus_L: Not really in the search PATH,
9720	# but as the default location of the library.
9721	hardcode_minus_L=yes
9722      fi
9723      ;;
9724
9725    hpux11*)
9726      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9727	case $host_cpu in
9728	hppa*64*)
9729	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9730	  ;;
9731	ia64*)
9732	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9733	  ;;
9734	*)
9735	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736	  ;;
9737	esac
9738      else
9739	case $host_cpu in
9740	hppa*64*)
9741	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9742	  ;;
9743	ia64*)
9744	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9745	  ;;
9746	*)
9747
9748	  # Older versions of the 11.00 compiler do not understand -b yet
9749	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9750	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9751$as_echo_n "checking if $CC understands -b... " >&6; }
9752if ${lt_cv_prog_compiler__b+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  lt_cv_prog_compiler__b=no
9756   save_LDFLAGS="$LDFLAGS"
9757   LDFLAGS="$LDFLAGS -b"
9758   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9759   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9760     # The linker can only warn and ignore the option if not recognized
9761     # So say no if there are warnings
9762     if test -s conftest.err; then
9763       # Append any errors to the config.log.
9764       cat conftest.err 1>&5
9765       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9766       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9767       if diff conftest.exp conftest.er2 >/dev/null; then
9768         lt_cv_prog_compiler__b=yes
9769       fi
9770     else
9771       lt_cv_prog_compiler__b=yes
9772     fi
9773   fi
9774   $RM -r conftest*
9775   LDFLAGS="$save_LDFLAGS"
9776
9777fi
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9779$as_echo "$lt_cv_prog_compiler__b" >&6; }
9780
9781if test x"$lt_cv_prog_compiler__b" = xyes; then
9782    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9783else
9784    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9785fi
9786
9787	  ;;
9788	esac
9789      fi
9790      if test "$with_gnu_ld" = no; then
9791	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9792	hardcode_libdir_separator=:
9793
9794	case $host_cpu in
9795	hppa*64*|ia64*)
9796	  hardcode_direct=no
9797	  hardcode_shlibpath_var=no
9798	  ;;
9799	*)
9800	  hardcode_direct=yes
9801	  hardcode_direct_absolute=yes
9802	  export_dynamic_flag_spec='${wl}-E'
9803
9804	  # hardcode_minus_L: Not really in the search PATH,
9805	  # but as the default location of the library.
9806	  hardcode_minus_L=yes
9807	  ;;
9808	esac
9809      fi
9810      ;;
9811
9812    irix5* | irix6* | nonstopux*)
9813      if test "$GCC" = yes; then
9814	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'
9815	# Try to use the -exported_symbol ld option, if it does not
9816	# work, assume that -exports_file does not work either and
9817	# implicitly export all symbols.
9818        save_LDFLAGS="$LDFLAGS"
9819        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9820        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int foo(void) {}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825  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'
9826
9827fi
9828rm -f core conftest.err conftest.$ac_objext \
9829    conftest$ac_exeext conftest.$ac_ext
9830        LDFLAGS="$save_LDFLAGS"
9831      else
9832	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'
9833	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'
9834      fi
9835      archive_cmds_need_lc='no'
9836      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837      hardcode_libdir_separator=:
9838      inherit_rpath=yes
9839      link_all_deplibs=yes
9840      ;;
9841
9842    netbsd*)
9843      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9844	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9845      else
9846	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9847      fi
9848      hardcode_libdir_flag_spec='-R$libdir'
9849      hardcode_direct=yes
9850      hardcode_shlibpath_var=no
9851      ;;
9852
9853    newsos6)
9854      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855      hardcode_direct=yes
9856      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9857      hardcode_libdir_separator=:
9858      hardcode_shlibpath_var=no
9859      ;;
9860
9861    *nto* | *qnx*)
9862      ;;
9863
9864    openbsd*)
9865      if test -f /usr/libexec/ld.so; then
9866	hardcode_direct=yes
9867	hardcode_shlibpath_var=no
9868	hardcode_direct_absolute=yes
9869	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9870	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9871	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9872	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873	  export_dynamic_flag_spec='${wl}-E'
9874	else
9875	  case $host_os in
9876	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9877	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878	     hardcode_libdir_flag_spec='-R$libdir'
9879	     ;;
9880	   *)
9881	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9882	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9883	     ;;
9884	  esac
9885	fi
9886      else
9887	ld_shlibs=no
9888      fi
9889      ;;
9890
9891    os2*)
9892      hardcode_libdir_flag_spec='-L$libdir'
9893      hardcode_minus_L=yes
9894      allow_undefined_flag=unsupported
9895      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'
9896      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9897      ;;
9898
9899    osf3*)
9900      if test "$GCC" = yes; then
9901	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9902	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'
9903      else
9904	allow_undefined_flag=' -expect_unresolved \*'
9905	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'
9906      fi
9907      archive_cmds_need_lc='no'
9908      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909      hardcode_libdir_separator=:
9910      ;;
9911
9912    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9913      if test "$GCC" = yes; then
9914	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9915	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'
9916	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917      else
9918	allow_undefined_flag=' -expect_unresolved \*'
9919	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'
9920	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~
9921	$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'
9922
9923	# Both c and cxx compiler support -rpath directly
9924	hardcode_libdir_flag_spec='-rpath $libdir'
9925      fi
9926      archive_cmds_need_lc='no'
9927      hardcode_libdir_separator=:
9928      ;;
9929
9930    solaris*)
9931      no_undefined_flag=' -z defs'
9932      if test "$GCC" = yes; then
9933	wlarc='${wl}'
9934	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9937      else
9938	case `$CC -V 2>&1` in
9939	*"Compilers 5.0"*)
9940	  wlarc=''
9941	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9943	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9944	  ;;
9945	*)
9946	  wlarc='${wl}'
9947	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9948	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9949	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950	  ;;
9951	esac
9952      fi
9953      hardcode_libdir_flag_spec='-R$libdir'
9954      hardcode_shlibpath_var=no
9955      case $host_os in
9956      solaris2.[0-5] | solaris2.[0-5].*) ;;
9957      *)
9958	# The compiler driver will combine and reorder linker options,
9959	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9960	# but is careful enough not to reorder.
9961	# Supported since Solaris 2.6 (maybe 2.5.1?)
9962	if test "$GCC" = yes; then
9963	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9964	else
9965	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9966	fi
9967	;;
9968      esac
9969      link_all_deplibs=yes
9970      ;;
9971
9972    sunos4*)
9973      if test "x$host_vendor" = xsequent; then
9974	# Use $CC to link under sequent, because it throws in some extra .o
9975	# files that make .init and .fini sections work.
9976	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9977      else
9978	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9979      fi
9980      hardcode_libdir_flag_spec='-L$libdir'
9981      hardcode_direct=yes
9982      hardcode_minus_L=yes
9983      hardcode_shlibpath_var=no
9984      ;;
9985
9986    sysv4)
9987      case $host_vendor in
9988	sni)
9989	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990	  hardcode_direct=yes # is this really true???
9991	;;
9992	siemens)
9993	  ## LD is ld it makes a PLAMLIB
9994	  ## CC just makes a GrossModule.
9995	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9996	  reload_cmds='$CC -r -o $output$reload_objs'
9997	  hardcode_direct=no
9998        ;;
9999	motorola)
10000	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10002	;;
10003      esac
10004      runpath_var='LD_RUN_PATH'
10005      hardcode_shlibpath_var=no
10006      ;;
10007
10008    sysv4.3*)
10009      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010      hardcode_shlibpath_var=no
10011      export_dynamic_flag_spec='-Bexport'
10012      ;;
10013
10014    sysv4*MP*)
10015      if test -d /usr/nec; then
10016	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017	hardcode_shlibpath_var=no
10018	runpath_var=LD_RUN_PATH
10019	hardcode_runpath_var=yes
10020	ld_shlibs=yes
10021      fi
10022      ;;
10023
10024    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10025      no_undefined_flag='${wl}-z,text'
10026      archive_cmds_need_lc=no
10027      hardcode_shlibpath_var=no
10028      runpath_var='LD_RUN_PATH'
10029
10030      if test "$GCC" = yes; then
10031	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033      else
10034	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036      fi
10037      ;;
10038
10039    sysv5* | sco3.2v5* | sco5v6*)
10040      # Note: We can NOT use -z defs as we might desire, because we do not
10041      # link with -lc, and that would cause any symbols used from libc to
10042      # always be unresolved, which means just about no library would
10043      # ever link correctly.  If we're not using GNU ld we use -z text
10044      # though, which does catch some bad symbols but isn't as heavy-handed
10045      # as -z defs.
10046      no_undefined_flag='${wl}-z,text'
10047      allow_undefined_flag='${wl}-z,nodefs'
10048      archive_cmds_need_lc=no
10049      hardcode_shlibpath_var=no
10050      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10051      hardcode_libdir_separator=':'
10052      link_all_deplibs=yes
10053      export_dynamic_flag_spec='${wl}-Bexport'
10054      runpath_var='LD_RUN_PATH'
10055
10056      if test "$GCC" = yes; then
10057	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059      else
10060	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062      fi
10063      ;;
10064
10065    uts4*)
10066      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067      hardcode_libdir_flag_spec='-L$libdir'
10068      hardcode_shlibpath_var=no
10069      ;;
10070
10071    *)
10072      ld_shlibs=no
10073      ;;
10074    esac
10075
10076    if test x$host_vendor = xsni; then
10077      case $host in
10078      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10079	export_dynamic_flag_spec='${wl}-Blargedynsym'
10080	;;
10081      esac
10082    fi
10083  fi
10084
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10086$as_echo "$ld_shlibs" >&6; }
10087test "$ld_shlibs" = no && can_build_shared=no
10088
10089with_gnu_ld=$with_gnu_ld
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105#
10106# Do we need to explicitly link libc?
10107#
10108case "x$archive_cmds_need_lc" in
10109x|xyes)
10110  # Assume -lc should be added
10111  archive_cmds_need_lc=yes
10112
10113  if test "$enable_shared" = yes && test "$GCC" = yes; then
10114    case $archive_cmds in
10115    *'~'*)
10116      # FIXME: we may have to deal with multi-command sequences.
10117      ;;
10118    '$CC '*)
10119      # Test whether the compiler implicitly links with -lc since on some
10120      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10121      # to ld, don't add -lc before -lgcc.
10122      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10123$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10124if ${lt_cv_archive_cmds_need_lc+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  $RM conftest*
10128	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129
10130	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10131  (eval $ac_compile) 2>&5
10132  ac_status=$?
10133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10134  test $ac_status = 0; } 2>conftest.err; then
10135	  soname=conftest
10136	  lib=conftest
10137	  libobjs=conftest.$ac_objext
10138	  deplibs=
10139	  wl=$lt_prog_compiler_wl
10140	  pic_flag=$lt_prog_compiler_pic
10141	  compiler_flags=-v
10142	  linker_flags=-v
10143	  verstring=
10144	  output_objdir=.
10145	  libname=conftest
10146	  lt_save_allow_undefined_flag=$allow_undefined_flag
10147	  allow_undefined_flag=
10148	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10149  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10150  ac_status=$?
10151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10152  test $ac_status = 0; }
10153	  then
10154	    lt_cv_archive_cmds_need_lc=no
10155	  else
10156	    lt_cv_archive_cmds_need_lc=yes
10157	  fi
10158	  allow_undefined_flag=$lt_save_allow_undefined_flag
10159	else
10160	  cat conftest.err 1>&5
10161	fi
10162	$RM conftest*
10163
10164fi
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10166$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10167      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10168      ;;
10169    esac
10170  fi
10171  ;;
10172esac
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10331$as_echo_n "checking dynamic linker characteristics... " >&6; }
10332
10333if test "$GCC" = yes; then
10334  case $host_os in
10335    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10336    *) lt_awk_arg="/^libraries:/" ;;
10337  esac
10338  case $host_os in
10339    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10340    *) lt_sed_strip_eq="s,=/,/,g" ;;
10341  esac
10342  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10343  case $lt_search_path_spec in
10344  *\;*)
10345    # if the path contains ";" then we assume it to be the separator
10346    # otherwise default to the standard path separator (i.e. ":") - it is
10347    # assumed that no part of a normal pathname contains ";" but that should
10348    # okay in the real world where ";" in dirpaths is itself problematic.
10349    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10350    ;;
10351  *)
10352    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10353    ;;
10354  esac
10355  # Ok, now we have the path, separated by spaces, we can step through it
10356  # and add multilib dir if necessary.
10357  lt_tmp_lt_search_path_spec=
10358  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10359  for lt_sys_path in $lt_search_path_spec; do
10360    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10361      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10362    else
10363      test -d "$lt_sys_path" && \
10364	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10365    fi
10366  done
10367  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10368BEGIN {RS=" "; FS="/|\n";} {
10369  lt_foo="";
10370  lt_count=0;
10371  for (lt_i = NF; lt_i > 0; lt_i--) {
10372    if ($lt_i != "" && $lt_i != ".") {
10373      if ($lt_i == "..") {
10374        lt_count++;
10375      } else {
10376        if (lt_count == 0) {
10377          lt_foo="/" $lt_i lt_foo;
10378        } else {
10379          lt_count--;
10380        }
10381      }
10382    }
10383  }
10384  if (lt_foo != "") { lt_freq[lt_foo]++; }
10385  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10386}'`
10387  # AWK program above erroneously prepends '/' to C:/dos/paths
10388  # for these hosts.
10389  case $host_os in
10390    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10391      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10392  esac
10393  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10394else
10395  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10396fi
10397library_names_spec=
10398libname_spec='lib$name'
10399soname_spec=
10400shrext_cmds=".so"
10401postinstall_cmds=
10402postuninstall_cmds=
10403finish_cmds=
10404finish_eval=
10405shlibpath_var=
10406shlibpath_overrides_runpath=unknown
10407version_type=none
10408dynamic_linker="$host_os ld.so"
10409sys_lib_dlsearch_path_spec="/lib /usr/lib"
10410need_lib_prefix=unknown
10411hardcode_into_libs=no
10412
10413# when you set need_version to no, make sure it does not cause -set_version
10414# flags to be left without arguments
10415need_version=unknown
10416
10417case $host_os in
10418aix3*)
10419  version_type=linux
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10421  shlibpath_var=LIBPATH
10422
10423  # AIX 3 has no versioning support, so we append a major version to the name.
10424  soname_spec='${libname}${release}${shared_ext}$major'
10425  ;;
10426
10427aix[4-9]*)
10428  version_type=linux
10429  need_lib_prefix=no
10430  need_version=no
10431  hardcode_into_libs=yes
10432  if test "$host_cpu" = ia64; then
10433    # AIX 5 supports IA64
10434    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10435    shlibpath_var=LD_LIBRARY_PATH
10436  else
10437    # With GCC up to 2.95.x, collect2 would create an import file
10438    # for dependence libraries.  The import file would start with
10439    # the line `#! .'.  This would cause the generated library to
10440    # depend on `.', always an invalid library.  This was fixed in
10441    # development snapshots of GCC prior to 3.0.
10442    case $host_os in
10443      aix4 | aix4.[01] | aix4.[01].*)
10444      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10445	   echo ' yes '
10446	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10447	:
10448      else
10449	can_build_shared=no
10450      fi
10451      ;;
10452    esac
10453    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10454    # soname into executable. Probably we can add versioning support to
10455    # collect2, so additional links can be useful in future.
10456    if test "$aix_use_runtimelinking" = yes; then
10457      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10458      # instead of lib<name>.a to let people know that these are not
10459      # typical AIX shared libraries.
10460      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461    else
10462      # We preserve .a as extension for shared libraries through AIX4.2
10463      # and later when we are not doing run time linking.
10464      library_names_spec='${libname}${release}.a $libname.a'
10465      soname_spec='${libname}${release}${shared_ext}$major'
10466    fi
10467    shlibpath_var=LIBPATH
10468  fi
10469  ;;
10470
10471amigaos*)
10472  case $host_cpu in
10473  powerpc)
10474    # Since July 2007 AmigaOS4 officially supports .so libraries.
10475    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10476    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477    ;;
10478  m68k)
10479    library_names_spec='$libname.ixlibrary $libname.a'
10480    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10481    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'
10482    ;;
10483  esac
10484  ;;
10485
10486beos*)
10487  library_names_spec='${libname}${shared_ext}'
10488  dynamic_linker="$host_os ld.so"
10489  shlibpath_var=LIBRARY_PATH
10490  ;;
10491
10492bsdi[45]*)
10493  version_type=linux
10494  need_version=no
10495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496  soname_spec='${libname}${release}${shared_ext}$major'
10497  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10498  shlibpath_var=LD_LIBRARY_PATH
10499  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10500  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10501  # the default ld.so.conf also contains /usr/contrib/lib and
10502  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10503  # libtool to hard-code these into programs
10504  ;;
10505
10506cygwin* | mingw* | pw32* | cegcc*)
10507  version_type=windows
10508  shrext_cmds=".dll"
10509  need_version=no
10510  need_lib_prefix=no
10511
10512  case $GCC,$host_os in
10513  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10514    library_names_spec='$libname.dll.a'
10515    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10516    postinstall_cmds='base_file=`basename \${file}`~
10517      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10518      dldir=$destdir/`dirname \$dlpath`~
10519      test -d \$dldir || mkdir -p \$dldir~
10520      $install_prog $dir/$dlname \$dldir/$dlname~
10521      chmod a+x \$dldir/$dlname~
10522      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10523        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10524      fi'
10525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10526      dlpath=$dir/\$dldll~
10527       $RM \$dlpath'
10528    shlibpath_overrides_runpath=yes
10529
10530    case $host_os in
10531    cygwin*)
10532      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10533      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534
10535      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10536      ;;
10537    mingw* | cegcc*)
10538      # MinGW DLLs use traditional 'lib' prefix
10539      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540      ;;
10541    pw32*)
10542      # pw32 DLLs use 'pw' prefix rather than 'lib'
10543      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544      ;;
10545    esac
10546    ;;
10547
10548  *)
10549    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10550    ;;
10551  esac
10552  dynamic_linker='Win32 ld.exe'
10553  # FIXME: first we should search . and the directory the executable is in
10554  shlibpath_var=PATH
10555  ;;
10556
10557darwin* | rhapsody*)
10558  dynamic_linker="$host_os dyld"
10559  version_type=darwin
10560  need_lib_prefix=no
10561  need_version=no
10562  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10563  soname_spec='${libname}${release}${major}$shared_ext'
10564  shlibpath_overrides_runpath=yes
10565  shlibpath_var=DYLD_LIBRARY_PATH
10566  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10567
10568  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10569  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10570  ;;
10571
10572dgux*)
10573  version_type=linux
10574  need_lib_prefix=no
10575  need_version=no
10576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10577  soname_spec='${libname}${release}${shared_ext}$major'
10578  shlibpath_var=LD_LIBRARY_PATH
10579  ;;
10580
10581freebsd* | dragonfly*)
10582  # DragonFly does not have aout.  When/if they implement a new
10583  # versioning mechanism, adjust this.
10584  if test -x /usr/bin/objformat; then
10585    objformat=`/usr/bin/objformat`
10586  else
10587    case $host_os in
10588    freebsd[23].*) objformat=aout ;;
10589    *) objformat=elf ;;
10590    esac
10591  fi
10592  version_type=freebsd-$objformat
10593  case $version_type in
10594    freebsd-elf*)
10595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10596      need_version=no
10597      need_lib_prefix=no
10598      ;;
10599    freebsd-*)
10600      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10601      need_version=yes
10602      ;;
10603  esac
10604  shlibpath_var=LD_LIBRARY_PATH
10605  case $host_os in
10606  freebsd2.*)
10607    shlibpath_overrides_runpath=yes
10608    ;;
10609  freebsd3.[01]* | freebsdelf3.[01]*)
10610    shlibpath_overrides_runpath=yes
10611    hardcode_into_libs=yes
10612    ;;
10613  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10614  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10615    shlibpath_overrides_runpath=no
10616    hardcode_into_libs=yes
10617    ;;
10618  *) # from 4.6 on, and DragonFly
10619    shlibpath_overrides_runpath=yes
10620    hardcode_into_libs=yes
10621    ;;
10622  esac
10623  ;;
10624
10625haiku*)
10626  version_type=linux
10627  need_lib_prefix=no
10628  need_version=no
10629  dynamic_linker="$host_os runtime_loader"
10630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10631  soname_spec='${libname}${release}${shared_ext}$major'
10632  shlibpath_var=LIBRARY_PATH
10633  shlibpath_overrides_runpath=yes
10634  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10635  hardcode_into_libs=yes
10636  ;;
10637
10638hpux9* | hpux10* | hpux11*)
10639  # Give a soname corresponding to the major version so that dld.sl refuses to
10640  # link against other versions.
10641  version_type=sunos
10642  need_lib_prefix=no
10643  need_version=no
10644  case $host_cpu in
10645  ia64*)
10646    shrext_cmds='.so'
10647    hardcode_into_libs=yes
10648    dynamic_linker="$host_os dld.so"
10649    shlibpath_var=LD_LIBRARY_PATH
10650    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652    soname_spec='${libname}${release}${shared_ext}$major'
10653    if test "X$HPUX_IA64_MODE" = X32; then
10654      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10655    else
10656      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10657    fi
10658    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10659    ;;
10660  hppa*64*)
10661    shrext_cmds='.sl'
10662    hardcode_into_libs=yes
10663    dynamic_linker="$host_os dld.sl"
10664    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10665    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667    soname_spec='${libname}${release}${shared_ext}$major'
10668    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10669    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10670    ;;
10671  *)
10672    shrext_cmds='.sl'
10673    dynamic_linker="$host_os dld.sl"
10674    shlibpath_var=SHLIB_PATH
10675    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677    soname_spec='${libname}${release}${shared_ext}$major'
10678    ;;
10679  esac
10680  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10681  postinstall_cmds='chmod 555 $lib'
10682  # or fails outright, so override atomically:
10683  install_override_mode=555
10684  ;;
10685
10686interix[3-9]*)
10687  version_type=linux
10688  need_lib_prefix=no
10689  need_version=no
10690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691  soname_spec='${libname}${release}${shared_ext}$major'
10692  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10693  shlibpath_var=LD_LIBRARY_PATH
10694  shlibpath_overrides_runpath=no
10695  hardcode_into_libs=yes
10696  ;;
10697
10698irix5* | irix6* | nonstopux*)
10699  case $host_os in
10700    nonstopux*) version_type=nonstopux ;;
10701    *)
10702	if test "$lt_cv_prog_gnu_ld" = yes; then
10703		version_type=linux
10704	else
10705		version_type=irix
10706	fi ;;
10707  esac
10708  need_lib_prefix=no
10709  need_version=no
10710  soname_spec='${libname}${release}${shared_ext}$major'
10711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10712  case $host_os in
10713  irix5* | nonstopux*)
10714    libsuff= shlibsuff=
10715    ;;
10716  *)
10717    case $LD in # libtool.m4 will add one of these switches to LD
10718    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10719      libsuff= shlibsuff= libmagic=32-bit;;
10720    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10721      libsuff=32 shlibsuff=N32 libmagic=N32;;
10722    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10723      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10724    *) libsuff= shlibsuff= libmagic=never-match;;
10725    esac
10726    ;;
10727  esac
10728  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10729  shlibpath_overrides_runpath=no
10730  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10731  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10732  hardcode_into_libs=yes
10733  ;;
10734
10735# No shared lib support for Linux oldld, aout, or coff.
10736linux*oldld* | linux*aout* | linux*coff*)
10737  dynamic_linker=no
10738  ;;
10739
10740# This must be Linux ELF.
10741
10742# uclinux* changes (here and below) have been submitted to the libtool
10743# project, but have not yet been accepted: they are GCC-local changes
10744# for the time being.  (See
10745# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10746linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10747  version_type=linux
10748  need_lib_prefix=no
10749  need_version=no
10750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751  soname_spec='${libname}${release}${shared_ext}$major'
10752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10753  shlibpath_var=LD_LIBRARY_PATH
10754  shlibpath_overrides_runpath=no
10755
10756  # Some binutils ld are patched to set DT_RUNPATH
10757  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10758  $as_echo_n "(cached) " >&6
10759else
10760  lt_cv_shlibpath_overrides_runpath=no
10761    save_LDFLAGS=$LDFLAGS
10762    save_libdir=$libdir
10763    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10764	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h.  */
10767
10768int
10769main ()
10770{
10771
10772  ;
10773  return 0;
10774}
10775_ACEOF
10776if ac_fn_c_try_link "$LINENO"; then :
10777  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10778  lt_cv_shlibpath_overrides_runpath=yes
10779fi
10780fi
10781rm -f core conftest.err conftest.$ac_objext \
10782    conftest$ac_exeext conftest.$ac_ext
10783    LDFLAGS=$save_LDFLAGS
10784    libdir=$save_libdir
10785
10786fi
10787
10788  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10789
10790  # This implies no fast_install, which is unacceptable.
10791  # Some rework will be needed to allow for fast_install
10792  # before this can be enabled.
10793  hardcode_into_libs=yes
10794
10795  # Append ld.so.conf contents to the search path
10796  if test -f /etc/ld.so.conf; then
10797    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' ' '`
10798    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10799  fi
10800
10801  # We used to test for /lib/ld.so.1 and disable shared libraries on
10802  # powerpc, because MkLinux only supported shared libraries with the
10803  # GNU dynamic linker.  Since this was broken with cross compilers,
10804  # most powerpc-linux boxes support dynamic linking these days and
10805  # people can always --disable-shared, the test was removed, and we
10806  # assume the GNU/Linux dynamic linker is in use.
10807  dynamic_linker='GNU/Linux ld.so'
10808  ;;
10809
10810netbsd*)
10811  version_type=sunos
10812  need_lib_prefix=no
10813  need_version=no
10814  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817    dynamic_linker='NetBSD (a.out) ld.so'
10818  else
10819    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820    soname_spec='${libname}${release}${shared_ext}$major'
10821    dynamic_linker='NetBSD ld.elf_so'
10822  fi
10823  shlibpath_var=LD_LIBRARY_PATH
10824  shlibpath_overrides_runpath=yes
10825  hardcode_into_libs=yes
10826  ;;
10827
10828newsos6)
10829  version_type=linux
10830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831  shlibpath_var=LD_LIBRARY_PATH
10832  shlibpath_overrides_runpath=yes
10833  ;;
10834
10835*nto* | *qnx*)
10836  version_type=qnx
10837  need_lib_prefix=no
10838  need_version=no
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840  soname_spec='${libname}${release}${shared_ext}$major'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  shlibpath_overrides_runpath=no
10843  hardcode_into_libs=yes
10844  dynamic_linker='ldqnx.so'
10845  ;;
10846
10847openbsd*)
10848  version_type=sunos
10849  sys_lib_dlsearch_path_spec="/usr/lib"
10850  need_lib_prefix=no
10851  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10852  case $host_os in
10853    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10854    *)				need_version=no  ;;
10855  esac
10856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10858  shlibpath_var=LD_LIBRARY_PATH
10859  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10860    case $host_os in
10861      openbsd2.[89] | openbsd2.[89].*)
10862	shlibpath_overrides_runpath=no
10863	;;
10864      *)
10865	shlibpath_overrides_runpath=yes
10866	;;
10867      esac
10868  else
10869    shlibpath_overrides_runpath=yes
10870  fi
10871  ;;
10872
10873os2*)
10874  libname_spec='$name'
10875  shrext_cmds=".dll"
10876  need_lib_prefix=no
10877  library_names_spec='$libname${shared_ext} $libname.a'
10878  dynamic_linker='OS/2 ld.exe'
10879  shlibpath_var=LIBPATH
10880  ;;
10881
10882osf3* | osf4* | osf5*)
10883  version_type=osf
10884  need_lib_prefix=no
10885  need_version=no
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888  shlibpath_var=LD_LIBRARY_PATH
10889  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10890  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10891  ;;
10892
10893rdos*)
10894  dynamic_linker=no
10895  ;;
10896
10897solaris*)
10898  version_type=linux
10899  need_lib_prefix=no
10900  need_version=no
10901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902  soname_spec='${libname}${release}${shared_ext}$major'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  shlibpath_overrides_runpath=yes
10905  hardcode_into_libs=yes
10906  # ldd complains unless libraries are executable
10907  postinstall_cmds='chmod +x $lib'
10908  ;;
10909
10910sunos4*)
10911  version_type=sunos
10912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10913  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10914  shlibpath_var=LD_LIBRARY_PATH
10915  shlibpath_overrides_runpath=yes
10916  if test "$with_gnu_ld" = yes; then
10917    need_lib_prefix=no
10918  fi
10919  need_version=yes
10920  ;;
10921
10922sysv4 | sysv4.3*)
10923  version_type=linux
10924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925  soname_spec='${libname}${release}${shared_ext}$major'
10926  shlibpath_var=LD_LIBRARY_PATH
10927  case $host_vendor in
10928    sni)
10929      shlibpath_overrides_runpath=no
10930      need_lib_prefix=no
10931      runpath_var=LD_RUN_PATH
10932      ;;
10933    siemens)
10934      need_lib_prefix=no
10935      ;;
10936    motorola)
10937      need_lib_prefix=no
10938      need_version=no
10939      shlibpath_overrides_runpath=no
10940      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10941      ;;
10942  esac
10943  ;;
10944
10945sysv4*MP*)
10946  if test -d /usr/nec ;then
10947    version_type=linux
10948    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10949    soname_spec='$libname${shared_ext}.$major'
10950    shlibpath_var=LD_LIBRARY_PATH
10951  fi
10952  ;;
10953
10954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10955  version_type=freebsd-elf
10956  need_lib_prefix=no
10957  need_version=no
10958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959  soname_spec='${libname}${release}${shared_ext}$major'
10960  shlibpath_var=LD_LIBRARY_PATH
10961  shlibpath_overrides_runpath=yes
10962  hardcode_into_libs=yes
10963  if test "$with_gnu_ld" = yes; then
10964    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10965  else
10966    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10967    case $host_os in
10968      sco3.2v5*)
10969        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10970	;;
10971    esac
10972  fi
10973  sys_lib_dlsearch_path_spec='/usr/lib'
10974  ;;
10975
10976tpf*)
10977  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10978  version_type=linux
10979  need_lib_prefix=no
10980  need_version=no
10981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982  shlibpath_var=LD_LIBRARY_PATH
10983  shlibpath_overrides_runpath=no
10984  hardcode_into_libs=yes
10985  ;;
10986
10987uts4*)
10988  version_type=linux
10989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990  soname_spec='${libname}${release}${shared_ext}$major'
10991  shlibpath_var=LD_LIBRARY_PATH
10992  ;;
10993
10994*)
10995  dynamic_linker=no
10996  ;;
10997esac
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10999$as_echo "$dynamic_linker" >&6; }
11000test "$dynamic_linker" = no && can_build_shared=no
11001
11002variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11003if test "$GCC" = yes; then
11004  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11005fi
11006
11007if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11008  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11009fi
11010if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11011  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11012fi
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11106$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11107hardcode_action=
11108if test -n "$hardcode_libdir_flag_spec" ||
11109   test -n "$runpath_var" ||
11110   test "X$hardcode_automatic" = "Xyes" ; then
11111
11112  # We can hardcode non-existent directories.
11113  if test "$hardcode_direct" != no &&
11114     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11115     # have to relink, otherwise we might link with an installed library
11116     # when we should be linking with a yet-to-be-installed one
11117     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11118     test "$hardcode_minus_L" != no; then
11119    # Linking always hardcodes the temporary library directory.
11120    hardcode_action=relink
11121  else
11122    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11123    hardcode_action=immediate
11124  fi
11125else
11126  # We cannot hardcode anything, or else we can only hardcode existing
11127  # directories.
11128  hardcode_action=unsupported
11129fi
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11131$as_echo "$hardcode_action" >&6; }
11132
11133if test "$hardcode_action" = relink ||
11134   test "$inherit_rpath" = yes; then
11135  # Fast installation is not supported
11136  enable_fast_install=no
11137elif test "$shlibpath_overrides_runpath" = yes ||
11138     test "$enable_shared" = no; then
11139  # Fast installation is not necessary
11140  enable_fast_install=needless
11141fi
11142
11143
11144
11145
11146
11147
11148  if test "x$enable_dlopen" != xyes; then
11149  enable_dlopen=unknown
11150  enable_dlopen_self=unknown
11151  enable_dlopen_self_static=unknown
11152else
11153  lt_cv_dlopen=no
11154  lt_cv_dlopen_libs=
11155
11156  case $host_os in
11157  beos*)
11158    lt_cv_dlopen="load_add_on"
11159    lt_cv_dlopen_libs=
11160    lt_cv_dlopen_self=yes
11161    ;;
11162
11163  mingw* | pw32* | cegcc*)
11164    lt_cv_dlopen="LoadLibrary"
11165    lt_cv_dlopen_libs=
11166    ;;
11167
11168  cygwin*)
11169    lt_cv_dlopen="dlopen"
11170    lt_cv_dlopen_libs=
11171    ;;
11172
11173  darwin*)
11174  # if libdl is installed we need to link against it
11175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11176$as_echo_n "checking for dlopen in -ldl... " >&6; }
11177if ${ac_cv_lib_dl_dlopen+:} false; then :
11178  $as_echo_n "(cached) " >&6
11179else
11180  ac_check_lib_save_LIBS=$LIBS
11181LIBS="-ldl  $LIBS"
11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184
11185/* Override any GCC internal prototype to avoid an error.
11186   Use char because int might match the return type of a GCC
11187   builtin and then its argument prototype would still apply.  */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char dlopen ();
11192int
11193main ()
11194{
11195return dlopen ();
11196  ;
11197  return 0;
11198}
11199_ACEOF
11200if ac_fn_c_try_link "$LINENO"; then :
11201  ac_cv_lib_dl_dlopen=yes
11202else
11203  ac_cv_lib_dl_dlopen=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206    conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11210$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11211if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11212  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11213else
11214
11215    lt_cv_dlopen="dyld"
11216    lt_cv_dlopen_libs=
11217    lt_cv_dlopen_self=yes
11218
11219fi
11220
11221    ;;
11222
11223  *)
11224    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11225if test "x$ac_cv_func_shl_load" = xyes; then :
11226  lt_cv_dlopen="shl_load"
11227else
11228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11229$as_echo_n "checking for shl_load in -ldld... " >&6; }
11230if ${ac_cv_lib_dld_shl_load+:} false; then :
11231  $as_echo_n "(cached) " >&6
11232else
11233  ac_check_lib_save_LIBS=$LIBS
11234LIBS="-ldld  $LIBS"
11235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h.  */
11237
11238/* Override any GCC internal prototype to avoid an error.
11239   Use char because int might match the return type of a GCC
11240   builtin and then its argument prototype would still apply.  */
11241#ifdef __cplusplus
11242extern "C"
11243#endif
11244char shl_load ();
11245int
11246main ()
11247{
11248return shl_load ();
11249  ;
11250  return 0;
11251}
11252_ACEOF
11253if ac_fn_c_try_link "$LINENO"; then :
11254  ac_cv_lib_dld_shl_load=yes
11255else
11256  ac_cv_lib_dld_shl_load=no
11257fi
11258rm -f core conftest.err conftest.$ac_objext \
11259    conftest$ac_exeext conftest.$ac_ext
11260LIBS=$ac_check_lib_save_LIBS
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11263$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11264if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11265  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11266else
11267  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11268if test "x$ac_cv_func_dlopen" = xyes; then :
11269  lt_cv_dlopen="dlopen"
11270else
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11272$as_echo_n "checking for dlopen in -ldl... " >&6; }
11273if ${ac_cv_lib_dl_dlopen+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  ac_check_lib_save_LIBS=$LIBS
11277LIBS="-ldl  $LIBS"
11278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279/* end confdefs.h.  */
11280
11281/* Override any GCC internal prototype to avoid an error.
11282   Use char because int might match the return type of a GCC
11283   builtin and then its argument prototype would still apply.  */
11284#ifdef __cplusplus
11285extern "C"
11286#endif
11287char dlopen ();
11288int
11289main ()
11290{
11291return dlopen ();
11292  ;
11293  return 0;
11294}
11295_ACEOF
11296if ac_fn_c_try_link "$LINENO"; then :
11297  ac_cv_lib_dl_dlopen=yes
11298else
11299  ac_cv_lib_dl_dlopen=no
11300fi
11301rm -f core conftest.err conftest.$ac_objext \
11302    conftest$ac_exeext conftest.$ac_ext
11303LIBS=$ac_check_lib_save_LIBS
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11306$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11307if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11308  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11309else
11310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11311$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11312if ${ac_cv_lib_svld_dlopen+:} false; then :
11313  $as_echo_n "(cached) " >&6
11314else
11315  ac_check_lib_save_LIBS=$LIBS
11316LIBS="-lsvld  $LIBS"
11317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h.  */
11319
11320/* Override any GCC internal prototype to avoid an error.
11321   Use char because int might match the return type of a GCC
11322   builtin and then its argument prototype would still apply.  */
11323#ifdef __cplusplus
11324extern "C"
11325#endif
11326char dlopen ();
11327int
11328main ()
11329{
11330return dlopen ();
11331  ;
11332  return 0;
11333}
11334_ACEOF
11335if ac_fn_c_try_link "$LINENO"; then :
11336  ac_cv_lib_svld_dlopen=yes
11337else
11338  ac_cv_lib_svld_dlopen=no
11339fi
11340rm -f core conftest.err conftest.$ac_objext \
11341    conftest$ac_exeext conftest.$ac_ext
11342LIBS=$ac_check_lib_save_LIBS
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11345$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11346if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11347  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11348else
11349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11350$as_echo_n "checking for dld_link in -ldld... " >&6; }
11351if ${ac_cv_lib_dld_dld_link+:} false; then :
11352  $as_echo_n "(cached) " >&6
11353else
11354  ac_check_lib_save_LIBS=$LIBS
11355LIBS="-ldld  $LIBS"
11356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357/* end confdefs.h.  */
11358
11359/* Override any GCC internal prototype to avoid an error.
11360   Use char because int might match the return type of a GCC
11361   builtin and then its argument prototype would still apply.  */
11362#ifdef __cplusplus
11363extern "C"
11364#endif
11365char dld_link ();
11366int
11367main ()
11368{
11369return dld_link ();
11370  ;
11371  return 0;
11372}
11373_ACEOF
11374if ac_fn_c_try_link "$LINENO"; then :
11375  ac_cv_lib_dld_dld_link=yes
11376else
11377  ac_cv_lib_dld_dld_link=no
11378fi
11379rm -f core conftest.err conftest.$ac_objext \
11380    conftest$ac_exeext conftest.$ac_ext
11381LIBS=$ac_check_lib_save_LIBS
11382fi
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11384$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11385if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11386  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11387fi
11388
11389
11390fi
11391
11392
11393fi
11394
11395
11396fi
11397
11398
11399fi
11400
11401
11402fi
11403
11404    ;;
11405  esac
11406
11407  if test "x$lt_cv_dlopen" != xno; then
11408    enable_dlopen=yes
11409  else
11410    enable_dlopen=no
11411  fi
11412
11413  case $lt_cv_dlopen in
11414  dlopen)
11415    save_CPPFLAGS="$CPPFLAGS"
11416    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11417
11418    save_LDFLAGS="$LDFLAGS"
11419    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11420
11421    save_LIBS="$LIBS"
11422    LIBS="$lt_cv_dlopen_libs $LIBS"
11423
11424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11425$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11426if ${lt_cv_dlopen_self+:} false; then :
11427  $as_echo_n "(cached) " >&6
11428else
11429  	  if test "$cross_compiling" = yes; then :
11430  lt_cv_dlopen_self=cross
11431else
11432  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11433  lt_status=$lt_dlunknown
11434  cat > conftest.$ac_ext <<_LT_EOF
11435#line 11435 "configure"
11436#include "confdefs.h"
11437
11438#if HAVE_DLFCN_H
11439#include <dlfcn.h>
11440#endif
11441
11442#include <stdio.h>
11443
11444#ifdef RTLD_GLOBAL
11445#  define LT_DLGLOBAL		RTLD_GLOBAL
11446#else
11447#  ifdef DL_GLOBAL
11448#    define LT_DLGLOBAL		DL_GLOBAL
11449#  else
11450#    define LT_DLGLOBAL		0
11451#  endif
11452#endif
11453
11454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11455   find out it does not work in some platform. */
11456#ifndef LT_DLLAZY_OR_NOW
11457#  ifdef RTLD_LAZY
11458#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11459#  else
11460#    ifdef DL_LAZY
11461#      define LT_DLLAZY_OR_NOW		DL_LAZY
11462#    else
11463#      ifdef RTLD_NOW
11464#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11465#      else
11466#        ifdef DL_NOW
11467#          define LT_DLLAZY_OR_NOW	DL_NOW
11468#        else
11469#          define LT_DLLAZY_OR_NOW	0
11470#        endif
11471#      endif
11472#    endif
11473#  endif
11474#endif
11475
11476/* When -fvisbility=hidden is used, assume the code has been annotated
11477   correspondingly for the symbols needed.  */
11478#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11479void fnord () __attribute__((visibility("default")));
11480#endif
11481
11482void fnord () { int i=42; }
11483int main ()
11484{
11485  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11486  int status = $lt_dlunknown;
11487
11488  if (self)
11489    {
11490      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11491      else
11492        {
11493	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11494          else puts (dlerror ());
11495	}
11496      /* dlclose (self); */
11497    }
11498  else
11499    puts (dlerror ());
11500
11501  return status;
11502}
11503_LT_EOF
11504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505  (eval $ac_link) 2>&5
11506  ac_status=$?
11507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11509    (./conftest; exit; ) >&5 2>/dev/null
11510    lt_status=$?
11511    case x$lt_status in
11512      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11513      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11514      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11515    esac
11516  else :
11517    # compilation failed
11518    lt_cv_dlopen_self=no
11519  fi
11520fi
11521rm -fr conftest*
11522
11523
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11526$as_echo "$lt_cv_dlopen_self" >&6; }
11527
11528    if test "x$lt_cv_dlopen_self" = xyes; then
11529      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11530      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11531$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11532if ${lt_cv_dlopen_self_static+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  	  if test "$cross_compiling" = yes; then :
11536  lt_cv_dlopen_self_static=cross
11537else
11538  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11539  lt_status=$lt_dlunknown
11540  cat > conftest.$ac_ext <<_LT_EOF
11541#line 11541 "configure"
11542#include "confdefs.h"
11543
11544#if HAVE_DLFCN_H
11545#include <dlfcn.h>
11546#endif
11547
11548#include <stdio.h>
11549
11550#ifdef RTLD_GLOBAL
11551#  define LT_DLGLOBAL		RTLD_GLOBAL
11552#else
11553#  ifdef DL_GLOBAL
11554#    define LT_DLGLOBAL		DL_GLOBAL
11555#  else
11556#    define LT_DLGLOBAL		0
11557#  endif
11558#endif
11559
11560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11561   find out it does not work in some platform. */
11562#ifndef LT_DLLAZY_OR_NOW
11563#  ifdef RTLD_LAZY
11564#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11565#  else
11566#    ifdef DL_LAZY
11567#      define LT_DLLAZY_OR_NOW		DL_LAZY
11568#    else
11569#      ifdef RTLD_NOW
11570#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11571#      else
11572#        ifdef DL_NOW
11573#          define LT_DLLAZY_OR_NOW	DL_NOW
11574#        else
11575#          define LT_DLLAZY_OR_NOW	0
11576#        endif
11577#      endif
11578#    endif
11579#  endif
11580#endif
11581
11582/* When -fvisbility=hidden is used, assume the code has been annotated
11583   correspondingly for the symbols needed.  */
11584#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11585void fnord () __attribute__((visibility("default")));
11586#endif
11587
11588void fnord () { int i=42; }
11589int main ()
11590{
11591  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592  int status = $lt_dlunknown;
11593
11594  if (self)
11595    {
11596      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11597      else
11598        {
11599	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11600          else puts (dlerror ());
11601	}
11602      /* dlclose (self); */
11603    }
11604  else
11605    puts (dlerror ());
11606
11607  return status;
11608}
11609_LT_EOF
11610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611  (eval $ac_link) 2>&5
11612  ac_status=$?
11613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615    (./conftest; exit; ) >&5 2>/dev/null
11616    lt_status=$?
11617    case x$lt_status in
11618      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11619      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11620      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11621    esac
11622  else :
11623    # compilation failed
11624    lt_cv_dlopen_self_static=no
11625  fi
11626fi
11627rm -fr conftest*
11628
11629
11630fi
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11632$as_echo "$lt_cv_dlopen_self_static" >&6; }
11633    fi
11634
11635    CPPFLAGS="$save_CPPFLAGS"
11636    LDFLAGS="$save_LDFLAGS"
11637    LIBS="$save_LIBS"
11638    ;;
11639  esac
11640
11641  case $lt_cv_dlopen_self in
11642  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11643  *) enable_dlopen_self=unknown ;;
11644  esac
11645
11646  case $lt_cv_dlopen_self_static in
11647  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11648  *) enable_dlopen_self_static=unknown ;;
11649  esac
11650fi
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668striplib=
11669old_striplib=
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11671$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11672if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11673  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11674  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676$as_echo "yes" >&6; }
11677else
11678# FIXME - insert some real tests, host_os isn't really good enough
11679  case $host_os in
11680  darwin*)
11681    if test -n "$STRIP" ; then
11682      striplib="$STRIP -x"
11683      old_striplib="$STRIP -S"
11684      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685$as_echo "yes" >&6; }
11686    else
11687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
11689    fi
11690    ;;
11691  *)
11692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
11694    ;;
11695  esac
11696fi
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709  # Report which library types will actually be built
11710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11711$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11713$as_echo "$can_build_shared" >&6; }
11714
11715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11716$as_echo_n "checking whether to build shared libraries... " >&6; }
11717  test "$can_build_shared" = "no" && enable_shared=no
11718
11719  # On AIX, shared libraries and static libraries use the same namespace, and
11720  # are all built from PIC.
11721  case $host_os in
11722  aix3*)
11723    test "$enable_shared" = yes && enable_static=no
11724    if test -n "$RANLIB"; then
11725      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11726      postinstall_cmds='$RANLIB $lib'
11727    fi
11728    ;;
11729
11730  aix[4-9]*)
11731    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11732      test "$enable_shared" = yes && enable_static=no
11733    fi
11734    ;;
11735  esac
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11737$as_echo "$enable_shared" >&6; }
11738
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11740$as_echo_n "checking whether to build static libraries... " >&6; }
11741  # Make sure either enable_shared or enable_static is yes.
11742  test "$enable_shared" = yes || enable_static=yes
11743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11744$as_echo "$enable_static" >&6; }
11745
11746
11747
11748
11749fi
11750ac_ext=c
11751ac_cpp='$CPP $CPPFLAGS'
11752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11754ac_compiler_gnu=$ac_cv_c_compiler_gnu
11755
11756CC="$lt_save_CC"
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770        ac_config_commands="$ac_config_commands libtool"
11771
11772
11773
11774
11775# Only expand once:
11776
11777
11778
11779
11780
11781case $host in
11782  *-cygwin* | *-mingw*)
11783    # 'host' will be top-level target in the case of a target lib,
11784    # we must compare to with_cross_host to decide if this is a native
11785    # or cross-compiler and select where to install dlls appropriately.
11786    if test -n "$with_cross_host" &&
11787	test x"$with_cross_host" != x"no"; then
11788      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11789    else
11790      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11791    fi
11792    ;;
11793  *)
11794    lt_host_flags=
11795    ;;
11796esac
11797
11798
11799
11800
11801
11802
11803
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11805$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11806    # Check whether --enable-maintainer-mode was given.
11807if test "${enable_maintainer_mode+set}" = set; then :
11808  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11809else
11810  USE_MAINTAINER_MODE=no
11811fi
11812
11813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11814$as_echo "$USE_MAINTAINER_MODE" >&6; }
11815   if test $USE_MAINTAINER_MODE = yes; then
11816  MAINTAINER_MODE_TRUE=
11817  MAINTAINER_MODE_FALSE='#'
11818else
11819  MAINTAINER_MODE_TRUE='#'
11820  MAINTAINER_MODE_FALSE=
11821fi
11822
11823  MAINT=$MAINTAINER_MODE_TRUE
11824
11825
11826
11827# Create a spec file, so that compile/link tests don't fail
11828test -f libgfortran.spec || touch libgfortran.spec
11829FCFLAGS="$FCFLAGS -L."
11830
11831# We need gfortran to compile parts of the library
11832# We can't use AC_PROG_FC because it expects a fully working gfortran.
11833#AC_PROG_FC(gfortran)
11834case `echo $GFORTRAN` in
11835  -* | no* )
11836    FC=no ;;
11837  *)
11838    set dummy $GFORTRAN; ac_word=$2
11839    if test -x "$ac_word"; then
11840      FC="$GFORTRAN"
11841    else
11842      FC=no
11843    fi ;;
11844esac
11845ac_ext=${ac_fc_srcext-f}
11846ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11847ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11848ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11849if test -n "$ac_tool_prefix"; then
11850  for ac_prog in gfortran
11851  do
11852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
11856if ${ac_cv_prog_FC+:} false; then :
11857  $as_echo_n "(cached) " >&6
11858else
11859  if test -n "$FC"; then
11860  ac_cv_prog_FC="$FC" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865  IFS=$as_save_IFS
11866  test -z "$as_dir" && as_dir=.
11867    for ac_exec_ext in '' $ac_executable_extensions; do
11868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871    break 2
11872  fi
11873done
11874  done
11875IFS=$as_save_IFS
11876
11877fi
11878fi
11879FC=$ac_cv_prog_FC
11880if test -n "$FC"; then
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11882$as_echo "$FC" >&6; }
11883else
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
11886fi
11887
11888
11889    test -n "$FC" && break
11890  done
11891fi
11892if test -z "$FC"; then
11893  ac_ct_FC=$FC
11894  for ac_prog in gfortran
11895do
11896  # Extract the first word of "$ac_prog", so it can be a program name with args.
11897set dummy $ac_prog; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if ${ac_cv_prog_ac_ct_FC+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  if test -n "$ac_ct_FC"; then
11904  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909  IFS=$as_save_IFS
11910  test -z "$as_dir" && as_dir=.
11911    for ac_exec_ext in '' $ac_executable_extensions; do
11912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913    ac_cv_prog_ac_ct_FC="$ac_prog"
11914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915    break 2
11916  fi
11917done
11918  done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923ac_ct_FC=$ac_cv_prog_ac_ct_FC
11924if test -n "$ac_ct_FC"; then
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11926$as_echo "$ac_ct_FC" >&6; }
11927else
11928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932
11933  test -n "$ac_ct_FC" && break
11934done
11935
11936  if test "x$ac_ct_FC" = x; then
11937    FC=""
11938  else
11939    case $cross_compiling:$ac_tool_warned in
11940yes:)
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943ac_tool_warned=yes ;;
11944esac
11945    FC=$ac_ct_FC
11946  fi
11947fi
11948
11949
11950# Provide some information about the compiler.
11951$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11952set X $ac_compile
11953ac_compiler=$2
11954for ac_option in --version -v -V -qversion; do
11955  { { ac_try="$ac_compiler $ac_option >&5"
11956case "(($ac_try" in
11957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958  *) ac_try_echo=$ac_try;;
11959esac
11960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11961$as_echo "$ac_try_echo"; } >&5
11962  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11963  ac_status=$?
11964  if test -s conftest.err; then
11965    sed '10a\
11966... rest of stderr output deleted ...
11967         10q' conftest.err >conftest.er1
11968    cat conftest.er1 >&5
11969  fi
11970  rm -f conftest.er1 conftest.err
11971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972  test $ac_status = 0; }
11973done
11974rm -f a.out
11975
11976# If we don't use `.F' as extension, the preprocessor is not run on the
11977# input file.  (Note that this only needs to work for GNU compilers.)
11978ac_save_ext=$ac_ext
11979ac_ext=F
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11981$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11982if ${ac_cv_fc_compiler_gnu+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  cat > conftest.$ac_ext <<_ACEOF
11986      program main
11987#ifndef __GNUC__
11988       choke me
11989#endif
11990
11991      end
11992_ACEOF
11993if ac_fn_fc_try_compile "$LINENO"; then :
11994  ac_compiler_gnu=yes
11995else
11996  ac_compiler_gnu=no
11997fi
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12000
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12003$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12004ac_ext=$ac_save_ext
12005ac_test_FCFLAGS=${FCFLAGS+set}
12006ac_save_FCFLAGS=$FCFLAGS
12007FCFLAGS=
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12009$as_echo_n "checking whether $FC accepts -g... " >&6; }
12010if ${ac_cv_prog_fc_g+:} false; then :
12011  $as_echo_n "(cached) " >&6
12012else
12013  FCFLAGS=-g
12014cat > conftest.$ac_ext <<_ACEOF
12015      program main
12016
12017      end
12018_ACEOF
12019if ac_fn_fc_try_compile "$LINENO"; then :
12020  ac_cv_prog_fc_g=yes
12021else
12022  ac_cv_prog_fc_g=no
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12028$as_echo "$ac_cv_prog_fc_g" >&6; }
12029if test "$ac_test_FCFLAGS" = set; then
12030  FCFLAGS=$ac_save_FCFLAGS
12031elif test $ac_cv_prog_fc_g = yes; then
12032  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12033    FCFLAGS="-g -O2"
12034  else
12035    FCFLAGS="-g"
12036  fi
12037else
12038  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12039    FCFLAGS="-O2"
12040  else
12041    FCFLAGS=
12042  fi
12043fi
12044
12045if test $ac_compiler_gnu = yes; then
12046  GFC=yes
12047else
12048  GFC=
12049fi
12050ac_ext=c
12051ac_cpp='$CPP $CPPFLAGS'
12052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055
12056      ac_ext=${ac_fc_srcext-f}
12057ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12058ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12059ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12060
12061
12062if test -z "$FC" || test "X$FC" = "Xno"; then
12063  _lt_disable_FC=yes
12064fi
12065
12066archive_cmds_need_lc_FC=no
12067allow_undefined_flag_FC=
12068always_export_symbols_FC=no
12069archive_expsym_cmds_FC=
12070export_dynamic_flag_spec_FC=
12071hardcode_direct_FC=no
12072hardcode_direct_absolute_FC=no
12073hardcode_libdir_flag_spec_FC=
12074hardcode_libdir_flag_spec_ld_FC=
12075hardcode_libdir_separator_FC=
12076hardcode_minus_L_FC=no
12077hardcode_automatic_FC=no
12078inherit_rpath_FC=no
12079module_cmds_FC=
12080module_expsym_cmds_FC=
12081link_all_deplibs_FC=unknown
12082old_archive_cmds_FC=$old_archive_cmds
12083reload_flag_FC=$reload_flag
12084reload_cmds_FC=$reload_cmds
12085no_undefined_flag_FC=
12086whole_archive_flag_spec_FC=
12087enable_shared_with_static_runtimes_FC=no
12088
12089# Source file extension for fc test sources.
12090ac_ext=${ac_fc_srcext-f}
12091
12092# Object file extension for compiled fc test sources.
12093objext=o
12094objext_FC=$objext
12095
12096# No sense in running all these tests if we already determined that
12097# the FC compiler isn't working.  Some variables (like enable_shared)
12098# are currently assumed to apply to all compilers on this platform,
12099# and will be corrupted by setting them based on a non-working compiler.
12100if test "$_lt_disable_FC" != yes; then
12101  # Code to be used in simple compile tests
12102  lt_simple_compile_test_code="\
12103      subroutine t
12104      return
12105      end
12106"
12107
12108  # Code to be used in simple link tests
12109  lt_simple_link_test_code="\
12110      program t
12111      end
12112"
12113
12114  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12115
12116
12117
12118
12119
12120
12121# If no C compiler was specified, use CC.
12122LTCC=${LTCC-"$CC"}
12123
12124# If no C compiler flags were specified, use CFLAGS.
12125LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12126
12127# Allow CC to be a program name with arguments.
12128compiler=$CC
12129
12130
12131  # save warnings/boilerplate of simple test code
12132  ac_outfile=conftest.$ac_objext
12133echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12134eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12135_lt_compiler_boilerplate=`cat conftest.err`
12136$RM conftest*
12137
12138  ac_outfile=conftest.$ac_objext
12139echo "$lt_simple_link_test_code" >conftest.$ac_ext
12140eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12141_lt_linker_boilerplate=`cat conftest.err`
12142$RM -r conftest*
12143
12144
12145  # Allow CC to be a program name with arguments.
12146  lt_save_CC="$CC"
12147  lt_save_GCC=$GCC
12148  CC=${FC-"f95"}
12149  compiler=$CC
12150  GCC=$ac_cv_fc_compiler_gnu
12151
12152  compiler_FC=$CC
12153  for cc_temp in $compiler""; do
12154  case $cc_temp in
12155    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12156    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12157    \-*) ;;
12158    *) break;;
12159  esac
12160done
12161cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12162
12163
12164  if test -n "$compiler"; then
12165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12166$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12168$as_echo "$can_build_shared" >&6; }
12169
12170    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12171$as_echo_n "checking whether to build shared libraries... " >&6; }
12172    test "$can_build_shared" = "no" && enable_shared=no
12173
12174    # On AIX, shared libraries and static libraries use the same namespace, and
12175    # are all built from PIC.
12176    case $host_os in
12177      aix3*)
12178        test "$enable_shared" = yes && enable_static=no
12179        if test -n "$RANLIB"; then
12180          archive_cmds="$archive_cmds~\$RANLIB \$lib"
12181          postinstall_cmds='$RANLIB $lib'
12182        fi
12183        ;;
12184      aix[4-9]*)
12185	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12186	  test "$enable_shared" = yes && enable_static=no
12187	fi
12188        ;;
12189    esac
12190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12191$as_echo "$enable_shared" >&6; }
12192
12193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12194$as_echo_n "checking whether to build static libraries... " >&6; }
12195    # Make sure either enable_shared or enable_static is yes.
12196    test "$enable_shared" = yes || enable_static=yes
12197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12198$as_echo "$enable_static" >&6; }
12199
12200    GCC_FC="$ac_cv_fc_compiler_gnu"
12201    LD_FC="$LD"
12202
12203    ## CAVEAT EMPTOR:
12204    ## There is no encapsulation within the following macros, do not change
12205    ## the running order or otherwise move them around unless you know exactly
12206    ## what you are doing...
12207    # Dependencies to place before and after the object being linked:
12208predep_objects_FC=
12209postdep_objects_FC=
12210predeps_FC=
12211postdeps_FC=
12212compiler_lib_search_path_FC=
12213
12214cat > conftest.$ac_ext <<_LT_EOF
12215      subroutine foo
12216      implicit none
12217      integer a
12218      a=0
12219      return
12220      end
12221_LT_EOF
12222
12223if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12224  (eval $ac_compile) 2>&5
12225  ac_status=$?
12226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12227  test $ac_status = 0; }; then
12228  # Parse the compiler output and extract the necessary
12229  # objects, libraries and library flags.
12230
12231  # Sentinel used to keep track of whether or not we are before
12232  # the conftest object file.
12233  pre_test_object_deps_done=no
12234
12235  for p in `eval "$output_verbose_link_cmd"`; do
12236    case $p in
12237
12238    -L* | -R* | -l*)
12239       # Some compilers place space between "-{L,R}" and the path.
12240       # Remove the space.
12241       if test $p = "-L" ||
12242          test $p = "-R"; then
12243	 prev=$p
12244	 continue
12245       else
12246	 prev=
12247       fi
12248
12249       if test "$pre_test_object_deps_done" = no; then
12250	 case $p in
12251	 -L* | -R*)
12252	   # Internal compiler library paths should come after those
12253	   # provided the user.  The postdeps already come after the
12254	   # user supplied libs so there is no need to process them.
12255	   if test -z "$compiler_lib_search_path_FC"; then
12256	     compiler_lib_search_path_FC="${prev}${p}"
12257	   else
12258	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12259	   fi
12260	   ;;
12261	 # The "-l" case would never come before the object being
12262	 # linked, so don't bother handling this case.
12263	 esac
12264       else
12265	 if test -z "$postdeps_FC"; then
12266	   postdeps_FC="${prev}${p}"
12267	 else
12268	   postdeps_FC="${postdeps_FC} ${prev}${p}"
12269	 fi
12270       fi
12271       ;;
12272
12273    *.$objext)
12274       # This assumes that the test object file only shows up
12275       # once in the compiler output.
12276       if test "$p" = "conftest.$objext"; then
12277	 pre_test_object_deps_done=yes
12278	 continue
12279       fi
12280
12281       if test "$pre_test_object_deps_done" = no; then
12282	 if test -z "$predep_objects_FC"; then
12283	   predep_objects_FC="$p"
12284	 else
12285	   predep_objects_FC="$predep_objects_FC $p"
12286	 fi
12287       else
12288	 if test -z "$postdep_objects_FC"; then
12289	   postdep_objects_FC="$p"
12290	 else
12291	   postdep_objects_FC="$postdep_objects_FC $p"
12292	 fi
12293       fi
12294       ;;
12295
12296    *) ;; # Ignore the rest.
12297
12298    esac
12299  done
12300
12301  # Clean up.
12302  rm -f a.out a.exe
12303else
12304  echo "libtool.m4: error: problem compiling FC test program"
12305fi
12306
12307$RM -f confest.$objext
12308
12309# PORTME: override above test on systems where it is broken
12310
12311
12312case " $postdeps_FC " in
12313*" -lc "*) archive_cmds_need_lc_FC=no ;;
12314esac
12315 compiler_lib_search_dirs_FC=
12316if test -n "${compiler_lib_search_path_FC}"; then
12317 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12318fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350    lt_prog_compiler_wl_FC=
12351lt_prog_compiler_pic_FC=
12352lt_prog_compiler_static_FC=
12353
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12355$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12356
12357  if test "$GCC" = yes; then
12358    lt_prog_compiler_wl_FC='-Wl,'
12359    lt_prog_compiler_static_FC='-static'
12360
12361    case $host_os in
12362      aix*)
12363      # All AIX code is PIC.
12364      if test "$host_cpu" = ia64; then
12365	# AIX 5 now supports IA64 processor
12366	lt_prog_compiler_static_FC='-Bstatic'
12367      fi
12368      lt_prog_compiler_pic_FC='-fPIC'
12369      ;;
12370
12371    amigaos*)
12372      case $host_cpu in
12373      powerpc)
12374            # see comment about AmigaOS4 .so support
12375            lt_prog_compiler_pic_FC='-fPIC'
12376        ;;
12377      m68k)
12378            # FIXME: we need at least 68020 code to build shared libraries, but
12379            # adding the `-m68020' flag to GCC prevents building anything better,
12380            # like `-m68040'.
12381            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12382        ;;
12383      esac
12384      ;;
12385
12386    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12387      # PIC is the default for these OSes.
12388      ;;
12389
12390    mingw* | cygwin* | pw32* | os2* | cegcc*)
12391      # This hack is so that the source file can tell whether it is being
12392      # built for inclusion in a dll (and should export symbols for example).
12393      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12394      # (--disable-auto-import) libraries
12395      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12396      ;;
12397
12398    darwin* | rhapsody*)
12399      # PIC is the default on this platform
12400      # Common symbols not allowed in MH_DYLIB files
12401      lt_prog_compiler_pic_FC='-fno-common'
12402      ;;
12403
12404    haiku*)
12405      # PIC is the default for Haiku.
12406      # The "-static" flag exists, but is broken.
12407      lt_prog_compiler_static_FC=
12408      ;;
12409
12410    hpux*)
12411      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12412      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12413      # sets the default TLS model and affects inlining.
12414      case $host_cpu in
12415      hppa*64*)
12416	# +Z the default
12417	;;
12418      *)
12419	lt_prog_compiler_pic_FC='-fPIC'
12420	;;
12421      esac
12422      ;;
12423
12424    interix[3-9]*)
12425      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12426      # Instead, we relocate shared libraries at runtime.
12427      ;;
12428
12429    msdosdjgpp*)
12430      # Just because we use GCC doesn't mean we suddenly get shared libraries
12431      # on systems that don't support them.
12432      lt_prog_compiler_can_build_shared_FC=no
12433      enable_shared=no
12434      ;;
12435
12436    *nto* | *qnx*)
12437      # QNX uses GNU C++, but need to define -shared option too, otherwise
12438      # it will coredump.
12439      lt_prog_compiler_pic_FC='-fPIC -shared'
12440      ;;
12441
12442    sysv4*MP*)
12443      if test -d /usr/nec; then
12444	lt_prog_compiler_pic_FC=-Kconform_pic
12445      fi
12446      ;;
12447
12448    *)
12449      lt_prog_compiler_pic_FC='-fPIC'
12450      ;;
12451    esac
12452
12453    case $cc_basename in
12454    nvcc*) # Cuda Compiler Driver 2.2
12455      lt_prog_compiler_wl_FC='-Xlinker '
12456      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12457      ;;
12458    esac
12459  else
12460    # PORTME Check for flag to pass linker flags through the system compiler.
12461    case $host_os in
12462    aix*)
12463      lt_prog_compiler_wl_FC='-Wl,'
12464      if test "$host_cpu" = ia64; then
12465	# AIX 5 now supports IA64 processor
12466	lt_prog_compiler_static_FC='-Bstatic'
12467      else
12468	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12469      fi
12470      ;;
12471
12472    mingw* | cygwin* | pw32* | os2* | cegcc*)
12473      # This hack is so that the source file can tell whether it is being
12474      # built for inclusion in a dll (and should export symbols for example).
12475      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12476      ;;
12477
12478    hpux9* | hpux10* | hpux11*)
12479      lt_prog_compiler_wl_FC='-Wl,'
12480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12481      # not for PA HP-UX.
12482      case $host_cpu in
12483      hppa*64*|ia64*)
12484	# +Z the default
12485	;;
12486      *)
12487	lt_prog_compiler_pic_FC='+Z'
12488	;;
12489      esac
12490      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12491      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12492      ;;
12493
12494    irix5* | irix6* | nonstopux*)
12495      lt_prog_compiler_wl_FC='-Wl,'
12496      # PIC (with -KPIC) is the default.
12497      lt_prog_compiler_static_FC='-non_shared'
12498      ;;
12499
12500    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12501      case $cc_basename in
12502      # old Intel for x86_64 which still supported -KPIC.
12503      ecc*)
12504	lt_prog_compiler_wl_FC='-Wl,'
12505	lt_prog_compiler_pic_FC='-KPIC'
12506	lt_prog_compiler_static_FC='-static'
12507        ;;
12508      # icc used to be incompatible with GCC.
12509      # ICC 10 doesn't accept -KPIC any more.
12510      icc* | ifort*)
12511	lt_prog_compiler_wl_FC='-Wl,'
12512	lt_prog_compiler_pic_FC='-fPIC'
12513	lt_prog_compiler_static_FC='-static'
12514        ;;
12515      # Lahey Fortran 8.1.
12516      lf95*)
12517	lt_prog_compiler_wl_FC='-Wl,'
12518	lt_prog_compiler_pic_FC='--shared'
12519	lt_prog_compiler_static_FC='--static'
12520	;;
12521      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12522        # Portland Group compilers (*not* the Pentium gcc compiler,
12523	# which looks to be a dead project)
12524	lt_prog_compiler_wl_FC='-Wl,'
12525	lt_prog_compiler_pic_FC='-fpic'
12526	lt_prog_compiler_static_FC='-Bstatic'
12527        ;;
12528      ccc*)
12529        lt_prog_compiler_wl_FC='-Wl,'
12530        # All Alpha code is PIC.
12531        lt_prog_compiler_static_FC='-non_shared'
12532        ;;
12533      xl* | bgxl* | bgf* | mpixl*)
12534	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12535	lt_prog_compiler_wl_FC='-Wl,'
12536	lt_prog_compiler_pic_FC='-qpic'
12537	lt_prog_compiler_static_FC='-qstaticlink'
12538	;;
12539      *)
12540	case `$CC -V 2>&1 | sed 5q` in
12541	*Sun\ F* | *Sun*Fortran*)
12542	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12543	  lt_prog_compiler_pic_FC='-KPIC'
12544	  lt_prog_compiler_static_FC='-Bstatic'
12545	  lt_prog_compiler_wl_FC=''
12546	  ;;
12547	*Sun\ C*)
12548	  # Sun C 5.9
12549	  lt_prog_compiler_pic_FC='-KPIC'
12550	  lt_prog_compiler_static_FC='-Bstatic'
12551	  lt_prog_compiler_wl_FC='-Wl,'
12552	  ;;
12553	esac
12554	;;
12555      esac
12556      ;;
12557
12558    newsos6)
12559      lt_prog_compiler_pic_FC='-KPIC'
12560      lt_prog_compiler_static_FC='-Bstatic'
12561      ;;
12562
12563    *nto* | *qnx*)
12564      # QNX uses GNU C++, but need to define -shared option too, otherwise
12565      # it will coredump.
12566      lt_prog_compiler_pic_FC='-fPIC -shared'
12567      ;;
12568
12569    osf3* | osf4* | osf5*)
12570      lt_prog_compiler_wl_FC='-Wl,'
12571      # All OSF/1 code is PIC.
12572      lt_prog_compiler_static_FC='-non_shared'
12573      ;;
12574
12575    rdos*)
12576      lt_prog_compiler_static_FC='-non_shared'
12577      ;;
12578
12579    solaris*)
12580      lt_prog_compiler_pic_FC='-KPIC'
12581      lt_prog_compiler_static_FC='-Bstatic'
12582      case $cc_basename in
12583      f77* | f90* | f95*)
12584	lt_prog_compiler_wl_FC='-Qoption ld ';;
12585      *)
12586	lt_prog_compiler_wl_FC='-Wl,';;
12587      esac
12588      ;;
12589
12590    sunos4*)
12591      lt_prog_compiler_wl_FC='-Qoption ld '
12592      lt_prog_compiler_pic_FC='-PIC'
12593      lt_prog_compiler_static_FC='-Bstatic'
12594      ;;
12595
12596    sysv4 | sysv4.2uw2* | sysv4.3*)
12597      lt_prog_compiler_wl_FC='-Wl,'
12598      lt_prog_compiler_pic_FC='-KPIC'
12599      lt_prog_compiler_static_FC='-Bstatic'
12600      ;;
12601
12602    sysv4*MP*)
12603      if test -d /usr/nec ;then
12604	lt_prog_compiler_pic_FC='-Kconform_pic'
12605	lt_prog_compiler_static_FC='-Bstatic'
12606      fi
12607      ;;
12608
12609    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12610      lt_prog_compiler_wl_FC='-Wl,'
12611      lt_prog_compiler_pic_FC='-KPIC'
12612      lt_prog_compiler_static_FC='-Bstatic'
12613      ;;
12614
12615    unicos*)
12616      lt_prog_compiler_wl_FC='-Wl,'
12617      lt_prog_compiler_can_build_shared_FC=no
12618      ;;
12619
12620    uts4*)
12621      lt_prog_compiler_pic_FC='-pic'
12622      lt_prog_compiler_static_FC='-Bstatic'
12623      ;;
12624
12625    *)
12626      lt_prog_compiler_can_build_shared_FC=no
12627      ;;
12628    esac
12629  fi
12630
12631case $host_os in
12632  # For platforms which do not support PIC, -DPIC is meaningless:
12633  *djgpp*)
12634    lt_prog_compiler_pic_FC=
12635    ;;
12636  *)
12637    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12638    ;;
12639esac
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12641$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12642
12643
12644
12645#
12646# Check to make sure the PIC flag actually works.
12647#
12648if test -n "$lt_prog_compiler_pic_FC"; then
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12650$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12651if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12652  $as_echo_n "(cached) " >&6
12653else
12654  lt_cv_prog_compiler_pic_works_FC=no
12655   ac_outfile=conftest.$ac_objext
12656   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12657   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12658   # Insert the option either (1) after the last *FLAGS variable, or
12659   # (2) before a word containing "conftest.", or (3) at the end.
12660   # Note that $ac_compile itself does not contain backslashes and begins
12661   # with a dollar sign (not a hyphen), so the echo should work correctly.
12662   # The option is referenced via a variable to avoid confusing sed.
12663   lt_compile=`echo "$ac_compile" | $SED \
12664   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666   -e 's:$: $lt_compiler_flag:'`
12667   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12668   (eval "$lt_compile" 2>conftest.err)
12669   ac_status=$?
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   if (exit $ac_status) && test -s "$ac_outfile"; then
12673     # The compiler can only warn and ignore the option if not recognized
12674     # So say no if there are warnings other than the usual output.
12675     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12676     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12677     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12678       lt_cv_prog_compiler_pic_works_FC=yes
12679     fi
12680   fi
12681   $RM conftest*
12682
12683fi
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12685$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12686
12687if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12688    case $lt_prog_compiler_pic_FC in
12689     "" | " "*) ;;
12690     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12691     esac
12692else
12693    lt_prog_compiler_pic_FC=
12694     lt_prog_compiler_can_build_shared_FC=no
12695fi
12696
12697fi
12698
12699
12700
12701#
12702# Check to make sure the static flag actually works.
12703#
12704wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12706$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12707if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12708  $as_echo_n "(cached) " >&6
12709else
12710  lt_cv_prog_compiler_static_works_FC=no
12711   save_LDFLAGS="$LDFLAGS"
12712   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12713   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12714   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12715     # The linker can only warn and ignore the option if not recognized
12716     # So say no if there are warnings
12717     if test -s conftest.err; then
12718       # Append any errors to the config.log.
12719       cat conftest.err 1>&5
12720       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12721       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12722       if diff conftest.exp conftest.er2 >/dev/null; then
12723         lt_cv_prog_compiler_static_works_FC=yes
12724       fi
12725     else
12726       lt_cv_prog_compiler_static_works_FC=yes
12727     fi
12728   fi
12729   $RM -r conftest*
12730   LDFLAGS="$save_LDFLAGS"
12731
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12734$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12735
12736if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12737    :
12738else
12739    lt_prog_compiler_static_FC=
12740fi
12741
12742
12743
12744
12745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12746$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12747if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12748  $as_echo_n "(cached) " >&6
12749else
12750  lt_cv_prog_compiler_c_o_FC=no
12751   $RM -r conftest 2>/dev/null
12752   mkdir conftest
12753   cd conftest
12754   mkdir out
12755   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12756
12757   lt_compiler_flag="-o out/conftest2.$ac_objext"
12758   # Insert the option either (1) after the last *FLAGS variable, or
12759   # (2) before a word containing "conftest.", or (3) at the end.
12760   # Note that $ac_compile itself does not contain backslashes and begins
12761   # with a dollar sign (not a hyphen), so the echo should work correctly.
12762   lt_compile=`echo "$ac_compile" | $SED \
12763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12765   -e 's:$: $lt_compiler_flag:'`
12766   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12767   (eval "$lt_compile" 2>out/conftest.err)
12768   ac_status=$?
12769   cat out/conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12772   then
12773     # The compiler can only warn and ignore the option if not recognized
12774     # So say no if there are warnings
12775     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12776     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12777     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12778       lt_cv_prog_compiler_c_o_FC=yes
12779     fi
12780   fi
12781   chmod u+w . 2>&5
12782   $RM conftest*
12783   # SGI C++ compiler will create directory out/ii_files/ for
12784   # template instantiation
12785   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12786   $RM out/* && rmdir out
12787   cd ..
12788   $RM -r conftest
12789   $RM conftest*
12790
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12793$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12794
12795
12796
12797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12799if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12800  $as_echo_n "(cached) " >&6
12801else
12802  lt_cv_prog_compiler_c_o_FC=no
12803   $RM -r conftest 2>/dev/null
12804   mkdir conftest
12805   cd conftest
12806   mkdir out
12807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12808
12809   lt_compiler_flag="-o out/conftest2.$ac_objext"
12810   # Insert the option either (1) after the last *FLAGS variable, or
12811   # (2) before a word containing "conftest.", or (3) at the end.
12812   # Note that $ac_compile itself does not contain backslashes and begins
12813   # with a dollar sign (not a hyphen), so the echo should work correctly.
12814   lt_compile=`echo "$ac_compile" | $SED \
12815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817   -e 's:$: $lt_compiler_flag:'`
12818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12819   (eval "$lt_compile" 2>out/conftest.err)
12820   ac_status=$?
12821   cat out/conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12824   then
12825     # The compiler can only warn and ignore the option if not recognized
12826     # So say no if there are warnings
12827     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12830       lt_cv_prog_compiler_c_o_FC=yes
12831     fi
12832   fi
12833   chmod u+w . 2>&5
12834   $RM conftest*
12835   # SGI C++ compiler will create directory out/ii_files/ for
12836   # template instantiation
12837   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12838   $RM out/* && rmdir out
12839   cd ..
12840   $RM -r conftest
12841   $RM conftest*
12842
12843fi
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12845$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12846
12847
12848
12849
12850hard_links="nottested"
12851if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12852  # do not overwrite the value of need_locks provided by the user
12853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12854$as_echo_n "checking if we can lock with hard links... " >&6; }
12855  hard_links=yes
12856  $RM conftest*
12857  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12858  touch conftest.a
12859  ln conftest.a conftest.b 2>&5 || hard_links=no
12860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12862$as_echo "$hard_links" >&6; }
12863  if test "$hard_links" = no; then
12864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12865$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12866    need_locks=warn
12867  fi
12868else
12869  need_locks=no
12870fi
12871
12872
12873
12874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12875$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12876
12877  runpath_var=
12878  allow_undefined_flag_FC=
12879  always_export_symbols_FC=no
12880  archive_cmds_FC=
12881  archive_expsym_cmds_FC=
12882  compiler_needs_object_FC=no
12883  enable_shared_with_static_runtimes_FC=no
12884  export_dynamic_flag_spec_FC=
12885  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886  hardcode_automatic_FC=no
12887  hardcode_direct_FC=no
12888  hardcode_direct_absolute_FC=no
12889  hardcode_libdir_flag_spec_FC=
12890  hardcode_libdir_flag_spec_ld_FC=
12891  hardcode_libdir_separator_FC=
12892  hardcode_minus_L_FC=no
12893  hardcode_shlibpath_var_FC=unsupported
12894  inherit_rpath_FC=no
12895  link_all_deplibs_FC=unknown
12896  module_cmds_FC=
12897  module_expsym_cmds_FC=
12898  old_archive_from_new_cmds_FC=
12899  old_archive_from_expsyms_cmds_FC=
12900  thread_safe_flag_spec_FC=
12901  whole_archive_flag_spec_FC=
12902  # include_expsyms should be a list of space-separated symbols to be *always*
12903  # included in the symbol list
12904  include_expsyms_FC=
12905  # exclude_expsyms can be an extended regexp of symbols to exclude
12906  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12907  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12908  # as well as any symbol that contains `d'.
12909  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12910  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12911  # platforms (ab)use it in PIC code, but their linkers get confused if
12912  # the symbol is explicitly referenced.  Since portable code cannot
12913  # rely on this symbol name, it's probably fine to never include it in
12914  # preloaded symbol tables.
12915  # Exclude shared library initialization/finalization symbols.
12916  extract_expsyms_cmds=
12917
12918  case $host_os in
12919  cygwin* | mingw* | pw32* | cegcc*)
12920    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12921    # When not using gcc, we currently assume that we are using
12922    # Microsoft Visual C++.
12923    if test "$GCC" != yes; then
12924      with_gnu_ld=no
12925    fi
12926    ;;
12927  interix*)
12928    # we just hope/assume this is gcc and not c89 (= MSVC++)
12929    with_gnu_ld=yes
12930    ;;
12931  openbsd*)
12932    with_gnu_ld=no
12933    ;;
12934  esac
12935
12936  ld_shlibs_FC=yes
12937
12938  # On some targets, GNU ld is compatible enough with the native linker
12939  # that we're better off using the native interface for both.
12940  lt_use_gnu_ld_interface=no
12941  if test "$with_gnu_ld" = yes; then
12942    case $host_os in
12943      aix*)
12944	# The AIX port of GNU ld has always aspired to compatibility
12945	# with the native linker.  However, as the warning in the GNU ld
12946	# block says, versions before 2.19.5* couldn't really create working
12947	# shared libraries, regardless of the interface used.
12948	case `$LD -v 2>&1` in
12949	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12950	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12951	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12952	  *)
12953	    lt_use_gnu_ld_interface=yes
12954	    ;;
12955	esac
12956	;;
12957      *)
12958	lt_use_gnu_ld_interface=yes
12959	;;
12960    esac
12961  fi
12962
12963  if test "$lt_use_gnu_ld_interface" = yes; then
12964    # If archive_cmds runs LD, not CC, wlarc should be empty
12965    wlarc='${wl}'
12966
12967    # Set some defaults for GNU ld with shared library support. These
12968    # are reset later if shared libraries are not supported. Putting them
12969    # here allows them to be overridden if necessary.
12970    runpath_var=LD_RUN_PATH
12971    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12972    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12973    # ancient GNU ld didn't support --whole-archive et. al.
12974    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12975      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976    else
12977      whole_archive_flag_spec_FC=
12978    fi
12979    supports_anon_versioning=no
12980    case `$LD -v 2>&1` in
12981      *GNU\ gold*) supports_anon_versioning=yes ;;
12982      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12983      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12984      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12985      *\ 2.11.*) ;; # other 2.11 versions
12986      *) supports_anon_versioning=yes ;;
12987    esac
12988
12989    # See if GNU ld supports shared libraries.
12990    case $host_os in
12991    aix[3-9]*)
12992      # On AIX/PPC, the GNU linker is very broken
12993      if test "$host_cpu" != ia64; then
12994	ld_shlibs_FC=no
12995	cat <<_LT_EOF 1>&2
12996
12997*** Warning: the GNU linker, at least up to release 2.19, is reported
12998*** to be unable to reliably create shared libraries on AIX.
12999*** Therefore, libtool is disabling shared libraries support.  If you
13000*** really care for shared libraries, you may want to install binutils
13001*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13002*** You will then need to restart the configuration process.
13003
13004_LT_EOF
13005      fi
13006      ;;
13007
13008    amigaos*)
13009      case $host_cpu in
13010      powerpc)
13011            # see comment about AmigaOS4 .so support
13012            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013            archive_expsym_cmds_FC=''
13014        ;;
13015      m68k)
13016            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)'
13017            hardcode_libdir_flag_spec_FC='-L$libdir'
13018            hardcode_minus_L_FC=yes
13019        ;;
13020      esac
13021      ;;
13022
13023    beos*)
13024      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13025	allow_undefined_flag_FC=unsupported
13026	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13027	# support --undefined.  This deserves some investigation.  FIXME
13028	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029      else
13030	ld_shlibs_FC=no
13031      fi
13032      ;;
13033
13034    cygwin* | mingw* | pw32* | cegcc*)
13035      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13036      # as there is no search path for DLLs.
13037      hardcode_libdir_flag_spec_FC='-L$libdir'
13038      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13039      allow_undefined_flag_FC=unsupported
13040      always_export_symbols_FC=no
13041      enable_shared_with_static_runtimes_FC=yes
13042      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043
13044      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13045        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13046	# If the export-symbols file already is a .def file (1st line
13047	# is EXPORTS), use it as is; otherwise, prepend...
13048	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13049	  cp $export_symbols $output_objdir/$soname.def;
13050	else
13051	  echo EXPORTS > $output_objdir/$soname.def;
13052	  cat $export_symbols >> $output_objdir/$soname.def;
13053	fi~
13054	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13055      else
13056	ld_shlibs_FC=no
13057      fi
13058      ;;
13059
13060    haiku*)
13061      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062      link_all_deplibs_FC=yes
13063      ;;
13064
13065    interix[3-9]*)
13066      hardcode_direct_FC=no
13067      hardcode_shlibpath_var_FC=no
13068      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13069      export_dynamic_flag_spec_FC='${wl}-E'
13070      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071      # Instead, shared libraries are loaded at an image base (0x10000000 by
13072      # default) and relocated if they conflict, which is a slow very memory
13073      # consuming and fragmenting process.  To avoid this, we pick a random,
13074      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13076      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'
13077      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'
13078      ;;
13079
13080    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13081      tmp_diet=no
13082      if test "$host_os" = linux-dietlibc; then
13083	case $cc_basename in
13084	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13085	esac
13086      fi
13087      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13088	 && test "$tmp_diet" = no
13089      then
13090	tmp_addflag=' $pic_flag'
13091	tmp_sharedflag='-shared'
13092	case $cc_basename,$host_cpu in
13093        pgcc*)				# Portland Group C compiler
13094	  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'
13095	  tmp_addflag=' $pic_flag'
13096	  ;;
13097	pgf77* | pgf90* | pgf95* | pgfortran*)
13098					# Portland Group f77 and f90 compilers
13099	  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'
13100	  tmp_addflag=' $pic_flag -Mnomain' ;;
13101	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13102	  tmp_addflag=' -i_dynamic' ;;
13103	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13104	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13105	ifc* | ifort*)			# Intel Fortran compiler
13106	  tmp_addflag=' -nofor_main' ;;
13107	lf95*)				# Lahey Fortran 8.1
13108	  whole_archive_flag_spec_FC=
13109	  tmp_sharedflag='--shared' ;;
13110	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13111	  tmp_sharedflag='-qmkshrobj'
13112	  tmp_addflag= ;;
13113	nvcc*)	# Cuda Compiler Driver 2.2
13114	  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'
13115	  compiler_needs_object_FC=yes
13116	  ;;
13117	esac
13118	case `$CC -V 2>&1 | sed 5q` in
13119	*Sun\ C*)			# Sun C 5.9
13120	  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'
13121	  compiler_needs_object_FC=yes
13122	  tmp_sharedflag='-G' ;;
13123	*Sun\ F*)			# Sun Fortran 8.3
13124	  tmp_sharedflag='-G' ;;
13125	esac
13126	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127
13128        if test "x$supports_anon_versioning" = xyes; then
13129          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13130	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131	    echo "local: *; };" >> $output_objdir/$libname.ver~
13132	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13133        fi
13134
13135	case $cc_basename in
13136	xlf* | bgf* | bgxlf* | mpixlf*)
13137	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13138	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13139	  hardcode_libdir_flag_spec_FC=
13140	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13141	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13142	  if test "x$supports_anon_versioning" = xyes; then
13143	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13144	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13145	      echo "local: *; };" >> $output_objdir/$libname.ver~
13146	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13147	  fi
13148	  ;;
13149	esac
13150      else
13151        ld_shlibs_FC=no
13152      fi
13153      ;;
13154
13155    netbsd*)
13156      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13157	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13158	wlarc=
13159      else
13160	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13162      fi
13163      ;;
13164
13165    solaris*)
13166      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13167	ld_shlibs_FC=no
13168	cat <<_LT_EOF 1>&2
13169
13170*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13171*** create shared libraries on Solaris systems.  Therefore, libtool
13172*** is disabling shared libraries support.  We urge you to upgrade GNU
13173*** binutils to release 2.9.1 or newer.  Another option is to modify
13174*** your PATH or compiler configuration so that the native linker is
13175*** used, and then restart.
13176
13177_LT_EOF
13178      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13179	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13180	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13181      else
13182	ld_shlibs_FC=no
13183      fi
13184      ;;
13185
13186    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13187      case `$LD -v 2>&1` in
13188        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13189	ld_shlibs_FC=no
13190	cat <<_LT_EOF 1>&2
13191
13192*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13193*** reliably create shared libraries on SCO systems.  Therefore, libtool
13194*** is disabling shared libraries support.  We urge you to upgrade GNU
13195*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13196*** your PATH or compiler configuration so that the native linker is
13197*** used, and then restart.
13198
13199_LT_EOF
13200	;;
13201	*)
13202	  # For security reasons, it is highly recommended that you always
13203	  # use absolute paths for naming shared libraries, and exclude the
13204	  # DT_RUNPATH tag from executables and libraries.  But doing so
13205	  # requires that you compile everything twice, which is a pain.
13206	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13207	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13208	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13210	  else
13211	    ld_shlibs_FC=no
13212	  fi
13213	;;
13214      esac
13215      ;;
13216
13217    sunos4*)
13218      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13219      wlarc=
13220      hardcode_direct_FC=yes
13221      hardcode_shlibpath_var_FC=no
13222      ;;
13223
13224    *)
13225      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13228      else
13229	ld_shlibs_FC=no
13230      fi
13231      ;;
13232    esac
13233
13234    if test "$ld_shlibs_FC" = no; then
13235      runpath_var=
13236      hardcode_libdir_flag_spec_FC=
13237      export_dynamic_flag_spec_FC=
13238      whole_archive_flag_spec_FC=
13239    fi
13240  else
13241    # PORTME fill in a description of your system's linker (not GNU ld)
13242    case $host_os in
13243    aix3*)
13244      allow_undefined_flag_FC=unsupported
13245      always_export_symbols_FC=yes
13246      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'
13247      # Note: this linker hardcodes the directories in LIBPATH if there
13248      # are no directories specified by -L.
13249      hardcode_minus_L_FC=yes
13250      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13251	# Neither direct hardcoding nor static linking is supported with a
13252	# broken collect2.
13253	hardcode_direct_FC=unsupported
13254      fi
13255      ;;
13256
13257    aix[4-9]*)
13258      if test "$host_cpu" = ia64; then
13259	# On IA64, the linker does run time linking by default, so we don't
13260	# have to do anything special.
13261	aix_use_runtimelinking=no
13262	exp_sym_flag='-Bexport'
13263	no_entry_flag=""
13264      else
13265	# If we're using GNU nm, then we don't want the "-C" option.
13266	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13267	# Also, AIX nm treats weak defined symbols like other global
13268	# defined symbols, whereas GNU nm marks them as "W".
13269	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13270	  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'
13271	else
13272	  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'
13273	fi
13274	aix_use_runtimelinking=no
13275
13276	# Test if we are trying to use run time linking or normal
13277	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13278	# need to do runtime linking.
13279	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13280	  for ld_flag in $LDFLAGS; do
13281	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13282	    aix_use_runtimelinking=yes
13283	    break
13284	  fi
13285	  done
13286	  ;;
13287	esac
13288
13289	exp_sym_flag='-bexport'
13290	no_entry_flag='-bnoentry'
13291      fi
13292
13293      # When large executables or shared objects are built, AIX ld can
13294      # have problems creating the table of contents.  If linking a library
13295      # or program results in "error TOC overflow" add -mminimal-toc to
13296      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13297      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13298
13299      archive_cmds_FC=''
13300      hardcode_direct_FC=yes
13301      hardcode_direct_absolute_FC=yes
13302      hardcode_libdir_separator_FC=':'
13303      link_all_deplibs_FC=yes
13304      file_list_spec_FC='${wl}-f,'
13305
13306      if test "$GCC" = yes; then
13307	case $host_os in aix4.[012]|aix4.[012].*)
13308	# We only want to do this on AIX 4.2 and lower, the check
13309	# below for broken collect2 doesn't work under 4.3+
13310	  collect2name=`${CC} -print-prog-name=collect2`
13311	  if test -f "$collect2name" &&
13312	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13313	  then
13314	  # We have reworked collect2
13315	  :
13316	  else
13317	  # We have old collect2
13318	  hardcode_direct_FC=unsupported
13319	  # It fails to find uninstalled libraries when the uninstalled
13320	  # path is not listed in the libpath.  Setting hardcode_minus_L
13321	  # to unsupported forces relinking
13322	  hardcode_minus_L_FC=yes
13323	  hardcode_libdir_flag_spec_FC='-L$libdir'
13324	  hardcode_libdir_separator_FC=
13325	  fi
13326	  ;;
13327	esac
13328	shared_flag='-shared'
13329	if test "$aix_use_runtimelinking" = yes; then
13330	  shared_flag="$shared_flag "'${wl}-G'
13331	fi
13332      else
13333	# not using gcc
13334	if test "$host_cpu" = ia64; then
13335	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13336	# chokes on -Wl,-G. The following line is correct:
13337	  shared_flag='-G'
13338	else
13339	  if test "$aix_use_runtimelinking" = yes; then
13340	    shared_flag='${wl}-G'
13341	  else
13342	    shared_flag='${wl}-bM:SRE'
13343	  fi
13344	fi
13345      fi
13346
13347      export_dynamic_flag_spec_FC='${wl}-bexpall'
13348      # It seems that -bexpall does not export symbols beginning with
13349      # underscore (_), so it is better to generate a list of symbols to export.
13350      always_export_symbols_FC=yes
13351      if test "$aix_use_runtimelinking" = yes; then
13352	# Warning - without using the other runtime loading flags (-brtl),
13353	# -berok will link without error, but may produce a broken library.
13354	allow_undefined_flag_FC='-berok'
13355        # Determine the default libpath from the value encoded in an
13356        # empty executable.
13357        cat > conftest.$ac_ext <<_ACEOF
13358      program main
13359
13360      end
13361_ACEOF
13362if ac_fn_fc_try_link "$LINENO"; then :
13363
13364lt_aix_libpath_sed='
13365    /Import File Strings/,/^$/ {
13366	/^0/ {
13367	    s/^0  *\(.*\)$/\1/
13368	    p
13369	}
13370    }'
13371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372# Check for a 64-bit object if we didn't find anything.
13373if test -z "$aix_libpath"; then
13374  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13375fi
13376fi
13377rm -f core conftest.err conftest.$ac_objext \
13378    conftest$ac_exeext conftest.$ac_ext
13379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380
13381        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13382        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"
13383      else
13384	if test "$host_cpu" = ia64; then
13385	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13386	  allow_undefined_flag_FC="-z nodefs"
13387	  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"
13388	else
13389	 # Determine the default libpath from the value encoded in an
13390	 # empty executable.
13391	 cat > conftest.$ac_ext <<_ACEOF
13392      program main
13393
13394      end
13395_ACEOF
13396if ac_fn_fc_try_link "$LINENO"; then :
13397
13398lt_aix_libpath_sed='
13399    /Import File Strings/,/^$/ {
13400	/^0/ {
13401	    s/^0  *\(.*\)$/\1/
13402	    p
13403	}
13404    }'
13405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13406# Check for a 64-bit object if we didn't find anything.
13407if test -z "$aix_libpath"; then
13408  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409fi
13410fi
13411rm -f core conftest.err conftest.$ac_objext \
13412    conftest$ac_exeext conftest.$ac_ext
13413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13414
13415	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13416	  # Warning - without using the other run time loading flags,
13417	  # -berok will link without error, but may produce a broken library.
13418	  no_undefined_flag_FC=' ${wl}-bernotok'
13419	  allow_undefined_flag_FC=' ${wl}-berok'
13420	  if test "$with_gnu_ld" = yes; then
13421	    # We only use this code for GNU lds that support --whole-archive.
13422	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13423	  else
13424	    # Exported symbols can be pulled into shared objects from archives
13425	    whole_archive_flag_spec_FC='$convenience'
13426	  fi
13427	  archive_cmds_need_lc_FC=yes
13428	  # This is similar to how AIX traditionally builds its shared libraries.
13429	  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'
13430	fi
13431      fi
13432      ;;
13433
13434    amigaos*)
13435      case $host_cpu in
13436      powerpc)
13437            # see comment about AmigaOS4 .so support
13438            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439            archive_expsym_cmds_FC=''
13440        ;;
13441      m68k)
13442            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)'
13443            hardcode_libdir_flag_spec_FC='-L$libdir'
13444            hardcode_minus_L_FC=yes
13445        ;;
13446      esac
13447      ;;
13448
13449    bsdi[45]*)
13450      export_dynamic_flag_spec_FC=-rdynamic
13451      ;;
13452
13453    cygwin* | mingw* | pw32* | cegcc*)
13454      # When not using gcc, we currently assume that we are using
13455      # Microsoft Visual C++.
13456      # hardcode_libdir_flag_spec is actually meaningless, as there is
13457      # no search path for DLLs.
13458      hardcode_libdir_flag_spec_FC=' '
13459      allow_undefined_flag_FC=unsupported
13460      # Tell ltmain to make .lib files, not .a files.
13461      libext=lib
13462      # Tell ltmain to make .dll files, not .so files.
13463      shrext_cmds=".dll"
13464      # FIXME: Setting linknames here is a bad hack.
13465      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13466      # The linker will automatically build a .lib file if we build a DLL.
13467      old_archive_from_new_cmds_FC='true'
13468      # FIXME: Should let the user specify the lib program.
13469      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13470      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13471      enable_shared_with_static_runtimes_FC=yes
13472      ;;
13473
13474    darwin* | rhapsody*)
13475
13476
13477  archive_cmds_need_lc_FC=no
13478  hardcode_direct_FC=no
13479  hardcode_automatic_FC=yes
13480  hardcode_shlibpath_var_FC=unsupported
13481  if test "$lt_cv_ld_force_load" = "yes"; then
13482    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\"`'
13483  else
13484    whole_archive_flag_spec_FC=''
13485  fi
13486  link_all_deplibs_FC=yes
13487  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13488  case $cc_basename in
13489     ifort*) _lt_dar_can_shared=yes ;;
13490     *) _lt_dar_can_shared=$GCC ;;
13491  esac
13492  if test "$_lt_dar_can_shared" = "yes"; then
13493    output_verbose_link_cmd=func_echo_all
13494    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}"
13495    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13496    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}"
13497    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}"
13498
13499  else
13500  ld_shlibs_FC=no
13501  fi
13502
13503      ;;
13504
13505    dgux*)
13506      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507      hardcode_libdir_flag_spec_FC='-L$libdir'
13508      hardcode_shlibpath_var_FC=no
13509      ;;
13510
13511    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13512    # support.  Future versions do this automatically, but an explicit c++rt0.o
13513    # does not break anything, and helps significantly (at the cost of a little
13514    # extra space).
13515    freebsd2.2*)
13516      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13517      hardcode_libdir_flag_spec_FC='-R$libdir'
13518      hardcode_direct_FC=yes
13519      hardcode_shlibpath_var_FC=no
13520      ;;
13521
13522    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13523    freebsd2.*)
13524      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13525      hardcode_direct_FC=yes
13526      hardcode_minus_L_FC=yes
13527      hardcode_shlibpath_var_FC=no
13528      ;;
13529
13530    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13531    freebsd* | dragonfly*)
13532      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13533      hardcode_libdir_flag_spec_FC='-R$libdir'
13534      hardcode_direct_FC=yes
13535      hardcode_shlibpath_var_FC=no
13536      ;;
13537
13538    hpux9*)
13539      if test "$GCC" = yes; then
13540	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'
13541      else
13542	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'
13543      fi
13544      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13545      hardcode_libdir_separator_FC=:
13546      hardcode_direct_FC=yes
13547
13548      # hardcode_minus_L: Not really in the search PATH,
13549      # but as the default location of the library.
13550      hardcode_minus_L_FC=yes
13551      export_dynamic_flag_spec_FC='${wl}-E'
13552      ;;
13553
13554    hpux10*)
13555      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13556	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557      else
13558	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13559      fi
13560      if test "$with_gnu_ld" = no; then
13561	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13562	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13563	hardcode_libdir_separator_FC=:
13564	hardcode_direct_FC=yes
13565	hardcode_direct_absolute_FC=yes
13566	export_dynamic_flag_spec_FC='${wl}-E'
13567	# hardcode_minus_L: Not really in the search PATH,
13568	# but as the default location of the library.
13569	hardcode_minus_L_FC=yes
13570      fi
13571      ;;
13572
13573    hpux11*)
13574      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13575	case $host_cpu in
13576	hppa*64*)
13577	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13578	  ;;
13579	ia64*)
13580	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13581	  ;;
13582	*)
13583	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13584	  ;;
13585	esac
13586      else
13587	case $host_cpu in
13588	hppa*64*)
13589	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13590	  ;;
13591	ia64*)
13592	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13593	  ;;
13594	*)
13595	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13596	  ;;
13597	esac
13598      fi
13599      if test "$with_gnu_ld" = no; then
13600	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13601	hardcode_libdir_separator_FC=:
13602
13603	case $host_cpu in
13604	hppa*64*|ia64*)
13605	  hardcode_direct_FC=no
13606	  hardcode_shlibpath_var_FC=no
13607	  ;;
13608	*)
13609	  hardcode_direct_FC=yes
13610	  hardcode_direct_absolute_FC=yes
13611	  export_dynamic_flag_spec_FC='${wl}-E'
13612
13613	  # hardcode_minus_L: Not really in the search PATH,
13614	  # but as the default location of the library.
13615	  hardcode_minus_L_FC=yes
13616	  ;;
13617	esac
13618      fi
13619      ;;
13620
13621    irix5* | irix6* | nonstopux*)
13622      if test "$GCC" = yes; then
13623	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'
13624	# Try to use the -exported_symbol ld option, if it does not
13625	# work, assume that -exports_file does not work either and
13626	# implicitly export all symbols.
13627        save_LDFLAGS="$LDFLAGS"
13628        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13629        cat > conftest.$ac_ext <<_ACEOF
13630int foo(void) {}
13631_ACEOF
13632if ac_fn_fc_try_link "$LINENO"; then :
13633  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'
13634
13635fi
13636rm -f core conftest.err conftest.$ac_objext \
13637    conftest$ac_exeext conftest.$ac_ext
13638        LDFLAGS="$save_LDFLAGS"
13639      else
13640	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'
13641	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'
13642      fi
13643      archive_cmds_need_lc_FC='no'
13644      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13645      hardcode_libdir_separator_FC=:
13646      inherit_rpath_FC=yes
13647      link_all_deplibs_FC=yes
13648      ;;
13649
13650    netbsd*)
13651      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13652	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13653      else
13654	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13655      fi
13656      hardcode_libdir_flag_spec_FC='-R$libdir'
13657      hardcode_direct_FC=yes
13658      hardcode_shlibpath_var_FC=no
13659      ;;
13660
13661    newsos6)
13662      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13663      hardcode_direct_FC=yes
13664      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13665      hardcode_libdir_separator_FC=:
13666      hardcode_shlibpath_var_FC=no
13667      ;;
13668
13669    *nto* | *qnx*)
13670      ;;
13671
13672    openbsd*)
13673      if test -f /usr/libexec/ld.so; then
13674	hardcode_direct_FC=yes
13675	hardcode_shlibpath_var_FC=no
13676	hardcode_direct_absolute_FC=yes
13677	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13678	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13679	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13680	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13681	  export_dynamic_flag_spec_FC='${wl}-E'
13682	else
13683	  case $host_os in
13684	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13685	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686	     hardcode_libdir_flag_spec_FC='-R$libdir'
13687	     ;;
13688	   *)
13689	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13690	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13691	     ;;
13692	  esac
13693	fi
13694      else
13695	ld_shlibs_FC=no
13696      fi
13697      ;;
13698
13699    os2*)
13700      hardcode_libdir_flag_spec_FC='-L$libdir'
13701      hardcode_minus_L_FC=yes
13702      allow_undefined_flag_FC=unsupported
13703      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'
13704      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13705      ;;
13706
13707    osf3*)
13708      if test "$GCC" = yes; then
13709	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13710	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'
13711      else
13712	allow_undefined_flag_FC=' -expect_unresolved \*'
13713	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'
13714      fi
13715      archive_cmds_need_lc_FC='no'
13716      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13717      hardcode_libdir_separator_FC=:
13718      ;;
13719
13720    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13721      if test "$GCC" = yes; then
13722	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13723	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'
13724	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13725      else
13726	allow_undefined_flag_FC=' -expect_unresolved \*'
13727	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'
13728	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~
13729	$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'
13730
13731	# Both c and cxx compiler support -rpath directly
13732	hardcode_libdir_flag_spec_FC='-rpath $libdir'
13733      fi
13734      archive_cmds_need_lc_FC='no'
13735      hardcode_libdir_separator_FC=:
13736      ;;
13737
13738    solaris*)
13739      no_undefined_flag_FC=' -z defs'
13740      if test "$GCC" = yes; then
13741	wlarc='${wl}'
13742	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13744	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13745      else
13746	case `$CC -V 2>&1` in
13747	*"Compilers 5.0"*)
13748	  wlarc=''
13749	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13750	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13752	  ;;
13753	*)
13754	  wlarc='${wl}'
13755	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13756	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13757	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13758	  ;;
13759	esac
13760      fi
13761      hardcode_libdir_flag_spec_FC='-R$libdir'
13762      hardcode_shlibpath_var_FC=no
13763      case $host_os in
13764      solaris2.[0-5] | solaris2.[0-5].*) ;;
13765      *)
13766	# The compiler driver will combine and reorder linker options,
13767	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13768	# but is careful enough not to reorder.
13769	# Supported since Solaris 2.6 (maybe 2.5.1?)
13770	if test "$GCC" = yes; then
13771	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13772	else
13773	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13774	fi
13775	;;
13776      esac
13777      link_all_deplibs_FC=yes
13778      ;;
13779
13780    sunos4*)
13781      if test "x$host_vendor" = xsequent; then
13782	# Use $CC to link under sequent, because it throws in some extra .o
13783	# files that make .init and .fini sections work.
13784	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13785      else
13786	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787      fi
13788      hardcode_libdir_flag_spec_FC='-L$libdir'
13789      hardcode_direct_FC=yes
13790      hardcode_minus_L_FC=yes
13791      hardcode_shlibpath_var_FC=no
13792      ;;
13793
13794    sysv4)
13795      case $host_vendor in
13796	sni)
13797	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798	  hardcode_direct_FC=yes # is this really true???
13799	;;
13800	siemens)
13801	  ## LD is ld it makes a PLAMLIB
13802	  ## CC just makes a GrossModule.
13803	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13804	  reload_cmds_FC='$CC -r -o $output$reload_objs'
13805	  hardcode_direct_FC=no
13806        ;;
13807	motorola)
13808	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13809	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13810	;;
13811      esac
13812      runpath_var='LD_RUN_PATH'
13813      hardcode_shlibpath_var_FC=no
13814      ;;
13815
13816    sysv4.3*)
13817      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818      hardcode_shlibpath_var_FC=no
13819      export_dynamic_flag_spec_FC='-Bexport'
13820      ;;
13821
13822    sysv4*MP*)
13823      if test -d /usr/nec; then
13824	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825	hardcode_shlibpath_var_FC=no
13826	runpath_var=LD_RUN_PATH
13827	hardcode_runpath_var=yes
13828	ld_shlibs_FC=yes
13829      fi
13830      ;;
13831
13832    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13833      no_undefined_flag_FC='${wl}-z,text'
13834      archive_cmds_need_lc_FC=no
13835      hardcode_shlibpath_var_FC=no
13836      runpath_var='LD_RUN_PATH'
13837
13838      if test "$GCC" = yes; then
13839	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841      else
13842	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844      fi
13845      ;;
13846
13847    sysv5* | sco3.2v5* | sco5v6*)
13848      # Note: We can NOT use -z defs as we might desire, because we do not
13849      # link with -lc, and that would cause any symbols used from libc to
13850      # always be unresolved, which means just about no library would
13851      # ever link correctly.  If we're not using GNU ld we use -z text
13852      # though, which does catch some bad symbols but isn't as heavy-handed
13853      # as -z defs.
13854      no_undefined_flag_FC='${wl}-z,text'
13855      allow_undefined_flag_FC='${wl}-z,nodefs'
13856      archive_cmds_need_lc_FC=no
13857      hardcode_shlibpath_var_FC=no
13858      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13859      hardcode_libdir_separator_FC=':'
13860      link_all_deplibs_FC=yes
13861      export_dynamic_flag_spec_FC='${wl}-Bexport'
13862      runpath_var='LD_RUN_PATH'
13863
13864      if test "$GCC" = yes; then
13865	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867      else
13868	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870      fi
13871      ;;
13872
13873    uts4*)
13874      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875      hardcode_libdir_flag_spec_FC='-L$libdir'
13876      hardcode_shlibpath_var_FC=no
13877      ;;
13878
13879    *)
13880      ld_shlibs_FC=no
13881      ;;
13882    esac
13883
13884    if test x$host_vendor = xsni; then
13885      case $host in
13886      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13887	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13888	;;
13889      esac
13890    fi
13891  fi
13892
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13894$as_echo "$ld_shlibs_FC" >&6; }
13895test "$ld_shlibs_FC" = no && can_build_shared=no
13896
13897with_gnu_ld_FC=$with_gnu_ld
13898
13899
13900
13901
13902
13903
13904#
13905# Do we need to explicitly link libc?
13906#
13907case "x$archive_cmds_need_lc_FC" in
13908x|xyes)
13909  # Assume -lc should be added
13910  archive_cmds_need_lc_FC=yes
13911
13912  if test "$enable_shared" = yes && test "$GCC" = yes; then
13913    case $archive_cmds_FC in
13914    *'~'*)
13915      # FIXME: we may have to deal with multi-command sequences.
13916      ;;
13917    '$CC '*)
13918      # Test whether the compiler implicitly links with -lc since on some
13919      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13920      # to ld, don't add -lc before -lgcc.
13921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13922$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13923if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13924  $as_echo_n "(cached) " >&6
13925else
13926  $RM conftest*
13927	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928
13929	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13930  (eval $ac_compile) 2>&5
13931  ac_status=$?
13932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933  test $ac_status = 0; } 2>conftest.err; then
13934	  soname=conftest
13935	  lib=conftest
13936	  libobjs=conftest.$ac_objext
13937	  deplibs=
13938	  wl=$lt_prog_compiler_wl_FC
13939	  pic_flag=$lt_prog_compiler_pic_FC
13940	  compiler_flags=-v
13941	  linker_flags=-v
13942	  verstring=
13943	  output_objdir=.
13944	  libname=conftest
13945	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13946	  allow_undefined_flag_FC=
13947	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13948  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13949  ac_status=$?
13950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951  test $ac_status = 0; }
13952	  then
13953	    lt_cv_archive_cmds_need_lc_FC=no
13954	  else
13955	    lt_cv_archive_cmds_need_lc_FC=yes
13956	  fi
13957	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13958	else
13959	  cat conftest.err 1>&5
13960	fi
13961	$RM conftest*
13962
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13965$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13966      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13967      ;;
13968    esac
13969  fi
13970  ;;
13971esac
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14037$as_echo_n "checking dynamic linker characteristics... " >&6; }
14038
14039library_names_spec=
14040libname_spec='lib$name'
14041soname_spec=
14042shrext_cmds=".so"
14043postinstall_cmds=
14044postuninstall_cmds=
14045finish_cmds=
14046finish_eval=
14047shlibpath_var=
14048shlibpath_overrides_runpath=unknown
14049version_type=none
14050dynamic_linker="$host_os ld.so"
14051sys_lib_dlsearch_path_spec="/lib /usr/lib"
14052need_lib_prefix=unknown
14053hardcode_into_libs=no
14054
14055# when you set need_version to no, make sure it does not cause -set_version
14056# flags to be left without arguments
14057need_version=unknown
14058
14059case $host_os in
14060aix3*)
14061  version_type=linux
14062  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14063  shlibpath_var=LIBPATH
14064
14065  # AIX 3 has no versioning support, so we append a major version to the name.
14066  soname_spec='${libname}${release}${shared_ext}$major'
14067  ;;
14068
14069aix[4-9]*)
14070  version_type=linux
14071  need_lib_prefix=no
14072  need_version=no
14073  hardcode_into_libs=yes
14074  if test "$host_cpu" = ia64; then
14075    # AIX 5 supports IA64
14076    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14077    shlibpath_var=LD_LIBRARY_PATH
14078  else
14079    # With GCC up to 2.95.x, collect2 would create an import file
14080    # for dependence libraries.  The import file would start with
14081    # the line `#! .'.  This would cause the generated library to
14082    # depend on `.', always an invalid library.  This was fixed in
14083    # development snapshots of GCC prior to 3.0.
14084    case $host_os in
14085      aix4 | aix4.[01] | aix4.[01].*)
14086      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14087	   echo ' yes '
14088	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14089	:
14090      else
14091	can_build_shared=no
14092      fi
14093      ;;
14094    esac
14095    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14096    # soname into executable. Probably we can add versioning support to
14097    # collect2, so additional links can be useful in future.
14098    if test "$aix_use_runtimelinking" = yes; then
14099      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14100      # instead of lib<name>.a to let people know that these are not
14101      # typical AIX shared libraries.
14102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103    else
14104      # We preserve .a as extension for shared libraries through AIX4.2
14105      # and later when we are not doing run time linking.
14106      library_names_spec='${libname}${release}.a $libname.a'
14107      soname_spec='${libname}${release}${shared_ext}$major'
14108    fi
14109    shlibpath_var=LIBPATH
14110  fi
14111  ;;
14112
14113amigaos*)
14114  case $host_cpu in
14115  powerpc)
14116    # Since July 2007 AmigaOS4 officially supports .so libraries.
14117    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119    ;;
14120  m68k)
14121    library_names_spec='$libname.ixlibrary $libname.a'
14122    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14123    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'
14124    ;;
14125  esac
14126  ;;
14127
14128beos*)
14129  library_names_spec='${libname}${shared_ext}'
14130  dynamic_linker="$host_os ld.so"
14131  shlibpath_var=LIBRARY_PATH
14132  ;;
14133
14134bsdi[45]*)
14135  version_type=linux
14136  need_version=no
14137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138  soname_spec='${libname}${release}${shared_ext}$major'
14139  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14140  shlibpath_var=LD_LIBRARY_PATH
14141  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14142  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14143  # the default ld.so.conf also contains /usr/contrib/lib and
14144  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14145  # libtool to hard-code these into programs
14146  ;;
14147
14148cygwin* | mingw* | pw32* | cegcc*)
14149  version_type=windows
14150  shrext_cmds=".dll"
14151  need_version=no
14152  need_lib_prefix=no
14153
14154  case $GCC,$host_os in
14155  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14156    library_names_spec='$libname.dll.a'
14157    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14158    postinstall_cmds='base_file=`basename \${file}`~
14159      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14160      dldir=$destdir/`dirname \$dlpath`~
14161      test -d \$dldir || mkdir -p \$dldir~
14162      $install_prog $dir/$dlname \$dldir/$dlname~
14163      chmod a+x \$dldir/$dlname~
14164      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14165        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14166      fi'
14167    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14168      dlpath=$dir/\$dldll~
14169       $RM \$dlpath'
14170    shlibpath_overrides_runpath=yes
14171
14172    case $host_os in
14173    cygwin*)
14174      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14175      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14176
14177      ;;
14178    mingw* | cegcc*)
14179      # MinGW DLLs use traditional 'lib' prefix
14180      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181      ;;
14182    pw32*)
14183      # pw32 DLLs use 'pw' prefix rather than 'lib'
14184      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185      ;;
14186    esac
14187    ;;
14188
14189  *)
14190    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14191    ;;
14192  esac
14193  dynamic_linker='Win32 ld.exe'
14194  # FIXME: first we should search . and the directory the executable is in
14195  shlibpath_var=PATH
14196  ;;
14197
14198darwin* | rhapsody*)
14199  dynamic_linker="$host_os dyld"
14200  version_type=darwin
14201  need_lib_prefix=no
14202  need_version=no
14203  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14204  soname_spec='${libname}${release}${major}$shared_ext'
14205  shlibpath_overrides_runpath=yes
14206  shlibpath_var=DYLD_LIBRARY_PATH
14207  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14208
14209  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14210  ;;
14211
14212dgux*)
14213  version_type=linux
14214  need_lib_prefix=no
14215  need_version=no
14216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14217  soname_spec='${libname}${release}${shared_ext}$major'
14218  shlibpath_var=LD_LIBRARY_PATH
14219  ;;
14220
14221freebsd* | dragonfly*)
14222  # DragonFly does not have aout.  When/if they implement a new
14223  # versioning mechanism, adjust this.
14224  if test -x /usr/bin/objformat; then
14225    objformat=`/usr/bin/objformat`
14226  else
14227    case $host_os in
14228    freebsd[23].*) objformat=aout ;;
14229    *) objformat=elf ;;
14230    esac
14231  fi
14232  version_type=freebsd-$objformat
14233  case $version_type in
14234    freebsd-elf*)
14235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14236      need_version=no
14237      need_lib_prefix=no
14238      ;;
14239    freebsd-*)
14240      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14241      need_version=yes
14242      ;;
14243  esac
14244  shlibpath_var=LD_LIBRARY_PATH
14245  case $host_os in
14246  freebsd2.*)
14247    shlibpath_overrides_runpath=yes
14248    ;;
14249  freebsd3.[01]* | freebsdelf3.[01]*)
14250    shlibpath_overrides_runpath=yes
14251    hardcode_into_libs=yes
14252    ;;
14253  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14254  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14255    shlibpath_overrides_runpath=no
14256    hardcode_into_libs=yes
14257    ;;
14258  *) # from 4.6 on, and DragonFly
14259    shlibpath_overrides_runpath=yes
14260    hardcode_into_libs=yes
14261    ;;
14262  esac
14263  ;;
14264
14265haiku*)
14266  version_type=linux
14267  need_lib_prefix=no
14268  need_version=no
14269  dynamic_linker="$host_os runtime_loader"
14270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14271  soname_spec='${libname}${release}${shared_ext}$major'
14272  shlibpath_var=LIBRARY_PATH
14273  shlibpath_overrides_runpath=yes
14274  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14275  hardcode_into_libs=yes
14276  ;;
14277
14278hpux9* | hpux10* | hpux11*)
14279  # Give a soname corresponding to the major version so that dld.sl refuses to
14280  # link against other versions.
14281  version_type=sunos
14282  need_lib_prefix=no
14283  need_version=no
14284  case $host_cpu in
14285  ia64*)
14286    shrext_cmds='.so'
14287    hardcode_into_libs=yes
14288    dynamic_linker="$host_os dld.so"
14289    shlibpath_var=LD_LIBRARY_PATH
14290    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292    soname_spec='${libname}${release}${shared_ext}$major'
14293    if test "X$HPUX_IA64_MODE" = X32; then
14294      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14295    else
14296      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14297    fi
14298    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299    ;;
14300  hppa*64*)
14301    shrext_cmds='.sl'
14302    hardcode_into_libs=yes
14303    dynamic_linker="$host_os dld.sl"
14304    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14305    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307    soname_spec='${libname}${release}${shared_ext}$major'
14308    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14309    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14310    ;;
14311  *)
14312    shrext_cmds='.sl'
14313    dynamic_linker="$host_os dld.sl"
14314    shlibpath_var=SHLIB_PATH
14315    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317    soname_spec='${libname}${release}${shared_ext}$major'
14318    ;;
14319  esac
14320  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14321  postinstall_cmds='chmod 555 $lib'
14322  # or fails outright, so override atomically:
14323  install_override_mode=555
14324  ;;
14325
14326interix[3-9]*)
14327  version_type=linux
14328  need_lib_prefix=no
14329  need_version=no
14330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14331  soname_spec='${libname}${release}${shared_ext}$major'
14332  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14333  shlibpath_var=LD_LIBRARY_PATH
14334  shlibpath_overrides_runpath=no
14335  hardcode_into_libs=yes
14336  ;;
14337
14338irix5* | irix6* | nonstopux*)
14339  case $host_os in
14340    nonstopux*) version_type=nonstopux ;;
14341    *)
14342	if test "$lt_cv_prog_gnu_ld" = yes; then
14343		version_type=linux
14344	else
14345		version_type=irix
14346	fi ;;
14347  esac
14348  need_lib_prefix=no
14349  need_version=no
14350  soname_spec='${libname}${release}${shared_ext}$major'
14351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14352  case $host_os in
14353  irix5* | nonstopux*)
14354    libsuff= shlibsuff=
14355    ;;
14356  *)
14357    case $LD in # libtool.m4 will add one of these switches to LD
14358    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14359      libsuff= shlibsuff= libmagic=32-bit;;
14360    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14361      libsuff=32 shlibsuff=N32 libmagic=N32;;
14362    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14363      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14364    *) libsuff= shlibsuff= libmagic=never-match;;
14365    esac
14366    ;;
14367  esac
14368  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14369  shlibpath_overrides_runpath=no
14370  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14371  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14372  hardcode_into_libs=yes
14373  ;;
14374
14375# No shared lib support for Linux oldld, aout, or coff.
14376linux*oldld* | linux*aout* | linux*coff*)
14377  dynamic_linker=no
14378  ;;
14379
14380# This must be Linux ELF.
14381
14382# uclinux* changes (here and below) have been submitted to the libtool
14383# project, but have not yet been accepted: they are GCC-local changes
14384# for the time being.  (See
14385# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14386linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14387  version_type=linux
14388  need_lib_prefix=no
14389  need_version=no
14390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391  soname_spec='${libname}${release}${shared_ext}$major'
14392  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14393  shlibpath_var=LD_LIBRARY_PATH
14394  shlibpath_overrides_runpath=no
14395
14396  # Some binutils ld are patched to set DT_RUNPATH
14397  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14398  $as_echo_n "(cached) " >&6
14399else
14400  lt_cv_shlibpath_overrides_runpath=no
14401    save_LDFLAGS=$LDFLAGS
14402    save_libdir=$libdir
14403    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14404	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14405    cat > conftest.$ac_ext <<_ACEOF
14406      program main
14407
14408      end
14409_ACEOF
14410if ac_fn_fc_try_link "$LINENO"; then :
14411  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14412  lt_cv_shlibpath_overrides_runpath=yes
14413fi
14414fi
14415rm -f core conftest.err conftest.$ac_objext \
14416    conftest$ac_exeext conftest.$ac_ext
14417    LDFLAGS=$save_LDFLAGS
14418    libdir=$save_libdir
14419
14420fi
14421
14422  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14423
14424  # This implies no fast_install, which is unacceptable.
14425  # Some rework will be needed to allow for fast_install
14426  # before this can be enabled.
14427  hardcode_into_libs=yes
14428
14429  # Append ld.so.conf contents to the search path
14430  if test -f /etc/ld.so.conf; then
14431    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' ' '`
14432    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14433  fi
14434
14435  # We used to test for /lib/ld.so.1 and disable shared libraries on
14436  # powerpc, because MkLinux only supported shared libraries with the
14437  # GNU dynamic linker.  Since this was broken with cross compilers,
14438  # most powerpc-linux boxes support dynamic linking these days and
14439  # people can always --disable-shared, the test was removed, and we
14440  # assume the GNU/Linux dynamic linker is in use.
14441  dynamic_linker='GNU/Linux ld.so'
14442  ;;
14443
14444netbsd*)
14445  version_type=sunos
14446  need_lib_prefix=no
14447  need_version=no
14448  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14450    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14451    dynamic_linker='NetBSD (a.out) ld.so'
14452  else
14453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14454    soname_spec='${libname}${release}${shared_ext}$major'
14455    dynamic_linker='NetBSD ld.elf_so'
14456  fi
14457  shlibpath_var=LD_LIBRARY_PATH
14458  shlibpath_overrides_runpath=yes
14459  hardcode_into_libs=yes
14460  ;;
14461
14462newsos6)
14463  version_type=linux
14464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465  shlibpath_var=LD_LIBRARY_PATH
14466  shlibpath_overrides_runpath=yes
14467  ;;
14468
14469*nto* | *qnx*)
14470  version_type=qnx
14471  need_lib_prefix=no
14472  need_version=no
14473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474  soname_spec='${libname}${release}${shared_ext}$major'
14475  shlibpath_var=LD_LIBRARY_PATH
14476  shlibpath_overrides_runpath=no
14477  hardcode_into_libs=yes
14478  dynamic_linker='ldqnx.so'
14479  ;;
14480
14481openbsd*)
14482  version_type=sunos
14483  sys_lib_dlsearch_path_spec="/usr/lib"
14484  need_lib_prefix=no
14485  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14486  case $host_os in
14487    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14488    *)				need_version=no  ;;
14489  esac
14490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14491  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14492  shlibpath_var=LD_LIBRARY_PATH
14493  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14494    case $host_os in
14495      openbsd2.[89] | openbsd2.[89].*)
14496	shlibpath_overrides_runpath=no
14497	;;
14498      *)
14499	shlibpath_overrides_runpath=yes
14500	;;
14501      esac
14502  else
14503    shlibpath_overrides_runpath=yes
14504  fi
14505  ;;
14506
14507os2*)
14508  libname_spec='$name'
14509  shrext_cmds=".dll"
14510  need_lib_prefix=no
14511  library_names_spec='$libname${shared_ext} $libname.a'
14512  dynamic_linker='OS/2 ld.exe'
14513  shlibpath_var=LIBPATH
14514  ;;
14515
14516osf3* | osf4* | osf5*)
14517  version_type=osf
14518  need_lib_prefix=no
14519  need_version=no
14520  soname_spec='${libname}${release}${shared_ext}$major'
14521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522  shlibpath_var=LD_LIBRARY_PATH
14523  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14524  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14525  ;;
14526
14527rdos*)
14528  dynamic_linker=no
14529  ;;
14530
14531solaris*)
14532  version_type=linux
14533  need_lib_prefix=no
14534  need_version=no
14535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536  soname_spec='${libname}${release}${shared_ext}$major'
14537  shlibpath_var=LD_LIBRARY_PATH
14538  shlibpath_overrides_runpath=yes
14539  hardcode_into_libs=yes
14540  # ldd complains unless libraries are executable
14541  postinstall_cmds='chmod +x $lib'
14542  ;;
14543
14544sunos4*)
14545  version_type=sunos
14546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14547  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14548  shlibpath_var=LD_LIBRARY_PATH
14549  shlibpath_overrides_runpath=yes
14550  if test "$with_gnu_ld" = yes; then
14551    need_lib_prefix=no
14552  fi
14553  need_version=yes
14554  ;;
14555
14556sysv4 | sysv4.3*)
14557  version_type=linux
14558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559  soname_spec='${libname}${release}${shared_ext}$major'
14560  shlibpath_var=LD_LIBRARY_PATH
14561  case $host_vendor in
14562    sni)
14563      shlibpath_overrides_runpath=no
14564      need_lib_prefix=no
14565      runpath_var=LD_RUN_PATH
14566      ;;
14567    siemens)
14568      need_lib_prefix=no
14569      ;;
14570    motorola)
14571      need_lib_prefix=no
14572      need_version=no
14573      shlibpath_overrides_runpath=no
14574      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14575      ;;
14576  esac
14577  ;;
14578
14579sysv4*MP*)
14580  if test -d /usr/nec ;then
14581    version_type=linux
14582    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14583    soname_spec='$libname${shared_ext}.$major'
14584    shlibpath_var=LD_LIBRARY_PATH
14585  fi
14586  ;;
14587
14588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14589  version_type=freebsd-elf
14590  need_lib_prefix=no
14591  need_version=no
14592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593  soname_spec='${libname}${release}${shared_ext}$major'
14594  shlibpath_var=LD_LIBRARY_PATH
14595  shlibpath_overrides_runpath=yes
14596  hardcode_into_libs=yes
14597  if test "$with_gnu_ld" = yes; then
14598    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14599  else
14600    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14601    case $host_os in
14602      sco3.2v5*)
14603        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14604	;;
14605    esac
14606  fi
14607  sys_lib_dlsearch_path_spec='/usr/lib'
14608  ;;
14609
14610tpf*)
14611  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14612  version_type=linux
14613  need_lib_prefix=no
14614  need_version=no
14615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616  shlibpath_var=LD_LIBRARY_PATH
14617  shlibpath_overrides_runpath=no
14618  hardcode_into_libs=yes
14619  ;;
14620
14621uts4*)
14622  version_type=linux
14623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14624  soname_spec='${libname}${release}${shared_ext}$major'
14625  shlibpath_var=LD_LIBRARY_PATH
14626  ;;
14627
14628*)
14629  dynamic_linker=no
14630  ;;
14631esac
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14633$as_echo "$dynamic_linker" >&6; }
14634test "$dynamic_linker" = no && can_build_shared=no
14635
14636variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14637if test "$GCC" = yes; then
14638  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14639fi
14640
14641if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14642  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14643fi
14644if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14645  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14646fi
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14686$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14687hardcode_action_FC=
14688if test -n "$hardcode_libdir_flag_spec_FC" ||
14689   test -n "$runpath_var_FC" ||
14690   test "X$hardcode_automatic_FC" = "Xyes" ; then
14691
14692  # We can hardcode non-existent directories.
14693  if test "$hardcode_direct_FC" != no &&
14694     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14695     # have to relink, otherwise we might link with an installed library
14696     # when we should be linking with a yet-to-be-installed one
14697     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14698     test "$hardcode_minus_L_FC" != no; then
14699    # Linking always hardcodes the temporary library directory.
14700    hardcode_action_FC=relink
14701  else
14702    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14703    hardcode_action_FC=immediate
14704  fi
14705else
14706  # We cannot hardcode anything, or else we can only hardcode existing
14707  # directories.
14708  hardcode_action_FC=unsupported
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14711$as_echo "$hardcode_action_FC" >&6; }
14712
14713if test "$hardcode_action_FC" = relink ||
14714   test "$inherit_rpath_FC" = yes; then
14715  # Fast installation is not supported
14716  enable_fast_install=no
14717elif test "$shlibpath_overrides_runpath" = yes ||
14718     test "$enable_shared" = no; then
14719  # Fast installation is not necessary
14720  enable_fast_install=needless
14721fi
14722
14723
14724
14725
14726
14727
14728
14729  fi # test -n "$compiler"
14730
14731  GCC=$lt_save_GCC
14732  CC="$lt_save_CC"
14733fi # test "$_lt_disable_FC" != yes
14734
14735ac_ext=c
14736ac_cpp='$CPP $CPPFLAGS'
14737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14739ac_compiler_gnu=$ac_cv_c_compiler_gnu
14740
14741
14742FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14743
14744# For libtool versioning info, format is CURRENT:REVISION:AGE
14745libtool_VERSION=1:0:0
14746
14747
14748# Check header files.
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14750$as_echo_n "checking for ANSI C header files... " >&6; }
14751if ${ac_cv_header_stdc+:} false; then :
14752  $as_echo_n "(cached) " >&6
14753else
14754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h.  */
14756#include <stdlib.h>
14757#include <stdarg.h>
14758#include <string.h>
14759#include <float.h>
14760
14761int
14762main ()
14763{
14764
14765  ;
14766  return 0;
14767}
14768_ACEOF
14769if ac_fn_c_try_compile "$LINENO"; then :
14770  ac_cv_header_stdc=yes
14771else
14772  ac_cv_header_stdc=no
14773fi
14774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775
14776if test $ac_cv_header_stdc = yes; then
14777  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780#include <string.h>
14781
14782_ACEOF
14783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14784  $EGREP "memchr" >/dev/null 2>&1; then :
14785
14786else
14787  ac_cv_header_stdc=no
14788fi
14789rm -f conftest*
14790
14791fi
14792
14793if test $ac_cv_header_stdc = yes; then
14794  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h.  */
14797#include <stdlib.h>
14798
14799_ACEOF
14800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14801  $EGREP "free" >/dev/null 2>&1; then :
14802
14803else
14804  ac_cv_header_stdc=no
14805fi
14806rm -f conftest*
14807
14808fi
14809
14810if test $ac_cv_header_stdc = yes; then
14811  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14812  if test "$cross_compiling" = yes; then :
14813  :
14814else
14815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h.  */
14817#include <ctype.h>
14818#include <stdlib.h>
14819#if ((' ' & 0x0FF) == 0x020)
14820# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14821# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14822#else
14823# define ISLOWER(c) \
14824		   (('a' <= (c) && (c) <= 'i') \
14825		     || ('j' <= (c) && (c) <= 'r') \
14826		     || ('s' <= (c) && (c) <= 'z'))
14827# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14828#endif
14829
14830#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14831int
14832main ()
14833{
14834  int i;
14835  for (i = 0; i < 256; i++)
14836    if (XOR (islower (i), ISLOWER (i))
14837	|| toupper (i) != TOUPPER (i))
14838      return 2;
14839  return 0;
14840}
14841_ACEOF
14842if ac_fn_c_try_run "$LINENO"; then :
14843
14844else
14845  ac_cv_header_stdc=no
14846fi
14847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14848  conftest.$ac_objext conftest.beam conftest.$ac_ext
14849fi
14850
14851fi
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14854$as_echo "$ac_cv_header_stdc" >&6; }
14855if test $ac_cv_header_stdc = yes; then
14856
14857$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14858
14859fi
14860
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14862$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14863if ${ac_cv_header_time+:} false; then :
14864  $as_echo_n "(cached) " >&6
14865else
14866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h.  */
14868#include <sys/types.h>
14869#include <sys/time.h>
14870#include <time.h>
14871
14872int
14873main ()
14874{
14875if ((struct tm *) 0)
14876return 0;
14877  ;
14878  return 0;
14879}
14880_ACEOF
14881if ac_fn_c_try_compile "$LINENO"; then :
14882  ac_cv_header_time=yes
14883else
14884  ac_cv_header_time=no
14885fi
14886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887fi
14888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14889$as_echo "$ac_cv_header_time" >&6; }
14890if test $ac_cv_header_time = yes; then
14891
14892$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14893
14894fi
14895
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14897$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14898if ${gcc_cv_header_string+:} false; then :
14899  $as_echo_n "(cached) " >&6
14900else
14901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h.  */
14903#include <string.h>
14904#include <strings.h>
14905int
14906main ()
14907{
14908
14909  ;
14910  return 0;
14911}
14912_ACEOF
14913if ac_fn_c_try_compile "$LINENO"; then :
14914  gcc_cv_header_string=yes
14915else
14916  gcc_cv_header_string=no
14917fi
14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14921$as_echo "$gcc_cv_header_string" >&6; }
14922if test $gcc_cv_header_string = yes; then
14923
14924$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14925
14926fi
14927
14928for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14929do :
14930  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14931ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14933  cat >>confdefs.h <<_ACEOF
14934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14935_ACEOF
14936
14937fi
14938
14939done
14940
14941
14942XPCFLAGS=""
14943case "$host" in
14944  *-*-rtems*)
14945    # RTEMS supports Pthreads, but the library is not available at GCC build time.
14946    ;;
14947  nvptx*-*-* | amdgcn*-*-*)
14948    # NVPTX does not support Pthreads, has its own code replacement.
14949    libgomp_use_pthreads=no
14950    # NVPTX is an accelerator-only target
14951    libgomp_offloaded_only=yes
14952    ;;
14953  *)
14954    # Check to see if -pthread or -lpthread is needed.  Prefer the former.
14955    # In case the pthread.h system header is not found, this test will fail.
14956    CFLAGS="$CFLAGS -pthread"
14957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958/* end confdefs.h.  */
14959#include <pthread.h>
14960       void *g(void *d) { return NULL; }
14961int
14962main ()
14963{
14964pthread_t t; pthread_create(&t,NULL,g,NULL);
14965  ;
14966  return 0;
14967}
14968_ACEOF
14969if ac_fn_c_try_link "$LINENO"; then :
14970  XPCFLAGS=" -Wc,-pthread"
14971else
14972  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974/* end confdefs.h.  */
14975#include <pthread.h>
14976         void *g(void *d) { return NULL; }
14977int
14978main ()
14979{
14980pthread_t t; pthread_create(&t,NULL,g,NULL);
14981  ;
14982  return 0;
14983}
14984_ACEOF
14985if ac_fn_c_try_link "$LINENO"; then :
14986
14987else
14988  as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14989fi
14990rm -f core conftest.err conftest.$ac_objext \
14991    conftest$ac_exeext conftest.$ac_ext
14992fi
14993rm -f core conftest.err conftest.$ac_objext \
14994    conftest$ac_exeext conftest.$ac_ext
14995esac
14996
14997if test x$libgomp_use_pthreads != xno; then
14998
14999$as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15000
15001fi
15002
15003if test x$libgomp_offloaded_only = xyes; then
15004
15005$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15006
15007fi
15008
15009if test "x$enable_offload_defaulted" = xyes; then
15010
15011$as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15012
15013fi
15014
15015# The cast to long int works around a bug in the HP C Compiler
15016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15018# This bug is HP SR number 8606223364.
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15020$as_echo_n "checking size of void *... " >&6; }
15021if ${ac_cv_sizeof_void_p+:} false; then :
15022  $as_echo_n "(cached) " >&6
15023else
15024  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15025
15026else
15027  if test "$ac_cv_type_void_p" = yes; then
15028     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15030as_fn_error 77 "cannot compute sizeof (void *)
15031See \`config.log' for more details" "$LINENO" 5; }
15032   else
15033     ac_cv_sizeof_void_p=0
15034   fi
15035fi
15036
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15039$as_echo "$ac_cv_sizeof_void_p" >&6; }
15040
15041
15042
15043cat >>confdefs.h <<_ACEOF
15044#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15045_ACEOF
15046
15047
15048
15049# Plugins for offload execution, configure.ac fragment.  -*- mode: autoconf -*-
15050#
15051# Copyright (C) 2014-2022 Free Software Foundation, Inc.
15052#
15053# Contributed by Mentor Embedded.
15054#
15055# This file is part of the GNU Offloading and Multi Processing Library
15056# (libgomp).
15057#
15058# Libgomp is free software; you can redistribute it and/or modify it
15059# under the terms of the GNU General Public License as published by
15060# the Free Software Foundation; either version 3, or (at your option)
15061# any later version.
15062#
15063# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15064# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15065# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15066# more details.
15067#
15068# Under Section 7 of GPL version 3, you are granted additional
15069# permissions described in the GCC Runtime Library Exception, version
15070# 3.1, as published by the Free Software Foundation.
15071#
15072# You should have received a copy of the GNU General Public License and
15073# a copy of the GCC Runtime Library Exception along with this program;
15074# see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
15075# <http://www.gnu.org/licenses/>.
15076
15077plugin_support=yes
15078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15079$as_echo_n "checking for dlsym in -ldl... " >&6; }
15080if ${ac_cv_lib_dl_dlsym+:} false; then :
15081  $as_echo_n "(cached) " >&6
15082else
15083  ac_check_lib_save_LIBS=$LIBS
15084LIBS="-ldl  $LIBS"
15085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086/* end confdefs.h.  */
15087
15088/* Override any GCC internal prototype to avoid an error.
15089   Use char because int might match the return type of a GCC
15090   builtin and then its argument prototype would still apply.  */
15091#ifdef __cplusplus
15092extern "C"
15093#endif
15094char dlsym ();
15095int
15096main ()
15097{
15098return dlsym ();
15099  ;
15100  return 0;
15101}
15102_ACEOF
15103if ac_fn_c_try_link "$LINENO"; then :
15104  ac_cv_lib_dl_dlsym=yes
15105else
15106  ac_cv_lib_dl_dlsym=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext \
15109    conftest$ac_exeext conftest.$ac_ext
15110LIBS=$ac_check_lib_save_LIBS
15111fi
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15113$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15114if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15115  cat >>confdefs.h <<_ACEOF
15116#define HAVE_LIBDL 1
15117_ACEOF
15118
15119  LIBS="-ldl $LIBS"
15120
15121else
15122  plugin_support=no
15123fi
15124
15125if test x"$plugin_support" = xyes; then
15126
15127$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15128
15129elif test "x${enable_offload_targets-no}" != xno; then
15130  as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15131fi
15132
15133
15134
15135  for ac_header in $ac_header_list
15136do :
15137  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15139"
15140if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15141  cat >>confdefs.h <<_ACEOF
15142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15143_ACEOF
15144
15145fi
15146
15147done
15148
15149
15150
15151
15152
15153
15154
15155  for ac_func in $ac_func_list
15156do :
15157  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15158ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15159if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15160  cat >>confdefs.h <<_ACEOF
15161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15162_ACEOF
15163
15164fi
15165done
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182# Look for the CUDA driver package.
15183CUDA_DRIVER_INCLUDE=
15184CUDA_DRIVER_LIB=
15185
15186
15187CUDA_DRIVER_CPPFLAGS=
15188CUDA_DRIVER_LDFLAGS=
15189
15190# Check whether --with-cuda-driver was given.
15191if test "${with_cuda_driver+set}" = set; then :
15192  withval=$with_cuda_driver;
15193fi
15194
15195
15196# Check whether --with-cuda-driver-include was given.
15197if test "${with_cuda_driver_include+set}" = set; then :
15198  withval=$with_cuda_driver_include;
15199fi
15200
15201
15202# Check whether --with-cuda-driver-lib was given.
15203if test "${with_cuda_driver_lib+set}" = set; then :
15204  withval=$with_cuda_driver_lib;
15205fi
15206
15207case "x$with_cuda_driver" in
15208  x) ;;
15209  xno)
15210    CUDA_DRIVER_INCLUDE=no
15211    CUDA_DRIVER_LIB=no
15212    ;;
15213  *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15214     CUDA_DRIVER_LIB=$with_cuda_driver/lib
15215     ;;
15216esac
15217if test "x$with_cuda_driver_include" != x; then
15218  CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15219fi
15220if test "x$with_cuda_driver_lib" != x; then
15221  CUDA_DRIVER_LIB=$with_cuda_driver_lib
15222fi
15223if test "x$CUDA_DRIVER_INCLUDE" != x \
15224   && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15225  CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15226fi
15227if test "x$CUDA_DRIVER_LIB" != x \
15228   && test "x$CUDA_DRIVER_LIB" != xno; then
15229  CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15230fi
15231
15232PLUGIN_NVPTX=0
15233PLUGIN_NVPTX_CPPFLAGS=
15234PLUGIN_NVPTX_LDFLAGS=
15235PLUGIN_NVPTX_LIBS=
15236PLUGIN_NVPTX_DYNAMIC=0
15237
15238
15239
15240
15241
15242# Look for HSA run-time, its includes and libraries
15243
15244HSA_RUNTIME_INCLUDE=
15245HSA_RUNTIME_LIB=
15246
15247
15248HSA_RUNTIME_CPPFLAGS=
15249HSA_RUNTIME_LDFLAGS=
15250
15251
15252# Check whether --with-hsa-runtime was given.
15253if test "${with_hsa_runtime+set}" = set; then :
15254  withval=$with_hsa_runtime;
15255fi
15256
15257
15258# Check whether --with-hsa-runtime-include was given.
15259if test "${with_hsa_runtime_include+set}" = set; then :
15260  withval=$with_hsa_runtime_include;
15261fi
15262
15263
15264# Check whether --with-hsa-runtime-lib was given.
15265if test "${with_hsa_runtime_lib+set}" = set; then :
15266  withval=$with_hsa_runtime_lib;
15267fi
15268
15269if test "x$with_hsa_runtime" != x; then
15270  HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15271  HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15272fi
15273if test "x$with_hsa_runtime_include" != x; then
15274  HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15275fi
15276if test "x$with_hsa_runtime_lib" != x; then
15277  HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15278fi
15279if test "x$HSA_RUNTIME_INCLUDE" != x; then
15280  HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15281fi
15282if test "x$HSA_RUNTIME_LIB" != x; then
15283  HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15284fi
15285
15286PLUGIN_GCN=0
15287PLUGIN_GCN_CPPFLAGS=
15288PLUGIN_GCN_LDFLAGS=
15289PLUGIN_GCN_LIBS=
15290
15291
15292
15293
15294
15295# Parse '--enable-offload-targets', figure out the corresponding libgomp
15296# plugins, and configure to find the corresponding offload compilers.
15297# 'offload_plugins' and 'offload_targets' will be populated in the same order.
15298offload_plugins=
15299offload_targets=
15300
15301
15302offload_additional_options=
15303offload_additional_lib_paths=
15304
15305
15306if test x"$enable_offload_targets" != x; then
15307  for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15308    tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15309    tgt=`echo $tgt | sed 's/=.*//'`
15310    tgt_plugin=
15311    case $tgt in
15312      *-intelmic-* | *-intelmicemul-*)
15313	tgt_plugin=intelmic
15314	;;
15315      nvptx*)
15316	case "${target}" in
15317	  aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15318	    case "$ac_cv_sizeof_void_p" in
15319	      4)
15320		# PR libgomp/65099: Currently, we only support offloading in
15321		# 64-bit configurations.
15322		PLUGIN_NVPTX=0
15323		;;
15324	      *)
15325		tgt_plugin=nvptx
15326		PLUGIN_NVPTX=$tgt
15327		if test "x$CUDA_DRIVER_LIB" != xno \
15328		   && test "x$CUDA_DRIVER_LIB" != xno; then
15329		  PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15330		  PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15331		  PLUGIN_NVPTX_LIBS='-lcuda'
15332
15333		  PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15334		  CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15335		  PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15336		  LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15337		  PLUGIN_NVPTX_save_LIBS=$LIBS
15338		  LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15339		  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340/* end confdefs.h.  */
15341#include "cuda.h"
15342int
15343main ()
15344{
15345CUresult r = cuCtxPushCurrent (NULL);
15346  ;
15347  return 0;
15348}
15349_ACEOF
15350if ac_fn_c_try_link "$LINENO"; then :
15351  PLUGIN_NVPTX=1
15352fi
15353rm -f core conftest.err conftest.$ac_objext \
15354    conftest$ac_exeext conftest.$ac_ext
15355		  CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15356		  LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15357		  LIBS=$PLUGIN_NVPTX_save_LIBS
15358		fi
15359		case $PLUGIN_NVPTX in
15360		  nvptx*)
15361		    if (test "x$CUDA_DRIVER_INCLUDE" = x \
15362			|| test "x$CUDA_DRIVER_INCLUDE" = xno) \
15363		       && (test "x$CUDA_DRIVER_LIB" = x \
15364			   || test "x$CUDA_DRIVER_LIB" = xno); then
15365		      PLUGIN_NVPTX=1
15366		      PLUGIN_NVPTX_LIBS='-ldl'
15367		      PLUGIN_NVPTX_DYNAMIC=1
15368		    else
15369		      PLUGIN_NVPTX=0
15370		      as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15371		    fi
15372		    ;;
15373		esac
15374		;;
15375	    esac
15376	    ;;
15377	  *-*-*)
15378	    # Target architecture not supported.
15379	    PLUGIN_NVPTX=0
15380	    ;;
15381	esac
15382	;;
15383      amdgcn*)
15384	case "${target}" in
15385	  x86_64-*-*)
15386	    case "$ac_cv_sizeof_void_p" in
15387	      4)
15388		PLUGIN_GCN=0
15389		;;
15390	      *)
15391		tgt_plugin=gcn
15392		PLUGIN_GCN=$tgt
15393		PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15394		PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15395		PLUGIN_GCN_LIBS="-ldl"
15396		PLUGIN_GCN=1
15397		;;
15398	      esac
15399	    ;;
15400	  *-*-*)
15401	    PLUGIN_GCN=0
15402	     ;;
15403	esac
15404	;;
15405      *)
15406	as_fn_error $? "unknown offload target specified" "$LINENO" 5
15407	;;
15408    esac
15409    if test x"$tgt_plugin" = x; then
15410      # Not configuring libgomp for this offload target if we're not building
15411      # the corresponding offload plugin.
15412      continue
15413    elif test x"$offload_plugins" = x; then
15414      offload_plugins=$tgt_plugin
15415      offload_targets=$tgt
15416    else
15417      offload_plugins=$offload_plugins,$tgt_plugin
15418      offload_targets=$offload_targets,$tgt
15419    fi
15420    # Configure additional search paths.
15421    if test x"$tgt_dir" != x; then
15422      offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15423      offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15424    else
15425      offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15426      offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15427    fi
15428  done
15429fi
15430
15431cat >>confdefs.h <<_ACEOF
15432#define OFFLOAD_PLUGINS "$offload_plugins"
15433_ACEOF
15434
15435 if test $PLUGIN_NVPTX = 1; then
15436  PLUGIN_NVPTX_TRUE=
15437  PLUGIN_NVPTX_FALSE='#'
15438else
15439  PLUGIN_NVPTX_TRUE='#'
15440  PLUGIN_NVPTX_FALSE=
15441fi
15442
15443
15444cat >>confdefs.h <<_ACEOF
15445#define PLUGIN_NVPTX $PLUGIN_NVPTX
15446_ACEOF
15447
15448
15449cat >>confdefs.h <<_ACEOF
15450#define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15451_ACEOF
15452
15453 if test $PLUGIN_GCN = 1; then
15454  PLUGIN_GCN_TRUE=
15455  PLUGIN_GCN_FALSE='#'
15456else
15457  PLUGIN_GCN_TRUE='#'
15458  PLUGIN_GCN_FALSE=
15459fi
15460
15461
15462cat >>confdefs.h <<_ACEOF
15463#define PLUGIN_GCN $PLUGIN_GCN
15464_ACEOF
15465
15466
15467
15468# Check for functions needed.
15469for ac_func in getloadavg clock_gettime strtoull
15470do :
15471  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15473if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15474  cat >>confdefs.h <<_ACEOF
15475#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15476_ACEOF
15477
15478fi
15479done
15480
15481for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15482do :
15483  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15484ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15485if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15486  cat >>confdefs.h <<_ACEOF
15487#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15488_ACEOF
15489
15490fi
15491done
15492
15493
15494# Check for broken semaphore implementation on darwin.
15495# sem_init returns: sem_init error: Function not implemented.
15496case "$host" in
15497  *-darwin*)
15498
15499$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15500
15501    ;;
15502esac
15503
15504# RTEMS specific checks
15505case "$host" in
15506  *-*-rtems*)
15507    ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15508"
15509if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15510
15511cat >>confdefs.h <<_ACEOF
15512#define HAVE_STRUCT__MUTEX_CONTROL 1
15513_ACEOF
15514
15515
15516fi
15517
15518    ;;
15519esac
15520
15521 # Check whether --enable-linux-futex was given.
15522if test "${enable_linux_futex+set}" = set; then :
15523  enableval=$enable_linux_futex;
15524      case "$enableval" in
15525       yes|no|default) ;;
15526       *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15527                          esac
15528
15529else
15530  enable_linux_futex=default
15531fi
15532
15533
15534case "$target" in
15535  *-linux* | *-uclinux*)
15536    case "$enable_linux_futex" in
15537      default)
15538	# If headers don't have gettid/futex syscalls definition, then
15539	# default to no, otherwise there will be compile time failures.
15540	# Otherwise, default to yes.  If we don't detect we are
15541	# compiled/linked against NPTL and not cross-compiling, check
15542	# if programs are run by default against NPTL and if not, issue
15543	# a warning.
15544	enable_linux_futex=no
15545	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h.  */
15547#include <sys/syscall.h>
15548	   #include <unistd.h>
15549	   int lk;
15550int
15551main ()
15552{
15553syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558if ac_fn_c_try_link "$LINENO"; then :
15559  save_LIBS="$LIBS"
15560	   LIBS="-lpthread $LIBS"
15561	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h.  */
15563#ifndef _GNU_SOURCE
15564	     #define _GNU_SOURCE 1
15565	     #endif
15566	     #include <pthread.h>
15567	     pthread_t th; void *status;
15568int
15569main ()
15570{
15571pthread_tryjoin_np (th, &status);
15572  ;
15573  return 0;
15574}
15575_ACEOF
15576if ac_fn_c_try_link "$LINENO"; then :
15577  enable_linux_futex=yes
15578else
15579  if test x$cross_compiling = xno; then
15580	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15581		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15582		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15583If so, please configure with --disable-linux-futex" >&5
15584$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15585If so, please configure with --disable-linux-futex" >&2;}
15586	       fi
15587	     fi
15588	     enable_linux_futex=yes
15589fi
15590rm -f core conftest.err conftest.$ac_objext \
15591    conftest$ac_exeext conftest.$ac_ext
15592	   LIBS="$save_LIBS"
15593fi
15594rm -f core conftest.err conftest.$ac_objext \
15595    conftest$ac_exeext conftest.$ac_ext
15596	;;
15597      yes)
15598	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599/* end confdefs.h.  */
15600#include <sys/syscall.h>
15601	   #include <unistd.h>
15602	   int lk;
15603int
15604main ()
15605{
15606syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15607  ;
15608  return 0;
15609}
15610_ACEOF
15611if ac_fn_c_try_link "$LINENO"; then :
15612
15613else
15614  as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15615fi
15616rm -f core conftest.err conftest.$ac_objext \
15617    conftest$ac_exeext conftest.$ac_ext
15618	;;
15619    esac
15620    ;;
15621  *)
15622    enable_linux_futex=no
15623    ;;
15624esac
15625if test x$enable_linux_futex = xyes; then
15626  :
15627fi
15628
15629
15630# Check for pthread_{,attr_}[sg]etaffinity_np.
15631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633#define _GNU_SOURCE
15634   #include <pthread.h>
15635int
15636main ()
15637{
15638cpu_set_t cpuset;
15639   pthread_attr_t attr;
15640   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15641   if (CPU_ISSET (0, &cpuset))
15642     CPU_SET (1, &cpuset);
15643   else
15644     CPU_ZERO (&cpuset);
15645   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15646   pthread_attr_init (&attr);
15647   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15648   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15649  ;
15650  return 0;
15651}
15652_ACEOF
15653if ac_fn_c_try_link "$LINENO"; then :
15654
15655$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15656
15657fi
15658rm -f core conftest.err conftest.$ac_objext \
15659    conftest$ac_exeext conftest.$ac_ext
15660
15661# At least for glibc, clock_gettime is in librt.  But don't pull that
15662# in if it still doesn't give us the function we want.
15663if test $ac_cv_func_clock_gettime = no; then
15664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15665$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15666if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15667  $as_echo_n "(cached) " >&6
15668else
15669  ac_check_lib_save_LIBS=$LIBS
15670LIBS="-lrt  $LIBS"
15671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h.  */
15673
15674/* Override any GCC internal prototype to avoid an error.
15675   Use char because int might match the return type of a GCC
15676   builtin and then its argument prototype would still apply.  */
15677#ifdef __cplusplus
15678extern "C"
15679#endif
15680char clock_gettime ();
15681int
15682main ()
15683{
15684return clock_gettime ();
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_link "$LINENO"; then :
15690  ac_cv_lib_rt_clock_gettime=yes
15691else
15692  ac_cv_lib_rt_clock_gettime=no
15693fi
15694rm -f core conftest.err conftest.$ac_objext \
15695    conftest$ac_exeext conftest.$ac_ext
15696LIBS=$ac_check_lib_save_LIBS
15697fi
15698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15699$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15700if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15701  LIBS="-lrt $LIBS"
15702
15703$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15704
15705fi
15706
15707fi
15708
15709# Check for uname.
15710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712#include <string.h>
15713   #include <stdlib.h>
15714   #include <sys/utsname.h>
15715int
15716main ()
15717{
15718struct utsname buf;
15719   volatile size_t len = 0;
15720   if (!uname (buf))
15721     len = strlen (buf.nodename);
15722  ;
15723  return 0;
15724}
15725_ACEOF
15726if ac_fn_c_try_compile "$LINENO"; then :
15727
15728$as_echo "#define HAVE_UNAME 1" >>confdefs.h
15729
15730fi
15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732
15733# Check for gethostname.
15734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736#include <unistd.h>
15737int
15738main ()
15739{
15740
15741   char buf[256];
15742   if (gethostname (buf, sizeof (buf) - 1) == 0)
15743     buf[255] = '\0';
15744
15745  ;
15746  return 0;
15747}
15748_ACEOF
15749if ac_fn_c_try_compile "$LINENO"; then :
15750
15751$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15752
15753fi
15754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755
15756# Check for getpid.
15757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759#include <unistd.h>
15760int
15761main ()
15762{
15763int pid = getpid ();
15764  ;
15765  return 0;
15766}
15767_ACEOF
15768if ac_fn_c_try_compile "$LINENO"; then :
15769
15770$as_echo "#define HAVE_GETPID 1" >>confdefs.h
15771
15772fi
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774
15775# See if we support thread-local storage.
15776
15777
15778   # Check whether --enable-tls was given.
15779if test "${enable_tls+set}" = set; then :
15780  enableval=$enable_tls;
15781      case "$enableval" in
15782       yes|no) ;;
15783       *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15784      esac
15785
15786else
15787  enable_tls=yes
15788fi
15789
15790
15791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15792$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15793if ${gcc_cv_have_tls+:} false; then :
15794  $as_echo_n "(cached) " >&6
15795else
15796
15797    if test "$cross_compiling" = yes; then :
15798                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h.  */
15800__thread int a; int b; int main() { return a = b; }
15801_ACEOF
15802if ac_fn_c_try_link "$LINENO"; then :
15803  chktls_save_LDFLAGS="$LDFLAGS"
15804	  	  	  case $host in
15805	    *-*-linux* | -*-uclinuxfdpic*)
15806	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15807	      ;;
15808	  esac
15809	  chktls_save_CFLAGS="$CFLAGS"
15810	  CFLAGS="-fPIC $CFLAGS"
15811	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812/* end confdefs.h.  */
15813int f() { return 0; }
15814_ACEOF
15815if ac_fn_c_try_link "$LINENO"; then :
15816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817/* end confdefs.h.  */
15818__thread int a; int b; int f() { return a = b; }
15819_ACEOF
15820if ac_fn_c_try_link "$LINENO"; then :
15821  gcc_cv_have_tls=yes
15822else
15823  gcc_cv_have_tls=no
15824fi
15825rm -f core conftest.err conftest.$ac_objext \
15826    conftest$ac_exeext conftest.$ac_ext
15827else
15828  gcc_cv_have_tls=yes
15829fi
15830rm -f core conftest.err conftest.$ac_objext \
15831    conftest$ac_exeext conftest.$ac_ext
15832	  CFLAGS="$chktls_save_CFLAGS"
15833	  LDFLAGS="$chktls_save_LDFLAGS"
15834else
15835  gcc_cv_have_tls=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext \
15838    conftest$ac_exeext conftest.$ac_ext
15839
15840
15841else
15842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844__thread int a; int b; int main() { return a = b; }
15845_ACEOF
15846if ac_fn_c_try_run "$LINENO"; then :
15847                      chktls_save_LDFLAGS="$LDFLAGS"
15848      LDFLAGS="-static $LDFLAGS"
15849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851int main() { return 0; }
15852_ACEOF
15853if ac_fn_c_try_link "$LINENO"; then :
15854  if test "$cross_compiling" = yes; then :
15855  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15857as_fn_error $? "cannot run test program while cross compiling
15858See \`config.log' for more details" "$LINENO" 5; }
15859else
15860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861/* end confdefs.h.  */
15862__thread int a; int b; int main() { return a = b; }
15863_ACEOF
15864if ac_fn_c_try_run "$LINENO"; then :
15865  gcc_cv_have_tls=yes
15866else
15867  gcc_cv_have_tls=no
15868fi
15869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15870  conftest.$ac_objext conftest.beam conftest.$ac_ext
15871fi
15872
15873else
15874  gcc_cv_have_tls=yes
15875fi
15876rm -f core conftest.err conftest.$ac_objext \
15877    conftest$ac_exeext conftest.$ac_ext
15878      LDFLAGS="$chktls_save_LDFLAGS"
15879      if test $gcc_cv_have_tls = yes; then
15880						chktls_save_CFLAGS="$CFLAGS"
15881	thread_CFLAGS=failed
15882	for flag in '' '-pthread' '-lpthread'; do
15883	  CFLAGS="$flag $chktls_save_CFLAGS"
15884	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885/* end confdefs.h.  */
15886#include <pthread.h>
15887		void *g(void *d) { return NULL; }
15888int
15889main ()
15890{
15891pthread_t t; pthread_create(&t,NULL,g,NULL);
15892  ;
15893  return 0;
15894}
15895_ACEOF
15896if ac_fn_c_try_link "$LINENO"; then :
15897  thread_CFLAGS="$flag"
15898fi
15899rm -f core conftest.err conftest.$ac_objext \
15900    conftest$ac_exeext conftest.$ac_ext
15901	  if test "X$thread_CFLAGS" != Xfailed; then
15902	    break
15903	  fi
15904	done
15905	CFLAGS="$chktls_save_CFLAGS"
15906	if test "X$thread_CFLAGS" != Xfailed; then
15907	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15908 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
15909  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15911as_fn_error $? "cannot run test program while cross compiling
15912See \`config.log' for more details" "$LINENO" 5; }
15913else
15914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h.  */
15916#include <pthread.h>
15917		__thread int a;
15918		static int *volatile a_in_other_thread;
15919		static void *
15920		thread_func (void *arg)
15921		{
15922		  a_in_other_thread = &a;
15923		  return (void *)0;
15924		}
15925int
15926main ()
15927{
15928pthread_t thread;
15929		void *thread_retval;
15930		int *volatile a_in_main_thread;
15931		a_in_main_thread = &a;
15932		if (pthread_create (&thread, (pthread_attr_t *)0,
15933				    thread_func, (void *)0))
15934		  return 0;
15935		if (pthread_join (thread, &thread_retval))
15936		  return 0;
15937		return (a_in_other_thread == a_in_main_thread);
15938  ;
15939  return 0;
15940}
15941_ACEOF
15942if ac_fn_c_try_run "$LINENO"; then :
15943  gcc_cv_have_tls=yes
15944else
15945  gcc_cv_have_tls=no
15946fi
15947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948  conftest.$ac_objext conftest.beam conftest.$ac_ext
15949fi
15950
15951	  CFLAGS="$chktls_save_CFLAGS"
15952	fi
15953      fi
15954else
15955  gcc_cv_have_tls=no
15956fi
15957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15958  conftest.$ac_objext conftest.beam conftest.$ac_ext
15959fi
15960
15961fi
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15963$as_echo "$gcc_cv_have_tls" >&6; }
15964  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15965
15966$as_echo "#define HAVE_TLS 1" >>confdefs.h
15967
15968  fi
15969
15970# See if we have emulated thread-local storage.
15971
15972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15973$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15974if ${gcc_cv_use_emutls+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977
15978    gcc_cv_use_emutls=no
15979    echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15980    if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15981  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15982  (eval $ac_try) 2>&5
15983  ac_status=$?
15984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985  test $ac_status = 0; }; }; then
15986      if grep __emutls_get_address conftest.s > /dev/null; then
15987	gcc_cv_use_emutls=yes
15988      fi
15989    fi
15990    rm -f conftest.*
15991
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15994$as_echo "$gcc_cv_use_emutls" >&6; }
15995  if test "$gcc_cv_use_emutls" = "yes" ; then
15996
15997$as_echo "#define USE_EMUTLS 1" >>confdefs.h
15998
15999  fi
16000
16001# See what sort of export controls are available.
16002
16003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16004$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16005if ${libgomp_cv_have_attribute_visibility+:} false; then :
16006  $as_echo_n "(cached) " >&6
16007else
16008
16009  save_CFLAGS="$CFLAGS"
16010  CFLAGS="$CFLAGS -Werror"
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013void __attribute__((visibility("hidden"))) foo(void) { }
16014int
16015main ()
16016{
16017
16018  ;
16019  return 0;
16020}
16021_ACEOF
16022if ac_fn_c_try_compile "$LINENO"; then :
16023  libgomp_cv_have_attribute_visibility=yes
16024else
16025  libgomp_cv_have_attribute_visibility=no
16026fi
16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028  CFLAGS="$save_CFLAGS"
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16031$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16032  if test $libgomp_cv_have_attribute_visibility = yes; then
16033
16034$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16035
16036  fi
16037
16038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16039$as_echo_n "checking whether the target supports dllexport... " >&6; }
16040if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16041  $as_echo_n "(cached) " >&6
16042else
16043
16044  save_CFLAGS="$CFLAGS"
16045  CFLAGS="$CFLAGS -Werror"
16046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h.  */
16048void __attribute__((dllexport)) foo(void) { }
16049int
16050main ()
16051{
16052
16053  ;
16054  return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_compile "$LINENO"; then :
16058  libgomp_cv_have_attribute_dllexport=yes
16059else
16060  libgomp_cv_have_attribute_dllexport=no
16061fi
16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063  CFLAGS="$save_CFLAGS"
16064fi
16065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16066$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16067  if test $libgomp_cv_have_attribute_dllexport = yes; then
16068
16069$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16070
16071  fi
16072
16073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16074$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16075if ${libgomp_cv_have_attribute_alias+:} false; then :
16076  $as_echo_n "(cached) " >&6
16077else
16078
16079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080/* end confdefs.h.  */
16081
16082void foo(void) { }
16083extern void bar(void) __attribute__((alias("foo")));
16084int
16085main ()
16086{
16087bar();
16088  ;
16089  return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then :
16093  libgomp_cv_have_attribute_alias=yes
16094else
16095  libgomp_cv_have_attribute_alias=no
16096fi
16097rm -f core conftest.err conftest.$ac_objext \
16098    conftest$ac_exeext conftest.$ac_ext
16099fi
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16101$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16102  if test $libgomp_cv_have_attribute_alias = yes; then
16103
16104$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16105
16106  fi
16107
16108
16109# Check whether --with-gnu-ld was given.
16110if test "${with_gnu_ld+set}" = set; then :
16111  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16112else
16113  with_gnu_ld=no
16114fi
16115
16116ac_prog=ld
16117if test "$GCC" = yes; then
16118  # Check if gcc -print-prog-name=ld gives a path.
16119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16120$as_echo_n "checking for ld used by $CC... " >&6; }
16121  case $host in
16122  *-*-mingw*)
16123    # gcc leaves a trailing carriage return which upsets mingw
16124    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16125  *)
16126    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16127  esac
16128  case $ac_prog in
16129    # Accept absolute paths.
16130    [\\/]* | ?:[\\/]*)
16131      re_direlt='/[^/][^/]*/\.\./'
16132      # Canonicalize the pathname of ld
16133      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16134      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16135	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16136      done
16137      test -z "$LD" && LD="$ac_prog"
16138      ;;
16139  "")
16140    # If it fails, then pretend we aren't using GCC.
16141    ac_prog=ld
16142    ;;
16143  *)
16144    # If it is relative, then search for the first ld in PATH.
16145    with_gnu_ld=unknown
16146    ;;
16147  esac
16148elif test "$with_gnu_ld" = yes; then
16149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16150$as_echo_n "checking for GNU ld... " >&6; }
16151else
16152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16153$as_echo_n "checking for non-GNU ld... " >&6; }
16154fi
16155if ${lt_cv_path_LD+:} false; then :
16156  $as_echo_n "(cached) " >&6
16157else
16158  if test -z "$LD"; then
16159  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16160  for ac_dir in $PATH; do
16161    IFS="$lt_save_ifs"
16162    test -z "$ac_dir" && ac_dir=.
16163    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16164      lt_cv_path_LD="$ac_dir/$ac_prog"
16165      # Check to see if the program is GNU ld.  I'd rather use --version,
16166      # but apparently some variants of GNU ld only accept -v.
16167      # Break only if it was the GNU/non-GNU ld that we prefer.
16168      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16169      *GNU* | *'with BFD'*)
16170	test "$with_gnu_ld" != no && break
16171	;;
16172      *)
16173	test "$with_gnu_ld" != yes && break
16174	;;
16175      esac
16176    fi
16177  done
16178  IFS="$lt_save_ifs"
16179else
16180  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16181fi
16182fi
16183
16184LD="$lt_cv_path_LD"
16185if test -n "$LD"; then
16186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16187$as_echo "$LD" >&6; }
16188else
16189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190$as_echo "no" >&6; }
16191fi
16192test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16194$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16195if ${lt_cv_prog_gnu_ld+:} false; then :
16196  $as_echo_n "(cached) " >&6
16197else
16198  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16199case `$LD -v 2>&1 </dev/null` in
16200*GNU* | *'with BFD'*)
16201  lt_cv_prog_gnu_ld=yes
16202  ;;
16203*)
16204  lt_cv_prog_gnu_ld=no
16205  ;;
16206esac
16207fi
16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16209$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16210with_gnu_ld=$lt_cv_prog_gnu_ld
16211
16212
16213
16214
16215
16216
16217
16218  # If we're not using GNU ld, then there's no point in even trying these
16219  # tests.  Check for that first.  We should have already tested for gld
16220  # by now (in libtool), but require it now just to be safe...
16221  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16222  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16223
16224
16225
16226  # The name set by libtool depends on the version of libtool.  Shame on us
16227  # for depending on an impl detail, but c'est la vie.  Older versions used
16228  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16229  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16230  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16231  # set (hence we're using an older libtool), then set it.
16232  if test x${with_gnu_ld+set} != xset; then
16233    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16234      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16235      with_gnu_ld=no
16236    else
16237      with_gnu_ld=$ac_cv_prog_gnu_ld
16238    fi
16239  fi
16240
16241  # Start by getting the version number.  I think the libtool test already
16242  # does some of this, but throws away the result.
16243  libgomp_ld_is_gold=no
16244  libgomp_ld_is_mold=no
16245  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16246    libgomp_ld_is_gold=yes
16247  elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
16248    libgomp_ld_is_mold=yes
16249  fi
16250
16251  ldver=`$LD --version 2>/dev/null |
16252         sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16253
16254  libgomp_gnu_ld_version=`echo $ldver | \
16255         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16256
16257  # Set --gc-sections.
16258  if test "$with_gnu_ld" = "notbroken"; then
16259    # GNU ld it is!  Joy and bunny rabbits!
16260
16261    # All these tests are for C++; save the language and the compiler flags.
16262    # Need to do this so that g++ won't try to link in libstdc++
16263    ac_test_CFLAGS="${CFLAGS+set}"
16264    ac_save_CFLAGS="$CFLAGS"
16265    CFLAGS='-x c++  -Wl,--gc-sections'
16266
16267    # Check for -Wl,--gc-sections
16268    # XXX This test is broken at the moment, as symbols required for linking
16269    # are now in libsupc++ (not built yet).  In addition, this test has
16270    # cored on solaris in the past.  In addition, --gc-sections doesn't
16271    # really work at the moment (keeps on discarding used sections, first
16272    # .eh_frame and now some of the glibc sections for iconv).
16273    # Bzzzzt.  Thanks for playing, maybe next time.
16274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16275$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16276    if test "$cross_compiling" = yes; then :
16277  ac_sectionLDflags=yes
16278else
16279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281
16282     int main(void)
16283     {
16284       try { throw 1; }
16285       catch (...) { };
16286       return 0;
16287     }
16288
16289_ACEOF
16290if ac_fn_c_try_run "$LINENO"; then :
16291  ac_sectionLDflags=yes
16292else
16293  ac_sectionLDflags=no
16294fi
16295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16296  conftest.$ac_objext conftest.beam conftest.$ac_ext
16297fi
16298
16299    if test "$ac_test_CFLAGS" = set; then
16300      CFLAGS="$ac_save_CFLAGS"
16301    else
16302      # this is the suspicious part
16303      CFLAGS=''
16304    fi
16305    if test "$ac_sectionLDflags" = "yes"; then
16306      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16307    fi
16308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16309$as_echo "$ac_sectionLDflags" >&6; }
16310  fi
16311
16312  # Set linker optimization flags.
16313  if test x"$with_gnu_ld" = x"yes"; then
16314    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16315  fi
16316
16317
16318
16319
16320
16321
16322 # Check whether --enable-symvers was given.
16323if test "${enable_symvers+set}" = set; then :
16324  enableval=$enable_symvers;
16325      case "$enableval" in
16326       yes|no|gnu*|sun) ;;
16327       *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16328                          esac
16329
16330else
16331  enable_symvers=yes
16332fi
16333
16334
16335
16336# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16337# don't know enough about $LD to do tricks...
16338
16339
16340# Turn a 'yes' into a suitable default.
16341if test x$enable_symvers = xyes ; then
16342  # FIXME  The following test is too strict, in theory.
16343  if test $enable_shared = no || test "x$LD" = x; then
16344    enable_symvers=no
16345  else
16346    if test $with_gnu_ld = yes ; then
16347      enable_symvers=gnu
16348    else
16349      case ${target_os} in
16350        # Sun symbol versioning exists since Solaris 2.5.
16351        solaris2.[5-9]* | solaris2.1[0-9]*)
16352          enable_symvers=sun ;;
16353        *)
16354          enable_symvers=no ;;
16355      esac
16356    fi
16357  fi
16358fi
16359
16360# Check if 'sun' was requested on non-Solaris 2 platforms.
16361if test x$enable_symvers = xsun ; then
16362  case ${target_os} in
16363    solaris2*)
16364      # All fine.
16365      ;;
16366    *)
16367      # Unlikely to work.
16368      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16369$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16370      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16371$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16372      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16373$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16374      enable_symvers=no
16375      ;;
16376  esac
16377fi
16378
16379# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16380if test $enable_symvers != no; then
16381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16382$as_echo_n "checking for shared libgcc... " >&6; }
16383  ac_save_CFLAGS="$CFLAGS"
16384  CFLAGS=' -lgcc_s'
16385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h.  */
16387
16388int
16389main ()
16390{
16391return 0;
16392  ;
16393  return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_link "$LINENO"; then :
16397  libgomp_shared_libgcc=yes
16398else
16399  libgomp_shared_libgcc=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext \
16402    conftest$ac_exeext conftest.$ac_ext
16403  CFLAGS="$ac_save_CFLAGS"
16404  if test $libgomp_shared_libgcc = no; then
16405    cat > conftest.c <<EOF
16406int main (void) { return 0; }
16407EOF
16408    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16409			     -shared -shared-libgcc -o conftest.so \
16410			     conftest.c -v 2>&1 >/dev/null \
16411			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16412    rm -f conftest.c conftest.so
16413    if test x${libgomp_libgcc_s_suffix+set} = xset; then
16414      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16415      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416/* end confdefs.h.  */
16417
16418int
16419main ()
16420{
16421return 0;
16422  ;
16423  return 0;
16424}
16425_ACEOF
16426if ac_fn_c_try_link "$LINENO"; then :
16427  libgomp_shared_libgcc=yes
16428fi
16429rm -f core conftest.err conftest.$ac_objext \
16430    conftest$ac_exeext conftest.$ac_ext
16431      CFLAGS="$ac_save_CFLAGS"
16432    fi
16433  fi
16434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16435$as_echo "$libgomp_shared_libgcc" >&6; }
16436fi
16437
16438# For GNU ld, we need at least this version.  The format is described in
16439# LIBGOMP_CHECK_LINKER_FEATURES above.
16440libgomp_min_gnu_ld_version=21400
16441# XXXXXXXXXXX libgomp_gnu_ld_version=21390
16442
16443# Check to see if unspecified "yes" value can win, given results above.
16444# Change "yes" into either "no" or a style name.
16445if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16446  if test $with_gnu_ld = yes; then
16447    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16448      enable_symvers=gnu
16449    elif test $libgomp_ld_is_gold = yes ; then
16450      enable_symvers=gnu
16451    elif test $libgomp_ld_is_mold = yes ; then
16452      enable_symvers=gnu
16453    else
16454      # The right tools, the right setup, but too old.  Fallbacks?
16455      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16456$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16457      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16458$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16459      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16460$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16461      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16462$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16463      if test $libgomp_gnu_ld_version -ge 21200 ; then
16464        # Globbing fix is present, proper block support is not.
16465                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16466$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16467        enable_symvers=no
16468      else
16469        # 2.11 or older.
16470        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16471$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16472        enable_symvers=no
16473      fi
16474    fi
16475  elif test $enable_symvers = sun; then
16476    : All interesting versions of Sun ld support sun style symbol versioning.
16477  else
16478    # just fail for now
16479    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16480$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16481    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16482$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16483    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16484$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16485    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16486$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16487    enable_symvers=no
16488  fi
16489fi
16490
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16492$as_echo_n "checking whether the target supports .symver directive... " >&6; }
16493if ${libgomp_cv_have_as_symver_directive+:} false; then :
16494  $as_echo_n "(cached) " >&6
16495else
16496
16497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h.  */
16499void foo (void); __asm (".symver foo, bar@SYMVER");
16500int
16501main ()
16502{
16503
16504  ;
16505  return 0;
16506}
16507_ACEOF
16508if ac_fn_c_try_compile "$LINENO"; then :
16509  libgomp_cv_have_as_symver_directive=yes
16510else
16511  libgomp_cv_have_as_symver_directive=no
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514fi
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16516$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16517if test $libgomp_cv_have_as_symver_directive = yes; then
16518
16519$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16520
16521fi
16522
16523 if test $enable_symvers != no; then
16524  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16525  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16526else
16527  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16528  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16529fi
16530
16531 if test $enable_symvers = gnu; then
16532  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16533  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16534else
16535  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16536  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16537fi
16538
16539 if test $enable_symvers = sun; then
16540  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16541  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16542else
16543  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16544  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16545fi
16546
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16548$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16549
16550if test $enable_symvers != no ; then
16551   case ${target_os} in
16552     # The Solaris 2 runtime linker doesn't support the GNU extension of
16553     # binding the same symbol to different versions
16554     solaris2*)
16555       ;;
16556     # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16557     *)
16558
16559$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16560
16561       ;;
16562    esac
16563fi
16564
16565
16566if test $enable_symvers = gnu; then
16567
16568$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16569
16570fi
16571
16572# Determine cpu count to limit testsuite parallelism.
16573                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16574$as_echo_n "checking the number of available CPUs... " >&6; }
16575      CPU_COUNT="0"
16576
16577      # Try generic methods
16578
16579      # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16580      # 'NPROCESSORS_ONLN' are platform-specific
16581      command -v getconf >/dev/null 2>&1 && \
16582        CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16583      if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16584  : # empty
16585else
16586          # 'nproc' is part of GNU Coreutils and is widely available
16587        CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16588
16589fi
16590      if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16591  : # empty
16592else
16593          # Try platform-specific preferred methods
16594        case $host_os in #(
16595            *linux*) :
16596    CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16597            *darwin*) :
16598    CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16599            freebsd*) :
16600    command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16601            netbsd*) :
16602    command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16603            solaris*) :
16604    command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
16605            mingw*) :
16606    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16607            msys*) :
16608    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16609            cygwin*) :
16610    CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0"         ;; #(
16611  *) :
16612     ;;
16613esac
16614fi
16615      if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16616  : # empty
16617else
16618          # Try less preferred generic method
16619        # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16620        CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16621
16622fi
16623      if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16624  : # empty
16625else
16626        # Try platform-specific fallback methods
16627      # They can be less accurate and slower then preferred methods
16628        case $host_os in #(
16629            *linux*) :
16630    CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16631            *darwin*) :
16632    CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16633            freebsd*) :
16634    CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16635            netbsd*) :
16636    CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16637                           CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16638            solaris*) :
16639    command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16640                           CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16641            mingw*) :
16642    if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16643                          : # empty
16644else
16645  test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16646fi ;; #(
16647            msys*) :
16648    test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16649            cygwin*) :
16650    test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"         ;; #(
16651  *) :
16652     ;;
16653esac
16654fi
16655      if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16656            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16657$as_echo "$CPU_COUNT" >&6; }
16658
16659else
16660                        CPU_COUNT="1"
16661            { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16662$as_echo "unable to detect (assuming 1)" >&6; }
16663
16664fi
16665
16666
16667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5
16668$as_echo "$as_me: checking for flock implementation" >&6;}
16669for ac_prog in flock
16670do
16671  # Extract the first word of "$ac_prog", so it can be a program name with args.
16672set dummy $ac_prog; ac_word=$2
16673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16674$as_echo_n "checking for $ac_word... " >&6; }
16675if ${ac_cv_prog_FLOCK+:} false; then :
16676  $as_echo_n "(cached) " >&6
16677else
16678  if test -n "$FLOCK"; then
16679  ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16680else
16681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682for as_dir in $PATH
16683do
16684  IFS=$as_save_IFS
16685  test -z "$as_dir" && as_dir=.
16686    for ac_exec_ext in '' $ac_executable_extensions; do
16687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688    ac_cv_prog_FLOCK="$ac_prog"
16689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16690    break 2
16691  fi
16692done
16693  done
16694IFS=$as_save_IFS
16695
16696fi
16697fi
16698FLOCK=$ac_cv_prog_FLOCK
16699if test -n "$FLOCK"; then
16700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16701$as_echo "$FLOCK" >&6; }
16702else
16703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704$as_echo "no" >&6; }
16705fi
16706
16707
16708  test -n "$FLOCK" && break
16709done
16710
16711# Fallback if 'perl' is available.
16712if test -z "$FLOCK"; then
16713  # These need to be absolute paths, yet at the same time need to
16714  # canonicalize only relative paths, because then amd will not unmount
16715  # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16716  case $srcdir in
16717    [\\/$]* | ?:[\\/]*) libgomp_abs_srcdir=${srcdir} ;;
16718    *) libgomp_abs_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16719  esac
16720  # Extract the first word of "perl", so it can be a program name with args.
16721set dummy perl; ac_word=$2
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16723$as_echo_n "checking for $ac_word... " >&6; }
16724if ${ac_cv_prog_FLOCK+:} false; then :
16725  $as_echo_n "(cached) " >&6
16726else
16727  if test -n "$FLOCK"; then
16728  ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16729else
16730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731for as_dir in $PATH
16732do
16733  IFS=$as_save_IFS
16734  test -z "$as_dir" && as_dir=.
16735    for ac_exec_ext in '' $ac_executable_extensions; do
16736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16737    ac_cv_prog_FLOCK="$libgomp_abs_srcdir/testsuite/flock"
16738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16739    break 2
16740  fi
16741done
16742  done
16743IFS=$as_save_IFS
16744
16745fi
16746fi
16747FLOCK=$ac_cv_prog_FLOCK
16748if test -n "$FLOCK"; then
16749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16750$as_echo "$FLOCK" >&6; }
16751else
16752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; }
16754fi
16755
16756
16757fi
16758
16759# Get target configury.
16760. ${srcdir}/configure.tgt
16761CFLAGS="$save_CFLAGS $XCFLAGS"
16762
16763# Check for __sync_val_compare_and_swap, but only after the target has
16764# had a chance to set XCFLAGS.
16765
16766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16767$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16768if ${libgomp_cv_have_sync_builtins+:} false; then :
16769  $as_echo_n "(cached) " >&6
16770else
16771
16772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773/* end confdefs.h.  */
16774
16775int
16776main ()
16777{
16778int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16779  ;
16780  return 0;
16781}
16782_ACEOF
16783if ac_fn_c_try_link "$LINENO"; then :
16784  libgomp_cv_have_sync_builtins=yes
16785else
16786  libgomp_cv_have_sync_builtins=no
16787fi
16788rm -f core conftest.err conftest.$ac_objext \
16789    conftest$ac_exeext conftest.$ac_ext
16790fi
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16792$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16793  if test $libgomp_cv_have_sync_builtins = yes; then
16794
16795$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16796
16797  fi
16798
16799XCFLAGS="$XCFLAGS$XPCFLAGS"
16800
16801# Add CET specific flags if CET is enabled
16802 # Check whether --enable-cet was given.
16803if test "${enable_cet+set}" = set; then :
16804  enableval=$enable_cet;
16805      case "$enableval" in
16806       yes|no|auto) ;;
16807       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16808                          esac
16809
16810else
16811  enable_cet=auto
16812fi
16813
16814
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16816$as_echo_n "checking for CET support... " >&6; }
16817
16818# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16819case "$host" in
16820  i[34567]86-*-linux* | x86_64-*-linux*)
16821    case "$enable_cet" in
16822      auto)
16823	# Check if target supports multi-byte NOPs
16824	# and if compiler and assembler support CET insn.
16825	cet_save_CFLAGS="$CFLAGS"
16826	CFLAGS="$CFLAGS -fcf-protection"
16827	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828/* end confdefs.h.  */
16829
16830int
16831main ()
16832{
16833
16834#if !defined(__SSE2__)
16835#error target does not support multi-byte NOPs
16836#else
16837asm ("setssbsy");
16838#endif
16839
16840  ;
16841  return 0;
16842}
16843_ACEOF
16844if ac_fn_c_try_compile "$LINENO"; then :
16845  enable_cet=yes
16846else
16847  enable_cet=no
16848fi
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850	CFLAGS="$cet_save_CFLAGS"
16851	;;
16852      yes)
16853	# Check if assembler supports CET.
16854	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856
16857int
16858main ()
16859{
16860asm ("setssbsy");
16861  ;
16862  return 0;
16863}
16864_ACEOF
16865if ac_fn_c_try_compile "$LINENO"; then :
16866
16867else
16868  as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16869fi
16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871	;;
16872    esac
16873    ;;
16874  *)
16875    enable_cet=no
16876    ;;
16877esac
16878if test x$enable_cet = xyes; then
16879  CET_FLAGS="-fcf-protection -mshstk"
16880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16881$as_echo "yes" >&6; }
16882else
16883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16884$as_echo "no" >&6; }
16885fi
16886
16887XCFLAGS="$XCFLAGS $CET_FLAGS"
16888FCFLAGS="$FCFLAGS $CET_FLAGS"
16889
16890
16891
16892
16893
16894# Conditionalize the makefile for this target machine.
16895tmake_file_=
16896for f in ${tmake_file}
16897do
16898	if test -f ${srcdir}/config/$f
16899	then
16900		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16901	fi
16902done
16903tmake_file="${tmake_file_}"
16904
16905
16906# Cleanup and exit.
16907CFLAGS="$save_CFLAGS"
16908cat >confcache <<\_ACEOF
16909# This file is a shell script that caches the results of configure
16910# tests run on this system so they can be shared between configure
16911# scripts and configure runs, see configure's option --config-cache.
16912# It is not useful on other systems.  If it contains results you don't
16913# want to keep, you may remove or edit it.
16914#
16915# config.status only pays attention to the cache file if you give it
16916# the --recheck option to rerun configure.
16917#
16918# `ac_cv_env_foo' variables (set or unset) will be overridden when
16919# loading this file, other *unset* `ac_cv_foo' will be assigned the
16920# following values.
16921
16922_ACEOF
16923
16924# The following way of writing the cache mishandles newlines in values,
16925# but we know of no workaround that is simple, portable, and efficient.
16926# So, we kill variables containing newlines.
16927# Ultrix sh set writes to stderr and can't be redirected directly,
16928# and sets the high bit in the cache file unless we assign to the vars.
16929(
16930  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16931    eval ac_val=\$$ac_var
16932    case $ac_val in #(
16933    *${as_nl}*)
16934      case $ac_var in #(
16935      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16937      esac
16938      case $ac_var in #(
16939      _ | IFS | as_nl) ;; #(
16940      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16941      *) { eval $ac_var=; unset $ac_var;} ;;
16942      esac ;;
16943    esac
16944  done
16945
16946  (set) 2>&1 |
16947    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16948    *${as_nl}ac_space=\ *)
16949      # `set' does not quote correctly, so add quotes: double-quote
16950      # substitution turns \\\\ into \\, and sed turns \\ into \.
16951      sed -n \
16952	"s/'/'\\\\''/g;
16953	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16954      ;; #(
16955    *)
16956      # `set' quotes correctly as required by POSIX, so do not add quotes.
16957      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16958      ;;
16959    esac |
16960    sort
16961) |
16962  sed '
16963     /^ac_cv_env_/b end
16964     t clear
16965     :clear
16966     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16967     t end
16968     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16969     :end' >>confcache
16970if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16971  if test -w "$cache_file"; then
16972    if test "x$cache_file" != "x/dev/null"; then
16973      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16974$as_echo "$as_me: updating cache $cache_file" >&6;}
16975      if test ! -f "$cache_file" || test -h "$cache_file"; then
16976	cat confcache >"$cache_file"
16977      else
16978        case $cache_file in #(
16979        */* | ?:*)
16980	  mv -f confcache "$cache_file"$$ &&
16981	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16982        *)
16983	  mv -f confcache "$cache_file" ;;
16984	esac
16985      fi
16986    fi
16987  else
16988    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16989$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16990  fi
16991fi
16992rm -f confcache
16993
16994if test ${multilib} = yes; then
16995  multilib_arg="--enable-multilib"
16996else
16997  multilib_arg=
16998fi
16999
17000# Set up the set of libraries that we need to link against for libgomp.
17001# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17002# which will force linkage against -lpthread (or equivalent for the system).
17003# That's not 100% ideal, but about the best we can do easily.
17004if test $enable_shared = yes; then
17005  link_gomp="-lgomp %{static: $LIBS}"
17006else
17007  link_gomp="-lgomp $LIBS"
17008fi
17009
17010
17011 if test "$ac_cv_fc_compiler_gnu" = yes; then
17012  USE_FORTRAN_TRUE=
17013  USE_FORTRAN_FALSE='#'
17014else
17015  USE_FORTRAN_TRUE='#'
17016  USE_FORTRAN_FALSE=
17017fi
17018
17019
17020# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17021# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
17022# the underscore here and update the PREREQ.  If it doesn't, then we'll
17023# need to copy this macro to our acinclude.m4.
17024save_CFLAGS="$CFLAGS"
17025for i in $config_path; do
17026  if test -f $srcdir/config/$i/omp-lock.h; then
17027    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17028    break
17029  fi
17030done
17031
17032if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND"        ""; then :
17033
17034fi
17035
17036
17037if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE"        ""; then :
17038
17039else
17040  OMP_INT128_SIZE=0
17041fi
17042
17043
17044if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND"        ""; then :
17045
17046else
17047  OMP_DEPEND_KIND=0
17048fi
17049
17050
17051if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
17052
17053else
17054  as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17055fi
17056
17057
17058if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
17059
17060fi
17061
17062
17063if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
17064
17065fi
17066
17067
17068if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
17069
17070fi
17071
17072
17073if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
17074
17075else
17076  as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17077fi
17078
17079
17080if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
17081
17082fi
17083
17084
17085if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
17086
17087fi
17088
17089
17090if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
17091
17092fi
17093
17094
17095
17096# If the lock fits in an integer, then arrange for Fortran to use that
17097# integer.  If it doesn't, then arrange for Fortran to use a pointer.
17098# Except that we don't have a way at present to multi-lib the installed
17099# Fortran modules, so we assume 8 bytes for pointers, regardless of the
17100# actual target.
17101OMP_LOCK_KIND=$OMP_LOCK_SIZE
17102OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17103if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17104  OMP_LOCK_KIND=8
17105fi
17106if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17107  OMP_NEST_LOCK_KIND=8
17108fi
17109OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17110OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17111if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17112  OMP_LOCK_25_KIND=8
17113fi
17114if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17115  OMP_NEST_LOCK_25_KIND=8
17116fi
17117if test "$ac_cv_fc_compiler_gnu" = yes; then
17118  if test $OMP_DEPEND_KIND -eq 16; then
17119    if test $OMP_INT128_SIZE -ne 16; then
17120      as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
17121    fi
17122  else
17123    if test $OMP_DEPEND_KIND -ne 8; then
17124      as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
17125    fi
17126  fi
17127fi
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143CFLAGS="$save_CFLAGS"
17144
17145# Determine what GCC version number to use in filesystem paths.
17146
17147  get_gcc_base_ver="cat"
17148
17149# Check whether --with-gcc-major-version-only was given.
17150if test "${with_gcc_major_version_only+set}" = set; then :
17151  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17152        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17153      fi
17154
17155fi
17156
17157
17158
17159
17160ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17161
17162ac_config_files="$ac_config_files Makefile libgomp.spec"
17163
17164#ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17165
17166#ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
17167
17168cat >confcache <<\_ACEOF
17169# This file is a shell script that caches the results of configure
17170# tests run on this system so they can be shared between configure
17171# scripts and configure runs, see configure's option --config-cache.
17172# It is not useful on other systems.  If it contains results you don't
17173# want to keep, you may remove or edit it.
17174#
17175# config.status only pays attention to the cache file if you give it
17176# the --recheck option to rerun configure.
17177#
17178# `ac_cv_env_foo' variables (set or unset) will be overridden when
17179# loading this file, other *unset* `ac_cv_foo' will be assigned the
17180# following values.
17181
17182_ACEOF
17183
17184# The following way of writing the cache mishandles newlines in values,
17185# but we know of no workaround that is simple, portable, and efficient.
17186# So, we kill variables containing newlines.
17187# Ultrix sh set writes to stderr and can't be redirected directly,
17188# and sets the high bit in the cache file unless we assign to the vars.
17189(
17190  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17191    eval ac_val=\$$ac_var
17192    case $ac_val in #(
17193    *${as_nl}*)
17194      case $ac_var in #(
17195      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17196$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17197      esac
17198      case $ac_var in #(
17199      _ | IFS | as_nl) ;; #(
17200      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17201      *) { eval $ac_var=; unset $ac_var;} ;;
17202      esac ;;
17203    esac
17204  done
17205
17206  (set) 2>&1 |
17207    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17208    *${as_nl}ac_space=\ *)
17209      # `set' does not quote correctly, so add quotes: double-quote
17210      # substitution turns \\\\ into \\, and sed turns \\ into \.
17211      sed -n \
17212	"s/'/'\\\\''/g;
17213	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17214      ;; #(
17215    *)
17216      # `set' quotes correctly as required by POSIX, so do not add quotes.
17217      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17218      ;;
17219    esac |
17220    sort
17221) |
17222  sed '
17223     /^ac_cv_env_/b end
17224     t clear
17225     :clear
17226     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17227     t end
17228     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17229     :end' >>confcache
17230if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17231  if test -w "$cache_file"; then
17232    if test "x$cache_file" != "x/dev/null"; then
17233      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17234$as_echo "$as_me: updating cache $cache_file" >&6;}
17235      if test ! -f "$cache_file" || test -h "$cache_file"; then
17236	cat confcache >"$cache_file"
17237      else
17238        case $cache_file in #(
17239        */* | ?:*)
17240	  mv -f confcache "$cache_file"$$ &&
17241	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17242        *)
17243	  mv -f confcache "$cache_file" ;;
17244	esac
17245      fi
17246    fi
17247  else
17248    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17249$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17250  fi
17251fi
17252rm -f confcache
17253
17254test "x$prefix" = xNONE && prefix=$ac_default_prefix
17255# Let make expand exec_prefix.
17256test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17257
17258DEFS=-DHAVE_CONFIG_H
17259
17260ac_libobjs=
17261ac_ltlibobjs=
17262U=
17263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17264  # 1. Remove the extension, and $U if already installed.
17265  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17266  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17267  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17268  #    will be set to the directory where LIBOBJS objects are built.
17269  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17270  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17271done
17272LIBOBJS=$ac_libobjs
17273
17274LTLIBOBJS=$ac_ltlibobjs
17275
17276
17277if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17278  as_fn_error $? "conditional \"GENINSRC\" was never defined.
17279Usually this means the macro was only invoked conditionally." "$LINENO" 5
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17282$as_echo_n "checking that generated files are newer than configure... " >&6; }
17283   if test -n "$am_sleep_pid"; then
17284     # Hide warnings about reused PIDs.
17285     wait $am_sleep_pid 2>/dev/null
17286   fi
17287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17288$as_echo "done" >&6; }
17289 if test -n "$EXEEXT"; then
17290  am__EXEEXT_TRUE=
17291  am__EXEEXT_FALSE='#'
17292else
17293  am__EXEEXT_TRUE='#'
17294  am__EXEEXT_FALSE=
17295fi
17296
17297if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17298  as_fn_error $? "conditional \"AMDEP\" was never defined.
17299Usually this means the macro was only invoked conditionally." "$LINENO" 5
17300fi
17301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17302  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17303Usually this means the macro was only invoked conditionally." "$LINENO" 5
17304fi
17305if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17306  as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17307Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308fi
17309if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17310  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17311Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312fi
17313if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17314  as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17315Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316fi
17317if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17318  as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17319Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320fi
17321if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17322  as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17323Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324fi
17325if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17326  as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17327Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328fi
17329if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17330  as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17331Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332fi
17333if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17334  as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17335Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336fi
17337
17338: "${CONFIG_STATUS=./config.status}"
17339ac_write_fail=0
17340ac_clean_files_save=$ac_clean_files
17341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17343$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17344as_write_fail=0
17345cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17346#! $SHELL
17347# Generated by $as_me.
17348# Run this file to recreate the current configuration.
17349# Compiler output produced by configure, useful for debugging
17350# configure, is in config.log if it exists.
17351
17352debug=false
17353ac_cs_recheck=false
17354ac_cs_silent=false
17355
17356SHELL=\${CONFIG_SHELL-$SHELL}
17357export SHELL
17358_ASEOF
17359cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17360## -------------------- ##
17361## M4sh Initialization. ##
17362## -------------------- ##
17363
17364# Be more Bourne compatible
17365DUALCASE=1; export DUALCASE # for MKS sh
17366if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17367  emulate sh
17368  NULLCMD=:
17369  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17370  # is contrary to our usage.  Disable this feature.
17371  alias -g '${1+"$@"}'='"$@"'
17372  setopt NO_GLOB_SUBST
17373else
17374  case `(set -o) 2>/dev/null` in #(
17375  *posix*) :
17376    set -o posix ;; #(
17377  *) :
17378     ;;
17379esac
17380fi
17381
17382
17383as_nl='
17384'
17385export as_nl
17386# Printing a long string crashes Solaris 7 /usr/bin/printf.
17387as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17390# Prefer a ksh shell builtin over an external printf program on Solaris,
17391# but without wasting forks for bash or zsh.
17392if test -z "$BASH_VERSION$ZSH_VERSION" \
17393    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17394  as_echo='print -r --'
17395  as_echo_n='print -rn --'
17396elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17397  as_echo='printf %s\n'
17398  as_echo_n='printf %s'
17399else
17400  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17401    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17402    as_echo_n='/usr/ucb/echo -n'
17403  else
17404    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17405    as_echo_n_body='eval
17406      arg=$1;
17407      case $arg in #(
17408      *"$as_nl"*)
17409	expr "X$arg" : "X\\(.*\\)$as_nl";
17410	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17411      esac;
17412      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17413    '
17414    export as_echo_n_body
17415    as_echo_n='sh -c $as_echo_n_body as_echo'
17416  fi
17417  export as_echo_body
17418  as_echo='sh -c $as_echo_body as_echo'
17419fi
17420
17421# The user is always right.
17422if test "${PATH_SEPARATOR+set}" != set; then
17423  PATH_SEPARATOR=:
17424  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17425    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17426      PATH_SEPARATOR=';'
17427  }
17428fi
17429
17430
17431# IFS
17432# We need space, tab and new line, in precisely that order.  Quoting is
17433# there to prevent editors from complaining about space-tab.
17434# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17435# splitting by setting IFS to empty value.)
17436IFS=" ""	$as_nl"
17437
17438# Find who we are.  Look in the path if we contain no directory separator.
17439as_myself=
17440case $0 in #((
17441  *[\\/]* ) as_myself=$0 ;;
17442  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443for as_dir in $PATH
17444do
17445  IFS=$as_save_IFS
17446  test -z "$as_dir" && as_dir=.
17447    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17448  done
17449IFS=$as_save_IFS
17450
17451     ;;
17452esac
17453# We did not find ourselves, most probably we were run as `sh COMMAND'
17454# in which case we are not to be found in the path.
17455if test "x$as_myself" = x; then
17456  as_myself=$0
17457fi
17458if test ! -f "$as_myself"; then
17459  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17460  exit 1
17461fi
17462
17463# Unset variables that we do not need and which cause bugs (e.g. in
17464# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17465# suppresses any "Segmentation fault" message there.  '((' could
17466# trigger a bug in pdksh 5.2.14.
17467for as_var in BASH_ENV ENV MAIL MAILPATH
17468do eval test x\${$as_var+set} = xset \
17469  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17470done
17471PS1='$ '
17472PS2='> '
17473PS4='+ '
17474
17475# NLS nuisances.
17476LC_ALL=C
17477export LC_ALL
17478LANGUAGE=C
17479export LANGUAGE
17480
17481# CDPATH.
17482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17483
17484
17485# as_fn_error STATUS ERROR [LINENO LOG_FD]
17486# ----------------------------------------
17487# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489# script with STATUS, using 1 if that was 0.
17490as_fn_error ()
17491{
17492  as_status=$1; test $as_status -eq 0 && as_status=1
17493  if test "$4"; then
17494    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17496  fi
17497  $as_echo "$as_me: error: $2" >&2
17498  as_fn_exit $as_status
17499} # as_fn_error
17500
17501
17502# as_fn_set_status STATUS
17503# -----------------------
17504# Set $? to STATUS, without forking.
17505as_fn_set_status ()
17506{
17507  return $1
17508} # as_fn_set_status
17509
17510# as_fn_exit STATUS
17511# -----------------
17512# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17513as_fn_exit ()
17514{
17515  set +e
17516  as_fn_set_status $1
17517  exit $1
17518} # as_fn_exit
17519
17520# as_fn_unset VAR
17521# ---------------
17522# Portably unset VAR.
17523as_fn_unset ()
17524{
17525  { eval $1=; unset $1;}
17526}
17527as_unset=as_fn_unset
17528# as_fn_append VAR VALUE
17529# ----------------------
17530# Append the text in VALUE to the end of the definition contained in VAR. Take
17531# advantage of any shell optimizations that allow amortized linear growth over
17532# repeated appends, instead of the typical quadratic growth present in naive
17533# implementations.
17534if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535  eval 'as_fn_append ()
17536  {
17537    eval $1+=\$2
17538  }'
17539else
17540  as_fn_append ()
17541  {
17542    eval $1=\$$1\$2
17543  }
17544fi # as_fn_append
17545
17546# as_fn_arith ARG...
17547# ------------------
17548# Perform arithmetic evaluation on the ARGs, and store the result in the
17549# global $as_val. Take advantage of shells that can avoid forks. The arguments
17550# must be portable across $(()) and expr.
17551if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552  eval 'as_fn_arith ()
17553  {
17554    as_val=$(( $* ))
17555  }'
17556else
17557  as_fn_arith ()
17558  {
17559    as_val=`expr "$@" || test $? -eq 1`
17560  }
17561fi # as_fn_arith
17562
17563
17564if expr a : '\(a\)' >/dev/null 2>&1 &&
17565   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17566  as_expr=expr
17567else
17568  as_expr=false
17569fi
17570
17571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17572  as_basename=basename
17573else
17574  as_basename=false
17575fi
17576
17577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17578  as_dirname=dirname
17579else
17580  as_dirname=false
17581fi
17582
17583as_me=`$as_basename -- "$0" ||
17584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585	 X"$0" : 'X\(//\)$' \| \
17586	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17587$as_echo X/"$0" |
17588    sed '/^.*\/\([^/][^/]*\)\/*$/{
17589	    s//\1/
17590	    q
17591	  }
17592	  /^X\/\(\/\/\)$/{
17593	    s//\1/
17594	    q
17595	  }
17596	  /^X\/\(\/\).*/{
17597	    s//\1/
17598	    q
17599	  }
17600	  s/.*/./; q'`
17601
17602# Avoid depending upon Character Ranges.
17603as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606as_cr_digits='0123456789'
17607as_cr_alnum=$as_cr_Letters$as_cr_digits
17608
17609ECHO_C= ECHO_N= ECHO_T=
17610case `echo -n x` in #(((((
17611-n*)
17612  case `echo 'xy\c'` in
17613  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17614  xy)  ECHO_C='\c';;
17615  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17616       ECHO_T='	';;
17617  esac;;
17618*)
17619  ECHO_N='-n';;
17620esac
17621
17622rm -f conf$$ conf$$.exe conf$$.file
17623if test -d conf$$.dir; then
17624  rm -f conf$$.dir/conf$$.file
17625else
17626  rm -f conf$$.dir
17627  mkdir conf$$.dir 2>/dev/null
17628fi
17629if (echo >conf$$.file) 2>/dev/null; then
17630  if ln -s conf$$.file conf$$ 2>/dev/null; then
17631    as_ln_s='ln -s'
17632    # ... but there are two gotchas:
17633    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635    # In both cases, we have to default to `cp -pR'.
17636    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17637      as_ln_s='cp -pR'
17638  elif ln conf$$.file conf$$ 2>/dev/null; then
17639    as_ln_s=ln
17640  else
17641    as_ln_s='cp -pR'
17642  fi
17643else
17644  as_ln_s='cp -pR'
17645fi
17646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647rmdir conf$$.dir 2>/dev/null
17648
17649
17650# as_fn_mkdir_p
17651# -------------
17652# Create "$as_dir" as a directory, including parents if necessary.
17653as_fn_mkdir_p ()
17654{
17655
17656  case $as_dir in #(
17657  -*) as_dir=./$as_dir;;
17658  esac
17659  test -d "$as_dir" || eval $as_mkdir_p || {
17660    as_dirs=
17661    while :; do
17662      case $as_dir in #(
17663      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664      *) as_qdir=$as_dir;;
17665      esac
17666      as_dirs="'$as_qdir' $as_dirs"
17667      as_dir=`$as_dirname -- "$as_dir" ||
17668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669	 X"$as_dir" : 'X\(//\)[^/]' \| \
17670	 X"$as_dir" : 'X\(//\)$' \| \
17671	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672$as_echo X"$as_dir" |
17673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17674	    s//\1/
17675	    q
17676	  }
17677	  /^X\(\/\/\)[^/].*/{
17678	    s//\1/
17679	    q
17680	  }
17681	  /^X\(\/\/\)$/{
17682	    s//\1/
17683	    q
17684	  }
17685	  /^X\(\/\).*/{
17686	    s//\1/
17687	    q
17688	  }
17689	  s/.*/./; q'`
17690      test -d "$as_dir" && break
17691    done
17692    test -z "$as_dirs" || eval "mkdir $as_dirs"
17693  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17694
17695
17696} # as_fn_mkdir_p
17697if mkdir -p . 2>/dev/null; then
17698  as_mkdir_p='mkdir -p "$as_dir"'
17699else
17700  test -d ./-p && rmdir ./-p
17701  as_mkdir_p=false
17702fi
17703
17704
17705# as_fn_executable_p FILE
17706# -----------------------
17707# Test if FILE is an executable regular file.
17708as_fn_executable_p ()
17709{
17710  test -f "$1" && test -x "$1"
17711} # as_fn_executable_p
17712as_test_x='test -x'
17713as_executable_p=as_fn_executable_p
17714
17715# Sed expression to map a string onto a valid CPP name.
17716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17717
17718# Sed expression to map a string onto a valid variable name.
17719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17720
17721
17722exec 6>&1
17723## ----------------------------------- ##
17724## Main body of $CONFIG_STATUS script. ##
17725## ----------------------------------- ##
17726_ASEOF
17727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17728
17729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17730# Save the log message, to keep $0 and so on meaningful, and to
17731# report actual input values of CONFIG_FILES etc. instead of their
17732# values after options handling.
17733ac_log="
17734This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17735generated by GNU Autoconf 2.69.  Invocation command line was
17736
17737  CONFIG_FILES    = $CONFIG_FILES
17738  CONFIG_HEADERS  = $CONFIG_HEADERS
17739  CONFIG_LINKS    = $CONFIG_LINKS
17740  CONFIG_COMMANDS = $CONFIG_COMMANDS
17741  $ $0 $@
17742
17743on `(hostname || uname -n) 2>/dev/null | sed 1q`
17744"
17745
17746_ACEOF
17747
17748case $ac_config_files in *"
17749"*) set x $ac_config_files; shift; ac_config_files=$*;;
17750esac
17751
17752case $ac_config_headers in *"
17753"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17754esac
17755
17756
17757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17758# Files that config.status was made for.
17759config_files="$ac_config_files"
17760config_headers="$ac_config_headers"
17761config_commands="$ac_config_commands"
17762
17763_ACEOF
17764
17765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766ac_cs_usage="\
17767\`$as_me' instantiates files and other configuration actions
17768from templates according to the current configuration.  Unless the files
17769and actions are specified as TAGs, all are instantiated by default.
17770
17771Usage: $0 [OPTION]... [TAG]...
17772
17773  -h, --help       print this help, then exit
17774  -V, --version    print version number and configuration settings, then exit
17775      --config     print configuration, then exit
17776  -q, --quiet, --silent
17777                   do not print progress messages
17778  -d, --debug      don't remove temporary files
17779      --recheck    update $as_me by reconfiguring in the same conditions
17780      --file=FILE[:TEMPLATE]
17781                   instantiate the configuration file FILE
17782      --header=FILE[:TEMPLATE]
17783                   instantiate the configuration header FILE
17784
17785Configuration files:
17786$config_files
17787
17788Configuration headers:
17789$config_headers
17790
17791Configuration commands:
17792$config_commands
17793
17794Report bugs to the package provider.
17795GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17796General help using GNU software: <http://www.gnu.org/gethelp/>."
17797
17798_ACEOF
17799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17800ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17801ac_cs_version="\\
17802GNU Offloading and Multi Processing Runtime Library config.status 1.0
17803configured by $0, generated by GNU Autoconf 2.69,
17804  with options \\"\$ac_cs_config\\"
17805
17806Copyright (C) 2012 Free Software Foundation, Inc.
17807This config.status script is free software; the Free Software Foundation
17808gives unlimited permission to copy, distribute and modify it."
17809
17810ac_pwd='$ac_pwd'
17811srcdir='$srcdir'
17812INSTALL='$INSTALL'
17813MKDIR_P='$MKDIR_P'
17814AWK='$AWK'
17815test -n "\$AWK" || AWK=awk
17816_ACEOF
17817
17818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17819# The default lists apply if the user does not specify any file.
17820ac_need_defaults=:
17821while test $# != 0
17822do
17823  case $1 in
17824  --*=?*)
17825    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17826    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17827    ac_shift=:
17828    ;;
17829  --*=)
17830    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17831    ac_optarg=
17832    ac_shift=:
17833    ;;
17834  *)
17835    ac_option=$1
17836    ac_optarg=$2
17837    ac_shift=shift
17838    ;;
17839  esac
17840
17841  case $ac_option in
17842  # Handling of the options.
17843  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17844    ac_cs_recheck=: ;;
17845  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17846    $as_echo "$ac_cs_version"; exit ;;
17847  --config | --confi | --conf | --con | --co | --c )
17848    $as_echo "$ac_cs_config"; exit ;;
17849  --debug | --debu | --deb | --de | --d | -d )
17850    debug=: ;;
17851  --file | --fil | --fi | --f )
17852    $ac_shift
17853    case $ac_optarg in
17854    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17855    '') as_fn_error $? "missing file argument" ;;
17856    esac
17857    as_fn_append CONFIG_FILES " '$ac_optarg'"
17858    ac_need_defaults=false;;
17859  --header | --heade | --head | --hea )
17860    $ac_shift
17861    case $ac_optarg in
17862    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17863    esac
17864    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17865    ac_need_defaults=false;;
17866  --he | --h)
17867    # Conflict between --help and --header
17868    as_fn_error $? "ambiguous option: \`$1'
17869Try \`$0 --help' for more information.";;
17870  --help | --hel | -h )
17871    $as_echo "$ac_cs_usage"; exit ;;
17872  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17873  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17874    ac_cs_silent=: ;;
17875
17876  # This is an error.
17877  -*) as_fn_error $? "unrecognized option: \`$1'
17878Try \`$0 --help' for more information." ;;
17879
17880  *) as_fn_append ac_config_targets " $1"
17881     ac_need_defaults=false ;;
17882
17883  esac
17884  shift
17885done
17886
17887ac_configure_extra_args=
17888
17889if $ac_cs_silent; then
17890  exec 6>/dev/null
17891  ac_configure_extra_args="$ac_configure_extra_args --silent"
17892fi
17893
17894_ACEOF
17895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17896if \$ac_cs_recheck; then
17897  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17898  shift
17899  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17900  CONFIG_SHELL='$SHELL'
17901  export CONFIG_SHELL
17902  exec "\$@"
17903fi
17904
17905_ACEOF
17906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17907exec 5>>config.log
17908{
17909  echo
17910  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17911## Running $as_me. ##
17912_ASBOX
17913  $as_echo "$ac_log"
17914} >&5
17915
17916_ACEOF
17917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918#
17919# INIT-COMMANDS
17920#
17921
17922srcdir="$srcdir"
17923host="$host"
17924target="$target"
17925with_multisubdir="$with_multisubdir"
17926with_multisrctop="$with_multisrctop"
17927with_target_subdir="$with_target_subdir"
17928ac_configure_args="${multilib_arg} ${ac_configure_args}"
17929multi_basedir="$multi_basedir"
17930CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17931CC="$CC"
17932CXX="$CXX"
17933GFORTRAN="$GFORTRAN"
17934GDC="$GDC"
17935AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17936
17937
17938# The HP-UX ksh and POSIX shell print the target directory to stdout
17939# if CDPATH is set.
17940(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17941
17942sed_quote_subst='$sed_quote_subst'
17943double_quote_subst='$double_quote_subst'
17944delay_variable_subst='$delay_variable_subst'
17945macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17946macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17947enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17948enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17949pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17950enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17951SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17952ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17953host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17954host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17955host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17956build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17957build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17958build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17959SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17960Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17961GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17962EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17963FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17964LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17965NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17966LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17967max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17968ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17969exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17970lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17971lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17972lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17973reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17974reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17975OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17976deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17977file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17978AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17979AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17980STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17981RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17982old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17983old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17984old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17985lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17986CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17987CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17988compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17989GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17990lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17991lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17992lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17993lt_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"`'
17994objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17995MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17996lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17997lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17998lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17999lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18000lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18001need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18002DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18003NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18004LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18005OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18006OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18007libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18008shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18009extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18010archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18011enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18012export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18013whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18014compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18015old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18016old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18017archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18018archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18019module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18020module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18021with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18022allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18023no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18024hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18025hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18026hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18027hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18028hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18029hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18030hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18031hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18032inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18033link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18034fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18035always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18036export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18037exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18038include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18039prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18040file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18041variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18042need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18043need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18044version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18045runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18046shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18047shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18048libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18049library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18050soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18051install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18052postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18053postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18054finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18055finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18056hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18057sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18058sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18059hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18060enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18061enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18062enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18063old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18064striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18065compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18066predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18067postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18068predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18069postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18070compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18071LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18072reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18073reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18074old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18075compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18076GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18077lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18078lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18079lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18080lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18081lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18082archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18083enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18084export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18085whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18086compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18087old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18088old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18089archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18090archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18091module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18092module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18093with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18094allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18095no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18096hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18097hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18098hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18099hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18100hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18101hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18102hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18103hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18104inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18105link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18106fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18107always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18108export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18109exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18110include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18111prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18112file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18113hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18114compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18115predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18116postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18117predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18118postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18119compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18120
18121LTCC='$LTCC'
18122LTCFLAGS='$LTCFLAGS'
18123compiler='$compiler_DEFAULT'
18124
18125# A function that is used when there is no print builtin or printf.
18126func_fallback_echo ()
18127{
18128  eval 'cat <<_LTECHO_EOF
18129\$1
18130_LTECHO_EOF'
18131}
18132
18133# Quote evaled strings.
18134for var in SHELL \
18135ECHO \
18136SED \
18137GREP \
18138EGREP \
18139FGREP \
18140LD \
18141NM \
18142LN_S \
18143lt_SP2NL \
18144lt_NL2SP \
18145reload_flag \
18146OBJDUMP \
18147deplibs_check_method \
18148file_magic_cmd \
18149AR \
18150AR_FLAGS \
18151STRIP \
18152RANLIB \
18153CC \
18154CFLAGS \
18155compiler \
18156lt_cv_sys_global_symbol_pipe \
18157lt_cv_sys_global_symbol_to_cdecl \
18158lt_cv_sys_global_symbol_to_c_name_address \
18159lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18160lt_prog_compiler_no_builtin_flag \
18161lt_prog_compiler_wl \
18162lt_prog_compiler_pic \
18163lt_prog_compiler_static \
18164lt_cv_prog_compiler_c_o \
18165need_locks \
18166DSYMUTIL \
18167NMEDIT \
18168LIPO \
18169OTOOL \
18170OTOOL64 \
18171shrext_cmds \
18172export_dynamic_flag_spec \
18173whole_archive_flag_spec \
18174compiler_needs_object \
18175with_gnu_ld \
18176allow_undefined_flag \
18177no_undefined_flag \
18178hardcode_libdir_flag_spec \
18179hardcode_libdir_flag_spec_ld \
18180hardcode_libdir_separator \
18181fix_srcfile_path \
18182exclude_expsyms \
18183include_expsyms \
18184file_list_spec \
18185variables_saved_for_relink \
18186libname_spec \
18187library_names_spec \
18188soname_spec \
18189install_override_mode \
18190finish_eval \
18191old_striplib \
18192striplib \
18193compiler_lib_search_dirs \
18194predep_objects \
18195postdep_objects \
18196predeps \
18197postdeps \
18198compiler_lib_search_path \
18199LD_FC \
18200reload_flag_FC \
18201compiler_FC \
18202lt_prog_compiler_no_builtin_flag_FC \
18203lt_prog_compiler_wl_FC \
18204lt_prog_compiler_pic_FC \
18205lt_prog_compiler_static_FC \
18206lt_cv_prog_compiler_c_o_FC \
18207export_dynamic_flag_spec_FC \
18208whole_archive_flag_spec_FC \
18209compiler_needs_object_FC \
18210with_gnu_ld_FC \
18211allow_undefined_flag_FC \
18212no_undefined_flag_FC \
18213hardcode_libdir_flag_spec_FC \
18214hardcode_libdir_flag_spec_ld_FC \
18215hardcode_libdir_separator_FC \
18216fix_srcfile_path_FC \
18217exclude_expsyms_FC \
18218include_expsyms_FC \
18219file_list_spec_FC \
18220compiler_lib_search_dirs_FC \
18221predep_objects_FC \
18222postdep_objects_FC \
18223predeps_FC \
18224postdeps_FC \
18225compiler_lib_search_path_FC; do
18226    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18227    *[\\\\\\\`\\"\\\$]*)
18228      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18229      ;;
18230    *)
18231      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18232      ;;
18233    esac
18234done
18235
18236# Double-quote double-evaled strings.
18237for var in reload_cmds \
18238old_postinstall_cmds \
18239old_postuninstall_cmds \
18240old_archive_cmds \
18241extract_expsyms_cmds \
18242old_archive_from_new_cmds \
18243old_archive_from_expsyms_cmds \
18244archive_cmds \
18245archive_expsym_cmds \
18246module_cmds \
18247module_expsym_cmds \
18248export_symbols_cmds \
18249prelink_cmds \
18250postinstall_cmds \
18251postuninstall_cmds \
18252finish_cmds \
18253sys_lib_search_path_spec \
18254sys_lib_dlsearch_path_spec \
18255reload_cmds_FC \
18256old_archive_cmds_FC \
18257old_archive_from_new_cmds_FC \
18258old_archive_from_expsyms_cmds_FC \
18259archive_cmds_FC \
18260archive_expsym_cmds_FC \
18261module_cmds_FC \
18262module_expsym_cmds_FC \
18263export_symbols_cmds_FC \
18264prelink_cmds_FC; do
18265    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18266    *[\\\\\\\`\\"\\\$]*)
18267      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18268      ;;
18269    *)
18270      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18271      ;;
18272    esac
18273done
18274
18275ac_aux_dir='$ac_aux_dir'
18276xsi_shell='$xsi_shell'
18277lt_shell_append='$lt_shell_append'
18278
18279# See if we are running on zsh, and set the options which allow our
18280# commands through without removal of \ escapes INIT.
18281if test -n "\${ZSH_VERSION+set}" ; then
18282   setopt NO_GLOB_SUBST
18283fi
18284
18285
18286    PACKAGE='$PACKAGE'
18287    VERSION='$VERSION'
18288    TIMESTAMP='$TIMESTAMP'
18289    RM='$RM'
18290    ofile='$ofile'
18291
18292
18293
18294
18295
18296
18297_ACEOF
18298
18299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18300
18301# Handling of arguments.
18302for ac_config_target in $ac_config_targets
18303do
18304  case $ac_config_target in
18305    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18306    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18307    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18308    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18309    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18310    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18311    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18312    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18313    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18314    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18315    #"testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18316    #"testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18317
18318  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18319  esac
18320done
18321
18322
18323# If the user did not use the arguments to specify the items to instantiate,
18324# then the envvar interface is used.  Set only those that are not.
18325# We use the long form for the default assignment because of an extremely
18326# bizarre bug on SunOS 4.1.3.
18327if $ac_need_defaults; then
18328  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18329  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18330  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18331fi
18332
18333# Have a temporary directory for convenience.  Make it in the build tree
18334# simply because there is no reason against having it here, and in addition,
18335# creating and moving files from /tmp can sometimes cause problems.
18336# Hook for its removal unless debugging.
18337# Note that there is a small window in which the directory will not be cleaned:
18338# after its creation but before its name has been assigned to `$tmp'.
18339$debug ||
18340{
18341  tmp= ac_tmp=
18342  trap 'exit_status=$?
18343  : "${ac_tmp:=$tmp}"
18344  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18345' 0
18346  trap 'as_fn_exit 1' 1 2 13 15
18347}
18348# Create a (secure) tmp directory for tmp files.
18349
18350{
18351  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18352  test -d "$tmp"
18353}  ||
18354{
18355  tmp=./conf$$-$RANDOM
18356  (umask 077 && mkdir "$tmp")
18357} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18358ac_tmp=$tmp
18359
18360# Set up the scripts for CONFIG_FILES section.
18361# No need to generate them if there are no CONFIG_FILES.
18362# This happens for instance with `./config.status config.h'.
18363if test -n "$CONFIG_FILES"; then
18364
18365
18366ac_cr=`echo X | tr X '\015'`
18367# On cygwin, bash can eat \r inside `` if the user requested igncr.
18368# But we know of no other shell where ac_cr would be empty at this
18369# point, so we can use a bashism as a fallback.
18370if test "x$ac_cr" = x; then
18371  eval ac_cr=\$\'\\r\'
18372fi
18373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18375  ac_cs_awk_cr='\\r'
18376else
18377  ac_cs_awk_cr=$ac_cr
18378fi
18379
18380echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18381_ACEOF
18382
18383
18384{
18385  echo "cat >conf$$subs.awk <<_ACEOF" &&
18386  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18387  echo "_ACEOF"
18388} >conf$$subs.sh ||
18389  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18390ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18391ac_delim='%!_!# '
18392for ac_last_try in false false false false false :; do
18393  . ./conf$$subs.sh ||
18394    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18395
18396  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18397  if test $ac_delim_n = $ac_delim_num; then
18398    break
18399  elif $ac_last_try; then
18400    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18401  else
18402    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18403  fi
18404done
18405rm -f conf$$subs.sh
18406
18407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18409_ACEOF
18410sed -n '
18411h
18412s/^/S["/; s/!.*/"]=/
18413p
18414g
18415s/^[^!]*!//
18416:repl
18417t repl
18418s/'"$ac_delim"'$//
18419t delim
18420:nl
18421h
18422s/\(.\{148\}\)..*/\1/
18423t more1
18424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18425p
18426n
18427b repl
18428:more1
18429s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18430p
18431g
18432s/.\{148\}//
18433t nl
18434:delim
18435h
18436s/\(.\{148\}\)..*/\1/
18437t more2
18438s/["\\]/\\&/g; s/^/"/; s/$/"/
18439p
18440b
18441:more2
18442s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18443p
18444g
18445s/.\{148\}//
18446t delim
18447' <conf$$subs.awk | sed '
18448/^[^""]/{
18449  N
18450  s/\n//
18451}
18452' >>$CONFIG_STATUS || ac_write_fail=1
18453rm -f conf$$subs.awk
18454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18455_ACAWK
18456cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18457  for (key in S) S_is_set[key] = 1
18458  FS = ""
18459
18460}
18461{
18462  line = $ 0
18463  nfields = split(line, field, "@")
18464  substed = 0
18465  len = length(field[1])
18466  for (i = 2; i < nfields; i++) {
18467    key = field[i]
18468    keylen = length(key)
18469    if (S_is_set[key]) {
18470      value = S[key]
18471      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18472      len += length(value) + length(field[++i])
18473      substed = 1
18474    } else
18475      len += 1 + keylen
18476  }
18477
18478  print line
18479}
18480
18481_ACAWK
18482_ACEOF
18483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18485  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18486else
18487  cat
18488fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18489  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18490_ACEOF
18491
18492# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18493# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18494# trailing colons and then remove the whole line if VPATH becomes empty
18495# (actually we leave an empty line to preserve line numbers).
18496if test "x$srcdir" = x.; then
18497  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18498h
18499s///
18500s/^/:/
18501s/[	 ]*$/:/
18502s/:\$(srcdir):/:/g
18503s/:\${srcdir}:/:/g
18504s/:@srcdir@:/:/g
18505s/^:*//
18506s/:*$//
18507x
18508s/\(=[	 ]*\).*/\1/
18509G
18510s/\n//
18511s/^[^=]*=[	 ]*$//
18512}'
18513fi
18514
18515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516fi # test -n "$CONFIG_FILES"
18517
18518# Set up the scripts for CONFIG_HEADERS section.
18519# No need to generate them if there are no CONFIG_HEADERS.
18520# This happens for instance with `./config.status Makefile'.
18521if test -n "$CONFIG_HEADERS"; then
18522cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18523BEGIN {
18524_ACEOF
18525
18526# Transform confdefs.h into an awk script `defines.awk', embedded as
18527# here-document in config.status, that substitutes the proper values into
18528# config.h.in to produce config.h.
18529
18530# Create a delimiter string that does not exist in confdefs.h, to ease
18531# handling of long lines.
18532ac_delim='%!_!# '
18533for ac_last_try in false false :; do
18534  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18535  if test -z "$ac_tt"; then
18536    break
18537  elif $ac_last_try; then
18538    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18539  else
18540    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18541  fi
18542done
18543
18544# For the awk script, D is an array of macro values keyed by name,
18545# likewise P contains macro parameters if any.  Preserve backslash
18546# newline sequences.
18547
18548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18549sed -n '
18550s/.\{148\}/&'"$ac_delim"'/g
18551t rset
18552:rset
18553s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18554t def
18555d
18556:def
18557s/\\$//
18558t bsnl
18559s/["\\]/\\&/g
18560s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18561D["\1"]=" \3"/p
18562s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18563d
18564:bsnl
18565s/["\\]/\\&/g
18566s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18567D["\1"]=" \3\\\\\\n"\\/p
18568t cont
18569s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18570t cont
18571d
18572:cont
18573n
18574s/.\{148\}/&'"$ac_delim"'/g
18575t clear
18576:clear
18577s/\\$//
18578t bsnlc
18579s/["\\]/\\&/g; s/^/"/; s/$/"/p
18580d
18581:bsnlc
18582s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18583b cont
18584' <confdefs.h | sed '
18585s/'"$ac_delim"'/"\\\
18586"/g' >>$CONFIG_STATUS || ac_write_fail=1
18587
18588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18589  for (key in D) D_is_set[key] = 1
18590  FS = ""
18591}
18592/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18593  line = \$ 0
18594  split(line, arg, " ")
18595  if (arg[1] == "#") {
18596    defundef = arg[2]
18597    mac1 = arg[3]
18598  } else {
18599    defundef = substr(arg[1], 2)
18600    mac1 = arg[2]
18601  }
18602  split(mac1, mac2, "(") #)
18603  macro = mac2[1]
18604  prefix = substr(line, 1, index(line, defundef) - 1)
18605  if (D_is_set[macro]) {
18606    # Preserve the white space surrounding the "#".
18607    print prefix "define", macro P[macro] D[macro]
18608    next
18609  } else {
18610    # Replace #undef with comments.  This is necessary, for example,
18611    # in the case of _POSIX_SOURCE, which is predefined and required
18612    # on some systems where configure will not decide to define it.
18613    if (defundef == "undef") {
18614      print "/*", prefix defundef, macro, "*/"
18615      next
18616    }
18617  }
18618}
18619{ print }
18620_ACAWK
18621_ACEOF
18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18624fi # test -n "$CONFIG_HEADERS"
18625
18626
18627eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18628shift
18629for ac_tag
18630do
18631  case $ac_tag in
18632  :[FHLC]) ac_mode=$ac_tag; continue;;
18633  esac
18634  case $ac_mode$ac_tag in
18635  :[FHL]*:*);;
18636  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18637  :[FH]-) ac_tag=-:-;;
18638  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18639  esac
18640  ac_save_IFS=$IFS
18641  IFS=:
18642  set x $ac_tag
18643  IFS=$ac_save_IFS
18644  shift
18645  ac_file=$1
18646  shift
18647
18648  case $ac_mode in
18649  :L) ac_source=$1;;
18650  :[FH])
18651    ac_file_inputs=
18652    for ac_f
18653    do
18654      case $ac_f in
18655      -) ac_f="$ac_tmp/stdin";;
18656      *) # Look for the file first in the build tree, then in the source tree
18657	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18658	 # because $ac_f cannot contain `:'.
18659	 test -f "$ac_f" ||
18660	   case $ac_f in
18661	   [\\/$]*) false;;
18662	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18663	   esac ||
18664	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18665      esac
18666      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18667      as_fn_append ac_file_inputs " '$ac_f'"
18668    done
18669
18670    # Let's still pretend it is `configure' which instantiates (i.e., don't
18671    # use $as_me), people would be surprised to read:
18672    #    /* config.h.  Generated by config.status.  */
18673    configure_input='Generated from '`
18674	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18675	`' by configure.'
18676    if test x"$ac_file" != x-; then
18677      configure_input="$ac_file.  $configure_input"
18678      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18679$as_echo "$as_me: creating $ac_file" >&6;}
18680    fi
18681    # Neutralize special characters interpreted by sed in replacement strings.
18682    case $configure_input in #(
18683    *\&* | *\|* | *\\* )
18684       ac_sed_conf_input=`$as_echo "$configure_input" |
18685       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18686    *) ac_sed_conf_input=$configure_input;;
18687    esac
18688
18689    case $ac_tag in
18690    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18691      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18692    esac
18693    ;;
18694  esac
18695
18696  ac_dir=`$as_dirname -- "$ac_file" ||
18697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698	 X"$ac_file" : 'X\(//\)[^/]' \| \
18699	 X"$ac_file" : 'X\(//\)$' \| \
18700	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18701$as_echo X"$ac_file" |
18702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703	    s//\1/
18704	    q
18705	  }
18706	  /^X\(\/\/\)[^/].*/{
18707	    s//\1/
18708	    q
18709	  }
18710	  /^X\(\/\/\)$/{
18711	    s//\1/
18712	    q
18713	  }
18714	  /^X\(\/\).*/{
18715	    s//\1/
18716	    q
18717	  }
18718	  s/.*/./; q'`
18719  as_dir="$ac_dir"; as_fn_mkdir_p
18720  ac_builddir=.
18721
18722case "$ac_dir" in
18723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18724*)
18725  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18726  # A ".." for each directory in $ac_dir_suffix.
18727  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18728  case $ac_top_builddir_sub in
18729  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18730  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18731  esac ;;
18732esac
18733ac_abs_top_builddir=$ac_pwd
18734ac_abs_builddir=$ac_pwd$ac_dir_suffix
18735# for backward compatibility:
18736ac_top_builddir=$ac_top_build_prefix
18737
18738case $srcdir in
18739  .)  # We are building in place.
18740    ac_srcdir=.
18741    ac_top_srcdir=$ac_top_builddir_sub
18742    ac_abs_top_srcdir=$ac_pwd ;;
18743  [\\/]* | ?:[\\/]* )  # Absolute name.
18744    ac_srcdir=$srcdir$ac_dir_suffix;
18745    ac_top_srcdir=$srcdir
18746    ac_abs_top_srcdir=$srcdir ;;
18747  *) # Relative name.
18748    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18749    ac_top_srcdir=$ac_top_build_prefix$srcdir
18750    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18751esac
18752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18753
18754
18755  case $ac_mode in
18756  :F)
18757  #
18758  # CONFIG_FILE
18759  #
18760
18761  case $INSTALL in
18762  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18763  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18764  esac
18765  ac_MKDIR_P=$MKDIR_P
18766  case $MKDIR_P in
18767  [\\/$]* | ?:[\\/]* ) ;;
18768  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18769  esac
18770_ACEOF
18771
18772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18773# If the template does not know about datarootdir, expand it.
18774# FIXME: This hack should be removed a few years after 2.60.
18775ac_datarootdir_hack=; ac_datarootdir_seen=
18776ac_sed_dataroot='
18777/datarootdir/ {
18778  p
18779  q
18780}
18781/@datadir@/p
18782/@docdir@/p
18783/@infodir@/p
18784/@localedir@/p
18785/@mandir@/p'
18786case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18787*datarootdir*) ac_datarootdir_seen=yes;;
18788*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18789  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18790$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18791_ACEOF
18792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793  ac_datarootdir_hack='
18794  s&@datadir@&$datadir&g
18795  s&@docdir@&$docdir&g
18796  s&@infodir@&$infodir&g
18797  s&@localedir@&$localedir&g
18798  s&@mandir@&$mandir&g
18799  s&\\\${datarootdir}&$datarootdir&g' ;;
18800esac
18801_ACEOF
18802
18803# Neutralize VPATH when `$srcdir' = `.'.
18804# Shell code in configure.ac might set extrasub.
18805# FIXME: do we really want to maintain this feature?
18806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18807ac_sed_extra="$ac_vpsub
18808$extrasub
18809_ACEOF
18810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18811:t
18812/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18813s|@configure_input@|$ac_sed_conf_input|;t t
18814s&@top_builddir@&$ac_top_builddir_sub&;t t
18815s&@top_build_prefix@&$ac_top_build_prefix&;t t
18816s&@srcdir@&$ac_srcdir&;t t
18817s&@abs_srcdir@&$ac_abs_srcdir&;t t
18818s&@top_srcdir@&$ac_top_srcdir&;t t
18819s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18820s&@builddir@&$ac_builddir&;t t
18821s&@abs_builddir@&$ac_abs_builddir&;t t
18822s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18823s&@INSTALL@&$ac_INSTALL&;t t
18824s&@MKDIR_P@&$ac_MKDIR_P&;t t
18825$ac_datarootdir_hack
18826"
18827eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18828  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18829
18830test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18831  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18832  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18833      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18835which seems to be undefined.  Please make sure it is defined" >&5
18836$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18837which seems to be undefined.  Please make sure it is defined" >&2;}
18838
18839  rm -f "$ac_tmp/stdin"
18840  case $ac_file in
18841  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18842  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18843  esac \
18844  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18845 ;;
18846  :H)
18847  #
18848  # CONFIG_HEADER
18849  #
18850  if test x"$ac_file" != x-; then
18851    {
18852      $as_echo "/* $configure_input  */" \
18853      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18854    } >"$ac_tmp/config.h" \
18855      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18856    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18857      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18858$as_echo "$as_me: $ac_file is unchanged" >&6;}
18859    else
18860      rm -f "$ac_file"
18861      mv "$ac_tmp/config.h" "$ac_file" \
18862	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18863    fi
18864  else
18865    $as_echo "/* $configure_input  */" \
18866      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18867      || as_fn_error $? "could not create -" "$LINENO" 5
18868  fi
18869# Compute "$ac_file"'s index in $config_headers.
18870_am_arg="$ac_file"
18871_am_stamp_count=1
18872for _am_header in $config_headers :; do
18873  case $_am_header in
18874    $_am_arg | $_am_arg:* )
18875      break ;;
18876    * )
18877      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18878  esac
18879done
18880echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18881$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18882	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18883	 X"$_am_arg" : 'X\(//\)$' \| \
18884	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18885$as_echo X"$_am_arg" |
18886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18887	    s//\1/
18888	    q
18889	  }
18890	  /^X\(\/\/\)[^/].*/{
18891	    s//\1/
18892	    q
18893	  }
18894	  /^X\(\/\/\)$/{
18895	    s//\1/
18896	    q
18897	  }
18898	  /^X\(\/\).*/{
18899	    s//\1/
18900	    q
18901	  }
18902	  s/.*/./; q'`/stamp-h$_am_stamp_count
18903 ;;
18904
18905  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18906$as_echo "$as_me: executing $ac_file commands" >&6;}
18907 ;;
18908  esac
18909
18910
18911  case $ac_file$ac_mode in
18912    "default-1":C)
18913# Only add multilib support code if we just rebuilt the top-level
18914# Makefile.
18915case " $CONFIG_FILES " in
18916 *" Makefile "*)
18917   ac_file=Makefile . ${multi_basedir}/config-ml.in
18918   ;;
18919esac ;;
18920    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18921  # Older Autoconf quotes --file arguments for eval, but not when files
18922  # are listed without --file.  Let's play safe and only enable the eval
18923  # if we detect the quoting.
18924  case $CONFIG_FILES in
18925  *\'*) eval set x "$CONFIG_FILES" ;;
18926  *)   set x $CONFIG_FILES ;;
18927  esac
18928  shift
18929  for mf
18930  do
18931    # Strip MF so we end up with the name of the file.
18932    mf=`echo "$mf" | sed -e 's/:.*$//'`
18933    # Check whether this is an Automake generated Makefile or not.
18934    # We used to match only the files named 'Makefile.in', but
18935    # some people rename them; so instead we look at the file content.
18936    # Grep'ing the first line is not enough: some people post-process
18937    # each Makefile.in and add a new line on top of each file to say so.
18938    # Grep'ing the whole file is not good either: AIX grep has a line
18939    # limit of 2048, but all sed's we know have understand at least 4000.
18940    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18941      dirpart=`$as_dirname -- "$mf" ||
18942$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18943	 X"$mf" : 'X\(//\)[^/]' \| \
18944	 X"$mf" : 'X\(//\)$' \| \
18945	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18946$as_echo X"$mf" |
18947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18948	    s//\1/
18949	    q
18950	  }
18951	  /^X\(\/\/\)[^/].*/{
18952	    s//\1/
18953	    q
18954	  }
18955	  /^X\(\/\/\)$/{
18956	    s//\1/
18957	    q
18958	  }
18959	  /^X\(\/\).*/{
18960	    s//\1/
18961	    q
18962	  }
18963	  s/.*/./; q'`
18964    else
18965      continue
18966    fi
18967    # Extract the definition of DEPDIR, am__include, and am__quote
18968    # from the Makefile without running 'make'.
18969    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18970    test -z "$DEPDIR" && continue
18971    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18972    test -z "$am__include" && continue
18973    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18974    # Find all dependency output files, they are included files with
18975    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18976    # simplest approach to changing $(DEPDIR) to its actual value in the
18977    # expansion.
18978    for file in `sed -n "
18979      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18980	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18981      # Make sure the directory exists.
18982      test -f "$dirpart/$file" && continue
18983      fdir=`$as_dirname -- "$file" ||
18984$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18985	 X"$file" : 'X\(//\)[^/]' \| \
18986	 X"$file" : 'X\(//\)$' \| \
18987	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18988$as_echo X"$file" |
18989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18990	    s//\1/
18991	    q
18992	  }
18993	  /^X\(\/\/\)[^/].*/{
18994	    s//\1/
18995	    q
18996	  }
18997	  /^X\(\/\/\)$/{
18998	    s//\1/
18999	    q
19000	  }
19001	  /^X\(\/\).*/{
19002	    s//\1/
19003	    q
19004	  }
19005	  s/.*/./; q'`
19006      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19007      # echo "creating $dirpart/$file"
19008      echo '# dummy' > "$dirpart/$file"
19009    done
19010  done
19011}
19012 ;;
19013    "libtool":C)
19014
19015    # See if we are running on zsh, and set the options which allow our
19016    # commands through without removal of \ escapes.
19017    if test -n "${ZSH_VERSION+set}" ; then
19018      setopt NO_GLOB_SUBST
19019    fi
19020
19021    cfgfile="${ofile}T"
19022    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19023    $RM "$cfgfile"
19024
19025    cat <<_LT_EOF >> "$cfgfile"
19026#! $SHELL
19027
19028# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19029# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19030# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19031# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19032#
19033#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19034#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19035#   Written by Gordon Matzigkeit, 1996
19036#
19037#   This file is part of GNU Libtool.
19038#
19039# GNU Libtool is free software; you can redistribute it and/or
19040# modify it under the terms of the GNU General Public License as
19041# published by the Free Software Foundation; either version 2 of
19042# the License, or (at your option) any later version.
19043#
19044# As a special exception to the GNU General Public License,
19045# if you distribute this file as part of a program or library that
19046# is built using GNU Libtool, you may include this file under the
19047# same distribution terms that you use for the rest of that program.
19048#
19049# GNU Libtool is distributed in the hope that it will be useful,
19050# but WITHOUT ANY WARRANTY; without even the implied warranty of
19051# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19052# GNU General Public License for more details.
19053#
19054# You should have received a copy of the GNU General Public License
19055# along with GNU Libtool; see the file COPYING.  If not, a copy
19056# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19057# obtained by writing to the Free Software Foundation, Inc.,
19058# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19059
19060
19061# The names of the tagged configurations supported by this script.
19062available_tags="FC "
19063
19064# ### BEGIN LIBTOOL CONFIG
19065
19066# Which release of libtool.m4 was used?
19067macro_version=$macro_version
19068macro_revision=$macro_revision
19069
19070# Whether or not to build shared libraries.
19071build_libtool_libs=$enable_shared
19072
19073# Whether or not to build static libraries.
19074build_old_libs=$enable_static
19075
19076# What type of objects to build.
19077pic_mode=$pic_mode
19078
19079# Whether or not to optimize for fast installation.
19080fast_install=$enable_fast_install
19081
19082# Shell to use when invoking shell scripts.
19083SHELL=$lt_SHELL
19084
19085# An echo program that protects backslashes.
19086ECHO=$lt_ECHO
19087
19088# The host system.
19089host_alias=$host_alias
19090host=$host
19091host_os=$host_os
19092
19093# The build system.
19094build_alias=$build_alias
19095build=$build
19096build_os=$build_os
19097
19098# A sed program that does not truncate output.
19099SED=$lt_SED
19100
19101# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19102Xsed="\$SED -e 1s/^X//"
19103
19104# A grep program that handles long lines.
19105GREP=$lt_GREP
19106
19107# An ERE matcher.
19108EGREP=$lt_EGREP
19109
19110# A literal string matcher.
19111FGREP=$lt_FGREP
19112
19113# A BSD- or MS-compatible name lister.
19114NM=$lt_NM
19115
19116# Whether we need soft or hard links.
19117LN_S=$lt_LN_S
19118
19119# What is the maximum length of a command?
19120max_cmd_len=$max_cmd_len
19121
19122# Object file suffix (normally "o").
19123objext=$ac_objext
19124
19125# Executable file suffix (normally "").
19126exeext=$exeext
19127
19128# whether the shell understands "unset".
19129lt_unset=$lt_unset
19130
19131# turn spaces into newlines.
19132SP2NL=$lt_lt_SP2NL
19133
19134# turn newlines into spaces.
19135NL2SP=$lt_lt_NL2SP
19136
19137# An object symbol dumper.
19138OBJDUMP=$lt_OBJDUMP
19139
19140# Method to check whether dependent libraries are shared objects.
19141deplibs_check_method=$lt_deplibs_check_method
19142
19143# Command to use when deplibs_check_method == "file_magic".
19144file_magic_cmd=$lt_file_magic_cmd
19145
19146# The archiver.
19147AR=$lt_AR
19148AR_FLAGS=$lt_AR_FLAGS
19149
19150# A symbol stripping program.
19151STRIP=$lt_STRIP
19152
19153# Commands used to install an old-style archive.
19154RANLIB=$lt_RANLIB
19155old_postinstall_cmds=$lt_old_postinstall_cmds
19156old_postuninstall_cmds=$lt_old_postuninstall_cmds
19157
19158# Whether to use a lock for old archive extraction.
19159lock_old_archive_extraction=$lock_old_archive_extraction
19160
19161# A C compiler.
19162LTCC=$lt_CC
19163
19164# LTCC compiler flags.
19165LTCFLAGS=$lt_CFLAGS
19166
19167# Take the output of nm and produce a listing of raw symbols and C names.
19168global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19169
19170# Transform the output of nm in a proper C declaration.
19171global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19172
19173# Transform the output of nm in a C name address pair.
19174global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19175
19176# Transform the output of nm in a C name address pair when lib prefix is needed.
19177global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19178
19179# The name of the directory that contains temporary libtool files.
19180objdir=$objdir
19181
19182# Used to examine libraries when file_magic_cmd begins with "file".
19183MAGIC_CMD=$MAGIC_CMD
19184
19185# Must we lock files when doing compilation?
19186need_locks=$lt_need_locks
19187
19188# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19189DSYMUTIL=$lt_DSYMUTIL
19190
19191# Tool to change global to local symbols on Mac OS X.
19192NMEDIT=$lt_NMEDIT
19193
19194# Tool to manipulate fat objects and archives on Mac OS X.
19195LIPO=$lt_LIPO
19196
19197# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19198OTOOL=$lt_OTOOL
19199
19200# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19201OTOOL64=$lt_OTOOL64
19202
19203# Old archive suffix (normally "a").
19204libext=$libext
19205
19206# Shared library suffix (normally ".so").
19207shrext_cmds=$lt_shrext_cmds
19208
19209# The commands to extract the exported symbol list from a shared archive.
19210extract_expsyms_cmds=$lt_extract_expsyms_cmds
19211
19212# Variables whose values should be saved in libtool wrapper scripts and
19213# restored at link time.
19214variables_saved_for_relink=$lt_variables_saved_for_relink
19215
19216# Do we need the "lib" prefix for modules?
19217need_lib_prefix=$need_lib_prefix
19218
19219# Do we need a version for libraries?
19220need_version=$need_version
19221
19222# Library versioning type.
19223version_type=$version_type
19224
19225# Shared library runtime path variable.
19226runpath_var=$runpath_var
19227
19228# Shared library path variable.
19229shlibpath_var=$shlibpath_var
19230
19231# Is shlibpath searched before the hard-coded library search path?
19232shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19233
19234# Format of library name prefix.
19235libname_spec=$lt_libname_spec
19236
19237# List of archive names.  First name is the real one, the rest are links.
19238# The last name is the one that the linker finds with -lNAME
19239library_names_spec=$lt_library_names_spec
19240
19241# The coded name of the library, if different from the real name.
19242soname_spec=$lt_soname_spec
19243
19244# Permission mode override for installation of shared libraries.
19245install_override_mode=$lt_install_override_mode
19246
19247# Command to use after installation of a shared archive.
19248postinstall_cmds=$lt_postinstall_cmds
19249
19250# Command to use after uninstallation of a shared archive.
19251postuninstall_cmds=$lt_postuninstall_cmds
19252
19253# Commands used to finish a libtool library installation in a directory.
19254finish_cmds=$lt_finish_cmds
19255
19256# As "finish_cmds", except a single script fragment to be evaled but
19257# not shown.
19258finish_eval=$lt_finish_eval
19259
19260# Whether we should hardcode library paths into libraries.
19261hardcode_into_libs=$hardcode_into_libs
19262
19263# Compile-time system search path for libraries.
19264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19265
19266# Run-time system search path for libraries.
19267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19268
19269# Whether dlopen is supported.
19270dlopen_support=$enable_dlopen
19271
19272# Whether dlopen of programs is supported.
19273dlopen_self=$enable_dlopen_self
19274
19275# Whether dlopen of statically linked programs is supported.
19276dlopen_self_static=$enable_dlopen_self_static
19277
19278# Commands to strip libraries.
19279old_striplib=$lt_old_striplib
19280striplib=$lt_striplib
19281
19282
19283# The linker used to build libraries.
19284LD=$lt_LD
19285
19286# How to create reloadable object files.
19287reload_flag=$lt_reload_flag
19288reload_cmds=$lt_reload_cmds
19289
19290# Commands used to build an old-style archive.
19291old_archive_cmds=$lt_old_archive_cmds
19292
19293# A language specific compiler.
19294CC=$lt_compiler
19295
19296# Is the compiler the GNU compiler?
19297with_gcc=$GCC
19298
19299# Compiler flag to turn off builtin functions.
19300no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19301
19302# How to pass a linker flag through the compiler.
19303wl=$lt_lt_prog_compiler_wl
19304
19305# Additional compiler flags for building library objects.
19306pic_flag=$lt_lt_prog_compiler_pic
19307
19308# Compiler flag to prevent dynamic linking.
19309link_static_flag=$lt_lt_prog_compiler_static
19310
19311# Does compiler simultaneously support -c and -o options?
19312compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19313
19314# Whether or not to add -lc for building shared libraries.
19315build_libtool_need_lc=$archive_cmds_need_lc
19316
19317# Whether or not to disallow shared libs when runtime libs are static.
19318allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19319
19320# Compiler flag to allow reflexive dlopens.
19321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19322
19323# Compiler flag to generate shared objects directly from archives.
19324whole_archive_flag_spec=$lt_whole_archive_flag_spec
19325
19326# Whether the compiler copes with passing no objects directly.
19327compiler_needs_object=$lt_compiler_needs_object
19328
19329# Create an old-style archive from a shared archive.
19330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19331
19332# Create a temporary old-style archive to link instead of a shared archive.
19333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19334
19335# Commands used to build a shared archive.
19336archive_cmds=$lt_archive_cmds
19337archive_expsym_cmds=$lt_archive_expsym_cmds
19338
19339# Commands used to build a loadable module if different from building
19340# a shared archive.
19341module_cmds=$lt_module_cmds
19342module_expsym_cmds=$lt_module_expsym_cmds
19343
19344# Whether we are building with GNU ld or not.
19345with_gnu_ld=$lt_with_gnu_ld
19346
19347# Flag that allows shared libraries with undefined symbols to be built.
19348allow_undefined_flag=$lt_allow_undefined_flag
19349
19350# Flag that enforces no undefined symbols.
19351no_undefined_flag=$lt_no_undefined_flag
19352
19353# Flag to hardcode \$libdir into a binary during linking.
19354# This must work even if \$libdir does not exist
19355hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19356
19357# If ld is used when linking, flag to hardcode \$libdir into a binary
19358# during linking.  This must work even if \$libdir does not exist.
19359hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19360
19361# Whether we need a single "-rpath" flag with a separated argument.
19362hardcode_libdir_separator=$lt_hardcode_libdir_separator
19363
19364# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365# DIR into the resulting binary.
19366hardcode_direct=$hardcode_direct
19367
19368# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19369# DIR into the resulting binary and the resulting library dependency is
19370# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19371# library is relocated.
19372hardcode_direct_absolute=$hardcode_direct_absolute
19373
19374# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19375# into the resulting binary.
19376hardcode_minus_L=$hardcode_minus_L
19377
19378# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19379# into the resulting binary.
19380hardcode_shlibpath_var=$hardcode_shlibpath_var
19381
19382# Set to "yes" if building a shared library automatically hardcodes DIR
19383# into the library and all subsequent libraries and executables linked
19384# against it.
19385hardcode_automatic=$hardcode_automatic
19386
19387# Set to yes if linker adds runtime paths of dependent libraries
19388# to runtime path list.
19389inherit_rpath=$inherit_rpath
19390
19391# Whether libtool must link a program against all its dependency libraries.
19392link_all_deplibs=$link_all_deplibs
19393
19394# Fix the shell variable \$srcfile for the compiler.
19395fix_srcfile_path=$lt_fix_srcfile_path
19396
19397# Set to "yes" if exported symbols are required.
19398always_export_symbols=$always_export_symbols
19399
19400# The commands to list exported symbols.
19401export_symbols_cmds=$lt_export_symbols_cmds
19402
19403# Symbols that should not be listed in the preloaded symbols.
19404exclude_expsyms=$lt_exclude_expsyms
19405
19406# Symbols that must always be exported.
19407include_expsyms=$lt_include_expsyms
19408
19409# Commands necessary for linking programs (against libraries) with templates.
19410prelink_cmds=$lt_prelink_cmds
19411
19412# Specify filename containing input files.
19413file_list_spec=$lt_file_list_spec
19414
19415# How to hardcode a shared library path into an executable.
19416hardcode_action=$hardcode_action
19417
19418# The directories searched by this compiler when creating a shared library.
19419compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19420
19421# Dependencies to place before and after the objects being linked to
19422# create a shared library.
19423predep_objects=$lt_predep_objects
19424postdep_objects=$lt_postdep_objects
19425predeps=$lt_predeps
19426postdeps=$lt_postdeps
19427
19428# The library search path used internally by the compiler when linking
19429# a shared library.
19430compiler_lib_search_path=$lt_compiler_lib_search_path
19431
19432# ### END LIBTOOL CONFIG
19433
19434_LT_EOF
19435
19436  case $host_os in
19437  aix3*)
19438    cat <<\_LT_EOF >> "$cfgfile"
19439# AIX sometimes has problems with the GCC collect2 program.  For some
19440# reason, if we set the COLLECT_NAMES environment variable, the problems
19441# vanish in a puff of smoke.
19442if test "X${COLLECT_NAMES+set}" != Xset; then
19443  COLLECT_NAMES=
19444  export COLLECT_NAMES
19445fi
19446_LT_EOF
19447    ;;
19448  esac
19449
19450
19451ltmain="$ac_aux_dir/ltmain.sh"
19452
19453
19454  # We use sed instead of cat because bash on DJGPP gets confused if
19455  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19456  # text mode, it properly converts lines to CR/LF.  This bash problem
19457  # is reportedly fixed, but why not run on old versions too?
19458  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19459    || (rm -f "$cfgfile"; exit 1)
19460
19461  case $xsi_shell in
19462  yes)
19463    cat << \_LT_EOF >> "$cfgfile"
19464
19465# func_dirname file append nondir_replacement
19466# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19467# otherwise set result to NONDIR_REPLACEMENT.
19468func_dirname ()
19469{
19470  case ${1} in
19471    */*) func_dirname_result="${1%/*}${2}" ;;
19472    *  ) func_dirname_result="${3}" ;;
19473  esac
19474}
19475
19476# func_basename file
19477func_basename ()
19478{
19479  func_basename_result="${1##*/}"
19480}
19481
19482# func_dirname_and_basename file append nondir_replacement
19483# perform func_basename and func_dirname in a single function
19484# call:
19485#   dirname:  Compute the dirname of FILE.  If nonempty,
19486#             add APPEND to the result, otherwise set result
19487#             to NONDIR_REPLACEMENT.
19488#             value returned in "$func_dirname_result"
19489#   basename: Compute filename of FILE.
19490#             value retuned in "$func_basename_result"
19491# Implementation must be kept synchronized with func_dirname
19492# and func_basename. For efficiency, we do not delegate to
19493# those functions but instead duplicate the functionality here.
19494func_dirname_and_basename ()
19495{
19496  case ${1} in
19497    */*) func_dirname_result="${1%/*}${2}" ;;
19498    *  ) func_dirname_result="${3}" ;;
19499  esac
19500  func_basename_result="${1##*/}"
19501}
19502
19503# func_stripname prefix suffix name
19504# strip PREFIX and SUFFIX off of NAME.
19505# PREFIX and SUFFIX must not contain globbing or regex special
19506# characters, hashes, percent signs, but SUFFIX may contain a leading
19507# dot (in which case that matches only a dot).
19508func_stripname ()
19509{
19510  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19511  # positional parameters, so assign one to ordinary parameter first.
19512  func_stripname_result=${3}
19513  func_stripname_result=${func_stripname_result#"${1}"}
19514  func_stripname_result=${func_stripname_result%"${2}"}
19515}
19516
19517# func_opt_split
19518func_opt_split ()
19519{
19520  func_opt_split_opt=${1%%=*}
19521  func_opt_split_arg=${1#*=}
19522}
19523
19524# func_lo2o object
19525func_lo2o ()
19526{
19527  case ${1} in
19528    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19529    *)    func_lo2o_result=${1} ;;
19530  esac
19531}
19532
19533# func_xform libobj-or-source
19534func_xform ()
19535{
19536  func_xform_result=${1%.*}.lo
19537}
19538
19539# func_arith arithmetic-term...
19540func_arith ()
19541{
19542  func_arith_result=$(( $* ))
19543}
19544
19545# func_len string
19546# STRING may not start with a hyphen.
19547func_len ()
19548{
19549  func_len_result=${#1}
19550}
19551
19552_LT_EOF
19553    ;;
19554  *) # Bourne compatible functions.
19555    cat << \_LT_EOF >> "$cfgfile"
19556
19557# func_dirname file append nondir_replacement
19558# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19559# otherwise set result to NONDIR_REPLACEMENT.
19560func_dirname ()
19561{
19562  # Extract subdirectory from the argument.
19563  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19564  if test "X$func_dirname_result" = "X${1}"; then
19565    func_dirname_result="${3}"
19566  else
19567    func_dirname_result="$func_dirname_result${2}"
19568  fi
19569}
19570
19571# func_basename file
19572func_basename ()
19573{
19574  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19575}
19576
19577
19578# func_stripname prefix suffix name
19579# strip PREFIX and SUFFIX off of NAME.
19580# PREFIX and SUFFIX must not contain globbing or regex special
19581# characters, hashes, percent signs, but SUFFIX may contain a leading
19582# dot (in which case that matches only a dot).
19583# func_strip_suffix prefix name
19584func_stripname ()
19585{
19586  case ${2} in
19587    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19588    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19589  esac
19590}
19591
19592# sed scripts:
19593my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19594my_sed_long_arg='1s/^-[^=]*=//'
19595
19596# func_opt_split
19597func_opt_split ()
19598{
19599  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19600  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19601}
19602
19603# func_lo2o object
19604func_lo2o ()
19605{
19606  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19607}
19608
19609# func_xform libobj-or-source
19610func_xform ()
19611{
19612  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19613}
19614
19615# func_arith arithmetic-term...
19616func_arith ()
19617{
19618  func_arith_result=`expr "$@"`
19619}
19620
19621# func_len string
19622# STRING may not start with a hyphen.
19623func_len ()
19624{
19625  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19626}
19627
19628_LT_EOF
19629esac
19630
19631case $lt_shell_append in
19632  yes)
19633    cat << \_LT_EOF >> "$cfgfile"
19634
19635# func_append var value
19636# Append VALUE to the end of shell variable VAR.
19637func_append ()
19638{
19639  eval "$1+=\$2"
19640}
19641_LT_EOF
19642    ;;
19643  *)
19644    cat << \_LT_EOF >> "$cfgfile"
19645
19646# func_append var value
19647# Append VALUE to the end of shell variable VAR.
19648func_append ()
19649{
19650  eval "$1=\$$1\$2"
19651}
19652
19653_LT_EOF
19654    ;;
19655  esac
19656
19657
19658  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19659    || (rm -f "$cfgfile"; exit 1)
19660
19661  mv -f "$cfgfile" "$ofile" ||
19662    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19663  chmod +x "$ofile"
19664
19665
19666    cat <<_LT_EOF >> "$ofile"
19667
19668# ### BEGIN LIBTOOL TAG CONFIG: FC
19669
19670# The linker used to build libraries.
19671LD=$lt_LD_FC
19672
19673# How to create reloadable object files.
19674reload_flag=$lt_reload_flag_FC
19675reload_cmds=$lt_reload_cmds_FC
19676
19677# Commands used to build an old-style archive.
19678old_archive_cmds=$lt_old_archive_cmds_FC
19679
19680# A language specific compiler.
19681CC=$lt_compiler_FC
19682
19683# Is the compiler the GNU compiler?
19684with_gcc=$GCC_FC
19685
19686# Compiler flag to turn off builtin functions.
19687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19688
19689# How to pass a linker flag through the compiler.
19690wl=$lt_lt_prog_compiler_wl_FC
19691
19692# Additional compiler flags for building library objects.
19693pic_flag=$lt_lt_prog_compiler_pic_FC
19694
19695# Compiler flag to prevent dynamic linking.
19696link_static_flag=$lt_lt_prog_compiler_static_FC
19697
19698# Does compiler simultaneously support -c and -o options?
19699compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19700
19701# Whether or not to add -lc for building shared libraries.
19702build_libtool_need_lc=$archive_cmds_need_lc_FC
19703
19704# Whether or not to disallow shared libs when runtime libs are static.
19705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19706
19707# Compiler flag to allow reflexive dlopens.
19708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19709
19710# Compiler flag to generate shared objects directly from archives.
19711whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19712
19713# Whether the compiler copes with passing no objects directly.
19714compiler_needs_object=$lt_compiler_needs_object_FC
19715
19716# Create an old-style archive from a shared archive.
19717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19718
19719# Create a temporary old-style archive to link instead of a shared archive.
19720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19721
19722# Commands used to build a shared archive.
19723archive_cmds=$lt_archive_cmds_FC
19724archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19725
19726# Commands used to build a loadable module if different from building
19727# a shared archive.
19728module_cmds=$lt_module_cmds_FC
19729module_expsym_cmds=$lt_module_expsym_cmds_FC
19730
19731# Whether we are building with GNU ld or not.
19732with_gnu_ld=$lt_with_gnu_ld_FC
19733
19734# Flag that allows shared libraries with undefined symbols to be built.
19735allow_undefined_flag=$lt_allow_undefined_flag_FC
19736
19737# Flag that enforces no undefined symbols.
19738no_undefined_flag=$lt_no_undefined_flag_FC
19739
19740# Flag to hardcode \$libdir into a binary during linking.
19741# This must work even if \$libdir does not exist
19742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19743
19744# If ld is used when linking, flag to hardcode \$libdir into a binary
19745# during linking.  This must work even if \$libdir does not exist.
19746hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19747
19748# Whether we need a single "-rpath" flag with a separated argument.
19749hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19750
19751# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19752# DIR into the resulting binary.
19753hardcode_direct=$hardcode_direct_FC
19754
19755# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19756# DIR into the resulting binary and the resulting library dependency is
19757# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19758# library is relocated.
19759hardcode_direct_absolute=$hardcode_direct_absolute_FC
19760
19761# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19762# into the resulting binary.
19763hardcode_minus_L=$hardcode_minus_L_FC
19764
19765# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19766# into the resulting binary.
19767hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19768
19769# Set to "yes" if building a shared library automatically hardcodes DIR
19770# into the library and all subsequent libraries and executables linked
19771# against it.
19772hardcode_automatic=$hardcode_automatic_FC
19773
19774# Set to yes if linker adds runtime paths of dependent libraries
19775# to runtime path list.
19776inherit_rpath=$inherit_rpath_FC
19777
19778# Whether libtool must link a program against all its dependency libraries.
19779link_all_deplibs=$link_all_deplibs_FC
19780
19781# Fix the shell variable \$srcfile for the compiler.
19782fix_srcfile_path=$lt_fix_srcfile_path_FC
19783
19784# Set to "yes" if exported symbols are required.
19785always_export_symbols=$always_export_symbols_FC
19786
19787# The commands to list exported symbols.
19788export_symbols_cmds=$lt_export_symbols_cmds_FC
19789
19790# Symbols that should not be listed in the preloaded symbols.
19791exclude_expsyms=$lt_exclude_expsyms_FC
19792
19793# Symbols that must always be exported.
19794include_expsyms=$lt_include_expsyms_FC
19795
19796# Commands necessary for linking programs (against libraries) with templates.
19797prelink_cmds=$lt_prelink_cmds_FC
19798
19799# Specify filename containing input files.
19800file_list_spec=$lt_file_list_spec_FC
19801
19802# How to hardcode a shared library path into an executable.
19803hardcode_action=$hardcode_action_FC
19804
19805# The directories searched by this compiler when creating a shared library.
19806compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19807
19808# Dependencies to place before and after the objects being linked to
19809# create a shared library.
19810predep_objects=$lt_predep_objects_FC
19811postdep_objects=$lt_postdep_objects_FC
19812predeps=$lt_predeps_FC
19813postdeps=$lt_postdeps_FC
19814
19815# The library search path used internally by the compiler when linking
19816# a shared library.
19817compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19818
19819# ### END LIBTOOL TAG CONFIG: FC
19820_LT_EOF
19821
19822 ;;
19823
19824  esac
19825done # for ac_tag
19826
19827
19828as_fn_exit 0
19829_ACEOF
19830ac_clean_files=$ac_clean_files_save
19831
19832test $ac_write_fail = 0 ||
19833  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19834
19835
19836# configure is writing to config.log, and then calls config.status.
19837# config.status does its own redirection, appending to config.log.
19838# Unfortunately, on DOS this fails, as config.log is still kept open
19839# by configure, so config.status won't be able to write to it; its
19840# output is simply discarded.  So we exec the FD to /dev/null,
19841# effectively closing config.log, so it can be properly (re)opened and
19842# appended to by config.status.  When coming back to configure, we
19843# need to make the FD available again.
19844if test "$no_create" != yes; then
19845  ac_cs_success=:
19846  ac_config_status_args=
19847  test "$silent" = yes &&
19848    ac_config_status_args="$ac_config_status_args --quiet"
19849  exec 5>/dev/null
19850  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19851  exec 5>>config.log
19852  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19853  # would make configure fail if this is the last instruction.
19854  $ac_cs_success || as_fn_exit 1
19855fi
19856if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19858$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19859fi
19860
19861