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

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

Remove COIN_INIT_LIBVARS.

File size: 432.9 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
648LT_LDFLAGS
649CPP
650LT_SYS_LIBRARY_PATH
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669LIBTOOL
670OBJDUMP
671DLLTOOL
672AS
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716AM_BACKSLASH
717AM_DEFAULT_VERBOSITY
718AM_DEFAULT_V
719AM_V
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728ALWAYS_FALSE_FALSE
729ALWAYS_FALSE_TRUE
730GLPK_SVN_REV
731have_svnversion
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_msvc
774enable_silent_rules
775enable_maintainer_mode
776enable_dependency_tracking
777enable_static
778with_pic
779enable_shared
780enable_fast_install
781with_aix_soname
782with_gnu_ld
783with_sysroot
784enable_libtool_lock
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794LT_SYS_LIBRARY_PATH
795CPP'
796ac_subdirs_all='glpk'
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  # Accept the important Cygnus configure options, so we can diagnose typos.
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913         ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: $ac_useropt"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939         ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143         ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159         ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221                datadir sysconfdir sharedstatedir localstatedir includedir \
1222                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223                libdir localedir mandir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276         X"$as_myself" : 'X\(//\)[^/]' \| \
1277         X"$as_myself" : 'X\(//\)$' \| \
1278         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281            s//\1/
1282            q
1283          }
1284          /^X\(\/\/\)[^/].*/{
1285            s//\1/
1286            q
1287          }
1288          /^X\(\/\/\)$/{
1289            s//\1/
1290            q
1291          }
1292          /^X\(\/\).*/{
1293            s//\1/
1294            q
1295          }
1296          s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311        pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures ThirdPartyGlpk trunk to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/thirdpartyglpk]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405  case $ac_init_help in
1406     short | recursive ) echo "Configuration of ThirdPartyGlpk trunk:";;
1407   esac
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-msvc           Allow only Intel/Microsoft compilers on
1415                          MinGW/MSys/Cygwin.
1416  --enable-silent-rules   less verbose build output (undo: "make V=1")
1417  --disable-silent-rules  verbose build output (undo: "make V=0")
1418  --enable-maintainer-mode
1419                          enable make rules and dependencies not useful (and
1420                          sometimes confusing) to the casual installer
1421  --enable-dependency-tracking
1422                          do not reject slow dependency extractors
1423  --disable-dependency-tracking
1424                          speeds up one-time build
1425  --enable-static[=PKGS]  build static libraries [default=no]
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-fast-install[=PKGS]
1428                          optimize for fast installation [default=yes]
1429  --disable-libtool-lock  avoid locking (might break parallel builds)
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1435                          both]
1436  --with-aix-soname=aix|svr4|both
1437                          shared library versioning (aka "SONAME") variant to
1438                          provide on AIX, [default=aix].
1439  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1441                          compiler's sysroot if not specified).
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  LT_SYS_LIBRARY_PATH
1452              User-defined run-time library search path.
1453  CPP         C preprocessor
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
1458Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1459ThirdPartyGlpk home page: <http://projects.coin-or.org/BuildTools/browser/ThirdParty/Glpk>.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465  # If there are subdirs, report their specific --help.
1466  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467    test -d "$ac_dir" ||
1468      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469      continue
1470    ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476  # A ".." for each directory in $ac_dir_suffix.
1477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478  case $ac_top_builddir_sub in
1479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481  esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489  .)  # We are building in place.
1490    ac_srcdir=.
1491    ac_top_srcdir=$ac_top_builddir_sub
1492    ac_abs_top_srcdir=$ac_pwd ;;
1493  [\\/]* | ?:[\\/]* )  # Absolute name.
1494    ac_srcdir=$srcdir$ac_dir_suffix;
1495    ac_top_srcdir=$srcdir
1496    ac_abs_top_srcdir=$srcdir ;;
1497  *) # Relative name.
1498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499    ac_top_srcdir=$ac_top_build_prefix$srcdir
1500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504    cd "$ac_dir" || { ac_status=$?; continue; }
1505    # Check for guested configure.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522ThirdPartyGlpk configure trunk
1523generated by GNU Autoconf 2.69
1524
1525Copyright (C) 2012 Free Software Foundation, Inc.
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528
1529
1530Copyright 2007-2010 Stefan Vigerske and others.
1531All Rights Reserved.
1532This file is part of the open source package ThirdParty/Glpk which is
1533distributed under the Eclipse Public License.
1534_ACEOF
1535  exit
1536fi
1537
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
1541
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  rm -f conftest.$ac_objext
1549  if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556  (eval "$ac_compile") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } && {
1565         test -z "$ac_c_werror_flag" ||
1566         test ! -s conftest.err
1567       } && test -s conftest.$ac_objext; then :
1568  ac_retval=0
1569else
1570  $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573        ac_retval=1
1574fi
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576  as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_try_link LINENO
1581# -----------------------
1582# Try to link conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_link ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext conftest$ac_exeext
1587  if { { ac_try="$ac_link"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_link") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603         test -z "$ac_c_werror_flag" ||
1604         test ! -s conftest.err
1605       } && test -s conftest$ac_exeext && {
1606         test "$cross_compiling" = yes ||
1607         test -x conftest$ac_exeext
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614        ac_retval=1
1615fi
1616  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618  # interfere with the next link command; also delete a directory that is
1619  # left behind by Apple's compiler.  We do this before executing the actions.
1620  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_c_try_link
1625
1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627# -------------------------------------------------------
1628# Tests whether HEADER exists and can be compiled using the include files in
1629# INCLUDES, setting the cache variable VAR accordingly.
1630ac_fn_c_check_header_compile ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634$as_echo_n "checking for $2... " >&6; }
1635if eval \${$3+:} false; then :
1636  $as_echo_n "(cached) " >&6
1637else
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644  eval "$3=yes"
1645else
1646  eval "$3=no"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650eval ac_res=\$$3
1651               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_header_compile
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680         test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_func LINENO FUNC VAR
1737# ----------------------------------
1738# Tests whether FUNC exists, setting the cache variable VAR accordingly
1739ac_fn_c_check_func ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754    which can conflict with char $2 (); below.
1755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756    <limits.h> exists even on freestanding compilers.  */
1757
1758#ifdef __STDC__
1759# include <limits.h>
1760#else
1761# include <assert.h>
1762#endif
1763
1764#undef $2
1765
1766/* Override any GCC internal prototype to avoid an error.
1767   Use char because int might match the return type of a GCC
1768   builtin and then its argument prototype would still apply.  */
1769#ifdef __cplusplus
1770extern "C"
1771#endif
1772char $2 ();
1773/* The GNU C library defines this for functions which it implements
1774    to always fail with ENOSYS.  Some functions are actually named
1775    something starting with __ and the normal name is an alias.  */
1776#if defined __stub_$2 || defined __stub___$2
1777choke me
1778#endif
1779
1780int
1781main ()
1782{
1783return $2 ();
1784  ;
1785  return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_link "$LINENO"; then :
1789  eval "$3=yes"
1790else
1791  eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext \
1794    conftest$ac_exeext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_func
1802cat >config.log <<_ACEOF
1803This file contains any messages produced by compilers while
1804running configure, to aid debugging if configure makes a mistake.
1805
1806It was created by ThirdPartyGlpk $as_me trunk, which was
1807generated by GNU Autoconf 2.69.  Invocation command line was
1808
1809  $ $0 $@
1810
1811_ACEOF
1812exec 5>>config.log
1813{
1814cat <<_ASUNAME
1815## --------- ##
1816## Platform. ##
1817## --------- ##
1818
1819hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824
1825/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1827
1828/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1829/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1830/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1832/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1833/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1834/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1835
1836_ASUNAME
1837
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841  IFS=$as_save_IFS
1842  test -z "$as_dir" && as_dir=.
1843    $as_echo "PATH: $as_dir"
1844  done
1845IFS=$as_save_IFS
1846
1847} >&5
1848
1849cat >&5 <<_ACEOF
1850
1851
1852## ----------- ##
1853## Core tests. ##
1854## ----------- ##
1855
1856_ACEOF
1857
1858
1859# Keep a trace of the command line.
1860# Strip out --no-create and --no-recursion so they do not pile up.
1861# Strip out --silent because we don't want to record it for future runs.
1862# Also quote any args containing shell meta-characters.
1863# Make two passes to allow for proper duplicate-argument suppression.
1864ac_configure_args=
1865ac_configure_args0=
1866ac_configure_args1=
1867ac_must_keep_next=false
1868for ac_pass in 1 2
1869do
1870  for ac_arg
1871  do
1872    case $ac_arg in
1873    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1874    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1875    | -silent | --silent | --silen | --sile | --sil)
1876      continue ;;
1877    *\'*)
1878      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879    esac
1880    case $ac_pass in
1881    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882    2)
1883      as_fn_append ac_configure_args1 " '$ac_arg'"
1884      if test $ac_must_keep_next = true; then
1885        ac_must_keep_next=false # Got value, back to normal.
1886      else
1887        case $ac_arg in
1888          *=* | --config-cache | -C | -disable-* | --disable-* \
1889          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1890          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1891          | -with-* | --with-* | -without-* | --without-* | --x)
1892            case "$ac_configure_args0 " in
1893              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894            esac
1895            ;;
1896          -* ) ac_must_keep_next=true ;;
1897        esac
1898      fi
1899      as_fn_append ac_configure_args " '$ac_arg'"
1900      ;;
1901    esac
1902  done
1903done
1904{ ac_configure_args0=; unset ac_configure_args0;}
1905{ ac_configure_args1=; unset ac_configure_args1;}
1906
1907# When interrupted or exit'd, cleanup temporary files, and complete
1908# config.log.  We remove comments because anyway the quotes in there
1909# would cause problems or look ugly.
1910# WARNING: Use '\'' to represent an apostrophe within the trap.
1911# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1912trap 'exit_status=$?
1913  # Save into config.log some information that might help in debugging.
1914  {
1915    echo
1916
1917    $as_echo "## ---------------- ##
1918## Cache variables. ##
1919## ---------------- ##"
1920    echo
1921    # The following way of writing the cache mishandles newlines in values,
1922(
1923  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1924    eval ac_val=\$$ac_var
1925    case $ac_val in #(
1926    *${as_nl}*)
1927      case $ac_var in #(
1928      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930      esac
1931      case $ac_var in #(
1932      _ | IFS | as_nl) ;; #(
1933      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1934      *) { eval $ac_var=; unset $ac_var;} ;;
1935      esac ;;
1936    esac
1937  done
1938  (set) 2>&1 |
1939    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1940    *${as_nl}ac_space=\ *)
1941      sed -n \
1942        "s/'\''/'\''\\\\'\'''\''/g;
1943          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944      ;; #(
1945    *)
1946      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1947      ;;
1948    esac |
1949    sort
1950)
1951    echo
1952
1953    $as_echo "## ----------------- ##
1954## Output variables. ##
1955## ----------------- ##"
1956    echo
1957    for ac_var in $ac_subst_vars
1958    do
1959      eval ac_val=\$$ac_var
1960      case $ac_val in
1961      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962      esac
1963      $as_echo "$ac_var='\''$ac_val'\''"
1964    done | sort
1965    echo
1966
1967    if test -n "$ac_subst_files"; then
1968      $as_echo "## ------------------- ##
1969## File substitutions. ##
1970## ------------------- ##"
1971      echo
1972      for ac_var in $ac_subst_files
1973      do
1974        eval ac_val=\$$ac_var
1975        case $ac_val in
1976        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977        esac
1978        $as_echo "$ac_var='\''$ac_val'\''"
1979      done | sort
1980      echo
1981    fi
1982
1983    if test -s confdefs.h; then
1984      $as_echo "## ----------- ##
1985## confdefs.h. ##
1986## ----------- ##"
1987      echo
1988      cat confdefs.h
1989      echo
1990    fi
1991    test "$ac_signal" != 0 &&
1992      $as_echo "$as_me: caught signal $ac_signal"
1993    $as_echo "$as_me: exit $exit_status"
1994  } >&5
1995  rm -f core *.core core.conftest.* &&
1996    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997    exit $exit_status
1998' 0
1999for ac_signal in 1 2 13 15; do
2000  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001done
2002ac_signal=0
2003
2004# confdefs.h avoids OS command line length limits that DEFS can exceed.
2005rm -f -r conftest* confdefs.h
2006
2007$as_echo "/* confdefs.h */" > confdefs.h
2008
2009# Predefined preprocessor variables.
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_NAME "$PACKAGE_NAME"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_VERSION "$PACKAGE_VERSION"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_STRING "$PACKAGE_STRING"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_URL "$PACKAGE_URL"
2033_ACEOF
2034
2035
2036# Let the site file select an alternate cache file if it wants to.
2037# Prefer an explicitly selected file to automatically selected ones.
2038ac_site_file1=NONE
2039ac_site_file2=NONE
2040if test -n "$CONFIG_SITE"; then
2041  # We do not want a PATH search for config.site.
2042  case $CONFIG_SITE in #((
2043    -*)  ac_site_file1=./$CONFIG_SITE;;
2044    */*) ac_site_file1=$CONFIG_SITE;;
2045    *)   ac_site_file1=./$CONFIG_SITE;;
2046  esac
2047elif test "x$prefix" != xNONE; then
2048  ac_site_file1=$prefix/share/config.site
2049  ac_site_file2=$prefix/etc/config.site
2050else
2051  ac_site_file1=$ac_default_prefix/share/config.site
2052  ac_site_file2=$ac_default_prefix/etc/config.site
2053fi
2054for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055do
2056  test "x$ac_site_file" = xNONE && continue
2057  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2058    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2060    sed 's/^/| /' "$ac_site_file" >&5
2061    . "$ac_site_file" \
2062      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064as_fn_error $? "failed to load site script $ac_site_file
2065See \`config.log' for more details" "$LINENO" 5; }
2066  fi
2067done
2068
2069if test -r "$cache_file"; then
2070  # Some versions of bash will fail to source /dev/null (special files
2071  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2072  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074$as_echo "$as_me: loading cache $cache_file" >&6;}
2075    case $cache_file in
2076      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077      *)                      . "./$cache_file";;
2078    esac
2079  fi
2080else
2081  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082$as_echo "$as_me: creating cache $cache_file" >&6;}
2083  >$cache_file
2084fi
2085
2086# Check that the precious variables saved in the cache have kept the same
2087# value.
2088ac_cache_corrupted=false
2089for ac_var in $ac_precious_vars; do
2090  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091  eval ac_new_set=\$ac_env_${ac_var}_set
2092  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093  eval ac_new_val=\$ac_env_${ac_var}_value
2094  case $ac_old_set,$ac_new_set in
2095    set,)
2096      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2097$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098      ac_cache_corrupted=: ;;
2099    ,set)
2100      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2102      ac_cache_corrupted=: ;;
2103    ,);;
2104    *)
2105      if test "x$ac_old_val" != "x$ac_new_val"; then
2106        # differences in whitespace do not lead to failure.
2107        ac_old_val_w=`echo x $ac_old_val`
2108        ac_new_val_w=`echo x $ac_new_val`
2109        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2110          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2111$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2112          ac_cache_corrupted=:
2113        else
2114          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2115$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2116          eval $ac_var=\$ac_old_val
2117        fi
2118        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2119$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2120        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2121$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2122      fi;;
2123  esac
2124  # Pass precious variables to config.status.
2125  if test "$ac_new_set" = set; then
2126    case $ac_new_val in
2127    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2128    *) ac_arg=$ac_var=$ac_new_val ;;
2129    esac
2130    case " $ac_configure_args " in
2131      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2132      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2133    esac
2134  fi
2135done
2136if $ac_cache_corrupted; then
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2140$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2141  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142fi
2143## -------------------- ##
2144## Main body of script. ##
2145## -------------------- ##
2146
2147ac_ext=c
2148ac_cpp='$CPP $CPPFLAGS'
2149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152
2153
2154
2155
2156
2157# List one file in the package so that the configure script can test whether
2158# the package is actually there.
2159
2160
2161
2162# Do some generic initialization work.
2163
2164
2165  # Check whether --enable-msvc was given.
2166if test "${enable_msvc+set}" = set; then :
2167  enableval=$enable_msvc; enable_msvc=$enableval
2168else
2169  enable_msvc=no
2170fi
2171
2172
2173
2174# We want --enable-msvc setup and checked
2175
2176
2177
2178# This macro should run before the compiler checks (doesn't seem to be
2179# sufficient for CFLAGS)
2180
2181
2182
2183
2184
2185
2186# change default compiler flags (TODO bring back --enable-debug)
2187# - disable debugging (remove -g, set -DNDEBUG)
2188# - enable exceptions for (i)cl
2189
2190  if test "$enable_msvc" = yes ; then
2191    : ${FFLAGS:=""}
2192    : ${FCFLAGS:=""}
2193    : ${CFLAGS:="-DNDEBUG -nologo"}
2194    : ${CXXFLAGS:="-DNDEBUG -EHsc -nologo"}
2195    : ${AR:="lib"}
2196    : ${AR_FLAGS:="-nologo -out:"}
2197  else
2198    : ${FFLAGS:=""}
2199    : ${FCFLAGS:=""}
2200    : ${CFLAGS:="-DNDEBUG"}
2201    : ${CXXFLAGS:="-DNDEBUG"}
2202  fi
2203
2204ac_aux_dir=
2205for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2206  if test -f "$ac_dir/install-sh"; then
2207    ac_aux_dir=$ac_dir
2208    ac_install_sh="$ac_aux_dir/install-sh -c"
2209    break
2210  elif test -f "$ac_dir/install.sh"; then
2211    ac_aux_dir=$ac_dir
2212    ac_install_sh="$ac_aux_dir/install.sh -c"
2213    break
2214  elif test -f "$ac_dir/shtool"; then
2215    ac_aux_dir=$ac_dir
2216    ac_install_sh="$ac_aux_dir/shtool install -c"
2217    break
2218  fi
2219done
2220if test -z "$ac_aux_dir"; then
2221  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2222fi
2223
2224# These three variables are undocumented and unsupported,
2225# and are intended to be withdrawn in a future Autoconf release.
2226# They can cause serious problems if a builder's source tree is in a directory
2227# whose full name contains unusual characters.
2228ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2229ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2230ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2231
2232
2233# Make sure we can run config.sub.
2234$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238$as_echo_n "checking build system type... " >&6; }
2239if ${ac_cv_build+:} false; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  ac_build_alias=$build_alias
2243test "x$ac_build_alias" = x &&
2244  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245test "x$ac_build_alias" = x &&
2246  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2247ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2249
2250fi
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252$as_echo "$ac_cv_build" >&6; }
2253case $ac_cv_build in
2254*-*-*) ;;
2255*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2256esac
2257build=$ac_cv_build
2258ac_save_IFS=$IFS; IFS='-'
2259set x $ac_cv_build
2260shift
2261build_cpu=$1
2262build_vendor=$2
2263shift; shift
2264# Remember, the first character of IFS is used to create $*,
2265# except with old shells:
2266build_os=$*
2267IFS=$ac_save_IFS
2268case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2269
2270
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if ${ac_cv_host+:} false; then :
2274  $as_echo_n "(cached) " >&6
2275else
2276  if test "x$host_alias" = x; then
2277  ac_cv_host=$ac_cv_build
2278else
2279  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2289esac
2290host=$ac_cv_host
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2302
2303
2304am__api_version='1.15'
2305
2306# Find a good install program.  We prefer a C program (faster),
2307# so one script is as good as another.  But avoid the broken or
2308# incompatible versions:
2309# SysV /etc/install, /usr/sbin/install
2310# SunOS /usr/etc/install
2311# IRIX /sbin/install
2312# AIX /bin/install
2313# AmigaOS /C/install, which installs bootblocks on floppy discs
2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317# OS/2's system install, which has a completely different semantic
2318# ./install, which can be erroneously created by make from ./install.sh.
2319# Reject install programs that cannot install multiple files.
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321$as_echo_n "checking for a BSD-compatible install... " >&6; }
2322if test -z "$INSTALL"; then
2323if ${ac_cv_path_install+:} false; then :
2324  $as_echo_n "(cached) " >&6
2325else
2326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    # Account for people who put trailing slashes in PATH elements.
2332case $as_dir/ in #((
2333  ./ | .// | /[cC]/* | \
2334  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336  /usr/ucb/* ) ;;
2337  *)
2338    # OSF1 and SCO ODT 3.0 have their own names for install.
2339    # Don't use installbsd from OSF since it installs stuff as root
2340    # by default.
2341    for ac_prog in ginstall scoinst install; do
2342      for ac_exec_ext in '' $ac_executable_extensions; do
2343        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2344          if test $ac_prog = install &&
2345            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346            # AIX install.  It has an incompatible calling convention.
2347            :
2348          elif test $ac_prog = install &&
2349            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350            # program-specific install script used by HP pwplus--don't use.
2351            :
2352          else
2353            rm -rf conftest.one conftest.two conftest.dir
2354            echo one > conftest.one
2355            echo two > conftest.two
2356            mkdir conftest.dir
2357            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358              test -s conftest.one && test -s conftest.two &&
2359              test -s conftest.dir/conftest.one &&
2360              test -s conftest.dir/conftest.two
2361            then
2362              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363              break 3
2364            fi
2365          fi
2366        fi
2367      done
2368    done
2369    ;;
2370esac
2371
2372  done
2373IFS=$as_save_IFS
2374
2375rm -rf conftest.one conftest.two conftest.dir
2376
2377fi
2378  if test "${ac_cv_path_install+set}" = set; then
2379    INSTALL=$ac_cv_path_install
2380  else
2381    # As a last resort, use the slow shell script.  Don't cache a
2382    # value for INSTALL within a source directory, because that will
2383    # break other packages using the cache if that directory is
2384    # removed, or if the value is a relative name.
2385    INSTALL=$ac_install_sh
2386  fi
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389$as_echo "$INSTALL" >&6; }
2390
2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392# It thinks the first close brace ends the variable substitution.
2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400$as_echo_n "checking whether build environment is sane... " >&6; }
2401# Reject unsafe characters in $srcdir or the absolute working directory
2402# name.  Accept space and tab only in the latter.
2403am_lf='
2404'
2405case `pwd` in
2406  *[\\\"\#\$\&\'\`$am_lf]*)
2407    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2408esac
2409case $srcdir in
2410  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2411    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2412esac
2413
2414# Do 'set' in a subshell so we don't clobber the current shell's
2415# arguments.  Must try -L first in case configure is actually a
2416# symlink; some systems play weird games with the mod time of symlinks
2417# (eg FreeBSD returns the mod time of the symlink's containing
2418# directory).
2419if (
2420   am_has_slept=no
2421   for am_try in 1 2; do
2422     echo "timestamp, slept: $am_has_slept" > conftest.file
2423     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424     if test "$*" = "X"; then
2425        # -L didn't work.
2426        set X `ls -t "$srcdir/configure" conftest.file`
2427     fi
2428     if test "$*" != "X $srcdir/configure conftest.file" \
2429        && test "$*" != "X conftest.file $srcdir/configure"; then
2430
2431        # If neither matched, then we have a broken ls.  This can happen
2432        # if, for instance, CONFIG_SHELL is bash and it inherits a
2433        # broken ls alias from the environment.  This has actually
2434        # happened.  Such a system could not be considered "sane".
2435        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2436  alias in your environment" "$LINENO" 5
2437     fi
2438     if test "$2" = conftest.file || test $am_try -eq 2; then
2439       break
2440     fi
2441     # Just in case.
2442     sleep 1
2443     am_has_slept=yes
2444   done
2445   test "$2" = conftest.file
2446   )
2447then
2448   # Ok.
2449   :
2450else
2451   as_fn_error $? "newly created file is older than distributed files!
2452Check your system clock" "$LINENO" 5
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455$as_echo "yes" >&6; }
2456# If we didn't sleep, we still need to ensure time stamps of config.status and
2457# generated files are strictly newer.
2458am_sleep_pid=
2459if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2460  ( sleep 1 ) &
2461  am_sleep_pid=$!
2462fi
2463
2464rm -f conftest.file
2465
2466test "$program_prefix" != NONE &&
2467  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468# Use a double $ so make ignores it.
2469test "$program_suffix" != NONE &&
2470  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471# Double any \ or $.
2472# By default was `s,x,x', remove it if useless.
2473ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476# Expand $ac_aux_dir to an absolute path.
2477am_aux_dir=`cd "$ac_aux_dir" && pwd`
2478
2479if test x"${MISSING+set}" != xset; then
2480  case $am_aux_dir in
2481  *\ * | *\     *)
2482    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483  *)
2484    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485  esac
2486fi
2487# Use eval to expand $SHELL
2488if eval "$MISSING --is-lightweight"; then
2489  am_missing_run="$MISSING "
2490else
2491  am_missing_run=
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2493$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2494fi
2495
2496if test x"${install_sh+set}" != xset; then
2497  case $am_aux_dir in
2498  *\ * | *\     *)
2499    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500  *)
2501    install_sh="\${SHELL} $am_aux_dir/install-sh"
2502  esac
2503fi
2504
2505# Installed binaries are usually stripped using 'strip' when the user
2506# run "make install-strip".  However 'strip' might not be the right
2507# tool to use in cross-compilation environments, therefore Automake
2508# will honor the 'STRIP' environment variable to overrule this program.
2509if test "$cross_compiling" != no; then
2510  if test -n "$ac_tool_prefix"; then
2511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512set dummy ${ac_tool_prefix}strip; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_STRIP+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$STRIP"; then
2519  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538STRIP=$ac_cv_prog_STRIP
2539if test -n "$STRIP"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541$as_echo "$STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548fi
2549if test -z "$ac_cv_prog_STRIP"; then
2550  ac_ct_STRIP=$STRIP
2551  # Extract the first word of "strip", so it can be a program name with args.
2552set dummy strip; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$ac_ct_STRIP"; then
2559  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568    ac_cv_prog_ac_ct_STRIP="strip"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579if test -n "$ac_ct_STRIP"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581$as_echo "$ac_ct_STRIP" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587  if test "x$ac_ct_STRIP" = x; then
2588    STRIP=":"
2589  else
2590    case $cross_compiling:$ac_tool_warned in
2591yes:)
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596    STRIP=$ac_ct_STRIP
2597  fi
2598else
2599  STRIP="$ac_cv_prog_STRIP"
2600fi
2601
2602fi
2603INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607if test -z "$MKDIR_P"; then
2608  if ${ac_cv_path_mkdir+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_prog in mkdir gmkdir; do
2617         for ac_exec_ext in '' $ac_executable_extensions; do
2618           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620             'mkdir (GNU coreutils) '* | \
2621             'mkdir (coreutils) '* | \
2622             'mkdir (fileutils) '4.1*)
2623               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624               break 3;;
2625           esac
2626         done
2627       done
2628  done
2629IFS=$as_save_IFS
2630
2631fi
2632
2633  test -d ./--version && rmdir ./--version
2634  if test "${ac_cv_path_mkdir+set}" = set; then
2635    MKDIR_P="$ac_cv_path_mkdir -p"
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for MKDIR_P within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    MKDIR_P="$ac_install_sh -d"
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645$as_echo "$MKDIR_P" >&6; }
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649  # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if ${ac_cv_prog_AWK+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$AWK"; then
2657  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_exec_ext in '' $ac_executable_extensions; do
2665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666    ac_cv_prog_AWK="$ac_prog"
2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686  test -n "$AWK" && break
2687done
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691set x ${MAKE-make}
2692ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  cat >conftest.make <<\_ACEOF
2697SHELL = /bin/sh
2698all:
2699        @echo '@@@%%%=$(MAKE)=@@@%%%'
2700_ACEOF
2701# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703  *@@@%%%=?*=@@@%%%*)
2704    eval ac_cv_prog_make_${ac_make}_set=yes;;
2705  *)
2706    eval ac_cv_prog_make_${ac_make}_set=no;;
2707esac
2708rm -f conftest.make
2709fi
2710if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713  SET_MAKE=
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717  SET_MAKE="MAKE=${MAKE-make}"
2718fi
2719
2720rm -rf .tst 2>/dev/null
2721mkdir .tst 2>/dev/null
2722if test -d .tst; then
2723  am__leading_dot=.
2724else
2725  am__leading_dot=_
2726fi
2727rmdir .tst 2>/dev/null
2728
2729
2730# Enforce the required autoconf version
2731
2732
2733
2734# Set the project's version numbers
2735
2736
2737
2738cat >>confdefs.h <<_ACEOF
2739#define GLPK_VERSION "$PACKAGE_VERSION"
2740_ACEOF
2741
2742
2743# Parse package version, assuming major.minor.release. PACKAGE_VERSION is set
2744# by AC_INIT. Force components to 9999 if they're empty; this deals with
2745# things like `trunk' and other nonstandard forms.
2746
2747  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
2748  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
2749  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
2750  test -z "$coin_majorver"   && coin_majorver=9999
2751  test -z "$coin_minorver"   && coin_minorver=9999
2752  test -z "$coin_releasever" && coin_releasever=9999
2753
2754cat >>confdefs.h <<_ACEOF
2755#define GLPK_VERSION_MAJOR $coin_majorver
2756_ACEOF
2757
2758
2759cat >>confdefs.h <<_ACEOF
2760#define GLPK_VERSION_MINOR $coin_minorver
2761_ACEOF
2762
2763
2764cat >>confdefs.h <<_ACEOF
2765#define GLPK_VERSION_RELEASE $coin_releasever
2766_ACEOF
2767
2768
2769# Create a variable set to the upper case version of the project name
2770
2771  COIN_PRJCT=GLPK
2772
2773# Set the project's SVN revision number. The complicated sed expression
2774# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
2775# as a single number.
2776
2777  # Extract the first word of "svnversion", so it can be a program name with args.
2778set dummy svnversion; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_have_svnversion+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$have_svnversion"; then
2785  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794    ac_cv_prog_have_svnversion="yes"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
2803fi
2804fi
2805have_svnversion=$ac_cv_prog_have_svnversion
2806if test -n "$have_svnversion"; then
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
2808$as_echo "$have_svnversion" >&6; }
2809else
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815  if test "x$have_svnversion" = xyes; then
2816
2817    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
2818    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
2819      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
2820
2821cat >>confdefs.h <<_ACEOF
2822#define GLPK_SVN_REV $GLPK_SVN_REV
2823_ACEOF
2824
2825    fi
2826  fi
2827
2828
2829
2830# Capture the libtool library version, if given.
2831
2832
2833
2834
2835# A useful makefile conditional that is always false
2836
2837   if false; then
2838  ALWAYS_FALSE_TRUE=
2839  ALWAYS_FALSE_FALSE='#'
2840else
2841  ALWAYS_FALSE_TRUE='#'
2842  ALWAYS_FALSE_FALSE=
2843fi
2844
2845
2846# Where should everything be installed by default?  The COIN default is to
2847# install directly into subdirectories of the directory where configure is
2848# run. The default would be to install under /usr/local.
2849
2850
2851
2852# Change the default compiler flags. This needs to run before
2853# AC_CANONICAL_BUILD.
2854
2855
2856
2857# Get the build and host types
2858
2859
2860
2861
2862# libtool has some magic for host_os and build_os being mingw, but doesn't know about msys
2863
2864  if test $host_os = msys ; then
2865    host_os=mingw
2866    host=`echo $host | sed -e 's/msys/mingw/'`
2867  fi
2868
2869  if test $build_os = msys ; then
2870    build_os=mingw
2871    build=`echo $build | 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# Initialise 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5052$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5053if ${lt_cv_deplibs_check_method+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  lt_cv_file_magic_cmd='$MAGIC_CMD'
5057lt_cv_file_magic_test_file=
5058lt_cv_deplibs_check_method='unknown'
5059# Need to set the preceding variable on all platforms that support
5060# interlibrary dependencies.
5061# 'none' -- dependencies not supported.
5062# 'unknown' -- same as none, but documents that we really don't know.
5063# 'pass_all' -- all dependencies passed with no checks.
5064# 'test_compile' -- check by making test program.
5065# 'file_magic [[regex]]' -- check by looking for files in library path
5066# that responds to the $file_magic_cmd with a given extended regex.
5067# If you have 'file' or equivalent on your system and you're not sure
5068# whether 'pass_all' will *always* work, you probably want this one.
5069
5070case $host_os in
5071aix[4-9]*)
5072  lt_cv_deplibs_check_method=pass_all
5073  ;;
5074
5075beos*)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079bsdi[45]*)
5080  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5081  lt_cv_file_magic_cmd='/usr/bin/file -L'
5082  lt_cv_file_magic_test_file=/shlib/libc.so
5083  ;;
5084
5085cygwin*)
5086  # func_win32_libid is a shell function defined in ltmain.sh
5087  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5088  lt_cv_file_magic_cmd='func_win32_libid'
5089  ;;
5090
5091mingw* | pw32*)
5092  # Base MSYS/MinGW do not provide the 'file' command needed by
5093  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5094  # unless we find 'file', for example because we are cross-compiling.
5095  if ( file / ) >/dev/null 2>&1; then
5096    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5097    lt_cv_file_magic_cmd='func_win32_libid'
5098  else
5099    # Keep this pattern in sync with the one in func_win32_libid.
5100    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5101    lt_cv_file_magic_cmd='$OBJDUMP -f'
5102  fi
5103  ;;
5104
5105cegcc*)
5106  # use the weaker test based on 'objdump'. See mingw*.
5107  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5108  lt_cv_file_magic_cmd='$OBJDUMP -f'
5109  ;;
5110
5111darwin* | rhapsody*)
5112  lt_cv_deplibs_check_method=pass_all
5113  ;;
5114
5115freebsd* | dragonfly*)
5116  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5117    case $host_cpu in
5118    i*86 )
5119      # Not sure whether the presence of OpenBSD here was a mistake.
5120      # Let's accept both of them until this is cleared up.
5121      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5122      lt_cv_file_magic_cmd=/usr/bin/file
5123      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5124      ;;
5125    esac
5126  else
5127    lt_cv_deplibs_check_method=pass_all
5128  fi
5129  ;;
5130
5131haiku*)
5132  lt_cv_deplibs_check_method=pass_all
5133  ;;
5134
5135hpux10.20* | hpux11*)
5136  lt_cv_file_magic_cmd=/usr/bin/file
5137  case $host_cpu in
5138  ia64*)
5139    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5140    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5141    ;;
5142  hppa*64*)
5143    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]'
5144    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5145    ;;
5146  *)
5147    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5148    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5149    ;;
5150  esac
5151  ;;
5152
5153interix[3-9]*)
5154  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5155  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5156  ;;
5157
5158irix5* | irix6* | nonstopux*)
5159  case $LD in
5160  *-32|*"-32 ") libmagic=32-bit;;
5161  *-n32|*"-n32 ") libmagic=N32;;
5162  *-64|*"-64 ") libmagic=64-bit;;
5163  *) libmagic=never-match;;
5164  esac
5165  lt_cv_deplibs_check_method=pass_all
5166  ;;
5167
5168# This must be glibc/ELF.
5169linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5170  lt_cv_deplibs_check_method=pass_all
5171  ;;
5172
5173netbsd*)
5174  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5176  else
5177    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5178  fi
5179  ;;
5180
5181newos6*)
5182  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5183  lt_cv_file_magic_cmd=/usr/bin/file
5184  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5185  ;;
5186
5187*nto* | *qnx*)
5188  lt_cv_deplibs_check_method=pass_all
5189  ;;
5190
5191openbsd* | bitrig*)
5192  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5193    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5194  else
5195    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5196  fi
5197  ;;
5198
5199osf3* | osf4* | osf5*)
5200  lt_cv_deplibs_check_method=pass_all
5201  ;;
5202
5203rdos*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207solaris*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210
5211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5212  lt_cv_deplibs_check_method=pass_all
5213  ;;
5214
5215sysv4 | sysv4.3*)
5216  case $host_vendor in
5217  motorola)
5218    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]'
5219    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5220    ;;
5221  ncr)
5222    lt_cv_deplibs_check_method=pass_all
5223    ;;
5224  sequent)
5225    lt_cv_file_magic_cmd='/bin/file'
5226    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5227    ;;
5228  sni)
5229    lt_cv_file_magic_cmd='/bin/file'
5230    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5231    lt_cv_file_magic_test_file=/lib/libc.so
5232    ;;
5233  siemens)
5234    lt_cv_deplibs_check_method=pass_all
5235    ;;
5236  pc)
5237    lt_cv_deplibs_check_method=pass_all
5238    ;;
5239  esac
5240  ;;
5241
5242tpf*)
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245os2*)
5246  lt_cv_deplibs_check_method=pass_all
5247  ;;
5248esac
5249
5250fi
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5252$as_echo "$lt_cv_deplibs_check_method" >&6; }
5253
5254file_magic_glob=
5255want_nocaseglob=no
5256if test "$build" = "$host"; then
5257  case $host_os in
5258  mingw* | pw32*)
5259    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260      want_nocaseglob=yes
5261    else
5262      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263    fi
5264    ;;
5265  esac
5266fi
5267
5268file_magic_cmd=$lt_cv_file_magic_cmd
5269deplibs_check_method=$lt_cv_deplibs_check_method
5270test -z "$deplibs_check_method" && deplibs_check_method=unknown
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293if test -n "$ac_tool_prefix"; then
5294  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if ${ac_cv_prog_DLLTOOL+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  if test -n "$DLLTOOL"; then
5302  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_exec_ext in '' $ac_executable_extensions; do
5310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313    break 2
5314  fi
5315done
5316  done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321DLLTOOL=$ac_cv_prog_DLLTOOL
5322if test -n "$DLLTOOL"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5324$as_echo "$DLLTOOL" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331fi
5332if test -z "$ac_cv_prog_DLLTOOL"; then
5333  ac_ct_DLLTOOL=$DLLTOOL
5334  # Extract the first word of "dlltool", so it can be a program name with args.
5335set dummy dlltool; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$ac_ct_DLLTOOL"; then
5342  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349    for ac_exec_ext in '' $ac_executable_extensions; do
5350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356  done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5362if test -n "$ac_ct_DLLTOOL"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5364$as_echo "$ac_ct_DLLTOOL" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370  if test "x$ac_ct_DLLTOOL" = x; then
5371    DLLTOOL="false"
5372  else
5373    case $cross_compiling:$ac_tool_warned in
5374yes:)
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377ac_tool_warned=yes ;;
5378esac
5379    DLLTOOL=$ac_ct_DLLTOOL
5380  fi
5381else
5382  DLLTOOL="$ac_cv_prog_DLLTOOL"
5383fi
5384
5385test -z "$DLLTOOL" && DLLTOOL=dlltool
5386
5387
5388
5389
5390
5391
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5394$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5395if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  lt_cv_sharedlib_from_linklib_cmd='unknown'
5399
5400case $host_os in
5401cygwin* | mingw* | pw32* | cegcc*)
5402  # two different shell functions defined in ltmain.sh;
5403  # decide which one to use based on capabilities of $DLLTOOL
5404  case `$DLLTOOL --help 2>&1` in
5405  *--identify-strict*)
5406    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5407    ;;
5408  *)
5409    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5410    ;;
5411  esac
5412  ;;
5413*)
5414  # fallback: assume linklib IS sharedlib
5415  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5416  ;;
5417esac
5418
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5421$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5422sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5423test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5424
5425
5426
5427
5428
5429
5430
5431
5432if test -n "$ac_tool_prefix"; then
5433  for ac_prog in ar
5434  do
5435    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438$as_echo_n "checking for $ac_word... " >&6; }
5439if ${ac_cv_prog_AR+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  if test -n "$AR"; then
5443  ac_cv_prog_AR="$AR" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448  IFS=$as_save_IFS
5449  test -z "$as_dir" && as_dir=.
5450    for ac_exec_ext in '' $ac_executable_extensions; do
5451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454    break 2
5455  fi
5456done
5457  done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462AR=$ac_cv_prog_AR
5463if test -n "$AR"; then
5464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5465$as_echo "$AR" >&6; }
5466else
5467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469fi
5470
5471
5472    test -n "$AR" && break
5473  done
5474fi
5475if test -z "$AR"; then
5476  ac_ct_AR=$AR
5477  for ac_prog in ar
5478do
5479  # Extract the first word of "$ac_prog", so it can be a program name with args.
5480set dummy $ac_prog; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
5483if ${ac_cv_prog_ac_ct_AR+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  if test -n "$ac_ct_AR"; then
5487  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492  IFS=$as_save_IFS
5493  test -z "$as_dir" && as_dir=.
5494    for ac_exec_ext in '' $ac_executable_extensions; do
5495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496    ac_cv_prog_ac_ct_AR="$ac_prog"
5497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498    break 2
5499  fi
5500done
5501  done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506ac_ct_AR=$ac_cv_prog_ac_ct_AR
5507if test -n "$ac_ct_AR"; then
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5509$as_echo "$ac_ct_AR" >&6; }
5510else
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516  test -n "$ac_ct_AR" && break
5517done
5518
5519  if test "x$ac_ct_AR" = x; then
5520    AR="false"
5521  else
5522    case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528    AR=$ac_ct_AR
5529  fi
5530fi
5531
5532: ${AR=ar}
5533: ${AR_FLAGS=cru}
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5546$as_echo_n "checking for archiver @FILE support... " >&6; }
5547if ${lt_cv_ar_at_file+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  lt_cv_ar_at_file=no
5551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553
5554int
5555main ()
5556{
5557
5558  ;
5559  return 0;
5560}
5561_ACEOF
5562if ac_fn_c_try_compile "$LINENO"; then :
5563  echo conftest.$ac_objext > conftest.lst
5564      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5565      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566  (eval $lt_ar_try) 2>&5
5567  ac_status=$?
5568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569  test $ac_status = 0; }
5570      if test 0 -eq "$ac_status"; then
5571        # Ensure the archiver fails upon bogus file names.
5572        rm -f conftest.$ac_objext libconftest.a
5573        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574  (eval $lt_ar_try) 2>&5
5575  ac_status=$?
5576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577  test $ac_status = 0; }
5578        if test 0 -ne "$ac_status"; then
5579          lt_cv_ar_at_file=@
5580        fi
5581      fi
5582      rm -f conftest.* libconftest.a
5583
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5589$as_echo "$lt_cv_ar_at_file" >&6; }
5590
5591if test no = "$lt_cv_ar_at_file"; then
5592  archiver_list_spec=
5593else
5594  archiver_list_spec=$lt_cv_ar_at_file
5595fi
5596
5597
5598
5599
5600
5601
5602
5603if test -n "$ac_tool_prefix"; then
5604  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5605set dummy ${ac_tool_prefix}strip; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if ${ac_cv_prog_STRIP+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$STRIP"; then
5612  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626  done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631STRIP=$ac_cv_prog_STRIP
5632if test -n "$STRIP"; then
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5634$as_echo "$STRIP" >&6; }
5635else
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640
5641fi
5642if test -z "$ac_cv_prog_STRIP"; then
5643  ac_ct_STRIP=$STRIP
5644  # Extract the first word of "strip", so it can be a program name with args.
5645set dummy strip; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_STRIP"; then
5652  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661    ac_cv_prog_ac_ct_STRIP="strip"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5672if test -n "$ac_ct_STRIP"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5674$as_echo "$ac_ct_STRIP" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680  if test "x$ac_ct_STRIP" = x; then
5681    STRIP=":"
5682  else
5683    case $cross_compiling:$ac_tool_warned in
5684yes:)
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689    STRIP=$ac_ct_STRIP
5690  fi
5691else
5692  STRIP="$ac_cv_prog_STRIP"
5693fi
5694
5695test -z "$STRIP" && STRIP=:
5696
5697
5698
5699
5700
5701
5702if test -n "$ac_tool_prefix"; then
5703  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5704set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if ${ac_cv_prog_RANLIB+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -n "$RANLIB"; then
5711  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718    for ac_exec_ext in '' $ac_executable_extensions; do
5719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725  done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730RANLIB=$ac_cv_prog_RANLIB
5731if test -n "$RANLIB"; then
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5733$as_echo "$RANLIB" >&6; }
5734else
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740fi
5741if test -z "$ac_cv_prog_RANLIB"; then
5742  ac_ct_RANLIB=$RANLIB
5743  # Extract the first word of "ranlib", so it can be a program name with args.
5744set dummy ranlib; ac_word=$2
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  if test -n "$ac_ct_RANLIB"; then
5751  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756  IFS=$as_save_IFS
5757  test -z "$as_dir" && as_dir=.
5758    for ac_exec_ext in '' $ac_executable_extensions; do
5759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760    ac_cv_prog_ac_ct_RANLIB="ranlib"
5761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762    break 2
5763  fi
5764done
5765  done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5771if test -n "$ac_ct_RANLIB"; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5773$as_echo "$ac_ct_RANLIB" >&6; }
5774else
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779  if test "x$ac_ct_RANLIB" = x; then
5780    RANLIB=":"
5781  else
5782    case $cross_compiling:$ac_tool_warned in
5783yes:)
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786ac_tool_warned=yes ;;
5787esac
5788    RANLIB=$ac_ct_RANLIB
5789  fi
5790else
5791  RANLIB="$ac_cv_prog_RANLIB"
5792fi
5793
5794test -z "$RANLIB" && RANLIB=:
5795
5796
5797
5798
5799
5800
5801# Determine commands to create old-style static archives.
5802old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5803old_postinstall_cmds='chmod 644 $oldlib'
5804old_postuninstall_cmds=
5805
5806if test -n "$RANLIB"; then
5807  case $host_os in
5808  bitrig* | openbsd*)
5809    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5810    ;;
5811  *)
5812    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5813    ;;
5814  esac
5815  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5816fi
5817
5818case $host_os in
5819  darwin*)
5820    lock_old_archive_extraction=yes ;;
5821  *)
5822    lock_old_archive_extraction=no ;;
5823esac
5824
5825
5826
5827
5828
5829
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# If no C compiler was specified, use CC.
5864LTCC=${LTCC-"$CC"}
5865
5866# If no C compiler flags were specified, use CFLAGS.
5867LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5868
5869# Allow CC to be a program name with arguments.
5870compiler=$CC
5871
5872
5873# Check for command to grab the raw symbol name followed by C symbol from nm.
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5875$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5876if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879
5880# These are sane defaults that work on at least a few old systems.
5881# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5882
5883# Character class describing NM global symbol codes.
5884symcode='[BCDEGRST]'
5885
5886# Regexp to match symbols that can be accessed directly from C.
5887sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5888
5889# Define system-specific variables.
5890case $host_os in
5891aix*)
5892  symcode='[BCDT]'
5893  ;;
5894cygwin* | mingw* | pw32* | cegcc*)
5895  symcode='[ABCDGISTW]'
5896  ;;
5897hpux*)
5898  if test ia64 = "$host_cpu"; then
5899    symcode='[ABCDEGRST]'
5900  fi
5901  ;;
5902irix* | nonstopux*)
5903  symcode='[BCDEGRST]'
5904  ;;
5905osf*)
5906  symcode='[BCDEGQRST]'
5907  ;;
5908solaris*)
5909  symcode='[BDRT]'
5910  ;;
5911sco3.2v5*)
5912  symcode='[DT]'
5913  ;;
5914sysv4.2uw2*)
5915  symcode='[DT]'
5916  ;;
5917sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918  symcode='[ABDT]'
5919  ;;
5920sysv4)
5921  symcode='[DFNSTU]'
5922  ;;
5923esac
5924
5925# If we're using GNU nm, then use its standard symbol codes.
5926case `$NM -V 2>&1` in
5927*GNU* | *'with BFD'*)
5928  symcode='[ABCDGIRSTW]' ;;
5929esac
5930
5931if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5932  # Gets list of data symbols to import.
5933  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5934  # Adjust the below global symbol transforms to fixup imported variables.
5935  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5936  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5937  lt_c_name_lib_hook="\
5938  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5939  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5940else
5941  # Disable hooks by default.
5942  lt_cv_sys_global_symbol_to_import=
5943  lt_cdecl_hook=
5944  lt_c_name_hook=
5945  lt_c_name_lib_hook=
5946fi
5947
5948# Transform an extracted symbol line into a proper C declaration.
5949# Some systems (esp. on ia64) link data and code symbols differently,
5950# so use this general approach.
5951lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5952$lt_cdecl_hook\
5953" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5954" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5955
5956# Transform an extracted symbol line into symbol name and symbol address
5957lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5958$lt_c_name_hook\
5959" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5960" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5961
5962# Transform an extracted symbol line into symbol name with lib prefix and
5963# symbol address.
5964lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5965$lt_c_name_lib_hook\
5966" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5967" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5968" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5969
5970# Handle CRLF in mingw tool chain
5971opt_cr=
5972case $build_os in
5973mingw*)
5974  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5975  ;;
5976esac
5977
5978# Try without a prefix underscore, then with it.
5979for ac_symprfx in "" "_"; do
5980
5981  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5982  symxfrm="\\1 $ac_symprfx\\2 \\2"
5983
5984  # Write the raw and C identifiers.
5985  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5986    # Fake it for dumpbin and say T for any non-static function,
5987    # D for any global variable and I for any imported variable.
5988    # Also find C++ and __fastcall symbols from MSVC++,
5989    # which start with @ or ?.
5990    lt_cv_sys_global_symbol_pipe="$AWK '"\
5991"     {last_section=section; section=\$ 3};"\
5992"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5993"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5994"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5995"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5996"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5997"     \$ 0!~/External *\|/{next};"\
5998"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5999"     {if(hide[section]) next};"\
6000"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6001"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6002"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6003"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6004"     ' prfx=^$ac_symprfx"
6005  else
6006    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6007  fi
6008  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6009
6010  # Check to see that the pipe works correctly.
6011  pipe_works=no
6012
6013  rm -f conftest*
6014  cat > conftest.$ac_ext <<_LT_EOF
6015#ifdef __cplusplus
6016extern "C" {
6017#endif
6018char nm_test_var;
6019void nm_test_func(void);
6020void nm_test_func(void){}
6021#ifdef __cplusplus
6022}
6023#endif
6024int main(){nm_test_var='a';nm_test_func();return(0);}
6025_LT_EOF
6026
6027  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6028  (eval $ac_compile) 2>&5
6029  ac_status=$?
6030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6031  test $ac_status = 0; }; then
6032    # Now try to grab the symbols.
6033    nlist=conftest.nm
6034    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6035  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6036  ac_status=$?
6037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038  test $ac_status = 0; } && test -s "$nlist"; then
6039      # Try sorting and uniquifying the output.
6040      if sort "$nlist" | uniq > "$nlist"T; then
6041        mv -f "$nlist"T "$nlist"
6042      else
6043        rm -f "$nlist"T
6044      fi
6045
6046      # Make sure that we snagged all the symbols we need.
6047      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6048        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6049          cat <<_LT_EOF > conftest.$ac_ext
6050/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6051#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6052/* DATA imports from DLLs on WIN32 can't be const, because runtime
6053   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6054# define LT_DLSYM_CONST
6055#elif defined __osf__
6056/* This system does not cope well with relocations in const data.  */
6057# define LT_DLSYM_CONST
6058#else
6059# define LT_DLSYM_CONST const
6060#endif
6061
6062#ifdef __cplusplus
6063extern "C" {
6064#endif
6065
6066_LT_EOF
6067          # Now generate the symbol file.
6068          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6069
6070          cat <<_LT_EOF >> conftest.$ac_ext
6071
6072/* The mapping between symbol names and symbols.  */
6073LT_DLSYM_CONST struct {
6074  const char *name;
6075  void       *address;
6076}
6077lt__PROGRAM__LTX_preloaded_symbols[] =
6078{
6079  { "@PROGRAM@", (void *) 0 },
6080_LT_EOF
6081          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6082          cat <<\_LT_EOF >> conftest.$ac_ext
6083  {0, (void *) 0}
6084};
6085
6086/* This works around a problem in FreeBSD linker */
6087#ifdef FREEBSD_WORKAROUND
6088static const void *lt_preloaded_setup() {
6089  return lt__PROGRAM__LTX_preloaded_symbols;
6090}
6091#endif
6092
6093#ifdef __cplusplus
6094}
6095#endif
6096_LT_EOF
6097          # Now try linking the two files.
6098          mv conftest.$ac_objext conftstm.$ac_objext
6099          lt_globsym_save_LIBS=$LIBS
6100          lt_globsym_save_CFLAGS=$CFLAGS
6101          LIBS=conftstm.$ac_objext
6102          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6103          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6104  (eval $ac_link) 2>&5
6105  ac_status=$?
6106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6108            pipe_works=yes
6109          fi
6110          LIBS=$lt_globsym_save_LIBS
6111          CFLAGS=$lt_globsym_save_CFLAGS
6112        else
6113          echo "cannot find nm_test_func in $nlist" >&5
6114        fi
6115      else
6116        echo "cannot find nm_test_var in $nlist" >&5
6117      fi
6118    else
6119      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6120    fi
6121  else
6122    echo "$progname: failed program was:" >&5
6123    cat conftest.$ac_ext >&5
6124  fi
6125  rm -rf conftest* conftst*
6126
6127  # Do not use the global_symbol_pipe unless it works.
6128  if test yes = "$pipe_works"; then
6129    break
6130  else
6131    lt_cv_sys_global_symbol_pipe=
6132  fi
6133done
6134
6135fi
6136
6137if test -z "$lt_cv_sys_global_symbol_pipe"; then
6138  lt_cv_sys_global_symbol_to_cdecl=
6139fi
6140if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6142$as_echo "failed" >&6; }
6143else
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6145$as_echo "ok" >&6; }
6146fi
6147
6148# Response file support.
6149if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6150  nm_file_list_spec='@'
6151elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6152  nm_file_list_spec='@'
6153fi
6154
6155
6156
6157
6158
6159
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6192$as_echo_n "checking for sysroot... " >&6; }
6193
6194# Check whether --with-sysroot was given.
6195if test "${with_sysroot+set}" = set; then :
6196  withval=$with_sysroot;
6197else
6198  with_sysroot=no
6199fi
6200
6201
6202lt_sysroot=
6203case $with_sysroot in #(
6204 yes)
6205   if test yes = "$GCC"; then
6206     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6207   fi
6208   ;; #(
6209 /*)
6210   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6211   ;; #(
6212 no|'')
6213   ;; #(
6214 *)
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6216$as_echo "$with_sysroot" >&6; }
6217   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6218   ;;
6219esac
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6222$as_echo "${lt_sysroot:-no}" >&6; }
6223
6224
6225
6226
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6229$as_echo_n "checking for a working dd... " >&6; }
6230if ${ac_cv_path_lt_DD+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  printf 0123456789abcdef0123456789abcdef >conftest.i
6234cat conftest.i conftest.i >conftest2.i
6235: ${lt_DD:=$DD}
6236if test -z "$lt_DD"; then
6237  ac_path_lt_DD_found=false
6238  # Loop through the user's path and test for each of PROGNAME-LIST
6239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242  IFS=$as_save_IFS
6243  test -z "$as_dir" && as_dir=.
6244    for ac_prog in dd; do
6245    for ac_exec_ext in '' $ac_executable_extensions; do
6246      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6247      as_fn_executable_p "$ac_path_lt_DD" || continue
6248if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6249  cmp -s conftest.i conftest.out \
6250  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6251fi
6252      $ac_path_lt_DD_found && break 3
6253    done
6254  done
6255  done
6256IFS=$as_save_IFS
6257  if test -z "$ac_cv_path_lt_DD"; then
6258    :
6259  fi
6260else
6261  ac_cv_path_lt_DD=$lt_DD
6262fi
6263
6264rm -f conftest.i conftest2.i conftest.out
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6267$as_echo "$ac_cv_path_lt_DD" >&6; }
6268
6269
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6271$as_echo_n "checking how to truncate binary pipes... " >&6; }
6272if ${lt_cv_truncate_bin+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  printf 0123456789abcdef0123456789abcdef >conftest.i
6276cat conftest.i conftest.i >conftest2.i
6277lt_cv_truncate_bin=
6278if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6279  cmp -s conftest.i conftest.out \
6280  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6281fi
6282rm -f conftest.i conftest2.i conftest.out
6283test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6284fi
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6286$as_echo "$lt_cv_truncate_bin" >&6; }
6287
6288
6289
6290
6291
6292
6293
6294# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6295func_cc_basename ()
6296{
6297    for cc_temp in $*""; do
6298      case $cc_temp in
6299        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6300        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6301        \-*) ;;
6302        *) break;;
6303      esac
6304    done
6305    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6306}
6307
6308# Check whether --enable-libtool-lock was given.
6309if test "${enable_libtool_lock+set}" = set; then :
6310  enableval=$enable_libtool_lock;
6311fi
6312
6313test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6314
6315# Some flags need to be propagated to the compiler or linker for good
6316# libtool support.
6317case $host in
6318ia64-*-hpux*)
6319  # Find out what ABI is being produced by ac_compile, and set mode
6320  # options accordingly.
6321  echo 'int i;' > conftest.$ac_ext
6322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323  (eval $ac_compile) 2>&5
6324  ac_status=$?
6325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326  test $ac_status = 0; }; then
6327    case `/usr/bin/file conftest.$ac_objext` in
6328      *ELF-32*)
6329        HPUX_IA64_MODE=32
6330        ;;
6331      *ELF-64*)
6332        HPUX_IA64_MODE=64
6333        ;;
6334    esac
6335  fi
6336  rm -rf conftest*
6337  ;;
6338*-*-irix6*)
6339  # Find out what ABI is being produced by ac_compile, and set linker
6340  # options accordingly.
6341  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6343  (eval $ac_compile) 2>&5
6344  ac_status=$?
6345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346  test $ac_status = 0; }; then
6347    if test yes = "$lt_cv_prog_gnu_ld"; then
6348      case `/usr/bin/file conftest.$ac_objext` in
6349        *32-bit*)
6350          LD="${LD-ld} -melf32bsmip"
6351          ;;
6352        *N32*)
6353          LD="${LD-ld} -melf32bmipn32"
6354          ;;
6355        *64-bit*)
6356          LD="${LD-ld} -melf64bmip"
6357        ;;
6358      esac
6359    else
6360      case `/usr/bin/file conftest.$ac_objext` in
6361        *32-bit*)
6362          LD="${LD-ld} -32"
6363          ;;
6364        *N32*)
6365          LD="${LD-ld} -n32"
6366          ;;
6367        *64-bit*)
6368          LD="${LD-ld} -64"
6369          ;;
6370      esac
6371    fi
6372  fi
6373  rm -rf conftest*
6374  ;;
6375
6376mips64*-*linux*)
6377  # Find out what ABI is being produced by ac_compile, and set linker
6378  # options accordingly.
6379  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6380  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381  (eval $ac_compile) 2>&5
6382  ac_status=$?
6383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384  test $ac_status = 0; }; then
6385    emul=elf
6386    case `/usr/bin/file conftest.$ac_objext` in
6387      *32-bit*)
6388        emul="${emul}32"
6389        ;;
6390      *64-bit*)
6391        emul="${emul}64"
6392        ;;
6393    esac
6394    case `/usr/bin/file conftest.$ac_objext` in
6395      *MSB*)
6396        emul="${emul}btsmip"
6397        ;;
6398      *LSB*)
6399        emul="${emul}ltsmip"
6400        ;;
6401    esac
6402    case `/usr/bin/file conftest.$ac_objext` in
6403      *N32*)
6404        emul="${emul}n32"
6405        ;;
6406    esac
6407    LD="${LD-ld} -m $emul"
6408  fi
6409  rm -rf conftest*
6410  ;;
6411
6412x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6413s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6414  # Find out what ABI is being produced by ac_compile, and set linker
6415  # options accordingly.  Note that the listed cases only cover the
6416  # situations where additional linker options are needed (such as when
6417  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6418  # vice versa); the common cases where no linker options are needed do
6419  # not appear in the list.
6420  echo 'int i;' > conftest.$ac_ext
6421  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422  (eval $ac_compile) 2>&5
6423  ac_status=$?
6424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425  test $ac_status = 0; }; then
6426    case `/usr/bin/file conftest.o` in
6427      *32-bit*)
6428        case $host in
6429          x86_64-*kfreebsd*-gnu)
6430            LD="${LD-ld} -m elf_i386_fbsd"
6431            ;;
6432          x86_64-*linux*)
6433            case `/usr/bin/file conftest.o` in
6434              *x86-64*)
6435                LD="${LD-ld} -m elf32_x86_64"
6436                ;;
6437              *)
6438                LD="${LD-ld} -m elf_i386"
6439                ;;
6440            esac
6441            ;;
6442          powerpc64le-*linux*)
6443            LD="${LD-ld} -m elf32lppclinux"
6444            ;;
6445          powerpc64-*linux*)
6446            LD="${LD-ld} -m elf32ppclinux"
6447            ;;
6448          s390x-*linux*)
6449            LD="${LD-ld} -m elf_s390"
6450            ;;
6451          sparc64-*linux*)
6452            LD="${LD-ld} -m elf32_sparc"
6453            ;;
6454        esac
6455        ;;
6456      *64-bit*)
6457        case $host in
6458          x86_64-*kfreebsd*-gnu)
6459            LD="${LD-ld} -m elf_x86_64_fbsd"
6460            ;;
6461          x86_64-*linux*)
6462            LD="${LD-ld} -m elf_x86_64"
6463            ;;
6464          powerpcle-*linux*)
6465            LD="${LD-ld} -m elf64lppc"
6466            ;;
6467          powerpc-*linux*)
6468            LD="${LD-ld} -m elf64ppc"
6469            ;;
6470          s390*-*linux*|s390*-*tpf*)
6471            LD="${LD-ld} -m elf64_s390"
6472            ;;
6473          sparc*-*linux*)
6474            LD="${LD-ld} -m elf64_sparc"
6475            ;;
6476        esac
6477        ;;
6478    esac
6479  fi
6480  rm -rf conftest*
6481  ;;
6482
6483*-*-sco3.2v5*)
6484  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6485  SAVE_CFLAGS=$CFLAGS
6486  CFLAGS="$CFLAGS -belf"
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6488$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6489if ${lt_cv_cc_needs_belf+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  ac_ext=c
6493ac_cpp='$CPP $CPPFLAGS'
6494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6496ac_compiler_gnu=$ac_cv_c_compiler_gnu
6497
6498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h.  */
6500
6501int
6502main ()
6503{
6504
6505  ;
6506  return 0;
6507}
6508_ACEOF
6509if ac_fn_c_try_link "$LINENO"; then :
6510  lt_cv_cc_needs_belf=yes
6511else
6512  lt_cv_cc_needs_belf=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext \
6515    conftest$ac_exeext conftest.$ac_ext
6516     ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6524$as_echo "$lt_cv_cc_needs_belf" >&6; }
6525  if test yes != "$lt_cv_cc_needs_belf"; then
6526    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6527    CFLAGS=$SAVE_CFLAGS
6528  fi
6529  ;;
6530*-*solaris*)
6531  # Find out what ABI is being produced by ac_compile, and set linker
6532  # options accordingly.
6533  echo 'int i;' > conftest.$ac_ext
6534  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6535  (eval $ac_compile) 2>&5
6536  ac_status=$?
6537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538  test $ac_status = 0; }; then
6539    case `/usr/bin/file conftest.o` in
6540    *64-bit*)
6541      case $lt_cv_prog_gnu_ld in
6542      yes*)
6543        case $host in
6544        i?86-*-solaris*|x86_64-*-solaris*)
6545          LD="${LD-ld} -m elf_x86_64"
6546          ;;
6547        sparc*-*-solaris*)
6548          LD="${LD-ld} -m elf64_sparc"
6549          ;;
6550        esac
6551        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6552        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6553          LD=${LD-ld}_sol2
6554        fi
6555        ;;
6556      *)
6557        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6558          LD="${LD-ld} -64"
6559        fi
6560        ;;
6561      esac
6562      ;;
6563    esac
6564  fi
6565  rm -rf conftest*
6566  ;;
6567esac
6568
6569need_locks=$enable_libtool_lock
6570
6571if test -n "$ac_tool_prefix"; then
6572  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}mt; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$MANIFEST_TOOL"; then
6580  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6600if test -n "$MANIFEST_TOOL"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6602$as_echo "$MANIFEST_TOOL" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609fi
6610if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6611  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6612  # Extract the first word of "mt", so it can be a program name with args.
6613set dummy mt; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$ac_ct_MANIFEST_TOOL"; then
6620  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625  IFS=$as_save_IFS
6626  test -z "$as_dir" && as_dir=.
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6640if test -n "$ac_ct_MANIFEST_TOOL"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6642$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6649    MANIFEST_TOOL=":"
6650  else
6651    case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6658  fi
6659else
6660  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6661fi
6662
6663test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6665$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6666if ${lt_cv_path_mainfest_tool+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  lt_cv_path_mainfest_tool=no
6670  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6671  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6672  cat conftest.err >&5
6673  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6674    lt_cv_path_mainfest_tool=yes
6675  fi
6676  rm -f conftest*
6677fi
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6679$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6680if test yes != "$lt_cv_path_mainfest_tool"; then
6681  MANIFEST_TOOL=:
6682fi
6683
6684
6685
6686
6687
6688
6689  case $host_os in
6690    rhapsody* | darwin*)
6691    if test -n "$ac_tool_prefix"; then
6692  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if ${ac_cv_prog_DSYMUTIL+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  if test -n "$DSYMUTIL"; then
6700  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714  done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719DSYMUTIL=$ac_cv_prog_DSYMUTIL
6720if test -n "$DSYMUTIL"; then
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6722$as_echo "$DSYMUTIL" >&6; }
6723else
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_DSYMUTIL"; then
6731  ac_ct_DSYMUTIL=$DSYMUTIL
6732  # Extract the first word of "dsymutil", so it can be a program name with args.
6733set dummy dsymutil; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$ac_ct_DSYMUTIL"; then
6740  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754  done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6760if test -n "$ac_ct_DSYMUTIL"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6762$as_echo "$ac_ct_DSYMUTIL" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768  if test "x$ac_ct_DSYMUTIL" = x; then
6769    DSYMUTIL=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    DSYMUTIL=$ac_ct_DSYMUTIL
6778  fi
6779else
6780  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6781fi
6782
6783    if test -n "$ac_tool_prefix"; then
6784  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if ${ac_cv_prog_NMEDIT+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  if test -n "$NMEDIT"; then
6792  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797  IFS=$as_save_IFS
6798  test -z "$as_dir" && as_dir=.
6799    for ac_exec_ext in '' $ac_executable_extensions; do
6800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803    break 2
6804  fi
6805done
6806  done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811NMEDIT=$ac_cv_prog_NMEDIT
6812if test -n "$NMEDIT"; then
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6814$as_echo "$NMEDIT" >&6; }
6815else
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
6820
6821fi
6822if test -z "$ac_cv_prog_NMEDIT"; then
6823  ac_ct_NMEDIT=$NMEDIT
6824  # Extract the first word of "nmedit", so it can be a program name with args.
6825set dummy nmedit; ac_word=$2
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6829  $as_echo_n "(cached) " >&6
6830else
6831  if test -n "$ac_ct_NMEDIT"; then
6832  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837  IFS=$as_save_IFS
6838  test -z "$as_dir" && as_dir=.
6839    for ac_exec_ext in '' $ac_executable_extensions; do
6840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843    break 2
6844  fi
6845done
6846  done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6852if test -n "$ac_ct_NMEDIT"; then
6853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6854$as_echo "$ac_ct_NMEDIT" >&6; }
6855else
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860  if test "x$ac_ct_NMEDIT" = x; then
6861    NMEDIT=":"
6862  else
6863    case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867ac_tool_warned=yes ;;
6868esac
6869    NMEDIT=$ac_ct_NMEDIT
6870  fi
6871else
6872  NMEDIT="$ac_cv_prog_NMEDIT"
6873fi
6874
6875    if test -n "$ac_tool_prefix"; then
6876  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}lipo; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if ${ac_cv_prog_LIPO+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  if test -n "$LIPO"; then
6884  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889  IFS=$as_save_IFS
6890  test -z "$as_dir" && as_dir=.
6891    for ac_exec_ext in '' $ac_executable_extensions; do
6892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895    break 2
6896  fi
6897done
6898  done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903LIPO=$ac_cv_prog_LIPO
6904if test -n "$LIPO"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6906$as_echo "$LIPO" >&6; }
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912
6913fi
6914if test -z "$ac_cv_prog_LIPO"; then
6915  ac_ct_LIPO=$LIPO
6916  # Extract the first word of "lipo", so it can be a program name with args.
6917set dummy lipo; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  if test -n "$ac_ct_LIPO"; then
6924  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931    for ac_exec_ext in '' $ac_executable_extensions; do
6932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933    ac_cv_prog_ac_ct_LIPO="lipo"
6934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935    break 2
6936  fi
6937done
6938  done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6944if test -n "$ac_ct_LIPO"; then
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6946$as_echo "$ac_ct_LIPO" >&6; }
6947else
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952  if test "x$ac_ct_LIPO" = x; then
6953    LIPO=":"
6954  else
6955    case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961    LIPO=$ac_ct_LIPO
6962  fi
6963else
6964  LIPO="$ac_cv_prog_LIPO"
6965fi
6966
6967    if test -n "$ac_tool_prefix"; then
6968  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}otool; ac_word=$2
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if ${ac_cv_prog_OTOOL+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  if test -n "$OTOOL"; then
6976  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983    for ac_exec_ext in '' $ac_executable_extensions; do
6984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990  done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995OTOOL=$ac_cv_prog_OTOOL
6996if test -n "$OTOOL"; then
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6998$as_echo "$OTOOL" >&6; }
6999else
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004
7005fi
7006if test -z "$ac_cv_prog_OTOOL"; then
7007  ac_ct_OTOOL=$OTOOL
7008  # Extract the first word of "otool", so it can be a program name with args.
7009set dummy otool; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7013  $as_echo_n "(cached) " >&6
7014else
7015  if test -n "$ac_ct_OTOOL"; then
7016  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025    ac_cv_prog_ac_ct_OTOOL="otool"
7026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7036if test -n "$ac_ct_OTOOL"; then
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7038$as_echo "$ac_ct_OTOOL" >&6; }
7039else
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044  if test "x$ac_ct_OTOOL" = x; then
7045    OTOOL=":"
7046  else
7047    case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053    OTOOL=$ac_ct_OTOOL
7054  fi
7055else
7056  OTOOL="$ac_cv_prog_OTOOL"
7057fi
7058
7059    if test -n "$ac_tool_prefix"; then
7060  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}otool64; ac_word=$2
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
7064if ${ac_cv_prog_OTOOL64+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  if test -n "$OTOOL64"; then
7068  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075    for ac_exec_ext in '' $ac_executable_extensions; do
7076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082  done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087OTOOL64=$ac_cv_prog_OTOOL64
7088if test -n "$OTOOL64"; then
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7090$as_echo "$OTOOL64" >&6; }
7091else
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
7094fi
7095
7096
7097fi
7098if test -z "$ac_cv_prog_OTOOL64"; then
7099  ac_ct_OTOOL64=$OTOOL64
7100  # Extract the first word of "otool64", so it can be a program name with args.
7101set dummy otool64; ac_word=$2
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  if test -n "$ac_ct_OTOOL64"; then
7108  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117    ac_cv_prog_ac_ct_OTOOL64="otool64"
7118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7128if test -n "$ac_ct_OTOOL64"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7130$as_echo "$ac_ct_OTOOL64" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136  if test "x$ac_ct_OTOOL64" = x; then
7137    OTOOL64=":"
7138  else
7139    case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145    OTOOL64=$ac_ct_OTOOL64
7146  fi
7147else
7148  OTOOL64="$ac_cv_prog_OTOOL64"
7149fi
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7178$as_echo_n "checking for -single_module linker flag... " >&6; }
7179if ${lt_cv_apple_cc_single_mod+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  lt_cv_apple_cc_single_mod=no
7183      if test -z "$LT_MULTI_MODULE"; then
7184        # By default we will add the -single_module flag. You can override
7185        # by either setting the environment variable LT_MULTI_MODULE
7186        # non-empty at configure time, or by adding -multi_module to the
7187        # link flags.
7188        rm -rf libconftest.dylib*
7189        echo "int foo(void){return 1;}" > conftest.c
7190        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7191-dynamiclib -Wl,-single_module conftest.c" >&5
7192        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7193          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7194        _lt_result=$?
7195        # If there is a non-empty error log, and "single_module"
7196        # appears in it, assume the flag caused a linker warning
7197        if test -s conftest.err && $GREP single_module conftest.err; then
7198          cat conftest.err >&5
7199        # Otherwise, if the output was created with a 0 exit code from
7200        # the compiler, it worked.
7201        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7202          lt_cv_apple_cc_single_mod=yes
7203        else
7204          cat conftest.err >&5
7205        fi
7206        rm -rf libconftest.dylib*
7207        rm -f conftest.*
7208      fi
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7211$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7212
7213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7214$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7215if ${lt_cv_ld_exported_symbols_list+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  lt_cv_ld_exported_symbols_list=no
7219      save_LDFLAGS=$LDFLAGS
7220      echo "_main" > conftest.sym
7221      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7222      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224
7225int
7226main ()
7227{
7228
7229  ;
7230  return 0;
7231}
7232_ACEOF
7233if ac_fn_c_try_link "$LINENO"; then :
7234  lt_cv_ld_exported_symbols_list=yes
7235else
7236  lt_cv_ld_exported_symbols_list=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext \
7239    conftest$ac_exeext conftest.$ac_ext
7240        LDFLAGS=$save_LDFLAGS
7241
7242fi
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7244$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7245
7246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7247$as_echo_n "checking for -force_load linker flag... " >&6; }
7248if ${lt_cv_ld_force_load+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  lt_cv_ld_force_load=no
7252      cat > conftest.c << _LT_EOF
7253int forced_loaded() { return 2;}
7254_LT_EOF
7255      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7256      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7257      echo "$AR cru libconftest.a conftest.o" >&5
7258      $AR cru libconftest.a conftest.o 2>&5
7259      echo "$RANLIB libconftest.a" >&5
7260      $RANLIB libconftest.a 2>&5
7261      cat > conftest.c << _LT_EOF
7262int main() { return 0;}
7263_LT_EOF
7264      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7265      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7266      _lt_result=$?
7267      if test -s conftest.err && $GREP force_load conftest.err; then
7268        cat conftest.err >&5
7269      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7270        lt_cv_ld_force_load=yes
7271      else
7272        cat conftest.err >&5
7273      fi
7274        rm -f conftest.err libconftest.a conftest conftest.c
7275        rm -rf conftest.dSYM
7276
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7279$as_echo "$lt_cv_ld_force_load" >&6; }
7280    case $host_os in
7281    rhapsody* | darwin1.[012])
7282      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7283    darwin1.*)
7284      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7285    darwin*) # darwin 5.x on
7286      # if running on 10.5 or later, the deployment target defaults
7287      # to the OS version, if on x86, and 10.4, the deployment
7288      # target defaults to 10.4. Don't you love it?
7289      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7290        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7291          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7292        10.[012][,.]*)
7293          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7294        10.*)
7295          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7296      esac
7297    ;;
7298  esac
7299    if test yes = "$lt_cv_apple_cc_single_mod"; then
7300      _lt_dar_single_mod='$single_module'
7301    fi
7302    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7303      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7304    else
7305      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7306    fi
7307    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7308      _lt_dsymutil='~$DSYMUTIL $lib || :'
7309    else
7310      _lt_dsymutil=
7311    fi
7312    ;;
7313  esac
7314
7315# func_munge_path_list VARIABLE PATH
7316# -----------------------------------
7317# VARIABLE is name of variable containing _space_ separated list of
7318# directories to be munged by the contents of PATH, which is string
7319# having a format:
7320# "DIR[:DIR]:"
7321#       string "DIR[ DIR]" will be prepended to VARIABLE
7322# ":DIR[:DIR]"
7323#       string "DIR[ DIR]" will be appended to VARIABLE
7324# "DIRP[:DIRP]::[DIRA:]DIRA"
7325#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7326#       "DIRA[ DIRA]" will be appended to VARIABLE
7327# "DIR[:DIR]"
7328#       VARIABLE will be replaced by "DIR[ DIR]"
7329func_munge_path_list ()
7330{
7331    case x$2 in
7332    x)
7333        ;;
7334    *:)
7335        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7336        ;;
7337    x:*)
7338        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7339        ;;
7340    *::*)
7341        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7342        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7343        ;;
7344    *)
7345        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7346        ;;
7347    esac
7348}
7349
7350ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357# On Suns, sometimes $CPP names a directory.
7358if test -n "$CPP" && test -d "$CPP"; then
7359  CPP=
7360fi
7361if test -z "$CPP"; then
7362  if ${ac_cv_prog_CPP+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365      # Double quotes because CPP needs to be expanded
7366    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7367    do
7368      ac_preproc_ok=false
7369for ac_c_preproc_warn_flag in '' yes
7370do
7371  # Use a header file that comes with gcc, so configuring glibc
7372  # with a fresh cross-compiler works.
7373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374  # <limits.h> exists even on freestanding compilers.
7375  # On the NeXT, cc -E runs the code through the compiler's parser,
7376  # not just through cpp. "Syntax error" is here to catch this case.
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379#ifdef __STDC__
7380# include <limits.h>
7381#else
7382# include <assert.h>
7383#endif
7384                     Syntax error
7385_ACEOF
7386if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388else
7389  # Broken: fails on valid input.
7390continue
7391fi
7392rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394  # OK, works on sane cases.  Now check whether nonexistent headers
7395  # can be detected and how.
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398#include <ac_nonexistent.h>
7399_ACEOF
7400if ac_fn_c_try_cpp "$LINENO"; then :
7401  # Broken: success on invalid input.
7402continue
7403else
7404  # Passes both tests.
7405ac_preproc_ok=:
7406break
7407fi
7408rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410done
7411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412rm -f conftest.i conftest.err conftest.$ac_ext
7413if $ac_preproc_ok; then :
7414  break
7415fi
7416
7417    done
7418    ac_cv_prog_CPP=$CPP
7419
7420fi
7421  CPP=$ac_cv_prog_CPP
7422else
7423  ac_cv_prog_CPP=$CPP
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426$as_echo "$CPP" >&6; }
7427ac_preproc_ok=false
7428for ac_c_preproc_warn_flag in '' yes
7429do
7430  # Use a header file that comes with gcc, so configuring glibc
7431  # with a fresh cross-compiler works.
7432  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433  # <limits.h> exists even on freestanding compilers.
7434  # On the NeXT, cc -E runs the code through the compiler's parser,
7435  # not just through cpp. "Syntax error" is here to catch this case.
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438#ifdef __STDC__
7439# include <limits.h>
7440#else
7441# include <assert.h>
7442#endif
7443                     Syntax error
7444_ACEOF
7445if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447else
7448  # Broken: fails on valid input.
7449continue
7450fi
7451rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453  # OK, works on sane cases.  Now check whether nonexistent headers
7454  # can be detected and how.
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457#include <ac_nonexistent.h>
7458_ACEOF
7459if ac_fn_c_try_cpp "$LINENO"; then :
7460  # Broken: success on invalid input.
7461continue
7462else
7463  # Passes both tests.
7464ac_preproc_ok=:
7465break
7466fi
7467rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.i conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then :
7473
7474else
7475  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7478See \`config.log' for more details" "$LINENO" 5; }
7479fi
7480
7481ac_ext=c
7482ac_cpp='$CPP $CPPFLAGS'
7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489$as_echo_n "checking for ANSI C header files... " >&6; }
7490if ${ac_cv_header_stdc+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495#include <stdlib.h>
7496#include <stdarg.h>
7497#include <string.h>
7498#include <float.h>
7499
7500int
7501main ()
7502{
7503
7504  ;
7505  return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509  ac_cv_header_stdc=yes
7510else
7511  ac_cv_header_stdc=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514
7515if test $ac_cv_header_stdc = yes; then
7516  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519#include <string.h>
7520
7521_ACEOF
7522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523  $EGREP "memchr" >/dev/null 2>&1; then :
7524
7525else
7526  ac_cv_header_stdc=no
7527fi
7528rm -f conftest*
7529
7530fi
7531
7532if test $ac_cv_header_stdc = yes; then
7533  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536#include <stdlib.h>
7537
7538_ACEOF
7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540  $EGREP "free" >/dev/null 2>&1; then :
7541
7542else
7543  ac_cv_header_stdc=no
7544fi
7545rm -f conftest*
7546
7547fi
7548
7549if test $ac_cv_header_stdc = yes; then
7550  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551  if test "$cross_compiling" = yes; then :
7552  :
7553else
7554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h.  */
7556#include <ctype.h>
7557#include <stdlib.h>
7558#if ((' ' & 0x0FF) == 0x020)
7559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561#else
7562# define ISLOWER(c) \
7563                   (('a' <= (c) && (c) <= 'i') \
7564                     || ('j' <= (c) && (c) <= 'r') \
7565                     || ('s' <= (c) && (c) <= 'z'))
7566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567#endif
7568
7569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7570int
7571main ()
7572{
7573  int i;
7574  for (i = 0; i < 256; i++)
7575    if (XOR (islower (i), ISLOWER (i))
7576        || toupper (i) != TOUPPER (i))
7577      return 2;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_run "$LINENO"; then :
7582
7583else
7584  ac_cv_header_stdc=no
7585fi
7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587  conftest.$ac_objext conftest.beam conftest.$ac_ext
7588fi
7589
7590fi
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593$as_echo "$ac_cv_header_stdc" >&6; }
7594if test $ac_cv_header_stdc = yes; then
7595
7596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597
7598fi
7599
7600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602                  inttypes.h stdint.h unistd.h
7603do :
7604  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7606"
7607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7608  cat >>confdefs.h <<_ACEOF
7609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610_ACEOF
7611
7612fi
7613
7614done
7615
7616
7617for ac_header in dlfcn.h
7618do :
7619  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620"
7621if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7622  cat >>confdefs.h <<_ACEOF
7623#define HAVE_DLFCN_H 1
7624_ACEOF
7625
7626fi
7627
7628done
7629
7630
7631# (lh, 180302) Sadly, we can't use the obvious libtool macros
7632# (AC_{ENABLE,DISABLE}_{SHARED,STATIC}, nor parameters to LT_INIT,
7633# precisely because these macros record the default behaviour by defining
7634# a macro, _LT_ENABLE_{SHARED,STATIC}_DEFAULT. No shell code involved, hence
7635# any shell conditional has no effect. Either we trust libtool or we need
7636# something more inventive. The relevant libtool macros are in ltoptions.m4,
7637# _LT_ENABLE_SHARED and _LT_ENABLE_STATIC.
7638# That is, something like the following will not work:
7639# case $host_os in
7640#   cygwin* | mingw* | msys* ) AC_DISABLE_SHARED  ;;
7641#   *) AC_DISABLE_STATIC ;;
7642# esac
7643
7644# Create libtool.
7645
7646
7647
7648
7649
7650# Set options
7651# Check whether --enable-static was given.
7652if test "${enable_static+set}" = set; then :
7653  enableval=$enable_static; p=${PACKAGE-default}
7654    case $enableval in
7655    yes) enable_static=yes ;;
7656    no) enable_static=no ;;
7657    *)
7658     enable_static=no
7659      # Look at the argument we got.  We use all the common list separators.
7660      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7661      for pkg in $enableval; do
7662        IFS=$lt_save_ifs
7663        if test "X$pkg" = "X$p"; then
7664          enable_static=yes
7665        fi
7666      done
7667      IFS=$lt_save_ifs
7668      ;;
7669    esac
7670else
7671  enable_static=no
7672fi
7673
7674
7675
7676
7677
7678
7679
7680
7681# Check whether --with-pic was given.
7682if test "${with_pic+set}" = set; then :
7683  withval=$with_pic; lt_p=${PACKAGE-default}
7684    case $withval in
7685    yes|no) pic_mode=$withval ;;
7686    *)
7687      pic_mode=default
7688      # Look at the argument we got.  We use all the common list separators.
7689      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7690      for lt_pkg in $withval; do
7691        IFS=$lt_save_ifs
7692        if test "X$lt_pkg" = "X$lt_p"; then
7693          pic_mode=yes
7694        fi
7695      done
7696      IFS=$lt_save_ifs
7697      ;;
7698    esac
7699else
7700  pic_mode=yes
7701fi
7702
7703
7704
7705
7706
7707
7708enable_win32_dll=yes
7709
7710case $host in
7711*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7712  if test -n "$ac_tool_prefix"; then
7713  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7714set dummy ${ac_tool_prefix}as; ac_word=$2
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if ${ac_cv_prog_AS+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  if test -n "$AS"; then
7721  ac_cv_prog_AS="$AS" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_AS="${ac_tool_prefix}as"
7731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740AS=$ac_cv_prog_AS
7741if test -n "$AS"; then
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7743$as_echo "$AS" >&6; }
7744else
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
7747fi
7748
7749
7750fi
7751if test -z "$ac_cv_prog_AS"; then
7752  ac_ct_AS=$AS
7753  # Extract the first word of "as", so it can be a program name with args.
7754set dummy as; ac_word=$2
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
7757if ${ac_cv_prog_ac_ct_AS+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  if test -n "$ac_ct_AS"; then
7761  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  test -z "$as_dir" && as_dir=.
7768    for ac_exec_ext in '' $ac_executable_extensions; do
7769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770    ac_cv_prog_ac_ct_AS="as"
7771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772    break 2
7773  fi
7774done
7775  done
7776IFS=$as_save_IFS
7777
7778fi
7779fi
7780ac_ct_AS=$ac_cv_prog_ac_ct_AS
7781if test -n "$ac_ct_AS"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7783$as_echo "$ac_ct_AS" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789  if test "x$ac_ct_AS" = x; then
7790    AS="false"
7791  else
7792    case $cross_compiling:$ac_tool_warned in
7793yes:)
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796ac_tool_warned=yes ;;
7797esac
7798    AS=$ac_ct_AS
7799  fi
7800else
7801  AS="$ac_cv_prog_AS"
7802fi
7803
7804  if test -n "$ac_tool_prefix"; then
7805  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7806set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if ${ac_cv_prog_DLLTOOL+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  if test -n "$DLLTOOL"; then
7813  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827  done
7828IFS=$as_save_IFS
7829
7830fi
7831fi
7832DLLTOOL=$ac_cv_prog_DLLTOOL
7833if test -n "$DLLTOOL"; then
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7835$as_echo "$DLLTOOL" >&6; }
7836else
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
7839fi
7840
7841
7842fi
7843if test -z "$ac_cv_prog_DLLTOOL"; then
7844  ac_ct_DLLTOOL=$DLLTOOL
7845  # Extract the first word of "dlltool", so it can be a program name with args.
7846set dummy dlltool; ac_word=$2
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848$as_echo_n "checking for $ac_word... " >&6; }
7849if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  if test -n "$ac_ct_DLLTOOL"; then
7853  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7854else
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858  IFS=$as_save_IFS
7859  test -z "$as_dir" && as_dir=.
7860    for ac_exec_ext in '' $ac_executable_extensions; do
7861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864    break 2
7865  fi
7866done
7867  done
7868IFS=$as_save_IFS
7869
7870fi
7871fi
7872ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7873if test -n "$ac_ct_DLLTOOL"; then
7874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7875$as_echo "$ac_ct_DLLTOOL" >&6; }
7876else
7877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879fi
7880
7881  if test "x$ac_ct_DLLTOOL" = x; then
7882    DLLTOOL="false"
7883  else
7884    case $cross_compiling:$ac_tool_warned in
7885yes:)
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888ac_tool_warned=yes ;;
7889esac
7890    DLLTOOL=$ac_ct_DLLTOOL
7891  fi
7892else
7893  DLLTOOL="$ac_cv_prog_DLLTOOL"
7894fi
7895
7896  if test -n "$ac_tool_prefix"; then
7897  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7898set dummy ${ac_tool_prefix}objdump; ac_word=$2
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900$as_echo_n "checking for $ac_word... " >&6; }
7901if ${ac_cv_prog_OBJDUMP+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  if test -n "$OBJDUMP"; then
7905  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910  IFS=$as_save_IFS
7911  test -z "$as_dir" && as_dir=.
7912    for ac_exec_ext in '' $ac_executable_extensions; do
7913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916    break 2
7917  fi
7918done
7919  done
7920IFS=$as_save_IFS
7921
7922fi
7923fi
7924OBJDUMP=$ac_cv_prog_OBJDUMP
7925if test -n "$OBJDUMP"; then
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7927$as_echo "$OBJDUMP" >&6; }
7928else
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
7934fi
7935if test -z "$ac_cv_prog_OBJDUMP"; then
7936  ac_ct_OBJDUMP=$OBJDUMP
7937  # Extract the first word of "objdump", so it can be a program name with args.
7938set dummy objdump; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  if test -n "$ac_ct_OBJDUMP"; then
7945  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950  IFS=$as_save_IFS
7951  test -z "$as_dir" && as_dir=.
7952    for ac_exec_ext in '' $ac_executable_extensions; do
7953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959  done
7960IFS=$as_save_IFS
7961
7962fi
7963fi
7964ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7965if test -n "$ac_ct_OBJDUMP"; then
7966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7967$as_echo "$ac_ct_OBJDUMP" >&6; }
7968else
7969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
7972
7973  if test "x$ac_ct_OBJDUMP" = x; then
7974    OBJDUMP="false"
7975  else
7976    case $cross_compiling:$ac_tool_warned in
7977yes:)
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980ac_tool_warned=yes ;;
7981esac
7982    OBJDUMP=$ac_ct_OBJDUMP
7983  fi
7984else
7985  OBJDUMP="$ac_cv_prog_OBJDUMP"
7986fi
7987
7988  ;;
7989esac
7990
7991test -z "$AS" && AS=as
7992
7993
7994
7995
7996
7997test -z "$DLLTOOL" && DLLTOOL=dlltool
7998
7999
8000
8001
8002
8003test -z "$OBJDUMP" && OBJDUMP=objdump
8004
8005
8006
8007
8008
8009
8010
8011        enable_dlopen=no
8012
8013
8014
8015            # Check whether --enable-shared was given.
8016if test "${enable_shared+set}" = set; then :
8017  enableval=$enable_shared; p=${PACKAGE-default}
8018    case $enableval in
8019    yes) enable_shared=yes ;;
8020    no) enable_shared=no ;;
8021    *)
8022      enable_shared=no
8023      # Look at the argument we got.  We use all the common list separators.
8024      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8025      for pkg in $enableval; do
8026        IFS=$lt_save_ifs
8027        if test "X$pkg" = "X$p"; then
8028          enable_shared=yes
8029        fi
8030      done
8031      IFS=$lt_save_ifs
8032      ;;
8033    esac
8034else
8035  enable_shared=yes
8036fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048  # Check whether --enable-fast-install was given.
8049if test "${enable_fast_install+set}" = set; then :
8050  enableval=$enable_fast_install; p=${PACKAGE-default}
8051    case $enableval in
8052    yes) enable_fast_install=yes ;;
8053    no) enable_fast_install=no ;;
8054    *)
8055      enable_fast_install=no
8056      # Look at the argument we got.  We use all the common list separators.
8057      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8058      for pkg in $enableval; do
8059        IFS=$lt_save_ifs
8060        if test "X$pkg" = "X$p"; then
8061          enable_fast_install=yes
8062        fi
8063      done
8064      IFS=$lt_save_ifs
8065      ;;
8066    esac
8067else
8068  enable_fast_install=yes
8069fi
8070
8071
8072
8073
8074
8075
8076
8077
8078  shared_archive_member_spec=
8079case $host,$enable_shared in
8080power*-*-aix[5-9]*,yes)
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8082$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8083
8084# Check whether --with-aix-soname was given.
8085if test "${with_aix_soname+set}" = set; then :
8086  withval=$with_aix_soname; case $withval in
8087    aix|svr4|both)
8088      ;;
8089    *)
8090      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8091      ;;
8092    esac
8093    lt_cv_with_aix_soname=$with_aix_soname
8094else
8095  if ${lt_cv_with_aix_soname+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  lt_cv_with_aix_soname=aix
8099fi
8100
8101    with_aix_soname=$lt_cv_with_aix_soname
8102fi
8103
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8105$as_echo "$with_aix_soname" >&6; }
8106  if test aix != "$with_aix_soname"; then
8107    # For the AIX way of multilib, we name the shared archive member
8108    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8109    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8110    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8111    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8112    if test 64 = "${OBJECT_MODE-32}"; then
8113      shared_archive_member_spec=shr_64
8114    else
8115      shared_archive_member_spec=shr
8116    fi
8117  fi
8118  ;;
8119*)
8120  with_aix_soname=aix
8121  ;;
8122esac
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133# This can be used to rebuild libtool when needed
8134LIBTOOL_DEPS=$ltmain
8135
8136# Always use our own libtool.
8137LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183if test -n "${ZSH_VERSION+set}"; then
8184   setopt NO_GLOB_SUBST
8185fi
8186
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188$as_echo_n "checking for objdir... " >&6; }
8189if ${lt_cv_objdir+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  rm -f .libs 2>/dev/null
8193mkdir .libs 2>/dev/null
8194if test -d .libs; then
8195  lt_cv_objdir=.libs
8196else
8197  # MS-DOS does not allow filenames that begin with a dot.
8198  lt_cv_objdir=_libs
8199fi
8200rmdir .libs 2>/dev/null
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203$as_echo "$lt_cv_objdir" >&6; }
8204objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210cat >>confdefs.h <<_ACEOF
8211#define LT_OBJDIR "$lt_cv_objdir/"
8212_ACEOF
8213
8214
8215
8216
8217case $host_os in
8218aix3*)
8219  # AIX sometimes has problems with the GCC collect2 program.  For some
8220  # reason, if we set the COLLECT_NAMES environment variable, the problems
8221  # vanish in a puff of smoke.
8222  if test set != "${COLLECT_NAMES+set}"; then
8223    COLLECT_NAMES=
8224    export COLLECT_NAMES
8225  fi
8226  ;;
8227esac
8228
8229# Global variables:
8230ofile=libtool
8231can_build_shared=yes
8232
8233# All known linkers require a '.a' archive for static linking (except MSVC,
8234# which needs '.lib').
8235libext=a
8236
8237with_gnu_ld=$lt_cv_prog_gnu_ld
8238
8239old_CC=$CC
8240old_CFLAGS=$CFLAGS
8241
8242# Set sane defaults for various variables
8243test -z "$CC" && CC=cc
8244test -z "$LTCC" && LTCC=$CC
8245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246test -z "$LD" && LD=ld
8247test -z "$ac_objext" && ac_objext=o
8248
8249func_cc_basename $compiler
8250cc_basename=$func_cc_basename_result
8251
8252
8253# Only perform the check for file, if the check method requires it
8254test -z "$MAGIC_CMD" && MAGIC_CMD=file
8255case $deplibs_check_method in
8256file_magic*)
8257  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8259$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8260if ${lt_cv_path_MAGIC_CMD+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  case $MAGIC_CMD in
8264[\\/*] |  ?:[\\/]*)
8265  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8266  ;;
8267*)
8268  lt_save_MAGIC_CMD=$MAGIC_CMD
8269  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8270  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8271  for ac_dir in $ac_dummy; do
8272    IFS=$lt_save_ifs
8273    test -z "$ac_dir" && ac_dir=.
8274    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8275      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8276      if test -n "$file_magic_test_file"; then
8277        case $deplibs_check_method in
8278        "file_magic "*)
8279          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8280          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8281          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8282            $EGREP "$file_magic_regex" > /dev/null; then
8283            :
8284          else
8285            cat <<_LT_EOF 1>&2
8286
8287*** Warning: the command libtool uses to detect shared libraries,
8288*** $file_magic_cmd, produces output that libtool cannot recognize.
8289*** The result is that libtool may fail to recognize shared libraries
8290*** as such.  This will affect the creation of libtool libraries that
8291*** depend on shared libraries, but programs linked with such libtool
8292*** libraries will work regardless of this problem.  Nevertheless, you
8293*** may want to report the problem to your system manager and/or to
8294*** bug-libtool@gnu.org
8295
8296_LT_EOF
8297          fi ;;
8298        esac
8299      fi
8300      break
8301    fi
8302  done
8303  IFS=$lt_save_ifs
8304  MAGIC_CMD=$lt_save_MAGIC_CMD
8305  ;;
8306esac
8307fi
8308
8309MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8310if test -n "$MAGIC_CMD"; then
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8312$as_echo "$MAGIC_CMD" >&6; }
8313else
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315$as_echo "no" >&6; }
8316fi
8317
8318
8319
8320
8321
8322if test -z "$lt_cv_path_MAGIC_CMD"; then
8323  if test -n "$ac_tool_prefix"; then
8324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8325$as_echo_n "checking for file... " >&6; }
8326if ${lt_cv_path_MAGIC_CMD+:} false; then :
8327  $as_echo_n "(cached) " >&6
8328else
8329  case $MAGIC_CMD in
8330[\\/*] |  ?:[\\/]*)
8331  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8332  ;;
8333*)
8334  lt_save_MAGIC_CMD=$MAGIC_CMD
8335  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8336  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8337  for ac_dir in $ac_dummy; do
8338    IFS=$lt_save_ifs
8339    test -z "$ac_dir" && ac_dir=.
8340    if test -f "$ac_dir/file"; then
8341      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8342      if test -n "$file_magic_test_file"; then
8343        case $deplibs_check_method in
8344        "file_magic "*)
8345          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8346          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8347          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8348            $EGREP "$file_magic_regex" > /dev/null; then
8349            :
8350          else
8351            cat <<_LT_EOF 1>&2
8352
8353*** Warning: the command libtool uses to detect shared libraries,
8354*** $file_magic_cmd, produces output that libtool cannot recognize.
8355*** The result is that libtool may fail to recognize shared libraries
8356*** as such.  This will affect the creation of libtool libraries that
8357*** depend on shared libraries, but programs linked with such libtool
8358*** libraries will work regardless of this problem.  Nevertheless, you
8359*** may want to report the problem to your system manager and/or to
8360*** bug-libtool@gnu.org
8361
8362_LT_EOF
8363          fi ;;
8364        esac
8365      fi
8366      break
8367    fi
8368  done
8369  IFS=$lt_save_ifs
8370  MAGIC_CMD=$lt_save_MAGIC_CMD
8371  ;;
8372esac
8373fi
8374
8375MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8376if test -n "$MAGIC_CMD"; then
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8378$as_echo "$MAGIC_CMD" >&6; }
8379else
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381$as_echo "no" >&6; }
8382fi
8383
8384
8385  else
8386    MAGIC_CMD=:
8387  fi
8388fi
8389
8390  fi
8391  ;;
8392esac
8393
8394# Use C for the default configuration in the libtool script
8395
8396lt_save_CC=$CC
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404# Source file extension for C test sources.
8405ac_ext=c
8406
8407# Object file extension for compiled C test sources.
8408objext=o
8409objext=$objext
8410
8411# Code to be used in simple compile tests
8412lt_simple_compile_test_code="int some_variable = 0;"
8413
8414# Code to be used in simple link tests
8415lt_simple_link_test_code='int main(){return(0);}'
8416
8417
8418
8419
8420
8421
8422
8423# If no C compiler was specified, use CC.
8424LTCC=${LTCC-"$CC"}
8425
8426# If no C compiler flags were specified, use CFLAGS.
8427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8428
8429# Allow CC to be a program name with arguments.
8430compiler=$CC
8431
8432# Save the default compiler, since it gets overwritten when the other
8433# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8434compiler_DEFAULT=$CC
8435
8436# save warnings/boilerplate of simple test code
8437ac_outfile=conftest.$ac_objext
8438echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8440_lt_compiler_boilerplate=`cat conftest.err`
8441$RM conftest*
8442
8443ac_outfile=conftest.$ac_objext
8444echo "$lt_simple_link_test_code" >conftest.$ac_ext
8445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8446_lt_linker_boilerplate=`cat conftest.err`
8447$RM -r conftest*
8448
8449
8450if test -n "$compiler"; then
8451
8452lt_prog_compiler_no_builtin_flag=
8453
8454if test yes = "$GCC"; then
8455  case $cc_basename in
8456  nvcc*)
8457    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8458  *)
8459    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8460  esac
8461
8462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8463$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8464if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  lt_cv_prog_compiler_rtti_exceptions=no
8468   ac_outfile=conftest.$ac_objext
8469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8470   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8471   # Insert the option either (1) after the last *FLAGS variable, or
8472   # (2) before a word containing "conftest.", or (3) at the end.
8473   # Note that $ac_compile itself does not contain backslashes and begins
8474   # with a dollar sign (not a hyphen), so the echo should work correctly.
8475   # The option is referenced via a variable to avoid confusing sed.
8476   lt_compile=`echo "$ac_compile" | $SED \
8477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8479   -e 's:$: $lt_compiler_flag:'`
8480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8481   (eval "$lt_compile" 2>conftest.err)
8482   ac_status=$?
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   if (exit $ac_status) && test -s "$ac_outfile"; then
8486     # The compiler can only warn and ignore the option if not recognized
8487     # So say no if there are warnings other than the usual output.
8488     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8489     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8491       lt_cv_prog_compiler_rtti_exceptions=yes
8492     fi
8493   fi
8494   $RM conftest*
8495
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8498$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8499
8500if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8501    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8502else
8503    :
8504fi
8505
8506fi
8507
8508
8509
8510
8511
8512
8513  lt_prog_compiler_wl=
8514lt_prog_compiler_pic=
8515lt_prog_compiler_static=
8516
8517
8518  if test yes = "$GCC"; then
8519    lt_prog_compiler_wl='-Wl,'
8520    lt_prog_compiler_static='-static'
8521
8522    case $host_os in
8523      aix*)
8524      # All AIX code is PIC.
8525      if test ia64 = "$host_cpu"; then
8526        # AIX 5 now supports IA64 processor
8527        lt_prog_compiler_static='-Bstatic'
8528      fi
8529      lt_prog_compiler_pic='-fPIC'
8530      ;;
8531
8532    amigaos*)
8533      case $host_cpu in
8534      powerpc)
8535            # see comment about AmigaOS4 .so support
8536            lt_prog_compiler_pic='-fPIC'
8537        ;;
8538      m68k)
8539            # FIXME: we need at least 68020 code to build shared libraries, but
8540            # adding the '-m68020' flag to GCC prevents building anything better,
8541            # like '-m68040'.
8542            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8543        ;;
8544      esac
8545      ;;
8546
8547    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8548      # PIC is the default for these OSes.
8549      ;;
8550
8551    mingw* | cygwin* | pw32* | os2* | cegcc*)
8552      # This hack is so that the source file can tell whether it is being
8553      # built for inclusion in a dll (and should export symbols for example).
8554      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8555      # (--disable-auto-import) libraries
8556      lt_prog_compiler_pic='-DDLL_EXPORT'
8557      case $host_os in
8558      os2*)
8559        lt_prog_compiler_static='$wl-static'
8560        ;;
8561      esac
8562      ;;
8563
8564    darwin* | rhapsody*)
8565      # PIC is the default on this platform
8566      # Common symbols not allowed in MH_DYLIB files
8567      lt_prog_compiler_pic='-fno-common'
8568      ;;
8569
8570    haiku*)
8571      # PIC is the default for Haiku.
8572      # The "-static" flag exists, but is broken.
8573      lt_prog_compiler_static=
8574      ;;
8575
8576    hpux*)
8577      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8578      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8579      # sets the default TLS model and affects inlining.
8580      case $host_cpu in
8581      hppa*64*)
8582        # +Z the default
8583        ;;
8584      *)
8585        lt_prog_compiler_pic='-fPIC'
8586        ;;
8587      esac
8588      ;;
8589
8590    interix[3-9]*)
8591      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8592      # Instead, we relocate shared libraries at runtime.
8593      ;;
8594
8595    msdosdjgpp*)
8596      # Just because we use GCC doesn't mean we suddenly get shared libraries
8597      # on systems that don't support them.
8598      lt_prog_compiler_can_build_shared=no
8599      enable_shared=no
8600      ;;
8601
8602    *nto* | *qnx*)
8603      # QNX uses GNU C++, but need to define -shared option too, otherwise
8604      # it will coredump.
8605      lt_prog_compiler_pic='-fPIC -shared'
8606      ;;
8607
8608    sysv4*MP*)
8609      if test -d /usr/nec; then
8610        lt_prog_compiler_pic=-Kconform_pic
8611      fi
8612      ;;
8613
8614    *)
8615      lt_prog_compiler_pic='-fPIC'
8616      ;;
8617    esac
8618
8619    case $cc_basename in
8620    nvcc*) # Cuda Compiler Driver 2.2
8621      lt_prog_compiler_wl='-Xlinker '
8622      if test -n "$lt_prog_compiler_pic"; then
8623        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8624      fi
8625      ;;
8626    esac
8627  else
8628    # PORTME Check for flag to pass linker flags through the system compiler.
8629    case $host_os in
8630    aix*)
8631      lt_prog_compiler_wl='-Wl,'
8632      if test ia64 = "$host_cpu"; then
8633        # AIX 5 now supports IA64 processor
8634        lt_prog_compiler_static='-Bstatic'
8635      else
8636        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8637      fi
8638      ;;
8639
8640    darwin* | rhapsody*)
8641      # PIC is the default on this platform
8642      # Common symbols not allowed in MH_DYLIB files
8643      lt_prog_compiler_pic='-fno-common'
8644      case $cc_basename in
8645      nagfor*)
8646        # NAG Fortran compiler
8647        lt_prog_compiler_wl='-Wl,-Wl,,'
8648        lt_prog_compiler_pic='-PIC'
8649        lt_prog_compiler_static='-Bstatic'
8650        ;;
8651      esac
8652      ;;
8653
8654    mingw* | cygwin* | pw32* | os2* | cegcc*)
8655      # This hack is so that the source file can tell whether it is being
8656      # built for inclusion in a dll (and should export symbols for example).
8657      lt_prog_compiler_pic='-DDLL_EXPORT'
8658      case $host_os in
8659      os2*)
8660        lt_prog_compiler_static='$wl-static'
8661        ;;
8662      esac
8663      ;;
8664
8665    hpux9* | hpux10* | hpux11*)
8666      lt_prog_compiler_wl='-Wl,'
8667      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8668      # not for PA HP-UX.
8669      case $host_cpu in
8670      hppa*64*|ia64*)
8671        # +Z the default
8672        ;;
8673      *)
8674        lt_prog_compiler_pic='+Z'
8675        ;;
8676      esac
8677      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8678      lt_prog_compiler_static='$wl-a ${wl}archive'
8679      ;;
8680
8681    irix5* | irix6* | nonstopux*)
8682      lt_prog_compiler_wl='-Wl,'
8683      # PIC (with -KPIC) is the default.
8684      lt_prog_compiler_static='-non_shared'
8685      ;;
8686
8687    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8688      case $cc_basename in
8689      # old Intel for x86_64, which still supported -KPIC.
8690      ecc*)
8691        lt_prog_compiler_wl='-Wl,'
8692        lt_prog_compiler_pic='-KPIC'
8693        lt_prog_compiler_static='-static'
8694        ;;
8695      # icc used to be incompatible with GCC.
8696      # ICC 10 doesn't accept -KPIC any more.
8697      icc* | ifort*)
8698        lt_prog_compiler_wl='-Wl,'
8699        lt_prog_compiler_pic='-fPIC'
8700        lt_prog_compiler_static='-static'
8701        ;;
8702      # Lahey Fortran 8.1.
8703      lf95*)
8704        lt_prog_compiler_wl='-Wl,'
8705        lt_prog_compiler_pic='--shared'
8706        lt_prog_compiler_static='--static'
8707        ;;
8708      nagfor*)
8709        # NAG Fortran compiler
8710        lt_prog_compiler_wl='-Wl,-Wl,,'
8711        lt_prog_compiler_pic='-PIC'
8712        lt_prog_compiler_static='-Bstatic'
8713        ;;
8714      tcc*)
8715        # Fabrice Bellard et al's Tiny C Compiler
8716        lt_prog_compiler_wl='-Wl,'
8717        lt_prog_compiler_pic='-fPIC'
8718        lt_prog_compiler_static='-static'
8719        ;;
8720      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8721        # Portland Group compilers (*not* the Pentium gcc compiler,
8722        # which looks to be a dead project)
8723        lt_prog_compiler_wl='-Wl,'
8724        lt_prog_compiler_pic='-fpic'
8725        lt_prog_compiler_static='-Bstatic'
8726        ;;
8727      ccc*)
8728        lt_prog_compiler_wl='-Wl,'
8729        # All Alpha code is PIC.
8730        lt_prog_compiler_static='-non_shared'
8731        ;;
8732      xl* | bgxl* | bgf* | mpixl*)
8733        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8734        lt_prog_compiler_wl='-Wl,'
8735        lt_prog_compiler_pic='-qpic'
8736        lt_prog_compiler_static='-qstaticlink'
8737        ;;
8738      *)
8739        case `$CC -V 2>&1 | sed 5q` in
8740        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8741          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8742          lt_prog_compiler_pic='-KPIC'
8743          lt_prog_compiler_static='-Bstatic'
8744          lt_prog_compiler_wl=''
8745          ;;
8746        *Sun\ F* | *Sun*Fortran*)
8747          lt_prog_compiler_pic='-KPIC'
8748          lt_prog_compiler_static='-Bstatic'
8749          lt_prog_compiler_wl='-Qoption ld '
8750          ;;
8751        *Sun\ C*)
8752          # Sun C 5.9
8753          lt_prog_compiler_pic='-KPIC'
8754          lt_prog_compiler_static='-Bstatic'
8755          lt_prog_compiler_wl='-Wl,'
8756          ;;
8757        *Intel*\ [CF]*Compiler*)
8758          lt_prog_compiler_wl='-Wl,'
8759          lt_prog_compiler_pic='-fPIC'
8760          lt_prog_compiler_static='-static'
8761          ;;
8762        *Portland\ Group*)
8763          lt_prog_compiler_wl='-Wl,'
8764          lt_prog_compiler_pic='-fpic'
8765          lt_prog_compiler_static='-Bstatic'
8766          ;;
8767        esac
8768        ;;
8769      esac
8770      ;;
8771
8772    newsos6)
8773      lt_prog_compiler_pic='-KPIC'
8774      lt_prog_compiler_static='-Bstatic'
8775      ;;
8776
8777    *nto* | *qnx*)
8778      # QNX uses GNU C++, but need to define -shared option too, otherwise
8779      # it will coredump.
8780      lt_prog_compiler_pic='-fPIC -shared'
8781      ;;
8782
8783    osf3* | osf4* | osf5*)
8784      lt_prog_compiler_wl='-Wl,'
8785      # All OSF/1 code is PIC.
8786      lt_prog_compiler_static='-non_shared'
8787      ;;
8788
8789    rdos*)
8790      lt_prog_compiler_static='-non_shared'
8791      ;;
8792
8793    solaris*)
8794      lt_prog_compiler_pic='-KPIC'
8795      lt_prog_compiler_static='-Bstatic'
8796      case $cc_basename in
8797      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8798        lt_prog_compiler_wl='-Qoption ld ';;
8799      *)
8800        lt_prog_compiler_wl='-Wl,';;
8801      esac
8802      ;;
8803
8804    sunos4*)
8805      lt_prog_compiler_wl='-Qoption ld '
8806      lt_prog_compiler_pic='-PIC'
8807      lt_prog_compiler_static='-Bstatic'
8808      ;;
8809
8810    sysv4 | sysv4.2uw2* | sysv4.3*)
8811      lt_prog_compiler_wl='-Wl,'
8812      lt_prog_compiler_pic='-KPIC'
8813      lt_prog_compiler_static='-Bstatic'
8814      ;;
8815
8816    sysv4*MP*)
8817      if test -d /usr/nec; then
8818        lt_prog_compiler_pic='-Kconform_pic'
8819        lt_prog_compiler_static='-Bstatic'
8820      fi
8821      ;;
8822
8823    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8824      lt_prog_compiler_wl='-Wl,'
8825      lt_prog_compiler_pic='-KPIC'
8826      lt_prog_compiler_static='-Bstatic'
8827      ;;
8828
8829    unicos*)
8830      lt_prog_compiler_wl='-Wl,'
8831      lt_prog_compiler_can_build_shared=no
8832      ;;
8833
8834    uts4*)
8835      lt_prog_compiler_pic='-pic'
8836      lt_prog_compiler_static='-Bstatic'
8837      ;;
8838
8839    *)
8840      lt_prog_compiler_can_build_shared=no
8841      ;;
8842    esac
8843  fi
8844
8845case $host_os in
8846  # For platforms that do not support PIC, -DPIC is meaningless:
8847  *djgpp*)
8848    lt_prog_compiler_pic=
8849    ;;
8850  *)
8851    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8852    ;;
8853esac
8854
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8857if ${lt_cv_prog_compiler_pic+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8863$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8864lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8865
8866#
8867# Check to make sure the PIC flag actually works.
8868#
8869if test -n "$lt_prog_compiler_pic"; then
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8872if ${lt_cv_prog_compiler_pic_works+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  lt_cv_prog_compiler_pic_works=no
8876   ac_outfile=conftest.$ac_objext
8877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8879   # Insert the option either (1) after the last *FLAGS variable, or
8880   # (2) before a word containing "conftest.", or (3) at the end.
8881   # Note that $ac_compile itself does not contain backslashes and begins
8882   # with a dollar sign (not a hyphen), so the echo should work correctly.
8883   # The option is referenced via a variable to avoid confusing sed.
8884   lt_compile=`echo "$ac_compile" | $SED \
8885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887   -e 's:$: $lt_compiler_flag:'`
8888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889   (eval "$lt_compile" 2>conftest.err)
8890   ac_status=$?
8891   cat conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   if (exit $ac_status) && test -s "$ac_outfile"; then
8894     # The compiler can only warn and ignore the option if not recognized
8895     # So say no if there are warnings other than the usual output.
8896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8899       lt_cv_prog_compiler_pic_works=yes
8900     fi
8901   fi
8902   $RM conftest*
8903
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8906$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8907
8908if test yes = "$lt_cv_prog_compiler_pic_works"; then
8909    case $lt_prog_compiler_pic in
8910     "" | " "*) ;;
8911     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8912     esac
8913else
8914    lt_prog_compiler_pic=
8915     lt_prog_compiler_can_build_shared=no
8916fi
8917
8918fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930#
8931# Check to make sure the static flag actually works.
8932#
8933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936if ${lt_cv_prog_compiler_static_works+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  lt_cv_prog_compiler_static_works=no
8940   save_LDFLAGS=$LDFLAGS
8941   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944     # The linker can only warn and ignore the option if not recognized
8945     # So say no if there are warnings
8946     if test -s conftest.err; then
8947       # Append any errors to the config.log.
8948       cat conftest.err 1>&5
8949       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951       if diff conftest.exp conftest.er2 >/dev/null; then
8952         lt_cv_prog_compiler_static_works=yes
8953       fi
8954     else
8955       lt_cv_prog_compiler_static_works=yes
8956     fi
8957   fi
8958   $RM -r conftest*
8959   LDFLAGS=$save_LDFLAGS
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8964
8965if test yes = "$lt_cv_prog_compiler_static_works"; then
8966    :
8967else
8968    lt_prog_compiler_static=
8969fi
8970
8971
8972
8973
8974
8975
8976
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979if ${lt_cv_prog_compiler_c_o+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  lt_cv_prog_compiler_c_o=no
8983   $RM -r conftest 2>/dev/null
8984   mkdir conftest
8985   cd conftest
8986   mkdir out
8987   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989   lt_compiler_flag="-o out/conftest2.$ac_objext"
8990   # Insert the option either (1) after the last *FLAGS variable, or
8991   # (2) before a word containing "conftest.", or (3) at the end.
8992   # Note that $ac_compile itself does not contain backslashes and begins
8993   # with a dollar sign (not a hyphen), so the echo should work correctly.
8994   lt_compile=`echo "$ac_compile" | $SED \
8995   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997   -e 's:$: $lt_compiler_flag:'`
8998   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999   (eval "$lt_compile" 2>out/conftest.err)
9000   ac_status=$?
9001   cat out/conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004   then
9005     # The compiler can only warn and ignore the option if not recognized
9006     # So say no if there are warnings
9007     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010       lt_cv_prog_compiler_c_o=yes
9011     fi
9012   fi
9013   chmod u+w . 2>&5
9014   $RM conftest*
9015   # SGI C++ compiler will create directory out/ii_files/ for
9016   # template instantiation
9017   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018   $RM out/* && rmdir out
9019   cd ..
9020   $RM -r conftest
9021   $RM conftest*
9022
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030
9031
9032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034if ${lt_cv_prog_compiler_c_o+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  lt_cv_prog_compiler_c_o=no
9038   $RM -r conftest 2>/dev/null
9039   mkdir conftest
9040   cd conftest
9041   mkdir out
9042   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043
9044   lt_compiler_flag="-o out/conftest2.$ac_objext"
9045   # Insert the option either (1) after the last *FLAGS variable, or
9046   # (2) before a word containing "conftest.", or (3) at the end.
9047   # Note that $ac_compile itself does not contain backslashes and begins
9048   # with a dollar sign (not a hyphen), so the echo should work correctly.
9049   lt_compile=`echo "$ac_compile" | $SED \
9050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052   -e 's:$: $lt_compiler_flag:'`
9053   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054   (eval "$lt_compile" 2>out/conftest.err)
9055   ac_status=$?
9056   cat out/conftest.err >&5
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059   then
9060     # The compiler can only warn and ignore the option if not recognized
9061     # So say no if there are warnings
9062     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065       lt_cv_prog_compiler_c_o=yes
9066     fi
9067   fi
9068   chmod u+w . 2>&5
9069   $RM conftest*
9070   # SGI C++ compiler will create directory out/ii_files/ for
9071   # template instantiation
9072   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073   $RM out/* && rmdir out
9074   cd ..
9075   $RM -r conftest
9076   $RM conftest*
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081
9082
9083
9084
9085hard_links=nottested
9086if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9087  # do not overwrite the value of need_locks provided by the user
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089$as_echo_n "checking if we can lock with hard links... " >&6; }
9090  hard_links=yes
9091  $RM conftest*
9092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093  touch conftest.a
9094  ln conftest.a conftest.b 2>&5 || hard_links=no
9095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097$as_echo "$hard_links" >&6; }
9098  if test no = "$hard_links"; then
9099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9100$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9101    need_locks=warn
9102  fi
9103else
9104  need_locks=no
9105fi
9106
9107
9108
9109
9110
9111
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9114
9115  runpath_var=
9116  allow_undefined_flag=
9117  always_export_symbols=no
9118  archive_cmds=
9119  archive_expsym_cmds=
9120  compiler_needs_object=no
9121  enable_shared_with_static_runtimes=no
9122  export_dynamic_flag_spec=
9123  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124  hardcode_automatic=no
9125  hardcode_direct=no
9126  hardcode_direct_absolute=no
9127  hardcode_libdir_flag_spec=
9128  hardcode_libdir_separator=
9129  hardcode_minus_L=no
9130  hardcode_shlibpath_var=unsupported
9131  inherit_rpath=no
9132  link_all_deplibs=unknown
9133  module_cmds=
9134  module_expsym_cmds=
9135  old_archive_from_new_cmds=
9136  old_archive_from_expsyms_cmds=
9137  thread_safe_flag_spec=
9138  whole_archive_flag_spec=
9139  # include_expsyms should be a list of space-separated symbols to be *always*
9140  # included in the symbol list
9141  include_expsyms=
9142  # exclude_expsyms can be an extended regexp of symbols to exclude
9143  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9144  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9145  # as well as any symbol that contains 'd'.
9146  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9147  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9148  # platforms (ab)use it in PIC code, but their linkers get confused if
9149  # the symbol is explicitly referenced.  Since portable code cannot
9150  # rely on this symbol name, it's probably fine to never include it in
9151  # preloaded symbol tables.
9152  # Exclude shared library initialization/finalization symbols.
9153  extract_expsyms_cmds=
9154
9155  case $host_os in
9156  cygwin* | mingw* | pw32* | cegcc*)
9157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9158    # When not using gcc, we currently assume that we are using
9159    # Microsoft Visual C++.
9160    if test yes != "$GCC"; then
9161      with_gnu_ld=no
9162    fi
9163    ;;
9164  interix*)
9165    # we just hope/assume this is gcc and not c89 (= MSVC++)
9166    with_gnu_ld=yes
9167    ;;
9168  openbsd* | bitrig*)
9169    with_gnu_ld=no
9170    ;;
9171  esac
9172
9173  ld_shlibs=yes
9174
9175  # On some targets, GNU ld is compatible enough with the native linker
9176  # that we're better off using the native interface for both.
9177  lt_use_gnu_ld_interface=no
9178  if test yes = "$with_gnu_ld"; then
9179    case $host_os in
9180      aix*)
9181        # The AIX port of GNU ld has always aspired to compatibility
9182        # with the native linker.  However, as the warning in the GNU ld
9183        # block says, versions before 2.19.5* couldn't really create working
9184        # shared libraries, regardless of the interface used.
9185        case `$LD -v 2>&1` in
9186          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9187          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9188          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9189          *)
9190            lt_use_gnu_ld_interface=yes
9191            ;;
9192        esac
9193        ;;
9194      *)
9195        lt_use_gnu_ld_interface=yes
9196        ;;
9197    esac
9198  fi
9199
9200  if test yes = "$lt_use_gnu_ld_interface"; then
9201    # If archive_cmds runs LD, not CC, wlarc should be empty
9202    wlarc='$wl'
9203
9204    # Set some defaults for GNU ld with shared library support. These
9205    # are reset later if shared libraries are not supported. Putting them
9206    # here allows them to be overridden if necessary.
9207    runpath_var=LD_RUN_PATH
9208    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9209    export_dynamic_flag_spec='$wl--export-dynamic'
9210    # ancient GNU ld didn't support --whole-archive et. al.
9211    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9212      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9213    else
9214      whole_archive_flag_spec=
9215    fi
9216    supports_anon_versioning=no
9217    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9218      *GNU\ gold*) supports_anon_versioning=yes ;;
9219      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9220      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9221      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9222      *\ 2.11.*) ;; # other 2.11 versions
9223      *) supports_anon_versioning=yes ;;
9224    esac
9225
9226    # See if GNU ld supports shared libraries.
9227    case $host_os in
9228    aix[3-9]*)
9229      # On AIX/PPC, the GNU linker is very broken
9230      if test ia64 != "$host_cpu"; then
9231        ld_shlibs=no
9232        cat <<_LT_EOF 1>&2
9233
9234*** Warning: the GNU linker, at least up to release 2.19, is reported
9235*** to be unable to reliably create shared libraries on AIX.
9236*** Therefore, libtool is disabling shared libraries support.  If you
9237*** really care for shared libraries, you may want to install binutils
9238*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9239*** You will then need to restart the configuration process.
9240
9241_LT_EOF
9242      fi
9243      ;;
9244
9245    amigaos*)
9246      case $host_cpu in
9247      powerpc)
9248            # see comment about AmigaOS4 .so support
9249            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9250            archive_expsym_cmds=''
9251        ;;
9252      m68k)
9253            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)'
9254            hardcode_libdir_flag_spec='-L$libdir'
9255            hardcode_minus_L=yes
9256        ;;
9257      esac
9258      ;;
9259
9260    beos*)
9261      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262        allow_undefined_flag=unsupported
9263        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9264        # support --undefined.  This deserves some investigation.  FIXME
9265        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9266      else
9267        ld_shlibs=no
9268      fi
9269      ;;
9270
9271    cygwin* | mingw* | pw32* | cegcc*)
9272      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9273      # as there is no search path for DLLs.
9274      hardcode_libdir_flag_spec='-L$libdir'
9275      export_dynamic_flag_spec='$wl--export-all-symbols'
9276      allow_undefined_flag=unsupported
9277      always_export_symbols=no
9278      enable_shared_with_static_runtimes=yes
9279      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'
9280      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9281
9282      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284        # If the export-symbols file already is a .def file, use it as
9285        # is; otherwise, prepend EXPORTS...
9286        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9287          cp $export_symbols $output_objdir/$soname.def;
9288        else
9289          echo EXPORTS > $output_objdir/$soname.def;
9290          cat $export_symbols >> $output_objdir/$soname.def;
9291        fi~
9292        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293      else
9294        ld_shlibs=no
9295      fi
9296      ;;
9297
9298    haiku*)
9299      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9300      link_all_deplibs=yes
9301      ;;
9302
9303    os2*)
9304      hardcode_libdir_flag_spec='-L$libdir'
9305      hardcode_minus_L=yes
9306      allow_undefined_flag=unsupported
9307      shrext_cmds=.dll
9308      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9309        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9310        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9311        $ECHO EXPORTS >> $output_objdir/$libname.def~
9312        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9313        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9314        emximp -o $lib $output_objdir/$libname.def'
9315      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9316        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9317        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9318        $ECHO EXPORTS >> $output_objdir/$libname.def~
9319        prefix_cmds="$SED"~
9320        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9321          prefix_cmds="$prefix_cmds -e 1d";
9322        fi~
9323        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9324        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9325        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9326        emximp -o $lib $output_objdir/$libname.def'
9327      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9328      enable_shared_with_static_runtimes=yes
9329      ;;
9330
9331    interix[3-9]*)
9332      hardcode_direct=no
9333      hardcode_shlibpath_var=no
9334      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9335      export_dynamic_flag_spec='$wl-E'
9336      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9337      # Instead, shared libraries are loaded at an image base (0x10000000 by
9338      # default) and relocated if they conflict, which is a slow very memory
9339      # consuming and fragmenting process.  To avoid this, we pick a random,
9340      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9341      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9342      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9343      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'
9344      ;;
9345
9346    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9347      tmp_diet=no
9348      if test linux-dietlibc = "$host_os"; then
9349        case $cc_basename in
9350          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9351        esac
9352      fi
9353      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9354         && test no = "$tmp_diet"
9355      then
9356        tmp_addflag=' $pic_flag'
9357        tmp_sharedflag='-shared'
9358        case $cc_basename,$host_cpu in
9359        pgcc*)                          # Portland Group C compiler
9360          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'
9361          tmp_addflag=' $pic_flag'
9362          ;;
9363        pgf77* | pgf90* | pgf95* | pgfortran*)
9364                                        # Portland Group f77 and f90 compilers
9365          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'
9366          tmp_addflag=' $pic_flag -Mnomain' ;;
9367        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9368          tmp_addflag=' -i_dynamic' ;;
9369        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9370          tmp_addflag=' -i_dynamic -nofor_main' ;;
9371        ifc* | ifort*)                  # Intel Fortran compiler
9372          tmp_addflag=' -nofor_main' ;;
9373        lf95*)                          # Lahey Fortran 8.1
9374          whole_archive_flag_spec=
9375          tmp_sharedflag='--shared' ;;
9376        nagfor*)                        # NAGFOR 5.3
9377          tmp_sharedflag='-Wl,-shared' ;;
9378        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9379          tmp_sharedflag='-qmkshrobj'
9380          tmp_addflag= ;;
9381        nvcc*)  # Cuda Compiler Driver 2.2
9382          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'
9383          compiler_needs_object=yes
9384          ;;
9385        esac
9386        case `$CC -V 2>&1 | sed 5q` in
9387        *Sun\ C*)                       # Sun C 5.9
9388          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'
9389          compiler_needs_object=yes
9390          tmp_sharedflag='-G' ;;
9391        *Sun\ F*)                       # Sun Fortran 8.3
9392          tmp_sharedflag='-G' ;;
9393        esac
9394        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9395
9396        if test yes = "$supports_anon_versioning"; then
9397          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9398            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9399            echo "local: *; };" >> $output_objdir/$libname.ver~
9400            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9401        fi
9402
9403        case $cc_basename in
9404        tcc*)
9405          export_dynamic_flag_spec='-rdynamic'
9406          ;;
9407        xlf* | bgf* | bgxlf* | mpixlf*)
9408          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9409          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9410          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9411          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9412          if test yes = "$supports_anon_versioning"; then
9413            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415              echo "local: *; };" >> $output_objdir/$libname.ver~
9416              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9417          fi
9418          ;;
9419        esac
9420      else
9421        ld_shlibs=no
9422      fi
9423      ;;
9424
9425    netbsd*)
9426      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9428        wlarc=
9429      else
9430        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9431        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9432      fi
9433      ;;
9434
9435    solaris*)
9436      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9437        ld_shlibs=no
9438        cat <<_LT_EOF 1>&2
9439
9440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441*** create shared libraries on Solaris systems.  Therefore, libtool
9442*** is disabling shared libraries support.  We urge you to upgrade GNU
9443*** binutils to release 2.9.1 or newer.  Another option is to modify
9444*** your PATH or compiler configuration so that the native linker is
9445*** used, and then restart.
9446
9447_LT_EOF
9448      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9450        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9451      else
9452        ld_shlibs=no
9453      fi
9454      ;;
9455
9456    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457      case `$LD -v 2>&1` in
9458        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9459        ld_shlibs=no
9460        cat <<_LT_EOF 1>&2
9461
9462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9463*** reliably create shared libraries on SCO systems.  Therefore, libtool
9464*** is disabling shared libraries support.  We urge you to upgrade GNU
9465*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9466*** your PATH or compiler configuration so that the native linker is
9467*** used, and then restart.
9468
9469_LT_EOF
9470        ;;
9471        *)
9472          # For security reasons, it is highly recommended that you always
9473          # use absolute paths for naming shared libraries, and exclude the
9474          # DT_RUNPATH tag from executables and libraries.  But doing so
9475          # requires that you compile everything twice, which is a pain.
9476          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9478            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9479            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9480          else
9481            ld_shlibs=no
9482          fi
9483        ;;
9484      esac
9485      ;;
9486
9487    sunos4*)
9488      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489      wlarc=
9490      hardcode_direct=yes
9491      hardcode_shlibpath_var=no
9492      ;;
9493
9494    *)
9495      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9497        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9498      else
9499        ld_shlibs=no
9500      fi
9501      ;;
9502    esac
9503
9504    if test no = "$ld_shlibs"; then
9505      runpath_var=
9506      hardcode_libdir_flag_spec=
9507      export_dynamic_flag_spec=
9508      whole_archive_flag_spec=
9509    fi
9510  else
9511    # PORTME fill in a description of your system's linker (not GNU ld)
9512    case $host_os in
9513    aix3*)
9514      allow_undefined_flag=unsupported
9515      always_export_symbols=yes
9516      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'
9517      # Note: this linker hardcodes the directories in LIBPATH if there
9518      # are no directories specified by -L.
9519      hardcode_minus_L=yes
9520      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9521        # Neither direct hardcoding nor static linking is supported with a
9522        # broken collect2.
9523        hardcode_direct=unsupported
9524      fi
9525      ;;
9526
9527    aix[4-9]*)
9528      if test ia64 = "$host_cpu"; then
9529        # On IA64, the linker does run time linking by default, so we don't
9530        # have to do anything special.
9531        aix_use_runtimelinking=no
9532        exp_sym_flag='-Bexport'
9533        no_entry_flag=
9534      else
9535        # If we're using GNU nm, then we don't want the "-C" option.
9536        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9537        # Without the "-l" option, or with the "-B" option, AIX nm treats
9538        # weak defined symbols like other global defined symbols, whereas
9539        # GNU nm marks them as "W".
9540        # While the 'weak' keyword is ignored in the Export File, we need
9541        # it in the Import File for the 'aix-soname' feature, so we have
9542        # to replace the "-B" option with "-P" for AIX nm.
9543        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9544          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'
9545        else
9546          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'
9547        fi
9548        aix_use_runtimelinking=no
9549
9550        # Test if we are trying to use run time linking or normal
9551        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9552        # have runtime linking enabled, and use it for executables.
9553        # For shared libraries, we enable/disable runtime linking
9554        # depending on the kind of the shared library created -
9555        # when "with_aix_soname,aix_use_runtimelinking" is:
9556        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9557        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9558        #            lib.a           static archive
9559        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9560        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9561        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9562        #            lib.a(lib.so.V) shared, rtl:no
9563        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9564        #            lib.a           static archive
9565        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9566          for ld_flag in $LDFLAGS; do
9567          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9568            aix_use_runtimelinking=yes
9569            break
9570          fi
9571          done
9572          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9573            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9574            # so we don't have lib.a shared libs to link our executables.
9575            # We have to force runtime linking in this case.
9576            aix_use_runtimelinking=yes
9577            LDFLAGS="$LDFLAGS -Wl,-brtl"
9578          fi
9579          ;;
9580        esac
9581
9582        exp_sym_flag='-bexport'
9583        no_entry_flag='-bnoentry'
9584      fi
9585
9586      # When large executables or shared objects are built, AIX ld can
9587      # have problems creating the table of contents.  If linking a library
9588      # or program results in "error TOC overflow" add -mminimal-toc to
9589      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9590      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9591
9592      archive_cmds=''
9593      hardcode_direct=yes
9594      hardcode_direct_absolute=yes
9595      hardcode_libdir_separator=':'
9596      link_all_deplibs=yes
9597      file_list_spec='$wl-f,'
9598      case $with_aix_soname,$aix_use_runtimelinking in
9599      aix,*) ;; # traditional, no import file
9600      svr4,* | *,yes) # use import file
9601        # The Import File defines what to hardcode.
9602        hardcode_direct=no
9603        hardcode_direct_absolute=no
9604        ;;
9605      esac
9606
9607      if test yes = "$GCC"; then
9608        case $host_os in aix4.[012]|aix4.[012].*)
9609        # We only want to do this on AIX 4.2 and lower, the check
9610        # below for broken collect2 doesn't work under 4.3+
9611          collect2name=`$CC -print-prog-name=collect2`
9612          if test -f "$collect2name" &&
9613           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9614          then
9615          # We have reworked collect2
9616          :
9617          else
9618          # We have old collect2
9619          hardcode_direct=unsupported
9620          # It fails to find uninstalled libraries when the uninstalled
9621          # path is not listed in the libpath.  Setting hardcode_minus_L
9622          # to unsupported forces relinking
9623          hardcode_minus_L=yes
9624          hardcode_libdir_flag_spec='-L$libdir'
9625          hardcode_libdir_separator=
9626          fi
9627          ;;
9628        esac
9629        shared_flag='-shared'
9630        if test yes = "$aix_use_runtimelinking"; then
9631          shared_flag="$shared_flag "'$wl-G'
9632        fi
9633        # Need to ensure runtime linking is disabled for the traditional
9634        # shared library, or the linker may eventually find shared libraries
9635        # /with/ Import File - we do not want to mix them.
9636        shared_flag_aix='-shared'
9637        shared_flag_svr4='-shared $wl-G'
9638      else
9639        # not using gcc
9640        if test ia64 = "$host_cpu"; then
9641        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9642        # chokes on -Wl,-G. The following line is correct:
9643          shared_flag='-G'
9644        else
9645          if test yes = "$aix_use_runtimelinking"; then
9646            shared_flag='$wl-G'
9647          else
9648            shared_flag='$wl-bM:SRE'
9649          fi
9650          shared_flag_aix='$wl-bM:SRE'
9651          shared_flag_svr4='$wl-G'
9652        fi
9653      fi
9654
9655      export_dynamic_flag_spec='$wl-bexpall'
9656      # It seems that -bexpall does not export symbols beginning with
9657      # underscore (_), so it is better to generate a list of symbols to export.
9658      always_export_symbols=yes
9659      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9660        # Warning - without using the other runtime loading flags (-brtl),
9661        # -berok will link without error, but may produce a broken library.
9662        allow_undefined_flag='-berok'
9663        # Determine the default libpath from the value encoded in an
9664        # empty executable.
9665        if test set = "${lt_cv_aix_libpath+set}"; then
9666  aix_libpath=$lt_cv_aix_libpath
9667else
9668  if ${lt_cv_aix_libpath_+:} false; then :
9669  $as_echo_n "(cached) " >&6
9670else
9671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h.  */
9673
9674int
9675main ()
9676{
9677
9678  ;
9679  return 0;
9680}
9681_ACEOF
9682if ac_fn_c_try_link "$LINENO"; then :
9683
9684  lt_aix_libpath_sed='
9685      /Import File Strings/,/^$/ {
9686          /^0/ {
9687              s/^0  *\([^ ]*\) *$/\1/
9688              p
9689          }
9690      }'
9691  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9692  # Check for a 64-bit object if we didn't find anything.
9693  if test -z "$lt_cv_aix_libpath_"; then
9694    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9695  fi
9696fi
9697rm -f core conftest.err conftest.$ac_objext \
9698    conftest$ac_exeext conftest.$ac_ext
9699  if test -z "$lt_cv_aix_libpath_"; then
9700    lt_cv_aix_libpath_=/usr/lib:/lib
9701  fi
9702
9703fi
9704
9705  aix_libpath=$lt_cv_aix_libpath_
9706fi
9707
9708        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9709        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
9710      else
9711        if test ia64 = "$host_cpu"; then
9712          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9713          allow_undefined_flag="-z nodefs"
9714          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"
9715        else
9716         # Determine the default libpath from the value encoded in an
9717         # empty executable.
9718         if test set = "${lt_cv_aix_libpath+set}"; then
9719  aix_libpath=$lt_cv_aix_libpath
9720else
9721  if ${lt_cv_aix_libpath_+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726
9727int
9728main ()
9729{
9730
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736
9737  lt_aix_libpath_sed='
9738      /Import File Strings/,/^$/ {
9739          /^0/ {
9740              s/^0  *\([^ ]*\) *$/\1/
9741              p
9742          }
9743      }'
9744  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745  # Check for a 64-bit object if we didn't find anything.
9746  if test -z "$lt_cv_aix_libpath_"; then
9747    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748  fi
9749fi
9750rm -f core conftest.err conftest.$ac_objext \
9751    conftest$ac_exeext conftest.$ac_ext
9752  if test -z "$lt_cv_aix_libpath_"; then
9753    lt_cv_aix_libpath_=/usr/lib:/lib
9754  fi
9755
9756fi
9757
9758  aix_libpath=$lt_cv_aix_libpath_
9759fi
9760
9761         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9762          # Warning - without using the other run time loading flags,
9763          # -berok will link without error, but may produce a broken library.
9764          no_undefined_flag=' $wl-bernotok'
9765          allow_undefined_flag=' $wl-berok'
9766          if test yes = "$with_gnu_ld"; then
9767            # We only use this code for GNU lds that support --whole-archive.
9768            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9769          else
9770            # Exported symbols can be pulled into shared objects from archives
9771            whole_archive_flag_spec='$convenience'
9772          fi
9773          archive_cmds_need_lc=yes
9774          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9775          # -brtl affects multiple linker settings, -berok does not and is overridden later
9776          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9777          if test svr4 != "$with_aix_soname"; then
9778            # This is similar to how AIX traditionally builds its shared libraries.
9779            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'
9780          fi
9781          if test aix != "$with_aix_soname"; then
9782            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'
9783          else
9784            # used by -dlpreopen to get the symbols
9785            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9786          fi
9787          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9788        fi
9789      fi
9790      ;;
9791
9792    amigaos*)
9793      case $host_cpu in
9794      powerpc)
9795            # see comment about AmigaOS4 .so support
9796            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9797            archive_expsym_cmds=''
9798        ;;
9799      m68k)
9800            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)'
9801            hardcode_libdir_flag_spec='-L$libdir'
9802            hardcode_minus_L=yes
9803        ;;
9804      esac
9805      ;;
9806
9807    bsdi[45]*)
9808      export_dynamic_flag_spec=-rdynamic
9809      ;;
9810
9811    cygwin* | mingw* | pw32* | cegcc*)
9812      # When not using gcc, we currently assume that we are using
9813      # Microsoft Visual C++.
9814      # hardcode_libdir_flag_spec is actually meaningless, as there is
9815      # no search path for DLLs.
9816      case $cc_basename in
9817      cl*)
9818        # Native MSVC
9819        hardcode_libdir_flag_spec=' '
9820        allow_undefined_flag=unsupported
9821        always_export_symbols=yes
9822        file_list_spec='@'
9823        # Tell ltmain to make .lib files, not .a files.
9824        libext=lib
9825        # Tell ltmain to make .dll files, not .so files.
9826        shrext_cmds=.dll
9827        # FIXME: Setting linknames here is a bad hack.
9828        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9829        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9830            cp "$export_symbols" "$output_objdir/$soname.def";
9831            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9832          else
9833            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9834          fi~
9835          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9836          linknames='
9837        # The linker will not automatically build a static lib if we build a DLL.
9838        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9839        enable_shared_with_static_runtimes=yes
9840        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9841        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9842        # Don't use ranlib
9843        old_postinstall_cmds='chmod 644 $oldlib'
9844        postlink_cmds='lt_outputfile="@OUTPUT@"~
9845          lt_tool_outputfile="@TOOL_OUTPUT@"~
9846          case $lt_outputfile in
9847            *.exe|*.EXE) ;;
9848            *)
9849              lt_outputfile=$lt_outputfile.exe
9850              lt_tool_outputfile=$lt_tool_outputfile.exe
9851              ;;
9852          esac~
9853          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9854            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9855            $RM "$lt_outputfile.manifest";
9856          fi'
9857        ;;
9858      *)
9859        # Assume MSVC wrapper
9860        hardcode_libdir_flag_spec=' '
9861        allow_undefined_flag=unsupported
9862        # Tell ltmain to make .lib files, not .a files.
9863        libext=lib
9864        # Tell ltmain to make .dll files, not .so files.
9865        shrext_cmds=.dll
9866        # FIXME: Setting linknames here is a bad hack.
9867        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9868        # The linker will automatically build a .lib file if we build a DLL.
9869        old_archive_from_new_cmds='true'
9870        # FIXME: Should let the user specify the lib program.
9871        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9872        enable_shared_with_static_runtimes=yes
9873        ;;
9874      esac
9875      ;;
9876
9877    darwin* | rhapsody*)
9878
9879
9880  archive_cmds_need_lc=no
9881  hardcode_direct=no
9882  hardcode_automatic=yes
9883  hardcode_shlibpath_var=unsupported
9884  if test yes = "$lt_cv_ld_force_load"; then
9885    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\"`'
9886
9887  else
9888    whole_archive_flag_spec=''
9889  fi
9890  link_all_deplibs=yes
9891  allow_undefined_flag=$_lt_dar_allow_undefined
9892  case $cc_basename in
9893     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9894     *) _lt_dar_can_shared=$GCC ;;
9895  esac
9896  if test yes = "$_lt_dar_can_shared"; then
9897    output_verbose_link_cmd=func_echo_all
9898    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9899    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9900    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"
9901    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"
9902
9903  else
9904  ld_shlibs=no
9905  fi
9906
9907      ;;
9908
9909    dgux*)
9910      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911      hardcode_libdir_flag_spec='-L$libdir'
9912      hardcode_shlibpath_var=no
9913      ;;
9914
9915    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9916    # support.  Future versions do this automatically, but an explicit c++rt0.o
9917    # does not break anything, and helps significantly (at the cost of a little
9918    # extra space).
9919    freebsd2.2*)
9920      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9921      hardcode_libdir_flag_spec='-R$libdir'
9922      hardcode_direct=yes
9923      hardcode_shlibpath_var=no
9924      ;;
9925
9926    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9927    freebsd2.*)
9928      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9929      hardcode_direct=yes
9930      hardcode_minus_L=yes
9931      hardcode_shlibpath_var=no
9932      ;;
9933
9934    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9935    freebsd* | dragonfly*)
9936      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937      hardcode_libdir_flag_spec='-R$libdir'
9938      hardcode_direct=yes
9939      hardcode_shlibpath_var=no
9940      ;;
9941
9942    hpux9*)
9943      if test yes = "$GCC"; then
9944        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'
9945      else
9946        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'
9947      fi
9948      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9949      hardcode_libdir_separator=:
9950      hardcode_direct=yes
9951
9952      # hardcode_minus_L: Not really in the search PATH,
9953      # but as the default location of the library.
9954      hardcode_minus_L=yes
9955      export_dynamic_flag_spec='$wl-E'
9956      ;;
9957
9958    hpux10*)
9959      if test yes,no = "$GCC,$with_gnu_ld"; then
9960        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961      else
9962        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963      fi
9964      if test no = "$with_gnu_ld"; then
9965        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9966        hardcode_libdir_separator=:
9967        hardcode_direct=yes
9968        hardcode_direct_absolute=yes
9969        export_dynamic_flag_spec='$wl-E'
9970        # hardcode_minus_L: Not really in the search PATH,
9971        # but as the default location of the library.
9972        hardcode_minus_L=yes
9973      fi
9974      ;;
9975
9976    hpux11*)
9977      if test yes,no = "$GCC,$with_gnu_ld"; then
9978        case $host_cpu in
9979        hppa*64*)
9980          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9981          ;;
9982        ia64*)
9983          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9984          ;;
9985        *)
9986          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987          ;;
9988        esac
9989      else
9990        case $host_cpu in
9991        hppa*64*)
9992          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9993          ;;
9994        ia64*)
9995          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9996          ;;
9997        *)
9998
9999          # Older versions of the 11.00 compiler do not understand -b yet
10000          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10001          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10002$as_echo_n "checking if $CC understands -b... " >&6; }
10003if ${lt_cv_prog_compiler__b+:} false; then :
10004  $as_echo_n "(cached) " >&6
10005else
10006  lt_cv_prog_compiler__b=no
10007   save_LDFLAGS=$LDFLAGS
10008   LDFLAGS="$LDFLAGS -b"
10009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10011     # The linker can only warn and ignore the option if not recognized
10012     # So say no if there are warnings
10013     if test -s conftest.err; then
10014       # Append any errors to the config.log.
10015       cat conftest.err 1>&5
10016       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10018       if diff conftest.exp conftest.er2 >/dev/null; then
10019         lt_cv_prog_compiler__b=yes
10020       fi
10021     else
10022       lt_cv_prog_compiler__b=yes
10023     fi
10024   fi
10025   $RM -r conftest*
10026   LDFLAGS=$save_LDFLAGS
10027
10028fi
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10030$as_echo "$lt_cv_prog_compiler__b" >&6; }
10031
10032if test yes = "$lt_cv_prog_compiler__b"; then
10033    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034else
10035    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10036fi
10037
10038          ;;
10039        esac
10040      fi
10041      if test no = "$with_gnu_ld"; then
10042        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10043        hardcode_libdir_separator=:
10044
10045        case $host_cpu in
10046        hppa*64*|ia64*)
10047          hardcode_direct=no
10048          hardcode_shlibpath_var=no
10049          ;;
10050        *)
10051          hardcode_direct=yes
10052          hardcode_direct_absolute=yes
10053          export_dynamic_flag_spec='$wl-E'
10054
10055          # hardcode_minus_L: Not really in the search PATH,
10056          # but as the default location of the library.
10057          hardcode_minus_L=yes
10058          ;;
10059        esac
10060      fi
10061      ;;
10062
10063    irix5* | irix6* | nonstopux*)
10064      if test yes = "$GCC"; then
10065        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'
10066        # Try to use the -exported_symbol ld option, if it does not
10067        # work, assume that -exports_file does not work either and
10068        # implicitly export all symbols.
10069        # This should be the same for all languages, so no per-tag cache variable.
10070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10071$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10072if ${lt_cv_irix_exported_symbol+:} false; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075  save_LDFLAGS=$LDFLAGS
10076           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10077           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079int foo (void) { return 0; }
10080_ACEOF
10081if ac_fn_c_try_link "$LINENO"; then :
10082  lt_cv_irix_exported_symbol=yes
10083else
10084  lt_cv_irix_exported_symbol=no
10085fi
10086rm -f core conftest.err conftest.$ac_objext \
10087    conftest$ac_exeext conftest.$ac_ext
10088           LDFLAGS=$save_LDFLAGS
10089fi
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10091$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10092        if test yes = "$lt_cv_irix_exported_symbol"; then
10093          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'
10094        fi
10095      else
10096        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'
10097        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'
10098      fi
10099      archive_cmds_need_lc='no'
10100      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10101      hardcode_libdir_separator=:
10102      inherit_rpath=yes
10103      link_all_deplibs=yes
10104      ;;
10105
10106    linux*)
10107      case $cc_basename in
10108      tcc*)
10109        # Fabrice Bellard et al's Tiny C Compiler
10110        ld_shlibs=yes
10111        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10112        ;;
10113      esac
10114      ;;
10115
10116    netbsd*)
10117      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10118        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10119      else
10120        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10121      fi
10122      hardcode_libdir_flag_spec='-R$libdir'
10123      hardcode_direct=yes
10124      hardcode_shlibpath_var=no
10125      ;;
10126
10127    newsos6)
10128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129      hardcode_direct=yes
10130      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10131      hardcode_libdir_separator=:
10132      hardcode_shlibpath_var=no
10133      ;;
10134
10135    *nto* | *qnx*)
10136      ;;
10137
10138    openbsd* | bitrig*)
10139      if test -f /usr/libexec/ld.so; then
10140        hardcode_direct=yes
10141        hardcode_shlibpath_var=no
10142        hardcode_direct_absolute=yes
10143        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10144          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10145          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10146          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10147          export_dynamic_flag_spec='$wl-E'
10148        else
10149          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10151        fi
10152      else
10153        ld_shlibs=no
10154      fi
10155      ;;
10156
10157    os2*)
10158      hardcode_libdir_flag_spec='-L$libdir'
10159      hardcode_minus_L=yes
10160      allow_undefined_flag=unsupported
10161      shrext_cmds=.dll
10162      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10163        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10164        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10165        $ECHO EXPORTS >> $output_objdir/$libname.def~
10166        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10167        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10168        emximp -o $lib $output_objdir/$libname.def'
10169      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10170        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10171        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10172        $ECHO EXPORTS >> $output_objdir/$libname.def~
10173        prefix_cmds="$SED"~
10174        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10175          prefix_cmds="$prefix_cmds -e 1d";
10176        fi~
10177        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10178        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10179        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10180        emximp -o $lib $output_objdir/$libname.def'
10181      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10182      enable_shared_with_static_runtimes=yes
10183      ;;
10184
10185    osf3*)
10186      if test yes = "$GCC"; then
10187        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10188        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'
10189      else
10190        allow_undefined_flag=' -expect_unresolved \*'
10191        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'
10192      fi
10193      archive_cmds_need_lc='no'
10194      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10195      hardcode_libdir_separator=:
10196      ;;
10197
10198    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10199      if test yes = "$GCC"; then
10200        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10201        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'
10202        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10203      else
10204        allow_undefined_flag=' -expect_unresolved \*'
10205        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'
10206        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~
10207          $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'
10208
10209        # Both c and cxx compiler support -rpath directly
10210        hardcode_libdir_flag_spec='-rpath $libdir'
10211      fi
10212      archive_cmds_need_lc='no'
10213      hardcode_libdir_separator=:
10214      ;;
10215
10216    solaris*)
10217      no_undefined_flag=' -z defs'
10218      if test yes = "$GCC"; then
10219        wlarc='$wl'
10220        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10221        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222          $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'
10223      else
10224        case `$CC -V 2>&1` in
10225        *"Compilers 5.0"*)
10226          wlarc=''
10227          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10230          ;;
10231        *)
10232          wlarc='$wl'
10233          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10236          ;;
10237        esac
10238      fi
10239      hardcode_libdir_flag_spec='-R$libdir'
10240      hardcode_shlibpath_var=no
10241      case $host_os in
10242      solaris2.[0-5] | solaris2.[0-5].*) ;;
10243      *)
10244        # The compiler driver will combine and reorder linker options,
10245        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10246        # but is careful enough not to reorder.
10247        # Supported since Solaris 2.6 (maybe 2.5.1?)
10248        if test yes = "$GCC"; then
10249          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10250        else
10251          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10252        fi
10253        ;;
10254      esac
10255      link_all_deplibs=yes
10256      ;;
10257
10258    sunos4*)
10259      if test sequent = "$host_vendor"; then
10260        # Use $CC to link under sequent, because it throws in some extra .o
10261        # files that make .init and .fini sections work.
10262        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10263      else
10264        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10265      fi
10266      hardcode_libdir_flag_spec='-L$libdir'
10267      hardcode_direct=yes
10268      hardcode_minus_L=yes
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    sysv4)
10273      case $host_vendor in
10274        sni)
10275          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276          hardcode_direct=yes # is this really true???
10277        ;;
10278        siemens)
10279          ## LD is ld it makes a PLAMLIB
10280          ## CC just makes a GrossModule.
10281          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282          reload_cmds='$CC -r -o $output$reload_objs'
10283          hardcode_direct=no
10284        ;;
10285        motorola)
10286          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10288        ;;
10289      esac
10290      runpath_var='LD_RUN_PATH'
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    sysv4.3*)
10295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296      hardcode_shlibpath_var=no
10297      export_dynamic_flag_spec='-Bexport'
10298      ;;
10299
10300    sysv4*MP*)
10301      if test -d /usr/nec; then
10302        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303        hardcode_shlibpath_var=no
10304        runpath_var=LD_RUN_PATH
10305        hardcode_runpath_var=yes
10306        ld_shlibs=yes
10307      fi
10308      ;;
10309
10310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311      no_undefined_flag='$wl-z,text'
10312      archive_cmds_need_lc=no
10313      hardcode_shlibpath_var=no
10314      runpath_var='LD_RUN_PATH'
10315
10316      if test yes = "$GCC"; then
10317        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319      else
10320        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322      fi
10323      ;;
10324
10325    sysv5* | sco3.2v5* | sco5v6*)
10326      # Note: We CANNOT use -z defs as we might desire, because we do not
10327      # link with -lc, and that would cause any symbols used from libc to
10328      # always be unresolved, which means just about no library would
10329      # ever link correctly.  If we're not using GNU ld we use -z text
10330      # though, which does catch some bad symbols but isn't as heavy-handed
10331      # as -z defs.
10332      no_undefined_flag='$wl-z,text'
10333      allow_undefined_flag='$wl-z,nodefs'
10334      archive_cmds_need_lc=no
10335      hardcode_shlibpath_var=no
10336      hardcode_libdir_flag_spec='$wl-R,$libdir'
10337      hardcode_libdir_separator=':'
10338      link_all_deplibs=yes
10339      export_dynamic_flag_spec='$wl-Bexport'
10340      runpath_var='LD_RUN_PATH'
10341
10342      if test yes = "$GCC"; then
10343        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345      else
10346        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348      fi
10349      ;;
10350
10351    uts4*)
10352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353      hardcode_libdir_flag_spec='-L$libdir'
10354      hardcode_shlibpath_var=no
10355      ;;
10356
10357    *)
10358      ld_shlibs=no
10359      ;;
10360    esac
10361
10362    if test sni = "$host_vendor"; then
10363      case $host in
10364      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365        export_dynamic_flag_spec='$wl-Blargedynsym'
10366        ;;
10367      esac
10368    fi
10369  fi
10370
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372$as_echo "$ld_shlibs" >&6; }
10373test no = "$ld_shlibs" && can_build_shared=no
10374
10375with_gnu_ld=$with_gnu_ld
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391#
10392# Do we need to explicitly link libc?
10393#
10394case "x$archive_cmds_need_lc" in
10395x|xyes)
10396  # Assume -lc should be added
10397  archive_cmds_need_lc=yes
10398
10399  if test yes,yes = "$GCC,$enable_shared"; then
10400    case $archive_cmds in
10401    *'~'*)
10402      # FIXME: we may have to deal with multi-command sequences.
10403      ;;
10404    '$CC '*)
10405      # Test whether the compiler implicitly links with -lc since on some
10406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10407      # to ld, don't add -lc before -lgcc.
10408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410if ${lt_cv_archive_cmds_need_lc+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  $RM conftest*
10414        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415
10416        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10417  (eval $ac_compile) 2>&5
10418  ac_status=$?
10419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420  test $ac_status = 0; } 2>conftest.err; then
10421          soname=conftest
10422          lib=conftest
10423          libobjs=conftest.$ac_objext
10424          deplibs=
10425          wl=$lt_prog_compiler_wl
10426          pic_flag=$lt_prog_compiler_pic
10427          compiler_flags=-v
10428          linker_flags=-v
10429          verstring=
10430          output_objdir=.
10431          libname=conftest
10432          lt_save_allow_undefined_flag=$allow_undefined_flag
10433          allow_undefined_flag=
10434          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10435  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10436  ac_status=$?
10437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438  test $ac_status = 0; }
10439          then
10440            lt_cv_archive_cmds_need_lc=no
10441          else
10442            lt_cv_archive_cmds_need_lc=yes
10443          fi
10444          allow_undefined_flag=$lt_save_allow_undefined_flag
10445        else
10446          cat conftest.err 1>&5
10447        fi
10448        $RM conftest*
10449
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10453      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10454      ;;
10455    esac
10456  fi
10457  ;;
10458esac
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10612$as_echo_n "checking dynamic linker characteristics... " >&6; }
10613
10614if test yes = "$GCC"; then
10615  case $host_os in
10616    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10617    *) lt_awk_arg='/^libraries:/' ;;
10618  esac
10619  case $host_os in
10620    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10621    *) lt_sed_strip_eq='s|=/|/|g' ;;
10622  esac
10623  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10624  case $lt_search_path_spec in
10625  *\;*)
10626    # if the path contains ";" then we assume it to be the separator
10627    # otherwise default to the standard path separator (i.e. ":") - it is
10628    # assumed that no part of a normal pathname contains ";" but that should
10629    # okay in the real world where ";" in dirpaths is itself problematic.
10630    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10631    ;;
10632  *)
10633    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10634    ;;
10635  esac
10636  # Ok, now we have the path, separated by spaces, we can step through it
10637  # and add multilib dir if necessary...
10638  lt_tmp_lt_search_path_spec=
10639  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10640  # ...but if some path component already ends with the multilib dir we assume
10641  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10642  case "$lt_multi_os_dir; $lt_search_path_spec " in
10643  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10644    lt_multi_os_dir=
10645    ;;
10646  esac
10647  for lt_sys_path in $lt_search_path_spec; do
10648    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10649      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10650    elif test -n "$lt_multi_os_dir"; then
10651      test -d "$lt_sys_path" && \
10652        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10653    fi
10654  done
10655  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10656BEGIN {RS = " "; FS = "/|\n";} {
10657  lt_foo = "";
10658  lt_count = 0;
10659  for (lt_i = NF; lt_i > 0; lt_i--) {
10660    if ($lt_i != "" && $lt_i != ".") {
10661      if ($lt_i == "..") {
10662        lt_count++;
10663      } else {
10664        if (lt_count == 0) {
10665          lt_foo = "/" $lt_i lt_foo;
10666        } else {
10667          lt_count--;
10668        }
10669      }
10670    }
10671  }
10672  if (lt_foo != "") { lt_freq[lt_foo]++; }
10673  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10674}'`
10675  # AWK program above erroneously prepends '/' to C:/dos/paths
10676  # for these hosts.
10677  case $host_os in
10678    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10679      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10680  esac
10681  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10682else
10683  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10684fi
10685library_names_spec=
10686libname_spec='lib$name'
10687soname_spec=
10688shrext_cmds=.so
10689postinstall_cmds=
10690postuninstall_cmds=
10691finish_cmds=
10692finish_eval=
10693shlibpath_var=
10694shlibpath_overrides_runpath=unknown
10695version_type=none
10696dynamic_linker="$host_os ld.so"
10697sys_lib_dlsearch_path_spec="/lib /usr/lib"
10698need_lib_prefix=unknown
10699hardcode_into_libs=no
10700
10701# when you set need_version to no, make sure it does not cause -set_version
10702# flags to be left without arguments
10703need_version=unknown
10704
10705
10706
10707case $host_os in
10708aix3*)
10709  version_type=linux # correct to gnu/linux during the next big refactor
10710  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10711  shlibpath_var=LIBPATH
10712
10713  # AIX 3 has no versioning support, so we append a major version to the name.
10714  soname_spec='$libname$release$shared_ext$major'
10715  ;;
10716
10717aix[4-9]*)
10718  version_type=linux # correct to gnu/linux during the next big refactor
10719  need_lib_prefix=no
10720  need_version=no
10721  hardcode_into_libs=yes
10722  if test ia64 = "$host_cpu"; then
10723    # AIX 5 supports IA64
10724    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10725    shlibpath_var=LD_LIBRARY_PATH
10726  else
10727    # With GCC up to 2.95.x, collect2 would create an import file
10728    # for dependence libraries.  The import file would start with
10729    # the line '#! .'.  This would cause the generated library to
10730    # depend on '.', always an invalid library.  This was fixed in
10731    # development snapshots of GCC prior to 3.0.
10732    case $host_os in
10733      aix4 | aix4.[01] | aix4.[01].*)
10734      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10735           echo ' yes '
10736           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10737        :
10738      else
10739        can_build_shared=no
10740      fi
10741      ;;
10742    esac
10743    # Using Import Files as archive members, it is possible to support
10744    # filename-based versioning of shared library archives on AIX. While
10745    # this would work for both with and without runtime linking, it will
10746    # prevent static linking of such archives. So we do filename-based
10747    # shared library versioning with .so extension only, which is used
10748    # when both runtime linking and shared linking is enabled.
10749    # Unfortunately, runtime linking may impact performance, so we do
10750    # not want this to be the default eventually. Also, we use the
10751    # versioned .so libs for executables only if there is the -brtl
10752    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10753    # To allow for filename-based versioning support, we need to create
10754    # libNAME.so.V as an archive file, containing:
10755    # *) an Import File, referring to the versioned filename of the
10756    #    archive as well as the shared archive member, telling the
10757    #    bitwidth (32 or 64) of that shared object, and providing the
10758    #    list of exported symbols of that shared object, eventually
10759    #    decorated with the 'weak' keyword
10760    # *) the shared object with the F_LOADONLY flag set, to really avoid
10761    #    it being seen by the linker.
10762    # At run time we better use the real file rather than another symlink,
10763    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10764
10765    case $with_aix_soname,$aix_use_runtimelinking in
10766    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10767    # soname into executable. Probably we can add versioning support to
10768    # collect2, so additional links can be useful in future.
10769    aix,yes) # traditional libtool
10770      dynamic_linker='AIX unversionable lib.so'
10771      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10772      # instead of lib<name>.a to let people know that these are not
10773      # typical AIX shared libraries.
10774      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10775      ;;
10776    aix,no) # traditional AIX only
10777      dynamic_linker='AIX lib.a(lib.so.V)'
10778      # We preserve .a as extension for shared libraries through AIX4.2
10779      # and later when we are not doing run time linking.
10780      library_names_spec='$libname$release.a $libname.a'
10781      soname_spec='$libname$release$shared_ext$major'
10782      ;;
10783    svr4,*) # full svr4 only
10784      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10785      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10786      # We do not specify a path in Import Files, so LIBPATH fires.
10787      shlibpath_overrides_runpath=yes
10788      ;;
10789    *,yes) # both, prefer svr4
10790      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10791      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10792      # unpreferred sharedlib libNAME.a needs extra handling
10793      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"'
10794      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"'
10795      # We do not specify a path in Import Files, so LIBPATH fires.
10796      shlibpath_overrides_runpath=yes
10797      ;;
10798    *,no) # both, prefer aix
10799      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10800      library_names_spec='$libname$release.a $libname.a'
10801      soname_spec='$libname$release$shared_ext$major'
10802      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10803      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)'
10804      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"'
10805      ;;
10806    esac
10807    shlibpath_var=LIBPATH
10808  fi
10809  ;;
10810
10811amigaos*)
10812  case $host_cpu in
10813  powerpc)
10814    # Since July 2007 AmigaOS4 officially supports .so libraries.
10815    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10816    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10817    ;;
10818  m68k)
10819    library_names_spec='$libname.ixlibrary $libname.a'
10820    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10821    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'
10822    ;;
10823  esac
10824  ;;
10825
10826beos*)
10827  library_names_spec='$libname$shared_ext'
10828  dynamic_linker="$host_os ld.so"
10829  shlibpath_var=LIBRARY_PATH
10830  ;;
10831
10832bsdi[45]*)
10833  version_type=linux # correct to gnu/linux during the next big refactor
10834  need_version=no
10835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836  soname_spec='$libname$release$shared_ext$major'
10837  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10838  shlibpath_var=LD_LIBRARY_PATH
10839  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10840  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10841  # the default ld.so.conf also contains /usr/contrib/lib and
10842  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10843  # libtool to hard-code these into programs
10844  ;;
10845
10846cygwin* | mingw* | pw32* | cegcc*)
10847  version_type=windows
10848  shrext_cmds=.dll
10849  need_version=no
10850  need_lib_prefix=no
10851
10852  case $GCC,$cc_basename in
10853  yes,*)
10854    # gcc
10855    library_names_spec='$libname.dll.a'
10856    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10857    postinstall_cmds='base_file=`basename \$file`~
10858      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10859      dldir=$destdir/`dirname \$dlpath`~
10860      test -d \$dldir || mkdir -p \$dldir~
10861      $install_prog $dir/$dlname \$dldir/$dlname~
10862      chmod a+x \$dldir/$dlname~
10863      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10864        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10865      fi'
10866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10867      dlpath=$dir/\$dldll~
10868       $RM \$dlpath'
10869    shlibpath_overrides_runpath=yes
10870
10871    case $host_os in
10872    cygwin*)
10873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10874      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10875
10876      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10877      ;;
10878    mingw* | cegcc*)
10879      # MinGW DLLs use traditional 'lib' prefix
10880      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10881      ;;
10882    pw32*)
10883      # pw32 DLLs use 'pw' prefix rather than 'lib'
10884      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10885      ;;
10886    esac
10887    dynamic_linker='Win32 ld.exe'
10888    ;;
10889
10890  *,cl*)
10891    # Native MSVC
10892    libname_spec='$name'
10893    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10894    library_names_spec='$libname.dll.lib'
10895
10896    case $build_os in
10897    mingw*)
10898      sys_lib_search_path_spec=
10899      lt_save_ifs=$IFS
10900      IFS=';'
10901      for lt_path in $LIB
10902      do
10903        IFS=$lt_save_ifs
10904        # Let DOS variable expansion print the short 8.3 style file name.
10905        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10906        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10907      done
10908      IFS=$lt_save_ifs
10909      # Convert to MSYS style.
10910      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10911      ;;
10912    cygwin*)
10913      # Convert to unix form, then to dos form, then back to unix form
10914      # but this time dos style (no spaces!) so that the unix form looks
10915      # like /cygdrive/c/PROGRA~1:/cygdr...
10916      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10917      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10918      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10919      ;;
10920    *)