source: trunk/configure @ 372

Last change on this file since 372 was 371, checked in by kulshres, 8 years ago

regenerate files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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