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

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

rerun autotools

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