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

Last change on this file since 3624 was 3624, checked in by stefan, 4 years ago

replace AC_COIN_PROJECTDIR_INITIALIZE by AC_COIN_INITIALIZE

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