source: trunk/configure @ 357

Last change on this file since 357 was 357, checked in by kulshres, 7 years ago

regenerate files

File size: 593.8 KB
Line 
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for adolc 2.3.0-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63        expr "X$arg" : "X\\(.*\\)$as_nl";
64        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""        $as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227         /*)
228           for as_base in sh bash ksh sh5; do
229             # Try only shells that exist, to save several forks.
230             as_shell=$as_dir/$as_base
231             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238           done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: adol-c@list.coin-or.org about your system, including
280$0: any error possibly output before this message. Then
281$0: install a modern shell, or manually run the script
282$0: under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343         X"$as_dir" : 'X\(//\)[^/]' \| \
344         X"$as_dir" : 'X\(//\)$' \| \
345         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348            s//\1/
349            q
350          }
351          /^X\(\/\/\)[^/].*/{
352            s//\1/
353            q
354          }
355          /^X\(\/\/\)$/{
356            s//\1/
357            q
358          }
359          /^X\(\/\).*/{
360            s//\1/
361            q
362          }
363          s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452         X"$0" : 'X\(//\)$' \| \
453         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456            s//\1/
457            q
458          }
459          /^X\/\(\/\/\)$/{
460            s//\1/
461            q
462          }
463          /^X\/\(\/\).*/{
464            s//\1/
465            q
466          }
467          s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T=' ';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='adolc'
593PACKAGE_TARNAME='adolc'
594PACKAGE_VERSION='2.3.0-trunk'
595PACKAGE_STRING='adolc 2.3.0-trunk'
596PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
597PACKAGE_URL=''
598
599ac_unique_file="ADOL-C/src/adouble.cpp"
600ac_default_prefix=${HOME}/adolc_base
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640ac_adolc_cxxflags
641ac_adolc_cflags
642PAREXA_FALSE
643PAREXA_TRUE
644ADDEXA_FALSE
645ADDEXA_TRUE
646DOCEXA_FALSE
647DOCEXA_TRUE
648COLPACK_LIBS
649COLPACK_CFLAGS
650SPARSE_FALSE
651SPARSE_TRUE
652HAVE_LIBCOLPACK_FALSE
653HAVE_LIBCOLPACK_TRUE
654ADOLC_PATCHLEVEL
655ADOLC_SUBVERSION
656ADOLC_VERSION
657ac_aux_dir
658LIBOBJS
659_lib
660CXXCPP
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667RANLIB
668ac_ct_AR
669AR
670NM
671ac_ct_DUMPBIN
672DUMPBIN
673LD
674FGREP
675EGREP
676GREP
677SED
678LIBTOOL
679OBJDUMP
680DLLTOOL
681AS
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690LN_S
691CPP
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695ac_ct_CC
696CFLAGS
697CC
698am__fastdepCXX_FALSE
699am__fastdepCXX_TRUE
700CXXDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CXX
711CPPFLAGS
712LDFLAGS
713CXXFLAGS
714CXX
715AM_BACKSLASH
716AM_DEFAULT_VERBOSITY
717AM_DEFAULT_V
718AM_V
719am__untar
720am__tar
721AMTAR
722am__leading_dot
723SET_MAKE
724AWK
725mkdir_p
726MKDIR_P
727INSTALL_STRIP_PROGRAM
728STRIP
729install_sh
730MAKEINFO
731AUTOHEADER
732AUTOMAKE
733AUTOCONF
734ACLOCAL
735VERSION
736PACKAGE
737CYGPATH_W
738am__isrc
739INSTALL_DATA
740INSTALL_SCRIPT
741INSTALL_PROGRAM
742target_alias
743host_alias
744build_alias
745LIBS
746ECHO_T
747ECHO_N
748ECHO_C
749DEFS
750mandir
751localedir
752libdir
753psdir
754pdfdir
755dvidir
756htmldir
757infodir
758docdir
759oldincludedir
760includedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_shared
786enable_static
787with_pic
788enable_fast_install
789with_gnu_ld
790with_sysroot
791enable_libtool_lock
792enable_debug
793enable_harddebug
794enable_stdczero
795enable_tserrno
796enable_safe_extern
797with_openmp_flag
798enable_sparse
799with_colpack
800enable_docexa
801enable_addexa
802enable_parexa
803with_cflags
804with_cxxflags
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CXX
810CXXFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CCC
815CC
816CFLAGS
817CPP
818CXXCPP'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936         ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962         ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166         ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182         ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                datadir sysconfdir sharedstatedir localstatedir includedir \
1245                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299         X"$as_myself" : 'X\(//\)[^/]' \| \
1300         X"$as_myself" : 'X\(//\)$' \| \
1301         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304            s//\1/
1305            q
1306          }
1307          /^X\(\/\/\)[^/].*/{
1308            s//\1/
1309            q
1310          }
1311          /^X\(\/\/\)$/{
1312            s//\1/
1313            q
1314          }
1315          /^X\(\/\).*/{
1316            s//\1/
1317            q
1318          }
1319          s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334        pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures adolc 2.3.0-trunk to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of adolc 2.3.0-trunk:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --enable-shared[=PKGS]  build shared libraries [default=yes]
1444  --enable-static[=PKGS]  build static libraries [default=yes]
1445  --enable-fast-install[=PKGS]
1446                          optimize for fast installation [default=yes]
1447  --disable-libtool-lock  avoid locking (might break parallel builds)
1448
1449  --enable-debug          enable ADOL-C debug mode [default=no]
1450
1451  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1452
1453  --enable-stdczero       adouble standard constructor zeros value (at the
1454                          cost of performance) [default=no]
1455
1456  --enable-tserrno        use errno as thread number cache [default=no]
1457
1458  --enable-safe-extern    backup all adoubles before calling an external
1459                          function [default=no]
1460
1461  --enable-sparse         build sparse drivers [default=disabled]
1462
1463  --enable-docexa         build documented examples [default=disabled]
1464  --enable-addexa         build additional examples [default=disabled]
1465  --enable-parexa         build parallel example [default=disabled], if
1466                          enabled -with-openmp-flag=FLAG required
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1472                          both]
1473  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1474  --with-sysroot=DIR Search for dependent libraries within DIR
1475                        (or the compiler's sysroot if not specified).
1476  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1477                          [default=none]
1478
1479  --with-colpack=DIR      path to the colpack library and headers
1480                          [default=system libraries]
1481  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1482  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1483
1484Some influential environment variables:
1485  CXX         C++ compiler command
1486  CXXFLAGS    C++ compiler flags
1487  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488              nonstandard directory <lib dir>
1489  LIBS        libraries to pass to the linker, e.g. -l<library>
1490  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491              you have headers in a nonstandard directory <include dir>
1492  CC          C compiler command
1493  CFLAGS      C compiler flags
1494  CPP         C preprocessor
1495  CXXCPP      C++ preprocessor
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500Report bugs to <adol-c@list.coin-or.org>.
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506  # If there are subdirs, report their specific --help.
1507  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508    test -d "$ac_dir" ||
1509      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510      continue
1511    ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517  # A ".." for each directory in $ac_dir_suffix.
1518  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519  case $ac_top_builddir_sub in
1520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522  esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530  .)  # We are building in place.
1531    ac_srcdir=.
1532    ac_top_srcdir=$ac_top_builddir_sub
1533    ac_abs_top_srcdir=$ac_pwd ;;
1534  [\\/]* | ?:[\\/]* )  # Absolute name.
1535    ac_srcdir=$srcdir$ac_dir_suffix;
1536    ac_top_srcdir=$srcdir
1537    ac_abs_top_srcdir=$srcdir ;;
1538  *) # Relative name.
1539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540    ac_top_srcdir=$ac_top_build_prefix$srcdir
1541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545    cd "$ac_dir" || { ac_status=$?; continue; }
1546    # Check for guested configure.
1547    if test -f "$ac_srcdir/configure.gnu"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550    elif test -f "$ac_srcdir/configure"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure" --help=recursive
1553    else
1554      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555    fi || ac_status=$?
1556    cd "$ac_pwd" || { ac_status=$?; break; }
1557  done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562  cat <<\_ACEOF
1563adolc configure 2.3.0-trunk
1564generated by GNU Autoconf 2.69
1565
1566Copyright (C) 2012 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570  exit
1571fi
1572
1573## ------------------------ ##
1574## Autoconf initialization. ##
1575## ------------------------ ##
1576
1577# ac_fn_cxx_try_compile LINENO
1578# ----------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_cxx_try_compile ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  rm -f conftest.$ac_objext
1584  if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_compile") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && {
1600         test -z "$ac_cxx_werror_flag" ||
1601         test ! -s conftest.err
1602       } && test -s conftest.$ac_objext; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608        ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_cxx_try_compile
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638         test -z "$ac_c_werror_flag" ||
1639         test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646        ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676         test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_try_link LINENO
1691# -----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_link ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  rm -f conftest.$ac_objext conftest$ac_exeext
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && {
1713         test -z "$ac_c_werror_flag" ||
1714         test ! -s conftest.err
1715       } && test -s conftest$ac_exeext && {
1716         test "$cross_compiling" = yes ||
1717         test -x conftest$ac_exeext
1718       }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724        ac_retval=1
1725fi
1726  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728  # interfere with the next link command; also delete a directory that is
1729  # left behind by Apple's compiler.  We do this before executing the actions.
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_link
1735
1736# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists and can be compiled using the include files in
1739# INCLUDES, setting the cache variable VAR accordingly.
1740ac_fn_c_check_header_compile ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  eval "$3=yes"
1755else
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765} # ac_fn_c_check_header_compile
1766
1767# ac_fn_c_try_run LINENO
1768# ----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770# that executables *can* be run.
1771ac_fn_c_try_run ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>&5
1782  ac_status=$?
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785  { { case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_try") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; }; }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: program exited with status $ac_status" >&5
1798       $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801       ac_retval=$ac_status
1802fi
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_run
1808
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824#define $2 innocuous_$2
1825
1826/* System header to define __stub macros and hopefully few prototypes,
1827    which can conflict with char $2 (); below.
1828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829    <limits.h> exists even on freestanding compilers.  */
1830
1831#ifdef __STDC__
1832# include <limits.h>
1833#else
1834# include <assert.h>
1835#endif
1836
1837#undef $2
1838
1839/* Override any GCC internal prototype to avoid an error.
1840   Use char because int might match the return type of a GCC
1841   builtin and then its argument prototype would still apply.  */
1842#ifdef __cplusplus
1843extern "C"
1844#endif
1845char $2 ();
1846/* The GNU C library defines this for functions which it implements
1847    to always fail with ENOSYS.  Some functions are actually named
1848    something starting with __ and the normal name is an alias.  */
1849#if defined __stub_$2 || defined __stub___$2
1850choke me
1851#endif
1852
1853int
1854main ()
1855{
1856return $2 ();
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_link "$LINENO"; then :
1862  eval "$3=yes"
1863else
1864  eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext \
1867    conftest$ac_exeext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875
1876# ac_fn_cxx_try_cpp LINENO
1877# ------------------------
1878# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_cxx_try_cpp ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if { { ac_try="$ac_cpp conftest.$ac_ext"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } > conftest.i && {
1898         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1899         test ! -s conftest.err
1900       }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906    ac_retval=1
1907fi
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_cxx_try_cpp
1912
1913# ac_fn_cxx_try_link LINENO
1914# -------------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_cxx_try_link ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  rm -f conftest.$ac_objext conftest$ac_exeext
1920  if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_link") 2>conftest.err
1928  ac_status=$?
1929  if test -s conftest.err; then
1930    grep -v '^ *+' conftest.err >conftest.er1
1931    cat conftest.er1 >&5
1932    mv -f conftest.er1 conftest.err
1933  fi
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && {
1936         test -z "$ac_cxx_werror_flag" ||
1937         test ! -s conftest.err
1938       } && test -s conftest$ac_exeext && {
1939         test "$cross_compiling" = yes ||
1940         test -x conftest$ac_exeext
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947        ac_retval=1
1948fi
1949  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951  # interfere with the next link command; also delete a directory that is
1952  # left behind by Apple's compiler.  We do this before executing the actions.
1953  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_cxx_try_link
1958
1959# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960# --------------------------------------------
1961# Tries to find the compile-time value of EXPR in a program that includes
1962# INCLUDES, setting VAR accordingly. Returns whether the value could be
1963# computed
1964ac_fn_c_compute_int ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if test "$cross_compiling" = yes; then
1968    # Depending upon the size, compute the lo and hi bounds.
1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972int
1973main ()
1974{
1975static int test_array [1 - 2 * !(($2) >= 0)];
1976test_array [0] = 0;
1977return test_array [0];
1978
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  ac_lo=0 ac_mid=0
1985  while :; do
1986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993test_array [0] = 0;
1994return test_array [0];
1995
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001  ac_hi=$ac_mid; break
2002else
2003  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2004                        if test $ac_lo -le $ac_mid; then
2005                          ac_lo= ac_hi=
2006                          break
2007                        fi
2008                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011  done
2012else
2013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$4
2016int
2017main ()
2018{
2019static int test_array [1 - 2 * !(($2) < 0)];
2020test_array [0] = 0;
2021return test_array [0];
2022
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  ac_hi=-1 ac_mid=-1
2029  while :; do
2030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037test_array [0] = 0;
2038return test_array [0];
2039
2040  ;
2041  return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045  ac_lo=$ac_mid; break
2046else
2047  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2048                        if test $ac_mid -le $ac_hi; then
2049                          ac_lo= ac_hi=
2050                          break
2051                        fi
2052                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055  done
2056else
2057  ac_lo= ac_hi=
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062# Binary search between lo and hi bounds.
2063while test "x$ac_lo" != "x$ac_hi"; do
2064  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072test_array [0] = 0;
2073return test_array [0];
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_hi=$ac_mid
2081else
2082  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085done
2086case $ac_lo in #((
2087?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088'') ac_retval=1 ;;
2089esac
2090  else
2091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094static long int longval () { return $2; }
2095static unsigned long int ulongval () { return $2; }
2096#include <stdio.h>
2097#include <stdlib.h>
2098int
2099main ()
2100{
2101
2102  FILE *f = fopen ("conftest.val", "w");
2103  if (! f)
2104    return 1;
2105  if (($2) < 0)
2106    {
2107      long int i = longval ();
2108      if (i != ($2))
2109        return 1;
2110      fprintf (f, "%ld", i);
2111    }
2112  else
2113    {
2114      unsigned long int i = ulongval ();
2115      if (i != ($2))
2116        return 1;
2117      fprintf (f, "%lu", i);
2118    }
2119  /* Do not output a trailing newline, as this causes \r\n confusion
2120     on some platforms.  */
2121  return ferror (f) || fclose (f) != 0;
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_run "$LINENO"; then :
2128  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129else
2130  ac_retval=1
2131fi
2132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133  conftest.$ac_objext conftest.beam conftest.$ac_ext
2134rm -f conftest.val
2135
2136  fi
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138  as_fn_set_status $ac_retval
2139
2140} # ac_fn_c_compute_int
2141
2142# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2143# -------------------------------------------
2144# Tests whether TYPE exists after having included INCLUDES, setting cache
2145# variable VAR accordingly.
2146ac_fn_c_check_type ()
2147{
2148  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150$as_echo_n "checking for $2... " >&6; }
2151if eval \${$3+:} false; then :
2152  $as_echo_n "(cached) " >&6
2153else
2154  eval "$3=no"
2155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h.  */
2157$4
2158int
2159main ()
2160{
2161if (sizeof ($2))
2162         return 0;
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$4
2171int
2172main ()
2173{
2174if (sizeof (($2)))
2175            return 0;
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181
2182else
2183  eval "$3=yes"
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188fi
2189eval ac_res=\$$3
2190               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193
2194} # ac_fn_c_check_type
2195
2196# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2197# -------------------------------------------------------
2198# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2199# the include files in INCLUDES and setting the cache variable VAR
2200# accordingly.
2201ac_fn_c_check_header_mongrel ()
2202{
2203  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204  if eval \${$3+:} false; then :
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206$as_echo_n "checking for $2... " >&6; }
2207if eval \${$3+:} false; then :
2208  $as_echo_n "(cached) " >&6
2209fi
2210eval ac_res=\$$3
2211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213else
2214  # Is the header compilable?
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216$as_echo_n "checking $2 usability... " >&6; }
2217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h.  */
2219$4
2220#include <$2>
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  ac_header_compiler=yes
2224else
2225  ac_header_compiler=no
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2229$as_echo "$ac_header_compiler" >&6; }
2230
2231# Is the header present?
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233$as_echo_n "checking $2 presence... " >&6; }
2234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h.  */
2236#include <$2>
2237_ACEOF
2238if ac_fn_c_try_cpp "$LINENO"; then :
2239  ac_header_preproc=yes
2240else
2241  ac_header_preproc=no
2242fi
2243rm -f conftest.err conftest.i conftest.$ac_ext
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2245$as_echo "$ac_header_preproc" >&6; }
2246
2247# So?  What about this header?
2248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2249  yes:no: )
2250    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2251$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2252    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2253$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254    ;;
2255  no:yes:* )
2256    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2258    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2259$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2260    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2262    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2263$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2264    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266( $as_echo "## -------------------------------------- ##
2267## Report this to adol-c@list.coin-or.org ##
2268## -------------------------------------- ##"
2269     ) | sed "s/^/$as_me: WARNING:     /" >&2
2270    ;;
2271esac
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
2274if eval \${$3+:} false; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  eval "$3=\$ac_header_compiler"
2278fi
2279eval ac_res=\$$3
2280               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
2282fi
2283  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284
2285} # ac_fn_c_check_header_mongrel
2286
2287# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2288# ---------------------------------------------------------
2289# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2290# the include files in INCLUDES and setting the cache variable VAR
2291# accordingly.
2292ac_fn_cxx_check_header_mongrel ()
2293{
2294  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295  if eval \${$3+:} false; then :
2296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297$as_echo_n "checking for $2... " >&6; }
2298if eval \${$3+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300fi
2301eval ac_res=\$$3
2302               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
2304else
2305  # Is the header compilable?
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2307$as_echo_n "checking $2 usability... " >&6; }
2308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309/* end confdefs.h.  */
2310$4
2311#include <$2>
2312_ACEOF
2313if ac_fn_cxx_try_compile "$LINENO"; then :
2314  ac_header_compiler=yes
2315else
2316  ac_header_compiler=no
2317fi
2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2320$as_echo "$ac_header_compiler" >&6; }
2321
2322# Is the header present?
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2324$as_echo_n "checking $2 presence... " >&6; }
2325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h.  */
2327#include <$2>
2328_ACEOF
2329if ac_fn_cxx_try_cpp "$LINENO"; then :
2330  ac_header_preproc=yes
2331else
2332  ac_header_preproc=no
2333fi
2334rm -f conftest.err conftest.i conftest.$ac_ext
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2336$as_echo "$ac_header_preproc" >&6; }
2337
2338# So?  What about this header?
2339case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2340  yes:no: )
2341    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2342$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2343    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2345    ;;
2346  no:yes:* )
2347    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2348$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2350$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2351    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2352$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2353    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2354$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2355    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2356$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2357( $as_echo "## -------------------------------------- ##
2358## Report this to adol-c@list.coin-or.org ##
2359## -------------------------------------- ##"
2360     ) | sed "s/^/$as_me: WARNING:     /" >&2
2361    ;;
2362esac
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364$as_echo_n "checking for $2... " >&6; }
2365if eval \${$3+:} false; then :
2366  $as_echo_n "(cached) " >&6
2367else
2368  eval "$3=\$ac_header_compiler"
2369fi
2370eval ac_res=\$$3
2371               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373fi
2374  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375
2376} # ac_fn_cxx_check_header_mongrel
2377cat >config.log <<_ACEOF
2378This file contains any messages produced by compilers while
2379running configure, to aid debugging if configure makes a mistake.
2380
2381It was created by adolc $as_me 2.3.0-trunk, which was
2382generated by GNU Autoconf 2.69.  Invocation command line was
2383
2384  $ $0 $@
2385
2386_ACEOF
2387exec 5>>config.log
2388{
2389cat <<_ASUNAME
2390## --------- ##
2391## Platform. ##
2392## --------- ##
2393
2394hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2395uname -m = `(uname -m) 2>/dev/null || echo unknown`
2396uname -r = `(uname -r) 2>/dev/null || echo unknown`
2397uname -s = `(uname -s) 2>/dev/null || echo unknown`
2398uname -v = `(uname -v) 2>/dev/null || echo unknown`
2399
2400/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2401/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2402
2403/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2404/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2405/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2406/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2407/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2408/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2409/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2410
2411_ASUNAME
2412
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416  IFS=$as_save_IFS
2417  test -z "$as_dir" && as_dir=.
2418    $as_echo "PATH: $as_dir"
2419  done
2420IFS=$as_save_IFS
2421
2422} >&5
2423
2424cat >&5 <<_ACEOF
2425
2426
2427## ----------- ##
2428## Core tests. ##
2429## ----------- ##
2430
2431_ACEOF
2432
2433
2434# Keep a trace of the command line.
2435# Strip out --no-create and --no-recursion so they do not pile up.
2436# Strip out --silent because we don't want to record it for future runs.
2437# Also quote any args containing shell meta-characters.
2438# Make two passes to allow for proper duplicate-argument suppression.
2439ac_configure_args=
2440ac_configure_args0=
2441ac_configure_args1=
2442ac_must_keep_next=false
2443for ac_pass in 1 2
2444do
2445  for ac_arg
2446  do
2447    case $ac_arg in
2448    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2449    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2450    | -silent | --silent | --silen | --sile | --sil)
2451      continue ;;
2452    *\'*)
2453      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454    esac
2455    case $ac_pass in
2456    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2457    2)
2458      as_fn_append ac_configure_args1 " '$ac_arg'"
2459      if test $ac_must_keep_next = true; then
2460        ac_must_keep_next=false # Got value, back to normal.
2461      else
2462        case $ac_arg in
2463          *=* | --config-cache | -C | -disable-* | --disable-* \
2464          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2465          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2466          | -with-* | --with-* | -without-* | --without-* | --x)
2467            case "$ac_configure_args0 " in
2468              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2469            esac
2470            ;;
2471          -* ) ac_must_keep_next=true ;;
2472        esac
2473      fi
2474      as_fn_append ac_configure_args " '$ac_arg'"
2475      ;;
2476    esac
2477  done
2478done
2479{ ac_configure_args0=; unset ac_configure_args0;}
2480{ ac_configure_args1=; unset ac_configure_args1;}
2481
2482# When interrupted or exit'd, cleanup temporary files, and complete
2483# config.log.  We remove comments because anyway the quotes in there
2484# would cause problems or look ugly.
2485# WARNING: Use '\'' to represent an apostrophe within the trap.
2486# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2487trap 'exit_status=$?
2488  # Save into config.log some information that might help in debugging.
2489  {
2490    echo
2491
2492    $as_echo "## ---------------- ##
2493## Cache variables. ##
2494## ---------------- ##"
2495    echo
2496    # The following way of writing the cache mishandles newlines in values,
2497(
2498  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2499    eval ac_val=\$$ac_var
2500    case $ac_val in #(
2501    *${as_nl}*)
2502      case $ac_var in #(
2503      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2504$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505      esac
2506      case $ac_var in #(
2507      _ | IFS | as_nl) ;; #(
2508      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2509      *) { eval $ac_var=; unset $ac_var;} ;;
2510      esac ;;
2511    esac
2512  done
2513  (set) 2>&1 |
2514    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2515    *${as_nl}ac_space=\ *)
2516      sed -n \
2517        "s/'\''/'\''\\\\'\'''\''/g;
2518          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519      ;; #(
2520    *)
2521      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522      ;;
2523    esac |
2524    sort
2525)
2526    echo
2527
2528    $as_echo "## ----------------- ##
2529## Output variables. ##
2530## ----------------- ##"
2531    echo
2532    for ac_var in $ac_subst_vars
2533    do
2534      eval ac_val=\$$ac_var
2535      case $ac_val in
2536      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537      esac
2538      $as_echo "$ac_var='\''$ac_val'\''"
2539    done | sort
2540    echo
2541
2542    if test -n "$ac_subst_files"; then
2543      $as_echo "## ------------------- ##
2544## File substitutions. ##
2545## ------------------- ##"
2546      echo
2547      for ac_var in $ac_subst_files
2548      do
2549        eval ac_val=\$$ac_var
2550        case $ac_val in
2551        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2552        esac
2553        $as_echo "$ac_var='\''$ac_val'\''"
2554      done | sort
2555      echo
2556    fi
2557
2558    if test -s confdefs.h; then
2559      $as_echo "## ----------- ##
2560## confdefs.h. ##
2561## ----------- ##"
2562      echo
2563      cat confdefs.h
2564      echo
2565    fi
2566    test "$ac_signal" != 0 &&
2567      $as_echo "$as_me: caught signal $ac_signal"
2568    $as_echo "$as_me: exit $exit_status"
2569  } >&5
2570  rm -f core *.core core.conftest.* &&
2571    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2572    exit $exit_status
2573' 0
2574for ac_signal in 1 2 13 15; do
2575  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2576done
2577ac_signal=0
2578
2579# confdefs.h avoids OS command line length limits that DEFS can exceed.
2580rm -f -r conftest* confdefs.h
2581
2582$as_echo "/* confdefs.h */" > confdefs.h
2583
2584# Predefined preprocessor variables.
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_NAME "$PACKAGE_NAME"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_VERSION "$PACKAGE_VERSION"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_STRING "$PACKAGE_STRING"
2600_ACEOF
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2604_ACEOF
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_URL "$PACKAGE_URL"
2608_ACEOF
2609
2610
2611# Let the site file select an alternate cache file if it wants to.
2612# Prefer an explicitly selected file to automatically selected ones.
2613ac_site_file1=NONE
2614ac_site_file2=NONE
2615if test -n "$CONFIG_SITE"; then
2616  # We do not want a PATH search for config.site.
2617  case $CONFIG_SITE in #((
2618    -*)  ac_site_file1=./$CONFIG_SITE;;
2619    */*) ac_site_file1=$CONFIG_SITE;;
2620    *)   ac_site_file1=./$CONFIG_SITE;;
2621  esac
2622elif test "x$prefix" != xNONE; then
2623  ac_site_file1=$prefix/share/config.site
2624  ac_site_file2=$prefix/etc/config.site
2625else
2626  ac_site_file1=$ac_default_prefix/share/config.site
2627  ac_site_file2=$ac_default_prefix/etc/config.site
2628fi
2629for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2630do
2631  test "x$ac_site_file" = xNONE && continue
2632  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2633    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2634$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2635    sed 's/^/| /' "$ac_site_file" >&5
2636    . "$ac_site_file" \
2637      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639as_fn_error $? "failed to load site script $ac_site_file
2640See \`config.log' for more details" "$LINENO" 5; }
2641  fi
2642done
2643
2644if test -r "$cache_file"; then
2645  # Some versions of bash will fail to source /dev/null (special files
2646  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2647  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2648    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2649$as_echo "$as_me: loading cache $cache_file" >&6;}
2650    case $cache_file in
2651      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2652      *)                      . "./$cache_file";;
2653    esac
2654  fi
2655else
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2657$as_echo "$as_me: creating cache $cache_file" >&6;}
2658  >$cache_file
2659fi
2660
2661# Check that the precious variables saved in the cache have kept the same
2662# value.
2663ac_cache_corrupted=false
2664for ac_var in $ac_precious_vars; do
2665  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2666  eval ac_new_set=\$ac_env_${ac_var}_set
2667  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2668  eval ac_new_val=\$ac_env_${ac_var}_value
2669  case $ac_old_set,$ac_new_set in
2670    set,)
2671      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2672$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2673      ac_cache_corrupted=: ;;
2674    ,set)
2675      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2676$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2677      ac_cache_corrupted=: ;;
2678    ,);;
2679    *)
2680      if test "x$ac_old_val" != "x$ac_new_val"; then
2681        # differences in whitespace do not lead to failure.
2682        ac_old_val_w=`echo x $ac_old_val`
2683        ac_new_val_w=`echo x $ac_new_val`
2684        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2685          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2686$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2687          ac_cache_corrupted=:
2688        else
2689          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2690$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2691          eval $ac_var=\$ac_old_val
2692        fi
2693        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2694$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2695        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2696$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2697      fi;;
2698  esac
2699  # Pass precious variables to config.status.
2700  if test "$ac_new_set" = set; then
2701    case $ac_new_val in
2702    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2703    *) ac_arg=$ac_var=$ac_new_val ;;
2704    esac
2705    case " $ac_configure_args " in
2706      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2707      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2708    esac
2709  fi
2710done
2711if $ac_cache_corrupted; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2715$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2716  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2717fi
2718## -------------------- ##
2719## Main body of script. ##
2720## -------------------- ##
2721
2722ac_ext=c
2723ac_cpp='$CPP $CPPFLAGS'
2724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727
2728
2729
2730
2731ac_aux_dir=
2732for ac_dir in autoconf "$srcdir"/autoconf; do
2733  if test -f "$ac_dir/install-sh"; then
2734    ac_aux_dir=$ac_dir
2735    ac_install_sh="$ac_aux_dir/install-sh -c"
2736    break
2737  elif test -f "$ac_dir/install.sh"; then
2738    ac_aux_dir=$ac_dir
2739    ac_install_sh="$ac_aux_dir/install.sh -c"
2740    break
2741  elif test -f "$ac_dir/shtool"; then
2742    ac_aux_dir=$ac_dir
2743    ac_install_sh="$ac_aux_dir/shtool install -c"
2744    break
2745  fi
2746done
2747if test -z "$ac_aux_dir"; then
2748  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2749fi
2750
2751# These three variables are undocumented and unsupported,
2752# and are intended to be withdrawn in a future Autoconf release.
2753# They can cause serious problems if a builder's source tree is in a directory
2754# whose full name contains unusual characters.
2755ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2756ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2757ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2758
2759
2760ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2761
2762
2763am__api_version='1.12'
2764
2765# Find a good install program.  We prefer a C program (faster),
2766# so one script is as good as another.  But avoid the broken or
2767# incompatible versions:
2768# SysV /etc/install, /usr/sbin/install
2769# SunOS /usr/etc/install
2770# IRIX /sbin/install
2771# AIX /bin/install
2772# AmigaOS /C/install, which installs bootblocks on floppy discs
2773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2776# OS/2's system install, which has a completely different semantic
2777# ./install, which can be erroneously created by make from ./install.sh.
2778# Reject install programs that cannot install multiple files.
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2780$as_echo_n "checking for a BSD-compatible install... " >&6; }
2781if test -z "$INSTALL"; then
2782if ${ac_cv_path_install+:} false; then :
2783  $as_echo_n "(cached) " >&6
2784else
2785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    # Account for people who put trailing slashes in PATH elements.
2791case $as_dir/ in #((
2792  ./ | .// | /[cC]/* | \
2793  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2794  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2795  /usr/ucb/* ) ;;
2796  *)
2797    # OSF1 and SCO ODT 3.0 have their own names for install.
2798    # Don't use installbsd from OSF since it installs stuff as root
2799    # by default.
2800    for ac_prog in ginstall scoinst install; do
2801      for ac_exec_ext in '' $ac_executable_extensions; do
2802        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2803          if test $ac_prog = install &&
2804            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2805            # AIX install.  It has an incompatible calling convention.
2806            :
2807          elif test $ac_prog = install &&
2808            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809            # program-specific install script used by HP pwplus--don't use.
2810            :
2811          else
2812            rm -rf conftest.one conftest.two conftest.dir
2813            echo one > conftest.one
2814            echo two > conftest.two
2815            mkdir conftest.dir
2816            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2817              test -s conftest.one && test -s conftest.two &&
2818              test -s conftest.dir/conftest.one &&
2819              test -s conftest.dir/conftest.two
2820            then
2821              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2822              break 3
2823            fi
2824          fi
2825        fi
2826      done
2827    done
2828    ;;
2829esac
2830
2831  done
2832IFS=$as_save_IFS
2833
2834rm -rf conftest.one conftest.two conftest.dir
2835
2836fi
2837  if test "${ac_cv_path_install+set}" = set; then
2838    INSTALL=$ac_cv_path_install
2839  else
2840    # As a last resort, use the slow shell script.  Don't cache a
2841    # value for INSTALL within a source directory, because that will
2842    # break other packages using the cache if that directory is
2843    # removed, or if the value is a relative name.
2844    INSTALL=$ac_install_sh
2845  fi
2846fi
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2848$as_echo "$INSTALL" >&6; }
2849
2850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2851# It thinks the first close brace ends the variable substitution.
2852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2853
2854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2855
2856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2859$as_echo_n "checking whether build environment is sane... " >&6; }
2860# Reject unsafe characters in $srcdir or the absolute working directory
2861# name.  Accept space and tab only in the latter.
2862am_lf='
2863'
2864case `pwd` in
2865  *[\\\"\#\$\&\'\`$am_lf]*)
2866    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2867esac
2868case $srcdir in
2869  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2870    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2871esac
2872
2873# Do 'set' in a subshell so we don't clobber the current shell's
2874# arguments.  Must try -L first in case configure is actually a
2875# symlink; some systems play weird games with the mod time of symlinks
2876# (eg FreeBSD returns the mod time of the symlink's containing
2877# directory).
2878if (
2879   am_has_slept=no
2880   for am_try in 1 2; do
2881     echo "timestamp, slept: $am_has_slept" > conftest.file
2882     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2883     if test "$*" = "X"; then
2884        # -L didn't work.
2885        set X `ls -t "$srcdir/configure" conftest.file`
2886     fi
2887     if test "$*" != "X $srcdir/configure conftest.file" \
2888        && test "$*" != "X conftest.file $srcdir/configure"; then
2889
2890        # If neither matched, then we have a broken ls.  This can happen
2891        # if, for instance, CONFIG_SHELL is bash and it inherits a
2892        # broken ls alias from the environment.  This has actually
2893        # happened.  Such a system could not be considered "sane".
2894        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2895  alias in your environment" "$LINENO" 5
2896     fi
2897     if test "$2" = conftest.file || test $am_try -eq 2; then
2898       break
2899     fi
2900     # Just in case.
2901     sleep 1
2902     am_has_slept=yes
2903   done
2904   test "$2" = conftest.file
2905   )
2906then
2907   # Ok.
2908   :
2909else
2910   as_fn_error $? "newly created file is older than distributed files!
2911Check your system clock" "$LINENO" 5
2912fi
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2914$as_echo "yes" >&6; }
2915# If we didn't sleep, we still need to ensure time stamps of config.status and
2916# generated files are strictly newer.
2917am_sleep_pid=
2918if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2919  ( sleep 1 ) &
2920  am_sleep_pid=$!
2921fi
2922
2923rm -f conftest.file
2924
2925test "$program_prefix" != NONE &&
2926  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2927# Use a double $ so make ignores it.
2928test "$program_suffix" != NONE &&
2929  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2930# Double any \ or $.
2931# By default was `s,x,x', remove it if useless.
2932ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2933program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2934
2935# expand $ac_aux_dir to an absolute path
2936am_aux_dir=`cd $ac_aux_dir && pwd`
2937
2938if test x"${MISSING+set}" != xset; then
2939  case $am_aux_dir in
2940  *\ * | *\     *)
2941    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2942  *)
2943    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2944  esac
2945fi
2946# Use eval to expand $SHELL
2947if eval "$MISSING --run true"; then
2948  am_missing_run="$MISSING --run "
2949else
2950  am_missing_run=
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2952$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2953fi
2954
2955if test x"${install_sh}" != xset; then
2956  case $am_aux_dir in
2957  *\ * | *\     *)
2958    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2959  *)
2960    install_sh="\${SHELL} $am_aux_dir/install-sh"
2961  esac
2962fi
2963
2964# Installed binaries are usually stripped using 'strip' when the user
2965# run "make install-strip".  However 'strip' might not be the right
2966# tool to use in cross-compilation environments, therefore Automake
2967# will honor the 'STRIP' environment variable to overrule this program.
2968if test "$cross_compiling" != no; then
2969  if test -n "$ac_tool_prefix"; then
2970  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}strip; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_STRIP+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$STRIP"; then
2978  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997STRIP=$ac_cv_prog_STRIP
2998if test -n "$STRIP"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3000$as_echo "$STRIP" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$ac_cv_prog_STRIP"; then
3009  ac_ct_STRIP=$STRIP
3010  # Extract the first word of "strip", so it can be a program name with args.
3011set dummy strip; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$ac_ct_STRIP"; then
3018  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025    for ac_exec_ext in '' $ac_executable_extensions; do
3026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027    ac_cv_prog_ac_ct_STRIP="strip"
3028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3038if test -n "$ac_ct_STRIP"; then
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3040$as_echo "$ac_ct_STRIP" >&6; }
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046  if test "x$ac_ct_STRIP" = x; then
3047    STRIP=":"
3048  else
3049    case $cross_compiling:$ac_tool_warned in
3050yes:)
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3053ac_tool_warned=yes ;;
3054esac
3055    STRIP=$ac_ct_STRIP
3056  fi
3057else
3058  STRIP="$ac_cv_prog_STRIP"
3059fi
3060
3061fi
3062INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3063
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3065$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3066if test -z "$MKDIR_P"; then
3067  if ${ac_cv_path_mkdir+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075    for ac_prog in mkdir gmkdir; do
3076         for ac_exec_ext in '' $ac_executable_extensions; do
3077           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3078           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3079             'mkdir (GNU coreutils) '* | \
3080             'mkdir (coreutils) '* | \
3081             'mkdir (fileutils) '4.1*)
3082               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3083               break 3;;
3084           esac
3085         done
3086       done
3087  done
3088IFS=$as_save_IFS
3089
3090fi
3091
3092  test -d ./--version && rmdir ./--version
3093  if test "${ac_cv_path_mkdir+set}" = set; then
3094    MKDIR_P="$ac_cv_path_mkdir -p"
3095  else
3096    # As a last resort, use the slow shell script.  Don't cache a
3097    # value for MKDIR_P within a source directory, because that will
3098    # break other packages using the cache if that directory is
3099    # removed, or if the value is a relative name.
3100    MKDIR_P="$ac_install_sh -d"
3101  fi
3102fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3104$as_echo "$MKDIR_P" >&6; }
3105
3106for ac_prog in gawk mawk nawk awk
3107do
3108  # Extract the first word of "$ac_prog", so it can be a program name with args.
3109set dummy $ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_AWK+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$AWK"; then
3116  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    ac_cv_prog_AWK="$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135AWK=$ac_cv_prog_AWK
3136if test -n "$AWK"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3138$as_echo "$AWK" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145  test -n "$AWK" && break
3146done
3147
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3149$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3150set x ${MAKE-make}
3151ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3152if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3153  $as_echo_n "(cached) " >&6
3154else
3155  cat >conftest.make <<\_ACEOF
3156SHELL = /bin/sh
3157all:
3158        @echo '@@@%%%=$(MAKE)=@@@%%%'
3159_ACEOF
3160# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3161case `${MAKE-make} -f conftest.make 2>/dev/null` in
3162  *@@@%%%=?*=@@@%%%*)
3163    eval ac_cv_prog_make_${ac_make}_set=yes;;
3164  *)
3165    eval ac_cv_prog_make_${ac_make}_set=no;;
3166esac
3167rm -f conftest.make
3168fi
3169if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171$as_echo "yes" >&6; }
3172  SET_MAKE=
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176  SET_MAKE="MAKE=${MAKE-make}"
3177fi
3178
3179rm -rf .tst 2>/dev/null
3180mkdir .tst 2>/dev/null
3181if test -d .tst; then
3182  am__leading_dot=.
3183else
3184  am__leading_dot=_
3185fi
3186rmdir .tst 2>/dev/null
3187
3188if test "`cd $srcdir && pwd`" != "`pwd`"; then
3189  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3190  # is not polluted with repeated "-I."
3191  am__isrc=' -I$(srcdir)'
3192  # test to see if srcdir already configured
3193  if test -f $srcdir/config.status; then
3194    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3195  fi
3196fi
3197
3198# test whether we have cygpath
3199if test -z "$CYGPATH_W"; then
3200  if (cygpath --version) >/dev/null 2>/dev/null; then
3201    CYGPATH_W='cygpath -w'
3202  else
3203    CYGPATH_W=echo
3204  fi
3205fi
3206
3207
3208# Define the identity of the package.
3209 PACKAGE='adolc'
3210 VERSION='2.3.0-trunk'
3211
3212
3213cat >>confdefs.h <<_ACEOF
3214#define PACKAGE "$PACKAGE"
3215_ACEOF
3216
3217
3218cat >>confdefs.h <<_ACEOF
3219#define VERSION "$VERSION"
3220_ACEOF
3221
3222# Some tools Automake needs.
3223
3224ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3225
3226
3227AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3228
3229
3230AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3231
3232
3233AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3234
3235
3236MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3237
3238mkdir_p="$MKDIR_P"
3239# We need awk for the "check" target.  The system "awk" is bad on
3240# some platforms.
3241# Always define AMTAR for backward compatibility.  Yes, it's still used
3242# in the wild :-(  We should find a proper way to deprecate it ...
3243AMTAR='$${TAR-tar}'
3244
3245am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3246
3247
3248
3249
3250
3251# Check whether --enable-silent-rules was given.
3252if test "${enable_silent_rules+set}" = set; then :
3253  enableval=$enable_silent_rules;
3254fi
3255
3256case $enable_silent_rules in # (((
3257  yes) AM_DEFAULT_VERBOSITY=0;;
3258   no) AM_DEFAULT_VERBOSITY=1;;
3259    *) AM_DEFAULT_VERBOSITY=0;;
3260esac
3261am_make=${MAKE-make}
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3263$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3264if ${am_cv_make_support_nested_variables+:} false; then :
3265  $as_echo_n "(cached) " >&6
3266else
3267  if $as_echo 'TRUE=$(BAR$(V))
3268BAR0=false
3269BAR1=true
3270V=1
3271am__doit:
3272        @$(TRUE)
3273.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3274  am_cv_make_support_nested_variables=yes
3275else
3276  am_cv_make_support_nested_variables=no
3277fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3280$as_echo "$am_cv_make_support_nested_variables" >&6; }
3281if test $am_cv_make_support_nested_variables = yes; then
3282    AM_V='$(V)'
3283  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3284else
3285  AM_V=$AM_DEFAULT_VERBOSITY
3286  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3287fi
3288AM_BACKSLASH='\'
3289
3290
3291if test "x$CFLAGS" == x ; then
3292    ac_shell_cflags="not_set"
3293else
3294    ac_shell_cflags="$CFLAGS"
3295fi
3296if test "x$CXXFLAGS" == x ; then
3297    ac_shell_cxxflags="not_set"
3298else
3299    ac_shell_cxxflags="$CXXFLAGS"
3300fi
3301
3302# checks for programs
3303ac_ext=cpp
3304ac_cpp='$CXXCPP $CPPFLAGS'
3305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3308if test -z "$CXX"; then
3309  if test -n "$CCC"; then
3310    CXX=$CCC
3311  else
3312    if test -n "$ac_tool_prefix"; then
3313  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3314  do
3315    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318$as_echo_n "checking for $ac_word... " >&6; }
3319if ${ac_cv_prog_CXX+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  if test -n "$CXX"; then
3323  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337  done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342CXX=$ac_cv_prog_CXX
3343if test -n "$CXX"; then
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3345$as_echo "$CXX" >&6; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352    test -n "$CXX" && break
3353  done
3354fi
3355if test -z "$CXX"; then
3356  ac_ct_CXX=$CXX
3357  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3358do
3359  # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3364  $as_echo_n "(cached) " >&6
3365else
3366  if test -n "$ac_ct_CXX"; then
3367  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_ac_ct_CXX="$ac_prog"
3377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381  done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3387if test -n "$ac_ct_CXX"; then
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3389$as_echo "$ac_ct_CXX" >&6; }
3390else
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395
3396  test -n "$ac_ct_CXX" && break
3397done
3398
3399  if test "x$ac_ct_CXX" = x; then
3400    CXX="g++"
3401  else
3402    case $cross_compiling:$ac_tool_warned in
3403yes:)
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406ac_tool_warned=yes ;;
3407esac
3408    CXX=$ac_ct_CXX
3409  fi
3410fi
3411
3412  fi
3413fi
3414# Provide some information about the compiler.
3415$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3416set X $ac_compile
3417ac_compiler=$2
3418for ac_option in --version -v -V -qversion; do
3419  { { ac_try="$ac_compiler $ac_option >&5"
3420case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3427  ac_status=$?
3428  if test -s conftest.err; then
3429    sed '10a\
3430... rest of stderr output deleted ...
3431         10q' conftest.err >conftest.er1
3432    cat conftest.er1 >&5
3433  fi
3434  rm -f conftest.er1 conftest.err
3435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436  test $ac_status = 0; }
3437done
3438
3439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h.  */
3441
3442int
3443main ()
3444{
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450ac_clean_files_save=$ac_clean_files
3451ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3452# Try to create an executable without -o first, disregard a.out.
3453# It will help us diagnose broken compilers, and finding out an intuition
3454# of exeext.
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3456$as_echo_n "checking whether the C++ compiler works... " >&6; }
3457ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3458
3459# The possible output files:
3460ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3461
3462ac_rmfiles=
3463for ac_file in $ac_files
3464do
3465  case $ac_file in
3466    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468  esac
3469done
3470rm -f $ac_rmfiles
3471
3472if { { ac_try="$ac_link_default"
3473case "(($ac_try" in
3474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475  *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478$as_echo "$ac_try_echo"; } >&5
3479  (eval "$ac_link_default") 2>&5
3480  ac_status=$?
3481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482  test $ac_status = 0; }; then :
3483  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3484# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3485# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3486# so that the user can short-circuit this test for compilers unknown to
3487# Autoconf.
3488for ac_file in $ac_files ''
3489do
3490  test -f "$ac_file" || continue
3491  case $ac_file in
3492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3493        ;;
3494    [ab].out )
3495        # We found the default executable, but exeext='' is most
3496        # certainly right.
3497        break;;
3498    *.* )
3499        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3500        then :; else
3501           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502        fi
3503        # We set ac_cv_exeext here because the later test for it is not
3504        # safe: cross compilers may not add the suffix if given an `-o'
3505        # argument, so we may need to know it at that point already.
3506        # Even if this section looks crufty: it has the advantage of
3507        # actually working.
3508        break;;
3509    * )
3510        break;;
3511  esac
3512done
3513test "$ac_cv_exeext" = no && ac_cv_exeext=
3514
3515else
3516  ac_file=''
3517fi
3518if test -z "$ac_file"; then :
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520$as_echo "no" >&6; }
3521$as_echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error 77 "C++ compiler cannot create executables
3527See \`config.log' for more details" "$LINENO" 5; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530$as_echo "yes" >&6; }
3531fi
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3533$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3535$as_echo "$ac_file" >&6; }
3536ac_exeext=$ac_cv_exeext
3537
3538rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3539ac_clean_files=$ac_clean_files_save
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3541$as_echo_n "checking for suffix of executables... " >&6; }
3542if { { ac_try="$ac_link"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_link") 2>&5
3550  ac_status=$?
3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552  test $ac_status = 0; }; then :
3553  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3554# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3555# work properly (i.e., refer to `conftest.exe'), while it won't with
3556# `rm'.
3557for ac_file in conftest.exe conftest conftest.*; do
3558  test -f "$ac_file" || continue
3559  case $ac_file in
3560    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3562          break;;
3563    * ) break;;
3564  esac
3565done
3566else
3567  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3570See \`config.log' for more details" "$LINENO" 5; }
3571fi
3572rm -f conftest conftest$ac_cv_exeext
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3574$as_echo "$ac_cv_exeext" >&6; }
3575
3576rm -f conftest.$ac_ext
3577EXEEXT=$ac_cv_exeext
3578ac_exeext=$EXEEXT
3579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581#include <stdio.h>
3582int
3583main ()
3584{
3585FILE *f = fopen ("conftest.out", "w");
3586 return ferror (f) || fclose (f) != 0;
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592ac_clean_files="$ac_clean_files conftest.out"
3593# Check that the compiler produces executables we can run.  If not, either
3594# the compiler is broken, or we cross compile.
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3596$as_echo_n "checking whether we are cross compiling... " >&6; }
3597if test "$cross_compiling" != yes; then
3598  { { ac_try="$ac_link"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604$as_echo "$ac_try_echo"; } >&5
3605  (eval "$ac_link") 2>&5
3606  ac_status=$?
3607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608  test $ac_status = 0; }
3609  if { ac_try='./conftest$ac_cv_exeext'
3610  { { case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_try") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }; }; then
3620    cross_compiling=no
3621  else
3622    if test "$cross_compiling" = maybe; then
3623        cross_compiling=yes
3624    else
3625        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error $? "cannot run C++ compiled programs.
3628If you meant to cross compile, use \`--host'.
3629See \`config.log' for more details" "$LINENO" 5; }
3630    fi
3631  fi
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3634$as_echo "$cross_compiling" >&6; }
3635
3636rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3637ac_clean_files=$ac_clean_files_save
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3639$as_echo_n "checking for suffix of object files... " >&6; }
3640if ${ac_cv_objext+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654rm -f conftest.o conftest.obj
3655if { { ac_try="$ac_compile"
3656case "(($ac_try" in
3657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658  *) ac_try_echo=$ac_try;;
3659esac
3660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661$as_echo "$ac_try_echo"; } >&5
3662  (eval "$ac_compile") 2>&5
3663  ac_status=$?
3664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665  test $ac_status = 0; }; then :
3666  for ac_file in conftest.o conftest.obj conftest.*; do
3667  test -f "$ac_file" || continue;
3668  case $ac_file in
3669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3670    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3671       break;;
3672  esac
3673done
3674else
3675  $as_echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680as_fn_error $? "cannot compute suffix of object files: cannot compile
3681See \`config.log' for more details" "$LINENO" 5; }
3682fi
3683rm -f conftest.$ac_cv_objext conftest.$ac_ext
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3686$as_echo "$ac_cv_objext" >&6; }
3687OBJEXT=$ac_cv_objext
3688ac_objext=$OBJEXT
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3690$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3691if ${ac_cv_cxx_compiler_gnu+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696
3697int
3698main ()
3699{
3700#ifndef __GNUC__
3701       choke me
3702#endif
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_cxx_try_compile "$LINENO"; then :
3709  ac_compiler_gnu=yes
3710else
3711  ac_compiler_gnu=no
3712fi
3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3715
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3718$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3719if test $ac_compiler_gnu = yes; then
3720  GXX=yes
3721else
3722  GXX=
3723fi
3724ac_test_CXXFLAGS=${CXXFLAGS+set}
3725ac_save_CXXFLAGS=$CXXFLAGS
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3727$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3728if ${ac_cv_prog_cxx_g+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3732   ac_cxx_werror_flag=yes
3733   ac_cv_prog_cxx_g=no
3734   CXXFLAGS="-g"
3735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737
3738int
3739main ()
3740{
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746if ac_fn_cxx_try_compile "$LINENO"; then :
3747  ac_cv_prog_cxx_g=yes
3748else
3749  CXXFLAGS=""
3750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_cxx_try_compile "$LINENO"; then :
3762
3763else
3764  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3765         CXXFLAGS="-g"
3766         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768
3769int
3770main ()
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777if ac_fn_cxx_try_compile "$LINENO"; then :
3778  ac_cv_prog_cxx_g=yes
3779fi
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3788$as_echo "$ac_cv_prog_cxx_g" >&6; }
3789if test "$ac_test_CXXFLAGS" = set; then
3790  CXXFLAGS=$ac_save_CXXFLAGS
3791elif test $ac_cv_prog_cxx_g = yes; then
3792  if test "$GXX" = yes; then
3793    CXXFLAGS="-g -O2"
3794  else
3795    CXXFLAGS="-g"
3796  fi
3797else
3798  if test "$GXX" = yes; then
3799    CXXFLAGS="-O2"
3800  else
3801    CXXFLAGS=
3802  fi
3803fi
3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809DEPDIR="${am__leading_dot}deps"
3810
3811ac_config_commands="$ac_config_commands depfiles"
3812
3813
3814am_make=${MAKE-make}
3815cat > confinc << 'END'
3816am__doit:
3817        @echo this is the am__doit target
3818.PHONY: am__doit
3819END
3820# If we don't find an include directive, just comment out the code.
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3822$as_echo_n "checking for style of include used by $am_make... " >&6; }
3823am__include="#"
3824am__quote=
3825_am_result=none
3826# First try GNU make style include.
3827echo "include confinc" > confmf
3828# Ignore all kinds of additional output from 'make'.
3829case `$am_make -s -f confmf 2> /dev/null` in #(
3830*the\ am__doit\ target*)
3831  am__include=include
3832  am__quote=
3833  _am_result=GNU
3834  ;;
3835esac
3836# Now try BSD make style include.
3837if test "$am__include" = "#"; then
3838   echo '.include "confinc"' > confmf
3839   case `$am_make -s -f confmf 2> /dev/null` in #(
3840   *the\ am__doit\ target*)
3841     am__include=.include
3842     am__quote="\""
3843     _am_result=BSD
3844     ;;
3845   esac
3846fi
3847
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3850$as_echo "$_am_result" >&6; }
3851rm -f confinc confmf
3852
3853# Check whether --enable-dependency-tracking was given.
3854if test "${enable_dependency_tracking+set}" = set; then :
3855  enableval=$enable_dependency_tracking;
3856fi
3857
3858if test "x$enable_dependency_tracking" != xno; then
3859  am_depcomp="$ac_aux_dir/depcomp"
3860  AMDEPBACKSLASH='\'
3861  am__nodep='_no'
3862fi
3863 if test "x$enable_dependency_tracking" != xno; then
3864  AMDEP_TRUE=
3865  AMDEP_FALSE='#'
3866else
3867  AMDEP_TRUE='#'
3868  AMDEP_FALSE=
3869fi
3870
3871
3872
3873depcc="$CXX"  am_compiler_list=
3874
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3876$as_echo_n "checking dependency style of $depcc... " >&6; }
3877if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3878  $as_echo_n "(cached) " >&6
3879else
3880  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881  # We make a subdir and do the tests there.  Otherwise we can end up
3882  # making bogus files that we don't know about and never remove.  For
3883  # instance it was reported that on HP-UX the gcc test will end up
3884  # making a dummy file named 'D' -- because '-MD' means "put the output
3885  # in D".
3886  rm -rf conftest.dir
3887  mkdir conftest.dir
3888  # Copy depcomp to subdir because otherwise we won't find it if we're
3889  # using a relative directory.
3890  cp "$am_depcomp" conftest.dir
3891  cd conftest.dir
3892  # We will build objects and dependencies in a subdirectory because
3893  # it helps to detect inapplicable dependency modes.  For instance
3894  # both Tru64's cc and ICC support -MD to output dependencies as a
3895  # side effect of compilation, but ICC will put the dependencies in
3896  # the current directory while Tru64 will put them in the object
3897  # directory.
3898  mkdir sub
3899
3900  am_cv_CXX_dependencies_compiler_type=none
3901  if test "$am_compiler_list" = ""; then
3902     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903  fi
3904  am__universal=false
3905  case " $depcc " in #(
3906     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3907     esac
3908
3909  for depmode in $am_compiler_list; do
3910    # Setup a source with many dependencies, because some compilers
3911    # like to wrap large dependency lists on column 80 (with \), and
3912    # we should not choose a depcomp mode which is confused by this.
3913    #
3914    # We need to recreate these files for each test, as the compiler may
3915    # overwrite some of them when testing with obscure command lines.
3916    # This happens at least with the AIX C compiler.
3917    : > sub/conftest.c
3918    for i in 1 2 3 4 5 6; do
3919      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3920      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3921      # Solaris 10 /bin/sh.
3922      echo '/* dummy */' > sub/conftst$i.h
3923    done
3924    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925
3926    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3927    # mode.  It turns out that the SunPro C++ compiler does not properly
3928    # handle '-M -o', and we need to detect this.  Also, some Intel
3929    # versions had trouble with output in subdirs.
3930    am__obj=sub/conftest.${OBJEXT-o}
3931    am__minus_obj="-o $am__obj"
3932    case $depmode in
3933    gcc)
3934      # This depmode causes a compiler race in universal mode.
3935      test "$am__universal" = false || continue
3936      ;;
3937    nosideeffect)
3938      # After this tag, mechanisms are not by side-effect, so they'll
3939      # only be used when explicitly requested.
3940      if test "x$enable_dependency_tracking" = xyes; then
3941        continue
3942      else
3943        break
3944      fi
3945      ;;
3946    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3947      # This compiler won't grok '-c -o', but also, the minuso test has
3948      # not run yet.  These depmodes are late enough in the game, and
3949      # so weak that their functioning should not be impacted.
3950      am__obj=conftest.${OBJEXT-o}
3951      am__minus_obj=
3952      ;;
3953    none) break ;;
3954    esac
3955    if depmode=$depmode \
3956       source=sub/conftest.c object=$am__obj \
3957       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3958       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3959         >/dev/null 2>conftest.err &&
3960       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3961       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3962       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3963       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3964      # icc doesn't choke on unknown options, it will just issue warnings
3965      # or remarks (even with -Werror).  So we grep stderr for any message
3966      # that says an option was ignored or not supported.
3967      # When given -MP, icc 7.0 and 7.1 complain thusly:
3968      #   icc: Command line warning: ignoring option '-M'; no argument required
3969      # The diagnosis changed in icc 8.0:
3970      #   icc: Command line remark: option '-MP' not supported
3971      if (grep 'ignoring option' conftest.err ||
3972          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3973        am_cv_CXX_dependencies_compiler_type=$depmode
3974        break
3975      fi
3976    fi
3977  done
3978
3979  cd ..
3980  rm -rf conftest.dir
3981else
3982  am_cv_CXX_dependencies_compiler_type=none
3983fi
3984
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3987$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3988CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3989
3990 if
3991  test "x$enable_dependency_tracking" != xno \
3992  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3993  am__fastdepCXX_TRUE=
3994  am__fastdepCXX_FALSE='#'
3995else
3996  am__fastdepCXX_TRUE='#'
3997  am__fastdepCXX_FALSE=
3998fi
3999
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006if test -n "$ac_tool_prefix"; then
4007  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}gcc; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if ${ac_cv_prog_CC+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -n "$CC"; then
4015  ac_cv_prog_CC="$CC" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029  done
4030IFS=$as_save_IFS
4031
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037$as_echo "$CC" >&6; }
4038else
4039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044fi
4045if test -z "$ac_cv_prog_CC"; then
4046  ac_ct_CC=$CC
4047  # Extract the first word of "gcc", so it can be a program name with args.
4048set dummy gcc; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if ${ac_cv_prog_ac_ct_CC+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if test -n "$ac_ct_CC"; then
4055  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060  IFS=$as_save_IFS
4061  test -z "$as_dir" && as_dir=.
4062    for ac_exec_ext in '' $ac_executable_extensions; do
4063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064    ac_cv_prog_ac_ct_CC="gcc"
4065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066    break 2
4067  fi
4068done
4069  done
4070IFS=$as_save_IFS
4071
4072fi
4073fi
4074ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075if test -n "$ac_ct_CC"; then
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077$as_echo "$ac_ct_CC" >&6; }
4078else
4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083  if test "x$ac_ct_CC" = x; then
4084    CC=""
4085  else
4086    case $cross_compiling:$ac_tool_warned in
4087yes:)
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090ac_tool_warned=yes ;;
4091esac
4092    CC=$ac_ct_CC
4093  fi
4094else
4095  CC="$ac_cv_prog_CC"
4096fi
4097
4098if test -z "$CC"; then
4099          if test -n "$ac_tool_prefix"; then
4100    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101set dummy ${ac_tool_prefix}cc; ac_word=$2
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if ${ac_cv_prog_CC+:} false; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  if test -n "$CC"; then
4108  ac_cv_prog_CC="$CC" # Let the user override the test.
4109else
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113  IFS=$as_save_IFS
4114  test -z "$as_dir" && as_dir=.
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117    ac_cv_prog_CC="${ac_tool_prefix}cc"
4118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122  done
4123IFS=$as_save_IFS
4124
4125fi
4126fi
4127CC=$ac_cv_prog_CC
4128if test -n "$CC"; then
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130$as_echo "$CC" >&6; }
4131else
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
4134fi
4135
4136
4137  fi
4138fi
4139if test -z "$CC"; then
4140  # Extract the first word of "cc", so it can be a program name with args.
4141set dummy cc; ac_word=$2
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if ${ac_cv_prog_CC+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  if test -n "$CC"; then
4148  ac_cv_prog_CC="$CC" # Let the user override the test.
4149else
4150  ac_prog_rejected=no
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154  IFS=$as_save_IFS
4155  test -z "$as_dir" && as_dir=.
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159       ac_prog_rejected=yes
4160       continue
4161     fi
4162    ac_cv_prog_CC="cc"
4163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167  done
4168IFS=$as_save_IFS
4169
4170if test $ac_prog_rejected = yes; then
4171  # We found a bogon in the path, so make sure we never use it.
4172  set dummy $ac_cv_prog_CC
4173  shift
4174  if test $# != 0; then
4175    # We chose a different compiler from the bogus one.
4176    # However, it has the same basename, so the bogon will be chosen
4177    # first if we set CC to just the basename; use the full file name.
4178    shift
4179    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4180  fi
4181fi
4182fi
4183fi
4184CC=$ac_cv_prog_CC
4185if test -n "$CC"; then
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187$as_echo "$CC" >&6; }
4188else
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
4191fi
4192
4193
4194fi
4195if test -z "$CC"; then
4196  if test -n "$ac_tool_prefix"; then
4197  for ac_prog in cl.exe
4198  do
4199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
4203if ${ac_cv_prog_CC+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  if test -n "$CC"; then
4207  ac_cv_prog_CC="$CC" # Let the user override the test.
4208else
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214    for ac_exec_ext in '' $ac_executable_extensions; do
4215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218    break 2
4219  fi
4220done
4221  done
4222IFS=$as_save_IFS
4223
4224fi
4225fi
4226CC=$ac_cv_prog_CC
4227if test -n "$CC"; then
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229$as_echo "$CC" >&6; }
4230else
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233fi
4234
4235
4236    test -n "$CC" && break
4237  done
4238fi
4239if test -z "$CC"; then
4240  ac_ct_CC=$CC
4241  for ac_prog in cl.exe
4242do
4243  # Extract the first word of "$ac_prog", so it can be a program name with args.
4244set dummy $ac_prog; ac_word=$2
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246$as_echo_n "checking for $ac_word... " >&6; }
4247if ${ac_cv_prog_ac_ct_CC+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  if test -n "$ac_ct_CC"; then
4251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256  IFS=$as_save_IFS
4257  test -z "$as_dir" && as_dir=.
4258    for ac_exec_ext in '' $ac_executable_extensions; do
4259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260    ac_cv_prog_ac_ct_CC="$ac_prog"
4261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262    break 2
4263  fi
4264done
4265  done
4266IFS=$as_save_IFS
4267
4268fi
4269fi
4270ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271if test -n "$ac_ct_CC"; then
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273$as_echo "$ac_ct_CC" >&6; }
4274else
4275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
4277fi
4278
4279
4280  test -n "$ac_ct_CC" && break
4281done
4282
4283  if test "x$ac_ct_CC" = x; then
4284    CC=""
4285  else
4286    case $cross_compiling:$ac_tool_warned in
4287yes:)
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290ac_tool_warned=yes ;;
4291esac
4292    CC=$ac_ct_CC
4293  fi
4294fi
4295
4296fi
4297
4298
4299test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301as_fn_error $? "no acceptable C compiler found in \$PATH
4302See \`config.log' for more details" "$LINENO" 5; }
4303
4304# Provide some information about the compiler.
4305$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306set X $ac_compile
4307ac_compiler=$2
4308for ac_option in --version -v -V -qversion; do
4309  { { ac_try="$ac_compiler $ac_option >&5"
4310case "(($ac_try" in
4311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312  *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315$as_echo "$ac_try_echo"; } >&5
4316  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317  ac_status=$?
4318  if test -s conftest.err; then
4319    sed '10a\
4320... rest of stderr output deleted ...
4321         10q' conftest.err >conftest.er1
4322    cat conftest.er1 >&5
4323  fi
4324  rm -f conftest.er1 conftest.err
4325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326  test $ac_status = 0; }
4327done
4328
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331if ${ac_cv_c_compiler_gnu+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336
4337int
4338main ()
4339{
4340#ifndef __GNUC__
4341       choke me
4342#endif
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349  ac_compiler_gnu=yes
4350else
4351  ac_compiler_gnu=no
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356fi
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359if test $ac_compiler_gnu = yes; then
4360  GCC=yes
4361else
4362  GCC=
4363fi
4364ac_test_CFLAGS=${CFLAGS+set}
4365ac_save_CFLAGS=$CFLAGS
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367$as_echo_n "checking whether $CC accepts -g... " >&6; }
4368if ${ac_cv_prog_cc_g+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  ac_save_c_werror_flag=$ac_c_werror_flag
4372   ac_c_werror_flag=yes
4373   ac_cv_prog_cc_g=no
4374   CFLAGS="-g"
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377
4378int
4379main ()
4380{
4381
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386if ac_fn_c_try_compile "$LINENO"; then :
4387  ac_cv_prog_cc_g=yes
4388else
4389  CFLAGS=""
4390      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h.  */
4392
4393int
4394main ()
4395{
4396
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"; then :
4402
4403else
4404  ac_c_werror_flag=$ac_save_c_werror_flag
4405         CFLAGS="-g"
4406         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408
4409int
4410main ()
4411{
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418  ac_cv_prog_cc_g=yes
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421fi
4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425   ac_c_werror_flag=$ac_save_c_werror_flag
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428$as_echo "$ac_cv_prog_cc_g" >&6; }
4429if test "$ac_test_CFLAGS" = set; then
4430  CFLAGS=$ac_save_CFLAGS
4431elif test $ac_cv_prog_cc_g = yes; then
4432  if test "$GCC" = yes; then
4433    CFLAGS="-g -O2"
4434  else
4435    CFLAGS="-g"
4436  fi
4437else
4438  if test "$GCC" = yes; then
4439    CFLAGS="-O2"
4440  else
4441    CFLAGS=
4442  fi
4443fi
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446if ${ac_cv_prog_cc_c89+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  ac_cv_prog_cc_c89=no
4450ac_save_CC=$CC
4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <stdarg.h>
4454#include <stdio.h>
4455struct stat;
4456/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4457struct buf { int x; };
4458FILE * (*rcsopen) (struct buf *, struct stat *, int);
4459static char *e (p, i)
4460     char **p;
4461     int i;
4462{
4463  return p[i];
4464}
4465static char *f (char * (*g) (char **, int), char **p, ...)
4466{
4467  char *s;
4468  va_list v;
4469  va_start (v,p);
4470  s = g (p, va_arg (v,int));
4471  va_end (v);
4472  return s;
4473}
4474
4475/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4476   function prototypes and stuff, but not '\xHH' hex character constants.
4477   These don't provoke an error unfortunately, instead are silently treated
4478   as 'x'.  The following induces an error, until -std is added to get
4479   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4480   array size at least.  It's necessary to write '\x00'==0 to get something
4481   that's true only with -std.  */
4482int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4483
4484/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4485   inside strings and character constants.  */
4486#define FOO(x) 'x'
4487int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4488
4489int test (int i, double x);
4490struct s1 {int (*f) (int a);};
4491struct s2 {int (*f) (double a);};
4492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493int argc;
4494char **argv;
4495int
4496main ()
4497{
4498return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4499  ;
4500  return 0;
4501}
4502_ACEOF
4503for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4504        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4505do
4506  CC="$ac_save_CC $ac_arg"
4507  if ac_fn_c_try_compile "$LINENO"; then :
4508  ac_cv_prog_cc_c89=$ac_arg
4509fi
4510rm -f core conftest.err conftest.$ac_objext
4511  test "x$ac_cv_prog_cc_c89" != "xno" && break
4512done
4513rm -f conftest.$ac_ext
4514CC=$ac_save_CC
4515
4516fi
4517# AC_CACHE_VAL
4518case "x$ac_cv_prog_cc_c89" in
4519  x)
4520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4521$as_echo "none needed" >&6; } ;;
4522  xno)
4523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4524$as_echo "unsupported" >&6; } ;;
4525  *)
4526    CC="$CC $ac_cv_prog_cc_c89"
4527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4529esac
4530if test "x$ac_cv_prog_cc_c89" != xno; then :
4531
4532fi
4533
4534ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540depcc="$CC"   am_compiler_list=
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4543$as_echo_n "checking dependency style of $depcc... " >&6; }
4544if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4548  # We make a subdir and do the tests there.  Otherwise we can end up
4549  # making bogus files that we don't know about and never remove.  For
4550  # instance it was reported that on HP-UX the gcc test will end up
4551  # making a dummy file named 'D' -- because '-MD' means "put the output
4552  # in D".
4553  rm -rf conftest.dir
4554  mkdir conftest.dir
4555  # Copy depcomp to subdir because otherwise we won't find it if we're
4556  # using a relative directory.
4557  cp "$am_depcomp" conftest.dir
4558  cd conftest.dir
4559  # We will build objects and dependencies in a subdirectory because
4560  # it helps to detect inapplicable dependency modes.  For instance
4561  # both Tru64's cc and ICC support -MD to output dependencies as a
4562  # side effect of compilation, but ICC will put the dependencies in
4563  # the current directory while Tru64 will put them in the object
4564  # directory.
4565  mkdir sub
4566
4567  am_cv_CC_dependencies_compiler_type=none
4568  if test "$am_compiler_list" = ""; then
4569     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4570  fi
4571  am__universal=false
4572  case " $depcc " in #(
4573     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4574     esac
4575
4576  for depmode in $am_compiler_list; do
4577    # Setup a source with many dependencies, because some compilers
4578    # like to wrap large dependency lists on column 80 (with \), and
4579    # we should not choose a depcomp mode which is confused by this.
4580    #
4581    # We need to recreate these files for each test, as the compiler may
4582    # overwrite some of them when testing with obscure command lines.
4583    # This happens at least with the AIX C compiler.
4584    : > sub/conftest.c
4585    for i in 1 2 3 4 5 6; do
4586      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4587      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4588      # Solaris 10 /bin/sh.
4589      echo '/* dummy */' > sub/conftst$i.h
4590    done
4591    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4592
4593    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4594    # mode.  It turns out that the SunPro C++ compiler does not properly
4595    # handle '-M -o', and we need to detect this.  Also, some Intel
4596    # versions had trouble with output in subdirs.
4597    am__obj=sub/conftest.${OBJEXT-o}
4598    am__minus_obj="-o $am__obj"
4599    case $depmode in
4600    gcc)
4601      # This depmode causes a compiler race in universal mode.
4602      test "$am__universal" = false || continue
4603      ;;
4604    nosideeffect)
4605      # After this tag, mechanisms are not by side-effect, so they'll
4606      # only be used when explicitly requested.
4607      if test "x$enable_dependency_tracking" = xyes; then
4608        continue
4609      else
4610        break
4611      fi
4612      ;;
4613    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4614      # This compiler won't grok '-c -o', but also, the minuso test has
4615      # not run yet.  These depmodes are late enough in the game, and
4616      # so weak that their functioning should not be impacted.
4617      am__obj=conftest.${OBJEXT-o}
4618      am__minus_obj=
4619      ;;
4620    none) break ;;
4621    esac
4622    if depmode=$depmode \
4623       source=sub/conftest.c object=$am__obj \
4624       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4625       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4626         >/dev/null 2>conftest.err &&
4627       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4628       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4629       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4630       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4631      # icc doesn't choke on unknown options, it will just issue warnings
4632      # or remarks (even with -Werror).  So we grep stderr for any message
4633      # that says an option was ignored or not supported.
4634      # When given -MP, icc 7.0 and 7.1 complain thusly:
4635      #   icc: Command line warning: ignoring option '-M'; no argument required
4636      # The diagnosis changed in icc 8.0:
4637      #   icc: Command line remark: option '-MP' not supported
4638      if (grep 'ignoring option' conftest.err ||
4639          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4640        am_cv_CC_dependencies_compiler_type=$depmode
4641        break
4642      fi
4643    fi
4644  done
4645
4646  cd ..
4647  rm -rf conftest.dir
4648else
4649  am_cv_CC_dependencies_compiler_type=none
4650fi
4651
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4654$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4655CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4656
4657 if
4658  test "x$enable_dependency_tracking" != xno \
4659  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4660  am__fastdepCC_TRUE=
4661  am__fastdepCC_FALSE='#'
4662else
4663  am__fastdepCC_TRUE='#'
4664  am__fastdepCC_FALSE=
4665fi
4666
4667
4668ac_ext=c
4669ac_cpp='$CPP $CPPFLAGS'
4670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674$as_echo_n "checking how to run the C preprocessor... " >&6; }
4675# On Suns, sometimes $CPP names a directory.
4676if test -n "$CPP" && test -d "$CPP"; then
4677  CPP=
4678fi
4679if test -z "$CPP"; then
4680  if ${ac_cv_prog_CPP+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683      # Double quotes because CPP needs to be expanded
4684    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4685    do
4686      ac_preproc_ok=false
4687for ac_c_preproc_warn_flag in '' yes
4688do
4689  # Use a header file that comes with gcc, so configuring glibc
4690  # with a fresh cross-compiler works.
4691  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692  # <limits.h> exists even on freestanding compilers.
4693  # On the NeXT, cc -E runs the code through the compiler's parser,
4694  # not just through cpp. "Syntax error" is here to catch this case.
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697#ifdef __STDC__
4698# include <limits.h>
4699#else
4700# include <assert.h>
4701#endif
4702                     Syntax error
4703_ACEOF
4704if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706else
4707  # Broken: fails on valid input.
4708continue
4709fi
4710rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712  # OK, works on sane cases.  Now check whether nonexistent headers
4713  # can be detected and how.
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716#include <ac_nonexistent.h>
4717_ACEOF
4718if ac_fn_c_try_cpp "$LINENO"; then :
4719  # Broken: success on invalid input.
4720continue
4721else
4722  # Passes both tests.
4723ac_preproc_ok=:
4724break
4725fi
4726rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728done
4729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730rm -f conftest.i conftest.err conftest.$ac_ext
4731if $ac_preproc_ok; then :
4732  break
4733fi
4734
4735    done
4736    ac_cv_prog_CPP=$CPP
4737
4738fi
4739  CPP=$ac_cv_prog_CPP
4740else
4741  ac_cv_prog_CPP=$CPP
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744$as_echo "$CPP" >&6; }
4745ac_preproc_ok=false
4746for ac_c_preproc_warn_flag in '' yes
4747do
4748  # Use a header file that comes with gcc, so configuring glibc
4749  # with a fresh cross-compiler works.
4750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751  # <limits.h> exists even on freestanding compilers.
4752  # On the NeXT, cc -E runs the code through the compiler's parser,
4753  # not just through cpp. "Syntax error" is here to catch this case.
4754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761                     Syntax error
4762_ACEOF
4763if ac_fn_c_try_cpp "$LINENO"; then :
4764
4765else
4766  # Broken: fails on valid input.
4767continue
4768fi
4769rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771  # OK, works on sane cases.  Now check whether nonexistent headers
4772  # can be detected and how.
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775#include <ac_nonexistent.h>
4776_ACEOF
4777if ac_fn_c_try_cpp "$LINENO"; then :
4778  # Broken: success on invalid input.
4779continue
4780else
4781  # Passes both tests.
4782ac_preproc_ok=:
4783break
4784fi
4785rm -f conftest.err conftest.i conftest.$ac_ext
4786
4787done
4788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789rm -f conftest.i conftest.err conftest.$ac_ext
4790if $ac_preproc_ok; then :
4791
4792else
4793  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796See \`config.log' for more details" "$LINENO" 5; }
4797fi
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4807$as_echo_n "checking whether ln -s works... " >&6; }
4808LN_S=$as_ln_s
4809if test "$LN_S" = "ln -s"; then
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4811$as_echo "yes" >&6; }
4812else
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4814$as_echo "no, using $LN_S" >&6; }
4815fi
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4819set x ${MAKE-make}
4820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4821if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4822  $as_echo_n "(cached) " >&6
4823else
4824  cat >conftest.make <<\_ACEOF
4825SHELL = /bin/sh
4826all:
4827        @echo '@@@%%%=$(MAKE)=@@@%%%'
4828_ACEOF
4829# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4830case `${MAKE-make} -f conftest.make 2>/dev/null` in
4831  *@@@%%%=?*=@@@%%%*)
4832    eval ac_cv_prog_make_${ac_make}_set=yes;;
4833  *)
4834    eval ac_cv_prog_make_${ac_make}_set=no;;
4835esac
4836rm -f conftest.make
4837fi
4838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840$as_echo "yes" >&6; }
4841  SET_MAKE=
4842else
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
4845  SET_MAKE="MAKE=${MAKE-make}"
4846fi
4847
4848# Make sure we can run config.sub.
4849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4850  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4853$as_echo_n "checking build system type... " >&6; }
4854if ${ac_cv_build+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  ac_build_alias=$build_alias
4858test "x$ac_build_alias" = x &&
4859  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4860test "x$ac_build_alias" = x &&
4861  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4862ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4863  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4864
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4867$as_echo "$ac_cv_build" >&6; }
4868case $ac_cv_build in
4869*-*-*) ;;
4870*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4871esac
4872build=$ac_cv_build
4873ac_save_IFS=$IFS; IFS='-'
4874set x $ac_cv_build
4875shift
4876build_cpu=$1
4877build_vendor=$2
4878shift; shift
4879# Remember, the first character of IFS is used to create $*,
4880# except with old shells:
4881build_os=$*
4882IFS=$ac_save_IFS
4883case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4884
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4887$as_echo_n "checking host system type... " >&6; }
4888if ${ac_cv_host+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  if test "x$host_alias" = x; then
4892  ac_cv_host=$ac_cv_build
4893else
4894  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4895    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4896fi
4897
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4900$as_echo "$ac_cv_host" >&6; }
4901case $ac_cv_host in
4902*-*-*) ;;
4903*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4904esac
4905host=$ac_cv_host
4906ac_save_IFS=$IFS; IFS='-'
4907set x $ac_cv_host
4908shift
4909host_cpu=$1
4910host_vendor=$2
4911shift; shift
4912# Remember, the first character of IFS is used to create $*,
4913# except with old shells:
4914host_os=$*
4915IFS=$ac_save_IFS
4916case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4917
4918
4919enable_win32_dll=yes
4920
4921case $host in
4922*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4923  if test -n "$ac_tool_prefix"; then
4924  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4925set dummy ${ac_tool_prefix}as; ac_word=$2
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if ${ac_cv_prog_AS+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  if test -n "$AS"; then
4932  ac_cv_prog_AS="$AS" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_exec_ext in '' $ac_executable_extensions; do
4940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941    ac_cv_prog_AS="${ac_tool_prefix}as"
4942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943    break 2
4944  fi
4945done
4946  done
4947IFS=$as_save_IFS
4948
4949fi
4950fi
4951AS=$ac_cv_prog_AS
4952if test -n "$AS"; then
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4954$as_echo "$AS" >&6; }
4955else
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960
4961fi
4962if test -z "$ac_cv_prog_AS"; then
4963  ac_ct_AS=$AS
4964  # Extract the first word of "as", so it can be a program name with args.
4965set dummy as; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if ${ac_cv_prog_ac_ct_AS+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  if test -n "$ac_ct_AS"; then
4972  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979    for ac_exec_ext in '' $ac_executable_extensions; do
4980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981    ac_cv_prog_ac_ct_AS="as"
4982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983    break 2
4984  fi
4985done
4986  done
4987IFS=$as_save_IFS
4988
4989fi
4990fi
4991ac_ct_AS=$ac_cv_prog_ac_ct_AS
4992if test -n "$ac_ct_AS"; then
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4994$as_echo "$ac_ct_AS" >&6; }
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998fi
4999
5000  if test "x$ac_ct_AS" = x; then
5001    AS="false"
5002  else
5003    case $cross_compiling:$ac_tool_warned in
5004yes:)
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007ac_tool_warned=yes ;;
5008esac
5009    AS=$ac_ct_AS
5010  fi
5011else
5012  AS="$ac_cv_prog_AS"
5013fi
5014
5015  if test -n "$ac_tool_prefix"; then
5016  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5017set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if ${ac_cv_prog_DLLTOOL+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  if test -n "$DLLTOOL"; then
5024  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029  IFS=$as_save_IFS
5030  test -z "$as_dir" && as_dir=.
5031    for ac_exec_ext in '' $ac_executable_extensions; do
5032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035    break 2
5036  fi
5037done
5038  done
5039IFS=$as_save_IFS
5040
5041fi
5042fi
5043DLLTOOL=$ac_cv_prog_DLLTOOL
5044if test -n "$DLLTOOL"; then
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5046$as_echo "$DLLTOOL" >&6; }
5047else
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5050fi
5051
5052
5053fi
5054if test -z "$ac_cv_prog_DLLTOOL"; then
5055  ac_ct_DLLTOOL=$DLLTOOL
5056  # Extract the first word of "dlltool", so it can be a program name with args.
5057set dummy dlltool; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  if test -n "$ac_ct_DLLTOOL"; then
5064  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071    for ac_exec_ext in '' $ac_executable_extensions; do
5072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078  done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5084if test -n "$ac_ct_DLLTOOL"; then
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5086$as_echo "$ac_ct_DLLTOOL" >&6; }
5087else
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092  if test "x$ac_ct_DLLTOOL" = x; then
5093    DLLTOOL="false"
5094  else
5095    case $cross_compiling:$ac_tool_warned in
5096yes:)
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099ac_tool_warned=yes ;;
5100esac
5101    DLLTOOL=$ac_ct_DLLTOOL
5102  fi
5103else
5104  DLLTOOL="$ac_cv_prog_DLLTOOL"
5105fi
5106
5107  if test -n "$ac_tool_prefix"; then
5108  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if ${ac_cv_prog_OBJDUMP+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  if test -n "$OBJDUMP"; then
5116  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121  IFS=$as_save_IFS
5122  test -z "$as_dir" && as_dir=.
5123    for ac_exec_ext in '' $ac_executable_extensions; do
5124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127    break 2
5128  fi
5129done
5130  done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135OBJDUMP=$ac_cv_prog_OBJDUMP
5136if test -n "$OBJDUMP"; then
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5138$as_echo "$OBJDUMP" >&6; }
5139else
5140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144
5145fi
5146if test -z "$ac_cv_prog_OBJDUMP"; then
5147  ac_ct_OBJDUMP=$OBJDUMP
5148  # Extract the first word of "objdump", so it can be a program name with args.
5149set dummy objdump; ac_word=$2
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
5152if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  if test -n "$ac_ct_OBJDUMP"; then
5156  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163    for ac_exec_ext in '' $ac_executable_extensions; do
5164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167    break 2
5168  fi
5169done
5170  done
5171IFS=$as_save_IFS
5172
5173fi
5174fi
5175ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176if test -n "$ac_ct_OBJDUMP"; then
5177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5178$as_echo "$ac_ct_OBJDUMP" >&6; }
5179else
5180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }
5182fi
5183
5184  if test "x$ac_ct_OBJDUMP" = x; then
5185    OBJDUMP="false"
5186  else
5187    case $cross_compiling:$ac_tool_warned in
5188yes:)
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191ac_tool_warned=yes ;;
5192esac
5193    OBJDUMP=$ac_ct_OBJDUMP
5194  fi
5195else
5196  OBJDUMP="$ac_cv_prog_OBJDUMP"
5197fi
5198
5199  ;;
5200esac
5201
5202test -z "$AS" && AS=as
5203
5204
5205
5206
5207
5208test -z "$DLLTOOL" && DLLTOOL=dlltool
5209
5210
5211
5212
5213
5214test -z "$OBJDUMP" && OBJDUMP=objdump
5215
5216
5217
5218
5219
5220
5221
5222case `pwd` in
5223  *\ * | *\     *)
5224    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5225$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5226esac
5227
5228
5229
5230macro_version='2.4.2'
5231macro_revision='1.3337'
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245ltmain="$ac_aux_dir/ltmain.sh"
5246
5247# Backslashify metacharacters that are still active within
5248# double-quoted strings.
5249sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5250
5251# Same as above, but do not quote variable references.
5252double_quote_subst='s/\(["`\\]\)/\\\1/g'
5253
5254# Sed substitution to delay expansion of an escaped shell variable in a
5255# double_quote_subst'ed string.
5256delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5257
5258# Sed substitution to delay expansion of an escaped single quote.
5259delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5260
5261# Sed substitution to avoid accidental globbing in evaled expressions
5262no_glob_subst='s/\*/\\\*/g'
5263
5264ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5265ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5266ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5269$as_echo_n "checking how to print strings... " >&6; }
5270# Test print first, because it will be a builtin if present.
5271if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5272   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5273  ECHO='print -r --'
5274elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5275  ECHO='printf %s\n'
5276else
5277  # Use this function as a fallback that always works.
5278  func_fallback_echo ()
5279  {
5280    eval 'cat <<_LTECHO_EOF
5281$1
5282_LTECHO_EOF'
5283  }
5284  ECHO='func_fallback_echo'
5285fi
5286
5287# func_echo_all arg...
5288# Invoke $ECHO with all args, space-separated.
5289func_echo_all ()
5290{
5291    $ECHO ""
5292}
5293
5294case "$ECHO" in
5295  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5296$as_echo "printf" >&6; } ;;
5297  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5298$as_echo "print -r" >&6; } ;;
5299  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5300$as_echo "cat" >&6; } ;;
5301esac
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5317$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5318if ${ac_cv_path_SED+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5322     for ac_i in 1 2 3 4 5 6 7; do
5323       ac_script="$ac_script$as_nl$ac_script"
5324     done
5325     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5326     { ac_script=; unset ac_script;}
5327     if test -z "$SED"; then
5328  ac_path_SED_found=false
5329  # Loop through the user's path and test for each of PROGNAME-LIST
5330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335    for ac_prog in sed gsed; do
5336    for ac_exec_ext in '' $ac_executable_extensions; do
5337      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5338      as_fn_executable_p "$ac_path_SED" || continue
5339# Check for GNU ac_path_SED and select it if it is found.
5340  # Check for GNU $ac_path_SED
5341case `"$ac_path_SED" --version 2>&1` in
5342*GNU*)
5343  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5344*)
5345  ac_count=0
5346  $as_echo_n 0123456789 >"conftest.in"
5347  while :
5348  do
5349    cat "conftest.in" "conftest.in" >"conftest.tmp"
5350    mv "conftest.tmp" "conftest.in"
5351    cp "conftest.in" "conftest.nl"
5352    $as_echo '' >> "conftest.nl"
5353    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5354    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5355    as_fn_arith $ac_count + 1 && ac_count=$as_val
5356    if test $ac_count -gt ${ac_path_SED_max-0}; then
5357      # Best one so far, save it but keep looking for a better one
5358      ac_cv_path_SED="$ac_path_SED"
5359      ac_path_SED_max=$ac_count
5360    fi
5361    # 10*(2^10) chars as input seems more than enough
5362    test $ac_count -gt 10 && break
5363  done
5364  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5365esac
5366
5367      $ac_path_SED_found && break 3
5368    done
5369  done
5370  done
5371IFS=$as_save_IFS
5372  if test -z "$ac_cv_path_SED"; then
5373    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5374  fi
5375else
5376  ac_cv_path_SED=$SED
5377fi
5378
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5381$as_echo "$ac_cv_path_SED" >&6; }
5382 SED="$ac_cv_path_SED"
5383  rm -f conftest.sed
5384
5385test -z "$SED" && SED=sed
5386Xsed="$SED -e 1s/^X//"
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5399$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5400if ${ac_cv_path_GREP+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -z "$GREP"; then
5404  ac_path_GREP_found=false
5405  # Loop through the user's path and test for each of PROGNAME-LIST
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_prog in grep ggrep; do
5412    for ac_exec_ext in '' $ac_executable_extensions; do
5413      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5414      as_fn_executable_p "$ac_path_GREP" || continue
5415# Check for GNU ac_path_GREP and select it if it is found.
5416  # Check for GNU $ac_path_GREP
5417case `"$ac_path_GREP" --version 2>&1` in
5418*GNU*)
5419  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5420*)
5421  ac_count=0
5422  $as_echo_n 0123456789 >"conftest.in"
5423  while :
5424  do
5425    cat "conftest.in" "conftest.in" >"conftest.tmp"
5426    mv "conftest.tmp" "conftest.in"
5427    cp "conftest.in" "conftest.nl"
5428    $as_echo 'GREP' >> "conftest.nl"
5429    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431    as_fn_arith $ac_count + 1 && ac_count=$as_val
5432    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5433      # Best one so far, save it but keep looking for a better one
5434      ac_cv_path_GREP="$ac_path_GREP"
5435      ac_path_GREP_max=$ac_count
5436    fi
5437    # 10*(2^10) chars as input seems more than enough
5438    test $ac_count -gt 10 && break
5439  done
5440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441esac
5442
5443      $ac_path_GREP_found && break 3
5444    done
5445  done
5446  done
5447IFS=$as_save_IFS
5448  if test -z "$ac_cv_path_GREP"; then
5449    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450  fi
5451else
5452  ac_cv_path_GREP=$GREP
5453fi
5454
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5457$as_echo "$ac_cv_path_GREP" >&6; }
5458 GREP="$ac_cv_path_GREP"
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5462$as_echo_n "checking for egrep... " >&6; }
5463if ${ac_cv_path_EGREP+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5467   then ac_cv_path_EGREP="$GREP -E"
5468   else
5469     if test -z "$EGREP"; then
5470  ac_path_EGREP_found=false
5471  # Loop through the user's path and test for each of PROGNAME-LIST
5472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_prog in egrep; do
5478    for ac_exec_ext in '' $ac_executable_extensions; do
5479      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5480      as_fn_executable_p "$ac_path_EGREP" || continue
5481# Check for GNU ac_path_EGREP and select it if it is found.
5482  # Check for GNU $ac_path_EGREP
5483case `"$ac_path_EGREP" --version 2>&1` in
5484*GNU*)
5485  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5486*)
5487  ac_count=0
5488  $as_echo_n 0123456789 >"conftest.in"
5489  while :
5490  do
5491    cat "conftest.in" "conftest.in" >"conftest.tmp"
5492    mv "conftest.tmp" "conftest.in"
5493    cp "conftest.in" "conftest.nl"
5494    $as_echo 'EGREP' >> "conftest.nl"
5495    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497    as_fn_arith $ac_count + 1 && ac_count=$as_val
5498    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5499      # Best one so far, save it but keep looking for a better one
5500      ac_cv_path_EGREP="$ac_path_EGREP"
5501      ac_path_EGREP_max=$ac_count
5502    fi
5503    # 10*(2^10) chars as input seems more than enough
5504    test $ac_count -gt 10 && break
5505  done
5506  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507esac
5508
5509      $ac_path_EGREP_found && break 3
5510    done
5511  done
5512  done
5513IFS=$as_save_IFS
5514  if test -z "$ac_cv_path_EGREP"; then
5515    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516  fi
5517else
5518  ac_cv_path_EGREP=$EGREP
5519fi
5520
5521   fi
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5524$as_echo "$ac_cv_path_EGREP" >&6; }
5525 EGREP="$ac_cv_path_EGREP"
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5529$as_echo_n "checking for fgrep... " >&6; }
5530if ${ac_cv_path_FGREP+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5534   then ac_cv_path_FGREP="$GREP -F"
5535   else
5536     if test -z "$FGREP"; then
5537  ac_path_FGREP_found=false
5538  # Loop through the user's path and test for each of PROGNAME-LIST
5539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541do
5542  IFS=$as_save_IFS
5543  test -z "$as_dir" && as_dir=.
5544    for ac_prog in fgrep; do
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5547      as_fn_executable_p "$ac_path_FGREP" || continue
5548# Check for GNU ac_path_FGREP and select it if it is found.
5549  # Check for GNU $ac_path_FGREP
5550case `"$ac_path_FGREP" --version 2>&1` in
5551*GNU*)
5552  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5553*)
5554  ac_count=0
5555  $as_echo_n 0123456789 >"conftest.in"
5556  while :
5557  do
5558    cat "conftest.in" "conftest.in" >"conftest.tmp"
5559    mv "conftest.tmp" "conftest.in"
5560    cp "conftest.in" "conftest.nl"
5561    $as_echo 'FGREP' >> "conftest.nl"
5562    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564    as_fn_arith $ac_count + 1 && ac_count=$as_val
5565    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5566      # Best one so far, save it but keep looking for a better one
5567      ac_cv_path_FGREP="$ac_path_FGREP"
5568      ac_path_FGREP_max=$ac_count
5569    fi
5570    # 10*(2^10) chars as input seems more than enough
5571    test $ac_count -gt 10 && break
5572  done
5573  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574esac
5575
5576      $ac_path_FGREP_found && break 3
5577    done
5578  done
5579  done
5580IFS=$as_save_IFS
5581  if test -z "$ac_cv_path_FGREP"; then
5582    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5583  fi
5584else
5585  ac_cv_path_FGREP=$FGREP
5586fi
5587
5588   fi
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5591$as_echo "$ac_cv_path_FGREP" >&6; }
5592 FGREP="$ac_cv_path_FGREP"
5593
5594
5595test -z "$GREP" && GREP=grep
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615# Check whether --with-gnu-ld was given.
5616if test "${with_gnu_ld+set}" = set; then :
5617  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5618else
5619  with_gnu_ld=no
5620fi
5621
5622ac_prog=ld
5623if test "$GCC" = yes; then
5624  # Check if gcc -print-prog-name=ld gives a path.
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5626$as_echo_n "checking for ld used by $CC... " >&6; }
5627  case $host in
5628  *-*-mingw*)
5629    # gcc leaves a trailing carriage return which upsets mingw
5630    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5631  *)
5632    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5633  esac
5634  case $ac_prog in
5635    # Accept absolute paths.
5636    [\\/]* | ?:[\\/]*)
5637      re_direlt='/[^/][^/]*/\.\./'
5638      # Canonicalize the pathname of ld
5639      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5640      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5641        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5642      done
5643      test -z "$LD" && LD="$ac_prog"
5644      ;;
5645  "")
5646    # If it fails, then pretend we aren't using GCC.
5647    ac_prog=ld
5648    ;;
5649  *)
5650    # If it is relative, then search for the first ld in PATH.
5651    with_gnu_ld=unknown
5652    ;;
5653  esac
5654elif test "$with_gnu_ld" = yes; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5656$as_echo_n "checking for GNU ld... " >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5659$as_echo_n "checking for non-GNU ld... " >&6; }
5660fi
5661if ${lt_cv_path_LD+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -z "$LD"; then
5665  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5666  for ac_dir in $PATH; do
5667    IFS="$lt_save_ifs"
5668    test -z "$ac_dir" && ac_dir=.
5669    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5670      lt_cv_path_LD="$ac_dir/$ac_prog"
5671      # Check to see if the program is GNU ld.  I'd rather use --version,
5672      # but apparently some variants of GNU ld only accept -v.
5673      # Break only if it was the GNU/non-GNU ld that we prefer.
5674      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5675      *GNU* | *'with BFD'*)
5676        test "$with_gnu_ld" != no && break
5677        ;;
5678      *)
5679        test "$with_gnu_ld" != yes && break
5680        ;;
5681      esac
5682    fi
5683  done
5684  IFS="$lt_save_ifs"
5685else
5686  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5687fi
5688fi
5689
5690LD="$lt_cv_path_LD"
5691if test -n "$LD"; then
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5693$as_echo "$LD" >&6; }
5694else
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5700$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5701if ${lt_cv_prog_gnu_ld+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5705case `$LD -v 2>&1 </dev/null` in
5706*GNU* | *'with BFD'*)
5707  lt_cv_prog_gnu_ld=yes
5708  ;;
5709*)
5710  lt_cv_prog_gnu_ld=no
5711  ;;
5712esac
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5715$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5716with_gnu_ld=$lt_cv_prog_gnu_ld
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5727$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5728if ${lt_cv_path_NM+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  if test -n "$NM"; then
5732  # Let the user override the test.
5733  lt_cv_path_NM="$NM"
5734else
5735  lt_nm_to_check="${ac_tool_prefix}nm"
5736  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737    lt_nm_to_check="$lt_nm_to_check nm"
5738  fi
5739  for lt_tmp_nm in $lt_nm_to_check; do
5740    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742      IFS="$lt_save_ifs"
5743      test -z "$ac_dir" && ac_dir=.
5744      tmp_nm="$ac_dir/$lt_tmp_nm"
5745      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5746        # Check to see if the nm accepts a BSD-compat flag.
5747        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5748        #   nm: unknown option "B" ignored
5749        # Tru64's nm complains that /dev/null is an invalid object file
5750        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5751        */dev/null* | *'Invalid file or object type'*)
5752          lt_cv_path_NM="$tmp_nm -B"
5753          break
5754          ;;
5755        *)
5756          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757          */dev/null*)
5758            lt_cv_path_NM="$tmp_nm -p"
5759            break
5760            ;;
5761          *)
5762            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763            continue # so that we can try to find one that supports BSD flags
5764            ;;
5765          esac
5766          ;;
5767        esac
5768      fi
5769    done
5770    IFS="$lt_save_ifs"
5771  done
5772  : ${lt_cv_path_NM=no}
5773fi
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5776$as_echo "$lt_cv_path_NM" >&6; }
5777if test "$lt_cv_path_NM" != "no"; then
5778  NM="$lt_cv_path_NM"
5779else
5780  # Didn't find any BSD compatible name lister, look for dumpbin.
5781  if test -n "$DUMPBIN"; then :
5782    # Let the user override the test.
5783  else
5784    if test -n "$ac_tool_prefix"; then
5785  for ac_prog in dumpbin "link -dump"
5786  do
5787    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790$as_echo_n "checking for $ac_word... " >&6; }
5791if ${ac_cv_prog_DUMPBIN+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  if test -n "$DUMPBIN"; then
5795  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800  IFS=$as_save_IFS
5801  test -z "$as_dir" && as_dir=.
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806    break 2
5807  fi
5808done
5809  done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814DUMPBIN=$ac_cv_prog_DUMPBIN
5815if test -n "$DUMPBIN"; then
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5817$as_echo "$DUMPBIN" >&6; }
5818else
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824    test -n "$DUMPBIN" && break
5825  done
5826fi
5827if test -z "$DUMPBIN"; then
5828  ac_ct_DUMPBIN=$DUMPBIN
5829  for ac_prog in dumpbin "link -dump"
5830do
5831  # Extract the first word of "$ac_prog", so it can be a program name with args.
5832set dummy $ac_prog; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
5835if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  if test -n "$ac_ct_DUMPBIN"; then
5839  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844  IFS=$as_save_IFS
5845  test -z "$as_dir" && as_dir=.
5846    for ac_exec_ext in '' $ac_executable_extensions; do
5847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850    break 2
5851  fi
5852done
5853  done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5859if test -n "$ac_ct_DUMPBIN"; then
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5861$as_echo "$ac_ct_DUMPBIN" >&6; }
5862else
5863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867
5868  test -n "$ac_ct_DUMPBIN" && break
5869done
5870
5871  if test "x$ac_ct_DUMPBIN" = x; then
5872    DUMPBIN=":"
5873  else
5874    case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
5880    DUMPBIN=$ac_ct_DUMPBIN
5881  fi
5882fi
5883
5884    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5885    *COFF*)
5886      DUMPBIN="$DUMPBIN -symbols"
5887      ;;
5888    *)
5889      DUMPBIN=:
5890      ;;
5891    esac
5892  fi
5893
5894  if test "$DUMPBIN" != ":"; then
5895    NM="$DUMPBIN"
5896  fi
5897fi
5898test -z "$NM" && NM=nm
5899
5900
5901
5902
5903
5904
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5906$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5907if ${lt_cv_nm_interface+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  lt_cv_nm_interface="BSD nm"
5911  echo "int some_variable = 0;" > conftest.$ac_ext
5912  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5913  (eval "$ac_compile" 2>conftest.err)
5914  cat conftest.err >&5
5915  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5916  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5917  cat conftest.err >&5
5918  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5919  cat conftest.out >&5
5920  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5921    lt_cv_nm_interface="MS dumpbin"
5922  fi
5923  rm -f conftest*
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5926$as_echo "$lt_cv_nm_interface" >&6; }
5927
5928# find the maximum length of command line arguments
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5930$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5931if ${lt_cv_sys_max_cmd_len+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934    i=0
5935  teststring="ABCD"
5936
5937  case $build_os in
5938  msdosdjgpp*)
5939    # On DJGPP, this test can blow up pretty badly due to problems in libc
5940    # (any single argument exceeding 2000 bytes causes a buffer overrun
5941    # during glob expansion).  Even if it were fixed, the result of this
5942    # check would be larger than it should be.
5943    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5944    ;;
5945
5946  gnu*)
5947    # Under GNU Hurd, this test is not required because there is
5948    # no limit to the length of command line arguments.
5949    # Libtool will interpret -1 as no limit whatsoever
5950    lt_cv_sys_max_cmd_len=-1;
5951    ;;
5952
5953  cygwin* | mingw* | cegcc*)
5954    # On Win9x/ME, this test blows up -- it succeeds, but takes
5955    # about 5 minutes as the teststring grows exponentially.
5956    # Worse, since 9x/ME are not pre-emptively multitasking,
5957    # you end up with a "frozen" computer, even though with patience
5958    # the test eventually succeeds (with a max line length of 256k).
5959    # Instead, let's just punt: use the minimum linelength reported by
5960    # all of the supported platforms: 8192 (on NT/2K/XP).
5961    lt_cv_sys_max_cmd_len=8192;
5962    ;;
5963
5964  mint*)
5965    # On MiNT this can take a long time and run out of memory.
5966    lt_cv_sys_max_cmd_len=8192;
5967    ;;
5968
5969  amigaos*)
5970    # On AmigaOS with pdksh, this test takes hours, literally.
5971    # So we just punt and use a minimum line length of 8192.
5972    lt_cv_sys_max_cmd_len=8192;
5973    ;;
5974
5975  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5976    # This has been around since 386BSD, at least.  Likely further.
5977    if test -x /sbin/sysctl; then
5978      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5979    elif test -x /usr/sbin/sysctl; then
5980      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5981    else
5982      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5983    fi
5984    # And add a safety zone
5985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5986    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5987    ;;
5988
5989  interix*)
5990    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5991    lt_cv_sys_max_cmd_len=196608
5992    ;;
5993
5994  os2*)
5995    # The test takes a long time on OS/2.
5996    lt_cv_sys_max_cmd_len=8192
5997    ;;
5998
5999  osf*)
6000    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6001    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6002    # nice to cause kernel panics so lets avoid the loop below.
6003    # First set a reasonable default.
6004    lt_cv_sys_max_cmd_len=16384
6005    #
6006    if test -x /sbin/sysconfig; then
6007      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6008        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6009      esac
6010    fi
6011    ;;
6012  sco3.2v5*)
6013    lt_cv_sys_max_cmd_len=102400
6014    ;;
6015  sysv5* | sco5v6* | sysv4.2uw2*)
6016    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6017    if test -n "$kargmax"; then
6018      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6019    else
6020      lt_cv_sys_max_cmd_len=32768
6021    fi
6022    ;;
6023  *)
6024    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6025    if test -n "$lt_cv_sys_max_cmd_len"; then
6026      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6027      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6028    else
6029      # Make teststring a little bigger before we do anything with it.
6030      # a 1K string should be a reasonable start.
6031      for i in 1 2 3 4 5 6 7 8 ; do
6032        teststring=$teststring$teststring
6033      done
6034      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6035      # If test is not a shell built-in, we'll probably end up computing a
6036      # maximum length that is only half of the actual maximum length, but
6037      # we can't tell.
6038      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6039                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6040              test $i != 17 # 1/2 MB should be enough
6041      do
6042        i=`expr $i + 1`
6043        teststring=$teststring$teststring
6044      done
6045      # Only check the string length outside the loop.
6046      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6047      teststring=
6048      # Add a significant safety factor because C++ compilers can tack on
6049      # massive amounts of additional arguments before passing them to the
6050      # linker.  It appears as though 1/2 is a usable value.
6051      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6052    fi
6053    ;;
6054  esac
6055
6056fi
6057
6058if test -n $lt_cv_sys_max_cmd_len ; then
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6060$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6061else
6062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6063$as_echo "none" >&6; }
6064fi
6065max_cmd_len=$lt_cv_sys_max_cmd_len
6066
6067
6068
6069
6070
6071
6072: ${CP="cp -f"}
6073: ${MV="mv -f"}
6074: ${RM="rm -f"}
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6077$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6078# Try some XSI features
6079xsi_shell=no
6080( _lt_dummy="a/b/c"
6081  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6082      = c,a/b,b/c, \
6083    && eval 'test $(( 1 + 1 )) -eq 2 \
6084    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6085  && xsi_shell=yes
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6087$as_echo "$xsi_shell" >&6; }
6088
6089
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6091$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6092lt_shell_append=no
6093( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6094    >/dev/null 2>&1 \
6095  && lt_shell_append=yes
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6097$as_echo "$lt_shell_append" >&6; }
6098
6099
6100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6101  lt_unset=unset
6102else
6103  lt_unset=false
6104fi
6105
6106
6107
6108
6109
6110# test EBCDIC or ASCII
6111case `echo X|tr X '\101'` in
6112 A) # ASCII based system
6113    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6114  lt_SP2NL='tr \040 \012'
6115  lt_NL2SP='tr \015\012 \040\040'
6116  ;;
6117 *) # EBCDIC based system
6118  lt_SP2NL='tr \100 \n'
6119  lt_NL2SP='tr \r\n \100\100'
6120  ;;
6121esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6132$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6133if ${lt_cv_to_host_file_cmd+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136  case $host in
6137  *-*-mingw* )
6138    case $build in
6139      *-*-mingw* ) # actually msys
6140        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6141        ;;
6142      *-*-cygwin* )
6143        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6144        ;;
6145      * ) # otherwise, assume *nix
6146        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6147        ;;
6148    esac
6149    ;;
6150  *-*-cygwin* )
6151    case $build in
6152      *-*-mingw* ) # actually msys
6153        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6154        ;;
6155      *-*-cygwin* )
6156        lt_cv_to_host_file_cmd=func_convert_file_noop
6157        ;;
6158      * ) # otherwise, assume *nix
6159        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6160        ;;
6161    esac
6162    ;;
6163  * ) # unhandled hosts (and "normal" native builds)
6164    lt_cv_to_host_file_cmd=func_convert_file_noop
6165    ;;
6166esac
6167
6168fi
6169
6170to_host_file_cmd=$lt_cv_to_host_file_cmd
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6172$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6179$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6180if ${lt_cv_to_tool_file_cmd+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  #assume ordinary cross tools, or native build.
6184lt_cv_to_tool_file_cmd=func_convert_file_noop
6185case $host in
6186  *-*-mingw* )
6187    case $build in
6188      *-*-mingw* ) # actually msys
6189        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6190        ;;
6191    esac
6192    ;;
6193esac
6194
6195fi
6196
6197to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6199$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6200
6201
6202
6203
6204
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206$as_echo_n "checking for $LD option to reload object files... " >&6; }
6207if ${lt_cv_ld_reload_flag+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  lt_cv_ld_reload_flag='-r'
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213$as_echo "$lt_cv_ld_reload_flag" >&6; }
6214reload_flag=$lt_cv_ld_reload_flag
6215case $reload_flag in
6216"" | " "*) ;;
6217*) reload_flag=" $reload_flag" ;;
6218esac
6219reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220case $host_os in
6221  cygwin* | mingw* | pw32* | cegcc*)
6222    if test "$GCC" != yes; then
6223      reload_cmds=false
6224    fi
6225    ;;
6226  darwin*)
6227    if test "$GCC" = yes; then
6228      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229    else
6230      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231    fi
6232    ;;
6233esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243if test -n "$ac_tool_prefix"; then
6244  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_OBJDUMP+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$OBJDUMP"; then
6252  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271OBJDUMP=$ac_cv_prog_OBJDUMP
6272if test -n "$OBJDUMP"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274$as_echo "$OBJDUMP" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_OBJDUMP"; then
6283  ac_ct_OBJDUMP=$OBJDUMP
6284  # Extract the first word of "objdump", so it can be a program name with args.
6285set dummy objdump; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$ac_ct_OBJDUMP"; then
6292  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312if test -n "$ac_ct_OBJDUMP"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314$as_echo "$ac_ct_OBJDUMP" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320  if test "x$ac_ct_OBJDUMP" = x; then
6321    OBJDUMP="false"
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329    OBJDUMP=$ac_ct_OBJDUMP
6330  fi
6331else
6332  OBJDUMP="$ac_cv_prog_OBJDUMP"
6333fi
6334
6335test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6343$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6344if ${lt_cv_deplibs_check_method+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  lt_cv_file_magic_cmd='$MAGIC_CMD'
6348lt_cv_file_magic_test_file=
6349lt_cv_deplibs_check_method='unknown'
6350# Need to set the preceding variable on all platforms that support
6351# interlibrary dependencies.
6352# 'none' -- dependencies not supported.
6353# `unknown' -- same as none, but documents that we really don't know.
6354# 'pass_all' -- all dependencies passed with no checks.
6355# 'test_compile' -- check by making test program.
6356# 'file_magic [[regex]]' -- check by looking for files in library path
6357# which responds to the $file_magic_cmd with a given extended regex.
6358# If you have `file' or equivalent on your system and you're not sure
6359# whether `pass_all' will *always* work, you probably want this one.
6360
6361case $host_os in
6362aix[4-9]*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365
6366beos*)
6367  lt_cv_deplibs_check_method=pass_all
6368  ;;
6369
6370bsdi[45]*)
6371  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372  lt_cv_file_magic_cmd='/usr/bin/file -L'
6373  lt_cv_file_magic_test_file=/shlib/libc.so
6374  ;;
6375
6376cygwin*)
6377  # func_win32_libid is a shell function defined in ltmain.sh
6378  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379  lt_cv_file_magic_cmd='func_win32_libid'
6380  ;;
6381
6382mingw* | pw32*)
6383  # Base MSYS/MinGW do not provide the 'file' command needed by
6384  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385  # unless we find 'file', for example because we are cross-compiling.
6386  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6387  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6388    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6389    lt_cv_file_magic_cmd='func_win32_libid'
6390  else
6391    # Keep this pattern in sync with the one in func_win32_libid.
6392    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6393    lt_cv_file_magic_cmd='$OBJDUMP -f'
6394  fi
6395  ;;
6396
6397cegcc*)
6398  # use the weaker test based on 'objdump'. See mingw*.
6399  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6400  lt_cv_file_magic_cmd='$OBJDUMP -f'
6401  ;;
6402
6403darwin* | rhapsody*)
6404  lt_cv_deplibs_check_method=pass_all
6405  ;;
6406
6407freebsd* | dragonfly*)
6408  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6409    case $host_cpu in
6410    i*86 )
6411      # Not sure whether the presence of OpenBSD here was a mistake.
6412      # Let's accept both of them until this is cleared up.
6413      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6414      lt_cv_file_magic_cmd=/usr/bin/file
6415      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6416      ;;
6417    esac
6418  else
6419    lt_cv_deplibs_check_method=pass_all
6420  fi
6421  ;;
6422
6423gnu*)
6424  lt_cv_deplibs_check_method=pass_all
6425  ;;
6426
6427haiku*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431hpux10.20* | hpux11*)
6432  lt_cv_file_magic_cmd=/usr/bin/file
6433  case $host_cpu in
6434  ia64*)
6435    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6437    ;;
6438  hppa*64*)
6439    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]'
6440    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6441    ;;
6442  *)
6443    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6444    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6445    ;;
6446  esac
6447  ;;
6448
6449interix[3-9]*)
6450  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6452  ;;
6453
6454irix5* | irix6* | nonstopux*)
6455  case $LD in
6456  *-32|*"-32 ") libmagic=32-bit;;
6457  *-n32|*"-n32 ") libmagic=N32;;
6458  *-64|*"-64 ") libmagic=64-bit;;
6459  *) libmagic=never-match;;
6460  esac
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463
6464# This must be glibc/ELF.
6465linux* | k*bsd*-gnu | kopensolaris*-gnu)
6466  lt_cv_deplibs_check_method=pass_all
6467  ;;
6468
6469netbsd*)
6470  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6472  else
6473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6474  fi
6475  ;;
6476
6477newos6*)
6478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479  lt_cv_file_magic_cmd=/usr/bin/file
6480  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6481  ;;
6482
6483*nto* | *qnx*)
6484  lt_cv_deplibs_check_method=pass_all
6485  ;;
6486
6487openbsd*)
6488  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6490  else
6491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492  fi
6493  ;;
6494
6495osf3* | osf4* | osf5*)
6496  lt_cv_deplibs_check_method=pass_all
6497  ;;
6498
6499rdos*)
6500  lt_cv_deplibs_check_method=pass_all
6501  ;;
6502
6503solaris*)
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511sysv4 | sysv4.3*)
6512  case $host_vendor in
6513  motorola)
6514    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]'
6515    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6516    ;;
6517  ncr)
6518    lt_cv_deplibs_check_method=pass_all
6519    ;;
6520  sequent)
6521    lt_cv_file_magic_cmd='/bin/file'
6522    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6523    ;;
6524  sni)
6525    lt_cv_file_magic_cmd='/bin/file'
6526    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527    lt_cv_file_magic_test_file=/lib/libc.so
6528    ;;
6529  siemens)
6530    lt_cv_deplibs_check_method=pass_all
6531    ;;
6532  pc)
6533    lt_cv_deplibs_check_method=pass_all
6534    ;;
6535  esac
6536  ;;
6537
6538tpf*)
6539  lt_cv_deplibs_check_method=pass_all
6540  ;;
6541esac
6542
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6545$as_echo "$lt_cv_deplibs_check_method" >&6; }
6546
6547file_magic_glob=
6548want_nocaseglob=no
6549if test "$build" = "$host"; then
6550  case $host_os in
6551  mingw* | pw32*)
6552    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6553      want_nocaseglob=yes
6554    else
6555      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6556    fi
6557    ;;
6558  esac
6559fi
6560
6561file_magic_cmd=$lt_cv_file_magic_cmd
6562deplibs_check_method=$lt_cv_deplibs_check_method
6563test -z "$deplibs_check_method" && deplibs_check_method=unknown
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if ${ac_cv_prog_DLLTOOL+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test -n "$DLLTOOL"; then
6595  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602    for ac_exec_ext in '' $ac_executable_extensions; do
6603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609  done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614DLLTOOL=$ac_cv_prog_DLLTOOL
6615if test -n "$DLLTOOL"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6617$as_echo "$DLLTOOL" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
6624fi
6625if test -z "$ac_cv_prog_DLLTOOL"; then
6626  ac_ct_DLLTOOL=$DLLTOOL
6627  # Extract the first word of "dlltool", so it can be a program name with args.
6628set dummy dlltool; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$ac_ct_DLLTOOL"; then
6635  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6655if test -n "$ac_ct_DLLTOOL"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6657$as_echo "$ac_ct_DLLTOOL" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663  if test "x$ac_ct_DLLTOOL" = x; then
6664    DLLTOOL="false"
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    DLLTOOL=$ac_ct_DLLTOOL
6673  fi
6674else
6675  DLLTOOL="$ac_cv_prog_DLLTOOL"
6676fi
6677
6678test -z "$DLLTOOL" && DLLTOOL=dlltool
6679
6680
6681
6682
6683
6684
6685
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6687$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6688if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  lt_cv_sharedlib_from_linklib_cmd='unknown'
6692
6693case $host_os in
6694cygwin* | mingw* | pw32* | cegcc*)
6695  # two different shell functions defined in ltmain.sh
6696  # decide which to use based on capabilities of $DLLTOOL
6697  case `$DLLTOOL --help 2>&1` in
6698  *--identify-strict*)
6699    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6700    ;;
6701  *)
6702    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6703    ;;
6704  esac
6705  ;;
6706*)
6707  # fallback: assume linklib IS sharedlib
6708  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6709  ;;
6710esac
6711
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6714$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6715sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6716test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6717
6718
6719
6720
6721
6722
6723
6724
6725if test -n "$ac_tool_prefix"; then
6726  for ac_prog in ar
6727  do
6728    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_AR+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$AR"; then
6736  ac_cv_prog_AR="$AR" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755AR=$ac_cv_prog_AR
6756if test -n "$AR"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6758$as_echo "$AR" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765    test -n "$AR" && break
6766  done
6767fi
6768if test -z "$AR"; then
6769  ac_ct_AR=$AR
6770  for ac_prog in ar
6771do
6772  # Extract the first word of "$ac_prog", so it can be a program name with args.
6773set dummy $ac_prog; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if ${ac_cv_prog_ac_ct_AR+:} false; then :
6777  $as_echo_n "(cached) " >&6
6778else
6779  if test -n "$ac_ct_AR"; then
6780  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  test -z "$as_dir" && as_dir=.
6787    for ac_exec_ext in '' $ac_executable_extensions; do
6788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789    ac_cv_prog_ac_ct_AR="$ac_prog"
6790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791    break 2
6792  fi
6793done
6794  done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799ac_ct_AR=$ac_cv_prog_ac_ct_AR
6800if test -n "$ac_ct_AR"; then
6801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6802$as_echo "$ac_ct_AR" >&6; }
6803else
6804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809  test -n "$ac_ct_AR" && break
6810done
6811
6812  if test "x$ac_ct_AR" = x; then
6813    AR="false"
6814  else
6815    case $cross_compiling:$ac_tool_warned in
6816yes:)
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819ac_tool_warned=yes ;;
6820esac
6821    AR=$ac_ct_AR
6822  fi
6823fi
6824
6825: ${AR=ar}
6826: ${AR_FLAGS=cru}
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6839$as_echo_n "checking for archiver @FILE support... " >&6; }
6840if ${lt_cv_ar_at_file+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  lt_cv_ar_at_file=no
6844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"; then :
6856  echo conftest.$ac_objext > conftest.lst
6857      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6858      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6859  (eval $lt_ar_try) 2>&5
6860  ac_status=$?
6861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862  test $ac_status = 0; }
6863      if test "$ac_status" -eq 0; then
6864        # Ensure the archiver fails upon bogus file names.
6865        rm -f conftest.$ac_objext libconftest.a
6866        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6867  (eval $lt_ar_try) 2>&5
6868  ac_status=$?
6869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870  test $ac_status = 0; }
6871        if test "$ac_status" -ne 0; then
6872          lt_cv_ar_at_file=@
6873        fi
6874      fi
6875      rm -f conftest.* libconftest.a
6876
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879
6880fi
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6882$as_echo "$lt_cv_ar_at_file" >&6; }
6883
6884if test "x$lt_cv_ar_at_file" = xno; then
6885  archiver_list_spec=
6886else
6887  archiver_list_spec=$lt_cv_ar_at_file
6888fi
6889
6890
6891
6892
6893
6894
6895
6896if test -n "$ac_tool_prefix"; then
6897  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}strip; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_STRIP+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$STRIP"; then
6905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924STRIP=$ac_cv_prog_STRIP
6925if test -n "$STRIP"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6927$as_echo "$STRIP" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933
6934fi
6935if test -z "$ac_cv_prog_STRIP"; then
6936  ac_ct_STRIP=$STRIP
6937  # Extract the first word of "strip", so it can be a program name with args.
6938set dummy strip; ac_word=$2
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
6941if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test -n "$ac_ct_STRIP"; then
6945  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952    for ac_exec_ext in '' $ac_executable_extensions; do
6953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954    ac_cv_prog_ac_ct_STRIP="strip"
6955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959  done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965if test -n "$ac_ct_STRIP"; then
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967$as_echo "$ac_ct_STRIP" >&6; }
6968else
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
6973  if test "x$ac_ct_STRIP" = x; then
6974    STRIP=":"
6975  else
6976    case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980ac_tool_warned=yes ;;
6981esac
6982    STRIP=$ac_ct_STRIP
6983  fi
6984else
6985  STRIP="$ac_cv_prog_STRIP"
6986fi
6987
6988test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995if test -n "$ac_tool_prefix"; then
6996  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
7000if ${ac_cv_prog_RANLIB+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  if test -n "$RANLIB"; then
7004  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011    for ac_exec_ext in '' $ac_executable_extensions; do
7012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018  done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
7023RANLIB=$ac_cv_prog_RANLIB
7024if test -n "$RANLIB"; then
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7026$as_echo "$RANLIB" >&6; }
7027else
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032
7033fi
7034if test -z "$ac_cv_prog_RANLIB"; then
7035  ac_ct_RANLIB=$RANLIB
7036  # Extract the first word of "ranlib", so it can be a program name with args.
7037set dummy ranlib; ac_word=$2
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039$as_echo_n "checking for $ac_word... " >&6; }
7040if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  if test -n "$ac_ct_RANLIB"; then
7044  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049  IFS=$as_save_IFS
7050  test -z "$as_dir" && as_dir=.
7051    for ac_exec_ext in '' $ac_executable_extensions; do
7052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053    ac_cv_prog_ac_ct_RANLIB="ranlib"
7054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055    break 2
7056  fi
7057done
7058  done
7059IFS=$as_save_IFS
7060
7061fi
7062fi
7063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7064if test -n "$ac_ct_RANLIB"; then
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7066$as_echo "$ac_ct_RANLIB" >&6; }
7067else
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069$as_echo "no" >&6; }
7070fi
7071
7072  if test "x$ac_ct_RANLIB" = x; then
7073    RANLIB=":"
7074  else
7075    case $cross_compiling:$ac_tool_warned in
7076yes:)
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079ac_tool_warned=yes ;;
7080esac
7081    RANLIB=$ac_ct_RANLIB
7082  fi
7083else
7084  RANLIB="$ac_cv_prog_RANLIB"
7085fi
7086
7087test -z "$RANLIB" && RANLIB=:
7088
7089
7090
7091
7092
7093
7094# Determine commands to create old-style static archives.
7095old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096old_postinstall_cmds='chmod 644 $oldlib'
7097old_postuninstall_cmds=
7098
7099if test -n "$RANLIB"; then
7100  case $host_os in
7101  openbsd*)
7102    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7103    ;;
7104  *)
7105    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7106    ;;
7107  esac
7108  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7109fi
7110
7111case $host_os in
7112  darwin*)
7113    lock_old_archive_extraction=yes ;;
7114  *)
7115    lock_old_archive_extraction=no ;;
7116esac
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156# If no C compiler was specified, use CC.
7157LTCC=${LTCC-"$CC"}
7158
7159# If no C compiler flags were specified, use CFLAGS.
7160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7161
7162# Allow CC to be a program name with arguments.
7163compiler=$CC
7164
7165
7166# Check for command to grab the raw symbol name followed by C symbol from nm.
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7168$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7169if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172
7173# These are sane defaults that work on at least a few old systems.
7174# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7175
7176# Character class describing NM global symbol codes.
7177symcode='[BCDEGRST]'
7178
7179# Regexp to match symbols that can be accessed directly from C.
7180sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7181
7182# Define system-specific variables.
7183case $host_os in
7184aix*)
7185  symcode='[BCDT]'
7186  ;;
7187cygwin* | mingw* | pw32* | cegcc*)
7188  symcode='[ABCDGISTW]'
7189  ;;
7190hpux*)
7191  if test "$host_cpu" = ia64; then
7192    symcode='[ABCDEGRST]'
7193  fi
7194  ;;
7195irix* | nonstopux*)
7196  symcode='[BCDEGRST]'
7197  ;;
7198osf*)
7199  symcode='[BCDEGQRST]'
7200  ;;
7201solaris*)
7202  symcode='[BDRT]'
7203  ;;
7204sco3.2v5*)
7205  symcode='[DT]'
7206  ;;
7207sysv4.2uw2*)
7208  symcode='[DT]'
7209  ;;
7210sysv5* | sco5v6* | unixware* | OpenUNIX*)
7211  symcode='[ABDT]'
7212  ;;
7213sysv4)
7214  symcode='[DFNSTU]'
7215  ;;
7216esac
7217
7218# If we're using GNU nm, then use its standard symbol codes.
7219case `$NM -V 2>&1` in
7220*GNU* | *'with BFD'*)
7221  symcode='[ABCDGIRSTW]' ;;
7222esac
7223
7224# Transform an extracted symbol line into a proper C declaration.
7225# Some systems (esp. on ia64) link data and code symbols differently,
7226# so use this general approach.
7227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7228
7229# Transform an extracted symbol line into symbol name and symbol address
7230lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7231lt_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'"
7232
7233# Handle CRLF in mingw tool chain
7234opt_cr=
7235case $build_os in
7236mingw*)
7237  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7238  ;;
7239esac
7240
7241# Try without a prefix underscore, then with it.
7242for ac_symprfx in "" "_"; do
7243
7244  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7245  symxfrm="\\1 $ac_symprfx\\2 \\2"
7246
7247  # Write the raw and C identifiers.
7248  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7249    # Fake it for dumpbin and say T for any non-static function
7250    # and D for any global variable.
7251    # Also find C++ and __fastcall symbols from MSVC++,
7252    # which start with @ or ?.
7253    lt_cv_sys_global_symbol_pipe="$AWK '"\
7254"     {last_section=section; section=\$ 3};"\
7255"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7256"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7257"     \$ 0!~/External *\|/{next};"\
7258"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7259"     {if(hide[section]) next};"\
7260"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7261"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7262"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7263"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7264"     ' prfx=^$ac_symprfx"
7265  else
7266    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267  fi
7268  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7269
7270  # Check to see that the pipe works correctly.
7271  pipe_works=no
7272
7273  rm -f conftest*
7274  cat > conftest.$ac_ext <<_LT_EOF
7275#ifdef __cplusplus
7276extern "C" {
7277#endif
7278char nm_test_var;
7279void nm_test_func(void);
7280void nm_test_func(void){}
7281#ifdef __cplusplus
7282}
7283#endif
7284int main(){nm_test_var='a';nm_test_func();return(0);}
7285_LT_EOF
7286
7287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288  (eval $ac_compile) 2>&5
7289  ac_status=$?
7290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291  test $ac_status = 0; }; then
7292    # Now try to grab the symbols.
7293    nlist=conftest.nm
7294    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296  ac_status=$?
7297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298  test $ac_status = 0; } && test -s "$nlist"; then
7299      # Try sorting and uniquifying the output.
7300      if sort "$nlist" | uniq > "$nlist"T; then
7301        mv -f "$nlist"T "$nlist"
7302      else
7303        rm -f "$nlist"T
7304      fi
7305
7306      # Make sure that we snagged all the symbols we need.
7307      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309          cat <<_LT_EOF > conftest.$ac_ext
7310/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7311#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7312/* DATA imports from DLLs on WIN32 con't be const, because runtime
7313   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7314# define LT_DLSYM_CONST
7315#elif defined(__osf__)
7316/* This system does not cope well with relocations in const data.  */
7317# define LT_DLSYM_CONST
7318#else
7319# define LT_DLSYM_CONST const
7320#endif
7321
7322#ifdef __cplusplus
7323extern "C" {
7324#endif
7325
7326_LT_EOF
7327          # Now generate the symbol file.
7328          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7329
7330          cat <<_LT_EOF >> conftest.$ac_ext
7331
7332/* The mapping between symbol names and symbols.  */
7333LT_DLSYM_CONST struct {
7334  const char *name;
7335  void       *address;
7336}
7337lt__PROGRAM__LTX_preloaded_symbols[] =
7338{
7339  { "@PROGRAM@", (void *) 0 },
7340_LT_EOF
7341          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7342          cat <<\_LT_EOF >> conftest.$ac_ext
7343  {0, (void *) 0}
7344};
7345
7346/* This works around a problem in FreeBSD linker */
7347#ifdef FREEBSD_WORKAROUND
7348static const void *lt_preloaded_setup() {
7349  return lt__PROGRAM__LTX_preloaded_symbols;
7350}
7351#endif
7352
7353#ifdef __cplusplus
7354}
7355#endif
7356_LT_EOF
7357          # Now try linking the two files.
7358          mv conftest.$ac_objext conftstm.$ac_objext
7359          lt_globsym_save_LIBS=$LIBS
7360          lt_globsym_save_CFLAGS=$CFLAGS
7361          LIBS="conftstm.$ac_objext"
7362          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7363          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7364  (eval $ac_link) 2>&5
7365  ac_status=$?
7366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7368            pipe_works=yes
7369          fi
7370          LIBS=$lt_globsym_save_LIBS
7371          CFLAGS=$lt_globsym_save_CFLAGS
7372        else
7373          echo "cannot find nm_test_func in $nlist" >&5
7374        fi
7375      else
7376        echo "cannot find nm_test_var in $nlist" >&5
7377      fi
7378    else
7379      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7380    fi
7381  else
7382    echo "$progname: failed program was:" >&5
7383    cat conftest.$ac_ext >&5
7384  fi
7385  rm -rf conftest* conftst*
7386
7387  # Do not use the global_symbol_pipe unless it works.
7388  if test "$pipe_works" = yes; then
7389    break
7390  else
7391    lt_cv_sys_global_symbol_pipe=
7392  fi
7393done
7394
7395fi
7396
7397if test -z "$lt_cv_sys_global_symbol_pipe"; then
7398  lt_cv_sys_global_symbol_to_cdecl=
7399fi
7400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7402$as_echo "failed" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7405$as_echo "ok" >&6; }
7406fi
7407
7408# Response file support.
7409if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7410  nm_file_list_spec='@'
7411elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7412  nm_file_list_spec='@'
7413fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7442$as_echo_n "checking for sysroot... " >&6; }
7443
7444# Check whether --with-sysroot was given.
7445if test "${with_sysroot+set}" = set; then :
7446  withval=$with_sysroot;
7447else
7448  with_sysroot=no
7449fi
7450
7451
7452lt_sysroot=
7453case ${with_sysroot} in #(
7454 yes)
7455   if test "$GCC" = yes; then
7456     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7457   fi
7458   ;; #(
7459 /*)
7460   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7461   ;; #(
7462 no|'')
7463   ;; #(
7464 *)
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7466$as_echo "${with_sysroot}" >&6; }
7467   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7468   ;;
7469esac
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7472$as_echo "${lt_sysroot:-no}" >&6; }
7473
7474
7475
7476
7477
7478# Check whether --enable-libtool-lock was given.
7479if test "${enable_libtool_lock+set}" = set; then :
7480  enableval=$enable_libtool_lock;
7481fi
7482
7483test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7484
7485# Some flags need to be propagated to the compiler or linker for good
7486# libtool support.
7487case $host in
7488ia64-*-hpux*)
7489  # Find out which ABI we are using.
7490  echo 'int i;' > conftest.$ac_ext
7491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492  (eval $ac_compile) 2>&5
7493  ac_status=$?
7494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495  test $ac_status = 0; }; then
7496    case `/usr/bin/file conftest.$ac_objext` in
7497      *ELF-32*)
7498        HPUX_IA64_MODE="32"
7499        ;;
7500      *ELF-64*)
7501        HPUX_IA64_MODE="64"
7502        ;;
7503    esac
7504  fi
7505  rm -rf conftest*
7506  ;;
7507*-*-irix6*)
7508  # Find out which ABI we are using.
7509  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511  (eval $ac_compile) 2>&5
7512  ac_status=$?
7513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514  test $ac_status = 0; }; then
7515    if test "$lt_cv_prog_gnu_ld" = yes; then
7516      case `/usr/bin/file conftest.$ac_objext` in
7517        *32-bit*)
7518          LD="${LD-ld} -melf32bsmip"
7519          ;;
7520        *N32*)
7521          LD="${LD-ld} -melf32bmipn32"
7522          ;;
7523        *64-bit*)
7524          LD="${LD-ld} -melf64bmip"
7525        ;;
7526      esac
7527    else
7528      case `/usr/bin/file conftest.$ac_objext` in
7529        *32-bit*)
7530          LD="${LD-ld} -32"
7531          ;;
7532        *N32*)
7533          LD="${LD-ld} -n32"
7534          ;;
7535        *64-bit*)
7536          LD="${LD-ld} -64"
7537          ;;
7538      esac
7539    fi
7540  fi
7541  rm -rf conftest*
7542  ;;
7543
7544x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7545s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7546  # Find out which ABI we are using.
7547  echo 'int i;' > conftest.$ac_ext
7548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549  (eval $ac_compile) 2>&5
7550  ac_status=$?
7551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552  test $ac_status = 0; }; then
7553    case `/usr/bin/file conftest.o` in
7554      *32-bit*)
7555        case $host in
7556          x86_64-*kfreebsd*-gnu)
7557            LD="${LD-ld} -m elf_i386_fbsd"
7558            ;;
7559          x86_64-*linux*)
7560            LD="${LD-ld} -m elf_i386"
7561            ;;
7562          ppc64-*linux*|powerpc64-*linux*)
7563            LD="${LD-ld} -m elf32ppclinux"
7564            ;;
7565          s390x-*linux*)
7566            LD="${LD-ld} -m elf_s390"
7567            ;;
7568          sparc64-*linux*)
7569            LD="${LD-ld} -m elf32_sparc"
7570            ;;
7571        esac
7572        ;;
7573      *64-bit*)
7574        case $host in
7575          x86_64-*kfreebsd*-gnu)
7576            LD="${LD-ld} -m elf_x86_64_fbsd"
7577            ;;
7578          x86_64-*linux*)
7579            LD="${LD-ld} -m elf_x86_64"
7580            ;;
7581          ppc*-*linux*|powerpc*-*linux*)
7582            LD="${LD-ld} -m elf64ppc"
7583            ;;
7584          s390*-*linux*|s390*-*tpf*)
7585            LD="${LD-ld} -m elf64_s390"
7586            ;;
7587          sparc*-*linux*)
7588            LD="${LD-ld} -m elf64_sparc"
7589            ;;
7590        esac
7591        ;;
7592    esac
7593  fi
7594  rm -rf conftest*
7595  ;;
7596
7597*-*-sco3.2v5*)
7598  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7599  SAVE_CFLAGS="$CFLAGS"
7600  CFLAGS="$CFLAGS -belf"
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7602$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7603if ${lt_cv_cc_needs_belf+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  ac_ext=c
7607ac_cpp='$CPP $CPPFLAGS'
7608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614
7615int
7616main ()
7617{
7618
7619  ;
7620  return 0;
7621}
7622_ACEOF
7623if ac_fn_c_try_link "$LINENO"; then :
7624  lt_cv_cc_needs_belf=yes
7625else
7626  lt_cv_cc_needs_belf=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext \
7629    conftest$ac_exeext conftest.$ac_ext
7630     ac_ext=c
7631ac_cpp='$CPP $CPPFLAGS'
7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7638$as_echo "$lt_cv_cc_needs_belf" >&6; }
7639  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7640    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7641    CFLAGS="$SAVE_CFLAGS"
7642  fi
7643  ;;
7644*-*solaris*)
7645  # Find out which ABI we are using.
7646  echo 'int i;' > conftest.$ac_ext
7647  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7648  (eval $ac_compile) 2>&5
7649  ac_status=$?
7650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651  test $ac_status = 0; }; then
7652    case `/usr/bin/file conftest.o` in
7653    *64-bit*)
7654      case $lt_cv_prog_gnu_ld in
7655      yes*)
7656        case $host in
7657        i?86-*-solaris*)
7658          LD="${LD-ld} -m elf_x86_64"
7659          ;;
7660        sparc*-*-solaris*)
7661          LD="${LD-ld} -m elf64_sparc"
7662          ;;
7663        esac
7664        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7665        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7666          LD="${LD-ld}_sol2"
7667        fi
7668        ;;
7669      *)
7670        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7671          LD="${LD-ld} -64"
7672        fi
7673        ;;
7674      esac
7675      ;;
7676    esac
7677  fi
7678  rm -rf conftest*
7679  ;;
7680esac
7681
7682need_locks="$enable_libtool_lock"
7683
7684if test -n "$ac_tool_prefix"; then
7685  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7686set dummy ${ac_tool_prefix}mt; ac_word=$2
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688$as_echo_n "checking for $ac_word... " >&6; }
7689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  if test -n "$MANIFEST_TOOL"; then
7693  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698  IFS=$as_save_IFS
7699  test -z "$as_dir" && as_dir=.
7700    for ac_exec_ext in '' $ac_executable_extensions; do
7701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704    break 2
7705  fi
7706done
7707  done
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7713if test -n "$MANIFEST_TOOL"; then
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7715$as_echo "$MANIFEST_TOOL" >&6; }
7716else
7717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719fi
7720
7721
7722fi
7723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7724  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7725  # Extract the first word of "mt", so it can be a program name with args.
7726set dummy mt; ac_word=$2
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
7729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7730  $as_echo_n "(cached) " >&6
7731else
7732  if test -n "$ac_ct_MANIFEST_TOOL"; then
7733  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738  IFS=$as_save_IFS
7739  test -z "$as_dir" && as_dir=.
7740    for ac_exec_ext in '' $ac_executable_extensions; do
7741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744    break 2
7745  fi
7746done
7747  done
7748IFS=$as_save_IFS
7749
7750fi
7751fi
7752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7753if test -n "$ac_ct_MANIFEST_TOOL"; then
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7756else
7757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759fi
7760
7761  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7762    MANIFEST_TOOL=":"
7763  else
7764    case $cross_compiling:$ac_tool_warned in
7765yes:)
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768ac_tool_warned=yes ;;
7769esac
7770    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7771  fi
7772else
7773  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7774fi
7775
7776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7779if ${lt_cv_path_mainfest_tool+:} false; then :
7780  $as_echo_n "(cached) " >&6
7781else
7782  lt_cv_path_mainfest_tool=no
7783  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7784  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7785  cat conftest.err >&5
7786  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7787    lt_cv_path_mainfest_tool=yes
7788  fi
7789  rm -f conftest*
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7792$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7793if test "x$lt_cv_path_mainfest_tool" != xyes; then
7794  MANIFEST_TOOL=:
7795fi
7796
7797
7798
7799
7800
7801
7802  case $host_os in
7803    rhapsody* | darwin*)
7804    if test -n "$ac_tool_prefix"; then
7805  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if ${ac_cv_prog_DSYMUTIL+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  if test -n "$DSYMUTIL"; then
7813  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827  done
7828IFS=$as_save_IFS
7829
7830fi
7831fi
7832DSYMUTIL=$ac_cv_prog_DSYMUTIL
7833if test -n "$DSYMUTIL"; then
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7835$as_echo "$DSYMUTIL" >&6; }
7836else
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
7839fi
7840
7841
7842fi
7843if test -z "$ac_cv_prog_DSYMUTIL"; then
7844  ac_ct_DSYMUTIL=$DSYMUTIL
7845  # Extract the first word of "dsymutil", so it can be a program name with args.
7846set dummy dsymutil; ac_word=$2
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848$as_echo_n "checking for $ac_word... " >&6; }
7849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  if test -n "$ac_ct_DSYMUTIL"; then
7853  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7854else
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858  IFS=$as_save_IFS
7859  test -z "$as_dir" && as_dir=.
7860    for ac_exec_ext in '' $ac_executable_extensions; do
7861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864    break 2
7865  fi
7866done
7867  done
7868IFS=$as_save_IFS
7869
7870fi
7871fi
7872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7873if test -n "$ac_ct_DSYMUTIL"; then
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7875$as_echo "$ac_ct_DSYMUTIL" >&6; }
7876else
7877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879fi
7880
7881  if test "x$ac_ct_DSYMUTIL" = x; then
7882    DSYMUTIL=":"
7883  else
7884    case $cross_compiling:$ac_tool_warned in
7885yes:)
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888ac_tool_warned=yes ;;
7889esac
7890    DSYMUTIL=$ac_ct_DSYMUTIL
7891  fi
7892else
7893  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7894fi
7895
7896    if test -n "$ac_tool_prefix"; then
7897  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7898set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900$as_echo_n "checking for $ac_word... " >&6; }
7901if ${ac_cv_prog_NMEDIT+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  if test -n "$NMEDIT"; then
7905  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910  IFS=$as_save_IFS
7911  test -z "$as_dir" && as_dir=.
7912    for ac_exec_ext in '' $ac_executable_extensions; do
7913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916    break 2
7917  fi
7918done
7919  done
7920IFS=$as_save_IFS
7921
7922fi
7923fi
7924NMEDIT=$ac_cv_prog_NMEDIT
7925if test -n "$NMEDIT"; then
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7927$as_echo "$NMEDIT" >&6; }
7928else
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
7934fi
7935if test -z "$ac_cv_prog_NMEDIT"; then
7936  ac_ct_NMEDIT=$NMEDIT
7937  # Extract the first word of "nmedit", so it can be a program name with args.
7938set dummy nmedit; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  if test -n "$ac_ct_NMEDIT"; then
7945  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950  IFS=$as_save_IFS
7951  test -z "$as_dir" && as_dir=.
7952    for ac_exec_ext in '' $ac_executable_extensions; do
7953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959  done
7960IFS=$as_save_IFS
7961
7962fi
7963fi
7964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7965if test -n "$ac_ct_NMEDIT"; then
7966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7967$as_echo "$ac_ct_NMEDIT" >&6; }
7968else
7969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
7972
7973  if test "x$ac_ct_NMEDIT" = x; then
7974    NMEDIT=":"
7975  else
7976    case $cross_compiling:$ac_tool_warned in
7977yes:)
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980ac_tool_warned=yes ;;
7981esac
7982    NMEDIT=$ac_ct_NMEDIT
7983  fi
7984else
7985  NMEDIT="$ac_cv_prog_NMEDIT"
7986fi
7987
7988    if test -n "$ac_tool_prefix"; then
7989  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7990set dummy ${ac_tool_prefix}lipo; ac_word=$2
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992$as_echo_n "checking for $ac_word... " >&6; }
7993if ${ac_cv_prog_LIPO+:} false; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  if test -n "$LIPO"; then
7997  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7998else
7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002  IFS=$as_save_IFS
8003  test -z "$as_dir" && as_dir=.
8004    for ac_exec_ext in '' $ac_executable_extensions; do
8005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008    break 2
8009  fi
8010done
8011  done
8012IFS=$as_save_IFS
8013
8014fi
8015fi
8016LIPO=$ac_cv_prog_LIPO
8017if test -n "$LIPO"; then
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8019$as_echo "$LIPO" >&6; }
8020else
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025
8026fi
8027if test -z "$ac_cv_prog_LIPO"; then
8028  ac_ct_LIPO=$LIPO
8029  # Extract the first word of "lipo", so it can be a program name with args.
8030set dummy lipo; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  if test -n "$ac_ct_LIPO"; then
8037  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8038else
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042  IFS=$as_save_IFS
8043  test -z "$as_dir" && as_dir=.
8044    for ac_exec_ext in '' $ac_executable_extensions; do
8045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046    ac_cv_prog_ac_ct_LIPO="lipo"
8047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048    break 2
8049  fi
8050done
8051  done
8052IFS=$as_save_IFS
8053
8054fi
8055fi
8056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8057if test -n "$ac_ct_LIPO"; then
8058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8059$as_echo "$ac_ct_LIPO" >&6; }
8060else
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
8063fi
8064
8065  if test "x$ac_ct_LIPO" = x; then
8066    LIPO=":"
8067  else
8068    case $cross_compiling:$ac_tool_warned in
8069yes:)
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072ac_tool_warned=yes ;;
8073esac
8074    LIPO=$ac_ct_LIPO
8075  fi
8076else
8077  LIPO="$ac_cv_prog_LIPO"
8078fi
8079
8080    if test -n "$ac_tool_prefix"; then
8081  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8082set dummy ${ac_tool_prefix}otool; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if ${ac_cv_prog_OTOOL+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  if test -n "$OTOOL"; then
8089  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094  IFS=$as_save_IFS
8095  test -z "$as_dir" && as_dir=.
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103  done
8104IFS=$as_save_IFS
8105
8106fi
8107fi
8108OTOOL=$ac_cv_prog_OTOOL
8109if test -n "$OTOOL"; then
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8111$as_echo "$OTOOL" >&6; }
8112else
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
8116
8117
8118fi
8119if test -z "$ac_cv_prog_OTOOL"; then
8120  ac_ct_OTOOL=$OTOOL
8121  # Extract the first word of "otool", so it can be a program name with args.
8122set dummy otool; ac_word=$2
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for $ac_word... " >&6; }
8125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  if test -n "$ac_ct_OTOOL"; then
8129  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134  IFS=$as_save_IFS
8135  test -z "$as_dir" && as_dir=.
8136    for ac_exec_ext in '' $ac_executable_extensions; do
8137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138    ac_cv_prog_ac_ct_OTOOL="otool"
8139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140    break 2
8141  fi
8142done
8143  done
8144IFS=$as_save_IFS
8145
8146fi
8147fi
8148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8149if test -n "$ac_ct_OTOOL"; then
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8151$as_echo "$ac_ct_OTOOL" >&6; }
8152else
8153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
8155fi
8156
8157  if test "x$ac_ct_OTOOL" = x; then
8158    OTOOL=":"
8159  else
8160    case $cross_compiling:$ac_tool_warned in
8161yes:)
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164ac_tool_warned=yes ;;
8165esac
8166    OTOOL=$ac_ct_OTOOL
8167  fi
8168else
8169  OTOOL="$ac_cv_prog_OTOOL"
8170fi
8171
8172    if test -n "$ac_tool_prefix"; then
8173  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8174set dummy ${ac_tool_prefix}otool64; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if ${ac_cv_prog_OTOOL64+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  if test -n "$OTOOL64"; then
8181  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186  IFS=$as_save_IFS
8187  test -z "$as_dir" && as_dir=.
8188    for ac_exec_ext in '' $ac_executable_extensions; do
8189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192    break 2
8193  fi
8194done
8195  done
8196IFS=$as_save_IFS
8197
8198fi
8199fi
8200OTOOL64=$ac_cv_prog_OTOOL64
8201if test -n "$OTOOL64"; then
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8203$as_echo "$OTOOL64" >&6; }
8204else
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208
8209
8210fi
8211if test -z "$ac_cv_prog_OTOOL64"; then
8212  ac_ct_OTOOL64=$OTOOL64
8213  # Extract the first word of "otool64", so it can be a program name with args.
8214set dummy otool64; ac_word=$2
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  if test -n "$ac_ct_OTOOL64"; then
8221  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226  IFS=$as_save_IFS
8227  test -z "$as_dir" && as_dir=.
8228    for ac_exec_ext in '' $ac_executable_extensions; do
8229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230    ac_cv_prog_ac_ct_OTOOL64="otool64"
8231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232    break 2
8233  fi
8234done
8235  done
8236IFS=$as_save_IFS
8237
8238fi
8239fi
8240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8241if test -n "$ac_ct_OTOOL64"; then
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8243$as_echo "$ac_ct_OTOOL64" >&6; }
8244else
8245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249  if test "x$ac_ct_OTOOL64" = x; then
8250    OTOOL64=":"
8251  else
8252    case $cross_compiling:$ac_tool_warned in
8253yes:)
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256ac_tool_warned=yes ;;
8257esac
8258    OTOOL64=$ac_ct_OTOOL64
8259  fi
8260else
8261  OTOOL64="$ac_cv_prog_OTOOL64"
8262fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8291$as_echo_n "checking for -single_module linker flag... " >&6; }
8292if ${lt_cv_apple_cc_single_mod+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  lt_cv_apple_cc_single_mod=no
8296      if test -z "${LT_MULTI_MODULE}"; then
8297        # By default we will add the -single_module flag. You can override
8298        # by either setting the environment variable LT_MULTI_MODULE
8299        # non-empty at configure time, or by adding -multi_module to the
8300        # link flags.
8301        rm -rf libconftest.dylib*
8302        echo "int foo(void){return 1;}" > conftest.c
8303        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304-dynamiclib -Wl,-single_module conftest.c" >&5
8305        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8306          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8307        _lt_result=$?
8308        # If there is a non-empty error log, and "single_module"
8309        # appears in it, assume the flag caused a linker warning
8310        if test -s conftest.err && $GREP single_module conftest.err; then
8311          cat conftest.err >&5
8312        # Otherwise, if the output was created with a 0 exit code from
8313        # the compiler, it worked.
8314        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8315          lt_cv_apple_cc_single_mod=yes
8316        else
8317          cat conftest.err >&5
8318        fi
8319        rm -rf libconftest.dylib*
8320        rm -f conftest.*
8321      fi
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8324$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8325
8326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8328if ${lt_cv_ld_exported_symbols_list+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  lt_cv_ld_exported_symbols_list=no
8332      save_LDFLAGS=$LDFLAGS
8333      echo "_main" > conftest.sym
8334      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337
8338int
8339main ()
8340{
8341
8342  ;
8343  return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347  lt_cv_ld_exported_symbols_list=yes
8348else
8349  lt_cv_ld_exported_symbols_list=no
8350fi
8351rm -f core conftest.err conftest.$ac_objext \
8352    conftest$ac_exeext conftest.$ac_ext
8353        LDFLAGS="$save_LDFLAGS"
8354
8355fi
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8358
8359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8360$as_echo_n "checking for -force_load linker flag... " >&6; }
8361if ${lt_cv_ld_force_load+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  lt_cv_ld_force_load=no
8365      cat > conftest.c << _LT_EOF
8366int forced_loaded() { return 2;}
8367_LT_EOF
8368      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8369      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8370      echo "$AR cru libconftest.a conftest.o" >&5
8371      $AR cru libconftest.a conftest.o 2>&5
8372      echo "$RANLIB libconftest.a" >&5
8373      $RANLIB libconftest.a 2>&5
8374      cat > conftest.c << _LT_EOF
8375int main() { return 0;}
8376_LT_EOF
8377      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8378      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8379      _lt_result=$?
8380      if test -s conftest.err && $GREP force_load conftest.err; then
8381        cat conftest.err >&5
8382      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8383        lt_cv_ld_force_load=yes
8384      else
8385        cat conftest.err >&5
8386      fi
8387        rm -f conftest.err libconftest.a conftest conftest.c
8388        rm -rf conftest.dSYM
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8392$as_echo "$lt_cv_ld_force_load" >&6; }
8393    case $host_os in
8394    rhapsody* | darwin1.[012])
8395      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8396    darwin1.*)
8397      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8398    darwin*) # darwin 5.x on
8399      # if running on 10.5 or later, the deployment target defaults
8400      # to the OS version, if on x86, and 10.4, the deployment
8401      # target defaults to 10.4. Don't you love it?
8402      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8403        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8404          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8405        10.[012]*)
8406          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8407        10.*)
8408          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8409      esac
8410    ;;
8411  esac
8412    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8413      _lt_dar_single_mod='$single_module'
8414    fi
8415    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8416      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8417    else
8418      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419    fi
8420    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8421      _lt_dsymutil='~$DSYMUTIL $lib || :'
8422    else
8423      _lt_dsymutil=
8424    fi
8425    ;;
8426  esac
8427
8428
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8430$as_echo_n "checking for ANSI C header files... " >&6; }
8431if ${ac_cv_header_stdc+:} false; then :
8432  $as_echo_n "(cached) " >&6
8433else
8434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435/* end confdefs.h.  */
8436#include <stdlib.h>
8437#include <stdarg.h>
8438#include <string.h>
8439#include <float.h>
8440
8441int
8442main ()
8443{
8444
8445  ;
8446  return 0;
8447}
8448_ACEOF
8449if ac_fn_c_try_compile "$LINENO"; then :
8450  ac_cv_header_stdc=yes
8451else
8452  ac_cv_header_stdc=no
8453fi
8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455
8456if test $ac_cv_header_stdc = yes; then
8457  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460#include <string.h>
8461
8462_ACEOF
8463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8464  $EGREP "memchr" >/dev/null 2>&1; then :
8465
8466else
8467  ac_cv_header_stdc=no
8468fi
8469rm -f conftest*
8470
8471fi
8472
8473if test $ac_cv_header_stdc = yes; then
8474  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477#include <stdlib.h>
8478
8479_ACEOF
8480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8481  $EGREP "free" >/dev/null 2>&1; then :
8482
8483else
8484  ac_cv_header_stdc=no
8485fi
8486rm -f conftest*
8487
8488fi
8489
8490if test $ac_cv_header_stdc = yes; then
8491  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8492  if test "$cross_compiling" = yes; then :
8493  :
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497#include <ctype.h>
8498#include <stdlib.h>
8499#if ((' ' & 0x0FF) == 0x020)
8500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8502#else
8503# define ISLOWER(c) \
8504                   (('a' <= (c) && (c) <= 'i') \
8505                     || ('j' <= (c) && (c) <= 'r') \
8506                     || ('s' <= (c) && (c) <= 'z'))
8507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8508#endif
8509
8510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8511int
8512main ()
8513{
8514  int i;
8515  for (i = 0; i < 256; i++)
8516    if (XOR (islower (i), ISLOWER (i))
8517        || toupper (i) != TOUPPER (i))
8518      return 2;
8519  return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_run "$LINENO"; then :
8523
8524else
8525  ac_cv_header_stdc=no
8526fi
8527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8528  conftest.$ac_objext conftest.beam conftest.$ac_ext
8529fi
8530
8531fi
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8534$as_echo "$ac_cv_header_stdc" >&6; }
8535if test $ac_cv_header_stdc = yes; then
8536
8537$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8538
8539fi
8540
8541# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8542for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8543                  inttypes.h stdint.h unistd.h
8544do :
8545  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8547"
8548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8549  cat >>confdefs.h <<_ACEOF
8550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551_ACEOF
8552
8553fi
8554
8555done
8556
8557
8558for ac_header in dlfcn.h
8559do :
8560  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8561"
8562if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8563  cat >>confdefs.h <<_ACEOF
8564#define HAVE_DLFCN_H 1
8565_ACEOF
8566
8567fi
8568
8569done
8570
8571
8572
8573
8574func_stripname_cnf ()
8575{
8576  case ${2} in
8577  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8578  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8579  esac
8580} # func_stripname_cnf
8581
8582
8583
8584
8585
8586# Set options
8587
8588
8589
8590        enable_dlopen=no
8591
8592
8593
8594            # Check whether --enable-shared was given.
8595if test "${enable_shared+set}" = set; then :
8596  enableval=$enable_shared; p=${PACKAGE-default}
8597    case $enableval in
8598    yes) enable_shared=yes ;;
8599    no) enable_shared=no ;;
8600    *)
8601      enable_shared=no
8602      # Look at the argument we got.  We use all the common list separators.
8603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8604      for pkg in $enableval; do
8605        IFS="$lt_save_ifs"
8606        if test "X$pkg" = "X$p"; then
8607          enable_shared=yes
8608        fi
8609      done
8610      IFS="$lt_save_ifs"
8611      ;;
8612    esac
8613else
8614  enable_shared=yes
8615fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625  # Check whether --enable-static was given.
8626if test "${enable_static+set}" = set; then :
8627  enableval=$enable_static; p=${PACKAGE-default}
8628    case $enableval in
8629    yes) enable_static=yes ;;
8630    no) enable_static=no ;;
8631    *)
8632     enable_static=no
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8635      for pkg in $enableval; do
8636        IFS="$lt_save_ifs"
8637        if test "X$pkg" = "X$p"; then
8638          enable_static=yes
8639        fi
8640      done
8641      IFS="$lt_save_ifs"
8642      ;;
8643    esac
8644else
8645  enable_static=yes
8646fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657# Check whether --with-pic was given.
8658if test "${with_pic+set}" = set; then :
8659  withval=$with_pic; lt_p=${PACKAGE-default}
8660    case $withval in
8661    yes|no) pic_mode=$withval ;;
8662    *)
8663      pic_mode=default
8664      # Look at the argument we got.  We use all the common list separators.
8665      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666      for lt_pkg in $withval; do
8667        IFS="$lt_save_ifs"
8668        if test "X$lt_pkg" = "X$lt_p"; then
8669          pic_mode=yes
8670        fi
8671      done
8672      IFS="$lt_save_ifs"
8673      ;;
8674    esac
8675else
8676  pic_mode=default
8677fi
8678
8679
8680test -z "$pic_mode" && pic_mode=default
8681
8682
8683
8684
8685
8686
8687
8688  # Check whether --enable-fast-install was given.
8689if test "${enable_fast_install+set}" = set; then :
8690  enableval=$enable_fast_install; p=${PACKAGE-default}
8691    case $enableval in
8692    yes) enable_fast_install=yes ;;
8693    no) enable_fast_install=no ;;
8694    *)
8695      enable_fast_install=no
8696      # Look at the argument we got.  We use all the common list separators.
8697      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8698      for pkg in $enableval; do
8699        IFS="$lt_save_ifs"
8700        if test "X$pkg" = "X$p"; then
8701          enable_fast_install=yes
8702        fi
8703      done
8704      IFS="$lt_save_ifs"
8705      ;;
8706    esac
8707else
8708  enable_fast_install=yes
8709fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721# This can be used to rebuild libtool when needed
8722LIBTOOL_DEPS="$ltmain"
8723
8724# Always use our own libtool.
8725LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756test -z "$LN_S" && LN_S="ln -s"
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771if test -n "${ZSH_VERSION+set}" ; then
8772   setopt NO_GLOB_SUBST
8773fi
8774
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8776$as_echo_n "checking for objdir... " >&6; }
8777if ${lt_cv_objdir+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  rm -f .libs 2>/dev/null
8781mkdir .libs 2>/dev/null
8782if test -d .libs; then
8783  lt_cv_objdir=.libs
8784else
8785  # MS-DOS does not allow filenames that begin with a dot.
8786  lt_cv_objdir=_libs
8787fi
8788rmdir .libs 2>/dev/null
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8791$as_echo "$lt_cv_objdir" >&6; }
8792objdir=$lt_cv_objdir
8793
8794
8795
8796
8797
8798cat >>confdefs.h <<_ACEOF
8799#define LT_OBJDIR "$lt_cv_objdir/"
8800_ACEOF
8801
8802
8803
8804
8805case $host_os in
8806aix3*)
8807  # AIX sometimes has problems with the GCC collect2 program.  For some
8808  # reason, if we set the COLLECT_NAMES environment variable, the problems
8809  # vanish in a puff of smoke.
8810  if test "X${COLLECT_NAMES+set}" != Xset; then
8811    COLLECT_NAMES=
8812    export COLLECT_NAMES
8813  fi
8814  ;;
8815esac
8816
8817# Global variables:
8818ofile=libtool
8819can_build_shared=yes
8820
8821# All known linkers require a `.a' archive for static linking (except MSVC,
8822# which needs '.lib').
8823libext=a
8824
8825with_gnu_ld="$lt_cv_prog_gnu_ld"
8826
8827old_CC="$CC"
8828old_CFLAGS="$CFLAGS"
8829
8830# Set sane defaults for various variables
8831test -z "$CC" && CC=cc
8832test -z "$LTCC" && LTCC=$CC
8833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8834test -z "$LD" && LD=ld
8835test -z "$ac_objext" && ac_objext=o
8836
8837for cc_temp in $compiler""; do
8838  case $cc_temp in
8839    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8840    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8841    \-*) ;;
8842    *) break;;
8843  esac
8844done
8845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8846
8847
8848# Only perform the check for file, if the check method requires it
8849test -z "$MAGIC_CMD" && MAGIC_CMD=file
8850case $deplibs_check_method in
8851file_magic*)
8852  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8854$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8855if ${lt_cv_path_MAGIC_CMD+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  case $MAGIC_CMD in
8859[\\/*] |  ?:[\\/]*)
8860  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8861  ;;
8862*)
8863  lt_save_MAGIC_CMD="$MAGIC_CMD"
8864  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8865  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8866  for ac_dir in $ac_dummy; do
8867    IFS="$lt_save_ifs"
8868    test -z "$ac_dir" && ac_dir=.
8869    if test -f $ac_dir/${ac_tool_prefix}file; then
8870      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8871      if test -n "$file_magic_test_file"; then
8872        case $deplibs_check_method in
8873        "file_magic "*)
8874          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8875          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8877            $EGREP "$file_magic_regex" > /dev/null; then
8878            :
8879          else
8880            cat <<_LT_EOF 1>&2
8881
8882*** Warning: the command libtool uses to detect shared libraries,
8883*** $file_magic_cmd, produces output that libtool cannot recognize.
8884*** The result is that libtool may fail to recognize shared libraries
8885*** as such.  This will affect the creation of libtool libraries that
8886*** depend on shared libraries, but programs linked with such libtool
8887*** libraries will work regardless of this problem.  Nevertheless, you
8888*** may want to report the problem to your system manager and/or to
8889*** bug-libtool@gnu.org
8890
8891_LT_EOF
8892          fi ;;
8893        esac
8894      fi
8895      break
8896    fi
8897  done
8898  IFS="$lt_save_ifs"
8899  MAGIC_CMD="$lt_save_MAGIC_CMD"
8900  ;;
8901esac
8902fi
8903
8904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8905if test -n "$MAGIC_CMD"; then
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8907$as_echo "$MAGIC_CMD" >&6; }
8908else
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912
8913
8914
8915
8916
8917if test -z "$lt_cv_path_MAGIC_CMD"; then
8918  if test -n "$ac_tool_prefix"; then
8919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8920$as_echo_n "checking for file... " >&6; }
8921if ${lt_cv_path_MAGIC_CMD+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  case $MAGIC_CMD in
8925[\\/*] |  ?:[\\/]*)
8926  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8927  ;;
8928*)
8929  lt_save_MAGIC_CMD="$MAGIC_CMD"
8930  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8931  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8932  for ac_dir in $ac_dummy; do
8933    IFS="$lt_save_ifs"
8934    test -z "$ac_dir" && ac_dir=.
8935    if test -f $ac_dir/file; then
8936      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8937      if test -n "$file_magic_test_file"; then
8938        case $deplibs_check_method in
8939        "file_magic "*)
8940          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8941          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8942          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8943            $EGREP "$file_magic_regex" > /dev/null; then
8944            :
8945          else
8946            cat <<_LT_EOF 1>&2
8947
8948*** Warning: the command libtool uses to detect shared libraries,
8949*** $file_magic_cmd, produces output that libtool cannot recognize.
8950*** The result is that libtool may fail to recognize shared libraries
8951*** as such.  This will affect the creation of libtool libraries that
8952*** depend on shared libraries, but programs linked with such libtool
8953*** libraries will work regardless of this problem.  Nevertheless, you
8954*** may want to report the problem to your system manager and/or to
8955*** bug-libtool@gnu.org
8956
8957_LT_EOF
8958          fi ;;
8959        esac
8960      fi
8961      break
8962    fi
8963  done
8964  IFS="$lt_save_ifs"
8965  MAGIC_CMD="$lt_save_MAGIC_CMD"
8966  ;;
8967esac
8968fi
8969
8970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8971if test -n "$MAGIC_CMD"; then
8972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8973$as_echo "$MAGIC_CMD" >&6; }
8974else
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
8977fi
8978
8979
8980  else
8981    MAGIC_CMD=:
8982  fi
8983fi
8984
8985  fi
8986  ;;
8987esac
8988
8989# Use C for the default configuration in the libtool script
8990
8991lt_save_CC="$CC"
8992ac_ext=c
8993ac_cpp='$CPP $CPPFLAGS'
8994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8996ac_compiler_gnu=$ac_cv_c_compiler_gnu
8997
8998
8999# Source file extension for C test sources.
9000ac_ext=c
9001
9002# Object file extension for compiled C test sources.
9003objext=o
9004objext=$objext
9005
9006# Code to be used in simple compile tests
9007lt_simple_compile_test_code="int some_variable = 0;"
9008
9009# Code to be used in simple link tests
9010lt_simple_link_test_code='int main(){return(0);}'
9011
9012
9013
9014
9015
9016
9017
9018# If no C compiler was specified, use CC.
9019LTCC=${LTCC-"$CC"}
9020
9021# If no C compiler flags were specified, use CFLAGS.
9022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9023
9024# Allow CC to be a program name with arguments.
9025compiler=$CC
9026
9027# Save the default compiler, since it gets overwritten when the other
9028# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9029compiler_DEFAULT=$CC
9030
9031# save warnings/boilerplate of simple test code
9032ac_outfile=conftest.$ac_objext
9033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035_lt_compiler_boilerplate=`cat conftest.err`
9036$RM conftest*
9037
9038ac_outfile=conftest.$ac_objext
9039echo "$lt_simple_link_test_code" >conftest.$ac_ext
9040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9041_lt_linker_boilerplate=`cat conftest.err`
9042$RM -r conftest*
9043
9044
9045if test -n "$compiler"; then
9046
9047lt_prog_compiler_no_builtin_flag=
9048
9049if test "$GCC" = yes; then
9050  case $cc_basename in
9051  nvcc*)
9052    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9053  *)
9054    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9055  esac
9056
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9058$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9059if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9060  $as_echo_n "(cached) " >&6
9061else
9062  lt_cv_prog_compiler_rtti_exceptions=no
9063   ac_outfile=conftest.$ac_objext
9064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065   lt_compiler_flag="-fno-rtti -fno-exceptions"
9066   # Insert the option either (1) after the last *FLAGS variable, or
9067   # (2) before a word containing "conftest.", or (3) at the end.
9068   # Note that $ac_compile itself does not contain backslashes and begins
9069   # with a dollar sign (not a hyphen), so the echo should work correctly.
9070   # The option is referenced via a variable to avoid confusing sed.
9071   lt_compile=`echo "$ac_compile" | $SED \
9072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074   -e 's:$: $lt_compiler_flag:'`
9075   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076   (eval "$lt_compile" 2>conftest.err)
9077   ac_status=$?
9078   cat conftest.err >&5
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   if (exit $ac_status) && test -s "$ac_outfile"; then
9081     # The compiler can only warn and ignore the option if not recognized
9082     # So say no if there are warnings other than the usual output.
9083     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086       lt_cv_prog_compiler_rtti_exceptions=yes
9087     fi
9088   fi
9089   $RM conftest*
9090
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9093$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9094
9095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9096    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9097else
9098    :
9099fi
9100
9101fi
9102
9103
9104
9105
9106
9107
9108  lt_prog_compiler_wl=
9109lt_prog_compiler_pic=
9110lt_prog_compiler_static=
9111
9112
9113  if test "$GCC" = yes; then
9114    lt_prog_compiler_wl='-Wl,'
9115    lt_prog_compiler_static='-static'
9116
9117    case $host_os in
9118      aix*)
9119      # All AIX code is PIC.
9120      if test "$host_cpu" = ia64; then
9121        # AIX 5 now supports IA64 processor
9122        lt_prog_compiler_static='-Bstatic'
9123      fi
9124      ;;
9125
9126    amigaos*)
9127      case $host_cpu in
9128      powerpc)
9129            # see comment about AmigaOS4 .so support
9130            lt_prog_compiler_pic='-fPIC'
9131        ;;
9132      m68k)
9133            # FIXME: we need at least 68020 code to build shared libraries, but
9134            # adding the `-m68020' flag to GCC prevents building anything better,
9135            # like `-m68040'.
9136            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9137        ;;
9138      esac
9139      ;;
9140
9141    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9142      # PIC is the default for these OSes.
9143      ;;
9144
9145    mingw* | cygwin* | pw32* | os2* | cegcc*)
9146      # This hack is so that the source file can tell whether it is being
9147      # built for inclusion in a dll (and should export symbols for example).
9148      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9149      # (--disable-auto-import) libraries
9150      lt_prog_compiler_pic='-DDLL_EXPORT'
9151      ;;
9152
9153    darwin* | rhapsody*)
9154      # PIC is the default on this platform
9155      # Common symbols not allowed in MH_DYLIB files
9156      lt_prog_compiler_pic='-fno-common'
9157      ;;
9158
9159    haiku*)
9160      # PIC is the default for Haiku.
9161      # The "-static" flag exists, but is broken.
9162      lt_prog_compiler_static=
9163      ;;
9164
9165    hpux*)
9166      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9167      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9168      # sets the default TLS model and affects inlining.
9169      case $host_cpu in
9170      hppa*64*)
9171        # +Z the default
9172        ;;
9173      *)
9174        lt_prog_compiler_pic='-fPIC'
9175        ;;
9176      esac
9177      ;;
9178
9179    interix[3-9]*)
9180      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9181      # Instead, we relocate shared libraries at runtime.
9182      ;;
9183
9184    msdosdjgpp*)
9185      # Just because we use GCC doesn't mean we suddenly get shared libraries
9186      # on systems that don't support them.
9187      lt_prog_compiler_can_build_shared=no
9188      enable_shared=no
9189      ;;
9190
9191    *nto* | *qnx*)
9192      # QNX uses GNU C++, but need to define -shared option too, otherwise
9193      # it will coredump.
9194      lt_prog_compiler_pic='-fPIC -shared'
9195      ;;
9196
9197    sysv4*MP*)
9198      if test -d /usr/nec; then
9199        lt_prog_compiler_pic=-Kconform_pic
9200      fi
9201      ;;
9202
9203    *)
9204      lt_prog_compiler_pic='-fPIC'
9205      ;;
9206    esac
9207
9208    case $cc_basename in
9209    nvcc*) # Cuda Compiler Driver 2.2
9210      lt_prog_compiler_wl='-Xlinker '
9211      if test -n "$lt_prog_compiler_pic"; then
9212        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9213      fi
9214      ;;
9215    esac
9216  else
9217    # PORTME Check for flag to pass linker flags through the system compiler.
9218    case $host_os in
9219    aix*)
9220      lt_prog_compiler_wl='-Wl,'
9221      if test "$host_cpu" = ia64; then
9222        # AIX 5 now supports IA64 processor
9223        lt_prog_compiler_static='-Bstatic'
9224      else
9225        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9226      fi
9227      ;;
9228
9229    mingw* | cygwin* | pw32* | os2* | cegcc*)
9230      # This hack is so that the source file can tell whether it is being
9231      # built for inclusion in a dll (and should export symbols for example).
9232      lt_prog_compiler_pic='-DDLL_EXPORT'
9233      ;;
9234
9235    hpux9* | hpux10* | hpux11*)
9236      lt_prog_compiler_wl='-Wl,'
9237      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238      # not for PA HP-UX.
9239      case $host_cpu in
9240      hppa*64*|ia64*)
9241        # +Z the default
9242        ;;
9243      *)
9244        lt_prog_compiler_pic='+Z'
9245        ;;
9246      esac
9247      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9248      lt_prog_compiler_static='${wl}-a ${wl}archive'
9249      ;;
9250
9251    irix5* | irix6* | nonstopux*)
9252      lt_prog_compiler_wl='-Wl,'
9253      # PIC (with -KPIC) is the default.
9254      lt_prog_compiler_static='-non_shared'
9255      ;;
9256
9257    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9258      case $cc_basename in
9259      # old Intel for x86_64 which still supported -KPIC.
9260      ecc*)
9261        lt_prog_compiler_wl='-Wl,'
9262        lt_prog_compiler_pic='-KPIC'
9263        lt_prog_compiler_static='-static'
9264        ;;
9265      # icc used to be incompatible with GCC.
9266      # ICC 10 doesn't accept -KPIC any more.
9267      icc* | ifort*)
9268        lt_prog_compiler_wl='-Wl,'
9269        lt_prog_compiler_pic='-fPIC'
9270        lt_prog_compiler_static='-static'
9271        ;;
9272      # Lahey Fortran 8.1.
9273      lf95*)
9274        lt_prog_compiler_wl='-Wl,'
9275        lt_prog_compiler_pic='--shared'
9276        lt_prog_compiler_static='--static'
9277        ;;
9278      nagfor*)
9279        # NAG Fortran compiler
9280        lt_prog_compiler_wl='-Wl,-Wl,,'
9281        lt_prog_compiler_pic='-PIC'
9282        lt_prog_compiler_static='-Bstatic'
9283        ;;
9284      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9285        # Portland Group compilers (*not* the Pentium gcc compiler,
9286        # which looks to be a dead project)
9287        lt_prog_compiler_wl='-Wl,'
9288        lt_prog_compiler_pic='-fpic'
9289        lt_prog_compiler_static='-Bstatic'
9290        ;;
9291      ccc*)
9292        lt_prog_compiler_wl='-Wl,'
9293        # All Alpha code is PIC.
9294        lt_prog_compiler_static='-non_shared'
9295        ;;
9296      xl* | bgxl* | bgf* | mpixl*)
9297        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9298        lt_prog_compiler_wl='-Wl,'
9299        lt_prog_compiler_pic='-qpic'
9300        lt_prog_compiler_static='-qstaticlink'
9301        ;;
9302      *)
9303        case `$CC -V 2>&1 | sed 5q` in
9304        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9305          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9306          lt_prog_compiler_pic='-KPIC'
9307          lt_prog_compiler_static='-Bstatic'
9308          lt_prog_compiler_wl=''
9309          ;;
9310        *Sun\ F* | *Sun*Fortran*)
9311          lt_prog_compiler_pic='-KPIC'
9312          lt_prog_compiler_static='-Bstatic'
9313          lt_prog_compiler_wl='-Qoption ld '
9314          ;;
9315        *Sun\ C*)
9316          # Sun C 5.9
9317          lt_prog_compiler_pic='-KPIC'
9318          lt_prog_compiler_static='-Bstatic'
9319          lt_prog_compiler_wl='-Wl,'
9320          ;;
9321        *Intel*\ [CF]*Compiler*)
9322          lt_prog_compiler_wl='-Wl,'
9323          lt_prog_compiler_pic='-fPIC'
9324          lt_prog_compiler_static='-static'
9325          ;;
9326        *Portland\ Group*)
9327          lt_prog_compiler_wl='-Wl,'
9328          lt_prog_compiler_pic='-fpic'
9329          lt_prog_compiler_static='-Bstatic'
9330          ;;
9331        esac
9332        ;;
9333      esac
9334      ;;
9335
9336    newsos6)
9337      lt_prog_compiler_pic='-KPIC'
9338      lt_prog_compiler_static='-Bstatic'
9339      ;;
9340
9341    *nto* | *qnx*)
9342      # QNX uses GNU C++, but need to define -shared option too, otherwise
9343      # it will coredump.
9344      lt_prog_compiler_pic='-fPIC -shared'
9345      ;;
9346
9347    osf3* | osf4* | osf5*)
9348      lt_prog_compiler_wl='-Wl,'
9349      # All OSF/1 code is PIC.
9350      lt_prog_compiler_static='-non_shared'
9351      ;;
9352
9353    rdos*)
9354      lt_prog_compiler_static='-non_shared'
9355      ;;
9356
9357    solaris*)
9358      lt_prog_compiler_pic='-KPIC'
9359      lt_prog_compiler_static='-Bstatic'
9360      case $cc_basename in
9361      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9362        lt_prog_compiler_wl='-Qoption ld ';;
9363      *)
9364        lt_prog_compiler_wl='-Wl,';;
9365      esac
9366      ;;
9367
9368    sunos4*)
9369      lt_prog_compiler_wl='-Qoption ld '
9370      lt_prog_compiler_pic='-PIC'
9371      lt_prog_compiler_static='-Bstatic'
9372      ;;
9373
9374    sysv4 | sysv4.2uw2* | sysv4.3*)
9375      lt_prog_compiler_wl='-Wl,'
9376      lt_prog_compiler_pic='-KPIC'
9377      lt_prog_compiler_static='-Bstatic'
9378      ;;
9379
9380    sysv4*MP*)
9381      if test -d /usr/nec ;then
9382        lt_prog_compiler_pic='-Kconform_pic'
9383        lt_prog_compiler_static='-Bstatic'
9384      fi
9385      ;;
9386
9387    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9388      lt_prog_compiler_wl='-Wl,'
9389      lt_prog_compiler_pic='-KPIC'
9390      lt_prog_compiler_static='-Bstatic'
9391      ;;
9392
9393    unicos*)
9394      lt_prog_compiler_wl='-Wl,'
9395      lt_prog_compiler_can_build_shared=no
9396      ;;
9397
9398    uts4*)
9399      lt_prog_compiler_pic='-pic'
9400      lt_prog_compiler_static='-Bstatic'
9401      ;;
9402
9403    *)
9404      lt_prog_compiler_can_build_shared=no
9405      ;;
9406    esac
9407  fi
9408
9409case $host_os in
9410  # For platforms which do not support PIC, -DPIC is meaningless:
9411  *djgpp*)
9412    lt_prog_compiler_pic=
9413    ;;
9414  *)
9415    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9416    ;;
9417esac
9418
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9420$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9421if ${lt_cv_prog_compiler_pic+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9427$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9428lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9429
9430#
9431# Check to make sure the PIC flag actually works.
9432#
9433if test -n "$lt_prog_compiler_pic"; then
9434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9435$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9436if ${lt_cv_prog_compiler_pic_works+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  lt_cv_prog_compiler_pic_works=no
9440   ac_outfile=conftest.$ac_objext
9441   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9442   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9443   # Insert the option either (1) after the last *FLAGS variable, or
9444   # (2) before a word containing "conftest.", or (3) at the end.
9445   # Note that $ac_compile itself does not contain backslashes and begins
9446   # with a dollar sign (not a hyphen), so the echo should work correctly.
9447   # The option is referenced via a variable to avoid confusing sed.
9448   lt_compile=`echo "$ac_compile" | $SED \
9449   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9450   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9451   -e 's:$: $lt_compiler_flag:'`
9452   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9453   (eval "$lt_compile" 2>conftest.err)
9454   ac_status=$?
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   if (exit $ac_status) && test -s "$ac_outfile"; then
9458     # The compiler can only warn and ignore the option if not recognized
9459     # So say no if there are warnings other than the usual output.
9460     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9461     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9463       lt_cv_prog_compiler_pic_works=yes
9464     fi
9465   fi
9466   $RM conftest*
9467
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9470$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9471
9472if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9473    case $lt_prog_compiler_pic in
9474     "" | " "*) ;;
9475     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9476     esac
9477else
9478    lt_prog_compiler_pic=
9479     lt_prog_compiler_can_build_shared=no
9480fi
9481
9482fi
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494#
9495# Check to make sure the static flag actually works.
9496#
9497wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9499$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9500if ${lt_cv_prog_compiler_static_works+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  lt_cv_prog_compiler_static_works=no
9504   save_LDFLAGS="$LDFLAGS"
9505   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9506   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9507   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9508     # The linker can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     if test -s conftest.err; then
9511       # Append any errors to the config.log.
9512       cat conftest.err 1>&5
9513       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9514       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515       if diff conftest.exp conftest.er2 >/dev/null; then
9516         lt_cv_prog_compiler_static_works=yes
9517       fi
9518     else
9519       lt_cv_prog_compiler_static_works=yes
9520     fi
9521   fi
9522   $RM -r conftest*
9523   LDFLAGS="$save_LDFLAGS"
9524
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9527$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9528
9529if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9530    :
9531else
9532    lt_prog_compiler_static=
9533fi
9534
9535
9536
9537
9538
9539
9540
9541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9543if ${lt_cv_prog_compiler_c_o+:} false; then :
9544  $as_echo_n "(cached) " >&6
9545else
9546  lt_cv_prog_compiler_c_o=no
9547   $RM -r conftest 2>/dev/null
9548   mkdir conftest
9549   cd conftest
9550   mkdir out
9551   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552
9553   lt_compiler_flag="-o out/conftest2.$ac_objext"
9554   # Insert the option either (1) after the last *FLAGS variable, or
9555   # (2) before a word containing "conftest.", or (3) at the end.
9556   # Note that $ac_compile itself does not contain backslashes and begins
9557   # with a dollar sign (not a hyphen), so the echo should work correctly.
9558   lt_compile=`echo "$ac_compile" | $SED \
9559   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9560   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9561   -e 's:$: $lt_compiler_flag:'`
9562   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9563   (eval "$lt_compile" 2>out/conftest.err)
9564   ac_status=$?
9565   cat out/conftest.err >&5
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568   then
9569     # The compiler can only warn and ignore the option if not recognized
9570     # So say no if there are warnings
9571     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9572     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9573     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9574       lt_cv_prog_compiler_c_o=yes
9575     fi
9576   fi
9577   chmod u+w . 2>&5
9578   $RM conftest*
9579   # SGI C++ compiler will create directory out/ii_files/ for
9580   # template instantiation
9581   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9582   $RM out/* && rmdir out
9583   cd ..
9584   $RM -r conftest
9585   $RM conftest*
9586
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9589$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9590
9591
9592
9593
9594
9595
9596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9598if ${lt_cv_prog_compiler_c_o+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  lt_cv_prog_compiler_c_o=no
9602   $RM -r conftest 2>/dev/null
9603   mkdir conftest
9604   cd conftest
9605   mkdir out
9606   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9607
9608   lt_compiler_flag="-o out/conftest2.$ac_objext"
9609   # Insert the option either (1) after the last *FLAGS variable, or
9610   # (2) before a word containing "conftest.", or (3) at the end.
9611   # Note that $ac_compile itself does not contain backslashes and begins
9612   # with a dollar sign (not a hyphen), so the echo should work correctly.
9613   lt_compile=`echo "$ac_compile" | $SED \
9614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9616   -e 's:$: $lt_compiler_flag:'`
9617   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9618   (eval "$lt_compile" 2>out/conftest.err)
9619   ac_status=$?
9620   cat out/conftest.err >&5
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9623   then
9624     # The compiler can only warn and ignore the option if not recognized
9625     # So say no if there are warnings
9626     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9627     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9628     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9629       lt_cv_prog_compiler_c_o=yes
9630     fi
9631   fi
9632   chmod u+w . 2>&5
9633   $RM conftest*
9634   # SGI C++ compiler will create directory out/ii_files/ for
9635   # template instantiation
9636   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9637   $RM out/* && rmdir out
9638   cd ..
9639   $RM -r conftest
9640   $RM conftest*
9641
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9644$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9645
9646
9647
9648
9649hard_links="nottested"
9650if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9651  # do not overwrite the value of need_locks provided by the user
9652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9653$as_echo_n "checking if we can lock with hard links... " >&6; }
9654  hard_links=yes
9655  $RM conftest*
9656  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657  touch conftest.a
9658  ln conftest.a conftest.b 2>&5 || hard_links=no
9659  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9661$as_echo "$hard_links" >&6; }
9662  if test "$hard_links" = no; then
9663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9664$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9665    need_locks=warn
9666  fi
9667else
9668  need_locks=no
9669fi
9670
9671
9672
9673
9674
9675
9676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9677$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9678
9679  runpath_var=
9680  allow_undefined_flag=
9681  always_export_symbols=no
9682  archive_cmds=
9683  archive_expsym_cmds=
9684  compiler_needs_object=no
9685  enable_shared_with_static_runtimes=no
9686  export_dynamic_flag_spec=
9687  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9688  hardcode_automatic=no
9689  hardcode_direct=no
9690  hardcode_direct_absolute=no
9691  hardcode_libdir_flag_spec=
9692  hardcode_libdir_separator=
9693  hardcode_minus_L=no
9694  hardcode_shlibpath_var=unsupported
9695  inherit_rpath=no
9696  link_all_deplibs=unknown
9697  module_cmds=
9698  module_expsym_cmds=
9699  old_archive_from_new_cmds=
9700  old_archive_from_expsyms_cmds=
9701  thread_safe_flag_spec=
9702  whole_archive_flag_spec=
9703  # include_expsyms should be a list of space-separated symbols to be *always*
9704  # included in the symbol list
9705  include_expsyms=
9706  # exclude_expsyms can be an extended regexp of symbols to exclude
9707  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9708  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9709  # as well as any symbol that contains `d'.
9710  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9711  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9712  # platforms (ab)use it in PIC code, but their linkers get confused if
9713  # the symbol is explicitly referenced.  Since portable code cannot
9714  # rely on this symbol name, it's probably fine to never include it in
9715  # preloaded symbol tables.
9716  # Exclude shared library initialization/finalization symbols.
9717  extract_expsyms_cmds=
9718
9719  case $host_os in
9720  cygwin* | mingw* | pw32* | cegcc*)
9721    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9722    # When not using gcc, we currently assume that we are using
9723    # Microsoft Visual C++.
9724    if test "$GCC" != yes; then
9725      with_gnu_ld=no
9726    fi
9727    ;;
9728  interix*)
9729    # we just hope/assume this is gcc and not c89 (= MSVC++)
9730    with_gnu_ld=yes
9731    ;;
9732  openbsd*)
9733    with_gnu_ld=no
9734    ;;
9735  esac
9736
9737  ld_shlibs=yes
9738
9739  # On some targets, GNU ld is compatible enough with the native linker
9740  # that we're better off using the native interface for both.
9741  lt_use_gnu_ld_interface=no
9742  if test "$with_gnu_ld" = yes; then
9743    case $host_os in
9744      aix*)
9745        # The AIX port of GNU ld has always aspired to compatibility
9746        # with the native linker.  However, as the warning in the GNU ld
9747        # block says, versions before 2.19.5* couldn't really create working
9748        # shared libraries, regardless of the interface used.
9749        case `$LD -v 2>&1` in
9750          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9751          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9752          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9753          *)
9754            lt_use_gnu_ld_interface=yes
9755            ;;
9756        esac
9757        ;;
9758      *)
9759        lt_use_gnu_ld_interface=yes
9760        ;;
9761    esac
9762  fi
9763
9764  if test "$lt_use_gnu_ld_interface" = yes; then
9765    # If archive_cmds runs LD, not CC, wlarc should be empty
9766    wlarc='${wl}'
9767
9768    # Set some defaults for GNU ld with shared library support. These
9769    # are reset later if shared libraries are not supported. Putting them
9770    # here allows them to be overridden if necessary.
9771    runpath_var=LD_RUN_PATH
9772    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9773    export_dynamic_flag_spec='${wl}--export-dynamic'
9774    # ancient GNU ld didn't support --whole-archive et. al.
9775    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9776      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9777    else
9778      whole_archive_flag_spec=
9779    fi
9780    supports_anon_versioning=no
9781    case `$LD -v 2>&1` in
9782      *GNU\ gold*) supports_anon_versioning=yes ;;
9783      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9784      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9785      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9786      *\ 2.11.*) ;; # other 2.11 versions
9787      *) supports_anon_versioning=yes ;;
9788    esac
9789
9790    # See if GNU ld supports shared libraries.
9791    case $host_os in
9792    aix[3-9]*)
9793      # On AIX/PPC, the GNU linker is very broken
9794      if test "$host_cpu" != ia64; then
9795        ld_shlibs=no
9796        cat <<_LT_EOF 1>&2
9797
9798*** Warning: the GNU linker, at least up to release 2.19, is reported
9799*** to be unable to reliably create shared libraries on AIX.
9800*** Therefore, libtool is disabling shared libraries support.  If you
9801*** really care for shared libraries, you may want to install binutils
9802*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9803*** You will then need to restart the configuration process.
9804
9805_LT_EOF
9806      fi
9807      ;;
9808
9809    amigaos*)
9810      case $host_cpu in
9811      powerpc)
9812            # see comment about AmigaOS4 .so support
9813            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814            archive_expsym_cmds=''
9815        ;;
9816      m68k)
9817            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)'
9818            hardcode_libdir_flag_spec='-L$libdir'
9819            hardcode_minus_L=yes
9820        ;;
9821      esac
9822      ;;
9823
9824    beos*)
9825      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826        allow_undefined_flag=unsupported
9827        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9828        # support --undefined.  This deserves some investigation.  FIXME
9829        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830      else
9831        ld_shlibs=no
9832      fi
9833      ;;
9834
9835    cygwin* | mingw* | pw32* | cegcc*)
9836      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9837      # as there is no search path for DLLs.
9838      hardcode_libdir_flag_spec='-L$libdir'
9839      export_dynamic_flag_spec='${wl}--export-all-symbols'
9840      allow_undefined_flag=unsupported
9841      always_export_symbols=no
9842      enable_shared_with_static_runtimes=yes
9843      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9844      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9845
9846      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9847        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9848        # If the export-symbols file already is a .def file (1st line
9849        # is EXPORTS), use it as is; otherwise, prepend...
9850        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9851          cp $export_symbols $output_objdir/$soname.def;
9852        else
9853          echo EXPORTS > $output_objdir/$soname.def;
9854          cat $export_symbols >> $output_objdir/$soname.def;
9855        fi~
9856        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9857      else
9858        ld_shlibs=no
9859      fi
9860      ;;
9861
9862    haiku*)
9863      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864      link_all_deplibs=yes
9865      ;;
9866
9867    interix[3-9]*)
9868      hardcode_direct=no
9869      hardcode_shlibpath_var=no
9870      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871      export_dynamic_flag_spec='${wl}-E'
9872      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9873      # Instead, shared libraries are loaded at an image base (0x10000000 by
9874      # default) and relocated if they conflict, which is a slow very memory
9875      # consuming and fragmenting process.  To avoid this, we pick a random,
9876      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9877      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9878      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9879      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'
9880      ;;
9881
9882    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9883      tmp_diet=no
9884      if test "$host_os" = linux-dietlibc; then
9885        case $cc_basename in
9886          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9887        esac
9888      fi
9889      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9890         && test "$tmp_diet" = no
9891      then
9892        tmp_addflag=' $pic_flag'
9893        tmp_sharedflag='-shared'
9894        case $cc_basename,$host_cpu in
9895        pgcc*)                          # Portland Group C compiler
9896          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'
9897          tmp_addflag=' $pic_flag'
9898          ;;
9899        pgf77* | pgf90* | pgf95* | pgfortran*)
9900                                        # Portland Group f77 and f90 compilers
9901          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'
9902          tmp_addflag=' $pic_flag -Mnomain' ;;
9903        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9904          tmp_addflag=' -i_dynamic' ;;
9905        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9906          tmp_addflag=' -i_dynamic -nofor_main' ;;
9907        ifc* | ifort*)                  # Intel Fortran compiler
9908          tmp_addflag=' -nofor_main' ;;
9909        lf95*)                          # Lahey Fortran 8.1
9910          whole_archive_flag_spec=
9911          tmp_sharedflag='--shared' ;;
9912        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9913          tmp_sharedflag='-qmkshrobj'
9914          tmp_addflag= ;;
9915        nvcc*)  # Cuda Compiler Driver 2.2
9916          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'
9917          compiler_needs_object=yes
9918          ;;
9919        esac
9920        case `$CC -V 2>&1 | sed 5q` in
9921        *Sun\ C*)                       # Sun C 5.9
9922          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'
9923          compiler_needs_object=yes
9924          tmp_sharedflag='-G' ;;
9925        *Sun\ F*)                       # Sun Fortran 8.3
9926          tmp_sharedflag='-G' ;;
9927        esac
9928        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929
9930        if test "x$supports_anon_versioning" = xyes; then
9931          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9932            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9933            echo "local: *; };" >> $output_objdir/$libname.ver~
9934            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9935        fi
9936
9937        case $cc_basename in
9938        xlf* | bgf* | bgxlf* | mpixlf*)
9939          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9940          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9941          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9943          if test "x$supports_anon_versioning" = xyes; then
9944            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9945              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9946              echo "local: *; };" >> $output_objdir/$libname.ver~
9947              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9948          fi
9949          ;;
9950        esac
9951      else
9952        ld_shlibs=no
9953      fi
9954      ;;
9955
9956    netbsd*)
9957      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9959        wlarc=
9960      else
9961        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963      fi
9964      ;;
9965
9966    solaris*)
9967      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9968        ld_shlibs=no
9969        cat <<_LT_EOF 1>&2
9970
9971*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9972*** create shared libraries on Solaris systems.  Therefore, libtool
9973*** is disabling shared libraries support.  We urge you to upgrade GNU
9974*** binutils to release 2.9.1 or newer.  Another option is to modify
9975*** your PATH or compiler configuration so that the native linker is
9976*** used, and then restart.
9977
9978_LT_EOF
9979      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982      else
9983        ld_shlibs=no
9984      fi
9985      ;;
9986
9987    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9988      case `$LD -v 2>&1` in
9989        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9990        ld_shlibs=no
9991        cat <<_LT_EOF 1>&2
9992
9993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9994*** reliably create shared libraries on SCO systems.  Therefore, libtool
9995*** is disabling shared libraries support.  We urge you to upgrade GNU
9996*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9997*** your PATH or compiler configuration so that the native linker is
9998*** used, and then restart.
9999
10000_LT_EOF
10001        ;;
10002        *)
10003          # For security reasons, it is highly recommended that you always
10004          # use absolute paths for naming shared libraries, and exclude the
10005          # DT_RUNPATH tag from executables and libraries.  But doing so
10006          # requires that you compile everything twice, which is a pain.
10007          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10009            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10011          else
10012            ld_shlibs=no
10013          fi
10014        ;;
10015      esac
10016      ;;
10017
10018    sunos4*)
10019      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020      wlarc=
10021      hardcode_direct=yes
10022      hardcode_shlibpath_var=no
10023      ;;
10024
10025    *)
10026      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10029      else
10030        ld_shlibs=no
10031      fi
10032      ;;
10033    esac
10034
10035    if test "$ld_shlibs" = no; then
10036      runpath_var=
10037      hardcode_libdir_flag_spec=
10038      export_dynamic_flag_spec=
10039      whole_archive_flag_spec=
10040    fi
10041  else
10042    # PORTME fill in a description of your system's linker (not GNU ld)
10043    case $host_os in
10044    aix3*)
10045      allow_undefined_flag=unsupported
10046      always_export_symbols=yes
10047      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'
10048      # Note: this linker hardcodes the directories in LIBPATH if there
10049      # are no directories specified by -L.
10050      hardcode_minus_L=yes
10051      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10052        # Neither direct hardcoding nor static linking is supported with a
10053        # broken collect2.
10054        hardcode_direct=unsupported
10055      fi
10056      ;;
10057
10058    aix[4-9]*)
10059      if test "$host_cpu" = ia64; then
10060        # On IA64, the linker does run time linking by default, so we don't
10061        # have to do anything special.
10062        aix_use_runtimelinking=no
10063        exp_sym_flag='-Bexport'
10064        no_entry_flag=""
10065      else
10066        # If we're using GNU nm, then we don't want the "-C" option.
10067        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10068        # Also, AIX nm treats weak defined symbols like other global
10069        # defined symbols, whereas GNU nm marks them as "W".
10070        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10071          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'
10072        else
10073          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10074        fi
10075        aix_use_runtimelinking=no
10076
10077        # Test if we are trying to use run time linking or normal
10078        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10079        # need to do runtime linking.
10080        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10081          for ld_flag in $LDFLAGS; do
10082          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10083            aix_use_runtimelinking=yes
10084            break
10085          fi
10086          done
10087          ;;
10088        esac
10089
10090        exp_sym_flag='-bexport'
10091        no_entry_flag='-bnoentry'
10092      fi
10093
10094      # When large executables or shared objects are built, AIX ld can
10095      # have problems creating the table of contents.  If linking a library
10096      # or program results in "error TOC overflow" add -mminimal-toc to
10097      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10098      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10099
10100      archive_cmds=''
10101      hardcode_direct=yes
10102      hardcode_direct_absolute=yes
10103      hardcode_libdir_separator=':'
10104      link_all_deplibs=yes
10105      file_list_spec='${wl}-f,'
10106
10107      if test "$GCC" = yes; then
10108        case $host_os in aix4.[012]|aix4.[012].*)
10109        # We only want to do this on AIX 4.2 and lower, the check
10110        # below for broken collect2 doesn't work under 4.3+
10111          collect2name=`${CC} -print-prog-name=collect2`
10112          if test -f "$collect2name" &&
10113           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10114          then
10115          # We have reworked collect2
10116          :
10117          else
10118          # We have old collect2
10119          hardcode_direct=unsupported
10120          # It fails to find uninstalled libraries when the uninstalled
10121          # path is not listed in the libpath.  Setting hardcode_minus_L
10122          # to unsupported forces relinking
10123          hardcode_minus_L=yes
10124          hardcode_libdir_flag_spec='-L$libdir'
10125          hardcode_libdir_separator=
10126          fi
10127          ;;
10128        esac
10129        shared_flag='-shared'
10130        if test "$aix_use_runtimelinking" = yes; then
10131          shared_flag="$shared_flag "'${wl}-G'
10132        fi
10133      else
10134        # not using gcc
10135        if test "$host_cpu" = ia64; then
10136        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10137        # chokes on -Wl,-G. The following line is correct:
10138          shared_flag='-G'
10139        else
10140          if test "$aix_use_runtimelinking" = yes; then
10141            shared_flag='${wl}-G'
10142          else
10143            shared_flag='${wl}-bM:SRE'
10144          fi
10145        fi
10146      fi
10147
10148      export_dynamic_flag_spec='${wl}-bexpall'
10149      # It seems that -bexpall does not export symbols beginning with
10150      # underscore (_), so it is better to generate a list of symbols to export.
10151      always_export_symbols=yes
10152      if test "$aix_use_runtimelinking" = yes; then
10153        # Warning - without using the other runtime loading flags (-brtl),
10154        # -berok will link without error, but may produce a broken library.
10155        allow_undefined_flag='-berok'
10156        # Determine the default libpath from the value encoded in an
10157        # empty executable.
10158        if test "${lt_cv_aix_libpath+set}" = set; then
10159  aix_libpath=$lt_cv_aix_libpath
10160else
10161  if ${lt_cv_aix_libpath_+:} false; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166
10167int
10168main ()
10169{
10170
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175if ac_fn_c_try_link "$LINENO"; then :
10176
10177  lt_aix_libpath_sed='
10178      /Import File Strings/,/^$/ {
10179          /^0/ {
10180              s/^0  *\([^ ]*\) *$/\1/
10181              p
10182          }
10183      }'
10184  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185  # Check for a 64-bit object if we didn't find anything.
10186  if test -z "$lt_cv_aix_libpath_"; then
10187    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188  fi
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191    conftest$ac_exeext conftest.$ac_ext
10192  if test -z "$lt_cv_aix_libpath_"; then
10193    lt_cv_aix_libpath_="/usr/lib:/lib"
10194  fi
10195
10196fi
10197
10198  aix_libpath=$lt_cv_aix_libpath_
10199fi
10200
10201        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10202        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"
10203      else
10204        if test "$host_cpu" = ia64; then
10205          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10206          allow_undefined_flag="-z nodefs"
10207          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"
10208        else
10209         # Determine the default libpath from the value encoded in an
10210         # empty executable.
10211         if test "${lt_cv_aix_libpath+set}" = set; then
10212  aix_libpath=$lt_cv_aix_libpath
10213else
10214  if ${lt_cv_aix_libpath_+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219
10220int
10221main ()
10222{
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then :
10229
10230  lt_aix_libpath_sed='
10231      /Import File Strings/,/^$/ {
10232          /^0/ {
10233              s/^0  *\([^ ]*\) *$/\1/
10234              p
10235          }
10236      }'
10237  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238  # Check for a 64-bit object if we didn't find anything.
10239  if test -z "$lt_cv_aix_libpath_"; then
10240    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241  fi
10242fi
10243rm -f core conftest.err conftest.$ac_objext \
10244    conftest$ac_exeext conftest.$ac_ext
10245  if test -z "$lt_cv_aix_libpath_"; then
10246    lt_cv_aix_libpath_="/usr/lib:/lib"
10247  fi
10248
10249fi
10250
10251  aix_libpath=$lt_cv_aix_libpath_
10252fi
10253
10254         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10255          # Warning - without using the other run time loading flags,
10256          # -berok will link without error, but may produce a broken library.
10257          no_undefined_flag=' ${wl}-bernotok'
10258          allow_undefined_flag=' ${wl}-berok'
10259          if test "$with_gnu_ld" = yes; then
10260            # We only use this code for GNU lds that support --whole-archive.
10261            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10262          else
10263            # Exported symbols can be pulled into shared objects from archives
10264            whole_archive_flag_spec='$convenience'
10265          fi
10266          archive_cmds_need_lc=yes
10267          # This is similar to how AIX traditionally builds its shared libraries.
10268          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'
10269        fi
10270      fi
10271      ;;
10272
10273    amigaos*)
10274      case $host_cpu in
10275      powerpc)
10276            # see comment about AmigaOS4 .so support
10277            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10278            archive_expsym_cmds=''
10279        ;;
10280      m68k)
10281            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)'
10282            hardcode_libdir_flag_spec='-L$libdir'
10283            hardcode_minus_L=yes
10284        ;;
10285      esac
10286      ;;
10287
10288    bsdi[45]*)
10289      export_dynamic_flag_spec=-rdynamic
10290      ;;
10291
10292    cygwin* | mingw* | pw32* | cegcc*)
10293      # When not using gcc, we currently assume that we are using
10294      # Microsoft Visual C++.
10295      # hardcode_libdir_flag_spec is actually meaningless, as there is
10296      # no search path for DLLs.
10297      case $cc_basename in
10298      cl*)
10299        # Native MSVC
10300        hardcode_libdir_flag_spec=' '
10301        allow_undefined_flag=unsupported
10302        always_export_symbols=yes
10303        file_list_spec='@'
10304        # Tell ltmain to make .lib files, not .a files.
10305        libext=lib
10306        # Tell ltmain to make .dll files, not .so files.
10307        shrext_cmds=".dll"
10308        # FIXME: Setting linknames here is a bad hack.
10309        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10310        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10311            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10312          else
10313            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10314          fi~
10315          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10316          linknames='
10317        # The linker will not automatically build a static lib if we build a DLL.
10318        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10319        enable_shared_with_static_runtimes=yes
10320        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10321        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10322        # Don't use ranlib
10323        old_postinstall_cmds='chmod 644 $oldlib'
10324        postlink_cmds='lt_outputfile="@OUTPUT@"~
10325          lt_tool_outputfile="@TOOL_OUTPUT@"~
10326          case $lt_outputfile in
10327            *.exe|*.EXE) ;;
10328            *)
10329              lt_outputfile="$lt_outputfile.exe"
10330              lt_tool_outputfile="$lt_tool_outputfile.exe"
10331              ;;
10332          esac~
10333          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10334            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10335            $RM "$lt_outputfile.manifest";
10336          fi'
10337        ;;
10338      *)
10339        # Assume MSVC wrapper
10340        hardcode_libdir_flag_spec=' '
10341        allow_undefined_flag=unsupported
10342        # Tell ltmain to make .lib files, not .a files.
10343        libext=lib
10344        # Tell ltmain to make .dll files, not .so files.
10345        shrext_cmds=".dll"
10346        # FIXME: Setting linknames here is a bad hack.
10347        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10348        # The linker will automatically build a .lib file if we build a DLL.
10349        old_archive_from_new_cmds='true'
10350        # FIXME: Should let the user specify the lib program.
10351        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10352        enable_shared_with_static_runtimes=yes
10353        ;;
10354      esac
10355      ;;
10356
10357    darwin* | rhapsody*)
10358
10359
10360  archive_cmds_need_lc=no
10361  hardcode_direct=no
10362  hardcode_automatic=yes
10363  hardcode_shlibpath_var=unsupported
10364  if test "$lt_cv_ld_force_load" = "yes"; then
10365    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\"`'
10366
10367  else
10368    whole_archive_flag_spec=''
10369  fi
10370  link_all_deplibs=yes
10371  allow_undefined_flag="$_lt_dar_allow_undefined"
10372  case $cc_basename in
10373     ifort*) _lt_dar_can_shared=yes ;;
10374     *) _lt_dar_can_shared=$GCC ;;
10375  esac
10376  if test "$_lt_dar_can_shared" = "yes"; then
10377    output_verbose_link_cmd=func_echo_all
10378    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10379    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10380    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}"
10381    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}"
10382
10383  else
10384  ld_shlibs=no
10385  fi
10386
10387      ;;
10388
10389    dgux*)
10390      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391      hardcode_libdir_flag_spec='-L$libdir'
10392      hardcode_shlibpath_var=no
10393      ;;
10394
10395    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10396    # support.  Future versions do this automatically, but an explicit c++rt0.o
10397    # does not break anything, and helps significantly (at the cost of a little
10398    # extra space).
10399    freebsd2.2*)
10400      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10401      hardcode_libdir_flag_spec='-R$libdir'
10402      hardcode_direct=yes
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10407    freebsd2.*)
10408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10409      hardcode_direct=yes
10410      hardcode_minus_L=yes
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10415    freebsd* | dragonfly*)
10416      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417      hardcode_libdir_flag_spec='-R$libdir'
10418      hardcode_direct=yes
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    hpux9*)
10423      if test "$GCC" = yes; then
10424        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10425      else
10426        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'
10427      fi
10428      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429      hardcode_libdir_separator=:
10430      hardcode_direct=yes
10431
10432      # hardcode_minus_L: Not really in the search PATH,
10433      # but as the default location of the library.
10434      hardcode_minus_L=yes
10435      export_dynamic_flag_spec='${wl}-E'
10436      ;;
10437
10438    hpux10*)
10439      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10440        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10441      else
10442        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10443      fi
10444      if test "$with_gnu_ld" = no; then
10445        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10446        hardcode_libdir_separator=:
10447        hardcode_direct=yes
10448        hardcode_direct_absolute=yes
10449        export_dynamic_flag_spec='${wl}-E'
10450        # hardcode_minus_L: Not really in the search PATH,
10451        # but as the default location of the library.
10452        hardcode_minus_L=yes
10453      fi
10454      ;;
10455
10456    hpux11*)
10457      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10458        case $host_cpu in
10459        hppa*64*)
10460          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10461          ;;
10462        ia64*)
10463          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10464          ;;
10465        *)
10466          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467          ;;
10468        esac
10469      else
10470        case $host_cpu in
10471        hppa*64*)
10472          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473          ;;
10474        ia64*)
10475          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10476          ;;
10477        *)
10478
10479          # Older versions of the 11.00 compiler do not understand -b yet
10480          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10481          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10482$as_echo_n "checking if $CC understands -b... " >&6; }
10483if ${lt_cv_prog_compiler__b+:} false; then :
10484  $as_echo_n "(cached) " >&6
10485else
10486  lt_cv_prog_compiler__b=no
10487   save_LDFLAGS="$LDFLAGS"
10488   LDFLAGS="$LDFLAGS -b"
10489   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10490   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10491     # The linker can only warn and ignore the option if not recognized
10492     # So say no if there are warnings
10493     if test -s conftest.err; then
10494       # Append any errors to the config.log.
10495       cat conftest.err 1>&5
10496       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10497       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10498       if diff conftest.exp conftest.er2 >/dev/null; then
10499         lt_cv_prog_compiler__b=yes
10500       fi
10501     else
10502       lt_cv_prog_compiler__b=yes
10503     fi
10504   fi
10505   $RM -r conftest*
10506   LDFLAGS="$save_LDFLAGS"
10507
10508fi
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10510$as_echo "$lt_cv_prog_compiler__b" >&6; }
10511
10512if test x"$lt_cv_prog_compiler__b" = xyes; then
10513    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10514else
10515    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10516fi
10517
10518          ;;
10519        esac
10520      fi
10521      if test "$with_gnu_ld" = no; then
10522        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10523        hardcode_libdir_separator=:
10524
10525        case $host_cpu in
10526        hppa*64*|ia64*)
10527          hardcode_direct=no
10528          hardcode_shlibpath_var=no
10529          ;;
10530        *)
10531          hardcode_direct=yes
10532          hardcode_direct_absolute=yes
10533          export_dynamic_flag_spec='${wl}-E'
10534
10535          # hardcode_minus_L: Not really in the search PATH,
10536          # but as the default location of the library.
10537          hardcode_minus_L=yes
10538          ;;
10539        esac
10540      fi
10541      ;;
10542
10543    irix5* | irix6* | nonstopux*)
10544      if test "$GCC" = yes; then
10545        archive_cmds='$CC -shared $pic_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'
10546        # Try to use the -exported_symbol ld option, if it does not
10547        # work, assume that -exports_file does not work either and
10548        # implicitly export all symbols.
10549        # This should be the same for all languages, so no per-tag cache variable.
10550        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10551$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10552if ${lt_cv_irix_exported_symbol+:} false; then :
10553  $as_echo_n "(cached) " >&6
10554else
10555  save_LDFLAGS="$LDFLAGS"
10556           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10557           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h.  */
10559int foo (void) { return 0; }
10560_ACEOF
10561if ac_fn_c_try_link "$LINENO"; then :
10562  lt_cv_irix_exported_symbol=yes
10563else
10564  lt_cv_irix_exported_symbol=no
10565fi
10566rm -f core conftest.err conftest.$ac_objext \
10567    conftest$ac_exeext conftest.$ac_ext
10568           LDFLAGS="$save_LDFLAGS"
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10571$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10572        if test "$lt_cv_irix_exported_symbol" = yes; then
10573          archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10574        fi
10575      else
10576        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'
10577        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'
10578      fi
10579      archive_cmds_need_lc='no'
10580      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10581      hardcode_libdir_separator=:
10582      inherit_rpath=yes
10583      link_all_deplibs=yes
10584      ;;
10585
10586    netbsd*)
10587      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10589      else
10590        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10591      fi
10592      hardcode_libdir_flag_spec='-R$libdir'
10593      hardcode_direct=yes
10594      hardcode_shlibpath_var=no
10595      ;;
10596
10597    newsos6)
10598      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599      hardcode_direct=yes
10600      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601      hardcode_libdir_separator=:
10602      hardcode_shlibpath_var=no
10603      ;;
10604
10605    *nto* | *qnx*)
10606      ;;
10607
10608    openbsd*)
10609      if test -f /usr/libexec/ld.so; then
10610        hardcode_direct=yes
10611        hardcode_shlibpath_var=no
10612        hardcode_direct_absolute=yes
10613        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10614          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10616          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10617          export_dynamic_flag_spec='${wl}-E'
10618        else
10619          case $host_os in
10620           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10621             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622             hardcode_libdir_flag_spec='-R$libdir'
10623             ;;
10624           *)
10625             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10626             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10627             ;;
10628          esac
10629        fi
10630      else
10631        ld_shlibs=no
10632      fi
10633      ;;
10634
10635    os2*)
10636      hardcode_libdir_flag_spec='-L$libdir'
10637      hardcode_minus_L=yes
10638      allow_undefined_flag=unsupported
10639      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'
10640      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10641      ;;
10642
10643    osf3*)
10644      if test "$GCC" = yes; then
10645        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10646        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'
10647      else
10648        allow_undefined_flag=' -expect_unresolved \*'
10649        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'
10650      fi
10651      archive_cmds_need_lc='no'
10652      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10653      hardcode_libdir_separator=:
10654      ;;
10655
10656    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10657      if test "$GCC" = yes; then
10658        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10659        archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10660        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10661      else
10662        allow_undefined_flag=' -expect_unresolved \*'
10663        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'
10664        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~
10665        $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'
10666
10667        # Both c and cxx compiler support -rpath directly
10668        hardcode_libdir_flag_spec='-rpath $libdir'
10669      fi
10670      archive_cmds_need_lc='no'
10671      hardcode_libdir_separator=:
10672      ;;
10673
10674    solaris*)
10675      no_undefined_flag=' -z defs'
10676      if test "$GCC" = yes; then
10677        wlarc='${wl}'
10678        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10679        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10681      else
10682        case `$CC -V 2>&1` in
10683        *"Compilers 5.0"*)
10684          wlarc=''
10685          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10688          ;;
10689        *)
10690          wlarc='${wl}'
10691          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10692          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10694          ;;
10695        esac
10696      fi
10697      hardcode_libdir_flag_spec='-R$libdir'
10698      hardcode_shlibpath_var=no
10699      case $host_os in
10700      solaris2.[0-5] | solaris2.[0-5].*) ;;
10701      *)
10702        # The compiler driver will combine and reorder linker options,
10703        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10704        # but is careful enough not to reorder.
10705        # Supported since Solaris 2.6 (maybe 2.5.1?)
10706        if test "$GCC" = yes; then
10707          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10708        else
10709          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10710        fi
10711        ;;
10712      esac
10713      link_all_deplibs=yes
10714      ;;
10715
10716    sunos4*)
10717      if test "x$host_vendor" = xsequent; then
10718        # Use $CC to link under sequent, because it throws in some extra .o
10719        # files that make .init and .fini sections work.
10720        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10721      else
10722        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10723      fi
10724      hardcode_libdir_flag_spec='-L$libdir'
10725      hardcode_direct=yes
10726      hardcode_minus_L=yes
10727      hardcode_shlibpath_var=no
10728      ;;
10729
10730    sysv4)
10731      case $host_vendor in
10732        sni)
10733          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734          hardcode_direct=yes # is this really true???
10735        ;;
10736        siemens)
10737          ## LD is ld it makes a PLAMLIB
10738          ## CC just makes a GrossModule.
10739          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10740          reload_cmds='$CC -r -o $output$reload_objs'
10741          hardcode_direct=no
10742        ;;
10743        motorola)
10744          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10746        ;;
10747      esac
10748      runpath_var='LD_RUN_PATH'
10749      hardcode_shlibpath_var=no
10750      ;;
10751
10752    sysv4.3*)
10753      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754      hardcode_shlibpath_var=no
10755      export_dynamic_flag_spec='-Bexport'
10756      ;;
10757
10758    sysv4*MP*)
10759      if test -d /usr/nec; then
10760        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761        hardcode_shlibpath_var=no
10762        runpath_var=LD_RUN_PATH
10763        hardcode_runpath_var=yes
10764        ld_shlibs=yes
10765      fi
10766      ;;
10767
10768    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10769      no_undefined_flag='${wl}-z,text'
10770      archive_cmds_need_lc=no
10771      hardcode_shlibpath_var=no
10772      runpath_var='LD_RUN_PATH'
10773
10774      if test "$GCC" = yes; then
10775        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777      else
10778        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780      fi
10781      ;;
10782
10783    sysv5* | sco3.2v5* | sco5v6*)
10784      # Note: We can NOT use -z defs as we might desire, because we do not
10785      # link with -lc, and that would cause any symbols used from libc to
10786      # always be unresolved, which means just about no library would
10787      # ever link correctly.  If we're not using GNU ld we use -z text
10788      # though, which does catch some bad symbols but isn't as heavy-handed
10789      # as -z defs.
10790      no_undefined_flag='${wl}-z,text'
10791      allow_undefined_flag='${wl}-z,nodefs'
10792      archive_cmds_need_lc=no
10793      hardcode_shlibpath_var=no
10794      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10795      hardcode_libdir_separator=':'
10796      link_all_deplibs=yes
10797      export_dynamic_flag_spec='${wl}-Bexport'
10798      runpath_var='LD_RUN_PATH'
10799
10800      if test "$GCC" = yes; then
10801        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803      else
10804        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10805        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806      fi
10807      ;;
10808
10809    uts4*)
10810      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811      hardcode_libdir_flag_spec='-L$libdir'
10812      hardcode_shlibpath_var=no
10813      ;;
10814
10815    *)
10816      ld_shlibs=no
10817      ;;
10818    esac
10819
10820    if test x$host_vendor = xsni; then
10821      case $host in
10822      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10823        export_dynamic_flag_spec='${wl}-Blargedynsym'
10824        ;;
10825      esac
10826    fi
10827  fi
10828
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10830$as_echo "$ld_shlibs" >&6; }
10831test "$ld_shlibs" = no && can_build_shared=no
10832
10833with_gnu_ld=$with_gnu_ld
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849#
10850# Do we need to explicitly link libc?
10851#
10852case "x$archive_cmds_need_lc" in
10853x|xyes)
10854  # Assume -lc should be added
10855  archive_cmds_need_lc=yes
10856
10857  if test "$enable_shared" = yes && test "$GCC" = yes; then
10858    case $archive_cmds in
10859    *'~'*)
10860      # FIXME: we may have to deal with multi-command sequences.
10861      ;;
10862    '$CC '*)
10863      # Test whether the compiler implicitly links with -lc since on some
10864      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10865      # to ld, don't add -lc before -lgcc.
10866      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10867$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10868if ${lt_cv_archive_cmds_need_lc+:} false; then :
10869  $as_echo_n "(cached) " >&6
10870else
10871  $RM conftest*
10872        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10873
10874        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10875  (eval $ac_compile) 2>&5
10876  ac_status=$?
10877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10878  test $ac_status = 0; } 2>conftest.err; then
10879          soname=conftest
10880          lib=conftest
10881          libobjs=conftest.$ac_objext
10882          deplibs=
10883          wl=$lt_prog_compiler_wl
10884          pic_flag=$lt_prog_compiler_pic
10885          compiler_flags=-v
10886          linker_flags=-v
10887          verstring=
10888          output_objdir=.
10889          libname=conftest
10890          lt_save_allow_undefined_flag=$allow_undefined_flag
10891          allow_undefined_flag=
10892          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10893  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10894  ac_status=$?
10895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896  test $ac_status = 0; }
10897          then
10898            lt_cv_archive_cmds_need_lc=no
10899          else
10900            lt_cv_archive_cmds_need_lc=yes
10901          fi
10902          allow_undefined_flag=$lt_save_allow_undefined_flag
10903        else
10904          cat conftest.err 1>&5
10905        fi
10906        $RM conftest*
10907
10908fi
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10910$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10911      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10912      ;;
10913    esac
10914  fi
10915  ;;
10916esac
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983