source: ThirdParty/Glpk/branches/autotools-update/configure @ 3849

Last change on this file since 3849 was 3849, checked in by lou, 11 months ago

Collateral damage from BuildTools? r3848.

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