1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MPSolve 3.2.1.
4#
5# Report bugs to <leonardo@robol.it>.
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 leonardo@robol.it
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='MPSolve'
592PACKAGE_TARNAME='mpsolve'
593PACKAGE_VERSION='3.2.1'
594PACKAGE_STRING='MPSolve 3.2.1'
595PACKAGE_BUGREPORT='leonardo@robol.it'
596PACKAGE_URL=''
597
598ac_unique_file="Makefile.am"
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
638LIBMPS_CFLAGS
639LIBMPS_LDFLAGS
640HAVE_DOXYGEN_FALSE
641HAVE_DOXYGEN_TRUE
642HAVE_DOT
643DOT
644DOXYGEN
645BUILD_EXAMPLES_FALSE
646BUILD_EXAMPLES_TRUE
647ROOTS_OF_UNITY_PROGRAMS
648GTK_FOUND
649BUILD_PYTHON_MODULE_FALSE
650BUILD_PYTHON_MODULE_TRUE
651HAVE_PYTHON_FALSE
652HAVE_PYTHON_TRUE
653PYTHON_CONFIG
654PYTHON_INCLUDE
655pkgpyexecdir
656pyexecdir
657pkgpythondir
658pythondir
659PYTHON_PLATFORM
660PYTHON_EXEC_PREFIX
661PYTHON_PREFIX
662PYTHON_VERSION
663PYTHON
664BUILD_MATLAB_TOOLBOX_FALSE
665BUILD_MATLAB_TOOLBOX_TRUE
666MEX_LDFLAGS_PREFIX
667MEX_OUTPUT_SUFFIX
668MEXOPTS
669MEX_OUTPUT_FLAG
670MATLAB_MODULES_PROGRAMS
671MEX
672BUILD_OCT_FILE_FALSE
673BUILD_OCT_FILE_TRUE
674OCTAVE
675MKOCTFILE
676QT_VERSION
677QT_LIBS
678QT_LDFLAGS
679QT_CFLAGS
680QT_PROGRAMS
681HAVE_UI_FALSE
682HAVE_UI_TRUE
683RCC
684MOC
685UIC
686QT4_LIBS
687QT4_CFLAGS
688QT5_LIBS
689QT5_CFLAGS
690CAIRO_LIBS
691CAIRO_CFLAGS
692GTK_LIBS
693GTK_CFLAGS
694CHECK_PROGRAMS
695CHECK_FALSE
696CHECK_TRUE
697CHECK_LIBS
698CHECK_CFLAGS
699PKG_CONFIG_LIBDIR
700PKG_CONFIG_PATH
701PKG_CONFIG
702GMP_LIBS
703GMP_CFLAGS
704MPS_USE_BUILTIN_COMPLEX
705PTHREAD_LDFLAGS
706PTHREAD_CFLAGS
707PTHREAD_LIBS
708PTHREAD_CC
709acx_pthread_config
710HAVE_WINDRES_FALSE
711HAVE_WINDRES_TRUE
712WINDOWS_BUILD_FALSE
713WINDOWS_BUILD_TRUE
714WINDRES
715LIBOBJS
716LEXLIB
717LEX_OUTPUT_ROOT
718LEX
719YFLAGS
720YACC
721am__fastdepCXX_FALSE
722am__fastdepCXX_TRUE
723CXXDEPMODE
724CXXCPP
725ac_ct_CXX
726CXXFLAGS
727CXX
728ac_ct_FC
729FCFLAGS
730FC
731BUILD_QML_UI_FALSE
732BUILD_QML_UI_TRUE
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__include
745DEPDIR
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767CPP
768LT_SYS_LIBRARY_PATH
769OTOOL64
770OTOOL
771LIPO
772NMEDIT
773DSYMUTIL
774MANIFEST_TOOL
775AWK
776RANLIB
777STRIP
778ac_ct_AR
779AR
780LN_S
781NM
782ac_ct_DUMPBIN
783DUMPBIN
784LD
785FGREP
786EGREP
787GREP
788SED
789OBJEXT
790EXEEXT
791ac_ct_CC
792CPPFLAGS
793LDFLAGS
794CFLAGS
795CC
796host_os
797host_vendor
798host_cpu
799host
800build_os
801build_vendor
802build_cpu
803build
804LIBTOOL
805OBJDUMP
806DLLTOOL
807AS
808MPS_PATCH_VERSION
809MPS_MINOR_VERSION
810MPS_MAJOR_VERSION
811target_alias
812host_alias
813build_alias
814LIBS
815ECHO_T
816ECHO_N
817ECHO_C
818DEFS
819mandir
820localedir
821libdir
822psdir
823pdfdir
824dvidir
825htmldir
826infodir
827docdir
828oldincludedir
829includedir
830runstatedir
831localstatedir
832sharedstatedir
833sysconfdir
834datadir
835datarootdir
836libexecdir
837sbindir
838bindir
839program_transform_name
840prefix
841exec_prefix
842PACKAGE_URL
843PACKAGE_BUGREPORT
844PACKAGE_STRING
845PACKAGE_VERSION
846PACKAGE_TARNAME
847PACKAGE_NAME
848PATH_SEPARATOR
849SHELL
850am__quote'
851ac_subst_files=''
852ac_user_opts='
853enable_option_checking
854enable_shared
855enable_static
856with_pic
857enable_fast_install
858with_aix_soname
859with_gnu_ld
860with_sysroot
861enable_libtool_lock
862enable_dependency_tracking
863enable_silent_rules
864enable_debug
865enable_debug_build
866enable_qml_ui
867enable_examples
868enable_ui
869enable_graphical_debugger
870enable_documentation
871enable_vfpv3
872enable_tcmalloc
873'
874      ac_precious_vars='build_alias
875host_alias
876target_alias
877CC
878CFLAGS
879LDFLAGS
880LIBS
881CPPFLAGS
882LT_SYS_LIBRARY_PATH
883CPP
884FC
885FCFLAGS
886CXX
887CXXFLAGS
888CCC
889CXXCPP
890YACC
891YFLAGS
892PKG_CONFIG
893PKG_CONFIG_PATH
894PKG_CONFIG_LIBDIR
895CHECK_CFLAGS
896CHECK_LIBS
897GTK_CFLAGS
898GTK_LIBS
899CAIRO_CFLAGS
900CAIRO_LIBS
901QT5_CFLAGS
902QT5_LIBS
903QT4_CFLAGS
904QT4_LIBS
905PYTHON
906PYTHON_INCLUDE
907PYTHON_CONFIG'
908
909
910# Initialize some variables set by options.
911ac_init_help=
912ac_init_version=false
913ac_unrecognized_opts=
914ac_unrecognized_sep=
915# The variables have the same names as the options, with
916# dashes changed to underlines.
917cache_file=/dev/null
918exec_prefix=NONE
919no_create=
920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
928verbose=
929x_includes=NONE
930x_libraries=NONE
931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
937# (The list follows the same order as the GNU Coding Standards.)
938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
946runstatedir='${localstatedir}/run'
947includedir='${prefix}/include'
948oldincludedir='/usr/include'
949docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
958
959ac_prev=
960ac_dashdash=
961for ac_option
962do
963  # If the previous option needs an argument, assign it.
964  if test -n "$ac_prev"; then
965    eval $ac_prev=\$ac_option
966    ac_prev=
967    continue
968  fi
969
970  case $ac_option in
971  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972  *=)   ac_optarg= ;;
973  *)    ac_optarg=yes ;;
974  esac
975
976  # Accept the important Cygnus configure options, so we can diagnose typos.
977
978  case $ac_dashdash$ac_option in
979  --)
980    ac_dashdash=yes ;;
981
982  -bindir | --bindir | --bindi | --bind | --bin | --bi)
983    ac_prev=bindir ;;
984  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985    bindir=$ac_optarg ;;
986
987  -build | --build | --buil | --bui | --bu)
988    ac_prev=build_alias ;;
989  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990    build_alias=$ac_optarg ;;
991
992  -cache-file | --cache-file | --cache-fil | --cache-fi \
993  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994    ac_prev=cache_file ;;
995  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997    cache_file=$ac_optarg ;;
998
999  --config-cache | -C)
1000    cache_file=config.cache ;;
1001
1002  -datadir | --datadir | --datadi | --datad)
1003    ac_prev=datadir ;;
1004  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005    datadir=$ac_optarg ;;
1006
1007  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008  | --dataroo | --dataro | --datar)
1009    ac_prev=datarootdir ;;
1010  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012    datarootdir=$ac_optarg ;;
1013
1014  -disable-* | --disable-*)
1015    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018      as_fn_error $? "invalid feature name: $ac_useropt"
1019    ac_useropt_orig=$ac_useropt
1020    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021    case $ac_user_opts in
1022      *"
1023"enable_$ac_useropt"
1024"*) ;;
1025      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026	 ac_unrecognized_sep=', ';;
1027    esac
1028    eval enable_$ac_useropt=no ;;
1029
1030  -docdir | --docdir | --docdi | --doc | --do)
1031    ac_prev=docdir ;;
1032  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033    docdir=$ac_optarg ;;
1034
1035  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036    ac_prev=dvidir ;;
1037  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038    dvidir=$ac_optarg ;;
1039
1040  -enable-* | --enable-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      as_fn_error $? "invalid feature name: $ac_useropt"
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"enable_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval enable_$ac_useropt=\$ac_optarg ;;
1055
1056  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058  | --exec | --exe | --ex)
1059    ac_prev=exec_prefix ;;
1060  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062  | --exec=* | --exe=* | --ex=*)
1063    exec_prefix=$ac_optarg ;;
1064
1065  -gas | --gas | --ga | --g)
1066    # Obsolete; use --with-gas.
1067    with_gas=yes ;;
1068
1069  -help | --help | --hel | --he | -h)
1070    ac_init_help=long ;;
1071  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072    ac_init_help=recursive ;;
1073  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074    ac_init_help=short ;;
1075
1076  -host | --host | --hos | --ho)
1077    ac_prev=host_alias ;;
1078  -host=* | --host=* | --hos=* | --ho=*)
1079    host_alias=$ac_optarg ;;
1080
1081  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082    ac_prev=htmldir ;;
1083  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084  | --ht=*)
1085    htmldir=$ac_optarg ;;
1086
1087  -includedir | --includedir | --includedi | --included | --include \
1088  | --includ | --inclu | --incl | --inc)
1089    ac_prev=includedir ;;
1090  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091  | --includ=* | --inclu=* | --incl=* | --inc=*)
1092    includedir=$ac_optarg ;;
1093
1094  -infodir | --infodir | --infodi | --infod | --info | --inf)
1095    ac_prev=infodir ;;
1096  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097    infodir=$ac_optarg ;;
1098
1099  -libdir | --libdir | --libdi | --libd)
1100    ac_prev=libdir ;;
1101  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102    libdir=$ac_optarg ;;
1103
1104  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105  | --libexe | --libex | --libe)
1106    ac_prev=libexecdir ;;
1107  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108  | --libexe=* | --libex=* | --libe=*)
1109    libexecdir=$ac_optarg ;;
1110
1111  -localedir | --localedir | --localedi | --localed | --locale)
1112    ac_prev=localedir ;;
1113  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114    localedir=$ac_optarg ;;
1115
1116  -localstatedir | --localstatedir | --localstatedi | --localstated \
1117  | --localstate | --localstat | --localsta | --localst | --locals)
1118    ac_prev=localstatedir ;;
1119  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121    localstatedir=$ac_optarg ;;
1122
1123  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124    ac_prev=mandir ;;
1125  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126    mandir=$ac_optarg ;;
1127
1128  -nfp | --nfp | --nf)
1129    # Obsolete; use --without-fp.
1130    with_fp=no ;;
1131
1132  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133  | --no-cr | --no-c | -n)
1134    no_create=yes ;;
1135
1136  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138    no_recursion=yes ;;
1139
1140  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142  | --oldin | --oldi | --old | --ol | --o)
1143    ac_prev=oldincludedir ;;
1144  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147    oldincludedir=$ac_optarg ;;
1148
1149  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150    ac_prev=prefix ;;
1151  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152    prefix=$ac_optarg ;;
1153
1154  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155  | --program-pre | --program-pr | --program-p)
1156    ac_prev=program_prefix ;;
1157  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159    program_prefix=$ac_optarg ;;
1160
1161  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162  | --program-suf | --program-su | --program-s)
1163    ac_prev=program_suffix ;;
1164  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166    program_suffix=$ac_optarg ;;
1167
1168  -program-transform-name | --program-transform-name \
1169  | --program-transform-nam | --program-transform-na \
1170  | --program-transform-n | --program-transform- \
1171  | --program-transform | --program-transfor \
1172  | --program-transfo | --program-transf \
1173  | --program-trans | --program-tran \
1174  | --progr-tra | --program-tr | --program-t)
1175    ac_prev=program_transform_name ;;
1176  -program-transform-name=* | --program-transform-name=* \
1177  | --program-transform-nam=* | --program-transform-na=* \
1178  | --program-transform-n=* | --program-transform-=* \
1179  | --program-transform=* | --program-transfor=* \
1180  | --program-transfo=* | --program-transf=* \
1181  | --program-trans=* | --program-tran=* \
1182  | --progr-tra=* | --program-tr=* | --program-t=*)
1183    program_transform_name=$ac_optarg ;;
1184
1185  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186    ac_prev=pdfdir ;;
1187  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188    pdfdir=$ac_optarg ;;
1189
1190  -psdir | --psdir | --psdi | --psd | --ps)
1191    ac_prev=psdir ;;
1192  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193    psdir=$ac_optarg ;;
1194
1195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196  | -silent | --silent | --silen | --sile | --sil)
1197    silent=yes ;;
1198
1199  -runstatedir | --runstatedir | --runstatedi | --runstated \
1200  | --runstate | --runstat | --runsta | --runst | --runs \
1201  | --run | --ru | --r)
1202    ac_prev=runstatedir ;;
1203  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205  | --run=* | --ru=* | --r=*)
1206    runstatedir=$ac_optarg ;;
1207
1208  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209    ac_prev=sbindir ;;
1210  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211  | --sbi=* | --sb=*)
1212    sbindir=$ac_optarg ;;
1213
1214  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216  | --sharedst | --shareds | --shared | --share | --shar \
1217  | --sha | --sh)
1218    ac_prev=sharedstatedir ;;
1219  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222  | --sha=* | --sh=*)
1223    sharedstatedir=$ac_optarg ;;
1224
1225  -site | --site | --sit)
1226    ac_prev=site ;;
1227  -site=* | --site=* | --sit=*)
1228    site=$ac_optarg ;;
1229
1230  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231    ac_prev=srcdir ;;
1232  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233    srcdir=$ac_optarg ;;
1234
1235  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236  | --syscon | --sysco | --sysc | --sys | --sy)
1237    ac_prev=sysconfdir ;;
1238  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240    sysconfdir=$ac_optarg ;;
1241
1242  -target | --target | --targe | --targ | --tar | --ta | --t)
1243    ac_prev=target_alias ;;
1244  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245    target_alias=$ac_optarg ;;
1246
1247  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248    verbose=yes ;;
1249
1250  -version | --version | --versio | --versi | --vers | -V)
1251    ac_init_version=: ;;
1252
1253  -with-* | --with-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error $? "invalid package name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"with_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265	 ac_unrecognized_sep=', ';;
1266    esac
1267    eval with_$ac_useropt=\$ac_optarg ;;
1268
1269  -without-* | --without-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error $? "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281	 ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=no ;;
1284
1285  --x)
1286    # Obsolete; use --with-x.
1287    with_x=yes ;;
1288
1289  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290  | --x-incl | --x-inc | --x-in | --x-i)
1291    ac_prev=x_includes ;;
1292  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294    x_includes=$ac_optarg ;;
1295
1296  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298    ac_prev=x_libraries ;;
1299  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301    x_libraries=$ac_optarg ;;
1302
1303  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
1305    ;;
1306
1307  *=*)
1308    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309    # Reject names that are not valid shell variable names.
1310    case $ac_envvar in #(
1311      '' | [0-9]* | *[!_$as_cr_alnum]* )
1312      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313    esac
1314    eval $ac_envvar=\$ac_optarg
1315    export $ac_envvar ;;
1316
1317  *)
1318    # FIXME: should be removed in autoconf 3.0.
1319    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323    ;;
1324
1325  esac
1326done
1327
1328if test -n "$ac_prev"; then
1329  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330  as_fn_error $? "missing argument to $ac_option"
1331fi
1332
1333if test -n "$ac_unrecognized_opts"; then
1334  case $enable_option_checking in
1335    no) ;;
1336    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338  esac
1339fi
1340
1341# Check all directory arguments for consistency.
1342for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343		datadir sysconfdir sharedstatedir localstatedir includedir \
1344		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345		libdir localedir mandir runstatedir
1346do
1347  eval ac_val=\$$ac_var
1348  # Remove trailing slashes.
1349  case $ac_val in
1350    */ )
1351      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352      eval $ac_var=\$ac_val;;
1353  esac
1354  # Be sure to have absolute directory names.
1355  case $ac_val in
1356    [\\/$]* | ?:[\\/]* )  continue;;
1357    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358  esac
1359  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371  if test "x$build_alias" = x; then
1372    cross_compiling=maybe
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  as_fn_error $? "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$as_myself" : 'X\(//\)[^/]' \| \
1399	 X"$as_myself" : 'X\(//\)$' \| \
1400	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures MPSolve 3.2.1 to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking ...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480                          [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                          [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR            user executables [EPREFIX/bin]
1493  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR        program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1499  --libdir=DIR            object code libraries [EPREFIX/lib]
1500  --includedir=DIR        C header files [PREFIX/include]
1501  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1502  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1503  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1504  --infodir=DIR           info documentation [DATAROOTDIR/info]
1505  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1506  --mandir=DIR            man documentation [DATAROOTDIR/man]
1507  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpsolve]
1508  --htmldir=DIR           html documentation [DOCDIR]
1509  --dvidir=DIR            dvi documentation [DOCDIR]
1510  --pdfdir=DIR            pdf documentation [DOCDIR]
1511  --psdir=DIR             ps documentation [DOCDIR]
1512_ACEOF
1513
1514  cat <<\_ACEOF
1515
1516Program names:
1517  --program-prefix=PREFIX            prepend PREFIX to installed program names
1518  --program-suffix=SUFFIX            append SUFFIX to installed program names
1519  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1520
1521System types:
1522  --build=BUILD     configure for building on BUILD [guessed]
1523  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528  case $ac_init_help in
1529     short | recursive ) echo "Configuration of MPSolve 3.2.1:";;
1530   esac
1531  cat <<\_ACEOF
1532
1533Optional Features:
1534  --disable-option-checking  ignore unrecognized --enable/--with options
1535  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1536  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1537  --enable-shared[=PKGS]  build shared libraries [default=yes]
1538  --enable-static[=PKGS]  build static libraries [default=yes]
1539  --enable-fast-install[=PKGS]
1540                          optimize for fast installation [default=yes]
1541  --disable-libtool-lock  avoid locking (might break parallel builds)
1542  --enable-dependency-tracking
1543                          do not reject slow dependency extractors
1544  --disable-dependency-tracking
1545                          speeds up one-time build
1546  --enable-silent-rules   less verbose build output (undo: "make V=1")
1547  --disable-silent-rules  verbose build output (undo: "make V=0")
1548  --disable-debug         Disable debug prints in the code
1549  --enable-debug-build    Build mpsolve with debug symbols and disable all the
1550                          optimizations of the compiler
1551  --enable-qml-ui         Build xmpsolve with the Qml UI
1552  --disable-examples      Disable additional examples and modules bundled with
1553                          MPSolve
1554  --disable-ui            Don't build the graphical user interface for MPSolve
1555  --disable-graphical-debugger
1556                          Don't bundle the GTK graphical debugger in MPSolve
1557  --disable-documentation Don't build Doxygen documentation
1558  --enable-vfpv3          Build with FPU support for ARM using
1559                          VFPv3-instructions
1560  --disable-tcmalloc      Disable the use of the thread caching malloc
1561
1562Optional Packages:
1563  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1566                          both]
1567  --with-aix-soname=aix|svr4|both
1568                          shared library versioning (aka "SONAME") variant to
1569                          provide on AIX, [default=aix].
1570  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1571  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1572                          compiler's sysroot if not specified).
1573
1574Some influential environment variables:
1575  CC          C compiler command
1576  CFLAGS      C compiler flags
1577  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1578              nonstandard directory <lib dir>
1579  LIBS        libraries to pass to the linker, e.g. -l<library>
1580  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581              you have headers in a nonstandard directory <include dir>
1582  LT_SYS_LIBRARY_PATH
1583              User-defined run-time library search path.
1584  CPP         C preprocessor
1585  FC          Fortran compiler command
1586  FCFLAGS     Fortran compiler flags
1587  CXX         C++ compiler command
1588  CXXFLAGS    C++ compiler flags
1589  CXXCPP      C++ preprocessor
1590  YACC        The `Yet Another Compiler Compiler' implementation to use.
1591              Defaults to the first program found out of: `bison -y', `byacc',
1592              `yacc'.
1593  YFLAGS      The list of arguments that will be passed by default to $YACC.
1594              This script will default YFLAGS to the empty string to avoid a
1595              default value of `-d' given by some make applications.
1596  PKG_CONFIG  path to pkg-config utility
1597  PKG_CONFIG_PATH
1598              directories to add to pkg-config's search path
1599  PKG_CONFIG_LIBDIR
1600              path overriding pkg-config's built-in search path
1601  CHECK_CFLAGS
1602              C compiler flags for CHECK, overriding pkg-config
1603  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1604  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1605  GTK_LIBS    linker flags for GTK, overriding pkg-config
1606  CAIRO_CFLAGS
1607              C compiler flags for CAIRO, overriding pkg-config
1608  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1609  QT5_CFLAGS  C compiler flags for QT5, overriding pkg-config
1610  QT5_LIBS    linker flags for QT5, overriding pkg-config
1611  QT4_CFLAGS  C compiler flags for QT4, overriding pkg-config
1612  QT4_LIBS    linker flags for QT4, overriding pkg-config
1613  PYTHON      the Python interpreter
1614  PYTHON_INCLUDE
1615              Include flags for python, bypassing python-config
1616  PYTHON_CONFIG
1617              Path to python-config
1618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
1622Report bugs to <leonardo@robol.it>.
1623_ACEOF
1624ac_status=$?
1625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628  # If there are subdirs, report their specific --help.
1629  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630    test -d "$ac_dir" ||
1631      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632      continue
1633    ac_builddir=.
1634
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639  # A ".." for each directory in $ac_dir_suffix.
1640  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641  case $ac_top_builddir_sub in
1642  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644  esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
1650
1651case $srcdir in
1652  .)  # We are building in place.
1653    ac_srcdir=.
1654    ac_top_srcdir=$ac_top_builddir_sub
1655    ac_abs_top_srcdir=$ac_pwd ;;
1656  [\\/]* | ?:[\\/]* )  # Absolute name.
1657    ac_srcdir=$srcdir$ac_dir_suffix;
1658    ac_top_srcdir=$srcdir
1659    ac_abs_top_srcdir=$srcdir ;;
1660  *) # Relative name.
1661    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662    ac_top_srcdir=$ac_top_build_prefix$srcdir
1663    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664esac
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667    cd "$ac_dir" || { ac_status=$?; continue; }
1668    # Check for guested configure.
1669    if test -f "$ac_srcdir/configure.gnu"; then
1670      echo &&
1671      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672    elif test -f "$ac_srcdir/configure"; then
1673      echo &&
1674      $SHELL "$ac_srcdir/configure" --help=recursive
1675    else
1676      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677    fi || ac_status=$?
1678    cd "$ac_pwd" || { ac_status=$?; break; }
1679  done
1680fi
1681
1682test -n "$ac_init_help" && exit $ac_status
1683if $ac_init_version; then
1684  cat <<\_ACEOF
1685MPSolve configure 3.2.1
1686generated by GNU Autoconf 2.69
1687
1688Copyright (C) 2012 Free Software Foundation, Inc.
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691_ACEOF
1692  exit
1693fi
1694
1695## ------------------------ ##
1696## Autoconf initialization. ##
1697## ------------------------ ##
1698
1699# ac_fn_c_try_compile LINENO
1700# --------------------------
1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_compile ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  rm -f conftest.$ac_objext
1706  if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_compile") 2>conftest.err
1714  ac_status=$?
1715  if test -s conftest.err; then
1716    grep -v '^ *+' conftest.err >conftest.er1
1717    cat conftest.er1 >&5
1718    mv -f conftest.er1 conftest.err
1719  fi
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; } && {
1722	 test -z "$ac_c_werror_flag" ||
1723	 test ! -s conftest.err
1724       } && test -s conftest.$ac_objext; then :
1725  ac_retval=0
1726else
1727  $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730	ac_retval=1
1731fi
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_compile
1736
1737# ac_fn_c_try_link LINENO
1738# -----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_link ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  rm -f conftest.$ac_objext conftest$ac_exeext
1744  if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747  *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751  (eval "$ac_link") 2>conftest.err
1752  ac_status=$?
1753  if test -s conftest.err; then
1754    grep -v '^ *+' conftest.err >conftest.er1
1755    cat conftest.er1 >&5
1756    mv -f conftest.er1 conftest.err
1757  fi
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && {
1760	 test -z "$ac_c_werror_flag" ||
1761	 test ! -s conftest.err
1762       } && test -s conftest$ac_exeext && {
1763	 test "$cross_compiling" = yes ||
1764	 test -x conftest$ac_exeext
1765       }; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771	ac_retval=1
1772fi
1773  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775  # interfere with the next link command; also delete a directory that is
1776  # left behind by Apple's compiler.  We do this before executing the actions.
1777  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779  as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_link
1782
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801  eval "$3=yes"
1802else
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_try_cpp LINENO
1815# ----------------------
1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_cpp ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if { { ac_try="$ac_cpp conftest.$ac_ext"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } > conftest.i && {
1836	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844    ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_cpp
1850
1851# ac_fn_c_try_run LINENO
1852# ----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854# that executables *can* be run.
1855ac_fn_c_try_run ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_link") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869  { { case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_try") 2>&5
1876  ac_status=$?
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; }; }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: program exited with status $ac_status" >&5
1882       $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885       ac_retval=$ac_status
1886fi
1887  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889  as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_run
1892
1893# ac_fn_c_check_func LINENO FUNC VAR
1894# ----------------------------------
1895# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896ac_fn_c_check_func ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908#define $2 innocuous_$2
1909
1910/* System header to define __stub macros and hopefully few prototypes,
1911    which can conflict with char $2 (); below.
1912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913    <limits.h> exists even on freestanding compilers.  */
1914
1915#ifdef __STDC__
1916# include <limits.h>
1917#else
1918# include <assert.h>
1919#endif
1920
1921#undef $2
1922
1923/* Override any GCC internal prototype to avoid an error.
1924   Use char because int might match the return type of a GCC
1925   builtin and then its argument prototype would still apply.  */
1926#ifdef __cplusplus
1927extern "C"
1928#endif
1929char $2 ();
1930/* The GNU C library defines this for functions which it implements
1931    to always fail with ENOSYS.  Some functions are actually named
1932    something starting with __ and the normal name is an alias.  */
1933#if defined __stub_$2 || defined __stub___$2
1934choke me
1935#endif
1936
1937int
1938main ()
1939{
1940return $2 ();
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_link "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext \
1951    conftest$ac_exeext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_func
1959
1960# ac_fn_fc_try_compile LINENO
1961# ---------------------------
1962# Try to compile conftest.$ac_ext, and return whether this succeeded.
1963ac_fn_fc_try_compile ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  rm -f conftest.$ac_objext
1967  if { { ac_try="$ac_compile"
1968case "(($ac_try" in
1969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970  *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974  (eval "$ac_compile") 2>conftest.err
1975  ac_status=$?
1976  if test -s conftest.err; then
1977    grep -v '^ *+' conftest.err >conftest.er1
1978    cat conftest.er1 >&5
1979    mv -f conftest.er1 conftest.err
1980  fi
1981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982  test $ac_status = 0; } && {
1983	 test -z "$ac_fc_werror_flag" ||
1984	 test ! -s conftest.err
1985       } && test -s conftest.$ac_objext; then :
1986  ac_retval=0
1987else
1988  $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991	ac_retval=1
1992fi
1993  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994  as_fn_set_status $ac_retval
1995
1996} # ac_fn_fc_try_compile
1997
1998# ac_fn_fc_try_link LINENO
1999# ------------------------
2000# Try to link conftest.$ac_ext, and return whether this succeeded.
2001ac_fn_fc_try_link ()
2002{
2003  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004  rm -f conftest.$ac_objext conftest$ac_exeext
2005  if { { ac_try="$ac_link"
2006case "(($ac_try" in
2007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008  *) ac_try_echo=$ac_try;;
2009esac
2010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011$as_echo "$ac_try_echo"; } >&5
2012  (eval "$ac_link") 2>conftest.err
2013  ac_status=$?
2014  if test -s conftest.err; then
2015    grep -v '^ *+' conftest.err >conftest.er1
2016    cat conftest.er1 >&5
2017    mv -f conftest.er1 conftest.err
2018  fi
2019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020  test $ac_status = 0; } && {
2021	 test -z "$ac_fc_werror_flag" ||
2022	 test ! -s conftest.err
2023       } && test -s conftest$ac_exeext && {
2024	 test "$cross_compiling" = yes ||
2025	 test -x conftest$ac_exeext
2026       }; then :
2027  ac_retval=0
2028else
2029  $as_echo "$as_me: failed program was:" >&5
2030sed 's/^/| /' conftest.$ac_ext >&5
2031
2032	ac_retval=1
2033fi
2034  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2035  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2036  # interfere with the next link command; also delete a directory that is
2037  # left behind by Apple's compiler.  We do this before executing the actions.
2038  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040  as_fn_set_status $ac_retval
2041
2042} # ac_fn_fc_try_link
2043
2044# ac_fn_cxx_try_compile LINENO
2045# ----------------------------
2046# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_cxx_try_compile ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  rm -f conftest.$ac_objext
2051  if { { ac_try="$ac_compile"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058  (eval "$ac_compile") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } && {
2067	 test -z "$ac_cxx_werror_flag" ||
2068	 test ! -s conftest.err
2069       } && test -s conftest.$ac_objext; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075	ac_retval=1
2076fi
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078  as_fn_set_status $ac_retval
2079
2080} # ac_fn_cxx_try_compile
2081
2082# ac_fn_cxx_try_cpp LINENO
2083# ------------------------
2084# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_cxx_try_cpp ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  if { { ac_try="$ac_cpp conftest.$ac_ext"
2089case "(($ac_try" in
2090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091  *) ac_try_echo=$ac_try;;
2092esac
2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094$as_echo "$ac_try_echo"; } >&5
2095  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096  ac_status=$?
2097  if test -s conftest.err; then
2098    grep -v '^ *+' conftest.err >conftest.er1
2099    cat conftest.er1 >&5
2100    mv -f conftest.er1 conftest.err
2101  fi
2102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103  test $ac_status = 0; } > conftest.i && {
2104	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2105	 test ! -s conftest.err
2106       }; then :
2107  ac_retval=0
2108else
2109  $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112    ac_retval=1
2113fi
2114  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115  as_fn_set_status $ac_retval
2116
2117} # ac_fn_cxx_try_cpp
2118
2119# ac_fn_cxx_try_link LINENO
2120# -------------------------
2121# Try to link conftest.$ac_ext, and return whether this succeeded.
2122ac_fn_cxx_try_link ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  rm -f conftest.$ac_objext conftest$ac_exeext
2126  if { { ac_try="$ac_link"
2127case "(($ac_try" in
2128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129  *) ac_try_echo=$ac_try;;
2130esac
2131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132$as_echo "$ac_try_echo"; } >&5
2133  (eval "$ac_link") 2>conftest.err
2134  ac_status=$?
2135  if test -s conftest.err; then
2136    grep -v '^ *+' conftest.err >conftest.er1
2137    cat conftest.er1 >&5
2138    mv -f conftest.er1 conftest.err
2139  fi
2140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141  test $ac_status = 0; } && {
2142	 test -z "$ac_cxx_werror_flag" ||
2143	 test ! -s conftest.err
2144       } && test -s conftest$ac_exeext && {
2145	 test "$cross_compiling" = yes ||
2146	 test -x conftest$ac_exeext
2147       }; then :
2148  ac_retval=0
2149else
2150  $as_echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153	ac_retval=1
2154fi
2155  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2156  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2157  # interfere with the next link command; also delete a directory that is
2158  # left behind by Apple's compiler.  We do this before executing the actions.
2159  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161  as_fn_set_status $ac_retval
2162
2163} # ac_fn_cxx_try_link
2164
2165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2166# -------------------------------------------
2167# Tests whether TYPE exists after having included INCLUDES, setting cache
2168# variable VAR accordingly.
2169ac_fn_c_check_type ()
2170{
2171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2173$as_echo_n "checking for $2... " >&6; }
2174if eval \${$3+:} false; then :
2175  $as_echo_n "(cached) " >&6
2176else
2177  eval "$3=no"
2178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h.  */
2180$4
2181int
2182main ()
2183{
2184if (sizeof ($2))
2185	 return 0;
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194int
2195main ()
2196{
2197if (sizeof (($2)))
2198	    return 0;
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204
2205else
2206  eval "$3=yes"
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212eval ac_res=\$$3
2213	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217} # ac_fn_c_check_type
2218
2219# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220# -------------------------------------------------------
2221# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222# the include files in INCLUDES and setting the cache variable VAR
2223# accordingly.
2224ac_fn_c_check_header_mongrel ()
2225{
2226  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227  if eval \${$3+:} false; then :
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229$as_echo_n "checking for $2... " >&6; }
2230if eval \${$3+:} false; then :
2231  $as_echo_n "(cached) " >&6
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236else
2237  # Is the header compilable?
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239$as_echo_n "checking $2 usability... " >&6; }
2240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h.  */
2242$4
2243#include <$2>
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246  ac_header_compiler=yes
2247else
2248  ac_header_compiler=no
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252$as_echo "$ac_header_compiler" >&6; }
2253
2254# Is the header present?
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256$as_echo_n "checking $2 presence... " >&6; }
2257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258/* end confdefs.h.  */
2259#include <$2>
2260_ACEOF
2261if ac_fn_c_try_cpp "$LINENO"; then :
2262  ac_header_preproc=yes
2263else
2264  ac_header_preproc=no
2265fi
2266rm -f conftest.err conftest.i conftest.$ac_ext
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268$as_echo "$ac_header_preproc" >&6; }
2269
2270# So?  What about this header?
2271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2272  yes:no: )
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277    ;;
2278  no:yes:* )
2279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2282$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2286$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2287    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289( $as_echo "## -------------------------------- ##
2290## Report this to leonardo@robol.it ##
2291## -------------------------------- ##"
2292     ) | sed "s/^/$as_me: WARNING:     /" >&2
2293    ;;
2294esac
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
2297if eval \${$3+:} false; then :
2298  $as_echo_n "(cached) " >&6
2299else
2300  eval "$3=\$ac_header_compiler"
2301fi
2302eval ac_res=\$$3
2303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304$as_echo "$ac_res" >&6; }
2305fi
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_header_mongrel
2309cat >config.log <<_ACEOF
2310This file contains any messages produced by compilers while
2311running configure, to aid debugging if configure makes a mistake.
2312
2313It was created by MPSolve $as_me 3.2.1, which was
2314generated by GNU Autoconf 2.69.  Invocation command line was
2315
2316  $ $0 $@
2317
2318_ACEOF
2319exec 5>>config.log
2320{
2321cat <<_ASUNAME
2322## --------- ##
2323## Platform. ##
2324## --------- ##
2325
2326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330uname -v = `(uname -v) 2>/dev/null || echo unknown`
2331
2332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2334
2335/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2336/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2339/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2340/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2341/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2342
2343_ASUNAME
2344
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350    $as_echo "PATH: $as_dir"
2351  done
2352IFS=$as_save_IFS
2353
2354} >&5
2355
2356cat >&5 <<_ACEOF
2357
2358
2359## ----------- ##
2360## Core tests. ##
2361## ----------- ##
2362
2363_ACEOF
2364
2365
2366# Keep a trace of the command line.
2367# Strip out --no-create and --no-recursion so they do not pile up.
2368# Strip out --silent because we don't want to record it for future runs.
2369# Also quote any args containing shell meta-characters.
2370# Make two passes to allow for proper duplicate-argument suppression.
2371ac_configure_args=
2372ac_configure_args0=
2373ac_configure_args1=
2374ac_must_keep_next=false
2375for ac_pass in 1 2
2376do
2377  for ac_arg
2378  do
2379    case $ac_arg in
2380    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382    | -silent | --silent | --silen | --sile | --sil)
2383      continue ;;
2384    *\'*)
2385      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386    esac
2387    case $ac_pass in
2388    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389    2)
2390      as_fn_append ac_configure_args1 " '$ac_arg'"
2391      if test $ac_must_keep_next = true; then
2392	ac_must_keep_next=false # Got value, back to normal.
2393      else
2394	case $ac_arg in
2395	  *=* | --config-cache | -C | -disable-* | --disable-* \
2396	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398	  | -with-* | --with-* | -without-* | --without-* | --x)
2399	    case "$ac_configure_args0 " in
2400	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401	    esac
2402	    ;;
2403	  -* ) ac_must_keep_next=true ;;
2404	esac
2405      fi
2406      as_fn_append ac_configure_args " '$ac_arg'"
2407      ;;
2408    esac
2409  done
2410done
2411{ ac_configure_args0=; unset ac_configure_args0;}
2412{ ac_configure_args1=; unset ac_configure_args1;}
2413
2414# When interrupted or exit'd, cleanup temporary files, and complete
2415# config.log.  We remove comments because anyway the quotes in there
2416# would cause problems or look ugly.
2417# WARNING: Use '\'' to represent an apostrophe within the trap.
2418# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419trap 'exit_status=$?
2420  # Save into config.log some information that might help in debugging.
2421  {
2422    echo
2423
2424    $as_echo "## ---------------- ##
2425## Cache variables. ##
2426## ---------------- ##"
2427    echo
2428    # The following way of writing the cache mishandles newlines in values,
2429(
2430  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2431    eval ac_val=\$$ac_var
2432    case $ac_val in #(
2433    *${as_nl}*)
2434      case $ac_var in #(
2435      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437      esac
2438      case $ac_var in #(
2439      _ | IFS | as_nl) ;; #(
2440      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441      *) { eval $ac_var=; unset $ac_var;} ;;
2442      esac ;;
2443    esac
2444  done
2445  (set) 2>&1 |
2446    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2447    *${as_nl}ac_space=\ *)
2448      sed -n \
2449	"s/'\''/'\''\\\\'\'''\''/g;
2450	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451      ;; #(
2452    *)
2453      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454      ;;
2455    esac |
2456    sort
2457)
2458    echo
2459
2460    $as_echo "## ----------------- ##
2461## Output variables. ##
2462## ----------------- ##"
2463    echo
2464    for ac_var in $ac_subst_vars
2465    do
2466      eval ac_val=\$$ac_var
2467      case $ac_val in
2468      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469      esac
2470      $as_echo "$ac_var='\''$ac_val'\''"
2471    done | sort
2472    echo
2473
2474    if test -n "$ac_subst_files"; then
2475      $as_echo "## ------------------- ##
2476## File substitutions. ##
2477## ------------------- ##"
2478      echo
2479      for ac_var in $ac_subst_files
2480      do
2481	eval ac_val=\$$ac_var
2482	case $ac_val in
2483	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484	esac
2485	$as_echo "$ac_var='\''$ac_val'\''"
2486      done | sort
2487      echo
2488    fi
2489
2490    if test -s confdefs.h; then
2491      $as_echo "## ----------- ##
2492## confdefs.h. ##
2493## ----------- ##"
2494      echo
2495      cat confdefs.h
2496      echo
2497    fi
2498    test "$ac_signal" != 0 &&
2499      $as_echo "$as_me: caught signal $ac_signal"
2500    $as_echo "$as_me: exit $exit_status"
2501  } >&5
2502  rm -f core *.core core.conftest.* &&
2503    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504    exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
2507  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
2513
2514$as_echo "/* confdefs.h */" > confdefs.h
2515
2516# Predefined preprocessor variables.
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_NAME "$PACKAGE_NAME"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_VERSION "$PACKAGE_VERSION"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_STRING "$PACKAGE_STRING"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_URL "$PACKAGE_URL"
2540_ACEOF
2541
2542
2543# Let the site file select an alternate cache file if it wants to.
2544# Prefer an explicitly selected file to automatically selected ones.
2545ac_site_file1=NONE
2546ac_site_file2=NONE
2547if test -n "$CONFIG_SITE"; then
2548  # We do not want a PATH search for config.site.
2549  case $CONFIG_SITE in #((
2550    -*)  ac_site_file1=./$CONFIG_SITE;;
2551    */*) ac_site_file1=$CONFIG_SITE;;
2552    *)   ac_site_file1=./$CONFIG_SITE;;
2553  esac
2554elif test "x$prefix" != xNONE; then
2555  ac_site_file1=$prefix/share/config.site
2556  ac_site_file2=$prefix/etc/config.site
2557else
2558  ac_site_file1=$ac_default_prefix/share/config.site
2559  ac_site_file2=$ac_default_prefix/etc/config.site
2560fi
2561for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562do
2563  test "x$ac_site_file" = xNONE && continue
2564  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2565    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2566$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2567    sed 's/^/| /' "$ac_site_file" >&5
2568    . "$ac_site_file" \
2569      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571as_fn_error $? "failed to load site script $ac_site_file
2572See \`config.log' for more details" "$LINENO" 5; }
2573  fi
2574done
2575
2576if test -r "$cache_file"; then
2577  # Some versions of bash will fail to source /dev/null (special files
2578  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2579  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581$as_echo "$as_me: loading cache $cache_file" >&6;}
2582    case $cache_file in
2583      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584      *)                      . "./$cache_file";;
2585    esac
2586  fi
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589$as_echo "$as_me: creating cache $cache_file" >&6;}
2590  >$cache_file
2591fi
2592
2593# Check that the precious variables saved in the cache have kept the same
2594# value.
2595ac_cache_corrupted=false
2596for ac_var in $ac_precious_vars; do
2597  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598  eval ac_new_set=\$ac_env_${ac_var}_set
2599  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600  eval ac_new_val=\$ac_env_${ac_var}_value
2601  case $ac_old_set,$ac_new_set in
2602    set,)
2603      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605      ac_cache_corrupted=: ;;
2606    ,set)
2607      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609      ac_cache_corrupted=: ;;
2610    ,);;
2611    *)
2612      if test "x$ac_old_val" != "x$ac_new_val"; then
2613	# differences in whitespace do not lead to failure.
2614	ac_old_val_w=`echo x $ac_old_val`
2615	ac_new_val_w=`echo x $ac_new_val`
2616	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619	  ac_cache_corrupted=:
2620	else
2621	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623	  eval $ac_var=\$ac_old_val
2624	fi
2625	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2626$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2627	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2628$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2629      fi;;
2630  esac
2631  # Pass precious variables to config.status.
2632  if test "$ac_new_set" = set; then
2633    case $ac_new_val in
2634    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635    *) ac_arg=$ac_var=$ac_new_val ;;
2636    esac
2637    case " $ac_configure_args " in
2638      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2639      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640    esac
2641  fi
2642done
2643if $ac_cache_corrupted; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2648  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649fi
2650## -------------------- ##
2651## Main body of script. ##
2652## -------------------- ##
2653
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662MPS_MAJOR_VERSION=3
2663MPS_MINOR_VERSION=2
2664MPS_PATCH_VERSION=1
2665
2666
2667$as_echo "#define MPS_MAJOR_VERSION 3" >>confdefs.h
2668
2669
2670$as_echo "#define MPS_MINOR_VERSION 2" >>confdefs.h
2671
2672
2673$as_echo "#define MPS_PATCH_VERSION 1" >>confdefs.h
2674
2675
2676
2677
2678
2679
2680
2681ac_config_headers="$ac_config_headers config.h"
2682
2683
2684
2685
2686ac_aux_dir=
2687for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2688  if test -f "$ac_dir/install-sh"; then
2689    ac_aux_dir=$ac_dir
2690    ac_install_sh="$ac_aux_dir/install-sh -c"
2691    break
2692  elif test -f "$ac_dir/install.sh"; then
2693    ac_aux_dir=$ac_dir
2694    ac_install_sh="$ac_aux_dir/install.sh -c"
2695    break
2696  elif test -f "$ac_dir/shtool"; then
2697    ac_aux_dir=$ac_dir
2698    ac_install_sh="$ac_aux_dir/shtool install -c"
2699    break
2700  fi
2701done
2702if test -z "$ac_aux_dir"; then
2703  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2704fi
2705
2706# These three variables are undocumented and unsupported,
2707# and are intended to be withdrawn in a future Autoconf release.
2708# They can cause serious problems if a builder's source tree is in a directory
2709# whose full name contains unusual characters.
2710ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2711ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2712ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2713
2714
2715case `pwd` in
2716  *\ * | *\	*)
2717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2718$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2719esac
2720
2721
2722
2723macro_version='2.4.6'
2724macro_revision='2.4.6'
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738ltmain=$ac_aux_dir/ltmain.sh
2739
2740# Make sure we can run config.sub.
2741$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2742  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2745$as_echo_n "checking build system type... " >&6; }
2746if ${ac_cv_build+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  ac_build_alias=$build_alias
2750test "x$ac_build_alias" = x &&
2751  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2752test "x$ac_build_alias" = x &&
2753  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2754ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2755  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2756
2757fi
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2759$as_echo "$ac_cv_build" >&6; }
2760case $ac_cv_build in
2761*-*-*) ;;
2762*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763esac
2764build=$ac_cv_build
2765ac_save_IFS=$IFS; IFS='-'
2766set x $ac_cv_build
2767shift
2768build_cpu=$1
2769build_vendor=$2
2770shift; shift
2771# Remember, the first character of IFS is used to create $*,
2772# except with old shells:
2773build_os=$*
2774IFS=$ac_save_IFS
2775case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2776
2777
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2779$as_echo_n "checking host system type... " >&6; }
2780if ${ac_cv_host+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test "x$host_alias" = x; then
2784  ac_cv_host=$ac_cv_build
2785else
2786  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2788fi
2789
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2792$as_echo "$ac_cv_host" >&6; }
2793case $ac_cv_host in
2794*-*-*) ;;
2795*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2796esac
2797host=$ac_cv_host
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_host
2800shift
2801host_cpu=$1
2802host_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806host_os=$*
2807IFS=$ac_save_IFS
2808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2809
2810
2811# Backslashify metacharacters that are still active within
2812# double-quoted strings.
2813sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2814
2815# Same as above, but do not quote variable references.
2816double_quote_subst='s/\(["`\\]\)/\\\1/g'
2817
2818# Sed substitution to delay expansion of an escaped shell variable in a
2819# double_quote_subst'ed string.
2820delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2821
2822# Sed substitution to delay expansion of an escaped single quote.
2823delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2824
2825# Sed substitution to avoid accidental globbing in evaled expressions
2826no_glob_subst='s/\*/\\\*/g'
2827
2828ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2829ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2830ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2831
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2833$as_echo_n "checking how to print strings... " >&6; }
2834# Test print first, because it will be a builtin if present.
2835if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2836   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2837  ECHO='print -r --'
2838elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2839  ECHO='printf %s\n'
2840else
2841  # Use this function as a fallback that always works.
2842  func_fallback_echo ()
2843  {
2844    eval 'cat <<_LTECHO_EOF
2845$1
2846_LTECHO_EOF'
2847  }
2848  ECHO='func_fallback_echo'
2849fi
2850
2851# func_echo_all arg...
2852# Invoke $ECHO with all args, space-separated.
2853func_echo_all ()
2854{
2855    $ECHO ""
2856}
2857
2858case $ECHO in
2859  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2860$as_echo "printf" >&6; } ;;
2861  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2862$as_echo "print -r" >&6; } ;;
2863  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2864$as_echo "cat" >&6; } ;;
2865esac
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880# Expand $ac_aux_dir to an absolute path.
2881am_aux_dir=`cd "$ac_aux_dir" && pwd`
2882
2883ac_ext=c
2884ac_cpp='$CPP $CPPFLAGS'
2885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888if test -n "$ac_tool_prefix"; then
2889  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if ${ac_cv_prog_CC+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$CC"; then
2897  ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919$as_echo "$CC" >&6; }
2920else
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926fi
2927if test -z "$ac_cv_prog_CC"; then
2928  ac_ct_CC=$CC
2929  # Extract the first word of "gcc", so it can be a program name with args.
2930set dummy gcc; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_ac_ct_CC="gcc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959$as_echo "$ac_ct_CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965  if test "x$ac_ct_CC" = x; then
2966    CC=""
2967  else
2968    case $cross_compiling:$ac_tool_warned in
2969yes:)
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972ac_tool_warned=yes ;;
2973esac
2974    CC=$ac_ct_CC
2975  fi
2976else
2977  CC="$ac_cv_prog_CC"
2978fi
2979
2980if test -z "$CC"; then
2981          if test -n "$ac_tool_prefix"; then
2982    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2983set dummy ${ac_tool_prefix}cc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999    ac_cv_prog_CC="${ac_tool_prefix}cc"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019  fi
3020fi
3021if test -z "$CC"; then
3022  # Extract the first word of "cc", so it can be a program name with args.
3023set dummy cc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032  ac_prog_rejected=no
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041       ac_prog_rejected=yes
3042       continue
3043     fi
3044    ac_cv_prog_CC="cc"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052if test $ac_prog_rejected = yes; then
3053  # We found a bogon in the path, so make sure we never use it.
3054  set dummy $ac_cv_prog_CC
3055  shift
3056  if test $# != 0; then
3057    # We chose a different compiler from the bogus one.
3058    # However, it has the same basename, so the bogon will be chosen
3059    # first if we set CC to just the basename; use the full file name.
3060    shift
3061    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062  fi
3063fi
3064fi
3065fi
3066CC=$ac_cv_prog_CC
3067if test -n "$CC"; then
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069$as_echo "$CC" >&6; }
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075
3076fi
3077if test -z "$CC"; then
3078  if test -n "$ac_tool_prefix"; then
3079  for ac_prog in cl.exe
3080  do
3081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$CC"; then
3089  ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118    test -n "$CC" && break
3119  done
3120fi
3121if test -z "$CC"; then
3122  ac_ct_CC=$CC
3123  for ac_prog in cl.exe
3124do
3125  # Extract the first word of "$ac_prog", so it can be a program name with args.
3126set dummy $ac_prog; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test -n "$ac_ct_CC"; then
3133  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138  IFS=$as_save_IFS
3139  test -z "$as_dir" && as_dir=.
3140    for ac_exec_ext in '' $ac_executable_extensions; do
3141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142    ac_cv_prog_ac_ct_CC="$ac_prog"
3143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151fi
3152ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153if test -n "$ac_ct_CC"; then
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155$as_echo "$ac_ct_CC" >&6; }
3156else
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159fi
3160
3161
3162  test -n "$ac_ct_CC" && break
3163done
3164
3165  if test "x$ac_ct_CC" = x; then
3166    CC=""
3167  else
3168    case $cross_compiling:$ac_tool_warned in
3169yes:)
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172ac_tool_warned=yes ;;
3173esac
3174    CC=$ac_ct_CC
3175  fi
3176fi
3177
3178fi
3179
3180
3181test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183as_fn_error $? "no acceptable C compiler found in \$PATH
3184See \`config.log' for more details" "$LINENO" 5; }
3185
3186# Provide some information about the compiler.
3187$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188set X $ac_compile
3189ac_compiler=$2
3190for ac_option in --version -v -V -qversion; do
3191  { { ac_try="$ac_compiler $ac_option >&5"
3192case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
3198  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199  ac_status=$?
3200  if test -s conftest.err; then
3201    sed '10a\
3202... rest of stderr output deleted ...
3203         10q' conftest.err >conftest.er1
3204    cat conftest.er1 >&5
3205  fi
3206  rm -f conftest.er1 conftest.err
3207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208  test $ac_status = 0; }
3209done
3210
3211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212/* end confdefs.h.  */
3213
3214int
3215main ()
3216{
3217
3218  ;
3219  return 0;
3220}
3221_ACEOF
3222ac_clean_files_save=$ac_clean_files
3223ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224# Try to create an executable without -o first, disregard a.out.
3225# It will help us diagnose broken compilers, and finding out an intuition
3226# of exeext.
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228$as_echo_n "checking whether the C compiler works... " >&6; }
3229ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230
3231# The possible output files:
3232ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233
3234ac_rmfiles=
3235for ac_file in $ac_files
3236do
3237  case $ac_file in
3238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240  esac
3241done
3242rm -f $ac_rmfiles
3243
3244if { { ac_try="$ac_link_default"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250$as_echo "$ac_try_echo"; } >&5
3251  (eval "$ac_link_default") 2>&5
3252  ac_status=$?
3253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }; then :
3255  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3256# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3257# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3258# so that the user can short-circuit this test for compilers unknown to
3259# Autoconf.
3260for ac_file in $ac_files ''
3261do
3262  test -f "$ac_file" || continue
3263  case $ac_file in
3264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265	;;
3266    [ab].out )
3267	# We found the default executable, but exeext='' is most
3268	# certainly right.
3269	break;;
3270    *.* )
3271	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3272	then :; else
3273	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274	fi
3275	# We set ac_cv_exeext here because the later test for it is not
3276	# safe: cross compilers may not add the suffix if given an `-o'
3277	# argument, so we may need to know it at that point already.
3278	# Even if this section looks crufty: it has the advantage of
3279	# actually working.
3280	break;;
3281    * )
3282	break;;
3283  esac
3284done
3285test "$ac_cv_exeext" = no && ac_cv_exeext=
3286
3287else
3288  ac_file=''
3289fi
3290if test -z "$ac_file"; then :
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293$as_echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298as_fn_error 77 "C compiler cannot create executables
3299See \`config.log' for more details" "$LINENO" 5; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303fi
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305$as_echo_n "checking for C compiler default output file name... " >&6; }
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307$as_echo "$ac_file" >&6; }
3308ac_exeext=$ac_cv_exeext
3309
3310rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311ac_clean_files=$ac_clean_files_save
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313$as_echo_n "checking for suffix of executables... " >&6; }
3314if { { ac_try="$ac_link"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_link") 2>&5
3322  ac_status=$?
3323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324  test $ac_status = 0; }; then :
3325  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3327# work properly (i.e., refer to `conftest.exe'), while it won't with
3328# `rm'.
3329for ac_file in conftest.exe conftest conftest.*; do
3330  test -f "$ac_file" || continue
3331  case $ac_file in
3332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334	  break;;
3335    * ) break;;
3336  esac
3337done
3338else
3339  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3342See \`config.log' for more details" "$LINENO" 5; }
3343fi
3344rm -f conftest conftest$ac_cv_exeext
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346$as_echo "$ac_cv_exeext" >&6; }
3347
3348rm -f conftest.$ac_ext
3349EXEEXT=$ac_cv_exeext
3350ac_exeext=$EXEEXT
3351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h.  */
3353#include <stdio.h>
3354int
3355main ()
3356{
3357FILE *f = fopen ("conftest.out", "w");
3358 return ferror (f) || fclose (f) != 0;
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364ac_clean_files="$ac_clean_files conftest.out"
3365# Check that the compiler produces executables we can run.  If not, either
3366# the compiler is broken, or we cross compile.
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368$as_echo_n "checking whether we are cross compiling... " >&6; }
3369if test "$cross_compiling" != yes; then
3370  { { ac_try="$ac_link"
3371case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
3377  (eval "$ac_link") 2>&5
3378  ac_status=$?
3379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380  test $ac_status = 0; }
3381  if { ac_try='./conftest$ac_cv_exeext'
3382  { { case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_try") 2>&5
3389  ac_status=$?
3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391  test $ac_status = 0; }; }; then
3392    cross_compiling=no
3393  else
3394    if test "$cross_compiling" = maybe; then
3395	cross_compiling=yes
3396    else
3397	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot run C compiled programs.
3400If you meant to cross compile, use \`--host'.
3401See \`config.log' for more details" "$LINENO" 5; }
3402    fi
3403  fi
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406$as_echo "$cross_compiling" >&6; }
3407
3408rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409ac_clean_files=$ac_clean_files_save
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411$as_echo_n "checking for suffix of object files... " >&6; }
3412if ${ac_cv_objext+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.o conftest.obj
3427if { { ac_try="$ac_compile"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_compile") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; then :
3438  for ac_file in conftest.o conftest.obj conftest.*; do
3439  test -f "$ac_file" || continue;
3440  case $ac_file in
3441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443       break;;
3444  esac
3445done
3446else
3447  $as_echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "cannot compute suffix of object files: cannot compile
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458$as_echo "$ac_cv_objext" >&6; }
3459OBJEXT=$ac_cv_objext
3460ac_objext=$OBJEXT
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463if ${ac_cv_c_compiler_gnu+:} false; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472#ifndef __GNUC__
3473       choke me
3474#endif
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481  ac_compiler_gnu=yes
3482else
3483  ac_compiler_gnu=no
3484fi
3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491if test $ac_compiler_gnu = yes; then
3492  GCC=yes
3493else
3494  GCC=
3495fi
3496ac_test_CFLAGS=${CFLAGS+set}
3497ac_save_CFLAGS=$CFLAGS
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499$as_echo_n "checking whether $CC accepts -g... " >&6; }
3500if ${ac_cv_prog_cc_g+:} false; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  ac_save_c_werror_flag=$ac_c_werror_flag
3504   ac_c_werror_flag=yes
3505   ac_cv_prog_cc_g=no
3506   CFLAGS="-g"
3507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519  ac_cv_prog_cc_g=yes
3520else
3521  CFLAGS=""
3522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533if ac_fn_c_try_compile "$LINENO"; then :
3534
3535else
3536  ac_c_werror_flag=$ac_save_c_werror_flag
3537	 CFLAGS="-g"
3538	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_g=yes
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560$as_echo "$ac_cv_prog_cc_g" >&6; }
3561if test "$ac_test_CFLAGS" = set; then
3562  CFLAGS=$ac_save_CFLAGS
3563elif test $ac_cv_prog_cc_g = yes; then
3564  if test "$GCC" = yes; then
3565    CFLAGS="-g -O2"
3566  else
3567    CFLAGS="-g"
3568  fi
3569else
3570  if test "$GCC" = yes; then
3571    CFLAGS="-O2"
3572  else
3573    CFLAGS=
3574  fi
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578if ${ac_cv_prog_cc_c89+:} false; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  ac_cv_prog_cc_c89=no
3582ac_save_CC=$CC
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <stdarg.h>
3586#include <stdio.h>
3587struct stat;
3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589struct buf { int x; };
3590FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591static char *e (p, i)
3592     char **p;
3593     int i;
3594{
3595  return p[i];
3596}
3597static char *f (char * (*g) (char **, int), char **p, ...)
3598{
3599  char *s;
3600  va_list v;
3601  va_start (v,p);
3602  s = g (p, va_arg (v,int));
3603  va_end (v);
3604  return s;
3605}
3606
3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608   function prototypes and stuff, but not '\xHH' hex character constants.
3609   These don't provoke an error unfortunately, instead are silently treated
3610   as 'x'.  The following induces an error, until -std is added to get
3611   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612   array size at least.  It's necessary to write '\x00'==0 to get something
3613   that's true only with -std.  */
3614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617   inside strings and character constants.  */
3618#define FOO(x) 'x'
3619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620
3621int test (int i, double x);
3622struct s1 {int (*f) (int a);};
3623struct s2 {int (*f) (double a);};
3624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625int argc;
3626char **argv;
3627int
3628main ()
3629{
3630return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637do
3638  CC="$ac_save_CC $ac_arg"
3639  if ac_fn_c_try_compile "$LINENO"; then :
3640  ac_cv_prog_cc_c89=$ac_arg
3641fi
3642rm -f core conftest.err conftest.$ac_objext
3643  test "x$ac_cv_prog_cc_c89" != "xno" && break
3644done
3645rm -f conftest.$ac_ext
3646CC=$ac_save_CC
3647
3648fi
3649# AC_CACHE_VAL
3650case "x$ac_cv_prog_cc_c89" in
3651  x)
3652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653$as_echo "none needed" >&6; } ;;
3654  xno)
3655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3656$as_echo "unsupported" >&6; } ;;
3657  *)
3658    CC="$CC $ac_cv_prog_cc_c89"
3659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3661esac
3662if test "x$ac_cv_prog_cc_c89" != xno; then :
3663
3664fi
3665
3666ac_ext=c
3667ac_cpp='$CPP $CPPFLAGS'
3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3678$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3679if ${am_cv_prog_cc_c_o+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693  # Make sure it works both with $CC and with simple cc.
3694  # Following AC_PROG_CC_C_O, we do the test twice because some
3695  # compilers refuse to overwrite an existing .o file with -o,
3696  # though they will create one.
3697  am_cv_prog_cc_c_o=yes
3698  for am_i in 1 2; do
3699    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3700   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } \
3704         && test -f conftest2.$ac_objext; then
3705      : OK
3706    else
3707      am_cv_prog_cc_c_o=no
3708      break
3709    fi
3710  done
3711  rm -f core conftest*
3712  unset am_i
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3715$as_echo "$am_cv_prog_cc_c_o" >&6; }
3716if test "$am_cv_prog_cc_c_o" != yes; then
3717   # Losing compiler, so override with the script.
3718   # FIXME: It is wrong to rewrite CC.
3719   # But if we don't then we get into trouble of one sort or another.
3720   # A longer-term fix would be to have automake use am__CC in this case,
3721   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3722   CC="$am_aux_dir/compile $CC"
3723fi
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3732$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3733if ${ac_cv_path_SED+:} false; then :
3734  $as_echo_n "(cached) " >&6
3735else
3736            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3737     for ac_i in 1 2 3 4 5 6 7; do
3738       ac_script="$ac_script$as_nl$ac_script"
3739     done
3740     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3741     { ac_script=; unset ac_script;}
3742     if test -z "$SED"; then
3743  ac_path_SED_found=false
3744  # Loop through the user's path and test for each of PROGNAME-LIST
3745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748  IFS=$as_save_IFS
3749  test -z "$as_dir" && as_dir=.
3750    for ac_prog in sed gsed; do
3751    for ac_exec_ext in '' $ac_executable_extensions; do
3752      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3753      as_fn_executable_p "$ac_path_SED" || continue
3754# Check for GNU ac_path_SED and select it if it is found.
3755  # Check for GNU $ac_path_SED
3756case `"$ac_path_SED" --version 2>&1` in
3757*GNU*)
3758  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3759*)
3760  ac_count=0
3761  $as_echo_n 0123456789 >"conftest.in"
3762  while :
3763  do
3764    cat "conftest.in" "conftest.in" >"conftest.tmp"
3765    mv "conftest.tmp" "conftest.in"
3766    cp "conftest.in" "conftest.nl"
3767    $as_echo '' >> "conftest.nl"
3768    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770    as_fn_arith $ac_count + 1 && ac_count=$as_val
3771    if test $ac_count -gt ${ac_path_SED_max-0}; then
3772      # Best one so far, save it but keep looking for a better one
3773      ac_cv_path_SED="$ac_path_SED"
3774      ac_path_SED_max=$ac_count
3775    fi
3776    # 10*(2^10) chars as input seems more than enough
3777    test $ac_count -gt 10 && break
3778  done
3779  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780esac
3781
3782      $ac_path_SED_found && break 3
3783    done
3784  done
3785  done
3786IFS=$as_save_IFS
3787  if test -z "$ac_cv_path_SED"; then
3788    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3789  fi
3790else
3791  ac_cv_path_SED=$SED
3792fi
3793
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3796$as_echo "$ac_cv_path_SED" >&6; }
3797 SED="$ac_cv_path_SED"
3798  rm -f conftest.sed
3799
3800test -z "$SED" && SED=sed
3801Xsed="$SED -e 1s/^X//"
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3814$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3815if ${ac_cv_path_GREP+:} false; then :
3816  $as_echo_n "(cached) " >&6
3817else
3818  if test -z "$GREP"; then
3819  ac_path_GREP_found=false
3820  # Loop through the user's path and test for each of PROGNAME-LIST
3821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3823do
3824  IFS=$as_save_IFS
3825  test -z "$as_dir" && as_dir=.
3826    for ac_prog in grep ggrep; do
3827    for ac_exec_ext in '' $ac_executable_extensions; do
3828      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3829      as_fn_executable_p "$ac_path_GREP" || continue
3830# Check for GNU ac_path_GREP and select it if it is found.
3831  # Check for GNU $ac_path_GREP
3832case `"$ac_path_GREP" --version 2>&1` in
3833*GNU*)
3834  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3835*)
3836  ac_count=0
3837  $as_echo_n 0123456789 >"conftest.in"
3838  while :
3839  do
3840    cat "conftest.in" "conftest.in" >"conftest.tmp"
3841    mv "conftest.tmp" "conftest.in"
3842    cp "conftest.in" "conftest.nl"
3843    $as_echo 'GREP' >> "conftest.nl"
3844    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3845    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3846    as_fn_arith $ac_count + 1 && ac_count=$as_val
3847    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3848      # Best one so far, save it but keep looking for a better one
3849      ac_cv_path_GREP="$ac_path_GREP"
3850      ac_path_GREP_max=$ac_count
3851    fi
3852    # 10*(2^10) chars as input seems more than enough
3853    test $ac_count -gt 10 && break
3854  done
3855  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3856esac
3857
3858      $ac_path_GREP_found && break 3
3859    done
3860  done
3861  done
3862IFS=$as_save_IFS
3863  if test -z "$ac_cv_path_GREP"; then
3864    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3865  fi
3866else
3867  ac_cv_path_GREP=$GREP
3868fi
3869
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3872$as_echo "$ac_cv_path_GREP" >&6; }
3873 GREP="$ac_cv_path_GREP"
3874
3875
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3877$as_echo_n "checking for egrep... " >&6; }
3878if ${ac_cv_path_EGREP+:} false; then :
3879  $as_echo_n "(cached) " >&6
3880else
3881  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3882   then ac_cv_path_EGREP="$GREP -E"
3883   else
3884     if test -z "$EGREP"; then
3885  ac_path_EGREP_found=false
3886  # Loop through the user's path and test for each of PROGNAME-LIST
3887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890  IFS=$as_save_IFS
3891  test -z "$as_dir" && as_dir=.
3892    for ac_prog in egrep; do
3893    for ac_exec_ext in '' $ac_executable_extensions; do
3894      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3895      as_fn_executable_p "$ac_path_EGREP" || continue
3896# Check for GNU ac_path_EGREP and select it if it is found.
3897  # Check for GNU $ac_path_EGREP
3898case `"$ac_path_EGREP" --version 2>&1` in
3899*GNU*)
3900  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3901*)
3902  ac_count=0
3903  $as_echo_n 0123456789 >"conftest.in"
3904  while :
3905  do
3906    cat "conftest.in" "conftest.in" >"conftest.tmp"
3907    mv "conftest.tmp" "conftest.in"
3908    cp "conftest.in" "conftest.nl"
3909    $as_echo 'EGREP' >> "conftest.nl"
3910    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912    as_fn_arith $ac_count + 1 && ac_count=$as_val
3913    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3914      # Best one so far, save it but keep looking for a better one
3915      ac_cv_path_EGREP="$ac_path_EGREP"
3916      ac_path_EGREP_max=$ac_count
3917    fi
3918    # 10*(2^10) chars as input seems more than enough
3919    test $ac_count -gt 10 && break
3920  done
3921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
3923
3924      $ac_path_EGREP_found && break 3
3925    done
3926  done
3927  done
3928IFS=$as_save_IFS
3929  if test -z "$ac_cv_path_EGREP"; then
3930    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3931  fi
3932else
3933  ac_cv_path_EGREP=$EGREP
3934fi
3935
3936   fi
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3939$as_echo "$ac_cv_path_EGREP" >&6; }
3940 EGREP="$ac_cv_path_EGREP"
3941
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3944$as_echo_n "checking for fgrep... " >&6; }
3945if ${ac_cv_path_FGREP+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3949   then ac_cv_path_FGREP="$GREP -F"
3950   else
3951     if test -z "$FGREP"; then
3952  ac_path_FGREP_found=false
3953  # Loop through the user's path and test for each of PROGNAME-LIST
3954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957  IFS=$as_save_IFS
3958  test -z "$as_dir" && as_dir=.
3959    for ac_prog in fgrep; do
3960    for ac_exec_ext in '' $ac_executable_extensions; do
3961      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3962      as_fn_executable_p "$ac_path_FGREP" || continue
3963# Check for GNU ac_path_FGREP and select it if it is found.
3964  # Check for GNU $ac_path_FGREP
3965case `"$ac_path_FGREP" --version 2>&1` in
3966*GNU*)
3967  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3968*)
3969  ac_count=0
3970  $as_echo_n 0123456789 >"conftest.in"
3971  while :
3972  do
3973    cat "conftest.in" "conftest.in" >"conftest.tmp"
3974    mv "conftest.tmp" "conftest.in"
3975    cp "conftest.in" "conftest.nl"
3976    $as_echo 'FGREP' >> "conftest.nl"
3977    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979    as_fn_arith $ac_count + 1 && ac_count=$as_val
3980    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3981      # Best one so far, save it but keep looking for a better one
3982      ac_cv_path_FGREP="$ac_path_FGREP"
3983      ac_path_FGREP_max=$ac_count
3984    fi
3985    # 10*(2^10) chars as input seems more than enough
3986    test $ac_count -gt 10 && break
3987  done
3988  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
3991      $ac_path_FGREP_found && break 3
3992    done
3993  done
3994  done
3995IFS=$as_save_IFS
3996  if test -z "$ac_cv_path_FGREP"; then
3997    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998  fi
3999else
4000  ac_cv_path_FGREP=$FGREP
4001fi
4002
4003   fi
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4006$as_echo "$ac_cv_path_FGREP" >&6; }
4007 FGREP="$ac_cv_path_FGREP"
4008
4009
4010test -z "$GREP" && GREP=grep
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030# Check whether --with-gnu-ld was given.
4031if test "${with_gnu_ld+set}" = set; then :
4032  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4033else
4034  with_gnu_ld=no
4035fi
4036
4037ac_prog=ld
4038if test yes = "$GCC"; then
4039  # Check if gcc -print-prog-name=ld gives a path.
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4041$as_echo_n "checking for ld used by $CC... " >&6; }
4042  case $host in
4043  *-*-mingw*)
4044    # gcc leaves a trailing carriage return, which upsets mingw
4045    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4046  *)
4047    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4048  esac
4049  case $ac_prog in
4050    # Accept absolute paths.
4051    [\\/]* | ?:[\\/]*)
4052      re_direlt='/[^/][^/]*/\.\./'
4053      # Canonicalize the pathname of ld
4054      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4055      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4056	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4057      done
4058      test -z "$LD" && LD=$ac_prog
4059      ;;
4060  "")
4061    # If it fails, then pretend we aren't using GCC.
4062    ac_prog=ld
4063    ;;
4064  *)
4065    # If it is relative, then search for the first ld in PATH.
4066    with_gnu_ld=unknown
4067    ;;
4068  esac
4069elif test yes = "$with_gnu_ld"; then
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4071$as_echo_n "checking for GNU ld... " >&6; }
4072else
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4074$as_echo_n "checking for non-GNU ld... " >&6; }
4075fi
4076if ${lt_cv_path_LD+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -z "$LD"; then
4080  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4081  for ac_dir in $PATH; do
4082    IFS=$lt_save_ifs
4083    test -z "$ac_dir" && ac_dir=.
4084    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4085      lt_cv_path_LD=$ac_dir/$ac_prog
4086      # Check to see if the program is GNU ld.  I'd rather use --version,
4087      # but apparently some variants of GNU ld only accept -v.
4088      # Break only if it was the GNU/non-GNU ld that we prefer.
4089      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4090      *GNU* | *'with BFD'*)
4091	test no != "$with_gnu_ld" && break
4092	;;
4093      *)
4094	test yes != "$with_gnu_ld" && break
4095	;;
4096      esac
4097    fi
4098  done
4099  IFS=$lt_save_ifs
4100else
4101  lt_cv_path_LD=$LD # Let the user override the test with a path.
4102fi
4103fi
4104
4105LD=$lt_cv_path_LD
4106if test -n "$LD"; then
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4108$as_echo "$LD" >&6; }
4109else
4110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
4112fi
4113test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4115$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4116if ${lt_cv_prog_gnu_ld+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4120case `$LD -v 2>&1 </dev/null` in
4121*GNU* | *'with BFD'*)
4122  lt_cv_prog_gnu_ld=yes
4123  ;;
4124*)
4125  lt_cv_prog_gnu_ld=no
4126  ;;
4127esac
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4130$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4131with_gnu_ld=$lt_cv_prog_gnu_ld
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4142$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4143if ${lt_cv_path_NM+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -n "$NM"; then
4147  # Let the user override the test.
4148  lt_cv_path_NM=$NM
4149else
4150  lt_nm_to_check=${ac_tool_prefix}nm
4151  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4152    lt_nm_to_check="$lt_nm_to_check nm"
4153  fi
4154  for lt_tmp_nm in $lt_nm_to_check; do
4155    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4156    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4157      IFS=$lt_save_ifs
4158      test -z "$ac_dir" && ac_dir=.
4159      tmp_nm=$ac_dir/$lt_tmp_nm
4160      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4161	# Check to see if the nm accepts a BSD-compat flag.
4162	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4163	#   nm: unknown option "B" ignored
4164	# Tru64's nm complains that /dev/null is an invalid object file
4165	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4166	case $build_os in
4167	mingw*) lt_bad_file=conftest.nm/nofile ;;
4168	*) lt_bad_file=/dev/null ;;
4169	esac
4170	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4171	*$lt_bad_file* | *'Invalid file or object type'*)
4172	  lt_cv_path_NM="$tmp_nm -B"
4173	  break 2
4174	  ;;
4175	*)
4176	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4177	  */dev/null*)
4178	    lt_cv_path_NM="$tmp_nm -p"
4179	    break 2
4180	    ;;
4181	  *)
4182	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4183	    continue # so that we can try to find one that supports BSD flags
4184	    ;;
4185	  esac
4186	  ;;
4187	esac
4188      fi
4189    done
4190    IFS=$lt_save_ifs
4191  done
4192  : ${lt_cv_path_NM=no}
4193fi
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4196$as_echo "$lt_cv_path_NM" >&6; }
4197if test no != "$lt_cv_path_NM"; then
4198  NM=$lt_cv_path_NM
4199else
4200  # Didn't find any BSD compatible name lister, look for dumpbin.
4201  if test -n "$DUMPBIN"; then :
4202    # Let the user override the test.
4203  else
4204    if test -n "$ac_tool_prefix"; then
4205  for ac_prog in dumpbin "link -dump"
4206  do
4207    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
4211if ${ac_cv_prog_DUMPBIN+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if test -n "$DUMPBIN"; then
4215  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_exec_ext in '' $ac_executable_extensions; do
4223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226    break 2
4227  fi
4228done
4229  done
4230IFS=$as_save_IFS
4231
4232fi
4233fi
4234DUMPBIN=$ac_cv_prog_DUMPBIN
4235if test -n "$DUMPBIN"; then
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4237$as_echo "$DUMPBIN" >&6; }
4238else
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240$as_echo "no" >&6; }
4241fi
4242
4243
4244    test -n "$DUMPBIN" && break
4245  done
4246fi
4247if test -z "$DUMPBIN"; then
4248  ac_ct_DUMPBIN=$DUMPBIN
4249  for ac_prog in dumpbin "link -dump"
4250do
4251  # Extract the first word of "$ac_prog", so it can be a program name with args.
4252set dummy $ac_prog; ac_word=$2
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
4255if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -n "$ac_ct_DUMPBIN"; then
4259  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264  IFS=$as_save_IFS
4265  test -z "$as_dir" && as_dir=.
4266    for ac_exec_ext in '' $ac_executable_extensions; do
4267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270    break 2
4271  fi
4272done
4273  done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4279if test -n "$ac_ct_DUMPBIN"; then
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4281$as_echo "$ac_ct_DUMPBIN" >&6; }
4282else
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287
4288  test -n "$ac_ct_DUMPBIN" && break
4289done
4290
4291  if test "x$ac_ct_DUMPBIN" = x; then
4292    DUMPBIN=":"
4293  else
4294    case $cross_compiling:$ac_tool_warned in
4295yes:)
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4298ac_tool_warned=yes ;;
4299esac
4300    DUMPBIN=$ac_ct_DUMPBIN
4301  fi
4302fi
4303
4304    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4305    *COFF*)
4306      DUMPBIN="$DUMPBIN -symbols -headers"
4307      ;;
4308    *)
4309      DUMPBIN=:
4310      ;;
4311    esac
4312  fi
4313
4314  if test : != "$DUMPBIN"; then
4315    NM=$DUMPBIN
4316  fi
4317fi
4318test -z "$NM" && NM=nm
4319
4320
4321
4322
4323
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4326$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4327if ${lt_cv_nm_interface+:} false; then :
4328  $as_echo_n "(cached) " >&6
4329else
4330  lt_cv_nm_interface="BSD nm"
4331  echo "int some_variable = 0;" > conftest.$ac_ext
4332  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4333  (eval "$ac_compile" 2>conftest.err)
4334  cat conftest.err >&5
4335  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4336  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4337  cat conftest.err >&5
4338  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4339  cat conftest.out >&5
4340  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4341    lt_cv_nm_interface="MS dumpbin"
4342  fi
4343  rm -f conftest*
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4346$as_echo "$lt_cv_nm_interface" >&6; }
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4349$as_echo_n "checking whether ln -s works... " >&6; }
4350LN_S=$as_ln_s
4351if test "$LN_S" = "ln -s"; then
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353$as_echo "yes" >&6; }
4354else
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4356$as_echo "no, using $LN_S" >&6; }
4357fi
4358
4359# find the maximum length of command line arguments
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4361$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4362if ${lt_cv_sys_max_cmd_len+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365    i=0
4366  teststring=ABCD
4367
4368  case $build_os in
4369  msdosdjgpp*)
4370    # On DJGPP, this test can blow up pretty badly due to problems in libc
4371    # (any single argument exceeding 2000 bytes causes a buffer overrun
4372    # during glob expansion).  Even if it were fixed, the result of this
4373    # check would be larger than it should be.
4374    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4375    ;;
4376
4377  gnu*)
4378    # Under GNU Hurd, this test is not required because there is
4379    # no limit to the length of command line arguments.
4380    # Libtool will interpret -1 as no limit whatsoever
4381    lt_cv_sys_max_cmd_len=-1;
4382    ;;
4383
4384  cygwin* | mingw* | cegcc*)
4385    # On Win9x/ME, this test blows up -- it succeeds, but takes
4386    # about 5 minutes as the teststring grows exponentially.
4387    # Worse, since 9x/ME are not pre-emptively multitasking,
4388    # you end up with a "frozen" computer, even though with patience
4389    # the test eventually succeeds (with a max line length of 256k).
4390    # Instead, let's just punt: use the minimum linelength reported by
4391    # all of the supported platforms: 8192 (on NT/2K/XP).
4392    lt_cv_sys_max_cmd_len=8192;
4393    ;;
4394
4395  mint*)
4396    # On MiNT this can take a long time and run out of memory.
4397    lt_cv_sys_max_cmd_len=8192;
4398    ;;
4399
4400  amigaos*)
4401    # On AmigaOS with pdksh, this test takes hours, literally.
4402    # So we just punt and use a minimum line length of 8192.
4403    lt_cv_sys_max_cmd_len=8192;
4404    ;;
4405
4406  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4407    # This has been around since 386BSD, at least.  Likely further.
4408    if test -x /sbin/sysctl; then
4409      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4410    elif test -x /usr/sbin/sysctl; then
4411      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4412    else
4413      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4414    fi
4415    # And add a safety zone
4416    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4417    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4418    ;;
4419
4420  interix*)
4421    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4422    lt_cv_sys_max_cmd_len=196608
4423    ;;
4424
4425  os2*)
4426    # The test takes a long time on OS/2.
4427    lt_cv_sys_max_cmd_len=8192
4428    ;;
4429
4430  osf*)
4431    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4432    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4433    # nice to cause kernel panics so lets avoid the loop below.
4434    # First set a reasonable default.
4435    lt_cv_sys_max_cmd_len=16384
4436    #
4437    if test -x /sbin/sysconfig; then
4438      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4439        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4440      esac
4441    fi
4442    ;;
4443  sco3.2v5*)
4444    lt_cv_sys_max_cmd_len=102400
4445    ;;
4446  sysv5* | sco5v6* | sysv4.2uw2*)
4447    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4448    if test -n "$kargmax"; then
4449      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4450    else
4451      lt_cv_sys_max_cmd_len=32768
4452    fi
4453    ;;
4454  *)
4455    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4456    if test -n "$lt_cv_sys_max_cmd_len" && \
4457       test undefined != "$lt_cv_sys_max_cmd_len"; then
4458      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4460    else
4461      # Make teststring a little bigger before we do anything with it.
4462      # a 1K string should be a reasonable start.
4463      for i in 1 2 3 4 5 6 7 8; do
4464        teststring=$teststring$teststring
4465      done
4466      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4467      # If test is not a shell built-in, we'll probably end up computing a
4468      # maximum length that is only half of the actual maximum length, but
4469      # we can't tell.
4470      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4471	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4472	      test 17 != "$i" # 1/2 MB should be enough
4473      do
4474        i=`expr $i + 1`
4475        teststring=$teststring$teststring
4476      done
4477      # Only check the string length outside the loop.
4478      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4479      teststring=
4480      # Add a significant safety factor because C++ compilers can tack on
4481      # massive amounts of additional arguments before passing them to the
4482      # linker.  It appears as though 1/2 is a usable value.
4483      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4484    fi
4485    ;;
4486  esac
4487
4488fi
4489
4490if test -n "$lt_cv_sys_max_cmd_len"; then
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4492$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4493else
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4495$as_echo "none" >&6; }
4496fi
4497max_cmd_len=$lt_cv_sys_max_cmd_len
4498
4499
4500
4501
4502
4503
4504: ${CP="cp -f"}
4505: ${MV="mv -f"}
4506: ${RM="rm -f"}
4507
4508if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4509  lt_unset=unset
4510else
4511  lt_unset=false
4512fi
4513
4514
4515
4516
4517
4518# test EBCDIC or ASCII
4519case `echo X|tr X '\101'` in
4520 A) # ASCII based system
4521    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4522  lt_SP2NL='tr \040 \012'
4523  lt_NL2SP='tr \015\012 \040\040'
4524  ;;
4525 *) # EBCDIC based system
4526  lt_SP2NL='tr \100 \n'
4527  lt_NL2SP='tr \r\n \100\100'
4528  ;;
4529esac
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4540$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4541if ${lt_cv_to_host_file_cmd+:} false; then :
4542  $as_echo_n "(cached) " >&6
4543else
4544  case $host in
4545  *-*-mingw* )
4546    case $build in
4547      *-*-mingw* ) # actually msys
4548        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4549        ;;
4550      *-*-cygwin* )
4551        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4552        ;;
4553      * ) # otherwise, assume *nix
4554        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4555        ;;
4556    esac
4557    ;;
4558  *-*-cygwin* )
4559    case $build in
4560      *-*-mingw* ) # actually msys
4561        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4562        ;;
4563      *-*-cygwin* )
4564        lt_cv_to_host_file_cmd=func_convert_file_noop
4565        ;;
4566      * ) # otherwise, assume *nix
4567        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4568        ;;
4569    esac
4570    ;;
4571  * ) # unhandled hosts (and "normal" native builds)
4572    lt_cv_to_host_file_cmd=func_convert_file_noop
4573    ;;
4574esac
4575
4576fi
4577
4578to_host_file_cmd=$lt_cv_to_host_file_cmd
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4580$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4581
4582
4583
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4587$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4588if ${lt_cv_to_tool_file_cmd+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  #assume ordinary cross tools, or native build.
4592lt_cv_to_tool_file_cmd=func_convert_file_noop
4593case $host in
4594  *-*-mingw* )
4595    case $build in
4596      *-*-mingw* ) # actually msys
4597        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4598        ;;
4599    esac
4600    ;;
4601esac
4602
4603fi
4604
4605to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4607$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4608
4609
4610
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4614$as_echo_n "checking for $LD option to reload object files... " >&6; }
4615if ${lt_cv_ld_reload_flag+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  lt_cv_ld_reload_flag='-r'
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4621$as_echo "$lt_cv_ld_reload_flag" >&6; }
4622reload_flag=$lt_cv_ld_reload_flag
4623case $reload_flag in
4624"" | " "*) ;;
4625*) reload_flag=" $reload_flag" ;;
4626esac
4627reload_cmds='$LD$reload_flag -o $output$reload_objs'
4628case $host_os in
4629  cygwin* | mingw* | pw32* | cegcc*)
4630    if test yes != "$GCC"; then
4631      reload_cmds=false
4632    fi
4633    ;;
4634  darwin*)
4635    if test yes = "$GCC"; then
4636      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4637    else
4638      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4639    fi
4640    ;;
4641esac
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651if test -n "$ac_tool_prefix"; then
4652  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4653set dummy ${ac_tool_prefix}objdump; ac_word=$2
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655$as_echo_n "checking for $ac_word... " >&6; }
4656if ${ac_cv_prog_OBJDUMP+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  if test -n "$OBJDUMP"; then
4660  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665  IFS=$as_save_IFS
4666  test -z "$as_dir" && as_dir=.
4667    for ac_exec_ext in '' $ac_executable_extensions; do
4668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674  done
4675IFS=$as_save_IFS
4676
4677fi
4678fi
4679OBJDUMP=$ac_cv_prog_OBJDUMP
4680if test -n "$OBJDUMP"; then
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4682$as_echo "$OBJDUMP" >&6; }
4683else
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685$as_echo "no" >&6; }
4686fi
4687
4688
4689fi
4690if test -z "$ac_cv_prog_OBJDUMP"; then
4691  ac_ct_OBJDUMP=$OBJDUMP
4692  # Extract the first word of "objdump", so it can be a program name with args.
4693set dummy objdump; ac_word=$2
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
4696if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  if test -n "$ac_ct_OBJDUMP"; then
4700  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705  IFS=$as_save_IFS
4706  test -z "$as_dir" && as_dir=.
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4720if test -n "$ac_ct_OBJDUMP"; then
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4722$as_echo "$ac_ct_OBJDUMP" >&6; }
4723else
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728  if test "x$ac_ct_OBJDUMP" = x; then
4729    OBJDUMP="false"
4730  else
4731    case $cross_compiling:$ac_tool_warned in
4732yes:)
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737    OBJDUMP=$ac_ct_OBJDUMP
4738  fi
4739else
4740  OBJDUMP="$ac_cv_prog_OBJDUMP"
4741fi
4742
4743test -z "$OBJDUMP" && OBJDUMP=objdump
4744
4745
4746
4747
4748
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4751$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4752if ${lt_cv_deplibs_check_method+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  lt_cv_file_magic_cmd='$MAGIC_CMD'
4756lt_cv_file_magic_test_file=
4757lt_cv_deplibs_check_method='unknown'
4758# Need to set the preceding variable on all platforms that support
4759# interlibrary dependencies.
4760# 'none' -- dependencies not supported.
4761# 'unknown' -- same as none, but documents that we really don't know.
4762# 'pass_all' -- all dependencies passed with no checks.
4763# 'test_compile' -- check by making test program.
4764# 'file_magic [[regex]]' -- check by looking for files in library path
4765# that responds to the $file_magic_cmd with a given extended regex.
4766# If you have 'file' or equivalent on your system and you're not sure
4767# whether 'pass_all' will *always* work, you probably want this one.
4768
4769case $host_os in
4770aix[4-9]*)
4771  lt_cv_deplibs_check_method=pass_all
4772  ;;
4773
4774beos*)
4775  lt_cv_deplibs_check_method=pass_all
4776  ;;
4777
4778bsdi[45]*)
4779  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4780  lt_cv_file_magic_cmd='/usr/bin/file -L'
4781  lt_cv_file_magic_test_file=/shlib/libc.so
4782  ;;
4783
4784cygwin*)
4785  # func_win32_libid is a shell function defined in ltmain.sh
4786  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4787  lt_cv_file_magic_cmd='func_win32_libid'
4788  ;;
4789
4790mingw* | pw32*)
4791  # Base MSYS/MinGW do not provide the 'file' command needed by
4792  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4793  # unless we find 'file', for example because we are cross-compiling.
4794  if ( file / ) >/dev/null 2>&1; then
4795    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4796    lt_cv_file_magic_cmd='func_win32_libid'
4797  else
4798    # Keep this pattern in sync with the one in func_win32_libid.
4799    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4800    lt_cv_file_magic_cmd='$OBJDUMP -f'
4801  fi
4802  ;;
4803
4804cegcc*)
4805  # use the weaker test based on 'objdump'. See mingw*.
4806  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4807  lt_cv_file_magic_cmd='$OBJDUMP -f'
4808  ;;
4809
4810darwin* | rhapsody*)
4811  lt_cv_deplibs_check_method=pass_all
4812  ;;
4813
4814freebsd* | dragonfly*)
4815  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4816    case $host_cpu in
4817    i*86 )
4818      # Not sure whether the presence of OpenBSD here was a mistake.
4819      # Let's accept both of them until this is cleared up.
4820      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4821      lt_cv_file_magic_cmd=/usr/bin/file
4822      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4823      ;;
4824    esac
4825  else
4826    lt_cv_deplibs_check_method=pass_all
4827  fi
4828  ;;
4829
4830haiku*)
4831  lt_cv_deplibs_check_method=pass_all
4832  ;;
4833
4834hpux10.20* | hpux11*)
4835  lt_cv_file_magic_cmd=/usr/bin/file
4836  case $host_cpu in
4837  ia64*)
4838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4839    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4840    ;;
4841  hppa*64*)
4842    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]'
4843    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4844    ;;
4845  *)
4846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4847    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4848    ;;
4849  esac
4850  ;;
4851
4852interix[3-9]*)
4853  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4854  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4855  ;;
4856
4857irix5* | irix6* | nonstopux*)
4858  case $LD in
4859  *-32|*"-32 ") libmagic=32-bit;;
4860  *-n32|*"-n32 ") libmagic=N32;;
4861  *-64|*"-64 ") libmagic=64-bit;;
4862  *) libmagic=never-match;;
4863  esac
4864  lt_cv_deplibs_check_method=pass_all
4865  ;;
4866
4867# This must be glibc/ELF.
4868linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872netbsd* | netbsdelf*-gnu)
4873  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4875  else
4876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4877  fi
4878  ;;
4879
4880newos6*)
4881  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4882  lt_cv_file_magic_cmd=/usr/bin/file
4883  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4884  ;;
4885
4886*nto* | *qnx*)
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890openbsd* | bitrig*)
4891  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4893  else
4894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4895  fi
4896  ;;
4897
4898osf3* | osf4* | osf5*)
4899  lt_cv_deplibs_check_method=pass_all
4900  ;;
4901
4902rdos*)
4903  lt_cv_deplibs_check_method=pass_all
4904  ;;
4905
4906solaris*)
4907  lt_cv_deplibs_check_method=pass_all
4908  ;;
4909
4910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4911  lt_cv_deplibs_check_method=pass_all
4912  ;;
4913
4914sysv4 | sysv4.3*)
4915  case $host_vendor in
4916  motorola)
4917    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]'
4918    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4919    ;;
4920  ncr)
4921    lt_cv_deplibs_check_method=pass_all
4922    ;;
4923  sequent)
4924    lt_cv_file_magic_cmd='/bin/file'
4925    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4926    ;;
4927  sni)
4928    lt_cv_file_magic_cmd='/bin/file'
4929    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4930    lt_cv_file_magic_test_file=/lib/libc.so
4931    ;;
4932  siemens)
4933    lt_cv_deplibs_check_method=pass_all
4934    ;;
4935  pc)
4936    lt_cv_deplibs_check_method=pass_all
4937    ;;
4938  esac
4939  ;;
4940
4941tpf*)
4942  lt_cv_deplibs_check_method=pass_all
4943  ;;
4944os2*)
4945  lt_cv_deplibs_check_method=pass_all
4946  ;;
4947esac
4948
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4951$as_echo "$lt_cv_deplibs_check_method" >&6; }
4952
4953file_magic_glob=
4954want_nocaseglob=no
4955if test "$build" = "$host"; then
4956  case $host_os in
4957  mingw* | pw32*)
4958    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4959      want_nocaseglob=yes
4960    else
4961      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4962    fi
4963    ;;
4964  esac
4965fi
4966
4967file_magic_cmd=$lt_cv_file_magic_cmd
4968deplibs_check_method=$lt_cv_deplibs_check_method
4969test -z "$deplibs_check_method" && deplibs_check_method=unknown
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992if test -n "$ac_tool_prefix"; then
4993  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4994set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996$as_echo_n "checking for $ac_word... " >&6; }
4997if ${ac_cv_prog_DLLTOOL+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test -n "$DLLTOOL"; then
5001  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015  done
5016IFS=$as_save_IFS
5017
5018fi
5019fi
5020DLLTOOL=$ac_cv_prog_DLLTOOL
5021if test -n "$DLLTOOL"; then
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5023$as_echo "$DLLTOOL" >&6; }
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027fi
5028
5029
5030fi
5031if test -z "$ac_cv_prog_DLLTOOL"; then
5032  ac_ct_DLLTOOL=$DLLTOOL
5033  # Extract the first word of "dlltool", so it can be a program name with args.
5034set dummy dlltool; ac_word=$2
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036$as_echo_n "checking for $ac_word... " >&6; }
5037if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  if test -n "$ac_ct_DLLTOOL"; then
5041  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046  IFS=$as_save_IFS
5047  test -z "$as_dir" && as_dir=.
5048    for ac_exec_ext in '' $ac_executable_extensions; do
5049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052    break 2
5053  fi
5054done
5055  done
5056IFS=$as_save_IFS
5057
5058fi
5059fi
5060ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5061if test -n "$ac_ct_DLLTOOL"; then
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5063$as_echo "$ac_ct_DLLTOOL" >&6; }
5064else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }
5067fi
5068
5069  if test "x$ac_ct_DLLTOOL" = x; then
5070    DLLTOOL="false"
5071  else
5072    case $cross_compiling:$ac_tool_warned in
5073yes:)
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076ac_tool_warned=yes ;;
5077esac
5078    DLLTOOL=$ac_ct_DLLTOOL
5079  fi
5080else
5081  DLLTOOL="$ac_cv_prog_DLLTOOL"
5082fi
5083
5084test -z "$DLLTOOL" && DLLTOOL=dlltool
5085
5086
5087
5088
5089
5090
5091
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5093$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5094if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  lt_cv_sharedlib_from_linklib_cmd='unknown'
5098
5099case $host_os in
5100cygwin* | mingw* | pw32* | cegcc*)
5101  # two different shell functions defined in ltmain.sh;
5102  # decide which one to use based on capabilities of $DLLTOOL
5103  case `$DLLTOOL --help 2>&1` in
5104  *--identify-strict*)
5105    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5106    ;;
5107  *)
5108    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5109    ;;
5110  esac
5111  ;;
5112*)
5113  # fallback: assume linklib IS sharedlib
5114  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5115  ;;
5116esac
5117
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5120$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5121sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5122test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "$ac_tool_prefix"; then
5132  for ac_prog in ar
5133  do
5134    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
5138if ${ac_cv_prog_AR+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  if test -n "$AR"; then
5142  ac_cv_prog_AR="$AR" # Let the user override the test.
5143else
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149    for ac_exec_ext in '' $ac_executable_extensions; do
5150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156  done
5157IFS=$as_save_IFS
5158
5159fi
5160fi
5161AR=$ac_cv_prog_AR
5162if test -n "$AR"; then
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5164$as_echo "$AR" >&6; }
5165else
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168fi
5169
5170
5171    test -n "$AR" && break
5172  done
5173fi
5174if test -z "$AR"; then
5175  ac_ct_AR=$AR
5176  for ac_prog in ar
5177do
5178  # Extract the first word of "$ac_prog", so it can be a program name with args.
5179set dummy $ac_prog; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_ac_ct_AR+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$ac_ct_AR"; then
5186  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_ac_ct_AR="$ac_prog"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205ac_ct_AR=$ac_cv_prog_ac_ct_AR
5206if test -n "$ac_ct_AR"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5208$as_echo "$ac_ct_AR" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214
5215  test -n "$ac_ct_AR" && break
5216done
5217
5218  if test "x$ac_ct_AR" = x; then
5219    AR="false"
5220  else
5221    case $cross_compiling:$ac_tool_warned in
5222yes:)
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225ac_tool_warned=yes ;;
5226esac
5227    AR=$ac_ct_AR
5228  fi
5229fi
5230
5231: ${AR=ar}
5232: ${AR_FLAGS=cr}
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5245$as_echo_n "checking for archiver @FILE support... " >&6; }
5246if ${lt_cv_ar_at_file+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  lt_cv_ar_at_file=no
5250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252
5253int
5254main ()
5255{
5256
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_compile "$LINENO"; then :
5262  echo conftest.$ac_objext > conftest.lst
5263      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5264      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5265  (eval $lt_ar_try) 2>&5
5266  ac_status=$?
5267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268  test $ac_status = 0; }
5269      if test 0 -eq "$ac_status"; then
5270	# Ensure the archiver fails upon bogus file names.
5271	rm -f conftest.$ac_objext libconftest.a
5272	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5273  (eval $lt_ar_try) 2>&5
5274  ac_status=$?
5275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5276  test $ac_status = 0; }
5277	if test 0 -ne "$ac_status"; then
5278          lt_cv_ar_at_file=@
5279        fi
5280      fi
5281      rm -f conftest.* libconftest.a
5282
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5288$as_echo "$lt_cv_ar_at_file" >&6; }
5289
5290if test no = "$lt_cv_ar_at_file"; then
5291  archiver_list_spec=
5292else
5293  archiver_list_spec=$lt_cv_ar_at_file
5294fi
5295
5296
5297
5298
5299
5300
5301
5302if test -n "$ac_tool_prefix"; then
5303  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5304set dummy ${ac_tool_prefix}strip; ac_word=$2
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
5307if ${ac_cv_prog_STRIP+:} false; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  if test -n "$STRIP"; then
5311  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5312else
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316  IFS=$as_save_IFS
5317  test -z "$as_dir" && as_dir=.
5318    for ac_exec_ext in '' $ac_executable_extensions; do
5319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322    break 2
5323  fi
5324done
5325  done
5326IFS=$as_save_IFS
5327
5328fi
5329fi
5330STRIP=$ac_cv_prog_STRIP
5331if test -n "$STRIP"; then
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5333$as_echo "$STRIP" >&6; }
5334else
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
5337fi
5338
5339
5340fi
5341if test -z "$ac_cv_prog_STRIP"; then
5342  ac_ct_STRIP=$STRIP
5343  # Extract the first word of "strip", so it can be a program name with args.
5344set dummy strip; ac_word=$2
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -n "$ac_ct_STRIP"; then
5351  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360    ac_cv_prog_ac_ct_STRIP="strip"
5361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365  done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5371if test -n "$ac_ct_STRIP"; then
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5373$as_echo "$ac_ct_STRIP" >&6; }
5374else
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379  if test "x$ac_ct_STRIP" = x; then
5380    STRIP=":"
5381  else
5382    case $cross_compiling:$ac_tool_warned in
5383yes:)
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386ac_tool_warned=yes ;;
5387esac
5388    STRIP=$ac_ct_STRIP
5389  fi
5390else
5391  STRIP="$ac_cv_prog_STRIP"
5392fi
5393
5394test -z "$STRIP" && STRIP=:
5395
5396
5397
5398
5399
5400
5401if test -n "$ac_tool_prefix"; then
5402  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5403set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_RANLIB+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  if test -n "$RANLIB"; then
5410  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415  IFS=$as_save_IFS
5416  test -z "$as_dir" && as_dir=.
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421    break 2
5422  fi
5423done
5424  done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429RANLIB=$ac_cv_prog_RANLIB
5430if test -n "$RANLIB"; then
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5432$as_echo "$RANLIB" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439fi
5440if test -z "$ac_cv_prog_RANLIB"; then
5441  ac_ct_RANLIB=$RANLIB
5442  # Extract the first word of "ranlib", so it can be a program name with args.
5443set dummy ranlib; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  if test -n "$ac_ct_RANLIB"; then
5450  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457    for ac_exec_ext in '' $ac_executable_extensions; do
5458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459    ac_cv_prog_ac_ct_RANLIB="ranlib"
5460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464  done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5470if test -n "$ac_ct_RANLIB"; then
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5472$as_echo "$ac_ct_RANLIB" >&6; }
5473else
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478  if test "x$ac_ct_RANLIB" = x; then
5479    RANLIB=":"
5480  else
5481    case $cross_compiling:$ac_tool_warned in
5482yes:)
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5485ac_tool_warned=yes ;;
5486esac
5487    RANLIB=$ac_ct_RANLIB
5488  fi
5489else
5490  RANLIB="$ac_cv_prog_RANLIB"
5491fi
5492
5493test -z "$RANLIB" && RANLIB=:
5494
5495
5496
5497
5498
5499
5500# Determine commands to create old-style static archives.
5501old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5502old_postinstall_cmds='chmod 644 $oldlib'
5503old_postuninstall_cmds=
5504
5505if test -n "$RANLIB"; then
5506  case $host_os in
5507  bitrig* | openbsd*)
5508    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5509    ;;
5510  *)
5511    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5512    ;;
5513  esac
5514  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5515fi
5516
5517case $host_os in
5518  darwin*)
5519    lock_old_archive_extraction=yes ;;
5520  *)
5521    lock_old_archive_extraction=no ;;
5522esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544for ac_prog in gawk mawk nawk awk
5545do
5546  # Extract the first word of "$ac_prog", so it can be a program name with args.
5547set dummy $ac_prog; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_prog_AWK+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  if test -n "$AWK"; then
5554  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559  IFS=$as_save_IFS
5560  test -z "$as_dir" && as_dir=.
5561    for ac_exec_ext in '' $ac_executable_extensions; do
5562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563    ac_cv_prog_AWK="$ac_prog"
5564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565    break 2
5566  fi
5567done
5568  done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573AWK=$ac_cv_prog_AWK
5574if test -n "$AWK"; then
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5576$as_echo "$AWK" >&6; }
5577else
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582
5583  test -n "$AWK" && break
5584done
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604# If no C compiler was specified, use CC.
5605LTCC=${LTCC-"$CC"}
5606
5607# If no C compiler flags were specified, use CFLAGS.
5608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5609
5610# Allow CC to be a program name with arguments.
5611compiler=$CC
5612
5613
5614# Check for command to grab the raw symbol name followed by C symbol from nm.
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5616$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5617if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620
5621# These are sane defaults that work on at least a few old systems.
5622# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5623
5624# Character class describing NM global symbol codes.
5625symcode='[BCDEGRST]'
5626
5627# Regexp to match symbols that can be accessed directly from C.
5628sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5629
5630# Define system-specific variables.
5631case $host_os in
5632aix*)
5633  symcode='[BCDT]'
5634  ;;
5635cygwin* | mingw* | pw32* | cegcc*)
5636  symcode='[ABCDGISTW]'
5637  ;;
5638hpux*)
5639  if test ia64 = "$host_cpu"; then
5640    symcode='[ABCDEGRST]'
5641  fi
5642  ;;
5643irix* | nonstopux*)
5644  symcode='[BCDEGRST]'
5645  ;;
5646osf*)
5647  symcode='[BCDEGQRST]'
5648  ;;
5649solaris*)
5650  symcode='[BDRT]'
5651  ;;
5652sco3.2v5*)
5653  symcode='[DT]'
5654  ;;
5655sysv4.2uw2*)
5656  symcode='[DT]'
5657  ;;
5658sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659  symcode='[ABDT]'
5660  ;;
5661sysv4)
5662  symcode='[DFNSTU]'
5663  ;;
5664esac
5665
5666# If we're using GNU nm, then use its standard symbol codes.
5667case `$NM -V 2>&1` in
5668*GNU* | *'with BFD'*)
5669  symcode='[ABCDGIRSTW]' ;;
5670esac
5671
5672if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5673  # Gets list of data symbols to import.
5674  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5675  # Adjust the below global symbol transforms to fixup imported variables.
5676  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5677  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5678  lt_c_name_lib_hook="\
5679  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5680  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5681else
5682  # Disable hooks by default.
5683  lt_cv_sys_global_symbol_to_import=
5684  lt_cdecl_hook=
5685  lt_c_name_hook=
5686  lt_c_name_lib_hook=
5687fi
5688
5689# Transform an extracted symbol line into a proper C declaration.
5690# Some systems (esp. on ia64) link data and code symbols differently,
5691# so use this general approach.
5692lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5693$lt_cdecl_hook\
5694" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5695" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5696
5697# Transform an extracted symbol line into symbol name and symbol address
5698lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5699$lt_c_name_hook\
5700" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5701" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5702
5703# Transform an extracted symbol line into symbol name with lib prefix and
5704# symbol address.
5705lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5706$lt_c_name_lib_hook\
5707" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5708" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5709" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5710
5711# Handle CRLF in mingw tool chain
5712opt_cr=
5713case $build_os in
5714mingw*)
5715  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5716  ;;
5717esac
5718
5719# Try without a prefix underscore, then with it.
5720for ac_symprfx in "" "_"; do
5721
5722  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5723  symxfrm="\\1 $ac_symprfx\\2 \\2"
5724
5725  # Write the raw and C identifiers.
5726  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5727    # Fake it for dumpbin and say T for any non-static function,
5728    # D for any global variable and I for any imported variable.
5729    # Also find C++ and __fastcall symbols from MSVC++,
5730    # which start with @ or ?.
5731    lt_cv_sys_global_symbol_pipe="$AWK '"\
5732"     {last_section=section; section=\$ 3};"\
5733"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5734"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5735"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5736"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5737"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5738"     \$ 0!~/External *\|/{next};"\
5739"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5740"     {if(hide[section]) next};"\
5741"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5742"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5743"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5744"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5745"     ' prfx=^$ac_symprfx"
5746  else
5747    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5748  fi
5749  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5750
5751  # Check to see that the pipe works correctly.
5752  pipe_works=no
5753
5754  rm -f conftest*
5755  cat > conftest.$ac_ext <<_LT_EOF
5756#ifdef __cplusplus
5757extern "C" {
5758#endif
5759char nm_test_var;
5760void nm_test_func(void);
5761void nm_test_func(void){}
5762#ifdef __cplusplus
5763}
5764#endif
5765int main(){nm_test_var='a';nm_test_func();return(0);}
5766_LT_EOF
5767
5768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5769  (eval $ac_compile) 2>&5
5770  ac_status=$?
5771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772  test $ac_status = 0; }; then
5773    # Now try to grab the symbols.
5774    nlist=conftest.nm
5775    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5776    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5777      # Try sorting and uniquifying the output.
5778      if sort "$nlist" | uniq > "$nlist"T; then
5779	mv -f "$nlist"T "$nlist"
5780      else
5781	rm -f "$nlist"T
5782      fi
5783
5784      # Make sure that we snagged all the symbols we need.
5785      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5786	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5787	  cat <<_LT_EOF > conftest.$ac_ext
5788/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5789#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5790/* DATA imports from DLLs on WIN32 can't be const, because runtime
5791   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5792# define LT_DLSYM_CONST
5793#elif defined __osf__
5794/* This system does not cope well with relocations in const data.  */
5795# define LT_DLSYM_CONST
5796#else
5797# define LT_DLSYM_CONST const
5798#endif
5799
5800#ifdef __cplusplus
5801extern "C" {
5802#endif
5803
5804_LT_EOF
5805	  # Now generate the symbol file.
5806	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5807
5808	  cat <<_LT_EOF >> conftest.$ac_ext
5809
5810/* The mapping between symbol names and symbols.  */
5811LT_DLSYM_CONST struct {
5812  const char *name;
5813  void       *address;
5814}
5815lt__PROGRAM__LTX_preloaded_symbols[] =
5816{
5817  { "@PROGRAM@", (void *) 0 },
5818_LT_EOF
5819	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5820	  cat <<\_LT_EOF >> conftest.$ac_ext
5821  {0, (void *) 0}
5822};
5823
5824/* This works around a problem in FreeBSD linker */
5825#ifdef FREEBSD_WORKAROUND
5826static const void *lt_preloaded_setup() {
5827  return lt__PROGRAM__LTX_preloaded_symbols;
5828}
5829#endif
5830
5831#ifdef __cplusplus
5832}
5833#endif
5834_LT_EOF
5835	  # Now try linking the two files.
5836	  mv conftest.$ac_objext conftstm.$ac_objext
5837	  lt_globsym_save_LIBS=$LIBS
5838	  lt_globsym_save_CFLAGS=$CFLAGS
5839	  LIBS=conftstm.$ac_objext
5840	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5841	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5842  (eval $ac_link) 2>&5
5843  ac_status=$?
5844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5846	    pipe_works=yes
5847	  fi
5848	  LIBS=$lt_globsym_save_LIBS
5849	  CFLAGS=$lt_globsym_save_CFLAGS
5850	else
5851	  echo "cannot find nm_test_func in $nlist" >&5
5852	fi
5853      else
5854	echo "cannot find nm_test_var in $nlist" >&5
5855      fi
5856    else
5857      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5858    fi
5859  else
5860    echo "$progname: failed program was:" >&5
5861    cat conftest.$ac_ext >&5
5862  fi
5863  rm -rf conftest* conftst*
5864
5865  # Do not use the global_symbol_pipe unless it works.
5866  if test yes = "$pipe_works"; then
5867    break
5868  else
5869    lt_cv_sys_global_symbol_pipe=
5870  fi
5871done
5872
5873fi
5874
5875if test -z "$lt_cv_sys_global_symbol_pipe"; then
5876  lt_cv_sys_global_symbol_to_cdecl=
5877fi
5878if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5880$as_echo "failed" >&6; }
5881else
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5883$as_echo "ok" >&6; }
5884fi
5885
5886# Response file support.
5887if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5888  nm_file_list_spec='@'
5889elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5890  nm_file_list_spec='@'
5891fi
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5930$as_echo_n "checking for sysroot... " >&6; }
5931
5932# Check whether --with-sysroot was given.
5933if test "${with_sysroot+set}" = set; then :
5934  withval=$with_sysroot;
5935else
5936  with_sysroot=no
5937fi
5938
5939
5940lt_sysroot=
5941case $with_sysroot in #(
5942 yes)
5943   if test yes = "$GCC"; then
5944     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5945   fi
5946   ;; #(
5947 /*)
5948   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5949   ;; #(
5950 no|'')
5951   ;; #(
5952 *)
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5954$as_echo "$with_sysroot" >&6; }
5955   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5956   ;;
5957esac
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5960$as_echo "${lt_sysroot:-no}" >&6; }
5961
5962
5963
5964
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5967$as_echo_n "checking for a working dd... " >&6; }
5968if ${ac_cv_path_lt_DD+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  printf 0123456789abcdef0123456789abcdef >conftest.i
5972cat conftest.i conftest.i >conftest2.i
5973: ${lt_DD:=$DD}
5974if test -z "$lt_DD"; then
5975  ac_path_lt_DD_found=false
5976  # Loop through the user's path and test for each of PROGNAME-LIST
5977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982    for ac_prog in dd; do
5983    for ac_exec_ext in '' $ac_executable_extensions; do
5984      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5985      as_fn_executable_p "$ac_path_lt_DD" || continue
5986if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5987  cmp -s conftest.i conftest.out \
5988  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5989fi
5990      $ac_path_lt_DD_found && break 3
5991    done
5992  done
5993  done
5994IFS=$as_save_IFS
5995  if test -z "$ac_cv_path_lt_DD"; then
5996    :
5997  fi
5998else
5999  ac_cv_path_lt_DD=$lt_DD
6000fi
6001
6002rm -f conftest.i conftest2.i conftest.out
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6005$as_echo "$ac_cv_path_lt_DD" >&6; }
6006
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6009$as_echo_n "checking how to truncate binary pipes... " >&6; }
6010if ${lt_cv_truncate_bin+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  printf 0123456789abcdef0123456789abcdef >conftest.i
6014cat conftest.i conftest.i >conftest2.i
6015lt_cv_truncate_bin=
6016if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6017  cmp -s conftest.i conftest.out \
6018  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6019fi
6020rm -f conftest.i conftest2.i conftest.out
6021test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6024$as_echo "$lt_cv_truncate_bin" >&6; }
6025
6026
6027
6028
6029
6030
6031
6032# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6033func_cc_basename ()
6034{
6035    for cc_temp in $*""; do
6036      case $cc_temp in
6037        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6038        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6039        \-*) ;;
6040        *) break;;
6041      esac
6042    done
6043    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6044}
6045
6046# Check whether --enable-libtool-lock was given.
6047if test "${enable_libtool_lock+set}" = set; then :
6048  enableval=$enable_libtool_lock;
6049fi
6050
6051test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6052
6053# Some flags need to be propagated to the compiler or linker for good
6054# libtool support.
6055case $host in
6056ia64-*-hpux*)
6057  # Find out what ABI is being produced by ac_compile, and set mode
6058  # options accordingly.
6059  echo 'int i;' > conftest.$ac_ext
6060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6061  (eval $ac_compile) 2>&5
6062  ac_status=$?
6063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064  test $ac_status = 0; }; then
6065    case `/usr/bin/file conftest.$ac_objext` in
6066      *ELF-32*)
6067	HPUX_IA64_MODE=32
6068	;;
6069      *ELF-64*)
6070	HPUX_IA64_MODE=64
6071	;;
6072    esac
6073  fi
6074  rm -rf conftest*
6075  ;;
6076*-*-irix6*)
6077  # Find out what ABI is being produced by ac_compile, and set linker
6078  # options accordingly.
6079  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6081  (eval $ac_compile) 2>&5
6082  ac_status=$?
6083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084  test $ac_status = 0; }; then
6085    if test yes = "$lt_cv_prog_gnu_ld"; then
6086      case `/usr/bin/file conftest.$ac_objext` in
6087	*32-bit*)
6088	  LD="${LD-ld} -melf32bsmip"
6089	  ;;
6090	*N32*)
6091	  LD="${LD-ld} -melf32bmipn32"
6092	  ;;
6093	*64-bit*)
6094	  LD="${LD-ld} -melf64bmip"
6095	;;
6096      esac
6097    else
6098      case `/usr/bin/file conftest.$ac_objext` in
6099	*32-bit*)
6100	  LD="${LD-ld} -32"
6101	  ;;
6102	*N32*)
6103	  LD="${LD-ld} -n32"
6104	  ;;
6105	*64-bit*)
6106	  LD="${LD-ld} -64"
6107	  ;;
6108      esac
6109    fi
6110  fi
6111  rm -rf conftest*
6112  ;;
6113
6114mips64*-*linux*)
6115  # Find out what ABI is being produced by ac_compile, and set linker
6116  # options accordingly.
6117  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6118  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6119  (eval $ac_compile) 2>&5
6120  ac_status=$?
6121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122  test $ac_status = 0; }; then
6123    emul=elf
6124    case `/usr/bin/file conftest.$ac_objext` in
6125      *32-bit*)
6126	emul="${emul}32"
6127	;;
6128      *64-bit*)
6129	emul="${emul}64"
6130	;;
6131    esac
6132    case `/usr/bin/file conftest.$ac_objext` in
6133      *MSB*)
6134	emul="${emul}btsmip"
6135	;;
6136      *LSB*)
6137	emul="${emul}ltsmip"
6138	;;
6139    esac
6140    case `/usr/bin/file conftest.$ac_objext` in
6141      *N32*)
6142	emul="${emul}n32"
6143	;;
6144    esac
6145    LD="${LD-ld} -m $emul"
6146  fi
6147  rm -rf conftest*
6148  ;;
6149
6150x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6151s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6152  # Find out what ABI is being produced by ac_compile, and set linker
6153  # options accordingly.  Note that the listed cases only cover the
6154  # situations where additional linker options are needed (such as when
6155  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6156  # vice versa); the common cases where no linker options are needed do
6157  # not appear in the list.
6158  echo 'int i;' > conftest.$ac_ext
6159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6160  (eval $ac_compile) 2>&5
6161  ac_status=$?
6162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163  test $ac_status = 0; }; then
6164    case `/usr/bin/file conftest.o` in
6165      *32-bit*)
6166	case $host in
6167	  x86_64-*kfreebsd*-gnu)
6168	    LD="${LD-ld} -m elf_i386_fbsd"
6169	    ;;
6170	  x86_64-*linux*)
6171	    case `/usr/bin/file conftest.o` in
6172	      *x86-64*)
6173		LD="${LD-ld} -m elf32_x86_64"
6174		;;
6175	      *)
6176		LD="${LD-ld} -m elf_i386"
6177		;;
6178	    esac
6179	    ;;
6180	  powerpc64le-*linux*)
6181	    LD="${LD-ld} -m elf32lppclinux"
6182	    ;;
6183	  powerpc64-*linux*)
6184	    LD="${LD-ld} -m elf32ppclinux"
6185	    ;;
6186	  s390x-*linux*)
6187	    LD="${LD-ld} -m elf_s390"
6188	    ;;
6189	  sparc64-*linux*)
6190	    LD="${LD-ld} -m elf32_sparc"
6191	    ;;
6192	esac
6193	;;
6194      *64-bit*)
6195	case $host in
6196	  x86_64-*kfreebsd*-gnu)
6197	    LD="${LD-ld} -m elf_x86_64_fbsd"
6198	    ;;
6199	  x86_64-*linux*)
6200	    LD="${LD-ld} -m elf_x86_64"
6201	    ;;
6202	  powerpcle-*linux*)
6203	    LD="${LD-ld} -m elf64lppc"
6204	    ;;
6205	  powerpc-*linux*)
6206	    LD="${LD-ld} -m elf64ppc"
6207	    ;;
6208	  s390*-*linux*|s390*-*tpf*)
6209	    LD="${LD-ld} -m elf64_s390"
6210	    ;;
6211	  sparc*-*linux*)
6212	    LD="${LD-ld} -m elf64_sparc"
6213	    ;;
6214	esac
6215	;;
6216    esac
6217  fi
6218  rm -rf conftest*
6219  ;;
6220
6221*-*-sco3.2v5*)
6222  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6223  SAVE_CFLAGS=$CFLAGS
6224  CFLAGS="$CFLAGS -belf"
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6226$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6227if ${lt_cv_cc_needs_belf+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238
6239int
6240main ()
6241{
6242
6243  ;
6244  return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_link "$LINENO"; then :
6248  lt_cv_cc_needs_belf=yes
6249else
6250  lt_cv_cc_needs_belf=no
6251fi
6252rm -f core conftest.err conftest.$ac_objext \
6253    conftest$ac_exeext conftest.$ac_ext
6254     ac_ext=c
6255ac_cpp='$CPP $CPPFLAGS'
6256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6262$as_echo "$lt_cv_cc_needs_belf" >&6; }
6263  if test yes != "$lt_cv_cc_needs_belf"; then
6264    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6265    CFLAGS=$SAVE_CFLAGS
6266  fi
6267  ;;
6268*-*solaris*)
6269  # Find out what ABI is being produced by ac_compile, and set linker
6270  # options accordingly.
6271  echo 'int i;' > conftest.$ac_ext
6272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6273  (eval $ac_compile) 2>&5
6274  ac_status=$?
6275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276  test $ac_status = 0; }; then
6277    case `/usr/bin/file conftest.o` in
6278    *64-bit*)
6279      case $lt_cv_prog_gnu_ld in
6280      yes*)
6281        case $host in
6282        i?86-*-solaris*|x86_64-*-solaris*)
6283          LD="${LD-ld} -m elf_x86_64"
6284          ;;
6285        sparc*-*-solaris*)
6286          LD="${LD-ld} -m elf64_sparc"
6287          ;;
6288        esac
6289        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6290        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6291          LD=${LD-ld}_sol2
6292        fi
6293        ;;
6294      *)
6295	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6296	  LD="${LD-ld} -64"
6297	fi
6298	;;
6299      esac
6300      ;;
6301    esac
6302  fi
6303  rm -rf conftest*
6304  ;;
6305esac
6306
6307need_locks=$enable_libtool_lock
6308
6309if test -n "$ac_tool_prefix"; then
6310  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6311set dummy ${ac_tool_prefix}mt; ac_word=$2
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313$as_echo_n "checking for $ac_word... " >&6; }
6314if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  if test -n "$MANIFEST_TOOL"; then
6318  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323  IFS=$as_save_IFS
6324  test -z "$as_dir" && as_dir=.
6325    for ac_exec_ext in '' $ac_executable_extensions; do
6326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329    break 2
6330  fi
6331done
6332  done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6338if test -n "$MANIFEST_TOOL"; then
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6340$as_echo "$MANIFEST_TOOL" >&6; }
6341else
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }
6344fi
6345
6346
6347fi
6348if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6349  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6350  # Extract the first word of "mt", so it can be a program name with args.
6351set dummy mt; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$ac_ct_MANIFEST_TOOL"; then
6358  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6378if test -n "$ac_ct_MANIFEST_TOOL"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6380$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6387    MANIFEST_TOOL=":"
6388  else
6389    case $cross_compiling:$ac_tool_warned in
6390yes:)
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393ac_tool_warned=yes ;;
6394esac
6395    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6396  fi
6397else
6398  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6399fi
6400
6401test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6403$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6404if ${lt_cv_path_mainfest_tool+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  lt_cv_path_mainfest_tool=no
6408  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6409  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6410  cat conftest.err >&5
6411  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6412    lt_cv_path_mainfest_tool=yes
6413  fi
6414  rm -f conftest*
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6417$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6418if test yes != "$lt_cv_path_mainfest_tool"; then
6419  MANIFEST_TOOL=:
6420fi
6421
6422
6423
6424
6425
6426
6427  case $host_os in
6428    rhapsody* | darwin*)
6429    if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if ${ac_cv_prog_DSYMUTIL+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  if test -n "$DSYMUTIL"; then
6438  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445    for ac_exec_ext in '' $ac_executable_extensions; do
6446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452  done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457DSYMUTIL=$ac_cv_prog_DSYMUTIL
6458if test -n "$DSYMUTIL"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6460$as_echo "$DSYMUTIL" >&6; }
6461else
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467fi
6468if test -z "$ac_cv_prog_DSYMUTIL"; then
6469  ac_ct_DSYMUTIL=$DSYMUTIL
6470  # Extract the first word of "dsymutil", so it can be a program name with args.
6471set dummy dsymutil; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$ac_ct_DSYMUTIL"; then
6478  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6498if test -n "$ac_ct_DSYMUTIL"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6500$as_echo "$ac_ct_DSYMUTIL" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506  if test "x$ac_ct_DSYMUTIL" = x; then
6507    DSYMUTIL=":"
6508  else
6509    case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515    DSYMUTIL=$ac_ct_DSYMUTIL
6516  fi
6517else
6518  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6519fi
6520
6521    if test -n "$ac_tool_prefix"; then
6522  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6523set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
6526if ${ac_cv_prog_NMEDIT+:} false; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529  if test -n "$NMEDIT"; then
6530  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535  IFS=$as_save_IFS
6536  test -z "$as_dir" && as_dir=.
6537    for ac_exec_ext in '' $ac_executable_extensions; do
6538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541    break 2
6542  fi
6543done
6544  done
6545IFS=$as_save_IFS
6546
6547fi
6548fi
6549NMEDIT=$ac_cv_prog_NMEDIT
6550if test -n "$NMEDIT"; then
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6552$as_echo "$NMEDIT" >&6; }
6553else
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558
6559fi
6560if test -z "$ac_cv_prog_NMEDIT"; then
6561  ac_ct_NMEDIT=$NMEDIT
6562  # Extract the first word of "nmedit", so it can be a program name with args.
6563set dummy nmedit; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
6566if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  if test -n "$ac_ct_NMEDIT"; then
6570  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577    for ac_exec_ext in '' $ac_executable_extensions; do
6578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584  done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6590if test -n "$ac_ct_NMEDIT"; then
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6592$as_echo "$ac_ct_NMEDIT" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598  if test "x$ac_ct_NMEDIT" = x; then
6599    NMEDIT=":"
6600  else
6601    case $cross_compiling:$ac_tool_warned in
6602yes:)
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605ac_tool_warned=yes ;;
6606esac
6607    NMEDIT=$ac_ct_NMEDIT
6608  fi
6609else
6610  NMEDIT="$ac_cv_prog_NMEDIT"
6611fi
6612
6613    if test -n "$ac_tool_prefix"; then
6614  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6615set dummy ${ac_tool_prefix}lipo; ac_word=$2
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
6618if ${ac_cv_prog_LIPO+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  if test -n "$LIPO"; then
6622  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627  IFS=$as_save_IFS
6628  test -z "$as_dir" && as_dir=.
6629    for ac_exec_ext in '' $ac_executable_extensions; do
6630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633    break 2
6634  fi
6635done
6636  done
6637IFS=$as_save_IFS
6638
6639fi
6640fi
6641LIPO=$ac_cv_prog_LIPO
6642if test -n "$LIPO"; then
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6644$as_echo "$LIPO" >&6; }
6645else
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650
6651fi
6652if test -z "$ac_cv_prog_LIPO"; then
6653  ac_ct_LIPO=$LIPO
6654  # Extract the first word of "lipo", so it can be a program name with args.
6655set dummy lipo; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
6658if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  if test -n "$ac_ct_LIPO"; then
6662  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  test -z "$as_dir" && as_dir=.
6669    for ac_exec_ext in '' $ac_executable_extensions; do
6670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671    ac_cv_prog_ac_ct_LIPO="lipo"
6672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676  done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6682if test -n "$ac_ct_LIPO"; then
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6684$as_echo "$ac_ct_LIPO" >&6; }
6685else
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
6688fi
6689
6690  if test "x$ac_ct_LIPO" = x; then
6691    LIPO=":"
6692  else
6693    case $cross_compiling:$ac_tool_warned in
6694yes:)
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699    LIPO=$ac_ct_LIPO
6700  fi
6701else
6702  LIPO="$ac_cv_prog_LIPO"
6703fi
6704
6705    if test -n "$ac_tool_prefix"; then
6706  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6707set dummy ${ac_tool_prefix}otool; ac_word=$2
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
6710if ${ac_cv_prog_OTOOL+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  if test -n "$OTOOL"; then
6714  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721    for ac_exec_ext in '' $ac_executable_extensions; do
6722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728  done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733OTOOL=$ac_cv_prog_OTOOL
6734if test -n "$OTOOL"; then
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6736$as_echo "$OTOOL" >&6; }
6737else
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
6740fi
6741
6742
6743fi
6744if test -z "$ac_cv_prog_OTOOL"; then
6745  ac_ct_OTOOL=$OTOOL
6746  # Extract the first word of "otool", so it can be a program name with args.
6747set dummy otool; ac_word=$2
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749$as_echo_n "checking for $ac_word... " >&6; }
6750if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  if test -n "$ac_ct_OTOOL"; then
6754  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  test -z "$as_dir" && as_dir=.
6761    for ac_exec_ext in '' $ac_executable_extensions; do
6762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763    ac_cv_prog_ac_ct_OTOOL="otool"
6764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765    break 2
6766  fi
6767done
6768  done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6774if test -n "$ac_ct_OTOOL"; then
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6776$as_echo "$ac_ct_OTOOL" >&6; }
6777else
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
6780fi
6781
6782  if test "x$ac_ct_OTOOL" = x; then
6783    OTOOL=":"
6784  else
6785    case $cross_compiling:$ac_tool_warned in
6786yes:)
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789ac_tool_warned=yes ;;
6790esac
6791    OTOOL=$ac_ct_OTOOL
6792  fi
6793else
6794  OTOOL="$ac_cv_prog_OTOOL"
6795fi
6796
6797    if test -n "$ac_tool_prefix"; then
6798  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}otool64; ac_word=$2
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if ${ac_cv_prog_OTOOL64+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  if test -n "$OTOOL64"; then
6806  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811  IFS=$as_save_IFS
6812  test -z "$as_dir" && as_dir=.
6813    for ac_exec_ext in '' $ac_executable_extensions; do
6814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817    break 2
6818  fi
6819done
6820  done
6821IFS=$as_save_IFS
6822
6823fi
6824fi
6825OTOOL64=$ac_cv_prog_OTOOL64
6826if test -n "$OTOOL64"; then
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6828$as_echo "$OTOOL64" >&6; }
6829else
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
6832fi
6833
6834
6835fi
6836if test -z "$ac_cv_prog_OTOOL64"; then
6837  ac_ct_OTOOL64=$OTOOL64
6838  # Extract the first word of "otool64", so it can be a program name with args.
6839set dummy otool64; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$ac_ct_OTOOL64"; then
6846  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855    ac_cv_prog_ac_ct_OTOOL64="otool64"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6866if test -n "$ac_ct_OTOOL64"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6868$as_echo "$ac_ct_OTOOL64" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874  if test "x$ac_ct_OTOOL64" = x; then
6875    OTOOL64=":"
6876  else
6877    case $cross_compiling:$ac_tool_warned in
6878yes:)
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883    OTOOL64=$ac_ct_OTOOL64
6884  fi
6885else
6886  OTOOL64="$ac_cv_prog_OTOOL64"
6887fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6916$as_echo_n "checking for -single_module linker flag... " >&6; }
6917if ${lt_cv_apple_cc_single_mod+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  lt_cv_apple_cc_single_mod=no
6921      if test -z "$LT_MULTI_MODULE"; then
6922	# By default we will add the -single_module flag. You can override
6923	# by either setting the environment variable LT_MULTI_MODULE
6924	# non-empty at configure time, or by adding -multi_module to the
6925	# link flags.
6926	rm -rf libconftest.dylib*
6927	echo "int foo(void){return 1;}" > conftest.c
6928	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6929-dynamiclib -Wl,-single_module conftest.c" >&5
6930	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6931	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6932        _lt_result=$?
6933	# If there is a non-empty error log, and "single_module"
6934	# appears in it, assume the flag caused a linker warning
6935        if test -s conftest.err && $GREP single_module conftest.err; then
6936	  cat conftest.err >&5
6937	# Otherwise, if the output was created with a 0 exit code from
6938	# the compiler, it worked.
6939	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6940	  lt_cv_apple_cc_single_mod=yes
6941	else
6942	  cat conftest.err >&5
6943	fi
6944	rm -rf libconftest.dylib*
6945	rm -f conftest.*
6946      fi
6947fi
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6949$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6950
6951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6952$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6953if ${lt_cv_ld_exported_symbols_list+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  lt_cv_ld_exported_symbols_list=no
6957      save_LDFLAGS=$LDFLAGS
6958      echo "_main" > conftest.sym
6959      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6960      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h.  */
6962
6963int
6964main ()
6965{
6966
6967  ;
6968  return 0;
6969}
6970_ACEOF
6971if ac_fn_c_try_link "$LINENO"; then :
6972  lt_cv_ld_exported_symbols_list=yes
6973else
6974  lt_cv_ld_exported_symbols_list=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext \
6977    conftest$ac_exeext conftest.$ac_ext
6978	LDFLAGS=$save_LDFLAGS
6979
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6982$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6983
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985$as_echo_n "checking for -force_load linker flag... " >&6; }
6986if ${lt_cv_ld_force_load+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  lt_cv_ld_force_load=no
6990      cat > conftest.c << _LT_EOF
6991int forced_loaded() { return 2;}
6992_LT_EOF
6993      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995      echo "$AR cr libconftest.a conftest.o" >&5
6996      $AR cr libconftest.a conftest.o 2>&5
6997      echo "$RANLIB libconftest.a" >&5
6998      $RANLIB libconftest.a 2>&5
6999      cat > conftest.c << _LT_EOF
7000int main() { return 0;}
7001_LT_EOF
7002      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7003      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7004      _lt_result=$?
7005      if test -s conftest.err && $GREP force_load conftest.err; then
7006	cat conftest.err >&5
7007      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7008	lt_cv_ld_force_load=yes
7009      else
7010	cat conftest.err >&5
7011      fi
7012        rm -f conftest.err libconftest.a conftest conftest.c
7013        rm -rf conftest.dSYM
7014
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017$as_echo "$lt_cv_ld_force_load" >&6; }
7018    case $host_os in
7019    rhapsody* | darwin1.[012])
7020      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7021    darwin1.*)
7022      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7023    darwin*) # darwin 5.x on
7024      # if running on 10.5 or later, the deployment target defaults
7025      # to the OS version, if on x86, and 10.4, the deployment
7026      # target defaults to 10.4. Don't you love it?
7027      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7030	10.[012][,.]*)
7031	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7032	10.*)
7033	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7034      esac
7035    ;;
7036  esac
7037    if test yes = "$lt_cv_apple_cc_single_mod"; then
7038      _lt_dar_single_mod='$single_module'
7039    fi
7040    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7041      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7042    else
7043      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7044    fi
7045    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7046      _lt_dsymutil='~$DSYMUTIL $lib || :'
7047    else
7048      _lt_dsymutil=
7049    fi
7050    ;;
7051  esac
7052
7053# func_munge_path_list VARIABLE PATH
7054# -----------------------------------
7055# VARIABLE is name of variable containing _space_ separated list of
7056# directories to be munged by the contents of PATH, which is string
7057# having a format:
7058# "DIR[:DIR]:"
7059#       string "DIR[ DIR]" will be prepended to VARIABLE
7060# ":DIR[:DIR]"
7061#       string "DIR[ DIR]" will be appended to VARIABLE
7062# "DIRP[:DIRP]::[DIRA:]DIRA"
7063#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7064#       "DIRA[ DIRA]" will be appended to VARIABLE
7065# "DIR[:DIR]"
7066#       VARIABLE will be replaced by "DIR[ DIR]"
7067func_munge_path_list ()
7068{
7069    case x$2 in
7070    x)
7071        ;;
7072    *:)
7073        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7074        ;;
7075    x:*)
7076        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7077        ;;
7078    *::*)
7079        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7080        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7081        ;;
7082    *)
7083        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7084        ;;
7085    esac
7086}
7087
7088ac_ext=c
7089ac_cpp='$CPP $CPPFLAGS'
7090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7094$as_echo_n "checking how to run the C preprocessor... " >&6; }
7095# On Suns, sometimes $CPP names a directory.
7096if test -n "$CPP" && test -d "$CPP"; then
7097  CPP=
7098fi
7099if test -z "$CPP"; then
7100  if ${ac_cv_prog_CPP+:} false; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103      # Double quotes because CPP needs to be expanded
7104    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7105    do
7106      ac_preproc_ok=false
7107for ac_c_preproc_warn_flag in '' yes
7108do
7109  # Use a header file that comes with gcc, so configuring glibc
7110  # with a fresh cross-compiler works.
7111  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7112  # <limits.h> exists even on freestanding compilers.
7113  # On the NeXT, cc -E runs the code through the compiler's parser,
7114  # not just through cpp. "Syntax error" is here to catch this case.
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117#ifdef __STDC__
7118# include <limits.h>
7119#else
7120# include <assert.h>
7121#endif
7122		     Syntax error
7123_ACEOF
7124if ac_fn_c_try_cpp "$LINENO"; then :
7125
7126else
7127  # Broken: fails on valid input.
7128continue
7129fi
7130rm -f conftest.err conftest.i conftest.$ac_ext
7131
7132  # OK, works on sane cases.  Now check whether nonexistent headers
7133  # can be detected and how.
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136#include <ac_nonexistent.h>
7137_ACEOF
7138if ac_fn_c_try_cpp "$LINENO"; then :
7139  # Broken: success on invalid input.
7140continue
7141else
7142  # Passes both tests.
7143ac_preproc_ok=:
7144break
7145fi
7146rm -f conftest.err conftest.i conftest.$ac_ext
7147
7148done
7149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7150rm -f conftest.i conftest.err conftest.$ac_ext
7151if $ac_preproc_ok; then :
7152  break
7153fi
7154
7155    done
7156    ac_cv_prog_CPP=$CPP
7157
7158fi
7159  CPP=$ac_cv_prog_CPP
7160else
7161  ac_cv_prog_CPP=$CPP
7162fi
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7164$as_echo "$CPP" >&6; }
7165ac_preproc_ok=false
7166for ac_c_preproc_warn_flag in '' yes
7167do
7168  # Use a header file that comes with gcc, so configuring glibc
7169  # with a fresh cross-compiler works.
7170  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171  # <limits.h> exists even on freestanding compilers.
7172  # On the NeXT, cc -E runs the code through the compiler's parser,
7173  # not just through cpp. "Syntax error" is here to catch this case.
7174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h.  */
7176#ifdef __STDC__
7177# include <limits.h>
7178#else
7179# include <assert.h>
7180#endif
7181		     Syntax error
7182_ACEOF
7183if ac_fn_c_try_cpp "$LINENO"; then :
7184
7185else
7186  # Broken: fails on valid input.
7187continue
7188fi
7189rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191  # OK, works on sane cases.  Now check whether nonexistent headers
7192  # can be detected and how.
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195#include <ac_nonexistent.h>
7196_ACEOF
7197if ac_fn_c_try_cpp "$LINENO"; then :
7198  # Broken: success on invalid input.
7199continue
7200else
7201  # Passes both tests.
7202ac_preproc_ok=:
7203break
7204fi
7205rm -f conftest.err conftest.i conftest.$ac_ext
7206
7207done
7208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7209rm -f conftest.i conftest.err conftest.$ac_ext
7210if $ac_preproc_ok; then :
7211
7212else
7213  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7215as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7216See \`config.log' for more details" "$LINENO" 5; }
7217fi
7218
7219ac_ext=c
7220ac_cpp='$CPP $CPPFLAGS'
7221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224
7225
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7227$as_echo_n "checking for ANSI C header files... " >&6; }
7228if ${ac_cv_header_stdc+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233#include <stdlib.h>
7234#include <stdarg.h>
7235#include <string.h>
7236#include <float.h>
7237
7238int
7239main ()
7240{
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  ac_cv_header_stdc=yes
7248else
7249  ac_cv_header_stdc=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252
7253if test $ac_cv_header_stdc = yes; then
7254  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h.  */
7257#include <string.h>
7258
7259_ACEOF
7260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7261  $EGREP "memchr" >/dev/null 2>&1; then :
7262
7263else
7264  ac_cv_header_stdc=no
7265fi
7266rm -f conftest*
7267
7268fi
7269
7270if test $ac_cv_header_stdc = yes; then
7271  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274#include <stdlib.h>
7275
7276_ACEOF
7277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278  $EGREP "free" >/dev/null 2>&1; then :
7279
7280else
7281  ac_cv_header_stdc=no
7282fi
7283rm -f conftest*
7284
7285fi
7286
7287if test $ac_cv_header_stdc = yes; then
7288  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7289  if test "$cross_compiling" = yes; then :
7290  :
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294#include <ctype.h>
7295#include <stdlib.h>
7296#if ((' ' & 0x0FF) == 0x020)
7297# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7298# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7299#else
7300# define ISLOWER(c) \
7301		   (('a' <= (c) && (c) <= 'i') \
7302		     || ('j' <= (c) && (c) <= 'r') \
7303		     || ('s' <= (c) && (c) <= 'z'))
7304# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7305#endif
7306
7307#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7308int
7309main ()
7310{
7311  int i;
7312  for (i = 0; i < 256; i++)
7313    if (XOR (islower (i), ISLOWER (i))
7314	|| toupper (i) != TOUPPER (i))
7315      return 2;
7316  return 0;
7317}
7318_ACEOF
7319if ac_fn_c_try_run "$LINENO"; then :
7320
7321else
7322  ac_cv_header_stdc=no
7323fi
7324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7325  conftest.$ac_objext conftest.beam conftest.$ac_ext
7326fi
7327
7328fi
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7331$as_echo "$ac_cv_header_stdc" >&6; }
7332if test $ac_cv_header_stdc = yes; then
7333
7334$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7335
7336fi
7337
7338# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7339for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7340		  inttypes.h stdint.h unistd.h
7341do :
7342  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7343ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7344"
7345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7346  cat >>confdefs.h <<_ACEOF
7347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348_ACEOF
7349
7350fi
7351
7352done
7353
7354
7355for ac_header in dlfcn.h
7356do :
7357  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7358"
7359if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7360  cat >>confdefs.h <<_ACEOF
7361#define HAVE_DLFCN_H 1
7362_ACEOF
7363
7364fi
7365
7366done
7367
7368
7369
7370
7371
7372# Set options
7373enable_win32_dll=yes
7374
7375case $host in
7376*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7377  if test -n "$ac_tool_prefix"; then
7378  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}as; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_AS+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$AS"; then
7386  ac_cv_prog_AS="$AS" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_AS="${ac_tool_prefix}as"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405AS=$ac_cv_prog_AS
7406if test -n "$AS"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7408$as_echo "$AS" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415fi
7416if test -z "$ac_cv_prog_AS"; then
7417  ac_ct_AS=$AS
7418  # Extract the first word of "as", so it can be a program name with args.
7419set dummy as; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421$as_echo_n "checking for $ac_word... " >&6; }
7422if ${ac_cv_prog_ac_ct_AS+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  if test -n "$ac_ct_AS"; then
7426  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431  IFS=$as_save_IFS
7432  test -z "$as_dir" && as_dir=.
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435    ac_cv_prog_ac_ct_AS="as"
7436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437    break 2
7438  fi
7439done
7440  done
7441IFS=$as_save_IFS
7442
7443fi
7444fi
7445ac_ct_AS=$ac_cv_prog_ac_ct_AS
7446if test -n "$ac_ct_AS"; then
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7448$as_echo "$ac_ct_AS" >&6; }
7449else
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454  if test "x$ac_ct_AS" = x; then
7455    AS="false"
7456  else
7457    case $cross_compiling:$ac_tool_warned in
7458yes:)
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461ac_tool_warned=yes ;;
7462esac
7463    AS=$ac_ct_AS
7464  fi
7465else
7466  AS="$ac_cv_prog_AS"
7467fi
7468
7469  if test -n "$ac_tool_prefix"; then
7470  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7471set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_DLLTOOL+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$DLLTOOL"; then
7478  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497DLLTOOL=$ac_cv_prog_DLLTOOL
7498if test -n "$DLLTOOL"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7500$as_echo "$DLLTOOL" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507fi
7508if test -z "$ac_cv_prog_DLLTOOL"; then
7509  ac_ct_DLLTOOL=$DLLTOOL
7510  # Extract the first word of "dlltool", so it can be a program name with args.
7511set dummy dlltool; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  if test -n "$ac_ct_DLLTOOL"; then
7518  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535fi
7536fi
7537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7538if test -n "$ac_ct_DLLTOOL"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7540$as_echo "$ac_ct_DLLTOOL" >&6; }
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
7544fi
7545
7546  if test "x$ac_ct_DLLTOOL" = x; then
7547    DLLTOOL="false"
7548  else
7549    case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555    DLLTOOL=$ac_ct_DLLTOOL
7556  fi
7557else
7558  DLLTOOL="$ac_cv_prog_DLLTOOL"
7559fi
7560
7561  if test -n "$ac_tool_prefix"; then
7562  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}objdump; ac_word=$2
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
7566if ${ac_cv_prog_OBJDUMP+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  if test -n "$OBJDUMP"; then
7570  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577    for ac_exec_ext in '' $ac_executable_extensions; do
7578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584  done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589OBJDUMP=$ac_cv_prog_OBJDUMP
7590if test -n "$OBJDUMP"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7592$as_echo "$OBJDUMP" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598
7599fi
7600if test -z "$ac_cv_prog_OBJDUMP"; then
7601  ac_ct_OBJDUMP=$OBJDUMP
7602  # Extract the first word of "objdump", so it can be a program name with args.
7603set dummy objdump; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$ac_ct_OBJDUMP"; then
7610  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7630if test -n "$ac_ct_OBJDUMP"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7632$as_echo "$ac_ct_OBJDUMP" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638  if test "x$ac_ct_OBJDUMP" = x; then
7639    OBJDUMP="false"
7640  else
7641    case $cross_compiling:$ac_tool_warned in
7642yes:)
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645ac_tool_warned=yes ;;
7646esac
7647    OBJDUMP=$ac_ct_OBJDUMP
7648  fi
7649else
7650  OBJDUMP="$ac_cv_prog_OBJDUMP"
7651fi
7652
7653  ;;
7654esac
7655
7656test -z "$AS" && AS=as
7657
7658
7659
7660
7661
7662test -z "$DLLTOOL" && DLLTOOL=dlltool
7663
7664
7665
7666
7667
7668test -z "$OBJDUMP" && OBJDUMP=objdump
7669
7670
7671
7672
7673# Check whether --enable-shared was given.
7674if test "${enable_shared+set}" = set; then :
7675  enableval=$enable_shared; p=${PACKAGE-default}
7676    case $enableval in
7677    yes) enable_shared=yes ;;
7678    no) enable_shared=no ;;
7679    *)
7680      enable_shared=no
7681      # Look at the argument we got.  We use all the common list separators.
7682      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7683      for pkg in $enableval; do
7684	IFS=$lt_save_ifs
7685	if test "X$pkg" = "X$p"; then
7686	  enable_shared=yes
7687	fi
7688      done
7689      IFS=$lt_save_ifs
7690      ;;
7691    esac
7692else
7693  enable_shared=yes
7694fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705        enable_dlopen=no
7706
7707
7708
7709
7710  # Check whether --enable-static was given.
7711if test "${enable_static+set}" = set; then :
7712  enableval=$enable_static; p=${PACKAGE-default}
7713    case $enableval in
7714    yes) enable_static=yes ;;
7715    no) enable_static=no ;;
7716    *)
7717     enable_static=no
7718      # Look at the argument we got.  We use all the common list separators.
7719      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7720      for pkg in $enableval; do
7721	IFS=$lt_save_ifs
7722	if test "X$pkg" = "X$p"; then
7723	  enable_static=yes
7724	fi
7725      done
7726      IFS=$lt_save_ifs
7727      ;;
7728    esac
7729else
7730  enable_static=yes
7731fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742# Check whether --with-pic was given.
7743if test "${with_pic+set}" = set; then :
7744  withval=$with_pic; lt_p=${PACKAGE-default}
7745    case $withval in
7746    yes|no) pic_mode=$withval ;;
7747    *)
7748      pic_mode=default
7749      # Look at the argument we got.  We use all the common list separators.
7750      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7751      for lt_pkg in $withval; do
7752	IFS=$lt_save_ifs
7753	if test "X$lt_pkg" = "X$lt_p"; then
7754	  pic_mode=yes
7755	fi
7756      done
7757      IFS=$lt_save_ifs
7758      ;;
7759    esac
7760else
7761  pic_mode=default
7762fi
7763
7764
7765
7766
7767
7768
7769
7770
7771  # Check whether --enable-fast-install was given.
7772if test "${enable_fast_install+set}" = set; then :
7773  enableval=$enable_fast_install; p=${PACKAGE-default}
7774    case $enableval in
7775    yes) enable_fast_install=yes ;;
7776    no) enable_fast_install=no ;;
7777    *)
7778      enable_fast_install=no
7779      # Look at the argument we got.  We use all the common list separators.
7780      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7781      for pkg in $enableval; do
7782	IFS=$lt_save_ifs
7783	if test "X$pkg" = "X$p"; then
7784	  enable_fast_install=yes
7785	fi
7786      done
7787      IFS=$lt_save_ifs
7788      ;;
7789    esac
7790else
7791  enable_fast_install=yes
7792fi
7793
7794
7795
7796
7797
7798
7799
7800
7801  shared_archive_member_spec=
7802case $host,$enable_shared in
7803power*-*-aix[5-9]*,yes)
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7805$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7806
7807# Check whether --with-aix-soname was given.
7808if test "${with_aix_soname+set}" = set; then :
7809  withval=$with_aix_soname; case $withval in
7810    aix|svr4|both)
7811      ;;
7812    *)
7813      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7814      ;;
7815    esac
7816    lt_cv_with_aix_soname=$with_aix_soname
7817else
7818  if ${lt_cv_with_aix_soname+:} false; then :
7819  $as_echo_n "(cached) " >&6
7820else
7821  lt_cv_with_aix_soname=aix
7822fi
7823
7824    with_aix_soname=$lt_cv_with_aix_soname
7825fi
7826
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7828$as_echo "$with_aix_soname" >&6; }
7829  if test aix != "$with_aix_soname"; then
7830    # For the AIX way of multilib, we name the shared archive member
7831    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7832    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7833    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7834    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7835    if test 64 = "${OBJECT_MODE-32}"; then
7836      shared_archive_member_spec=shr_64
7837    else
7838      shared_archive_member_spec=shr
7839    fi
7840  fi
7841  ;;
7842*)
7843  with_aix_soname=aix
7844  ;;
7845esac
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856# This can be used to rebuild libtool when needed
7857LIBTOOL_DEPS=$ltmain
7858
7859# Always use our own libtool.
7860LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891test -z "$LN_S" && LN_S="ln -s"
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906if test -n "${ZSH_VERSION+set}"; then
7907   setopt NO_GLOB_SUBST
7908fi
7909
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7911$as_echo_n "checking for objdir... " >&6; }
7912if ${lt_cv_objdir+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  rm -f .libs 2>/dev/null
7916mkdir .libs 2>/dev/null
7917if test -d .libs; then
7918  lt_cv_objdir=.libs
7919else
7920  # MS-DOS does not allow filenames that begin with a dot.
7921  lt_cv_objdir=_libs
7922fi
7923rmdir .libs 2>/dev/null
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7926$as_echo "$lt_cv_objdir" >&6; }
7927objdir=$lt_cv_objdir
7928
7929
7930
7931
7932
7933cat >>confdefs.h <<_ACEOF
7934#define LT_OBJDIR "$lt_cv_objdir/"
7935_ACEOF
7936
7937
7938
7939
7940case $host_os in
7941aix3*)
7942  # AIX sometimes has problems with the GCC collect2 program.  For some
7943  # reason, if we set the COLLECT_NAMES environment variable, the problems
7944  # vanish in a puff of smoke.
7945  if test set != "${COLLECT_NAMES+set}"; then
7946    COLLECT_NAMES=
7947    export COLLECT_NAMES
7948  fi
7949  ;;
7950esac
7951
7952# Global variables:
7953ofile=libtool
7954can_build_shared=yes
7955
7956# All known linkers require a '.a' archive for static linking (except MSVC,
7957# which needs '.lib').
7958libext=a
7959
7960with_gnu_ld=$lt_cv_prog_gnu_ld
7961
7962old_CC=$CC
7963old_CFLAGS=$CFLAGS
7964
7965# Set sane defaults for various variables
7966test -z "$CC" && CC=cc
7967test -z "$LTCC" && LTCC=$CC
7968test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7969test -z "$LD" && LD=ld
7970test -z "$ac_objext" && ac_objext=o
7971
7972func_cc_basename $compiler
7973cc_basename=$func_cc_basename_result
7974
7975
7976# Only perform the check for file, if the check method requires it
7977test -z "$MAGIC_CMD" && MAGIC_CMD=file
7978case $deplibs_check_method in
7979file_magic*)
7980  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7982$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7983if ${lt_cv_path_MAGIC_CMD+:} false; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  case $MAGIC_CMD in
7987[\\/*] |  ?:[\\/]*)
7988  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7989  ;;
7990*)
7991  lt_save_MAGIC_CMD=$MAGIC_CMD
7992  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7993  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7994  for ac_dir in $ac_dummy; do
7995    IFS=$lt_save_ifs
7996    test -z "$ac_dir" && ac_dir=.
7997    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7998      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7999      if test -n "$file_magic_test_file"; then
8000	case $deplibs_check_method in
8001	"file_magic "*)
8002	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8003	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8004	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8005	    $EGREP "$file_magic_regex" > /dev/null; then
8006	    :
8007	  else
8008	    cat <<_LT_EOF 1>&2
8009
8010*** Warning: the command libtool uses to detect shared libraries,
8011*** $file_magic_cmd, produces output that libtool cannot recognize.
8012*** The result is that libtool may fail to recognize shared libraries
8013*** as such.  This will affect the creation of libtool libraries that
8014*** depend on shared libraries, but programs linked with such libtool
8015*** libraries will work regardless of this problem.  Nevertheless, you
8016*** may want to report the problem to your system manager and/or to
8017*** bug-libtool@gnu.org
8018
8019_LT_EOF
8020	  fi ;;
8021	esac
8022      fi
8023      break
8024    fi
8025  done
8026  IFS=$lt_save_ifs
8027  MAGIC_CMD=$lt_save_MAGIC_CMD
8028  ;;
8029esac
8030fi
8031
8032MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8033if test -n "$MAGIC_CMD"; then
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8035$as_echo "$MAGIC_CMD" >&6; }
8036else
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039fi
8040
8041
8042
8043
8044
8045if test -z "$lt_cv_path_MAGIC_CMD"; then
8046  if test -n "$ac_tool_prefix"; then
8047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8048$as_echo_n "checking for file... " >&6; }
8049if ${lt_cv_path_MAGIC_CMD+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  case $MAGIC_CMD in
8053[\\/*] |  ?:[\\/]*)
8054  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8055  ;;
8056*)
8057  lt_save_MAGIC_CMD=$MAGIC_CMD
8058  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8059  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8060  for ac_dir in $ac_dummy; do
8061    IFS=$lt_save_ifs
8062    test -z "$ac_dir" && ac_dir=.
8063    if test -f "$ac_dir/file"; then
8064      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8065      if test -n "$file_magic_test_file"; then
8066	case $deplibs_check_method in
8067	"file_magic "*)
8068	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8069	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8070	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8071	    $EGREP "$file_magic_regex" > /dev/null; then
8072	    :
8073	  else
8074	    cat <<_LT_EOF 1>&2
8075
8076*** Warning: the command libtool uses to detect shared libraries,
8077*** $file_magic_cmd, produces output that libtool cannot recognize.
8078*** The result is that libtool may fail to recognize shared libraries
8079*** as such.  This will affect the creation of libtool libraries that
8080*** depend on shared libraries, but programs linked with such libtool
8081*** libraries will work regardless of this problem.  Nevertheless, you
8082*** may want to report the problem to your system manager and/or to
8083*** bug-libtool@gnu.org
8084
8085_LT_EOF
8086	  fi ;;
8087	esac
8088      fi
8089      break
8090    fi
8091  done
8092  IFS=$lt_save_ifs
8093  MAGIC_CMD=$lt_save_MAGIC_CMD
8094  ;;
8095esac
8096fi
8097
8098MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8099if test -n "$MAGIC_CMD"; then
8100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8101$as_echo "$MAGIC_CMD" >&6; }
8102else
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107
8108  else
8109    MAGIC_CMD=:
8110  fi
8111fi
8112
8113  fi
8114  ;;
8115esac
8116
8117# Use C for the default configuration in the libtool script
8118
8119lt_save_CC=$CC
8120ac_ext=c
8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127# Source file extension for C test sources.
8128ac_ext=c
8129
8130# Object file extension for compiled C test sources.
8131objext=o
8132objext=$objext
8133
8134# Code to be used in simple compile tests
8135lt_simple_compile_test_code="int some_variable = 0;"
8136
8137# Code to be used in simple link tests
8138lt_simple_link_test_code='int main(){return(0);}'
8139
8140
8141
8142
8143
8144
8145
8146# If no C compiler was specified, use CC.
8147LTCC=${LTCC-"$CC"}
8148
8149# If no C compiler flags were specified, use CFLAGS.
8150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8151
8152# Allow CC to be a program name with arguments.
8153compiler=$CC
8154
8155# Save the default compiler, since it gets overwritten when the other
8156# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8157compiler_DEFAULT=$CC
8158
8159# save warnings/boilerplate of simple test code
8160ac_outfile=conftest.$ac_objext
8161echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8162eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8163_lt_compiler_boilerplate=`cat conftest.err`
8164$RM conftest*
8165
8166ac_outfile=conftest.$ac_objext
8167echo "$lt_simple_link_test_code" >conftest.$ac_ext
8168eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8169_lt_linker_boilerplate=`cat conftest.err`
8170$RM -r conftest*
8171
8172
8173## CAVEAT EMPTOR:
8174## There is no encapsulation within the following macros, do not change
8175## the running order or otherwise move them around unless you know exactly
8176## what you are doing...
8177if test -n "$compiler"; then
8178
8179lt_prog_compiler_no_builtin_flag=
8180
8181if test yes = "$GCC"; then
8182  case $cc_basename in
8183  nvcc*)
8184    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8185  *)
8186    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8187  esac
8188
8189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8190$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8191if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  lt_cv_prog_compiler_rtti_exceptions=no
8195   ac_outfile=conftest.$ac_objext
8196   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8197   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8198   # Insert the option either (1) after the last *FLAGS variable, or
8199   # (2) before a word containing "conftest.", or (3) at the end.
8200   # Note that $ac_compile itself does not contain backslashes and begins
8201   # with a dollar sign (not a hyphen), so the echo should work correctly.
8202   # The option is referenced via a variable to avoid confusing sed.
8203   lt_compile=`echo "$ac_compile" | $SED \
8204   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8206   -e 's:$: $lt_compiler_flag:'`
8207   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8208   (eval "$lt_compile" 2>conftest.err)
8209   ac_status=$?
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   if (exit $ac_status) && test -s "$ac_outfile"; then
8213     # The compiler can only warn and ignore the option if not recognized
8214     # So say no if there are warnings other than the usual output.
8215     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8216     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8217     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8218       lt_cv_prog_compiler_rtti_exceptions=yes
8219     fi
8220   fi
8221   $RM conftest*
8222
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8225$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8226
8227if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8228    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8229else
8230    :
8231fi
8232
8233fi
8234
8235
8236
8237
8238
8239
8240  lt_prog_compiler_wl=
8241lt_prog_compiler_pic=
8242lt_prog_compiler_static=
8243
8244
8245  if test yes = "$GCC"; then
8246    lt_prog_compiler_wl='-Wl,'
8247    lt_prog_compiler_static='-static'
8248
8249    case $host_os in
8250      aix*)
8251      # All AIX code is PIC.
8252      if test ia64 = "$host_cpu"; then
8253	# AIX 5 now supports IA64 processor
8254	lt_prog_compiler_static='-Bstatic'
8255      fi
8256      lt_prog_compiler_pic='-fPIC'
8257      ;;
8258
8259    amigaos*)
8260      case $host_cpu in
8261      powerpc)
8262            # see comment about AmigaOS4 .so support
8263            lt_prog_compiler_pic='-fPIC'
8264        ;;
8265      m68k)
8266            # FIXME: we need at least 68020 code to build shared libraries, but
8267            # adding the '-m68020' flag to GCC prevents building anything better,
8268            # like '-m68040'.
8269            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8270        ;;
8271      esac
8272      ;;
8273
8274    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8275      # PIC is the default for these OSes.
8276      ;;
8277
8278    mingw* | cygwin* | pw32* | os2* | cegcc*)
8279      # This hack is so that the source file can tell whether it is being
8280      # built for inclusion in a dll (and should export symbols for example).
8281      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8282      # (--disable-auto-import) libraries
8283      lt_prog_compiler_pic='-DDLL_EXPORT'
8284      case $host_os in
8285      os2*)
8286	lt_prog_compiler_static='$wl-static'
8287	;;
8288      esac
8289      ;;
8290
8291    darwin* | rhapsody*)
8292      # PIC is the default on this platform
8293      # Common symbols not allowed in MH_DYLIB files
8294      lt_prog_compiler_pic='-fno-common'
8295      ;;
8296
8297    haiku*)
8298      # PIC is the default for Haiku.
8299      # The "-static" flag exists, but is broken.
8300      lt_prog_compiler_static=
8301      ;;
8302
8303    hpux*)
8304      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8306      # sets the default TLS model and affects inlining.
8307      case $host_cpu in
8308      hppa*64*)
8309	# +Z the default
8310	;;
8311      *)
8312	lt_prog_compiler_pic='-fPIC'
8313	;;
8314      esac
8315      ;;
8316
8317    interix[3-9]*)
8318      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319      # Instead, we relocate shared libraries at runtime.
8320      ;;
8321
8322    msdosdjgpp*)
8323      # Just because we use GCC doesn't mean we suddenly get shared libraries
8324      # on systems that don't support them.
8325      lt_prog_compiler_can_build_shared=no
8326      enable_shared=no
8327      ;;
8328
8329    *nto* | *qnx*)
8330      # QNX uses GNU C++, but need to define -shared option too, otherwise
8331      # it will coredump.
8332      lt_prog_compiler_pic='-fPIC -shared'
8333      ;;
8334
8335    sysv4*MP*)
8336      if test -d /usr/nec; then
8337	lt_prog_compiler_pic=-Kconform_pic
8338      fi
8339      ;;
8340
8341    *)
8342      lt_prog_compiler_pic='-fPIC'
8343      ;;
8344    esac
8345
8346    case $cc_basename in
8347    nvcc*) # Cuda Compiler Driver 2.2
8348      lt_prog_compiler_wl='-Xlinker '
8349      if test -n "$lt_prog_compiler_pic"; then
8350        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8351      fi
8352      ;;
8353    esac
8354  else
8355    # PORTME Check for flag to pass linker flags through the system compiler.
8356    case $host_os in
8357    aix*)
8358      lt_prog_compiler_wl='-Wl,'
8359      if test ia64 = "$host_cpu"; then
8360	# AIX 5 now supports IA64 processor
8361	lt_prog_compiler_static='-Bstatic'
8362      else
8363	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8364      fi
8365      ;;
8366
8367    darwin* | rhapsody*)
8368      # PIC is the default on this platform
8369      # Common symbols not allowed in MH_DYLIB files
8370      lt_prog_compiler_pic='-fno-common'
8371      case $cc_basename in
8372      nagfor*)
8373        # NAG Fortran compiler
8374        lt_prog_compiler_wl='-Wl,-Wl,,'
8375        lt_prog_compiler_pic='-PIC'
8376        lt_prog_compiler_static='-Bstatic'
8377        ;;
8378      esac
8379      ;;
8380
8381    mingw* | cygwin* | pw32* | os2* | cegcc*)
8382      # This hack is so that the source file can tell whether it is being
8383      # built for inclusion in a dll (and should export symbols for example).
8384      lt_prog_compiler_pic='-DDLL_EXPORT'
8385      case $host_os in
8386      os2*)
8387	lt_prog_compiler_static='$wl-static'
8388	;;
8389      esac
8390      ;;
8391
8392    hpux9* | hpux10* | hpux11*)
8393      lt_prog_compiler_wl='-Wl,'
8394      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8395      # not for PA HP-UX.
8396      case $host_cpu in
8397      hppa*64*|ia64*)
8398	# +Z the default
8399	;;
8400      *)
8401	lt_prog_compiler_pic='+Z'
8402	;;
8403      esac
8404      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8405      lt_prog_compiler_static='$wl-a ${wl}archive'
8406      ;;
8407
8408    irix5* | irix6* | nonstopux*)
8409      lt_prog_compiler_wl='-Wl,'
8410      # PIC (with -KPIC) is the default.
8411      lt_prog_compiler_static='-non_shared'
8412      ;;
8413
8414    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8415      case $cc_basename in
8416      # old Intel for x86_64, which still supported -KPIC.
8417      ecc*)
8418	lt_prog_compiler_wl='-Wl,'
8419	lt_prog_compiler_pic='-KPIC'
8420	lt_prog_compiler_static='-static'
8421        ;;
8422      # flang / f18. f95 an alias for gfortran or flang on Debian
8423      flang* | f18* | f95*)
8424	lt_prog_compiler_wl='-Wl,'
8425	lt_prog_compiler_pic='-fPIC'
8426	lt_prog_compiler_static='-static'
8427        ;;
8428      # icc used to be incompatible with GCC.
8429      # ICC 10 doesn't accept -KPIC any more.
8430      icc* | ifort*)
8431	lt_prog_compiler_wl='-Wl,'
8432	lt_prog_compiler_pic='-fPIC'
8433	lt_prog_compiler_static='-static'
8434        ;;
8435      # Lahey Fortran 8.1.
8436      lf95*)
8437	lt_prog_compiler_wl='-Wl,'
8438	lt_prog_compiler_pic='--shared'
8439	lt_prog_compiler_static='--static'
8440	;;
8441      nagfor*)
8442	# NAG Fortran compiler
8443	lt_prog_compiler_wl='-Wl,-Wl,,'
8444	lt_prog_compiler_pic='-PIC'
8445	lt_prog_compiler_static='-Bstatic'
8446	;;
8447      tcc*)
8448	# Fabrice Bellard et al's Tiny C Compiler
8449	lt_prog_compiler_wl='-Wl,'
8450	lt_prog_compiler_pic='-fPIC'
8451	lt_prog_compiler_static='-static'
8452	;;
8453      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8454        # Portland Group compilers (*not* the Pentium gcc compiler,
8455	# which looks to be a dead project)
8456	lt_prog_compiler_wl='-Wl,'
8457	lt_prog_compiler_pic='-fpic'
8458	lt_prog_compiler_static='-Bstatic'
8459        ;;
8460      ccc*)
8461        lt_prog_compiler_wl='-Wl,'
8462        # All Alpha code is PIC.
8463        lt_prog_compiler_static='-non_shared'
8464        ;;
8465      xl* | bgxl* | bgf* | mpixl*)
8466	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8467	lt_prog_compiler_wl='-Wl,'
8468	lt_prog_compiler_pic='-qpic'
8469	lt_prog_compiler_static='-qstaticlink'
8470	;;
8471      *)
8472	case `$CC -V 2>&1 | sed 5q` in
8473	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8474	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8475	  lt_prog_compiler_pic='-KPIC'
8476	  lt_prog_compiler_static='-Bstatic'
8477	  lt_prog_compiler_wl=''
8478	  ;;
8479	*Sun\ F* | *Sun*Fortran*)
8480	  lt_prog_compiler_pic='-KPIC'
8481	  lt_prog_compiler_static='-Bstatic'
8482	  lt_prog_compiler_wl='-Qoption ld '
8483	  ;;
8484	*Sun\ C*)
8485	  # Sun C 5.9
8486	  lt_prog_compiler_pic='-KPIC'
8487	  lt_prog_compiler_static='-Bstatic'
8488	  lt_prog_compiler_wl='-Wl,'
8489	  ;;
8490        *Intel*\ [CF]*Compiler*)
8491	  lt_prog_compiler_wl='-Wl,'
8492	  lt_prog_compiler_pic='-fPIC'
8493	  lt_prog_compiler_static='-static'
8494	  ;;
8495	*Portland\ Group*)
8496	  lt_prog_compiler_wl='-Wl,'
8497	  lt_prog_compiler_pic='-fpic'
8498	  lt_prog_compiler_static='-Bstatic'
8499	  ;;
8500	esac
8501	;;
8502      esac
8503      ;;
8504
8505    newsos6)
8506      lt_prog_compiler_pic='-KPIC'
8507      lt_prog_compiler_static='-Bstatic'
8508      ;;
8509
8510    *nto* | *qnx*)
8511      # QNX uses GNU C++, but need to define -shared option too, otherwise
8512      # it will coredump.
8513      lt_prog_compiler_pic='-fPIC -shared'
8514      ;;
8515
8516    osf3* | osf4* | osf5*)
8517      lt_prog_compiler_wl='-Wl,'
8518      # All OSF/1 code is PIC.
8519      lt_prog_compiler_static='-non_shared'
8520      ;;
8521
8522    rdos*)
8523      lt_prog_compiler_static='-non_shared'
8524      ;;
8525
8526    solaris*)
8527      lt_prog_compiler_pic='-KPIC'
8528      lt_prog_compiler_static='-Bstatic'
8529      case $cc_basename in
8530      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8531	lt_prog_compiler_wl='-Qoption ld ';;
8532      *)
8533	lt_prog_compiler_wl='-Wl,';;
8534      esac
8535      ;;
8536
8537    sunos4*)
8538      lt_prog_compiler_wl='-Qoption ld '
8539      lt_prog_compiler_pic='-PIC'
8540      lt_prog_compiler_static='-Bstatic'
8541      ;;
8542
8543    sysv4 | sysv4.2uw2* | sysv4.3*)
8544      lt_prog_compiler_wl='-Wl,'
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    sysv4*MP*)
8550      if test -d /usr/nec; then
8551	lt_prog_compiler_pic='-Kconform_pic'
8552	lt_prog_compiler_static='-Bstatic'
8553      fi
8554      ;;
8555
8556    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8557      lt_prog_compiler_wl='-Wl,'
8558      lt_prog_compiler_pic='-KPIC'
8559      lt_prog_compiler_static='-Bstatic'
8560      ;;
8561
8562    unicos*)
8563      lt_prog_compiler_wl='-Wl,'
8564      lt_prog_compiler_can_build_shared=no
8565      ;;
8566
8567    uts4*)
8568      lt_prog_compiler_pic='-pic'
8569      lt_prog_compiler_static='-Bstatic'
8570      ;;
8571
8572    *)
8573      lt_prog_compiler_can_build_shared=no
8574      ;;
8575    esac
8576  fi
8577
8578case $host_os in
8579  # For platforms that do not support PIC, -DPIC is meaningless:
8580  *djgpp*)
8581    lt_prog_compiler_pic=
8582    ;;
8583  *)
8584    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8585    ;;
8586esac
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8589$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8590if ${lt_cv_prog_compiler_pic+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8596$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8597lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8598
8599#
8600# Check to make sure the PIC flag actually works.
8601#
8602if test -n "$lt_prog_compiler_pic"; then
8603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8604$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8605if ${lt_cv_prog_compiler_pic_works+:} false; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  lt_cv_prog_compiler_pic_works=no
8609   ac_outfile=conftest.$ac_objext
8610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8612   # Insert the option either (1) after the last *FLAGS variable, or
8613   # (2) before a word containing "conftest.", or (3) at the end.
8614   # Note that $ac_compile itself does not contain backslashes and begins
8615   # with a dollar sign (not a hyphen), so the echo should work correctly.
8616   # The option is referenced via a variable to avoid confusing sed.
8617   lt_compile=`echo "$ac_compile" | $SED \
8618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620   -e 's:$: $lt_compiler_flag:'`
8621   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622   (eval "$lt_compile" 2>conftest.err)
8623   ac_status=$?
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   if (exit $ac_status) && test -s "$ac_outfile"; then
8627     # The compiler can only warn and ignore the option if not recognized
8628     # So say no if there are warnings other than the usual output.
8629     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8630     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8631     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8632       lt_cv_prog_compiler_pic_works=yes
8633     fi
8634   fi
8635   $RM conftest*
8636
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8639$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8640
8641if test yes = "$lt_cv_prog_compiler_pic_works"; then
8642    case $lt_prog_compiler_pic in
8643     "" | " "*) ;;
8644     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8645     esac
8646else
8647    lt_prog_compiler_pic=
8648     lt_prog_compiler_can_build_shared=no
8649fi
8650
8651fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663#
8664# Check to make sure the static flag actually works.
8665#
8666wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8668$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8669if ${lt_cv_prog_compiler_static_works+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  lt_cv_prog_compiler_static_works=no
8673   save_LDFLAGS=$LDFLAGS
8674   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8675   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8676   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8677     # The linker can only warn and ignore the option if not recognized
8678     # So say no if there are warnings
8679     if test -s conftest.err; then
8680       # Append any errors to the config.log.
8681       cat conftest.err 1>&5
8682       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8683       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684       if diff conftest.exp conftest.er2 >/dev/null; then
8685         lt_cv_prog_compiler_static_works=yes
8686       fi
8687     else
8688       lt_cv_prog_compiler_static_works=yes
8689     fi
8690   fi
8691   $RM -r conftest*
8692   LDFLAGS=$save_LDFLAGS
8693
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8696$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8697
8698if test yes = "$lt_cv_prog_compiler_static_works"; then
8699    :
8700else
8701    lt_prog_compiler_static=
8702fi
8703
8704
8705
8706
8707
8708
8709
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8712if ${lt_cv_prog_compiler_c_o+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  lt_cv_prog_compiler_c_o=no
8716   $RM -r conftest 2>/dev/null
8717   mkdir conftest
8718   cd conftest
8719   mkdir out
8720   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721
8722   lt_compiler_flag="-o out/conftest2.$ac_objext"
8723   # Insert the option either (1) after the last *FLAGS variable, or
8724   # (2) before a word containing "conftest.", or (3) at the end.
8725   # Note that $ac_compile itself does not contain backslashes and begins
8726   # with a dollar sign (not a hyphen), so the echo should work correctly.
8727   lt_compile=`echo "$ac_compile" | $SED \
8728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730   -e 's:$: $lt_compiler_flag:'`
8731   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732   (eval "$lt_compile" 2>out/conftest.err)
8733   ac_status=$?
8734   cat out/conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737   then
8738     # The compiler can only warn and ignore the option if not recognized
8739     # So say no if there are warnings
8740     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8741     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743       lt_cv_prog_compiler_c_o=yes
8744     fi
8745   fi
8746   chmod u+w . 2>&5
8747   $RM conftest*
8748   # SGI C++ compiler will create directory out/ii_files/ for
8749   # template instantiation
8750   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8751   $RM out/* && rmdir out
8752   cd ..
8753   $RM -r conftest
8754   $RM conftest*
8755
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8758$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8759
8760
8761
8762
8763
8764
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8767if ${lt_cv_prog_compiler_c_o+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  lt_cv_prog_compiler_c_o=no
8771   $RM -r conftest 2>/dev/null
8772   mkdir conftest
8773   cd conftest
8774   mkdir out
8775   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776
8777   lt_compiler_flag="-o out/conftest2.$ac_objext"
8778   # Insert the option either (1) after the last *FLAGS variable, or
8779   # (2) before a word containing "conftest.", or (3) at the end.
8780   # Note that $ac_compile itself does not contain backslashes and begins
8781   # with a dollar sign (not a hyphen), so the echo should work correctly.
8782   lt_compile=`echo "$ac_compile" | $SED \
8783   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785   -e 's:$: $lt_compiler_flag:'`
8786   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787   (eval "$lt_compile" 2>out/conftest.err)
8788   ac_status=$?
8789   cat out/conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792   then
8793     # The compiler can only warn and ignore the option if not recognized
8794     # So say no if there are warnings
8795     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8796     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8797     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8798       lt_cv_prog_compiler_c_o=yes
8799     fi
8800   fi
8801   chmod u+w . 2>&5
8802   $RM conftest*
8803   # SGI C++ compiler will create directory out/ii_files/ for
8804   # template instantiation
8805   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8806   $RM out/* && rmdir out
8807   cd ..
8808   $RM -r conftest
8809   $RM conftest*
8810
8811fi
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8813$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814
8815
8816
8817
8818hard_links=nottested
8819if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8820  # do not overwrite the value of need_locks provided by the user
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8822$as_echo_n "checking if we can lock with hard links... " >&6; }
8823  hard_links=yes
8824  $RM conftest*
8825  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8826  touch conftest.a
8827  ln conftest.a conftest.b 2>&5 || hard_links=no
8828  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8830$as_echo "$hard_links" >&6; }
8831  if test no = "$hard_links"; then
8832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8833$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8834    need_locks=warn
8835  fi
8836else
8837  need_locks=no
8838fi
8839
8840
8841
8842
8843
8844
8845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8846$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8847
8848  runpath_var=
8849  allow_undefined_flag=
8850  always_export_symbols=no
8851  archive_cmds=
8852  archive_expsym_cmds=
8853  compiler_needs_object=no
8854  enable_shared_with_static_runtimes=no
8855  export_dynamic_flag_spec=
8856  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8857  hardcode_automatic=no
8858  hardcode_direct=no
8859  hardcode_direct_absolute=no
8860  hardcode_libdir_flag_spec=
8861  hardcode_libdir_separator=
8862  hardcode_minus_L=no
8863  hardcode_shlibpath_var=unsupported
8864  inherit_rpath=no
8865  link_all_deplibs=unknown
8866  module_cmds=
8867  module_expsym_cmds=
8868  old_archive_from_new_cmds=
8869  old_archive_from_expsyms_cmds=
8870  thread_safe_flag_spec=
8871  whole_archive_flag_spec=
8872  # include_expsyms should be a list of space-separated symbols to be *always*
8873  # included in the symbol list
8874  include_expsyms=
8875  # exclude_expsyms can be an extended regexp of symbols to exclude
8876  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8877  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8878  # as well as any symbol that contains 'd'.
8879  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8880  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8881  # platforms (ab)use it in PIC code, but their linkers get confused if
8882  # the symbol is explicitly referenced.  Since portable code cannot
8883  # rely on this symbol name, it's probably fine to never include it in
8884  # preloaded symbol tables.
8885  # Exclude shared library initialization/finalization symbols.
8886  extract_expsyms_cmds=
8887
8888  case $host_os in
8889  cygwin* | mingw* | pw32* | cegcc*)
8890    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8891    # When not using gcc, we currently assume that we are using
8892    # Microsoft Visual C++.
8893    if test yes != "$GCC"; then
8894      with_gnu_ld=no
8895    fi
8896    ;;
8897  interix*)
8898    # we just hope/assume this is gcc and not c89 (= MSVC++)
8899    with_gnu_ld=yes
8900    ;;
8901  openbsd* | bitrig*)
8902    with_gnu_ld=no
8903    ;;
8904  linux* | k*bsd*-gnu | gnu*)
8905    link_all_deplibs=no
8906    ;;
8907  esac
8908
8909  ld_shlibs=yes
8910
8911  # On some targets, GNU ld is compatible enough with the native linker
8912  # that we're better off using the native interface for both.
8913  lt_use_gnu_ld_interface=no
8914  if test yes = "$with_gnu_ld"; then
8915    case $host_os in
8916      aix*)
8917	# The AIX port of GNU ld has always aspired to compatibility
8918	# with the native linker.  However, as the warning in the GNU ld
8919	# block says, versions before 2.19.5* couldn't really create working
8920	# shared libraries, regardless of the interface used.
8921	case `$LD -v 2>&1` in
8922	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8923	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8924	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8925	  *)
8926	    lt_use_gnu_ld_interface=yes
8927	    ;;
8928	esac
8929	;;
8930      *)
8931	lt_use_gnu_ld_interface=yes
8932	;;
8933    esac
8934  fi
8935
8936  if test yes = "$lt_use_gnu_ld_interface"; then
8937    # If archive_cmds runs LD, not CC, wlarc should be empty
8938    wlarc='$wl'
8939
8940    # Set some defaults for GNU ld with shared library support. These
8941    # are reset later if shared libraries are not supported. Putting them
8942    # here allows them to be overridden if necessary.
8943    runpath_var=LD_RUN_PATH
8944    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8945    export_dynamic_flag_spec='$wl--export-dynamic'
8946    # ancient GNU ld didn't support --whole-archive et. al.
8947    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8948      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8949    else
8950      whole_archive_flag_spec=
8951    fi
8952    supports_anon_versioning=no
8953    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8954      *GNU\ gold*) supports_anon_versioning=yes ;;
8955      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8956      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8957      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8958      *\ 2.11.*) ;; # other 2.11 versions
8959      *) supports_anon_versioning=yes ;;
8960    esac
8961
8962    # See if GNU ld supports shared libraries.
8963    case $host_os in
8964    aix[3-9]*)
8965      # On AIX/PPC, the GNU linker is very broken
8966      if test ia64 != "$host_cpu"; then
8967	ld_shlibs=no
8968	cat <<_LT_EOF 1>&2
8969
8970*** Warning: the GNU linker, at least up to release 2.19, is reported
8971*** to be unable to reliably create shared libraries on AIX.
8972*** Therefore, libtool is disabling shared libraries support.  If you
8973*** really care for shared libraries, you may want to install binutils
8974*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8975*** You will then need to restart the configuration process.
8976
8977_LT_EOF
8978      fi
8979      ;;
8980
8981    amigaos*)
8982      case $host_cpu in
8983      powerpc)
8984            # see comment about AmigaOS4 .so support
8985            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8986            archive_expsym_cmds=''
8987        ;;
8988      m68k)
8989            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)'
8990            hardcode_libdir_flag_spec='-L$libdir'
8991            hardcode_minus_L=yes
8992        ;;
8993      esac
8994      ;;
8995
8996    beos*)
8997      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8998	allow_undefined_flag=unsupported
8999	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9000	# support --undefined.  This deserves some investigation.  FIXME
9001	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9002      else
9003	ld_shlibs=no
9004      fi
9005      ;;
9006
9007    cygwin* | mingw* | pw32* | cegcc*)
9008      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9009      # as there is no search path for DLLs.
9010      hardcode_libdir_flag_spec='-L$libdir'
9011      export_dynamic_flag_spec='$wl--export-all-symbols'
9012      allow_undefined_flag=unsupported
9013      always_export_symbols=no
9014      enable_shared_with_static_runtimes=yes
9015      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'
9016      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9017
9018      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9019        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9020	# If the export-symbols file already is a .def file, use it as
9021	# is; otherwise, prepend EXPORTS...
9022	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9023          cp $export_symbols $output_objdir/$soname.def;
9024        else
9025          echo EXPORTS > $output_objdir/$soname.def;
9026          cat $export_symbols >> $output_objdir/$soname.def;
9027        fi~
9028        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9029      else
9030	ld_shlibs=no
9031      fi
9032      ;;
9033
9034    haiku*)
9035      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9036      link_all_deplibs=yes
9037      ;;
9038
9039    os2*)
9040      hardcode_libdir_flag_spec='-L$libdir'
9041      hardcode_minus_L=yes
9042      allow_undefined_flag=unsupported
9043      shrext_cmds=.dll
9044      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9045	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9046	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9047	$ECHO EXPORTS >> $output_objdir/$libname.def~
9048	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9049	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9050	emximp -o $lib $output_objdir/$libname.def'
9051      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9052	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9053	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9054	$ECHO EXPORTS >> $output_objdir/$libname.def~
9055	prefix_cmds="$SED"~
9056	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9057	  prefix_cmds="$prefix_cmds -e 1d";
9058	fi~
9059	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9060	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9061	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9062	emximp -o $lib $output_objdir/$libname.def'
9063      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9064      enable_shared_with_static_runtimes=yes
9065      ;;
9066
9067    interix[3-9]*)
9068      hardcode_direct=no
9069      hardcode_shlibpath_var=no
9070      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9071      export_dynamic_flag_spec='$wl-E'
9072      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9073      # Instead, shared libraries are loaded at an image base (0x10000000 by
9074      # default) and relocated if they conflict, which is a slow very memory
9075      # consuming and fragmenting process.  To avoid this, we pick a random,
9076      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9077      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9078      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9079      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'
9080      ;;
9081
9082    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9083      tmp_diet=no
9084      if test linux-dietlibc = "$host_os"; then
9085	case $cc_basename in
9086	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9087	esac
9088      fi
9089      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9090	 && test no = "$tmp_diet"
9091      then
9092	tmp_addflag=' $pic_flag'
9093	tmp_sharedflag='-shared'
9094	case $cc_basename,$host_cpu in
9095        pgcc*)				# Portland Group C compiler
9096	  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'
9097	  tmp_addflag=' $pic_flag'
9098	  ;;
9099	pgf77* | pgf90* | pgf95* | pgfortran*)
9100					# Portland Group f77 and f90 compilers
9101	  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'
9102	  tmp_addflag=' $pic_flag -Mnomain' ;;
9103	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9104	  tmp_addflag=' -i_dynamic' ;;
9105	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9106	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9107	ifc* | ifort*)			# Intel Fortran compiler
9108	  tmp_addflag=' -nofor_main' ;;
9109	lf95*)				# Lahey Fortran 8.1
9110	  whole_archive_flag_spec=
9111	  tmp_sharedflag='--shared' ;;
9112        nagfor*)                        # NAGFOR 5.3
9113          tmp_sharedflag='-Wl,-shared' ;;
9114	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9115	  tmp_sharedflag='-qmkshrobj'
9116	  tmp_addflag= ;;
9117	nvcc*)	# Cuda Compiler Driver 2.2
9118	  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'
9119	  compiler_needs_object=yes
9120	  ;;
9121	esac
9122	case `$CC -V 2>&1 | sed 5q` in
9123	*Sun\ C*)			# Sun C 5.9
9124	  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'
9125	  compiler_needs_object=yes
9126	  tmp_sharedflag='-G' ;;
9127	*Sun\ F*)			# Sun Fortran 8.3
9128	  tmp_sharedflag='-G' ;;
9129	esac
9130	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9131
9132        if test yes = "$supports_anon_versioning"; then
9133          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9134            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9135            echo "local: *; };" >> $output_objdir/$libname.ver~
9136            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9137        fi
9138
9139	case $cc_basename in
9140	tcc*)
9141	  export_dynamic_flag_spec='-rdynamic'
9142	  ;;
9143	xlf* | bgf* | bgxlf* | mpixlf*)
9144	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9145	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9146	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9147	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9148	  if test yes = "$supports_anon_versioning"; then
9149	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9150              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9151              echo "local: *; };" >> $output_objdir/$libname.ver~
9152              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9153	  fi
9154	  ;;
9155	esac
9156      else
9157        ld_shlibs=no
9158      fi
9159      ;;
9160
9161    netbsd* | netbsdelf*-gnu)
9162      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9163	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9164	wlarc=
9165      else
9166	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9167	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9168      fi
9169      ;;
9170
9171    solaris*)
9172      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9173	ld_shlibs=no
9174	cat <<_LT_EOF 1>&2
9175
9176*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9177*** create shared libraries on Solaris systems.  Therefore, libtool
9178*** is disabling shared libraries support.  We urge you to upgrade GNU
9179*** binutils to release 2.9.1 or newer.  Another option is to modify
9180*** your PATH or compiler configuration so that the native linker is
9181*** used, and then restart.
9182
9183_LT_EOF
9184      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9185	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9186	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9187      else
9188	ld_shlibs=no
9189      fi
9190      ;;
9191
9192    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9193      case `$LD -v 2>&1` in
9194        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9195	ld_shlibs=no
9196	cat <<_LT_EOF 1>&2
9197
9198*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9199*** reliably create shared libraries on SCO systems.  Therefore, libtool
9200*** is disabling shared libraries support.  We urge you to upgrade GNU
9201*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9202*** your PATH or compiler configuration so that the native linker is
9203*** used, and then restart.
9204
9205_LT_EOF
9206	;;
9207	*)
9208	  # For security reasons, it is highly recommended that you always
9209	  # use absolute paths for naming shared libraries, and exclude the
9210	  # DT_RUNPATH tag from executables and libraries.  But doing so
9211	  # requires that you compile everything twice, which is a pain.
9212	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9214	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9215	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9216	  else
9217	    ld_shlibs=no
9218	  fi
9219	;;
9220      esac
9221      ;;
9222
9223    sunos4*)
9224      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9225      wlarc=
9226      hardcode_direct=yes
9227      hardcode_shlibpath_var=no
9228      ;;
9229
9230    *)
9231      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9233	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9234      else
9235	ld_shlibs=no
9236      fi
9237      ;;
9238    esac
9239
9240    if test no = "$ld_shlibs"; then
9241      runpath_var=
9242      hardcode_libdir_flag_spec=
9243      export_dynamic_flag_spec=
9244      whole_archive_flag_spec=
9245    fi
9246  else
9247    # PORTME fill in a description of your system's linker (not GNU ld)
9248    case $host_os in
9249    aix3*)
9250      allow_undefined_flag=unsupported
9251      always_export_symbols=yes
9252      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'
9253      # Note: this linker hardcodes the directories in LIBPATH if there
9254      # are no directories specified by -L.
9255      hardcode_minus_L=yes
9256      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9257	# Neither direct hardcoding nor static linking is supported with a
9258	# broken collect2.
9259	hardcode_direct=unsupported
9260      fi
9261      ;;
9262
9263    aix[4-9]*)
9264      if test ia64 = "$host_cpu"; then
9265	# On IA64, the linker does run time linking by default, so we don't
9266	# have to do anything special.
9267	aix_use_runtimelinking=no
9268	exp_sym_flag='-Bexport'
9269	no_entry_flag=
9270      else
9271	# If we're using GNU nm, then we don't want the "-C" option.
9272	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9273	# Without the "-l" option, or with the "-B" option, AIX nm treats
9274	# weak defined symbols like other global defined symbols, whereas
9275	# GNU nm marks them as "W".
9276	# While the 'weak' keyword is ignored in the Export File, we need
9277	# it in the Import File for the 'aix-soname' feature, so we have
9278	# to replace the "-B" option with "-P" for AIX nm.
9279	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9280	  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'
9281	else
9282	  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'
9283	fi
9284	aix_use_runtimelinking=no
9285
9286	# Test if we are trying to use run time linking or normal
9287	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9288	# have runtime linking enabled, and use it for executables.
9289	# For shared libraries, we enable/disable runtime linking
9290	# depending on the kind of the shared library created -
9291	# when "with_aix_soname,aix_use_runtimelinking" is:
9292	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9293	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9294	#            lib.a           static archive
9295	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9296	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9297	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9298	#            lib.a(lib.so.V) shared, rtl:no
9299	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9300	#            lib.a           static archive
9301	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9302	  for ld_flag in $LDFLAGS; do
9303	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9304	    aix_use_runtimelinking=yes
9305	    break
9306	  fi
9307	  done
9308	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9309	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9310	    # so we don't have lib.a shared libs to link our executables.
9311	    # We have to force runtime linking in this case.
9312	    aix_use_runtimelinking=yes
9313	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9314	  fi
9315	  ;;
9316	esac
9317
9318	exp_sym_flag='-bexport'
9319	no_entry_flag='-bnoentry'
9320      fi
9321
9322      # When large executables or shared objects are built, AIX ld can
9323      # have problems creating the table of contents.  If linking a library
9324      # or program results in "error TOC overflow" add -mminimal-toc to
9325      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9326      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9327
9328      archive_cmds=''
9329      hardcode_direct=yes
9330      hardcode_direct_absolute=yes
9331      hardcode_libdir_separator=':'
9332      link_all_deplibs=yes
9333      file_list_spec='$wl-f,'
9334      case $with_aix_soname,$aix_use_runtimelinking in
9335      aix,*) ;; # traditional, no import file
9336      svr4,* | *,yes) # use import file
9337	# The Import File defines what to hardcode.
9338	hardcode_direct=no
9339	hardcode_direct_absolute=no
9340	;;
9341      esac
9342
9343      if test yes = "$GCC"; then
9344	case $host_os in aix4.[012]|aix4.[012].*)
9345	# We only want to do this on AIX 4.2 and lower, the check
9346	# below for broken collect2 doesn't work under 4.3+
9347	  collect2name=`$CC -print-prog-name=collect2`
9348	  if test -f "$collect2name" &&
9349	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9350	  then
9351	  # We have reworked collect2
9352	  :
9353	  else
9354	  # We have old collect2
9355	  hardcode_direct=unsupported
9356	  # It fails to find uninstalled libraries when the uninstalled
9357	  # path is not listed in the libpath.  Setting hardcode_minus_L
9358	  # to unsupported forces relinking
9359	  hardcode_minus_L=yes
9360	  hardcode_libdir_flag_spec='-L$libdir'
9361	  hardcode_libdir_separator=
9362	  fi
9363	  ;;
9364	esac
9365	shared_flag='-shared'
9366	if test yes = "$aix_use_runtimelinking"; then
9367	  shared_flag="$shared_flag "'$wl-G'
9368	fi
9369	# Need to ensure runtime linking is disabled for the traditional
9370	# shared library, or the linker may eventually find shared libraries
9371	# /with/ Import File - we do not want to mix them.
9372	shared_flag_aix='-shared'
9373	shared_flag_svr4='-shared $wl-G'
9374      else
9375	# not using gcc
9376	if test ia64 = "$host_cpu"; then
9377	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9378	# chokes on -Wl,-G. The following line is correct:
9379	  shared_flag='-G'
9380	else
9381	  if test yes = "$aix_use_runtimelinking"; then
9382	    shared_flag='$wl-G'
9383	  else
9384	    shared_flag='$wl-bM:SRE'
9385	  fi
9386	  shared_flag_aix='$wl-bM:SRE'
9387	  shared_flag_svr4='$wl-G'
9388	fi
9389      fi
9390
9391      export_dynamic_flag_spec='$wl-bexpall'
9392      # It seems that -bexpall does not export symbols beginning with
9393      # underscore (_), so it is better to generate a list of symbols to export.
9394      always_export_symbols=yes
9395      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9396	# Warning - without using the other runtime loading flags (-brtl),
9397	# -berok will link without error, but may produce a broken library.
9398	allow_undefined_flag='-berok'
9399        # Determine the default libpath from the value encoded in an
9400        # empty executable.
9401        if test set = "${lt_cv_aix_libpath+set}"; then
9402  aix_libpath=$lt_cv_aix_libpath
9403else
9404  if ${lt_cv_aix_libpath_+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408/* end confdefs.h.  */
9409
9410int
9411main ()
9412{
9413
9414  ;
9415  return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419
9420  lt_aix_libpath_sed='
9421      /Import File Strings/,/^$/ {
9422	  /^0/ {
9423	      s/^0  *\([^ ]*\) *$/\1/
9424	      p
9425	  }
9426      }'
9427  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9428  # Check for a 64-bit object if we didn't find anything.
9429  if test -z "$lt_cv_aix_libpath_"; then
9430    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9431  fi
9432fi
9433rm -f core conftest.err conftest.$ac_objext \
9434    conftest$ac_exeext conftest.$ac_ext
9435  if test -z "$lt_cv_aix_libpath_"; then
9436    lt_cv_aix_libpath_=/usr/lib:/lib
9437  fi
9438
9439fi
9440
9441  aix_libpath=$lt_cv_aix_libpath_
9442fi
9443
9444        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9445        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
9446      else
9447	if test ia64 = "$host_cpu"; then
9448	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9449	  allow_undefined_flag="-z nodefs"
9450	  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"
9451	else
9452	 # Determine the default libpath from the value encoded in an
9453	 # empty executable.
9454	 if test set = "${lt_cv_aix_libpath+set}"; then
9455  aix_libpath=$lt_cv_aix_libpath
9456else
9457  if ${lt_cv_aix_libpath_+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h.  */
9462
9463int
9464main ()
9465{
9466
9467  ;
9468  return 0;
9469}
9470_ACEOF
9471if ac_fn_c_try_link "$LINENO"; then :
9472
9473  lt_aix_libpath_sed='
9474      /Import File Strings/,/^$/ {
9475	  /^0/ {
9476	      s/^0  *\([^ ]*\) *$/\1/
9477	      p
9478	  }
9479      }'
9480  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481  # Check for a 64-bit object if we didn't find anything.
9482  if test -z "$lt_cv_aix_libpath_"; then
9483    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484  fi
9485fi
9486rm -f core conftest.err conftest.$ac_objext \
9487    conftest$ac_exeext conftest.$ac_ext
9488  if test -z "$lt_cv_aix_libpath_"; then
9489    lt_cv_aix_libpath_=/usr/lib:/lib
9490  fi
9491
9492fi
9493
9494  aix_libpath=$lt_cv_aix_libpath_
9495fi
9496
9497	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9498	  # Warning - without using the other run time loading flags,
9499	  # -berok will link without error, but may produce a broken library.
9500	  no_undefined_flag=' $wl-bernotok'
9501	  allow_undefined_flag=' $wl-berok'
9502	  if test yes = "$with_gnu_ld"; then
9503	    # We only use this code for GNU lds that support --whole-archive.
9504	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9505	  else
9506	    # Exported symbols can be pulled into shared objects from archives
9507	    whole_archive_flag_spec='$convenience'
9508	  fi
9509	  archive_cmds_need_lc=yes
9510	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9511	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9512	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9513	  if test svr4 != "$with_aix_soname"; then
9514	    # This is similar to how AIX traditionally builds its shared libraries.
9515	    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'
9516	  fi
9517	  if test aix != "$with_aix_soname"; then
9518	    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'
9519	  else
9520	    # used by -dlpreopen to get the symbols
9521	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9522	  fi
9523	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9524	fi
9525      fi
9526      ;;
9527
9528    amigaos*)
9529      case $host_cpu in
9530      powerpc)
9531            # see comment about AmigaOS4 .so support
9532            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533            archive_expsym_cmds=''
9534        ;;
9535      m68k)
9536            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)'
9537            hardcode_libdir_flag_spec='-L$libdir'
9538            hardcode_minus_L=yes
9539        ;;
9540      esac
9541      ;;
9542
9543    bsdi[45]*)
9544      export_dynamic_flag_spec=-rdynamic
9545      ;;
9546
9547    cygwin* | mingw* | pw32* | cegcc*)
9548      # When not using gcc, we currently assume that we are using
9549      # Microsoft Visual C++.
9550      # hardcode_libdir_flag_spec is actually meaningless, as there is
9551      # no search path for DLLs.
9552      case $cc_basename in
9553      cl*)
9554	# Native MSVC
9555	hardcode_libdir_flag_spec=' '
9556	allow_undefined_flag=unsupported
9557	always_export_symbols=yes
9558	file_list_spec='@'
9559	# Tell ltmain to make .lib files, not .a files.
9560	libext=lib
9561	# Tell ltmain to make .dll files, not .so files.
9562	shrext_cmds=.dll
9563	# FIXME: Setting linknames here is a bad hack.
9564	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9565	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9566            cp "$export_symbols" "$output_objdir/$soname.def";
9567            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9568          else
9569            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9570          fi~
9571          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9572          linknames='
9573	# The linker will not automatically build a static lib if we build a DLL.
9574	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9575	enable_shared_with_static_runtimes=yes
9576	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9577	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9578	# Don't use ranlib
9579	old_postinstall_cmds='chmod 644 $oldlib'
9580	postlink_cmds='lt_outputfile="@OUTPUT@"~
9581          lt_tool_outputfile="@TOOL_OUTPUT@"~
9582          case $lt_outputfile in
9583            *.exe|*.EXE) ;;
9584            *)
9585              lt_outputfile=$lt_outputfile.exe
9586              lt_tool_outputfile=$lt_tool_outputfile.exe
9587              ;;
9588          esac~
9589          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9590            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9591            $RM "$lt_outputfile.manifest";
9592          fi'
9593	;;
9594      *)
9595	# Assume MSVC wrapper
9596	hardcode_libdir_flag_spec=' '
9597	allow_undefined_flag=unsupported
9598	# Tell ltmain to make .lib files, not .a files.
9599	libext=lib
9600	# Tell ltmain to make .dll files, not .so files.
9601	shrext_cmds=.dll
9602	# FIXME: Setting linknames here is a bad hack.
9603	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9604	# The linker will automatically build a .lib file if we build a DLL.
9605	old_archive_from_new_cmds='true'
9606	# FIXME: Should let the user specify the lib program.
9607	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9608	enable_shared_with_static_runtimes=yes
9609	;;
9610      esac
9611      ;;
9612
9613    darwin* | rhapsody*)
9614
9615
9616  archive_cmds_need_lc=no
9617  hardcode_direct=no
9618  hardcode_automatic=yes
9619  hardcode_shlibpath_var=unsupported
9620  if test yes = "$lt_cv_ld_force_load"; then
9621    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\"`'
9622
9623  else
9624    whole_archive_flag_spec=''
9625  fi
9626  link_all_deplibs=yes
9627  allow_undefined_flag=$_lt_dar_allow_undefined
9628  case $cc_basename in
9629     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9630     *) _lt_dar_can_shared=$GCC ;;
9631  esac
9632  if test yes = "$_lt_dar_can_shared"; then
9633    output_verbose_link_cmd=func_echo_all
9634    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9635    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9636    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"
9637    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"
9638
9639  else
9640  ld_shlibs=no
9641  fi
9642
9643      ;;
9644
9645    dgux*)
9646      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647      hardcode_libdir_flag_spec='-L$libdir'
9648      hardcode_shlibpath_var=no
9649      ;;
9650
9651    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9652    # support.  Future versions do this automatically, but an explicit c++rt0.o
9653    # does not break anything, and helps significantly (at the cost of a little
9654    # extra space).
9655    freebsd2.2*)
9656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9657      hardcode_libdir_flag_spec='-R$libdir'
9658      hardcode_direct=yes
9659      hardcode_shlibpath_var=no
9660      ;;
9661
9662    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9663    freebsd2.*)
9664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9665      hardcode_direct=yes
9666      hardcode_minus_L=yes
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9671    freebsd* | dragonfly*)
9672      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9673      hardcode_libdir_flag_spec='-R$libdir'
9674      hardcode_direct=yes
9675      hardcode_shlibpath_var=no
9676      ;;
9677
9678    hpux9*)
9679      if test yes = "$GCC"; then
9680	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'
9681      else
9682	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'
9683      fi
9684      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9685      hardcode_libdir_separator=:
9686      hardcode_direct=yes
9687
9688      # hardcode_minus_L: Not really in the search PATH,
9689      # but as the default location of the library.
9690      hardcode_minus_L=yes
9691      export_dynamic_flag_spec='$wl-E'
9692      ;;
9693
9694    hpux10*)
9695      if test yes,no = "$GCC,$with_gnu_ld"; then
9696	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697      else
9698	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9699      fi
9700      if test no = "$with_gnu_ld"; then
9701	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9702	hardcode_libdir_separator=:
9703	hardcode_direct=yes
9704	hardcode_direct_absolute=yes
9705	export_dynamic_flag_spec='$wl-E'
9706	# hardcode_minus_L: Not really in the search PATH,
9707	# but as the default location of the library.
9708	hardcode_minus_L=yes
9709      fi
9710      ;;
9711
9712    hpux11*)
9713      if test yes,no = "$GCC,$with_gnu_ld"; then
9714	case $host_cpu in
9715	hppa*64*)
9716	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9717	  ;;
9718	ia64*)
9719	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9720	  ;;
9721	*)
9722	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9723	  ;;
9724	esac
9725      else
9726	case $host_cpu in
9727	hppa*64*)
9728	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9729	  ;;
9730	ia64*)
9731	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9732	  ;;
9733	*)
9734
9735	  # Older versions of the 11.00 compiler do not understand -b yet
9736	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9737	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9738$as_echo_n "checking if $CC understands -b... " >&6; }
9739if ${lt_cv_prog_compiler__b+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  lt_cv_prog_compiler__b=no
9743   save_LDFLAGS=$LDFLAGS
9744   LDFLAGS="$LDFLAGS -b"
9745   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9746   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9747     # The linker can only warn and ignore the option if not recognized
9748     # So say no if there are warnings
9749     if test -s conftest.err; then
9750       # Append any errors to the config.log.
9751       cat conftest.err 1>&5
9752       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9753       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9754       if diff conftest.exp conftest.er2 >/dev/null; then
9755         lt_cv_prog_compiler__b=yes
9756       fi
9757     else
9758       lt_cv_prog_compiler__b=yes
9759     fi
9760   fi
9761   $RM -r conftest*
9762   LDFLAGS=$save_LDFLAGS
9763
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9766$as_echo "$lt_cv_prog_compiler__b" >&6; }
9767
9768if test yes = "$lt_cv_prog_compiler__b"; then
9769    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770else
9771    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9772fi
9773
9774	  ;;
9775	esac
9776      fi
9777      if test no = "$with_gnu_ld"; then
9778	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9779	hardcode_libdir_separator=:
9780
9781	case $host_cpu in
9782	hppa*64*|ia64*)
9783	  hardcode_direct=no
9784	  hardcode_shlibpath_var=no
9785	  ;;
9786	*)
9787	  hardcode_direct=yes
9788	  hardcode_direct_absolute=yes
9789	  export_dynamic_flag_spec='$wl-E'
9790
9791	  # hardcode_minus_L: Not really in the search PATH,
9792	  # but as the default location of the library.
9793	  hardcode_minus_L=yes
9794	  ;;
9795	esac
9796      fi
9797      ;;
9798
9799    irix5* | irix6* | nonstopux*)
9800      if test yes = "$GCC"; then
9801	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'
9802	# Try to use the -exported_symbol ld option, if it does not
9803	# work, assume that -exports_file does not work either and
9804	# implicitly export all symbols.
9805	# This should be the same for all languages, so no per-tag cache variable.
9806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9807$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9808if ${lt_cv_irix_exported_symbol+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  save_LDFLAGS=$LDFLAGS
9812	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9813	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int foo (void) { return 0; }
9816_ACEOF
9817if ac_fn_c_try_link "$LINENO"; then :
9818  lt_cv_irix_exported_symbol=yes
9819else
9820  lt_cv_irix_exported_symbol=no
9821fi
9822rm -f core conftest.err conftest.$ac_objext \
9823    conftest$ac_exeext conftest.$ac_ext
9824           LDFLAGS=$save_LDFLAGS
9825fi
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9827$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9828	if test yes = "$lt_cv_irix_exported_symbol"; then
9829          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'
9830	fi
9831	link_all_deplibs=no
9832      else
9833	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'
9834	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'
9835      fi
9836      archive_cmds_need_lc='no'
9837      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9838      hardcode_libdir_separator=:
9839      inherit_rpath=yes
9840      link_all_deplibs=yes
9841      ;;
9842
9843    linux*)
9844      case $cc_basename in
9845      tcc*)
9846	# Fabrice Bellard et al's Tiny C Compiler
9847	ld_shlibs=yes
9848	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9849	;;
9850      esac
9851      ;;
9852
9853    netbsd* | netbsdelf*-gnu)
9854      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9855	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9856      else
9857	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9858      fi
9859      hardcode_libdir_flag_spec='-R$libdir'
9860      hardcode_direct=yes
9861      hardcode_shlibpath_var=no
9862      ;;
9863
9864    newsos6)
9865      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866      hardcode_direct=yes
9867      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9868      hardcode_libdir_separator=:
9869      hardcode_shlibpath_var=no
9870      ;;
9871
9872    *nto* | *qnx*)
9873      ;;
9874
9875    openbsd* | bitrig*)
9876      if test -f /usr/libexec/ld.so; then
9877	hardcode_direct=yes
9878	hardcode_shlibpath_var=no
9879	hardcode_direct_absolute=yes
9880	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9881	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9882	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9883	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9884	  export_dynamic_flag_spec='$wl-E'
9885	else
9886	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9887	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9888	fi
9889      else
9890	ld_shlibs=no
9891      fi
9892      ;;
9893
9894    os2*)
9895      hardcode_libdir_flag_spec='-L$libdir'
9896      hardcode_minus_L=yes
9897      allow_undefined_flag=unsupported
9898      shrext_cmds=.dll
9899      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9900	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9901	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9902	$ECHO EXPORTS >> $output_objdir/$libname.def~
9903	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9904	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9905	emximp -o $lib $output_objdir/$libname.def'
9906      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9907	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9908	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9909	$ECHO EXPORTS >> $output_objdir/$libname.def~
9910	prefix_cmds="$SED"~
9911	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9912	  prefix_cmds="$prefix_cmds -e 1d";
9913	fi~
9914	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9915	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9916	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9917	emximp -o $lib $output_objdir/$libname.def'
9918      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9919      enable_shared_with_static_runtimes=yes
9920      ;;
9921
9922    osf3*)
9923      if test yes = "$GCC"; then
9924	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9925	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'
9926      else
9927	allow_undefined_flag=' -expect_unresolved \*'
9928	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'
9929      fi
9930      archive_cmds_need_lc='no'
9931      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9932      hardcode_libdir_separator=:
9933      ;;
9934
9935    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9936      if test yes = "$GCC"; then
9937	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9938	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'
9939	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9940      else
9941	allow_undefined_flag=' -expect_unresolved \*'
9942	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'
9943	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~
9944          $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'
9945
9946	# Both c and cxx compiler support -rpath directly
9947	hardcode_libdir_flag_spec='-rpath $libdir'
9948      fi
9949      archive_cmds_need_lc='no'
9950      hardcode_libdir_separator=:
9951      ;;
9952
9953    solaris*)
9954      no_undefined_flag=' -z defs'
9955      if test yes = "$GCC"; then
9956	wlarc='$wl'
9957	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9958	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9959          $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'
9960      else
9961	case `$CC -V 2>&1` in
9962	*"Compilers 5.0"*)
9963	  wlarc=''
9964	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9966            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9967	  ;;
9968	*)
9969	  wlarc='$wl'
9970	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9971	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9973	  ;;
9974	esac
9975      fi
9976      hardcode_libdir_flag_spec='-R$libdir'
9977      hardcode_shlibpath_var=no
9978      case $host_os in
9979      solaris2.[0-5] | solaris2.[0-5].*) ;;
9980      *)
9981	# The compiler driver will combine and reorder linker options,
9982	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9983	# but is careful enough not to reorder.
9984	# Supported since Solaris 2.6 (maybe 2.5.1?)
9985	if test yes = "$GCC"; then
9986	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9987	else
9988	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9989	fi
9990	;;
9991      esac
9992      link_all_deplibs=yes
9993      ;;
9994
9995    sunos4*)
9996      if test sequent = "$host_vendor"; then
9997	# Use $CC to link under sequent, because it throws in some extra .o
9998	# files that make .init and .fini sections work.
9999	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10000      else
10001	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10002      fi
10003      hardcode_libdir_flag_spec='-L$libdir'
10004      hardcode_direct=yes
10005      hardcode_minus_L=yes
10006      hardcode_shlibpath_var=no
10007      ;;
10008
10009    sysv4)
10010      case $host_vendor in
10011	sni)
10012	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013	  hardcode_direct=yes # is this really true???
10014	;;
10015	siemens)
10016	  ## LD is ld it makes a PLAMLIB
10017	  ## CC just makes a GrossModule.
10018	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10019	  reload_cmds='$CC -r -o $output$reload_objs'
10020	  hardcode_direct=no
10021        ;;
10022	motorola)
10023	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10025	;;
10026      esac
10027      runpath_var='LD_RUN_PATH'
10028      hardcode_shlibpath_var=no
10029      ;;
10030
10031    sysv4.3*)
10032      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033      hardcode_shlibpath_var=no
10034      export_dynamic_flag_spec='-Bexport'
10035      ;;
10036
10037    sysv4*MP*)
10038      if test -d /usr/nec; then
10039	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040	hardcode_shlibpath_var=no
10041	runpath_var=LD_RUN_PATH
10042	hardcode_runpath_var=yes
10043	ld_shlibs=yes
10044      fi
10045      ;;
10046
10047    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10048      no_undefined_flag='$wl-z,text'
10049      archive_cmds_need_lc=no
10050      hardcode_shlibpath_var=no
10051      runpath_var='LD_RUN_PATH'
10052
10053      if test yes = "$GCC"; then
10054	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056      else
10057	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059      fi
10060      ;;
10061
10062    sysv5* | sco3.2v5* | sco5v6*)
10063      # Note: We CANNOT use -z defs as we might desire, because we do not
10064      # link with -lc, and that would cause any symbols used from libc to
10065      # always be unresolved, which means just about no library would
10066      # ever link correctly.  If we're not using GNU ld we use -z text
10067      # though, which does catch some bad symbols but isn't as heavy-handed
10068      # as -z defs.
10069      no_undefined_flag='$wl-z,text'
10070      allow_undefined_flag='$wl-z,nodefs'
10071      archive_cmds_need_lc=no
10072      hardcode_shlibpath_var=no
10073      hardcode_libdir_flag_spec='$wl-R,$libdir'
10074      hardcode_libdir_separator=':'
10075      link_all_deplibs=yes
10076      export_dynamic_flag_spec='$wl-Bexport'
10077      runpath_var='LD_RUN_PATH'
10078
10079      if test yes = "$GCC"; then
10080	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082      else
10083	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085      fi
10086      ;;
10087
10088    uts4*)
10089      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090      hardcode_libdir_flag_spec='-L$libdir'
10091      hardcode_shlibpath_var=no
10092      ;;
10093
10094    *)
10095      ld_shlibs=no
10096      ;;
10097    esac
10098
10099    if test sni = "$host_vendor"; then
10100      case $host in
10101      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10102	export_dynamic_flag_spec='$wl-Blargedynsym'
10103	;;
10104      esac
10105    fi
10106  fi
10107
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10109$as_echo "$ld_shlibs" >&6; }
10110test no = "$ld_shlibs" && can_build_shared=no
10111
10112with_gnu_ld=$with_gnu_ld
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128#
10129# Do we need to explicitly link libc?
10130#
10131case "x$archive_cmds_need_lc" in
10132x|xyes)
10133  # Assume -lc should be added
10134  archive_cmds_need_lc=yes
10135
10136  if test yes,yes = "$GCC,$enable_shared"; then
10137    case $archive_cmds in
10138    *'~'*)
10139      # FIXME: we may have to deal with multi-command sequences.
10140      ;;
10141    '$CC '*)
10142      # Test whether the compiler implicitly links with -lc since on some
10143      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10144      # to ld, don't add -lc before -lgcc.
10145      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10146$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10147if ${lt_cv_archive_cmds_need_lc+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  $RM conftest*
10151	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152
10153	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10154  (eval $ac_compile) 2>&5
10155  ac_status=$?
10156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157  test $ac_status = 0; } 2>conftest.err; then
10158	  soname=conftest
10159	  lib=conftest
10160	  libobjs=conftest.$ac_objext
10161	  deplibs=
10162	  wl=$lt_prog_compiler_wl
10163	  pic_flag=$lt_prog_compiler_pic
10164	  compiler_flags=-v
10165	  linker_flags=-v
10166	  verstring=
10167	  output_objdir=.
10168	  libname=conftest
10169	  lt_save_allow_undefined_flag=$allow_undefined_flag
10170	  allow_undefined_flag=
10171	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10172  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10173  ac_status=$?
10174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10175  test $ac_status = 0; }
10176	  then
10177	    lt_cv_archive_cmds_need_lc=no
10178	  else
10179	    lt_cv_archive_cmds_need_lc=yes
10180	  fi
10181	  allow_undefined_flag=$lt_save_allow_undefined_flag
10182	else
10183	  cat conftest.err 1>&5
10184	fi
10185	$RM conftest*
10186
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10189$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10190      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10191      ;;
10192    esac
10193  fi
10194  ;;
10195esac
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10349$as_echo_n "checking dynamic linker characteristics... " >&6; }
10350
10351if test yes = "$GCC"; then
10352  case $host_os in
10353    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10354    *) lt_awk_arg='/^libraries:/' ;;
10355  esac
10356  case $host_os in
10357    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10358    *) lt_sed_strip_eq='s|=/|/|g' ;;
10359  esac
10360  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10361  case $lt_search_path_spec in
10362  *\;*)
10363    # if the path contains ";" then we assume it to be the separator
10364    # otherwise default to the standard path separator (i.e. ":") - it is
10365    # assumed that no part of a normal pathname contains ";" but that should
10366    # okay in the real world where ";" in dirpaths is itself problematic.
10367    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10368    ;;
10369  *)
10370    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10371    ;;
10372  esac
10373  # Ok, now we have the path, separated by spaces, we can step through it
10374  # and add multilib dir if necessary...
10375  lt_tmp_lt_search_path_spec=
10376  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10377  # ...but if some path component already ends with the multilib dir we assume
10378  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10379  case "$lt_multi_os_dir; $lt_search_path_spec " in
10380  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10381    lt_multi_os_dir=
10382    ;;
10383  esac
10384  for lt_sys_path in $lt_search_path_spec; do
10385    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10386      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10387    elif test -n "$lt_multi_os_dir"; then
10388      test -d "$lt_sys_path" && \
10389	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10390    fi
10391  done
10392  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10393BEGIN {RS = " "; FS = "/|\n";} {
10394  lt_foo = "";
10395  lt_count = 0;
10396  for (lt_i = NF; lt_i > 0; lt_i--) {
10397    if ($lt_i != "" && $lt_i != ".") {
10398      if ($lt_i == "..") {
10399        lt_count++;
10400      } else {
10401        if (lt_count == 0) {
10402          lt_foo = "/" $lt_i lt_foo;
10403        } else {
10404          lt_count--;
10405        }
10406      }
10407    }
10408  }
10409  if (lt_foo != "") { lt_freq[lt_foo]++; }
10410  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10411}'`
10412  # AWK program above erroneously prepends '/' to C:/dos/paths
10413  # for these hosts.
10414  case $host_os in
10415    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10416      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10417  esac
10418  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10419else
10420  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10421fi
10422library_names_spec=
10423libname_spec='lib$name'
10424soname_spec=
10425shrext_cmds=.so
10426postinstall_cmds=
10427postuninstall_cmds=
10428finish_cmds=
10429finish_eval=
10430shlibpath_var=
10431shlibpath_overrides_runpath=unknown
10432version_type=none
10433dynamic_linker="$host_os ld.so"
10434sys_lib_dlsearch_path_spec="/lib /usr/lib"
10435need_lib_prefix=unknown
10436hardcode_into_libs=no
10437
10438# when you set need_version to no, make sure it does not cause -set_version
10439# flags to be left without arguments
10440need_version=unknown
10441
10442
10443
10444case $host_os in
10445aix3*)
10446  version_type=linux # correct to gnu/linux during the next big refactor
10447  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10448  shlibpath_var=LIBPATH
10449
10450  # AIX 3 has no versioning support, so we append a major version to the name.
10451  soname_spec='$libname$release$shared_ext$major'
10452  ;;
10453
10454aix[4-9]*)
10455  version_type=linux # correct to gnu/linux during the next big refactor
10456  need_lib_prefix=no
10457  need_version=no
10458  hardcode_into_libs=yes
10459  if test ia64 = "$host_cpu"; then
10460    # AIX 5 supports IA64
10461    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10462    shlibpath_var=LD_LIBRARY_PATH
10463  else
10464    # With GCC up to 2.95.x, collect2 would create an import file
10465    # for dependence libraries.  The import file would start with
10466    # the line '#! .'.  This would cause the generated library to
10467    # depend on '.', always an invalid library.  This was fixed in
10468    # development snapshots of GCC prior to 3.0.
10469    case $host_os in
10470      aix4 | aix4.[01] | aix4.[01].*)
10471      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10472	   echo ' yes '
10473	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10474	:
10475      else
10476	can_build_shared=no
10477      fi
10478      ;;
10479    esac
10480    # Using Import Files as archive members, it is possible to support
10481    # filename-based versioning of shared library archives on AIX. While
10482    # this would work for both with and without runtime linking, it will
10483    # prevent static linking of such archives. So we do filename-based
10484    # shared library versioning with .so extension only, which is used
10485    # when both runtime linking and shared linking is enabled.
10486    # Unfortunately, runtime linking may impact performance, so we do
10487    # not want this to be the default eventually. Also, we use the
10488    # versioned .so libs for executables only if there is the -brtl
10489    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10490    # To allow for filename-based versioning support, we need to create
10491    # libNAME.so.V as an archive file, containing:
10492    # *) an Import File, referring to the versioned filename of the
10493    #    archive as well as the shared archive member, telling the
10494    #    bitwidth (32 or 64) of that shared object, and providing the
10495    #    list of exported symbols of that shared object, eventually
10496    #    decorated with the 'weak' keyword
10497    # *) the shared object with the F_LOADONLY flag set, to really avoid
10498    #    it being seen by the linker.
10499    # At run time we better use the real file rather than another symlink,
10500    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10501
10502    case $with_aix_soname,$aix_use_runtimelinking in
10503    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10504    # soname into executable. Probably we can add versioning support to
10505    # collect2, so additional links can be useful in future.
10506    aix,yes) # traditional libtool
10507      dynamic_linker='AIX unversionable lib.so'
10508      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10509      # instead of lib<name>.a to let people know that these are not
10510      # typical AIX shared libraries.
10511      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10512      ;;
10513    aix,no) # traditional AIX only
10514      dynamic_linker='AIX lib.a(lib.so.V)'
10515      # We preserve .a as extension for shared libraries through AIX4.2
10516      # and later when we are not doing run time linking.
10517      library_names_spec='$libname$release.a $libname.a'
10518      soname_spec='$libname$release$shared_ext$major'
10519      ;;
10520    svr4,*) # full svr4 only
10521      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10522      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10523      # We do not specify a path in Import Files, so LIBPATH fires.
10524      shlibpath_overrides_runpath=yes
10525      ;;
10526    *,yes) # both, prefer svr4
10527      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10528      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10529      # unpreferred sharedlib libNAME.a needs extra handling
10530      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10531      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10532      # We do not specify a path in Import Files, so LIBPATH fires.
10533      shlibpath_overrides_runpath=yes
10534      ;;
10535    *,no) # both, prefer aix
10536      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10537      library_names_spec='$libname$release.a $libname.a'
10538      soname_spec='$libname$release$shared_ext$major'
10539      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10540      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10541      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10542      ;;
10543    esac
10544    shlibpath_var=LIBPATH
10545  fi
10546  ;;
10547
10548amigaos*)
10549  case $host_cpu in
10550  powerpc)
10551    # Since July 2007 AmigaOS4 officially supports .so libraries.
10552    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10553    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10554    ;;
10555  m68k)
10556    library_names_spec='$libname.ixlibrary $libname.a'
10557    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10558    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10559    ;;
10560  esac
10561  ;;
10562
10563beos*)
10564  library_names_spec='$libname$shared_ext'
10565  dynamic_linker="$host_os ld.so"
10566  shlibpath_var=LIBRARY_PATH
10567  ;;
10568
10569bsdi[45]*)
10570  version_type=linux # correct to gnu/linux during the next big refactor
10571  need_version=no
10572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10573  soname_spec='$libname$release$shared_ext$major'
10574  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10575  shlibpath_var=LD_LIBRARY_PATH
10576  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10577  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10578  # the default ld.so.conf also contains /usr/contrib/lib and
10579  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10580  # libtool to hard-code these into programs
10581  ;;
10582
10583cygwin* | mingw* | pw32* | cegcc*)
10584  version_type=windows
10585  shrext_cmds=.dll
10586  need_version=no
10587  need_lib_prefix=no
10588
10589  case $GCC,$cc_basename in
10590  yes,*)
10591    # gcc
10592    library_names_spec='$libname.dll.a'
10593    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10594    postinstall_cmds='base_file=`basename \$file`~
10595      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10596      dldir=$destdir/`dirname \$dlpath`~
10597      test -d \$dldir || mkdir -p \$dldir~
10598      $install_prog $dir/$dlname \$dldir/$dlname~
10599      chmod a+x \$dldir/$dlname~
10600      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10601        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10602      fi'
10603    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10604      dlpath=$dir/\$dldll~
10605       $RM \$dlpath'
10606    shlibpath_overrides_runpath=yes
10607
10608    case $host_os in
10609    cygwin*)
10610      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10611      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10612
10613      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10614      ;;
10615    mingw* | cegcc*)
10616      # MinGW DLLs use traditional 'lib' prefix
10617      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10618      ;;
10619    pw32*)
10620      # pw32 DLLs use 'pw' prefix rather than 'lib'
10621      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10622      ;;
10623    esac
10624    dynamic_linker='Win32 ld.exe'
10625    ;;
10626
10627  *,cl*)
10628    # Native MSVC
10629    libname_spec='$name'
10630    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10631    library_names_spec='$libname.dll.lib'
10632
10633    case $build_os in
10634    mingw*)
10635      sys_lib_search_path_spec=
10636      lt_save_ifs=$IFS
10637      IFS=';'
10638      for lt_path in $LIB
10639      do
10640        IFS=$lt_save_ifs
10641        # Let DOS variable expansion print the short 8.3 style file name.
10642        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10643        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10644      done
10645      IFS=$lt_save_ifs
10646      # Convert to MSYS style.
10647      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10648      ;;
10649    cygwin*)
10650      # Convert to unix form, then to dos form, then back to unix form
10651      # but this time dos style (no spaces!) so that the unix form looks
10652      # like /cygdrive/c/PROGRA~1:/cygdr...
10653      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10654      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10655      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10656      ;;
10657    *)
10658      sys_lib_search_path_spec=$LIB
10659      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10660        # It is most probably a Windows format PATH.
10661        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10662      else
10663        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10664      fi
10665      # FIXME: find the short name or the path components, as spaces are
10666      # common. (e.g. "Program Files" -> "PROGRA~1")
10667      ;;
10668    esac
10669
10670    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10671    postinstall_cmds='base_file=`basename \$file`~
10672      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10673      dldir=$destdir/`dirname \$dlpath`~
10674      test -d \$dldir || mkdir -p \$dldir~
10675      $install_prog $dir/$dlname \$dldir/$dlname'
10676    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10677      dlpath=$dir/\$dldll~
10678       $RM \$dlpath'
10679    shlibpath_overrides_runpath=yes
10680    dynamic_linker='Win32 link.exe'
10681    ;;
10682
10683  *)
10684    # Assume MSVC wrapper
10685    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10686    dynamic_linker='Win32 ld.exe'
10687    ;;
10688  esac
10689  # FIXME: first we should search . and the directory the executable is in
10690  shlibpath_var=PATH
10691  ;;
10692
10693darwin* | rhapsody*)
10694  dynamic_linker="$host_os dyld"
10695  version_type=darwin
10696  need_lib_prefix=no
10697  need_version=no
10698  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10699  soname_spec='$libname$release$major$shared_ext'
10700  shlibpath_overrides_runpath=yes
10701  shlibpath_var=DYLD_LIBRARY_PATH
10702  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10703
10704  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10705  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706  ;;
10707
10708dgux*)
10709  version_type=linux # correct to gnu/linux during the next big refactor
10710  need_lib_prefix=no
10711  need_version=no
10712  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10713  soname_spec='$libname$release$shared_ext$major'
10714  shlibpath_var=LD_LIBRARY_PATH
10715  ;;
10716
10717freebsd* | dragonfly*)
10718  # DragonFly does not have aout.  When/if they implement a new
10719  # versioning mechanism, adjust this.
10720  if test -x /usr/bin/objformat; then
10721    objformat=`/usr/bin/objformat`
10722  else
10723    case $host_os in
10724    freebsd[23].*) objformat=aout ;;
10725    *) objformat=elf ;;
10726    esac
10727  fi
10728  version_type=freebsd-$objformat
10729  case $version_type in
10730    freebsd-elf*)
10731      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10732      soname_spec='$libname$release$shared_ext$major'
10733      need_version=no
10734      need_lib_prefix=no
10735      ;;
10736    freebsd-*)
10737      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10738      need_version=yes
10739      ;;
10740  esac
10741  shlibpath_var=LD_LIBRARY_PATH
10742  case $host_os in
10743  freebsd2.*)
10744    shlibpath_overrides_runpath=yes
10745    ;;
10746  freebsd3.[01]* | freebsdelf3.[01]*)
10747    shlibpath_overrides_runpath=yes
10748    hardcode_into_libs=yes
10749    ;;
10750  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10751  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10752    shlibpath_overrides_runpath=no
10753    hardcode_into_libs=yes
10754    ;;
10755  *) # from 4.6 on, and DragonFly
10756    shlibpath_overrides_runpath=yes
10757    hardcode_into_libs=yes
10758    ;;
10759  esac
10760  ;;
10761
10762haiku*)
10763  version_type=linux # correct to gnu/linux during the next big refactor
10764  need_lib_prefix=no
10765  need_version=no
10766  dynamic_linker="$host_os runtime_loader"
10767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10768  soname_spec='$libname$release$shared_ext$major'
10769  shlibpath_var=LIBRARY_PATH
10770  shlibpath_overrides_runpath=no
10771  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10772  hardcode_into_libs=yes
10773  ;;
10774
10775hpux9* | hpux10* | hpux11*)
10776  # Give a soname corresponding to the major version so that dld.sl refuses to
10777  # link against other versions.
10778  version_type=sunos
10779  need_lib_prefix=no
10780  need_version=no
10781  case $host_cpu in
10782  ia64*)
10783    shrext_cmds='.so'
10784    hardcode_into_libs=yes
10785    dynamic_linker="$host_os dld.so"
10786    shlibpath_var=LD_LIBRARY_PATH
10787    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10789    soname_spec='$libname$release$shared_ext$major'
10790    if test 32 = "$HPUX_IA64_MODE"; then
10791      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10792      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10793    else
10794      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10795      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10796    fi
10797    ;;
10798  hppa*64*)
10799    shrext_cmds='.sl'
10800    hardcode_into_libs=yes
10801    dynamic_linker="$host_os dld.sl"
10802    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10803    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10804    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805    soname_spec='$libname$release$shared_ext$major'
10806    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10807    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10808    ;;
10809  *)
10810    shrext_cmds='.sl'
10811    dynamic_linker="$host_os dld.sl"
10812    shlibpath_var=SHLIB_PATH
10813    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10814    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10815    soname_spec='$libname$release$shared_ext$major'
10816    ;;
10817  esac
10818  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10819  postinstall_cmds='chmod 555 $lib'
10820  # or fails outright, so override atomically:
10821  install_override_mode=555
10822  ;;
10823
10824interix[3-9]*)
10825  version_type=linux # correct to gnu/linux during the next big refactor
10826  need_lib_prefix=no
10827  need_version=no
10828  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10829  soname_spec='$libname$release$shared_ext$major'
10830  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10831  shlibpath_var=LD_LIBRARY_PATH
10832  shlibpath_overrides_runpath=no
10833  hardcode_into_libs=yes
10834  ;;
10835
10836irix5* | irix6* | nonstopux*)
10837  case $host_os in
10838    nonstopux*) version_type=nonstopux ;;
10839    *)
10840	if test yes = "$lt_cv_prog_gnu_ld"; then
10841		version_type=linux # correct to gnu/linux during the next big refactor
10842	else
10843		version_type=irix
10844	fi ;;
10845  esac
10846  need_lib_prefix=no
10847  need_version=no
10848  soname_spec='$libname$release$shared_ext$major'
10849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10850  case $host_os in
10851  irix5* | nonstopux*)
10852    libsuff= shlibsuff=
10853    ;;
10854  *)
10855    case $LD in # libtool.m4 will add one of these switches to LD
10856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10857      libsuff= shlibsuff= libmagic=32-bit;;
10858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10859      libsuff=32 shlibsuff=N32 libmagic=N32;;
10860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10862    *) libsuff= shlibsuff= libmagic=never-match;;
10863    esac
10864    ;;
10865  esac
10866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10867  shlibpath_overrides_runpath=no
10868  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10869  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10870  hardcode_into_libs=yes
10871  ;;
10872
10873# No shared lib support for Linux oldld, aout, or coff.
10874linux*oldld* | linux*aout* | linux*coff*)
10875  dynamic_linker=no
10876  ;;
10877
10878linux*android*)
10879  version_type=none # Android doesn't support versioned libraries.
10880  need_lib_prefix=no
10881  need_version=no
10882  library_names_spec='$libname$release$shared_ext'
10883  soname_spec='$libname$release$shared_ext'
10884  finish_cmds=
10885  shlibpath_var=LD_LIBRARY_PATH
10886  shlibpath_overrides_runpath=yes
10887
10888  # This implies no fast_install, which is unacceptable.
10889  # Some rework will be needed to allow for fast_install
10890  # before this can be enabled.
10891  hardcode_into_libs=yes
10892
10893  dynamic_linker='Android linker'
10894  # Don't embed -rpath directories since the linker doesn't support them.
10895  hardcode_libdir_flag_spec='-L$libdir'
10896  ;;
10897
10898# This must be glibc/ELF.
10899linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10900  version_type=linux # correct to gnu/linux during the next big refactor
10901  need_lib_prefix=no
10902  need_version=no
10903  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904  soname_spec='$libname$release$shared_ext$major'
10905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  shlibpath_overrides_runpath=no
10908
10909  # Some binutils ld are patched to set DT_RUNPATH
10910  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  lt_cv_shlibpath_overrides_runpath=no
10914    save_LDFLAGS=$LDFLAGS
10915    save_libdir=$libdir
10916    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10917	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h.  */
10920
10921int
10922main ()
10923{
10924
10925  ;
10926  return 0;
10927}
10928_ACEOF
10929if ac_fn_c_try_link "$LINENO"; then :
10930  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10931  lt_cv_shlibpath_overrides_runpath=yes
10932fi
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935    conftest$ac_exeext conftest.$ac_ext
10936    LDFLAGS=$save_LDFLAGS
10937    libdir=$save_libdir
10938
10939fi
10940
10941  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10942
10943  # This implies no fast_install, which is unacceptable.
10944  # Some rework will be needed to allow for fast_install
10945  # before this can be enabled.
10946  hardcode_into_libs=yes
10947
10948  # Ideally, we could use ldconfig to report *all* directores which are
10949  # searched for libraries, however this is still not possible.  Aside from not
10950  # being certain /sbin/ldconfig is available, command
10951  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10952  # even though it is searched at run-time.  Try to do the best guess by
10953  # appending ld.so.conf contents (and includes) to the search path.
10954  if test -f /etc/ld.so.conf; then
10955    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10956    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10957  fi
10958
10959  # We used to test for /lib/ld.so.1 and disable shared libraries on
10960  # powerpc, because MkLinux only supported shared libraries with the
10961  # GNU dynamic linker.  Since this was broken with cross compilers,
10962  # most powerpc-linux boxes support dynamic linking these days and
10963  # people can always --disable-shared, the test was removed, and we
10964  # assume the GNU/Linux dynamic linker is in use.
10965  dynamic_linker='GNU/Linux ld.so'
10966  ;;
10967
10968netbsdelf*-gnu)
10969  version_type=linux
10970  need_lib_prefix=no
10971  need_version=no
10972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  shlibpath_overrides_runpath=no
10976  hardcode_into_libs=yes
10977  dynamic_linker='NetBSD ld.elf_so'
10978  ;;
10979
10980netbsd*)
10981  version_type=sunos
10982  need_lib_prefix=no
10983  need_version=no
10984  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10985    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10986    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10987    dynamic_linker='NetBSD (a.out) ld.so'
10988  else
10989    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10990    soname_spec='$libname$release$shared_ext$major'
10991    dynamic_linker='NetBSD ld.elf_so'
10992  fi
10993  shlibpath_var=LD_LIBRARY_PATH
10994  shlibpath_overrides_runpath=yes
10995  hardcode_into_libs=yes
10996  ;;
10997
10998newsos6)
10999  version_type=linux # correct to gnu/linux during the next big refactor
11000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11001  shlibpath_var=LD_LIBRARY_PATH
11002  shlibpath_overrides_runpath=yes
11003  ;;
11004
11005*nto* | *qnx*)
11006  version_type=qnx
11007  need_lib_prefix=no
11008  need_version=no
11009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010  soname_spec='$libname$release$shared_ext$major'
11011  shlibpath_var=LD_LIBRARY_PATH
11012  shlibpath_overrides_runpath=no
11013  hardcode_into_libs=yes
11014  dynamic_linker='ldqnx.so'
11015  ;;
11016
11017openbsd* | bitrig*)
11018  version_type=sunos
11019  sys_lib_dlsearch_path_spec=/usr/lib
11020  need_lib_prefix=no
11021  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11022    need_version=no
11023  else
11024    need_version=yes
11025  fi
11026  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11027  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028  shlibpath_var=LD_LIBRARY_PATH
11029  shlibpath_overrides_runpath=yes
11030  ;;
11031
11032os2*)
11033  libname_spec='$name'
11034  version_type=windows
11035  shrext_cmds=.dll
11036  need_version=no
11037  need_lib_prefix=no
11038  # OS/2 can only load a DLL with a base name of 8 characters or less.
11039  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11040    v=$($ECHO $release$versuffix | tr -d .-);
11041    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11042    $ECHO $n$v`$shared_ext'
11043  library_names_spec='${libname}_dll.$libext'
11044  dynamic_linker='OS/2 ld.exe'
11045  shlibpath_var=BEGINLIBPATH
11046  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11047  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11048  postinstall_cmds='base_file=`basename \$file`~
11049    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11050    dldir=$destdir/`dirname \$dlpath`~
11051    test -d \$dldir || mkdir -p \$dldir~
11052    $install_prog $dir/$dlname \$dldir/$dlname~
11053    chmod a+x \$dldir/$dlname~
11054    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11055      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11056    fi'
11057  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11058    dlpath=$dir/\$dldll~
11059    $RM \$dlpath'
11060  ;;
11061
11062osf3* | osf4* | osf5*)
11063  version_type=osf
11064  need_lib_prefix=no
11065  need_version=no
11066  soname_spec='$libname$release$shared_ext$major'
11067  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068  shlibpath_var=LD_LIBRARY_PATH
11069  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11070  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11071  ;;
11072
11073rdos*)
11074  dynamic_linker=no
11075  ;;
11076
11077solaris*)
11078  version_type=linux # correct to gnu/linux during the next big refactor
11079  need_lib_prefix=no
11080  need_version=no
11081  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082  soname_spec='$libname$release$shared_ext$major'
11083  shlibpath_var=LD_LIBRARY_PATH
11084  shlibpath_overrides_runpath=yes
11085  hardcode_into_libs=yes
11086  # ldd complains unless libraries are executable
11087  postinstall_cmds='chmod +x $lib'
11088  ;;
11089
11090sunos4*)
11091  version_type=sunos
11092  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11093  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11094  shlibpath_var=LD_LIBRARY_PATH
11095  shlibpath_overrides_runpath=yes
11096  if test yes = "$with_gnu_ld"; then
11097    need_lib_prefix=no
11098  fi
11099  need_version=yes
11100  ;;
11101
11102sysv4 | sysv4.3*)
11103  version_type=linux # correct to gnu/linux during the next big refactor
11104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105  soname_spec='$libname$release$shared_ext$major'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  case $host_vendor in
11108    sni)
11109      shlibpath_overrides_runpath=no
11110      need_lib_prefix=no
11111      runpath_var=LD_RUN_PATH
11112      ;;
11113    siemens)
11114      need_lib_prefix=no
11115      ;;
11116    motorola)
11117      need_lib_prefix=no
11118      need_version=no
11119      shlibpath_overrides_runpath=no
11120      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11121      ;;
11122  esac
11123  ;;
11124
11125sysv4*MP*)
11126  if test -d /usr/nec; then
11127    version_type=linux # correct to gnu/linux during the next big refactor
11128    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11129    soname_spec='$libname$shared_ext.$major'
11130    shlibpath_var=LD_LIBRARY_PATH
11131  fi
11132  ;;
11133
11134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11135  version_type=sco
11136  need_lib_prefix=no
11137  need_version=no
11138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11139  soname_spec='$libname$release$shared_ext$major'
11140  shlibpath_var=LD_LIBRARY_PATH
11141  shlibpath_overrides_runpath=yes
11142  hardcode_into_libs=yes
11143  if test yes = "$with_gnu_ld"; then
11144    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11145  else
11146    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11147    case $host_os in
11148      sco3.2v5*)
11149        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11150	;;
11151    esac
11152  fi
11153  sys_lib_dlsearch_path_spec='/usr/lib'
11154  ;;
11155
11156tpf*)
11157  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11158  version_type=linux # correct to gnu/linux during the next big refactor
11159  need_lib_prefix=no
11160  need_version=no
11161  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162  shlibpath_var=LD_LIBRARY_PATH
11163  shlibpath_overrides_runpath=no
11164  hardcode_into_libs=yes
11165  ;;
11166
11167uts4*)
11168  version_type=linux # correct to gnu/linux during the next big refactor
11169  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11170  soname_spec='$libname$release$shared_ext$major'
11171  shlibpath_var=LD_LIBRARY_PATH
11172  ;;
11173
11174*)
11175  dynamic_linker=no
11176  ;;
11177esac
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11179$as_echo "$dynamic_linker" >&6; }
11180test no = "$dynamic_linker" && can_build_shared=no
11181
11182variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11183if test yes = "$GCC"; then
11184  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11185fi
11186
11187if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11188  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11189fi
11190
11191if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11192  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11193fi
11194
11195# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11196configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11197
11198# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11199func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11200
11201# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11202configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11301$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11302hardcode_action=
11303if test -n "$hardcode_libdir_flag_spec" ||
11304   test -n "$runpath_var" ||
11305   test yes = "$hardcode_automatic"; then
11306
11307  # We can hardcode non-existent directories.
11308  if test no != "$hardcode_direct" &&
11309     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11310     # have to relink, otherwise we might link with an installed library
11311     # when we should be linking with a yet-to-be-installed one
11312     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11313     test no != "$hardcode_minus_L"; then
11314    # Linking always hardcodes the temporary library directory.
11315    hardcode_action=relink
11316  else
11317    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11318    hardcode_action=immediate
11319  fi
11320else
11321  # We cannot hardcode anything, or else we can only hardcode existing
11322  # directories.
11323  hardcode_action=unsupported
11324fi
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11326$as_echo "$hardcode_action" >&6; }
11327
11328if test relink = "$hardcode_action" ||
11329   test yes = "$inherit_rpath"; then
11330  # Fast installation is not supported
11331  enable_fast_install=no
11332elif test yes = "$shlibpath_overrides_runpath" ||
11333     test no = "$enable_shared"; then
11334  # Fast installation is not necessary
11335  enable_fast_install=needless
11336fi
11337
11338
11339
11340
11341
11342
11343  if test yes != "$enable_dlopen"; then
11344  enable_dlopen=unknown
11345  enable_dlopen_self=unknown
11346  enable_dlopen_self_static=unknown
11347else
11348  lt_cv_dlopen=no
11349  lt_cv_dlopen_libs=
11350
11351  case $host_os in
11352  beos*)
11353    lt_cv_dlopen=load_add_on
11354    lt_cv_dlopen_libs=
11355    lt_cv_dlopen_self=yes
11356    ;;
11357
11358  mingw* | pw32* | cegcc*)
11359    lt_cv_dlopen=LoadLibrary
11360    lt_cv_dlopen_libs=
11361    ;;
11362
11363  cygwin*)
11364    lt_cv_dlopen=dlopen
11365    lt_cv_dlopen_libs=
11366    ;;
11367
11368  darwin*)
11369    # if libdl is installed we need to link against it
11370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11371$as_echo_n "checking for dlopen in -ldl... " >&6; }
11372if ${ac_cv_lib_dl_dlopen+:} false; then :
11373  $as_echo_n "(cached) " >&6
11374else
11375  ac_check_lib_save_LIBS=$LIBS
11376LIBS="-ldl  $LIBS"
11377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378/* end confdefs.h.  */
11379
11380/* Override any GCC internal prototype to avoid an error.
11381   Use char because int might match the return type of a GCC
11382   builtin and then its argument prototype would still apply.  */
11383#ifdef __cplusplus
11384extern "C"
11385#endif
11386char dlopen ();
11387int
11388main ()
11389{
11390return dlopen ();
11391  ;
11392  return 0;
11393}
11394_ACEOF
11395if ac_fn_c_try_link "$LINENO"; then :
11396  ac_cv_lib_dl_dlopen=yes
11397else
11398  ac_cv_lib_dl_dlopen=no
11399fi
11400rm -f core conftest.err conftest.$ac_objext \
11401    conftest$ac_exeext conftest.$ac_ext
11402LIBS=$ac_check_lib_save_LIBS
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11405$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11406if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11407  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11408else
11409
11410    lt_cv_dlopen=dyld
11411    lt_cv_dlopen_libs=
11412    lt_cv_dlopen_self=yes
11413
11414fi
11415
11416    ;;
11417
11418  tpf*)
11419    # Don't try to run any link tests for TPF.  We know it's impossible
11420    # because TPF is a cross-compiler, and we know how we open DSOs.
11421    lt_cv_dlopen=dlopen
11422    lt_cv_dlopen_libs=
11423    lt_cv_dlopen_self=no
11424    ;;
11425
11426  *)
11427    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428if test "x$ac_cv_func_shl_load" = xyes; then :
11429  lt_cv_dlopen=shl_load
11430else
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432$as_echo_n "checking for shl_load in -ldld... " >&6; }
11433if ${ac_cv_lib_dld_shl_load+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldld  $LIBS"
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h.  */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442   Use char because int might match the return type of a GCC
11443   builtin and then its argument prototype would still apply.  */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char shl_load ();
11448int
11449main ()
11450{
11451return shl_load ();
11452  ;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457  ac_cv_lib_dld_shl_load=yes
11458else
11459  ac_cv_lib_dld_shl_load=no
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462    conftest$ac_exeext conftest.$ac_ext
11463LIBS=$ac_check_lib_save_LIBS
11464fi
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11468  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11469else
11470  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471if test "x$ac_cv_func_dlopen" = xyes; then :
11472  lt_cv_dlopen=dlopen
11473else
11474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475$as_echo_n "checking for dlopen in -ldl... " >&6; }
11476if ${ac_cv_lib_dl_dlopen+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479  ac_check_lib_save_LIBS=$LIBS
11480LIBS="-ldl  $LIBS"
11481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483
11484/* Override any GCC internal prototype to avoid an error.
11485   Use char because int might match the return type of a GCC
11486   builtin and then its argument prototype would still apply.  */
11487#ifdef __cplusplus
11488extern "C"
11489#endif
11490char dlopen ();
11491int
11492main ()
11493{
11494return dlopen ();
11495  ;
11496  return 0;
11497}
11498_ACEOF
11499if ac_fn_c_try_link "$LINENO"; then :
11500  ac_cv_lib_dl_dlopen=yes
11501else
11502  ac_cv_lib_dl_dlopen=no
11503fi
11504rm -f core conftest.err conftest.$ac_objext \
11505    conftest$ac_exeext conftest.$ac_ext
11506LIBS=$ac_check_lib_save_LIBS
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11511  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11512else
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515if ${ac_cv_lib_svld_dlopen+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  ac_check_lib_save_LIBS=$LIBS
11519LIBS="-lsvld  $LIBS"
11520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h.  */
11522
11523/* Override any GCC internal prototype to avoid an error.
11524   Use char because int might match the return type of a GCC
11525   builtin and then its argument prototype would still apply.  */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char dlopen ();
11530int
11531main ()
11532{
11533return dlopen ();
11534  ;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_link "$LINENO"; then :
11539  ac_cv_lib_svld_dlopen=yes
11540else
11541  ac_cv_lib_svld_dlopen=no
11542fi
11543rm -f core conftest.err conftest.$ac_objext \
11544    conftest$ac_exeext conftest.$ac_ext
11545LIBS=$ac_check_lib_save_LIBS
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11550  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11551else
11552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553$as_echo_n "checking for dld_link in -ldld... " >&6; }
11554if ${ac_cv_lib_dld_dld_link+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldld  $LIBS"
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h.  */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563   Use char because int might match the return type of a GCC
11564   builtin and then its argument prototype would still apply.  */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char dld_link ();
11569int
11570main ()
11571{
11572return dld_link ();
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_link "$LINENO"; then :
11578  ac_cv_lib_dld_dld_link=yes
11579else
11580  ac_cv_lib_dld_dld_link=no
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583    conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11589  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607    ;;
11608  esac
11609
11610  if test no = "$lt_cv_dlopen"; then
11611    enable_dlopen=no
11612  else
11613    enable_dlopen=yes
11614  fi
11615
11616  case $lt_cv_dlopen in
11617  dlopen)
11618    save_CPPFLAGS=$CPPFLAGS
11619    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620
11621    save_LDFLAGS=$LDFLAGS
11622    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
11624    save_LIBS=$LIBS
11625    LIBS="$lt_cv_dlopen_libs $LIBS"
11626
11627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629if ${lt_cv_dlopen_self+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  	  if test yes = "$cross_compiling"; then :
11633  lt_cv_dlopen_self=cross
11634else
11635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636  lt_status=$lt_dlunknown
11637  cat > conftest.$ac_ext <<_LT_EOF
11638#line $LINENO "configure"
11639#include "confdefs.h"
11640
11641#if HAVE_DLFCN_H
11642#include <dlfcn.h>
11643#endif
11644
11645#include <stdio.h>
11646
11647#ifdef RTLD_GLOBAL
11648#  define LT_DLGLOBAL		RTLD_GLOBAL
11649#else
11650#  ifdef DL_GLOBAL
11651#    define LT_DLGLOBAL		DL_GLOBAL
11652#  else
11653#    define LT_DLGLOBAL		0
11654#  endif
11655#endif
11656
11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658   find out it does not work in some platform. */
11659#ifndef LT_DLLAZY_OR_NOW
11660#  ifdef RTLD_LAZY
11661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11662#  else
11663#    ifdef DL_LAZY
11664#      define LT_DLLAZY_OR_NOW		DL_LAZY
11665#    else
11666#      ifdef RTLD_NOW
11667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11668#      else
11669#        ifdef DL_NOW
11670#          define LT_DLLAZY_OR_NOW	DL_NOW
11671#        else
11672#          define LT_DLLAZY_OR_NOW	0
11673#        endif
11674#      endif
11675#    endif
11676#  endif
11677#endif
11678
11679/* When -fvisibility=hidden is used, assume the code has been annotated
11680   correspondingly for the symbols needed.  */
11681#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682int fnord () __attribute__((visibility("default")));
11683#endif
11684
11685int fnord () { return 42; }
11686int main ()
11687{
11688  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689  int status = $lt_dlunknown;
11690
11691  if (self)
11692    {
11693      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11694      else
11695        {
11696	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11697          else puts (dlerror ());
11698	}
11699      /* dlclose (self); */
11700    }
11701  else
11702    puts (dlerror ());
11703
11704  return status;
11705}
11706_LT_EOF
11707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708  (eval $ac_link) 2>&5
11709  ac_status=$?
11710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11712    (./conftest; exit; ) >&5 2>/dev/null
11713    lt_status=$?
11714    case x$lt_status in
11715      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718    esac
11719  else :
11720    # compilation failed
11721    lt_cv_dlopen_self=no
11722  fi
11723fi
11724rm -fr conftest*
11725
11726
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729$as_echo "$lt_cv_dlopen_self" >&6; }
11730
11731    if test yes = "$lt_cv_dlopen_self"; then
11732      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735if ${lt_cv_dlopen_self_static+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  	  if test yes = "$cross_compiling"; then :
11739  lt_cv_dlopen_self_static=cross
11740else
11741  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742  lt_status=$lt_dlunknown
11743  cat > conftest.$ac_ext <<_LT_EOF
11744#line $LINENO "configure"
11745#include "confdefs.h"
11746
11747#if HAVE_DLFCN_H
11748#include <dlfcn.h>
11749#endif
11750
11751#include <stdio.h>
11752
11753#ifdef RTLD_GLOBAL
11754#  define LT_DLGLOBAL		RTLD_GLOBAL
11755#else
11756#  ifdef DL_GLOBAL
11757#    define LT_DLGLOBAL		DL_GLOBAL
11758#  else
11759#    define LT_DLGLOBAL		0
11760#  endif
11761#endif
11762
11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764   find out it does not work in some platform. */
11765#ifndef LT_DLLAZY_OR_NOW
11766#  ifdef RTLD_LAZY
11767#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11768#  else
11769#    ifdef DL_LAZY
11770#      define LT_DLLAZY_OR_NOW		DL_LAZY
11771#    else
11772#      ifdef RTLD_NOW
11773#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11774#      else
11775#        ifdef DL_NOW
11776#          define LT_DLLAZY_OR_NOW	DL_NOW
11777#        else
11778#          define LT_DLLAZY_OR_NOW	0
11779#        endif
11780#      endif
11781#    endif
11782#  endif
11783#endif
11784
11785/* When -fvisibility=hidden is used, assume the code has been annotated
11786   correspondingly for the symbols needed.  */
11787#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788int fnord () __attribute__((visibility("default")));
11789#endif
11790
11791int fnord () { return 42; }
11792int main ()
11793{
11794  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795  int status = $lt_dlunknown;
11796
11797  if (self)
11798    {
11799      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11800      else
11801        {
11802	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11803          else puts (dlerror ());
11804	}
11805      /* dlclose (self); */
11806    }
11807  else
11808    puts (dlerror ());
11809
11810  return status;
11811}
11812_LT_EOF
11813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814  (eval $ac_link) 2>&5
11815  ac_status=$?
11816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11818    (./conftest; exit; ) >&5 2>/dev/null
11819    lt_status=$?
11820    case x$lt_status in
11821      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824    esac
11825  else :
11826    # compilation failed
11827    lt_cv_dlopen_self_static=no
11828  fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835$as_echo "$lt_cv_dlopen_self_static" >&6; }
11836    fi
11837
11838    CPPFLAGS=$save_CPPFLAGS
11839    LDFLAGS=$save_LDFLAGS
11840    LIBS=$save_LIBS
11841    ;;
11842  esac
11843
11844  case $lt_cv_dlopen_self in
11845  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846  *) enable_dlopen_self=unknown ;;
11847  esac
11848
11849  case $lt_cv_dlopen_self_static in
11850  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851  *) enable_dlopen_self_static=unknown ;;
11852  esac
11853fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871striplib=
11872old_striplib=
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
11880else
11881# FIXME - insert some real tests, host_os isn't really good enough
11882  case $host_os in
11883  darwin*)
11884    if test -n "$STRIP"; then
11885      striplib="$STRIP -x"
11886      old_striplib="$STRIP -S"
11887      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
11889    else
11890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892    fi
11893    ;;
11894  *)
11895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897    ;;
11898  esac
11899fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912  # Report what library types will actually be built
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916$as_echo "$can_build_shared" >&6; }
11917
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919$as_echo_n "checking whether to build shared libraries... " >&6; }
11920  test no = "$can_build_shared" && enable_shared=no
11921
11922  # On AIX, shared libraries and static libraries use the same namespace, and
11923  # are all built from PIC.
11924  case $host_os in
11925  aix3*)
11926    test yes = "$enable_shared" && enable_static=no
11927    if test -n "$RANLIB"; then
11928      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929      postinstall_cmds='$RANLIB $lib'
11930    fi
11931    ;;
11932
11933  aix[4-9]*)
11934    if test ia64 != "$host_cpu"; then
11935      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11936      yes,aix,yes) ;;			# shared object as lib.so file only
11937      yes,svr4,*) ;;			# shared object as lib.so archive member only
11938      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11939      esac
11940    fi
11941    ;;
11942  esac
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11944$as_echo "$enable_shared" >&6; }
11945
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11947$as_echo_n "checking whether to build static libraries... " >&6; }
11948  # Make sure either enable_shared or enable_static is yes.
11949  test yes = "$enable_shared" || enable_static=yes
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11951$as_echo "$enable_static" >&6; }
11952
11953
11954
11955
11956fi
11957ac_ext=c
11958ac_cpp='$CPP $CPPFLAGS'
11959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963CC=$lt_save_CC
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979        ac_config_commands="$ac_config_commands libtool"
11980
11981
11982
11983
11984# Only expand once:
11985
11986
11987
11988am__api_version='1.16'
11989
11990# Find a good install program.  We prefer a C program (faster),
11991# so one script is as good as another.  But avoid the broken or
11992# incompatible versions:
11993# SysV /etc/install, /usr/sbin/install
11994# SunOS /usr/etc/install
11995# IRIX /sbin/install
11996# AIX /bin/install
11997# AmigaOS /C/install, which installs bootblocks on floppy discs
11998# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11999# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12000# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12001# OS/2's system install, which has a completely different semantic
12002# ./install, which can be erroneously created by make from ./install.sh.
12003# Reject install programs that cannot install multiple files.
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12005$as_echo_n "checking for a BSD-compatible install... " >&6; }
12006if test -z "$INSTALL"; then
12007if ${ac_cv_path_install+:} false; then :
12008  $as_echo_n "(cached) " >&6
12009else
12010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013  IFS=$as_save_IFS
12014  test -z "$as_dir" && as_dir=.
12015    # Account for people who put trailing slashes in PATH elements.
12016case $as_dir/ in #((
12017  ./ | .// | /[cC]/* | \
12018  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12019  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12020  /usr/ucb/* ) ;;
12021  *)
12022    # OSF1 and SCO ODT 3.0 have their own names for install.
12023    # Don't use installbsd from OSF since it installs stuff as root
12024    # by default.
12025    for ac_prog in ginstall scoinst install; do
12026      for ac_exec_ext in '' $ac_executable_extensions; do
12027	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12028	  if test $ac_prog = install &&
12029	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12030	    # AIX install.  It has an incompatible calling convention.
12031	    :
12032	  elif test $ac_prog = install &&
12033	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12034	    # program-specific install script used by HP pwplus--don't use.
12035	    :
12036	  else
12037	    rm -rf conftest.one conftest.two conftest.dir
12038	    echo one > conftest.one
12039	    echo two > conftest.two
12040	    mkdir conftest.dir
12041	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12042	      test -s conftest.one && test -s conftest.two &&
12043	      test -s conftest.dir/conftest.one &&
12044	      test -s conftest.dir/conftest.two
12045	    then
12046	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12047	      break 3
12048	    fi
12049	  fi
12050	fi
12051      done
12052    done
12053    ;;
12054esac
12055
12056  done
12057IFS=$as_save_IFS
12058
12059rm -rf conftest.one conftest.two conftest.dir
12060
12061fi
12062  if test "${ac_cv_path_install+set}" = set; then
12063    INSTALL=$ac_cv_path_install
12064  else
12065    # As a last resort, use the slow shell script.  Don't cache a
12066    # value for INSTALL within a source directory, because that will
12067    # break other packages using the cache if that directory is
12068    # removed, or if the value is a relative name.
12069    INSTALL=$ac_install_sh
12070  fi
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12073$as_echo "$INSTALL" >&6; }
12074
12075# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12076# It thinks the first close brace ends the variable substitution.
12077test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12078
12079test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12080
12081test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12082
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12084$as_echo_n "checking whether build environment is sane... " >&6; }
12085# Reject unsafe characters in $srcdir or the absolute working directory
12086# name.  Accept space and tab only in the latter.
12087am_lf='
12088'
12089case `pwd` in
12090  *[\\\"\#\$\&\'\`$am_lf]*)
12091    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12092esac
12093case $srcdir in
12094  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
12095    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12096esac
12097
12098# Do 'set' in a subshell so we don't clobber the current shell's
12099# arguments.  Must try -L first in case configure is actually a
12100# symlink; some systems play weird games with the mod time of symlinks
12101# (eg FreeBSD returns the mod time of the symlink's containing
12102# directory).
12103if (
12104   am_has_slept=no
12105   for am_try in 1 2; do
12106     echo "timestamp, slept: $am_has_slept" > conftest.file
12107     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12108     if test "$*" = "X"; then
12109	# -L didn't work.
12110	set X `ls -t "$srcdir/configure" conftest.file`
12111     fi
12112     if test "$*" != "X $srcdir/configure conftest.file" \
12113	&& test "$*" != "X conftest.file $srcdir/configure"; then
12114
12115	# If neither matched, then we have a broken ls.  This can happen
12116	# if, for instance, CONFIG_SHELL is bash and it inherits a
12117	# broken ls alias from the environment.  This has actually
12118	# happened.  Such a system could not be considered "sane".
12119	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
12120  alias in your environment" "$LINENO" 5
12121     fi
12122     if test "$2" = conftest.file || test $am_try -eq 2; then
12123       break
12124     fi
12125     # Just in case.
12126     sleep 1
12127     am_has_slept=yes
12128   done
12129   test "$2" = conftest.file
12130   )
12131then
12132   # Ok.
12133   :
12134else
12135   as_fn_error $? "newly created file is older than distributed files!
12136Check your system clock" "$LINENO" 5
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139$as_echo "yes" >&6; }
12140# If we didn't sleep, we still need to ensure time stamps of config.status and
12141# generated files are strictly newer.
12142am_sleep_pid=
12143if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12144  ( sleep 1 ) &
12145  am_sleep_pid=$!
12146fi
12147
12148rm -f conftest.file
12149
12150test "$program_prefix" != NONE &&
12151  program_transform_name="s&^&$program_prefix&;$program_transform_name"
12152# Use a double $ so make ignores it.
12153test "$program_suffix" != NONE &&
12154  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12155# Double any \ or $.
12156# By default was `s,x,x', remove it if useless.
12157ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12158program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12159
12160if test x"${MISSING+set}" != xset; then
12161  case $am_aux_dir in
12162  *\ * | *\	*)
12163    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12164  *)
12165    MISSING="\${SHELL} $am_aux_dir/missing" ;;
12166  esac
12167fi
12168# Use eval to expand $SHELL
12169if eval "$MISSING --is-lightweight"; then
12170  am_missing_run="$MISSING "
12171else
12172  am_missing_run=
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12174$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12175fi
12176
12177if test x"${install_sh+set}" != xset; then
12178  case $am_aux_dir in
12179  *\ * | *\	*)
12180    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12181  *)
12182    install_sh="\${SHELL} $am_aux_dir/install-sh"
12183  esac
12184fi
12185
12186# Installed binaries are usually stripped using 'strip' when the user
12187# run "make install-strip".  However 'strip' might not be the right
12188# tool to use in cross-compilation environments, therefore Automake
12189# will honor the 'STRIP' environment variable to overrule this program.
12190if test "$cross_compiling" != no; then
12191  if test -n "$ac_tool_prefix"; then
12192  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12193set dummy ${ac_tool_prefix}strip; ac_word=$2
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195$as_echo_n "checking for $ac_word... " >&6; }
12196if ${ac_cv_prog_STRIP+:} false; then :
12197  $as_echo_n "(cached) " >&6
12198else
12199  if test -n "$STRIP"; then
12200  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12201else
12202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $PATH
12204do
12205  IFS=$as_save_IFS
12206  test -z "$as_dir" && as_dir=.
12207    for ac_exec_ext in '' $ac_executable_extensions; do
12208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211    break 2
12212  fi
12213done
12214  done
12215IFS=$as_save_IFS
12216
12217fi
12218fi
12219STRIP=$ac_cv_prog_STRIP
12220if test -n "$STRIP"; then
12221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12222$as_echo "$STRIP" >&6; }
12223else
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
12226fi
12227
12228
12229fi
12230if test -z "$ac_cv_prog_STRIP"; then
12231  ac_ct_STRIP=$STRIP
12232  # Extract the first word of "strip", so it can be a program name with args.
12233set dummy strip; ac_word=$2
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235$as_echo_n "checking for $ac_word... " >&6; }
12236if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  if test -n "$ac_ct_STRIP"; then
12240  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245  IFS=$as_save_IFS
12246  test -z "$as_dir" && as_dir=.
12247    for ac_exec_ext in '' $ac_executable_extensions; do
12248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249    ac_cv_prog_ac_ct_STRIP="strip"
12250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251    break 2
12252  fi
12253done
12254  done
12255IFS=$as_save_IFS
12256
12257fi
12258fi
12259ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12260if test -n "$ac_ct_STRIP"; then
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12262$as_echo "$ac_ct_STRIP" >&6; }
12263else
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266fi
12267
12268  if test "x$ac_ct_STRIP" = x; then
12269    STRIP=":"
12270  else
12271    case $cross_compiling:$ac_tool_warned in
12272yes:)
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12275ac_tool_warned=yes ;;
12276esac
12277    STRIP=$ac_ct_STRIP
12278  fi
12279else
12280  STRIP="$ac_cv_prog_STRIP"
12281fi
12282
12283fi
12284INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12285
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12287$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12288if test -z "$MKDIR_P"; then
12289  if ${ac_cv_path_mkdir+:} false; then :
12290  $as_echo_n "(cached) " >&6
12291else
12292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12294do
12295  IFS=$as_save_IFS
12296  test -z "$as_dir" && as_dir=.
12297    for ac_prog in mkdir gmkdir; do
12298	 for ac_exec_ext in '' $ac_executable_extensions; do
12299	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12300	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12301	     'mkdir (GNU coreutils) '* | \
12302	     'mkdir (coreutils) '* | \
12303	     'mkdir (fileutils) '4.1*)
12304	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12305	       break 3;;
12306	   esac
12307	 done
12308       done
12309  done
12310IFS=$as_save_IFS
12311
12312fi
12313
12314  test -d ./--version && rmdir ./--version
12315  if test "${ac_cv_path_mkdir+set}" = set; then
12316    MKDIR_P="$ac_cv_path_mkdir -p"
12317  else
12318    # As a last resort, use the slow shell script.  Don't cache a
12319    # value for MKDIR_P within a source directory, because that will
12320    # break other packages using the cache if that directory is
12321    # removed, or if the value is a relative name.
12322    MKDIR_P="$ac_install_sh -d"
12323  fi
12324fi
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12326$as_echo "$MKDIR_P" >&6; }
12327
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12329$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12330set x ${MAKE-make}
12331ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12332if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  cat >conftest.make <<\_ACEOF
12336SHELL = /bin/sh
12337all:
12338	@echo '@@@%%%=$(MAKE)=@@@%%%'
12339_ACEOF
12340# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12341case `${MAKE-make} -f conftest.make 2>/dev/null` in
12342  *@@@%%%=?*=@@@%%%*)
12343    eval ac_cv_prog_make_${ac_make}_set=yes;;
12344  *)
12345    eval ac_cv_prog_make_${ac_make}_set=no;;
12346esac
12347rm -f conftest.make
12348fi
12349if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12351$as_echo "yes" >&6; }
12352  SET_MAKE=
12353else
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356  SET_MAKE="MAKE=${MAKE-make}"
12357fi
12358
12359rm -rf .tst 2>/dev/null
12360mkdir .tst 2>/dev/null
12361if test -d .tst; then
12362  am__leading_dot=.
12363else
12364  am__leading_dot=_
12365fi
12366rmdir .tst 2>/dev/null
12367
12368DEPDIR="${am__leading_dot}deps"
12369
12370ac_config_commands="$ac_config_commands depfiles"
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12373$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
12374cat > confinc.mk << 'END'
12375am__doit:
12376	@echo this is the am__doit target >confinc.out
12377.PHONY: am__doit
12378END
12379am__include="#"
12380am__quote=
12381# BSD make does it like this.
12382echo '.include "confinc.mk" # ignored' > confmf.BSD
12383# Other make implementations (GNU, Solaris 10, AIX) do it like this.
12384echo 'include confinc.mk # ignored' > confmf.GNU
12385_am_result=no
12386for s in GNU BSD; do
12387  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12388   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }
12392  case $?:`cat confinc.out 2>/dev/null` in #(
12393  '0:this is the am__doit target') :
12394    case $s in #(
12395  BSD) :
12396    am__include='.include' am__quote='"' ;; #(
12397  *) :
12398    am__include='include' am__quote='' ;;
12399esac ;; #(
12400  *) :
12401     ;;
12402esac
12403  if test "$am__include" != "#"; then
12404    _am_result="yes ($s style)"
12405    break
12406  fi
12407done
12408rm -f confinc.* confmf.*
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12410$as_echo "${_am_result}" >&6; }
12411
12412# Check whether --enable-dependency-tracking was given.
12413if test "${enable_dependency_tracking+set}" = set; then :
12414  enableval=$enable_dependency_tracking;
12415fi
12416
12417if test "x$enable_dependency_tracking" != xno; then
12418  am_depcomp="$ac_aux_dir/depcomp"
12419  AMDEPBACKSLASH='\'
12420  am__nodep='_no'
12421fi
12422 if test "x$enable_dependency_tracking" != xno; then
12423  AMDEP_TRUE=
12424  AMDEP_FALSE='#'
12425else
12426  AMDEP_TRUE='#'
12427  AMDEP_FALSE=
12428fi
12429
12430
12431# Check whether --enable-silent-rules was given.
12432if test "${enable_silent_rules+set}" = set; then :
12433  enableval=$enable_silent_rules;
12434fi
12435
12436case $enable_silent_rules in # (((
12437  yes) AM_DEFAULT_VERBOSITY=0;;
12438   no) AM_DEFAULT_VERBOSITY=1;;
12439    *) AM_DEFAULT_VERBOSITY=1;;
12440esac
12441am_make=${MAKE-make}
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12443$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12444if ${am_cv_make_support_nested_variables+:} false; then :
12445  $as_echo_n "(cached) " >&6
12446else
12447  if $as_echo 'TRUE=$(BAR$(V))
12448BAR0=false
12449BAR1=true
12450V=1
12451am__doit:
12452	@$(TRUE)
12453.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12454  am_cv_make_support_nested_variables=yes
12455else
12456  am_cv_make_support_nested_variables=no
12457fi
12458fi
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12460$as_echo "$am_cv_make_support_nested_variables" >&6; }
12461if test $am_cv_make_support_nested_variables = yes; then
12462    AM_V='$(V)'
12463  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12464else
12465  AM_V=$AM_DEFAULT_VERBOSITY
12466  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12467fi
12468AM_BACKSLASH='\'
12469
12470if test "`cd $srcdir && pwd`" != "`pwd`"; then
12471  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12472  # is not polluted with repeated "-I."
12473  am__isrc=' -I$(srcdir)'
12474  # test to see if srcdir already configured
12475  if test -f $srcdir/config.status; then
12476    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12477  fi
12478fi
12479
12480# test whether we have cygpath
12481if test -z "$CYGPATH_W"; then
12482  if (cygpath --version) >/dev/null 2>/dev/null; then
12483    CYGPATH_W='cygpath -w'
12484  else
12485    CYGPATH_W=echo
12486  fi
12487fi
12488
12489
12490# Define the identity of the package.
12491 PACKAGE='mpsolve'
12492 VERSION='3.2.1'
12493
12494
12495cat >>confdefs.h <<_ACEOF
12496#define PACKAGE "$PACKAGE"
12497_ACEOF
12498
12499
12500cat >>confdefs.h <<_ACEOF
12501#define VERSION "$VERSION"
12502_ACEOF
12503
12504# Some tools Automake needs.
12505
12506ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12507
12508
12509AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12510
12511
12512AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12513
12514
12515AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12516
12517
12518MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12519
12520# For better backward compatibility.  To be removed once Automake 1.9.x
12521# dies out for good.  For more background, see:
12522# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12523# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12524mkdir_p='$(MKDIR_P)'
12525
12526# We need awk for the "check" target (and possibly the TAP driver).  The
12527# system "awk" is bad on some platforms.
12528# Always define AMTAR for backward compatibility.  Yes, it's still used
12529# in the wild :-(  We should find a proper way to deprecate it ...
12530AMTAR='$${TAR-tar}'
12531
12532
12533# We'll loop over all known methods to create a tar archive until one works.
12534_am_tools='gnutar  pax cpio none'
12535
12536am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12537
12538
12539
12540
12541
12542depcc="$CC"   am_compiler_list=
12543
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12545$as_echo_n "checking dependency style of $depcc... " >&6; }
12546if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12547  $as_echo_n "(cached) " >&6
12548else
12549  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12550  # We make a subdir and do the tests there.  Otherwise we can end up
12551  # making bogus files that we don't know about and never remove.  For
12552  # instance it was reported that on HP-UX the gcc test will end up
12553  # making a dummy file named 'D' -- because '-MD' means "put the output
12554  # in D".
12555  rm -rf conftest.dir
12556  mkdir conftest.dir
12557  # Copy depcomp to subdir because otherwise we won't find it if we're
12558  # using a relative directory.
12559  cp "$am_depcomp" conftest.dir
12560  cd conftest.dir
12561  # We will build objects and dependencies in a subdirectory because
12562  # it helps to detect inapplicable dependency modes.  For instance
12563  # both Tru64's cc and ICC support -MD to output dependencies as a
12564  # side effect of compilation, but ICC will put the dependencies in
12565  # the current directory while Tru64 will put them in the object
12566  # directory.
12567  mkdir sub
12568
12569  am_cv_CC_dependencies_compiler_type=none
12570  if test "$am_compiler_list" = ""; then
12571     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12572  fi
12573  am__universal=false
12574  case " $depcc " in #(
12575     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12576     esac
12577
12578  for depmode in $am_compiler_list; do
12579    # Setup a source with many dependencies, because some compilers
12580    # like to wrap large dependency lists on column 80 (with \), and
12581    # we should not choose a depcomp mode which is confused by this.
12582    #
12583    # We need to recreate these files for each test, as the compiler may
12584    # overwrite some of them when testing with obscure command lines.
12585    # This happens at least with the AIX C compiler.
12586    : > sub/conftest.c
12587    for i in 1 2 3 4 5 6; do
12588      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12589      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12590      # Solaris 10 /bin/sh.
12591      echo '/* dummy */' > sub/conftst$i.h
12592    done
12593    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12594
12595    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12596    # mode.  It turns out that the SunPro C++ compiler does not properly
12597    # handle '-M -o', and we need to detect this.  Also, some Intel
12598    # versions had trouble with output in subdirs.
12599    am__obj=sub/conftest.${OBJEXT-o}
12600    am__minus_obj="-o $am__obj"
12601    case $depmode in
12602    gcc)
12603      # This depmode causes a compiler race in universal mode.
12604      test "$am__universal" = false || continue
12605      ;;
12606    nosideeffect)
12607      # After this tag, mechanisms are not by side-effect, so they'll
12608      # only be used when explicitly requested.
12609      if test "x$enable_dependency_tracking" = xyes; then
12610	continue
12611      else
12612	break
12613      fi
12614      ;;
12615    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12616      # This compiler won't grok '-c -o', but also, the minuso test has
12617      # not run yet.  These depmodes are late enough in the game, and
12618      # so weak that their functioning should not be impacted.
12619      am__obj=conftest.${OBJEXT-o}
12620      am__minus_obj=
12621      ;;
12622    none) break ;;
12623    esac
12624    if depmode=$depmode \
12625       source=sub/conftest.c object=$am__obj \
12626       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12627       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12628         >/dev/null 2>conftest.err &&
12629       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12630       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12631       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12632       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12633      # icc doesn't choke on unknown options, it will just issue warnings
12634      # or remarks (even with -Werror).  So we grep stderr for any message
12635      # that says an option was ignored or not supported.
12636      # When given -MP, icc 7.0 and 7.1 complain thusly:
12637      #   icc: Command line warning: ignoring option '-M'; no argument required
12638      # The diagnosis changed in icc 8.0:
12639      #   icc: Command line remark: option '-MP' not supported
12640      if (grep 'ignoring option' conftest.err ||
12641          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12642        am_cv_CC_dependencies_compiler_type=$depmode
12643        break
12644      fi
12645    fi
12646  done
12647
12648  cd ..
12649  rm -rf conftest.dir
12650else
12651  am_cv_CC_dependencies_compiler_type=none
12652fi
12653
12654fi
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12656$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12657CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12658
12659 if
12660  test "x$enable_dependency_tracking" != xno \
12661  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12662  am__fastdepCC_TRUE=
12663  am__fastdepCC_FALSE='#'
12664else
12665  am__fastdepCC_TRUE='#'
12666  am__fastdepCC_FALSE=
12667fi
12668
12669
12670
12671# POSIX will say in a future version that running "rm -f" with no argument
12672# is OK; and we want to be able to make that assumption in our Makefile
12673# recipes.  So use an aggressive probe to check that the usage we want is
12674# actually supported "in the wild" to an acceptable degree.
12675# See automake bug#10828.
12676# To make any issue more visible, cause the running configure to be aborted
12677# by default if the 'rm' program in use doesn't match our expectations; the
12678# user can still override this though.
12679if rm -f && rm -fr && rm -rf; then : OK; else
12680  cat >&2 <<'END'
12681Oops!
12682
12683Your 'rm' program seems unable to run without file operands specified
12684on the command line, even when the '-f' option is present.  This is contrary
12685to the behaviour of most rm programs out there, and not conforming with
12686the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12687
12688Please tell bug-automake@gnu.org about your system, including the value
12689of your $PATH and any error possibly output before this message.  This
12690can help us improve future automake versions.
12691
12692END
12693  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12694    echo 'Configuration will proceed anyway, since you have set the' >&2
12695    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12696    echo >&2
12697  else
12698    cat >&2 <<'END'
12699Aborting the configuration process, to ensure you take notice of the issue.
12700
12701You can download and install GNU coreutils to get an 'rm' implementation
12702that behaves properly: <https://www.gnu.org/software/coreutils/>.
12703
12704If you want to complete the configuration process using your problematic
12705'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12706to "yes", and re-run configure.
12707
12708END
12709    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12710  fi
12711fi
12712
12713
12714# Check whether --enable-silent-rules was given.
12715if test "${enable_silent_rules+set}" = set; then :
12716  enableval=$enable_silent_rules;
12717fi
12718
12719case $enable_silent_rules in # (((
12720  yes) AM_DEFAULT_VERBOSITY=0;;
12721   no) AM_DEFAULT_VERBOSITY=1;;
12722    *) AM_DEFAULT_VERBOSITY=0;;
12723esac
12724am_make=${MAKE-make}
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12726$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12727if ${am_cv_make_support_nested_variables+:} false; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  if $as_echo 'TRUE=$(BAR$(V))
12731BAR0=false
12732BAR1=true
12733V=1
12734am__doit:
12735	@$(TRUE)
12736.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12737  am_cv_make_support_nested_variables=yes
12738else
12739  am_cv_make_support_nested_variables=no
12740fi
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12743$as_echo "$am_cv_make_support_nested_variables" >&6; }
12744if test $am_cv_make_support_nested_variables = yes; then
12745    AM_V='$(V)'
12746  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12747else
12748  AM_V=$AM_DEFAULT_VERBOSITY
12749  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12750fi
12751AM_BACKSLASH='\'
12752
12753
12754#
12755# ===== OPTION PARSING =====
12756#
12757# Add options to the configure script so that the user can select the features
12758# he's interested in.
12759#
12760
12761# Determine CFLAGS based on the options that the user has specified.
12762# The supported build type are
12763#
12764# --without-debug Do not code debug prints (that is not the default)
12765#
12766# Check whether --enable-debug was given.
12767if test "${enable_debug+set}" = set; then :
12768  enableval=$enable_debug; enable_debug=$enableval have_debug=$enableval
12769else
12770  enable_debug=yes have_debug=yes
12771fi
12772
12773# AC_MSG_RESULT([$enable_debug])
12774
12775# Select CFLAGS based on debug enabled or not
12776if test x$enable_debug != xno; then :
12777
12778	LIBMPS_CFLAGS="$LIBMPS_CFLAGS -DNICE_DEBUG"
12779
12780else
12781
12782	LIBMPS_CFLAGS="$LIBMPS_CFLAGS -DDISABLE_DEBUG"
12783
12784$as_echo "#define DISABLE_DEBUG 1" >>confdefs.h
12785
12786
12787fi
12788
12789# Check if we are building in debug-mode. If that's the case disable the hard-to-debug
12790# optimization flag of the compiler.
12791# Check whether --enable-debug-build was given.
12792if test "${enable_debug_build+set}" = set; then :
12793  enableval=$enable_debug_build; enable_debug_build=$enableval
12794else
12795  enable_debug_build=no
12796
12797fi
12798
12799
12800if test x$enable_debug_build == xno; then :
12801
12802else
12803
12804	  # CFLAGS=""
12805	  # CXXFLAGS=""
12806          LIBMPS_CFLAGS="$LIBMPS_CFLAGS -O0 -g"
12807
12808
12809fi
12810
12811# Check if the user wants to build the QML UI
12812# Check whether --enable-qml-ui was given.
12813if test "${enable_qml_ui+set}" = set; then :
12814  enableval=$enable_qml_ui; enable_qml_ui=$enableval
12815else
12816  enable_qml_ui=no
12817
12818fi
12819
12820 if test "x$enable_qml_ui" != "xno"; then
12821  BUILD_QML_UI_TRUE=
12822  BUILD_QML_UI_FALSE='#'
12823else
12824  BUILD_QML_UI_TRUE='#'
12825  BUILD_QML_UI_FALSE=
12826fi
12827
12828
12829# Determine if examples are desired. If that's the case check for the library
12830# that are installed on the system and see which examples can be added.
12831# Check whether --enable-examples was given.
12832if test "${enable_examples+set}" = set; then :
12833  enableval=$enable_examples; build_examples=$enableval have_examples=$enableval
12834else
12835  build_examples=yes have_examples=yes
12836fi
12837
12838
12839# Add another option, enable/disable UI.
12840# Check whether --enable-ui was given.
12841if test "${enable_ui+set}" = set; then :
12842  enableval=$enable_ui; build_ui=$enableval have_ui=$enableval
12843else
12844  build_ui=yes have_ui=yes
12845fi
12846
12847
12848# Determine if the Graphical debugger must be integrated in MPSolve
12849# Check whether --enable-graphical-debugger was given.
12850if test "${enable_graphical_debugger+set}" = set; then :
12851  enableval=$enable_graphical_debugger; build_graphical_debugger=$enableval have_graphical_debugger=$enableval
12852else
12853  build_graphical_debugger=yes have_graphical_debugger=yes
12854fi
12855
12856
12857# Determine if the user wants to build the documentation
12858# Check whether --enable-documentation was given.
12859if test "${enable_documentation+set}" = set; then :
12860  enableval=$enable_documentation; build_doc=$enableval hvae_doc=$enableval
12861else
12862  build_doc=yes have_doc=yes
12863fi
12864
12865
12866# Determine if the user wants to build on ARM using hard floating point
12867# Check whether --enable-vfpv3 was given.
12868if test "${enable_vfpv3+set}" = set; then :
12869  enableval=$enable_vfpv3; build_hard_float=$enableval
12870else
12871  build_hard_float=no
12872fi
12873
12874
12875if test x$build_hard_float = xyes; then :
12876
12877  CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=vfpv3-d16"
12878
12879fi
12880
12881# Check if the user wants to use the standard system malloc even if tcmalloc
12882# is installed.
12883# Check whether --enable-tcmalloc was given.
12884if test "${enable_tcmalloc+set}" = set; then :
12885  enableval=$enable_tcmalloc; enable_tcmalloc=$enableval have_tcmalloc=$enableval
12886else
12887  enable_tcmalloc=yes have_tcmalloc=yes
12888fi
12889
12890
12891
12892#
12893# ==== LIBRARY DETECTION ====
12894#
12895# All these sections handle library detection and understanding the system characteristics.
12896#
12897
12898
12899##
12900## Section 0) This section contains checks for compilers, basic headers files, ...
12901#
12902
12903  # Checks for needed compilers:
12904  ac_ext=${ac_fc_srcext-f}
12905ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12906ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12907ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12908if test -n "$ac_tool_prefix"; then
12909  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
12910  do
12911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914$as_echo_n "checking for $ac_word... " >&6; }
12915if ${ac_cv_prog_FC+:} false; then :
12916  $as_echo_n "(cached) " >&6
12917else
12918  if test -n "$FC"; then
12919  ac_cv_prog_FC="$FC" # Let the user override the test.
12920else
12921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922for as_dir in $PATH
12923do
12924  IFS=$as_save_IFS
12925  test -z "$as_dir" && as_dir=.
12926    for ac_exec_ext in '' $ac_executable_extensions; do
12927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12928    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930    break 2
12931  fi
12932done
12933  done
12934IFS=$as_save_IFS
12935
12936fi
12937fi
12938FC=$ac_cv_prog_FC
12939if test -n "$FC"; then
12940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12941$as_echo "$FC" >&6; }
12942else
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945fi
12946
12947
12948    test -n "$FC" && break
12949  done
12950fi
12951if test -z "$FC"; then
12952  ac_ct_FC=$FC
12953  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
12954do
12955  # Extract the first word of "$ac_prog", so it can be a program name with args.
12956set dummy $ac_prog; ac_word=$2
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958$as_echo_n "checking for $ac_word... " >&6; }
12959if ${ac_cv_prog_ac_ct_FC+:} false; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  if test -n "$ac_ct_FC"; then
12963  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12964else
12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968  IFS=$as_save_IFS
12969  test -z "$as_dir" && as_dir=.
12970    for ac_exec_ext in '' $ac_executable_extensions; do
12971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972    ac_cv_prog_ac_ct_FC="$ac_prog"
12973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974    break 2
12975  fi
12976done
12977  done
12978IFS=$as_save_IFS
12979
12980fi
12981fi
12982ac_ct_FC=$ac_cv_prog_ac_ct_FC
12983if test -n "$ac_ct_FC"; then
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12985$as_echo "$ac_ct_FC" >&6; }
12986else
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
12989fi
12990
12991
12992  test -n "$ac_ct_FC" && break
12993done
12994
12995  if test "x$ac_ct_FC" = x; then
12996    FC=""
12997  else
12998    case $cross_compiling:$ac_tool_warned in
12999yes:)
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13002ac_tool_warned=yes ;;
13003esac
13004    FC=$ac_ct_FC
13005  fi
13006fi
13007
13008
13009# Provide some information about the compiler.
13010$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13011set X $ac_compile
13012ac_compiler=$2
13013for ac_option in --version -v -V -qversion; do
13014  { { ac_try="$ac_compiler $ac_option >&5"
13015case "(($ac_try" in
13016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017  *) ac_try_echo=$ac_try;;
13018esac
13019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13020$as_echo "$ac_try_echo"; } >&5
13021  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13022  ac_status=$?
13023  if test -s conftest.err; then
13024    sed '10a\
13025... rest of stderr output deleted ...
13026         10q' conftest.err >conftest.er1
13027    cat conftest.er1 >&5
13028  fi
13029  rm -f conftest.er1 conftest.err
13030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031  test $ac_status = 0; }
13032done
13033rm -f a.out
13034
13035# If we don't use `.F' as extension, the preprocessor is not run on the
13036# input file.  (Note that this only needs to work for GNU compilers.)
13037ac_save_ext=$ac_ext
13038ac_ext=F
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13040$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13041if ${ac_cv_fc_compiler_gnu+:} false; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  cat > conftest.$ac_ext <<_ACEOF
13045      program main
13046#ifndef __GNUC__
13047       choke me
13048#endif
13049
13050      end
13051_ACEOF
13052if ac_fn_fc_try_compile "$LINENO"; then :
13053  ac_compiler_gnu=yes
13054else
13055  ac_compiler_gnu=no
13056fi
13057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13059
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13062$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13063ac_ext=$ac_save_ext
13064ac_test_FCFLAGS=${FCFLAGS+set}
13065ac_save_FCFLAGS=$FCFLAGS
13066FCFLAGS=
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13068$as_echo_n "checking whether $FC accepts -g... " >&6; }
13069if ${ac_cv_prog_fc_g+:} false; then :
13070  $as_echo_n "(cached) " >&6
13071else
13072  FCFLAGS=-g
13073cat > conftest.$ac_ext <<_ACEOF
13074      program main
13075
13076      end
13077_ACEOF
13078if ac_fn_fc_try_compile "$LINENO"; then :
13079  ac_cv_prog_fc_g=yes
13080else
13081  ac_cv_prog_fc_g=no
13082fi
13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084
13085fi
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13087$as_echo "$ac_cv_prog_fc_g" >&6; }
13088if test "$ac_test_FCFLAGS" = set; then
13089  FCFLAGS=$ac_save_FCFLAGS
13090elif test $ac_cv_prog_fc_g = yes; then
13091  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13092    FCFLAGS="-g -O2"
13093  else
13094    FCFLAGS="-g"
13095  fi
13096else
13097  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13098    FCFLAGS="-O2"
13099  else
13100    FCFLAGS=
13101  fi
13102fi
13103
13104if test $ac_compiler_gnu = yes; then
13105  GFC=yes
13106else
13107  GFC=
13108fi
13109ac_ext=c
13110ac_cpp='$CPP $CPPFLAGS'
13111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
13115
13116func_stripname_cnf ()
13117{
13118  case $2 in
13119  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13120  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13121  esac
13122} # func_stripname_cnf
13123
13124
13125      ac_ext=${ac_fc_srcext-f}
13126ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13127ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13128ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13129
13130
13131if test -z "$FC" || test no = "$FC"; then
13132  _lt_disable_FC=yes
13133fi
13134
13135archive_cmds_need_lc_FC=no
13136allow_undefined_flag_FC=
13137always_export_symbols_FC=no
13138archive_expsym_cmds_FC=
13139export_dynamic_flag_spec_FC=
13140hardcode_direct_FC=no
13141hardcode_direct_absolute_FC=no
13142hardcode_libdir_flag_spec_FC=
13143hardcode_libdir_separator_FC=
13144hardcode_minus_L_FC=no
13145hardcode_automatic_FC=no
13146inherit_rpath_FC=no
13147module_cmds_FC=
13148module_expsym_cmds_FC=
13149link_all_deplibs_FC=unknown
13150old_archive_cmds_FC=$old_archive_cmds
13151reload_flag_FC=$reload_flag
13152reload_cmds_FC=$reload_cmds
13153no_undefined_flag_FC=
13154whole_archive_flag_spec_FC=
13155enable_shared_with_static_runtimes_FC=no
13156
13157# Source file extension for fc test sources.
13158ac_ext=${ac_fc_srcext-f}
13159
13160# Object file extension for compiled fc test sources.
13161objext=o
13162objext_FC=$objext
13163
13164# No sense in running all these tests if we already determined that
13165# the FC compiler isn't working.  Some variables (like enable_shared)
13166# are currently assumed to apply to all compilers on this platform,
13167# and will be corrupted by setting them based on a non-working compiler.
13168if test yes != "$_lt_disable_FC"; then
13169  # Code to be used in simple compile tests
13170  lt_simple_compile_test_code="\
13171      subroutine t
13172      return
13173      end
13174"
13175
13176  # Code to be used in simple link tests
13177  lt_simple_link_test_code="\
13178      program t
13179      end
13180"
13181
13182  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13183
13184
13185
13186
13187
13188
13189# If no C compiler was specified, use CC.
13190LTCC=${LTCC-"$CC"}
13191
13192# If no C compiler flags were specified, use CFLAGS.
13193LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13194
13195# Allow CC to be a program name with arguments.
13196compiler=$CC
13197
13198
13199  # save warnings/boilerplate of simple test code
13200  ac_outfile=conftest.$ac_objext
13201echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13202eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13203_lt_compiler_boilerplate=`cat conftest.err`
13204$RM conftest*
13205
13206  ac_outfile=conftest.$ac_objext
13207echo "$lt_simple_link_test_code" >conftest.$ac_ext
13208eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13209_lt_linker_boilerplate=`cat conftest.err`
13210$RM -r conftest*
13211
13212
13213  # Allow CC to be a program name with arguments.
13214  lt_save_CC=$CC
13215  lt_save_GCC=$GCC
13216  lt_save_CFLAGS=$CFLAGS
13217  CC=${FC-"f95"}
13218  CFLAGS=$FCFLAGS
13219  compiler=$CC
13220  GCC=$ac_cv_fc_compiler_gnu
13221
13222  compiler_FC=$CC
13223  func_cc_basename $compiler
13224cc_basename=$func_cc_basename_result
13225
13226
13227  if test -n "$compiler"; then
13228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13229$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13231$as_echo "$can_build_shared" >&6; }
13232
13233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13234$as_echo_n "checking whether to build shared libraries... " >&6; }
13235    test no = "$can_build_shared" && enable_shared=no
13236
13237    # On AIX, shared libraries and static libraries use the same namespace, and
13238    # are all built from PIC.
13239    case $host_os in
13240      aix3*)
13241        test yes = "$enable_shared" && enable_static=no
13242        if test -n "$RANLIB"; then
13243          archive_cmds="$archive_cmds~\$RANLIB \$lib"
13244          postinstall_cmds='$RANLIB $lib'
13245        fi
13246        ;;
13247      aix[4-9]*)
13248	if test ia64 != "$host_cpu"; then
13249	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13250	  yes,aix,yes) ;;		# shared object as lib.so file only
13251	  yes,svr4,*) ;;		# shared object as lib.so archive member only
13252	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13253	  esac
13254	fi
13255        ;;
13256    esac
13257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13258$as_echo "$enable_shared" >&6; }
13259
13260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13261$as_echo_n "checking whether to build static libraries... " >&6; }
13262    # Make sure either enable_shared or enable_static is yes.
13263    test yes = "$enable_shared" || enable_static=yes
13264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13265$as_echo "$enable_static" >&6; }
13266
13267    GCC_FC=$ac_cv_fc_compiler_gnu
13268    LD_FC=$LD
13269
13270    ## CAVEAT EMPTOR:
13271    ## There is no encapsulation within the following macros, do not change
13272    ## the running order or otherwise move them around unless you know exactly
13273    ## what you are doing...
13274    # Dependencies to place before and after the object being linked:
13275predep_objects_FC=
13276postdep_objects_FC=
13277predeps_FC=
13278postdeps_FC=
13279compiler_lib_search_path_FC=
13280
13281cat > conftest.$ac_ext <<_LT_EOF
13282      subroutine foo
13283      implicit none
13284      integer a
13285      a=0
13286      return
13287      end
13288_LT_EOF
13289
13290
13291_lt_libdeps_save_CFLAGS=$CFLAGS
13292case "$CC $CFLAGS " in #(
13293*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13294*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13295*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13296esac
13297
13298if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13299  (eval $ac_compile) 2>&5
13300  ac_status=$?
13301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302  test $ac_status = 0; }; then
13303  # Parse the compiler output and extract the necessary
13304  # objects, libraries and library flags.
13305
13306  # Sentinel used to keep track of whether or not we are before
13307  # the conftest object file.
13308  pre_test_object_deps_done=no
13309
13310  for p in `eval "$output_verbose_link_cmd"`; do
13311    case $prev$p in
13312
13313    -L* | -R* | -l*)
13314       # Some compilers place space between "-{L,R}" and the path.
13315       # Remove the space.
13316       if test x-L = "$p" ||
13317          test x-R = "$p"; then
13318	 prev=$p
13319	 continue
13320       fi
13321
13322       # Expand the sysroot to ease extracting the directories later.
13323       if test -z "$prev"; then
13324         case $p in
13325         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13326         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13327         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13328         esac
13329       fi
13330       case $p in
13331       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13332       esac
13333       if test no = "$pre_test_object_deps_done"; then
13334	 case $prev in
13335	 -L | -R)
13336	   # Internal compiler library paths should come after those
13337	   # provided the user.  The postdeps already come after the
13338	   # user supplied libs so there is no need to process them.
13339	   if test -z "$compiler_lib_search_path_FC"; then
13340	     compiler_lib_search_path_FC=$prev$p
13341	   else
13342	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
13343	   fi
13344	   ;;
13345	 # The "-l" case would never come before the object being
13346	 # linked, so don't bother handling this case.
13347	 esac
13348       else
13349	 if test -z "$postdeps_FC"; then
13350	   postdeps_FC=$prev$p
13351	 else
13352	   postdeps_FC="${postdeps_FC} $prev$p"
13353	 fi
13354       fi
13355       prev=
13356       ;;
13357
13358    *.lto.$objext) ;; # Ignore GCC LTO objects
13359    *.$objext)
13360       # This assumes that the test object file only shows up
13361       # once in the compiler output.
13362       if test "$p" = "conftest.$objext"; then
13363	 pre_test_object_deps_done=yes
13364	 continue
13365       fi
13366
13367       if test no = "$pre_test_object_deps_done"; then
13368	 if test -z "$predep_objects_FC"; then
13369	   predep_objects_FC=$p
13370	 else
13371	   predep_objects_FC="$predep_objects_FC $p"
13372	 fi
13373       else
13374	 if test -z "$postdep_objects_FC"; then
13375	   postdep_objects_FC=$p
13376	 else
13377	   postdep_objects_FC="$postdep_objects_FC $p"
13378	 fi
13379       fi
13380       ;;
13381
13382    *) ;; # Ignore the rest.
13383
13384    esac
13385  done
13386
13387  # Clean up.
13388  rm -f a.out a.exe
13389else
13390  echo "libtool.m4: error: problem compiling FC test program"
13391fi
13392
13393$RM -f confest.$objext
13394CFLAGS=$_lt_libdeps_save_CFLAGS
13395
13396# PORTME: override above test on systems where it is broken
13397
13398
13399case " $postdeps_FC " in
13400*" -lc "*) archive_cmds_need_lc_FC=no ;;
13401esac
13402 compiler_lib_search_dirs_FC=
13403if test -n "${compiler_lib_search_path_FC}"; then
13404 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
13405fi
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437    lt_prog_compiler_wl_FC=
13438lt_prog_compiler_pic_FC=
13439lt_prog_compiler_static_FC=
13440
13441
13442  if test yes = "$GCC"; then
13443    lt_prog_compiler_wl_FC='-Wl,'
13444    lt_prog_compiler_static_FC='-static'
13445
13446    case $host_os in
13447      aix*)
13448      # All AIX code is PIC.
13449      if test ia64 = "$host_cpu"; then
13450	# AIX 5 now supports IA64 processor
13451	lt_prog_compiler_static_FC='-Bstatic'
13452      fi
13453      lt_prog_compiler_pic_FC='-fPIC'
13454      ;;
13455
13456    amigaos*)
13457      case $host_cpu in
13458      powerpc)
13459            # see comment about AmigaOS4 .so support
13460            lt_prog_compiler_pic_FC='-fPIC'
13461        ;;
13462      m68k)
13463            # FIXME: we need at least 68020 code to build shared libraries, but
13464            # adding the '-m68020' flag to GCC prevents building anything better,
13465            # like '-m68040'.
13466            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13467        ;;
13468      esac
13469      ;;
13470
13471    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13472      # PIC is the default for these OSes.
13473      ;;
13474
13475    mingw* | cygwin* | pw32* | os2* | cegcc*)
13476      # This hack is so that the source file can tell whether it is being
13477      # built for inclusion in a dll (and should export symbols for example).
13478      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13479      # (--disable-auto-import) libraries
13480      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13481      case $host_os in
13482      os2*)
13483	lt_prog_compiler_static_FC='$wl-static'
13484	;;
13485      esac
13486      ;;
13487
13488    darwin* | rhapsody*)
13489      # PIC is the default on this platform
13490      # Common symbols not allowed in MH_DYLIB files
13491      lt_prog_compiler_pic_FC='-fno-common'
13492      ;;
13493
13494    haiku*)
13495      # PIC is the default for Haiku.
13496      # The "-static" flag exists, but is broken.
13497      lt_prog_compiler_static_FC=
13498      ;;
13499
13500    hpux*)
13501      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13502      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13503      # sets the default TLS model and affects inlining.
13504      case $host_cpu in
13505      hppa*64*)
13506	# +Z the default
13507	;;
13508      *)
13509	lt_prog_compiler_pic_FC='-fPIC'
13510	;;
13511      esac
13512      ;;
13513
13514    interix[3-9]*)
13515      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13516      # Instead, we relocate shared libraries at runtime.
13517      ;;
13518
13519    msdosdjgpp*)
13520      # Just because we use GCC doesn't mean we suddenly get shared libraries
13521      # on systems that don't support them.
13522      lt_prog_compiler_can_build_shared_FC=no
13523      enable_shared=no
13524      ;;
13525
13526    *nto* | *qnx*)
13527      # QNX uses GNU C++, but need to define -shared option too, otherwise
13528      # it will coredump.
13529      lt_prog_compiler_pic_FC='-fPIC -shared'
13530      ;;
13531
13532    sysv4*MP*)
13533      if test -d /usr/nec; then
13534	lt_prog_compiler_pic_FC=-Kconform_pic
13535      fi
13536      ;;
13537
13538    *)
13539      lt_prog_compiler_pic_FC='-fPIC'
13540      ;;
13541    esac
13542
13543    case $cc_basename in
13544    nvcc*) # Cuda Compiler Driver 2.2
13545      lt_prog_compiler_wl_FC='-Xlinker '
13546      if test -n "$lt_prog_compiler_pic_FC"; then
13547        lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
13548      fi
13549      ;;
13550    esac
13551  else
13552    # PORTME Check for flag to pass linker flags through the system compiler.
13553    case $host_os in
13554    aix*)
13555      lt_prog_compiler_wl_FC='-Wl,'
13556      if test ia64 = "$host_cpu"; then
13557	# AIX 5 now supports IA64 processor
13558	lt_prog_compiler_static_FC='-Bstatic'
13559      else
13560	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13561      fi
13562      ;;
13563
13564    darwin* | rhapsody*)
13565      # PIC is the default on this platform
13566      # Common symbols not allowed in MH_DYLIB files
13567      lt_prog_compiler_pic_FC='-fno-common'
13568      case $cc_basename in
13569      nagfor*)
13570        # NAG Fortran compiler
13571        lt_prog_compiler_wl_FC='-Wl,-Wl,,'
13572        lt_prog_compiler_pic_FC='-PIC'
13573        lt_prog_compiler_static_FC='-Bstatic'
13574        ;;
13575      esac
13576      ;;
13577
13578    mingw* | cygwin* | pw32* | os2* | cegcc*)
13579      # This hack is so that the source file can tell whether it is being
13580      # built for inclusion in a dll (and should export symbols for example).
13581      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13582      case $host_os in
13583      os2*)
13584	lt_prog_compiler_static_FC='$wl-static'
13585	;;
13586      esac
13587      ;;
13588
13589    hpux9* | hpux10* | hpux11*)
13590      lt_prog_compiler_wl_FC='-Wl,'
13591      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13592      # not for PA HP-UX.
13593      case $host_cpu in
13594      hppa*64*|ia64*)
13595	# +Z the default
13596	;;
13597      *)
13598	lt_prog_compiler_pic_FC='+Z'
13599	;;
13600      esac
13601      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13602      lt_prog_compiler_static_FC='$wl-a ${wl}archive'
13603      ;;
13604
13605    irix5* | irix6* | nonstopux*)
13606      lt_prog_compiler_wl_FC='-Wl,'
13607      # PIC (with -KPIC) is the default.
13608      lt_prog_compiler_static_FC='-non_shared'
13609      ;;
13610
13611    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13612      case $cc_basename in
13613      # old Intel for x86_64, which still supported -KPIC.
13614      ecc*)
13615	lt_prog_compiler_wl_FC='-Wl,'
13616	lt_prog_compiler_pic_FC='-KPIC'
13617	lt_prog_compiler_static_FC='-static'
13618        ;;
13619      # flang / f18. f95 an alias for gfortran or flang on Debian
13620      flang* | f18* | f95*)
13621	lt_prog_compiler_wl_FC='-Wl,'
13622	lt_prog_compiler_pic_FC='-fPIC'
13623	lt_prog_compiler_static_FC='-static'
13624        ;;
13625      # icc used to be incompatible with GCC.
13626      # ICC 10 doesn't accept -KPIC any more.
13627      icc* | ifort*)
13628	lt_prog_compiler_wl_FC='-Wl,'
13629	lt_prog_compiler_pic_FC='-fPIC'
13630	lt_prog_compiler_static_FC='-static'
13631        ;;
13632      # Lahey Fortran 8.1.
13633      lf95*)
13634	lt_prog_compiler_wl_FC='-Wl,'
13635	lt_prog_compiler_pic_FC='--shared'
13636	lt_prog_compiler_static_FC='--static'
13637	;;
13638      nagfor*)
13639	# NAG Fortran compiler
13640	lt_prog_compiler_wl_FC='-Wl,-Wl,,'
13641	lt_prog_compiler_pic_FC='-PIC'
13642	lt_prog_compiler_static_FC='-Bstatic'
13643	;;
13644      tcc*)
13645	# Fabrice Bellard et al's Tiny C Compiler
13646	lt_prog_compiler_wl_FC='-Wl,'
13647	lt_prog_compiler_pic_FC='-fPIC'
13648	lt_prog_compiler_static_FC='-static'
13649	;;
13650      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13651        # Portland Group compilers (*not* the Pentium gcc compiler,
13652	# which looks to be a dead project)
13653	lt_prog_compiler_wl_FC='-Wl,'
13654	lt_prog_compiler_pic_FC='-fpic'
13655	lt_prog_compiler_static_FC='-Bstatic'
13656        ;;
13657      ccc*)
13658        lt_prog_compiler_wl_FC='-Wl,'
13659        # All Alpha code is PIC.
13660        lt_prog_compiler_static_FC='-non_shared'
13661        ;;
13662      xl* | bgxl* | bgf* | mpixl*)
13663	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13664	lt_prog_compiler_wl_FC='-Wl,'
13665	lt_prog_compiler_pic_FC='-qpic'
13666	lt_prog_compiler_static_FC='-qstaticlink'
13667	;;
13668      *)
13669	case `$CC -V 2>&1 | sed 5q` in
13670	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13671	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13672	  lt_prog_compiler_pic_FC='-KPIC'
13673	  lt_prog_compiler_static_FC='-Bstatic'
13674	  lt_prog_compiler_wl_FC=''
13675	  ;;
13676	*Sun\ F* | *Sun*Fortran*)
13677	  lt_prog_compiler_pic_FC='-KPIC'
13678	  lt_prog_compiler_static_FC='-Bstatic'
13679	  lt_prog_compiler_wl_FC='-Qoption ld '
13680	  ;;
13681	*Sun\ C*)
13682	  # Sun C 5.9
13683	  lt_prog_compiler_pic_FC='-KPIC'
13684	  lt_prog_compiler_static_FC='-Bstatic'
13685	  lt_prog_compiler_wl_FC='-Wl,'
13686	  ;;
13687        *Intel*\ [CF]*Compiler*)
13688	  lt_prog_compiler_wl_FC='-Wl,'
13689	  lt_prog_compiler_pic_FC='-fPIC'
13690	  lt_prog_compiler_static_FC='-static'
13691	  ;;
13692	*Portland\ Group*)
13693	  lt_prog_compiler_wl_FC='-Wl,'
13694	  lt_prog_compiler_pic_FC='-fpic'
13695	  lt_prog_compiler_static_FC='-Bstatic'
13696	  ;;
13697	esac
13698	;;
13699      esac
13700      ;;
13701
13702    newsos6)
13703      lt_prog_compiler_pic_FC='-KPIC'
13704      lt_prog_compiler_static_FC='-Bstatic'
13705      ;;
13706
13707    *nto* | *qnx*)
13708      # QNX uses GNU C++, but need to define -shared option too, otherwise
13709      # it will coredump.
13710      lt_prog_compiler_pic_FC='-fPIC -shared'
13711      ;;
13712
13713    osf3* | osf4* | osf5*)
13714      lt_prog_compiler_wl_FC='-Wl,'
13715      # All OSF/1 code is PIC.
13716      lt_prog_compiler_static_FC='-non_shared'
13717      ;;
13718
13719    rdos*)
13720      lt_prog_compiler_static_FC='-non_shared'
13721      ;;
13722
13723    solaris*)
13724      lt_prog_compiler_pic_FC='-KPIC'
13725      lt_prog_compiler_static_FC='-Bstatic'
13726      case $cc_basename in
13727      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13728	lt_prog_compiler_wl_FC='-Qoption ld ';;
13729      *)
13730	lt_prog_compiler_wl_FC='-Wl,';;
13731      esac
13732      ;;
13733
13734    sunos4*)
13735      lt_prog_compiler_wl_FC='-Qoption ld '
13736      lt_prog_compiler_pic_FC='-PIC'
13737      lt_prog_compiler_static_FC='-Bstatic'
13738      ;;
13739
13740    sysv4 | sysv4.2uw2* | sysv4.3*)
13741      lt_prog_compiler_wl_FC='-Wl,'
13742      lt_prog_compiler_pic_FC='-KPIC'
13743      lt_prog_compiler_static_FC='-Bstatic'
13744      ;;
13745
13746    sysv4*MP*)
13747      if test -d /usr/nec; then
13748	lt_prog_compiler_pic_FC='-Kconform_pic'
13749	lt_prog_compiler_static_FC='-Bstatic'
13750      fi
13751      ;;
13752
13753    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13754      lt_prog_compiler_wl_FC='-Wl,'
13755      lt_prog_compiler_pic_FC='-KPIC'
13756      lt_prog_compiler_static_FC='-Bstatic'
13757      ;;
13758
13759    unicos*)
13760      lt_prog_compiler_wl_FC='-Wl,'
13761      lt_prog_compiler_can_build_shared_FC=no
13762      ;;
13763
13764    uts4*)
13765      lt_prog_compiler_pic_FC='-pic'
13766      lt_prog_compiler_static_FC='-Bstatic'
13767      ;;
13768
13769    *)
13770      lt_prog_compiler_can_build_shared_FC=no
13771      ;;
13772    esac
13773  fi
13774
13775case $host_os in
13776  # For platforms that do not support PIC, -DPIC is meaningless:
13777  *djgpp*)
13778    lt_prog_compiler_pic_FC=
13779    ;;
13780  *)
13781    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13782    ;;
13783esac
13784
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13786$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13787if ${lt_cv_prog_compiler_pic_FC+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
13791fi
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
13793$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
13794lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
13795
13796#
13797# Check to make sure the PIC flag actually works.
13798#
13799if test -n "$lt_prog_compiler_pic_FC"; then
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13801$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13802if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13803  $as_echo_n "(cached) " >&6
13804else
13805  lt_cv_prog_compiler_pic_works_FC=no
13806   ac_outfile=conftest.$ac_objext
13807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13808   lt_compiler_flag="$lt_prog_compiler_pic_FC"  ## exclude from sc_useless_quotes_in_assignment
13809   # Insert the option either (1) after the last *FLAGS variable, or
13810   # (2) before a word containing "conftest.", or (3) at the end.
13811   # Note that $ac_compile itself does not contain backslashes and begins
13812   # with a dollar sign (not a hyphen), so the echo should work correctly.
13813   # The option is referenced via a variable to avoid confusing sed.
13814   lt_compile=`echo "$ac_compile" | $SED \
13815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13817   -e 's:$: $lt_compiler_flag:'`
13818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13819   (eval "$lt_compile" 2>conftest.err)
13820   ac_status=$?
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   if (exit $ac_status) && test -s "$ac_outfile"; then
13824     # The compiler can only warn and ignore the option if not recognized
13825     # So say no if there are warnings other than the usual output.
13826     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13827     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13828     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13829       lt_cv_prog_compiler_pic_works_FC=yes
13830     fi
13831   fi
13832   $RM conftest*
13833
13834fi
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13836$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13837
13838if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
13839    case $lt_prog_compiler_pic_FC in
13840     "" | " "*) ;;
13841     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13842     esac
13843else
13844    lt_prog_compiler_pic_FC=
13845     lt_prog_compiler_can_build_shared_FC=no
13846fi
13847
13848fi
13849
13850
13851
13852
13853
13854#
13855# Check to make sure the static flag actually works.
13856#
13857wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13859$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13860if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13861  $as_echo_n "(cached) " >&6
13862else
13863  lt_cv_prog_compiler_static_works_FC=no
13864   save_LDFLAGS=$LDFLAGS
13865   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13866   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13867   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13868     # The linker can only warn and ignore the option if not recognized
13869     # So say no if there are warnings
13870     if test -s conftest.err; then
13871       # Append any errors to the config.log.
13872       cat conftest.err 1>&5
13873       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13874       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13875       if diff conftest.exp conftest.er2 >/dev/null; then
13876         lt_cv_prog_compiler_static_works_FC=yes
13877       fi
13878     else
13879       lt_cv_prog_compiler_static_works_FC=yes
13880     fi
13881   fi
13882   $RM -r conftest*
13883   LDFLAGS=$save_LDFLAGS
13884
13885fi
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13887$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13888
13889if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
13890    :
13891else
13892    lt_prog_compiler_static_FC=
13893fi
13894
13895
13896
13897
13898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13899$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13900if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  lt_cv_prog_compiler_c_o_FC=no
13904   $RM -r conftest 2>/dev/null
13905   mkdir conftest
13906   cd conftest
13907   mkdir out
13908   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13909
13910   lt_compiler_flag="-o out/conftest2.$ac_objext"
13911   # Insert the option either (1) after the last *FLAGS variable, or
13912   # (2) before a word containing "conftest.", or (3) at the end.
13913   # Note that $ac_compile itself does not contain backslashes and begins
13914   # with a dollar sign (not a hyphen), so the echo should work correctly.
13915   lt_compile=`echo "$ac_compile" | $SED \
13916   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918   -e 's:$: $lt_compiler_flag:'`
13919   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13920   (eval "$lt_compile" 2>out/conftest.err)
13921   ac_status=$?
13922   cat out/conftest.err >&5
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13925   then
13926     # The compiler can only warn and ignore the option if not recognized
13927     # So say no if there are warnings
13928     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13929     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13930     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13931       lt_cv_prog_compiler_c_o_FC=yes
13932     fi
13933   fi
13934   chmod u+w . 2>&5
13935   $RM conftest*
13936   # SGI C++ compiler will create directory out/ii_files/ for
13937   # template instantiation
13938   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13939   $RM out/* && rmdir out
13940   cd ..
13941   $RM -r conftest
13942   $RM conftest*
13943
13944fi
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13946$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13947
13948
13949
13950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13952if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13953  $as_echo_n "(cached) " >&6
13954else
13955  lt_cv_prog_compiler_c_o_FC=no
13956   $RM -r conftest 2>/dev/null
13957   mkdir conftest
13958   cd conftest
13959   mkdir out
13960   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13961
13962   lt_compiler_flag="-o out/conftest2.$ac_objext"
13963   # Insert the option either (1) after the last *FLAGS variable, or
13964   # (2) before a word containing "conftest.", or (3) at the end.
13965   # Note that $ac_compile itself does not contain backslashes and begins
13966   # with a dollar sign (not a hyphen), so the echo should work correctly.
13967   lt_compile=`echo "$ac_compile" | $SED \
13968   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13969   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13970   -e 's:$: $lt_compiler_flag:'`
13971   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13972   (eval "$lt_compile" 2>out/conftest.err)
13973   ac_status=$?
13974   cat out/conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13977   then
13978     # The compiler can only warn and ignore the option if not recognized
13979     # So say no if there are warnings
13980     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13981     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13982     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13983       lt_cv_prog_compiler_c_o_FC=yes
13984     fi
13985   fi
13986   chmod u+w . 2>&5
13987   $RM conftest*
13988   # SGI C++ compiler will create directory out/ii_files/ for
13989   # template instantiation
13990   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13991   $RM out/* && rmdir out
13992   cd ..
13993   $RM -r conftest
13994   $RM conftest*
13995
13996fi
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13998$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13999
14000
14001
14002
14003hard_links=nottested
14004if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
14005  # do not overwrite the value of need_locks provided by the user
14006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14007$as_echo_n "checking if we can lock with hard links... " >&6; }
14008  hard_links=yes
14009  $RM conftest*
14010  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14011  touch conftest.a
14012  ln conftest.a conftest.b 2>&5 || hard_links=no
14013  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14015$as_echo "$hard_links" >&6; }
14016  if test no = "$hard_links"; then
14017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14018$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14019    need_locks=warn
14020  fi
14021else
14022  need_locks=no
14023fi
14024
14025
14026
14027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14028$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14029
14030  runpath_var=
14031  allow_undefined_flag_FC=
14032  always_export_symbols_FC=no
14033  archive_cmds_FC=
14034  archive_expsym_cmds_FC=
14035  compiler_needs_object_FC=no
14036  enable_shared_with_static_runtimes_FC=no
14037  export_dynamic_flag_spec_FC=
14038  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14039  hardcode_automatic_FC=no
14040  hardcode_direct_FC=no
14041  hardcode_direct_absolute_FC=no
14042  hardcode_libdir_flag_spec_FC=
14043  hardcode_libdir_separator_FC=
14044  hardcode_minus_L_FC=no
14045  hardcode_shlibpath_var_FC=unsupported
14046  inherit_rpath_FC=no
14047  link_all_deplibs_FC=unknown
14048  module_cmds_FC=
14049  module_expsym_cmds_FC=
14050  old_archive_from_new_cmds_FC=
14051  old_archive_from_expsyms_cmds_FC=
14052  thread_safe_flag_spec_FC=
14053  whole_archive_flag_spec_FC=
14054  # include_expsyms should be a list of space-separated symbols to be *always*
14055  # included in the symbol list
14056  include_expsyms_FC=
14057  # exclude_expsyms can be an extended regexp of symbols to exclude
14058  # it will be wrapped by ' (' and ')$', so one must not match beginning or
14059  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14060  # as well as any symbol that contains 'd'.
14061  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14062  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14063  # platforms (ab)use it in PIC code, but their linkers get confused if
14064  # the symbol is explicitly referenced.  Since portable code cannot
14065  # rely on this symbol name, it's probably fine to never include it in
14066  # preloaded symbol tables.
14067  # Exclude shared library initialization/finalization symbols.
14068  extract_expsyms_cmds=
14069
14070  case $host_os in
14071  cygwin* | mingw* | pw32* | cegcc*)
14072    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14073    # When not using gcc, we currently assume that we are using
14074    # Microsoft Visual C++.
14075    if test yes != "$GCC"; then
14076      with_gnu_ld=no
14077    fi
14078    ;;
14079  interix*)
14080    # we just hope/assume this is gcc and not c89 (= MSVC++)
14081    with_gnu_ld=yes
14082    ;;
14083  openbsd* | bitrig*)
14084    with_gnu_ld=no
14085    ;;
14086  linux* | k*bsd*-gnu | gnu*)
14087    link_all_deplibs_FC=no
14088    ;;
14089  esac
14090
14091  ld_shlibs_FC=yes
14092
14093  # On some targets, GNU ld is compatible enough with the native linker
14094  # that we're better off using the native interface for both.
14095  lt_use_gnu_ld_interface=no
14096  if test yes = "$with_gnu_ld"; then
14097    case $host_os in
14098      aix*)
14099	# The AIX port of GNU ld has always aspired to compatibility
14100	# with the native linker.  However, as the warning in the GNU ld
14101	# block says, versions before 2.19.5* couldn't really create working
14102	# shared libraries, regardless of the interface used.
14103	case `$LD -v 2>&1` in
14104	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14105	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14106	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14107	  *)
14108	    lt_use_gnu_ld_interface=yes
14109	    ;;
14110	esac
14111	;;
14112      *)
14113	lt_use_gnu_ld_interface=yes
14114	;;
14115    esac
14116  fi
14117
14118  if test yes = "$lt_use_gnu_ld_interface"; then
14119    # If archive_cmds runs LD, not CC, wlarc should be empty
14120    wlarc='$wl'
14121
14122    # Set some defaults for GNU ld with shared library support. These
14123    # are reset later if shared libraries are not supported. Putting them
14124    # here allows them to be overridden if necessary.
14125    runpath_var=LD_RUN_PATH
14126    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
14127    export_dynamic_flag_spec_FC='$wl--export-dynamic'
14128    # ancient GNU ld didn't support --whole-archive et. al.
14129    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14130      whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14131    else
14132      whole_archive_flag_spec_FC=
14133    fi
14134    supports_anon_versioning=no
14135    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14136      *GNU\ gold*) supports_anon_versioning=yes ;;
14137      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14138      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14139      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14140      *\ 2.11.*) ;; # other 2.11 versions
14141      *) supports_anon_versioning=yes ;;
14142    esac
14143
14144    # See if GNU ld supports shared libraries.
14145    case $host_os in
14146    aix[3-9]*)
14147      # On AIX/PPC, the GNU linker is very broken
14148      if test ia64 != "$host_cpu"; then
14149	ld_shlibs_FC=no
14150	cat <<_LT_EOF 1>&2
14151
14152*** Warning: the GNU linker, at least up to release 2.19, is reported
14153*** to be unable to reliably create shared libraries on AIX.
14154*** Therefore, libtool is disabling shared libraries support.  If you
14155*** really care for shared libraries, you may want to install binutils
14156*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14157*** You will then need to restart the configuration process.
14158
14159_LT_EOF
14160      fi
14161      ;;
14162
14163    amigaos*)
14164      case $host_cpu in
14165      powerpc)
14166            # see comment about AmigaOS4 .so support
14167            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14168            archive_expsym_cmds_FC=''
14169        ;;
14170      m68k)
14171            archive_cmds_FC='$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)'
14172            hardcode_libdir_flag_spec_FC='-L$libdir'
14173            hardcode_minus_L_FC=yes
14174        ;;
14175      esac
14176      ;;
14177
14178    beos*)
14179      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14180	allow_undefined_flag_FC=unsupported
14181	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14182	# support --undefined.  This deserves some investigation.  FIXME
14183	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14184      else
14185	ld_shlibs_FC=no
14186      fi
14187      ;;
14188
14189    cygwin* | mingw* | pw32* | cegcc*)
14190      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14191      # as there is no search path for DLLs.
14192      hardcode_libdir_flag_spec_FC='-L$libdir'
14193      export_dynamic_flag_spec_FC='$wl--export-all-symbols'
14194      allow_undefined_flag_FC=unsupported
14195      always_export_symbols_FC=no
14196      enable_shared_with_static_runtimes_FC=yes
14197      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14198      exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14199
14200      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14201        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14202	# If the export-symbols file already is a .def file, use it as
14203	# is; otherwise, prepend EXPORTS...
14204	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14205          cp $export_symbols $output_objdir/$soname.def;
14206        else
14207          echo EXPORTS > $output_objdir/$soname.def;
14208          cat $export_symbols >> $output_objdir/$soname.def;
14209        fi~
14210        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14211      else
14212	ld_shlibs_FC=no
14213      fi
14214      ;;
14215
14216    haiku*)
14217      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14218      link_all_deplibs_FC=yes
14219      ;;
14220
14221    os2*)
14222      hardcode_libdir_flag_spec_FC='-L$libdir'
14223      hardcode_minus_L_FC=yes
14224      allow_undefined_flag_FC=unsupported
14225      shrext_cmds=.dll
14226      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14227	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14228	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14229	$ECHO EXPORTS >> $output_objdir/$libname.def~
14230	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14231	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14232	emximp -o $lib $output_objdir/$libname.def'
14233      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14234	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14235	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14236	$ECHO EXPORTS >> $output_objdir/$libname.def~
14237	prefix_cmds="$SED"~
14238	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14239	  prefix_cmds="$prefix_cmds -e 1d";
14240	fi~
14241	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14242	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14243	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14244	emximp -o $lib $output_objdir/$libname.def'
14245      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14246      enable_shared_with_static_runtimes_FC=yes
14247      ;;
14248
14249    interix[3-9]*)
14250      hardcode_direct_FC=no
14251      hardcode_shlibpath_var_FC=no
14252      hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
14253      export_dynamic_flag_spec_FC='$wl-E'
14254      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14255      # Instead, shared libraries are loaded at an image base (0x10000000 by
14256      # default) and relocated if they conflict, which is a slow very memory
14257      # consuming and fragmenting process.  To avoid this, we pick a random,
14258      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14259      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14260      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14261      archive_expsym_cmds_FC='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'
14262      ;;
14263
14264    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14265      tmp_diet=no
14266      if test linux-dietlibc = "$host_os"; then
14267	case $cc_basename in
14268	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14269	esac
14270      fi
14271      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14272	 && test no = "$tmp_diet"
14273      then
14274	tmp_addflag=' $pic_flag'
14275	tmp_sharedflag='-shared'
14276	case $cc_basename,$host_cpu in
14277        pgcc*)				# Portland Group C compiler
14278	  whole_archive_flag_spec_FC='$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'
14279	  tmp_addflag=' $pic_flag'
14280	  ;;
14281	pgf77* | pgf90* | pgf95* | pgfortran*)
14282					# Portland Group f77 and f90 compilers
14283	  whole_archive_flag_spec_FC='$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'
14284	  tmp_addflag=' $pic_flag -Mnomain' ;;
14285	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14286	  tmp_addflag=' -i_dynamic' ;;
14287	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14288	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14289	ifc* | ifort*)			# Intel Fortran compiler
14290	  tmp_addflag=' -nofor_main' ;;
14291	lf95*)				# Lahey Fortran 8.1
14292	  whole_archive_flag_spec_FC=
14293	  tmp_sharedflag='--shared' ;;
14294        nagfor*)                        # NAGFOR 5.3
14295          tmp_sharedflag='-Wl,-shared' ;;
14296	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14297	  tmp_sharedflag='-qmkshrobj'
14298	  tmp_addflag= ;;
14299	nvcc*)	# Cuda Compiler Driver 2.2
14300	  whole_archive_flag_spec_FC='$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'
14301	  compiler_needs_object_FC=yes
14302	  ;;
14303	esac
14304	case `$CC -V 2>&1 | sed 5q` in
14305	*Sun\ C*)			# Sun C 5.9
14306	  whole_archive_flag_spec_FC='$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'
14307	  compiler_needs_object_FC=yes
14308	  tmp_sharedflag='-G' ;;
14309	*Sun\ F*)			# Sun Fortran 8.3
14310	  tmp_sharedflag='-G' ;;
14311	esac
14312	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14313
14314        if test yes = "$supports_anon_versioning"; then
14315          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14316            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14317            echo "local: *; };" >> $output_objdir/$libname.ver~
14318            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14319        fi
14320
14321	case $cc_basename in
14322	tcc*)
14323	  export_dynamic_flag_spec_FC='-rdynamic'
14324	  ;;
14325	xlf* | bgf* | bgxlf* | mpixlf*)
14326	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14327	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14328	  hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
14329	  archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14330	  if test yes = "$supports_anon_versioning"; then
14331	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14332              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14333              echo "local: *; };" >> $output_objdir/$libname.ver~
14334              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14335	  fi
14336	  ;;
14337	esac
14338      else
14339        ld_shlibs_FC=no
14340      fi
14341      ;;
14342
14343    netbsd* | netbsdelf*-gnu)
14344      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14345	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14346	wlarc=
14347      else
14348	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14349	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14350      fi
14351      ;;
14352
14353    solaris*)
14354      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14355	ld_shlibs_FC=no
14356	cat <<_LT_EOF 1>&2
14357
14358*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14359*** create shared libraries on Solaris systems.  Therefore, libtool
14360*** is disabling shared libraries support.  We urge you to upgrade GNU
14361*** binutils to release 2.9.1 or newer.  Another option is to modify
14362*** your PATH or compiler configuration so that the native linker is
14363*** used, and then restart.
14364
14365_LT_EOF
14366      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14367	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14368	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14369      else
14370	ld_shlibs_FC=no
14371      fi
14372      ;;
14373
14374    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14375      case `$LD -v 2>&1` in
14376        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14377	ld_shlibs_FC=no
14378	cat <<_LT_EOF 1>&2
14379
14380*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14381*** reliably create shared libraries on SCO systems.  Therefore, libtool
14382*** is disabling shared libraries support.  We urge you to upgrade GNU
14383*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14384*** your PATH or compiler configuration so that the native linker is
14385*** used, and then restart.
14386
14387_LT_EOF
14388	;;
14389	*)
14390	  # For security reasons, it is highly recommended that you always
14391	  # use absolute paths for naming shared libraries, and exclude the
14392	  # DT_RUNPATH tag from executables and libraries.  But doing so
14393	  # requires that you compile everything twice, which is a pain.
14394	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14395	    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
14396	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14397	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14398	  else
14399	    ld_shlibs_FC=no
14400	  fi
14401	;;
14402      esac
14403      ;;
14404
14405    sunos4*)
14406      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14407      wlarc=
14408      hardcode_direct_FC=yes
14409      hardcode_shlibpath_var_FC=no
14410      ;;
14411
14412    *)
14413      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14414	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14415	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14416      else
14417	ld_shlibs_FC=no
14418      fi
14419      ;;
14420    esac
14421
14422    if test no = "$ld_shlibs_FC"; then
14423      runpath_var=
14424      hardcode_libdir_flag_spec_FC=
14425      export_dynamic_flag_spec_FC=
14426      whole_archive_flag_spec_FC=
14427    fi
14428  else
14429    # PORTME fill in a description of your system's linker (not GNU ld)
14430    case $host_os in
14431    aix3*)
14432      allow_undefined_flag_FC=unsupported
14433      always_export_symbols_FC=yes
14434      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14435      # Note: this linker hardcodes the directories in LIBPATH if there
14436      # are no directories specified by -L.
14437      hardcode_minus_L_FC=yes
14438      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14439	# Neither direct hardcoding nor static linking is supported with a
14440	# broken collect2.
14441	hardcode_direct_FC=unsupported
14442      fi
14443      ;;
14444
14445    aix[4-9]*)
14446      if test ia64 = "$host_cpu"; then
14447	# On IA64, the linker does run time linking by default, so we don't
14448	# have to do anything special.
14449	aix_use_runtimelinking=no
14450	exp_sym_flag='-Bexport'
14451	no_entry_flag=
14452      else
14453	# If we're using GNU nm, then we don't want the "-C" option.
14454	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14455	# Without the "-l" option, or with the "-B" option, AIX nm treats
14456	# weak defined symbols like other global defined symbols, whereas
14457	# GNU nm marks them as "W".
14458	# While the 'weak' keyword is ignored in the Export File, we need
14459	# it in the Import File for the 'aix-soname' feature, so we have
14460	# to replace the "-B" option with "-P" for AIX nm.
14461	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14462	  export_symbols_cmds_FC='$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'
14463	else
14464	  export_symbols_cmds_FC='`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'
14465	fi
14466	aix_use_runtimelinking=no
14467
14468	# Test if we are trying to use run time linking or normal
14469	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14470	# have runtime linking enabled, and use it for executables.
14471	# For shared libraries, we enable/disable runtime linking
14472	# depending on the kind of the shared library created -
14473	# when "with_aix_soname,aix_use_runtimelinking" is:
14474	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14475	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14476	#            lib.a           static archive
14477	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14478	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14479	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14480	#            lib.a(lib.so.V) shared, rtl:no
14481	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14482	#            lib.a           static archive
14483	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14484	  for ld_flag in $LDFLAGS; do
14485	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14486	    aix_use_runtimelinking=yes
14487	    break
14488	  fi
14489	  done
14490	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14491	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14492	    # so we don't have lib.a shared libs to link our executables.
14493	    # We have to force runtime linking in this case.
14494	    aix_use_runtimelinking=yes
14495	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14496	  fi
14497	  ;;
14498	esac
14499
14500	exp_sym_flag='-bexport'
14501	no_entry_flag='-bnoentry'
14502      fi
14503
14504      # When large executables or shared objects are built, AIX ld can
14505      # have problems creating the table of contents.  If linking a library
14506      # or program results in "error TOC overflow" add -mminimal-toc to
14507      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14508      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14509
14510      archive_cmds_FC=''
14511      hardcode_direct_FC=yes
14512      hardcode_direct_absolute_FC=yes
14513      hardcode_libdir_separator_FC=':'
14514      link_all_deplibs_FC=yes
14515      file_list_spec_FC='$wl-f,'
14516      case $with_aix_soname,$aix_use_runtimelinking in
14517      aix,*) ;; # traditional, no import file
14518      svr4,* | *,yes) # use import file
14519	# The Import File defines what to hardcode.
14520	hardcode_direct_FC=no
14521	hardcode_direct_absolute_FC=no
14522	;;
14523      esac
14524
14525      if test yes = "$GCC"; then
14526	case $host_os in aix4.[012]|aix4.[012].*)
14527	# We only want to do this on AIX 4.2 and lower, the check
14528	# below for broken collect2 doesn't work under 4.3+
14529	  collect2name=`$CC -print-prog-name=collect2`
14530	  if test -f "$collect2name" &&
14531	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14532	  then
14533	  # We have reworked collect2
14534	  :
14535	  else
14536	  # We have old collect2
14537	  hardcode_direct_FC=unsupported
14538	  # It fails to find uninstalled libraries when the uninstalled
14539	  # path is not listed in the libpath.  Setting hardcode_minus_L
14540	  # to unsupported forces relinking
14541	  hardcode_minus_L_FC=yes
14542	  hardcode_libdir_flag_spec_FC='-L$libdir'
14543	  hardcode_libdir_separator_FC=
14544	  fi
14545	  ;;
14546	esac
14547	shared_flag='-shared'
14548	if test yes = "$aix_use_runtimelinking"; then
14549	  shared_flag="$shared_flag "'$wl-G'
14550	fi
14551	# Need to ensure runtime linking is disabled for the traditional
14552	# shared library, or the linker may eventually find shared libraries
14553	# /with/ Import File - we do not want to mix them.
14554	shared_flag_aix='-shared'
14555	shared_flag_svr4='-shared $wl-G'
14556      else
14557	# not using gcc
14558	if test ia64 = "$host_cpu"; then
14559	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14560	# chokes on -Wl,-G. The following line is correct:
14561	  shared_flag='-G'
14562	else
14563	  if test yes = "$aix_use_runtimelinking"; then
14564	    shared_flag='$wl-G'
14565	  else
14566	    shared_flag='$wl-bM:SRE'
14567	  fi
14568	  shared_flag_aix='$wl-bM:SRE'
14569	  shared_flag_svr4='$wl-G'
14570	fi
14571      fi
14572
14573      export_dynamic_flag_spec_FC='$wl-bexpall'
14574      # It seems that -bexpall does not export symbols beginning with
14575      # underscore (_), so it is better to generate a list of symbols to export.
14576      always_export_symbols_FC=yes
14577      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14578	# Warning - without using the other runtime loading flags (-brtl),
14579	# -berok will link without error, but may produce a broken library.
14580	allow_undefined_flag_FC='-berok'
14581        # Determine the default libpath from the value encoded in an
14582        # empty executable.
14583        if test set = "${lt_cv_aix_libpath+set}"; then
14584  aix_libpath=$lt_cv_aix_libpath
14585else
14586  if ${lt_cv_aix_libpath__FC+:} false; then :
14587  $as_echo_n "(cached) " >&6
14588else
14589  cat > conftest.$ac_ext <<_ACEOF
14590      program main
14591
14592      end
14593_ACEOF
14594if ac_fn_fc_try_link "$LINENO"; then :
14595
14596  lt_aix_libpath_sed='
14597      /Import File Strings/,/^$/ {
14598	  /^0/ {
14599	      s/^0  *\([^ ]*\) *$/\1/
14600	      p
14601	  }
14602      }'
14603  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14604  # Check for a 64-bit object if we didn't find anything.
14605  if test -z "$lt_cv_aix_libpath__FC"; then
14606    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14607  fi
14608fi
14609rm -f core conftest.err conftest.$ac_objext \
14610    conftest$ac_exeext conftest.$ac_ext
14611  if test -z "$lt_cv_aix_libpath__FC"; then
14612    lt_cv_aix_libpath__FC=/usr/lib:/lib
14613  fi
14614
14615fi
14616
14617  aix_libpath=$lt_cv_aix_libpath__FC
14618fi
14619
14620        hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
14621        archive_expsym_cmds_FC='$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
14622      else
14623	if test ia64 = "$host_cpu"; then
14624	  hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
14625	  allow_undefined_flag_FC="-z nodefs"
14626	  archive_expsym_cmds_FC="\$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"
14627	else
14628	 # Determine the default libpath from the value encoded in an
14629	 # empty executable.
14630	 if test set = "${lt_cv_aix_libpath+set}"; then
14631  aix_libpath=$lt_cv_aix_libpath
14632else
14633  if ${lt_cv_aix_libpath__FC+:} false; then :
14634  $as_echo_n "(cached) " >&6
14635else
14636  cat > conftest.$ac_ext <<_ACEOF
14637      program main
14638
14639      end
14640_ACEOF
14641if ac_fn_fc_try_link "$LINENO"; then :
14642
14643  lt_aix_libpath_sed='
14644      /Import File Strings/,/^$/ {
14645	  /^0/ {
14646	      s/^0  *\([^ ]*\) *$/\1/
14647	      p
14648	  }
14649      }'
14650  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14651  # Check for a 64-bit object if we didn't find anything.
14652  if test -z "$lt_cv_aix_libpath__FC"; then
14653    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14654  fi
14655fi
14656rm -f core conftest.err conftest.$ac_objext \
14657    conftest$ac_exeext conftest.$ac_ext
14658  if test -z "$lt_cv_aix_libpath__FC"; then
14659    lt_cv_aix_libpath__FC=/usr/lib:/lib
14660  fi
14661
14662fi
14663
14664  aix_libpath=$lt_cv_aix_libpath__FC
14665fi
14666
14667	 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
14668	  # Warning - without using the other run time loading flags,
14669	  # -berok will link without error, but may produce a broken library.
14670	  no_undefined_flag_FC=' $wl-bernotok'
14671	  allow_undefined_flag_FC=' $wl-berok'
14672	  if test yes = "$with_gnu_ld"; then
14673	    # We only use this code for GNU lds that support --whole-archive.
14674	    whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
14675	  else
14676	    # Exported symbols can be pulled into shared objects from archives
14677	    whole_archive_flag_spec_FC='$convenience'
14678	  fi
14679	  archive_cmds_need_lc_FC=yes
14680	  archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14681	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14682	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14683	  if test svr4 != "$with_aix_soname"; then
14684	    # This is similar to how AIX traditionally builds its shared libraries.
14685	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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'
14686	  fi
14687	  if test aix != "$with_aix_soname"; then
14688	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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'
14689	  else
14690	    # used by -dlpreopen to get the symbols
14691	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14692	  fi
14693	  archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
14694	fi
14695      fi
14696      ;;
14697
14698    amigaos*)
14699      case $host_cpu in
14700      powerpc)
14701            # see comment about AmigaOS4 .so support
14702            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14703            archive_expsym_cmds_FC=''
14704        ;;
14705      m68k)
14706            archive_cmds_FC='$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)'
14707            hardcode_libdir_flag_spec_FC='-L$libdir'
14708            hardcode_minus_L_FC=yes
14709        ;;
14710      esac
14711      ;;
14712
14713    bsdi[45]*)
14714      export_dynamic_flag_spec_FC=-rdynamic
14715      ;;
14716
14717    cygwin* | mingw* | pw32* | cegcc*)
14718      # When not using gcc, we currently assume that we are using
14719      # Microsoft Visual C++.
14720      # hardcode_libdir_flag_spec is actually meaningless, as there is
14721      # no search path for DLLs.
14722      case $cc_basename in
14723      cl*)
14724	# Native MSVC
14725	hardcode_libdir_flag_spec_FC=' '
14726	allow_undefined_flag_FC=unsupported
14727	always_export_symbols_FC=yes
14728	file_list_spec_FC='@'
14729	# Tell ltmain to make .lib files, not .a files.
14730	libext=lib
14731	# Tell ltmain to make .dll files, not .so files.
14732	shrext_cmds=.dll
14733	# FIXME: Setting linknames here is a bad hack.
14734	archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14735	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14736            cp "$export_symbols" "$output_objdir/$soname.def";
14737            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14738          else
14739            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14740          fi~
14741          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14742          linknames='
14743	# The linker will not automatically build a static lib if we build a DLL.
14744	# _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
14745	enable_shared_with_static_runtimes_FC=yes
14746	exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14747	export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14748	# Don't use ranlib
14749	old_postinstall_cmds_FC='chmod 644 $oldlib'
14750	postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
14751          lt_tool_outputfile="@TOOL_OUTPUT@"~
14752          case $lt_outputfile in
14753            *.exe|*.EXE) ;;
14754            *)
14755              lt_outputfile=$lt_outputfile.exe
14756              lt_tool_outputfile=$lt_tool_outputfile.exe
14757              ;;
14758          esac~
14759          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14760            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14761            $RM "$lt_outputfile.manifest";
14762          fi'
14763	;;
14764      *)
14765	# Assume MSVC wrapper
14766	hardcode_libdir_flag_spec_FC=' '
14767	allow_undefined_flag_FC=unsupported
14768	# Tell ltmain to make .lib files, not .a files.
14769	libext=lib
14770	# Tell ltmain to make .dll files, not .so files.
14771	shrext_cmds=.dll
14772	# FIXME: Setting linknames here is a bad hack.
14773	archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14774	# The linker will automatically build a .lib file if we build a DLL.
14775	old_archive_from_new_cmds_FC='true'
14776	# FIXME: Should let the user specify the lib program.
14777	old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14778	enable_shared_with_static_runtimes_FC=yes
14779	;;
14780      esac
14781      ;;
14782
14783    darwin* | rhapsody*)
14784
14785
14786  archive_cmds_need_lc_FC=no
14787  hardcode_direct_FC=no
14788  hardcode_automatic_FC=yes
14789  hardcode_shlibpath_var_FC=unsupported
14790  if test yes = "$lt_cv_ld_force_load"; then
14791    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14792    compiler_needs_object_FC=yes
14793  else
14794    whole_archive_flag_spec_FC=''
14795  fi
14796  link_all_deplibs_FC=yes
14797  allow_undefined_flag_FC=$_lt_dar_allow_undefined
14798  case $cc_basename in
14799     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14800     *) _lt_dar_can_shared=$GCC ;;
14801  esac
14802  if test yes = "$_lt_dar_can_shared"; then
14803    output_verbose_link_cmd=func_echo_all
14804    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14805    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14806    archive_expsym_cmds_FC="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"
14807    module_expsym_cmds_FC="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"
14808
14809  else
14810  ld_shlibs_FC=no
14811  fi
14812
14813      ;;
14814
14815    dgux*)
14816      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14817      hardcode_libdir_flag_spec_FC='-L$libdir'
14818      hardcode_shlibpath_var_FC=no
14819      ;;
14820
14821    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14822    # support.  Future versions do this automatically, but an explicit c++rt0.o
14823    # does not break anything, and helps significantly (at the cost of a little
14824    # extra space).
14825    freebsd2.2*)
14826      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14827      hardcode_libdir_flag_spec_FC='-R$libdir'
14828      hardcode_direct_FC=yes
14829      hardcode_shlibpath_var_FC=no
14830      ;;
14831
14832    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14833    freebsd2.*)
14834      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14835      hardcode_direct_FC=yes
14836      hardcode_minus_L_FC=yes
14837      hardcode_shlibpath_var_FC=no
14838      ;;
14839
14840    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14841    freebsd* | dragonfly*)
14842      archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14843      hardcode_libdir_flag_spec_FC='-R$libdir'
14844      hardcode_direct_FC=yes
14845      hardcode_shlibpath_var_FC=no
14846      ;;
14847
14848    hpux9*)
14849      if test yes = "$GCC"; then
14850	archive_cmds_FC='$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'
14851      else
14852	archive_cmds_FC='$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'
14853      fi
14854      hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
14855      hardcode_libdir_separator_FC=:
14856      hardcode_direct_FC=yes
14857
14858      # hardcode_minus_L: Not really in the search PATH,
14859      # but as the default location of the library.
14860      hardcode_minus_L_FC=yes
14861      export_dynamic_flag_spec_FC='$wl-E'
14862      ;;
14863
14864    hpux10*)
14865      if test yes,no = "$GCC,$with_gnu_ld"; then
14866	archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14867      else
14868	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14869      fi
14870      if test no = "$with_gnu_ld"; then
14871	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
14872	hardcode_libdir_separator_FC=:
14873	hardcode_direct_FC=yes
14874	hardcode_direct_absolute_FC=yes
14875	export_dynamic_flag_spec_FC='$wl-E'
14876	# hardcode_minus_L: Not really in the search PATH,
14877	# but as the default location of the library.
14878	hardcode_minus_L_FC=yes
14879      fi
14880      ;;
14881
14882    hpux11*)
14883      if test yes,no = "$GCC,$with_gnu_ld"; then
14884	case $host_cpu in
14885	hppa*64*)
14886	  archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14887	  ;;
14888	ia64*)
14889	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14890	  ;;
14891	*)
14892	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14893	  ;;
14894	esac
14895      else
14896	case $host_cpu in
14897	hppa*64*)
14898	  archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14899	  ;;
14900	ia64*)
14901	  archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14902	  ;;
14903	*)
14904	archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14905	  ;;
14906	esac
14907      fi
14908      if test no = "$with_gnu_ld"; then
14909	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
14910	hardcode_libdir_separator_FC=:
14911
14912	case $host_cpu in
14913	hppa*64*|ia64*)
14914	  hardcode_direct_FC=no
14915	  hardcode_shlibpath_var_FC=no
14916	  ;;
14917	*)
14918	  hardcode_direct_FC=yes
14919	  hardcode_direct_absolute_FC=yes
14920	  export_dynamic_flag_spec_FC='$wl-E'
14921
14922	  # hardcode_minus_L: Not really in the search PATH,
14923	  # but as the default location of the library.
14924	  hardcode_minus_L_FC=yes
14925	  ;;
14926	esac
14927      fi
14928      ;;
14929
14930    irix5* | irix6* | nonstopux*)
14931      if test yes = "$GCC"; then
14932	archive_cmds_FC='$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'
14933	# Try to use the -exported_symbol ld option, if it does not
14934	# work, assume that -exports_file does not work either and
14935	# implicitly export all symbols.
14936	# This should be the same for all languages, so no per-tag cache variable.
14937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14938$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14939if ${lt_cv_irix_exported_symbol+:} false; then :
14940  $as_echo_n "(cached) " >&6
14941else
14942  save_LDFLAGS=$LDFLAGS
14943	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14944	   cat > conftest.$ac_ext <<_ACEOF
14945
14946      subroutine foo
14947      end
14948_ACEOF
14949if ac_fn_fc_try_link "$LINENO"; then :
14950  lt_cv_irix_exported_symbol=yes
14951else
14952  lt_cv_irix_exported_symbol=no
14953fi
14954rm -f core conftest.err conftest.$ac_objext \
14955    conftest$ac_exeext conftest.$ac_ext
14956           LDFLAGS=$save_LDFLAGS
14957fi
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14959$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14960	if test yes = "$lt_cv_irix_exported_symbol"; then
14961          archive_expsym_cmds_FC='$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'
14962	fi
14963	link_all_deplibs_FC=no
14964      else
14965	archive_cmds_FC='$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'
14966	archive_expsym_cmds_FC='$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'
14967      fi
14968      archive_cmds_need_lc_FC='no'
14969      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
14970      hardcode_libdir_separator_FC=:
14971      inherit_rpath_FC=yes
14972      link_all_deplibs_FC=yes
14973      ;;
14974
14975    linux*)
14976      case $cc_basename in
14977      tcc*)
14978	# Fabrice Bellard et al's Tiny C Compiler
14979	ld_shlibs_FC=yes
14980	archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14981	;;
14982      esac
14983      ;;
14984
14985    netbsd* | netbsdelf*-gnu)
14986      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14987	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14988      else
14989	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14990      fi
14991      hardcode_libdir_flag_spec_FC='-R$libdir'
14992      hardcode_direct_FC=yes
14993      hardcode_shlibpath_var_FC=no
14994      ;;
14995
14996    newsos6)
14997      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998      hardcode_direct_FC=yes
14999      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15000      hardcode_libdir_separator_FC=:
15001      hardcode_shlibpath_var_FC=no
15002      ;;
15003
15004    *nto* | *qnx*)
15005      ;;
15006
15007    openbsd* | bitrig*)
15008      if test -f /usr/libexec/ld.so; then
15009	hardcode_direct_FC=yes
15010	hardcode_shlibpath_var_FC=no
15011	hardcode_direct_absolute_FC=yes
15012	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15013	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15014	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15015	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
15016	  export_dynamic_flag_spec_FC='$wl-E'
15017	else
15018	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15019	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
15020	fi
15021      else
15022	ld_shlibs_FC=no
15023      fi
15024      ;;
15025
15026    os2*)
15027      hardcode_libdir_flag_spec_FC='-L$libdir'
15028      hardcode_minus_L_FC=yes
15029      allow_undefined_flag_FC=unsupported
15030      shrext_cmds=.dll
15031      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15032	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15033	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15034	$ECHO EXPORTS >> $output_objdir/$libname.def~
15035	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15036	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15037	emximp -o $lib $output_objdir/$libname.def'
15038      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15039	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15040	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15041	$ECHO EXPORTS >> $output_objdir/$libname.def~
15042	prefix_cmds="$SED"~
15043	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15044	  prefix_cmds="$prefix_cmds -e 1d";
15045	fi~
15046	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15047	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15048	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15049	emximp -o $lib $output_objdir/$libname.def'
15050      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15051      enable_shared_with_static_runtimes_FC=yes
15052      ;;
15053
15054    osf3*)
15055      if test yes = "$GCC"; then
15056	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
15057	archive_cmds_FC='$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'
15058      else
15059	allow_undefined_flag_FC=' -expect_unresolved \*'
15060	archive_cmds_FC='$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'
15061      fi
15062      archive_cmds_need_lc_FC='no'
15063      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15064      hardcode_libdir_separator_FC=:
15065      ;;
15066
15067    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15068      if test yes = "$GCC"; then
15069	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
15070	archive_cmds_FC='$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'
15071	hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15072      else
15073	allow_undefined_flag_FC=' -expect_unresolved \*'
15074	archive_cmds_FC='$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'
15075	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15076          $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'
15077
15078	# Both c and cxx compiler support -rpath directly
15079	hardcode_libdir_flag_spec_FC='-rpath $libdir'
15080      fi
15081      archive_cmds_need_lc_FC='no'
15082      hardcode_libdir_separator_FC=:
15083      ;;
15084
15085    solaris*)
15086      no_undefined_flag_FC=' -z defs'
15087      if test yes = "$GCC"; then
15088	wlarc='$wl'
15089	archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15090	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15091          $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'
15092      else
15093	case `$CC -V 2>&1` in
15094	*"Compilers 5.0"*)
15095	  wlarc=''
15096	  archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15098            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15099	  ;;
15100	*)
15101	  wlarc='$wl'
15102	  archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15103	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15104            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15105	  ;;
15106	esac
15107      fi
15108      hardcode_libdir_flag_spec_FC='-R$libdir'
15109      hardcode_shlibpath_var_FC=no
15110      case $host_os in
15111      solaris2.[0-5] | solaris2.[0-5].*) ;;
15112      *)
15113	# The compiler driver will combine and reorder linker options,
15114	# but understands '-z linker_flag'.  GCC discards it without '$wl',
15115	# but is careful enough not to reorder.
15116	# Supported since Solaris 2.6 (maybe 2.5.1?)
15117	if test yes = "$GCC"; then
15118	  whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15119	else
15120	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15121	fi
15122	;;
15123      esac
15124      link_all_deplibs_FC=yes
15125      ;;
15126
15127    sunos4*)
15128      if test sequent = "$host_vendor"; then
15129	# Use $CC to link under sequent, because it throws in some extra .o
15130	# files that make .init and .fini sections work.
15131	archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15132      else
15133	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15134      fi
15135      hardcode_libdir_flag_spec_FC='-L$libdir'
15136      hardcode_direct_FC=yes
15137      hardcode_minus_L_FC=yes
15138      hardcode_shlibpath_var_FC=no
15139      ;;
15140
15141    sysv4)
15142      case $host_vendor in
15143	sni)
15144	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145	  hardcode_direct_FC=yes # is this really true???
15146	;;
15147	siemens)
15148	  ## LD is ld it makes a PLAMLIB
15149	  ## CC just makes a GrossModule.
15150	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15151	  reload_cmds_FC='$CC -r -o $output$reload_objs'
15152	  hardcode_direct_FC=no
15153        ;;
15154	motorola)
15155	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15156	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15157	;;
15158      esac
15159      runpath_var='LD_RUN_PATH'
15160      hardcode_shlibpath_var_FC=no
15161      ;;
15162
15163    sysv4.3*)
15164      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165      hardcode_shlibpath_var_FC=no
15166      export_dynamic_flag_spec_FC='-Bexport'
15167      ;;
15168
15169    sysv4*MP*)
15170      if test -d /usr/nec; then
15171	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172	hardcode_shlibpath_var_FC=no
15173	runpath_var=LD_RUN_PATH
15174	hardcode_runpath_var=yes
15175	ld_shlibs_FC=yes
15176      fi
15177      ;;
15178
15179    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15180      no_undefined_flag_FC='$wl-z,text'
15181      archive_cmds_need_lc_FC=no
15182      hardcode_shlibpath_var_FC=no
15183      runpath_var='LD_RUN_PATH'
15184
15185      if test yes = "$GCC"; then
15186	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15187	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15188      else
15189	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15190	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15191      fi
15192      ;;
15193
15194    sysv5* | sco3.2v5* | sco5v6*)
15195      # Note: We CANNOT use -z defs as we might desire, because we do not
15196      # link with -lc, and that would cause any symbols used from libc to
15197      # always be unresolved, which means just about no library would
15198      # ever link correctly.  If we're not using GNU ld we use -z text
15199      # though, which does catch some bad symbols but isn't as heavy-handed
15200      # as -z defs.
15201      no_undefined_flag_FC='$wl-z,text'
15202      allow_undefined_flag_FC='$wl-z,nodefs'
15203      archive_cmds_need_lc_FC=no
15204      hardcode_shlibpath_var_FC=no
15205      hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
15206      hardcode_libdir_separator_FC=':'
15207      link_all_deplibs_FC=yes
15208      export_dynamic_flag_spec_FC='$wl-Bexport'
15209      runpath_var='LD_RUN_PATH'
15210
15211      if test yes = "$GCC"; then
15212	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15213	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15214      else
15215	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15216	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15217      fi
15218      ;;
15219
15220    uts4*)
15221      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15222      hardcode_libdir_flag_spec_FC='-L$libdir'
15223      hardcode_shlibpath_var_FC=no
15224      ;;
15225
15226    *)
15227      ld_shlibs_FC=no
15228      ;;
15229    esac
15230
15231    if test sni = "$host_vendor"; then
15232      case $host in
15233      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15234	export_dynamic_flag_spec_FC='$wl-Blargedynsym'
15235	;;
15236      esac
15237    fi
15238  fi
15239
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15241$as_echo "$ld_shlibs_FC" >&6; }
15242test no = "$ld_shlibs_FC" && can_build_shared=no
15243
15244with_gnu_ld_FC=$with_gnu_ld
15245
15246
15247
15248
15249
15250
15251#
15252# Do we need to explicitly link libc?
15253#
15254case "x$archive_cmds_need_lc_FC" in
15255x|xyes)
15256  # Assume -lc should be added
15257  archive_cmds_need_lc_FC=yes
15258
15259  if test yes,yes = "$GCC,$enable_shared"; then
15260    case $archive_cmds_FC in
15261    *'~'*)
15262      # FIXME: we may have to deal with multi-command sequences.
15263      ;;
15264    '$CC '*)
15265      # Test whether the compiler implicitly links with -lc since on some
15266      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15267      # to ld, don't add -lc before -lgcc.
15268      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15269$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15270if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15271  $as_echo_n "(cached) " >&6
15272else
15273  $RM conftest*
15274	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15275
15276	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15277  (eval $ac_compile) 2>&5
15278  ac_status=$?
15279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15280  test $ac_status = 0; } 2>conftest.err; then
15281	  soname=conftest
15282	  lib=conftest
15283	  libobjs=conftest.$ac_objext
15284	  deplibs=
15285	  wl=$lt_prog_compiler_wl_FC
15286	  pic_flag=$lt_prog_compiler_pic_FC
15287	  compiler_flags=-v
15288	  linker_flags=-v
15289	  verstring=
15290	  output_objdir=.
15291	  libname=conftest
15292	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15293	  allow_undefined_flag_FC=
15294	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15295  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15296  ac_status=$?
15297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15298  test $ac_status = 0; }
15299	  then
15300	    lt_cv_archive_cmds_need_lc_FC=no
15301	  else
15302	    lt_cv_archive_cmds_need_lc_FC=yes
15303	  fi
15304	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15305	else
15306	  cat conftest.err 1>&5
15307	fi
15308	$RM conftest*
15309
15310fi
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15312$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15313      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15314      ;;
15315    esac
15316  fi
15317  ;;
15318esac
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15382$as_echo_n "checking dynamic linker characteristics... " >&6; }
15383
15384library_names_spec=
15385libname_spec='lib$name'
15386soname_spec=
15387shrext_cmds=.so
15388postinstall_cmds=
15389postuninstall_cmds=
15390finish_cmds=
15391finish_eval=
15392shlibpath_var=
15393shlibpath_overrides_runpath=unknown
15394version_type=none
15395dynamic_linker="$host_os ld.so"
15396sys_lib_dlsearch_path_spec="/lib /usr/lib"
15397need_lib_prefix=unknown
15398hardcode_into_libs=no
15399
15400# when you set need_version to no, make sure it does not cause -set_version
15401# flags to be left without arguments
15402need_version=unknown
15403
15404
15405
15406case $host_os in
15407aix3*)
15408  version_type=linux # correct to gnu/linux during the next big refactor
15409  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15410  shlibpath_var=LIBPATH
15411
15412  # AIX 3 has no versioning support, so we append a major version to the name.
15413  soname_spec='$libname$release$shared_ext$major'
15414  ;;
15415
15416aix[4-9]*)
15417  version_type=linux # correct to gnu/linux during the next big refactor
15418  need_lib_prefix=no
15419  need_version=no
15420  hardcode_into_libs=yes
15421  if test ia64 = "$host_cpu"; then
15422    # AIX 5 supports IA64
15423    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15424    shlibpath_var=LD_LIBRARY_PATH
15425  else
15426    # With GCC up to 2.95.x, collect2 would create an import file
15427    # for dependence libraries.  The import file would start with
15428    # the line '#! .'.  This would cause the generated library to
15429    # depend on '.', always an invalid library.  This was fixed in
15430    # development snapshots of GCC prior to 3.0.
15431    case $host_os in
15432      aix4 | aix4.[01] | aix4.[01].*)
15433      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15434	   echo ' yes '
15435	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15436	:
15437      else
15438	can_build_shared=no
15439      fi
15440      ;;
15441    esac
15442    # Using Import Files as archive members, it is possible to support
15443    # filename-based versioning of shared library archives on AIX. While
15444    # this would work for both with and without runtime linking, it will
15445    # prevent static linking of such archives. So we do filename-based
15446    # shared library versioning with .so extension only, which is used
15447    # when both runtime linking and shared linking is enabled.
15448    # Unfortunately, runtime linking may impact performance, so we do
15449    # not want this to be the default eventually. Also, we use the
15450    # versioned .so libs for executables only if there is the -brtl
15451    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15452    # To allow for filename-based versioning support, we need to create
15453    # libNAME.so.V as an archive file, containing:
15454    # *) an Import File, referring to the versioned filename of the
15455    #    archive as well as the shared archive member, telling the
15456    #    bitwidth (32 or 64) of that shared object, and providing the
15457    #    list of exported symbols of that shared object, eventually
15458    #    decorated with the 'weak' keyword
15459    # *) the shared object with the F_LOADONLY flag set, to really avoid
15460    #    it being seen by the linker.
15461    # At run time we better use the real file rather than another symlink,
15462    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15463
15464    case $with_aix_soname,$aix_use_runtimelinking in
15465    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15466    # soname into executable. Probably we can add versioning support to
15467    # collect2, so additional links can be useful in future.
15468    aix,yes) # traditional libtool
15469      dynamic_linker='AIX unversionable lib.so'
15470      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15471      # instead of lib<name>.a to let people know that these are not
15472      # typical AIX shared libraries.
15473      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15474      ;;
15475    aix,no) # traditional AIX only
15476      dynamic_linker='AIX lib.a(lib.so.V)'
15477      # We preserve .a as extension for shared libraries through AIX4.2
15478      # and later when we are not doing run time linking.
15479      library_names_spec='$libname$release.a $libname.a'
15480      soname_spec='$libname$release$shared_ext$major'
15481      ;;
15482    svr4,*) # full svr4 only
15483      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15484      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15485      # We do not specify a path in Import Files, so LIBPATH fires.
15486      shlibpath_overrides_runpath=yes
15487      ;;
15488    *,yes) # both, prefer svr4
15489      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15490      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15491      # unpreferred sharedlib libNAME.a needs extra handling
15492      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15493      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15494      # We do not specify a path in Import Files, so LIBPATH fires.
15495      shlibpath_overrides_runpath=yes
15496      ;;
15497    *,no) # both, prefer aix
15498      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15499      library_names_spec='$libname$release.a $libname.a'
15500      soname_spec='$libname$release$shared_ext$major'
15501      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15502      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15503      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15504      ;;
15505    esac
15506    shlibpath_var=LIBPATH
15507  fi
15508  ;;
15509
15510amigaos*)
15511  case $host_cpu in
15512  powerpc)
15513    # Since July 2007 AmigaOS4 officially supports .so libraries.
15514    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15516    ;;
15517  m68k)
15518    library_names_spec='$libname.ixlibrary $libname.a'
15519    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15520    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15521    ;;
15522  esac
15523  ;;
15524
15525beos*)
15526  library_names_spec='$libname$shared_ext'
15527  dynamic_linker="$host_os ld.so"
15528  shlibpath_var=LIBRARY_PATH
15529  ;;
15530
15531bsdi[45]*)
15532  version_type=linux # correct to gnu/linux during the next big refactor
15533  need_version=no
15534  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15535  soname_spec='$libname$release$shared_ext$major'
15536  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15537  shlibpath_var=LD_LIBRARY_PATH
15538  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15539  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15540  # the default ld.so.conf also contains /usr/contrib/lib and
15541  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15542  # libtool to hard-code these into programs
15543  ;;
15544
15545cygwin* | mingw* | pw32* | cegcc*)
15546  version_type=windows
15547  shrext_cmds=.dll
15548  need_version=no
15549  need_lib_prefix=no
15550
15551  case $GCC,$cc_basename in
15552  yes,*)
15553    # gcc
15554    library_names_spec='$libname.dll.a'
15555    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15556    postinstall_cmds='base_file=`basename \$file`~
15557      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15558      dldir=$destdir/`dirname \$dlpath`~
15559      test -d \$dldir || mkdir -p \$dldir~
15560      $install_prog $dir/$dlname \$dldir/$dlname~
15561      chmod a+x \$dldir/$dlname~
15562      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15563        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15564      fi'
15565    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15566      dlpath=$dir/\$dldll~
15567       $RM \$dlpath'
15568    shlibpath_overrides_runpath=yes
15569
15570    case $host_os in
15571    cygwin*)
15572      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15573      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15574
15575      ;;
15576    mingw* | cegcc*)
15577      # MinGW DLLs use traditional 'lib' prefix
15578      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15579      ;;
15580    pw32*)
15581      # pw32 DLLs use 'pw' prefix rather than 'lib'
15582      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15583      ;;
15584    esac
15585    dynamic_linker='Win32 ld.exe'
15586    ;;
15587
15588  *,cl*)
15589    # Native MSVC
15590    libname_spec='$name'
15591    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15592    library_names_spec='$libname.dll.lib'
15593
15594    case $build_os in
15595    mingw*)
15596      sys_lib_search_path_spec=
15597      lt_save_ifs=$IFS
15598      IFS=';'
15599      for lt_path in $LIB
15600      do
15601        IFS=$lt_save_ifs
15602        # Let DOS variable expansion print the short 8.3 style file name.
15603        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15604        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15605      done
15606      IFS=$lt_save_ifs
15607      # Convert to MSYS style.
15608      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15609      ;;
15610    cygwin*)
15611      # Convert to unix form, then to dos form, then back to unix form
15612      # but this time dos style (no spaces!) so that the unix form looks
15613      # like /cygdrive/c/PROGRA~1:/cygdr...
15614      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15615      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15616      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15617      ;;
15618    *)
15619      sys_lib_search_path_spec=$LIB
15620      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15621        # It is most probably a Windows format PATH.
15622        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15623      else
15624        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15625      fi
15626      # FIXME: find the short name or the path components, as spaces are
15627      # common. (e.g. "Program Files" -> "PROGRA~1")
15628      ;;
15629    esac
15630
15631    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15632    postinstall_cmds='base_file=`basename \$file`~
15633      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15634      dldir=$destdir/`dirname \$dlpath`~
15635      test -d \$dldir || mkdir -p \$dldir~
15636      $install_prog $dir/$dlname \$dldir/$dlname'
15637    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15638      dlpath=$dir/\$dldll~
15639       $RM \$dlpath'
15640    shlibpath_overrides_runpath=yes
15641    dynamic_linker='Win32 link.exe'
15642    ;;
15643
15644  *)
15645    # Assume MSVC wrapper
15646    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15647    dynamic_linker='Win32 ld.exe'
15648    ;;
15649  esac
15650  # FIXME: first we should search . and the directory the executable is in
15651  shlibpath_var=PATH
15652  ;;
15653
15654darwin* | rhapsody*)
15655  dynamic_linker="$host_os dyld"
15656  version_type=darwin
15657  need_lib_prefix=no
15658  need_version=no
15659  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15660  soname_spec='$libname$release$major$shared_ext'
15661  shlibpath_overrides_runpath=yes
15662  shlibpath_var=DYLD_LIBRARY_PATH
15663  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15664
15665  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15666  ;;
15667
15668dgux*)
15669  version_type=linux # correct to gnu/linux during the next big refactor
15670  need_lib_prefix=no
15671  need_version=no
15672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15673  soname_spec='$libname$release$shared_ext$major'
15674  shlibpath_var=LD_LIBRARY_PATH
15675  ;;
15676
15677freebsd* | dragonfly*)
15678  # DragonFly does not have aout.  When/if they implement a new
15679  # versioning mechanism, adjust this.
15680  if test -x /usr/bin/objformat; then
15681    objformat=`/usr/bin/objformat`
15682  else
15683    case $host_os in
15684    freebsd[23].*) objformat=aout ;;
15685    *) objformat=elf ;;
15686    esac
15687  fi
15688  version_type=freebsd-$objformat
15689  case $version_type in
15690    freebsd-elf*)
15691      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15692      soname_spec='$libname$release$shared_ext$major'
15693      need_version=no
15694      need_lib_prefix=no
15695      ;;
15696    freebsd-*)
15697      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15698      need_version=yes
15699      ;;
15700  esac
15701  shlibpath_var=LD_LIBRARY_PATH
15702  case $host_os in
15703  freebsd2.*)
15704    shlibpath_overrides_runpath=yes
15705    ;;
15706  freebsd3.[01]* | freebsdelf3.[01]*)
15707    shlibpath_overrides_runpath=yes
15708    hardcode_into_libs=yes
15709    ;;
15710  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15711  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15712    shlibpath_overrides_runpath=no
15713    hardcode_into_libs=yes
15714    ;;
15715  *) # from 4.6 on, and DragonFly
15716    shlibpath_overrides_runpath=yes
15717    hardcode_into_libs=yes
15718    ;;
15719  esac
15720  ;;
15721
15722haiku*)
15723  version_type=linux # correct to gnu/linux during the next big refactor
15724  need_lib_prefix=no
15725  need_version=no
15726  dynamic_linker="$host_os runtime_loader"
15727  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15728  soname_spec='$libname$release$shared_ext$major'
15729  shlibpath_var=LIBRARY_PATH
15730  shlibpath_overrides_runpath=no
15731  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15732  hardcode_into_libs=yes
15733  ;;
15734
15735hpux9* | hpux10* | hpux11*)
15736  # Give a soname corresponding to the major version so that dld.sl refuses to
15737  # link against other versions.
15738  version_type=sunos
15739  need_lib_prefix=no
15740  need_version=no
15741  case $host_cpu in
15742  ia64*)
15743    shrext_cmds='.so'
15744    hardcode_into_libs=yes
15745    dynamic_linker="$host_os dld.so"
15746    shlibpath_var=LD_LIBRARY_PATH
15747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15748    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15749    soname_spec='$libname$release$shared_ext$major'
15750    if test 32 = "$HPUX_IA64_MODE"; then
15751      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15752      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15753    else
15754      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15755      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15756    fi
15757    ;;
15758  hppa*64*)
15759    shrext_cmds='.sl'
15760    hardcode_into_libs=yes
15761    dynamic_linker="$host_os dld.sl"
15762    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15763    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15764    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15765    soname_spec='$libname$release$shared_ext$major'
15766    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15767    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15768    ;;
15769  *)
15770    shrext_cmds='.sl'
15771    dynamic_linker="$host_os dld.sl"
15772    shlibpath_var=SHLIB_PATH
15773    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15774    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15775    soname_spec='$libname$release$shared_ext$major'
15776    ;;
15777  esac
15778  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15779  postinstall_cmds='chmod 555 $lib'
15780  # or fails outright, so override atomically:
15781  install_override_mode=555
15782  ;;
15783
15784interix[3-9]*)
15785  version_type=linux # correct to gnu/linux during the next big refactor
15786  need_lib_prefix=no
15787  need_version=no
15788  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15789  soname_spec='$libname$release$shared_ext$major'
15790  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15791  shlibpath_var=LD_LIBRARY_PATH
15792  shlibpath_overrides_runpath=no
15793  hardcode_into_libs=yes
15794  ;;
15795
15796irix5* | irix6* | nonstopux*)
15797  case $host_os in
15798    nonstopux*) version_type=nonstopux ;;
15799    *)
15800	if test yes = "$lt_cv_prog_gnu_ld"; then
15801		version_type=linux # correct to gnu/linux during the next big refactor
15802	else
15803		version_type=irix
15804	fi ;;
15805  esac
15806  need_lib_prefix=no
15807  need_version=no
15808  soname_spec='$libname$release$shared_ext$major'
15809  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15810  case $host_os in
15811  irix5* | nonstopux*)
15812    libsuff= shlibsuff=
15813    ;;
15814  *)
15815    case $LD in # libtool.m4 will add one of these switches to LD
15816    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15817      libsuff= shlibsuff= libmagic=32-bit;;
15818    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15819      libsuff=32 shlibsuff=N32 libmagic=N32;;
15820    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15821      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15822    *) libsuff= shlibsuff= libmagic=never-match;;
15823    esac
15824    ;;
15825  esac
15826  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15827  shlibpath_overrides_runpath=no
15828  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15829  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15830  hardcode_into_libs=yes
15831  ;;
15832
15833# No shared lib support for Linux oldld, aout, or coff.
15834linux*oldld* | linux*aout* | linux*coff*)
15835  dynamic_linker=no
15836  ;;
15837
15838linux*android*)
15839  version_type=none # Android doesn't support versioned libraries.
15840  need_lib_prefix=no
15841  need_version=no
15842  library_names_spec='$libname$release$shared_ext'
15843  soname_spec='$libname$release$shared_ext'
15844  finish_cmds=
15845  shlibpath_var=LD_LIBRARY_PATH
15846  shlibpath_overrides_runpath=yes
15847
15848  # This implies no fast_install, which is unacceptable.
15849  # Some rework will be needed to allow for fast_install
15850  # before this can be enabled.
15851  hardcode_into_libs=yes
15852
15853  dynamic_linker='Android linker'
15854  # Don't embed -rpath directories since the linker doesn't support them.
15855  hardcode_libdir_flag_spec_FC='-L$libdir'
15856  ;;
15857
15858# This must be glibc/ELF.
15859linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15860  version_type=linux # correct to gnu/linux during the next big refactor
15861  need_lib_prefix=no
15862  need_version=no
15863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15864  soname_spec='$libname$release$shared_ext$major'
15865  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15866  shlibpath_var=LD_LIBRARY_PATH
15867  shlibpath_overrides_runpath=no
15868
15869  # Some binutils ld are patched to set DT_RUNPATH
15870  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15871  $as_echo_n "(cached) " >&6
15872else
15873  lt_cv_shlibpath_overrides_runpath=no
15874    save_LDFLAGS=$LDFLAGS
15875    save_libdir=$libdir
15876    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15877	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15878    cat > conftest.$ac_ext <<_ACEOF
15879      program main
15880
15881      end
15882_ACEOF
15883if ac_fn_fc_try_link "$LINENO"; then :
15884  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15885  lt_cv_shlibpath_overrides_runpath=yes
15886fi
15887fi
15888rm -f core conftest.err conftest.$ac_objext \
15889    conftest$ac_exeext conftest.$ac_ext
15890    LDFLAGS=$save_LDFLAGS
15891    libdir=$save_libdir
15892
15893fi
15894
15895  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15896
15897  # This implies no fast_install, which is unacceptable.
15898  # Some rework will be needed to allow for fast_install
15899  # before this can be enabled.
15900  hardcode_into_libs=yes
15901
15902  # Ideally, we could use ldconfig to report *all* directores which are
15903  # searched for libraries, however this is still not possible.  Aside from not
15904  # being certain /sbin/ldconfig is available, command
15905  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15906  # even though it is searched at run-time.  Try to do the best guess by
15907  # appending ld.so.conf contents (and includes) to the search path.
15908  if test -f /etc/ld.so.conf; then
15909    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15910    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15911  fi
15912
15913  # We used to test for /lib/ld.so.1 and disable shared libraries on
15914  # powerpc, because MkLinux only supported shared libraries with the
15915  # GNU dynamic linker.  Since this was broken with cross compilers,
15916  # most powerpc-linux boxes support dynamic linking these days and
15917  # people can always --disable-shared, the test was removed, and we
15918  # assume the GNU/Linux dynamic linker is in use.
15919  dynamic_linker='GNU/Linux ld.so'
15920  ;;
15921
15922netbsdelf*-gnu)
15923  version_type=linux
15924  need_lib_prefix=no
15925  need_version=no
15926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15927  soname_spec='${libname}${release}${shared_ext}$major'
15928  shlibpath_var=LD_LIBRARY_PATH
15929  shlibpath_overrides_runpath=no
15930  hardcode_into_libs=yes
15931  dynamic_linker='NetBSD ld.elf_so'
15932  ;;
15933
15934netbsd*)
15935  version_type=sunos
15936  need_lib_prefix=no
15937  need_version=no
15938  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15939    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15940    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15941    dynamic_linker='NetBSD (a.out) ld.so'
15942  else
15943    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15944    soname_spec='$libname$release$shared_ext$major'
15945    dynamic_linker='NetBSD ld.elf_so'
15946  fi
15947  shlibpath_var=LD_LIBRARY_PATH
15948  shlibpath_overrides_runpath=yes
15949  hardcode_into_libs=yes
15950  ;;
15951
15952newsos6)
15953  version_type=linux # correct to gnu/linux during the next big refactor
15954  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15955  shlibpath_var=LD_LIBRARY_PATH
15956  shlibpath_overrides_runpath=yes
15957  ;;
15958
15959*nto* | *qnx*)
15960  version_type=qnx
15961  need_lib_prefix=no
15962  need_version=no
15963  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15964  soname_spec='$libname$release$shared_ext$major'
15965  shlibpath_var=LD_LIBRARY_PATH
15966  shlibpath_overrides_runpath=no
15967  hardcode_into_libs=yes
15968  dynamic_linker='ldqnx.so'
15969  ;;
15970
15971openbsd* | bitrig*)
15972  version_type=sunos
15973  sys_lib_dlsearch_path_spec=/usr/lib
15974  need_lib_prefix=no
15975  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15976    need_version=no
15977  else
15978    need_version=yes
15979  fi
15980  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15981  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  shlibpath_overrides_runpath=yes
15984  ;;
15985
15986os2*)
15987  libname_spec='$name'
15988  version_type=windows
15989  shrext_cmds=.dll
15990  need_version=no
15991  need_lib_prefix=no
15992  # OS/2 can only load a DLL with a base name of 8 characters or less.
15993  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15994    v=$($ECHO $release$versuffix | tr -d .-);
15995    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15996    $ECHO $n$v`$shared_ext'
15997  library_names_spec='${libname}_dll.$libext'
15998  dynamic_linker='OS/2 ld.exe'
15999  shlibpath_var=BEGINLIBPATH
16000  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16001  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16002  postinstall_cmds='base_file=`basename \$file`~
16003    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16004    dldir=$destdir/`dirname \$dlpath`~
16005    test -d \$dldir || mkdir -p \$dldir~
16006    $install_prog $dir/$dlname \$dldir/$dlname~
16007    chmod a+x \$dldir/$dlname~
16008    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16009      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16010    fi'
16011  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16012    dlpath=$dir/\$dldll~
16013    $RM \$dlpath'
16014  ;;
16015
16016osf3* | osf4* | osf5*)
16017  version_type=osf
16018  need_lib_prefix=no
16019  need_version=no
16020  soname_spec='$libname$release$shared_ext$major'
16021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16022  shlibpath_var=LD_LIBRARY_PATH
16023  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16024  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16025  ;;
16026
16027rdos*)
16028  dynamic_linker=no
16029  ;;
16030
16031solaris*)
16032  version_type=linux # correct to gnu/linux during the next big refactor
16033  need_lib_prefix=no
16034  need_version=no
16035  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16036  soname_spec='$libname$release$shared_ext$major'
16037  shlibpath_var=LD_LIBRARY_PATH
16038  shlibpath_overrides_runpath=yes
16039  hardcode_into_libs=yes
16040  # ldd complains unless libraries are executable
16041  postinstall_cmds='chmod +x $lib'
16042  ;;
16043
16044sunos4*)
16045  version_type=sunos
16046  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16047  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16048  shlibpath_var=LD_LIBRARY_PATH
16049  shlibpath_overrides_runpath=yes
16050  if test yes = "$with_gnu_ld"; then
16051    need_lib_prefix=no
16052  fi
16053  need_version=yes
16054  ;;
16055
16056sysv4 | sysv4.3*)
16057  version_type=linux # correct to gnu/linux during the next big refactor
16058  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16059  soname_spec='$libname$release$shared_ext$major'
16060  shlibpath_var=LD_LIBRARY_PATH
16061  case $host_vendor in
16062    sni)
16063      shlibpath_overrides_runpath=no
16064      need_lib_prefix=no
16065      runpath_var=LD_RUN_PATH
16066      ;;
16067    siemens)
16068      need_lib_prefix=no
16069      ;;
16070    motorola)
16071      need_lib_prefix=no
16072      need_version=no
16073      shlibpath_overrides_runpath=no
16074      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16075      ;;
16076  esac
16077  ;;
16078
16079sysv4*MP*)
16080  if test -d /usr/nec; then
16081    version_type=linux # correct to gnu/linux during the next big refactor
16082    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16083    soname_spec='$libname$shared_ext.$major'
16084    shlibpath_var=LD_LIBRARY_PATH
16085  fi
16086  ;;
16087
16088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16089  version_type=sco
16090  need_lib_prefix=no
16091  need_version=no
16092  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16093  soname_spec='$libname$release$shared_ext$major'
16094  shlibpath_var=LD_LIBRARY_PATH
16095  shlibpath_overrides_runpath=yes
16096  hardcode_into_libs=yes
16097  if test yes = "$with_gnu_ld"; then
16098    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16099  else
16100    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16101    case $host_os in
16102      sco3.2v5*)
16103        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16104	;;
16105    esac
16106  fi
16107  sys_lib_dlsearch_path_spec='/usr/lib'
16108  ;;
16109
16110tpf*)
16111  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16112  version_type=linux # correct to gnu/linux during the next big refactor
16113  need_lib_prefix=no
16114  need_version=no
16115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16116  shlibpath_var=LD_LIBRARY_PATH
16117  shlibpath_overrides_runpath=no
16118  hardcode_into_libs=yes
16119  ;;
16120
16121uts4*)
16122  version_type=linux # correct to gnu/linux during the next big refactor
16123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16124  soname_spec='$libname$release$shared_ext$major'
16125  shlibpath_var=LD_LIBRARY_PATH
16126  ;;
16127
16128*)
16129  dynamic_linker=no
16130  ;;
16131esac
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16133$as_echo "$dynamic_linker" >&6; }
16134test no = "$dynamic_linker" && can_build_shared=no
16135
16136variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16137if test yes = "$GCC"; then
16138  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16139fi
16140
16141if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16142  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16143fi
16144
16145if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16146  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16147fi
16148
16149# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16150configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16151
16152# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16153func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16154
16155# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16156configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16198$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16199hardcode_action_FC=
16200if test -n "$hardcode_libdir_flag_spec_FC" ||
16201   test -n "$runpath_var_FC" ||
16202   test yes = "$hardcode_automatic_FC"; then
16203
16204  # We can hardcode non-existent directories.
16205  if test no != "$hardcode_direct_FC" &&
16206     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16207     # have to relink, otherwise we might link with an installed library
16208     # when we should be linking with a yet-to-be-installed one
16209     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
16210     test no != "$hardcode_minus_L_FC"; then
16211    # Linking always hardcodes the temporary library directory.
16212    hardcode_action_FC=relink
16213  else
16214    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16215    hardcode_action_FC=immediate
16216  fi
16217else
16218  # We cannot hardcode anything, or else we can only hardcode existing
16219  # directories.
16220  hardcode_action_FC=unsupported
16221fi
16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16223$as_echo "$hardcode_action_FC" >&6; }
16224
16225if test relink = "$hardcode_action_FC" ||
16226   test yes = "$inherit_rpath_FC"; then
16227  # Fast installation is not supported
16228  enable_fast_install=no
16229elif test yes = "$shlibpath_overrides_runpath" ||
16230     test no = "$enable_shared"; then
16231  # Fast installation is not necessary
16232  enable_fast_install=needless
16233fi
16234
16235
16236
16237
16238
16239
16240
16241  fi # test -n "$compiler"
16242
16243  GCC=$lt_save_GCC
16244  CC=$lt_save_CC
16245  CFLAGS=$lt_save_CFLAGS
16246fi # test yes != "$_lt_disable_FC"
16247
16248ac_ext=c
16249ac_cpp='$CPP $CPPFLAGS'
16250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16252ac_compiler_gnu=$ac_cv_c_compiler_gnu
16253
16254
16255  ac_ext=c
16256ac_cpp='$CPP $CPPFLAGS'
16257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16259ac_compiler_gnu=$ac_cv_c_compiler_gnu
16260if test -n "$ac_tool_prefix"; then
16261  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16262set dummy ${ac_tool_prefix}gcc; ac_word=$2
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16264$as_echo_n "checking for $ac_word... " >&6; }
16265if ${ac_cv_prog_CC+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  if test -n "$CC"; then
16269  ac_cv_prog_CC="$CC" # Let the user override the test.
16270else
16271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272for as_dir in $PATH
16273do
16274  IFS=$as_save_IFS
16275  test -z "$as_dir" && as_dir=.
16276    for ac_exec_ext in '' $ac_executable_extensions; do
16277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16278    ac_cv_prog_CC="${ac_tool_prefix}gcc"
16279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16280    break 2
16281  fi
16282done
16283  done
16284IFS=$as_save_IFS
16285
16286fi
16287fi
16288CC=$ac_cv_prog_CC
16289if test -n "$CC"; then
16290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16291$as_echo "$CC" >&6; }
16292else
16293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294$as_echo "no" >&6; }
16295fi
16296
16297
16298fi
16299if test -z "$ac_cv_prog_CC"; then
16300  ac_ct_CC=$CC
16301  # Extract the first word of "gcc", so it can be a program name with args.
16302set dummy gcc; ac_word=$2
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16304$as_echo_n "checking for $ac_word... " >&6; }
16305if ${ac_cv_prog_ac_ct_CC+:} false; then :
16306  $as_echo_n "(cached) " >&6
16307else
16308  if test -n "$ac_ct_CC"; then
16309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16310else
16311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16312for as_dir in $PATH
16313do
16314  IFS=$as_save_IFS
16315  test -z "$as_dir" && as_dir=.
16316    for ac_exec_ext in '' $ac_executable_extensions; do
16317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16318    ac_cv_prog_ac_ct_CC="gcc"
16319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16320    break 2
16321  fi
16322done
16323  done
16324IFS=$as_save_IFS
16325
16326fi
16327fi
16328ac_ct_CC=$ac_cv_prog_ac_ct_CC
16329if test -n "$ac_ct_CC"; then
16330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16331$as_echo "$ac_ct_CC" >&6; }
16332else
16333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334$as_echo "no" >&6; }
16335fi
16336
16337  if test "x$ac_ct_CC" = x; then
16338    CC=""
16339  else
16340    case $cross_compiling:$ac_tool_warned in
16341yes:)
16342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16344ac_tool_warned=yes ;;
16345esac
16346    CC=$ac_ct_CC
16347  fi
16348else
16349  CC="$ac_cv_prog_CC"
16350fi
16351
16352if test -z "$CC"; then
16353          if test -n "$ac_tool_prefix"; then
16354    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16355set dummy ${ac_tool_prefix}cc; ac_word=$2
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16357$as_echo_n "checking for $ac_word... " >&6; }
16358if ${ac_cv_prog_CC+:} false; then :
16359  $as_echo_n "(cached) " >&6
16360else
16361  if test -n "$CC"; then
16362  ac_cv_prog_CC="$CC" # Let the user override the test.
16363else
16364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365for as_dir in $PATH
16366do
16367  IFS=$as_save_IFS
16368  test -z "$as_dir" && as_dir=.
16369    for ac_exec_ext in '' $ac_executable_extensions; do
16370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16371    ac_cv_prog_CC="${ac_tool_prefix}cc"
16372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16373    break 2
16374  fi
16375done
16376  done
16377IFS=$as_save_IFS
16378
16379fi
16380fi
16381CC=$ac_cv_prog_CC
16382if test -n "$CC"; then
16383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16384$as_echo "$CC" >&6; }
16385else
16386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387$as_echo "no" >&6; }
16388fi
16389
16390
16391  fi
16392fi
16393if test -z "$CC"; then
16394  # Extract the first word of "cc", so it can be a program name with args.
16395set dummy cc; ac_word=$2
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16397$as_echo_n "checking for $ac_word... " >&6; }
16398if ${ac_cv_prog_CC+:} false; then :
16399  $as_echo_n "(cached) " >&6
16400else
16401  if test -n "$CC"; then
16402  ac_cv_prog_CC="$CC" # Let the user override the test.
16403else
16404  ac_prog_rejected=no
16405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406for as_dir in $PATH
16407do
16408  IFS=$as_save_IFS
16409  test -z "$as_dir" && as_dir=.
16410    for ac_exec_ext in '' $ac_executable_extensions; do
16411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16413       ac_prog_rejected=yes
16414       continue
16415     fi
16416    ac_cv_prog_CC="cc"
16417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16418    break 2
16419  fi
16420done
16421  done
16422IFS=$as_save_IFS
16423
16424if test $ac_prog_rejected = yes; then
16425  # We found a bogon in the path, so make sure we never use it.
16426  set dummy $ac_cv_prog_CC
16427  shift
16428  if test $# != 0; then
16429    # We chose a different compiler from the bogus one.
16430    # However, it has the same basename, so the bogon will be chosen
16431    # first if we set CC to just the basename; use the full file name.
16432    shift
16433    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16434  fi
16435fi
16436fi
16437fi
16438CC=$ac_cv_prog_CC
16439if test -n "$CC"; then
16440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16441$as_echo "$CC" >&6; }
16442else
16443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
16445fi
16446
16447
16448fi
16449if test -z "$CC"; then
16450  if test -n "$ac_tool_prefix"; then
16451  for ac_prog in cl.exe
16452  do
16453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16456$as_echo_n "checking for $ac_word... " >&6; }
16457if ${ac_cv_prog_CC+:} false; then :
16458  $as_echo_n "(cached) " >&6
16459else
16460  if test -n "$CC"; then
16461  ac_cv_prog_CC="$CC" # Let the user override the test.
16462else
16463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464for as_dir in $PATH
16465do
16466  IFS=$as_save_IFS
16467  test -z "$as_dir" && as_dir=.
16468    for ac_exec_ext in '' $ac_executable_extensions; do
16469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16470    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16472    break 2
16473  fi
16474done
16475  done
16476IFS=$as_save_IFS
16477
16478fi
16479fi
16480CC=$ac_cv_prog_CC
16481if test -n "$CC"; then
16482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16483$as_echo "$CC" >&6; }
16484else
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486$as_echo "no" >&6; }
16487fi
16488
16489
16490    test -n "$CC" && break
16491  done
16492fi
16493if test -z "$CC"; then
16494  ac_ct_CC=$CC
16495  for ac_prog in cl.exe
16496do
16497  # Extract the first word of "$ac_prog", so it can be a program name with args.
16498set dummy $ac_prog; ac_word=$2
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16500$as_echo_n "checking for $ac_word... " >&6; }
16501if ${ac_cv_prog_ac_ct_CC+:} false; then :
16502  $as_echo_n "(cached) " >&6
16503else
16504  if test -n "$ac_ct_CC"; then
16505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16506else
16507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16508for as_dir in $PATH
16509do
16510  IFS=$as_save_IFS
16511  test -z "$as_dir" && as_dir=.
16512    for ac_exec_ext in '' $ac_executable_extensions; do
16513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16514    ac_cv_prog_ac_ct_CC="$ac_prog"
16515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16516    break 2
16517  fi
16518done
16519  done
16520IFS=$as_save_IFS
16521
16522fi
16523fi
16524ac_ct_CC=$ac_cv_prog_ac_ct_CC
16525if test -n "$ac_ct_CC"; then
16526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16527$as_echo "$ac_ct_CC" >&6; }
16528else
16529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530$as_echo "no" >&6; }
16531fi
16532
16533
16534  test -n "$ac_ct_CC" && break
16535done
16536
16537  if test "x$ac_ct_CC" = x; then
16538    CC=""
16539  else
16540    case $cross_compiling:$ac_tool_warned in
16541yes:)
16542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16544ac_tool_warned=yes ;;
16545esac
16546    CC=$ac_ct_CC
16547  fi
16548fi
16549
16550fi
16551
16552
16553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16555as_fn_error $? "no acceptable C compiler found in \$PATH
16556See \`config.log' for more details" "$LINENO" 5; }
16557
16558# Provide some information about the compiler.
16559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16560set X $ac_compile
16561ac_compiler=$2
16562for ac_option in --version -v -V -qversion; do
16563  { { ac_try="$ac_compiler $ac_option >&5"
16564case "(($ac_try" in
16565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566  *) ac_try_echo=$ac_try;;
16567esac
16568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16569$as_echo "$ac_try_echo"; } >&5
16570  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16571  ac_status=$?
16572  if test -s conftest.err; then
16573    sed '10a\
16574... rest of stderr output deleted ...
16575         10q' conftest.err >conftest.er1
16576    cat conftest.er1 >&5
16577  fi
16578  rm -f conftest.er1 conftest.err
16579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580  test $ac_status = 0; }
16581done
16582
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16585if ${ac_cv_c_compiler_gnu+:} false; then :
16586  $as_echo_n "(cached) " >&6
16587else
16588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h.  */
16590
16591int
16592main ()
16593{
16594#ifndef __GNUC__
16595       choke me
16596#endif
16597
16598  ;
16599  return 0;
16600}
16601_ACEOF
16602if ac_fn_c_try_compile "$LINENO"; then :
16603  ac_compiler_gnu=yes
16604else
16605  ac_compiler_gnu=no
16606fi
16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608ac_cv_c_compiler_gnu=$ac_compiler_gnu
16609
16610fi
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16612$as_echo "$ac_cv_c_compiler_gnu" >&6; }
16613if test $ac_compiler_gnu = yes; then
16614  GCC=yes
16615else
16616  GCC=
16617fi
16618ac_test_CFLAGS=${CFLAGS+set}
16619ac_save_CFLAGS=$CFLAGS
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16621$as_echo_n "checking whether $CC accepts -g... " >&6; }
16622if ${ac_cv_prog_cc_g+:} false; then :
16623  $as_echo_n "(cached) " >&6
16624else
16625  ac_save_c_werror_flag=$ac_c_werror_flag
16626   ac_c_werror_flag=yes
16627   ac_cv_prog_cc_g=no
16628   CFLAGS="-g"
16629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h.  */
16631
16632int
16633main ()
16634{
16635
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_compile "$LINENO"; then :
16641  ac_cv_prog_cc_g=yes
16642else
16643  CFLAGS=""
16644      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646
16647int
16648main ()
16649{
16650
16651  ;
16652  return 0;
16653}
16654_ACEOF
16655if ac_fn_c_try_compile "$LINENO"; then :
16656
16657else
16658  ac_c_werror_flag=$ac_save_c_werror_flag
16659	 CFLAGS="-g"
16660	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661/* end confdefs.h.  */
16662
16663int
16664main ()
16665{
16666
16667  ;
16668  return 0;
16669}
16670_ACEOF
16671if ac_fn_c_try_compile "$LINENO"; then :
16672  ac_cv_prog_cc_g=yes
16673fi
16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675fi
16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677fi
16678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679   ac_c_werror_flag=$ac_save_c_werror_flag
16680fi
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16682$as_echo "$ac_cv_prog_cc_g" >&6; }
16683if test "$ac_test_CFLAGS" = set; then
16684  CFLAGS=$ac_save_CFLAGS
16685elif test $ac_cv_prog_cc_g = yes; then
16686  if test "$GCC" = yes; then
16687    CFLAGS="-g -O2"
16688  else
16689    CFLAGS="-g"
16690  fi
16691else
16692  if test "$GCC" = yes; then
16693    CFLAGS="-O2"
16694  else
16695    CFLAGS=
16696  fi
16697fi
16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16700if ${ac_cv_prog_cc_c89+:} false; then :
16701  $as_echo_n "(cached) " >&6
16702else
16703  ac_cv_prog_cc_c89=no
16704ac_save_CC=$CC
16705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h.  */
16707#include <stdarg.h>
16708#include <stdio.h>
16709struct stat;
16710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16711struct buf { int x; };
16712FILE * (*rcsopen) (struct buf *, struct stat *, int);
16713static char *e (p, i)
16714     char **p;
16715     int i;
16716{
16717  return p[i];
16718}
16719static char *f (char * (*g) (char **, int), char **p, ...)
16720{
16721  char *s;
16722  va_list v;
16723  va_start (v,p);
16724  s = g (p, va_arg (v,int));
16725  va_end (v);
16726  return s;
16727}
16728
16729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16730   function prototypes and stuff, but not '\xHH' hex character constants.
16731   These don't provoke an error unfortunately, instead are silently treated
16732   as 'x'.  The following induces an error, until -std is added to get
16733   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16734   array size at least.  It's necessary to write '\x00'==0 to get something
16735   that's true only with -std.  */
16736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16737
16738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16739   inside strings and character constants.  */
16740#define FOO(x) 'x'
16741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16742
16743int test (int i, double x);
16744struct s1 {int (*f) (int a);};
16745struct s2 {int (*f) (double a);};
16746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16747int argc;
16748char **argv;
16749int
16750main ()
16751{
16752return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16758	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16759do
16760  CC="$ac_save_CC $ac_arg"
16761  if ac_fn_c_try_compile "$LINENO"; then :
16762  ac_cv_prog_cc_c89=$ac_arg
16763fi
16764rm -f core conftest.err conftest.$ac_objext
16765  test "x$ac_cv_prog_cc_c89" != "xno" && break
16766done
16767rm -f conftest.$ac_ext
16768CC=$ac_save_CC
16769
16770fi
16771# AC_CACHE_VAL
16772case "x$ac_cv_prog_cc_c89" in
16773  x)
16774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16775$as_echo "none needed" >&6; } ;;
16776  xno)
16777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16778$as_echo "unsupported" >&6; } ;;
16779  *)
16780    CC="$CC $ac_cv_prog_cc_c89"
16781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16783esac
16784if test "x$ac_cv_prog_cc_c89" != xno; then :
16785
16786fi
16787
16788ac_ext=c
16789ac_cpp='$CPP $CPPFLAGS'
16790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793
16794ac_ext=c
16795ac_cpp='$CPP $CPPFLAGS'
16796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16798ac_compiler_gnu=$ac_cv_c_compiler_gnu
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16800$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16801if ${am_cv_prog_cc_c_o+:} false; then :
16802  $as_echo_n "(cached) " >&6
16803else
16804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805/* end confdefs.h.  */
16806
16807int
16808main ()
16809{
16810
16811  ;
16812  return 0;
16813}
16814_ACEOF
16815  # Make sure it works both with $CC and with simple cc.
16816  # Following AC_PROG_CC_C_O, we do the test twice because some
16817  # compilers refuse to overwrite an existing .o file with -o,
16818  # though they will create one.
16819  am_cv_prog_cc_c_o=yes
16820  for am_i in 1 2; do
16821    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16822   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } \
16826         && test -f conftest2.$ac_objext; then
16827      : OK
16828    else
16829      am_cv_prog_cc_c_o=no
16830      break
16831    fi
16832  done
16833  rm -f core conftest*
16834  unset am_i
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16837$as_echo "$am_cv_prog_cc_c_o" >&6; }
16838if test "$am_cv_prog_cc_c_o" != yes; then
16839   # Losing compiler, so override with the script.
16840   # FIXME: It is wrong to rewrite CC.
16841   # But if we don't then we get into trouble of one sort or another.
16842   # A longer-term fix would be to have automake use am__CC in this case,
16843   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16844   CC="$am_aux_dir/compile $CC"
16845fi
16846ac_ext=c
16847ac_cpp='$CPP $CPPFLAGS'
16848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16850ac_compiler_gnu=$ac_cv_c_compiler_gnu
16851
16852
16853  ac_ext=cpp
16854ac_cpp='$CXXCPP $CPPFLAGS'
16855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16858if test -z "$CXX"; then
16859  if test -n "$CCC"; then
16860    CXX=$CCC
16861  else
16862    if test -n "$ac_tool_prefix"; then
16863  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16864  do
16865    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16866set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16868$as_echo_n "checking for $ac_word... " >&6; }
16869if ${ac_cv_prog_CXX+:} false; then :
16870  $as_echo_n "(cached) " >&6
16871else
16872  if test -n "$CXX"; then
16873  ac_cv_prog_CXX="$CXX" # Let the user override the test.
16874else
16875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876for as_dir in $PATH
16877do
16878  IFS=$as_save_IFS
16879  test -z "$as_dir" && as_dir=.
16880    for ac_exec_ext in '' $ac_executable_extensions; do
16881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16882    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16884    break 2
16885  fi
16886done
16887  done
16888IFS=$as_save_IFS
16889
16890fi
16891fi
16892CXX=$ac_cv_prog_CXX
16893if test -n "$CXX"; then
16894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16895$as_echo "$CXX" >&6; }
16896else
16897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898$as_echo "no" >&6; }
16899fi
16900
16901
16902    test -n "$CXX" && break
16903  done
16904fi
16905if test -z "$CXX"; then
16906  ac_ct_CXX=$CXX
16907  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16908do
16909  # Extract the first word of "$ac_prog", so it can be a program name with args.
16910set dummy $ac_prog; ac_word=$2
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16912$as_echo_n "checking for $ac_word... " >&6; }
16913if ${ac_cv_prog_ac_ct_CXX+:} false; then :
16914  $as_echo_n "(cached) " >&6
16915else
16916  if test -n "$ac_ct_CXX"; then
16917  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16918else
16919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920for as_dir in $PATH
16921do
16922  IFS=$as_save_IFS
16923  test -z "$as_dir" && as_dir=.
16924    for ac_exec_ext in '' $ac_executable_extensions; do
16925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16926    ac_cv_prog_ac_ct_CXX="$ac_prog"
16927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16928    break 2
16929  fi
16930done
16931  done
16932IFS=$as_save_IFS
16933
16934fi
16935fi
16936ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16937if test -n "$ac_ct_CXX"; then
16938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16939$as_echo "$ac_ct_CXX" >&6; }
16940else
16941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942$as_echo "no" >&6; }
16943fi
16944
16945
16946  test -n "$ac_ct_CXX" && break
16947done
16948
16949  if test "x$ac_ct_CXX" = x; then
16950    CXX="g++"
16951  else
16952    case $cross_compiling:$ac_tool_warned in
16953yes:)
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16956ac_tool_warned=yes ;;
16957esac
16958    CXX=$ac_ct_CXX
16959  fi
16960fi
16961
16962  fi
16963fi
16964# Provide some information about the compiler.
16965$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16966set X $ac_compile
16967ac_compiler=$2
16968for ac_option in --version -v -V -qversion; do
16969  { { ac_try="$ac_compiler $ac_option >&5"
16970case "(($ac_try" in
16971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972  *) ac_try_echo=$ac_try;;
16973esac
16974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16975$as_echo "$ac_try_echo"; } >&5
16976  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16977  ac_status=$?
16978  if test -s conftest.err; then
16979    sed '10a\
16980... rest of stderr output deleted ...
16981         10q' conftest.err >conftest.er1
16982    cat conftest.er1 >&5
16983  fi
16984  rm -f conftest.er1 conftest.err
16985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16986  test $ac_status = 0; }
16987done
16988
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16990$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16991if ${ac_cv_cxx_compiler_gnu+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996
16997int
16998main ()
16999{
17000#ifndef __GNUC__
17001       choke me
17002#endif
17003
17004  ;
17005  return 0;
17006}
17007_ACEOF
17008if ac_fn_cxx_try_compile "$LINENO"; then :
17009  ac_compiler_gnu=yes
17010else
17011  ac_compiler_gnu=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17015
17016fi
17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17018$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17019if test $ac_compiler_gnu = yes; then
17020  GXX=yes
17021else
17022  GXX=
17023fi
17024ac_test_CXXFLAGS=${CXXFLAGS+set}
17025ac_save_CXXFLAGS=$CXXFLAGS
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17027$as_echo_n "checking whether $CXX accepts -g... " >&6; }
17028if ${ac_cv_prog_cxx_g+:} false; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17032   ac_cxx_werror_flag=yes
17033   ac_cv_prog_cxx_g=no
17034   CXXFLAGS="-g"
17035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036/* end confdefs.h.  */
17037
17038int
17039main ()
17040{
17041
17042  ;
17043  return 0;
17044}
17045_ACEOF
17046if ac_fn_cxx_try_compile "$LINENO"; then :
17047  ac_cv_prog_cxx_g=yes
17048else
17049  CXXFLAGS=""
17050      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051/* end confdefs.h.  */
17052
17053int
17054main ()
17055{
17056
17057  ;
17058  return 0;
17059}
17060_ACEOF
17061if ac_fn_cxx_try_compile "$LINENO"; then :
17062
17063else
17064  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17065	 CXXFLAGS="-g"
17066	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h.  */
17068
17069int
17070main ()
17071{
17072
17073  ;
17074  return 0;
17075}
17076_ACEOF
17077if ac_fn_cxx_try_compile "$LINENO"; then :
17078  ac_cv_prog_cxx_g=yes
17079fi
17080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083fi
17084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17088$as_echo "$ac_cv_prog_cxx_g" >&6; }
17089if test "$ac_test_CXXFLAGS" = set; then
17090  CXXFLAGS=$ac_save_CXXFLAGS
17091elif test $ac_cv_prog_cxx_g = yes; then
17092  if test "$GXX" = yes; then
17093    CXXFLAGS="-g -O2"
17094  else
17095    CXXFLAGS="-g"
17096  fi
17097else
17098  if test "$GXX" = yes; then
17099    CXXFLAGS="-O2"
17100  else
17101    CXXFLAGS=
17102  fi
17103fi
17104ac_ext=c
17105ac_cpp='$CPP $CPPFLAGS'
17106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109
17110      if test -n "$CXX" && ( test no != "$CXX" &&
17111    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
17112    (test g++ != "$CXX"))); then
17113  ac_ext=cpp
17114ac_cpp='$CXXCPP $CPPFLAGS'
17115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17119$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17120if test -z "$CXXCPP"; then
17121  if ${ac_cv_prog_CXXCPP+:} false; then :
17122  $as_echo_n "(cached) " >&6
17123else
17124      # Double quotes because CXXCPP needs to be expanded
17125    for CXXCPP in "$CXX -E" "/lib/cpp"
17126    do
17127      ac_preproc_ok=false
17128for ac_cxx_preproc_warn_flag in '' yes
17129do
17130  # Use a header file that comes with gcc, so configuring glibc
17131  # with a fresh cross-compiler works.
17132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133  # <limits.h> exists even on freestanding compilers.
17134  # On the NeXT, cc -E runs the code through the compiler's parser,
17135  # not just through cpp. "Syntax error" is here to catch this case.
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138#ifdef __STDC__
17139# include <limits.h>
17140#else
17141# include <assert.h>
17142#endif
17143		     Syntax error
17144_ACEOF
17145if ac_fn_cxx_try_cpp "$LINENO"; then :
17146
17147else
17148  # Broken: fails on valid input.
17149continue
17150fi
17151rm -f conftest.err conftest.i conftest.$ac_ext
17152
17153  # OK, works on sane cases.  Now check whether nonexistent headers
17154  # can be detected and how.
17155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h.  */
17157#include <ac_nonexistent.h>
17158_ACEOF
17159if ac_fn_cxx_try_cpp "$LINENO"; then :
17160  # Broken: success on invalid input.
17161continue
17162else
17163  # Passes both tests.
17164ac_preproc_ok=:
17165break
17166fi
17167rm -f conftest.err conftest.i conftest.$ac_ext
17168
17169done
17170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17171rm -f conftest.i conftest.err conftest.$ac_ext
17172if $ac_preproc_ok; then :
17173  break
17174fi
17175
17176    done
17177    ac_cv_prog_CXXCPP=$CXXCPP
17178
17179fi
17180  CXXCPP=$ac_cv_prog_CXXCPP
17181else
17182  ac_cv_prog_CXXCPP=$CXXCPP
17183fi
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17185$as_echo "$CXXCPP" >&6; }
17186ac_preproc_ok=false
17187for ac_cxx_preproc_warn_flag in '' yes
17188do
17189  # Use a header file that comes with gcc, so configuring glibc
17190  # with a fresh cross-compiler works.
17191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192  # <limits.h> exists even on freestanding compilers.
17193  # On the NeXT, cc -E runs the code through the compiler's parser,
17194  # not just through cpp. "Syntax error" is here to catch this case.
17195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196/* end confdefs.h.  */
17197#ifdef __STDC__
17198# include <limits.h>
17199#else
17200# include <assert.h>
17201#endif
17202		     Syntax error
17203_ACEOF
17204if ac_fn_cxx_try_cpp "$LINENO"; then :
17205
17206else
17207  # Broken: fails on valid input.
17208continue
17209fi
17210rm -f conftest.err conftest.i conftest.$ac_ext
17211
17212  # OK, works on sane cases.  Now check whether nonexistent headers
17213  # can be detected and how.
17214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215/* end confdefs.h.  */
17216#include <ac_nonexistent.h>
17217_ACEOF
17218if ac_fn_cxx_try_cpp "$LINENO"; then :
17219  # Broken: success on invalid input.
17220continue
17221else
17222  # Passes both tests.
17223ac_preproc_ok=:
17224break
17225fi
17226rm -f conftest.err conftest.i conftest.$ac_ext
17227
17228done
17229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17230rm -f conftest.i conftest.err conftest.$ac_ext
17231if $ac_preproc_ok; then :
17232
17233else
17234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17236as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17237See \`config.log' for more details" "$LINENO" 5; }
17238fi
17239
17240ac_ext=c
17241ac_cpp='$CPP $CPPFLAGS'
17242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245
17246else
17247  _lt_caught_CXX_error=yes
17248fi
17249
17250ac_ext=cpp
17251ac_cpp='$CXXCPP $CPPFLAGS'
17252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17255
17256archive_cmds_need_lc_CXX=no
17257allow_undefined_flag_CXX=
17258always_export_symbols_CXX=no
17259archive_expsym_cmds_CXX=
17260compiler_needs_object_CXX=no
17261export_dynamic_flag_spec_CXX=
17262hardcode_direct_CXX=no
17263hardcode_direct_absolute_CXX=no
17264hardcode_libdir_flag_spec_CXX=
17265hardcode_libdir_separator_CXX=
17266hardcode_minus_L_CXX=no
17267hardcode_shlibpath_var_CXX=unsupported
17268hardcode_automatic_CXX=no
17269inherit_rpath_CXX=no
17270module_cmds_CXX=
17271module_expsym_cmds_CXX=
17272link_all_deplibs_CXX=unknown
17273old_archive_cmds_CXX=$old_archive_cmds
17274reload_flag_CXX=$reload_flag
17275reload_cmds_CXX=$reload_cmds
17276no_undefined_flag_CXX=
17277whole_archive_flag_spec_CXX=
17278enable_shared_with_static_runtimes_CXX=no
17279
17280# Source file extension for C++ test sources.
17281ac_ext=cpp
17282
17283# Object file extension for compiled C++ test sources.
17284objext=o
17285objext_CXX=$objext
17286
17287# No sense in running all these tests if we already determined that
17288# the CXX compiler isn't working.  Some variables (like enable_shared)
17289# are currently assumed to apply to all compilers on this platform,
17290# and will be corrupted by setting them based on a non-working compiler.
17291if test yes != "$_lt_caught_CXX_error"; then
17292  # Code to be used in simple compile tests
17293  lt_simple_compile_test_code="int some_variable = 0;"
17294
17295  # Code to be used in simple link tests
17296  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17297
17298  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17299
17300
17301
17302
17303
17304
17305# If no C compiler was specified, use CC.
17306LTCC=${LTCC-"$CC"}
17307
17308# If no C compiler flags were specified, use CFLAGS.
17309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17310
17311# Allow CC to be a program name with arguments.
17312compiler=$CC
17313
17314
17315  # save warnings/boilerplate of simple test code
17316  ac_outfile=conftest.$ac_objext
17317echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17319_lt_compiler_boilerplate=`cat conftest.err`
17320$RM conftest*
17321
17322  ac_outfile=conftest.$ac_objext
17323echo "$lt_simple_link_test_code" >conftest.$ac_ext
17324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17325_lt_linker_boilerplate=`cat conftest.err`
17326$RM -r conftest*
17327
17328
17329  # Allow CC to be a program name with arguments.
17330  lt_save_CC=$CC
17331  lt_save_CFLAGS=$CFLAGS
17332  lt_save_LD=$LD
17333  lt_save_GCC=$GCC
17334  GCC=$GXX
17335  lt_save_with_gnu_ld=$with_gnu_ld
17336  lt_save_path_LD=$lt_cv_path_LD
17337  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17338    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17339  else
17340    $as_unset lt_cv_prog_gnu_ld
17341  fi
17342  if test -n "${lt_cv_path_LDCXX+set}"; then
17343    lt_cv_path_LD=$lt_cv_path_LDCXX
17344  else
17345    $as_unset lt_cv_path_LD
17346  fi
17347  test -z "${LDCXX+set}" || LD=$LDCXX
17348  CC=${CXX-"c++"}
17349  CFLAGS=$CXXFLAGS
17350  compiler=$CC
17351  compiler_CXX=$CC
17352  func_cc_basename $compiler
17353cc_basename=$func_cc_basename_result
17354
17355
17356  if test -n "$compiler"; then
17357    # We don't want -fno-exception when compiling C++ code, so set the
17358    # no_builtin_flag separately
17359    if test yes = "$GXX"; then
17360      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17361    else
17362      lt_prog_compiler_no_builtin_flag_CXX=
17363    fi
17364
17365    if test yes = "$GXX"; then
17366      # Set up default GNU C++ configuration
17367
17368
17369
17370# Check whether --with-gnu-ld was given.
17371if test "${with_gnu_ld+set}" = set; then :
17372  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17373else
17374  with_gnu_ld=no
17375fi
17376
17377ac_prog=ld
17378if test yes = "$GCC"; then
17379  # Check if gcc -print-prog-name=ld gives a path.
17380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17381$as_echo_n "checking for ld used by $CC... " >&6; }
17382  case $host in
17383  *-*-mingw*)
17384    # gcc leaves a trailing carriage return, which upsets mingw
17385    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17386  *)
17387    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17388  esac
17389  case $ac_prog in
17390    # Accept absolute paths.
17391    [\\/]* | ?:[\\/]*)
17392      re_direlt='/[^/][^/]*/\.\./'
17393      # Canonicalize the pathname of ld
17394      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17395      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17396	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17397      done
17398      test -z "$LD" && LD=$ac_prog
17399      ;;
17400  "")
17401    # If it fails, then pretend we aren't using GCC.
17402    ac_prog=ld
17403    ;;
17404  *)
17405    # If it is relative, then search for the first ld in PATH.
17406    with_gnu_ld=unknown
17407    ;;
17408  esac
17409elif test yes = "$with_gnu_ld"; then
17410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17411$as_echo_n "checking for GNU ld... " >&6; }
17412else
17413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17414$as_echo_n "checking for non-GNU ld... " >&6; }
17415fi
17416if ${lt_cv_path_LD+:} false; then :
17417  $as_echo_n "(cached) " >&6
17418else
17419  if test -z "$LD"; then
17420  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17421  for ac_dir in $PATH; do
17422    IFS=$lt_save_ifs
17423    test -z "$ac_dir" && ac_dir=.
17424    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17425      lt_cv_path_LD=$ac_dir/$ac_prog
17426      # Check to see if the program is GNU ld.  I'd rather use --version,
17427      # but apparently some variants of GNU ld only accept -v.
17428      # Break only if it was the GNU/non-GNU ld that we prefer.
17429      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17430      *GNU* | *'with BFD'*)
17431	test no != "$with_gnu_ld" && break
17432	;;
17433      *)
17434	test yes != "$with_gnu_ld" && break
17435	;;
17436      esac
17437    fi
17438  done
17439  IFS=$lt_save_ifs
17440else
17441  lt_cv_path_LD=$LD # Let the user override the test with a path.
17442fi
17443fi
17444
17445LD=$lt_cv_path_LD
17446if test -n "$LD"; then
17447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17448$as_echo "$LD" >&6; }
17449else
17450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451$as_echo "no" >&6; }
17452fi
17453test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17456if ${lt_cv_prog_gnu_ld+:} false; then :
17457  $as_echo_n "(cached) " >&6
17458else
17459  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17460case `$LD -v 2>&1 </dev/null` in
17461*GNU* | *'with BFD'*)
17462  lt_cv_prog_gnu_ld=yes
17463  ;;
17464*)
17465  lt_cv_prog_gnu_ld=no
17466  ;;
17467esac
17468fi
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17470$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17471with_gnu_ld=$lt_cv_prog_gnu_ld
17472
17473
17474
17475
17476
17477
17478
17479      # Check if GNU C++ uses GNU ld as the underlying linker, since the
17480      # archiving commands below assume that GNU ld is being used.
17481      if test yes = "$with_gnu_ld"; then
17482        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17483        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17484
17485        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17486        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17487
17488        # If archive_cmds runs LD, not CC, wlarc should be empty
17489        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17490        #     investigate it a little bit more. (MM)
17491        wlarc='$wl'
17492
17493        # ancient GNU ld didn't support --whole-archive et. al.
17494        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17495	  $GREP 'no-whole-archive' > /dev/null; then
17496          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17497        else
17498          whole_archive_flag_spec_CXX=
17499        fi
17500      else
17501        with_gnu_ld=no
17502        wlarc=
17503
17504        # A generic and very simple default shared library creation
17505        # command for GNU C++ for the case where it uses the native
17506        # linker, instead of GNU ld.  If possible, this setting should
17507        # overridden to take advantage of the native linker features on
17508        # the platform it is being used on.
17509        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17510      fi
17511
17512      # Commands to make compiler produce verbose output that lists
17513      # what "hidden" libraries, object files and flags are used when
17514      # linking a shared library.
17515      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17516
17517    else
17518      GXX=no
17519      with_gnu_ld=no
17520      wlarc=
17521    fi
17522
17523    # PORTME: fill in a description of your system's C++ link characteristics
17524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17525$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17526    ld_shlibs_CXX=yes
17527    case $host_os in
17528      aix3*)
17529        # FIXME: insert proper C++ library support
17530        ld_shlibs_CXX=no
17531        ;;
17532      aix[4-9]*)
17533        if test ia64 = "$host_cpu"; then
17534          # On IA64, the linker does run time linking by default, so we don't
17535          # have to do anything special.
17536          aix_use_runtimelinking=no
17537          exp_sym_flag='-Bexport'
17538          no_entry_flag=
17539        else
17540          aix_use_runtimelinking=no
17541
17542          # Test if we are trying to use run time linking or normal
17543          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17544          # have runtime linking enabled, and use it for executables.
17545          # For shared libraries, we enable/disable runtime linking
17546          # depending on the kind of the shared library created -
17547          # when "with_aix_soname,aix_use_runtimelinking" is:
17548          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17549          # "aix,yes"  lib.so          shared, rtl:yes, for executables
17550          #            lib.a           static archive
17551          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
17552          #            lib.a(lib.so.V) shared, rtl:no,  for executables
17553          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17554          #            lib.a(lib.so.V) shared, rtl:no
17555          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17556          #            lib.a           static archive
17557          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17558	    for ld_flag in $LDFLAGS; do
17559	      case $ld_flag in
17560	      *-brtl*)
17561	        aix_use_runtimelinking=yes
17562	        break
17563	        ;;
17564	      esac
17565	    done
17566	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17567	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
17568	      # so we don't have lib.a shared libs to link our executables.
17569	      # We have to force runtime linking in this case.
17570	      aix_use_runtimelinking=yes
17571	      LDFLAGS="$LDFLAGS -Wl,-brtl"
17572	    fi
17573	    ;;
17574          esac
17575
17576          exp_sym_flag='-bexport'
17577          no_entry_flag='-bnoentry'
17578        fi
17579
17580        # When large executables or shared objects are built, AIX ld can
17581        # have problems creating the table of contents.  If linking a library
17582        # or program results in "error TOC overflow" add -mminimal-toc to
17583        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17584        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17585
17586        archive_cmds_CXX=''
17587        hardcode_direct_CXX=yes
17588        hardcode_direct_absolute_CXX=yes
17589        hardcode_libdir_separator_CXX=':'
17590        link_all_deplibs_CXX=yes
17591        file_list_spec_CXX='$wl-f,'
17592        case $with_aix_soname,$aix_use_runtimelinking in
17593        aix,*) ;;	# no import file
17594        svr4,* | *,yes) # use import file
17595          # The Import File defines what to hardcode.
17596          hardcode_direct_CXX=no
17597          hardcode_direct_absolute_CXX=no
17598          ;;
17599        esac
17600
17601        if test yes = "$GXX"; then
17602          case $host_os in aix4.[012]|aix4.[012].*)
17603          # We only want to do this on AIX 4.2 and lower, the check
17604          # below for broken collect2 doesn't work under 4.3+
17605	  collect2name=`$CC -print-prog-name=collect2`
17606	  if test -f "$collect2name" &&
17607	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17608	  then
17609	    # We have reworked collect2
17610	    :
17611	  else
17612	    # We have old collect2
17613	    hardcode_direct_CXX=unsupported
17614	    # It fails to find uninstalled libraries when the uninstalled
17615	    # path is not listed in the libpath.  Setting hardcode_minus_L
17616	    # to unsupported forces relinking
17617	    hardcode_minus_L_CXX=yes
17618	    hardcode_libdir_flag_spec_CXX='-L$libdir'
17619	    hardcode_libdir_separator_CXX=
17620	  fi
17621          esac
17622          shared_flag='-shared'
17623	  if test yes = "$aix_use_runtimelinking"; then
17624	    shared_flag=$shared_flag' $wl-G'
17625	  fi
17626	  # Need to ensure runtime linking is disabled for the traditional
17627	  # shared library, or the linker may eventually find shared libraries
17628	  # /with/ Import File - we do not want to mix them.
17629	  shared_flag_aix='-shared'
17630	  shared_flag_svr4='-shared $wl-G'
17631        else
17632          # not using gcc
17633          if test ia64 = "$host_cpu"; then
17634	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17635	  # chokes on -Wl,-G. The following line is correct:
17636	  shared_flag='-G'
17637          else
17638	    if test yes = "$aix_use_runtimelinking"; then
17639	      shared_flag='$wl-G'
17640	    else
17641	      shared_flag='$wl-bM:SRE'
17642	    fi
17643	    shared_flag_aix='$wl-bM:SRE'
17644	    shared_flag_svr4='$wl-G'
17645          fi
17646        fi
17647
17648        export_dynamic_flag_spec_CXX='$wl-bexpall'
17649        # It seems that -bexpall does not export symbols beginning with
17650        # underscore (_), so it is better to generate a list of symbols to
17651	# export.
17652        always_export_symbols_CXX=yes
17653	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17654          # Warning - without using the other runtime loading flags (-brtl),
17655          # -berok will link without error, but may produce a broken library.
17656          # The "-G" linker flag allows undefined symbols.
17657          no_undefined_flag_CXX='-bernotok'
17658          # Determine the default libpath from the value encoded in an empty
17659          # executable.
17660          if test set = "${lt_cv_aix_libpath+set}"; then
17661  aix_libpath=$lt_cv_aix_libpath
17662else
17663  if ${lt_cv_aix_libpath__CXX+:} false; then :
17664  $as_echo_n "(cached) " >&6
17665else
17666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667/* end confdefs.h.  */
17668
17669int
17670main ()
17671{
17672
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677if ac_fn_cxx_try_link "$LINENO"; then :
17678
17679  lt_aix_libpath_sed='
17680      /Import File Strings/,/^$/ {
17681	  /^0/ {
17682	      s/^0  *\([^ ]*\) *$/\1/
17683	      p
17684	  }
17685      }'
17686  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687  # Check for a 64-bit object if we didn't find anything.
17688  if test -z "$lt_cv_aix_libpath__CXX"; then
17689    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17690  fi
17691fi
17692rm -f core conftest.err conftest.$ac_objext \
17693    conftest$ac_exeext conftest.$ac_ext
17694  if test -z "$lt_cv_aix_libpath__CXX"; then
17695    lt_cv_aix_libpath__CXX=/usr/lib:/lib
17696  fi
17697
17698fi
17699
17700  aix_libpath=$lt_cv_aix_libpath__CXX
17701fi
17702
17703          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17704
17705          archive_expsym_cmds_CXX='$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
17706        else
17707          if test ia64 = "$host_cpu"; then
17708	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17709	    allow_undefined_flag_CXX="-z nodefs"
17710	    archive_expsym_cmds_CXX="\$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"
17711          else
17712	    # Determine the default libpath from the value encoded in an
17713	    # empty executable.
17714	    if test set = "${lt_cv_aix_libpath+set}"; then
17715  aix_libpath=$lt_cv_aix_libpath
17716else
17717  if ${lt_cv_aix_libpath__CXX+:} false; then :
17718  $as_echo_n "(cached) " >&6
17719else
17720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721/* end confdefs.h.  */
17722
17723int
17724main ()
17725{
17726
17727  ;
17728  return 0;
17729}
17730_ACEOF
17731if ac_fn_cxx_try_link "$LINENO"; then :
17732
17733  lt_aix_libpath_sed='
17734      /Import File Strings/,/^$/ {
17735	  /^0/ {
17736	      s/^0  *\([^ ]*\) *$/\1/
17737	      p
17738	  }
17739      }'
17740  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17741  # Check for a 64-bit object if we didn't find anything.
17742  if test -z "$lt_cv_aix_libpath__CXX"; then
17743    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17744  fi
17745fi
17746rm -f core conftest.err conftest.$ac_objext \
17747    conftest$ac_exeext conftest.$ac_ext
17748  if test -z "$lt_cv_aix_libpath__CXX"; then
17749    lt_cv_aix_libpath__CXX=/usr/lib:/lib
17750  fi
17751
17752fi
17753
17754  aix_libpath=$lt_cv_aix_libpath__CXX
17755fi
17756
17757	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17758	    # Warning - without using the other run time loading flags,
17759	    # -berok will link without error, but may produce a broken library.
17760	    no_undefined_flag_CXX=' $wl-bernotok'
17761	    allow_undefined_flag_CXX=' $wl-berok'
17762	    if test yes = "$with_gnu_ld"; then
17763	      # We only use this code for GNU lds that support --whole-archive.
17764	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17765	    else
17766	      # Exported symbols can be pulled into shared objects from archives
17767	      whole_archive_flag_spec_CXX='$convenience'
17768	    fi
17769	    archive_cmds_need_lc_CXX=yes
17770	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17771	    # -brtl affects multiple linker settings, -berok does not and is overridden later
17772	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17773	    if test svr4 != "$with_aix_soname"; then
17774	      # This is similar to how AIX traditionally builds its shared
17775	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17776	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17777	    fi
17778	    if test aix != "$with_aix_soname"; then
17779	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17780	    else
17781	      # used by -dlpreopen to get the symbols
17782	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17783	    fi
17784	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17785          fi
17786        fi
17787        ;;
17788
17789      beos*)
17790	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17791	  allow_undefined_flag_CXX=unsupported
17792	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17793	  # support --undefined.  This deserves some investigation.  FIXME
17794	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17795	else
17796	  ld_shlibs_CXX=no
17797	fi
17798	;;
17799
17800      chorus*)
17801        case $cc_basename in
17802          *)
17803	  # FIXME: insert proper C++ library support
17804	  ld_shlibs_CXX=no
17805	  ;;
17806        esac
17807        ;;
17808
17809      cygwin* | mingw* | pw32* | cegcc*)
17810	case $GXX,$cc_basename in
17811	,cl* | no,cl*)
17812	  # Native MSVC
17813	  # hardcode_libdir_flag_spec is actually meaningless, as there is
17814	  # no search path for DLLs.
17815	  hardcode_libdir_flag_spec_CXX=' '
17816	  allow_undefined_flag_CXX=unsupported
17817	  always_export_symbols_CXX=yes
17818	  file_list_spec_CXX='@'
17819	  # Tell ltmain to make .lib files, not .a files.
17820	  libext=lib
17821	  # Tell ltmain to make .dll files, not .so files.
17822	  shrext_cmds=.dll
17823	  # FIXME: Setting linknames here is a bad hack.
17824	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17825	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17826              cp "$export_symbols" "$output_objdir/$soname.def";
17827              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17828            else
17829              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17830            fi~
17831            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17832            linknames='
17833	  # The linker will not automatically build a static lib if we build a DLL.
17834	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17835	  enable_shared_with_static_runtimes_CXX=yes
17836	  # Don't use ranlib
17837	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
17838	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17839            lt_tool_outputfile="@TOOL_OUTPUT@"~
17840            case $lt_outputfile in
17841              *.exe|*.EXE) ;;
17842              *)
17843                lt_outputfile=$lt_outputfile.exe
17844                lt_tool_outputfile=$lt_tool_outputfile.exe
17845                ;;
17846            esac~
17847            func_to_tool_file "$lt_outputfile"~
17848            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17849              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17850              $RM "$lt_outputfile.manifest";
17851            fi'
17852	  ;;
17853	*)
17854	  # g++
17855	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17856	  # as there is no search path for DLLs.
17857	  hardcode_libdir_flag_spec_CXX='-L$libdir'
17858	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17859	  allow_undefined_flag_CXX=unsupported
17860	  always_export_symbols_CXX=no
17861	  enable_shared_with_static_runtimes_CXX=yes
17862
17863	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17864	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17865	    # If the export-symbols file already is a .def file, use it as
17866	    # is; otherwise, prepend EXPORTS...
17867	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17868              cp $export_symbols $output_objdir/$soname.def;
17869            else
17870              echo EXPORTS > $output_objdir/$soname.def;
17871              cat $export_symbols >> $output_objdir/$soname.def;
17872            fi~
17873            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17874	  else
17875	    ld_shlibs_CXX=no
17876	  fi
17877	  ;;
17878	esac
17879	;;
17880      darwin* | rhapsody*)
17881
17882
17883  archive_cmds_need_lc_CXX=no
17884  hardcode_direct_CXX=no
17885  hardcode_automatic_CXX=yes
17886  hardcode_shlibpath_var_CXX=unsupported
17887  if test yes = "$lt_cv_ld_force_load"; then
17888    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17889
17890  else
17891    whole_archive_flag_spec_CXX=''
17892  fi
17893  link_all_deplibs_CXX=yes
17894  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17895  case $cc_basename in
17896     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17897     *) _lt_dar_can_shared=$GCC ;;
17898  esac
17899  if test yes = "$_lt_dar_can_shared"; then
17900    output_verbose_link_cmd=func_echo_all
17901    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17902    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17903    archive_expsym_cmds_CXX="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"
17904    module_expsym_cmds_CXX="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"
17905       if test yes != "$lt_cv_apple_cc_single_mod"; then
17906      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17907      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17908    fi
17909
17910  else
17911  ld_shlibs_CXX=no
17912  fi
17913
17914	;;
17915
17916      os2*)
17917	hardcode_libdir_flag_spec_CXX='-L$libdir'
17918	hardcode_minus_L_CXX=yes
17919	allow_undefined_flag_CXX=unsupported
17920	shrext_cmds=.dll
17921	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17922	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17923	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17924	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17925	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17926	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17927	  emximp -o $lib $output_objdir/$libname.def'
17928	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17929	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17930	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17931	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17932	  prefix_cmds="$SED"~
17933	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
17934	    prefix_cmds="$prefix_cmds -e 1d";
17935	  fi~
17936	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17937	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17938	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17939	  emximp -o $lib $output_objdir/$libname.def'
17940	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17941	enable_shared_with_static_runtimes_CXX=yes
17942	;;
17943
17944      dgux*)
17945        case $cc_basename in
17946          ec++*)
17947	    # FIXME: insert proper C++ library support
17948	    ld_shlibs_CXX=no
17949	    ;;
17950          ghcx*)
17951	    # Green Hills C++ Compiler
17952	    # FIXME: insert proper C++ library support
17953	    ld_shlibs_CXX=no
17954	    ;;
17955          *)
17956	    # FIXME: insert proper C++ library support
17957	    ld_shlibs_CXX=no
17958	    ;;
17959        esac
17960        ;;
17961
17962      freebsd2.*)
17963        # C++ shared libraries reported to be fairly broken before
17964	# switch to ELF
17965        ld_shlibs_CXX=no
17966        ;;
17967
17968      freebsd-elf*)
17969        archive_cmds_need_lc_CXX=no
17970        ;;
17971
17972      freebsd* | dragonfly*)
17973        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17974        # conventions
17975        ld_shlibs_CXX=yes
17976        ;;
17977
17978      haiku*)
17979        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17980        link_all_deplibs_CXX=yes
17981        ;;
17982
17983      hpux9*)
17984        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17985        hardcode_libdir_separator_CXX=:
17986        export_dynamic_flag_spec_CXX='$wl-E'
17987        hardcode_direct_CXX=yes
17988        hardcode_minus_L_CXX=yes # Not in the search PATH,
17989				             # but as the default
17990				             # location of the library.
17991
17992        case $cc_basename in
17993          CC*)
17994            # FIXME: insert proper C++ library support
17995            ld_shlibs_CXX=no
17996            ;;
17997          aCC*)
17998            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17999            # Commands to make compiler produce verbose output that lists
18000            # what "hidden" libraries, object files and flags are used when
18001            # linking a shared library.
18002            #
18003            # There doesn't appear to be a way to prevent this compiler from
18004            # explicitly linking system object files so we need to strip them
18005            # from the output so that they don't get included in the library
18006            # dependencies.
18007            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18008            ;;
18009          *)
18010            if test yes = "$GXX"; then
18011              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18012            else
18013              # FIXME: insert proper C++ library support
18014              ld_shlibs_CXX=no
18015            fi
18016            ;;
18017        esac
18018        ;;
18019
18020      hpux10*|hpux11*)
18021        if test no = "$with_gnu_ld"; then
18022	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
18023	  hardcode_libdir_separator_CXX=:
18024
18025          case $host_cpu in
18026            hppa*64*|ia64*)
18027              ;;
18028            *)
18029	      export_dynamic_flag_spec_CXX='$wl-E'
18030              ;;
18031          esac
18032        fi
18033        case $host_cpu in
18034          hppa*64*|ia64*)
18035            hardcode_direct_CXX=no
18036            hardcode_shlibpath_var_CXX=no
18037            ;;
18038          *)
18039            hardcode_direct_CXX=yes
18040            hardcode_direct_absolute_CXX=yes
18041            hardcode_minus_L_CXX=yes # Not in the search PATH,
18042					         # but as the default
18043					         # location of the library.
18044            ;;
18045        esac
18046
18047        case $cc_basename in
18048          CC*)
18049	    # FIXME: insert proper C++ library support
18050	    ld_shlibs_CXX=no
18051	    ;;
18052          aCC*)
18053	    case $host_cpu in
18054	      hppa*64*)
18055	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18056	        ;;
18057	      ia64*)
18058	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18059	        ;;
18060	      *)
18061	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18062	        ;;
18063	    esac
18064	    # Commands to make compiler produce verbose output that lists
18065	    # what "hidden" libraries, object files and flags are used when
18066	    # linking a shared library.
18067	    #
18068	    # There doesn't appear to be a way to prevent this compiler from
18069	    # explicitly linking system object files so we need to strip them
18070	    # from the output so that they don't get included in the library
18071	    # dependencies.
18072	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18073	    ;;
18074          *)
18075	    if test yes = "$GXX"; then
18076	      if test no = "$with_gnu_ld"; then
18077	        case $host_cpu in
18078	          hppa*64*)
18079	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18080	            ;;
18081	          ia64*)
18082	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18083	            ;;
18084	          *)
18085	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18086	            ;;
18087	        esac
18088	      fi
18089	    else
18090	      # FIXME: insert proper C++ library support
18091	      ld_shlibs_CXX=no
18092	    fi
18093	    ;;
18094        esac
18095        ;;
18096
18097      interix[3-9]*)
18098	hardcode_direct_CXX=no
18099	hardcode_shlibpath_var_CXX=no
18100	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18101	export_dynamic_flag_spec_CXX='$wl-E'
18102	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18103	# Instead, shared libraries are loaded at an image base (0x10000000 by
18104	# default) and relocated if they conflict, which is a slow very memory
18105	# consuming and fragmenting process.  To avoid this, we pick a random,
18106	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18107	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18108	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18109	archive_expsym_cmds_CXX='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'
18110	;;
18111      irix5* | irix6*)
18112        case $cc_basename in
18113          CC*)
18114	    # SGI C++
18115	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18116
18117	    # Archives containing C++ object files must be created using
18118	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18119	    # necessary to make sure instantiated templates are included
18120	    # in the archive.
18121	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18122	    ;;
18123          *)
18124	    if test yes = "$GXX"; then
18125	      if test no = "$with_gnu_ld"; then
18126	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
18127	      else
18128	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
18129	      fi
18130	    fi
18131	    link_all_deplibs_CXX=yes
18132	    ;;
18133        esac
18134        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18135        hardcode_libdir_separator_CXX=:
18136        inherit_rpath_CXX=yes
18137        ;;
18138
18139      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18140        case $cc_basename in
18141          KCC*)
18142	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18143
18144	    # KCC will only create a shared library if the output file
18145	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18146	    # to its proper name (with version) after linking.
18147	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18148	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
18149	    # Commands to make compiler produce verbose output that lists
18150	    # what "hidden" libraries, object files and flags are used when
18151	    # linking a shared library.
18152	    #
18153	    # There doesn't appear to be a way to prevent this compiler from
18154	    # explicitly linking system object files so we need to strip them
18155	    # from the output so that they don't get included in the library
18156	    # dependencies.
18157	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18158
18159	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18160	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18161
18162	    # Archives containing C++ object files must be created using
18163	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18164	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18165	    ;;
18166	  icpc* | ecpc* )
18167	    # Intel C++
18168	    with_gnu_ld=yes
18169	    # version 8.0 and above of icpc choke on multiply defined symbols
18170	    # if we add $predep_objects and $postdep_objects, however 7.1 and
18171	    # earlier do not add the objects themselves.
18172	    case `$CC -V 2>&1` in
18173	      *"Version 7."*)
18174	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18175		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18176		;;
18177	      *)  # Version 8.0 or newer
18178	        tmp_idyn=
18179	        case $host_cpu in
18180		  ia64*) tmp_idyn=' -i_dynamic';;
18181		esac
18182	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18183		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18184		;;
18185	    esac
18186	    archive_cmds_need_lc_CXX=no
18187	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18188	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18189	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18190	    ;;
18191          pgCC* | pgcpp*)
18192            # Portland Group C++ compiler
18193	    case `$CC -V` in
18194	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18195	      prelink_cmds_CXX='tpldir=Template.dir~
18196               rm -rf $tpldir~
18197               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18198               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18199	      old_archive_cmds_CXX='tpldir=Template.dir~
18200                rm -rf $tpldir~
18201                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18202                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18203                $RANLIB $oldlib'
18204	      archive_cmds_CXX='tpldir=Template.dir~
18205                rm -rf $tpldir~
18206                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18207                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18208	      archive_expsym_cmds_CXX='tpldir=Template.dir~
18209                rm -rf $tpldir~
18210                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18211                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18212	      ;;
18213	    *) # Version 6 and above use weak symbols
18214	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18215	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18216	      ;;
18217	    esac
18218
18219	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18220	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18221	    whole_archive_flag_spec_CXX='$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'
18222            ;;
18223	  cxx*)
18224	    # Compaq C++
18225	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18226	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
18227
18228	    runpath_var=LD_RUN_PATH
18229	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18230	    hardcode_libdir_separator_CXX=:
18231
18232	    # Commands to make compiler produce verbose output that lists
18233	    # what "hidden" libraries, object files and flags are used when
18234	    # linking a shared library.
18235	    #
18236	    # There doesn't appear to be a way to prevent this compiler from
18237	    # explicitly linking system object files so we need to strip them
18238	    # from the output so that they don't get included in the library
18239	    # dependencies.
18240	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
18241	    ;;
18242	  xl* | mpixl* | bgxl*)
18243	    # IBM XL 8.0 on PPC, with GNU ld
18244	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18245	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18246	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18247	    if test yes = "$supports_anon_versioning"; then
18248	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18249                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18250                echo "local: *; };" >> $output_objdir/$libname.ver~
18251                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18252	    fi
18253	    ;;
18254	  *)
18255	    case `$CC -V 2>&1 | sed 5q` in
18256	    *Sun\ C*)
18257	      # Sun C++ 5.9
18258	      no_undefined_flag_CXX=' -zdefs'
18259	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18260	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
18261	      hardcode_libdir_flag_spec_CXX='-R$libdir'
18262	      whole_archive_flag_spec_CXX='$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'
18263	      compiler_needs_object_CXX=yes
18264
18265	      # Not sure whether something based on
18266	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18267	      # would be better.
18268	      output_verbose_link_cmd='func_echo_all'
18269
18270	      # Archives containing C++ object files must be created using
18271	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18272	      # necessary to make sure instantiated templates are included
18273	      # in the archive.
18274	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18275	      ;;
18276	    esac
18277	    ;;
18278	esac
18279	;;
18280
18281      lynxos*)
18282        # FIXME: insert proper C++ library support
18283	ld_shlibs_CXX=no
18284	;;
18285
18286      m88k*)
18287        # FIXME: insert proper C++ library support
18288        ld_shlibs_CXX=no
18289	;;
18290
18291      mvs*)
18292        case $cc_basename in
18293          cxx*)
18294	    # FIXME: insert proper C++ library support
18295	    ld_shlibs_CXX=no
18296	    ;;
18297	  *)
18298	    # FIXME: insert proper C++ library support
18299	    ld_shlibs_CXX=no
18300	    ;;
18301	esac
18302	;;
18303
18304      netbsd*)
18305        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18306	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18307	  wlarc=
18308	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18309	  hardcode_direct_CXX=yes
18310	  hardcode_shlibpath_var_CXX=no
18311	fi
18312	# Workaround some broken pre-1.5 toolchains
18313	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18314	;;
18315
18316      *nto* | *qnx*)
18317        ld_shlibs_CXX=yes
18318	;;
18319
18320      openbsd* | bitrig*)
18321	if test -f /usr/libexec/ld.so; then
18322	  hardcode_direct_CXX=yes
18323	  hardcode_shlibpath_var_CXX=no
18324	  hardcode_direct_absolute_CXX=yes
18325	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18326	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18327	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18328	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18329	    export_dynamic_flag_spec_CXX='$wl-E'
18330	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18331	  fi
18332	  output_verbose_link_cmd=func_echo_all
18333	else
18334	  ld_shlibs_CXX=no
18335	fi
18336	;;
18337
18338      osf3* | osf4* | osf5*)
18339        case $cc_basename in
18340          KCC*)
18341	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18342
18343	    # KCC will only create a shared library if the output file
18344	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18345	    # to its proper name (with version) after linking.
18346	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18347
18348	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18349	    hardcode_libdir_separator_CXX=:
18350
18351	    # Archives containing C++ object files must be created using
18352	    # the KAI C++ compiler.
18353	    case $host in
18354	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18355	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18356	    esac
18357	    ;;
18358          RCC*)
18359	    # Rational C++ 2.4.1
18360	    # FIXME: insert proper C++ library support
18361	    ld_shlibs_CXX=no
18362	    ;;
18363          cxx*)
18364	    case $host in
18365	      osf3*)
18366	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18367	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18368	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18369		;;
18370	      *)
18371	        allow_undefined_flag_CXX=' -expect_unresolved \*'
18372	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18373	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18374                  echo "-hidden">> $lib.exp~
18375                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
18376                  $RM $lib.exp'
18377	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18378		;;
18379	    esac
18380
18381	    hardcode_libdir_separator_CXX=:
18382
18383	    # Commands to make compiler produce verbose output that lists
18384	    # what "hidden" libraries, object files and flags are used when
18385	    # linking a shared library.
18386	    #
18387	    # There doesn't appear to be a way to prevent this compiler from
18388	    # explicitly linking system object files so we need to strip them
18389	    # from the output so that they don't get included in the library
18390	    # dependencies.
18391	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18392	    ;;
18393	  *)
18394	    if test yes,no = "$GXX,$with_gnu_ld"; then
18395	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18396	      case $host in
18397	        osf3*)
18398	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18399		  ;;
18400	        *)
18401	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18402		  ;;
18403	      esac
18404
18405	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18406	      hardcode_libdir_separator_CXX=:
18407
18408	      # Commands to make compiler produce verbose output that lists
18409	      # what "hidden" libraries, object files and flags are used when
18410	      # linking a shared library.
18411	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18412
18413	    else
18414	      # FIXME: insert proper C++ library support
18415	      ld_shlibs_CXX=no
18416	    fi
18417	    ;;
18418        esac
18419        ;;
18420
18421      psos*)
18422        # FIXME: insert proper C++ library support
18423        ld_shlibs_CXX=no
18424        ;;
18425
18426      sunos4*)
18427        case $cc_basename in
18428          CC*)
18429	    # Sun C++ 4.x
18430	    # FIXME: insert proper C++ library support
18431	    ld_shlibs_CXX=no
18432	    ;;
18433          lcc*)
18434	    # Lucid
18435	    # FIXME: insert proper C++ library support
18436	    ld_shlibs_CXX=no
18437	    ;;
18438          *)
18439	    # FIXME: insert proper C++ library support
18440	    ld_shlibs_CXX=no
18441	    ;;
18442        esac
18443        ;;
18444
18445      solaris*)
18446        case $cc_basename in
18447          CC* | sunCC*)
18448	    # Sun C++ 4.2, 5.x and Centerline C++
18449            archive_cmds_need_lc_CXX=yes
18450	    no_undefined_flag_CXX=' -zdefs'
18451	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18452	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18453              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18454
18455	    hardcode_libdir_flag_spec_CXX='-R$libdir'
18456	    hardcode_shlibpath_var_CXX=no
18457	    case $host_os in
18458	      solaris2.[0-5] | solaris2.[0-5].*) ;;
18459	      *)
18460		# The compiler driver will combine and reorder linker options,
18461		# but understands '-z linker_flag'.
18462	        # Supported since Solaris 2.6 (maybe 2.5.1?)
18463		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18464	        ;;
18465	    esac
18466	    link_all_deplibs_CXX=yes
18467
18468	    output_verbose_link_cmd='func_echo_all'
18469
18470	    # Archives containing C++ object files must be created using
18471	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18472	    # necessary to make sure instantiated templates are included
18473	    # in the archive.
18474	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18475	    ;;
18476          gcx*)
18477	    # Green Hills C++ Compiler
18478	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18479
18480	    # The C++ compiler must be used to create the archive.
18481	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18482	    ;;
18483          *)
18484	    # GNU C++ compiler with Solaris linker
18485	    if test yes,no = "$GXX,$with_gnu_ld"; then
18486	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
18487	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18488	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18489	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18490                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18491
18492	        # Commands to make compiler produce verbose output that lists
18493	        # what "hidden" libraries, object files and flags are used when
18494	        # linking a shared library.
18495	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18496	      else
18497	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
18498	        # platform.
18499	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18500	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18501                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18502
18503	        # Commands to make compiler produce verbose output that lists
18504	        # what "hidden" libraries, object files and flags are used when
18505	        # linking a shared library.
18506	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18507	      fi
18508
18509	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18510	      case $host_os in
18511		solaris2.[0-5] | solaris2.[0-5].*) ;;
18512		*)
18513		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18514		  ;;
18515	      esac
18516	    fi
18517	    ;;
18518        esac
18519        ;;
18520
18521    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18522      no_undefined_flag_CXX='$wl-z,text'
18523      archive_cmds_need_lc_CXX=no
18524      hardcode_shlibpath_var_CXX=no
18525      runpath_var='LD_RUN_PATH'
18526
18527      case $cc_basename in
18528        CC*)
18529	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18530	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18531	  ;;
18532	*)
18533	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18534	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18535	  ;;
18536      esac
18537      ;;
18538
18539      sysv5* | sco3.2v5* | sco5v6*)
18540	# Note: We CANNOT use -z defs as we might desire, because we do not
18541	# link with -lc, and that would cause any symbols used from libc to
18542	# always be unresolved, which means just about no library would
18543	# ever link correctly.  If we're not using GNU ld we use -z text
18544	# though, which does catch some bad symbols but isn't as heavy-handed
18545	# as -z defs.
18546	no_undefined_flag_CXX='$wl-z,text'
18547	allow_undefined_flag_CXX='$wl-z,nodefs'
18548	archive_cmds_need_lc_CXX=no
18549	hardcode_shlibpath_var_CXX=no
18550	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18551	hardcode_libdir_separator_CXX=':'
18552	link_all_deplibs_CXX=yes
18553	export_dynamic_flag_spec_CXX='$wl-Bexport'
18554	runpath_var='LD_RUN_PATH'
18555
18556	case $cc_basename in
18557          CC*)
18558	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18559	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18560	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18561              '"$old_archive_cmds_CXX"
18562	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18563              '"$reload_cmds_CXX"
18564	    ;;
18565	  *)
18566	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18567	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18568	    ;;
18569	esac
18570      ;;
18571
18572      tandem*)
18573        case $cc_basename in
18574          NCC*)
18575	    # NonStop-UX NCC 3.20
18576	    # FIXME: insert proper C++ library support
18577	    ld_shlibs_CXX=no
18578	    ;;
18579          *)
18580	    # FIXME: insert proper C++ library support
18581	    ld_shlibs_CXX=no
18582	    ;;
18583        esac
18584        ;;
18585
18586      vxworks*)
18587        # FIXME: insert proper C++ library support
18588        ld_shlibs_CXX=no
18589        ;;
18590
18591      *)
18592        # FIXME: insert proper C++ library support
18593        ld_shlibs_CXX=no
18594        ;;
18595    esac
18596
18597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18598$as_echo "$ld_shlibs_CXX" >&6; }
18599    test no = "$ld_shlibs_CXX" && can_build_shared=no
18600
18601    GCC_CXX=$GXX
18602    LD_CXX=$LD
18603
18604    ## CAVEAT EMPTOR:
18605    ## There is no encapsulation within the following macros, do not change
18606    ## the running order or otherwise move them around unless you know exactly
18607    ## what you are doing...
18608    # Dependencies to place before and after the object being linked:
18609predep_objects_CXX=
18610postdep_objects_CXX=
18611predeps_CXX=
18612postdeps_CXX=
18613compiler_lib_search_path_CXX=
18614
18615cat > conftest.$ac_ext <<_LT_EOF
18616class Foo
18617{
18618public:
18619  Foo (void) { a = 0; }
18620private:
18621  int a;
18622};
18623_LT_EOF
18624
18625
18626_lt_libdeps_save_CFLAGS=$CFLAGS
18627case "$CC $CFLAGS " in #(
18628*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18629*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18630*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18631esac
18632
18633if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18634  (eval $ac_compile) 2>&5
18635  ac_status=$?
18636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637  test $ac_status = 0; }; then
18638  # Parse the compiler output and extract the necessary
18639  # objects, libraries and library flags.
18640
18641  # Sentinel used to keep track of whether or not we are before
18642  # the conftest object file.
18643  pre_test_object_deps_done=no
18644
18645  for p in `eval "$output_verbose_link_cmd"`; do
18646    case $prev$p in
18647
18648    -L* | -R* | -l*)
18649       # Some compilers place space between "-{L,R}" and the path.
18650       # Remove the space.
18651       if test x-L = "$p" ||
18652          test x-R = "$p"; then
18653	 prev=$p
18654	 continue
18655       fi
18656
18657       # Expand the sysroot to ease extracting the directories later.
18658       if test -z "$prev"; then
18659         case $p in
18660         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18661         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18662         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18663         esac
18664       fi
18665       case $p in
18666       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18667       esac
18668       if test no = "$pre_test_object_deps_done"; then
18669	 case $prev in
18670	 -L | -R)
18671	   # Internal compiler library paths should come after those
18672	   # provided the user.  The postdeps already come after the
18673	   # user supplied libs so there is no need to process them.
18674	   if test -z "$compiler_lib_search_path_CXX"; then
18675	     compiler_lib_search_path_CXX=$prev$p
18676	   else
18677	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18678	   fi
18679	   ;;
18680	 # The "-l" case would never come before the object being
18681	 # linked, so don't bother handling this case.
18682	 esac
18683       else
18684	 if test -z "$postdeps_CXX"; then
18685	   postdeps_CXX=$prev$p
18686	 else
18687	   postdeps_CXX="${postdeps_CXX} $prev$p"
18688	 fi
18689       fi
18690       prev=
18691       ;;
18692
18693    *.lto.$objext) ;; # Ignore GCC LTO objects
18694    *.$objext)
18695       # This assumes that the test object file only shows up
18696       # once in the compiler output.
18697       if test "$p" = "conftest.$objext"; then
18698	 pre_test_object_deps_done=yes
18699	 continue
18700       fi
18701
18702       if test no = "$pre_test_object_deps_done"; then
18703	 if test -z "$predep_objects_CXX"; then
18704	   predep_objects_CXX=$p
18705	 else
18706	   predep_objects_CXX="$predep_objects_CXX $p"
18707	 fi
18708       else
18709	 if test -z "$postdep_objects_CXX"; then
18710	   postdep_objects_CXX=$p
18711	 else
18712	   postdep_objects_CXX="$postdep_objects_CXX $p"
18713	 fi
18714       fi
18715       ;;
18716
18717    *) ;; # Ignore the rest.
18718
18719    esac
18720  done
18721
18722  # Clean up.
18723  rm -f a.out a.exe
18724else
18725  echo "libtool.m4: error: problem compiling CXX test program"
18726fi
18727
18728$RM -f confest.$objext
18729CFLAGS=$_lt_libdeps_save_CFLAGS
18730
18731# PORTME: override above test on systems where it is broken
18732case $host_os in
18733interix[3-9]*)
18734  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18735  # hack all around it, let's just trust "g++" to DTRT.
18736  predep_objects_CXX=
18737  postdep_objects_CXX=
18738  postdeps_CXX=
18739  ;;
18740esac
18741
18742
18743case " $postdeps_CXX " in
18744*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18745esac
18746 compiler_lib_search_dirs_CXX=
18747if test -n "${compiler_lib_search_path_CXX}"; then
18748 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18749fi
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763    lt_prog_compiler_wl_CXX=
18764lt_prog_compiler_pic_CXX=
18765lt_prog_compiler_static_CXX=
18766
18767
18768  # C++ specific cases for pic, static, wl, etc.
18769  if test yes = "$GXX"; then
18770    lt_prog_compiler_wl_CXX='-Wl,'
18771    lt_prog_compiler_static_CXX='-static'
18772
18773    case $host_os in
18774    aix*)
18775      # All AIX code is PIC.
18776      if test ia64 = "$host_cpu"; then
18777	# AIX 5 now supports IA64 processor
18778	lt_prog_compiler_static_CXX='-Bstatic'
18779      fi
18780      lt_prog_compiler_pic_CXX='-fPIC'
18781      ;;
18782
18783    amigaos*)
18784      case $host_cpu in
18785      powerpc)
18786            # see comment about AmigaOS4 .so support
18787            lt_prog_compiler_pic_CXX='-fPIC'
18788        ;;
18789      m68k)
18790            # FIXME: we need at least 68020 code to build shared libraries, but
18791            # adding the '-m68020' flag to GCC prevents building anything better,
18792            # like '-m68040'.
18793            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18794        ;;
18795      esac
18796      ;;
18797
18798    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18799      # PIC is the default for these OSes.
18800      ;;
18801    mingw* | cygwin* | os2* | pw32* | cegcc*)
18802      # This hack is so that the source file can tell whether it is being
18803      # built for inclusion in a dll (and should export symbols for example).
18804      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18805      # (--disable-auto-import) libraries
18806      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18807      case $host_os in
18808      os2*)
18809	lt_prog_compiler_static_CXX='$wl-static'
18810	;;
18811      esac
18812      ;;
18813    darwin* | rhapsody*)
18814      # PIC is the default on this platform
18815      # Common symbols not allowed in MH_DYLIB files
18816      lt_prog_compiler_pic_CXX='-fno-common'
18817      ;;
18818    *djgpp*)
18819      # DJGPP does not support shared libraries at all
18820      lt_prog_compiler_pic_CXX=
18821      ;;
18822    haiku*)
18823      # PIC is the default for Haiku.
18824      # The "-static" flag exists, but is broken.
18825      lt_prog_compiler_static_CXX=
18826      ;;
18827    interix[3-9]*)
18828      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18829      # Instead, we relocate shared libraries at runtime.
18830      ;;
18831    sysv4*MP*)
18832      if test -d /usr/nec; then
18833	lt_prog_compiler_pic_CXX=-Kconform_pic
18834      fi
18835      ;;
18836    hpux*)
18837      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18838      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18839      # sets the default TLS model and affects inlining.
18840      case $host_cpu in
18841      hppa*64*)
18842	;;
18843      *)
18844	lt_prog_compiler_pic_CXX='-fPIC'
18845	;;
18846      esac
18847      ;;
18848    *qnx* | *nto*)
18849      # QNX uses GNU C++, but need to define -shared option too, otherwise
18850      # it will coredump.
18851      lt_prog_compiler_pic_CXX='-fPIC -shared'
18852      ;;
18853    *)
18854      lt_prog_compiler_pic_CXX='-fPIC'
18855      ;;
18856    esac
18857  else
18858    case $host_os in
18859      aix[4-9]*)
18860	# All AIX code is PIC.
18861	if test ia64 = "$host_cpu"; then
18862	  # AIX 5 now supports IA64 processor
18863	  lt_prog_compiler_static_CXX='-Bstatic'
18864	else
18865	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18866	fi
18867	;;
18868      chorus*)
18869	case $cc_basename in
18870	cxch68*)
18871	  # Green Hills C++ Compiler
18872	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18873	  ;;
18874	esac
18875	;;
18876      mingw* | cygwin* | os2* | pw32* | cegcc*)
18877	# This hack is so that the source file can tell whether it is being
18878	# built for inclusion in a dll (and should export symbols for example).
18879	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18880	;;
18881      dgux*)
18882	case $cc_basename in
18883	  ec++*)
18884	    lt_prog_compiler_pic_CXX='-KPIC'
18885	    ;;
18886	  ghcx*)
18887	    # Green Hills C++ Compiler
18888	    lt_prog_compiler_pic_CXX='-pic'
18889	    ;;
18890	  *)
18891	    ;;
18892	esac
18893	;;
18894      freebsd* | dragonfly*)
18895	# FreeBSD uses GNU C++
18896	;;
18897      hpux9* | hpux10* | hpux11*)
18898	case $cc_basename in
18899	  CC*)
18900	    lt_prog_compiler_wl_CXX='-Wl,'
18901	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18902	    if test ia64 != "$host_cpu"; then
18903	      lt_prog_compiler_pic_CXX='+Z'
18904	    fi
18905	    ;;
18906	  aCC*)
18907	    lt_prog_compiler_wl_CXX='-Wl,'
18908	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18909	    case $host_cpu in
18910	    hppa*64*|ia64*)
18911	      # +Z the default
18912	      ;;
18913	    *)
18914	      lt_prog_compiler_pic_CXX='+Z'
18915	      ;;
18916	    esac
18917	    ;;
18918	  *)
18919	    ;;
18920	esac
18921	;;
18922      interix*)
18923	# This is c89, which is MS Visual C++ (no shared libs)
18924	# Anyone wants to do a port?
18925	;;
18926      irix5* | irix6* | nonstopux*)
18927	case $cc_basename in
18928	  CC*)
18929	    lt_prog_compiler_wl_CXX='-Wl,'
18930	    lt_prog_compiler_static_CXX='-non_shared'
18931	    # CC pic flag -KPIC is the default.
18932	    ;;
18933	  *)
18934	    ;;
18935	esac
18936	;;
18937      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18938	case $cc_basename in
18939	  KCC*)
18940	    # KAI C++ Compiler
18941	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18942	    lt_prog_compiler_pic_CXX='-fPIC'
18943	    ;;
18944	  ecpc* )
18945	    # old Intel C++ for x86_64, which still supported -KPIC.
18946	    lt_prog_compiler_wl_CXX='-Wl,'
18947	    lt_prog_compiler_pic_CXX='-KPIC'
18948	    lt_prog_compiler_static_CXX='-static'
18949	    ;;
18950	  icpc* )
18951	    # Intel C++, used to be incompatible with GCC.
18952	    # ICC 10 doesn't accept -KPIC any more.
18953	    lt_prog_compiler_wl_CXX='-Wl,'
18954	    lt_prog_compiler_pic_CXX='-fPIC'
18955	    lt_prog_compiler_static_CXX='-static'
18956	    ;;
18957	  pgCC* | pgcpp*)
18958	    # Portland Group C++ compiler
18959	    lt_prog_compiler_wl_CXX='-Wl,'
18960	    lt_prog_compiler_pic_CXX='-fpic'
18961	    lt_prog_compiler_static_CXX='-Bstatic'
18962	    ;;
18963	  cxx*)
18964	    # Compaq C++
18965	    # Make sure the PIC flag is empty.  It appears that all Alpha
18966	    # Linux and Compaq Tru64 Unix objects are PIC.
18967	    lt_prog_compiler_pic_CXX=
18968	    lt_prog_compiler_static_CXX='-non_shared'
18969	    ;;
18970	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18971	    # IBM XL 8.0, 9.0 on PPC and BlueGene
18972	    lt_prog_compiler_wl_CXX='-Wl,'
18973	    lt_prog_compiler_pic_CXX='-qpic'
18974	    lt_prog_compiler_static_CXX='-qstaticlink'
18975	    ;;
18976	  *)
18977	    case `$CC -V 2>&1 | sed 5q` in
18978	    *Sun\ C*)
18979	      # Sun C++ 5.9
18980	      lt_prog_compiler_pic_CXX='-KPIC'
18981	      lt_prog_compiler_static_CXX='-Bstatic'
18982	      lt_prog_compiler_wl_CXX='-Qoption ld '
18983	      ;;
18984	    esac
18985	    ;;
18986	esac
18987	;;
18988      lynxos*)
18989	;;
18990      m88k*)
18991	;;
18992      mvs*)
18993	case $cc_basename in
18994	  cxx*)
18995	    lt_prog_compiler_pic_CXX='-W c,exportall'
18996	    ;;
18997	  *)
18998	    ;;
18999	esac
19000	;;
19001      netbsd* | netbsdelf*-gnu)
19002	;;
19003      *qnx* | *nto*)
19004        # QNX uses GNU C++, but need to define -shared option too, otherwise
19005        # it will coredump.
19006        lt_prog_compiler_pic_CXX='-fPIC -shared'
19007        ;;
19008      osf3* | osf4* | osf5*)
19009	case $cc_basename in
19010	  KCC*)
19011	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19012	    ;;
19013	  RCC*)
19014	    # Rational C++ 2.4.1
19015	    lt_prog_compiler_pic_CXX='-pic'
19016	    ;;
19017	  cxx*)
19018	    # Digital/Compaq C++
19019	    lt_prog_compiler_wl_CXX='-Wl,'
19020	    # Make sure the PIC flag is empty.  It appears that all Alpha
19021	    # Linux and Compaq Tru64 Unix objects are PIC.
19022	    lt_prog_compiler_pic_CXX=
19023	    lt_prog_compiler_static_CXX='-non_shared'
19024	    ;;
19025	  *)
19026	    ;;
19027	esac
19028	;;
19029      psos*)
19030	;;
19031      solaris*)
19032	case $cc_basename in
19033	  CC* | sunCC*)
19034	    # Sun C++ 4.2, 5.x and Centerline C++
19035	    lt_prog_compiler_pic_CXX='-KPIC'
19036	    lt_prog_compiler_static_CXX='-Bstatic'
19037	    lt_prog_compiler_wl_CXX='-Qoption ld '
19038	    ;;
19039	  gcx*)
19040	    # Green Hills C++ Compiler
19041	    lt_prog_compiler_pic_CXX='-PIC'
19042	    ;;
19043	  *)
19044	    ;;
19045	esac
19046	;;
19047      sunos4*)
19048	case $cc_basename in
19049	  CC*)
19050	    # Sun C++ 4.x
19051	    lt_prog_compiler_pic_CXX='-pic'
19052	    lt_prog_compiler_static_CXX='-Bstatic'
19053	    ;;
19054	  lcc*)
19055	    # Lucid
19056	    lt_prog_compiler_pic_CXX='-pic'
19057	    ;;
19058	  *)
19059	    ;;
19060	esac
19061	;;
19062      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19063	case $cc_basename in
19064	  CC*)
19065	    lt_prog_compiler_wl_CXX='-Wl,'
19066	    lt_prog_compiler_pic_CXX='-KPIC'
19067	    lt_prog_compiler_static_CXX='-Bstatic'
19068	    ;;
19069	esac
19070	;;
19071      tandem*)
19072	case $cc_basename in
19073	  NCC*)
19074	    # NonStop-UX NCC 3.20
19075	    lt_prog_compiler_pic_CXX='-KPIC'
19076	    ;;
19077	  *)
19078	    ;;
19079	esac
19080	;;
19081      vxworks*)
19082	;;
19083      *)
19084	lt_prog_compiler_can_build_shared_CXX=no
19085	;;
19086    esac
19087  fi
19088
19089case $host_os in
19090  # For platforms that do not support PIC, -DPIC is meaningless:
19091  *djgpp*)
19092    lt_prog_compiler_pic_CXX=
19093    ;;
19094  *)
19095    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19096    ;;
19097esac
19098
19099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19100$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19101if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19102  $as_echo_n "(cached) " >&6
19103else
19104  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19105fi
19106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19107$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19108lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19109
19110#
19111# Check to make sure the PIC flag actually works.
19112#
19113if test -n "$lt_prog_compiler_pic_CXX"; then
19114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19115$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19116if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19117  $as_echo_n "(cached) " >&6
19118else
19119  lt_cv_prog_compiler_pic_works_CXX=no
19120   ac_outfile=conftest.$ac_objext
19121   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19122   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
19123   # Insert the option either (1) after the last *FLAGS variable, or
19124   # (2) before a word containing "conftest.", or (3) at the end.
19125   # Note that $ac_compile itself does not contain backslashes and begins
19126   # with a dollar sign (not a hyphen), so the echo should work correctly.
19127   # The option is referenced via a variable to avoid confusing sed.
19128   lt_compile=`echo "$ac_compile" | $SED \
19129   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19131   -e 's:$: $lt_compiler_flag:'`
19132   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19133   (eval "$lt_compile" 2>conftest.err)
19134   ac_status=$?
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   if (exit $ac_status) && test -s "$ac_outfile"; then
19138     # The compiler can only warn and ignore the option if not recognized
19139     # So say no if there are warnings other than the usual output.
19140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19141     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19142     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19143       lt_cv_prog_compiler_pic_works_CXX=yes
19144     fi
19145   fi
19146   $RM conftest*
19147
19148fi
19149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19150$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19151
19152if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19153    case $lt_prog_compiler_pic_CXX in
19154     "" | " "*) ;;
19155     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19156     esac
19157else
19158    lt_prog_compiler_pic_CXX=
19159     lt_prog_compiler_can_build_shared_CXX=no
19160fi
19161
19162fi
19163
19164
19165
19166
19167
19168#
19169# Check to make sure the static flag actually works.
19170#
19171wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19173$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19174if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19175  $as_echo_n "(cached) " >&6
19176else
19177  lt_cv_prog_compiler_static_works_CXX=no
19178   save_LDFLAGS=$LDFLAGS
19179   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19180   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19181   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19182     # The linker can only warn and ignore the option if not recognized
19183     # So say no if there are warnings
19184     if test -s conftest.err; then
19185       # Append any errors to the config.log.
19186       cat conftest.err 1>&5
19187       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19188       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19189       if diff conftest.exp conftest.er2 >/dev/null; then
19190         lt_cv_prog_compiler_static_works_CXX=yes
19191       fi
19192     else
19193       lt_cv_prog_compiler_static_works_CXX=yes
19194     fi
19195   fi
19196   $RM -r conftest*
19197   LDFLAGS=$save_LDFLAGS
19198
19199fi
19200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19201$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19202
19203if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19204    :
19205else
19206    lt_prog_compiler_static_CXX=
19207fi
19208
19209
19210
19211
19212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19213$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19214if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19215  $as_echo_n "(cached) " >&6
19216else
19217  lt_cv_prog_compiler_c_o_CXX=no
19218   $RM -r conftest 2>/dev/null
19219   mkdir conftest
19220   cd conftest
19221   mkdir out
19222   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19223
19224   lt_compiler_flag="-o out/conftest2.$ac_objext"
19225   # Insert the option either (1) after the last *FLAGS variable, or
19226   # (2) before a word containing "conftest.", or (3) at the end.
19227   # Note that $ac_compile itself does not contain backslashes and begins
19228   # with a dollar sign (not a hyphen), so the echo should work correctly.
19229   lt_compile=`echo "$ac_compile" | $SED \
19230   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19231   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19232   -e 's:$: $lt_compiler_flag:'`
19233   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19234   (eval "$lt_compile" 2>out/conftest.err)
19235   ac_status=$?
19236   cat out/conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19239   then
19240     # The compiler can only warn and ignore the option if not recognized
19241     # So say no if there are warnings
19242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19243     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19244     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19245       lt_cv_prog_compiler_c_o_CXX=yes
19246     fi
19247   fi
19248   chmod u+w . 2>&5
19249   $RM conftest*
19250   # SGI C++ compiler will create directory out/ii_files/ for
19251   # template instantiation
19252   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19253   $RM out/* && rmdir out
19254   cd ..
19255   $RM -r conftest
19256   $RM conftest*
19257
19258fi
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19260$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19261
19262
19263
19264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19265$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19266if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
19267  $as_echo_n "(cached) " >&6
19268else
19269  lt_cv_prog_compiler_c_o_CXX=no
19270   $RM -r conftest 2>/dev/null
19271   mkdir conftest
19272   cd conftest
19273   mkdir out
19274   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19275
19276   lt_compiler_flag="-o out/conftest2.$ac_objext"
19277   # Insert the option either (1) after the last *FLAGS variable, or
19278   # (2) before a word containing "conftest.", or (3) at the end.
19279   # Note that $ac_compile itself does not contain backslashes and begins
19280   # with a dollar sign (not a hyphen), so the echo should work correctly.
19281   lt_compile=`echo "$ac_compile" | $SED \
19282   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19284   -e 's:$: $lt_compiler_flag:'`
19285   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19286   (eval "$lt_compile" 2>out/conftest.err)
19287   ac_status=$?
19288   cat out/conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19291   then
19292     # The compiler can only warn and ignore the option if not recognized
19293     # So say no if there are warnings
19294     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19295     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19296     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19297       lt_cv_prog_compiler_c_o_CXX=yes
19298     fi
19299   fi
19300   chmod u+w . 2>&5
19301   $RM conftest*
19302   # SGI C++ compiler will create directory out/ii_files/ for
19303   # template instantiation
19304   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19305   $RM out/* && rmdir out
19306   cd ..
19307   $RM -r conftest
19308   $RM conftest*
19309
19310fi
19311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19312$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19313
19314
19315
19316
19317hard_links=nottested
19318if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19319  # do not overwrite the value of need_locks provided by the user
19320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19321$as_echo_n "checking if we can lock with hard links... " >&6; }
19322  hard_links=yes
19323  $RM conftest*
19324  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19325  touch conftest.a
19326  ln conftest.a conftest.b 2>&5 || hard_links=no
19327  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19329$as_echo "$hard_links" >&6; }
19330  if test no = "$hard_links"; then
19331    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19332$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19333    need_locks=warn
19334  fi
19335else
19336  need_locks=no
19337fi
19338
19339
19340
19341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19342$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19343
19344  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19345  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19346  case $host_os in
19347  aix[4-9]*)
19348    # If we're using GNU nm, then we don't want the "-C" option.
19349    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19350    # Without the "-l" option, or with the "-B" option, AIX nm treats
19351    # weak defined symbols like other global defined symbols, whereas
19352    # GNU nm marks them as "W".
19353    # While the 'weak' keyword is ignored in the Export File, we need
19354    # it in the Import File for the 'aix-soname' feature, so we have
19355    # to replace the "-B" option with "-P" for AIX nm.
19356    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19357      export_symbols_cmds_CXX='$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'
19358    else
19359      export_symbols_cmds_CXX='`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'
19360    fi
19361    ;;
19362  pw32*)
19363    export_symbols_cmds_CXX=$ltdll_cmds
19364    ;;
19365  cygwin* | mingw* | cegcc*)
19366    case $cc_basename in
19367    cl*)
19368      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19369      ;;
19370    *)
19371      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19372      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19373      ;;
19374    esac
19375    ;;
19376  linux* | k*bsd*-gnu | gnu*)
19377    link_all_deplibs_CXX=no
19378    ;;
19379  *)
19380    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19381    ;;
19382  esac
19383
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19385$as_echo "$ld_shlibs_CXX" >&6; }
19386test no = "$ld_shlibs_CXX" && can_build_shared=no
19387
19388with_gnu_ld_CXX=$with_gnu_ld
19389
19390
19391
19392
19393
19394
19395#
19396# Do we need to explicitly link libc?
19397#
19398case "x$archive_cmds_need_lc_CXX" in
19399x|xyes)
19400  # Assume -lc should be added
19401  archive_cmds_need_lc_CXX=yes
19402
19403  if test yes,yes = "$GCC,$enable_shared"; then
19404    case $archive_cmds_CXX in
19405    *'~'*)
19406      # FIXME: we may have to deal with multi-command sequences.
19407      ;;
19408    '$CC '*)
19409      # Test whether the compiler implicitly links with -lc since on some
19410      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19411      # to ld, don't add -lc before -lgcc.
19412      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19413$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19414if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19415  $as_echo_n "(cached) " >&6
19416else
19417  $RM conftest*
19418	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19419
19420	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19421  (eval $ac_compile) 2>&5
19422  ac_status=$?
19423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19424  test $ac_status = 0; } 2>conftest.err; then
19425	  soname=conftest
19426	  lib=conftest
19427	  libobjs=conftest.$ac_objext
19428	  deplibs=
19429	  wl=$lt_prog_compiler_wl_CXX
19430	  pic_flag=$lt_prog_compiler_pic_CXX
19431	  compiler_flags=-v
19432	  linker_flags=-v
19433	  verstring=
19434	  output_objdir=.
19435	  libname=conftest
19436	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19437	  allow_undefined_flag_CXX=
19438	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19439  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19440  ac_status=$?
19441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19442  test $ac_status = 0; }
19443	  then
19444	    lt_cv_archive_cmds_need_lc_CXX=no
19445	  else
19446	    lt_cv_archive_cmds_need_lc_CXX=yes
19447	  fi
19448	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19449	else
19450	  cat conftest.err 1>&5
19451	fi
19452	$RM conftest*
19453
19454fi
19455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19456$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19457      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19458      ;;
19459    esac
19460  fi
19461  ;;
19462esac
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19526$as_echo_n "checking dynamic linker characteristics... " >&6; }
19527
19528library_names_spec=
19529libname_spec='lib$name'
19530soname_spec=
19531shrext_cmds=.so
19532postinstall_cmds=
19533postuninstall_cmds=
19534finish_cmds=
19535finish_eval=
19536shlibpath_var=
19537shlibpath_overrides_runpath=unknown
19538version_type=none
19539dynamic_linker="$host_os ld.so"
19540sys_lib_dlsearch_path_spec="/lib /usr/lib"
19541need_lib_prefix=unknown
19542hardcode_into_libs=no
19543
19544# when you set need_version to no, make sure it does not cause -set_version
19545# flags to be left without arguments
19546need_version=unknown
19547
19548
19549
19550case $host_os in
19551aix3*)
19552  version_type=linux # correct to gnu/linux during the next big refactor
19553  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19554  shlibpath_var=LIBPATH
19555
19556  # AIX 3 has no versioning support, so we append a major version to the name.
19557  soname_spec='$libname$release$shared_ext$major'
19558  ;;
19559
19560aix[4-9]*)
19561  version_type=linux # correct to gnu/linux during the next big refactor
19562  need_lib_prefix=no
19563  need_version=no
19564  hardcode_into_libs=yes
19565  if test ia64 = "$host_cpu"; then
19566    # AIX 5 supports IA64
19567    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19568    shlibpath_var=LD_LIBRARY_PATH
19569  else
19570    # With GCC up to 2.95.x, collect2 would create an import file
19571    # for dependence libraries.  The import file would start with
19572    # the line '#! .'.  This would cause the generated library to
19573    # depend on '.', always an invalid library.  This was fixed in
19574    # development snapshots of GCC prior to 3.0.
19575    case $host_os in
19576      aix4 | aix4.[01] | aix4.[01].*)
19577      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19578	   echo ' yes '
19579	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19580	:
19581      else
19582	can_build_shared=no
19583      fi
19584      ;;
19585    esac
19586    # Using Import Files as archive members, it is possible to support
19587    # filename-based versioning of shared library archives on AIX. While
19588    # this would work for both with and without runtime linking, it will
19589    # prevent static linking of such archives. So we do filename-based
19590    # shared library versioning with .so extension only, which is used
19591    # when both runtime linking and shared linking is enabled.
19592    # Unfortunately, runtime linking may impact performance, so we do
19593    # not want this to be the default eventually. Also, we use the
19594    # versioned .so libs for executables only if there is the -brtl
19595    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19596    # To allow for filename-based versioning support, we need to create
19597    # libNAME.so.V as an archive file, containing:
19598    # *) an Import File, referring to the versioned filename of the
19599    #    archive as well as the shared archive member, telling the
19600    #    bitwidth (32 or 64) of that shared object, and providing the
19601    #    list of exported symbols of that shared object, eventually
19602    #    decorated with the 'weak' keyword
19603    # *) the shared object with the F_LOADONLY flag set, to really avoid
19604    #    it being seen by the linker.
19605    # At run time we better use the real file rather than another symlink,
19606    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19607
19608    case $with_aix_soname,$aix_use_runtimelinking in
19609    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19610    # soname into executable. Probably we can add versioning support to
19611    # collect2, so additional links can be useful in future.
19612    aix,yes) # traditional libtool
19613      dynamic_linker='AIX unversionable lib.so'
19614      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19615      # instead of lib<name>.a to let people know that these are not
19616      # typical AIX shared libraries.
19617      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19618      ;;
19619    aix,no) # traditional AIX only
19620      dynamic_linker='AIX lib.a(lib.so.V)'
19621      # We preserve .a as extension for shared libraries through AIX4.2
19622      # and later when we are not doing run time linking.
19623      library_names_spec='$libname$release.a $libname.a'
19624      soname_spec='$libname$release$shared_ext$major'
19625      ;;
19626    svr4,*) # full svr4 only
19627      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19628      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19629      # We do not specify a path in Import Files, so LIBPATH fires.
19630      shlibpath_overrides_runpath=yes
19631      ;;
19632    *,yes) # both, prefer svr4
19633      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19634      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19635      # unpreferred sharedlib libNAME.a needs extra handling
19636      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
19637      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
19638      # We do not specify a path in Import Files, so LIBPATH fires.
19639      shlibpath_overrides_runpath=yes
19640      ;;
19641    *,no) # both, prefer aix
19642      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19643      library_names_spec='$libname$release.a $libname.a'
19644      soname_spec='$libname$release$shared_ext$major'
19645      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19646      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19647      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19648      ;;
19649    esac
19650    shlibpath_var=LIBPATH
19651  fi
19652  ;;
19653
19654amigaos*)
19655  case $host_cpu in
19656  powerpc)
19657    # Since July 2007 AmigaOS4 officially supports .so libraries.
19658    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19659    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19660    ;;
19661  m68k)
19662    library_names_spec='$libname.ixlibrary $libname.a'
19663    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19664    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19665    ;;
19666  esac
19667  ;;
19668
19669beos*)
19670  library_names_spec='$libname$shared_ext'
19671  dynamic_linker="$host_os ld.so"
19672  shlibpath_var=LIBRARY_PATH
19673  ;;
19674
19675bsdi[45]*)
19676  version_type=linux # correct to gnu/linux during the next big refactor
19677  need_version=no
19678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19679  soname_spec='$libname$release$shared_ext$major'
19680  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19681  shlibpath_var=LD_LIBRARY_PATH
19682  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19683  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19684  # the default ld.so.conf also contains /usr/contrib/lib and
19685  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19686  # libtool to hard-code these into programs
19687  ;;
19688
19689cygwin* | mingw* | pw32* | cegcc*)
19690  version_type=windows
19691  shrext_cmds=.dll
19692  need_version=no
19693  need_lib_prefix=no
19694
19695  case $GCC,$cc_basename in
19696  yes,*)
19697    # gcc
19698    library_names_spec='$libname.dll.a'
19699    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19700    postinstall_cmds='base_file=`basename \$file`~
19701      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19702      dldir=$destdir/`dirname \$dlpath`~
19703      test -d \$dldir || mkdir -p \$dldir~
19704      $install_prog $dir/$dlname \$dldir/$dlname~
19705      chmod a+x \$dldir/$dlname~
19706      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19707        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19708      fi'
19709    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19710      dlpath=$dir/\$dldll~
19711       $RM \$dlpath'
19712    shlibpath_overrides_runpath=yes
19713
19714    case $host_os in
19715    cygwin*)
19716      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19717      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19718
19719      ;;
19720    mingw* | cegcc*)
19721      # MinGW DLLs use traditional 'lib' prefix
19722      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19723      ;;
19724    pw32*)
19725      # pw32 DLLs use 'pw' prefix rather than 'lib'
19726      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19727      ;;
19728    esac
19729    dynamic_linker='Win32 ld.exe'
19730    ;;
19731
19732  *,cl*)
19733    # Native MSVC
19734    libname_spec='$name'
19735    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19736    library_names_spec='$libname.dll.lib'
19737
19738    case $build_os in
19739    mingw*)
19740      sys_lib_search_path_spec=
19741      lt_save_ifs=$IFS
19742      IFS=';'
19743      for lt_path in $LIB
19744      do
19745        IFS=$lt_save_ifs
19746        # Let DOS variable expansion print the short 8.3 style file name.
19747        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19748        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19749      done
19750      IFS=$lt_save_ifs
19751      # Convert to MSYS style.
19752      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19753      ;;
19754    cygwin*)
19755      # Convert to unix form, then to dos form, then back to unix form
19756      # but this time dos style (no spaces!) so that the unix form looks
19757      # like /cygdrive/c/PROGRA~1:/cygdr...
19758      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19759      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19760      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19761      ;;
19762    *)
19763      sys_lib_search_path_spec=$LIB
19764      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19765        # It is most probably a Windows format PATH.
19766        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19767      else
19768        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19769      fi
19770      # FIXME: find the short name or the path components, as spaces are
19771      # common. (e.g. "Program Files" -> "PROGRA~1")
19772      ;;
19773    esac
19774
19775    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19776    postinstall_cmds='base_file=`basename \$file`~
19777      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19778      dldir=$destdir/`dirname \$dlpath`~
19779      test -d \$dldir || mkdir -p \$dldir~
19780      $install_prog $dir/$dlname \$dldir/$dlname'
19781    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19782      dlpath=$dir/\$dldll~
19783       $RM \$dlpath'
19784    shlibpath_overrides_runpath=yes
19785    dynamic_linker='Win32 link.exe'
19786    ;;
19787
19788  *)
19789    # Assume MSVC wrapper
19790    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19791    dynamic_linker='Win32 ld.exe'
19792    ;;
19793  esac
19794  # FIXME: first we should search . and the directory the executable is in
19795  shlibpath_var=PATH
19796  ;;
19797
19798darwin* | rhapsody*)
19799  dynamic_linker="$host_os dyld"
19800  version_type=darwin
19801  need_lib_prefix=no
19802  need_version=no
19803  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19804  soname_spec='$libname$release$major$shared_ext'
19805  shlibpath_overrides_runpath=yes
19806  shlibpath_var=DYLD_LIBRARY_PATH
19807  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19808
19809  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19810  ;;
19811
19812dgux*)
19813  version_type=linux # correct to gnu/linux during the next big refactor
19814  need_lib_prefix=no
19815  need_version=no
19816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19817  soname_spec='$libname$release$shared_ext$major'
19818  shlibpath_var=LD_LIBRARY_PATH
19819  ;;
19820
19821freebsd* | dragonfly*)
19822  # DragonFly does not have aout.  When/if they implement a new
19823  # versioning mechanism, adjust this.
19824  if test -x /usr/bin/objformat; then
19825    objformat=`/usr/bin/objformat`
19826  else
19827    case $host_os in
19828    freebsd[23].*) objformat=aout ;;
19829    *) objformat=elf ;;
19830    esac
19831  fi
19832  version_type=freebsd-$objformat
19833  case $version_type in
19834    freebsd-elf*)
19835      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19836      soname_spec='$libname$release$shared_ext$major'
19837      need_version=no
19838      need_lib_prefix=no
19839      ;;
19840    freebsd-*)
19841      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19842      need_version=yes
19843      ;;
19844  esac
19845  shlibpath_var=LD_LIBRARY_PATH
19846  case $host_os in
19847  freebsd2.*)
19848    shlibpath_overrides_runpath=yes
19849    ;;
19850  freebsd3.[01]* | freebsdelf3.[01]*)
19851    shlibpath_overrides_runpath=yes
19852    hardcode_into_libs=yes
19853    ;;
19854  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19855  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19856    shlibpath_overrides_runpath=no
19857    hardcode_into_libs=yes
19858    ;;
19859  *) # from 4.6 on, and DragonFly
19860    shlibpath_overrides_runpath=yes
19861    hardcode_into_libs=yes
19862    ;;
19863  esac
19864  ;;
19865
19866haiku*)
19867  version_type=linux # correct to gnu/linux during the next big refactor
19868  need_lib_prefix=no
19869  need_version=no
19870  dynamic_linker="$host_os runtime_loader"
19871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19872  soname_spec='$libname$release$shared_ext$major'
19873  shlibpath_var=LIBRARY_PATH
19874  shlibpath_overrides_runpath=no
19875  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19876  hardcode_into_libs=yes
19877  ;;
19878
19879hpux9* | hpux10* | hpux11*)
19880  # Give a soname corresponding to the major version so that dld.sl refuses to
19881  # link against other versions.
19882  version_type=sunos
19883  need_lib_prefix=no
19884  need_version=no
19885  case $host_cpu in
19886  ia64*)
19887    shrext_cmds='.so'
19888    hardcode_into_libs=yes
19889    dynamic_linker="$host_os dld.so"
19890    shlibpath_var=LD_LIBRARY_PATH
19891    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19892    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19893    soname_spec='$libname$release$shared_ext$major'
19894    if test 32 = "$HPUX_IA64_MODE"; then
19895      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19896      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19897    else
19898      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19899      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19900    fi
19901    ;;
19902  hppa*64*)
19903    shrext_cmds='.sl'
19904    hardcode_into_libs=yes
19905    dynamic_linker="$host_os dld.sl"
19906    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19907    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19908    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19909    soname_spec='$libname$release$shared_ext$major'
19910    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19911    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19912    ;;
19913  *)
19914    shrext_cmds='.sl'
19915    dynamic_linker="$host_os dld.sl"
19916    shlibpath_var=SHLIB_PATH
19917    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19918    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19919    soname_spec='$libname$release$shared_ext$major'
19920    ;;
19921  esac
19922  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19923  postinstall_cmds='chmod 555 $lib'
19924  # or fails outright, so override atomically:
19925  install_override_mode=555
19926  ;;
19927
19928interix[3-9]*)
19929  version_type=linux # correct to gnu/linux during the next big refactor
19930  need_lib_prefix=no
19931  need_version=no
19932  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19933  soname_spec='$libname$release$shared_ext$major'
19934  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19935  shlibpath_var=LD_LIBRARY_PATH
19936  shlibpath_overrides_runpath=no
19937  hardcode_into_libs=yes
19938  ;;
19939
19940irix5* | irix6* | nonstopux*)
19941  case $host_os in
19942    nonstopux*) version_type=nonstopux ;;
19943    *)
19944	if test yes = "$lt_cv_prog_gnu_ld"; then
19945		version_type=linux # correct to gnu/linux during the next big refactor
19946	else
19947		version_type=irix
19948	fi ;;
19949  esac
19950  need_lib_prefix=no
19951  need_version=no
19952  soname_spec='$libname$release$shared_ext$major'
19953  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19954  case $host_os in
19955  irix5* | nonstopux*)
19956    libsuff= shlibsuff=
19957    ;;
19958  *)
19959    case $LD in # libtool.m4 will add one of these switches to LD
19960    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19961      libsuff= shlibsuff= libmagic=32-bit;;
19962    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19963      libsuff=32 shlibsuff=N32 libmagic=N32;;
19964    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19965      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19966    *) libsuff= shlibsuff= libmagic=never-match;;
19967    esac
19968    ;;
19969  esac
19970  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19971  shlibpath_overrides_runpath=no
19972  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19973  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19974  hardcode_into_libs=yes
19975  ;;
19976
19977# No shared lib support for Linux oldld, aout, or coff.
19978linux*oldld* | linux*aout* | linux*coff*)
19979  dynamic_linker=no
19980  ;;
19981
19982linux*android*)
19983  version_type=none # Android doesn't support versioned libraries.
19984  need_lib_prefix=no
19985  need_version=no
19986  library_names_spec='$libname$release$shared_ext'
19987  soname_spec='$libname$release$shared_ext'
19988  finish_cmds=
19989  shlibpath_var=LD_LIBRARY_PATH
19990  shlibpath_overrides_runpath=yes
19991
19992  # This implies no fast_install, which is unacceptable.
19993  # Some rework will be needed to allow for fast_install
19994  # before this can be enabled.
19995  hardcode_into_libs=yes
19996
19997  dynamic_linker='Android linker'
19998  # Don't embed -rpath directories since the linker doesn't support them.
19999  hardcode_libdir_flag_spec_CXX='-L$libdir'
20000  ;;
20001
20002# This must be glibc/ELF.
20003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20004  version_type=linux # correct to gnu/linux during the next big refactor
20005  need_lib_prefix=no
20006  need_version=no
20007  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20008  soname_spec='$libname$release$shared_ext$major'
20009  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20010  shlibpath_var=LD_LIBRARY_PATH
20011  shlibpath_overrides_runpath=no
20012
20013  # Some binutils ld are patched to set DT_RUNPATH
20014  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20015  $as_echo_n "(cached) " >&6
20016else
20017  lt_cv_shlibpath_overrides_runpath=no
20018    save_LDFLAGS=$LDFLAGS
20019    save_libdir=$libdir
20020    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20021	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023/* end confdefs.h.  */
20024
20025int
20026main ()
20027{
20028
20029  ;
20030  return 0;
20031}
20032_ACEOF
20033if ac_fn_cxx_try_link "$LINENO"; then :
20034  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20035  lt_cv_shlibpath_overrides_runpath=yes
20036fi
20037fi
20038rm -f core conftest.err conftest.$ac_objext \
20039    conftest$ac_exeext conftest.$ac_ext
20040    LDFLAGS=$save_LDFLAGS
20041    libdir=$save_libdir
20042
20043fi
20044
20045  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20046
20047  # This implies no fast_install, which is unacceptable.
20048  # Some rework will be needed to allow for fast_install
20049  # before this can be enabled.
20050  hardcode_into_libs=yes
20051
20052  # Ideally, we could use ldconfig to report *all* directores which are
20053  # searched for libraries, however this is still not possible.  Aside from not
20054  # being certain /sbin/ldconfig is available, command
20055  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20056  # even though it is searched at run-time.  Try to do the best guess by
20057  # appending ld.so.conf contents (and includes) to the search path.
20058  if test -f /etc/ld.so.conf; then
20059    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20060    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20061  fi
20062
20063  # We used to test for /lib/ld.so.1 and disable shared libraries on
20064  # powerpc, because MkLinux only supported shared libraries with the
20065  # GNU dynamic linker.  Since this was broken with cross compilers,
20066  # most powerpc-linux boxes support dynamic linking these days and
20067  # people can always --disable-shared, the test was removed, and we
20068  # assume the GNU/Linux dynamic linker is in use.
20069  dynamic_linker='GNU/Linux ld.so'
20070  ;;
20071
20072netbsdelf*-gnu)
20073  version_type=linux
20074  need_lib_prefix=no
20075  need_version=no
20076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20077  soname_spec='${libname}${release}${shared_ext}$major'
20078  shlibpath_var=LD_LIBRARY_PATH
20079  shlibpath_overrides_runpath=no
20080  hardcode_into_libs=yes
20081  dynamic_linker='NetBSD ld.elf_so'
20082  ;;
20083
20084netbsd*)
20085  version_type=sunos
20086  need_lib_prefix=no
20087  need_version=no
20088  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20089    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20090    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20091    dynamic_linker='NetBSD (a.out) ld.so'
20092  else
20093    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20094    soname_spec='$libname$release$shared_ext$major'
20095    dynamic_linker='NetBSD ld.elf_so'
20096  fi
20097  shlibpath_var=LD_LIBRARY_PATH
20098  shlibpath_overrides_runpath=yes
20099  hardcode_into_libs=yes
20100  ;;
20101
20102newsos6)
20103  version_type=linux # correct to gnu/linux during the next big refactor
20104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20105  shlibpath_var=LD_LIBRARY_PATH
20106  shlibpath_overrides_runpath=yes
20107  ;;
20108
20109*nto* | *qnx*)
20110  version_type=qnx
20111  need_lib_prefix=no
20112  need_version=no
20113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20114  soname_spec='$libname$release$shared_ext$major'
20115  shlibpath_var=LD_LIBRARY_PATH
20116  shlibpath_overrides_runpath=no
20117  hardcode_into_libs=yes
20118  dynamic_linker='ldqnx.so'
20119  ;;
20120
20121openbsd* | bitrig*)
20122  version_type=sunos
20123  sys_lib_dlsearch_path_spec=/usr/lib
20124  need_lib_prefix=no
20125  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20126    need_version=no
20127  else
20128    need_version=yes
20129  fi
20130  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20131  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20132  shlibpath_var=LD_LIBRARY_PATH
20133  shlibpath_overrides_runpath=yes
20134  ;;
20135
20136os2*)
20137  libname_spec='$name'
20138  version_type=windows
20139  shrext_cmds=.dll
20140  need_version=no
20141  need_lib_prefix=no
20142  # OS/2 can only load a DLL with a base name of 8 characters or less.
20143  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20144    v=$($ECHO $release$versuffix | tr -d .-);
20145    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20146    $ECHO $n$v`$shared_ext'
20147  library_names_spec='${libname}_dll.$libext'
20148  dynamic_linker='OS/2 ld.exe'
20149  shlibpath_var=BEGINLIBPATH
20150  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20151  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20152  postinstall_cmds='base_file=`basename \$file`~
20153    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20154    dldir=$destdir/`dirname \$dlpath`~
20155    test -d \$dldir || mkdir -p \$dldir~
20156    $install_prog $dir/$dlname \$dldir/$dlname~
20157    chmod a+x \$dldir/$dlname~
20158    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20159      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20160    fi'
20161  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20162    dlpath=$dir/\$dldll~
20163    $RM \$dlpath'
20164  ;;
20165
20166osf3* | osf4* | osf5*)
20167  version_type=osf
20168  need_lib_prefix=no
20169  need_version=no
20170  soname_spec='$libname$release$shared_ext$major'
20171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20172  shlibpath_var=LD_LIBRARY_PATH
20173  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20174  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20175  ;;
20176
20177rdos*)
20178  dynamic_linker=no
20179  ;;
20180
20181solaris*)
20182  version_type=linux # correct to gnu/linux during the next big refactor
20183  need_lib_prefix=no
20184  need_version=no
20185  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20186  soname_spec='$libname$release$shared_ext$major'
20187  shlibpath_var=LD_LIBRARY_PATH
20188  shlibpath_overrides_runpath=yes
20189  hardcode_into_libs=yes
20190  # ldd complains unless libraries are executable
20191  postinstall_cmds='chmod +x $lib'
20192  ;;
20193
20194sunos4*)
20195  version_type=sunos
20196  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20197  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20198  shlibpath_var=LD_LIBRARY_PATH
20199  shlibpath_overrides_runpath=yes
20200  if test yes = "$with_gnu_ld"; then
20201    need_lib_prefix=no
20202  fi
20203  need_version=yes
20204  ;;
20205
20206sysv4 | sysv4.3*)
20207  version_type=linux # correct to gnu/linux during the next big refactor
20208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20209  soname_spec='$libname$release$shared_ext$major'
20210  shlibpath_var=LD_LIBRARY_PATH
20211  case $host_vendor in
20212    sni)
20213      shlibpath_overrides_runpath=no
20214      need_lib_prefix=no
20215      runpath_var=LD_RUN_PATH
20216      ;;
20217    siemens)
20218      need_lib_prefix=no
20219      ;;
20220    motorola)
20221      need_lib_prefix=no
20222      need_version=no
20223      shlibpath_overrides_runpath=no
20224      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20225      ;;
20226  esac
20227  ;;
20228
20229sysv4*MP*)
20230  if test -d /usr/nec; then
20231    version_type=linux # correct to gnu/linux during the next big refactor
20232    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20233    soname_spec='$libname$shared_ext.$major'
20234    shlibpath_var=LD_LIBRARY_PATH
20235  fi
20236  ;;
20237
20238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20239  version_type=sco
20240  need_lib_prefix=no
20241  need_version=no
20242  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20243  soname_spec='$libname$release$shared_ext$major'
20244  shlibpath_var=LD_LIBRARY_PATH
20245  shlibpath_overrides_runpath=yes
20246  hardcode_into_libs=yes
20247  if test yes = "$with_gnu_ld"; then
20248    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20249  else
20250    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20251    case $host_os in
20252      sco3.2v5*)
20253        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20254	;;
20255    esac
20256  fi
20257  sys_lib_dlsearch_path_spec='/usr/lib'
20258  ;;
20259
20260tpf*)
20261  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20262  version_type=linux # correct to gnu/linux during the next big refactor
20263  need_lib_prefix=no
20264  need_version=no
20265  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20266  shlibpath_var=LD_LIBRARY_PATH
20267  shlibpath_overrides_runpath=no
20268  hardcode_into_libs=yes
20269  ;;
20270
20271uts4*)
20272  version_type=linux # correct to gnu/linux during the next big refactor
20273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20274  soname_spec='$libname$release$shared_ext$major'
20275  shlibpath_var=LD_LIBRARY_PATH
20276  ;;
20277
20278*)
20279  dynamic_linker=no
20280  ;;
20281esac
20282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20283$as_echo "$dynamic_linker" >&6; }
20284test no = "$dynamic_linker" && can_build_shared=no
20285
20286variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20287if test yes = "$GCC"; then
20288  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20289fi
20290
20291if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20292  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20293fi
20294
20295if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20296  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20297fi
20298
20299# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20300configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20301
20302# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20303func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20304
20305# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20306configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20348$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20349hardcode_action_CXX=
20350if test -n "$hardcode_libdir_flag_spec_CXX" ||
20351   test -n "$runpath_var_CXX" ||
20352   test yes = "$hardcode_automatic_CXX"; then
20353
20354  # We can hardcode non-existent directories.
20355  if test no != "$hardcode_direct_CXX" &&
20356     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20357     # have to relink, otherwise we might link with an installed library
20358     # when we should be linking with a yet-to-be-installed one
20359     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20360     test no != "$hardcode_minus_L_CXX"; then
20361    # Linking always hardcodes the temporary library directory.
20362    hardcode_action_CXX=relink
20363  else
20364    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20365    hardcode_action_CXX=immediate
20366  fi
20367else
20368  # We cannot hardcode anything, or else we can only hardcode existing
20369  # directories.
20370  hardcode_action_CXX=unsupported
20371fi
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20373$as_echo "$hardcode_action_CXX" >&6; }
20374
20375if test relink = "$hardcode_action_CXX" ||
20376   test yes = "$inherit_rpath_CXX"; then
20377  # Fast installation is not supported
20378  enable_fast_install=no
20379elif test yes = "$shlibpath_overrides_runpath" ||
20380     test no = "$enable_shared"; then
20381  # Fast installation is not necessary
20382  enable_fast_install=needless
20383fi
20384
20385
20386
20387
20388
20389
20390
20391  fi # test -n "$compiler"
20392
20393  CC=$lt_save_CC
20394  CFLAGS=$lt_save_CFLAGS
20395  LDCXX=$LD
20396  LD=$lt_save_LD
20397  GCC=$lt_save_GCC
20398  with_gnu_ld=$lt_save_with_gnu_ld
20399  lt_cv_path_LDCXX=$lt_cv_path_LD
20400  lt_cv_path_LD=$lt_save_path_LD
20401  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20402  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20403fi # test yes != "$_lt_caught_CXX_error"
20404
20405ac_ext=c
20406ac_cpp='$CPP $CPPFLAGS'
20407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
20411
20412depcc="$CXX"  am_compiler_list=
20413
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20415$as_echo_n "checking dependency style of $depcc... " >&6; }
20416if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
20417  $as_echo_n "(cached) " >&6
20418else
20419  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20420  # We make a subdir and do the tests there.  Otherwise we can end up
20421  # making bogus files that we don't know about and never remove.  For
20422  # instance it was reported that on HP-UX the gcc test will end up
20423  # making a dummy file named 'D' -- because '-MD' means "put the output
20424  # in D".
20425  rm -rf conftest.dir
20426  mkdir conftest.dir
20427  # Copy depcomp to subdir because otherwise we won't find it if we're
20428  # using a relative directory.
20429  cp "$am_depcomp" conftest.dir
20430  cd conftest.dir
20431  # We will build objects and dependencies in a subdirectory because
20432  # it helps to detect inapplicable dependency modes.  For instance
20433  # both Tru64's cc and ICC support -MD to output dependencies as a
20434  # side effect of compilation, but ICC will put the dependencies in
20435  # the current directory while Tru64 will put them in the object
20436  # directory.
20437  mkdir sub
20438
20439  am_cv_CXX_dependencies_compiler_type=none
20440  if test "$am_compiler_list" = ""; then
20441     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20442  fi
20443  am__universal=false
20444  case " $depcc " in #(
20445     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20446     esac
20447
20448  for depmode in $am_compiler_list; do
20449    # Setup a source with many dependencies, because some compilers
20450    # like to wrap large dependency lists on column 80 (with \), and
20451    # we should not choose a depcomp mode which is confused by this.
20452    #
20453    # We need to recreate these files for each test, as the compiler may
20454    # overwrite some of them when testing with obscure command lines.
20455    # This happens at least with the AIX C compiler.
20456    : > sub/conftest.c
20457    for i in 1 2 3 4 5 6; do
20458      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20459      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
20460      # Solaris 10 /bin/sh.
20461      echo '/* dummy */' > sub/conftst$i.h
20462    done
20463    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20464
20465    # We check with '-c' and '-o' for the sake of the "dashmstdout"
20466    # mode.  It turns out that the SunPro C++ compiler does not properly
20467    # handle '-M -o', and we need to detect this.  Also, some Intel
20468    # versions had trouble with output in subdirs.
20469    am__obj=sub/conftest.${OBJEXT-o}
20470    am__minus_obj="-o $am__obj"
20471    case $depmode in
20472    gcc)
20473      # This depmode causes a compiler race in universal mode.
20474      test "$am__universal" = false || continue
20475      ;;
20476    nosideeffect)
20477      # After this tag, mechanisms are not by side-effect, so they'll
20478      # only be used when explicitly requested.
20479      if test "x$enable_dependency_tracking" = xyes; then
20480	continue
20481      else
20482	break
20483      fi
20484      ;;
20485    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
20486      # This compiler won't grok '-c -o', but also, the minuso test has
20487      # not run yet.  These depmodes are late enough in the game, and
20488      # so weak that their functioning should not be impacted.
20489      am__obj=conftest.${OBJEXT-o}
20490      am__minus_obj=
20491      ;;
20492    none) break ;;
20493    esac
20494    if depmode=$depmode \
20495       source=sub/conftest.c object=$am__obj \
20496       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20497       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20498         >/dev/null 2>conftest.err &&
20499       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20500       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20501       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20502       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20503      # icc doesn't choke on unknown options, it will just issue warnings
20504      # or remarks (even with -Werror).  So we grep stderr for any message
20505      # that says an option was ignored or not supported.
20506      # When given -MP, icc 7.0 and 7.1 complain thusly:
20507      #   icc: Command line warning: ignoring option '-M'; no argument required
20508      # The diagnosis changed in icc 8.0:
20509      #   icc: Command line remark: option '-MP' not supported
20510      if (grep 'ignoring option' conftest.err ||
20511          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20512        am_cv_CXX_dependencies_compiler_type=$depmode
20513        break
20514      fi
20515    fi
20516  done
20517
20518  cd ..
20519  rm -rf conftest.dir
20520else
20521  am_cv_CXX_dependencies_compiler_type=none
20522fi
20523
20524fi
20525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
20526$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
20527CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20528
20529 if
20530  test "x$enable_dependency_tracking" != xno \
20531  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20532  am__fastdepCXX_TRUE=
20533  am__fastdepCXX_FALSE='#'
20534else
20535  am__fastdepCXX_TRUE='#'
20536  am__fastdepCXX_FALSE=
20537fi
20538
20539
20540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
20541$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20542if ${ac_cv_prog_cc_c99+:} false; then :
20543  $as_echo_n "(cached) " >&6
20544else
20545  ac_cv_prog_cc_c99=no
20546ac_save_CC=$CC
20547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548/* end confdefs.h.  */
20549#include <stdarg.h>
20550#include <stdbool.h>
20551#include <stdlib.h>
20552#include <wchar.h>
20553#include <stdio.h>
20554
20555// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20556#define debug(...) fprintf (stderr, __VA_ARGS__)
20557#define showlist(...) puts (#__VA_ARGS__)
20558#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20559static void
20560test_varargs_macros (void)
20561{
20562  int x = 1234;
20563  int y = 5678;
20564  debug ("Flag");
20565  debug ("X = %d\n", x);
20566  showlist (The first, second, and third items.);
20567  report (x>y, "x is %d but y is %d", x, y);
20568}
20569
20570// Check long long types.
20571#define BIG64 18446744073709551615ull
20572#define BIG32 4294967295ul
20573#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20574#if !BIG_OK
20575  your preprocessor is broken;
20576#endif
20577#if BIG_OK
20578#else
20579  your preprocessor is broken;
20580#endif
20581static long long int bignum = -9223372036854775807LL;
20582static unsigned long long int ubignum = BIG64;
20583
20584struct incomplete_array
20585{
20586  int datasize;
20587  double data[];
20588};
20589
20590struct named_init {
20591  int number;
20592  const wchar_t *name;
20593  double average;
20594};
20595
20596typedef const char *ccp;
20597
20598static inline int
20599test_restrict (ccp restrict text)
20600{
20601  // See if C++-style comments work.
20602  // Iterate through items via the restricted pointer.
20603  // Also check for declarations in for loops.
20604  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20605    continue;
20606  return 0;
20607}
20608
20609// Check varargs and va_copy.
20610static void
20611test_varargs (const char *format, ...)
20612{
20613  va_list args;
20614  va_start (args, format);
20615  va_list args_copy;
20616  va_copy (args_copy, args);
20617
20618  const char *str;
20619  int number;
20620  float fnumber;
20621
20622  while (*format)
20623    {
20624      switch (*format++)
20625	{
20626	case 's': // string
20627	  str = va_arg (args_copy, const char *);
20628	  break;
20629	case 'd': // int
20630	  number = va_arg (args_copy, int);
20631	  break;
20632	case 'f': // float
20633	  fnumber = va_arg (args_copy, double);
20634	  break;
20635	default:
20636	  break;
20637	}
20638    }
20639  va_end (args_copy);
20640  va_end (args);
20641}
20642
20643int
20644main ()
20645{
20646
20647  // Check bool.
20648  _Bool success = false;
20649
20650  // Check restrict.
20651  if (test_restrict ("String literal") == 0)
20652    success = true;
20653  char *restrict newvar = "Another string";
20654
20655  // Check varargs.
20656  test_varargs ("s, d' f .", "string", 65, 34.234);
20657  test_varargs_macros ();
20658
20659  // Check flexible array members.
20660  struct incomplete_array *ia =
20661    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20662  ia->datasize = 10;
20663  for (int i = 0; i < ia->datasize; ++i)
20664    ia->data[i] = i * 1.234;
20665
20666  // Check named initializers.
20667  struct named_init ni = {
20668    .number = 34,
20669    .name = L"Test wide string",
20670    .average = 543.34343,
20671  };
20672
20673  ni.number = 58;
20674
20675  int dynamic_array[ni.number];
20676  dynamic_array[ni.number - 1] = 543;
20677
20678  // work around unused variable warnings
20679  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20680	  || dynamic_array[ni.number - 1] != 543);
20681
20682  ;
20683  return 0;
20684}
20685_ACEOF
20686for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
20687do
20688  CC="$ac_save_CC $ac_arg"
20689  if ac_fn_c_try_compile "$LINENO"; then :
20690  ac_cv_prog_cc_c99=$ac_arg
20691fi
20692rm -f core conftest.err conftest.$ac_objext
20693  test "x$ac_cv_prog_cc_c99" != "xno" && break
20694done
20695rm -f conftest.$ac_ext
20696CC=$ac_save_CC
20697
20698fi
20699# AC_CACHE_VAL
20700case "x$ac_cv_prog_cc_c99" in
20701  x)
20702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20703$as_echo "none needed" >&6; } ;;
20704  xno)
20705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20706$as_echo "unsupported" >&6; } ;;
20707  *)
20708    CC="$CC $ac_cv_prog_cc_c99"
20709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
20710$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20711esac
20712if test "x$ac_cv_prog_cc_c99" != xno; then :
20713
20714fi
20715
20716
20717  for ac_prog in 'bison -y' byacc
20718do
20719  # Extract the first word of "$ac_prog", so it can be a program name with args.
20720set dummy $ac_prog; ac_word=$2
20721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20722$as_echo_n "checking for $ac_word... " >&6; }
20723if ${ac_cv_prog_YACC+:} false; then :
20724  $as_echo_n "(cached) " >&6
20725else
20726  if test -n "$YACC"; then
20727  ac_cv_prog_YACC="$YACC" # Let the user override the test.
20728else
20729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20730for as_dir in $PATH
20731do
20732  IFS=$as_save_IFS
20733  test -z "$as_dir" && as_dir=.
20734    for ac_exec_ext in '' $ac_executable_extensions; do
20735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20736    ac_cv_prog_YACC="$ac_prog"
20737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20738    break 2
20739  fi
20740done
20741  done
20742IFS=$as_save_IFS
20743
20744fi
20745fi
20746YACC=$ac_cv_prog_YACC
20747if test -n "$YACC"; then
20748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
20749$as_echo "$YACC" >&6; }
20750else
20751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20752$as_echo "no" >&6; }
20753fi
20754
20755
20756  test -n "$YACC" && break
20757done
20758test -n "$YACC" || YACC="yacc"
20759
20760  for ac_prog in flex lex
20761do
20762  # Extract the first word of "$ac_prog", so it can be a program name with args.
20763set dummy $ac_prog; ac_word=$2
20764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20765$as_echo_n "checking for $ac_word... " >&6; }
20766if ${ac_cv_prog_LEX+:} false; then :
20767  $as_echo_n "(cached) " >&6
20768else
20769  if test -n "$LEX"; then
20770  ac_cv_prog_LEX="$LEX" # Let the user override the test.
20771else
20772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773for as_dir in $PATH
20774do
20775  IFS=$as_save_IFS
20776  test -z "$as_dir" && as_dir=.
20777    for ac_exec_ext in '' $ac_executable_extensions; do
20778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20779    ac_cv_prog_LEX="$ac_prog"
20780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20781    break 2
20782  fi
20783done
20784  done
20785IFS=$as_save_IFS
20786
20787fi
20788fi
20789LEX=$ac_cv_prog_LEX
20790if test -n "$LEX"; then
20791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
20792$as_echo "$LEX" >&6; }
20793else
20794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795$as_echo "no" >&6; }
20796fi
20797
20798
20799  test -n "$LEX" && break
20800done
20801test -n "$LEX" || LEX=":"
20802
20803if test "x$LEX" != "x:"; then
20804  cat >conftest.l <<_ACEOF
20805%%
20806a { ECHO; }
20807b { REJECT; }
20808c { yymore (); }
20809d { yyless (1); }
20810e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
20811    yyless ((input () != 0)); }
20812f { unput (yytext[0]); }
20813. { BEGIN INITIAL; }
20814%%
20815#ifdef YYTEXT_POINTER
20816extern char *yytext;
20817#endif
20818int
20819main (void)
20820{
20821  return ! yylex () + ! yywrap ();
20822}
20823_ACEOF
20824{ { ac_try="$LEX conftest.l"
20825case "(($ac_try" in
20826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827  *) ac_try_echo=$ac_try;;
20828esac
20829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20830$as_echo "$ac_try_echo"; } >&5
20831  (eval "$LEX conftest.l") 2>&5
20832  ac_status=$?
20833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20834  test $ac_status = 0; }
20835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
20836$as_echo_n "checking lex output file root... " >&6; }
20837if ${ac_cv_prog_lex_root+:} false; then :
20838  $as_echo_n "(cached) " >&6
20839else
20840
20841if test -f lex.yy.c; then
20842  ac_cv_prog_lex_root=lex.yy
20843elif test -f lexyy.c; then
20844  ac_cv_prog_lex_root=lexyy
20845else
20846  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
20847fi
20848fi
20849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
20850$as_echo "$ac_cv_prog_lex_root" >&6; }
20851LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20852
20853if test -z "${LEXLIB+set}"; then
20854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
20855$as_echo_n "checking lex library... " >&6; }
20856if ${ac_cv_lib_lex+:} false; then :
20857  $as_echo_n "(cached) " >&6
20858else
20859
20860    ac_save_LIBS=$LIBS
20861    ac_cv_lib_lex='none needed'
20862    for ac_lib in '' -lfl -ll; do
20863      LIBS="$ac_lib $ac_save_LIBS"
20864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865/* end confdefs.h.  */
20866`cat $LEX_OUTPUT_ROOT.c`
20867_ACEOF
20868if ac_fn_c_try_link "$LINENO"; then :
20869  ac_cv_lib_lex=$ac_lib
20870fi
20871rm -f core conftest.err conftest.$ac_objext \
20872    conftest$ac_exeext conftest.$ac_ext
20873      test "$ac_cv_lib_lex" != 'none needed' && break
20874    done
20875    LIBS=$ac_save_LIBS
20876
20877fi
20878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
20879$as_echo "$ac_cv_lib_lex" >&6; }
20880  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20881fi
20882
20883
20884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
20885$as_echo_n "checking whether yytext is a pointer... " >&6; }
20886if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
20887  $as_echo_n "(cached) " >&6
20888else
20889  # POSIX says lex can declare yytext either as a pointer or an array; the
20890# default is implementation-dependent.  Figure out which it is, since
20891# not all implementations provide the %pointer and %array declarations.
20892ac_cv_prog_lex_yytext_pointer=no
20893ac_save_LIBS=$LIBS
20894LIBS="$LEXLIB $ac_save_LIBS"
20895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896/* end confdefs.h.  */
20897
20898  #define YYTEXT_POINTER 1
20899`cat $LEX_OUTPUT_ROOT.c`
20900_ACEOF
20901if ac_fn_c_try_link "$LINENO"; then :
20902  ac_cv_prog_lex_yytext_pointer=yes
20903fi
20904rm -f core conftest.err conftest.$ac_objext \
20905    conftest$ac_exeext conftest.$ac_ext
20906LIBS=$ac_save_LIBS
20907
20908fi
20909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
20910$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
20911if test $ac_cv_prog_lex_yytext_pointer = yes; then
20912
20913$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
20914
20915fi
20916rm -f conftest.l $LEX_OUTPUT_ROOT.c
20917
20918fi
20919if test "$LEX" = :; then
20920  LEX=${am_missing_run}flex
20921fi
20922
20923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20924$as_echo_n "checking for inline... " >&6; }
20925if ${ac_cv_c_inline+:} false; then :
20926  $as_echo_n "(cached) " >&6
20927else
20928  ac_cv_c_inline=no
20929for ac_kw in inline __inline__ __inline; do
20930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931/* end confdefs.h.  */
20932#ifndef __cplusplus
20933typedef int foo_t;
20934static $ac_kw foo_t static_foo () {return 0; }
20935$ac_kw foo_t foo () {return 0; }
20936#endif
20937
20938_ACEOF
20939if ac_fn_c_try_compile "$LINENO"; then :
20940  ac_cv_c_inline=$ac_kw
20941fi
20942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943  test "$ac_cv_c_inline" != no && break
20944done
20945
20946fi
20947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20948$as_echo "$ac_cv_c_inline" >&6; }
20949
20950case $ac_cv_c_inline in
20951  inline | yes) ;;
20952  *)
20953    case $ac_cv_c_inline in
20954      no) ac_val=;;
20955      *) ac_val=$ac_cv_c_inline;;
20956    esac
20957    cat >>confdefs.h <<_ACEOF
20958#ifndef __cplusplus
20959#define inline $ac_val
20960#endif
20961_ACEOF
20962    ;;
20963esac
20964
20965
20966  # Check for some compiler options that provide significant optimizations
20967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcx-limited-range" >&5
20968$as_echo_n "checking whether C compiler accepts -fcx-limited-range... " >&6; }
20969if ${ax_cv_check_cflags___fcx_limited_range+:} false; then :
20970  $as_echo_n "(cached) " >&6
20971else
20972
20973  ax_check_save_flags=$CFLAGS
20974  CFLAGS="$CFLAGS  -fcx-limited-range"
20975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976/* end confdefs.h.  */
20977
20978int
20979main ()
20980{
20981
20982  ;
20983  return 0;
20984}
20985_ACEOF
20986if ac_fn_c_try_compile "$LINENO"; then :
20987  ax_cv_check_cflags___fcx_limited_range=yes
20988else
20989  ax_cv_check_cflags___fcx_limited_range=no
20990fi
20991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992  CFLAGS=$ax_check_save_flags
20993fi
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fcx_limited_range" >&5
20995$as_echo "$ax_cv_check_cflags___fcx_limited_range" >&6; }
20996if test x"$ax_cv_check_cflags___fcx_limited_range" = xyes; then :
20997   LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fcx-limited-range"
20998else
20999  :
21000fi
21001
21002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-math-errno" >&5
21003$as_echo_n "checking whether C compiler accepts -fno-math-errno... " >&6; }
21004if ${ax_cv_check_cflags___fno_math_errno+:} false; then :
21005  $as_echo_n "(cached) " >&6
21006else
21007
21008  ax_check_save_flags=$CFLAGS
21009  CFLAGS="$CFLAGS  -fno-math-errno"
21010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21011/* end confdefs.h.  */
21012
21013int
21014main ()
21015{
21016
21017  ;
21018  return 0;
21019}
21020_ACEOF
21021if ac_fn_c_try_compile "$LINENO"; then :
21022  ax_cv_check_cflags___fno_math_errno=yes
21023else
21024  ax_cv_check_cflags___fno_math_errno=no
21025fi
21026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027  CFLAGS=$ax_check_save_flags
21028fi
21029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_math_errno" >&5
21030$as_echo "$ax_cv_check_cflags___fno_math_errno" >&6; }
21031if test x"$ax_cv_check_cflags___fno_math_errno" = xyes; then :
21032   LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fno-math-errno"
21033else
21034  :
21035fi
21036
21037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
21038$as_echo_n "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
21039if ${ax_cv_check_cflags___fomit_frame_pointer+:} false; then :
21040  $as_echo_n "(cached) " >&6
21041else
21042
21043  ax_check_save_flags=$CFLAGS
21044  CFLAGS="$CFLAGS  -fomit-frame-pointer"
21045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046/* end confdefs.h.  */
21047
21048int
21049main ()
21050{
21051
21052  ;
21053  return 0;
21054}
21055_ACEOF
21056if ac_fn_c_try_compile "$LINENO"; then :
21057  ax_cv_check_cflags___fomit_frame_pointer=yes
21058else
21059  ax_cv_check_cflags___fomit_frame_pointer=no
21060fi
21061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062  CFLAGS=$ax_check_save_flags
21063fi
21064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
21065$as_echo "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
21066if test x"$ax_cv_check_cflags___fomit_frame_pointer" = xyes; then :
21067   LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fomit-frame-pointer"
21068else
21069  :
21070fi
21071
21072
21073  # Checks for typedefs, structures, and compiler characteristics.
21074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21075$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21076if ${ac_cv_header_stdbool_h+:} false; then :
21077  $as_echo_n "(cached) " >&6
21078else
21079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080/* end confdefs.h.  */
21081
21082             #include <stdbool.h>
21083             #ifndef bool
21084              "error: bool is not defined"
21085             #endif
21086             #ifndef false
21087              "error: false is not defined"
21088             #endif
21089             #if false
21090              "error: false is not 0"
21091             #endif
21092             #ifndef true
21093              "error: true is not defined"
21094             #endif
21095             #if true != 1
21096              "error: true is not 1"
21097             #endif
21098             #ifndef __bool_true_false_are_defined
21099              "error: __bool_true_false_are_defined is not defined"
21100             #endif
21101
21102             struct s { _Bool s: 1; _Bool t; } s;
21103
21104             char a[true == 1 ? 1 : -1];
21105             char b[false == 0 ? 1 : -1];
21106             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21107             char d[(bool) 0.5 == true ? 1 : -1];
21108             /* See body of main program for 'e'.  */
21109             char f[(_Bool) 0.0 == false ? 1 : -1];
21110             char g[true];
21111             char h[sizeof (_Bool)];
21112             char i[sizeof s.t];
21113             enum { j = false, k = true, l = false * true, m = true * 256 };
21114             /* The following fails for
21115                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21116             _Bool n[m];
21117             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21118             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21119             /* Catch a bug in an HP-UX C compiler.  See
21120                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21121                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21122              */
21123             _Bool q = true;
21124             _Bool *pq = &q;
21125
21126int
21127main ()
21128{
21129
21130             bool e = &s;
21131             *pq |= q;
21132             *pq |= ! q;
21133             /* Refer to every declared value, to avoid compiler optimizations.  */
21134             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21135                     + !m + !n + !o + !p + !q + !pq);
21136
21137  ;
21138  return 0;
21139}
21140_ACEOF
21141if ac_fn_c_try_compile "$LINENO"; then :
21142  ac_cv_header_stdbool_h=yes
21143else
21144  ac_cv_header_stdbool_h=no
21145fi
21146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147fi
21148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21149$as_echo "$ac_cv_header_stdbool_h" >&6; }
21150   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21151if test "x$ac_cv_type__Bool" = xyes; then :
21152
21153cat >>confdefs.h <<_ACEOF
21154#define HAVE__BOOL 1
21155_ACEOF
21156
21157
21158fi
21159
21160
21161if test $ac_cv_header_stdbool_h = yes; then
21162
21163$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21164
21165fi
21166
21167  ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21168if test "x$ac_cv_type_size_t" = xyes; then :
21169
21170else
21171
21172cat >>confdefs.h <<_ACEOF
21173#define size_t unsigned int
21174_ACEOF
21175
21176fi
21177
21178
21179  # Checks for basic library functions. Without these there will be no hope
21180  # of compiling MPSolve.
21181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21182$as_echo_n "checking for error_at_line... " >&6; }
21183if ${ac_cv_lib_error_at_line+:} false; then :
21184  $as_echo_n "(cached) " >&6
21185else
21186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187/* end confdefs.h.  */
21188#include <error.h>
21189int
21190main ()
21191{
21192error_at_line (0, 0, "", 0, "an error occurred");
21193  ;
21194  return 0;
21195}
21196_ACEOF
21197if ac_fn_c_try_link "$LINENO"; then :
21198  ac_cv_lib_error_at_line=yes
21199else
21200  ac_cv_lib_error_at_line=no
21201fi
21202rm -f core conftest.err conftest.$ac_objext \
21203    conftest$ac_exeext conftest.$ac_ext
21204fi
21205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21206$as_echo "$ac_cv_lib_error_at_line" >&6; }
21207if test $ac_cv_lib_error_at_line = no; then
21208  case " $LIBOBJS " in
21209  *" error.$ac_objext "* ) ;;
21210  *) LIBOBJS="$LIBOBJS error.$ac_objext"
21211 ;;
21212esac
21213
21214fi
21215
21216  for ac_func in memset modf pow sqrt strchr
21217do :
21218  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21219ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21220if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21221  cat >>confdefs.h <<_ACEOF
21222#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21223_ACEOF
21224
21225fi
21226done
21227
21228
21229  ## Subsection 0.1) Check if we are building on Windows and tune the CFLAGS accordingly
21230
21231    # Check if we are building on Windows, so we can add additional
21232    # hacks to make MPSolve work there.
21233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 platform" >&5
21234$as_echo_n "checking for Win32 platform... " >&6; }
21235     case "$host" in
21236       *-*-mingw*|*-*-cygwin*)
21237         platform_win32=yes
21238       ;;
21239       *)
21240         platform_win32=no
21241       ;;
21242     esac
21243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
21244$as_echo "$platform_win32" >&6; }
21245
21246    # This makes detecting Windows real easy...
21247    if test "$platform_win32" = yes; then
21248      CFLAGS="$CFLAGS -D__WINDOWS"
21249      LDFLAGS="$LDFLAGS -mwindows"
21250
21251      # In this case check if we have windres compiler
21252      if test -n "$ac_tool_prefix"; then
21253  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21254set dummy ${ac_tool_prefix}windres; ac_word=$2
21255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21256$as_echo_n "checking for $ac_word... " >&6; }
21257if ${ac_cv_prog_WINDRES+:} false; then :
21258  $as_echo_n "(cached) " >&6
21259else
21260  if test -n "$WINDRES"; then
21261  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21262else
21263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264for as_dir in $PATH
21265do
21266  IFS=$as_save_IFS
21267  test -z "$as_dir" && as_dir=.
21268    for ac_exec_ext in '' $ac_executable_extensions; do
21269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21270    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21272    break 2
21273  fi
21274done
21275  done
21276IFS=$as_save_IFS
21277
21278fi
21279fi
21280WINDRES=$ac_cv_prog_WINDRES
21281if test -n "$WINDRES"; then
21282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21283$as_echo "$WINDRES" >&6; }
21284else
21285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286$as_echo "no" >&6; }
21287fi
21288
21289
21290fi
21291if test -z "$ac_cv_prog_WINDRES"; then
21292  ac_ct_WINDRES=$WINDRES
21293  # Extract the first word of "windres", so it can be a program name with args.
21294set dummy windres; ac_word=$2
21295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21296$as_echo_n "checking for $ac_word... " >&6; }
21297if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
21298  $as_echo_n "(cached) " >&6
21299else
21300  if test -n "$ac_ct_WINDRES"; then
21301  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21302else
21303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304for as_dir in $PATH
21305do
21306  IFS=$as_save_IFS
21307  test -z "$as_dir" && as_dir=.
21308    for ac_exec_ext in '' $ac_executable_extensions; do
21309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21310    ac_cv_prog_ac_ct_WINDRES="windres"
21311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21312    break 2
21313  fi
21314done
21315  done
21316IFS=$as_save_IFS
21317
21318fi
21319fi
21320ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21321if test -n "$ac_ct_WINDRES"; then
21322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21323$as_echo "$ac_ct_WINDRES" >&6; }
21324else
21325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21326$as_echo "no" >&6; }
21327fi
21328
21329  if test "x$ac_ct_WINDRES" = x; then
21330    WINDRES=""
21331  else
21332    case $cross_compiling:$ac_tool_warned in
21333yes:)
21334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21336ac_tool_warned=yes ;;
21337esac
21338    WINDRES=$ac_ct_WINDRES
21339  fi
21340else
21341  WINDRES="$ac_cv_prog_WINDRES"
21342fi
21343
21344    fi
21345
21346     if test "$platform_win32" == "yes"; then
21347  WINDOWS_BUILD_TRUE=
21348  WINDOWS_BUILD_FALSE='#'
21349else
21350  WINDOWS_BUILD_TRUE='#'
21351  WINDOWS_BUILD_FALSE=
21352fi
21353
21354     if test "$WINDRES" != ""; then
21355  HAVE_WINDRES_TRUE=
21356  HAVE_WINDRES_FALSE='#'
21357else
21358  HAVE_WINDRES_TRUE='#'
21359  HAVE_WINDRES_FALSE=
21360fi
21361
21362
21363  ## Subsection 0.2) Check for the support of the visibily attribute. If this is supported
21364  ## we can make a lot of routines "private", protecting misuse of libmps and shortening
21365  ## load times.
21366
21367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
21368$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
21369if ${ac_cv_hidden_visibility_attribute+:} false; then :
21370  $as_echo_n "(cached) " >&6
21371else
21372
21373      echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
21374      ac_cv_hidden_visibility_attribute=no
21375      if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
21376  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21377  (eval $ac_try) 2>&5
21378  ac_status=$?
21379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21380  test $ac_status = 0; }; };
21381      then
21382          if grep '\.hidden.*foo' conftest.s >/dev/null;
21383          then
21384              ac_cv_hidden_visibility_attribute=yes
21385          fi
21386      fi
21387      rm -f conftest.*
21388
21389fi
21390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hidden_visibility_attribute" >&5
21391$as_echo "$ac_cv_hidden_visibility_attribute" >&6; }
21392
21393    if test $ac_cv_hidden_visibility_attribute = yes;
21394    then
21395
21396$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
21397
21398    fi
21399
21400
21401  ## Subsection 0.3) Multithread support.
21402
21403
21404
21405
21406
21407ac_ext=c
21408ac_cpp='$CPP $CPPFLAGS'
21409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
21413acx_pthread_ok=no
21414
21415# We used to check for pthread.h first, but this fails if pthread.h
21416# requires special compiler flags (e.g. on True64 or Sequent).
21417# It gets checked for in the link test anyway.
21418
21419# First of all, check if the user has set any of the PTHREAD_LIBS,
21420# etcetera environment variables, and if threads linking works using
21421# them:
21422if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21423        save_CFLAGS="$CFLAGS"
21424        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21425        save_LIBS="$LIBS"
21426        LIBS="$PTHREAD_LIBS $LIBS"
21427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21428$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21429        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21430/* end confdefs.h.  */
21431
21432/* Override any GCC internal prototype to avoid an error.
21433   Use char because int might match the return type of a GCC
21434   builtin and then its argument prototype would still apply.  */
21435#ifdef __cplusplus
21436extern "C"
21437#endif
21438char pthread_join ();
21439int
21440main ()
21441{
21442return pthread_join ();
21443  ;
21444  return 0;
21445}
21446_ACEOF
21447if ac_fn_c_try_link "$LINENO"; then :
21448  acx_pthread_ok=yes
21449fi
21450rm -f core conftest.err conftest.$ac_objext \
21451    conftest$ac_exeext conftest.$ac_ext
21452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21453$as_echo "$acx_pthread_ok" >&6; }
21454        if test x"$acx_pthread_ok" = xno; then
21455                PTHREAD_LIBS=""
21456                PTHREAD_CFLAGS=""
21457        fi
21458        LIBS="$save_LIBS"
21459        CFLAGS="$save_CFLAGS"
21460fi
21461
21462# We must check for the threads library under a number of different
21463# names; the ordering is very important because some systems
21464# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21465# libraries is broken (non-POSIX).
21466
21467# Create a list of thread flags to try.  Items starting with a "-" are
21468# C compiler flags, and other items are library names, except for "none"
21469# which indicates that we try without any flags at all, and "pthread-config"
21470# which is a program returning the flags for the Pth emulation library.
21471
21472acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21473
21474# The ordering *is* (sometimes) important.  Some notes on the
21475# individual items follow:
21476
21477# pthreads: AIX (must check this before -lpthread)
21478# none: in case threads are in libc; should be tried before -Kthread and
21479#       other compiler flags to prevent continual compiler warnings
21480# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21481# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21482# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21483# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21484# -pthreads: Solaris/gcc
21485# -mthreads: Mingw32/gcc, Lynx/gcc
21486# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21487#      doesn't hurt to check since this sometimes defines pthreads too;
21488#      also defines -D_REENTRANT)
21489#      ... -mt is also the pthreads flag for HP/aCC
21490# pthread: Linux, etcetera
21491# --thread-safe: KAI C++
21492# pthread-config: use pthread-config program (for GNU Pth library)
21493
21494case "${host_cpu}-${host_os}" in
21495        *solaris*)
21496
21497        # On Solaris (at least, for some versions), libc contains stubbed
21498        # (non-functional) versions of the pthreads routines, so link-based
21499        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
21500        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21501        # a function called by this macro, so we could check for that, but
21502        # who knows whether they'll stub that too in a future libc.)  So,
21503        # we'll just look for -pthreads and -lpthread first:
21504
21505        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21506        ;;
21507esac
21508
21509if test x"$acx_pthread_ok" = xno; then
21510for flag in $acx_pthread_flags; do
21511
21512        case $flag in
21513                none)
21514                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21515$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21516                ;;
21517
21518                -*)
21519                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21520$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21521                PTHREAD_CFLAGS="$flag"
21522                ;;
21523
21524		pthread-config)
21525		# Extract the first word of "pthread-config", so it can be a program name with args.
21526set dummy pthread-config; ac_word=$2
21527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528$as_echo_n "checking for $ac_word... " >&6; }
21529if ${ac_cv_prog_acx_pthread_config+:} false; then :
21530  $as_echo_n "(cached) " >&6
21531else
21532  if test -n "$acx_pthread_config"; then
21533  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21534else
21535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21536for as_dir in $PATH
21537do
21538  IFS=$as_save_IFS
21539  test -z "$as_dir" && as_dir=.
21540    for ac_exec_ext in '' $ac_executable_extensions; do
21541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21542    ac_cv_prog_acx_pthread_config="yes"
21543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21544    break 2
21545  fi
21546done
21547  done
21548IFS=$as_save_IFS
21549
21550  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21551fi
21552fi
21553acx_pthread_config=$ac_cv_prog_acx_pthread_config
21554if test -n "$acx_pthread_config"; then
21555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
21556$as_echo "$acx_pthread_config" >&6; }
21557else
21558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559$as_echo "no" >&6; }
21560fi
21561
21562
21563		if test x"$acx_pthread_config" = xno; then continue; fi
21564		PTHREAD_CFLAGS="`pthread-config --cflags`"
21565		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21566		;;
21567
21568                *)
21569                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21570$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21571                PTHREAD_LIBS="-l$flag"
21572                ;;
21573        esac
21574
21575        save_LIBS="$LIBS"
21576        save_CFLAGS="$CFLAGS"
21577        LIBS="$PTHREAD_LIBS $LIBS"
21578        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21579
21580        # Check for various functions.  We must include pthread.h,
21581        # since some functions may be macros.  (On the Sequent, we
21582        # need a special flag -Kthread to make this header compile.)
21583        # We check for pthread_join because it is in -lpthread on IRIX
21584        # while pthread_create is in libc.  We check for pthread_attr_init
21585        # due to DEC craziness with -lpthreads.  We check for
21586        # pthread_cleanup_push because it is one of the few pthread
21587        # functions on Solaris that doesn't have a non-functional libc stub.
21588        # We try pthread_create on general principles.
21589        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590/* end confdefs.h.  */
21591#include <pthread.h>
21592int
21593main ()
21594{
21595pthread_t th; pthread_join(th, 0);
21596                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
21597                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21598  ;
21599  return 0;
21600}
21601_ACEOF
21602if ac_fn_c_try_link "$LINENO"; then :
21603  acx_pthread_ok=yes
21604fi
21605rm -f core conftest.err conftest.$ac_objext \
21606    conftest$ac_exeext conftest.$ac_ext
21607
21608        LIBS="$save_LIBS"
21609        CFLAGS="$save_CFLAGS"
21610
21611        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21612$as_echo "$acx_pthread_ok" >&6; }
21613        if test "x$acx_pthread_ok" = xyes; then
21614                break;
21615        fi
21616
21617        PTHREAD_LIBS=""
21618        PTHREAD_CFLAGS=""
21619done
21620fi
21621
21622# Various other checks:
21623if test "x$acx_pthread_ok" = xyes; then
21624        save_LIBS="$LIBS"
21625        LIBS="$PTHREAD_LIBS $LIBS"
21626        save_CFLAGS="$CFLAGS"
21627        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21628
21629        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21631$as_echo_n "checking for joinable pthread attribute... " >&6; }
21632	attr_name=unknown
21633	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21634	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635/* end confdefs.h.  */
21636#include <pthread.h>
21637int
21638main ()
21639{
21640int attr=$attr; return attr;
21641  ;
21642  return 0;
21643}
21644_ACEOF
21645if ac_fn_c_try_link "$LINENO"; then :
21646  attr_name=$attr; break
21647fi
21648rm -f core conftest.err conftest.$ac_objext \
21649    conftest$ac_exeext conftest.$ac_ext
21650	done
21651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
21652$as_echo "$attr_name" >&6; }
21653        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
21654
21655cat >>confdefs.h <<_ACEOF
21656#define PTHREAD_CREATE_JOINABLE $attr_name
21657_ACEOF
21658
21659        fi
21660
21661        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21662$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21663        flag=no
21664        case "${host_cpu}-${host_os}" in
21665            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21666            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21667        esac
21668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
21669$as_echo "${flag}" >&6; }
21670        if test "x$flag" != xno; then
21671            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21672        fi
21673
21674        LIBS="$save_LIBS"
21675        CFLAGS="$save_CFLAGS"
21676        # More AIX lossage: must compile with xlc_r or cc_r
21677	if test x"$GCC" != xyes; then
21678          for ac_prog in xlc_r cc_r
21679do
21680  # Extract the first word of "$ac_prog", so it can be a program name with args.
21681set dummy $ac_prog; ac_word=$2
21682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21683$as_echo_n "checking for $ac_word... " >&6; }
21684if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21685  $as_echo_n "(cached) " >&6
21686else
21687  if test -n "$PTHREAD_CC"; then
21688  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21689else
21690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21691for as_dir in $PATH
21692do
21693  IFS=$as_save_IFS
21694  test -z "$as_dir" && as_dir=.
21695    for ac_exec_ext in '' $ac_executable_extensions; do
21696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21697    ac_cv_prog_PTHREAD_CC="$ac_prog"
21698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21699    break 2
21700  fi
21701done
21702  done
21703IFS=$as_save_IFS
21704
21705fi
21706fi
21707PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21708if test -n "$PTHREAD_CC"; then
21709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21710$as_echo "$PTHREAD_CC" >&6; }
21711else
21712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713$as_echo "no" >&6; }
21714fi
21715
21716
21717  test -n "$PTHREAD_CC" && break
21718done
21719test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21720
21721        else
21722          PTHREAD_CC=$CC
21723	fi
21724
21725	# The next part tries to detect GCC inconsistency with -shared on some
21726	# architectures and systems. The problem is that in certain
21727	# configurations, when -shared is specified, GCC "forgets" to
21728	# internally use various flags which are still necessary.
21729
21730	#
21731	# Prepare the flags
21732	#
21733	save_CFLAGS="$CFLAGS"
21734	save_LIBS="$LIBS"
21735	save_CC="$CC"
21736
21737	# Try with the flags determined by the earlier checks.
21738	#
21739	# -Wl,-z,defs forces link-time symbol resolution, so that the
21740	# linking checks with -shared actually have any value
21741	#
21742	# FIXME: -fPIC is required for -shared on many architectures,
21743	# so we specify it here, but the right way would probably be to
21744	# properly detect whether it is actually required.
21745	CFLAGS="-shared -fPIC $CFLAGS $PTHREAD_CFLAGS"
21746	LIBS="$PTHREAD_LIBS $LIBS"
21747	CC="$PTHREAD_CC"
21748
21749	# In order not to create several levels of indentation, we test
21750	# the value of "$done" until we find the cure or run out of ideas.
21751	done="no"
21752
21753	# First, make sure the CFLAGS we added are actually accepted by our
21754	# compiler.  If not (and OS X's ld, for instance, does not accept -z),
21755	# then we can't do this test.
21756	if test x"$done" = xno; then
21757	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
21758$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
21759	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760/* end confdefs.h.  */
21761
21762int
21763main ()
21764{
21765
21766  ;
21767  return 0;
21768}
21769_ACEOF
21770if ac_fn_c_try_link "$LINENO"; then :
21771
21772else
21773  done=yes
21774fi
21775rm -f core conftest.err conftest.$ac_objext \
21776    conftest$ac_exeext conftest.$ac_ext
21777
21778	   if test "x$done" = xyes ; then
21779	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21780$as_echo "no" >&6; }
21781	   else
21782	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21783$as_echo "yes" >&6; }
21784	   fi
21785	fi
21786
21787	done="no"
21788	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
21789$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
21790	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21791/* end confdefs.h.  */
21792#include <pthread.h>
21793int
21794main ()
21795{
21796pthread_t th; pthread_join(th, 0);
21797	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21798	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21799  ;
21800  return 0;
21801}
21802_ACEOF
21803if ac_fn_c_try_link "$LINENO"; then :
21804  done=yes
21805fi
21806rm -f core conftest.err conftest.$ac_objext \
21807    conftest$ac_exeext conftest.$ac_ext
21808
21809	   if test "x$done" = xyes; then
21810	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21811$as_echo "yes" >&6; }
21812	   else
21813	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21814$as_echo "no" >&6; }
21815	   fi
21816
21817	#
21818	# Linux gcc on some architectures such as mips/mipsel forgets
21819	# about -lpthread
21820	#
21821	if test x"$done" = xno; then
21822	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
21823$as_echo_n "checking whether -lpthread fixes that... " >&6; }
21824	   LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
21825	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826/* end confdefs.h.  */
21827#include <pthread.h>
21828int
21829main ()
21830{
21831pthread_t th; pthread_join(th, 0);
21832	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21833	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21834  ;
21835  return 0;
21836}
21837_ACEOF
21838if ac_fn_c_try_link "$LINENO"; then :
21839  done=yes
21840fi
21841rm -f core conftest.err conftest.$ac_objext \
21842    conftest$ac_exeext conftest.$ac_ext
21843
21844	   if test "x$done" = xyes; then
21845	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21846$as_echo "yes" >&6; }
21847	      PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
21848	   else
21849	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850$as_echo "no" >&6; }
21851	   fi
21852	fi
21853	#
21854	# FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
21855	#
21856	if test x"$done" = xno; then
21857	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
21858$as_echo_n "checking whether -lc_r fixes that... " >&6; }
21859	   LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
21860	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861/* end confdefs.h.  */
21862#include <pthread.h>
21863int
21864main ()
21865{
21866pthread_t th; pthread_join(th, 0);
21867	        pthread_attr_init(0); pthread_cleanup_push(0, 0);
21868	        pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21869  ;
21870  return 0;
21871}
21872_ACEOF
21873if ac_fn_c_try_link "$LINENO"; then :
21874  done=yes
21875fi
21876rm -f core conftest.err conftest.$ac_objext \
21877    conftest$ac_exeext conftest.$ac_ext
21878
21879	   if test "x$done" = xyes; then
21880	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21881$as_echo "yes" >&6; }
21882	      PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
21883	   else
21884	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885$as_echo "no" >&6; }
21886	   fi
21887	fi
21888	if test x"$done" = xno; then
21889	   # OK, we have run out of ideas
21890	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
21891$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
21892
21893	   # so it's not safe to assume that we may use pthreads
21894	   acx_pthread_ok=no
21895	fi
21896
21897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
21898$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
21899	CFLAGS="-nostdlib $CFLAGS"
21900	# we need c with nostdlib
21901	LIBS="$LIBS -lc"
21902	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903/* end confdefs.h.  */
21904#include <pthread.h>
21905int
21906main ()
21907{
21908pthread_t th; pthread_join(th, 0);
21909	       pthread_attr_init(0); pthread_cleanup_push(0, 0);
21910	       pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21911  ;
21912  return 0;
21913}
21914_ACEOF
21915if ac_fn_c_try_link "$LINENO"; then :
21916  done=yes
21917else
21918  done=no
21919fi
21920rm -f core conftest.err conftest.$ac_objext \
21921    conftest$ac_exeext conftest.$ac_ext
21922
21923	if test "x$done" = xyes; then
21924	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21925$as_echo "yes" >&6; }
21926	else
21927	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21928$as_echo "no" >&6; }
21929	fi
21930
21931	if test x"$done" = xno; then
21932	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
21933$as_echo_n "checking whether -lpthread saves the day... " >&6; }
21934	   LIBS="-lpthread $LIBS"
21935	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936/* end confdefs.h.  */
21937#include <pthread.h>
21938int
21939main ()
21940{
21941pthread_t th; pthread_join(th, 0);
21942	       pthread_attr_init(0); pthread_cleanup_push(0, 0);
21943	       pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21944  ;
21945  return 0;
21946}
21947_ACEOF
21948if ac_fn_c_try_link "$LINENO"; then :
21949  done=yes
21950else
21951  done=no
21952fi
21953rm -f core conftest.err conftest.$ac_objext \
21954    conftest$ac_exeext conftest.$ac_ext
21955
21956	   if test "x$done" = xyes; then
21957	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21958$as_echo "yes" >&6; }
21959	      PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
21960	   else
21961	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21962$as_echo "no" >&6; }
21963	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
21964$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
21965	   fi
21966	fi
21967
21968	CFLAGS="$save_CFLAGS"
21969	LIBS="$save_LIBS"
21970	CC="$save_CC"
21971else
21972        PTHREAD_CC="$CC"
21973fi
21974
21975
21976
21977
21978
21979# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21980if test x"$acx_pthread_ok" = xyes; then
21981
21982$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21983
21984        :
21985else
21986        acx_pthread_ok=no
21987
21988      as_fn_error $? "Pthread library not found. Please set PTHREAD_CFLAGS and PTHREAD_LIBS correctly for your setup" "$LINENO" 5
21989
21990fi
21991ac_ext=c
21992ac_cpp='$CPP $CPPFLAGS'
21993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995ac_compiler_gnu=$ac_cv_c_compiler_gnu
21996
21997
21998    CC="$PTHREAD_CC"
21999
22000    # Set the correct PTHREAD flags and, if needed, change the compiler to one that is pthread-enabled.
22001
22002
22003
22004
22005
22006  ## Subsection 0.3) Check for a way to get the number of cores installed on the system.
22007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sysconf(_SC_NPROCESSORS_ONLN) is supported" >&5
22008$as_echo_n "checking if sysconf(_SC_NPROCESSORS_ONLN) is supported... " >&6; }
22009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22010/* end confdefs.h.  */
22011
22012
22013          #include <unistd.h>
22014           int main() {
22015             int cores = sysconf(_SC_NPROCESSORS_ONLN);
22016             return 0;
22017           }
22018
22019
22020
22021_ACEOF
22022if ac_fn_c_try_compile "$LINENO"; then :
22023  have_sysconf=yes
22024else
22025  have_sysconf=no
22026
22027fi
22028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029
22030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sysconf" >&5
22031$as_echo "$have_sysconf" >&6; }
22032    if test "$have_sysconf" == "yes"; then :
22033
22034
22035$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
22036
22037
22038fi
22039
22040
22041  ## Subsection 0.4) Check for a custom malloc implementation with threading support and a good
22042  ## caching algorithm.
22043    if test "$have_tcmalloc" == "yes"; then :
22044
22045      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc_minimal" >&5
22046$as_echo_n "checking for malloc in -ltcmalloc_minimal... " >&6; }
22047if ${ac_cv_lib_tcmalloc_minimal_malloc+:} false; then :
22048  $as_echo_n "(cached) " >&6
22049else
22050  ac_check_lib_save_LIBS=$LIBS
22051LIBS="-ltcmalloc_minimal  $LIBS"
22052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053/* end confdefs.h.  */
22054
22055/* Override any GCC internal prototype to avoid an error.
22056   Use char because int might match the return type of a GCC
22057   builtin and then its argument prototype would still apply.  */
22058#ifdef __cplusplus
22059extern "C"
22060#endif
22061char malloc ();
22062int
22063main ()
22064{
22065return malloc ();
22066  ;
22067  return 0;
22068}
22069_ACEOF
22070if ac_fn_c_try_link "$LINENO"; then :
22071  ac_cv_lib_tcmalloc_minimal_malloc=yes
22072else
22073  ac_cv_lib_tcmalloc_minimal_malloc=no
22074fi
22075rm -f core conftest.err conftest.$ac_objext \
22076    conftest$ac_exeext conftest.$ac_ext
22077LIBS=$ac_check_lib_save_LIBS
22078fi
22079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_malloc" >&5
22080$as_echo "$ac_cv_lib_tcmalloc_minimal_malloc" >&6; }
22081if test "x$ac_cv_lib_tcmalloc_minimal_malloc" = xyes; then :
22082  cat >>confdefs.h <<_ACEOF
22083#define HAVE_LIBTCMALLOC_MINIMAL 1
22084_ACEOF
22085
22086  LIBS="-ltcmalloc_minimal $LIBS"
22087
22088fi
22089
22090
22091fi
22092
22093
22094
22095
22096##
22097## Section 1) Input/Output routines
22098##
22099
22100  # The function vsnprintf() is used in input-output.c
22101  # to handle the mps_error() outputs in a proper way.
22102  for ac_func in snprintf vsnprintf
22103do :
22104  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22105ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22106if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22107  cat >>confdefs.h <<_ACEOF
22108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22109_ACEOF
22110
22111fi
22112done
22113
22114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
22115$as_echo_n "checking for working snprintf... " >&6; }
22116if ${ac_cv_have_working_snprintf+:} false; then :
22117  $as_echo_n "(cached) " >&6
22118else
22119  if test "$cross_compiling" = yes; then :
22120  ac_cv_have_working_snprintf=cross
22121else
22122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123/* end confdefs.h.  */
22124#include <stdio.h>
22125
22126int main(void)
22127{
22128    char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22129    char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22130    int i;
22131    i = snprintf (bufs, 2, "%s", "111");
22132    if (strcmp (bufs, "1")) exit (1);
22133    if (i != 3) exit (1);
22134    i = snprintf (bufd, 2, "%d", 111);
22135    if (strcmp (bufd, "1")) exit (1);
22136    if (i != 3) exit (1);
22137    exit(0);
22138}
22139_ACEOF
22140if ac_fn_c_try_run "$LINENO"; then :
22141  ac_cv_have_working_snprintf=yes
22142else
22143  ac_cv_have_working_snprintf=no
22144fi
22145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22146  conftest.$ac_objext conftest.beam conftest.$ac_ext
22147fi
22148
22149fi
22150
22151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_snprintf" >&5
22152$as_echo "$ac_cv_have_working_snprintf" >&6; }
22153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
22154$as_echo_n "checking for working vsnprintf... " >&6; }
22155if ${ac_cv_have_working_vsnprintf+:} false; then :
22156  $as_echo_n "(cached) " >&6
22157else
22158  if test "$cross_compiling" = yes; then :
22159  ac_cv_have_working_vsnprintf=cross
22160else
22161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162/* end confdefs.h.  */
22163#include <stdio.h>
22164#include <stdarg.h>
22165
22166int my_vsnprintf (char *buf, const char *tmpl, ...)
22167{
22168    int i;
22169    va_list args;
22170    va_start (args, tmpl);
22171    i = vsnprintf (buf, 2, tmpl, args);
22172    va_end (args);
22173    return i;
22174}
22175
22176int main(void)
22177{
22178    char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22179    char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22180    int i;
22181    i = my_vsnprintf (bufs, "%s", "111");
22182    if (strcmp (bufs, "1")) exit (1);
22183    if (i != 3) exit (1);
22184    i = my_vsnprintf (bufd, "%d", 111);
22185    if (strcmp (bufd, "1")) exit (1);
22186    if (i != 3) exit (1);
22187    exit(0);
22188}
22189_ACEOF
22190if ac_fn_c_try_run "$LINENO"; then :
22191  ac_cv_have_working_vsnprintf=yes
22192else
22193  ac_cv_have_working_vsnprintf=no
22194fi
22195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22196  conftest.$ac_objext conftest.beam conftest.$ac_ext
22197fi
22198
22199fi
22200
22201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_vsnprintf" >&5
22202$as_echo "$ac_cv_have_working_vsnprintf" >&6; }
22203if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22204  case " $LIBOBJS " in
22205  *" snprintf.$ac_objext "* ) ;;
22206  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22207 ;;
22208esac
22209
22210  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22211$as_echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
22212
22213$as_echo "#define PREFER_PORTABLE_SNPRINTF 1" >>confdefs.h
22214
22215fi
22216
22217  # Checks for basic header files that should be present on
22218  # the system.
22219  for ac_header in stdlib.h string.h unistd.h
22220do :
22221  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22224  cat >>confdefs.h <<_ACEOF
22225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22226_ACEOF
22227
22228fi
22229
22230done
22231
22232
22233  # getline is used to parse the input files.
22234  for ac_func in getline
22235do :
22236  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
22237if test "x$ac_cv_func_getline" = xyes; then :
22238  cat >>confdefs.h <<_ACEOF
22239#define HAVE_GETLINE 1
22240_ACEOF
22241
22242fi
22243done
22244
22245
22246  # strndup is used in the source, but we provide a fallback
22247  # implementation if it's not available in the system.
22248  for ac_func in strndup
22249do :
22250  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22251if test "x$ac_cv_func_strndup" = xyes; then :
22252  cat >>confdefs.h <<_ACEOF
22253#define HAVE_STRNDUP 1
22254_ACEOF
22255
22256fi
22257done
22258
22259
22260
22261##
22262## Section 2) Mathematical routines and libaries
22263##
22264
22265  # If available, the <complex.h> header will be used since
22266  # it will probably provide a better (and faster) implementation
22267  # of floating point complex arithmetic.
22268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 complex.h is supported from the C++ compiler" >&5
22269$as_echo_n "checking if C99 complex.h is supported from the C++ compiler... " >&6; }
22270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271/* end confdefs.h.  */
22272
22273
22274      extern "C" {
22275        #include <complex.h>
22276      }
22277
22278      int main() {
22279        _Complex double a;
22280        return 0;
22281      }
22282
22283_ACEOF
22284if ac_fn_c_try_compile "$LINENO"; then :
22285  have_complex_h=yes
22286else
22287  have_complex_h=no
22288
22289fi
22290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_complex_h" >&5
22292$as_echo "$have_complex_h" >&6; }
22293
22294  if test x$have_complex_h == xyes; then :
22295
22296    MPS_USE_BUILTIN_COMPLEX=0
22297
22298
22299else
22300
22301    COMPLEX_CFLAGS="-DMPS_USE_BUILTIN_COMPLEX"
22302    MPS_USE_BUILTIN_COMPLEX=1
22303
22304
22305fi
22306
22307  # The general C math library.
22308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
22309$as_echo_n "checking for pow in -lm... " >&6; }
22310if ${ac_cv_lib_m_pow+:} false; then :
22311  $as_echo_n "(cached) " >&6
22312else
22313  ac_check_lib_save_LIBS=$LIBS
22314LIBS="-lm  $LIBS"
22315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316/* end confdefs.h.  */
22317
22318/* Override any GCC internal prototype to avoid an error.
22319   Use char because int might match the return type of a GCC
22320   builtin and then its argument prototype would still apply.  */
22321#ifdef __cplusplus
22322extern "C"
22323#endif
22324char pow ();
22325int
22326main ()
22327{
22328return pow ();
22329  ;
22330  return 0;
22331}
22332_ACEOF
22333if ac_fn_c_try_link "$LINENO"; then :
22334  ac_cv_lib_m_pow=yes
22335else
22336  ac_cv_lib_m_pow=no
22337fi
22338rm -f core conftest.err conftest.$ac_objext \
22339    conftest$ac_exeext conftest.$ac_ext
22340LIBS=$ac_check_lib_save_LIBS
22341fi
22342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
22343$as_echo "$ac_cv_lib_m_pow" >&6; }
22344if test "x$ac_cv_lib_m_pow" = xyes; then :
22345  cat >>confdefs.h <<_ACEOF
22346#define HAVE_LIBM 1
22347_ACEOF
22348
22349  LIBS="-lm $LIBS"
22350
22351fi
22352
22353
22354  ## Subsection 2.1) Check for GMP
22355
22356    # Add GMP_CFLAGS and GMP_LIBS to CFLAGS and LDFLAGS in case they are set.
22357    # This is an easy way for the user to override system libgmp or to provide
22358    # its location if it's not installed system-wide.
22359    if test -z $GMP_CFLAGS; then :
22360
22361else
22362
22363      CFLAGS="$GMP_CFLAGS $CFLAGS"
22364
22365fi
22366    if test -z $GMP_LDFLAGS; then :
22367
22368else
22369
22370      LDFLAGS="$GMP_LDFLAGS $LDFLAGS"
22371
22372fi
22373    if test -z $GMP_LIBS; then :
22374
22375else
22376
22377      LDFLAGS="$GMP_LIBS $LDFLAGS"
22378
22379fi
22380
22381
22382
22383
22384    LIBMPS_CFLAGS="-D_REENTRANT -Wall $COMPLEX_CFLAGS $LIBMPS_CFLAGS"
22385
22386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init2 in -lgmp" >&5
22387$as_echo_n "checking for __gmpz_init2 in -lgmp... " >&6; }
22388if ${ac_cv_lib_gmp___gmpz_init2+:} false; then :
22389  $as_echo_n "(cached) " >&6
22390else
22391  ac_check_lib_save_LIBS=$LIBS
22392LIBS="-lgmp  $LIBS"
22393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394/* end confdefs.h.  */
22395
22396/* Override any GCC internal prototype to avoid an error.
22397   Use char because int might match the return type of a GCC
22398   builtin and then its argument prototype would still apply.  */
22399#ifdef __cplusplus
22400extern "C"
22401#endif
22402char __gmpz_init2 ();
22403int
22404main ()
22405{
22406return __gmpz_init2 ();
22407  ;
22408  return 0;
22409}
22410_ACEOF
22411if ac_fn_c_try_link "$LINENO"; then :
22412  ac_cv_lib_gmp___gmpz_init2=yes
22413else
22414  ac_cv_lib_gmp___gmpz_init2=no
22415fi
22416rm -f core conftest.err conftest.$ac_objext \
22417    conftest$ac_exeext conftest.$ac_ext
22418LIBS=$ac_check_lib_save_LIBS
22419fi
22420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init2" >&5
22421$as_echo "$ac_cv_lib_gmp___gmpz_init2" >&6; }
22422if test "x$ac_cv_lib_gmp___gmpz_init2" = xyes; then :
22423  cat >>confdefs.h <<_ACEOF
22424#define HAVE_LIBGMP 1
22425_ACEOF
22426
22427  LIBS="-lgmp $LIBS"
22428
22429fi
22430
22431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5
22432$as_echo_n "checking for main in -lgmpxx... " >&6; }
22433if ${ac_cv_lib_gmpxx_main+:} false; then :
22434  $as_echo_n "(cached) " >&6
22435else
22436  ac_check_lib_save_LIBS=$LIBS
22437LIBS="-lgmpxx  $LIBS"
22438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439/* end confdefs.h.  */
22440
22441
22442int
22443main ()
22444{
22445return main ();
22446  ;
22447  return 0;
22448}
22449_ACEOF
22450if ac_fn_c_try_link "$LINENO"; then :
22451  ac_cv_lib_gmpxx_main=yes
22452else
22453  ac_cv_lib_gmpxx_main=no
22454fi
22455rm -f core conftest.err conftest.$ac_objext \
22456    conftest$ac_exeext conftest.$ac_ext
22457LIBS=$ac_check_lib_save_LIBS
22458fi
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5
22460$as_echo "$ac_cv_lib_gmpxx_main" >&6; }
22461if test "x$ac_cv_lib_gmpxx_main" = xyes; then :
22462  cat >>confdefs.h <<_ACEOF
22463#define HAVE_LIBGMPXX 1
22464_ACEOF
22465
22466  LIBS="-lgmpxx $LIBS"
22467
22468fi
22469
22470    for ac_header in gmp.h
22471do :
22472  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22473if test "x$ac_cv_header_gmp_h" = xyes; then :
22474  cat >>confdefs.h <<_ACEOF
22475#define HAVE_GMP_H 1
22476_ACEOF
22477 mpsolve_found_gmp_headers=yes; break;
22478fi
22479
22480done
22481
22482
22483    # Raise an error if GMP is not correctly installed on this system.
22484    if test "x$mpsolve_found_gmp_headers" != "xyes"; then :
22485  as_fn_error $? "Unable to find gmp headers, please install libgmp-dev" "$LINENO" 5
22486fi
22487
22488##
22489## Section 3) Check support: try to find all the necessary headers and libraries
22490## that are needed to run the test cases. This way MPSolve will be checked by the
22491## make check command.
22492##
22493
22494  # Check for the check module, so MPSolve tests can be run.
22495
22496
22497
22498
22499
22500
22501
22502if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22503	if test -n "$ac_tool_prefix"; then
22504  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22505set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22507$as_echo_n "checking for $ac_word... " >&6; }
22508if ${ac_cv_path_PKG_CONFIG+:} false; then :
22509  $as_echo_n "(cached) " >&6
22510else
22511  case $PKG_CONFIG in
22512  [\\/]* | ?:[\\/]*)
22513  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22514  ;;
22515  *)
22516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22517for as_dir in $PATH
22518do
22519  IFS=$as_save_IFS
22520  test -z "$as_dir" && as_dir=.
22521    for ac_exec_ext in '' $ac_executable_extensions; do
22522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22523    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22525    break 2
22526  fi
22527done
22528  done
22529IFS=$as_save_IFS
22530
22531  ;;
22532esac
22533fi
22534PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22535if test -n "$PKG_CONFIG"; then
22536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22537$as_echo "$PKG_CONFIG" >&6; }
22538else
22539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22540$as_echo "no" >&6; }
22541fi
22542
22543
22544fi
22545if test -z "$ac_cv_path_PKG_CONFIG"; then
22546  ac_pt_PKG_CONFIG=$PKG_CONFIG
22547  # Extract the first word of "pkg-config", so it can be a program name with args.
22548set dummy pkg-config; ac_word=$2
22549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22550$as_echo_n "checking for $ac_word... " >&6; }
22551if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22552  $as_echo_n "(cached) " >&6
22553else
22554  case $ac_pt_PKG_CONFIG in
22555  [\\/]* | ?:[\\/]*)
22556  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22557  ;;
22558  *)
22559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22560for as_dir in $PATH
22561do
22562  IFS=$as_save_IFS
22563  test -z "$as_dir" && as_dir=.
22564    for ac_exec_ext in '' $ac_executable_extensions; do
22565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22566    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568    break 2
22569  fi
22570done
22571  done
22572IFS=$as_save_IFS
22573
22574  ;;
22575esac
22576fi
22577ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22578if test -n "$ac_pt_PKG_CONFIG"; then
22579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22580$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22581else
22582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583$as_echo "no" >&6; }
22584fi
22585
22586  if test "x$ac_pt_PKG_CONFIG" = x; then
22587    PKG_CONFIG=""
22588  else
22589    case $cross_compiling:$ac_tool_warned in
22590yes:)
22591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22593ac_tool_warned=yes ;;
22594esac
22595    PKG_CONFIG=$ac_pt_PKG_CONFIG
22596  fi
22597else
22598  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22599fi
22600
22601fi
22602if test -n "$PKG_CONFIG"; then
22603	_pkg_min_version=0.9.0
22604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22605$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22606	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22608$as_echo "yes" >&6; }
22609	else
22610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22611$as_echo "no" >&6; }
22612		PKG_CONFIG=""
22613	fi
22614fi
22615
22616pkg_failed=no
22617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
22618$as_echo_n "checking for CHECK... " >&6; }
22619
22620if test -n "$CHECK_CFLAGS"; then
22621    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
22622 elif test -n "$PKG_CONFIG"; then
22623    if test -n "$PKG_CONFIG" && \
22624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
22625  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
22626  ac_status=$?
22627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628  test $ac_status = 0; }; then
22629  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
22630		      test "x$?" != "x0" && pkg_failed=yes
22631else
22632  pkg_failed=yes
22633fi
22634 else
22635    pkg_failed=untried
22636fi
22637if test -n "$CHECK_LIBS"; then
22638    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
22639 elif test -n "$PKG_CONFIG"; then
22640    if test -n "$PKG_CONFIG" && \
22641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
22642  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
22643  ac_status=$?
22644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645  test $ac_status = 0; }; then
22646  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
22647		      test "x$?" != "x0" && pkg_failed=yes
22648else
22649  pkg_failed=yes
22650fi
22651 else
22652    pkg_failed=untried
22653fi
22654
22655
22656
22657if test $pkg_failed = yes; then
22658   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659$as_echo "no" >&6; }
22660
22661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22662        _pkg_short_errors_supported=yes
22663else
22664        _pkg_short_errors_supported=no
22665fi
22666        if test $_pkg_short_errors_supported = yes; then
22667	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
22668        else
22669	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
22670        fi
22671	# Put the nasty error message in config.log where it belongs
22672	echo "$CHECK_PKG_ERRORS" >&5
22673
22674	have_check=no
22675elif test $pkg_failed = untried; then
22676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22677$as_echo "no" >&6; }
22678	have_check=no
22679else
22680	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
22681	CHECK_LIBS=$pkg_cv_CHECK_LIBS
22682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22683$as_echo "yes" >&6; }
22684	have_check=yes
22685fi
22686   if test x$have_check = xyes; then
22687  CHECK_TRUE=
22688  CHECK_FALSE='#'
22689else
22690  CHECK_TRUE='#'
22691  CHECK_FALSE=
22692fi
22693
22694
22695
22696
22697
22698
22699
22700
22701##
22702## Section 4) Graphical toolkits: MPSolve has some parts that can be optionally compiled if
22703## the appropriate GUI toolkits are present.
22704##
22705
22706  ## Subsection 4.1) GTK support for mpsolve -x (live approximation tracking)
22707
22708    # Check for the GTK libraries on this system. We can use both GTK 2.0 and GTK 3.0
22709    have_gtk="1"
22710
22711pkg_failed=no
22712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
22713$as_echo_n "checking for GTK... " >&6; }
22714
22715if test -n "$GTK_CFLAGS"; then
22716    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22717 elif test -n "$PKG_CONFIG"; then
22718    if test -n "$PKG_CONFIG" && \
22719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
22720  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
22721  ac_status=$?
22722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723  test $ac_status = 0; }; then
22724  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
22725		      test "x$?" != "x0" && pkg_failed=yes
22726else
22727  pkg_failed=yes
22728fi
22729 else
22730    pkg_failed=untried
22731fi
22732if test -n "$GTK_LIBS"; then
22733    pkg_cv_GTK_LIBS="$GTK_LIBS"
22734 elif test -n "$PKG_CONFIG"; then
22735    if test -n "$PKG_CONFIG" && \
22736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
22737  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
22738  ac_status=$?
22739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22740  test $ac_status = 0; }; then
22741  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
22742		      test "x$?" != "x0" && pkg_failed=yes
22743else
22744  pkg_failed=yes
22745fi
22746 else
22747    pkg_failed=untried
22748fi
22749
22750
22751
22752if test $pkg_failed = yes; then
22753   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22754$as_echo "no" >&6; }
22755
22756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22757        _pkg_short_errors_supported=yes
22758else
22759        _pkg_short_errors_supported=no
22760fi
22761        if test $_pkg_short_errors_supported = yes; then
22762	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
22763        else
22764	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
22765        fi
22766	# Put the nasty error message in config.log where it belongs
22767	echo "$GTK_PKG_ERRORS" >&5
22768
22769
22770
22771pkg_failed=no
22772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
22773$as_echo_n "checking for GTK... " >&6; }
22774
22775if test -n "$GTK_CFLAGS"; then
22776    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22777 elif test -n "$PKG_CONFIG"; then
22778    if test -n "$PKG_CONFIG" && \
22779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22780  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22781  ac_status=$?
22782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22783  test $ac_status = 0; }; then
22784  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
22785		      test "x$?" != "x0" && pkg_failed=yes
22786else
22787  pkg_failed=yes
22788fi
22789 else
22790    pkg_failed=untried
22791fi
22792if test -n "$GTK_LIBS"; then
22793    pkg_cv_GTK_LIBS="$GTK_LIBS"
22794 elif test -n "$PKG_CONFIG"; then
22795    if test -n "$PKG_CONFIG" && \
22796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22797  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22798  ac_status=$?
22799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800  test $ac_status = 0; }; then
22801  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
22802		      test "x$?" != "x0" && pkg_failed=yes
22803else
22804  pkg_failed=yes
22805fi
22806 else
22807    pkg_failed=untried
22808fi
22809
22810
22811
22812if test $pkg_failed = yes; then
22813   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814$as_echo "no" >&6; }
22815
22816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22817        _pkg_short_errors_supported=yes
22818else
22819        _pkg_short_errors_supported=no
22820fi
22821        if test $_pkg_short_errors_supported = yes; then
22822	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22823        else
22824	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22825        fi
22826	# Put the nasty error message in config.log where it belongs
22827	echo "$GTK_PKG_ERRORS" >&5
22828
22829
22830            have_gtk="0"
22831
22832elif test $pkg_failed = untried; then
22833     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22834$as_echo "no" >&6; }
22835
22836            have_gtk="0"
22837
22838else
22839	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22840	GTK_LIBS=$pkg_cv_GTK_LIBS
22841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22842$as_echo "yes" >&6; }
22843
22844fi
22845
22846elif test $pkg_failed = untried; then
22847     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22848$as_echo "no" >&6; }
22849
22850
22851pkg_failed=no
22852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
22853$as_echo_n "checking for GTK... " >&6; }
22854
22855if test -n "$GTK_CFLAGS"; then
22856    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22857 elif test -n "$PKG_CONFIG"; then
22858    if test -n "$PKG_CONFIG" && \
22859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22860  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22861  ac_status=$?
22862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863  test $ac_status = 0; }; then
22864  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
22865		      test "x$?" != "x0" && pkg_failed=yes
22866else
22867  pkg_failed=yes
22868fi
22869 else
22870    pkg_failed=untried
22871fi
22872if test -n "$GTK_LIBS"; then
22873    pkg_cv_GTK_LIBS="$GTK_LIBS"
22874 elif test -n "$PKG_CONFIG"; then
22875    if test -n "$PKG_CONFIG" && \
22876    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22877  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22878  ac_status=$?
22879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22880  test $ac_status = 0; }; then
22881  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
22882		      test "x$?" != "x0" && pkg_failed=yes
22883else
22884  pkg_failed=yes
22885fi
22886 else
22887    pkg_failed=untried
22888fi
22889
22890
22891
22892if test $pkg_failed = yes; then
22893   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22894$as_echo "no" >&6; }
22895
22896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22897        _pkg_short_errors_supported=yes
22898else
22899        _pkg_short_errors_supported=no
22900fi
22901        if test $_pkg_short_errors_supported = yes; then
22902	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22903        else
22904	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22905        fi
22906	# Put the nasty error message in config.log where it belongs
22907	echo "$GTK_PKG_ERRORS" >&5
22908
22909
22910            have_gtk="0"
22911
22912elif test $pkg_failed = untried; then
22913     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22914$as_echo "no" >&6; }
22915
22916            have_gtk="0"
22917
22918else
22919	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22920	GTK_LIBS=$pkg_cv_GTK_LIBS
22921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922$as_echo "yes" >&6; }
22923
22924fi
22925
22926else
22927	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22928	GTK_LIBS=$pkg_cv_GTK_LIBS
22929        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22930$as_echo "yes" >&6; }
22931
22932fi
22933
22934    if test x$have_gtk = x1; then :
22935
22936
22937$as_echo "#define HAVE_GTK \$have_gtk" >>confdefs.h
22938
22939
22940fi
22941
22942
22943
22944
22945    # Check that we have also the cairo graphic library. This will be already bundled
22946    # in GTK3 but is not to be taken for granted in GTK2.
22947
22948pkg_failed=no
22949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
22950$as_echo_n "checking for CAIRO... " >&6; }
22951
22952if test -n "$CAIRO_CFLAGS"; then
22953    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
22954 elif test -n "$PKG_CONFIG"; then
22955    if test -n "$PKG_CONFIG" && \
22956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
22957  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
22958  ac_status=$?
22959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960  test $ac_status = 0; }; then
22961  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
22962		      test "x$?" != "x0" && pkg_failed=yes
22963else
22964  pkg_failed=yes
22965fi
22966 else
22967    pkg_failed=untried
22968fi
22969if test -n "$CAIRO_LIBS"; then
22970    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
22971 elif test -n "$PKG_CONFIG"; then
22972    if test -n "$PKG_CONFIG" && \
22973    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
22974  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
22975  ac_status=$?
22976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22977  test $ac_status = 0; }; then
22978  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
22979		      test "x$?" != "x0" && pkg_failed=yes
22980else
22981  pkg_failed=yes
22982fi
22983 else
22984    pkg_failed=untried
22985fi
22986
22987
22988
22989if test $pkg_failed = yes; then
22990   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991$as_echo "no" >&6; }
22992
22993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22994        _pkg_short_errors_supported=yes
22995else
22996        _pkg_short_errors_supported=no
22997fi
22998        if test $_pkg_short_errors_supported = yes; then
22999	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
23000        else
23001	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
23002        fi
23003	# Put the nasty error message in config.log where it belongs
23004	echo "$CAIRO_PKG_ERRORS" >&5
23005
23006	have_cairo="0"
23007elif test $pkg_failed = untried; then
23008     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23009$as_echo "no" >&6; }
23010	have_cairo="0"
23011else
23012	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
23013	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
23014        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23015$as_echo "yes" >&6; }
23016	have_cairo="1"
23017fi
23018
23019    if test x$have_cairo = x1; then :
23020
23021
23022$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
23023
23024
23025fi
23026
23027
23028
23029
23030    if test x$have_gtk == x1 && test x$have_graphical_debugger == xyes && test x$have_cairo == x1; then :
23031
23032
23033$as_echo "#define HAVE_GRAPHICAL_DEBUGGER 1" >>confdefs.h
23034
23035
23036fi
23037
23038##
23039## Section 5) XMPsolve: the MPSolve graphical user interface.
23040##
23041
23042  # Search qmake and Qt related things, so we can build
23043  # MPSolve UI. Don't build the UI if the user has manually
23044  # disabled it.
23045  QT_PROGRAMS=
23046  if test "$build_ui" == "yes"; then :
23047
23048
23049	# The case QML is simpler since we have to require Qt5. Otherwise try to
23050	# test for both Qt4 and Qt5, and choose the best.
23051	if test x$enable_qml_ui = xyes; then :
23052
23053		have_qt4=no
23054
23055pkg_failed=no
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
23057$as_echo_n "checking for QT5... " >&6; }
23058
23059if test -n "$QT5_CFLAGS"; then
23060    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
23061 elif test -n "$PKG_CONFIG"; then
23062    if test -n "$PKG_CONFIG" && \
23063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 \""; } >&5
23064  ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 ") 2>&5
23065  ac_status=$?
23066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067  test $ac_status = 0; }; then
23068  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>/dev/null`
23069		      test "x$?" != "x0" && pkg_failed=yes
23070else
23071  pkg_failed=yes
23072fi
23073 else
23074    pkg_failed=untried
23075fi
23076if test -n "$QT5_LIBS"; then
23077    pkg_cv_QT5_LIBS="$QT5_LIBS"
23078 elif test -n "$PKG_CONFIG"; then
23079    if test -n "$PKG_CONFIG" && \
23080    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 \""; } >&5
23081  ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 ") 2>&5
23082  ac_status=$?
23083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23084  test $ac_status = 0; }; then
23085  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>/dev/null`
23086		      test "x$?" != "x0" && pkg_failed=yes
23087else
23088  pkg_failed=yes
23089fi
23090 else
23091    pkg_failed=untried
23092fi
23093
23094
23095
23096if test $pkg_failed = yes; then
23097   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098$as_echo "no" >&6; }
23099
23100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23101        _pkg_short_errors_supported=yes
23102else
23103        _pkg_short_errors_supported=no
23104fi
23105        if test $_pkg_short_errors_supported = yes; then
23106	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>&1`
23107        else
23108	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>&1`
23109        fi
23110	# Put the nasty error message in config.log where it belongs
23111	echo "$QT5_PKG_ERRORS" >&5
23112
23113	have_qt5=no
23114elif test $pkg_failed = untried; then
23115     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23116$as_echo "no" >&6; }
23117	have_qt5=no
23118else
23119	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
23120	QT5_LIBS=$pkg_cv_QT5_LIBS
23121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23122$as_echo "yes" >&6; }
23123	have_qt5=yes
23124fi
23125		QT5_CFLAGS="$QT5_CFLAGS -DMPS_USE_QML"
23126
23127		if test x$have_qt5 = xno; then :
23128  as_fn_error $? "Qt >= 5.1 is needed to enable the QML UI." "$LINENO" 5
23129fi
23130
23131else
23132
23133
23134pkg_failed=no
23135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT4" >&5
23136$as_echo_n "checking for QT4... " >&6; }
23137
23138if test -n "$QT4_CFLAGS"; then
23139    pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
23140 elif test -n "$PKG_CONFIG"; then
23141    if test -n "$PKG_CONFIG" && \
23142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore QtGui \""; } >&5
23143  ($PKG_CONFIG --exists --print-errors " QtCore QtGui ") 2>&5
23144  ac_status=$?
23145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146  test $ac_status = 0; }; then
23147  pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore QtGui " 2>/dev/null`
23148		      test "x$?" != "x0" && pkg_failed=yes
23149else
23150  pkg_failed=yes
23151fi
23152 else
23153    pkg_failed=untried
23154fi
23155if test -n "$QT4_LIBS"; then
23156    pkg_cv_QT4_LIBS="$QT4_LIBS"
23157 elif test -n "$PKG_CONFIG"; then
23158    if test -n "$PKG_CONFIG" && \
23159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore QtGui \""; } >&5
23160  ($PKG_CONFIG --exists --print-errors " QtCore QtGui ") 2>&5
23161  ac_status=$?
23162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163  test $ac_status = 0; }; then
23164  pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore QtGui " 2>/dev/null`
23165		      test "x$?" != "x0" && pkg_failed=yes
23166else
23167  pkg_failed=yes
23168fi
23169 else
23170    pkg_failed=untried
23171fi
23172
23173
23174
23175if test $pkg_failed = yes; then
23176   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23177$as_echo "no" >&6; }
23178
23179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23180        _pkg_short_errors_supported=yes
23181else
23182        _pkg_short_errors_supported=no
23183fi
23184        if test $_pkg_short_errors_supported = yes; then
23185	        QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " QtCore QtGui " 2>&1`
23186        else
23187	        QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " QtCore QtGui " 2>&1`
23188        fi
23189	# Put the nasty error message in config.log where it belongs
23190	echo "$QT4_PKG_ERRORS" >&5
23191
23192	have_qt4=no
23193elif test $pkg_failed = untried; then
23194     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23195$as_echo "no" >&6; }
23196	have_qt4=no
23197else
23198	QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
23199	QT4_LIBS=$pkg_cv_QT4_LIBS
23200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23201$as_echo "yes" >&6; }
23202	have_qt4=yes
23203fi
23204
23205pkg_failed=no
23206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
23207$as_echo_n "checking for QT5... " >&6; }
23208
23209if test -n "$QT5_CFLAGS"; then
23210    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
23211 elif test -n "$PKG_CONFIG"; then
23212    if test -n "$PKG_CONFIG" && \
23213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Widgets \""; } >&5
23214  ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Widgets ") 2>&5
23215  ac_status=$?
23216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23217  test $ac_status = 0; }; then
23218  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core Qt5Gui Qt5Widgets " 2>/dev/null`
23219		      test "x$?" != "x0" && pkg_failed=yes
23220else
23221  pkg_failed=yes
23222fi
23223 else
23224    pkg_failed=untried
23225fi
23226if test -n "$QT5_LIBS"; then
23227    pkg_cv_QT5_LIBS="$QT5_LIBS"
23228 elif test -n "$PKG_CONFIG"; then
23229    if test -n "$PKG_CONFIG" && \
23230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Widgets \""; } >&5
23231  ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Widgets ") 2>&5
23232  ac_status=$?
23233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234  test $ac_status = 0; }; then
23235  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core Qt5Gui Qt5Widgets " 2>/dev/null`
23236		      test "x$?" != "x0" && pkg_failed=yes
23237else
23238  pkg_failed=yes
23239fi
23240 else
23241    pkg_failed=untried
23242fi
23243
23244
23245
23246if test $pkg_failed = yes; then
23247   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23248$as_echo "no" >&6; }
23249
23250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23251        _pkg_short_errors_supported=yes
23252else
23253        _pkg_short_errors_supported=no
23254fi
23255        if test $_pkg_short_errors_supported = yes; then
23256	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Widgets " 2>&1`
23257        else
23258	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Widgets " 2>&1`
23259        fi
23260	# Put the nasty error message in config.log where it belongs
23261	echo "$QT5_PKG_ERRORS" >&5
23262
23263	have_qt5=no
23264elif test $pkg_failed = untried; then
23265     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23266$as_echo "no" >&6; }
23267	have_qt5=no
23268else
23269	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
23270	QT5_LIBS=$pkg_cv_QT5_LIBS
23271        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23272$as_echo "yes" >&6; }
23273	have_qt5=yes
23274fi
23275
23276fi
23277
23278          if test "$have_qt5" == "no" && test "$have_qt4" == "no"; then :
23279
23280	        # No hope to have the UI, just disable it.
23281                { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find Qt4 or Qt5, disabling the graphical UI" >&5
23282$as_echo "$as_me: Could not find Qt4 or Qt5, disabling the graphical UI" >&6;}
23283                QT_PROGRAMS=""
23284
23285else
23286
23287	       QT_PROGRAMS=xmpsolve${EXEEXT}
23288
23289fi
23290
23291          if test "$have_qt5" == "yes"; then :
23292
23293	        # Check for needed programs
23294                for ac_prog in uic-qt5 uic
23295do
23296  # Extract the first word of "$ac_prog", so it can be a program name with args.
23297set dummy $ac_prog; ac_word=$2
23298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23299$as_echo_n "checking for $ac_word... " >&6; }
23300if ${ac_cv_prog_UIC+:} false; then :
23301  $as_echo_n "(cached) " >&6
23302else
23303  if test -n "$UIC"; then
23304  ac_cv_prog_UIC="$UIC" # Let the user override the test.
23305else
23306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23307for as_dir in $PATH
23308do
23309  IFS=$as_save_IFS
23310  test -z "$as_dir" && as_dir=.
23311    for ac_exec_ext in '' $ac_executable_extensions; do
23312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23313    ac_cv_prog_UIC="$ac_prog"
23314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23315    break 2
23316  fi
23317done
23318  done
23319IFS=$as_save_IFS
23320
23321fi
23322fi
23323UIC=$ac_cv_prog_UIC
23324if test -n "$UIC"; then
23325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
23326$as_echo "$UIC" >&6; }
23327else
23328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23329$as_echo "no" >&6; }
23330fi
23331
23332
23333  test -n "$UIC" && break
23334done
23335
23336                for ac_prog in moc-qt5 moc
23337do
23338  # Extract the first word of "$ac_prog", so it can be a program name with args.
23339set dummy $ac_prog; ac_word=$2
23340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23341$as_echo_n "checking for $ac_word... " >&6; }
23342if ${ac_cv_prog_MOC+:} false; then :
23343  $as_echo_n "(cached) " >&6
23344else
23345  if test -n "$MOC"; then
23346  ac_cv_prog_MOC="$MOC" # Let the user override the test.
23347else
23348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23349for as_dir in $PATH
23350do
23351  IFS=$as_save_IFS
23352  test -z "$as_dir" && as_dir=.
23353    for ac_exec_ext in '' $ac_executable_extensions; do
23354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23355    ac_cv_prog_MOC="$ac_prog"
23356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23357    break 2
23358  fi
23359done
23360  done
23361IFS=$as_save_IFS
23362
23363fi
23364fi
23365MOC=$ac_cv_prog_MOC
23366if test -n "$MOC"; then
23367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
23368$as_echo "$MOC" >&6; }
23369else
23370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371$as_echo "no" >&6; }
23372fi
23373
23374
23375  test -n "$MOC" && break
23376done
23377
23378                for ac_prog in rcc-qt5 rcc
23379do
23380  # Extract the first word of "$ac_prog", so it can be a program name with args.
23381set dummy $ac_prog; ac_word=$2
23382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23383$as_echo_n "checking for $ac_word... " >&6; }
23384if ${ac_cv_prog_RCC+:} false; then :
23385  $as_echo_n "(cached) " >&6
23386else
23387  if test -n "$RCC"; then
23388  ac_cv_prog_RCC="$RCC" # Let the user override the test.
23389else
23390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23391for as_dir in $PATH
23392do
23393  IFS=$as_save_IFS
23394  test -z "$as_dir" && as_dir=.
23395    for ac_exec_ext in '' $ac_executable_extensions; do
23396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23397    ac_cv_prog_RCC="$ac_prog"
23398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23399    break 2
23400  fi
23401done
23402  done
23403IFS=$as_save_IFS
23404
23405fi
23406fi
23407RCC=$ac_cv_prog_RCC
23408if test -n "$RCC"; then
23409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
23410$as_echo "$RCC" >&6; }
23411else
23412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23413$as_echo "no" >&6; }
23414fi
23415
23416
23417  test -n "$RCC" && break
23418done
23419
23420
23421                QT_CFLAGS=$QT5_CFLAGS
23422                QT_LDFLAGS=$QT5_LDFLAGS
23423                QT_LIBS=$QT5_LIBS
23424                QT_VERSION=qt5
23425
23426                if test "$UIC" == "" || test "$MOC" == ""; then :
23427
23428                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uic or moc were not found in your path, so Qt5 is not usable" >&5
23429$as_echo "$as_me: WARNING: uic or moc were not found in your path, so Qt5 is not usable" >&2;}
23430                        have_qt5=no
23431
23432fi
23433
23434fi
23435
23436          # Enable Qt4 only if Qt5 was not found, or if the required tools
23437	  # to build the interface are not available.
23438	  if test "$have_qt4" == "yes" && test "$have_qt5" == "no"; then :
23439
23440                  for ac_prog in uic-qt4 uic
23441do
23442  # Extract the first word of "$ac_prog", so it can be a program name with args.
23443set dummy $ac_prog; ac_word=$2
23444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23445$as_echo_n "checking for $ac_word... " >&6; }
23446if ${ac_cv_prog_UIC+:} false; then :
23447  $as_echo_n "(cached) " >&6
23448else
23449  if test -n "$UIC"; then
23450  ac_cv_prog_UIC="$UIC" # Let the user override the test.
23451else
23452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23453for as_dir in $PATH
23454do
23455  IFS=$as_save_IFS
23456  test -z "$as_dir" && as_dir=.
23457    for ac_exec_ext in '' $ac_executable_extensions; do
23458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23459    ac_cv_prog_UIC="$ac_prog"
23460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23461    break 2
23462  fi
23463done
23464  done
23465IFS=$as_save_IFS
23466
23467fi
23468fi
23469UIC=$ac_cv_prog_UIC
23470if test -n "$UIC"; then
23471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
23472$as_echo "$UIC" >&6; }
23473else
23474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23475$as_echo "no" >&6; }
23476fi
23477
23478
23479  test -n "$UIC" && break
23480done
23481
23482                  for ac_prog in moc-qt4 moc
23483do
23484  # Extract the first word of "$ac_prog", so it can be a program name with args.
23485set dummy $ac_prog; ac_word=$2
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23487$as_echo_n "checking for $ac_word... " >&6; }
23488if ${ac_cv_prog_MOC+:} false; then :
23489  $as_echo_n "(cached) " >&6
23490else
23491  if test -n "$MOC"; then
23492  ac_cv_prog_MOC="$MOC" # Let the user override the test.
23493else
23494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23495for as_dir in $PATH
23496do
23497  IFS=$as_save_IFS
23498  test -z "$as_dir" && as_dir=.
23499    for ac_exec_ext in '' $ac_executable_extensions; do
23500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23501    ac_cv_prog_MOC="$ac_prog"
23502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23503    break 2
23504  fi
23505done
23506  done
23507IFS=$as_save_IFS
23508
23509fi
23510fi
23511MOC=$ac_cv_prog_MOC
23512if test -n "$MOC"; then
23513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
23514$as_echo "$MOC" >&6; }
23515else
23516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23517$as_echo "no" >&6; }
23518fi
23519
23520
23521  test -n "$MOC" && break
23522done
23523
23524                  for ac_prog in rcc-qt4 rcc
23525do
23526  # Extract the first word of "$ac_prog", so it can be a program name with args.
23527set dummy $ac_prog; ac_word=$2
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23529$as_echo_n "checking for $ac_word... " >&6; }
23530if ${ac_cv_prog_RCC+:} false; then :
23531  $as_echo_n "(cached) " >&6
23532else
23533  if test -n "$RCC"; then
23534  ac_cv_prog_RCC="$RCC" # Let the user override the test.
23535else
23536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23537for as_dir in $PATH
23538do
23539  IFS=$as_save_IFS
23540  test -z "$as_dir" && as_dir=.
23541    for ac_exec_ext in '' $ac_executable_extensions; do
23542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23543    ac_cv_prog_RCC="$ac_prog"
23544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23545    break 2
23546  fi
23547done
23548  done
23549IFS=$as_save_IFS
23550
23551fi
23552fi
23553RCC=$ac_cv_prog_RCC
23554if test -n "$RCC"; then
23555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
23556$as_echo "$RCC" >&6; }
23557else
23558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23559$as_echo "no" >&6; }
23560fi
23561
23562
23563  test -n "$RCC" && break
23564done
23565
23566
23567                  QT_CFLAGS=$QT4_CFLAGS
23568                  QT_LDFLAGS=$QT4_LDFLAGS
23569                  QT_LIBS=$QT4_LIBS
23570                  QT_VERSION=qt4
23571
23572                  if test "$UIC" == "" || test "$MOC" == ""; then :
23573
23574                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uic and/or moc were not found in your path, so Qt4 is not usable" >&5
23575$as_echo "$as_me: WARNING: uic and/or moc were not found in your path, so Qt4 is not usable" >&2;}
23576                      QT_PROGRAMS=""
23577
23578fi
23579
23580fi # End of have_qt4 == yes && have_qt5 == no
23581
23582          if test x"$have_qt4" == x"no" && test x"$have_qt5" == x"no"; then :
23583
23584            QT_PROGRAMS=""
23585
23586fi
23587
23588	  if test "$QT_PROGRAMS" == ""; then :
23589
23590            have_ui=no
23591            build_ui=no
23592
23593fi
23594
23595fi
23596
23597 if test x"$QT_PROGRAMS" != x""; then
23598  HAVE_UI_TRUE=
23599  HAVE_UI_FALSE='#'
23600else
23601  HAVE_UI_TRUE='#'
23602  HAVE_UI_FALSE=
23603fi
23604
23605
23606
23607
23608
23609
23610
23611
23612#
23613# ===== EXAMPLES ======
23614#
23615# This section contains the checks that are needed in case the user wants to build
23616# the examples contained in the examples/ directory
23617#
23618
23619# Check the existance of mkoctfile to compile octave modules.
23620if test x$build_examples == xyes; then :
23621
23622	for ac_prog in mkoctfile
23623do
23624  # Extract the first word of "$ac_prog", so it can be a program name with args.
23625set dummy $ac_prog; ac_word=$2
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23627$as_echo_n "checking for $ac_word... " >&6; }
23628if ${ac_cv_prog_MKOCTFILE+:} false; then :
23629  $as_echo_n "(cached) " >&6
23630else
23631  if test -n "$MKOCTFILE"; then
23632  ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
23633else
23634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23635for as_dir in $PATH
23636do
23637  IFS=$as_save_IFS
23638  test -z "$as_dir" && as_dir=.
23639    for ac_exec_ext in '' $ac_executable_extensions; do
23640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23641    ac_cv_prog_MKOCTFILE="$ac_prog"
23642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23643    break 2
23644  fi
23645done
23646  done
23647IFS=$as_save_IFS
23648
23649fi
23650fi
23651MKOCTFILE=$ac_cv_prog_MKOCTFILE
23652if test -n "$MKOCTFILE"; then
23653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
23654$as_echo "$MKOCTFILE" >&6; }
23655else
23656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23657$as_echo "no" >&6; }
23658fi
23659
23660
23661  test -n "$MKOCTFILE" && break
23662done
23663
23664	enable_octave=no
23665
23666	# Detect Octave version. We are not able to build the Octave module
23667	# if Octave is older than 3.0
23668	for ac_prog in octave
23669do
23670  # Extract the first word of "$ac_prog", so it can be a program name with args.
23671set dummy $ac_prog; ac_word=$2
23672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23673$as_echo_n "checking for $ac_word... " >&6; }
23674if ${ac_cv_prog_OCTAVE+:} false; then :
23675  $as_echo_n "(cached) " >&6
23676else
23677  if test -n "$OCTAVE"; then
23678  ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
23679else
23680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681for as_dir in $PATH
23682do
23683  IFS=$as_save_IFS
23684  test -z "$as_dir" && as_dir=.
23685    for ac_exec_ext in '' $ac_executable_extensions; do
23686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23687    ac_cv_prog_OCTAVE="$ac_prog"
23688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23689    break 2
23690  fi
23691done
23692  done
23693IFS=$as_save_IFS
23694
23695fi
23696fi
23697OCTAVE=$ac_cv_prog_OCTAVE
23698if test -n "$OCTAVE"; then
23699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
23700$as_echo "$OCTAVE" >&6; }
23701else
23702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23703$as_echo "no" >&6; }
23704fi
23705
23706
23707  test -n "$OCTAVE" && break
23708done
23709
23710
23711	# Perform the version check only if Octave is found
23712	if test "$OCTAVE" != ""; then :
23713
23714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Octave is newer than 3.0" >&5
23715$as_echo_n "checking if Octave is newer than 3.0... " >&6; }
23716		OCTAVE_VERSION=`octave -q -H --eval "disp(OCTAVE_VERSION)"`
23717
23718
23719
23720  # Used to indicate true or false condition
23721  ax_compare_version=false
23722
23723  # Convert the two version strings to be compared into a format that
23724  # allows a simple string comparison.  The end result is that a version
23725  # string of the form 1.12.5-r617 will be converted to the form
23726  # 0001001200050617.  In other words, each number is zero padded to four
23727  # digits, and non digits are removed.
23728
23729  ax_compare_version_A=`echo "$OCTAVE_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23730                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23731                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23732                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23733                     -e 's/[^0-9]//g'`
23734
23735
23736  ax_compare_version_B=`echo "3.0.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
23737                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
23738                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
23739                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
23740                     -e 's/[^0-9]//g'`
23741
23742
23743    ax_compare_version=`echo "x$ax_compare_version_A
23744x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
23745
23746
23747
23748    if test "$ax_compare_version" = "true" ; then
23749
23750				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23751$as_echo "yes" >&6; }
23752
23753				# If we have Octave that is sufficiently recent, we can enable the Octave module
23754	        	if test "$MKOCTFILE" != ""; then :
23755  enable_octave=yes
23756fi
23757
23758    else
23759				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760$as_echo "no" >&6; }
23761
23762  fi
23763
23764
23765fi
23766
23767fi
23768
23769 if test "$enable_octave" == "yes"; then
23770  BUILD_OCT_FILE_TRUE=
23771  BUILD_OCT_FILE_FALSE='#'
23772else
23773  BUILD_OCT_FILE_TRUE='#'
23774  BUILD_OCT_FILE_FALSE=
23775fi
23776
23777
23778# Check for the presence of "mex", the Matlab compiler
23779# and if it's present, define MATLAB_MODULES_PROGRAMS
23780# to be mps_roots.mexglx if we are on a 32 bit pc
23781# and mps_roots.mexglxa64 if we are on a 64 bit machine.
23782if test x$build_examples == xyes; then :
23783
23784
23785	# The following very involved check is needed since mex is also the name
23786	# of the polish TeX compiler. If both are in path we need to test all the
23787	# possibilities until we found the _real_ mex compiler.
23788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a valid mex compiler" >&5
23789$as_echo_n "checking for a valid mex compiler... " >&6; }
23790if ${ac_cv_path_MEX+:} false; then :
23791  $as_echo_n "(cached) " >&6
23792else
23793  if test -z "$MEX"; then
23794  ac_path_MEX_found=false
23795  # Loop through the user's path and test for each of PROGNAME-LIST
23796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23797for as_dir in $PATH
23798do
23799  IFS=$as_save_IFS
23800  test -z "$as_dir" && as_dir=.
23801    for ac_prog in mex; do
23802    for ac_exec_ext in '' $ac_executable_extensions; do
23803      ac_path_MEX="$as_dir/$ac_prog$ac_exec_ext"
23804      as_fn_executable_p "$ac_path_MEX" || continue
23805
23806          mex_is_matlab_output=`$ac_path_MEX -help 2>&1 | grep "MATLAB\|mkoctfile"`
23807	  mex_is_matlab_retcode=$?
23808	  if [ "$mex_is_matlab_retcode" != "0" ]; then
23809	    MEX=""
23810          else
23811            ac_cv_path_MEX=$ac_path_MEX
23812	    MEX=$ac_path_MEX
23813          fi
23814
23815      $ac_path_MEX_found && break 3
23816    done
23817  done
23818  done
23819IFS=$as_save_IFS
23820  if test -z "$ac_cv_path_MEX"; then
23821    :
23822  fi
23823else
23824  ac_cv_path_MEX=$MEX
23825fi
23826
23827fi
23828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_MEX" >&5
23829$as_echo "$ac_cv_path_MEX" >&6; }
23830
23831	# Set the MEX compiler if that has been found
23832	MEX=$ac_cv_path_MEX
23833
23834
23835	# If we have find a valid Matlab compiler then add
23836	# MATLAB to the target of compilation
23837	enable_matlab=no
23838	if test "$MEX" != ""; then :
23839  enable_matlab=yes
23840	  MATLAB_MODULES_PROGRAMS="mps_roots_string mps_roots_double"
23841fi
23842
23843
23844	# If we have found the MATLAB compiler, check how the
23845	# -output option has to specified.
23846	if test "$MEX" != ""; then :
23847
23848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct way to give -output to the mex compiler" >&5
23849$as_echo_n "checking for the correct way to give -output to the mex compiler... " >&6; }
23850if ${ac_cv_MEX_OUTPUT_FLAG+:} false; then :
23851  $as_echo_n "(cached) " >&6
23852else
23853
23854            mex_is_matlab_output=`$MEX -help 2>&1 | grep "MATLAB\|mkoctfile"`
23855            echo $mex_is_matlab_output | grep mkoctfile > /dev/null
23856            if [ $? -eq 0 ]; then
23857              ac_cv_MEX_OUTPUT_FLAG="-o"
23858            else
23859              ac_cv_MEX_OUTPUT_FLAG="-output"
23860            fi
23861
23862fi
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_MEX_OUTPUT_FLAG" >&5
23864$as_echo "$ac_cv_MEX_OUTPUT_FLAG" >&6; }
23865fi
23866
23867	MEX_OUTPUT_FLAG=$ac_cv_MEX_OUTPUT_FLAG
23868
23869
23870	# If this is the MATLAB mex compiler (and not the GNU/Octave one)
23871	# we will need to enable also some other flags.
23872	if test "$MEX_OUTPUT_FLAG" == "-output"; then :
23873
23874            MEXOPTS="-cxx -D__MPS_MATLAB_MODE=1 "
23875            MEX_OUTPUT_SUFFIX=""
23876	    MEX_LDFLAGS_PREFIX="LDFLAGS="
23877
23878else
23879
23880            MEX_OUTPUT_SUFFIX=".mex"
23881	    MEX_LDFLAGS_PREFIX=""
23882
23883fi
23884
23885
23886
23887
23888
23889fi
23890
23891 if test "$enable_matlab" == "yes"; then
23892  BUILD_MATLAB_TOOLBOX_TRUE=
23893  BUILD_MATLAB_TOOLBOX_FALSE='#'
23894else
23895  BUILD_MATLAB_TOOLBOX_TRUE='#'
23896  BUILD_MATLAB_TOOLBOX_FALSE=
23897fi
23898
23899
23900
23901# == PYTHON MODULE ==
23902have_python=yes
23903
23904
23905
23906
23907
23908
23909        if test -n "$PYTHON"; then
23910      # If the user set $PYTHON, use it and don't search something else.
23911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
23912$as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
23913      prog="import sys
23914# split strings by '.' and convert to numeric.  Append some zeros
23915# because we need at least 4 digits for the hex conversion.
23916# map returns an iterator in Python 3.0 and a list in 2.x
23917minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
23918minverhex = 0
23919# xrange is not present in Python 3.0 and range returns an iterator
23920for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23921sys.exit(sys.hexversion < minverhex)"
23922  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23923   ($PYTHON -c "$prog") >&5 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; then :
23927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23928$as_echo "yes" >&6; }
23929else
23930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23931$as_echo "no" >&6; }
23932			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23933fi
23934      am_display_PYTHON=$PYTHON
23935    else
23936      # Otherwise, try each interpreter until we find one that satisfies
23937      # VERSION.
23938      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
23939$as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
23940if ${am_cv_pathless_PYTHON+:} false; then :
23941  $as_echo_n "(cached) " >&6
23942else
23943
23944	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
23945	  test "$am_cv_pathless_PYTHON" = none && break
23946	  prog="import sys
23947# split strings by '.' and convert to numeric.  Append some zeros
23948# because we need at least 4 digits for the hex conversion.
23949# map returns an iterator in Python 3.0 and a list in 2.x
23950minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
23951minverhex = 0
23952# xrange is not present in Python 3.0 and range returns an iterator
23953for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23954sys.exit(sys.hexversion < minverhex)"
23955  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23956   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; then :
23960  break
23961fi
23962	done
23963fi
23964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23965$as_echo "$am_cv_pathless_PYTHON" >&6; }
23966      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23967      if test "$am_cv_pathless_PYTHON" = none; then
23968	PYTHON=:
23969      else
23970        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23971set dummy $am_cv_pathless_PYTHON; ac_word=$2
23972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23973$as_echo_n "checking for $ac_word... " >&6; }
23974if ${ac_cv_path_PYTHON+:} false; then :
23975  $as_echo_n "(cached) " >&6
23976else
23977  case $PYTHON in
23978  [\\/]* | ?:[\\/]*)
23979  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23980  ;;
23981  *)
23982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23983for as_dir in $PATH
23984do
23985  IFS=$as_save_IFS
23986  test -z "$as_dir" && as_dir=.
23987    for ac_exec_ext in '' $ac_executable_extensions; do
23988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23989    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23991    break 2
23992  fi
23993done
23994  done
23995IFS=$as_save_IFS
23996
23997  ;;
23998esac
23999fi
24000PYTHON=$ac_cv_path_PYTHON
24001if test -n "$PYTHON"; then
24002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24003$as_echo "$PYTHON" >&6; }
24004else
24005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24006$as_echo "no" >&6; }
24007fi
24008
24009
24010      fi
24011      am_display_PYTHON=$am_cv_pathless_PYTHON
24012    fi
24013
24014
24015  if test "$PYTHON" = :; then
24016      :
24017  else
24018
24019
24020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24021$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24022if ${am_cv_python_version+:} false; then :
24023  $as_echo_n "(cached) " >&6
24024else
24025  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24026fi
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24028$as_echo "$am_cv_python_version" >&6; }
24029  PYTHON_VERSION=$am_cv_python_version
24030
24031
24032
24033  PYTHON_PREFIX='${prefix}'
24034
24035  PYTHON_EXEC_PREFIX='${exec_prefix}'
24036
24037
24038
24039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24040$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24041if ${am_cv_python_platform+:} false; then :
24042  $as_echo_n "(cached) " >&6
24043else
24044  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24045fi
24046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24047$as_echo "$am_cv_python_platform" >&6; }
24048  PYTHON_PLATFORM=$am_cv_python_platform
24049
24050
24051  # Just factor out some code duplication.
24052  am_python_setup_sysconfig="\
24053import sys
24054# Prefer sysconfig over distutils.sysconfig, for better compatibility
24055# with python 3.x.  See automake bug#10227.
24056try:
24057    import sysconfig
24058except ImportError:
24059    can_use_sysconfig = 0
24060else:
24061    can_use_sysconfig = 1
24062# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24063# <https://github.com/pypa/virtualenv/issues/118>
24064try:
24065    from platform import python_implementation
24066    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24067        can_use_sysconfig = 0
24068except ImportError:
24069    pass"
24070
24071
24072            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24073$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24074if ${am_cv_python_pythondir+:} false; then :
24075  $as_echo_n "(cached) " >&6
24076else
24077  if test "x$prefix" = xNONE
24078     then
24079       am_py_prefix=$ac_default_prefix
24080     else
24081       am_py_prefix=$prefix
24082     fi
24083     am_cv_python_pythondir=`$PYTHON -c "
24084$am_python_setup_sysconfig
24085if can_use_sysconfig:
24086    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24087else:
24088    from distutils import sysconfig
24089    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24090sys.stdout.write(sitedir)"`
24091     case $am_cv_python_pythondir in
24092     $am_py_prefix*)
24093       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24094       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24095       ;;
24096     *)
24097       case $am_py_prefix in
24098         /usr|/System*) ;;
24099         *)
24100	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24101	  ;;
24102       esac
24103       ;;
24104     esac
24105
24106fi
24107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24108$as_echo "$am_cv_python_pythondir" >&6; }
24109  pythondir=$am_cv_python_pythondir
24110
24111
24112
24113  pkgpythondir=\${pythondir}/$PACKAGE
24114
24115
24116        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24117$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24118if ${am_cv_python_pyexecdir+:} false; then :
24119  $as_echo_n "(cached) " >&6
24120else
24121  if test "x$exec_prefix" = xNONE
24122     then
24123       am_py_exec_prefix=$am_py_prefix
24124     else
24125       am_py_exec_prefix=$exec_prefix
24126     fi
24127     am_cv_python_pyexecdir=`$PYTHON -c "
24128$am_python_setup_sysconfig
24129if can_use_sysconfig:
24130    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24131else:
24132    from distutils import sysconfig
24133    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24134sys.stdout.write(sitedir)"`
24135     case $am_cv_python_pyexecdir in
24136     $am_py_exec_prefix*)
24137       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24138       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24139       ;;
24140     *)
24141       case $am_py_exec_prefix in
24142         /usr|/System*) ;;
24143         *)
24144	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24145	   ;;
24146       esac
24147       ;;
24148     esac
24149
24150fi
24151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24152$as_echo "$am_cv_python_pyexecdir" >&6; }
24153  pyexecdir=$am_cv_python_pyexecdir
24154
24155
24156
24157  pkgpyexecdir=\${pyexecdir}/$PACKAGE
24158
24159
24160
24161  fi
24162
24163
24164
24165
24166if test -z "$PYTHON_INCLUDE"; then :
24167
24168  if test -z "$PYTHON_CONFIG"; then :
24169
24170    for ac_prog in python$PYTHON_VERSION-config python-config
24171do
24172  # Extract the first word of "$ac_prog", so it can be a program name with args.
24173set dummy $ac_prog; ac_word=$2
24174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175$as_echo_n "checking for $ac_word... " >&6; }
24176if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
24177  $as_echo_n "(cached) " >&6
24178else
24179  case $PYTHON_CONFIG in
24180  [\\/]* | ?:[\\/]*)
24181  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
24182  ;;
24183  *)
24184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24185for as_dir in `dirname $PYTHON`
24186do
24187  IFS=$as_save_IFS
24188  test -z "$as_dir" && as_dir=.
24189    for ac_exec_ext in '' $ac_executable_extensions; do
24190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24191    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24193    break 2
24194  fi
24195done
24196  done
24197IFS=$as_save_IFS
24198
24199  ;;
24200esac
24201fi
24202PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
24203if test -n "$PYTHON_CONFIG"; then
24204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
24205$as_echo "$PYTHON_CONFIG" >&6; }
24206else
24207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24208$as_echo "no" >&6; }
24209fi
24210
24211
24212  test -n "$PYTHON_CONFIG" && break
24213done
24214test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
24215
24216    if test "$PYTHON_CONFIG" = no; then :
24217
24218        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find python-config for $PYTHON." >&5
24219$as_echo "$as_me: WARNING: cannot find python-config for $PYTHON." >&2;}
24220	have_python=no
24221
24222else
24223
24224        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python include flags" >&5
24225$as_echo_n "checking python include flags... " >&6; }
24226        PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
24227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDE" >&5
24228$as_echo "$PYTHON_INCLUDE" >&6; }
24229
24230
24231    if test -z $PYTHON;
24232    then
24233        PYTHON="python"
24234    fi
24235    PYTHON_NAME=`basename $PYTHON`
24236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ctypes" >&5
24237$as_echo_n "checking $PYTHON_NAME module: ctypes... " >&6; }
24238	$PYTHON -c "import ctypes" 2>/dev/null
24239	if test $? -eq 0;
24240	then
24241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24242$as_echo "yes" >&6; }
24243		eval HAVE_PYMOD_CTYPES=yes
24244	else
24245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246$as_echo "no" >&6; }
24247		eval HAVE_PYMOD_CTYPES=no
24248		#
24249		if test -n ""
24250		then
24251			as_fn_error $? "failed to find required module ctypes" "$LINENO" 5
24252			exit 1
24253		fi
24254	fi
24255
24256
24257	if test "$HAVE_PYMOD_CTYPES" = "no"; then :
24258
24259		    have_python=no
24260
24261fi
24262
24263fi
24264
24265fi
24266
24267
24268fi
24269
24270 if test "$have_python" == "yes"; then
24271  HAVE_PYTHON_TRUE=
24272  HAVE_PYTHON_FALSE='#'
24273else
24274  HAVE_PYTHON_TRUE='#'
24275  HAVE_PYTHON_FALSE=
24276fi
24277
24278 if test "$have_python" == "yes" && test "$disable_examples" != "xyes"; then
24279  BUILD_PYTHON_MODULE_TRUE=
24280  BUILD_PYTHON_MODULE_FALSE='#'
24281else
24282  BUILD_PYTHON_MODULE_TRUE='#'
24283  BUILD_PYTHON_MODULE_FALSE=
24284fi
24285
24286
24287# Trick to get the extension of the python module right.
24288host_os=`echo "$host" | sed 's/^\(^-*\)-\(^-*\)-\(.*\)$/\3/'`
24289py_libext=so
24290case "$host_os" in
24291  cygwin* | mingw* | pw32* | cegcc*)
24292    py_libext=dll
24293    ;;
24294esac
24295
24296# Check for GTK libraries to enable the example that is given
24297# in examples/gtk
24298if test x$build_examples == xyes && test x$have_gtk == x1 && test x$have_cairo == x1; then :
24299
24300	ROOTS_OF_UNITY_PROGRAMS=roots_of_unity
24301
24302
24303
24304
24305
24306
24307fi
24308
24309 if test x$build_examples = xyes; then
24310  BUILD_EXAMPLES_TRUE=
24311  BUILD_EXAMPLES_FALSE='#'
24312else
24313  BUILD_EXAMPLES_TRUE='#'
24314  BUILD_EXAMPLES_FALSE=
24315fi
24316
24317
24318#
24319# ===== MPSOLVE DOCUMENTATION ======
24320#
24321# Check that we have doxygen on this sytem. If that's the case, build the documentation for
24322# MPSolve.
24323
24324if test x$build_doc == xyes; then :
24325
24326  for ac_prog in doxygen
24327do
24328  # Extract the first word of "$ac_prog", so it can be a program name with args.
24329set dummy $ac_prog; ac_word=$2
24330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24331$as_echo_n "checking for $ac_word... " >&6; }
24332if ${ac_cv_prog_DOXYGEN+:} false; then :
24333  $as_echo_n "(cached) " >&6
24334else
24335  if test -n "$DOXYGEN"; then
24336  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
24337else
24338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24339for as_dir in $PATH
24340do
24341  IFS=$as_save_IFS
24342  test -z "$as_dir" && as_dir=.
24343    for ac_exec_ext in '' $ac_executable_extensions; do
24344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24345    ac_cv_prog_DOXYGEN="$ac_prog"
24346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24347    break 2
24348  fi
24349done
24350  done
24351IFS=$as_save_IFS
24352
24353fi
24354fi
24355DOXYGEN=$ac_cv_prog_DOXYGEN
24356if test -n "$DOXYGEN"; then
24357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
24358$as_echo "$DOXYGEN" >&6; }
24359else
24360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24361$as_echo "no" >&6; }
24362fi
24363
24364
24365  test -n "$DOXYGEN" && break
24366done
24367
24368
24369  if test -z "$DOXYGEN"; then
24370    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found, documentation will not be generated" >&5
24371$as_echo "$as_me: WARNING: Doxygen not found, documentation will not be generated" >&2;}
24372  else
24373    for ac_prog in dot
24374do
24375  # Extract the first word of "$ac_prog", so it can be a program name with args.
24376set dummy $ac_prog; ac_word=$2
24377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24378$as_echo_n "checking for $ac_word... " >&6; }
24379if ${ac_cv_prog_DOT+:} false; then :
24380  $as_echo_n "(cached) " >&6
24381else
24382  if test -n "$DOT"; then
24383  ac_cv_prog_DOT="$DOT" # Let the user override the test.
24384else
24385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24386for as_dir in $PATH
24387do
24388  IFS=$as_save_IFS
24389  test -z "$as_dir" && as_dir=.
24390    for ac_exec_ext in '' $ac_executable_extensions; do
24391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24392    ac_cv_prog_DOT="$ac_prog"
24393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24394    break 2
24395  fi
24396done
24397  done
24398IFS=$as_save_IFS
24399
24400fi
24401fi
24402DOT=$ac_cv_prog_DOT
24403if test -n "$DOT"; then
24404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
24405$as_echo "$DOT" >&6; }
24406else
24407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24408$as_echo "no" >&6; }
24409fi
24410
24411
24412  test -n "$DOT" && break
24413done
24414
24415
24416  fi
24417
24418fi
24419
24420 if test -n "$DOXYGEN"; then
24421  HAVE_DOXYGEN_TRUE=
24422  HAVE_DOXYGEN_FALSE='#'
24423else
24424  HAVE_DOXYGEN_TRUE='#'
24425  HAVE_DOXYGEN_FALSE=
24426fi
24427
24428
24429
24430LIBMPS_CFLAGS="$LIBMPS_CFLAGS -D_MPS_PRIVATE"
24431LIBMPS_LDFLAGS=" $LDFLAGS"
24432
24433if test "$platform_win32" = yes; then
24434  LIBMPS_LDFLAGS="$LIBMPS_LDFLAGS -no-undefined -Wl,--export-all-symbols -Wl,--output-def,.libs/libmps-3.dll.def"
24435fi
24436
24437
24438
24439
24440ac_config_files="$ac_config_files Makefile include/Makefile include/mps/Makefile include/mps/private/Makefile examples/Makefile examples/C/Makefile examples/fortran/Makefile examples/octave/Makefile examples/matlab/Makefile examples/gtk/Makefile examples/python/Makefile examples/python/tests/Makefile examples/mandelbrot-solver/Makefile examples/mandelbrot-solver/mandelbrot-solver.1 examples/quadratic-solver/Makefile examples/quadratic-solver/quadratic-solver.1 include/mps/mt.h include/mps/version.h src/Makefile src/mpsolve/Makefile src/mpsolve/mpsolve.1 src/libmps/Makefile src/tests/Makefile src/xmpsolve/Makefile src/xmpsolve/xmpsolve.desktop src/xmpsolve/xmpsolve.1 doc/Makefile doc/Doxyfile mime/Makefile"
24441
24442
24443cat >confcache <<\_ACEOF
24444# This file is a shell script that caches the results of configure
24445# tests run on this system so they can be shared between configure
24446# scripts and configure runs, see configure's option --config-cache.
24447# It is not useful on other systems.  If it contains results you don't
24448# want to keep, you may remove or edit it.
24449#
24450# config.status only pays attention to the cache file if you give it
24451# the --recheck option to rerun configure.
24452#
24453# `ac_cv_env_foo' variables (set or unset) will be overridden when
24454# loading this file, other *unset* `ac_cv_foo' will be assigned the
24455# following values.
24456
24457_ACEOF
24458
24459# The following way of writing the cache mishandles newlines in values,
24460# but we know of no workaround that is simple, portable, and efficient.
24461# So, we kill variables containing newlines.
24462# Ultrix sh set writes to stderr and can't be redirected directly,
24463# and sets the high bit in the cache file unless we assign to the vars.
24464(
24465  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24466    eval ac_val=\$$ac_var
24467    case $ac_val in #(
24468    *${as_nl}*)
24469      case $ac_var in #(
24470      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24472      esac
24473      case $ac_var in #(
24474      _ | IFS | as_nl) ;; #(
24475      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24476      *) { eval $ac_var=; unset $ac_var;} ;;
24477      esac ;;
24478    esac
24479  done
24480
24481  (set) 2>&1 |
24482    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24483    *${as_nl}ac_space=\ *)
24484      # `set' does not quote correctly, so add quotes: double-quote
24485      # substitution turns \\\\ into \\, and sed turns \\ into \.
24486      sed -n \
24487	"s/'/'\\\\''/g;
24488	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24489      ;; #(
24490    *)
24491      # `set' quotes correctly as required by POSIX, so do not add quotes.
24492      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24493      ;;
24494    esac |
24495    sort
24496) |
24497  sed '
24498     /^ac_cv_env_/b end
24499     t clear
24500     :clear
24501     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24502     t end
24503     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24504     :end' >>confcache
24505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24506  if test -w "$cache_file"; then
24507    if test "x$cache_file" != "x/dev/null"; then
24508      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24509$as_echo "$as_me: updating cache $cache_file" >&6;}
24510      if test ! -f "$cache_file" || test -h "$cache_file"; then
24511	cat confcache >"$cache_file"
24512      else
24513        case $cache_file in #(
24514        */* | ?:*)
24515	  mv -f confcache "$cache_file"$$ &&
24516	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24517        *)
24518	  mv -f confcache "$cache_file" ;;
24519	esac
24520      fi
24521    fi
24522  else
24523    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24524$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24525  fi
24526fi
24527rm -f confcache
24528
24529test "x$prefix" = xNONE && prefix=$ac_default_prefix
24530# Let make expand exec_prefix.
24531test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24532
24533DEFS=-DHAVE_CONFIG_H
24534
24535ac_libobjs=
24536ac_ltlibobjs=
24537U=
24538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24539  # 1. Remove the extension, and $U if already installed.
24540  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24541  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24542  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24543  #    will be set to the directory where LIBOBJS objects are built.
24544  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24545  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24546done
24547LIBOBJS=$ac_libobjs
24548
24549LTLIBOBJS=$ac_ltlibobjs
24550
24551
24552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24553$as_echo_n "checking that generated files are newer than configure... " >&6; }
24554   if test -n "$am_sleep_pid"; then
24555     # Hide warnings about reused PIDs.
24556     wait $am_sleep_pid 2>/dev/null
24557   fi
24558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24559$as_echo "done" >&6; }
24560if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24561  as_fn_error $? "conditional \"AMDEP\" was never defined.
24562Usually this means the macro was only invoked conditionally." "$LINENO" 5
24563fi
24564if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24565  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24566Usually this means the macro was only invoked conditionally." "$LINENO" 5
24567fi
24568 if test -n "$EXEEXT"; then
24569  am__EXEEXT_TRUE=
24570  am__EXEEXT_FALSE='#'
24571else
24572  am__EXEEXT_TRUE='#'
24573  am__EXEEXT_FALSE=
24574fi
24575
24576if test -z "${BUILD_QML_UI_TRUE}" && test -z "${BUILD_QML_UI_FALSE}"; then
24577  as_fn_error $? "conditional \"BUILD_QML_UI\" was never defined.
24578Usually this means the macro was only invoked conditionally." "$LINENO" 5
24579fi
24580if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24581  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24582Usually this means the macro was only invoked conditionally." "$LINENO" 5
24583fi
24584if test -z "${WINDOWS_BUILD_TRUE}" && test -z "${WINDOWS_BUILD_FALSE}"; then
24585  as_fn_error $? "conditional \"WINDOWS_BUILD\" was never defined.
24586Usually this means the macro was only invoked conditionally." "$LINENO" 5
24587fi
24588if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
24589  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
24590Usually this means the macro was only invoked conditionally." "$LINENO" 5
24591fi
24592if test -z "${CHECK_TRUE}" && test -z "${CHECK_FALSE}"; then
24593  as_fn_error $? "conditional \"CHECK\" was never defined.
24594Usually this means the macro was only invoked conditionally." "$LINENO" 5
24595fi
24596if test -z "${HAVE_UI_TRUE}" && test -z "${HAVE_UI_FALSE}"; then
24597  as_fn_error $? "conditional \"HAVE_UI\" was never defined.
24598Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599fi
24600if test -z "${BUILD_OCT_FILE_TRUE}" && test -z "${BUILD_OCT_FILE_FALSE}"; then
24601  as_fn_error $? "conditional \"BUILD_OCT_FILE\" was never defined.
24602Usually this means the macro was only invoked conditionally." "$LINENO" 5
24603fi
24604if test -z "${BUILD_MATLAB_TOOLBOX_TRUE}" && test -z "${BUILD_MATLAB_TOOLBOX_FALSE}"; then
24605  as_fn_error $? "conditional \"BUILD_MATLAB_TOOLBOX\" was never defined.
24606Usually this means the macro was only invoked conditionally." "$LINENO" 5
24607fi
24608if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
24609  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
24610Usually this means the macro was only invoked conditionally." "$LINENO" 5
24611fi
24612if test -z "${BUILD_PYTHON_MODULE_TRUE}" && test -z "${BUILD_PYTHON_MODULE_FALSE}"; then
24613  as_fn_error $? "conditional \"BUILD_PYTHON_MODULE\" was never defined.
24614Usually this means the macro was only invoked conditionally." "$LINENO" 5
24615fi
24616if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
24617  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
24618Usually this means the macro was only invoked conditionally." "$LINENO" 5
24619fi
24620if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
24621  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
24622Usually this means the macro was only invoked conditionally." "$LINENO" 5
24623fi
24624
24625: "${CONFIG_STATUS=./config.status}"
24626ac_write_fail=0
24627ac_clean_files_save=$ac_clean_files
24628ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24629{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24630$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24631as_write_fail=0
24632cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24633#! $SHELL
24634# Generated by $as_me.
24635# Run this file to recreate the current configuration.
24636# Compiler output produced by configure, useful for debugging
24637# configure, is in config.log if it exists.
24638
24639debug=false
24640ac_cs_recheck=false
24641ac_cs_silent=false
24642
24643SHELL=\${CONFIG_SHELL-$SHELL}
24644export SHELL
24645_ASEOF
24646cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24647## -------------------- ##
24648## M4sh Initialization. ##
24649## -------------------- ##
24650
24651# Be more Bourne compatible
24652DUALCASE=1; export DUALCASE # for MKS sh
24653if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24654  emulate sh
24655  NULLCMD=:
24656  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24657  # is contrary to our usage.  Disable this feature.
24658  alias -g '${1+"$@"}'='"$@"'
24659  setopt NO_GLOB_SUBST
24660else
24661  case `(set -o) 2>/dev/null` in #(
24662  *posix*) :
24663    set -o posix ;; #(
24664  *) :
24665     ;;
24666esac
24667fi
24668
24669
24670as_nl='
24671'
24672export as_nl
24673# Printing a long string crashes Solaris 7 /usr/bin/printf.
24674as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24676as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24677# Prefer a ksh shell builtin over an external printf program on Solaris,
24678# but without wasting forks for bash or zsh.
24679if test -z "$BASH_VERSION$ZSH_VERSION" \
24680    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24681  as_echo='print -r --'
24682  as_echo_n='print -rn --'
24683elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24684  as_echo='printf %s\n'
24685  as_echo_n='printf %s'
24686else
24687  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24688    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24689    as_echo_n='/usr/ucb/echo -n'
24690  else
24691    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24692    as_echo_n_body='eval
24693      arg=$1;
24694      case $arg in #(
24695      *"$as_nl"*)
24696	expr "X$arg" : "X\\(.*\\)$as_nl";
24697	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24698      esac;
24699      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24700    '
24701    export as_echo_n_body
24702    as_echo_n='sh -c $as_echo_n_body as_echo'
24703  fi
24704  export as_echo_body
24705  as_echo='sh -c $as_echo_body as_echo'
24706fi
24707
24708# The user is always right.
24709if test "${PATH_SEPARATOR+set}" != set; then
24710  PATH_SEPARATOR=:
24711  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24712    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24713      PATH_SEPARATOR=';'
24714  }
24715fi
24716
24717
24718# IFS
24719# We need space, tab and new line, in precisely that order.  Quoting is
24720# there to prevent editors from complaining about space-tab.
24721# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24722# splitting by setting IFS to empty value.)
24723IFS=" ""	$as_nl"
24724
24725# Find who we are.  Look in the path if we contain no directory separator.
24726as_myself=
24727case $0 in #((
24728  *[\\/]* ) as_myself=$0 ;;
24729  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24730for as_dir in $PATH
24731do
24732  IFS=$as_save_IFS
24733  test -z "$as_dir" && as_dir=.
24734    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24735  done
24736IFS=$as_save_IFS
24737
24738     ;;
24739esac
24740# We did not find ourselves, most probably we were run as `sh COMMAND'
24741# in which case we are not to be found in the path.
24742if test "x$as_myself" = x; then
24743  as_myself=$0
24744fi
24745if test ! -f "$as_myself"; then
24746  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24747  exit 1
24748fi
24749
24750# Unset variables that we do not need and which cause bugs (e.g. in
24751# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24752# suppresses any "Segmentation fault" message there.  '((' could
24753# trigger a bug in pdksh 5.2.14.
24754for as_var in BASH_ENV ENV MAIL MAILPATH
24755do eval test x\${$as_var+set} = xset \
24756  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24757done
24758PS1='$ '
24759PS2='> '
24760PS4='+ '
24761
24762# NLS nuisances.
24763LC_ALL=C
24764export LC_ALL
24765LANGUAGE=C
24766export LANGUAGE
24767
24768# CDPATH.
24769(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24770
24771
24772# as_fn_error STATUS ERROR [LINENO LOG_FD]
24773# ----------------------------------------
24774# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24775# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24776# script with STATUS, using 1 if that was 0.
24777as_fn_error ()
24778{
24779  as_status=$1; test $as_status -eq 0 && as_status=1
24780  if test "$4"; then
24781    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24782    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24783  fi
24784  $as_echo "$as_me: error: $2" >&2
24785  as_fn_exit $as_status
24786} # as_fn_error
24787
24788
24789# as_fn_set_status STATUS
24790# -----------------------
24791# Set $? to STATUS, without forking.
24792as_fn_set_status ()
24793{
24794  return $1
24795} # as_fn_set_status
24796
24797# as_fn_exit STATUS
24798# -----------------
24799# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24800as_fn_exit ()
24801{
24802  set +e
24803  as_fn_set_status $1
24804  exit $1
24805} # as_fn_exit
24806
24807# as_fn_unset VAR
24808# ---------------
24809# Portably unset VAR.
24810as_fn_unset ()
24811{
24812  { eval $1=; unset $1;}
24813}
24814as_unset=as_fn_unset
24815# as_fn_append VAR VALUE
24816# ----------------------
24817# Append the text in VALUE to the end of the definition contained in VAR. Take
24818# advantage of any shell optimizations that allow amortized linear growth over
24819# repeated appends, instead of the typical quadratic growth present in naive
24820# implementations.
24821if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24822  eval 'as_fn_append ()
24823  {
24824    eval $1+=\$2
24825  }'
24826else
24827  as_fn_append ()
24828  {
24829    eval $1=\$$1\$2
24830  }
24831fi # as_fn_append
24832
24833# as_fn_arith ARG...
24834# ------------------
24835# Perform arithmetic evaluation on the ARGs, and store the result in the
24836# global $as_val. Take advantage of shells that can avoid forks. The arguments
24837# must be portable across $(()) and expr.
24838if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24839  eval 'as_fn_arith ()
24840  {
24841    as_val=$(( $* ))
24842  }'
24843else
24844  as_fn_arith ()
24845  {
24846    as_val=`expr "$@" || test $? -eq 1`
24847  }
24848fi # as_fn_arith
24849
24850
24851if expr a : '\(a\)' >/dev/null 2>&1 &&
24852   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24853  as_expr=expr
24854else
24855  as_expr=false
24856fi
24857
24858if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24859  as_basename=basename
24860else
24861  as_basename=false
24862fi
24863
24864if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24865  as_dirname=dirname
24866else
24867  as_dirname=false
24868fi
24869
24870as_me=`$as_basename -- "$0" ||
24871$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24872	 X"$0" : 'X\(//\)$' \| \
24873	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24874$as_echo X/"$0" |
24875    sed '/^.*\/\([^/][^/]*\)\/*$/{
24876	    s//\1/
24877	    q
24878	  }
24879	  /^X\/\(\/\/\)$/{
24880	    s//\1/
24881	    q
24882	  }
24883	  /^X\/\(\/\).*/{
24884	    s//\1/
24885	    q
24886	  }
24887	  s/.*/./; q'`
24888
24889# Avoid depending upon Character Ranges.
24890as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24891as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24892as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24893as_cr_digits='0123456789'
24894as_cr_alnum=$as_cr_Letters$as_cr_digits
24895
24896ECHO_C= ECHO_N= ECHO_T=
24897case `echo -n x` in #(((((
24898-n*)
24899  case `echo 'xy\c'` in
24900  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24901  xy)  ECHO_C='\c';;
24902  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24903       ECHO_T='	';;
24904  esac;;
24905*)
24906  ECHO_N='-n';;
24907esac
24908
24909rm -f conf$$ conf$$.exe conf$$.file
24910if test -d conf$$.dir; then
24911  rm -f conf$$.dir/conf$$.file
24912else
24913  rm -f conf$$.dir
24914  mkdir conf$$.dir 2>/dev/null
24915fi
24916if (echo >conf$$.file) 2>/dev/null; then
24917  if ln -s conf$$.file conf$$ 2>/dev/null; then
24918    as_ln_s='ln -s'
24919    # ... but there are two gotchas:
24920    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24921    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24922    # In both cases, we have to default to `cp -pR'.
24923    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24924      as_ln_s='cp -pR'
24925  elif ln conf$$.file conf$$ 2>/dev/null; then
24926    as_ln_s=ln
24927  else
24928    as_ln_s='cp -pR'
24929  fi
24930else
24931  as_ln_s='cp -pR'
24932fi
24933rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24934rmdir conf$$.dir 2>/dev/null
24935
24936
24937# as_fn_mkdir_p
24938# -------------
24939# Create "$as_dir" as a directory, including parents if necessary.
24940as_fn_mkdir_p ()
24941{
24942
24943  case $as_dir in #(
24944  -*) as_dir=./$as_dir;;
24945  esac
24946  test -d "$as_dir" || eval $as_mkdir_p || {
24947    as_dirs=
24948    while :; do
24949      case $as_dir in #(
24950      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24951      *) as_qdir=$as_dir;;
24952      esac
24953      as_dirs="'$as_qdir' $as_dirs"
24954      as_dir=`$as_dirname -- "$as_dir" ||
24955$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24956	 X"$as_dir" : 'X\(//\)[^/]' \| \
24957	 X"$as_dir" : 'X\(//\)$' \| \
24958	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24959$as_echo X"$as_dir" |
24960    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24961	    s//\1/
24962	    q
24963	  }
24964	  /^X\(\/\/\)[^/].*/{
24965	    s//\1/
24966	    q
24967	  }
24968	  /^X\(\/\/\)$/{
24969	    s//\1/
24970	    q
24971	  }
24972	  /^X\(\/\).*/{
24973	    s//\1/
24974	    q
24975	  }
24976	  s/.*/./; q'`
24977      test -d "$as_dir" && break
24978    done
24979    test -z "$as_dirs" || eval "mkdir $as_dirs"
24980  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24981
24982
24983} # as_fn_mkdir_p
24984if mkdir -p . 2>/dev/null; then
24985  as_mkdir_p='mkdir -p "$as_dir"'
24986else
24987  test -d ./-p && rmdir ./-p
24988  as_mkdir_p=false
24989fi
24990
24991
24992# as_fn_executable_p FILE
24993# -----------------------
24994# Test if FILE is an executable regular file.
24995as_fn_executable_p ()
24996{
24997  test -f "$1" && test -x "$1"
24998} # as_fn_executable_p
24999as_test_x='test -x'
25000as_executable_p=as_fn_executable_p
25001
25002# Sed expression to map a string onto a valid CPP name.
25003as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25004
25005# Sed expression to map a string onto a valid variable name.
25006as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25007
25008
25009exec 6>&1
25010## ----------------------------------- ##
25011## Main body of $CONFIG_STATUS script. ##
25012## ----------------------------------- ##
25013_ASEOF
25014test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25015
25016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25017# Save the log message, to keep $0 and so on meaningful, and to
25018# report actual input values of CONFIG_FILES etc. instead of their
25019# values after options handling.
25020ac_log="
25021This file was extended by MPSolve $as_me 3.2.1, which was
25022generated by GNU Autoconf 2.69.  Invocation command line was
25023
25024  CONFIG_FILES    = $CONFIG_FILES
25025  CONFIG_HEADERS  = $CONFIG_HEADERS
25026  CONFIG_LINKS    = $CONFIG_LINKS
25027  CONFIG_COMMANDS = $CONFIG_COMMANDS
25028  $ $0 $@
25029
25030on `(hostname || uname -n) 2>/dev/null | sed 1q`
25031"
25032
25033_ACEOF
25034
25035case $ac_config_files in *"
25036"*) set x $ac_config_files; shift; ac_config_files=$*;;
25037esac
25038
25039case $ac_config_headers in *"
25040"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25041esac
25042
25043
25044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25045# Files that config.status was made for.
25046config_files="$ac_config_files"
25047config_headers="$ac_config_headers"
25048config_commands="$ac_config_commands"
25049
25050_ACEOF
25051
25052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25053ac_cs_usage="\
25054\`$as_me' instantiates files and other configuration actions
25055from templates according to the current configuration.  Unless the files
25056and actions are specified as TAGs, all are instantiated by default.
25057
25058Usage: $0 [OPTION]... [TAG]...
25059
25060  -h, --help       print this help, then exit
25061  -V, --version    print version number and configuration settings, then exit
25062      --config     print configuration, then exit
25063  -q, --quiet, --silent
25064                   do not print progress messages
25065  -d, --debug      don't remove temporary files
25066      --recheck    update $as_me by reconfiguring in the same conditions
25067      --file=FILE[:TEMPLATE]
25068                   instantiate the configuration file FILE
25069      --header=FILE[:TEMPLATE]
25070                   instantiate the configuration header FILE
25071
25072Configuration files:
25073$config_files
25074
25075Configuration headers:
25076$config_headers
25077
25078Configuration commands:
25079$config_commands
25080
25081Report bugs to <leonardo@robol.it>."
25082
25083_ACEOF
25084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25085ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25086ac_cs_version="\\
25087MPSolve config.status 3.2.1
25088configured by $0, generated by GNU Autoconf 2.69,
25089  with options \\"\$ac_cs_config\\"
25090
25091Copyright (C) 2012 Free Software Foundation, Inc.
25092This config.status script is free software; the Free Software Foundation
25093gives unlimited permission to copy, distribute and modify it."
25094
25095ac_pwd='$ac_pwd'
25096srcdir='$srcdir'
25097INSTALL='$INSTALL'
25098MKDIR_P='$MKDIR_P'
25099AWK='$AWK'
25100test -n "\$AWK" || AWK=awk
25101_ACEOF
25102
25103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25104# The default lists apply if the user does not specify any file.
25105ac_need_defaults=:
25106while test $# != 0
25107do
25108  case $1 in
25109  --*=?*)
25110    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25111    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25112    ac_shift=:
25113    ;;
25114  --*=)
25115    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25116    ac_optarg=
25117    ac_shift=:
25118    ;;
25119  *)
25120    ac_option=$1
25121    ac_optarg=$2
25122    ac_shift=shift
25123    ;;
25124  esac
25125
25126  case $ac_option in
25127  # Handling of the options.
25128  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25129    ac_cs_recheck=: ;;
25130  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25131    $as_echo "$ac_cs_version"; exit ;;
25132  --config | --confi | --conf | --con | --co | --c )
25133    $as_echo "$ac_cs_config"; exit ;;
25134  --debug | --debu | --deb | --de | --d | -d )
25135    debug=: ;;
25136  --file | --fil | --fi | --f )
25137    $ac_shift
25138    case $ac_optarg in
25139    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25140    '') as_fn_error $? "missing file argument" ;;
25141    esac
25142    as_fn_append CONFIG_FILES " '$ac_optarg'"
25143    ac_need_defaults=false;;
25144  --header | --heade | --head | --hea )
25145    $ac_shift
25146    case $ac_optarg in
25147    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25148    esac
25149    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25150    ac_need_defaults=false;;
25151  --he | --h)
25152    # Conflict between --help and --header
25153    as_fn_error $? "ambiguous option: \`$1'
25154Try \`$0 --help' for more information.";;
25155  --help | --hel | -h )
25156    $as_echo "$ac_cs_usage"; exit ;;
25157  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25158  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25159    ac_cs_silent=: ;;
25160
25161  # This is an error.
25162  -*) as_fn_error $? "unrecognized option: \`$1'
25163Try \`$0 --help' for more information." ;;
25164
25165  *) as_fn_append ac_config_targets " $1"
25166     ac_need_defaults=false ;;
25167
25168  esac
25169  shift
25170done
25171
25172ac_configure_extra_args=
25173
25174if $ac_cs_silent; then
25175  exec 6>/dev/null
25176  ac_configure_extra_args="$ac_configure_extra_args --silent"
25177fi
25178
25179_ACEOF
25180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25181if \$ac_cs_recheck; then
25182  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25183  shift
25184  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25185  CONFIG_SHELL='$SHELL'
25186  export CONFIG_SHELL
25187  exec "\$@"
25188fi
25189
25190_ACEOF
25191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25192exec 5>>config.log
25193{
25194  echo
25195  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25196## Running $as_me. ##
25197_ASBOX
25198  $as_echo "$ac_log"
25199} >&5
25200
25201_ACEOF
25202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25203#
25204# INIT-COMMANDS
25205#
25206
25207
25208# The HP-UX ksh and POSIX shell print the target directory to stdout
25209# if CDPATH is set.
25210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25211
25212sed_quote_subst='$sed_quote_subst'
25213double_quote_subst='$double_quote_subst'
25214delay_variable_subst='$delay_variable_subst'
25215macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25216macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25217AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25218DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25219OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25220enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25221enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25222pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25223enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25224shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25225SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25226ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25227PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25228host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25229host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25230host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25231build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25232build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25233build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25234SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25235Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25236GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25237EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25238FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25239LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25240NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25241LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25242max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25243ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25244exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25245lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25246lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25247lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25248lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25249lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25250reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25251reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25252deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25253file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25254file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25255want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25256sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25257AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25258AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25259archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25260STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25261RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25262old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25263old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25264old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25265lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25266CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25267CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25268compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25269GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25270lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25271lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25272lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25273lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25274lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25275lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25276nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25277lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25278lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25279objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25280MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25281lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25282lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25283lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25284lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25285lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25286need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25287MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25288DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25289NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25290LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25291OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25292OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25293libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25294shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25295extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25296archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25297enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25298export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25299whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25300compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25301old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25302old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25303archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25304archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25305module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25306module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25307with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25308allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25309no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25310hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25311hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25312hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25313hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25314hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25315hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25316hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25317inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25318link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25319always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25320export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25321exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25322include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25323prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25324postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25325file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25326variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25327need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25328need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25329version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25330runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25331shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25332shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25333libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25334library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25335soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25336install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25337postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25338postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25339finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25340finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25341hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25342sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25343configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25344configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25345hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25346enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25347enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25348enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25349old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25350striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25351compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25352predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25353postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25354predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25355postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25356compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25357LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
25358LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25359reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
25360reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25361reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
25362reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25363old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
25364old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25365compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
25366compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25367GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
25368GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25369lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
25370lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25371lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
25372lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25373lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
25374lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25375lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
25376lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25377lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
25378lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25379archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
25380archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25381enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
25382enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25383export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
25384export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25385whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
25386whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25387compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
25388compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25389old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
25390old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25391old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
25392old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25393archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
25394archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25395archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
25396archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25397module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
25398module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25399module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
25400module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25401with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
25402with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25403allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
25404allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25405no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
25406no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25407hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
25408hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25409hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
25410hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25411hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
25412hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25413hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
25414hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25415hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
25416hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25417hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
25418hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25419hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
25420hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25421inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
25422inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25423link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
25424link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25425always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
25426always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25427export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
25428export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25429exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
25430exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25431include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
25432include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25433prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
25434prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25435postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
25436postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25437file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
25438file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25439hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
25440hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25441compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
25442compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25443predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
25444predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25445postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
25446postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25447predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
25448predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25449postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
25450postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25451compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
25452compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25453
25454LTCC='$LTCC'
25455LTCFLAGS='$LTCFLAGS'
25456compiler='$compiler_DEFAULT'
25457
25458# A function that is used when there is no print builtin or printf.
25459func_fallback_echo ()
25460{
25461  eval 'cat <<_LTECHO_EOF
25462\$1
25463_LTECHO_EOF'
25464}
25465
25466# Quote evaled strings.
25467for var in AS \
25468DLLTOOL \
25469OBJDUMP \
25470SHELL \
25471ECHO \
25472PATH_SEPARATOR \
25473SED \
25474GREP \
25475EGREP \
25476FGREP \
25477LD \
25478NM \
25479LN_S \
25480lt_SP2NL \
25481lt_NL2SP \
25482reload_flag \
25483deplibs_check_method \
25484file_magic_cmd \
25485file_magic_glob \
25486want_nocaseglob \
25487sharedlib_from_linklib_cmd \
25488AR \
25489AR_FLAGS \
25490archiver_list_spec \
25491STRIP \
25492RANLIB \
25493CC \
25494CFLAGS \
25495compiler \
25496lt_cv_sys_global_symbol_pipe \
25497lt_cv_sys_global_symbol_to_cdecl \
25498lt_cv_sys_global_symbol_to_import \
25499lt_cv_sys_global_symbol_to_c_name_address \
25500lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25501lt_cv_nm_interface \
25502nm_file_list_spec \
25503lt_cv_truncate_bin \
25504lt_prog_compiler_no_builtin_flag \
25505lt_prog_compiler_pic \
25506lt_prog_compiler_wl \
25507lt_prog_compiler_static \
25508lt_cv_prog_compiler_c_o \
25509need_locks \
25510MANIFEST_TOOL \
25511DSYMUTIL \
25512NMEDIT \
25513LIPO \
25514OTOOL \
25515OTOOL64 \
25516shrext_cmds \
25517export_dynamic_flag_spec \
25518whole_archive_flag_spec \
25519compiler_needs_object \
25520with_gnu_ld \
25521allow_undefined_flag \
25522no_undefined_flag \
25523hardcode_libdir_flag_spec \
25524hardcode_libdir_separator \
25525exclude_expsyms \
25526include_expsyms \
25527file_list_spec \
25528variables_saved_for_relink \
25529libname_spec \
25530library_names_spec \
25531soname_spec \
25532install_override_mode \
25533finish_eval \
25534old_striplib \
25535striplib \
25536compiler_lib_search_dirs \
25537predep_objects \
25538postdep_objects \
25539predeps \
25540postdeps \
25541compiler_lib_search_path \
25542LD_FC \
25543LD_CXX \
25544reload_flag_FC \
25545reload_flag_CXX \
25546compiler_FC \
25547compiler_CXX \
25548lt_prog_compiler_no_builtin_flag_FC \
25549lt_prog_compiler_no_builtin_flag_CXX \
25550lt_prog_compiler_pic_FC \
25551lt_prog_compiler_pic_CXX \
25552lt_prog_compiler_wl_FC \
25553lt_prog_compiler_wl_CXX \
25554lt_prog_compiler_static_FC \
25555lt_prog_compiler_static_CXX \
25556lt_cv_prog_compiler_c_o_FC \
25557lt_cv_prog_compiler_c_o_CXX \
25558export_dynamic_flag_spec_FC \
25559export_dynamic_flag_spec_CXX \
25560whole_archive_flag_spec_FC \
25561whole_archive_flag_spec_CXX \
25562compiler_needs_object_FC \
25563compiler_needs_object_CXX \
25564with_gnu_ld_FC \
25565with_gnu_ld_CXX \
25566allow_undefined_flag_FC \
25567allow_undefined_flag_CXX \
25568no_undefined_flag_FC \
25569no_undefined_flag_CXX \
25570hardcode_libdir_flag_spec_FC \
25571hardcode_libdir_flag_spec_CXX \
25572hardcode_libdir_separator_FC \
25573hardcode_libdir_separator_CXX \
25574exclude_expsyms_FC \
25575exclude_expsyms_CXX \
25576include_expsyms_FC \
25577include_expsyms_CXX \
25578file_list_spec_FC \
25579file_list_spec_CXX \
25580compiler_lib_search_dirs_FC \
25581compiler_lib_search_dirs_CXX \
25582predep_objects_FC \
25583predep_objects_CXX \
25584postdep_objects_FC \
25585postdep_objects_CXX \
25586predeps_FC \
25587predeps_CXX \
25588postdeps_FC \
25589postdeps_CXX \
25590compiler_lib_search_path_FC \
25591compiler_lib_search_path_CXX; do
25592    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25593    *[\\\\\\\`\\"\\\$]*)
25594      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25595      ;;
25596    *)
25597      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25598      ;;
25599    esac
25600done
25601
25602# Double-quote double-evaled strings.
25603for var in reload_cmds \
25604old_postinstall_cmds \
25605old_postuninstall_cmds \
25606old_archive_cmds \
25607extract_expsyms_cmds \
25608old_archive_from_new_cmds \
25609old_archive_from_expsyms_cmds \
25610archive_cmds \
25611archive_expsym_cmds \
25612module_cmds \
25613module_expsym_cmds \
25614export_symbols_cmds \
25615prelink_cmds \
25616postlink_cmds \
25617postinstall_cmds \
25618postuninstall_cmds \
25619finish_cmds \
25620sys_lib_search_path_spec \
25621configure_time_dlsearch_path \
25622configure_time_lt_sys_library_path \
25623reload_cmds_FC \
25624reload_cmds_CXX \
25625old_archive_cmds_FC \
25626old_archive_cmds_CXX \
25627old_archive_from_new_cmds_FC \
25628old_archive_from_new_cmds_CXX \
25629old_archive_from_expsyms_cmds_FC \
25630old_archive_from_expsyms_cmds_CXX \
25631archive_cmds_FC \
25632archive_cmds_CXX \
25633archive_expsym_cmds_FC \
25634archive_expsym_cmds_CXX \
25635module_cmds_FC \
25636module_cmds_CXX \
25637module_expsym_cmds_FC \
25638module_expsym_cmds_CXX \
25639export_symbols_cmds_FC \
25640export_symbols_cmds_CXX \
25641prelink_cmds_FC \
25642prelink_cmds_CXX \
25643postlink_cmds_FC \
25644postlink_cmds_CXX; do
25645    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25646    *[\\\\\\\`\\"\\\$]*)
25647      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25648      ;;
25649    *)
25650      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25651      ;;
25652    esac
25653done
25654
25655ac_aux_dir='$ac_aux_dir'
25656
25657# See if we are running on zsh, and set the options that allow our
25658# commands through without removal of \ escapes INIT.
25659if test -n "\${ZSH_VERSION+set}"; then
25660   setopt NO_GLOB_SUBST
25661fi
25662
25663
25664    PACKAGE='$PACKAGE'
25665    VERSION='$VERSION'
25666    RM='$RM'
25667    ofile='$ofile'
25668
25669
25670
25671
25672
25673
25674
25675AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25676
25677_ACEOF
25678
25679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25680
25681# Handling of arguments.
25682for ac_config_target in $ac_config_targets
25683do
25684  case $ac_config_target in
25685    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25686    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25687    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25688    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25689    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25690    "include/mps/Makefile") CONFIG_FILES="$CONFIG_FILES include/mps/Makefile" ;;
25691    "include/mps/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/mps/private/Makefile" ;;
25692    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25693    "examples/C/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/Makefile" ;;
25694    "examples/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fortran/Makefile" ;;
25695    "examples/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/octave/Makefile" ;;
25696    "examples/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/matlab/Makefile" ;;
25697    "examples/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gtk/Makefile" ;;
25698    "examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/python/Makefile" ;;
25699    "examples/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES examples/python/tests/Makefile" ;;
25700    "examples/mandelbrot-solver/Makefile") CONFIG_FILES="$CONFIG_FILES examples/mandelbrot-solver/Makefile" ;;
25701    "examples/mandelbrot-solver/mandelbrot-solver.1") CONFIG_FILES="$CONFIG_FILES examples/mandelbrot-solver/mandelbrot-solver.1" ;;
25702    "examples/quadratic-solver/Makefile") CONFIG_FILES="$CONFIG_FILES examples/quadratic-solver/Makefile" ;;
25703    "examples/quadratic-solver/quadratic-solver.1") CONFIG_FILES="$CONFIG_FILES examples/quadratic-solver/quadratic-solver.1" ;;
25704    "include/mps/mt.h") CONFIG_FILES="$CONFIG_FILES include/mps/mt.h" ;;
25705    "include/mps/version.h") CONFIG_FILES="$CONFIG_FILES include/mps/version.h" ;;
25706    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25707    "src/mpsolve/Makefile") CONFIG_FILES="$CONFIG_FILES src/mpsolve/Makefile" ;;
25708    "src/mpsolve/mpsolve.1") CONFIG_FILES="$CONFIG_FILES src/mpsolve/mpsolve.1" ;;
25709    "src/libmps/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmps/Makefile" ;;
25710    "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
25711    "src/xmpsolve/Makefile") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/Makefile" ;;
25712    "src/xmpsolve/xmpsolve.desktop") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/xmpsolve.desktop" ;;
25713    "src/xmpsolve/xmpsolve.1") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/xmpsolve.1" ;;
25714    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25715    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
25716    "mime/Makefile") CONFIG_FILES="$CONFIG_FILES mime/Makefile" ;;
25717
25718  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25719  esac
25720done
25721
25722
25723# If the user did not use the arguments to specify the items to instantiate,
25724# then the envvar interface is used.  Set only those that are not.
25725# We use the long form for the default assignment because of an extremely
25726# bizarre bug on SunOS 4.1.3.
25727if $ac_need_defaults; then
25728  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25729  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25730  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25731fi
25732
25733# Have a temporary directory for convenience.  Make it in the build tree
25734# simply because there is no reason against having it here, and in addition,
25735# creating and moving files from /tmp can sometimes cause problems.
25736# Hook for its removal unless debugging.
25737# Note that there is a small window in which the directory will not be cleaned:
25738# after its creation but before its name has been assigned to `$tmp'.
25739$debug ||
25740{
25741  tmp= ac_tmp=
25742  trap 'exit_status=$?
25743  : "${ac_tmp:=$tmp}"
25744  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25745' 0
25746  trap 'as_fn_exit 1' 1 2 13 15
25747}
25748# Create a (secure) tmp directory for tmp files.
25749
25750{
25751  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25752  test -d "$tmp"
25753}  ||
25754{
25755  tmp=./conf$$-$RANDOM
25756  (umask 077 && mkdir "$tmp")
25757} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25758ac_tmp=$tmp
25759
25760# Set up the scripts for CONFIG_FILES section.
25761# No need to generate them if there are no CONFIG_FILES.
25762# This happens for instance with `./config.status config.h'.
25763if test -n "$CONFIG_FILES"; then
25764
25765
25766ac_cr=`echo X | tr X '\015'`
25767# On cygwin, bash can eat \r inside `` if the user requested igncr.
25768# But we know of no other shell where ac_cr would be empty at this
25769# point, so we can use a bashism as a fallback.
25770if test "x$ac_cr" = x; then
25771  eval ac_cr=\$\'\\r\'
25772fi
25773ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25774if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25775  ac_cs_awk_cr='\\r'
25776else
25777  ac_cs_awk_cr=$ac_cr
25778fi
25779
25780echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25781_ACEOF
25782
25783
25784{
25785  echo "cat >conf$$subs.awk <<_ACEOF" &&
25786  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25787  echo "_ACEOF"
25788} >conf$$subs.sh ||
25789  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25790ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25791ac_delim='%!_!# '
25792for ac_last_try in false false false false false :; do
25793  . ./conf$$subs.sh ||
25794    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25795
25796  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25797  if test $ac_delim_n = $ac_delim_num; then
25798    break
25799  elif $ac_last_try; then
25800    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25801  else
25802    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25803  fi
25804done
25805rm -f conf$$subs.sh
25806
25807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25808cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25809_ACEOF
25810sed -n '
25811h
25812s/^/S["/; s/!.*/"]=/
25813p
25814g
25815s/^[^!]*!//
25816:repl
25817t repl
25818s/'"$ac_delim"'$//
25819t delim
25820:nl
25821h
25822s/\(.\{148\}\)..*/\1/
25823t more1
25824s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25825p
25826n
25827b repl
25828:more1
25829s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25830p
25831g
25832s/.\{148\}//
25833t nl
25834:delim
25835h
25836s/\(.\{148\}\)..*/\1/
25837t more2
25838s/["\\]/\\&/g; s/^/"/; s/$/"/
25839p
25840b
25841:more2
25842s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25843p
25844g
25845s/.\{148\}//
25846t delim
25847' <conf$$subs.awk | sed '
25848/^[^""]/{
25849  N
25850  s/\n//
25851}
25852' >>$CONFIG_STATUS || ac_write_fail=1
25853rm -f conf$$subs.awk
25854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25855_ACAWK
25856cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25857  for (key in S) S_is_set[key] = 1
25858  FS = ""
25859
25860}
25861{
25862  line = $ 0
25863  nfields = split(line, field, "@")
25864  substed = 0
25865  len = length(field[1])
25866  for (i = 2; i < nfields; i++) {
25867    key = field[i]
25868    keylen = length(key)
25869    if (S_is_set[key]) {
25870      value = S[key]
25871      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25872      len += length(value) + length(field[++i])
25873      substed = 1
25874    } else
25875      len += 1 + keylen
25876  }
25877
25878  print line
25879}
25880
25881_ACAWK
25882_ACEOF
25883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25884if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25885  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25886else
25887  cat
25888fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25889  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25890_ACEOF
25891
25892# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25893# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25894# trailing colons and then remove the whole line if VPATH becomes empty
25895# (actually we leave an empty line to preserve line numbers).
25896if test "x$srcdir" = x.; then
25897  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25898h
25899s///
25900s/^/:/
25901s/[	 ]*$/:/
25902s/:\$(srcdir):/:/g
25903s/:\${srcdir}:/:/g
25904s/:@srcdir@:/:/g
25905s/^:*//
25906s/:*$//
25907x
25908s/\(=[	 ]*\).*/\1/
25909G
25910s/\n//
25911s/^[^=]*=[	 ]*$//
25912}'
25913fi
25914
25915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25916fi # test -n "$CONFIG_FILES"
25917
25918# Set up the scripts for CONFIG_HEADERS section.
25919# No need to generate them if there are no CONFIG_HEADERS.
25920# This happens for instance with `./config.status Makefile'.
25921if test -n "$CONFIG_HEADERS"; then
25922cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25923BEGIN {
25924_ACEOF
25925
25926# Transform confdefs.h into an awk script `defines.awk', embedded as
25927# here-document in config.status, that substitutes the proper values into
25928# config.h.in to produce config.h.
25929
25930# Create a delimiter string that does not exist in confdefs.h, to ease
25931# handling of long lines.
25932ac_delim='%!_!# '
25933for ac_last_try in false false :; do
25934  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25935  if test -z "$ac_tt"; then
25936    break
25937  elif $ac_last_try; then
25938    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25939  else
25940    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25941  fi
25942done
25943
25944# For the awk script, D is an array of macro values keyed by name,
25945# likewise P contains macro parameters if any.  Preserve backslash
25946# newline sequences.
25947
25948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25949sed -n '
25950s/.\{148\}/&'"$ac_delim"'/g
25951t rset
25952:rset
25953s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25954t def
25955d
25956:def
25957s/\\$//
25958t bsnl
25959s/["\\]/\\&/g
25960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25961D["\1"]=" \3"/p
25962s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25963d
25964:bsnl
25965s/["\\]/\\&/g
25966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25967D["\1"]=" \3\\\\\\n"\\/p
25968t cont
25969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25970t cont
25971d
25972:cont
25973n
25974s/.\{148\}/&'"$ac_delim"'/g
25975t clear
25976:clear
25977s/\\$//
25978t bsnlc
25979s/["\\]/\\&/g; s/^/"/; s/$/"/p
25980d
25981:bsnlc
25982s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25983b cont
25984' <confdefs.h | sed '
25985s/'"$ac_delim"'/"\\\
25986"/g' >>$CONFIG_STATUS || ac_write_fail=1
25987
25988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25989  for (key in D) D_is_set[key] = 1
25990  FS = ""
25991}
25992/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25993  line = \$ 0
25994  split(line, arg, " ")
25995  if (arg[1] == "#") {
25996    defundef = arg[2]
25997    mac1 = arg[3]
25998  } else {
25999    defundef = substr(arg[1], 2)
26000    mac1 = arg[2]
26001  }
26002  split(mac1, mac2, "(") #)
26003  macro = mac2[1]
26004  prefix = substr(line, 1, index(line, defundef) - 1)
26005  if (D_is_set[macro]) {
26006    # Preserve the white space surrounding the "#".
26007    print prefix "define", macro P[macro] D[macro]
26008    next
26009  } else {
26010    # Replace #undef with comments.  This is necessary, for example,
26011    # in the case of _POSIX_SOURCE, which is predefined and required
26012    # on some systems where configure will not decide to define it.
26013    if (defundef == "undef") {
26014      print "/*", prefix defundef, macro, "*/"
26015      next
26016    }
26017  }
26018}
26019{ print }
26020_ACAWK
26021_ACEOF
26022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26023  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26024fi # test -n "$CONFIG_HEADERS"
26025
26026
26027eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26028shift
26029for ac_tag
26030do
26031  case $ac_tag in
26032  :[FHLC]) ac_mode=$ac_tag; continue;;
26033  esac
26034  case $ac_mode$ac_tag in
26035  :[FHL]*:*);;
26036  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26037  :[FH]-) ac_tag=-:-;;
26038  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26039  esac
26040  ac_save_IFS=$IFS
26041  IFS=:
26042  set x $ac_tag
26043  IFS=$ac_save_IFS
26044  shift
26045  ac_file=$1
26046  shift
26047
26048  case $ac_mode in
26049  :L) ac_source=$1;;
26050  :[FH])
26051    ac_file_inputs=
26052    for ac_f
26053    do
26054      case $ac_f in
26055      -) ac_f="$ac_tmp/stdin";;
26056      *) # Look for the file first in the build tree, then in the source tree
26057	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26058	 # because $ac_f cannot contain `:'.
26059	 test -f "$ac_f" ||
26060	   case $ac_f in
26061	   [\\/$]*) false;;
26062	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26063	   esac ||
26064	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26065      esac
26066      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26067      as_fn_append ac_file_inputs " '$ac_f'"
26068    done
26069
26070    # Let's still pretend it is `configure' which instantiates (i.e., don't
26071    # use $as_me), people would be surprised to read:
26072    #    /* config.h.  Generated by config.status.  */
26073    configure_input='Generated from '`
26074	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26075	`' by configure.'
26076    if test x"$ac_file" != x-; then
26077      configure_input="$ac_file.  $configure_input"
26078      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26079$as_echo "$as_me: creating $ac_file" >&6;}
26080    fi
26081    # Neutralize special characters interpreted by sed in replacement strings.
26082    case $configure_input in #(
26083    *\&* | *\|* | *\\* )
26084       ac_sed_conf_input=`$as_echo "$configure_input" |
26085       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26086    *) ac_sed_conf_input=$configure_input;;
26087    esac
26088
26089    case $ac_tag in
26090    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26091      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26092    esac
26093    ;;
26094  esac
26095
26096  ac_dir=`$as_dirname -- "$ac_file" ||
26097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26098	 X"$ac_file" : 'X\(//\)[^/]' \| \
26099	 X"$ac_file" : 'X\(//\)$' \| \
26100	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26101$as_echo X"$ac_file" |
26102    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26103	    s//\1/
26104	    q
26105	  }
26106	  /^X\(\/\/\)[^/].*/{
26107	    s//\1/
26108	    q
26109	  }
26110	  /^X\(\/\/\)$/{
26111	    s//\1/
26112	    q
26113	  }
26114	  /^X\(\/\).*/{
26115	    s//\1/
26116	    q
26117	  }
26118	  s/.*/./; q'`
26119  as_dir="$ac_dir"; as_fn_mkdir_p
26120  ac_builddir=.
26121
26122case "$ac_dir" in
26123.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26124*)
26125  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26126  # A ".." for each directory in $ac_dir_suffix.
26127  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26128  case $ac_top_builddir_sub in
26129  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26130  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26131  esac ;;
26132esac
26133ac_abs_top_builddir=$ac_pwd
26134ac_abs_builddir=$ac_pwd$ac_dir_suffix
26135# for backward compatibility:
26136ac_top_builddir=$ac_top_build_prefix
26137
26138case $srcdir in
26139  .)  # We are building in place.
26140    ac_srcdir=.
26141    ac_top_srcdir=$ac_top_builddir_sub
26142    ac_abs_top_srcdir=$ac_pwd ;;
26143  [\\/]* | ?:[\\/]* )  # Absolute name.
26144    ac_srcdir=$srcdir$ac_dir_suffix;
26145    ac_top_srcdir=$srcdir
26146    ac_abs_top_srcdir=$srcdir ;;
26147  *) # Relative name.
26148    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26149    ac_top_srcdir=$ac_top_build_prefix$srcdir
26150    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26151esac
26152ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26153
26154
26155  case $ac_mode in
26156  :F)
26157  #
26158  # CONFIG_FILE
26159  #
26160
26161  case $INSTALL in
26162  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26163  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26164  esac
26165  ac_MKDIR_P=$MKDIR_P
26166  case $MKDIR_P in
26167  [\\/$]* | ?:[\\/]* ) ;;
26168  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26169  esac
26170_ACEOF
26171
26172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26173# If the template does not know about datarootdir, expand it.
26174# FIXME: This hack should be removed a few years after 2.60.
26175ac_datarootdir_hack=; ac_datarootdir_seen=
26176ac_sed_dataroot='
26177/datarootdir/ {
26178  p
26179  q
26180}
26181/@datadir@/p
26182/@docdir@/p
26183/@infodir@/p
26184/@localedir@/p
26185/@mandir@/p'
26186case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26187*datarootdir*) ac_datarootdir_seen=yes;;
26188*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26190$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26191_ACEOF
26192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26193  ac_datarootdir_hack='
26194  s&@datadir@&$datadir&g
26195  s&@docdir@&$docdir&g
26196  s&@infodir@&$infodir&g
26197  s&@localedir@&$localedir&g
26198  s&@mandir@&$mandir&g
26199  s&\\\${datarootdir}&$datarootdir&g' ;;
26200esac
26201_ACEOF
26202
26203# Neutralize VPATH when `$srcdir' = `.'.
26204# Shell code in configure.ac might set extrasub.
26205# FIXME: do we really want to maintain this feature?
26206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26207ac_sed_extra="$ac_vpsub
26208$extrasub
26209_ACEOF
26210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26211:t
26212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26213s|@configure_input@|$ac_sed_conf_input|;t t
26214s&@top_builddir@&$ac_top_builddir_sub&;t t
26215s&@top_build_prefix@&$ac_top_build_prefix&;t t
26216s&@srcdir@&$ac_srcdir&;t t
26217s&@abs_srcdir@&$ac_abs_srcdir&;t t
26218s&@top_srcdir@&$ac_top_srcdir&;t t
26219s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26220s&@builddir@&$ac_builddir&;t t
26221s&@abs_builddir@&$ac_abs_builddir&;t t
26222s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26223s&@INSTALL@&$ac_INSTALL&;t t
26224s&@MKDIR_P@&$ac_MKDIR_P&;t t
26225$ac_datarootdir_hack
26226"
26227eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26228  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26229
26230test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26231  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26232  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26233      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26235which seems to be undefined.  Please make sure it is defined" >&5
26236$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26237which seems to be undefined.  Please make sure it is defined" >&2;}
26238
26239  rm -f "$ac_tmp/stdin"
26240  case $ac_file in
26241  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26242  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26243  esac \
26244  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26245 ;;
26246  :H)
26247  #
26248  # CONFIG_HEADER
26249  #
26250  if test x"$ac_file" != x-; then
26251    {
26252      $as_echo "/* $configure_input  */" \
26253      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26254    } >"$ac_tmp/config.h" \
26255      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26256    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26257      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26258$as_echo "$as_me: $ac_file is unchanged" >&6;}
26259    else
26260      rm -f "$ac_file"
26261      mv "$ac_tmp/config.h" "$ac_file" \
26262	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26263    fi
26264  else
26265    $as_echo "/* $configure_input  */" \
26266      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26267      || as_fn_error $? "could not create -" "$LINENO" 5
26268  fi
26269# Compute "$ac_file"'s index in $config_headers.
26270_am_arg="$ac_file"
26271_am_stamp_count=1
26272for _am_header in $config_headers :; do
26273  case $_am_header in
26274    $_am_arg | $_am_arg:* )
26275      break ;;
26276    * )
26277      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26278  esac
26279done
26280echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26281$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26282	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26283	 X"$_am_arg" : 'X\(//\)$' \| \
26284	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26285$as_echo X"$_am_arg" |
26286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26287	    s//\1/
26288	    q
26289	  }
26290	  /^X\(\/\/\)[^/].*/{
26291	    s//\1/
26292	    q
26293	  }
26294	  /^X\(\/\/\)$/{
26295	    s//\1/
26296	    q
26297	  }
26298	  /^X\(\/\).*/{
26299	    s//\1/
26300	    q
26301	  }
26302	  s/.*/./; q'`/stamp-h$_am_stamp_count
26303 ;;
26304
26305  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26306$as_echo "$as_me: executing $ac_file commands" >&6;}
26307 ;;
26308  esac
26309
26310
26311  case $ac_file$ac_mode in
26312    "libtool":C)
26313
26314    # See if we are running on zsh, and set the options that allow our
26315    # commands through without removal of \ escapes.
26316    if test -n "${ZSH_VERSION+set}"; then
26317      setopt NO_GLOB_SUBST
26318    fi
26319
26320    cfgfile=${ofile}T
26321    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26322    $RM "$cfgfile"
26323
26324    cat <<_LT_EOF >> "$cfgfile"
26325#! $SHELL
26326# Generated automatically by $as_me ($PACKAGE) $VERSION
26327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26328
26329# Provide generalized library-building support services.
26330# Written by Gordon Matzigkeit, 1996
26331
26332# Copyright (C) 2014 Free Software Foundation, Inc.
26333# This is free software; see the source for copying conditions.  There is NO
26334# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26335
26336# GNU Libtool is free software; you can redistribute it and/or modify
26337# it under the terms of the GNU General Public License as published by
26338# the Free Software Foundation; either version 2 of of the License, or
26339# (at your option) any later version.
26340#
26341# As a special exception to the GNU General Public License, if you
26342# distribute this file as part of a program or library that is built
26343# using GNU Libtool, you may include this file under the  same
26344# distribution terms that you use for the rest of that program.
26345#
26346# GNU Libtool is distributed in the hope that it will be useful, but
26347# WITHOUT ANY WARRANTY; without even the implied warranty of
26348# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26349# GNU General Public License for more details.
26350#
26351# You should have received a copy of the GNU General Public License
26352# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26353
26354
26355# The names of the tagged configurations supported by this script.
26356available_tags='FC CXX '
26357
26358# Configured defaults for sys_lib_dlsearch_path munging.
26359: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26360
26361# ### BEGIN LIBTOOL CONFIG
26362
26363# Which release of libtool.m4 was used?
26364macro_version=$macro_version
26365macro_revision=$macro_revision
26366
26367# Assembler program.
26368AS=$lt_AS
26369
26370# DLL creation program.
26371DLLTOOL=$lt_DLLTOOL
26372
26373# Object dumper program.
26374OBJDUMP=$lt_OBJDUMP
26375
26376# Whether or not to build shared libraries.
26377build_libtool_libs=$enable_shared
26378
26379# Whether or not to build static libraries.
26380build_old_libs=$enable_static
26381
26382# What type of objects to build.
26383pic_mode=$pic_mode
26384
26385# Whether or not to optimize for fast installation.
26386fast_install=$enable_fast_install
26387
26388# Shared archive member basename,for filename based shared library versioning on AIX.
26389shared_archive_member_spec=$shared_archive_member_spec
26390
26391# Shell to use when invoking shell scripts.
26392SHELL=$lt_SHELL
26393
26394# An echo program that protects backslashes.
26395ECHO=$lt_ECHO
26396
26397# The PATH separator for the build system.
26398PATH_SEPARATOR=$lt_PATH_SEPARATOR
26399
26400# The host system.
26401host_alias=$host_alias
26402host=$host
26403host_os=$host_os
26404
26405# The build system.
26406build_alias=$build_alias
26407build=$build
26408build_os=$build_os
26409
26410# A sed program that does not truncate output.
26411SED=$lt_SED
26412
26413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26414Xsed="\$SED -e 1s/^X//"
26415
26416# A grep program that handles long lines.
26417GREP=$lt_GREP
26418
26419# An ERE matcher.
26420EGREP=$lt_EGREP
26421
26422# A literal string matcher.
26423FGREP=$lt_FGREP
26424
26425# A BSD- or MS-compatible name lister.
26426NM=$lt_NM
26427
26428# Whether we need soft or hard links.
26429LN_S=$lt_LN_S
26430
26431# What is the maximum length of a command?
26432max_cmd_len=$max_cmd_len
26433
26434# Object file suffix (normally "o").
26435objext=$ac_objext
26436
26437# Executable file suffix (normally "").
26438exeext=$exeext
26439
26440# whether the shell understands "unset".
26441lt_unset=$lt_unset
26442
26443# turn spaces into newlines.
26444SP2NL=$lt_lt_SP2NL
26445
26446# turn newlines into spaces.
26447NL2SP=$lt_lt_NL2SP
26448
26449# convert \$build file names to \$host format.
26450to_host_file_cmd=$lt_cv_to_host_file_cmd
26451
26452# convert \$build files to toolchain format.
26453to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26454
26455# Method to check whether dependent libraries are shared objects.
26456deplibs_check_method=$lt_deplibs_check_method
26457
26458# Command to use when deplibs_check_method = "file_magic".
26459file_magic_cmd=$lt_file_magic_cmd
26460
26461# How to find potential files when deplibs_check_method = "file_magic".
26462file_magic_glob=$lt_file_magic_glob
26463
26464# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26465want_nocaseglob=$lt_want_nocaseglob
26466
26467# Command to associate shared and link libraries.
26468sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26469
26470# The archiver.
26471AR=$lt_AR
26472
26473# Flags to create an archive.
26474AR_FLAGS=$lt_AR_FLAGS
26475
26476# How to feed a file listing to the archiver.
26477archiver_list_spec=$lt_archiver_list_spec
26478
26479# A symbol stripping program.
26480STRIP=$lt_STRIP
26481
26482# Commands used to install an old-style archive.
26483RANLIB=$lt_RANLIB
26484old_postinstall_cmds=$lt_old_postinstall_cmds
26485old_postuninstall_cmds=$lt_old_postuninstall_cmds
26486
26487# Whether to use a lock for old archive extraction.
26488lock_old_archive_extraction=$lock_old_archive_extraction
26489
26490# A C compiler.
26491LTCC=$lt_CC
26492
26493# LTCC compiler flags.
26494LTCFLAGS=$lt_CFLAGS
26495
26496# Take the output of nm and produce a listing of raw symbols and C names.
26497global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26498
26499# Transform the output of nm in a proper C declaration.
26500global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26501
26502# Transform the output of nm into a list of symbols to manually relocate.
26503global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26504
26505# Transform the output of nm in a C name address pair.
26506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26507
26508# Transform the output of nm in a C name address pair when lib prefix is needed.
26509global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26510
26511# The name lister interface.
26512nm_interface=$lt_lt_cv_nm_interface
26513
26514# Specify filename containing input files for \$NM.
26515nm_file_list_spec=$lt_nm_file_list_spec
26516
26517# The root where to search for dependent libraries,and where our libraries should be installed.
26518lt_sysroot=$lt_sysroot
26519
26520# Command to truncate a binary pipe.
26521lt_truncate_bin=$lt_lt_cv_truncate_bin
26522
26523# The name of the directory that contains temporary libtool files.
26524objdir=$objdir
26525
26526# Used to examine libraries when file_magic_cmd begins with "file".
26527MAGIC_CMD=$MAGIC_CMD
26528
26529# Must we lock files when doing compilation?
26530need_locks=$lt_need_locks
26531
26532# Manifest tool.
26533MANIFEST_TOOL=$lt_MANIFEST_TOOL
26534
26535# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26536DSYMUTIL=$lt_DSYMUTIL
26537
26538# Tool to change global to local symbols on Mac OS X.
26539NMEDIT=$lt_NMEDIT
26540
26541# Tool to manipulate fat objects and archives on Mac OS X.
26542LIPO=$lt_LIPO
26543
26544# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26545OTOOL=$lt_OTOOL
26546
26547# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26548OTOOL64=$lt_OTOOL64
26549
26550# Old archive suffix (normally "a").
26551libext=$libext
26552
26553# Shared library suffix (normally ".so").
26554shrext_cmds=$lt_shrext_cmds
26555
26556# The commands to extract the exported symbol list from a shared archive.
26557extract_expsyms_cmds=$lt_extract_expsyms_cmds
26558
26559# Variables whose values should be saved in libtool wrapper scripts and
26560# restored at link time.
26561variables_saved_for_relink=$lt_variables_saved_for_relink
26562
26563# Do we need the "lib" prefix for modules?
26564need_lib_prefix=$need_lib_prefix
26565
26566# Do we need a version for libraries?
26567need_version=$need_version
26568
26569# Library versioning type.
26570version_type=$version_type
26571
26572# Shared library runtime path variable.
26573runpath_var=$runpath_var
26574
26575# Shared library path variable.
26576shlibpath_var=$shlibpath_var
26577
26578# Is shlibpath searched before the hard-coded library search path?
26579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26580
26581# Format of library name prefix.
26582libname_spec=$lt_libname_spec
26583
26584# List of archive names.  First name is the real one, the rest are links.
26585# The last name is the one that the linker finds with -lNAME
26586library_names_spec=$lt_library_names_spec
26587
26588# The coded name of the library, if different from the real name.
26589soname_spec=$lt_soname_spec
26590
26591# Permission mode override for installation of shared libraries.
26592install_override_mode=$lt_install_override_mode
26593
26594# Command to use after installation of a shared archive.
26595postinstall_cmds=$lt_postinstall_cmds
26596
26597# Command to use after uninstallation of a shared archive.
26598postuninstall_cmds=$lt_postuninstall_cmds
26599
26600# Commands used to finish a libtool library installation in a directory.
26601finish_cmds=$lt_finish_cmds
26602
26603# As "finish_cmds", except a single script fragment to be evaled but
26604# not shown.
26605finish_eval=$lt_finish_eval
26606
26607# Whether we should hardcode library paths into libraries.
26608hardcode_into_libs=$hardcode_into_libs
26609
26610# Compile-time system search path for libraries.
26611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26612
26613# Detected run-time system search path for libraries.
26614sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26615
26616# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26617configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26618
26619# Whether dlopen is supported.
26620dlopen_support=$enable_dlopen
26621
26622# Whether dlopen of programs is supported.
26623dlopen_self=$enable_dlopen_self
26624
26625# Whether dlopen of statically linked programs is supported.
26626dlopen_self_static=$enable_dlopen_self_static
26627
26628# Commands to strip libraries.
26629old_striplib=$lt_old_striplib
26630striplib=$lt_striplib
26631
26632
26633# The linker used to build libraries.
26634LD=$lt_LD
26635
26636# How to create reloadable object files.
26637reload_flag=$lt_reload_flag
26638reload_cmds=$lt_reload_cmds
26639
26640# Commands used to build an old-style archive.
26641old_archive_cmds=$lt_old_archive_cmds
26642
26643# A language specific compiler.
26644CC=$lt_compiler
26645
26646# Is the compiler the GNU compiler?
26647with_gcc=$GCC
26648
26649# Compiler flag to turn off builtin functions.
26650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26651
26652# Additional compiler flags for building library objects.
26653pic_flag=$lt_lt_prog_compiler_pic
26654
26655# How to pass a linker flag through the compiler.
26656wl=$lt_lt_prog_compiler_wl
26657
26658# Compiler flag to prevent dynamic linking.
26659link_static_flag=$lt_lt_prog_compiler_static
26660
26661# Does compiler simultaneously support -c and -o options?
26662compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26663
26664# Whether or not to add -lc for building shared libraries.
26665build_libtool_need_lc=$archive_cmds_need_lc
26666
26667# Whether or not to disallow shared libs when runtime libs are static.
26668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26669
26670# Compiler flag to allow reflexive dlopens.
26671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26672
26673# Compiler flag to generate shared objects directly from archives.
26674whole_archive_flag_spec=$lt_whole_archive_flag_spec
26675
26676# Whether the compiler copes with passing no objects directly.
26677compiler_needs_object=$lt_compiler_needs_object
26678
26679# Create an old-style archive from a shared archive.
26680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26681
26682# Create a temporary old-style archive to link instead of a shared archive.
26683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26684
26685# Commands used to build a shared archive.
26686archive_cmds=$lt_archive_cmds
26687archive_expsym_cmds=$lt_archive_expsym_cmds
26688
26689# Commands used to build a loadable module if different from building
26690# a shared archive.
26691module_cmds=$lt_module_cmds
26692module_expsym_cmds=$lt_module_expsym_cmds
26693
26694# Whether we are building with GNU ld or not.
26695with_gnu_ld=$lt_with_gnu_ld
26696
26697# Flag that allows shared libraries with undefined symbols to be built.
26698allow_undefined_flag=$lt_allow_undefined_flag
26699
26700# Flag that enforces no undefined symbols.
26701no_undefined_flag=$lt_no_undefined_flag
26702
26703# Flag to hardcode \$libdir into a binary during linking.
26704# This must work even if \$libdir does not exist
26705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26706
26707# Whether we need a single "-rpath" flag with a separated argument.
26708hardcode_libdir_separator=$lt_hardcode_libdir_separator
26709
26710# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26711# DIR into the resulting binary.
26712hardcode_direct=$hardcode_direct
26713
26714# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26715# DIR into the resulting binary and the resulting library dependency is
26716# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26717# library is relocated.
26718hardcode_direct_absolute=$hardcode_direct_absolute
26719
26720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26721# into the resulting binary.
26722hardcode_minus_L=$hardcode_minus_L
26723
26724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26725# into the resulting binary.
26726hardcode_shlibpath_var=$hardcode_shlibpath_var
26727
26728# Set to "yes" if building a shared library automatically hardcodes DIR
26729# into the library and all subsequent libraries and executables linked
26730# against it.
26731hardcode_automatic=$hardcode_automatic
26732
26733# Set to yes if linker adds runtime paths of dependent libraries
26734# to runtime path list.
26735inherit_rpath=$inherit_rpath
26736
26737# Whether libtool must link a program against all its dependency libraries.
26738link_all_deplibs=$link_all_deplibs
26739
26740# Set to "yes" if exported symbols are required.
26741always_export_symbols=$always_export_symbols
26742
26743# The commands to list exported symbols.
26744export_symbols_cmds=$lt_export_symbols_cmds
26745
26746# Symbols that should not be listed in the preloaded symbols.
26747exclude_expsyms=$lt_exclude_expsyms
26748
26749# Symbols that must always be exported.
26750include_expsyms=$lt_include_expsyms
26751
26752# Commands necessary for linking programs (against libraries) with templates.
26753prelink_cmds=$lt_prelink_cmds
26754
26755# Commands necessary for finishing linking programs.
26756postlink_cmds=$lt_postlink_cmds
26757
26758# Specify filename containing input files.
26759file_list_spec=$lt_file_list_spec
26760
26761# How to hardcode a shared library path into an executable.
26762hardcode_action=$hardcode_action
26763
26764# The directories searched by this compiler when creating a shared library.
26765compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26766
26767# Dependencies to place before and after the objects being linked to
26768# create a shared library.
26769predep_objects=$lt_predep_objects
26770postdep_objects=$lt_postdep_objects
26771predeps=$lt_predeps
26772postdeps=$lt_postdeps
26773
26774# The library search path used internally by the compiler when linking
26775# a shared library.
26776compiler_lib_search_path=$lt_compiler_lib_search_path
26777
26778# ### END LIBTOOL CONFIG
26779
26780_LT_EOF
26781
26782    cat <<'_LT_EOF' >> "$cfgfile"
26783
26784# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26785
26786# func_munge_path_list VARIABLE PATH
26787# -----------------------------------
26788# VARIABLE is name of variable containing _space_ separated list of
26789# directories to be munged by the contents of PATH, which is string
26790# having a format:
26791# "DIR[:DIR]:"
26792#       string "DIR[ DIR]" will be prepended to VARIABLE
26793# ":DIR[:DIR]"
26794#       string "DIR[ DIR]" will be appended to VARIABLE
26795# "DIRP[:DIRP]::[DIRA:]DIRA"
26796#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26797#       "DIRA[ DIRA]" will be appended to VARIABLE
26798# "DIR[:DIR]"
26799#       VARIABLE will be replaced by "DIR[ DIR]"
26800func_munge_path_list ()
26801{
26802    case x$2 in
26803    x)
26804        ;;
26805    *:)
26806        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26807        ;;
26808    x:*)
26809        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26810        ;;
26811    *::*)
26812        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26813        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26814        ;;
26815    *)
26816        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26817        ;;
26818    esac
26819}
26820
26821
26822# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26823func_cc_basename ()
26824{
26825    for cc_temp in $*""; do
26826      case $cc_temp in
26827        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26828        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26829        \-*) ;;
26830        *) break;;
26831      esac
26832    done
26833    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26834}
26835
26836
26837# ### END FUNCTIONS SHARED WITH CONFIGURE
26838
26839_LT_EOF
26840
26841  case $host_os in
26842  aix3*)
26843    cat <<\_LT_EOF >> "$cfgfile"
26844# AIX sometimes has problems with the GCC collect2 program.  For some
26845# reason, if we set the COLLECT_NAMES environment variable, the problems
26846# vanish in a puff of smoke.
26847if test set != "${COLLECT_NAMES+set}"; then
26848  COLLECT_NAMES=
26849  export COLLECT_NAMES
26850fi
26851_LT_EOF
26852    ;;
26853  esac
26854
26855
26856ltmain=$ac_aux_dir/ltmain.sh
26857
26858
26859  # We use sed instead of cat because bash on DJGPP gets confused if
26860  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26861  # text mode, it properly converts lines to CR/LF.  This bash problem
26862  # is reportedly fixed, but why not run on old versions too?
26863  sed '$q' "$ltmain" >> "$cfgfile" \
26864     || (rm -f "$cfgfile"; exit 1)
26865
26866   mv -f "$cfgfile" "$ofile" ||
26867    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26868  chmod +x "$ofile"
26869
26870
26871    cat <<_LT_EOF >> "$ofile"
26872
26873# ### BEGIN LIBTOOL TAG CONFIG: FC
26874
26875# The linker used to build libraries.
26876LD=$lt_LD_FC
26877
26878# How to create reloadable object files.
26879reload_flag=$lt_reload_flag_FC
26880reload_cmds=$lt_reload_cmds_FC
26881
26882# Commands used to build an old-style archive.
26883old_archive_cmds=$lt_old_archive_cmds_FC
26884
26885# A language specific compiler.
26886CC=$lt_compiler_FC
26887
26888# Is the compiler the GNU compiler?
26889with_gcc=$GCC_FC
26890
26891# Compiler flag to turn off builtin functions.
26892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
26893
26894# Additional compiler flags for building library objects.
26895pic_flag=$lt_lt_prog_compiler_pic_FC
26896
26897# How to pass a linker flag through the compiler.
26898wl=$lt_lt_prog_compiler_wl_FC
26899
26900# Compiler flag to prevent dynamic linking.
26901link_static_flag=$lt_lt_prog_compiler_static_FC
26902
26903# Does compiler simultaneously support -c and -o options?
26904compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
26905
26906# Whether or not to add -lc for building shared libraries.
26907build_libtool_need_lc=$archive_cmds_need_lc_FC
26908
26909# Whether or not to disallow shared libs when runtime libs are static.
26910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
26911
26912# Compiler flag to allow reflexive dlopens.
26913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
26914
26915# Compiler flag to generate shared objects directly from archives.
26916whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
26917
26918# Whether the compiler copes with passing no objects directly.
26919compiler_needs_object=$lt_compiler_needs_object_FC
26920
26921# Create an old-style archive from a shared archive.
26922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
26923
26924# Create a temporary old-style archive to link instead of a shared archive.
26925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
26926
26927# Commands used to build a shared archive.
26928archive_cmds=$lt_archive_cmds_FC
26929archive_expsym_cmds=$lt_archive_expsym_cmds_FC
26930
26931# Commands used to build a loadable module if different from building
26932# a shared archive.
26933module_cmds=$lt_module_cmds_FC
26934module_expsym_cmds=$lt_module_expsym_cmds_FC
26935
26936# Whether we are building with GNU ld or not.
26937with_gnu_ld=$lt_with_gnu_ld_FC
26938
26939# Flag that allows shared libraries with undefined symbols to be built.
26940allow_undefined_flag=$lt_allow_undefined_flag_FC
26941
26942# Flag that enforces no undefined symbols.
26943no_undefined_flag=$lt_no_undefined_flag_FC
26944
26945# Flag to hardcode \$libdir into a binary during linking.
26946# This must work even if \$libdir does not exist
26947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
26948
26949# Whether we need a single "-rpath" flag with a separated argument.
26950hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
26951
26952# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26953# DIR into the resulting binary.
26954hardcode_direct=$hardcode_direct_FC
26955
26956# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26957# DIR into the resulting binary and the resulting library dependency is
26958# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26959# library is relocated.
26960hardcode_direct_absolute=$hardcode_direct_absolute_FC
26961
26962# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26963# into the resulting binary.
26964hardcode_minus_L=$hardcode_minus_L_FC
26965
26966# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26967# into the resulting binary.
26968hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
26969
26970# Set to "yes" if building a shared library automatically hardcodes DIR
26971# into the library and all subsequent libraries and executables linked
26972# against it.
26973hardcode_automatic=$hardcode_automatic_FC
26974
26975# Set to yes if linker adds runtime paths of dependent libraries
26976# to runtime path list.
26977inherit_rpath=$inherit_rpath_FC
26978
26979# Whether libtool must link a program against all its dependency libraries.
26980link_all_deplibs=$link_all_deplibs_FC
26981
26982# Set to "yes" if exported symbols are required.
26983always_export_symbols=$always_export_symbols_FC
26984
26985# The commands to list exported symbols.
26986export_symbols_cmds=$lt_export_symbols_cmds_FC
26987
26988# Symbols that should not be listed in the preloaded symbols.
26989exclude_expsyms=$lt_exclude_expsyms_FC
26990
26991# Symbols that must always be exported.
26992include_expsyms=$lt_include_expsyms_FC
26993
26994# Commands necessary for linking programs (against libraries) with templates.
26995prelink_cmds=$lt_prelink_cmds_FC
26996
26997# Commands necessary for finishing linking programs.
26998postlink_cmds=$lt_postlink_cmds_FC
26999
27000# Specify filename containing input files.
27001file_list_spec=$lt_file_list_spec_FC
27002
27003# How to hardcode a shared library path into an executable.
27004hardcode_action=$hardcode_action_FC
27005
27006# The directories searched by this compiler when creating a shared library.
27007compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
27008
27009# Dependencies to place before and after the objects being linked to
27010# create a shared library.
27011predep_objects=$lt_predep_objects_FC
27012postdep_objects=$lt_postdep_objects_FC
27013predeps=$lt_predeps_FC
27014postdeps=$lt_postdeps_FC
27015
27016# The library search path used internally by the compiler when linking
27017# a shared library.
27018compiler_lib_search_path=$lt_compiler_lib_search_path_FC
27019
27020# ### END LIBTOOL TAG CONFIG: FC
27021_LT_EOF
27022
27023
27024    cat <<_LT_EOF >> "$ofile"
27025
27026# ### BEGIN LIBTOOL TAG CONFIG: CXX
27027
27028# The linker used to build libraries.
27029LD=$lt_LD_CXX
27030
27031# How to create reloadable object files.
27032reload_flag=$lt_reload_flag_CXX
27033reload_cmds=$lt_reload_cmds_CXX
27034
27035# Commands used to build an old-style archive.
27036old_archive_cmds=$lt_old_archive_cmds_CXX
27037
27038# A language specific compiler.
27039CC=$lt_compiler_CXX
27040
27041# Is the compiler the GNU compiler?
27042with_gcc=$GCC_CXX
27043
27044# Compiler flag to turn off builtin functions.
27045no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27046
27047# Additional compiler flags for building library objects.
27048pic_flag=$lt_lt_prog_compiler_pic_CXX
27049
27050# How to pass a linker flag through the compiler.
27051wl=$lt_lt_prog_compiler_wl_CXX
27052
27053# Compiler flag to prevent dynamic linking.
27054link_static_flag=$lt_lt_prog_compiler_static_CXX
27055
27056# Does compiler simultaneously support -c and -o options?
27057compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27058
27059# Whether or not to add -lc for building shared libraries.
27060build_libtool_need_lc=$archive_cmds_need_lc_CXX
27061
27062# Whether or not to disallow shared libs when runtime libs are static.
27063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27064
27065# Compiler flag to allow reflexive dlopens.
27066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27067
27068# Compiler flag to generate shared objects directly from archives.
27069whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27070
27071# Whether the compiler copes with passing no objects directly.
27072compiler_needs_object=$lt_compiler_needs_object_CXX
27073
27074# Create an old-style archive from a shared archive.
27075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27076
27077# Create a temporary old-style archive to link instead of a shared archive.
27078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27079
27080# Commands used to build a shared archive.
27081archive_cmds=$lt_archive_cmds_CXX
27082archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27083
27084# Commands used to build a loadable module if different from building
27085# a shared archive.
27086module_cmds=$lt_module_cmds_CXX
27087module_expsym_cmds=$lt_module_expsym_cmds_CXX
27088
27089# Whether we are building with GNU ld or not.
27090with_gnu_ld=$lt_with_gnu_ld_CXX
27091
27092# Flag that allows shared libraries with undefined symbols to be built.
27093allow_undefined_flag=$lt_allow_undefined_flag_CXX
27094
27095# Flag that enforces no undefined symbols.
27096no_undefined_flag=$lt_no_undefined_flag_CXX
27097
27098# Flag to hardcode \$libdir into a binary during linking.
27099# This must work even if \$libdir does not exist
27100hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27101
27102# Whether we need a single "-rpath" flag with a separated argument.
27103hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27104
27105# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27106# DIR into the resulting binary.
27107hardcode_direct=$hardcode_direct_CXX
27108
27109# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27110# DIR into the resulting binary and the resulting library dependency is
27111# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27112# library is relocated.
27113hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27114
27115# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27116# into the resulting binary.
27117hardcode_minus_L=$hardcode_minus_L_CXX
27118
27119# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27120# into the resulting binary.
27121hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27122
27123# Set to "yes" if building a shared library automatically hardcodes DIR
27124# into the library and all subsequent libraries and executables linked
27125# against it.
27126hardcode_automatic=$hardcode_automatic_CXX
27127
27128# Set to yes if linker adds runtime paths of dependent libraries
27129# to runtime path list.
27130inherit_rpath=$inherit_rpath_CXX
27131
27132# Whether libtool must link a program against all its dependency libraries.
27133link_all_deplibs=$link_all_deplibs_CXX
27134
27135# Set to "yes" if exported symbols are required.
27136always_export_symbols=$always_export_symbols_CXX
27137
27138# The commands to list exported symbols.
27139export_symbols_cmds=$lt_export_symbols_cmds_CXX
27140
27141# Symbols that should not be listed in the preloaded symbols.
27142exclude_expsyms=$lt_exclude_expsyms_CXX
27143
27144# Symbols that must always be exported.
27145include_expsyms=$lt_include_expsyms_CXX
27146
27147# Commands necessary for linking programs (against libraries) with templates.
27148prelink_cmds=$lt_prelink_cmds_CXX
27149
27150# Commands necessary for finishing linking programs.
27151postlink_cmds=$lt_postlink_cmds_CXX
27152
27153# Specify filename containing input files.
27154file_list_spec=$lt_file_list_spec_CXX
27155
27156# How to hardcode a shared library path into an executable.
27157hardcode_action=$hardcode_action_CXX
27158
27159# The directories searched by this compiler when creating a shared library.
27160compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27161
27162# Dependencies to place before and after the objects being linked to
27163# create a shared library.
27164predep_objects=$lt_predep_objects_CXX
27165postdep_objects=$lt_postdep_objects_CXX
27166predeps=$lt_predeps_CXX
27167postdeps=$lt_postdeps_CXX
27168
27169# The library search path used internally by the compiler when linking
27170# a shared library.
27171compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27172
27173# ### END LIBTOOL TAG CONFIG: CXX
27174_LT_EOF
27175
27176 ;;
27177    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27178  # Older Autoconf quotes --file arguments for eval, but not when files
27179  # are listed without --file.  Let's play safe and only enable the eval
27180  # if we detect the quoting.
27181  # TODO: see whether this extra hack can be removed once we start
27182  # requiring Autoconf 2.70 or later.
27183  case $CONFIG_FILES in #(
27184  *\'*) :
27185    eval set x "$CONFIG_FILES" ;; #(
27186  *) :
27187    set x $CONFIG_FILES ;; #(
27188  *) :
27189     ;;
27190esac
27191  shift
27192  # Used to flag and report bootstrapping failures.
27193  am_rc=0
27194  for am_mf
27195  do
27196    # Strip MF so we end up with the name of the file.
27197    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
27198    # Check whether this is an Automake generated Makefile which includes
27199    # dependency-tracking related rules and includes.
27200    # Grep'ing the whole file directly is not great: AIX grep has a line
27201    # limit of 2048, but all sed's we know have understand at least 4000.
27202    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
27203      || continue
27204    am_dirpart=`$as_dirname -- "$am_mf" ||
27205$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27206	 X"$am_mf" : 'X\(//\)[^/]' \| \
27207	 X"$am_mf" : 'X\(//\)$' \| \
27208	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27209$as_echo X"$am_mf" |
27210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27211	    s//\1/
27212	    q
27213	  }
27214	  /^X\(\/\/\)[^/].*/{
27215	    s//\1/
27216	    q
27217	  }
27218	  /^X\(\/\/\)$/{
27219	    s//\1/
27220	    q
27221	  }
27222	  /^X\(\/\).*/{
27223	    s//\1/
27224	    q
27225	  }
27226	  s/.*/./; q'`
27227    am_filepart=`$as_basename -- "$am_mf" ||
27228$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
27229	 X"$am_mf" : 'X\(//\)$' \| \
27230	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27231$as_echo X/"$am_mf" |
27232    sed '/^.*\/\([^/][^/]*\)\/*$/{
27233	    s//\1/
27234	    q
27235	  }
27236	  /^X\/\(\/\/\)$/{
27237	    s//\1/
27238	    q
27239	  }
27240	  /^X\/\(\/\).*/{
27241	    s//\1/
27242	    q
27243	  }
27244	  s/.*/./; q'`
27245    { echo "$as_me:$LINENO: cd "$am_dirpart" \
27246      && sed -e '/# am--include-marker/d' "$am_filepart" \
27247        | $MAKE -f - am--depfiles" >&5
27248   (cd "$am_dirpart" \
27249      && sed -e '/# am--include-marker/d' "$am_filepart" \
27250        | $MAKE -f - am--depfiles) >&5 2>&5
27251   ac_status=$?
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } || am_rc=$?
27254  done
27255  if test $am_rc -ne 0; then
27256    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27258as_fn_error $? "Something went wrong bootstrapping makefile fragments
27259    for automatic dependency tracking.  Try re-running configure with the
27260    '--disable-dependency-tracking' option to at least be able to build
27261    the package (albeit without support for automatic dependency tracking).
27262See \`config.log' for more details" "$LINENO" 5; }
27263  fi
27264  { am_dirpart=; unset am_dirpart;}
27265  { am_filepart=; unset am_filepart;}
27266  { am_mf=; unset am_mf;}
27267  { am_rc=; unset am_rc;}
27268  rm -f conftest-deps.mk
27269}
27270 ;;
27271
27272  esac
27273done # for ac_tag
27274
27275
27276as_fn_exit 0
27277_ACEOF
27278ac_clean_files=$ac_clean_files_save
27279
27280test $ac_write_fail = 0 ||
27281  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27282
27283
27284# configure is writing to config.log, and then calls config.status.
27285# config.status does its own redirection, appending to config.log.
27286# Unfortunately, on DOS this fails, as config.log is still kept open
27287# by configure, so config.status won't be able to write to it; its
27288# output is simply discarded.  So we exec the FD to /dev/null,
27289# effectively closing config.log, so it can be properly (re)opened and
27290# appended to by config.status.  When coming back to configure, we
27291# need to make the FD available again.
27292if test "$no_create" != yes; then
27293  ac_cs_success=:
27294  ac_config_status_args=
27295  test "$silent" = yes &&
27296    ac_config_status_args="$ac_config_status_args --quiet"
27297  exec 5>/dev/null
27298  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27299  exec 5>>config.log
27300  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27301  # would make configure fail if this is the last instruction.
27302  $ac_cs_success || as_fn_exit 1
27303fi
27304if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27306$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27307fi
27308
27309
27310echo "
27311
27312MPSolve configuration:
27313
27314        Source location:	${srcdir}
27315	Pthread CFLAGS:		${PTHREAD_CFLAGS}
27316        C compiler:		${CC}
27317	CFLAGS:			${LIBMPS_CFLAGS}
27318        LDFLAGS:                ${LIBMPS_LDFLAGS}
27319	Additional CFLAGS:	${CFLAGS}
27320        Debug enabled:		$enable_debug
27321        Check enabled:		$have_check"
27322
27323# Check Octave module
27324if test x$enable_octave = xyes; then
27325        echo "	Octave module:		$enable_octave (generates examples/octave/mpsolve.tar.gz)"
27326else
27327        echo "	Octave module:		no"
27328fi
27329
27330# Check MATLAB (TM) module
27331if test x$enable_matlab = xyes; then
27332        echo "	MATLAB (tm) module:	$enable_matlab (generates examples/matlab/mpsolve-toolbox.tar.gz)"
27333else
27334        echo "	MATLAB (tm) module:	no"
27335fi
27336
27337if test x$build_ui = xyes; then
27338	echo "	Graphical UI:		$build_ui"
27339else
27340	echo "	Graphical UI:		no"
27341fi
27342
27343        echo "	Python module:          $have_python"
27344
27345
27346echo "
27347Type 'make' to compile MPSolve, and then make install
27348to install the binaries, the library and the headers
27349system-wide.
27350
27351"
27352