source: ThirdParty/Glpk/branches/autotools-update/glpk_config_files/configure

Last change on this file was 4056, checked in by lou, 5 months ago

Second try, rewriting glpk's configuration source files. Went with Stefan's
suggestion to stop trying to pass values and just add COIN macros to glpk's
configure.ac. More straightforward.

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