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

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

rerun autotools

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