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

Last change on this file since 3239 was 3239, checked in by stefan, 5 years ago

add glpk dependencies to libcoinglpk

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