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

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

adjust to buildtools changes and rerun autotools

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