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

Last change on this file since 3685 was 3685, checked in by stefan, 3 years ago

rerun autotools

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